3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 --enable-static[=PKGS] build static libraries [default=yes]"
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 --disable-libtool-lock avoid locking (might break parallel builds)"
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
50 --with-ldap Include LDAP support
51 --without-ldap Don't include LDAP support (default)"
53 --with-nisplus Include NISPLUS password database support
54 --without-nisplus Don't include NISPLUS password database support (default)"
56 --with-nisplus-home Include NISPLUS_HOME support
57 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
59 --with-ssl Include SSL support
60 --without-ssl Don't include SSL support (default)
61 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
63 --with-syslog Include experimental SYSLOG support
64 --without-syslog Don't include SYSLOG support (default)"
66 --with-profile Include profile support
67 --without-profile Don't include profile support (default)"
69 --with-netatalk Include experimental Netatalk support
70 --without-netatalk Don't include experimental Netatalk support (default)"
72 --with-quotas Include experimental disk-quota support
73 --without-quotas Don't include experimental disk-quota support (default)"
75 --with-utmp Include experimental utmp accounting
76 --without-utmp Don't include experimental utmp accounting (default)"
78 --with-msdfs Include MS Dfs support
79 --without-msdfs Don't include MS Dfs support (default)"
81 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
83 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
85 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
108 bindir
='${exec_prefix}/bin'
109 sbindir
='${exec_prefix}/sbin'
110 libexecdir
='${exec_prefix}/libexec'
111 datadir
='${prefix}/share'
112 sysconfdir
='${prefix}/etc'
113 sharedstatedir
='${prefix}/com'
114 localstatedir
='${prefix}/var'
115 libdir
='${exec_prefix}/lib'
116 includedir
='${prefix}/include'
117 oldincludedir
='/usr/include'
118 infodir
='${prefix}/info'
119 mandir
='${prefix}/man'
121 # Initialize some other variables.
124 SHELL
=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
150 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
151 bindir
="$ac_optarg" ;;
153 -build |
--build |
--buil |
--bui |
--bu)
155 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
156 build
="$ac_optarg" ;;
158 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
159 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
160 ac_prev
=cache_file
;;
161 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
162 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
163 cache_file
="$ac_optarg" ;;
165 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
167 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
169 datadir
="$ac_optarg" ;;
171 -disable-* |
--disable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* |
--enable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
194 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
195 |
--exec |
--exe |
--ex)
196 ac_prev
=exec_prefix
;;
197 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
198 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
199 |
--exec=* |
--exe=* |
--ex=*)
200 exec_prefix
="$ac_optarg" ;;
202 -gas |
--gas |
--ga |
--g)
203 # Obsolete; use --with-gas.
206 -help |
--help |
--hel |
--he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host |
--host |
--hos |
--ho)
263 -host=* |
--host=* |
--hos=* |
--ho=*)
266 -includedir |
--includedir |
--includedi |
--included |
--include \
267 |
--includ |
--inclu |
--incl |
--inc)
268 ac_prev
=includedir
;;
269 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
270 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
271 includedir
="$ac_optarg" ;;
273 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
275 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
276 infodir
="$ac_optarg" ;;
278 -libdir |
--libdir |
--libdi |
--libd)
280 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
281 libdir
="$ac_optarg" ;;
283 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
284 |
--libexe |
--libex |
--libe)
285 ac_prev
=libexecdir
;;
286 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
287 |
--libexe=* |
--libex=* |
--libe=*)
288 libexecdir
="$ac_optarg" ;;
290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
291 |
--localstate |
--localstat |
--localsta |
--localst \
292 |
--locals |
--local |
--loca |
--loc |
--lo)
293 ac_prev
=localstatedir
;;
294 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
295 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
296 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
297 localstatedir
="$ac_optarg" ;;
299 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
301 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
302 mandir
="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
312 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
313 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
316 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
317 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
318 |
--oldin |
--oldi |
--old |
--ol |
--o)
319 ac_prev
=oldincludedir
;;
320 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
321 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
322 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
323 oldincludedir
="$ac_optarg" ;;
325 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
327 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
328 prefix
="$ac_optarg" ;;
330 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
331 |
--program-pre |
--program-pr |
--program-p)
332 ac_prev
=program_prefix
;;
333 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
334 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
335 program_prefix
="$ac_optarg" ;;
337 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
338 |
--program-suf |
--program-su |
--program-s)
339 ac_prev
=program_suffix
;;
340 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
341 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
342 program_suffix
="$ac_optarg" ;;
344 -program-transform-name |
--program-transform-name \
345 |
--program-transform-nam |
--program-transform-na \
346 |
--program-transform-n |
--program-transform- \
347 |
--program-transform |
--program-transfor \
348 |
--program-transfo |
--program-transf \
349 |
--program-trans |
--program-tran \
350 |
--progr-tra |
--program-tr |
--program-t)
351 ac_prev
=program_transform_name
;;
352 -program-transform-name=* |
--program-transform-name=* \
353 |
--program-transform-nam=* |
--program-transform-na=* \
354 |
--program-transform-n=* |
--program-transform-=* \
355 |
--program-transform=* |
--program-transfor=* \
356 |
--program-transfo=* |
--program-transf=* \
357 |
--program-trans=* |
--program-tran=* \
358 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
359 program_transform_name
="$ac_optarg" ;;
361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
362 |
-silent |
--silent |
--silen |
--sile |
--sil)
365 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
367 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
369 sbindir
="$ac_optarg" ;;
371 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
372 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
373 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
375 ac_prev
=sharedstatedir
;;
376 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
377 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
378 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
380 sharedstatedir
="$ac_optarg" ;;
382 -site |
--site |
--sit)
384 -site=* |
--site=* |
--sit=*)
387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
390 srcdir
="$ac_optarg" ;;
392 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
393 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
394 ac_prev
=sysconfdir
;;
395 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
396 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
397 sysconfdir
="$ac_optarg" ;;
399 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
401 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
402 target
="$ac_optarg" ;;
404 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
407 -version |
--version |
--versio |
--versi |
--vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* |
--without-*)
425 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
438 |
--x-incl |
--x-inc |
--x-in |
--x-i)
439 ac_prev
=x_includes
;;
440 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
441 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
442 x_includes
="$ac_optarg" ;;
444 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
445 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
446 ac_prev
=x_libraries
;;
447 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
448 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
449 x_libraries
="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE
; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
500 |
--no-cr |
--no-c) ;;
501 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
502 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
503 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest
* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file
=include
/includes.h
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted
=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted
=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE
; then
554 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file
in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp
='$CPP $CPPFLAGS'
577 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling
=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
592 ac_n
= ac_c
='\c' ac_t
=
597 # we want to be compatibe with older versions of Samba
610 # compile with optimisation and without debugging by default
611 CFLAGS
=${CFLAGS-"-O"}
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc
; ac_word
=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC
="$CC" # Let the user override the test.
623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
625 for ac_dir
in $ac_dummy; do
626 test -z "$ac_dir" && ac_dir
=.
627 if test -f $ac_dir/$ac_word; then
636 if test -n "$CC"; then
637 echo "$ac_t""$CC" 1>&6
639 echo "$ac_t""no" 1>&6
642 if test -z "$CC"; then
643 # Extract the first word of "cc", so it can be a program name with args.
644 set dummy cc
; ac_word
=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC
="$CC" # Let the user override the test.
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
656 for ac_dir
in $ac_dummy; do
657 test -z "$ac_dir" && ac_dir
=.
658 if test -f $ac_dir/$ac_word; then
659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
668 if test $ac_prog_rejected = yes; then
669 # We found a bogon in the path, so make sure we never use it.
670 set dummy
$ac_cv_prog_CC
672 if test $# -gt 0; then
673 # We chose a different compiler from the bogus one.
674 # However, it has the same basename, so the bogon will be chosen
675 # first if we set CC to just the basename; use the full file name.
677 set dummy
"$ac_dir/$ac_word" "$@"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
694 # Extract the first word of "cl", so it can be a program name with args.
695 set dummy cl
; ac_word
=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$CC"; then
702 ac_cv_prog_CC
="$CC" # Let the user override the test.
704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
706 for ac_dir
in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir
=.
708 if test -f $ac_dir/$ac_word; then
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp
='$CPP $CPPFLAGS'
734 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling
=$ac_cv_prog_cc_cross
738 cat > conftest.
$ac_ext << EOF
740 #line 741 "configure"
741 #include "confdefs.h"
745 if { (eval echo configure
:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
746 ac_cv_prog_cc_works
=yes
747 # If we can't run a trivial program, we are probably using a cross compiler.
748 if (.
/conftest
; exit) 2>/dev
/null
; then
749 ac_cv_prog_cc_cross
=no
751 ac_cv_prog_cc_cross
=yes
754 echo "configure: failed program was:" >&5
755 cat conftest.
$ac_ext >&5
756 ac_cv_prog_cc_works
=no
760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761 ac_cpp
='$CPP $CPPFLAGS'
762 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764 cross_compiling
=$ac_cv_prog_cc_cross
766 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
767 if test $ac_cv_prog_cc_works = no
; then
768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
772 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
773 cross_compiling
=$ac_cv_prog_cc_cross
775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
776 echo "configure:777: checking whether we are using GNU C" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftest.c
<<EOF
785 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
794 if test $ac_cv_prog_gcc = yes; then
800 ac_test_CFLAGS
="${CFLAGS+set}"
801 ac_save_CFLAGS
="$CFLAGS"
803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 echo 'void f(){}' > conftest.c
809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
819 if test "$ac_test_CFLAGS" = set; then
820 CFLAGS
="$ac_save_CFLAGS"
821 elif test $ac_cv_prog_cc_g = yes; then
822 if test "$GCC" = yes; then
828 if test "$GCC" = yes; then
836 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
837 if test -f $ac_dir/install-sh
; then
839 ac_install_sh
="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh
; then
843 ac_install_sh
="$ac_aux_dir/install.sh -c"
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
850 ac_config_guess
=$ac_aux_dir/config.guess
851 ac_config_sub
=$ac_aux_dir/config.sub
852 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
854 # Find a good install program. We prefer a C program (faster),
855 # so one script is as good as another. But avoid the broken or
856 # incompatible versions:
857 # SysV /etc/install, /usr/sbin/install
858 # SunOS /usr/etc/install
861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
864 # ./install, which can be erroneously created by make from ./install.sh.
865 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
866 echo "configure:867: checking for a BSD compatible install" >&5
867 if test -z "$INSTALL"; then
868 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
872 for ac_dir
in $PATH; do
873 # Account for people who put trailing slashes in PATH elements.
875 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
877 # OSF1 and SCO ODT 3.0 have their own names for install.
878 # Don't use installbsd from OSF since it installs stuff as root
880 for ac_prog
in ginstall scoinst
install; do
881 if test -f $ac_dir/$ac_prog; then
882 if test $ac_prog = install &&
883 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
884 # AIX install. It has an incompatible calling convention.
887 ac_cv_path_install
="$ac_dir/$ac_prog -c"
898 if test "${ac_cv_path_install+set}" = set; then
899 INSTALL
="$ac_cv_path_install"
901 # As a last resort, use the slow shell script. We don't cache a
902 # path for INSTALL within a source directory, because that will
903 # break other packages using the cache if that directory is
904 # removed, or if the path is relative.
905 INSTALL
="$ac_install_sh"
908 echo "$ac_t""$INSTALL" 1>&6
910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
911 # It thinks the first close brace ends the variable substitution.
912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
916 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
918 for ac_prog
in gawk mawk nawk
awk
920 # Extract the first word of "$ac_prog", so it can be a program name with args.
921 set dummy
$ac_prog; ac_word
=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 if test -n "$AWK"; then
928 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
930 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
932 for ac_dir
in $ac_dummy; do
933 test -z "$ac_dir" && ac_dir
=.
934 if test -f $ac_dir/$ac_word; then
935 ac_cv_prog_AWK
="$ac_prog"
942 AWK
="$ac_cv_prog_AWK"
943 if test -n "$AWK"; then
944 echo "$ac_t""$AWK" 1>&6
946 echo "$ac_t""no" 1>&6
949 test -n "$AWK" && break
952 # Check whether --enable-shared or --disable-shared was given.
953 if test "${enable_shared+set}" = set; then
954 enableval
="$enable_shared"
957 yes) enable_shared
=yes ;;
958 no
) enable_shared
=no
;;
961 # Look at the argument we got. We use all the common list separators.
962 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
963 for pkg
in $enableval; do
964 if test "X$pkg" = "X$p"; then
975 # Check whether --enable-static or --disable-static was given.
976 if test "${enable_static+set}" = set; then
977 enableval
="$enable_static"
980 yes) enable_static
=yes ;;
981 no
) enable_static
=no
;;
984 # Look at the argument we got. We use all the common list separators.
985 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
986 for pkg
in $enableval; do
987 if test "X$pkg" = "X$p"; then
998 # Check whether --enable-fast-install or --disable-fast-install was given.
999 if test "${enable_fast_install+set}" = set; then
1000 enableval
="$enable_fast_install"
1001 p
=${PACKAGE-default}
1002 case "$enableval" in
1003 yes) enable_fast_install
=yes ;;
1004 no
) enable_fast_install
=no
;;
1006 enable_fast_install
=no
1007 # Look at the argument we got. We use all the common list separators.
1008 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1009 for pkg
in $enableval; do
1010 if test "X$pkg" = "X$p"; then
1011 enable_fast_install
=yes
1018 enable_fast_install
=yes
1022 # Make sure we can run config.sub.
1023 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1024 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1027 echo $ac_n "checking host system type""... $ac_c" 1>&6
1028 echo "configure:1029: checking host system type" >&5
1031 case "$host_alias" in
1035 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1036 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1038 *) host_alias
=$nonopt ;;
1042 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1043 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046 echo "$ac_t""$host" 1>&6
1048 echo $ac_n "checking build system type""... $ac_c" 1>&6
1049 echo "configure:1050: checking build system type" >&5
1052 case "$build_alias" in
1055 NONE
) build_alias
=$host_alias ;;
1056 *) build_alias
=$nonopt ;;
1060 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1061 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1062 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1063 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 echo "$ac_t""$build" 1>&6
1066 # Extract the first word of "ranlib", so it can be a program name with args.
1067 set dummy ranlib
; ac_word
=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 if test -n "$RANLIB"; then
1074 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1076 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1078 for ac_dir
in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir
=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_prog_RANLIB
="ranlib"
1086 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1089 RANLIB
="$ac_cv_prog_RANLIB"
1090 if test -n "$RANLIB"; then
1091 echo "$ac_t""$RANLIB" 1>&6
1093 echo "$ac_t""no" 1>&6
1096 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1097 if test "${with_gnu_ld+set}" = set; then
1098 withval
="$with_gnu_ld"
1099 test "$withval" = no || with_gnu_ld
=yes
1105 if test "$ac_cv_prog_gcc" = yes; then
1106 # Check if gcc -print-prog-name=ld gives a path.
1107 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1108 echo "configure:1109: checking for ld used by GCC" >&5
1109 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1111 # Accept absolute paths.
1112 [\\/]* |
[A-Za-z
]:[\\/]*)
1113 re_direlt
='/[^/][^/]*/\.\./'
1114 # Canonicalize the path of ld
1115 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1116 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1117 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1119 test -z "$LD" && LD
="$ac_prog"
1122 # If it fails, then pretend we aren't using GCC.
1126 # If it is relative, then search for the first ld in PATH.
1130 elif test "$with_gnu_ld" = yes; then
1131 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1132 echo "configure:1133: checking for GNU ld" >&5
1134 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1135 echo "configure:1136: checking for non-GNU ld" >&5
1137 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 if test -z "$LD"; then
1141 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1142 for ac_dir
in $PATH; do
1143 test -z "$ac_dir" && ac_dir
=.
1144 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1145 ac_cv_path_LD
="$ac_dir/$ac_prog"
1146 # Check to see if the program is GNU ld. I'd rather use --version,
1147 # but apparently some GNU ld's only accept -v.
1148 # Break only if it was the GNU/non-GNU ld that we prefer.
1149 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1150 test "$with_gnu_ld" != no
&& break
1152 test "$with_gnu_ld" != yes && break
1158 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1163 if test -n "$LD"; then
1164 echo "$ac_t""$LD" 1>&6
1166 echo "$ac_t""no" 1>&6
1168 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1169 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1170 echo "configure:1171: checking if the linker ($LD) is GNU ld" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1175 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1176 ac_cv_prog_gnu_ld
=yes
1178 ac_cv_prog_gnu_ld
=no
1182 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1185 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1186 echo "configure:1187: checking for BSD-compatible nm" >&5
1187 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 if test -n "$NM"; then
1191 # Let the user override the test.
1194 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1195 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1196 test -z "$ac_dir" && ac_dir
=.
1197 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1198 # Check to see if the nm accepts a BSD-compat flag.
1199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1200 # nm: unknown option "B" ignored
1201 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1202 ac_cv_path_NM
="$ac_dir/nm -B"
1204 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1205 ac_cv_path_NM
="$ac_dir/nm -p"
1208 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1209 continue # so that we can try to find one that supports BSD flags
1214 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1219 echo "$ac_t""$NM" 1>&6
1221 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ln -s works" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1227 if ln -s X conftestdata
2>/dev
/null
1230 ac_cv_prog_LN_S
="ln -s"
1235 LN_S
="$ac_cv_prog_LN_S"
1236 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1237 echo "$ac_t""yes" 1>&6
1239 echo "$ac_t""no" 1>&6
1244 NONE
) lt_target
="$host" ;;
1245 *) lt_target
="$target" ;;
1248 # Check for any special flags to pass to ltconfig.
1249 libtool_flags
="--cache-file=$cache_file"
1250 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1251 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1252 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1253 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1254 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1257 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1258 if test "${enable_libtool_lock+set}" = set; then
1259 enableval
="$enable_libtool_lock"
1263 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1264 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1266 # Some flags need to be propagated to the compiler or linker for good
1268 case "$lt_target" in
1270 # Find out which ABI we are using.
1271 echo '#line 1272 "configure"' > conftest.
$ac_ext
1272 if { (eval echo configure
:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1273 case "`/usr/bin/file conftest.o`" in
1289 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1290 SAVE_CFLAGS
="$CFLAGS"
1291 CFLAGS
="$CFLAGS -belf"
1292 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether the C compiler needs -belf" >&5
1294 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 cat > conftest.
$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1305 if { (eval echo configure
:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1307 lt_cv_cc_needs_belf
=yes
1309 echo "configure: failed program was:" >&5
1310 cat conftest.
$ac_ext >&5
1312 lt_cv_cc_needs_belf
=no
1317 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1318 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1319 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1320 CFLAGS
="$SAVE_CFLAGS"
1328 # Save cache, so that ltconfig can load it
1329 cat > confcache
<<\EOF
1330 # This file is a shell script that caches the results of configure
1331 # tests run on this system so they can be shared between configure
1332 # scripts and configure runs. It is not useful on other systems.
1333 # If it contains results you don't want to keep, you may remove or edit it.
1335 # By default, configure uses ./config.cache as the cache file,
1336 # creating it if it does not exist already. You can give configure
1337 # the --cache-file=FILE option to use a different cache file; that is
1338 # what configure does when it calls configure scripts in
1339 # subdirectories, so they share the cache.
1340 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1341 # config.status only pays attention to the cache file if you give it the
1342 # --recheck option to rerun configure.
1345 # The following way of writing the cache mishandles newlines in values,
1346 # but we know of no workaround that is simple, portable, and efficient.
1347 # So, don't put newlines in cache variables' values.
1348 # Ultrix sh set writes to stderr and can't be redirected directly,
1349 # and sets the high bit in the cache file unless we assign to the vars.
1351 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1353 # `set' does not quote correctly, so add quotes (double-quote substitution
1354 # turns \\\\ into \\, and sed turns \\ into \).
1356 -e "s/'/'\\\\''/g" \
1357 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1360 # `set' quotes correctly as required by POSIX, so do not add quotes.
1361 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1364 if cmp -s $cache_file confcache
; then
1367 if test -w $cache_file; then
1368 echo "updating cache $cache_file"
1369 cat confcache
> $cache_file
1371 echo "not updating unwritable cache $cache_file"
1377 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1378 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1379 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1380 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1381 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1382 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1383 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1384 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1386 # Reload cache, that may have been modified by ltconfig
1387 if test -r "$cache_file"; then
1388 echo "loading cache $cache_file"
1391 echo "creating cache $cache_file"
1396 # This can be used to rebuild libtool when needed
1397 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1399 # Always use our own libtool.
1400 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1402 # Redirect the config.log output again, so that the ltconfig log is not
1403 # clobbered by the next message.
1404 exec 5>>.
/config.log
1408 if test "x$CC" != xcc
; then
1409 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1410 echo "configure:1411: checking whether $CC and cc understand -c and -o together" >&5
1412 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1413 echo "configure:1414: checking whether cc understands -c and -o together" >&5
1415 set dummy
$CC; ac_cc
="`echo $2 |
1416 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1417 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 echo 'foo(){}' > conftest.c
1421 # Make sure it works both with $CC and with simple cc.
1422 # We do the test twice because some compilers refuse to overwrite an
1423 # existing .o file with -o, though they will create one.
1424 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1425 if { (eval echo configure
:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1426 test -f conftest.o
&& { (eval echo configure
:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1428 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1429 if test "x$CC" != xcc
; then
1430 # Test first that cc exists at all.
1431 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1432 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1433 if { (eval echo configure
:1434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1434 test -f conftest.o
&& { (eval echo configure
:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1439 # cc exists but doesn't like -o.
1440 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1445 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1450 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1453 echo "$ac_t""no" 1>&6
1454 cat >> confdefs.h
<<\EOF
1455 #define NO_MINUS_C_MINUS_O 1
1460 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1467 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1468 echo "configure:1469: checking that the C compiler understands volatile" >&5
1469 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1473 cat > conftest.
$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 #include <sys/types.h>
1481 if { (eval echo configure
:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1483 samba_cv_volatile
=yes
1485 echo "configure: failed program was:" >&5
1486 cat conftest.
$ac_ext >&5
1488 samba_cv_volatile
=no
1493 echo "$ac_t""$samba_cv_volatile" 1>&6
1494 if test x
"$samba_cv_volatile" = x
"yes"; then
1495 cat >> confdefs.h
<<\EOF
1496 #define HAVE_VOLATILE 1
1504 # Do some error checking and defaulting for the host and target type.
1506 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1509 # 1. You are not allowed to specify --host, --target, and nonopt at the
1511 # 2. Host defaults to nonopt.
1512 # 3. If nonopt is not specified, then host defaults to the current host,
1513 # as determined by config.guess.
1514 # 4. Target and build default to nonopt.
1515 # 5. If nonopt is not specified, then target and build default to host.
1517 # The aliases save the names the user supplied, while $host etc.
1518 # will get canonicalized.
1519 case $host---$target---$nonopt in
1520 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1521 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1525 # Make sure we can run config.sub.
1526 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1527 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1530 echo $ac_n "checking host system type""... $ac_c" 1>&6
1531 echo "configure:1532: checking host system type" >&5
1534 case "$host_alias" in
1538 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1539 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1541 *) host_alias
=$nonopt ;;
1545 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1546 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549 echo "$ac_t""$host" 1>&6
1551 echo $ac_n "checking target system type""... $ac_c" 1>&6
1552 echo "configure:1553: checking target system type" >&5
1554 target_alias
=$target
1555 case "$target_alias" in
1558 NONE
) target_alias
=$host_alias ;;
1559 *) target_alias
=$nonopt ;;
1563 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1564 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 echo "$ac_t""$target" 1>&6
1569 echo $ac_n "checking build system type""... $ac_c" 1>&6
1570 echo "configure:1571: checking build system type" >&5
1573 case "$build_alias" in
1576 NONE
) build_alias
=$host_alias ;;
1577 *) build_alias
=$nonopt ;;
1581 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1582 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585 echo "$ac_t""$build" 1>&6
1587 test "$host_alias" != "$target_alias" &&
1588 test "$program_prefix$program_suffix$program_transform_name" = \
1590 program_prefix
=${target_alias}-
1594 *irix
*) cat >> confdefs.h
<<\EOF
1595 #include <standards.h>
1603 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1604 echo "configure:1605: checking config.cache system type" >&5
1605 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1606 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1607 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1608 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1609 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1610 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1611 echo "$ac_t""different" 1>&6
1612 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1614 echo "$ac_t""same" 1>&6
1616 ac_cv_host_system_type
="$host"
1617 ac_cv_build_system_type
="$build"
1618 ac_cv_target_system_type
="$target"
1622 # Config CPPFLAG settings for strange OS's that must be set
1623 # before other tests.
1626 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1628 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1629 echo "configure:1630: checking whether ${CC-cc} accepts -Ae" >&5
1630 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 echo 'void f(){}' > conftest.c
1634 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1635 ac_cv_prog_cc_Ae
=yes
1643 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1644 if test $ac_cv_prog_cc_Ae = yes; then
1645 CPPFLAGS
="$CPPFLAGS -Ae"
1648 # Defines needed for HPUX support.
1649 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1650 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1654 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1655 cat >> confdefs.h
<<\EOF
1656 #define USE_BOTH_CRYPT_CALLS 1
1661 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1662 cat >> confdefs.h
<<\EOF
1663 #define USE_BOTH_CRYPT_CALLS 1
1670 # AIX4.x doesn't even admit to having large
1671 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1674 echo "$ac_t""enabling large file support" 1>&6
1675 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1678 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1679 # to the existance of large files..
1680 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1681 # recommendations on large file support, however it makes the
1682 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1683 # recommendation makes the compile fail on gcc2.7. JRA.
1688 echo "$ac_t""enabling large file support" 1>&6
1689 if test "$ac_cv_prog_gcc" = yes; then
1690 ${CC-cc} -v >conftest.c
2>&1
1691 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1693 case "$ac_cv_gcc_compiler_version_number" in
1694 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1695 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1698 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1702 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1708 # Tests needed for SINIX large file support.
1711 if test $host = mips-sni-sysv4
; then
1712 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1713 echo "configure:1714: checking for LFS support" >&5
1714 old_CPPFLAGS
="$CPPFLAGS"
1715 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1716 if test "$cross_compiling" = yes; then
1717 SINIX_LFS_SUPPORT
=cross
1719 cat > conftest.
$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1725 #if _LFS64_LARGEFILE == 1
1732 if { (eval echo configure
:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1734 SINIX_LFS_SUPPORT
=yes
1736 echo "configure: failed program was:" >&5
1737 cat conftest.
$ac_ext >&5
1739 SINIX_LFS_SUPPORT
=no
1744 CPPFLAGS
="$old_CPPFLAGS"
1745 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1746 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1747 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1748 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1749 LIBS
="`getconf LFS64_LIBS` $LIBS"
1751 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1756 # Tests needed for glibc 2.1 large file support.
1759 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1762 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1763 echo "configure:1764: checking for LFS support" >&5
1764 old_CPPFLAGS
="$CPPFLAGS"
1765 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1766 if test "$cross_compiling" = yes; then
1767 GLIBC_LFS_SUPPORT
=cross
1769 cat > conftest.
$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1775 #if _LFS64_LARGEFILE == 1
1782 if { (eval echo configure
:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1784 GLIBC_LFS_SUPPORT
=yes
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1789 GLIBC_LFS_SUPPORT
=no
1794 CPPFLAGS
="$old_CPPFLAGS"
1795 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1796 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1798 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1803 echo $ac_n "checking for inline""... $ac_c" 1>&6
1804 echo "configure:1805: checking for inline" >&5
1805 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1809 for ac_kw
in inline __inline__ __inline
; do
1810 cat > conftest.
$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1818 if { (eval echo configure
:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1820 ac_cv_c_inline
=$ac_kw; break
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1830 echo "$ac_t""$ac_cv_c_inline" 1>&6
1831 case "$ac_cv_c_inline" in
1833 no
) cat >> confdefs.h
<<\EOF
1837 *) cat >> confdefs.h
<<EOF
1838 #define inline $ac_cv_c_inline
1843 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1844 echo "configure:1845: checking how to run the C preprocessor" >&5
1845 # On Suns, sometimes $CPP names a directory.
1846 if test -n "$CPP" && test -d "$CPP"; then
1849 if test -z "$CPP"; then
1850 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 # This must be in double quotes, not single quotes, because CPP may get
1854 # substituted into the Makefile and "${CC-cc}" will confuse make.
1856 # On the NeXT, cc -E runs the code through the compiler's parser,
1857 # not just through cpp.
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure
:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1871 echo "configure: failed program was:" >&5
1872 cat conftest.
$ac_ext >&5
1874 CPP
="${CC-cc} -E -traditional-cpp"
1875 cat > conftest.
$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1881 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1882 { (eval echo configure
:1883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1883 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1884 if test -z "$ac_err"; then
1888 echo "configure: failed program was:" >&5
1889 cat conftest.
$ac_ext >&5
1891 CPP
="${CC-cc} -nologo -E"
1892 cat > conftest.
$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1898 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1899 { (eval echo configure
:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1900 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1901 if test -z "$ac_err"; then
1905 echo "configure: failed program was:" >&5
1906 cat conftest.
$ac_ext >&5
1915 ac_cv_prog_CPP
="$CPP"
1917 CPP
="$ac_cv_prog_CPP"
1919 ac_cv_prog_CPP
="$CPP"
1921 echo "$ac_t""$CPP" 1>&6
1923 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1924 echo "configure:1925: checking for ANSI C header files" >&5
1925 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1937 { (eval echo configure
:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1938 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1939 if test -z "$ac_err"; then
1941 ac_cv_header_stdc
=yes
1944 echo "configure: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1947 ac_cv_header_stdc
=no
1951 if test $ac_cv_header_stdc = yes; then
1952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1953 cat > conftest.
$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1959 egrep "memchr" >/dev
/null
2>&1; then
1963 ac_cv_header_stdc
=no
1969 if test $ac_cv_header_stdc = yes; then
1970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1971 cat > conftest.
$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1977 egrep "free" >/dev
/null
2>&1; then
1981 ac_cv_header_stdc
=no
1987 if test $ac_cv_header_stdc = yes; then
1988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1989 if test "$cross_compiling" = yes; then
1992 cat > conftest.
$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1996 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1997 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1999 int main () { int i; for (i = 0; i < 256; i++)
2000 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2004 if { (eval echo configure
:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2008 echo "configure: failed program was:" >&5
2009 cat conftest.
$ac_ext >&5
2011 ac_cv_header_stdc
=no
2019 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2020 if test $ac_cv_header_stdc = yes; then
2021 cat >> confdefs.h
<<\EOF
2022 #define STDC_HEADERS 1
2028 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2030 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2031 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2032 echo "configure:2033: checking for $ac_hdr that defines DIR" >&5
2033 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.
$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <sys/types.h>
2045 if { (eval echo configure
:2046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2047 eval "ac_cv_header_dirent_$ac_safe=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.
$ac_ext >&5
2052 eval "ac_cv_header_dirent_$ac_safe=no"
2056 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2057 echo "$ac_t""yes" 1>&6
2058 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2059 cat >> confdefs.h
<<EOF
2060 #define $ac_tr_hdr 1
2062 ac_header_dirent
=$ac_hdr; break
2064 echo "$ac_t""no" 1>&6
2067 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2068 if test $ac_header_dirent = dirent.h
; then
2069 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2070 echo "configure:2071: checking for opendir in -ldir" >&5
2071 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 ac_save_LIBS
="$LIBS"
2077 cat > conftest.
$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 /* Override any gcc2 internal prototype to avoid an error. */
2081 /* We use char because int might match the return type of a gcc2
2082 builtin and then its argument prototype would still apply. */
2089 if { (eval echo configure
:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2091 eval "ac_cv_lib_$ac_lib_var=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.
$ac_ext >&5
2096 eval "ac_cv_lib_$ac_lib_var=no"
2099 LIBS
="$ac_save_LIBS"
2102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2106 echo "$ac_t""no" 1>&6
2110 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2111 echo "configure:2112: checking for opendir in -lx" >&5
2112 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 ac_save_LIBS
="$LIBS"
2118 cat > conftest.
$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 /* Override any gcc2 internal prototype to avoid an error. */
2122 /* We use char because int might match the return type of a gcc2
2123 builtin and then its argument prototype would still apply. */
2130 if { (eval echo configure
:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2132 eval "ac_cv_lib_$ac_lib_var=yes"
2134 echo "configure: failed program was:" >&5
2135 cat conftest.
$ac_ext >&5
2137 eval "ac_cv_lib_$ac_lib_var=no"
2140 LIBS
="$ac_save_LIBS"
2143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2144 echo "$ac_t""yes" 1>&6
2147 echo "$ac_t""no" 1>&6
2152 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2153 echo "configure:2154: checking whether time.h and sys/time.h may both be included" >&5
2154 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 cat > conftest.
$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2160 #include <sys/types.h>
2161 #include <sys/time.h>
2167 if { (eval echo configure
:2168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2169 ac_cv_header_time
=yes
2171 echo "configure: failed program was:" >&5
2172 cat conftest.
$ac_ext >&5
2174 ac_cv_header_time
=no
2179 echo "$ac_t""$ac_cv_header_time" 1>&6
2180 if test $ac_cv_header_time = yes; then
2181 cat >> confdefs.h
<<\EOF
2182 #define TIME_WITH_SYS_TIME 1
2187 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2188 echo "configure:2189: checking for sys/wait.h that is POSIX.1 compatible" >&5
2189 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 #include <sys/types.h>
2196 #include <sys/wait.h>
2198 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2201 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2206 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2209 if { (eval echo configure
:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2211 ac_cv_header_sys_wait_h
=yes
2213 echo "configure: failed program was:" >&5
2214 cat conftest.
$ac_ext >&5
2216 ac_cv_header_sys_wait_h
=no
2221 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2222 if test $ac_cv_header_sys_wait_h = yes; then
2223 cat >> confdefs.h
<<\EOF
2224 #define HAVE_SYS_WAIT_H 1
2229 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2231 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_hdr" >&5
2234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2242 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2243 { (eval echo configure
:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2244 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2245 if test -z "$ac_err"; then
2247 eval "ac_cv_header_$ac_safe=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.
$ac_ext >&5
2253 eval "ac_cv_header_$ac_safe=no"
2257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2259 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2260 cat >> confdefs.h
<<EOF
2261 #define $ac_tr_hdr 1
2265 echo "$ac_t""no" 1>&6
2269 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2271 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2273 echo "configure:2274: checking for $ac_hdr" >&5
2274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.
$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure
:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285 if test -z "$ac_err"; then
2287 eval "ac_cv_header_$ac_safe=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.
$ac_ext >&5
2293 eval "ac_cv_header_$ac_safe=no"
2297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2298 echo "$ac_t""yes" 1>&6
2299 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2300 cat >> confdefs.h
<<EOF
2301 #define $ac_tr_hdr 1
2305 echo "$ac_t""no" 1>&6
2309 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2311 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_hdr" >&5
2314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 cat > conftest.
$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2322 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2323 { (eval echo configure
:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2325 if test -z "$ac_err"; then
2327 eval "ac_cv_header_$ac_safe=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.
$ac_ext >&5
2333 eval "ac_cv_header_$ac_safe=no"
2337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2340 cat >> confdefs.h
<<EOF
2341 #define $ac_tr_hdr 1
2345 echo "$ac_t""no" 1>&6
2349 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2351 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2352 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_hdr" >&5
2354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.
$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2362 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2363 { (eval echo configure
:2364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2364 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2365 if test -z "$ac_err"; then
2367 eval "ac_cv_header_$ac_safe=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.
$ac_ext >&5
2373 eval "ac_cv_header_$ac_safe=no"
2377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2380 cat >> confdefs.h
<<EOF
2381 #define $ac_tr_hdr 1
2385 echo "$ac_t""no" 1>&6
2389 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2391 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2393 echo "configure:2394: checking for $ac_hdr" >&5
2394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2403 { (eval echo configure
:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2405 if test -z "$ac_err"; then
2407 eval "ac_cv_header_$ac_safe=yes"
2410 echo "configure: failed program was:" >&5
2411 cat conftest.
$ac_ext >&5
2413 eval "ac_cv_header_$ac_safe=no"
2417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2418 echo "$ac_t""yes" 1>&6
2419 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2420 cat >> confdefs.h
<<EOF
2421 #define $ac_tr_hdr 1
2425 echo "$ac_t""no" 1>&6
2429 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2431 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2433 echo "configure:2434: checking for $ac_hdr" >&5
2434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 cat > conftest.
$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2442 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2443 { (eval echo configure
:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2444 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2445 if test -z "$ac_err"; then
2447 eval "ac_cv_header_$ac_safe=yes"
2450 echo "configure: failed program was:" >&5
2451 cat conftest.
$ac_ext >&5
2453 eval "ac_cv_header_$ac_safe=no"
2457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2460 cat >> confdefs.h
<<EOF
2461 #define $ac_tr_hdr 1
2465 echo "$ac_t""no" 1>&6
2469 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2471 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_hdr" >&5
2474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2482 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2483 { (eval echo configure
:2484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2484 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2485 if test -z "$ac_err"; then
2487 eval "ac_cv_header_$ac_safe=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.
$ac_ext >&5
2493 eval "ac_cv_header_$ac_safe=no"
2497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2500 cat >> confdefs.h
<<EOF
2501 #define $ac_tr_hdr 1
2505 echo "$ac_t""no" 1>&6
2510 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2511 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2515 cat > conftest.
$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2523 if { (eval echo configure
:2524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2525 ac_cv_header_shadow_h
=yes
2527 echo "configure: failed program was:" >&5
2528 cat conftest.
$ac_ext >&5
2530 ac_cv_header_shadow_h
=no
2533 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2534 cat >> confdefs.h
<<\EOF
2535 #define HAVE_SHADOW_H 1
2541 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2543 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2545 echo "configure:2546: checking for $ac_hdr" >&5
2546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 cat > conftest.
$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2554 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2555 { (eval echo configure
:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2556 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2557 if test -z "$ac_err"; then
2559 eval "ac_cv_header_$ac_safe=yes"
2562 echo "configure: failed program was:" >&5
2563 cat conftest.
$ac_ext >&5
2565 eval "ac_cv_header_$ac_safe=no"
2569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2570 echo "$ac_t""yes" 1>&6
2571 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2572 cat >> confdefs.h
<<EOF
2573 #define $ac_tr_hdr 1
2577 echo "$ac_t""no" 1>&6
2581 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h
2583 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_hdr" >&5
2586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2594 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2595 { (eval echo configure
:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2596 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2597 if test -z "$ac_err"; then
2599 eval "ac_cv_header_$ac_safe=yes"
2602 echo "configure: failed program was:" >&5
2603 cat conftest.
$ac_ext >&5
2605 eval "ac_cv_header_$ac_safe=no"
2609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2610 echo "$ac_t""yes" 1>&6
2611 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2612 cat >> confdefs.h
<<EOF
2613 #define $ac_tr_hdr 1
2617 echo "$ac_t""no" 1>&6
2621 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2623 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_hdr" >&5
2626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.
$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2635 { (eval echo configure
:2636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2637 if test -z "$ac_err"; then
2639 eval "ac_cv_header_$ac_safe=yes"
2642 echo "configure: failed program was:" >&5
2643 cat conftest.
$ac_ext >&5
2645 eval "ac_cv_header_$ac_safe=no"
2649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2652 cat >> confdefs.h
<<EOF
2653 #define $ac_tr_hdr 1
2657 echo "$ac_t""no" 1>&6
2661 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2663 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2665 echo "configure:2666: checking for $ac_hdr" >&5
2666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.
$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2674 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2675 { (eval echo configure
:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2677 if test -z "$ac_err"; then
2679 eval "ac_cv_header_$ac_safe=yes"
2682 echo "configure: failed program was:" >&5
2683 cat conftest.
$ac_ext >&5
2685 eval "ac_cv_header_$ac_safe=no"
2689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2692 cat >> confdefs.h
<<EOF
2693 #define $ac_tr_hdr 1
2697 echo "$ac_t""no" 1>&6
2701 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2703 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2705 echo "configure:2706: checking for $ac_hdr" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 cat > conftest.
$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure
:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 eval "ac_cv_header_$ac_safe=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 eval "ac_cv_header_$ac_safe=no"
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2732 cat >> confdefs.h
<<EOF
2733 #define $ac_tr_hdr 1
2737 echo "$ac_t""no" 1>&6
2742 # For experimental utmp support
2743 for ac_hdr
in utmp.h utmpx.h
2745 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_hdr" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 cat > conftest.
$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2756 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure
:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2761 eval "ac_cv_header_$ac_safe=yes"
2764 echo "configure: failed program was:" >&5
2765 cat conftest.
$ac_ext >&5
2767 eval "ac_cv_header_$ac_safe=no"
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2774 cat >> confdefs.h
<<EOF
2775 #define $ac_tr_hdr 1
2779 echo "$ac_t""no" 1>&6
2784 echo $ac_n "checking size of int""... $ac_c" 1>&6
2785 echo "configure:2786: checking size of int" >&5
2786 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 if test "$cross_compiling" = yes; then
2790 ac_cv_sizeof_int
=cross
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2798 FILE *f=fopen("conftestval", "w");
2800 fprintf(f, "%d\n", sizeof(int));
2804 if { (eval echo configure
:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2806 ac_cv_sizeof_int
=`cat conftestval`
2808 echo "configure: failed program was:" >&5
2809 cat conftest.
$ac_ext >&5
2817 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2818 cat >> confdefs.h
<<EOF
2819 #define SIZEOF_INT $ac_cv_sizeof_int
2823 echo $ac_n "checking size of long""... $ac_c" 1>&6
2824 echo "configure:2825: checking size of long" >&5
2825 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 if test "$cross_compiling" = yes; then
2829 ac_cv_sizeof_long
=cross
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2837 FILE *f=fopen("conftestval", "w");
2839 fprintf(f, "%d\n", sizeof(long));
2843 if { (eval echo configure
:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2845 ac_cv_sizeof_long
=`cat conftestval`
2847 echo "configure: failed program was:" >&5
2848 cat conftest.
$ac_ext >&5
2856 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2857 cat >> confdefs.h
<<EOF
2858 #define SIZEOF_LONG $ac_cv_sizeof_long
2862 echo $ac_n "checking size of short""... $ac_c" 1>&6
2863 echo "configure:2864: checking size of short" >&5
2864 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 if test "$cross_compiling" = yes; then
2868 ac_cv_sizeof_short
=cross
2870 cat > conftest.
$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2876 FILE *f=fopen("conftestval", "w");
2878 fprintf(f, "%d\n", sizeof(short));
2882 if { (eval echo configure
:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2884 ac_cv_sizeof_short
=`cat conftestval`
2886 echo "configure: failed program was:" >&5
2887 cat conftest.
$ac_ext >&5
2889 ac_cv_sizeof_short
=0
2895 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2896 cat >> confdefs.h
<<EOF
2897 #define SIZEOF_SHORT $ac_cv_sizeof_short
2902 echo $ac_n "checking for working const""... $ac_c" 1>&6
2903 echo "configure:2904: checking for working const" >&5
2904 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.
$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2913 /* Ultrix mips cc rejects this. */
2914 typedef int charset[2]; const charset x;
2915 /* SunOS 4.1.1 cc rejects this. */
2916 char const *const *ccp;
2918 /* NEC SVR4.0.2 mips cc rejects this. */
2919 struct point {int x, y;};
2920 static struct point const zero = {0,0};
2921 /* AIX XL C 1.02.0.0 rejects this.
2922 It does not let you subtract one const X* pointer from another in an arm
2923 of an if-expression whose if-part is not a constant expression */
2924 const char *g = "string";
2925 ccp = &g + (g ? g-g : 0);
2926 /* HPUX 7.0 cc rejects these. */
2929 ccp = (char const *const *) p;
2930 { /* SCO 3.2v4 cc rejects this. */
2932 char const *s = 0 ? (char *) 0 : (char const *) 0;
2936 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2938 const int *foo = &x[0];
2941 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2942 typedef const int *iptr;
2946 { /* AIX XL C 1.02.0.0 rejects this saying
2947 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2948 struct s { int j; const int *ap[3]; };
2949 struct s *b; b->j = 5;
2951 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2957 if { (eval echo configure
:2958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2961 echo "configure: failed program was:" >&5
2962 cat conftest.
$ac_ext >&5
2969 echo "$ac_t""$ac_cv_c_const" 1>&6
2970 if test $ac_cv_c_const = no
; then
2971 cat >> confdefs.h
<<\EOF
2977 echo $ac_n "checking for inline""... $ac_c" 1>&6
2978 echo "configure:2979: checking for inline" >&5
2979 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2983 for ac_kw
in inline __inline__ __inline
; do
2984 cat > conftest.
$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2992 if { (eval echo configure
:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2994 ac_cv_c_inline
=$ac_kw; break
2996 echo "configure: failed program was:" >&5
2997 cat conftest.
$ac_ext >&5
3004 echo "$ac_t""$ac_cv_c_inline" 1>&6
3005 case "$ac_cv_c_inline" in
3007 no
) cat >> confdefs.h
<<\EOF
3011 *) cat >> confdefs.h
<<EOF
3012 #define inline $ac_cv_c_inline
3017 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3018 echo "configure:3019: checking whether byte ordering is bigendian" >&5
3019 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 ac_cv_c_bigendian
=unknown
3023 # See if sys/param.h defines the BYTE_ORDER macro.
3024 cat > conftest.
$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 #include <sys/types.h>
3028 #include <sys/param.h>
3031 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3036 if { (eval echo configure
:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3038 # It does; now see whether it defined to BIG_ENDIAN or not.
3039 cat > conftest.
$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 #include <sys/types.h>
3043 #include <sys/param.h>
3046 #if BYTE_ORDER != BIG_ENDIAN
3051 if { (eval echo configure
:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3053 ac_cv_c_bigendian
=yes
3055 echo "configure: failed program was:" >&5
3056 cat conftest.
$ac_ext >&5
3058 ac_cv_c_bigendian
=no
3062 echo "configure: failed program was:" >&5
3063 cat conftest.
$ac_ext >&5
3066 if test $ac_cv_c_bigendian = unknown
; then
3067 if test "$cross_compiling" = yes; then
3068 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3070 cat > conftest.
$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3074 /* Are we little or big endian? From Harbison&Steele. */
3078 char c[sizeof (long)];
3081 exit (u.c[sizeof (long) - 1] == 1);
3084 if { (eval echo configure
:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3086 ac_cv_c_bigendian
=no
3088 echo "configure: failed program was:" >&5
3089 cat conftest.
$ac_ext >&5
3091 ac_cv_c_bigendian
=yes
3099 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3100 if test $ac_cv_c_bigendian = yes; then
3101 cat >> confdefs.h
<<\EOF
3102 #define WORDS_BIGENDIAN 1
3107 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3108 echo "configure:3109: checking whether char is unsigned" >&5
3109 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 if test "$GCC" = yes; then
3113 # GCC predefines this symbol on systems where it applies.
3114 cat > conftest.
$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3117 #ifdef __CHAR_UNSIGNED__
3122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3123 egrep "yes" >/dev
/null
2>&1; then
3125 ac_cv_c_char_unsigned
=yes
3128 ac_cv_c_char_unsigned
=no
3133 if test "$cross_compiling" = yes; then
3134 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3136 cat > conftest.
$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3140 #if !defined(__STDC__) || __STDC__ != 1
3144 volatile char c = 255; exit(c < 0);
3147 if { (eval echo configure
:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3149 ac_cv_c_char_unsigned
=yes
3151 echo "configure: failed program was:" >&5
3152 cat conftest.
$ac_ext >&5
3154 ac_cv_c_char_unsigned
=no
3162 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3163 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3164 cat >> confdefs.h
<<\EOF
3165 #define __CHAR_UNSIGNED__ 1
3171 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3172 echo "configure:3173: checking return type of signal handlers" >&5
3173 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <sys/types.h>
3185 extern "C" void (*signal (int, void (*)(int)))(int);
3187 void (*signal ()) ();
3194 if { (eval echo configure
:3195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 ac_cv_type_signal
=void
3198 echo "configure: failed program was:" >&5
3199 cat conftest.
$ac_ext >&5
3201 ac_cv_type_signal
=int
3206 echo "$ac_t""$ac_cv_type_signal" 1>&6
3207 cat >> confdefs.h
<<EOF
3208 #define RETSIGTYPE $ac_cv_type_signal
3212 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3213 echo "configure:3214: checking for uid_t in sys/types.h" >&5
3214 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.
$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 #include <sys/types.h>
3222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 egrep "uid_t" >/dev
/null
2>&1; then
3225 ac_cv_type_uid_t
=yes
3234 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3235 if test $ac_cv_type_uid_t = no
; then
3236 cat >> confdefs.h
<<\EOF
3240 cat >> confdefs.h
<<\EOF
3246 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3247 echo "configure:3248: checking for mode_t" >&5
3248 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 cat > conftest.
$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <sys/types.h>
3260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3261 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3263 ac_cv_type_mode_t
=yes
3266 ac_cv_type_mode_t
=no
3271 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3272 if test $ac_cv_type_mode_t = no
; then
3273 cat >> confdefs.h
<<\EOF
3279 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3280 echo "configure:3281: checking for off_t" >&5
3281 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 cat > conftest.
$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <sys/types.h>
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3296 ac_cv_type_off_t
=yes
3304 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3305 if test $ac_cv_type_off_t = no
; then
3306 cat >> confdefs.h
<<\EOF
3312 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3313 echo "configure:3314: checking for size_t" >&5
3314 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 cat > conftest.
$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 #include <sys/types.h>
3326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3327 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3329 ac_cv_type_size_t
=yes
3332 ac_cv_type_size_t
=no
3337 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3338 if test $ac_cv_type_size_t = no
; then
3339 cat >> confdefs.h
<<\EOF
3340 #define size_t unsigned
3345 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3346 echo "configure:3347: checking for pid_t" >&5
3347 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 cat > conftest.
$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <sys/types.h>
3359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3360 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3362 ac_cv_type_pid_t
=yes
3370 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3371 if test $ac_cv_type_pid_t = no
; then
3372 cat >> confdefs.h
<<\EOF
3378 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3379 echo "configure:3380: checking for st_rdev in struct stat" >&5
3380 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 cat > conftest.
$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <sys/types.h>
3387 #include <sys/stat.h>
3389 struct stat s; s.st_rdev;
3392 if { (eval echo configure
:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394 ac_cv_struct_st_rdev
=yes
3396 echo "configure: failed program was:" >&5
3397 cat conftest.
$ac_ext >&5
3399 ac_cv_struct_st_rdev
=no
3404 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3405 if test $ac_cv_struct_st_rdev = yes; then
3406 cat >> confdefs.h
<<\EOF
3407 #define HAVE_ST_RDEV 1
3412 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3413 echo "configure:3414: checking for d_off in dirent" >&5
3414 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 cat > conftest.
$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3422 #include <sys/types.h>
3425 struct dirent d; d.d_off;
3428 if { (eval echo configure
:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430 ac_cv_dirent_d_off
=yes
3432 echo "configure: failed program was:" >&5
3433 cat conftest.
$ac_ext >&5
3435 ac_cv_dirent_d_off
=no
3440 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3441 if test $ac_cv_dirent_d_off = yes; then
3442 cat >> confdefs.h
<<\EOF
3443 #define HAVE_DIRENT_D_OFF 1
3448 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3449 echo "configure:3450: checking for ino_t" >&5
3450 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 cat > conftest.
$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 #include <sys/types.h>
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3465 ac_cv_type_ino_t
=yes
3473 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3474 if test $ac_cv_type_ino_t = no
; then
3475 cat >> confdefs.h
<<\EOF
3476 #define ino_t unsigned
3481 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3482 echo "configure:3483: checking for loff_t" >&5
3483 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 cat > conftest.
$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3496 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3498 ac_cv_type_loff_t
=yes
3501 ac_cv_type_loff_t
=no
3506 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3507 if test $ac_cv_type_loff_t = no
; then
3508 cat >> confdefs.h
<<\EOF
3509 #define loff_t off_t
3514 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3515 echo "configure:3516: checking for offset_t" >&5
3516 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 cat > conftest.
$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <sys/types.h>
3528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3529 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3531 ac_cv_type_offset_t
=yes
3534 ac_cv_type_offset_t
=no
3539 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3540 if test $ac_cv_type_offset_t = no
; then
3541 cat >> confdefs.h
<<\EOF
3542 #define offset_t loff_t
3547 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3548 echo "configure:3549: checking for ssize_t" >&5
3549 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 cat > conftest.
$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include <sys/types.h>
3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3564 ac_cv_type_ssize_t
=yes
3567 ac_cv_type_ssize_t
=no
3572 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3573 if test $ac_cv_type_ssize_t = no
; then
3574 cat >> confdefs.h
<<\EOF
3580 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3581 echo "configure:3582: checking for wchar_t" >&5
3582 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 cat > conftest.
$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <sys/types.h>
3594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3595 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3597 ac_cv_type_wchar_t
=yes
3600 ac_cv_type_wchar_t
=no
3605 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3606 if test $ac_cv_type_wchar_t = no
; then
3607 cat >> confdefs.h
<<\EOF
3608 #define wchar_t unsigned short
3614 # we need libcups for CUPS support...
3615 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3616 echo "configure:3617: checking for httpConnect in -lcups" >&5
3617 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 ac_save_LIBS
="$LIBS"
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* Override any gcc2 internal prototype to avoid an error. */
3627 /* We use char because int might match the return type of a gcc2
3628 builtin and then its argument prototype would still apply. */
3635 if { (eval echo configure
:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3637 eval "ac_cv_lib_$ac_lib_var=yes"
3639 echo "configure: failed program was:" >&5
3640 cat conftest.
$ac_ext >&5
3642 eval "ac_cv_lib_$ac_lib_var=no"
3645 LIBS
="$ac_save_LIBS"
3648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3650 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3652 cat >> confdefs.h
<<EOF
3653 #define $ac_tr_lib 1
3659 echo "$ac_t""no" 1>&6
3663 # we need libdl for PAM and the new VFS code
3664 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3665 echo "configure:3666: checking for dlopen in -ldl" >&5
3666 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 ac_save_LIBS
="$LIBS"
3672 cat > conftest.
$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3684 if { (eval echo configure
:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3688 echo "configure: failed program was:" >&5
3689 cat conftest.
$ac_ext >&5
3691 eval "ac_cv_lib_$ac_lib_var=no"
3694 LIBS
="$ac_save_LIBS"
3697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3700 cat >> confdefs.h
<<\EOF
3701 #define HAVE_LIBDL 1
3705 echo "$ac_t""no" 1>&6
3709 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3710 echo "configure:3711: checking for sig_atomic_t type" >&5
3711 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.
$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3719 #include <sys/types.h>
3729 if { (eval echo configure
:3730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3731 samba_cv_sig_atomic_t
=yes
3733 echo "configure: failed program was:" >&5
3734 cat conftest.
$ac_ext >&5
3736 samba_cv_sig_atomic_t
=no
3741 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3742 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3743 cat >> confdefs.h
<<\EOF
3744 #define HAVE_SIG_ATOMIC_T_TYPE 1
3749 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3750 echo "configure:3751: checking for errno in errno.h" >&5
3751 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.
$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3763 if { (eval echo configure
:3764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3767 echo "configure: failed program was:" >&5
3768 cat conftest.
$ac_ext >&5
3770 samba_cv_have_errno
=no
3775 echo "$ac_t""$samba_cv_errno" 1>&6
3776 if test x
"$samba_cv_errno" = x
"yes"; then
3777 cat >> confdefs.h
<<\EOF
3778 #define HAVE_ERRNO_DECL 1
3783 # stupid glibc has the functions but no declaration. grrrr.
3784 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3785 echo "configure:3786: checking for setresuid declaration" >&5
3786 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3795 int i = (int)setresuid
3798 if { (eval echo configure
:3799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3800 samba_cv_have_setresuid_decl
=yes
3802 echo "configure: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3805 samba_cv_have_setresuid_decl
=no
3810 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3811 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3812 cat >> confdefs.h
<<\EOF
3813 #define HAVE_SETRESUID_DECL 1
3818 # stupid glibc has the functions but no declaration. grrrr.
3819 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3820 echo "configure:3821: checking for setresgid declaration" >&5
3821 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3825 cat > conftest.
$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3830 int i = (int)setresgid
3833 if { (eval echo configure
:3834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3835 samba_cv_have_setresgid_decl
=yes
3837 echo "configure: failed program was:" >&5
3838 cat conftest.
$ac_ext >&5
3840 samba_cv_have_setresgid_decl
=no
3845 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3846 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3847 cat >> confdefs.h
<<\EOF
3848 #define HAVE_SETRESGID_DECL 1
3853 # and glibc has setresuid under linux but the function does
3854 # nothing until kernel 2.1.44! very dumb.
3855 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3856 echo "configure:3857: checking for real setresuid" >&5
3857 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3861 if test "$cross_compiling" = yes; then
3862 samba_cv_have_setresuid
=cross
3864 cat > conftest.
$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3868 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3870 if { (eval echo configure
:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3872 samba_cv_have_setresuid
=yes
3874 echo "configure: failed program was:" >&5
3875 cat conftest.
$ac_ext >&5
3877 samba_cv_have_setresuid
=no
3884 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3885 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3886 cat >> confdefs.h
<<\EOF
3887 #define HAVE_SETRESUID 1
3892 # Do the same check for setresguid...
3894 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3895 echo "configure:3896: checking for real setresgid" >&5
3896 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3900 if test "$cross_compiling" = yes; then
3901 samba_cv_have_setresgid
=cross
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3908 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3910 if { (eval echo configure
:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3912 samba_cv_have_setresgid
=yes
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3917 samba_cv_have_setresgid
=no
3924 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3925 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
3926 cat >> confdefs.h
<<\EOF
3927 #define HAVE_SETRESGID 1
3932 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3933 echo "configure:3934: checking for 8-bit clean memcmp" >&5
3934 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3937 if test "$cross_compiling" = yes; then
3938 ac_cv_func_memcmp_clean
=no
3940 cat > conftest.
$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3946 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3947 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3951 if { (eval echo configure
:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3953 ac_cv_func_memcmp_clean
=yes
3955 echo "configure: failed program was:" >&5
3956 cat conftest.
$ac_ext >&5
3958 ac_cv_func_memcmp_clean
=no
3965 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3966 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
3969 ###############################################
3970 # test for where we get crypt() from
3971 for ac_func
in crypt
3973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3974 echo "configure:3975: checking for $ac_func" >&5
3975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.
$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 /* System header to define __stub macros and hopefully few prototypes,
3982 which can conflict with char $ac_func(); below. */
3984 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3991 /* The GNU C library defines this for functions which it implements
3992 to always fail with ENOSYS. Some functions are actually named
3993 something starting with __ and the normal name is an alias. */
3994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4002 if { (eval echo configure
:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4004 eval "ac_cv_func_$ac_func=yes"
4006 echo "configure: failed program was:" >&5
4007 cat conftest.
$ac_ext >&5
4009 eval "ac_cv_func_$ac_func=no"
4014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4016 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4017 cat >> confdefs.h
<<EOF
4018 #define $ac_tr_func 1
4022 echo "$ac_t""no" 1>&6
4026 if test x
"$ac_cv_func_crypt" = x
"no"; then
4027 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4028 echo "configure:4029: checking for crypt in -lcrypt" >&5
4029 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 ac_save_LIBS
="$LIBS"
4034 LIBS
="-lcrypt $LIBS"
4035 cat > conftest.
$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 /* Override any gcc2 internal prototype to avoid an error. */
4039 /* We use char because int might match the return type of a gcc2
4040 builtin and then its argument prototype would still apply. */
4047 if { (eval echo configure
:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4049 eval "ac_cv_lib_$ac_lib_var=yes"
4051 echo "configure: failed program was:" >&5
4052 cat conftest.
$ac_ext >&5
4054 eval "ac_cv_lib_$ac_lib_var=no"
4057 LIBS
="$ac_save_LIBS"
4060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 LIBS
="$LIBS -lcrypt";
4063 cat >> confdefs.h
<<\EOF
4064 #define HAVE_CRYPT 1
4068 echo "$ac_t""no" 1>&6
4074 ###############################################
4075 # test for where we get readline() from
4076 if test "$ac_cv_header_readline_h" = "yes" ||
4077 test "$ac_cv_header_readline_readline_h" = "yes"; then
4078 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4079 echo "configure:4080: checking for readline in -lreadline" >&5
4080 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 ac_save_LIBS
="$LIBS"
4085 LIBS
="-lreadline $LIBS"
4086 cat > conftest.
$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4089 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4098 if { (eval echo configure
:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4100 eval "ac_cv_lib_$ac_lib_var=yes"
4102 echo "configure: failed program was:" >&5
4103 cat conftest.
$ac_ext >&5
4105 eval "ac_cv_lib_$ac_lib_var=no"
4108 LIBS
="$ac_save_LIBS"
4111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4112 echo "$ac_t""yes" 1>&6
4113 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4115 cat >> confdefs.h
<<EOF
4116 #define $ac_tr_lib 1
4119 LIBS
="-lreadline $LIBS"
4122 echo "$ac_t""no" 1>&6
4128 # The following test taken from the cvs sources
4129 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4130 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4131 # libsocket.so which has a bad implementation of gethostbyname (it
4132 # only looks in /etc/hosts), so we only look for -lsocket if we need
4134 for ac_func
in connect
4136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4137 echo "configure:4138: checking for $ac_func" >&5
4138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4141 cat > conftest.
$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* System header to define __stub macros and hopefully few prototypes,
4145 which can conflict with char $ac_func(); below. */
4147 /* Override any gcc2 internal prototype to avoid an error. */
4148 /* We use char because int might match the return type of a gcc2
4149 builtin and then its argument prototype would still apply. */
4154 /* The GNU C library defines this for functions which it implements
4155 to always fail with ENOSYS. Some functions are actually named
4156 something starting with __ and the normal name is an alias. */
4157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4165 if { (eval echo configure
:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4167 eval "ac_cv_func_$ac_func=yes"
4169 echo "configure: failed program was:" >&5
4170 cat conftest.
$ac_ext >&5
4172 eval "ac_cv_func_$ac_func=no"
4177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4178 echo "$ac_t""yes" 1>&6
4179 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4180 cat >> confdefs.h
<<EOF
4181 #define $ac_tr_func 1
4185 echo "$ac_t""no" 1>&6
4189 if test x
"$ac_cv_func_connect" = x
"no"; then
4192 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4193 echo "configure:4194: checking for printf in -lnsl_s" >&5
4194 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 ac_save_LIBS
="$LIBS"
4199 LIBS
="-lnsl_s $LIBS"
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 /* Override any gcc2 internal prototype to avoid an error. */
4204 /* We use char because int might match the return type of a gcc2
4205 builtin and then its argument prototype would still apply. */
4212 if { (eval echo configure
:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4214 eval "ac_cv_lib_$ac_lib_var=yes"
4216 echo "configure: failed program was:" >&5
4217 cat conftest.
$ac_ext >&5
4219 eval "ac_cv_lib_$ac_lib_var=no"
4222 LIBS
="$ac_save_LIBS"
4225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4226 echo "$ac_t""yes" 1>&6
4227 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4229 cat >> confdefs.h
<<EOF
4230 #define $ac_tr_lib 1
4233 LIBS
="-lnsl_s $LIBS"
4236 echo "$ac_t""no" 1>&6
4242 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4243 echo "configure:4244: checking for printf in -lnsl" >&5
4244 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_save_LIBS
="$LIBS"
4250 cat > conftest.
$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4262 if { (eval echo configure
:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4264 eval "ac_cv_lib_$ac_lib_var=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.
$ac_ext >&5
4269 eval "ac_cv_lib_$ac_lib_var=no"
4272 LIBS
="$ac_save_LIBS"
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4277 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4278 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4279 cat >> confdefs.h
<<EOF
4280 #define $ac_tr_lib 1
4286 echo "$ac_t""no" 1>&6
4292 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4293 echo "configure:4294: checking for connect in -lsocket" >&5
4294 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 ac_save_LIBS
="$LIBS"
4299 LIBS
="-lsocket $LIBS"
4300 cat > conftest.
$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4303 /* Override any gcc2 internal prototype to avoid an error. */
4304 /* We use char because int might match the return type of a gcc2
4305 builtin and then its argument prototype would still apply. */
4312 if { (eval echo configure
:4313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4314 eval "ac_cv_lib_$ac_lib_var=yes"
4316 echo "configure: failed program was:" >&5
4317 cat conftest.
$ac_ext >&5
4319 eval "ac_cv_lib_$ac_lib_var=no"
4322 LIBS
="$ac_save_LIBS"
4325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4326 echo "$ac_t""yes" 1>&6
4327 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4329 cat >> confdefs.h
<<EOF
4330 #define $ac_tr_lib 1
4333 LIBS
="-lsocket $LIBS"
4336 echo "$ac_t""no" 1>&6
4342 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4343 echo "configure:4344: checking for connect in -linet" >&5
4344 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 ac_save_LIBS
="$LIBS"
4350 cat > conftest.
$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 /* Override any gcc2 internal prototype to avoid an error. */
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4362 if { (eval echo configure
:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4364 eval "ac_cv_lib_$ac_lib_var=yes"
4366 echo "configure: failed program was:" >&5
4367 cat conftest.
$ac_ext >&5
4369 eval "ac_cv_lib_$ac_lib_var=no"
4372 LIBS
="$ac_save_LIBS"
4375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4377 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4378 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4379 cat >> confdefs.h
<<EOF
4380 #define $ac_tr_lib 1
4386 echo "$ac_t""no" 1>&6
4390 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4391 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4392 # ac_cv_func_connect=yes
4393 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4394 cat >> confdefs.h
<<\EOF
4395 #define HAVE_CONNECT 1
4401 # Check if we have execl, if not we need to compile smbrun.
4402 for ac_func
in execl
4404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4405 echo "configure:4406: checking for $ac_func" >&5
4406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 cat > conftest.
$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* System header to define __stub macros and hopefully few prototypes,
4413 which can conflict with char $ac_func(); below. */
4415 /* Override any gcc2 internal prototype to avoid an error. */
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4422 /* The GNU C library defines this for functions which it implements
4423 to always fail with ENOSYS. Some functions are actually named
4424 something starting with __ and the normal name is an alias. */
4425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4433 if { (eval echo configure
:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4435 eval "ac_cv_func_$ac_func=yes"
4437 echo "configure: failed program was:" >&5
4438 cat conftest.
$ac_ext >&5
4440 eval "ac_cv_func_$ac_func=no"
4445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4446 echo "$ac_t""yes" 1>&6
4447 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4448 cat >> confdefs.h
<<EOF
4449 #define $ac_tr_func 1
4453 echo "$ac_t""no" 1>&6
4457 if test x
"$ac_cv_func_execl" = x
"no"; then
4458 RUNPROG
="bin/smbrun"
4463 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4466 echo "configure:4467: checking for $ac_func" >&5
4467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 cat > conftest.
$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* System header to define __stub macros and hopefully few prototypes,
4474 which can conflict with char $ac_func(); below. */
4476 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4483 /* The GNU C library defines this for functions which it implements
4484 to always fail with ENOSYS. Some functions are actually named
4485 something starting with __ and the normal name is an alias. */
4486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4494 if { (eval echo configure
:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4496 eval "ac_cv_func_$ac_func=yes"
4498 echo "configure: failed program was:" >&5
4499 cat conftest.
$ac_ext >&5
4501 eval "ac_cv_func_$ac_func=no"
4506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4507 echo "$ac_t""yes" 1>&6
4508 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4509 cat >> confdefs.h
<<EOF
4510 #define $ac_tr_func 1
4514 echo "$ac_t""no" 1>&6
4518 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_func" >&5
4522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4525 cat > conftest.
$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 /* System header to define __stub macros and hopefully few prototypes,
4529 which can conflict with char $ac_func(); below. */
4531 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4538 /* The GNU C library defines this for functions which it implements
4539 to always fail with ENOSYS. Some functions are actually named
4540 something starting with __ and the normal name is an alias. */
4541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4549 if { (eval echo configure
:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4551 eval "ac_cv_func_$ac_func=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.
$ac_ext >&5
4556 eval "ac_cv_func_$ac_func=no"
4561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4564 cat >> confdefs.h
<<EOF
4565 #define $ac_tr_func 1
4569 echo "$ac_t""no" 1>&6
4573 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_func" >&5
4577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 cat > conftest.
$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 /* System header to define __stub macros and hopefully few prototypes,
4584 which can conflict with char $ac_func(); below. */
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4593 /* The GNU C library defines this for functions which it implements
4594 to always fail with ENOSYS. Some functions are actually named
4595 something starting with __ and the normal name is an alias. */
4596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4604 if { (eval echo configure
:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4606 eval "ac_cv_func_$ac_func=yes"
4608 echo "configure: failed program was:" >&5
4609 cat conftest.
$ac_ext >&5
4611 eval "ac_cv_func_$ac_func=no"
4616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4618 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4619 cat >> confdefs.h
<<EOF
4620 #define $ac_tr_func 1
4624 echo "$ac_t""no" 1>&6
4628 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4631 echo "configure:4632: checking for $ac_func" >&5
4632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4635 cat > conftest.
$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4638 /* System header to define __stub macros and hopefully few prototypes,
4639 which can conflict with char $ac_func(); below. */
4641 /* Override any gcc2 internal prototype to avoid an error. */
4642 /* We use char because int might match the return type of a gcc2
4643 builtin and then its argument prototype would still apply. */
4648 /* The GNU C library defines this for functions which it implements
4649 to always fail with ENOSYS. Some functions are actually named
4650 something starting with __ and the normal name is an alias. */
4651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4659 if { (eval echo configure
:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4661 eval "ac_cv_func_$ac_func=yes"
4663 echo "configure: failed program was:" >&5
4664 cat conftest.
$ac_ext >&5
4666 eval "ac_cv_func_$ac_func=no"
4671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4674 cat >> confdefs.h
<<EOF
4675 #define $ac_tr_func 1
4679 echo "$ac_t""no" 1>&6
4683 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
4685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4686 echo "configure:4687: checking for $ac_func" >&5
4687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 cat > conftest.
$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 /* System header to define __stub macros and hopefully few prototypes,
4694 which can conflict with char $ac_func(); below. */
4696 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4703 /* The GNU C library defines this for functions which it implements
4704 to always fail with ENOSYS. Some functions are actually named
4705 something starting with __ and the normal name is an alias. */
4706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4714 if { (eval echo configure
:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4716 eval "ac_cv_func_$ac_func=yes"
4718 echo "configure: failed program was:" >&5
4719 cat conftest.
$ac_ext >&5
4721 eval "ac_cv_func_$ac_func=no"
4726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4727 echo "$ac_t""yes" 1>&6
4728 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4729 cat >> confdefs.h
<<EOF
4730 #define $ac_tr_func 1
4734 echo "$ac_t""no" 1>&6
4738 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4741 echo "configure:4742: checking for $ac_func" >&5
4742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4745 cat > conftest.
$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4748 /* System header to define __stub macros and hopefully few prototypes,
4749 which can conflict with char $ac_func(); below. */
4751 /* Override any gcc2 internal prototype to avoid an error. */
4752 /* We use char because int might match the return type of a gcc2
4753 builtin and then its argument prototype would still apply. */
4758 /* The GNU C library defines this for functions which it implements
4759 to always fail with ENOSYS. Some functions are actually named
4760 something starting with __ and the normal name is an alias. */
4761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4769 if { (eval echo configure
:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4771 eval "ac_cv_func_$ac_func=yes"
4773 echo "configure: failed program was:" >&5
4774 cat conftest.
$ac_ext >&5
4776 eval "ac_cv_func_$ac_func=no"
4781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4782 echo "$ac_t""yes" 1>&6
4783 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4784 cat >> confdefs.h
<<EOF
4785 #define $ac_tr_func 1
4789 echo "$ac_t""no" 1>&6
4793 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4796 echo "configure:4797: checking for $ac_func" >&5
4797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 cat > conftest.
$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4803 /* System header to define __stub macros and hopefully few prototypes,
4804 which can conflict with char $ac_func(); below. */
4806 /* Override any gcc2 internal prototype to avoid an error. */
4807 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */
4813 /* The GNU C library defines this for functions which it implements
4814 to always fail with ENOSYS. Some functions are actually named
4815 something starting with __ and the normal name is an alias. */
4816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4824 if { (eval echo configure
:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4826 eval "ac_cv_func_$ac_func=yes"
4828 echo "configure: failed program was:" >&5
4829 cat conftest.
$ac_ext >&5
4831 eval "ac_cv_func_$ac_func=no"
4836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4838 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4839 cat >> confdefs.h
<<EOF
4840 #define $ac_tr_func 1
4844 echo "$ac_t""no" 1>&6
4848 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4851 echo "configure:4852: checking for $ac_func" >&5
4852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 cat > conftest.
$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 /* System header to define __stub macros and hopefully few prototypes,
4859 which can conflict with char $ac_func(); below. */
4861 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4868 /* The GNU C library defines this for functions which it implements
4869 to always fail with ENOSYS. Some functions are actually named
4870 something starting with __ and the normal name is an alias. */
4871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4879 if { (eval echo configure
:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4881 eval "ac_cv_func_$ac_func=yes"
4883 echo "configure: failed program was:" >&5
4884 cat conftest.
$ac_ext >&5
4886 eval "ac_cv_func_$ac_func=no"
4891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4894 cat >> confdefs.h
<<EOF
4895 #define $ac_tr_func 1
4899 echo "$ac_t""no" 1>&6
4903 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
4905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_func" >&5
4907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 cat > conftest.
$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* System header to define __stub macros and hopefully few prototypes,
4914 which can conflict with char $ac_func(); below. */
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4934 if { (eval echo configure
:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4936 eval "ac_cv_func_$ac_func=yes"
4938 echo "configure: failed program was:" >&5
4939 cat conftest.
$ac_ext >&5
4941 eval "ac_cv_func_$ac_func=no"
4946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4947 echo "$ac_t""yes" 1>&6
4948 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4949 cat >> confdefs.h
<<EOF
4950 #define $ac_tr_func 1
4954 echo "$ac_t""no" 1>&6
4959 # syscall() is needed for smbwrapper.
4960 for ac_func
in syscall
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.
$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971 which can conflict with char $ac_func(); below. */
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4991 if { (eval echo configure
:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4993 eval "ac_cv_func_$ac_func=yes"
4995 echo "configure: failed program was:" >&5
4996 cat conftest.
$ac_ext >&5
4998 eval "ac_cv_func_$ac_func=no"
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5006 cat >> confdefs.h
<<EOF
5007 #define $ac_tr_func 1
5011 echo "$ac_t""no" 1>&6
5016 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5019 echo "configure:5020: checking for $ac_func" >&5
5020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5023 cat > conftest.
$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027 which can conflict with char $ac_func(); below. */
5029 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5036 /* The GNU C library defines this for functions which it implements
5037 to always fail with ENOSYS. Some functions are actually named
5038 something starting with __ and the normal name is an alias. */
5039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5047 if { (eval echo configure
:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5049 eval "ac_cv_func_$ac_func=yes"
5051 echo "configure: failed program was:" >&5
5052 cat conftest.
$ac_ext >&5
5054 eval "ac_cv_func_$ac_func=no"
5059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5061 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5062 cat >> confdefs.h
<<EOF
5063 #define $ac_tr_func 1
5067 echo "$ac_t""no" 1>&6
5071 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5074 echo "configure:5075: checking for $ac_func" >&5
5075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5078 cat > conftest.
$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5081 /* System header to define __stub macros and hopefully few prototypes,
5082 which can conflict with char $ac_func(); below. */
5084 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5091 /* The GNU C library defines this for functions which it implements
5092 to always fail with ENOSYS. Some functions are actually named
5093 something starting with __ and the normal name is an alias. */
5094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5102 if { (eval echo configure
:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5104 eval "ac_cv_func_$ac_func=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.
$ac_ext >&5
5109 eval "ac_cv_func_$ac_func=no"
5114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5115 echo "$ac_t""yes" 1>&6
5116 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5117 cat >> confdefs.h
<<EOF
5118 #define $ac_tr_func 1
5122 echo "$ac_t""no" 1>&6
5126 for ac_func
in __getcwd _getcwd
5128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5129 echo "configure:5130: checking for $ac_func" >&5
5130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 cat > conftest.
$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 /* System header to define __stub macros and hopefully few prototypes,
5137 which can conflict with char $ac_func(); below. */
5139 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5146 /* The GNU C library defines this for functions which it implements
5147 to always fail with ENOSYS. Some functions are actually named
5148 something starting with __ and the normal name is an alias. */
5149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5157 if { (eval echo configure
:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5159 eval "ac_cv_func_$ac_func=yes"
5161 echo "configure: failed program was:" >&5
5162 cat conftest.
$ac_ext >&5
5164 eval "ac_cv_func_$ac_func=no"
5169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5170 echo "$ac_t""yes" 1>&6
5171 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5172 cat >> confdefs.h
<<EOF
5173 #define $ac_tr_func 1
5177 echo "$ac_t""no" 1>&6
5181 for ac_func
in __xstat __fxstat __lxstat
5183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5184 echo "configure:5185: checking for $ac_func" >&5
5185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 cat > conftest.
$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func(); below. */
5194 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5201 /* The GNU C library defines this for functions which it implements
5202 to always fail with ENOSYS. Some functions are actually named
5203 something starting with __ and the normal name is an alias. */
5204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5212 if { (eval echo configure
:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5214 eval "ac_cv_func_$ac_func=yes"
5216 echo "configure: failed program was:" >&5
5217 cat conftest.
$ac_ext >&5
5219 eval "ac_cv_func_$ac_func=no"
5224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5225 echo "$ac_t""yes" 1>&6
5226 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5227 cat >> confdefs.h
<<EOF
5228 #define $ac_tr_func 1
5232 echo "$ac_t""no" 1>&6
5236 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5239 echo "configure:5240: checking for $ac_func" >&5
5240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5243 cat > conftest.
$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5246 /* System header to define __stub macros and hopefully few prototypes,
5247 which can conflict with char $ac_func(); below. */
5249 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5256 /* The GNU C library defines this for functions which it implements
5257 to always fail with ENOSYS. Some functions are actually named
5258 something starting with __ and the normal name is an alias. */
5259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5267 if { (eval echo configure
:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5269 eval "ac_cv_func_$ac_func=yes"
5271 echo "configure: failed program was:" >&5
5272 cat conftest.
$ac_ext >&5
5274 eval "ac_cv_func_$ac_func=no"
5279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5280 echo "$ac_t""yes" 1>&6
5281 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5282 cat >> confdefs.h
<<EOF
5283 #define $ac_tr_func 1
5287 echo "$ac_t""no" 1>&6
5291 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5294 echo "configure:5295: checking for $ac_func" >&5
5295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5298 cat > conftest.
$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 /* System header to define __stub macros and hopefully few prototypes,
5302 which can conflict with char $ac_func(); below. */
5304 /* Override any gcc2 internal prototype to avoid an error. */
5305 /* We use char because int might match the return type of a gcc2
5306 builtin and then its argument prototype would still apply. */
5311 /* The GNU C library defines this for functions which it implements
5312 to always fail with ENOSYS. Some functions are actually named
5313 something starting with __ and the normal name is an alias. */
5314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5322 if { (eval echo configure
:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5324 eval "ac_cv_func_$ac_func=yes"
5326 echo "configure: failed program was:" >&5
5327 cat conftest.
$ac_ext >&5
5329 eval "ac_cv_func_$ac_func=no"
5334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5335 echo "$ac_t""yes" 1>&6
5336 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5337 cat >> confdefs.h
<<EOF
5338 #define $ac_tr_func 1
5342 echo "$ac_t""no" 1>&6
5346 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_func" >&5
5350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 cat > conftest.
$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 /* System header to define __stub macros and hopefully few prototypes,
5357 which can conflict with char $ac_func(); below. */
5359 /* Override any gcc2 internal prototype to avoid an error. */
5360 /* We use char because int might match the return type of a gcc2
5361 builtin and then its argument prototype would still apply. */
5366 /* The GNU C library defines this for functions which it implements
5367 to always fail with ENOSYS. Some functions are actually named
5368 something starting with __ and the normal name is an alias. */
5369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5377 if { (eval echo configure
:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5379 eval "ac_cv_func_$ac_func=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.
$ac_ext >&5
5384 eval "ac_cv_func_$ac_func=no"
5389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5391 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5392 cat >> confdefs.h
<<EOF
5393 #define $ac_tr_func 1
5397 echo "$ac_t""no" 1>&6
5401 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5404 echo "configure:5405: checking for $ac_func" >&5
5405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5408 cat > conftest.
$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 /* System header to define __stub macros and hopefully few prototypes,
5412 which can conflict with char $ac_func(); below. */
5414 /* Override any gcc2 internal prototype to avoid an error. */
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5421 /* The GNU C library defines this for functions which it implements
5422 to always fail with ENOSYS. Some functions are actually named
5423 something starting with __ and the normal name is an alias. */
5424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5432 if { (eval echo configure
:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5434 eval "ac_cv_func_$ac_func=yes"
5436 echo "configure: failed program was:" >&5
5437 cat conftest.
$ac_ext >&5
5439 eval "ac_cv_func_$ac_func=no"
5444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5445 echo "$ac_t""yes" 1>&6
5446 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5447 cat >> confdefs.h
<<EOF
5448 #define $ac_tr_func 1
5452 echo "$ac_t""no" 1>&6
5456 for ac_func
in _write __write _fork __fork
5458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5459 echo "configure:5460: checking for $ac_func" >&5
5460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5463 cat > conftest.
$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 /* System header to define __stub macros and hopefully few prototypes,
5467 which can conflict with char $ac_func(); below. */
5469 /* Override any gcc2 internal prototype to avoid an error. */
5470 /* We use char because int might match the return type of a gcc2
5471 builtin and then its argument prototype would still apply. */
5476 /* The GNU C library defines this for functions which it implements
5477 to always fail with ENOSYS. Some functions are actually named
5478 something starting with __ and the normal name is an alias. */
5479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5487 if { (eval echo configure
:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5489 eval "ac_cv_func_$ac_func=yes"
5491 echo "configure: failed program was:" >&5
5492 cat conftest.
$ac_ext >&5
5494 eval "ac_cv_func_$ac_func=no"
5499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5500 echo "$ac_t""yes" 1>&6
5501 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5502 cat >> confdefs.h
<<EOF
5503 #define $ac_tr_func 1
5507 echo "$ac_t""no" 1>&6
5511 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5514 echo "configure:5515: checking for $ac_func" >&5
5515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5518 cat > conftest.
$ac_ext <<EOF
5519 #line 5520 "configure"
5520 #include "confdefs.h"
5521 /* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char $ac_func(); below. */
5524 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5531 /* The GNU C library defines this for functions which it implements
5532 to always fail with ENOSYS. Some functions are actually named
5533 something starting with __ and the normal name is an alias. */
5534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5542 if { (eval echo configure
:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5544 eval "ac_cv_func_$ac_func=yes"
5546 echo "configure: failed program was:" >&5
5547 cat conftest.
$ac_ext >&5
5549 eval "ac_cv_func_$ac_func=no"
5554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5556 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5557 cat >> confdefs.h
<<EOF
5558 #define $ac_tr_func 1
5562 echo "$ac_t""no" 1>&6
5566 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5569 echo "configure:5570: checking for $ac_func" >&5
5570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5573 cat > conftest.
$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5576 /* System header to define __stub macros and hopefully few prototypes,
5577 which can conflict with char $ac_func(); below. */
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 /* We use char because int might match the return type of a gcc2
5581 builtin and then its argument prototype would still apply. */
5586 /* The GNU C library defines this for functions which it implements
5587 to always fail with ENOSYS. Some functions are actually named
5588 something starting with __ and the normal name is an alias. */
5589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5597 if { (eval echo configure
:5598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5599 eval "ac_cv_func_$ac_func=yes"
5601 echo "configure: failed program was:" >&5
5602 cat conftest.
$ac_ext >&5
5604 eval "ac_cv_func_$ac_func=no"
5609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5610 echo "$ac_t""yes" 1>&6
5611 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5612 cat >> confdefs.h
<<EOF
5613 #define $ac_tr_func 1
5617 echo "$ac_t""no" 1>&6
5621 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
5623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5624 echo "configure:5625: checking for $ac_func" >&5
5625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5628 cat > conftest.
$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5631 /* System header to define __stub macros and hopefully few prototypes,
5632 which can conflict with char $ac_func(); below. */
5634 /* Override any gcc2 internal prototype to avoid an error. */
5635 /* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5641 /* The GNU C library defines this for functions which it implements
5642 to always fail with ENOSYS. Some functions are actually named
5643 something starting with __ and the normal name is an alias. */
5644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5652 if { (eval echo configure
:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5654 eval "ac_cv_func_$ac_func=yes"
5656 echo "configure: failed program was:" >&5
5657 cat conftest.
$ac_ext >&5
5659 eval "ac_cv_func_$ac_func=no"
5664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5667 cat >> confdefs.h
<<EOF
5668 #define $ac_tr_func 1
5672 echo "$ac_t""no" 1>&6
5676 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5679 echo "configure:5680: checking for $ac_func" >&5
5680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 cat > conftest.
$ac_ext <<EOF
5684 #line 5685 "configure"
5685 #include "confdefs.h"
5686 /* System header to define __stub macros and hopefully few prototypes,
5687 which can conflict with char $ac_func(); below. */
5689 /* Override any gcc2 internal prototype to avoid an error. */
5690 /* We use char because int might match the return type of a gcc2
5691 builtin and then its argument prototype would still apply. */
5696 /* The GNU C library defines this for functions which it implements
5697 to always fail with ENOSYS. Some functions are actually named
5698 something starting with __ and the normal name is an alias. */
5699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5707 if { (eval echo configure
:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5709 eval "ac_cv_func_$ac_func=yes"
5711 echo "configure: failed program was:" >&5
5712 cat conftest.
$ac_ext >&5
5714 eval "ac_cv_func_$ac_func=no"
5719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5720 echo "$ac_t""yes" 1>&6
5721 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5722 cat >> confdefs.h
<<EOF
5723 #define $ac_tr_func 1
5727 echo "$ac_t""no" 1>&6
5731 for ac_func
in open64 _open64 __open64 creat64
5733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5734 echo "configure:5735: checking for $ac_func" >&5
5735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5738 cat > conftest.
$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char $ac_func(); below. */
5744 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5751 /* The GNU C library defines this for functions which it implements
5752 to always fail with ENOSYS. Some functions are actually named
5753 something starting with __ and the normal name is an alias. */
5754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5762 if { (eval echo configure
:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5764 eval "ac_cv_func_$ac_func=yes"
5766 echo "configure: failed program was:" >&5
5767 cat conftest.
$ac_ext >&5
5769 eval "ac_cv_func_$ac_func=no"
5774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5775 echo "$ac_t""yes" 1>&6
5776 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5777 cat >> confdefs.h
<<EOF
5778 #define $ac_tr_func 1
5782 echo "$ac_t""no" 1>&6
5788 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5791 if test x
$ac_cv_func_stat64 = xno
; then
5792 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5793 echo "configure:5794: checking for stat64 in <sys/stat.h>" >&5
5794 cat > conftest.
$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5798 #if defined(HAVE_UNISTD_H)
5801 #include <sys/stat.h>
5804 struct stat64 st64; exit(stat64(".",&st64));
5807 if { (eval echo configure
:5808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5809 ac_cv_func_stat64
=yes
5811 echo "configure: failed program was:" >&5
5812 cat conftest.
$ac_ext >&5
5815 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5816 if test x
$ac_cv_func_stat64 = xyes
; then
5817 cat >> confdefs.h
<<\EOF
5818 #define HAVE_STAT64 1
5824 if test x
$ac_cv_func_lstat64 = xno
; then
5825 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5826 echo "configure:5827: checking for lstat64 in <sys/stat.h>" >&5
5827 cat > conftest.
$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5831 #if defined(HAVE_UNISTD_H)
5834 #include <sys/stat.h>
5837 struct stat64 st64; exit(lstat64(".",&st64));
5840 if { (eval echo configure
:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5842 ac_cv_func_lstat64
=yes
5844 echo "configure: failed program was:" >&5
5845 cat conftest.
$ac_ext >&5
5848 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5849 if test x
$ac_cv_func_lstat64 = xyes
; then
5850 cat >> confdefs.h
<<\EOF
5851 #define HAVE_LSTAT64 1
5857 if test x
$ac_cv_func_fstat64 = xno
; then
5858 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5859 echo "configure:5860: checking for fstat64 in <sys/stat.h>" >&5
5860 cat > conftest.
$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5864 #if defined(HAVE_UNISTD_H)
5867 #include <sys/stat.h>
5870 struct stat64 st64; exit(fstat64(0,&st64));
5873 if { (eval echo configure
:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5875 ac_cv_func_fstat64
=yes
5877 echo "configure: failed program was:" >&5
5878 cat conftest.
$ac_ext >&5
5881 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5882 if test x
$ac_cv_func_fstat64 = xyes
; then
5883 cat >> confdefs.h
<<\EOF
5884 #define HAVE_FSTAT64 1
5891 # If no strcasecmp, check for it in some known places
5892 # It is in -lresolv on ReliantUNIX and UnixWare
5893 # -lresolve *must* follow -lnsl for name resolution to work properly
5896 if test x
$ac_cv_func_strcasecmp = xno
; then
5897 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5898 echo "configure:5899: checking for strcasecmp in -lresolv" >&5
5899 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5903 ac_save_LIBS
="$LIBS"
5904 LIBS
="-lresolv $LIBS"
5905 cat > conftest.
$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5917 if { (eval echo configure
:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5919 eval "ac_cv_lib_$ac_lib_var=yes"
5921 echo "configure: failed program was:" >&5
5922 cat conftest.
$ac_ext >&5
5924 eval "ac_cv_lib_$ac_lib_var=no"
5927 LIBS
="$ac_save_LIBS"
5930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5932 LIBS
="$LIBS -lresolv"
5933 cat >> confdefs.h
<<\EOF
5934 #define HAVE_STRCASECMP 1
5938 echo "$ac_t""no" 1>&6
5944 # Check for the functions putprpwnam, set_auth_parameters,
5945 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5946 # Needed for OSF1 and HPUX.
5950 *-lsecurity*) for ac_func
in putprpwnam
5952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5953 echo "configure:5954: checking for $ac_func" >&5
5954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5957 cat > conftest.
$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func(); below. */
5963 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5970 /* The GNU C library defines this for functions which it implements
5971 to always fail with ENOSYS. Some functions are actually named
5972 something starting with __ and the normal name is an alias. */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5981 if { (eval echo configure
:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5983 eval "ac_cv_func_$ac_func=yes"
5985 echo "configure: failed program was:" >&5
5986 cat conftest.
$ac_ext >&5
5988 eval "ac_cv_func_$ac_func=no"
5993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5995 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5996 cat >> confdefs.h
<<EOF
5997 #define $ac_tr_func 1
6001 echo "$ac_t""no" 1>&6
6005 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6006 echo "configure:6007: checking for putprpwnam in -lsecurity" >&5
6007 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6
6011 ac_save_LIBS
="$LIBS"
6012 LIBS
="-lsecurity $LIBS"
6013 cat > conftest.
$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6016 /* Override any gcc2 internal prototype to avoid an error. */
6017 /* We use char because int might match the return type of a gcc2
6018 builtin and then its argument prototype would still apply. */
6025 if { (eval echo configure
:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6027 eval "ac_cv_lib_$ac_lib_var=yes"
6029 echo "configure: failed program was:" >&5
6030 cat conftest.
$ac_ext >&5
6032 eval "ac_cv_lib_$ac_lib_var=no"
6035 LIBS
="$ac_save_LIBS"
6038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6039 echo "$ac_t""yes" 1>&6
6040 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6042 cat >> confdefs.h
<<EOF
6043 #define $ac_tr_lib 1
6046 LIBS
="-lsecurity $LIBS"
6049 echo "$ac_t""no" 1>&6
6052 for ac_func
in putprpwnam
6054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_func" >&5
6056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 cat > conftest.
$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char $ac_func(); below. */
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6072 /* The GNU C library defines this for functions which it implements
6073 to always fail with ENOSYS. Some functions are actually named
6074 something starting with __ and the normal name is an alias. */
6075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6083 if { (eval echo configure
:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6085 eval "ac_cv_func_$ac_func=yes"
6087 echo "configure: failed program was:" >&5
6088 cat conftest.
$ac_ext >&5
6090 eval "ac_cv_func_$ac_func=no"
6095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6096 echo "$ac_t""yes" 1>&6
6097 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6098 cat >> confdefs.h
<<EOF
6099 #define $ac_tr_func 1
6103 echo "$ac_t""no" 1>&6
6111 *-lsec*) for ac_func
in putprpwnam
6113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6114 echo "configure:6115: checking for $ac_func" >&5
6115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6118 cat > conftest.
$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 /* System header to define __stub macros and hopefully few prototypes,
6122 which can conflict with char $ac_func(); below. */
6124 /* Override any gcc2 internal prototype to avoid an error. */
6125 /* We use char because int might match the return type of a gcc2
6126 builtin and then its argument prototype would still apply. */
6131 /* The GNU C library defines this for functions which it implements
6132 to always fail with ENOSYS. Some functions are actually named
6133 something starting with __ and the normal name is an alias. */
6134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6142 if { (eval echo configure
:6143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6144 eval "ac_cv_func_$ac_func=yes"
6146 echo "configure: failed program was:" >&5
6147 cat conftest.
$ac_ext >&5
6149 eval "ac_cv_func_$ac_func=no"
6154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6157 cat >> confdefs.h
<<EOF
6158 #define $ac_tr_func 1
6162 echo "$ac_t""no" 1>&6
6166 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6167 echo "configure:6168: checking for putprpwnam in -lsec" >&5
6168 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6172 ac_save_LIBS
="$LIBS"
6174 cat > conftest.
$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6177 /* Override any gcc2 internal prototype to avoid an error. */
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6186 if { (eval echo configure
:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6188 eval "ac_cv_lib_$ac_lib_var=yes"
6190 echo "configure: failed program was:" >&5
6191 cat conftest.
$ac_ext >&5
6193 eval "ac_cv_lib_$ac_lib_var=no"
6196 LIBS
="$ac_save_LIBS"
6199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6203 cat >> confdefs.h
<<EOF
6204 #define $ac_tr_lib 1
6210 echo "$ac_t""no" 1>&6
6213 for ac_func
in putprpwnam
6215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_func" >&5
6217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 cat > conftest.
$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 if { (eval echo configure
:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6246 eval "ac_cv_func_$ac_func=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.
$ac_ext >&5
6251 eval "ac_cv_func_$ac_func=no"
6256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6259 cat >> confdefs.h
<<EOF
6260 #define $ac_tr_func 1
6264 echo "$ac_t""no" 1>&6
6273 *-lsecurity*) for ac_func
in set_auth_parameters
6275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6276 echo "configure:6277: checking for $ac_func" >&5
6277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6280 cat > conftest.
$ac_ext <<EOF
6281 #line 6282 "configure"
6282 #include "confdefs.h"
6283 /* System header to define __stub macros and hopefully few prototypes,
6284 which can conflict with char $ac_func(); below. */
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6293 /* The GNU C library defines this for functions which it implements
6294 to always fail with ENOSYS. Some functions are actually named
6295 something starting with __ and the normal name is an alias. */
6296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6304 if { (eval echo configure
:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6306 eval "ac_cv_func_$ac_func=yes"
6308 echo "configure: failed program was:" >&5
6309 cat conftest.
$ac_ext >&5
6311 eval "ac_cv_func_$ac_func=no"
6316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6318 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6319 cat >> confdefs.h
<<EOF
6320 #define $ac_tr_func 1
6324 echo "$ac_t""no" 1>&6
6328 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6329 echo "configure:6330: checking for set_auth_parameters in -lsecurity" >&5
6330 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 ac_save_LIBS
="$LIBS"
6335 LIBS
="-lsecurity $LIBS"
6336 cat > conftest.
$ac_ext <<EOF
6337 #line 6338 "configure"
6338 #include "confdefs.h"
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6342 char set_auth_parameters();
6345 set_auth_parameters()
6348 if { (eval echo configure
:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6350 eval "ac_cv_lib_$ac_lib_var=yes"
6352 echo "configure: failed program was:" >&5
6353 cat conftest.
$ac_ext >&5
6355 eval "ac_cv_lib_$ac_lib_var=no"
6358 LIBS
="$ac_save_LIBS"
6361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6362 echo "$ac_t""yes" 1>&6
6363 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6364 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6365 cat >> confdefs.h
<<EOF
6366 #define $ac_tr_lib 1
6369 LIBS
="-lsecurity $LIBS"
6372 echo "$ac_t""no" 1>&6
6375 for ac_func
in set_auth_parameters
6377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_func" >&5
6379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 cat > conftest.
$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6385 /* System header to define __stub macros and hopefully few prototypes,
6386 which can conflict with char $ac_func(); below. */
6388 /* Override any gcc2 internal prototype to avoid an error. */
6389 /* We use char because int might match the return type of a gcc2
6390 builtin and then its argument prototype would still apply. */
6395 /* The GNU C library defines this for functions which it implements
6396 to always fail with ENOSYS. Some functions are actually named
6397 something starting with __ and the normal name is an alias. */
6398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6406 if { (eval echo configure
:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6408 eval "ac_cv_func_$ac_func=yes"
6410 echo "configure: failed program was:" >&5
6411 cat conftest.
$ac_ext >&5
6413 eval "ac_cv_func_$ac_func=no"
6418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6420 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6421 cat >> confdefs.h
<<EOF
6422 #define $ac_tr_func 1
6426 echo "$ac_t""no" 1>&6
6434 *-lsec*) for ac_func
in set_auth_parameters
6436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_func" >&5
6438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 cat > conftest.
$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char $ac_func(); below. */
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6465 if { (eval echo configure
:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6467 eval "ac_cv_func_$ac_func=yes"
6469 echo "configure: failed program was:" >&5
6470 cat conftest.
$ac_ext >&5
6472 eval "ac_cv_func_$ac_func=no"
6477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6479 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6480 cat >> confdefs.h
<<EOF
6481 #define $ac_tr_func 1
6485 echo "$ac_t""no" 1>&6
6489 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6490 echo "configure:6491: checking for set_auth_parameters in -lsec" >&5
6491 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6495 ac_save_LIBS
="$LIBS"
6497 cat > conftest.
$ac_ext <<EOF
6498 #line 6499 "configure"
6499 #include "confdefs.h"
6500 /* Override any gcc2 internal prototype to avoid an error. */
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503 char set_auth_parameters();
6506 set_auth_parameters()
6509 if { (eval echo configure
:6510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6511 eval "ac_cv_lib_$ac_lib_var=yes"
6513 echo "configure: failed program was:" >&5
6514 cat conftest.
$ac_ext >&5
6516 eval "ac_cv_lib_$ac_lib_var=no"
6519 LIBS
="$ac_save_LIBS"
6522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6523 echo "$ac_t""yes" 1>&6
6524 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6526 cat >> confdefs.h
<<EOF
6527 #define $ac_tr_lib 1
6533 echo "$ac_t""no" 1>&6
6536 for ac_func
in set_auth_parameters
6538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6539 echo "configure:6540: checking for $ac_func" >&5
6540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6543 cat > conftest.
$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* System header to define __stub macros and hopefully few prototypes,
6547 which can conflict with char $ac_func(); below. */
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6556 /* The GNU C library defines this for functions which it implements
6557 to always fail with ENOSYS. Some functions are actually named
6558 something starting with __ and the normal name is an alias. */
6559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6567 if { (eval echo configure
:6568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6569 eval "ac_cv_func_$ac_func=yes"
6571 echo "configure: failed program was:" >&5
6572 cat conftest.
$ac_ext >&5
6574 eval "ac_cv_func_$ac_func=no"
6579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6581 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6582 cat >> confdefs.h
<<EOF
6583 #define $ac_tr_func 1
6587 echo "$ac_t""no" 1>&6
6595 # UnixWare 7.x has its getspnam in -lgen
6597 *-lgen*) for ac_func
in getspnam
6599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6600 echo "configure:6601: checking for $ac_func" >&5
6601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6604 cat > conftest.
$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607 /* System header to define __stub macros and hopefully few prototypes,
6608 which can conflict with char $ac_func(); below. */
6610 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6617 /* The GNU C library defines this for functions which it implements
6618 to always fail with ENOSYS. Some functions are actually named
6619 something starting with __ and the normal name is an alias. */
6620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6628 if { (eval echo configure
:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6630 eval "ac_cv_func_$ac_func=yes"
6632 echo "configure: failed program was:" >&5
6633 cat conftest.
$ac_ext >&5
6635 eval "ac_cv_func_$ac_func=no"
6640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6641 echo "$ac_t""yes" 1>&6
6642 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6643 cat >> confdefs.h
<<EOF
6644 #define $ac_tr_func 1
6648 echo "$ac_t""no" 1>&6
6652 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6653 echo "configure:6654: checking for getspnam in -lgen" >&5
6654 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 ac_save_LIBS
="$LIBS"
6660 cat > conftest.
$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6672 if { (eval echo configure
:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6674 eval "ac_cv_lib_$ac_lib_var=yes"
6676 echo "configure: failed program was:" >&5
6677 cat conftest.
$ac_ext >&5
6679 eval "ac_cv_lib_$ac_lib_var=no"
6682 LIBS
="$ac_save_LIBS"
6685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6686 echo "$ac_t""yes" 1>&6
6687 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6688 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6689 cat >> confdefs.h
<<EOF
6690 #define $ac_tr_lib 1
6696 echo "$ac_t""no" 1>&6
6699 for ac_func
in getspnam
6701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_func" >&5
6703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 cat > conftest.
$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* System header to define __stub macros and hopefully few prototypes,
6710 which can conflict with char $ac_func(); below. */
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6719 /* The GNU C library defines this for functions which it implements
6720 to always fail with ENOSYS. Some functions are actually named
6721 something starting with __ and the normal name is an alias. */
6722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6730 if { (eval echo configure
:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6732 eval "ac_cv_func_$ac_func=yes"
6734 echo "configure: failed program was:" >&5
6735 cat conftest.
$ac_ext >&5
6737 eval "ac_cv_func_$ac_func=no"
6742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6743 echo "$ac_t""yes" 1>&6
6744 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6745 cat >> confdefs.h
<<EOF
6746 #define $ac_tr_func 1
6750 echo "$ac_t""no" 1>&6
6759 *-lsecurity*) for ac_func
in getspnam
6761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6762 echo "configure:6763: checking for $ac_func" >&5
6763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 cat > conftest.
$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* System header to define __stub macros and hopefully few prototypes,
6770 which can conflict with char $ac_func(); below. */
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6779 /* The GNU C library defines this for functions which it implements
6780 to always fail with ENOSYS. Some functions are actually named
6781 something starting with __ and the normal name is an alias. */
6782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6790 if { (eval echo configure
:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6792 eval "ac_cv_func_$ac_func=yes"
6794 echo "configure: failed program was:" >&5
6795 cat conftest.
$ac_ext >&5
6797 eval "ac_cv_func_$ac_func=no"
6802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6803 echo "$ac_t""yes" 1>&6
6804 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6805 cat >> confdefs.h
<<EOF
6806 #define $ac_tr_func 1
6810 echo "$ac_t""no" 1>&6
6814 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6815 echo "configure:6816: checking for getspnam in -lsecurity" >&5
6816 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6820 ac_save_LIBS
="$LIBS"
6821 LIBS
="-lsecurity $LIBS"
6822 cat > conftest.
$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6834 if { (eval echo configure
:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6836 eval "ac_cv_lib_$ac_lib_var=yes"
6838 echo "configure: failed program was:" >&5
6839 cat conftest.
$ac_ext >&5
6841 eval "ac_cv_lib_$ac_lib_var=no"
6844 LIBS
="$ac_save_LIBS"
6847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6848 echo "$ac_t""yes" 1>&6
6849 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6851 cat >> confdefs.h
<<EOF
6852 #define $ac_tr_lib 1
6855 LIBS
="-lsecurity $LIBS"
6858 echo "$ac_t""no" 1>&6
6861 for ac_func
in getspnam
6863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6864 echo "configure:6865: checking for $ac_func" >&5
6865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6868 cat > conftest.
$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func(); below. */
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6881 /* The GNU C library defines this for functions which it implements
6882 to always fail with ENOSYS. Some functions are actually named
6883 something starting with __ and the normal name is an alias. */
6884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6892 if { (eval echo configure
:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6894 eval "ac_cv_func_$ac_func=yes"
6896 echo "configure: failed program was:" >&5
6897 cat conftest.
$ac_ext >&5
6899 eval "ac_cv_func_$ac_func=no"
6904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6905 echo "$ac_t""yes" 1>&6
6906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6907 cat >> confdefs.h
<<EOF
6908 #define $ac_tr_func 1
6912 echo "$ac_t""no" 1>&6
6920 *-lsec*) for ac_func
in getspnam
6922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6923 echo "configure:6924: checking for $ac_func" >&5
6924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6927 cat > conftest.
$ac_ext <<EOF
6928 #line 6929 "configure"
6929 #include "confdefs.h"
6930 /* System header to define __stub macros and hopefully few prototypes,
6931 which can conflict with char $ac_func(); below. */
6933 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6940 /* The GNU C library defines this for functions which it implements
6941 to always fail with ENOSYS. Some functions are actually named
6942 something starting with __ and the normal name is an alias. */
6943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6951 if { (eval echo configure
:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6953 eval "ac_cv_func_$ac_func=yes"
6955 echo "configure: failed program was:" >&5
6956 cat conftest.
$ac_ext >&5
6958 eval "ac_cv_func_$ac_func=no"
6963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6964 echo "$ac_t""yes" 1>&6
6965 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6966 cat >> confdefs.h
<<EOF
6967 #define $ac_tr_func 1
6971 echo "$ac_t""no" 1>&6
6975 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6976 echo "configure:6977: checking for getspnam in -lsec" >&5
6977 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6981 ac_save_LIBS
="$LIBS"
6983 cat > conftest.
$ac_ext <<EOF
6984 #line 6985 "configure"
6985 #include "confdefs.h"
6986 /* Override any gcc2 internal prototype to avoid an error. */
6987 /* We use char because int might match the return type of a gcc2
6988 builtin and then its argument prototype would still apply. */
6995 if { (eval echo configure
:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6997 eval "ac_cv_lib_$ac_lib_var=yes"
6999 echo "configure: failed program was:" >&5
7000 cat conftest.
$ac_ext >&5
7002 eval "ac_cv_lib_$ac_lib_var=no"
7005 LIBS
="$ac_save_LIBS"
7008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7009 echo "$ac_t""yes" 1>&6
7010 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7012 cat >> confdefs.h
<<EOF
7013 #define $ac_tr_lib 1
7019 echo "$ac_t""no" 1>&6
7022 for ac_func
in getspnam
7024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7025 echo "configure:7026: checking for $ac_func" >&5
7026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 cat > conftest.
$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char $ac_func(); below. */
7035 /* Override any gcc2 internal prototype to avoid an error. */
7036 /* We use char because int might match the return type of a gcc2
7037 builtin and then its argument prototype would still apply. */
7042 /* The GNU C library defines this for functions which it implements
7043 to always fail with ENOSYS. Some functions are actually named
7044 something starting with __ and the normal name is an alias. */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7053 if { (eval echo configure
:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7055 eval "ac_cv_func_$ac_func=yes"
7057 echo "configure: failed program was:" >&5
7058 cat conftest.
$ac_ext >&5
7060 eval "ac_cv_func_$ac_func=no"
7065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7067 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7068 cat >> confdefs.h
<<EOF
7069 #define $ac_tr_func 1
7073 echo "$ac_t""no" 1>&6
7082 *-lsecurity*) for ac_func
in bigcrypt
7084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7085 echo "configure:7086: checking for $ac_func" >&5
7086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 cat > conftest.
$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7092 /* System header to define __stub macros and hopefully few prototypes,
7093 which can conflict with char $ac_func(); below. */
7095 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7102 /* The GNU C library defines this for functions which it implements
7103 to always fail with ENOSYS. Some functions are actually named
7104 something starting with __ and the normal name is an alias. */
7105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7113 if { (eval echo configure
:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7115 eval "ac_cv_func_$ac_func=yes"
7117 echo "configure: failed program was:" >&5
7118 cat conftest.
$ac_ext >&5
7120 eval "ac_cv_func_$ac_func=no"
7125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7128 cat >> confdefs.h
<<EOF
7129 #define $ac_tr_func 1
7133 echo "$ac_t""no" 1>&6
7137 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7138 echo "configure:7139: checking for bigcrypt in -lsecurity" >&5
7139 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 ac_save_LIBS
="$LIBS"
7144 LIBS
="-lsecurity $LIBS"
7145 cat > conftest.
$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* Override any gcc2 internal prototype to avoid an error. */
7149 /* We use char because int might match the return type of a gcc2
7150 builtin and then its argument prototype would still apply. */
7157 if { (eval echo configure
:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7159 eval "ac_cv_lib_$ac_lib_var=yes"
7161 echo "configure: failed program was:" >&5
7162 cat conftest.
$ac_ext >&5
7164 eval "ac_cv_lib_$ac_lib_var=no"
7167 LIBS
="$ac_save_LIBS"
7170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7174 cat >> confdefs.h
<<EOF
7175 #define $ac_tr_lib 1
7178 LIBS
="-lsecurity $LIBS"
7181 echo "$ac_t""no" 1>&6
7184 for ac_func
in bigcrypt
7186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7187 echo "configure:7188: checking for $ac_func" >&5
7188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7191 cat > conftest.
$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* System header to define __stub macros and hopefully few prototypes,
7195 which can conflict with char $ac_func(); below. */
7197 /* Override any gcc2 internal prototype to avoid an error. */
7198 /* We use char because int might match the return type of a gcc2
7199 builtin and then its argument prototype would still apply. */
7204 /* The GNU C library defines this for functions which it implements
7205 to always fail with ENOSYS. Some functions are actually named
7206 something starting with __ and the normal name is an alias. */
7207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7215 if { (eval echo configure
:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7217 eval "ac_cv_func_$ac_func=yes"
7219 echo "configure: failed program was:" >&5
7220 cat conftest.
$ac_ext >&5
7222 eval "ac_cv_func_$ac_func=no"
7227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7230 cat >> confdefs.h
<<EOF
7231 #define $ac_tr_func 1
7235 echo "$ac_t""no" 1>&6
7243 *-lsec*) for ac_func
in bigcrypt
7245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7246 echo "configure:7247: checking for $ac_func" >&5
7247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7250 cat > conftest.
$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7253 /* System header to define __stub macros and hopefully few prototypes,
7254 which can conflict with char $ac_func(); below. */
7256 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7274 if { (eval echo configure
:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7276 eval "ac_cv_func_$ac_func=yes"
7278 echo "configure: failed program was:" >&5
7279 cat conftest.
$ac_ext >&5
7281 eval "ac_cv_func_$ac_func=no"
7286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7289 cat >> confdefs.h
<<EOF
7290 #define $ac_tr_func 1
7294 echo "$ac_t""no" 1>&6
7298 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7299 echo "configure:7300: checking for bigcrypt in -lsec" >&5
7300 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7304 ac_save_LIBS
="$LIBS"
7306 cat > conftest.
$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 /* Override any gcc2 internal prototype to avoid an error. */
7310 /* We use char because int might match the return type of a gcc2
7311 builtin and then its argument prototype would still apply. */
7318 if { (eval echo configure
:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7320 eval "ac_cv_lib_$ac_lib_var=yes"
7322 echo "configure: failed program was:" >&5
7323 cat conftest.
$ac_ext >&5
7325 eval "ac_cv_lib_$ac_lib_var=no"
7328 LIBS
="$ac_save_LIBS"
7331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7332 echo "$ac_t""yes" 1>&6
7333 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7335 cat >> confdefs.h
<<EOF
7336 #define $ac_tr_lib 1
7342 echo "$ac_t""no" 1>&6
7345 for ac_func
in bigcrypt
7347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7348 echo "configure:7349: checking for $ac_func" >&5
7349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7352 cat > conftest.
$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 /* System header to define __stub macros and hopefully few prototypes,
7356 which can conflict with char $ac_func(); below. */
7358 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7365 /* The GNU C library defines this for functions which it implements
7366 to always fail with ENOSYS. Some functions are actually named
7367 something starting with __ and the normal name is an alias. */
7368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7376 if { (eval echo configure
:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7378 eval "ac_cv_func_$ac_func=yes"
7380 echo "configure: failed program was:" >&5
7381 cat conftest.
$ac_ext >&5
7383 eval "ac_cv_func_$ac_func=no"
7388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7389 echo "$ac_t""yes" 1>&6
7390 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7391 cat >> confdefs.h
<<EOF
7392 #define $ac_tr_func 1
7396 echo "$ac_t""no" 1>&6
7405 *-lsecurity*) for ac_func
in getprpwnam
7407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7408 echo "configure:7409: checking for $ac_func" >&5
7409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7412 cat > conftest.
$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7415 /* System header to define __stub macros and hopefully few prototypes,
7416 which can conflict with char $ac_func(); below. */
7418 /* Override any gcc2 internal prototype to avoid an error. */
7419 /* We use char because int might match the return type of a gcc2
7420 builtin and then its argument prototype would still apply. */
7425 /* The GNU C library defines this for functions which it implements
7426 to always fail with ENOSYS. Some functions are actually named
7427 something starting with __ and the normal name is an alias. */
7428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7436 if { (eval echo configure
:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7438 eval "ac_cv_func_$ac_func=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.
$ac_ext >&5
7443 eval "ac_cv_func_$ac_func=no"
7448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7450 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7451 cat >> confdefs.h
<<EOF
7452 #define $ac_tr_func 1
7456 echo "$ac_t""no" 1>&6
7460 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7461 echo "configure:7462: checking for getprpwnam in -lsecurity" >&5
7462 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7466 ac_save_LIBS
="$LIBS"
7467 LIBS
="-lsecurity $LIBS"
7468 cat > conftest.
$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7480 if { (eval echo configure
:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7482 eval "ac_cv_lib_$ac_lib_var=yes"
7484 echo "configure: failed program was:" >&5
7485 cat conftest.
$ac_ext >&5
7487 eval "ac_cv_lib_$ac_lib_var=no"
7490 LIBS
="$ac_save_LIBS"
7493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7497 cat >> confdefs.h
<<EOF
7498 #define $ac_tr_lib 1
7501 LIBS
="-lsecurity $LIBS"
7504 echo "$ac_t""no" 1>&6
7507 for ac_func
in getprpwnam
7509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_func" >&5
7511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 cat > conftest.
$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 /* System header to define __stub macros and hopefully few prototypes,
7518 which can conflict with char $ac_func(); below. */
7520 /* Override any gcc2 internal prototype to avoid an error. */
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7527 /* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7538 if { (eval echo configure
:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7540 eval "ac_cv_func_$ac_func=yes"
7542 echo "configure: failed program was:" >&5
7543 cat conftest.
$ac_ext >&5
7545 eval "ac_cv_func_$ac_func=no"
7550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7553 cat >> confdefs.h
<<EOF
7554 #define $ac_tr_func 1
7558 echo "$ac_t""no" 1>&6
7566 *-lsec*) for ac_func
in getprpwnam
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7573 cat > conftest.
$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7597 if { (eval echo configure
:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7599 eval "ac_cv_func_$ac_func=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 eval "ac_cv_func_$ac_func=no"
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h
<<EOF
7613 #define $ac_tr_func 1
7617 echo "$ac_t""no" 1>&6
7621 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7622 echo "configure:7623: checking for getprpwnam in -lsec" >&5
7623 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 ac_save_LIBS
="$LIBS"
7629 cat > conftest.
$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7641 if { (eval echo configure
:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7643 eval "ac_cv_lib_$ac_lib_var=yes"
7645 echo "configure: failed program was:" >&5
7646 cat conftest.
$ac_ext >&5
7648 eval "ac_cv_lib_$ac_lib_var=no"
7651 LIBS
="$ac_save_LIBS"
7654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7658 cat >> confdefs.h
<<EOF
7659 #define $ac_tr_lib 1
7665 echo "$ac_t""no" 1>&6
7668 for ac_func
in getprpwnam
7670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7671 echo "configure:7672: checking for $ac_func" >&5
7672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 cat > conftest.
$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func(); below. */
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7699 if { (eval echo configure
:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7701 eval "ac_cv_func_$ac_func=yes"
7703 echo "configure: failed program was:" >&5
7704 cat conftest.
$ac_ext >&5
7706 eval "ac_cv_func_$ac_func=no"
7711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7714 cat >> confdefs.h
<<EOF
7715 #define $ac_tr_func 1
7719 echo "$ac_t""no" 1>&6
7727 # this bit needs to be modified for each OS that is suported by
7728 # smbwrapper. You need to specify how to created a shared library and
7729 # how to compile C code to produce PIC object files
7731 # these are the defaults, good for lots of systems
7737 # and these are for particular systems
7739 *linux
*) cat >> confdefs.h
<<\EOF
7743 *solaris
*) cat >> confdefs.h
<<\EOF
7749 *sunos
*) cat >> confdefs.h
<<\EOF
7755 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7757 *irix
*) cat >> confdefs.h
<<\EOF
7762 *irix6
*) cat >> confdefs.h
<<\EOF
7768 ATTEMPT_WRAP32_BUILD
=yes
7770 *aix
*) cat >> confdefs.h
<<\EOF
7774 *hpux
*) cat >> confdefs.h
<<\EOF
7779 # Use special PIC flags for the native HP-UX compiler.
7780 if test $ac_cv_prog_cc_Ae = yes; then
7785 *qnx
*) cat >> confdefs.h
<<\EOF
7789 *osf
*) cat >> confdefs.h
<<\EOF
7793 *sco
*) cat >> confdefs.h
<<\EOF
7797 *next2
*) cat >> confdefs.h
<<\EOF
7801 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
7802 set dummy
groff; ac_word
=$2
7803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_word" >&5
7805 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7808 if test -n "$ROFF"; then
7809 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
7811 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7813 for ac_dir
in $ac_dummy; do
7814 test -z "$ac_dir" && ac_dir
=.
7815 if test -f $ac_dir/$ac_word; then
7816 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
7823 ROFF
="$ac_cv_prog_ROFF"
7824 if test -n "$ROFF"; then
7825 echo "$ac_t""$ROFF" 1>&6
7827 echo "$ac_t""no" 1>&6
7832 *-univel-*) if test "$GCC" != yes ; then
7833 cat >> confdefs.h
<<\EOF
7834 #define HAVE_MEMSET 1
7840 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
7841 #define RELIANTUNIX 1
7847 if test "$GCC" != yes ; then
7848 cat >> confdefs.h
<<\EOF
7849 #define HAVE_MEMSET 1
7857 # try to work out how to produce pic code with this compiler
7858 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7859 echo "configure:7860: checking whether ${CC-cc} accepts -fpic" >&5
7860 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7863 echo 'void f(){}' > conftest.c
7864 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7865 ac_cv_prog_cc_fpic
=yes
7867 ac_cv_prog_cc_fpic
=no
7873 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7874 if test $ac_cv_prog_cc_fpic = yes; then
7877 if test x
$PICFLAG = x
; then
7878 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7879 echo "configure:7880: checking whether ${CC-cc} accepts -Kpic" >&5
7880 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7883 echo 'void f(){}' > conftest.c
7884 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7885 ac_cv_prog_cc_Kpic
=yes
7887 ac_cv_prog_cc_Kpic
=no
7893 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7894 if test $ac_cv_prog_cc_Kpic = yes; then
7898 if test x
$PICFLAG = x
; then
7899 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7900 echo "configure:7901: checking whether ${CC-cc} accepts -KPIC" >&5
7901 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7904 echo 'void f(){}' > conftest.c
7905 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7906 ac_cv_prog_cc_KPIC
=yes
7908 ac_cv_prog_cc_KPIC
=no
7914 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7915 if test $ac_cv_prog_cc_KPIC = yes; then
7922 echo $ac_n "checking for long long""... $ac_c" 1>&6
7923 echo "configure:7924: checking for long long" >&5
7924 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7928 if test "$cross_compiling" = yes; then
7929 samba_cv_have_longlong
=cross
7931 cat > conftest.
$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7935 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7937 if { (eval echo configure
:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7939 samba_cv_have_longlong
=yes
7941 echo "configure: failed program was:" >&5
7942 cat conftest.
$ac_ext >&5
7944 samba_cv_have_longlong
=no
7951 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7952 if test x
"$samba_cv_have_longlong" = x
"yes"; then
7953 cat >> confdefs.h
<<\EOF
7954 #define HAVE_LONGLONG 1
7960 # Check if the compiler supports the LL prefix on long long integers.
7963 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
7964 echo "configure:7965: checking for LL suffix on long long integers" >&5
7965 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7969 cat > conftest.
$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7974 long long i = 0x8000000000LL
7977 if { (eval echo configure
:7978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7979 samba_cv_compiler_supports_ll
=yes
7981 echo "configure: failed program was:" >&5
7982 cat conftest.
$ac_ext >&5
7984 samba_cv_compiler_supports_ll
=no
7989 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
7990 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
7991 cat >> confdefs.h
<<\EOF
7992 #define COMPILER_SUPPORTS_LL 1
7998 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7999 echo "configure:8000: checking for 64 bit off_t" >&5
8000 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8004 if test "$cross_compiling" = yes; then
8005 samba_cv_SIZEOF_OFF_T
=cross
8007 cat > conftest.
$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8011 #include <sys/stat.h>
8012 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8014 if { (eval echo configure
:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8016 samba_cv_SIZEOF_OFF_T
=yes
8018 echo "configure: failed program was:" >&5
8019 cat conftest.
$ac_ext >&5
8021 samba_cv_SIZEOF_OFF_T
=no
8028 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8029 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8030 cat >> confdefs.h
<<\EOF
8031 #define SIZEOF_OFF_T 8
8036 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8037 echo "configure:8038: checking for off64_t" >&5
8038 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8039 echo $ac_n "(cached) $ac_c" 1>&6
8042 if test "$cross_compiling" = yes; then
8043 samba_cv_HAVE_OFF64_T
=cross
8045 cat > conftest.
$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8049 #if defined(HAVE_UNISTD_H)
8053 #include <sys/stat.h>
8054 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8056 if { (eval echo configure
:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8058 samba_cv_HAVE_OFF64_T
=yes
8060 echo "configure: failed program was:" >&5
8061 cat conftest.
$ac_ext >&5
8063 samba_cv_HAVE_OFF64_T
=no
8070 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8071 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8072 cat >> confdefs.h
<<\EOF
8073 #define HAVE_OFF64_T 1
8078 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8079 echo "configure:8080: checking for 64 bit ino_t" >&5
8080 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8084 if test "$cross_compiling" = yes; then
8085 samba_cv_SIZEOF_INO_T
=cross
8087 cat > conftest.
$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8091 #include <sys/stat.h>
8092 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8094 if { (eval echo configure
:8095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8096 samba_cv_SIZEOF_INO_T
=yes
8098 echo "configure: failed program was:" >&5
8099 cat conftest.
$ac_ext >&5
8101 samba_cv_SIZEOF_INO_T
=no
8108 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8109 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8110 cat >> confdefs.h
<<\EOF
8111 #define SIZEOF_INO_T 8
8116 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8117 echo "configure:8118: checking for ino64_t" >&5
8118 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8122 if test "$cross_compiling" = yes; then
8123 samba_cv_HAVE_INO64_T
=cross
8125 cat > conftest.
$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8129 #if defined(HAVE_UNISTD_H)
8133 #include <sys/stat.h>
8134 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8136 if { (eval echo configure
:8137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8138 samba_cv_HAVE_INO64_T
=yes
8140 echo "configure: failed program was:" >&5
8141 cat conftest.
$ac_ext >&5
8143 samba_cv_HAVE_INO64_T
=no
8150 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8151 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8152 cat >> confdefs.h
<<\EOF
8153 #define HAVE_INO64_T 1
8158 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8159 echo "configure:8160: checking for struct dirent64" >&5
8160 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8161 echo $ac_n "(cached) $ac_c" 1>&6
8164 cat > conftest.
$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8168 #if defined(HAVE_UNISTD_H)
8171 #include <sys/types.h>
8177 if { (eval echo configure
:8178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8179 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8181 echo "configure: failed program was:" >&5
8182 cat conftest.
$ac_ext >&5
8184 samba_cv_HAVE_STRUCT_DIRENT64
=no
8189 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8190 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8191 cat >> confdefs.h
<<\EOF
8192 #define HAVE_STRUCT_DIRENT64 1
8197 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8198 echo "configure:8199: checking for unsigned char" >&5
8199 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8203 if test "$cross_compiling" = yes; then
8204 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8206 cat > conftest.
$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8210 main() { char c; c=250; exit((c > 0)?0:1); }
8212 if { (eval echo configure
:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8214 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8216 echo "configure: failed program was:" >&5
8217 cat conftest.
$ac_ext >&5
8219 samba_cv_HAVE_UNSIGNED_CHAR
=no
8226 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8227 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8228 cat >> confdefs.h
<<\EOF
8229 #define HAVE_UNSIGNED_CHAR 1
8234 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8235 echo "configure:8236: checking for sin_len in sock" >&5
8236 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8237 echo $ac_n "(cached) $ac_c" 1>&6
8240 cat > conftest.
$ac_ext <<EOF
8241 #line 8242 "configure"
8242 #include "confdefs.h"
8243 #include <sys/types.h>
8244 #include <sys/socket.h>
8245 #include <netinet/in.h>
8247 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8250 if { (eval echo configure
:8251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8252 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8254 echo "configure: failed program was:" >&5
8255 cat conftest.
$ac_ext >&5
8257 samba_cv_HAVE_SOCK_SIN_LEN
=no
8262 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8263 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8264 cat >> confdefs.h
<<\EOF
8265 #define HAVE_SOCK_SIN_LEN 1
8270 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8271 echo "configure:8272: checking whether seekdir returns void" >&5
8272 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8276 cat > conftest.
$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279 #include <sys/types.h>
8281 void seekdir(DIR *d, long loc) { return; }
8286 if { (eval echo configure
:8287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8288 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8290 echo "configure: failed program was:" >&5
8291 cat conftest.
$ac_ext >&5
8293 samba_cv_SEEKDIR_RETURNS_VOID
=no
8298 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8299 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8300 cat >> confdefs.h
<<\EOF
8301 #define SEEKDIR_RETURNS_VOID 1
8306 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8307 echo "configure:8308: checking for __FILE__ macro" >&5
8308 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6
8312 cat > conftest.
$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8317 printf("%s\n", __FILE__);
8320 if { (eval echo configure
:8321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8322 samba_cv_HAVE_FILE_MACRO
=yes
8324 echo "configure: failed program was:" >&5
8325 cat conftest.
$ac_ext >&5
8327 samba_cv_HAVE_FILE_MACRO
=no
8332 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8333 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8334 cat >> confdefs.h
<<\EOF
8335 #define HAVE_FILE_MACRO 1
8340 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8341 echo "configure:8342: checking for __FUNCTION__ macro" >&5
8342 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8346 cat > conftest.
$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8351 printf("%s\n", __FUNCTION__);
8354 if { (eval echo configure
:8355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8356 samba_cv_HAVE_FUNCTION_MACRO
=yes
8358 echo "configure: failed program was:" >&5
8359 cat conftest.
$ac_ext >&5
8361 samba_cv_HAVE_FUNCTION_MACRO
=no
8366 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8367 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8368 cat >> confdefs.h
<<\EOF
8369 #define HAVE_FUNCTION_MACRO 1
8374 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8375 echo "configure:8376: checking if gettimeofday takes tz argument" >&5
8376 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8377 echo $ac_n "(cached) $ac_c" 1>&6
8380 if test "$cross_compiling" = yes; then
8381 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8383 cat > conftest.
$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8387 #include <sys/time.h>
8389 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8391 if { (eval echo configure
:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8393 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8395 echo "configure: failed program was:" >&5
8396 cat conftest.
$ac_ext >&5
8398 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8405 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8406 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8407 cat >> confdefs.h
<<\EOF
8408 #define HAVE_GETTIMEOFDAY_TZ 1
8414 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8415 echo "configure:8416: checking for broken readdir" >&5
8416 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8420 if test "$cross_compiling" = yes; then
8421 samba_cv_HAVE_BROKEN_READDIR
=cross
8423 cat > conftest.
$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 #include <sys/types.h>
8428 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8429 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8430 di->d_name[0] == 0) exit(0); exit(1);}
8432 if { (eval echo configure
:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8434 samba_cv_HAVE_BROKEN_READDIR
=yes
8436 echo "configure: failed program was:" >&5
8437 cat conftest.
$ac_ext >&5
8439 samba_cv_HAVE_BROKEN_READDIR
=no
8446 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8447 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8448 cat >> confdefs.h
<<\EOF
8449 #define HAVE_BROKEN_READDIR 1
8454 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8455 echo "configure:8456: checking for utimbuf" >&5
8456 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8460 cat > conftest.
$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 #include <sys/types.h>
8466 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8469 if { (eval echo configure
:8470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8471 samba_cv_HAVE_UTIMBUF
=yes
8473 echo "configure: failed program was:" >&5
8474 cat conftest.
$ac_ext >&5
8476 samba_cv_HAVE_UTIMBUF
=no
8481 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8482 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8483 cat >> confdefs.h
<<\EOF
8484 #define HAVE_UTIMBUF 1
8489 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
8490 echo "configure:8491: checking for ut_syslen in utmpx" >&5
8491 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8495 cat > conftest.
$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8500 struct utmpx ux; ux.ut_syslen = 0;
8503 if { (eval echo configure
:8504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8505 samba_cv_HAVE_UX_UT_SYSLEN
=yes
8507 echo "configure: failed program was:" >&5
8508 cat conftest.
$ac_ext >&5
8510 samba_cv_HAVE_UX_UT_SYSLEN
=no
8515 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
8516 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
8517 cat >> confdefs.h
<<\EOF
8518 #define HAVE_UX_UT_SYSLEN 1
8523 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
8524 echo "configure:8525: checking for Linux kernel oplocks" >&5
8525 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8529 if test "$cross_compiling" = yes; then
8530 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
8532 cat > conftest.
$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8536 #include <sys/types.h>
8539 #define F_GETLEASE 1025
8542 int fd = open("/dev/null", O_RDONLY);
8543 return fcntl(fd, F_GETLEASE, 0) == -1;
8547 if { (eval echo configure
:8548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8549 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
8551 echo "configure: failed program was:" >&5
8552 cat conftest.
$ac_ext >&5
8554 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
8561 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
8562 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
8563 cat >> confdefs.h
<<\EOF
8564 #define HAVE_KERNEL_OPLOCKS_LINUX 1
8569 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
8570 echo "configure:8571: checking for kernel change notify support" >&5
8571 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8575 if test "$cross_compiling" = yes; then
8576 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
8578 cat > conftest.
$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8582 #include <sys/types.h>
8586 #define F_NOTIFY 1026
8589 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
8593 if { (eval echo configure
:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8595 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
8597 echo "configure: failed program was:" >&5
8598 cat conftest.
$ac_ext >&5
8600 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
8607 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
8608 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
8609 cat >> confdefs.h
<<\EOF
8610 #define HAVE_KERNEL_CHANGE_NOTIFY 1
8615 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
8616 echo "configure:8617: checking for kernel share modes" >&5
8617 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
8621 if test "$cross_compiling" = yes; then
8622 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
8624 cat > conftest.
$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8628 #include <sys/types.h>
8631 #include <sys/file.h>
8633 #define LOCK_MAND 32
8634 #define LOCK_READ 64
8637 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
8641 if { (eval echo configure
:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8643 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
8645 echo "configure: failed program was:" >&5
8646 cat conftest.
$ac_ext >&5
8648 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
8655 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
8656 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
8657 cat >> confdefs.h
<<\EOF
8658 #define HAVE_KERNEL_SHARE_MODES 1
8666 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
8667 echo "configure:8668: checking for IRIX kernel oplock type definitions" >&5
8668 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8672 cat > conftest.
$ac_ext <<EOF
8673 #line 8674 "configure"
8674 #include "confdefs.h"
8675 #include <sys/types.h>
8678 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
8681 if { (eval echo configure
:8682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8683 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
8685 echo "configure: failed program was:" >&5
8686 cat conftest.
$ac_ext >&5
8688 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
8693 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
8694 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
8695 cat >> confdefs.h
<<\EOF
8696 #define HAVE_KERNEL_OPLOCKS_IRIX 1
8701 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
8702 echo "configure:8703: checking for irix specific capabilities" >&5
8703 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8707 if test "$cross_compiling" = yes; then
8708 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
8710 cat > conftest.
$ac_ext <<EOF
8711 #line 8712 "configure"
8712 #include "confdefs.h"
8713 #include <sys/types.h>
8714 #include <sys/capability.h>
8717 if ((cap = cap_get_proc()) == NULL)
8719 cap->cap_effective |= CAP_NETWORK_MGT;
8720 cap->cap_inheritable |= CAP_NETWORK_MGT;
8726 if { (eval echo configure
:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8728 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
8730 echo "configure: failed program was:" >&5
8731 cat conftest.
$ac_ext >&5
8733 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
8740 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
8741 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
8742 cat >> confdefs.h
<<\EOF
8743 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
8749 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
8750 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
8753 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8754 echo "configure:8755: checking for int16 typedef included by rpc/rpc.h" >&5
8755 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8756 echo $ac_n "(cached) $ac_c" 1>&6
8759 cat > conftest.
$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 #include <sys/types.h>
8763 #if defined(HAVE_RPC_RPC_H)
8764 #include <rpc/rpc.h>
8770 if { (eval echo configure
:8771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8772 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
8774 echo "configure: failed program was:" >&5
8775 cat conftest.
$ac_ext >&5
8777 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
8782 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8783 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
8784 cat >> confdefs.h
<<\EOF
8785 #define HAVE_INT16_FROM_RPC_RPC_H 1
8790 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8791 echo "configure:8792: checking for uint16 typedef included by rpc/rpc.h" >&5
8792 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8793 echo $ac_n "(cached) $ac_c" 1>&6
8796 cat > conftest.
$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8799 #include <sys/types.h>
8800 #if defined(HAVE_RPC_RPC_H)
8801 #include <rpc/rpc.h>
8807 if { (eval echo configure
:8808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8809 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
8811 echo "configure: failed program was:" >&5
8812 cat conftest.
$ac_ext >&5
8814 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
8819 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8820 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
8821 cat >> confdefs.h
<<\EOF
8822 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8827 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8828 echo "configure:8829: checking for int32 typedef included by rpc/rpc.h" >&5
8829 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8833 cat > conftest.
$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 #include <sys/types.h>
8837 #if defined(HAVE_RPC_RPC_H)
8838 #include <rpc/rpc.h>
8844 if { (eval echo configure
:8845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8846 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
8848 echo "configure: failed program was:" >&5
8849 cat conftest.
$ac_ext >&5
8851 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
8856 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8857 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
8858 cat >> confdefs.h
<<\EOF
8859 #define HAVE_INT32_FROM_RPC_RPC_H 1
8864 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8865 echo "configure:8866: checking for uint32 typedef included by rpc/rpc.h" >&5
8866 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8870 cat > conftest.
$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8873 #include <sys/types.h>
8874 #if defined(HAVE_RPC_RPC_H)
8875 #include <rpc/rpc.h>
8881 if { (eval echo configure
:8882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8883 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
8885 echo "configure: failed program was:" >&5
8886 cat conftest.
$ac_ext >&5
8888 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
8893 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8894 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
8895 cat >> confdefs.h
<<\EOF
8896 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8902 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8903 echo "configure:8904: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8904 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
8905 echo $ac_n "(cached) $ac_c" 1>&6
8908 cat > conftest.
$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 #include <sys/types.h>
8912 #ifdef HAVE_SYS_SECURITY_H
8913 #include <sys/security.h>
8915 #endif /* HAVE_SYS_SECURITY_H */
8916 #if defined(HAVE_RPC_RPC_H)
8917 #include <rpc/rpc.h>
8923 if { (eval echo configure
:8924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8925 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
8927 echo "configure: failed program was:" >&5
8928 cat conftest.
$ac_ext >&5
8930 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
8935 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
8936 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
8937 cat >> confdefs.h
<<\EOF
8938 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
8943 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8944 echo "configure:8945: checking for test routines" >&5
8945 if test "$cross_compiling" = yes; then
8946 echo "configure: warning: cannot run when cross-compiling" 1>&2
8948 cat > conftest.
$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8951 #include "${srcdir-.}/tests/trivial.c"
8953 if { (eval echo configure
:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8955 echo "$ac_t""yes" 1>&6
8957 echo "configure: failed program was:" >&5
8958 cat conftest.
$ac_ext >&5
8960 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8966 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8967 echo "configure:8968: checking for ftruncate extend" >&5
8968 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8972 if test "$cross_compiling" = yes; then
8973 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
8975 cat > conftest.
$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8978 #include "${srcdir-.}/tests/ftruncate.c"
8980 if { (eval echo configure
:8981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8982 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
8984 echo "configure: failed program was:" >&5
8985 cat conftest.
$ac_ext >&5
8987 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
8994 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8995 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
8996 cat >> confdefs.h
<<\EOF
8997 #define HAVE_FTRUNCATE_EXTEND 1
9002 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9003 echo "configure:9004: checking for broken getgroups" >&5
9004 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9005 echo $ac_n "(cached) $ac_c" 1>&6
9008 if test "$cross_compiling" = yes; then
9009 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9011 cat > conftest.
$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include "${srcdir-.}/tests/getgroups.c"
9016 if { (eval echo configure
:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9018 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9020 echo "configure: failed program was:" >&5
9021 cat conftest.
$ac_ext >&5
9023 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9030 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9031 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9032 cat >> confdefs.h
<<\EOF
9033 #define HAVE_BROKEN_GETGROUPS 1
9038 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9039 echo "configure:9040: checking whether getpass should be replaced" >&5
9040 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9041 echo $ac_n "(cached) $ac_c" 1>&6
9044 SAVE_CPPFLAGS
="$CPPFLAGS"
9045 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9046 cat > conftest.
$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9050 #define REPLACE_GETPASS 1
9051 #define NO_CONFIG_H 1
9052 #define main dont_declare_main
9053 #include "${srcdir-.}/lib/getsmbpass.c"
9060 if { (eval echo configure
:9061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9062 samba_cv_REPLACE_GETPASS
=yes
9064 echo "configure: failed program was:" >&5
9065 cat conftest.
$ac_ext >&5
9067 samba_cv_REPLACE_GETPASS
=no
9070 CPPFLAGS
="$SAVE_CPPFLAGS"
9074 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9075 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9076 cat >> confdefs.h
<<\EOF
9077 #define REPLACE_GETPASS 1
9082 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9083 echo "configure:9084: checking for broken inet_ntoa" >&5
9084 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9088 if test "$cross_compiling" = yes; then
9089 samba_cv_REPLACE_INET_NTOA
=cross
9091 cat > conftest.
$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9096 #include <sys/types.h>
9097 #include <netinet/in.h>
9098 #ifdef HAVE_ARPA_INET_H
9099 #include <arpa/inet.h>
9101 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9102 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9103 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9106 if { (eval echo configure
:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9108 samba_cv_REPLACE_INET_NTOA
=yes
9110 echo "configure: failed program was:" >&5
9111 cat conftest.
$ac_ext >&5
9113 samba_cv_REPLACE_INET_NTOA
=no
9120 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9121 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9122 cat >> confdefs.h
<<\EOF
9123 #define REPLACE_INET_NTOA 1
9128 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9129 echo "configure:9130: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9130 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9134 if test "$cross_compiling" = yes; then
9135 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9137 cat > conftest.
$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9141 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9143 if { (eval echo configure
:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9145 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9147 echo "configure: failed program was:" >&5
9148 cat conftest.
$ac_ext >&5
9150 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9157 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9158 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9159 cat >> confdefs.h
<<\EOF
9160 #define SYSCONF_SC_NGROUPS_MAX 1
9165 echo $ac_n "checking for root""... $ac_c" 1>&6
9166 echo "configure:9167: checking for root" >&5
9167 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9171 if test "$cross_compiling" = yes; then
9172 samba_cv_HAVE_ROOT
=cross
9174 cat > conftest.
$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9177 main() { exit(getuid() != 0); }
9179 if { (eval echo configure
:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9181 samba_cv_HAVE_ROOT
=yes
9183 echo "configure: failed program was:" >&5
9184 cat conftest.
$ac_ext >&5
9186 samba_cv_HAVE_ROOT
=no
9193 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9194 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
9195 cat >> confdefs.h
<<\EOF
9200 echo "configure: warning: running as non-root will disable some tests" 1>&2
9204 # look for a method of finding the list of network interfaces
9206 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9207 echo "configure:9208: checking for iface AIX" >&5
9208 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9212 if test "$cross_compiling" = yes; then
9213 samba_cv_HAVE_IFACE_AIX
=cross
9215 cat > conftest.
$ac_ext <<EOF
9216 #line 9217 "configure"
9217 #include "confdefs.h"
9219 #define HAVE_IFACE_AIX 1
9220 #define AUTOCONF_TEST 1
9221 #include "confdefs.h"
9222 #include "${srcdir-.}/lib/interfaces.c"
9224 if { (eval echo configure
:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9226 samba_cv_HAVE_IFACE_AIX
=yes
9228 echo "configure: failed program was:" >&5
9229 cat conftest.
$ac_ext >&5
9231 samba_cv_HAVE_IFACE_AIX
=no
9238 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9239 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
9240 iface
=yes;cat >> confdefs.h
<<\EOF
9241 #define HAVE_IFACE_AIX 1
9246 if test $iface = no
; then
9247 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9248 echo "configure:9249: checking for iface ifconf" >&5
9249 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
9253 if test "$cross_compiling" = yes; then
9254 samba_cv_HAVE_IFACE_IFCONF
=cross
9256 cat > conftest.
$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9260 #define HAVE_IFACE_IFCONF 1
9261 #define AUTOCONF_TEST 1
9262 #include "confdefs.h"
9263 #include "${srcdir-.}/lib/interfaces.c"
9265 if { (eval echo configure
:9266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9267 samba_cv_HAVE_IFACE_IFCONF
=yes
9269 echo "configure: failed program was:" >&5
9270 cat conftest.
$ac_ext >&5
9272 samba_cv_HAVE_IFACE_IFCONF
=no
9279 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9280 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
9281 iface
=yes;cat >> confdefs.h
<<\EOF
9282 #define HAVE_IFACE_IFCONF 1
9288 if test $iface = no
; then
9289 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9290 echo "configure:9291: checking for iface ifreq" >&5
9291 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9292 echo $ac_n "(cached) $ac_c" 1>&6
9295 if test "$cross_compiling" = yes; then
9296 samba_cv_HAVE_IFACE_IFREQ
=cross
9298 cat > conftest.
$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9302 #define HAVE_IFACE_IFREQ 1
9303 #define AUTOCONF_TEST 1
9304 #include "confdefs.h"
9305 #include "${srcdir-.}/lib/interfaces.c"
9307 if { (eval echo configure
:9308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9309 samba_cv_HAVE_IFACE_IFREQ
=yes
9311 echo "configure: failed program was:" >&5
9312 cat conftest.
$ac_ext >&5
9314 samba_cv_HAVE_IFACE_IFREQ
=no
9321 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9322 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
9323 iface
=yes;cat >> confdefs.h
<<\EOF
9324 #define HAVE_IFACE_IFREQ 1
9331 ################################################
9332 # look for a method of setting the effective uid
9334 if test $seteuid = no
; then
9335 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9336 echo "configure:9337: checking for setresuid" >&5
9337 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9338 echo $ac_n "(cached) $ac_c" 1>&6
9341 if test "$cross_compiling" = yes; then
9342 samba_cv_USE_SETRESUID
=cross
9344 cat > conftest.
$ac_ext <<EOF
9345 #line 9346 "configure"
9346 #include "confdefs.h"
9348 #define AUTOCONF_TEST 1
9349 #define USE_SETRESUID 1
9350 #include "confdefs.h"
9351 #include "${srcdir-.}/lib/util_sec.c"
9353 if { (eval echo configure
:9354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9355 samba_cv_USE_SETRESUID
=yes
9357 echo "configure: failed program was:" >&5
9358 cat conftest.
$ac_ext >&5
9360 samba_cv_USE_SETRESUID
=no
9367 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9368 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
9369 seteuid
=yes;cat >> confdefs.h
<<\EOF
9370 #define USE_SETRESUID 1
9377 if test $seteuid = no
; then
9378 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9379 echo "configure:9380: checking for setreuid" >&5
9380 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9381 echo $ac_n "(cached) $ac_c" 1>&6
9384 if test "$cross_compiling" = yes; then
9385 samba_cv_USE_SETREUID
=cross
9387 cat > conftest.
$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9391 #define AUTOCONF_TEST 1
9392 #define USE_SETREUID 1
9393 #include "confdefs.h"
9394 #include "${srcdir-.}/lib/util_sec.c"
9396 if { (eval echo configure
:9397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9398 samba_cv_USE_SETREUID
=yes
9400 echo "configure: failed program was:" >&5
9401 cat conftest.
$ac_ext >&5
9403 samba_cv_USE_SETREUID
=no
9410 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
9411 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
9412 seteuid
=yes;cat >> confdefs.h
<<\EOF
9413 #define USE_SETREUID 1
9419 if test $seteuid = no
; then
9420 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
9421 echo "configure:9422: checking for seteuid" >&5
9422 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
9423 echo $ac_n "(cached) $ac_c" 1>&6
9426 if test "$cross_compiling" = yes; then
9427 samba_cv_USE_SETEUID
=cross
9429 cat > conftest.
$ac_ext <<EOF
9430 #line 9431 "configure"
9431 #include "confdefs.h"
9433 #define AUTOCONF_TEST 1
9434 #define USE_SETEUID 1
9435 #include "confdefs.h"
9436 #include "${srcdir-.}/lib/util_sec.c"
9438 if { (eval echo configure
:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9440 samba_cv_USE_SETEUID
=yes
9442 echo "configure: failed program was:" >&5
9443 cat conftest.
$ac_ext >&5
9445 samba_cv_USE_SETEUID
=no
9452 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
9453 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
9454 seteuid
=yes;cat >> confdefs.h
<<\EOF
9455 #define USE_SETEUID 1
9461 if test $seteuid = no
; then
9462 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
9463 echo "configure:9464: checking for setuidx" >&5
9464 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9468 if test "$cross_compiling" = yes; then
9469 samba_cv_USE_SETUIDX
=cross
9471 cat > conftest.
$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9475 #define AUTOCONF_TEST 1
9476 #define USE_SETUIDX 1
9477 #include "confdefs.h"
9478 #include "${srcdir-.}/lib/util_sec.c"
9480 if { (eval echo configure
:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9482 samba_cv_USE_SETUIDX
=yes
9484 echo "configure: failed program was:" >&5
9485 cat conftest.
$ac_ext >&5
9487 samba_cv_USE_SETUIDX
=no
9494 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
9495 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
9496 seteuid
=yes;cat >> confdefs.h
<<\EOF
9497 #define USE_SETUIDX 1
9504 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9505 echo "configure:9506: checking for working mmap" >&5
9506 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9510 if test "$cross_compiling" = yes; then
9511 samba_cv_HAVE_MMAP
=cross
9513 cat > conftest.
$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516 #include "${srcdir-.}/tests/shared_mmap.c"
9518 if { (eval echo configure
:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9520 samba_cv_HAVE_MMAP
=yes
9522 echo "configure: failed program was:" >&5
9523 cat conftest.
$ac_ext >&5
9525 samba_cv_HAVE_MMAP
=no
9532 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
9533 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
9534 cat >> confdefs.h
<<\EOF
9540 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9541 echo "configure:9542: checking for ftruncate needs root" >&5
9542 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9546 if test "$cross_compiling" = yes; then
9547 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
9549 cat > conftest.
$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 #include "${srcdir-.}/tests/ftruncroot.c"
9554 if { (eval echo configure
:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9556 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
9558 echo "configure: failed program was:" >&5
9559 cat conftest.
$ac_ext >&5
9561 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
9568 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
9569 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
9570 cat >> confdefs.h
<<\EOF
9571 #define FTRUNCATE_NEEDS_ROOT 1
9576 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
9577 echo "configure:9578: checking for fcntl locking" >&5
9578 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9582 if test "$cross_compiling" = yes; then
9583 samba_cv_HAVE_FCNTL_LOCK
=cross
9585 cat > conftest.
$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9588 #include "${srcdir-.}/tests/fcntl_lock.c"
9590 if { (eval echo configure
:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9592 samba_cv_HAVE_FCNTL_LOCK
=yes
9594 echo "configure: failed program was:" >&5
9595 cat conftest.
$ac_ext >&5
9597 samba_cv_HAVE_FCNTL_LOCK
=no
9604 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
9605 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
9606 cat >> confdefs.h
<<\EOF
9607 #define HAVE_FCNTL_LOCK 1
9612 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
9613 echo "configure:9614: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
9614 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9618 if test "$cross_compiling" = yes; then
9619 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
9621 cat > conftest.
$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 #include "${srcdir-.}/tests/fcntl_lock64.c"
9626 if { (eval echo configure
:9627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9628 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
9630 echo "configure: failed program was:" >&5
9631 cat conftest.
$ac_ext >&5
9633 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
9640 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
9641 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
9642 cat >> confdefs.h
<<\EOF
9643 #define HAVE_BROKEN_FCNTL64_LOCKS 1
9650 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
9651 echo "configure:9652: checking for 64 bit fcntl locking" >&5
9652 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9656 if test "$cross_compiling" = yes; then
9657 samba_cv_HAVE_STRUCT_FLOCK64
=cross
9659 cat > conftest.
$ac_ext <<EOF
9660 #line 9661 "configure"
9661 #include "confdefs.h"
9663 #if defined(HAVE_UNISTD_H)
9673 #ifdef HAVE_SYS_FCNTL_H
9674 #include <sys/fcntl.h>
9676 main() { struct flock64 fl64;
9677 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
9684 if { (eval echo configure
:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9686 samba_cv_HAVE_STRUCT_FLOCK64
=yes
9688 echo "configure: failed program was:" >&5
9689 cat conftest.
$ac_ext >&5
9691 samba_cv_HAVE_STRUCT_FLOCK64
=no
9698 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
9700 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
9701 cat >> confdefs.h
<<\EOF
9702 #define HAVE_STRUCT_FLOCK64 1
9708 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
9709 echo "configure:9710: checking for a crypt that needs truncated salt" >&5
9710 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9714 if test "$cross_compiling" = yes; then
9715 samba_cv_HAVE_TRUNCATED_SALT
=cross
9717 cat > conftest.
$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9720 #include "${srcdir-.}/tests/crypttest.c"
9722 if { (eval echo configure
:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9724 samba_cv_HAVE_TRUNCATED_SALT
=no
9726 echo "configure: failed program was:" >&5
9727 cat conftest.
$ac_ext >&5
9729 samba_cv_HAVE_TRUNCATED_SALT
=yes
9736 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
9737 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
9738 cat >> confdefs.h
<<\EOF
9739 #define HAVE_TRUNCATED_SALT 1
9744 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
9745 echo "configure:9746: checking for broken nisplus include files" >&5
9746 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9750 cat > conftest.
$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 #include <sys/acl.h>
9754 #if defined(HAVE_RPCSVC_NIS_H)
9755 #include <rpcsvc/nis.h>
9761 if { (eval echo configure
:9762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9763 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
9765 echo "configure: failed program was:" >&5
9766 cat conftest.
$ac_ext >&5
9768 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
9773 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
9774 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
9775 cat >> confdefs.h
<<\EOF
9776 #define BROKEN_NISPLUS_INCLUDE_FILES 1
9782 #################################################
9783 # check for smbwrapper support
9784 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
9785 echo "configure:9786: checking whether to use smbwrapper" >&5
9786 # Check whether --with-smbwrapper or --without-smbwrapper was given.
9787 if test "${with_smbwrapper+set}" = set; then
9788 withval
="$with_smbwrapper"
9791 echo "$ac_t""yes" 1>&6
9792 cat >> confdefs.h
<<\EOF
9793 #define WITH_SMBWRAPPER 1
9796 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
9798 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
9801 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
9804 # Conditions under which smbwrapper should not be built.
9806 if test x
$PICFLAG = x
; then
9807 echo No support
for PIC code
- disabling smbwrapper and smbsh
9810 elif test x
$ac_cv_func_syscall = xno
; then
9811 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
9817 echo "$ac_t""no" 1>&6
9821 echo "$ac_t""no" 1>&6
9826 #################################################
9827 # check for the AFS filesystem
9828 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
9829 echo "configure:9830: checking whether to use AFS" >&5
9830 # Check whether --with-afs or --without-afs was given.
9831 if test "${with_afs+set}" = set; then
9835 echo "$ac_t""yes" 1>&6
9836 cat >> confdefs.h
<<\EOF
9842 echo "$ac_t""no" 1>&6
9846 echo "$ac_t""no" 1>&6
9852 #################################################
9853 # check for the DFS auth system
9854 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
9855 echo "configure:9856: checking whether to use DFS auth" >&5
9856 # Check whether --with-dfs or --without-dfs was given.
9857 if test "${with_dfs+set}" = set; then
9861 echo "$ac_t""yes" 1>&6
9862 cat >> confdefs.h
<<\EOF
9868 echo "$ac_t""no" 1>&6
9872 echo "$ac_t""no" 1>&6
9877 #################################################
9878 # check for Kerberos IV auth system
9879 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
9880 echo "configure:9881: checking whether to use Kerberos IV" >&5
9881 # Check whether --with-krb4 or --without-krb4 was given.
9882 if test "${with_krb4+set}" = set; then
9883 withval
="$with_krb4"
9884 echo "$ac_t""yes" 1>&6
9885 cat >> confdefs.h
<<\EOF
9889 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
9890 echo "configure:9891: checking for dn_expand in -lresolv" >&5
9891 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
9892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9895 ac_save_LIBS
="$LIBS"
9896 LIBS
="-lresolv $LIBS"
9897 cat > conftest.
$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 /* Override any gcc2 internal prototype to avoid an error. */
9901 /* We use char because int might match the return type of a gcc2
9902 builtin and then its argument prototype would still apply. */
9909 if { (eval echo configure
:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9911 eval "ac_cv_lib_$ac_lib_var=yes"
9913 echo "configure: failed program was:" >&5
9914 cat conftest.
$ac_ext >&5
9916 eval "ac_cv_lib_$ac_lib_var=no"
9919 LIBS
="$ac_save_LIBS"
9922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9923 echo "$ac_t""yes" 1>&6
9924 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9925 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9926 cat >> confdefs.h
<<EOF
9927 #define $ac_tr_lib 1
9930 LIBS
="-lresolv $LIBS"
9933 echo "$ac_t""no" 1>&6
9936 LIBS
="$LIBS -lkrb -ldes"
9937 CFLAGS
="$CFLAGS -I$withval/include"
9938 LDFLAGS
="$LDFLAGS -L$withval/lib"
9940 echo "$ac_t""no" 1>&6
9945 #################################################
9946 # check for Kerberos 5 auth system
9947 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
9948 echo "configure:9949: checking whether to use Kerberos 5" >&5
9949 # Check whether --with-krb5 or --without-krb5 was given.
9950 if test "${with_krb5+set}" = set; then
9951 withval
="$with_krb5"
9952 echo "$ac_t""yes" 1>&6
9953 cat >> confdefs.h
<<\EOF
9957 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
9958 CFLAGS
="$CFLAGS -I$withval/include"
9959 LDFLAGS
="$LDFLAGS -L$withval/lib"
9961 echo "$ac_t""no" 1>&6
9966 #################################################
9967 # check for automount support
9968 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
9969 echo "configure:9970: checking whether to use AUTOMOUNT" >&5
9970 # Check whether --with-automount or --without-automount was given.
9971 if test "${with_automount+set}" = set; then
9972 withval
="$with_automount"
9975 echo "$ac_t""yes" 1>&6
9976 cat >> confdefs.h
<<\EOF
9977 #define WITH_AUTOMOUNT 1
9982 echo "$ac_t""no" 1>&6
9986 echo "$ac_t""no" 1>&6
9991 #################################################
9992 # check for smbmount support
9993 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
9994 echo "configure:9995: checking whether to use SMBMOUNT" >&5
9995 # Check whether --with-smbmount or --without-smbmount was given.
9996 if test "${with_smbmount+set}" = set; then
9997 withval
="$with_smbmount"
10000 echo "$ac_t""yes" 1>&6
10001 cat >> confdefs.h
<<\EOF
10002 #define WITH_SMBMOUNT 1
10005 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10008 echo "$ac_t""no" 1>&6
10013 echo "$ac_t""no" 1>&6
10020 #################################################
10021 # check for a PAM password database
10022 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10023 echo "configure:10024: checking whether to use PAM password database" >&5
10024 # Check whether --with-pam or --without-pam was given.
10025 if test "${with_pam+set}" = set; then
10026 withval
="$with_pam"
10029 echo "$ac_t""yes" 1>&6
10030 cat >> confdefs.h
<<\EOF
10037 echo "$ac_t""no" 1>&6
10041 echo "$ac_t""no" 1>&6
10047 #################################################
10048 # check for a LDAP password database
10049 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10050 echo "configure:10051: checking whether to use LDAP password database" >&5
10051 # Check whether --with-ldap or --without-ldap was given.
10052 if test "${with_ldap+set}" = set; then
10053 withval
="$with_ldap"
10056 echo "$ac_t""yes" 1>&6
10057 cat >> confdefs.h
<<\EOF
10058 #define WITH_LDAP 1
10061 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10064 echo "$ac_t""no" 1>&6
10068 echo "$ac_t""no" 1>&6
10073 #################################################
10074 # check for a NISPLUS password database
10075 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10076 echo "configure:10077: checking whether to use NISPLUS password database" >&5
10077 # Check whether --with-nisplus or --without-nisplus was given.
10078 if test "${with_nisplus+set}" = set; then
10079 withval
="$with_nisplus"
10082 echo "$ac_t""yes" 1>&6
10083 cat >> confdefs.h
<<\EOF
10084 #define WITH_NISPLUS 1
10089 echo "$ac_t""no" 1>&6
10093 echo "$ac_t""no" 1>&6
10098 #################################################
10099 # check for a NISPLUS_HOME support
10100 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10101 echo "configure:10102: checking whether to use NISPLUS_HOME" >&5
10102 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10103 if test "${with_nisplus_home+set}" = set; then
10104 withval
="$with_nisplus_home"
10107 echo "$ac_t""yes" 1>&6
10108 cat >> confdefs.h
<<\EOF
10109 #define WITH_NISPLUS_HOME 1
10114 echo "$ac_t""no" 1>&6
10118 echo "$ac_t""no" 1>&6
10123 #################################################
10124 # check for the secure socket layer
10125 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10126 echo "configure:10127: checking whether to use SSL" >&5
10127 # Check whether --with-ssl or --without-ssl was given.
10128 if test "${with_ssl+set}" = set; then
10129 withval
="$with_ssl"
10132 echo "$ac_t""yes" 1>&6
10133 cat >> confdefs.h
<<\EOF
10137 withval
="/usr/local/ssl" # default
10139 if test "${with_sslinc+set}" = set; then
10141 withval
="$with_sslinc"
10144 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10145 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10146 LIBS
="-lssl -lcrypto $LIBS"
10147 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
10150 CFLAGS
="-I${withval}/include $CFLAGS"
10151 LIBS
="-lssl -lcrypto $LIBS"
10152 LDFLAGS
="-L${withval}/lib $LDFLAGS"
10158 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10159 LIBS
="-lssl -lcrypto $LIBS"
10160 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
10164 if test ! -d ${withval}; then
10165 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10169 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10173 echo "$ac_t""no" 1>&6
10177 echo "$ac_t""no" 1>&6
10182 #################################################
10183 # check for syslog logging
10184 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10185 echo "configure:10186: checking whether to use syslog logging" >&5
10186 # Check whether --with-syslog or --without-syslog was given.
10187 if test "${with_syslog+set}" = set; then
10188 withval
="$with_syslog"
10191 echo "$ac_t""yes" 1>&6
10192 cat >> confdefs.h
<<\EOF
10193 #define WITH_SYSLOG 1
10198 echo "$ac_t""no" 1>&6
10202 echo "$ac_t""no" 1>&6
10207 #################################################
10208 # check for a shared memory profiling support
10209 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10210 echo "configure:10211: checking whether to use profiling" >&5
10211 # Check whether --with-profile or --without-profile was given.
10212 if test "${with_profile+set}" = set; then
10213 withval
="$with_profile"
10216 echo "$ac_t""yes" 1>&6
10217 cat >> confdefs.h
<<\EOF
10218 #define WITH_PROFILE 1
10223 echo "$ac_t""no" 1>&6
10227 echo "$ac_t""no" 1>&6
10233 #################################################
10234 # check for experimental netatalk resource fork support
10235 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10236 echo "configure:10237: checking whether to support netatalk" >&5
10237 # Check whether --with-netatalk or --without-netatalk was given.
10238 if test "${with_netatalk+set}" = set; then
10239 withval
="$with_netatalk"
10242 echo "$ac_t""yes" 1>&6
10243 cat >> confdefs.h
<<\EOF
10244 #define WITH_NETATALK 1
10249 echo "$ac_t""no" 1>&6
10253 echo "$ac_t""no" 1>&6
10258 #################################################
10259 # check for experimental disk-quotas support
10260 QUOTAOBJS
=smbd
/noquotas.o
10262 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10263 echo "configure:10264: checking whether to support disk-quotas" >&5
10264 # Check whether --with-quotas or --without-quotas was given.
10265 if test "${with_quotas+set}" = set; then
10266 withval
="$with_quotas"
10269 echo "$ac_t""yes" 1>&6
10270 QUOTAOBJS
=smbd
/quotas.o
10273 echo "$ac_t""no" 1>&6
10277 echo "$ac_t""no" 1>&6
10283 #################################################
10284 # check for experimental utmp accounting
10286 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10287 echo "configure:10288: checking whether to support utmp accounting" >&5
10288 # Check whether --with-utmp or --without-utmp was given.
10289 if test "${with_utmp+set}" = set; then
10290 withval
="$with_utmp"
10293 echo "$ac_t""yes" 1>&6
10294 cat >> confdefs.h
<<\EOF
10295 #define WITH_UTMP 1
10300 echo "$ac_t""no" 1>&6
10304 echo "$ac_t""no" 1>&6
10309 #################################################
10310 # check for MS Dfs support
10312 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
10313 echo "configure:10314: checking whether to support Microsoft Dfs" >&5
10314 # Check whether --with-msdfs or --without-msdfs was given.
10315 if test "${with_msdfs+set}" = set; then
10316 withval
="$with_msdfs"
10319 echo "$ac_t""yes" 1>&6
10320 cat >> confdefs.h
<<\EOF
10321 #define WITH_MSDFS 1
10326 echo "$ac_t""no" 1>&6
10330 echo "$ac_t""no" 1>&6
10335 #################################################
10336 # set private directory location
10337 # Check whether --with-privatedir or --without-privatedir was given.
10338 if test "${with_privatedir+set}" = set; then
10339 withval
="$with_privatedir"
10343 # Just in case anybody calls it without argument
10345 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10346 privatedir
='${prefix}/private'
10349 privatedir
="$withval"
10354 privatedir
='${prefix}/private'
10360 #################################################
10361 # set lock directory location
10362 # Check whether --with-lockdir or --without-lockdir was given.
10363 if test "${with_lockdir+set}" = set; then
10364 withval
="$with_lockdir"
10368 # Just in case anybody calls it without argument
10370 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10371 lockdir
='$(VARDIR)/locks'
10379 lockdir
='$(VARDIR)/locks'
10385 #################################################
10386 # set SWAT directory location
10387 # Check whether --with-swatdir or --without-swatdir was given.
10388 if test "${with_swatdir+set}" = set; then
10389 withval
="$with_swatdir"
10393 # Just in case anybody does it
10395 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
10396 swatdir
='${prefix}/swat'
10404 swatdir
='${prefix}/swat'
10410 #################################################
10411 # these tests are taken from the GNU fileutils package
10412 echo "checking how to get filesystem space usage" 1>&6
10413 echo "configure:10414: checking how to get filesystem space usage" >&5
10416 # Test for statvfs64.
10417 if test $space = no
; then
10419 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
10420 echo "configure:10421: checking statvfs64 function (SVR4)" >&5
10421 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
10422 echo $ac_n "(cached) $ac_c" 1>&6
10424 if test "$cross_compiling" = yes; then
10425 fu_cv_sys_stat_statvfs64
=cross
10427 cat > conftest.
$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10431 #if defined(HAVE_UNISTD_H)
10432 #include <unistd.h>
10434 #include <sys/types.h>
10435 #include <sys/statvfs.h>
10438 struct statvfs64 fsd;
10439 exit (statvfs64 (".", &fsd));
10442 if { (eval echo configure
:10443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10444 fu_cv_sys_stat_statvfs64
=yes
10446 echo "configure: failed program was:" >&5
10447 cat conftest.
$ac_ext >&5
10449 fu_cv_sys_stat_statvfs64
=no
10456 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
10457 if test $fu_cv_sys_stat_statvfs64 = yes; then
10459 cat >> confdefs.h
<<\EOF
10460 #define STAT_STATVFS64 1
10466 # Perform only the link test since it seems there are no variants of the
10467 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
10468 # because that got a false positive on SCO OSR5. Adding the declaration
10469 # of a `struct statvfs' causes this test to fail (as it should) on such
10470 # systems. That system is reported to work fine with STAT_STATFS4 which
10471 # is what it gets when this test fails.
10472 if test $space = no
; then
10474 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
10475 echo "configure:10476: checking statvfs function (SVR4)" >&5
10476 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10479 cat > conftest.
$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10482 #include <sys/types.h>
10483 #include <sys/statvfs.h>
10485 struct statvfs fsd; statvfs (0, &fsd);
10488 if { (eval echo configure
:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10490 fu_cv_sys_stat_statvfs
=yes
10492 echo "configure: failed program was:" >&5
10493 cat conftest.
$ac_ext >&5
10495 fu_cv_sys_stat_statvfs
=no
10500 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
10501 if test $fu_cv_sys_stat_statvfs = yes; then
10503 cat >> confdefs.h
<<\EOF
10504 #define STAT_STATVFS 1
10510 if test $space = no
; then
10511 # DEC Alpha running OSF/1
10512 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
10513 echo "configure:10514: checking for 3-argument statfs function (DEC OSF/1)" >&5
10514 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10517 if test "$cross_compiling" = yes; then
10518 fu_cv_sys_stat_statfs3_osf1
=no
10520 cat > conftest.
$ac_ext <<EOF
10521 #line 10522 "configure"
10522 #include "confdefs.h"
10524 #include <sys/param.h>
10525 #include <sys/types.h>
10526 #include <sys/mount.h>
10531 exit (statfs (".", &fsd, sizeof (struct statfs)));
10534 if { (eval echo configure
:10535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10536 fu_cv_sys_stat_statfs3_osf1
=yes
10538 echo "configure: failed program was:" >&5
10539 cat conftest.
$ac_ext >&5
10541 fu_cv_sys_stat_statfs3_osf1
=no
10548 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
10549 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
10551 cat >> confdefs.h
<<\EOF
10552 #define STAT_STATFS3_OSF1 1
10558 if test $space = no
; then
10560 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
10561 echo "configure:10562: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
10562 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
10563 echo $ac_n "(cached) $ac_c" 1>&6
10565 if test "$cross_compiling" = yes; then
10566 fu_cv_sys_stat_statfs2_bsize
=no
10568 cat > conftest.
$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10572 #ifdef HAVE_SYS_PARAM_H
10573 #include <sys/param.h>
10575 #ifdef HAVE_SYS_MOUNT_H
10576 #include <sys/mount.h>
10578 #ifdef HAVE_SYS_VFS_H
10579 #include <sys/vfs.h>
10585 exit (statfs (".", &fsd));
10588 if { (eval echo configure
:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10590 fu_cv_sys_stat_statfs2_bsize
=yes
10592 echo "configure: failed program was:" >&5
10593 cat conftest.
$ac_ext >&5
10595 fu_cv_sys_stat_statfs2_bsize
=no
10602 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
10603 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
10605 cat >> confdefs.h
<<\EOF
10606 #define STAT_STATFS2_BSIZE 1
10612 if test $space = no
; then
10614 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
10615 echo "configure:10616: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
10616 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
10617 echo $ac_n "(cached) $ac_c" 1>&6
10619 if test "$cross_compiling" = yes; then
10620 fu_cv_sys_stat_statfs4
=no
10622 cat > conftest.
$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10625 #include <sys/types.h>
10626 #include <sys/statfs.h>
10630 exit (statfs (".", &fsd, sizeof fsd, 0));
10633 if { (eval echo configure
:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10635 fu_cv_sys_stat_statfs4
=yes
10637 echo "configure: failed program was:" >&5
10638 cat conftest.
$ac_ext >&5
10640 fu_cv_sys_stat_statfs4
=no
10647 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
10648 if test $fu_cv_sys_stat_statfs4 = yes; then
10650 cat >> confdefs.h
<<\EOF
10651 #define STAT_STATFS4 1
10657 if test $space = no
; then
10658 # 4.4BSD and NetBSD
10659 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
10660 echo "configure:10661: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
10661 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10664 if test "$cross_compiling" = yes; then
10665 fu_cv_sys_stat_statfs2_fsize
=no
10667 cat > conftest.
$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 #include <sys/types.h>
10671 #ifdef HAVE_SYS_PARAM_H
10672 #include <sys/param.h>
10674 #ifdef HAVE_SYS_MOUNT_H
10675 #include <sys/mount.h>
10681 exit (statfs (".", &fsd));
10684 if { (eval echo configure
:10685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10686 fu_cv_sys_stat_statfs2_fsize
=yes
10688 echo "configure: failed program was:" >&5
10689 cat conftest.
$ac_ext >&5
10691 fu_cv_sys_stat_statfs2_fsize
=no
10698 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
10699 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
10701 cat >> confdefs.h
<<\EOF
10702 #define STAT_STATFS2_FSIZE 1
10708 if test $space = no
; then
10710 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
10711 echo "configure:10712: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
10712 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
10713 echo $ac_n "(cached) $ac_c" 1>&6
10715 if test "$cross_compiling" = yes; then
10716 fu_cv_sys_stat_fs_data
=no
10718 cat > conftest.
$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10721 #include <sys/types.h>
10722 #ifdef HAVE_SYS_PARAM_H
10723 #include <sys/param.h>
10725 #ifdef HAVE_SYS_MOUNT_H
10726 #include <sys/mount.h>
10728 #ifdef HAVE_SYS_FS_TYPES_H
10729 #include <sys/fs_types.h>
10733 struct fs_data fsd;
10734 /* Ultrix's statfs returns 1 for success,
10735 0 for not mounted, -1 for failure. */
10736 exit (statfs (".", &fsd) != 1);
10739 if { (eval echo configure
:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10741 fu_cv_sys_stat_fs_data
=yes
10743 echo "configure: failed program was:" >&5
10744 cat conftest.
$ac_ext >&5
10746 fu_cv_sys_stat_fs_data
=no
10753 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
10754 if test $fu_cv_sys_stat_fs_data = yes; then
10756 cat >> confdefs.h
<<\EOF
10757 #define STAT_STATFS2_FS_DATA 1
10764 # As a gating factor for large file support, in order to
10765 # use <4GB files we must have the following minimal support
10767 # long long, and a 64 bit off_t or off64_t.
10768 # If we don't have all of these then disable large
10771 echo "checking if large file support can be enabled"
10772 cat > conftest.
$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10776 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
10777 #include <sys/types.h>
10786 if { (eval echo configure
:10787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10788 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
10790 echo "configure: failed program was:" >&5
10791 cat conftest.
$ac_ext >&5
10793 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
10796 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
10798 cat >> confdefs.h
<<\EOF
10799 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
10806 echo "checking configure summary"
10807 if test "$cross_compiling" = yes; then
10810 cat > conftest.
$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10813 #include "${srcdir-.}/tests/summary.c"
10815 if { (eval echo configure
:10816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10817 echo "configure OK";
10819 echo "configure: failed program was:" >&5
10820 cat conftest.
$ac_ext >&5
10822 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
10832 cat > confcache
<<\EOF
10833 # This file is a shell script that caches the results of configure
10834 # tests run on this system so they can be shared between configure
10835 # scripts and configure runs. It is not useful on other systems.
10836 # If it contains results you don't want to keep, you may remove or edit it.
10838 # By default, configure uses ./config.cache as the cache file,
10839 # creating it if it does not exist already. You can give configure
10840 # the --cache-file=FILE option to use a different cache file; that is
10841 # what configure does when it calls configure scripts in
10842 # subdirectories, so they share the cache.
10843 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10844 # config.status only pays attention to the cache file if you give it the
10845 # --recheck option to rerun configure.
10848 # The following way of writing the cache mishandles newlines in values,
10849 # but we know of no workaround that is simple, portable, and efficient.
10850 # So, don't put newlines in cache variables' values.
10851 # Ultrix sh set writes to stderr and can't be redirected directly,
10852 # and sets the high bit in the cache file unless we assign to the vars.
10854 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10856 # `set' does not quote correctly, so add quotes (double-quote substitution
10857 # turns \\\\ into \\, and sed turns \\ into \).
10859 -e "s/'/'\\\\''/g" \
10860 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10863 # `set' quotes correctly as required by POSIX, so do not add quotes.
10864 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10867 if cmp -s $cache_file confcache
; then
10870 if test -w $cache_file; then
10871 echo "updating cache $cache_file"
10872 cat confcache
> $cache_file
10874 echo "not updating unwritable cache $cache_file"
10879 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10881 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10882 # Let make expand exec_prefix.
10883 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10885 # Any assignment to VPATH causes Sun make to only execute
10886 # the first set of double-colon rules, so remove it if not needed.
10887 # If there is a colon in the path, we need to keep it.
10888 if test "x$srcdir" = x.
; then
10889 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10892 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10894 DEFS
=-DHAVE_CONFIG_H
10896 # Without the "./", some shells look in PATH for config.status.
10897 : ${CONFIG_STATUS=./config.status}
10899 echo creating
$CONFIG_STATUS
10900 rm -f $CONFIG_STATUS
10901 cat > $CONFIG_STATUS <<EOF
10903 # Generated automatically by configure.
10904 # Run this file to recreate the current configuration.
10905 # This directory was configured as follows,
10906 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10908 # $0 $ac_configure_args
10910 # Compiler output produced by configure, useful for debugging
10911 # configure, is in ./config.log if it exists.
10913 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10916 case "\$ac_option" in
10917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10918 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10919 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10920 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10921 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10923 -help | --help | --hel | --he | --h)
10924 echo "\$ac_cs_usage"; exit 0 ;;
10925 *) echo "\$ac_cs_usage"; exit 1 ;;
10929 ac_given_srcdir=$srcdir
10930 ac_given_INSTALL="$INSTALL"
10932 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10934 cat >> $CONFIG_STATUS <<EOF
10936 # Protect against being on the right side of a sed subst in config.status.
10937 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10938 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10942 s%@CFLAGS@%$CFLAGS%g
10943 s%@CPPFLAGS@%$CPPFLAGS%g
10944 s%@CXXFLAGS@%$CXXFLAGS%g
10945 s%@FFLAGS@%$FFLAGS%g
10947 s%@LDFLAGS@%$LDFLAGS%g
10949 s%@exec_prefix@%$exec_prefix%g
10950 s%@prefix@%$prefix%g
10951 s%@program_transform_name@%$program_transform_name%g
10952 s%@bindir@%$bindir%g
10953 s%@sbindir@%$sbindir%g
10954 s%@libexecdir@%$libexecdir%g
10955 s%@datadir@%$datadir%g
10956 s%@sysconfdir@%$sysconfdir%g
10957 s%@sharedstatedir@%$sharedstatedir%g
10958 s%@localstatedir@%$localstatedir%g
10959 s%@libdir@%$libdir%g
10960 s%@includedir@%$includedir%g
10961 s%@oldincludedir@%$oldincludedir%g
10962 s%@infodir@%$infodir%g
10963 s%@mandir@%$mandir%g
10964 s%@RUNPROG@%$RUNPROG%g
10965 s%@MPROGS@%$MPROGS%g
10966 s%@LDSHFLAGS@%$LDSHFLAGS%g
10967 s%@HOST_OS@%$HOST_OS%g
10969 s%@WRAP32@%$WRAP32%g
10970 s%@PICFLAG@%$PICFLAG%g
10971 s%@SHLIBEXT@%$SHLIBEXT%g
10973 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10974 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10975 s%@INSTALL_DATA@%$INSTALL_DATA%g
10978 s%@host_alias@%$host_alias%g
10979 s%@host_cpu@%$host_cpu%g
10980 s%@host_vendor@%$host_vendor%g
10981 s%@host_os@%$host_os%g
10983 s%@build_alias@%$build_alias%g
10984 s%@build_cpu@%$build_cpu%g
10985 s%@build_vendor@%$build_vendor%g
10986 s%@build_os@%$build_os%g
10987 s%@RANLIB@%$RANLIB%g
10989 s%@LIBTOOL@%$LIBTOOL%g
10990 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
10991 s%@BROKEN_CC@%$BROKEN_CC%g
10992 s%@target@%$target%g
10993 s%@target_alias@%$target_alias%g
10994 s%@target_cpu@%$target_cpu%g
10995 s%@target_vendor@%$target_vendor%g
10996 s%@target_os@%$target_os%g
10998 s%@LIBOBJS@%$LIBOBJS%g
11000 s%@QUOTAOBJS@%$QUOTAOBJS%g
11001 s%@privatedir@%$privatedir%g
11002 s%@lockdir@%$lockdir%g
11003 s%@swatdir@%$swatdir%g
11004 s%@builddir@%$builddir%g
11009 cat >> $CONFIG_STATUS <<\EOF
11011 # Split the substitutions into bite-sized pieces for seds with
11012 # small command number limits, like on Digital OSF/1 and HP-UX.
11013 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11014 ac_file
=1 # Number of current file.
11015 ac_beg
=1 # First line for current file.
11016 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11019 while $ac_more_lines; do
11020 if test $ac_beg -gt 1; then
11021 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11023 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11025 if test ! -s conftest.s
$ac_file; then
11026 ac_more_lines
=false
11027 rm -f conftest.s
$ac_file
11029 if test -z "$ac_sed_cmds"; then
11030 ac_sed_cmds
="sed -f conftest.s$ac_file"
11032 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11034 ac_file
=`expr $ac_file + 1`
11036 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11039 if test -z "$ac_sed_cmds"; then
11044 cat >> $CONFIG_STATUS <<EOF
11046 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11048 cat >> $CONFIG_STATUS <<\EOF
11049 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11052 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11053 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11054 *) ac_file_in
="${ac_file}.in" ;;
11057 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11059 # Remove last slash and all that follows it. Not all systems have dirname.
11060 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11061 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11062 # The file is in a subdirectory.
11063 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11064 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11065 # A "../" for each directory in $ac_dir_suffix.
11066 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11068 ac_dir_suffix
= ac_dots
=
11071 case "$ac_given_srcdir" in
11073 if test -z "$ac_dots"; then top_srcdir
=.
11074 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11075 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11076 *) # Relative path.
11077 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11078 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11081 case "$ac_given_INSTALL" in
11082 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11083 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11086 echo creating
"$ac_file"
11088 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11090 *Makefile
*) ac_comsub
="1i\\
11091 # $configure_input" ;;
11095 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11097 s%@configure_input@%$configure_input%g
11098 s%@srcdir@%$srcdir%g
11099 s%@top_srcdir@%$top_srcdir%g
11100 s%@INSTALL@%$INSTALL%g
11101 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11105 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11106 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11108 # ac_d sets the value in "#define NAME VALUE" lines.
11109 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11110 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11113 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11114 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11115 ac_uB
='\([ ]\)%\1#\2define\3'
11118 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11119 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11120 ac_eB
='$%\1#\2define\3'
11124 if test "${CONFIG_HEADERS+set}" != set; then
11126 cat >> $CONFIG_STATUS <<EOF
11127 CONFIG_HEADERS="include/config.h"
11129 cat >> $CONFIG_STATUS <<\EOF
11131 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11134 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11135 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11136 *) ac_file_in
="${ac_file}.in" ;;
11139 echo creating
$ac_file
11141 rm -f conftest.frag conftest.
in conftest.out
11142 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11143 cat $ac_file_inputs > conftest.
in
11147 # Transform confdefs.h into a sed script conftest.vals that substitutes
11148 # the proper values into config.h.in to produce config.h. And first:
11149 # Protect against being on the right side of a sed subst in config.status.
11150 # Protect against being in an unquoted here document in config.status.
11151 rm -f conftest.vals
11152 cat > conftest.hdr
<<\EOF
11155 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11159 sed -n -f conftest.hdr confdefs.h > conftest.vals
11162 # This sed command replaces #undef with comments. This is necessary, for
11163 # example, in the case of _POSIX_SOURCE, which is predefined and required
11164 # on some systems where configure will not decide to define it.
11165 cat >> conftest.vals <<\EOF
11166 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11169 # Break up conftest.vals because some shells have a limit on
11170 # the size of here documents, and old seds have small limits too.
11172 rm -f conftest.tail
11175 ac_lines=`grep -c . conftest.vals
`
11176 # grep -c gives empty output for an empty file on some AIX systems.
11177 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11178 # Write a limited-size here document to conftest.frag.
11179 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11180 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11182 sed -f conftest.frag conftest.in > conftest.out
11184 mv conftest.out conftest.in
11185 ' >> $CONFIG_STATUS
11186 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11187 rm -f conftest.vals
11188 mv conftest.tail conftest.vals
11190 rm -f conftest.vals
11192 cat >> $CONFIG_STATUS <<\EOF
11193 rm -f conftest.frag conftest.h
11194 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11195 cat conftest.in >> conftest.h
11197 if cmp -s $ac_file conftest.h 2>/dev/null; then
11198 echo "$ac_file is unchanged"
11201 # Remove last slash and all that follows it. Not all systems have dirname.
11202 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11203 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11204 # The file is in a subdirectory.
11205 test ! -d "$ac_dir" && mkdir "$ac_dir"
11208 mv conftest.h $ac_file
11213 cat >> $CONFIG_STATUS <<EOF
11216 cat >> $CONFIG_STATUS <<\EOF
11220 chmod +x $CONFIG_STATUS
11221 rm -fr confdefs* $ac_clean_files
11222 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1