3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs use FHS-compliant paths [default=no]"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
28 --enable-debug turn on debugging [default=no]"
30 --enable-shared[=PKGS] build shared libraries [default=yes]"
32 --enable-static[=PKGS] build static libraries [default=yes]"
34 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
36 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
38 --disable-libtool-lock avoid locking (might break parallel builds)"
40 --with-readline[=DIR] Look for readline include/libs in DIR
41 --without-readline Don't include readline support"
43 --with-smbwrapper Include SMB wrapper support
44 --without-smbwrapper Don't include SMB wrapper support (default)"
46 --with-afs Include AFS support
47 --without-afs Don't include AFS support (default)"
49 --with-dfs Include DFS support
50 --without-dfs Don't include DFS support (default)"
52 --with-krb4=base-dir Include Kerberos IV support
53 --without-krb4 Don't include Kerberos IV support (default)"
55 --with-krb5=base-dir Include Kerberos 5 support
56 --without-krb5 Don't include Kerberos 5 support (default)"
58 --with-automount Include AUTOMOUNT support
59 --without-automount Don't include AUTOMOUNT support (default)"
61 --with-smbmount Include SMBMOUNT (Linux only) support
62 --without-smbmount Don't include SMBMOUNT support (default)"
64 --with-pam Include PAM password database support
65 --without-pam Don't include PAM password database support (default)"
67 --with-pam_smbpass Include the smbpass PAM module
68 --without-pam_smbpass Don't include the smbpass PAM module (default)"
70 --with-nisplus Include NISPLUS password database support
71 --without-nisplus Don't include NISPLUS password database support (default)"
73 --with-nisplus-home Include NISPLUS_HOME support
74 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
76 --with-ssl Include SSL support
77 --without-ssl Don't include SSL support (default)
78 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
80 --with-syslog Include experimental SYSLOG support
81 --without-syslog Don't include SYSLOG support (default)"
83 --with-profile Include profile support
84 --without-profile Don't include profile support (default)"
86 --with-netatalk Include experimental Netatalk support
87 --without-netatalk Don't include experimental Netatalk support (default)"
89 --with-quotas Include experimental disk-quota support
90 --without-quotas Don't include experimental disk-quota support (default)"
92 --with-utmp Include experimental utmp accounting
93 --without-utmp Don't include experimental utmp accounting (default)"
95 --with-msdfs Include MS Dfs support
96 --without-msdfs Don't include MS Dfs support (default)"
98 --with-vfs Include Samba vfs support
99 --without-vfs Don't include Samba vfs support (default)"
101 --with-spinlocks use spin locks instead of fcntl locks "
103 --with-acl-support Include ACL support
104 --without-acl-support Don't include ACL support (default)"
106 # Initialize some variables set by options.
107 # The variables have the same names as the options, with
108 # dashes changed to underlines.
110 cache_file
=.
/config.cache
119 program_transform_name
=s
,x
,x
,
127 bindir
='${exec_prefix}/bin'
128 sbindir
='${exec_prefix}/sbin'
129 libexecdir
='${exec_prefix}/libexec'
130 datadir
='${prefix}/share'
131 sysconfdir
='${prefix}/etc'
132 sharedstatedir
='${prefix}/com'
133 localstatedir
='${prefix}/var'
134 libdir
='${exec_prefix}/lib'
135 includedir
='${prefix}/include'
136 oldincludedir
='/usr/include'
137 infodir
='${prefix}/info'
138 mandir
='${prefix}/man'
140 # Initialize some other variables.
143 SHELL
=${CONFIG_SHELL-/bin/sh}
144 # Maximum number of lines to put in a shell here document.
151 # If the previous option needs an argument, assign it.
152 if test -n "$ac_prev"; then
153 eval "$ac_prev=\$ac_option"
159 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
163 # Accept the important Cygnus configure options, so we can diagnose typos.
167 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
169 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
170 bindir
="$ac_optarg" ;;
172 -build |
--build |
--buil |
--bui |
--bu)
174 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
175 build
="$ac_optarg" ;;
177 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
178 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
179 ac_prev
=cache_file
;;
180 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
181 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
182 cache_file
="$ac_optarg" ;;
184 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
186 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
188 datadir
="$ac_optarg" ;;
190 -disable-* |
--disable-*)
191 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
192 # Reject names that are not valid shell variable names.
193 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
194 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
196 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
197 eval "enable_${ac_feature}=no" ;;
199 -enable-* |
--enable-*)
200 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
201 # Reject names that are not valid shell variable names.
202 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
203 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
205 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
210 eval "enable_${ac_feature}='$ac_optarg'" ;;
212 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
213 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
214 |
--exec |
--exe |
--ex)
215 ac_prev
=exec_prefix
;;
216 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
217 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
218 |
--exec=* |
--exe=* |
--ex=*)
219 exec_prefix
="$ac_optarg" ;;
221 -gas |
--gas |
--ga |
--g)
222 # Obsolete; use --with-gas.
225 -help |
--help |
--hel |
--he)
226 # Omit some internal or obsolete options to make the list less imposing.
227 # This message is too long to be a string in the A/UX 3.1 sh.
229 Usage: configure [options] [host]
230 Options: [defaults in brackets after descriptions]
232 --cache-file=FILE cache test results in FILE
233 --help print this message
234 --no-create do not create output files
235 --quiet, --silent do not print \`checking...' messages
236 --version print the version of autoconf that created configure
237 Directory and file names:
238 --prefix=PREFIX install architecture-independent files in PREFIX
240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
242 --bindir=DIR user executables in DIR [EPREFIX/bin]
243 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
244 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
245 --datadir=DIR read-only architecture-independent data in DIR
247 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
248 --sharedstatedir=DIR modifiable architecture-independent data in DIR
250 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
251 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
252 --includedir=DIR C header files in DIR [PREFIX/include]
253 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
254 --infodir=DIR info documentation in DIR [PREFIX/info]
255 --mandir=DIR man documentation in DIR [PREFIX/man]
256 --srcdir=DIR find the sources in DIR [configure dir or ..]
257 --program-prefix=PREFIX prepend PREFIX to installed program names
258 --program-suffix=SUFFIX append SUFFIX to installed program names
259 --program-transform-name=PROGRAM
260 run sed PROGRAM on installed program names
264 --build=BUILD configure for building on BUILD [BUILD=HOST]
265 --host=HOST configure for HOST [guessed]
266 --target=TARGET configure for TARGET [TARGET=HOST]
267 Features and packages:
268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
270 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
271 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
272 --x-includes=DIR X include files are in DIR
273 --x-libraries=DIR X library files are in DIR
275 if test -n "$ac_help"; then
276 echo "--enable and --with options recognized:$ac_help"
280 -host |
--host |
--hos |
--ho)
282 -host=* |
--host=* |
--hos=* |
--ho=*)
285 -includedir |
--includedir |
--includedi |
--included |
--include \
286 |
--includ |
--inclu |
--incl |
--inc)
287 ac_prev
=includedir
;;
288 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
289 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
290 includedir
="$ac_optarg" ;;
292 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
294 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
295 infodir
="$ac_optarg" ;;
297 -libdir |
--libdir |
--libdi |
--libd)
299 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
300 libdir
="$ac_optarg" ;;
302 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
303 |
--libexe |
--libex |
--libe)
304 ac_prev
=libexecdir
;;
305 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
306 |
--libexe=* |
--libex=* |
--libe=*)
307 libexecdir
="$ac_optarg" ;;
309 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
310 |
--localstate |
--localstat |
--localsta |
--localst \
311 |
--locals |
--local |
--loca |
--loc |
--lo)
312 ac_prev
=localstatedir
;;
313 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
314 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
315 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
316 localstatedir
="$ac_optarg" ;;
318 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
320 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
321 mandir
="$ac_optarg" ;;
324 # Obsolete; use --without-fp.
327 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
331 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
332 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
335 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
336 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
337 |
--oldin |
--oldi |
--old |
--ol |
--o)
338 ac_prev
=oldincludedir
;;
339 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
340 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
341 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
342 oldincludedir
="$ac_optarg" ;;
344 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
346 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
347 prefix
="$ac_optarg" ;;
349 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
350 |
--program-pre |
--program-pr |
--program-p)
351 ac_prev
=program_prefix
;;
352 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
353 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
354 program_prefix
="$ac_optarg" ;;
356 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
357 |
--program-suf |
--program-su |
--program-s)
358 ac_prev
=program_suffix
;;
359 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
360 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
361 program_suffix
="$ac_optarg" ;;
363 -program-transform-name |
--program-transform-name \
364 |
--program-transform-nam |
--program-transform-na \
365 |
--program-transform-n |
--program-transform- \
366 |
--program-transform |
--program-transfor \
367 |
--program-transfo |
--program-transf \
368 |
--program-trans |
--program-tran \
369 |
--progr-tra |
--program-tr |
--program-t)
370 ac_prev
=program_transform_name
;;
371 -program-transform-name=* |
--program-transform-name=* \
372 |
--program-transform-nam=* |
--program-transform-na=* \
373 |
--program-transform-n=* |
--program-transform-=* \
374 |
--program-transform=* |
--program-transfor=* \
375 |
--program-transfo=* |
--program-transf=* \
376 |
--program-trans=* |
--program-tran=* \
377 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
378 program_transform_name
="$ac_optarg" ;;
380 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
381 |
-silent |
--silent |
--silen |
--sile |
--sil)
384 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
386 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
388 sbindir
="$ac_optarg" ;;
390 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
391 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
392 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
394 ac_prev
=sharedstatedir
;;
395 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
396 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
397 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
399 sharedstatedir
="$ac_optarg" ;;
401 -site |
--site |
--sit)
403 -site=* |
--site=* |
--sit=*)
406 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
408 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
409 srcdir
="$ac_optarg" ;;
411 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
412 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
413 ac_prev
=sysconfdir
;;
414 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
415 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
416 sysconfdir
="$ac_optarg" ;;
418 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
420 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
421 target
="$ac_optarg" ;;
423 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
426 -version |
--version |
--versio |
--versi |
--vers)
427 echo "configure generated by autoconf version 2.13"
431 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
432 # Reject names that are not valid shell variable names.
433 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
434 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
436 ac_package
=`echo $ac_package| sed 's/-/_/g'`
441 eval "with_${ac_package}='$ac_optarg'" ;;
443 -without-* |
--without-*)
444 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
445 # Reject names that are not valid shell variable names.
446 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
447 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
449 ac_package
=`echo $ac_package| sed 's/-/_/g'`
450 eval "with_${ac_package}=no" ;;
453 # Obsolete; use --with-x.
456 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
457 |
--x-incl |
--x-inc |
--x-in |
--x-i)
458 ac_prev
=x_includes
;;
459 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
460 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
461 x_includes
="$ac_optarg" ;;
463 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
464 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
465 ac_prev
=x_libraries
;;
466 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
467 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
468 x_libraries
="$ac_optarg" ;;
470 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
474 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
475 echo "configure: warning: $ac_option: invalid host type" 1>&2
477 if test "x$nonopt" != xNONE
; then
478 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
486 if test -n "$ac_prev"; then
487 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
492 # File descriptor usage:
495 # 2 errors and warnings
496 # 3 some systems may open it to /dev/tty
497 # 4 used on the Kubota Titan
498 # 6 checking for... messages and results
499 # 5 compiler messages saved in config.log
500 if test "$silent" = yes; then
508 This file contains any messages produced by compilers while
509 running configure, to aid debugging if configure makes a mistake.
512 # Strip out --no-create and --no-recursion so they do not pile up.
513 # Also quote any args containing shell metacharacters.
518 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
519 |
--no-cr |
--no-c) ;;
520 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
521 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
522 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
523 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
524 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
529 # Only set these to C if already set. These must not be set unconditionally
530 # because not all systems understand e.g. LANG=C (notably SCO).
531 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
532 # Non-C LC_CTYPE values break the ctype check.
533 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
534 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
535 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
536 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
539 rm -rf conftest
* confdefs.h
540 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
543 # A filename unique to this package, relative to the directory that
544 # configure is in, which we can look for to find out if srcdir is correct.
545 ac_unique_file
=include
/includes.h
547 # Find the source files, if location was not specified.
548 if test -z "$srcdir"; then
549 ac_srcdir_defaulted
=yes
550 # Try the directory containing this script, then its parent.
552 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
553 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
555 if test ! -r $srcdir/$ac_unique_file; then
559 ac_srcdir_defaulted
=no
561 if test ! -r $srcdir/$ac_unique_file; then
562 if test "$ac_srcdir_defaulted" = yes; then
563 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
565 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
568 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
570 # Prefer explicitly selected file to automatically selected ones.
571 if test -z "$CONFIG_SITE"; then
572 if test "x$prefix" != xNONE
; then
573 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
575 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
578 for ac_site_file
in $CONFIG_SITE; do
579 if test -r "$ac_site_file"; then
580 echo "loading site script $ac_site_file"
585 if test -r "$cache_file"; then
586 echo "loading cache $cache_file"
589 echo "creating cache $cache_file"
594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
595 ac_cpp
='$CPP $CPPFLAGS'
596 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
597 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
598 cross_compiling
=$ac_cv_prog_cc_cross
602 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
603 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
604 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
611 ac_n
= ac_c
='\c' ac_t
=
617 #################################################
618 # Directory handling stuff to support both the
619 # legacy SAMBA directories and FHS compliant
623 # Check whether --with-fhs or --without-fhs was given.
624 if test "${with_fhs+set}" = set; then
626 codepagedir
="\$(DATADIR)/samba/codepages"
627 configdir
="${sysconfdir}/samba"
628 lockdir
="\${VARDIR}/lock/samba"
629 logfilebase
="\${VARDIR}/log/samba"
630 privatedir
="\${CONFIGDIR}/private"
631 swatdir
="\${DATADIR}/samba/swat"
633 codepagedir
="\$(LIBDIR)/codepages"
634 configdir
="\$(LIBDIR)"
635 lockdir
="\$(VARDIR)/locks"
636 logfilebase
="\$(VARDIR)"
637 privatedir
="\${prefix}/private"
638 swatdir
="\${prefix}/swat"
642 #################################################
643 # set private directory location
644 # Check whether --with-privatedir or --without-privatedir was given.
645 if test "${with_privatedir+set}" = set; then
646 withval
="$with_privatedir"
650 # Just in case anybody calls it without argument
652 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
655 privatedir
="$withval"
661 #################################################
662 # set lock directory location
663 # Check whether --with-lockdir or --without-lockdir was given.
664 if test "${with_lockdir+set}" = set; then
665 withval
="$with_lockdir"
669 # Just in case anybody calls it without argument
671 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
680 #################################################
681 # set SWAT directory location
682 # Check whether --with-swatdir or --without-swatdir was given.
683 if test "${with_swatdir+set}" = set; then
684 withval
="$with_swatdir"
688 # Just in case anybody does it
690 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
699 #################################################
700 # set configuration directory location
701 # Check whether --with-configdir or --without-configdir was given.
702 if test "${with_configdir+set}" = set; then
703 withval
="$with_configdir"
707 # Just in case anybody does it
709 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
718 #################################################
719 # set codepage directory location
720 # Check whether --with-codepagedir or --without-codepagedir was given.
721 if test "${with_codepagedir+set}" = set; then
722 withval
="$with_codepagedir"
726 # Just in case anybody does it
728 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
731 codepagedir
="$withval"
758 # compile with optimization and without debugging by default
759 CFLAGS
="-O ${CFLAGS}"
761 # Check whether --enable-debug or --disable-debug was given.
762 if test "${enable_debug+set}" = set; then
763 enableval
="$enable_debug"
764 if eval "test x$enable_debug = xyes"; then
765 CFLAGS
="${CFLAGS} -g"
772 # Extract the first word of "gcc", so it can be a program name with args.
773 set dummy gcc
; ac_word
=$2
774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
775 echo "configure:776: checking for $ac_word" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 if test -n "$CC"; then
780 ac_cv_prog_CC
="$CC" # Let the user override the test.
782 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
784 for ac_dir
in $ac_dummy; do
785 test -z "$ac_dir" && ac_dir
=.
786 if test -f $ac_dir/$ac_word; then
795 if test -n "$CC"; then
796 echo "$ac_t""$CC" 1>&6
798 echo "$ac_t""no" 1>&6
801 if test -z "$CC"; then
802 # Extract the first word of "cc", so it can be a program name with args.
803 set dummy cc
; ac_word
=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$CC"; then
810 ac_cv_prog_CC
="$CC" # Let the user override the test.
812 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
815 for ac_dir
in $ac_dummy; do
816 test -z "$ac_dir" && ac_dir
=.
817 if test -f $ac_dir/$ac_word; then
818 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
827 if test $ac_prog_rejected = yes; then
828 # We found a bogon in the path, so make sure we never use it.
829 set dummy
$ac_cv_prog_CC
831 if test $# -gt 0; then
832 # We chose a different compiler from the bogus one.
833 # However, it has the same basename, so the bogon will be chosen
834 # first if we set CC to just the basename; use the full file name.
836 set dummy
"$ac_dir/$ac_word" "$@"
844 if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6
847 echo "$ac_t""no" 1>&6
850 if test -z "$CC"; then
853 # Extract the first word of "cl", so it can be a program name with args.
854 set dummy cl
; ac_word
=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
860 if test -n "$CC"; then
861 ac_cv_prog_CC
="$CC" # Let the user override the test.
863 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
865 for ac_dir
in $ac_dummy; do
866 test -z "$ac_dir" && ac_dir
=.
867 if test -f $ac_dir/$ac_word; then
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
884 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
887 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
888 echo "configure:889: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp
='$CPP $CPPFLAGS'
893 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling
=$ac_cv_prog_cc_cross
897 cat > conftest.
$ac_ext << EOF
899 #line 900 "configure"
900 #include "confdefs.h"
904 if { (eval echo configure
:905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
905 ac_cv_prog_cc_works
=yes
906 # If we can't run a trivial program, we are probably using a cross compiler.
907 if (.
/conftest
; exit) 2>/dev
/null
; then
908 ac_cv_prog_cc_cross
=no
910 ac_cv_prog_cc_cross
=yes
913 echo "configure: failed program was:" >&5
914 cat conftest.
$ac_ext >&5
915 ac_cv_prog_cc_works
=no
919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
920 ac_cpp
='$CPP $CPPFLAGS'
921 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
922 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
923 cross_compiling
=$ac_cv_prog_cc_cross
925 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
926 if test $ac_cv_prog_cc_works = no
; then
927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
930 echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
931 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
932 cross_compiling
=$ac_cv_prog_cc_cross
934 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
935 echo "configure:936: checking whether we are using GNU C" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 cat > conftest.c
<<EOF
944 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
951 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
953 if test $ac_cv_prog_gcc = yes; then
959 ac_test_CFLAGS
="${CFLAGS+set}"
960 ac_save_CFLAGS
="$CFLAGS"
962 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
963 echo "configure:964: checking whether ${CC-cc} accepts -g" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 echo 'void f(){}' > conftest.c
968 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
977 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
978 if test "$ac_test_CFLAGS" = set; then
979 CFLAGS
="$ac_save_CFLAGS"
980 elif test $ac_cv_prog_cc_g = yes; then
981 if test "$GCC" = yes; then
987 if test "$GCC" = yes; then
995 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
996 if test -f $ac_dir/install-sh
; then
998 ac_install_sh
="$ac_aux_dir/install-sh -c"
1000 elif test -f $ac_dir/install.sh
; then
1002 ac_install_sh
="$ac_aux_dir/install.sh -c"
1006 if test -z "$ac_aux_dir"; then
1007 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1009 ac_config_guess
=$ac_aux_dir/config.guess
1010 ac_config_sub
=$ac_aux_dir/config.sub
1011 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1013 # Find a good install program. We prefer a C program (faster),
1014 # so one script is as good as another. But avoid the broken or
1015 # incompatible versions:
1016 # SysV /etc/install, /usr/sbin/install
1017 # SunOS /usr/etc/install
1018 # IRIX /sbin/install
1020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1023 # ./install, which can be erroneously created by make from ./install.sh.
1024 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1025 echo "configure:1026: checking for a BSD compatible install" >&5
1026 if test -z "$INSTALL"; then
1027 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1031 for ac_dir
in $PATH; do
1032 # Account for people who put trailing slashes in PATH elements.
1034 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1036 # OSF1 and SCO ODT 3.0 have their own names for install.
1037 # Don't use installbsd from OSF since it installs stuff as root
1039 for ac_prog
in ginstall scoinst
install; do
1040 if test -f $ac_dir/$ac_prog; then
1041 if test $ac_prog = install &&
1042 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1043 # AIX install. It has an incompatible calling convention.
1046 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1057 if test "${ac_cv_path_install+set}" = set; then
1058 INSTALL
="$ac_cv_path_install"
1060 # As a last resort, use the slow shell script. We don't cache a
1061 # path for INSTALL within a source directory, because that will
1062 # break other packages using the cache if that directory is
1063 # removed, or if the path is relative.
1064 INSTALL
="$ac_install_sh"
1067 echo "$ac_t""$INSTALL" 1>&6
1069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1070 # It thinks the first close brace ends the variable substitution.
1071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1075 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1077 for ac_prog
in gawk mawk nawk
awk
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy
$ac_prog; ac_word
=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 if test -n "$AWK"; then
1087 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1089 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1091 for ac_dir
in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir
=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_AWK
="$ac_prog"
1101 AWK
="$ac_cv_prog_AWK"
1102 if test -n "$AWK"; then
1103 echo "$ac_t""$AWK" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 test -n "$AWK" && break
1111 # Check whether --enable-shared or --disable-shared was given.
1112 if test "${enable_shared+set}" = set; then
1113 enableval
="$enable_shared"
1114 p
=${PACKAGE-default}
1115 case "$enableval" in
1116 yes) enable_shared
=yes ;;
1117 no
) enable_shared
=no
;;
1120 # Look at the argument we got. We use all the common list separators.
1121 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1122 for pkg
in $enableval; do
1123 if test "X$pkg" = "X$p"; then
1134 # Check whether --enable-static or --disable-static was given.
1135 if test "${enable_static+set}" = set; then
1136 enableval
="$enable_static"
1137 p
=${PACKAGE-default}
1138 case "$enableval" in
1139 yes) enable_static
=yes ;;
1140 no
) enable_static
=no
;;
1143 # Look at the argument we got. We use all the common list separators.
1144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1145 for pkg
in $enableval; do
1146 if test "X$pkg" = "X$p"; then
1157 # Check whether --enable-fast-install or --disable-fast-install was given.
1158 if test "${enable_fast_install+set}" = set; then
1159 enableval
="$enable_fast_install"
1160 p
=${PACKAGE-default}
1161 case "$enableval" in
1162 yes) enable_fast_install
=yes ;;
1163 no
) enable_fast_install
=no
;;
1165 enable_fast_install
=no
1166 # Look at the argument we got. We use all the common list separators.
1167 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1168 for pkg
in $enableval; do
1169 if test "X$pkg" = "X$p"; then
1170 enable_fast_install
=yes
1177 enable_fast_install
=yes
1181 # Make sure we can run config.sub.
1182 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1183 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1186 echo $ac_n "checking host system type""... $ac_c" 1>&6
1187 echo "configure:1188: checking host system type" >&5
1190 case "$host_alias" in
1194 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1195 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1197 *) host_alias
=$nonopt ;;
1201 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1202 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1203 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1204 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1205 echo "$ac_t""$host" 1>&6
1207 echo $ac_n "checking build system type""... $ac_c" 1>&6
1208 echo "configure:1209: checking build system type" >&5
1211 case "$build_alias" in
1214 NONE
) build_alias
=$host_alias ;;
1215 *) build_alias
=$nonopt ;;
1219 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1220 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1221 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1222 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1223 echo "$ac_t""$build" 1>&6
1225 # Extract the first word of "ranlib", so it can be a program name with args.
1226 set dummy ranlib
; ac_word
=$2
1227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1228 echo "configure:1229: checking for $ac_word" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 if test -n "$RANLIB"; then
1233 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1235 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1237 for ac_dir
in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir
=.
1239 if test -f $ac_dir/$ac_word; then
1240 ac_cv_prog_RANLIB
="ranlib"
1245 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1248 RANLIB
="$ac_cv_prog_RANLIB"
1249 if test -n "$RANLIB"; then
1250 echo "$ac_t""$RANLIB" 1>&6
1252 echo "$ac_t""no" 1>&6
1255 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1256 if test "${with_gnu_ld+set}" = set; then
1257 withval
="$with_gnu_ld"
1258 test "$withval" = no || with_gnu_ld
=yes
1264 if test "$ac_cv_prog_gcc" = yes; then
1265 # Check if gcc -print-prog-name=ld gives a path.
1266 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1267 echo "configure:1268: checking for ld used by GCC" >&5
1268 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1270 # Accept absolute paths.
1271 [\\/]* |
[A-Za-z
]:[\\/]*)
1272 re_direlt
='/[^/][^/]*/\.\./'
1273 # Canonicalize the path of ld
1274 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1275 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1276 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1278 test -z "$LD" && LD
="$ac_prog"
1281 # If it fails, then pretend we aren't using GCC.
1285 # If it is relative, then search for the first ld in PATH.
1289 elif test "$with_gnu_ld" = yes; then
1290 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1291 echo "configure:1292: checking for GNU ld" >&5
1293 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1294 echo "configure:1295: checking for non-GNU ld" >&5
1296 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 if test -z "$LD"; then
1300 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1301 for ac_dir
in $PATH; do
1302 test -z "$ac_dir" && ac_dir
=.
1303 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1304 ac_cv_path_LD
="$ac_dir/$ac_prog"
1305 # Check to see if the program is GNU ld. I'd rather use --version,
1306 # but apparently some GNU ld's only accept -v.
1307 # Break only if it was the GNU/non-GNU ld that we prefer.
1308 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1309 test "$with_gnu_ld" != no
&& break
1311 test "$with_gnu_ld" != yes && break
1317 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1322 if test -n "$LD"; then
1323 echo "$ac_t""$LD" 1>&6
1325 echo "$ac_t""no" 1>&6
1327 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1328 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1329 echo "configure:1330: checking if the linker ($LD) is GNU ld" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1334 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1335 ac_cv_prog_gnu_ld
=yes
1337 ac_cv_prog_gnu_ld
=no
1341 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1344 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1345 echo "configure:1346: checking for BSD-compatible nm" >&5
1346 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -n "$NM"; then
1350 # Let the user override the test.
1353 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1354 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1355 test -z "$ac_dir" && ac_dir
=.
1356 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1357 # Check to see if the nm accepts a BSD-compat flag.
1358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1359 # nm: unknown option "B" ignored
1360 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1361 ac_cv_path_NM
="$ac_dir/nm -B"
1363 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1364 ac_cv_path_NM
="$ac_dir/nm -p"
1367 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1368 continue # so that we can try to find one that supports BSD flags
1373 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1378 echo "$ac_t""$NM" 1>&6
1380 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ln -s works" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1386 if ln -s X conftestdata
2>/dev
/null
1389 ac_cv_prog_LN_S
="ln -s"
1394 LN_S
="$ac_cv_prog_LN_S"
1395 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1396 echo "$ac_t""yes" 1>&6
1398 echo "$ac_t""no" 1>&6
1403 NONE
) lt_target
="$host" ;;
1404 *) lt_target
="$target" ;;
1407 # Check for any special flags to pass to ltconfig.
1408 libtool_flags
="--cache-file=$cache_file"
1409 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1410 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1411 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1412 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1413 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1416 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1417 if test "${enable_libtool_lock+set}" = set; then
1418 enableval
="$enable_libtool_lock"
1422 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1423 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1425 # Some flags need to be propagated to the compiler or linker for good
1427 case "$lt_target" in
1429 # Find out which ABI we are using.
1430 echo '#line 1431 "configure"' > conftest.
$ac_ext
1431 if { (eval echo configure
:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1432 case "`/usr/bin/file conftest.o`" in
1448 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1449 SAVE_CFLAGS
="$CFLAGS"
1450 CFLAGS
="$CFLAGS -belf"
1451 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1452 echo "configure:1453: checking whether the C compiler needs -belf" >&5
1453 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1456 cat > conftest.
$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1464 if { (eval echo configure
:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1466 lt_cv_cc_needs_belf
=yes
1468 echo "configure: failed program was:" >&5
1469 cat conftest.
$ac_ext >&5
1471 lt_cv_cc_needs_belf
=no
1476 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1477 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1478 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1479 CFLAGS
="$SAVE_CFLAGS"
1487 # Save cache, so that ltconfig can load it
1488 cat > confcache
<<\EOF
1489 # This file is a shell script that caches the results of configure
1490 # tests run on this system so they can be shared between configure
1491 # scripts and configure runs. It is not useful on other systems.
1492 # If it contains results you don't want to keep, you may remove or edit it.
1494 # By default, configure uses ./config.cache as the cache file,
1495 # creating it if it does not exist already. You can give configure
1496 # the --cache-file=FILE option to use a different cache file; that is
1497 # what configure does when it calls configure scripts in
1498 # subdirectories, so they share the cache.
1499 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1500 # config.status only pays attention to the cache file if you give it the
1501 # --recheck option to rerun configure.
1504 # The following way of writing the cache mishandles newlines in values,
1505 # but we know of no workaround that is simple, portable, and efficient.
1506 # So, don't put newlines in cache variables' values.
1507 # Ultrix sh set writes to stderr and can't be redirected directly,
1508 # and sets the high bit in the cache file unless we assign to the vars.
1510 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1512 # `set' does not quote correctly, so add quotes (double-quote substitution
1513 # turns \\\\ into \\, and sed turns \\ into \).
1515 -e "s/'/'\\\\''/g" \
1516 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1519 # `set' quotes correctly as required by POSIX, so do not add quotes.
1520 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1523 if cmp -s $cache_file confcache
; then
1526 if test -w $cache_file; then
1527 echo "updating cache $cache_file"
1528 cat confcache
> $cache_file
1530 echo "not updating unwritable cache $cache_file"
1536 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1537 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1538 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1539 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1540 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1541 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1542 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1543 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1545 # Reload cache, that may have been modified by ltconfig
1546 if test -r "$cache_file"; then
1547 echo "loading cache $cache_file"
1550 echo "creating cache $cache_file"
1555 # This can be used to rebuild libtool when needed
1556 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1558 # Always use our own libtool.
1559 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1561 # Redirect the config.log output again, so that the ltconfig log is not
1562 # clobbered by the next message.
1563 exec 5>>.
/config.log
1567 if test "x$CC" != xcc
; then
1568 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1569 echo "configure:1570: checking whether $CC and cc understand -c and -o together" >&5
1571 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1572 echo "configure:1573: checking whether cc understands -c and -o together" >&5
1574 set dummy
$CC; ac_cc
="`echo $2 |
1575 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1576 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 echo 'foo(){}' > conftest.c
1580 # Make sure it works both with $CC and with simple cc.
1581 # We do the test twice because some compilers refuse to overwrite an
1582 # existing .o file with -o, though they will create one.
1583 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1584 if { (eval echo configure
:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1585 test -f conftest.o
&& { (eval echo configure
:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1587 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1588 if test "x$CC" != xcc
; then
1589 # Test first that cc exists at all.
1590 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1591 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1592 if { (eval echo configure
:1593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1593 test -f conftest.o
&& { (eval echo configure
:1594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1598 # cc exists but doesn't like -o.
1599 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1604 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1609 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1610 echo "$ac_t""yes" 1>&6
1612 echo "$ac_t""no" 1>&6
1613 cat >> confdefs.h
<<\EOF
1614 #define NO_MINUS_C_MINUS_O 1
1619 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1626 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1627 echo "configure:1628: checking that the C compiler understands volatile" >&5
1628 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1632 cat > conftest.
$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 #include <sys/types.h>
1640 if { (eval echo configure
:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1642 samba_cv_volatile
=yes
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 samba_cv_volatile
=no
1652 echo "$ac_t""$samba_cv_volatile" 1>&6
1653 if test x
"$samba_cv_volatile" = x
"yes"; then
1654 cat >> confdefs.h
<<\EOF
1655 #define HAVE_VOLATILE 1
1663 # Do some error checking and defaulting for the host and target type.
1665 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1668 # 1. You are not allowed to specify --host, --target, and nonopt at the
1670 # 2. Host defaults to nonopt.
1671 # 3. If nonopt is not specified, then host defaults to the current host,
1672 # as determined by config.guess.
1673 # 4. Target and build default to nonopt.
1674 # 5. If nonopt is not specified, then target and build default to host.
1676 # The aliases save the names the user supplied, while $host etc.
1677 # will get canonicalized.
1678 case $host---$target---$nonopt in
1679 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1680 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1684 # Make sure we can run config.sub.
1685 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1686 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1689 echo $ac_n "checking host system type""... $ac_c" 1>&6
1690 echo "configure:1691: checking host system type" >&5
1693 case "$host_alias" in
1697 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1698 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1700 *) host_alias
=$nonopt ;;
1704 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1705 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1706 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1707 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1708 echo "$ac_t""$host" 1>&6
1710 echo $ac_n "checking target system type""... $ac_c" 1>&6
1711 echo "configure:1712: checking target system type" >&5
1713 target_alias
=$target
1714 case "$target_alias" in
1717 NONE
) target_alias
=$host_alias ;;
1718 *) target_alias
=$nonopt ;;
1722 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1723 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1724 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1725 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1726 echo "$ac_t""$target" 1>&6
1728 echo $ac_n "checking build system type""... $ac_c" 1>&6
1729 echo "configure:1730: checking build system type" >&5
1732 case "$build_alias" in
1735 NONE
) build_alias
=$host_alias ;;
1736 *) build_alias
=$nonopt ;;
1740 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1741 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744 echo "$ac_t""$build" 1>&6
1746 test "$host_alias" != "$target_alias" &&
1747 test "$program_prefix$program_suffix$program_transform_name" = \
1749 program_prefix
=${target_alias}-
1753 *irix6
*) cat >> confdefs.h
<<\EOF
1754 #include <standards.h>
1762 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1763 echo "configure:1764: checking config.cache system type" >&5
1764 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1765 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1766 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1767 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1768 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1769 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1770 echo "$ac_t""different" 1>&6
1771 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1773 echo "$ac_t""same" 1>&6
1775 ac_cv_host_system_type
="$host"
1776 ac_cv_build_system_type
="$build"
1777 ac_cv_target_system_type
="$target"
1781 # Config CPPFLAG settings for strange OS's that must be set
1782 # before other tests.
1785 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1787 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether ${CC-cc} accepts -Ae" >&5
1789 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 echo 'void f(){}' > conftest.c
1793 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1794 ac_cv_prog_cc_Ae
=yes
1802 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1803 if test $ac_cv_prog_cc_Ae = yes; then
1804 CPPFLAGS
="$CPPFLAGS -Ae"
1807 # Defines needed for HPUX support.
1808 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1809 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1813 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1814 cat >> confdefs.h
<<\EOF
1815 #define USE_BOTH_CRYPT_CALLS 1
1820 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1821 cat >> confdefs.h
<<\EOF
1822 #define USE_BOTH_CRYPT_CALLS 1
1829 # AIX4.x doesn't even admit to having large
1830 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1833 echo "$ac_t""enabling large file support" 1>&6
1834 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1837 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1838 # to the existance of large files..
1839 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1840 # recommendations on large file support, however it makes the
1841 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1842 # recommendation makes the compile fail on gcc2.7. JRA.
1847 echo "$ac_t""enabling large file support" 1>&6
1848 if test "$ac_cv_prog_gcc" = yes; then
1849 ${CC-cc} -v >conftest.c
2>&1
1850 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1852 case "$ac_cv_gcc_compiler_version_number" in
1853 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1854 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1857 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1861 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1867 # Tests needed for SINIX large file support.
1870 if test $host = mips-sni-sysv4
; then
1871 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1872 echo "configure:1873: checking for LFS support" >&5
1873 old_CPPFLAGS
="$CPPFLAGS"
1874 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1875 if test "$cross_compiling" = yes; then
1876 SINIX_LFS_SUPPORT
=cross
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1884 #if _LFS64_LARGEFILE == 1
1891 if { (eval echo configure
:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1893 SINIX_LFS_SUPPORT
=yes
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 SINIX_LFS_SUPPORT
=no
1903 CPPFLAGS
="$old_CPPFLAGS"
1904 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1905 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1906 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1907 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1908 LIBS
="`getconf LFS64_LIBS` $LIBS"
1910 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1914 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1917 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1918 echo "configure:1919: checking for LFS support" >&5
1919 old_CPPFLAGS
="$CPPFLAGS"
1920 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1921 if test "$cross_compiling" = yes; then
1922 LINUX_LFS_SUPPORT
=cross
1924 cat > conftest.
$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1929 #include <sys/utsname.h>
1931 #if _LFS64_LARGEFILE == 1
1936 /* Ensure this is glibc 2.2 or higher */
1937 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1938 int libc_major = __GLIBC__;
1939 int libc_minor = __GLIBC_MINOR__;
1947 /* Ensure this is kernel 2.4 or higher */
1950 release = uts.release;
1951 major = atoi(strsep(&release, "."));
1952 minor = atoi(strsep(&release, "."));
1954 if (major > 2 || (major == 2 && minor > 3))
1963 if { (eval echo configure
:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1965 LINUX_LFS_SUPPORT
=yes
1967 echo "configure: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1970 LINUX_LFS_SUPPORT
=no
1975 CPPFLAGS
="$old_CPPFLAGS"
1976 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1977 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1979 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1983 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1984 echo "configure:1985: checking for LFS support" >&5
1985 old_CPPFLAGS
="$CPPFLAGS"
1986 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1987 if test "$cross_compiling" = yes; then
1988 GLIBC_LFS_SUPPORT
=cross
1990 cat > conftest.
$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1996 #if _LFS64_LARGEFILE == 1
2003 if { (eval echo configure
:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2005 GLIBC_LFS_SUPPORT
=yes
2007 echo "configure: failed program was:" >&5
2008 cat conftest.
$ac_ext >&5
2010 GLIBC_LFS_SUPPORT
=no
2015 CPPFLAGS
="$old_CPPFLAGS"
2016 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
2017 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
2019 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
2024 echo $ac_n "checking for inline""... $ac_c" 1>&6
2025 echo "configure:2026: checking for inline" >&5
2026 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2030 for ac_kw
in inline __inline__ __inline
; do
2031 cat > conftest.
$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2039 if { (eval echo configure
:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2041 ac_cv_c_inline
=$ac_kw; break
2043 echo "configure: failed program was:" >&5
2044 cat conftest.
$ac_ext >&5
2051 echo "$ac_t""$ac_cv_c_inline" 1>&6
2052 case "$ac_cv_c_inline" in
2054 no
) cat >> confdefs.h
<<\EOF
2058 *) cat >> confdefs.h
<<EOF
2059 #define inline $ac_cv_c_inline
2064 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2065 echo "configure:2066: checking how to run the C preprocessor" >&5
2066 # On Suns, sometimes $CPP names a directory.
2067 if test -n "$CPP" && test -d "$CPP"; then
2070 if test -z "$CPP"; then
2071 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 # This must be in double quotes, not single quotes, because CPP may get
2075 # substituted into the Makefile and "${CC-cc}" will confuse make.
2077 # On the NeXT, cc -E runs the code through the compiler's parser,
2078 # not just through cpp.
2079 cat > conftest.
$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2085 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2086 { (eval echo configure
:2087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2087 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2088 if test -z "$ac_err"; then
2092 echo "configure: failed program was:" >&5
2093 cat conftest.
$ac_ext >&5
2095 CPP
="${CC-cc} -E -traditional-cpp"
2096 cat > conftest.
$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2103 { (eval echo configure
:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2104 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2105 if test -z "$ac_err"; then
2109 echo "configure: failed program was:" >&5
2110 cat conftest.
$ac_ext >&5
2112 CPP
="${CC-cc} -nologo -E"
2113 cat > conftest.
$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2119 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2120 { (eval echo configure
:2121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2121 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2122 if test -z "$ac_err"; then
2126 echo "configure: failed program was:" >&5
2127 cat conftest.
$ac_ext >&5
2136 ac_cv_prog_CPP
="$CPP"
2138 CPP
="$ac_cv_prog_CPP"
2140 ac_cv_prog_CPP
="$CPP"
2142 echo "$ac_t""$CPP" 1>&6
2144 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2145 echo "configure:2146: checking for ANSI C header files" >&5
2146 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.
$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2157 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2158 { (eval echo configure
:2159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2159 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2160 if test -z "$ac_err"; then
2162 ac_cv_header_stdc
=yes
2165 echo "configure: failed program was:" >&5
2166 cat conftest.
$ac_ext >&5
2168 ac_cv_header_stdc
=no
2172 if test $ac_cv_header_stdc = yes; then
2173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2180 egrep "memchr" >/dev
/null
2>&1; then
2184 ac_cv_header_stdc
=no
2190 if test $ac_cv_header_stdc = yes; then
2191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2198 egrep "free" >/dev
/null
2>&1; then
2202 ac_cv_header_stdc
=no
2208 if test $ac_cv_header_stdc = yes; then
2209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2210 if test "$cross_compiling" = yes; then
2213 cat > conftest.
$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2217 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2218 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2220 int main () { int i; for (i = 0; i < 256; i++)
2221 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2225 if { (eval echo configure
:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2229 echo "configure: failed program was:" >&5
2230 cat conftest.
$ac_ext >&5
2232 ac_cv_header_stdc
=no
2240 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2241 if test $ac_cv_header_stdc = yes; then
2242 cat >> confdefs.h
<<\EOF
2243 #define STDC_HEADERS 1
2249 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2251 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2252 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2253 echo "configure:2254: checking for $ac_hdr that defines DIR" >&5
2254 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2257 cat > conftest.
$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 #include <sys/types.h>
2266 if { (eval echo configure
:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2268 eval "ac_cv_header_dirent_$ac_safe=yes"
2270 echo "configure: failed program was:" >&5
2271 cat conftest.
$ac_ext >&5
2273 eval "ac_cv_header_dirent_$ac_safe=no"
2277 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2278 echo "$ac_t""yes" 1>&6
2279 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2280 cat >> confdefs.h
<<EOF
2281 #define $ac_tr_hdr 1
2283 ac_header_dirent
=$ac_hdr; break
2285 echo "$ac_t""no" 1>&6
2288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2289 if test $ac_header_dirent = dirent.h
; then
2290 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2291 echo "configure:2292: checking for opendir in -ldir" >&5
2292 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 ac_save_LIBS
="$LIBS"
2298 cat > conftest.
$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 /* Override any gcc2 internal prototype to avoid an error. */
2302 /* We use char because int might match the return type of a gcc2
2303 builtin and then its argument prototype would still apply. */
2310 if { (eval echo configure
:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2312 eval "ac_cv_lib_$ac_lib_var=yes"
2314 echo "configure: failed program was:" >&5
2315 cat conftest.
$ac_ext >&5
2317 eval "ac_cv_lib_$ac_lib_var=no"
2320 LIBS
="$ac_save_LIBS"
2323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2327 echo "$ac_t""no" 1>&6
2331 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2332 echo "configure:2333: checking for opendir in -lx" >&5
2333 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 ac_save_LIBS
="$LIBS"
2339 cat > conftest.
$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 /* Override any gcc2 internal prototype to avoid an error. */
2343 /* We use char because int might match the return type of a gcc2
2344 builtin and then its argument prototype would still apply. */
2351 if { (eval echo configure
:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2353 eval "ac_cv_lib_$ac_lib_var=yes"
2355 echo "configure: failed program was:" >&5
2356 cat conftest.
$ac_ext >&5
2358 eval "ac_cv_lib_$ac_lib_var=no"
2361 LIBS
="$ac_save_LIBS"
2364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2368 echo "$ac_t""no" 1>&6
2373 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2374 echo "configure:2375: checking whether time.h and sys/time.h may both be included" >&5
2375 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2378 cat > conftest.
$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 #include <sys/types.h>
2382 #include <sys/time.h>
2388 if { (eval echo configure
:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 ac_cv_header_time
=yes
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 ac_cv_header_time
=no
2400 echo "$ac_t""$ac_cv_header_time" 1>&6
2401 if test $ac_cv_header_time = yes; then
2402 cat >> confdefs.h
<<\EOF
2403 #define TIME_WITH_SYS_TIME 1
2408 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2409 echo "configure:2410: checking for sys/wait.h that is POSIX.1 compatible" >&5
2410 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 cat > conftest.
$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 #include <sys/types.h>
2417 #include <sys/wait.h>
2419 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2422 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2430 if { (eval echo configure
:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2432 ac_cv_header_sys_wait_h
=yes
2434 echo "configure: failed program was:" >&5
2435 cat conftest.
$ac_ext >&5
2437 ac_cv_header_sys_wait_h
=no
2442 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2443 if test $ac_cv_header_sys_wait_h = yes; then
2444 cat >> confdefs.h
<<\EOF
2445 #define HAVE_SYS_WAIT_H 1
2450 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2452 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_hdr" >&5
2455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 cat > conftest.
$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2463 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2464 { (eval echo configure
:2465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2465 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2466 if test -z "$ac_err"; then
2468 eval "ac_cv_header_$ac_safe=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.
$ac_ext >&5
2474 eval "ac_cv_header_$ac_safe=no"
2478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2480 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2481 cat >> confdefs.h
<<EOF
2482 #define $ac_tr_hdr 1
2486 echo "$ac_t""no" 1>&6
2490 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2492 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2494 echo "configure:2495: checking for $ac_hdr" >&5
2495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2503 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2504 { (eval echo configure
:2505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2505 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2506 if test -z "$ac_err"; then
2508 eval "ac_cv_header_$ac_safe=yes"
2511 echo "configure: failed program was:" >&5
2512 cat conftest.
$ac_ext >&5
2514 eval "ac_cv_header_$ac_safe=no"
2518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2521 cat >> confdefs.h
<<EOF
2522 #define $ac_tr_hdr 1
2526 echo "$ac_t""no" 1>&6
2530 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2532 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2534 echo "configure:2535: checking for $ac_hdr" >&5
2535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2538 cat > conftest.
$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2543 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure
:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2546 if test -z "$ac_err"; then
2548 eval "ac_cv_header_$ac_safe=yes"
2551 echo "configure: failed program was:" >&5
2552 cat conftest.
$ac_ext >&5
2554 eval "ac_cv_header_$ac_safe=no"
2558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2560 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2561 cat >> confdefs.h
<<EOF
2562 #define $ac_tr_hdr 1
2566 echo "$ac_t""no" 1>&6
2570 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2572 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_hdr" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.
$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2583 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure
:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2588 eval "ac_cv_header_$ac_safe=yes"
2591 echo "configure: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2594 eval "ac_cv_header_$ac_safe=no"
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2601 cat >> confdefs.h
<<EOF
2602 #define $ac_tr_hdr 1
2606 echo "$ac_t""no" 1>&6
2610 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2612 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_hdr" >&5
2615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 cat > conftest.
$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2624 { (eval echo configure
:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2625 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2626 if test -z "$ac_err"; then
2628 eval "ac_cv_header_$ac_safe=yes"
2631 echo "configure: failed program was:" >&5
2632 cat conftest.
$ac_ext >&5
2634 eval "ac_cv_header_$ac_safe=no"
2638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2639 echo "$ac_t""yes" 1>&6
2640 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2641 cat >> confdefs.h
<<EOF
2642 #define $ac_tr_hdr 1
2646 echo "$ac_t""no" 1>&6
2650 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2652 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_hdr" >&5
2655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.
$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2663 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure
:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2666 if test -z "$ac_err"; then
2668 eval "ac_cv_header_$ac_safe=yes"
2671 echo "configure: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2674 eval "ac_cv_header_$ac_safe=no"
2678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2681 cat >> confdefs.h
<<EOF
2682 #define $ac_tr_hdr 1
2686 echo "$ac_t""no" 1>&6
2690 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2692 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_hdr" >&5
2695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 cat > conftest.
$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2703 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2704 { (eval echo configure
:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2705 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2706 if test -z "$ac_err"; then
2708 eval "ac_cv_header_$ac_safe=yes"
2711 echo "configure: failed program was:" >&5
2712 cat conftest.
$ac_ext >&5
2714 eval "ac_cv_header_$ac_safe=no"
2718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2721 cat >> confdefs.h
<<EOF
2722 #define $ac_tr_hdr 1
2726 echo "$ac_t""no" 1>&6
2731 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2732 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2736 cat > conftest.
$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2744 if { (eval echo configure
:2745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2746 ac_cv_header_shadow_h
=yes
2748 echo "configure: failed program was:" >&5
2749 cat conftest.
$ac_ext >&5
2751 ac_cv_header_shadow_h
=no
2754 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2755 cat >> confdefs.h
<<\EOF
2756 #define HAVE_SHADOW_H 1
2762 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2764 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2766 echo "configure:2767: checking for $ac_hdr" >&5
2767 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.
$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2775 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2776 { (eval echo configure
:2777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2777 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2778 if test -z "$ac_err"; then
2780 eval "ac_cv_header_$ac_safe=yes"
2783 echo "configure: failed program was:" >&5
2784 cat conftest.
$ac_ext >&5
2786 eval "ac_cv_header_$ac_safe=no"
2790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2791 echo "$ac_t""yes" 1>&6
2792 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2793 cat >> confdefs.h
<<EOF
2794 #define $ac_tr_hdr 1
2798 echo "$ac_t""no" 1>&6
2802 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2804 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2806 echo "configure:2807: checking for $ac_hdr" >&5
2807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 cat > conftest.
$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2815 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2816 { (eval echo configure
:2817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2817 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2818 if test -z "$ac_err"; then
2820 eval "ac_cv_header_$ac_safe=yes"
2823 echo "configure: failed program was:" >&5
2824 cat conftest.
$ac_ext >&5
2826 eval "ac_cv_header_$ac_safe=no"
2830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2831 echo "$ac_t""yes" 1>&6
2832 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2833 cat >> confdefs.h
<<EOF
2834 #define $ac_tr_hdr 1
2838 echo "$ac_t""no" 1>&6
2842 for ac_hdr
in stropts.h poll.h
2844 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_hdr" >&5
2847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2855 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2856 { (eval echo configure
:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2857 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2858 if test -z "$ac_err"; then
2860 eval "ac_cv_header_$ac_safe=yes"
2863 echo "configure: failed program was:" >&5
2864 cat conftest.
$ac_ext >&5
2866 eval "ac_cv_header_$ac_safe=no"
2870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2871 echo "$ac_t""yes" 1>&6
2872 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2873 cat >> confdefs.h
<<EOF
2874 #define $ac_tr_hdr 1
2878 echo "$ac_t""no" 1>&6
2882 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2884 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_hdr" >&5
2887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.
$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2895 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2896 { (eval echo configure
:2897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2897 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2898 if test -z "$ac_err"; then
2900 eval "ac_cv_header_$ac_safe=yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2906 eval "ac_cv_header_$ac_safe=no"
2910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2911 echo "$ac_t""yes" 1>&6
2912 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2913 cat >> confdefs.h
<<EOF
2914 #define $ac_tr_hdr 1
2918 echo "$ac_t""no" 1>&6
2922 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h acl
/acl.h
2924 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_hdr" >&5
2927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2935 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2936 { (eval echo configure
:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2938 if test -z "$ac_err"; then
2940 eval "ac_cv_header_$ac_safe=yes"
2943 echo "configure: failed program was:" >&5
2944 cat conftest.
$ac_ext >&5
2946 eval "ac_cv_header_$ac_safe=no"
2950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2953 cat >> confdefs.h
<<EOF
2954 #define $ac_tr_hdr 1
2958 echo "$ac_t""no" 1>&6
2963 # For experimental utmp support (lastlog on some BSD-like systems)
2964 for ac_hdr
in utmp.h utmpx.h lastlog.h
2966 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2968 echo "configure:2969: checking for $ac_hdr" >&5
2969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 cat > conftest.
$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2977 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2978 { (eval echo configure
:2979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2979 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2980 if test -z "$ac_err"; then
2982 eval "ac_cv_header_$ac_safe=yes"
2985 echo "configure: failed program was:" >&5
2986 cat conftest.
$ac_ext >&5
2988 eval "ac_cv_header_$ac_safe=no"
2992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2995 cat >> confdefs.h
<<EOF
2996 #define $ac_tr_hdr 1
3000 echo "$ac_t""no" 1>&6
3005 # For quotas on Veritas VxFS filesystems
3006 for ac_hdr
in sys
/fs
/vx_quota.h
3008 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3010 echo "configure:3011: checking for $ac_hdr" >&5
3011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3014 cat > conftest.
$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3019 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3020 { (eval echo configure
:3021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3021 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3022 if test -z "$ac_err"; then
3024 eval "ac_cv_header_$ac_safe=yes"
3027 echo "configure: failed program was:" >&5
3028 cat conftest.
$ac_ext >&5
3030 eval "ac_cv_header_$ac_safe=no"
3034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3037 cat >> confdefs.h
<<EOF
3038 #define $ac_tr_hdr 1
3042 echo "$ac_t""no" 1>&6
3047 echo $ac_n "checking size of int""... $ac_c" 1>&6
3048 echo "configure:3049: checking size of int" >&5
3049 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 if test "$cross_compiling" = yes; then
3053 ac_cv_sizeof_int
=cross
3055 cat > conftest.
$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3061 FILE *f=fopen("conftestval", "w");
3063 fprintf(f, "%d\n", sizeof(int));
3067 if { (eval echo configure
:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3069 ac_cv_sizeof_int
=`cat conftestval`
3071 echo "configure: failed program was:" >&5
3072 cat conftest.
$ac_ext >&5
3080 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3081 cat >> confdefs.h
<<EOF
3082 #define SIZEOF_INT $ac_cv_sizeof_int
3086 echo $ac_n "checking size of long""... $ac_c" 1>&6
3087 echo "configure:3088: checking size of long" >&5
3088 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 if test "$cross_compiling" = yes; then
3092 ac_cv_sizeof_long
=cross
3094 cat > conftest.
$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3100 FILE *f=fopen("conftestval", "w");
3102 fprintf(f, "%d\n", sizeof(long));
3106 if { (eval echo configure
:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3108 ac_cv_sizeof_long
=`cat conftestval`
3110 echo "configure: failed program was:" >&5
3111 cat conftest.
$ac_ext >&5
3119 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3120 cat >> confdefs.h
<<EOF
3121 #define SIZEOF_LONG $ac_cv_sizeof_long
3125 echo $ac_n "checking size of short""... $ac_c" 1>&6
3126 echo "configure:3127: checking size of short" >&5
3127 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 if test "$cross_compiling" = yes; then
3131 ac_cv_sizeof_short
=cross
3133 cat > conftest.
$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3139 FILE *f=fopen("conftestval", "w");
3141 fprintf(f, "%d\n", sizeof(short));
3145 if { (eval echo configure
:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3147 ac_cv_sizeof_short
=`cat conftestval`
3149 echo "configure: failed program was:" >&5
3150 cat conftest.
$ac_ext >&5
3152 ac_cv_sizeof_short
=0
3158 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3159 cat >> confdefs.h
<<EOF
3160 #define SIZEOF_SHORT $ac_cv_sizeof_short
3165 echo $ac_n "checking for working const""... $ac_c" 1>&6
3166 echo "configure:3167: checking for working const" >&5
3167 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 cat > conftest.
$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3176 /* Ultrix mips cc rejects this. */
3177 typedef int charset[2]; const charset x;
3178 /* SunOS 4.1.1 cc rejects this. */
3179 char const *const *ccp;
3181 /* NEC SVR4.0.2 mips cc rejects this. */
3182 struct point {int x, y;};
3183 static struct point const zero = {0,0};
3184 /* AIX XL C 1.02.0.0 rejects this.
3185 It does not let you subtract one const X* pointer from another in an arm
3186 of an if-expression whose if-part is not a constant expression */
3187 const char *g = "string";
3188 ccp = &g + (g ? g-g : 0);
3189 /* HPUX 7.0 cc rejects these. */
3192 ccp = (char const *const *) p;
3193 { /* SCO 3.2v4 cc rejects this. */
3195 char const *s = 0 ? (char *) 0 : (char const *) 0;
3199 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3201 const int *foo = &x[0];
3204 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3205 typedef const int *iptr;
3209 { /* AIX XL C 1.02.0.0 rejects this saying
3210 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3211 struct s { int j; const int *ap[3]; };
3212 struct s *b; b->j = 5;
3214 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3220 if { (eval echo configure
:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3224 echo "configure: failed program was:" >&5
3225 cat conftest.
$ac_ext >&5
3232 echo "$ac_t""$ac_cv_c_const" 1>&6
3233 if test $ac_cv_c_const = no
; then
3234 cat >> confdefs.h
<<\EOF
3240 echo $ac_n "checking for inline""... $ac_c" 1>&6
3241 echo "configure:3242: checking for inline" >&5
3242 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3246 for ac_kw
in inline __inline__ __inline
; do
3247 cat > conftest.
$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3255 if { (eval echo configure
:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 ac_cv_c_inline
=$ac_kw; break
3259 echo "configure: failed program was:" >&5
3260 cat conftest.
$ac_ext >&5
3267 echo "$ac_t""$ac_cv_c_inline" 1>&6
3268 case "$ac_cv_c_inline" in
3270 no
) cat >> confdefs.h
<<\EOF
3274 *) cat >> confdefs.h
<<EOF
3275 #define inline $ac_cv_c_inline
3280 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3281 echo "configure:3282: checking whether byte ordering is bigendian" >&5
3282 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 ac_cv_c_bigendian
=unknown
3286 # See if sys/param.h defines the BYTE_ORDER macro.
3287 cat > conftest.
$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3291 #include <sys/param.h>
3294 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3299 if { (eval echo configure
:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3301 # It does; now see whether it defined to BIG_ENDIAN or not.
3302 cat > conftest.
$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <sys/types.h>
3306 #include <sys/param.h>
3309 #if BYTE_ORDER != BIG_ENDIAN
3314 if { (eval echo configure
:3315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316 ac_cv_c_bigendian
=yes
3318 echo "configure: failed program was:" >&5
3319 cat conftest.
$ac_ext >&5
3321 ac_cv_c_bigendian
=no
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3329 if test $ac_cv_c_bigendian = unknown
; then
3330 if test "$cross_compiling" = yes; then
3331 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3337 /* Are we little or big endian? From Harbison&Steele. */
3341 char c[sizeof (long)];
3344 exit (u.c[sizeof (long) - 1] == 1);
3347 if { (eval echo configure
:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3349 ac_cv_c_bigendian
=no
3351 echo "configure: failed program was:" >&5
3352 cat conftest.
$ac_ext >&5
3354 ac_cv_c_bigendian
=yes
3362 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3363 if test $ac_cv_c_bigendian = yes; then
3364 cat >> confdefs.h
<<\EOF
3365 #define WORDS_BIGENDIAN 1
3370 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3371 echo "configure:3372: checking whether char is unsigned" >&5
3372 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 if test "$GCC" = yes; then
3376 # GCC predefines this symbol on systems where it applies.
3377 cat > conftest.
$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #ifdef __CHAR_UNSIGNED__
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 egrep "yes" >/dev
/null
2>&1; then
3388 ac_cv_c_char_unsigned
=yes
3391 ac_cv_c_char_unsigned
=no
3396 if test "$cross_compiling" = yes; then
3397 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3399 cat > conftest.
$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3403 #if !defined(__STDC__) || __STDC__ != 1
3407 volatile char c = 255; exit(c < 0);
3410 if { (eval echo configure
:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3412 ac_cv_c_char_unsigned
=yes
3414 echo "configure: failed program was:" >&5
3415 cat conftest.
$ac_ext >&5
3417 ac_cv_c_char_unsigned
=no
3425 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3426 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3427 cat >> confdefs.h
<<\EOF
3428 #define __CHAR_UNSIGNED__ 1
3434 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3435 echo "configure:3436: checking return type of signal handlers" >&5
3436 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.
$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <sys/types.h>
3448 extern "C" void (*signal (int, void (*)(int)))(int);
3450 void (*signal ()) ();
3457 if { (eval echo configure
:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3459 ac_cv_type_signal
=void
3461 echo "configure: failed program was:" >&5
3462 cat conftest.
$ac_ext >&5
3464 ac_cv_type_signal
=int
3469 echo "$ac_t""$ac_cv_type_signal" 1>&6
3470 cat >> confdefs.h
<<EOF
3471 #define RETSIGTYPE $ac_cv_type_signal
3475 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3476 echo "configure:3477: checking for uid_t in sys/types.h" >&5
3477 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.
$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <sys/types.h>
3485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486 egrep "uid_t" >/dev
/null
2>&1; then
3488 ac_cv_type_uid_t
=yes
3497 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3498 if test $ac_cv_type_uid_t = no
; then
3499 cat >> confdefs.h
<<\EOF
3503 cat >> confdefs.h
<<\EOF
3509 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3510 echo "configure:3511: checking for mode_t" >&5
3511 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.
$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <sys/types.h>
3523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3524 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3526 ac_cv_type_mode_t
=yes
3529 ac_cv_type_mode_t
=no
3534 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3535 if test $ac_cv_type_mode_t = no
; then
3536 cat >> confdefs.h
<<\EOF
3542 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3543 echo "configure:3544: checking for off_t" >&5
3544 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.
$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 #include <sys/types.h>
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3559 ac_cv_type_off_t
=yes
3567 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3568 if test $ac_cv_type_off_t = no
; then
3569 cat >> confdefs.h
<<\EOF
3575 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3576 echo "configure:3577: checking for size_t" >&5
3577 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 cat > conftest.
$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include <sys/types.h>
3589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3590 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3592 ac_cv_type_size_t
=yes
3595 ac_cv_type_size_t
=no
3600 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3601 if test $ac_cv_type_size_t = no
; then
3602 cat >> confdefs.h
<<\EOF
3603 #define size_t unsigned
3608 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3609 echo "configure:3610: checking for pid_t" >&5
3610 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 cat > conftest.
$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 #include <sys/types.h>
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3625 ac_cv_type_pid_t
=yes
3633 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3634 if test $ac_cv_type_pid_t = no
; then
3635 cat >> confdefs.h
<<\EOF
3641 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3642 echo "configure:3643: checking for st_rdev in struct stat" >&5
3643 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.
$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <sys/types.h>
3650 #include <sys/stat.h>
3652 struct stat s; s.st_rdev;
3655 if { (eval echo configure
:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657 ac_cv_struct_st_rdev
=yes
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3662 ac_cv_struct_st_rdev
=no
3667 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3668 if test $ac_cv_struct_st_rdev = yes; then
3669 cat >> confdefs.h
<<\EOF
3670 #define HAVE_ST_RDEV 1
3675 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3676 echo "configure:3677: checking for d_off in dirent" >&5
3677 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3685 #include <sys/types.h>
3688 struct dirent d; d.d_off;
3691 if { (eval echo configure
:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3693 ac_cv_dirent_d_off
=yes
3695 echo "configure: failed program was:" >&5
3696 cat conftest.
$ac_ext >&5
3698 ac_cv_dirent_d_off
=no
3703 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3704 if test $ac_cv_dirent_d_off = yes; then
3705 cat >> confdefs.h
<<\EOF
3706 #define HAVE_DIRENT_D_OFF 1
3711 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3712 echo "configure:3713: checking for ino_t" >&5
3713 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 cat > conftest.
$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 #include <sys/types.h>
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3728 ac_cv_type_ino_t
=yes
3736 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3737 if test $ac_cv_type_ino_t = no
; then
3738 cat >> confdefs.h
<<\EOF
3739 #define ino_t unsigned
3744 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3745 echo "configure:3746: checking for loff_t" >&5
3746 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.
$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <sys/types.h>
3758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3761 ac_cv_type_loff_t
=yes
3764 ac_cv_type_loff_t
=no
3769 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3770 if test $ac_cv_type_loff_t = no
; then
3771 cat >> confdefs.h
<<\EOF
3772 #define loff_t off_t
3777 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3778 echo "configure:3779: checking for offset_t" >&5
3779 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 cat > conftest.
$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 #include <sys/types.h>
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3794 ac_cv_type_offset_t
=yes
3797 ac_cv_type_offset_t
=no
3802 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3803 if test $ac_cv_type_offset_t = no
; then
3804 cat >> confdefs.h
<<\EOF
3805 #define offset_t loff_t
3810 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3811 echo "configure:3812: checking for ssize_t" >&5
3812 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3815 cat > conftest.
$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 #include <sys/types.h>
3824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3825 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3827 ac_cv_type_ssize_t
=yes
3830 ac_cv_type_ssize_t
=no
3835 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3836 if test $ac_cv_type_ssize_t = no
; then
3837 cat >> confdefs.h
<<\EOF
3843 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3844 echo "configure:3845: checking for wchar_t" >&5
3845 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.
$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 #include <sys/types.h>
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3860 ac_cv_type_wchar_t
=yes
3863 ac_cv_type_wchar_t
=no
3868 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3869 if test $ac_cv_type_wchar_t = no
; then
3870 cat >> confdefs.h
<<\EOF
3871 #define wchar_t unsigned short
3877 # we need libcups for CUPS support...
3878 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3879 echo "configure:3880: checking for httpConnect in -lcups" >&5
3880 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 ac_save_LIBS
="$LIBS"
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3898 if { (eval echo configure
:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3900 eval "ac_cv_lib_$ac_lib_var=yes"
3902 echo "configure: failed program was:" >&5
3903 cat conftest.
$ac_ext >&5
3905 eval "ac_cv_lib_$ac_lib_var=no"
3908 LIBS
="$ac_save_LIBS"
3911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3913 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3915 cat >> confdefs.h
<<EOF
3916 #define $ac_tr_lib 1
3922 echo "$ac_t""no" 1>&6
3926 # we need libdl for PAM and the new VFS code
3927 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3928 echo "configure:3929: checking for dlopen in -ldl" >&5
3929 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3933 ac_save_LIBS
="$LIBS"
3935 cat > conftest.
$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 /* Override any gcc2 internal prototype to avoid an error. */
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3947 if { (eval echo configure
:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3949 eval "ac_cv_lib_$ac_lib_var=yes"
3951 echo "configure: failed program was:" >&5
3952 cat conftest.
$ac_ext >&5
3954 eval "ac_cv_lib_$ac_lib_var=no"
3957 LIBS
="$ac_save_LIBS"
3960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3961 echo "$ac_t""yes" 1>&6
3963 cat >> confdefs.h
<<\EOF
3964 #define HAVE_LIBDL 1
3968 echo "$ac_t""no" 1>&6
3972 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3973 echo "configure:3974: checking for sig_atomic_t type" >&5
3974 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.
$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3982 #include <sys/types.h>
3992 if { (eval echo configure
:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3994 samba_cv_sig_atomic_t
=yes
3996 echo "configure: failed program was:" >&5
3997 cat conftest.
$ac_ext >&5
3999 samba_cv_sig_atomic_t
=no
4004 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4005 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4006 cat >> confdefs.h
<<\EOF
4007 #define HAVE_SIG_ATOMIC_T_TYPE 1
4012 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
4013 echo "configure:4014: checking for errno in errno.h" >&5
4014 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4018 cat > conftest.
$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4026 if { (eval echo configure
:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4030 echo "configure: failed program was:" >&5
4031 cat conftest.
$ac_ext >&5
4033 samba_cv_have_errno
=no
4038 echo "$ac_t""$samba_cv_errno" 1>&6
4039 if test x
"$samba_cv_errno" = x
"yes"; then
4040 cat >> confdefs.h
<<\EOF
4041 #define HAVE_ERRNO_DECL 1
4046 # stupid glibc has the functions but no declaration. grrrr.
4047 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4048 echo "configure:4049: checking for setresuid declaration" >&5
4049 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4053 cat > conftest.
$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4058 int i = (int)setresuid
4061 if { (eval echo configure
:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 samba_cv_have_setresuid_decl
=yes
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 samba_cv_have_setresuid_decl
=no
4073 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
4074 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
4075 cat >> confdefs.h
<<\EOF
4076 #define HAVE_SETRESUID_DECL 1
4081 # stupid glibc has the functions but no declaration. grrrr.
4082 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4083 echo "configure:4084: checking for setresgid declaration" >&5
4084 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4093 int i = (int)setresgid
4096 if { (eval echo configure
:4097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4098 samba_cv_have_setresgid_decl
=yes
4100 echo "configure: failed program was:" >&5
4101 cat conftest.
$ac_ext >&5
4103 samba_cv_have_setresgid_decl
=no
4108 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4109 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
4110 cat >> confdefs.h
<<\EOF
4111 #define HAVE_SETRESGID_DECL 1
4116 # and glibc has setresuid under linux but the function does
4117 # nothing until kernel 2.1.44! very dumb.
4118 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4119 echo "configure:4120: checking for real setresuid" >&5
4120 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4124 if test "$cross_compiling" = yes; then
4125 samba_cv_have_setresuid
=cross
4127 cat > conftest.
$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4131 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4133 if { (eval echo configure
:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4135 samba_cv_have_setresuid
=yes
4137 echo "configure: failed program was:" >&5
4138 cat conftest.
$ac_ext >&5
4140 samba_cv_have_setresuid
=no
4147 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4148 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4149 cat >> confdefs.h
<<\EOF
4150 #define HAVE_SETRESUID 1
4155 # Do the same check for setresguid...
4157 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4158 echo "configure:4159: checking for real setresgid" >&5
4159 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4163 if test "$cross_compiling" = yes; then
4164 samba_cv_have_setresgid
=cross
4166 cat > conftest.
$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4171 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4173 if { (eval echo configure
:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4175 samba_cv_have_setresgid
=yes
4177 echo "configure: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4180 samba_cv_have_setresgid
=no
4187 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4188 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4189 cat >> confdefs.h
<<\EOF
4190 #define HAVE_SETRESGID 1
4195 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4196 echo "configure:4197: checking for 8-bit clean memcmp" >&5
4197 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 if test "$cross_compiling" = yes; then
4201 ac_cv_func_memcmp_clean
=no
4203 cat > conftest.
$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4209 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4210 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4214 if { (eval echo configure
:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4216 ac_cv_func_memcmp_clean
=yes
4218 echo "configure: failed program was:" >&5
4219 cat conftest.
$ac_ext >&5
4221 ac_cv_func_memcmp_clean
=no
4228 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4229 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4232 ###############################################
4233 # Readline included by default unless explicitly asked not to
4234 test "${with_readline+set}" != "set" && with_readline
=yes
4236 # test for where we get readline() from
4237 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4238 echo "configure:4239: checking whether to use readline" >&5
4239 # Check whether --with-readline or --without-readline was given.
4240 if test "${with_readline+set}" = set; then
4241 withval
="$with_readline"
4242 case "$with_readline" in
4244 echo "$ac_t""yes" 1>&6
4246 for ac_hdr
in readline.h
history.h readline
/readline.h
4248 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4250 echo "configure:4251: checking for $ac_hdr" >&5
4251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 cat > conftest.
$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4259 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4260 { (eval echo configure
:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4261 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4262 if test -z "$ac_err"; then
4264 eval "ac_cv_header_$ac_safe=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.
$ac_ext >&5
4270 eval "ac_cv_header_$ac_safe=no"
4274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4277 cat >> confdefs.h
<<EOF
4278 #define $ac_tr_hdr 1
4282 echo "$ac_t""no" 1>&6
4286 for ac_hdr
in readline
/history.h
4288 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4290 echo "configure:4291: checking for $ac_hdr" >&5
4291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4294 cat > conftest.
$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4299 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4300 { (eval echo configure
:4301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4301 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4302 if test -z "$ac_err"; then
4304 eval "ac_cv_header_$ac_safe=yes"
4307 echo "configure: failed program was:" >&5
4308 cat conftest.
$ac_ext >&5
4310 eval "ac_cv_header_$ac_safe=no"
4314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4315 echo "$ac_t""yes" 1>&6
4316 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4317 cat >> confdefs.h
<<EOF
4318 #define $ac_tr_hdr 1
4322 echo "$ac_t""no" 1>&6
4327 for ac_hdr
in readline.h readline
/readline.h
4329 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4331 echo "configure:4332: checking for $ac_hdr" >&5
4332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 cat > conftest.
$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4340 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4341 { (eval echo configure
:4342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4342 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4343 if test -z "$ac_err"; then
4345 eval "ac_cv_header_$ac_safe=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4351 eval "ac_cv_header_$ac_safe=no"
4355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4356 echo "$ac_t""yes" 1>&6
4357 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4358 cat >> confdefs.h
<<EOF
4359 #define $ac_tr_hdr 1
4362 for termlib
in ncurses curses termcap terminfo termlib
; do
4363 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4364 echo "configure:4365: checking for tgetent in -l${termlib}" >&5
4365 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 ac_save_LIBS
="$LIBS"
4370 LIBS
="-l${termlib} $LIBS"
4371 cat > conftest.
$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4383 if { (eval echo configure
:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4385 eval "ac_cv_lib_$ac_lib_var=yes"
4387 echo "configure: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4390 eval "ac_cv_lib_$ac_lib_var=no"
4393 LIBS
="$ac_save_LIBS"
4396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 TERMLIBS
="-l${termlib}"; break
4400 echo "$ac_t""no" 1>&6
4404 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4405 echo "configure:4406: checking for rl_callback_handler_install in -lreadline" >&5
4406 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 ac_save_LIBS
="$LIBS"
4411 LIBS
="-lreadline $TERMLIBS $LIBS"
4412 cat > conftest.
$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
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. */
4418 char rl_callback_handler_install();
4421 rl_callback_handler_install()
4424 if { (eval echo configure
:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4426 eval "ac_cv_lib_$ac_lib_var=yes"
4428 echo "configure: failed program was:" >&5
4429 cat conftest.
$ac_ext >&5
4431 eval "ac_cv_lib_$ac_lib_var=no"
4434 LIBS
="$ac_save_LIBS"
4437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 TERMLIBS
="-lreadline $TERMLIBS"
4440 cat >> confdefs.h
<<\EOF
4441 #define HAVE_LIBREADLINE 1
4446 echo "$ac_t""no" 1>&6
4451 echo "$ac_t""no" 1>&6
4457 echo "$ac_t""no" 1>&6
4460 echo "$ac_t""yes" 1>&6
4462 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4463 # alternate readline path
4465 _cppflags
=${CPPFLAGS}
4467 # Add additional search path
4468 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4469 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4471 for ac_hdr
in readline.h
history.h readline
/readline.h
4473 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_hdr" >&5
4476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4479 cat > conftest.
$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4484 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4485 { (eval echo configure
:4486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4486 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4487 if test -z "$ac_err"; then
4489 eval "ac_cv_header_$ac_safe=yes"
4492 echo "configure: failed program was:" >&5
4493 cat conftest.
$ac_ext >&5
4495 eval "ac_cv_header_$ac_safe=no"
4499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4502 cat >> confdefs.h
<<EOF
4503 #define $ac_tr_hdr 1
4507 echo "$ac_t""no" 1>&6
4511 for ac_hdr
in readline
/history.h
4513 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_hdr" >&5
4516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 cat > conftest.
$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4524 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4525 { (eval echo configure
:4526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4526 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4527 if test -z "$ac_err"; then
4529 eval "ac_cv_header_$ac_safe=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.
$ac_ext >&5
4535 eval "ac_cv_header_$ac_safe=no"
4539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4542 cat >> confdefs.h
<<EOF
4543 #define $ac_tr_hdr 1
4547 echo "$ac_t""no" 1>&6
4552 for ac_hdr
in readline.h readline
/readline.h
4554 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_hdr" >&5
4557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 cat > conftest.
$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4566 { (eval echo configure
:4567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4567 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4568 if test -z "$ac_err"; then
4570 eval "ac_cv_header_$ac_safe=yes"
4573 echo "configure: failed program was:" >&5
4574 cat conftest.
$ac_ext >&5
4576 eval "ac_cv_header_$ac_safe=no"
4580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4583 cat >> confdefs.h
<<EOF
4584 #define $ac_tr_hdr 1
4587 for termlib
in ncurses curses termcap terminfo termlib
; do
4588 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4589 echo "configure:4590: checking for tgetent in -l${termlib}" >&5
4590 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 ac_save_LIBS
="$LIBS"
4595 LIBS
="-l${termlib} $LIBS"
4596 cat > conftest.
$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4608 if { (eval echo configure
:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4610 eval "ac_cv_lib_$ac_lib_var=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.
$ac_ext >&5
4615 eval "ac_cv_lib_$ac_lib_var=no"
4618 LIBS
="$ac_save_LIBS"
4621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4622 echo "$ac_t""yes" 1>&6
4623 TERMLIBS
="-l${termlib}"; break
4625 echo "$ac_t""no" 1>&6
4629 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4630 echo "configure:4631: checking for rl_callback_handler_install in -lreadline" >&5
4631 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4635 ac_save_LIBS
="$LIBS"
4636 LIBS
="-lreadline $TERMLIBS $LIBS"
4637 cat > conftest.
$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 /* Override any gcc2 internal prototype to avoid an error. */
4641 /* We use char because int might match the return type of a gcc2
4642 builtin and then its argument prototype would still apply. */
4643 char rl_callback_handler_install();
4646 rl_callback_handler_install()
4649 if { (eval echo configure
:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4651 eval "ac_cv_lib_$ac_lib_var=yes"
4653 echo "configure: failed program was:" >&5
4654 cat conftest.
$ac_ext >&5
4656 eval "ac_cv_lib_$ac_lib_var=no"
4659 LIBS
="$ac_save_LIBS"
4662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4664 TERMLDFLAGS
="-L$with_readline/lib"
4665 TERMCPPFLAGS
="-I$with_readline/include"
4666 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4667 TERMLIBS
="-lreadline $TERMLIBS"
4668 cat >> confdefs.h
<<\EOF
4669 #define HAVE_LIBREADLINE 1
4674 echo "$ac_t""no" 1>&6
4675 TERMLIBS
= CPPFLAGS
=$_cppflags
4679 echo "$ac_t""no" 1>&6
4688 echo "$ac_t""no" 1>&6
4695 # The following test taken from the cvs sources
4696 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4697 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4698 # libsocket.so which has a bad implementation of gethostbyname (it
4699 # only looks in /etc/hosts), so we only look for -lsocket if we need
4701 for ac_func
in connect
4703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4704 echo "configure:4705: checking for $ac_func" >&5
4705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 cat > conftest.
$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 /* System header to define __stub macros and hopefully few prototypes,
4712 which can conflict with char $ac_func(); below. */
4714 /* Override any gcc2 internal prototype to avoid an error. */
4715 /* We use char because int might match the return type of a gcc2
4716 builtin and then its argument prototype would still apply. */
4721 /* The GNU C library defines this for functions which it implements
4722 to always fail with ENOSYS. Some functions are actually named
4723 something starting with __ and the normal name is an alias. */
4724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4732 if { (eval echo configure
:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4734 eval "ac_cv_func_$ac_func=yes"
4736 echo "configure: failed program was:" >&5
4737 cat conftest.
$ac_ext >&5
4739 eval "ac_cv_func_$ac_func=no"
4744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4745 echo "$ac_t""yes" 1>&6
4746 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4747 cat >> confdefs.h
<<EOF
4748 #define $ac_tr_func 1
4752 echo "$ac_t""no" 1>&6
4756 if test x
"$ac_cv_func_connect" = x
"no"; then
4759 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4760 echo "configure:4761: checking for printf in -lnsl_s" >&5
4761 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 ac_save_LIBS
="$LIBS"
4766 LIBS
="-lnsl_s $LIBS"
4767 cat > conftest.
$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4779 if { (eval echo configure
:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4781 eval "ac_cv_lib_$ac_lib_var=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.
$ac_ext >&5
4786 eval "ac_cv_lib_$ac_lib_var=no"
4789 LIBS
="$ac_save_LIBS"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4796 cat >> confdefs.h
<<EOF
4797 #define $ac_tr_lib 1
4800 LIBS
="-lnsl_s $LIBS"
4803 echo "$ac_t""no" 1>&6
4809 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4810 echo "configure:4811: checking for printf in -lnsl" >&5
4811 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 ac_save_LIBS
="$LIBS"
4817 cat > conftest.
$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4829 if { (eval echo configure
:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4831 eval "ac_cv_lib_$ac_lib_var=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.
$ac_ext >&5
4836 eval "ac_cv_lib_$ac_lib_var=no"
4839 LIBS
="$ac_save_LIBS"
4842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4845 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4846 cat >> confdefs.h
<<EOF
4847 #define $ac_tr_lib 1
4853 echo "$ac_t""no" 1>&6
4859 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4860 echo "configure:4861: checking for connect in -lsocket" >&5
4861 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 ac_save_LIBS
="$LIBS"
4866 LIBS
="-lsocket $LIBS"
4867 cat > conftest.
$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* Override any gcc2 internal prototype to avoid an error. */
4871 /* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
4883 echo "configure: failed program was:" >&5
4884 cat conftest.
$ac_ext >&5
4886 eval "ac_cv_lib_$ac_lib_var=no"
4889 LIBS
="$ac_save_LIBS"
4892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4894 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4895 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4896 cat >> confdefs.h
<<EOF
4897 #define $ac_tr_lib 1
4900 LIBS
="-lsocket $LIBS"
4903 echo "$ac_t""no" 1>&6
4909 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4910 echo "configure:4911: checking for connect in -linet" >&5
4911 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 ac_save_LIBS
="$LIBS"
4917 cat > conftest.
$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4920 /* Override any gcc2 internal prototype to avoid an error. */
4921 /* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4929 if { (eval echo configure
:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4931 eval "ac_cv_lib_$ac_lib_var=yes"
4933 echo "configure: failed program was:" >&5
4934 cat conftest.
$ac_ext >&5
4936 eval "ac_cv_lib_$ac_lib_var=no"
4939 LIBS
="$ac_save_LIBS"
4942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4944 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4945 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4946 cat >> confdefs.h
<<EOF
4947 #define $ac_tr_lib 1
4953 echo "$ac_t""no" 1>&6
4957 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4958 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4959 # ac_cv_func_connect=yes
4960 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4961 cat >> confdefs.h
<<\EOF
4962 #define HAVE_CONNECT 1
4968 ###############################################
4969 # test for where we get get_yp_default_domain() from
4970 for ac_func
in yp_get_default_domain
4972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4973 echo "configure:4974: checking for $ac_func" >&5
4974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4977 cat > conftest.
$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4980 /* System header to define __stub macros and hopefully few prototypes,
4981 which can conflict with char $ac_func(); below. */
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4990 /* The GNU C library defines this for functions which it implements
4991 to always fail with ENOSYS. Some functions are actually named
4992 something starting with __ and the normal name is an alias. */
4993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5001 if { (eval echo configure
:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5003 eval "ac_cv_func_$ac_func=yes"
5005 echo "configure: failed program was:" >&5
5006 cat conftest.
$ac_ext >&5
5008 eval "ac_cv_func_$ac_func=no"
5013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5016 cat >> confdefs.h
<<EOF
5017 #define $ac_tr_func 1
5021 echo "$ac_t""no" 1>&6
5025 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5026 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5027 echo "configure:5028: checking for yp_get_default_domain in -lnsl" >&5
5028 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5030 echo $ac_n "(cached) $ac_c" 1>&6
5032 ac_save_LIBS
="$LIBS"
5034 cat > conftest.
$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5037 /* Override any gcc2 internal prototype to avoid an error. */
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5040 char yp_get_default_domain();
5043 yp_get_default_domain()
5046 if { (eval echo configure
:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5048 eval "ac_cv_lib_$ac_lib_var=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.
$ac_ext >&5
5053 eval "ac_cv_lib_$ac_lib_var=no"
5056 LIBS
="$ac_save_LIBS"
5059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5062 cat >> confdefs.h
<<\EOF
5063 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5067 echo "$ac_t""no" 1>&6
5072 # Check if we have execl, if not we need to compile smbrun.
5073 for ac_func
in execl
5075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5076 echo "configure:5077: checking for $ac_func" >&5
5077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5078 echo $ac_n "(cached) $ac_c" 1>&6
5080 cat > conftest.
$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5083 /* System header to define __stub macros and hopefully few prototypes,
5084 which can conflict with char $ac_func(); below. */
5086 /* Override any gcc2 internal prototype to avoid an error. */
5087 /* We use char because int might match the return type of a gcc2
5088 builtin and then its argument prototype would still apply. */
5093 /* The GNU C library defines this for functions which it implements
5094 to always fail with ENOSYS. Some functions are actually named
5095 something starting with __ and the normal name is an alias. */
5096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5104 if { (eval echo configure
:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5106 eval "ac_cv_func_$ac_func=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.
$ac_ext >&5
5111 eval "ac_cv_func_$ac_func=no"
5116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5117 echo "$ac_t""yes" 1>&6
5118 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5119 cat >> confdefs.h
<<EOF
5120 #define $ac_tr_func 1
5124 echo "$ac_t""no" 1>&6
5128 if test x
"$ac_cv_func_execl" = x
"no"; then
5129 RUNPROG
="bin/smbrun"
5134 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
5136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5137 echo "configure:5138: checking for $ac_func" >&5
5138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5139 echo $ac_n "(cached) $ac_c" 1>&6
5141 cat > conftest.
$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5144 /* System header to define __stub macros and hopefully few prototypes,
5145 which can conflict with char $ac_func(); below. */
5147 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5154 /* The GNU C library defines this for functions which it implements
5155 to always fail with ENOSYS. Some functions are actually named
5156 something starting with __ and the normal name is an alias. */
5157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5165 if { (eval echo configure
:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5167 eval "ac_cv_func_$ac_func=yes"
5169 echo "configure: failed program was:" >&5
5170 cat conftest.
$ac_ext >&5
5172 eval "ac_cv_func_$ac_func=no"
5177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5180 cat >> confdefs.h
<<EOF
5181 #define $ac_tr_func 1
5185 echo "$ac_t""no" 1>&6
5189 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5192 echo "configure:5193: checking for $ac_func" >&5
5193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 cat > conftest.
$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5199 /* System header to define __stub macros and hopefully few prototypes,
5200 which can conflict with char $ac_func(); below. */
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5209 /* The GNU C library defines this for functions which it implements
5210 to always fail with ENOSYS. Some functions are actually named
5211 something starting with __ and the normal name is an alias. */
5212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5220 if { (eval echo configure
:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5222 eval "ac_cv_func_$ac_func=yes"
5224 echo "configure: failed program was:" >&5
5225 cat conftest.
$ac_ext >&5
5227 eval "ac_cv_func_$ac_func=no"
5232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5233 echo "$ac_t""yes" 1>&6
5234 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5235 cat >> confdefs.h
<<EOF
5236 #define $ac_tr_func 1
5240 echo "$ac_t""no" 1>&6
5244 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5247 echo "configure:5248: checking for $ac_func" >&5
5248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5251 cat > conftest.
$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5254 /* System header to define __stub macros and hopefully few prototypes,
5255 which can conflict with char $ac_func(); below. */
5257 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5264 /* The GNU C library defines this for functions which it implements
5265 to always fail with ENOSYS. Some functions are actually named
5266 something starting with __ and the normal name is an alias. */
5267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5275 if { (eval echo configure
:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5277 eval "ac_cv_func_$ac_func=yes"
5279 echo "configure: failed program was:" >&5
5280 cat conftest.
$ac_ext >&5
5282 eval "ac_cv_func_$ac_func=no"
5287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5288 echo "$ac_t""yes" 1>&6
5289 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5290 cat >> confdefs.h
<<EOF
5291 #define $ac_tr_func 1
5295 echo "$ac_t""no" 1>&6
5299 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5302 echo "configure:5303: checking for $ac_func" >&5
5303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5306 cat > conftest.
$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5309 /* System header to define __stub macros and hopefully few prototypes,
5310 which can conflict with char $ac_func(); below. */
5312 /* Override any gcc2 internal prototype to avoid an error. */
5313 /* We use char because int might match the return type of a gcc2
5314 builtin and then its argument prototype would still apply. */
5319 /* The GNU C library defines this for functions which it implements
5320 to always fail with ENOSYS. Some functions are actually named
5321 something starting with __ and the normal name is an alias. */
5322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5330 if { (eval echo configure
:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5332 eval "ac_cv_func_$ac_func=yes"
5334 echo "configure: failed program was:" >&5
5335 cat conftest.
$ac_ext >&5
5337 eval "ac_cv_func_$ac_func=no"
5342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5345 cat >> confdefs.h
<<EOF
5346 #define $ac_tr_func 1
5350 echo "$ac_t""no" 1>&6
5354 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5357 echo "configure:5358: checking for $ac_func" >&5
5358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5361 cat > conftest.
$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5364 /* System header to define __stub macros and hopefully few prototypes,
5365 which can conflict with char $ac_func(); below. */
5367 /* Override any gcc2 internal prototype to avoid an error. */
5368 /* We use char because int might match the return type of a gcc2
5369 builtin and then its argument prototype would still apply. */
5374 /* The GNU C library defines this for functions which it implements
5375 to always fail with ENOSYS. Some functions are actually named
5376 something starting with __ and the normal name is an alias. */
5377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5385 if { (eval echo configure
:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5387 eval "ac_cv_func_$ac_func=yes"
5389 echo "configure: failed program was:" >&5
5390 cat conftest.
$ac_ext >&5
5392 eval "ac_cv_func_$ac_func=no"
5397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5398 echo "$ac_t""yes" 1>&6
5399 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5400 cat >> confdefs.h
<<EOF
5401 #define $ac_tr_func 1
5405 echo "$ac_t""no" 1>&6
5409 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5412 echo "configure:5413: checking for $ac_func" >&5
5413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5416 cat > conftest.
$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5419 /* System header to define __stub macros and hopefully few prototypes,
5420 which can conflict with char $ac_func(); below. */
5422 /* Override any gcc2 internal prototype to avoid an error. */
5423 /* We use char because int might match the return type of a gcc2
5424 builtin and then its argument prototype would still apply. */
5429 /* The GNU C library defines this for functions which it implements
5430 to always fail with ENOSYS. Some functions are actually named
5431 something starting with __ and the normal name is an alias. */
5432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5440 if { (eval echo configure
:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5442 eval "ac_cv_func_$ac_func=yes"
5444 echo "configure: failed program was:" >&5
5445 cat conftest.
$ac_ext >&5
5447 eval "ac_cv_func_$ac_func=no"
5452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5453 echo "$ac_t""yes" 1>&6
5454 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5455 cat >> confdefs.h
<<EOF
5456 #define $ac_tr_func 1
5460 echo "$ac_t""no" 1>&6
5464 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5467 echo "configure:5468: checking for $ac_func" >&5
5468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 cat > conftest.
$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char $ac_func(); below. */
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5484 /* The GNU C library defines this for functions which it implements
5485 to always fail with ENOSYS. Some functions are actually named
5486 something starting with __ and the normal name is an alias. */
5487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5495 if { (eval echo configure
:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5497 eval "ac_cv_func_$ac_func=yes"
5499 echo "configure: failed program was:" >&5
5500 cat conftest.
$ac_ext >&5
5502 eval "ac_cv_func_$ac_func=no"
5507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5510 cat >> confdefs.h
<<EOF
5511 #define $ac_tr_func 1
5515 echo "$ac_t""no" 1>&6
5519 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5522 echo "configure:5523: checking for $ac_func" >&5
5523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 cat > conftest.
$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 /* System header to define __stub macros and hopefully few prototypes,
5530 which can conflict with char $ac_func(); below. */
5532 /* Override any gcc2 internal prototype to avoid an error. */
5533 /* We use char because int might match the return type of a gcc2
5534 builtin and then its argument prototype would still apply. */
5539 /* The GNU C library defines this for functions which it implements
5540 to always fail with ENOSYS. Some functions are actually named
5541 something starting with __ and the normal name is an alias. */
5542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5550 if { (eval echo configure
:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5552 eval "ac_cv_func_$ac_func=yes"
5554 echo "configure: failed program was:" >&5
5555 cat conftest.
$ac_ext >&5
5557 eval "ac_cv_func_$ac_func=no"
5562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5563 echo "$ac_t""yes" 1>&6
5564 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5565 cat >> confdefs.h
<<EOF
5566 #define $ac_tr_func 1
5570 echo "$ac_t""no" 1>&6
5574 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5577 echo "configure:5578: checking for $ac_func" >&5
5578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5581 cat > conftest.
$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 /* System header to define __stub macros and hopefully few prototypes,
5585 which can conflict with char $ac_func(); below. */
5587 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5605 if { (eval echo configure
:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5607 eval "ac_cv_func_$ac_func=yes"
5609 echo "configure: failed program was:" >&5
5610 cat conftest.
$ac_ext >&5
5612 eval "ac_cv_func_$ac_func=no"
5617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5620 cat >> confdefs.h
<<EOF
5621 #define $ac_tr_func 1
5625 echo "$ac_t""no" 1>&6
5630 # syscall() is needed for smbwrapper.
5631 for ac_func
in syscall
5633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5634 echo "configure:5635: checking for $ac_func" >&5
5635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5638 cat > conftest.
$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5641 /* System header to define __stub macros and hopefully few prototypes,
5642 which can conflict with char $ac_func(); below. */
5644 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5651 /* The GNU C library defines this for functions which it implements
5652 to always fail with ENOSYS. Some functions are actually named
5653 something starting with __ and the normal name is an alias. */
5654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5662 if { (eval echo configure
:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5664 eval "ac_cv_func_$ac_func=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.
$ac_ext >&5
5669 eval "ac_cv_func_$ac_func=no"
5674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5676 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5677 cat >> confdefs.h
<<EOF
5678 #define $ac_tr_func 1
5682 echo "$ac_t""no" 1>&6
5687 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5690 echo "configure:5691: checking for $ac_func" >&5
5691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5694 cat > conftest.
$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 /* System header to define __stub macros and hopefully few prototypes,
5698 which can conflict with char $ac_func(); below. */
5700 /* Override any gcc2 internal prototype to avoid an error. */
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5707 /* The GNU C library defines this for functions which it implements
5708 to always fail with ENOSYS. Some functions are actually named
5709 something starting with __ and the normal name is an alias. */
5710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5718 if { (eval echo configure
:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5720 eval "ac_cv_func_$ac_func=yes"
5722 echo "configure: failed program was:" >&5
5723 cat conftest.
$ac_ext >&5
5725 eval "ac_cv_func_$ac_func=no"
5730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5731 echo "$ac_t""yes" 1>&6
5732 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5733 cat >> confdefs.h
<<EOF
5734 #define $ac_tr_func 1
5738 echo "$ac_t""no" 1>&6
5742 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5745 echo "configure:5746: checking for $ac_func" >&5
5746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 cat > conftest.
$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5752 /* System header to define __stub macros and hopefully few prototypes,
5753 which can conflict with char $ac_func(); below. */
5755 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5762 /* The GNU C library defines this for functions which it implements
5763 to always fail with ENOSYS. Some functions are actually named
5764 something starting with __ and the normal name is an alias. */
5765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5773 if { (eval echo configure
:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5775 eval "ac_cv_func_$ac_func=yes"
5777 echo "configure: failed program was:" >&5
5778 cat conftest.
$ac_ext >&5
5780 eval "ac_cv_func_$ac_func=no"
5785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5786 echo "$ac_t""yes" 1>&6
5787 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5788 cat >> confdefs.h
<<EOF
5789 #define $ac_tr_func 1
5793 echo "$ac_t""no" 1>&6
5797 for ac_func
in __getcwd _getcwd
5799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5800 echo "configure:5801: checking for $ac_func" >&5
5801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5804 cat > conftest.
$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 /* System header to define __stub macros and hopefully few prototypes,
5808 which can conflict with char $ac_func(); below. */
5810 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */
5817 /* The GNU C library defines this for functions which it implements
5818 to always fail with ENOSYS. Some functions are actually named
5819 something starting with __ and the normal name is an alias. */
5820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5828 if { (eval echo configure
:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5830 eval "ac_cv_func_$ac_func=yes"
5832 echo "configure: failed program was:" >&5
5833 cat conftest.
$ac_ext >&5
5835 eval "ac_cv_func_$ac_func=no"
5840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5843 cat >> confdefs.h
<<EOF
5844 #define $ac_tr_func 1
5848 echo "$ac_t""no" 1>&6
5852 for ac_func
in __xstat __fxstat __lxstat
5854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5855 echo "configure:5856: checking for $ac_func" >&5
5856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5859 cat > conftest.
$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5862 /* System header to define __stub macros and hopefully few prototypes,
5863 which can conflict with char $ac_func(); below. */
5865 /* Override any gcc2 internal prototype to avoid an error. */
5866 /* We use char because int might match the return type of a gcc2
5867 builtin and then its argument prototype would still apply. */
5872 /* The GNU C library defines this for functions which it implements
5873 to always fail with ENOSYS. Some functions are actually named
5874 something starting with __ and the normal name is an alias. */
5875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5883 if { (eval echo configure
:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5885 eval "ac_cv_func_$ac_func=yes"
5887 echo "configure: failed program was:" >&5
5888 cat conftest.
$ac_ext >&5
5890 eval "ac_cv_func_$ac_func=no"
5895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5896 echo "$ac_t""yes" 1>&6
5897 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5898 cat >> confdefs.h
<<EOF
5899 #define $ac_tr_func 1
5903 echo "$ac_t""no" 1>&6
5907 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5910 echo "configure:5911: checking for $ac_func" >&5
5911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5912 echo $ac_n "(cached) $ac_c" 1>&6
5914 cat > conftest.
$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 /* System header to define __stub macros and hopefully few prototypes,
5918 which can conflict with char $ac_func(); below. */
5920 /* Override any gcc2 internal prototype to avoid an error. */
5921 /* We use char because int might match the return type of a gcc2
5922 builtin and then its argument prototype would still apply. */
5927 /* The GNU C library defines this for functions which it implements
5928 to always fail with ENOSYS. Some functions are actually named
5929 something starting with __ and the normal name is an alias. */
5930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5938 if { (eval echo configure
:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5940 eval "ac_cv_func_$ac_func=yes"
5942 echo "configure: failed program was:" >&5
5943 cat conftest.
$ac_ext >&5
5945 eval "ac_cv_func_$ac_func=no"
5950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5951 echo "$ac_t""yes" 1>&6
5952 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5953 cat >> confdefs.h
<<EOF
5954 #define $ac_tr_func 1
5958 echo "$ac_t""no" 1>&6
5962 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5965 echo "configure:5966: checking for $ac_func" >&5
5966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5969 cat > conftest.
$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5972 /* System header to define __stub macros and hopefully few prototypes,
5973 which can conflict with char $ac_func(); below. */
5975 /* Override any gcc2 internal prototype to avoid an error. */
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5982 /* The GNU C library defines this for functions which it implements
5983 to always fail with ENOSYS. Some functions are actually named
5984 something starting with __ and the normal name is an alias. */
5985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5993 if { (eval echo configure
:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5995 eval "ac_cv_func_$ac_func=yes"
5997 echo "configure: failed program was:" >&5
5998 cat conftest.
$ac_ext >&5
6000 eval "ac_cv_func_$ac_func=no"
6005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6006 echo "$ac_t""yes" 1>&6
6007 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6008 cat >> confdefs.h
<<EOF
6009 #define $ac_tr_func 1
6013 echo "$ac_t""no" 1>&6
6017 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6020 echo "configure:6021: checking for $ac_func" >&5
6021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 cat > conftest.
$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 /* System header to define __stub macros and hopefully few prototypes,
6028 which can conflict with char $ac_func(); below. */
6030 /* Override any gcc2 internal prototype to avoid an error. */
6031 /* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6037 /* The GNU C library defines this for functions which it implements
6038 to always fail with ENOSYS. Some functions are actually named
6039 something starting with __ and the normal name is an alias. */
6040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6048 if { (eval echo configure
:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6050 eval "ac_cv_func_$ac_func=yes"
6052 echo "configure: failed program was:" >&5
6053 cat conftest.
$ac_ext >&5
6055 eval "ac_cv_func_$ac_func=no"
6060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6061 echo "$ac_t""yes" 1>&6
6062 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6063 cat >> confdefs.h
<<EOF
6064 #define $ac_tr_func 1
6068 echo "$ac_t""no" 1>&6
6072 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6075 echo "configure:6076: checking for $ac_func" >&5
6076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6079 cat > conftest.
$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6082 /* System header to define __stub macros and hopefully few prototypes,
6083 which can conflict with char $ac_func(); below. */
6085 /* Override any gcc2 internal prototype to avoid an error. */
6086 /* We use char because int might match the return type of a gcc2
6087 builtin and then its argument prototype would still apply. */
6092 /* The GNU C library defines this for functions which it implements
6093 to always fail with ENOSYS. Some functions are actually named
6094 something starting with __ and the normal name is an alias. */
6095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6103 if { (eval echo configure
:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6105 eval "ac_cv_func_$ac_func=yes"
6107 echo "configure: failed program was:" >&5
6108 cat conftest.
$ac_ext >&5
6110 eval "ac_cv_func_$ac_func=no"
6115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6116 echo "$ac_t""yes" 1>&6
6117 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6118 cat >> confdefs.h
<<EOF
6119 #define $ac_tr_func 1
6123 echo "$ac_t""no" 1>&6
6127 for ac_func
in _write __write _fork __fork
6129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_func" >&5
6131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.
$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func(); below. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6147 /* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6158 if { (eval echo configure
:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6160 eval "ac_cv_func_$ac_func=yes"
6162 echo "configure: failed program was:" >&5
6163 cat conftest.
$ac_ext >&5
6165 eval "ac_cv_func_$ac_func=no"
6170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6172 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6173 cat >> confdefs.h
<<EOF
6174 #define $ac_tr_func 1
6178 echo "$ac_t""no" 1>&6
6182 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6185 echo "configure:6186: checking for $ac_func" >&5
6186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6189 cat > conftest.
$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char $ac_func(); below. */
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */
6202 /* The GNU C library defines this for functions which it implements
6203 to always fail with ENOSYS. Some functions are actually named
6204 something starting with __ and the normal name is an alias. */
6205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6213 if { (eval echo configure
:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6215 eval "ac_cv_func_$ac_func=yes"
6217 echo "configure: failed program was:" >&5
6218 cat conftest.
$ac_ext >&5
6220 eval "ac_cv_func_$ac_func=no"
6225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6226 echo "$ac_t""yes" 1>&6
6227 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6228 cat >> confdefs.h
<<EOF
6229 #define $ac_tr_func 1
6233 echo "$ac_t""no" 1>&6
6237 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6240 echo "configure:6241: checking for $ac_func" >&5
6241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6244 cat > conftest.
$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char $ac_func(); below. */
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6257 /* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6268 if { (eval echo configure
:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6270 eval "ac_cv_func_$ac_func=yes"
6272 echo "configure: failed program was:" >&5
6273 cat conftest.
$ac_ext >&5
6275 eval "ac_cv_func_$ac_func=no"
6280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6282 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6283 cat >> confdefs.h
<<EOF
6284 #define $ac_tr_func 1
6288 echo "$ac_t""no" 1>&6
6292 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_func" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 cat > conftest.
$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char $ac_func(); below. */
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6323 if { (eval echo configure
:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6325 eval "ac_cv_func_$ac_func=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.
$ac_ext >&5
6330 eval "ac_cv_func_$ac_func=no"
6335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6338 cat >> confdefs.h
<<EOF
6339 #define $ac_tr_func 1
6343 echo "$ac_t""no" 1>&6
6347 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6350 echo "configure:6351: checking for $ac_func" >&5
6351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6354 cat > conftest.
$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func(); below. */
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6367 /* The GNU C library defines this for functions which it implements
6368 to always fail with ENOSYS. Some functions are actually named
6369 something starting with __ and the normal name is an alias. */
6370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6378 if { (eval echo configure
:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6380 eval "ac_cv_func_$ac_func=yes"
6382 echo "configure: failed program was:" >&5
6383 cat conftest.
$ac_ext >&5
6385 eval "ac_cv_func_$ac_func=no"
6390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6391 echo "$ac_t""yes" 1>&6
6392 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6393 cat >> confdefs.h
<<EOF
6394 #define $ac_tr_func 1
6398 echo "$ac_t""no" 1>&6
6402 for ac_func
in open64 _open64 __open64 creat64
6404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6405 echo "configure:6406: checking for $ac_func" >&5
6406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6407 echo $ac_n "(cached) $ac_c" 1>&6
6409 cat > conftest.
$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* System header to define __stub macros and hopefully few prototypes,
6413 which can conflict with char $ac_func(); below. */
6415 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6422 /* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6433 if { (eval echo configure
:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6435 eval "ac_cv_func_$ac_func=yes"
6437 echo "configure: failed program was:" >&5
6438 cat conftest.
$ac_ext >&5
6440 eval "ac_cv_func_$ac_func=no"
6445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6446 echo "$ac_t""yes" 1>&6
6447 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6448 cat >> confdefs.h
<<EOF
6449 #define $ac_tr_func 1
6453 echo "$ac_t""no" 1>&6
6459 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6462 if test x
$ac_cv_func_stat64 = xno
; then
6463 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6464 echo "configure:6465: checking for stat64 in <sys/stat.h>" >&5
6465 cat > conftest.
$ac_ext <<EOF
6466 #line 6467 "configure"
6467 #include "confdefs.h"
6469 #if defined(HAVE_UNISTD_H)
6472 #include <sys/stat.h>
6475 struct stat64 st64; exit(stat64(".",&st64));
6478 if { (eval echo configure
:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6480 ac_cv_func_stat64
=yes
6482 echo "configure: failed program was:" >&5
6483 cat conftest.
$ac_ext >&5
6486 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6487 if test x
$ac_cv_func_stat64 = xyes
; then
6488 cat >> confdefs.h
<<\EOF
6489 #define HAVE_STAT64 1
6495 if test x
$ac_cv_func_lstat64 = xno
; then
6496 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6497 echo "configure:6498: checking for lstat64 in <sys/stat.h>" >&5
6498 cat > conftest.
$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6502 #if defined(HAVE_UNISTD_H)
6505 #include <sys/stat.h>
6508 struct stat64 st64; exit(lstat64(".",&st64));
6511 if { (eval echo configure
:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6513 ac_cv_func_lstat64
=yes
6515 echo "configure: failed program was:" >&5
6516 cat conftest.
$ac_ext >&5
6519 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6520 if test x
$ac_cv_func_lstat64 = xyes
; then
6521 cat >> confdefs.h
<<\EOF
6522 #define HAVE_LSTAT64 1
6528 if test x
$ac_cv_func_fstat64 = xno
; then
6529 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6530 echo "configure:6531: checking for fstat64 in <sys/stat.h>" >&5
6531 cat > conftest.
$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6535 #if defined(HAVE_UNISTD_H)
6538 #include <sys/stat.h>
6541 struct stat64 st64; exit(fstat64(0,&st64));
6544 if { (eval echo configure
:6545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6546 ac_cv_func_fstat64
=yes
6548 echo "configure: failed program was:" >&5
6549 cat conftest.
$ac_ext >&5
6552 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6553 if test x
$ac_cv_func_fstat64 = xyes
; then
6554 cat >> confdefs.h
<<\EOF
6555 #define HAVE_FSTAT64 1
6562 # If no strcasecmp, check for it in some known places
6563 # It is in -lresolv on ReliantUNIX and UnixWare
6564 # -lresolve *must* follow -lnsl for name resolution to work properly
6567 if test x
$ac_cv_func_strcasecmp = xno
; then
6568 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6569 echo "configure:6570: checking for strcasecmp in -lresolv" >&5
6570 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 ac_save_LIBS
="$LIBS"
6575 LIBS
="-lresolv $LIBS"
6576 cat > conftest.
$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6588 if { (eval echo configure
:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.
$ac_ext >&5
6595 eval "ac_cv_lib_$ac_lib_var=no"
6598 LIBS
="$ac_save_LIBS"
6601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6603 LIBS
="$LIBS -lresolv"
6604 cat >> confdefs.h
<<\EOF
6605 #define HAVE_STRCASECMP 1
6609 echo "$ac_t""no" 1>&6
6615 # Check for the functions putprpwnam, set_auth_parameters,
6616 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6617 # Needed for OSF1 and HPUX.
6621 *-lsecurity*) for ac_func
in putprpwnam
6623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6624 echo "configure:6625: checking for $ac_func" >&5
6625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6628 cat > conftest.
$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 /* System header to define __stub macros and hopefully few prototypes,
6632 which can conflict with char $ac_func(); below. */
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6641 /* The GNU C library defines this for functions which it implements
6642 to always fail with ENOSYS. Some functions are actually named
6643 something starting with __ and the normal name is an alias. */
6644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6652 if { (eval echo configure
:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6654 eval "ac_cv_func_$ac_func=yes"
6656 echo "configure: failed program was:" >&5
6657 cat conftest.
$ac_ext >&5
6659 eval "ac_cv_func_$ac_func=no"
6664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6665 echo "$ac_t""yes" 1>&6
6666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6667 cat >> confdefs.h
<<EOF
6668 #define $ac_tr_func 1
6672 echo "$ac_t""no" 1>&6
6676 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6677 echo "configure:6678: checking for putprpwnam in -lsecurity" >&5
6678 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6680 echo $ac_n "(cached) $ac_c" 1>&6
6682 ac_save_LIBS
="$LIBS"
6683 LIBS
="-lsecurity $LIBS"
6684 cat > conftest.
$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* Override any gcc2 internal prototype to avoid an error. */
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6696 if { (eval echo configure
:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6698 eval "ac_cv_lib_$ac_lib_var=yes"
6700 echo "configure: failed program was:" >&5
6701 cat conftest.
$ac_ext >&5
6703 eval "ac_cv_lib_$ac_lib_var=no"
6706 LIBS
="$ac_save_LIBS"
6709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6712 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6713 cat >> confdefs.h
<<EOF
6714 #define $ac_tr_lib 1
6717 LIBS
="-lsecurity $LIBS"
6720 echo "$ac_t""no" 1>&6
6723 for ac_func
in putprpwnam
6725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6726 echo "configure:6727: checking for $ac_func" >&5
6727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 cat > conftest.
$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 /* System header to define __stub macros and hopefully few prototypes,
6734 which can conflict with char $ac_func(); below. */
6736 /* Override any gcc2 internal prototype to avoid an error. */
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6743 /* The GNU C library defines this for functions which it implements
6744 to always fail with ENOSYS. Some functions are actually named
6745 something starting with __ and the normal name is an alias. */
6746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6754 if { (eval echo configure
:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6756 eval "ac_cv_func_$ac_func=yes"
6758 echo "configure: failed program was:" >&5
6759 cat conftest.
$ac_ext >&5
6761 eval "ac_cv_func_$ac_func=no"
6766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6768 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6769 cat >> confdefs.h
<<EOF
6770 #define $ac_tr_func 1
6774 echo "$ac_t""no" 1>&6
6782 *-lsec*) for ac_func
in putprpwnam
6784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6785 echo "configure:6786: checking for $ac_func" >&5
6786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6789 cat > conftest.
$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 /* System header to define __stub macros and hopefully few prototypes,
6793 which can conflict with char $ac_func(); below. */
6795 /* Override any gcc2 internal prototype to avoid an error. */
6796 /* We use char because int might match the return type of a gcc2
6797 builtin and then its argument prototype would still apply. */
6802 /* The GNU C library defines this for functions which it implements
6803 to always fail with ENOSYS. Some functions are actually named
6804 something starting with __ and the normal name is an alias. */
6805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6813 if { (eval echo configure
:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6815 eval "ac_cv_func_$ac_func=yes"
6817 echo "configure: failed program was:" >&5
6818 cat conftest.
$ac_ext >&5
6820 eval "ac_cv_func_$ac_func=no"
6825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6828 cat >> confdefs.h
<<EOF
6829 #define $ac_tr_func 1
6833 echo "$ac_t""no" 1>&6
6837 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6838 echo "configure:6839: checking for putprpwnam in -lsec" >&5
6839 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6841 echo $ac_n "(cached) $ac_c" 1>&6
6843 ac_save_LIBS
="$LIBS"
6845 cat > conftest.
$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6857 if { (eval echo configure
:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6859 eval "ac_cv_lib_$ac_lib_var=yes"
6861 echo "configure: failed program was:" >&5
6862 cat conftest.
$ac_ext >&5
6864 eval "ac_cv_lib_$ac_lib_var=no"
6867 LIBS
="$ac_save_LIBS"
6870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6871 echo "$ac_t""yes" 1>&6
6872 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6874 cat >> confdefs.h
<<EOF
6875 #define $ac_tr_lib 1
6881 echo "$ac_t""no" 1>&6
6884 for ac_func
in putprpwnam
6886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6887 echo "configure:6888: checking for $ac_func" >&5
6888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6891 cat > conftest.
$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6894 /* System header to define __stub macros and hopefully few prototypes,
6895 which can conflict with char $ac_func(); below. */
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 /* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6904 /* The GNU C library defines this for functions which it implements
6905 to always fail with ENOSYS. Some functions are actually named
6906 something starting with __ and the normal name is an alias. */
6907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6915 if { (eval echo configure
:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6917 eval "ac_cv_func_$ac_func=yes"
6919 echo "configure: failed program was:" >&5
6920 cat conftest.
$ac_ext >&5
6922 eval "ac_cv_func_$ac_func=no"
6927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6928 echo "$ac_t""yes" 1>&6
6929 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6930 cat >> confdefs.h
<<EOF
6931 #define $ac_tr_func 1
6935 echo "$ac_t""no" 1>&6
6944 *-lsecurity*) for ac_func
in set_auth_parameters
6946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6947 echo "configure:6948: checking for $ac_func" >&5
6948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6949 echo $ac_n "(cached) $ac_c" 1>&6
6951 cat > conftest.
$ac_ext <<EOF
6952 #line 6953 "configure"
6953 #include "confdefs.h"
6954 /* System header to define __stub macros and hopefully few prototypes,
6955 which can conflict with char $ac_func(); below. */
6957 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6964 /* The GNU C library defines this for functions which it implements
6965 to always fail with ENOSYS. Some functions are actually named
6966 something starting with __ and the normal name is an alias. */
6967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6975 if { (eval echo configure
:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6977 eval "ac_cv_func_$ac_func=yes"
6979 echo "configure: failed program was:" >&5
6980 cat conftest.
$ac_ext >&5
6982 eval "ac_cv_func_$ac_func=no"
6987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6988 echo "$ac_t""yes" 1>&6
6989 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6990 cat >> confdefs.h
<<EOF
6991 #define $ac_tr_func 1
6995 echo "$ac_t""no" 1>&6
6999 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7000 echo "configure:7001: checking for set_auth_parameters in -lsecurity" >&5
7001 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 ac_save_LIBS
="$LIBS"
7006 LIBS
="-lsecurity $LIBS"
7007 cat > conftest.
$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* Override any gcc2 internal prototype to avoid an error. */
7011 /* We use char because int might match the return type of a gcc2
7012 builtin and then its argument prototype would still apply. */
7013 char set_auth_parameters();
7016 set_auth_parameters()
7019 if { (eval echo configure
:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7021 eval "ac_cv_lib_$ac_lib_var=yes"
7023 echo "configure: failed program was:" >&5
7024 cat conftest.
$ac_ext >&5
7026 eval "ac_cv_lib_$ac_lib_var=no"
7029 LIBS
="$ac_save_LIBS"
7032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7034 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7036 cat >> confdefs.h
<<EOF
7037 #define $ac_tr_lib 1
7040 LIBS
="-lsecurity $LIBS"
7043 echo "$ac_t""no" 1>&6
7046 for ac_func
in set_auth_parameters
7048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7049 echo "configure:7050: checking for $ac_func" >&5
7050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7053 cat > conftest.
$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7056 /* System header to define __stub macros and hopefully few prototypes,
7057 which can conflict with char $ac_func(); below. */
7059 /* Override any gcc2 internal prototype to avoid an error. */
7060 /* We use char because int might match the return type of a gcc2
7061 builtin and then its argument prototype would still apply. */
7066 /* The GNU C library defines this for functions which it implements
7067 to always fail with ENOSYS. Some functions are actually named
7068 something starting with __ and the normal name is an alias. */
7069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7077 if { (eval echo configure
:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7079 eval "ac_cv_func_$ac_func=yes"
7081 echo "configure: failed program was:" >&5
7082 cat conftest.
$ac_ext >&5
7084 eval "ac_cv_func_$ac_func=no"
7089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7091 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7092 cat >> confdefs.h
<<EOF
7093 #define $ac_tr_func 1
7097 echo "$ac_t""no" 1>&6
7105 *-lsec*) for ac_func
in set_auth_parameters
7107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7108 echo "configure:7109: checking for $ac_func" >&5
7109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7112 cat > conftest.
$ac_ext <<EOF
7113 #line 7114 "configure"
7114 #include "confdefs.h"
7115 /* System header to define __stub macros and hopefully few prototypes,
7116 which can conflict with char $ac_func(); below. */
7118 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7125 /* The GNU C library defines this for functions which it implements
7126 to always fail with ENOSYS. Some functions are actually named
7127 something starting with __ and the normal name is an alias. */
7128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7136 if { (eval echo configure
:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7138 eval "ac_cv_func_$ac_func=yes"
7140 echo "configure: failed program was:" >&5
7141 cat conftest.
$ac_ext >&5
7143 eval "ac_cv_func_$ac_func=no"
7148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7149 echo "$ac_t""yes" 1>&6
7150 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7151 cat >> confdefs.h
<<EOF
7152 #define $ac_tr_func 1
7156 echo "$ac_t""no" 1>&6
7160 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7161 echo "configure:7162: checking for set_auth_parameters in -lsec" >&5
7162 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7164 echo $ac_n "(cached) $ac_c" 1>&6
7166 ac_save_LIBS
="$LIBS"
7168 cat > conftest.
$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7171 /* Override any gcc2 internal prototype to avoid an error. */
7172 /* We use char because int might match the return type of a gcc2
7173 builtin and then its argument prototype would still apply. */
7174 char set_auth_parameters();
7177 set_auth_parameters()
7180 if { (eval echo configure
:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7182 eval "ac_cv_lib_$ac_lib_var=yes"
7184 echo "configure: failed program was:" >&5
7185 cat conftest.
$ac_ext >&5
7187 eval "ac_cv_lib_$ac_lib_var=no"
7190 LIBS
="$ac_save_LIBS"
7193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7194 echo "$ac_t""yes" 1>&6
7195 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7196 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7197 cat >> confdefs.h
<<EOF
7198 #define $ac_tr_lib 1
7204 echo "$ac_t""no" 1>&6
7207 for ac_func
in set_auth_parameters
7209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7210 echo "configure:7211: checking for $ac_func" >&5
7211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 cat > conftest.
$ac_ext <<EOF
7215 #line 7216 "configure"
7216 #include "confdefs.h"
7217 /* System header to define __stub macros and hopefully few prototypes,
7218 which can conflict with char $ac_func(); below. */
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7227 /* The GNU C library defines this for functions which it implements
7228 to always fail with ENOSYS. Some functions are actually named
7229 something starting with __ and the normal name is an alias. */
7230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7238 if { (eval echo configure
:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7240 eval "ac_cv_func_$ac_func=yes"
7242 echo "configure: failed program was:" >&5
7243 cat conftest.
$ac_ext >&5
7245 eval "ac_cv_func_$ac_func=no"
7250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7251 echo "$ac_t""yes" 1>&6
7252 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7253 cat >> confdefs.h
<<EOF
7254 #define $ac_tr_func 1
7258 echo "$ac_t""no" 1>&6
7266 # UnixWare 7.x has its getspnam in -lgen
7268 *-lgen*) for ac_func
in getspnam
7270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7271 echo "configure:7272: checking for $ac_func" >&5
7272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7275 cat > conftest.
$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7278 /* System header to define __stub macros and hopefully few prototypes,
7279 which can conflict with char $ac_func(); below. */
7281 /* Override any gcc2 internal prototype to avoid an error. */
7282 /* We use char because int might match the return type of a gcc2
7283 builtin and then its argument prototype would still apply. */
7288 /* The GNU C library defines this for functions which it implements
7289 to always fail with ENOSYS. Some functions are actually named
7290 something starting with __ and the normal name is an alias. */
7291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7299 if { (eval echo configure
:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7301 eval "ac_cv_func_$ac_func=yes"
7303 echo "configure: failed program was:" >&5
7304 cat conftest.
$ac_ext >&5
7306 eval "ac_cv_func_$ac_func=no"
7311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7312 echo "$ac_t""yes" 1>&6
7313 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7314 cat >> confdefs.h
<<EOF
7315 #define $ac_tr_func 1
7319 echo "$ac_t""no" 1>&6
7323 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7324 echo "configure:7325: checking for getspnam in -lgen" >&5
7325 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7329 ac_save_LIBS
="$LIBS"
7331 cat > conftest.
$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7334 /* Override any gcc2 internal prototype to avoid an error. */
7335 /* We use char because int might match the return type of a gcc2
7336 builtin and then its argument prototype would still apply. */
7343 if { (eval echo configure
:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7345 eval "ac_cv_lib_$ac_lib_var=yes"
7347 echo "configure: failed program was:" >&5
7348 cat conftest.
$ac_ext >&5
7350 eval "ac_cv_lib_$ac_lib_var=no"
7353 LIBS
="$ac_save_LIBS"
7356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7357 echo "$ac_t""yes" 1>&6
7358 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7360 cat >> confdefs.h
<<EOF
7361 #define $ac_tr_lib 1
7367 echo "$ac_t""no" 1>&6
7370 for ac_func
in getspnam
7372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7373 echo "configure:7374: checking for $ac_func" >&5
7374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7377 cat > conftest.
$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7380 /* System header to define __stub macros and hopefully few prototypes,
7381 which can conflict with char $ac_func(); below. */
7383 /* Override any gcc2 internal prototype to avoid an error. */
7384 /* We use char because int might match the return type of a gcc2
7385 builtin and then its argument prototype would still apply. */
7390 /* The GNU C library defines this for functions which it implements
7391 to always fail with ENOSYS. Some functions are actually named
7392 something starting with __ and the normal name is an alias. */
7393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7401 if { (eval echo configure
:7402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7403 eval "ac_cv_func_$ac_func=yes"
7405 echo "configure: failed program was:" >&5
7406 cat conftest.
$ac_ext >&5
7408 eval "ac_cv_func_$ac_func=no"
7413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7414 echo "$ac_t""yes" 1>&6
7415 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7416 cat >> confdefs.h
<<EOF
7417 #define $ac_tr_func 1
7421 echo "$ac_t""no" 1>&6
7430 *-lsecurity*) for ac_func
in getspnam
7432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7433 echo "configure:7434: checking for $ac_func" >&5
7434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7435 echo $ac_n "(cached) $ac_c" 1>&6
7437 cat > conftest.
$ac_ext <<EOF
7438 #line 7439 "configure"
7439 #include "confdefs.h"
7440 /* System header to define __stub macros and hopefully few prototypes,
7441 which can conflict with char $ac_func(); below. */
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 /* We use char because int might match the return type of a gcc2
7445 builtin and then its argument prototype would still apply. */
7450 /* The GNU C library defines this for functions which it implements
7451 to always fail with ENOSYS. Some functions are actually named
7452 something starting with __ and the normal name is an alias. */
7453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7461 if { (eval echo configure
:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7463 eval "ac_cv_func_$ac_func=yes"
7465 echo "configure: failed program was:" >&5
7466 cat conftest.
$ac_ext >&5
7468 eval "ac_cv_func_$ac_func=no"
7473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7474 echo "$ac_t""yes" 1>&6
7475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7476 cat >> confdefs.h
<<EOF
7477 #define $ac_tr_func 1
7481 echo "$ac_t""no" 1>&6
7485 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7486 echo "configure:7487: checking for getspnam in -lsecurity" >&5
7487 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7489 echo $ac_n "(cached) $ac_c" 1>&6
7491 ac_save_LIBS
="$LIBS"
7492 LIBS
="-lsecurity $LIBS"
7493 cat > conftest.
$ac_ext <<EOF
7494 #line 7495 "configure"
7495 #include "confdefs.h"
7496 /* Override any gcc2 internal prototype to avoid an error. */
7497 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7505 if { (eval echo configure
:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7507 eval "ac_cv_lib_$ac_lib_var=yes"
7509 echo "configure: failed program was:" >&5
7510 cat conftest.
$ac_ext >&5
7512 eval "ac_cv_lib_$ac_lib_var=no"
7515 LIBS
="$ac_save_LIBS"
7518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7519 echo "$ac_t""yes" 1>&6
7520 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7522 cat >> confdefs.h
<<EOF
7523 #define $ac_tr_lib 1
7526 LIBS
="-lsecurity $LIBS"
7529 echo "$ac_t""no" 1>&6
7532 for ac_func
in getspnam
7534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7535 echo "configure:7536: checking for $ac_func" >&5
7536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7537 echo $ac_n "(cached) $ac_c" 1>&6
7539 cat > conftest.
$ac_ext <<EOF
7540 #line 7541 "configure"
7541 #include "confdefs.h"
7542 /* System header to define __stub macros and hopefully few prototypes,
7543 which can conflict with char $ac_func(); below. */
7545 /* Override any gcc2 internal prototype to avoid an error. */
7546 /* We use char because int might match the return type of a gcc2
7547 builtin and then its argument prototype would still apply. */
7552 /* The GNU C library defines this for functions which it implements
7553 to always fail with ENOSYS. Some functions are actually named
7554 something starting with __ and the normal name is an alias. */
7555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7563 if { (eval echo configure
:7564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7565 eval "ac_cv_func_$ac_func=yes"
7567 echo "configure: failed program was:" >&5
7568 cat conftest.
$ac_ext >&5
7570 eval "ac_cv_func_$ac_func=no"
7575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7576 echo "$ac_t""yes" 1>&6
7577 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7578 cat >> confdefs.h
<<EOF
7579 #define $ac_tr_func 1
7583 echo "$ac_t""no" 1>&6
7591 *-lsec*) for ac_func
in getspnam
7593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7594 echo "configure:7595: checking for $ac_func" >&5
7595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7598 cat > conftest.
$ac_ext <<EOF
7599 #line 7600 "configure"
7600 #include "confdefs.h"
7601 /* System header to define __stub macros and hopefully few prototypes,
7602 which can conflict with char $ac_func(); below. */
7604 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7611 /* The GNU C library defines this for functions which it implements
7612 to always fail with ENOSYS. Some functions are actually named
7613 something starting with __ and the normal name is an alias. */
7614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7622 if { (eval echo configure
:7623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7624 eval "ac_cv_func_$ac_func=yes"
7626 echo "configure: failed program was:" >&5
7627 cat conftest.
$ac_ext >&5
7629 eval "ac_cv_func_$ac_func=no"
7634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7635 echo "$ac_t""yes" 1>&6
7636 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7637 cat >> confdefs.h
<<EOF
7638 #define $ac_tr_func 1
7642 echo "$ac_t""no" 1>&6
7646 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7647 echo "configure:7648: checking for getspnam in -lsec" >&5
7648 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7652 ac_save_LIBS
="$LIBS"
7654 cat > conftest.
$ac_ext <<EOF
7655 #line 7656 "configure"
7656 #include "confdefs.h"
7657 /* Override any gcc2 internal prototype to avoid an error. */
7658 /* We use char because int might match the return type of a gcc2
7659 builtin and then its argument prototype would still apply. */
7666 if { (eval echo configure
:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7668 eval "ac_cv_lib_$ac_lib_var=yes"
7670 echo "configure: failed program was:" >&5
7671 cat conftest.
$ac_ext >&5
7673 eval "ac_cv_lib_$ac_lib_var=no"
7676 LIBS
="$ac_save_LIBS"
7679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7683 cat >> confdefs.h
<<EOF
7684 #define $ac_tr_lib 1
7690 echo "$ac_t""no" 1>&6
7693 for ac_func
in getspnam
7695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7696 echo "configure:7697: checking for $ac_func" >&5
7697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7700 cat > conftest.
$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char $ac_func(); below. */
7706 /* Override any gcc2 internal prototype to avoid an error. */
7707 /* We use char because int might match the return type of a gcc2
7708 builtin and then its argument prototype would still apply. */
7713 /* The GNU C library defines this for functions which it implements
7714 to always fail with ENOSYS. Some functions are actually named
7715 something starting with __ and the normal name is an alias. */
7716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7724 if { (eval echo configure
:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7726 eval "ac_cv_func_$ac_func=yes"
7728 echo "configure: failed program was:" >&5
7729 cat conftest.
$ac_ext >&5
7731 eval "ac_cv_func_$ac_func=no"
7736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7737 echo "$ac_t""yes" 1>&6
7738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7739 cat >> confdefs.h
<<EOF
7740 #define $ac_tr_func 1
7744 echo "$ac_t""no" 1>&6
7753 *-lsecurity*) for ac_func
in bigcrypt
7755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7756 echo "configure:7757: checking for $ac_func" >&5
7757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7760 cat > conftest.
$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7763 /* System header to define __stub macros and hopefully few prototypes,
7764 which can conflict with char $ac_func(); below. */
7766 /* Override any gcc2 internal prototype to avoid an error. */
7767 /* We use char because int might match the return type of a gcc2
7768 builtin and then its argument prototype would still apply. */
7773 /* The GNU C library defines this for functions which it implements
7774 to always fail with ENOSYS. Some functions are actually named
7775 something starting with __ and the normal name is an alias. */
7776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7784 if { (eval echo configure
:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7786 eval "ac_cv_func_$ac_func=yes"
7788 echo "configure: failed program was:" >&5
7789 cat conftest.
$ac_ext >&5
7791 eval "ac_cv_func_$ac_func=no"
7796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7797 echo "$ac_t""yes" 1>&6
7798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7799 cat >> confdefs.h
<<EOF
7800 #define $ac_tr_func 1
7804 echo "$ac_t""no" 1>&6
7808 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7809 echo "configure:7810: checking for bigcrypt in -lsecurity" >&5
7810 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7814 ac_save_LIBS
="$LIBS"
7815 LIBS
="-lsecurity $LIBS"
7816 cat > conftest.
$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819 /* Override any gcc2 internal prototype to avoid an error. */
7820 /* We use char because int might match the return type of a gcc2
7821 builtin and then its argument prototype would still apply. */
7828 if { (eval echo configure
:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7830 eval "ac_cv_lib_$ac_lib_var=yes"
7832 echo "configure: failed program was:" >&5
7833 cat conftest.
$ac_ext >&5
7835 eval "ac_cv_lib_$ac_lib_var=no"
7838 LIBS
="$ac_save_LIBS"
7841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7842 echo "$ac_t""yes" 1>&6
7843 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7845 cat >> confdefs.h
<<EOF
7846 #define $ac_tr_lib 1
7849 LIBS
="-lsecurity $LIBS"
7852 echo "$ac_t""no" 1>&6
7855 for ac_func
in bigcrypt
7857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7858 echo "configure:7859: checking for $ac_func" >&5
7859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7862 cat > conftest.
$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7865 /* System header to define __stub macros and hopefully few prototypes,
7866 which can conflict with char $ac_func(); below. */
7868 /* Override any gcc2 internal prototype to avoid an error. */
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7875 /* The GNU C library defines this for functions which it implements
7876 to always fail with ENOSYS. Some functions are actually named
7877 something starting with __ and the normal name is an alias. */
7878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7886 if { (eval echo configure
:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7888 eval "ac_cv_func_$ac_func=yes"
7890 echo "configure: failed program was:" >&5
7891 cat conftest.
$ac_ext >&5
7893 eval "ac_cv_func_$ac_func=no"
7898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7899 echo "$ac_t""yes" 1>&6
7900 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7901 cat >> confdefs.h
<<EOF
7902 #define $ac_tr_func 1
7906 echo "$ac_t""no" 1>&6
7914 *-lsec*) for ac_func
in bigcrypt
7916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7917 echo "configure:7918: checking for $ac_func" >&5
7918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7921 cat > conftest.
$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7924 /* System header to define __stub macros and hopefully few prototypes,
7925 which can conflict with char $ac_func(); below. */
7927 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7934 /* The GNU C library defines this for functions which it implements
7935 to always fail with ENOSYS. Some functions are actually named
7936 something starting with __ and the normal name is an alias. */
7937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7945 if { (eval echo configure
:7946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7947 eval "ac_cv_func_$ac_func=yes"
7949 echo "configure: failed program was:" >&5
7950 cat conftest.
$ac_ext >&5
7952 eval "ac_cv_func_$ac_func=no"
7957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7958 echo "$ac_t""yes" 1>&6
7959 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7960 cat >> confdefs.h
<<EOF
7961 #define $ac_tr_func 1
7965 echo "$ac_t""no" 1>&6
7969 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7970 echo "configure:7971: checking for bigcrypt in -lsec" >&5
7971 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7975 ac_save_LIBS
="$LIBS"
7977 cat > conftest.
$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7989 if { (eval echo configure
:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7991 eval "ac_cv_lib_$ac_lib_var=yes"
7993 echo "configure: failed program was:" >&5
7994 cat conftest.
$ac_ext >&5
7996 eval "ac_cv_lib_$ac_lib_var=no"
7999 LIBS
="$ac_save_LIBS"
8002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8003 echo "$ac_t""yes" 1>&6
8004 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8005 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8006 cat >> confdefs.h
<<EOF
8007 #define $ac_tr_lib 1
8013 echo "$ac_t""no" 1>&6
8016 for ac_func
in bigcrypt
8018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8019 echo "configure:8020: checking for $ac_func" >&5
8020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8023 cat > conftest.
$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 /* System header to define __stub macros and hopefully few prototypes,
8027 which can conflict with char $ac_func(); below. */
8029 /* Override any gcc2 internal prototype to avoid an error. */
8030 /* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */
8036 /* The GNU C library defines this for functions which it implements
8037 to always fail with ENOSYS. Some functions are actually named
8038 something starting with __ and the normal name is an alias. */
8039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8047 if { (eval echo configure
:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8049 eval "ac_cv_func_$ac_func=yes"
8051 echo "configure: failed program was:" >&5
8052 cat conftest.
$ac_ext >&5
8054 eval "ac_cv_func_$ac_func=no"
8059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8062 cat >> confdefs.h
<<EOF
8063 #define $ac_tr_func 1
8067 echo "$ac_t""no" 1>&6
8076 *-lsecurity*) for ac_func
in getprpwnam
8078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8079 echo "configure:8080: checking for $ac_func" >&5
8080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8083 cat > conftest.
$ac_ext <<EOF
8084 #line 8085 "configure"
8085 #include "confdefs.h"
8086 /* System header to define __stub macros and hopefully few prototypes,
8087 which can conflict with char $ac_func(); below. */
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8096 /* The GNU C library defines this for functions which it implements
8097 to always fail with ENOSYS. Some functions are actually named
8098 something starting with __ and the normal name is an alias. */
8099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8107 if { (eval echo configure
:8108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8109 eval "ac_cv_func_$ac_func=yes"
8111 echo "configure: failed program was:" >&5
8112 cat conftest.
$ac_ext >&5
8114 eval "ac_cv_func_$ac_func=no"
8119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8120 echo "$ac_t""yes" 1>&6
8121 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8122 cat >> confdefs.h
<<EOF
8123 #define $ac_tr_func 1
8127 echo "$ac_t""no" 1>&6
8131 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8132 echo "configure:8133: checking for getprpwnam in -lsecurity" >&5
8133 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6
8137 ac_save_LIBS
="$LIBS"
8138 LIBS
="-lsecurity $LIBS"
8139 cat > conftest.
$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* Override any gcc2 internal prototype to avoid an error. */
8143 /* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
8151 if { (eval echo configure
:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8153 eval "ac_cv_lib_$ac_lib_var=yes"
8155 echo "configure: failed program was:" >&5
8156 cat conftest.
$ac_ext >&5
8158 eval "ac_cv_lib_$ac_lib_var=no"
8161 LIBS
="$ac_save_LIBS"
8164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8165 echo "$ac_t""yes" 1>&6
8166 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8168 cat >> confdefs.h
<<EOF
8169 #define $ac_tr_lib 1
8172 LIBS
="-lsecurity $LIBS"
8175 echo "$ac_t""no" 1>&6
8178 for ac_func
in getprpwnam
8180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8181 echo "configure:8182: checking for $ac_func" >&5
8182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8185 cat > conftest.
$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 /* System header to define __stub macros and hopefully few prototypes,
8189 which can conflict with char $ac_func(); below. */
8191 /* Override any gcc2 internal prototype to avoid an error. */
8192 /* We use char because int might match the return type of a gcc2
8193 builtin and then its argument prototype would still apply. */
8198 /* The GNU C library defines this for functions which it implements
8199 to always fail with ENOSYS. Some functions are actually named
8200 something starting with __ and the normal name is an alias. */
8201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8209 if { (eval echo configure
:8210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8211 eval "ac_cv_func_$ac_func=yes"
8213 echo "configure: failed program was:" >&5
8214 cat conftest.
$ac_ext >&5
8216 eval "ac_cv_func_$ac_func=no"
8221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8222 echo "$ac_t""yes" 1>&6
8223 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8224 cat >> confdefs.h
<<EOF
8225 #define $ac_tr_func 1
8229 echo "$ac_t""no" 1>&6
8237 *-lsec*) for ac_func
in getprpwnam
8239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8240 echo "configure:8241: checking for $ac_func" >&5
8241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8244 cat > conftest.
$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8247 /* System header to define __stub macros and hopefully few prototypes,
8248 which can conflict with char $ac_func(); below. */
8250 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8268 if { (eval echo configure
:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8270 eval "ac_cv_func_$ac_func=yes"
8272 echo "configure: failed program was:" >&5
8273 cat conftest.
$ac_ext >&5
8275 eval "ac_cv_func_$ac_func=no"
8280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8281 echo "$ac_t""yes" 1>&6
8282 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8283 cat >> confdefs.h
<<EOF
8284 #define $ac_tr_func 1
8288 echo "$ac_t""no" 1>&6
8292 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8293 echo "configure:8294: checking for getprpwnam in -lsec" >&5
8294 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8298 ac_save_LIBS
="$LIBS"
8300 cat > conftest.
$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8303 /* Override any gcc2 internal prototype to avoid an error. */
8304 /* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8312 if { (eval echo configure
:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8314 eval "ac_cv_lib_$ac_lib_var=yes"
8316 echo "configure: failed program was:" >&5
8317 cat conftest.
$ac_ext >&5
8319 eval "ac_cv_lib_$ac_lib_var=no"
8322 LIBS
="$ac_save_LIBS"
8325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8326 echo "$ac_t""yes" 1>&6
8327 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8329 cat >> confdefs.h
<<EOF
8330 #define $ac_tr_lib 1
8336 echo "$ac_t""no" 1>&6
8339 for ac_func
in getprpwnam
8341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8342 echo "configure:8343: checking for $ac_func" >&5
8343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8346 cat > conftest.
$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 /* System header to define __stub macros and hopefully few prototypes,
8350 which can conflict with char $ac_func(); below. */
8352 /* Override any gcc2 internal prototype to avoid an error. */
8353 /* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */
8359 /* The GNU C library defines this for functions which it implements
8360 to always fail with ENOSYS. Some functions are actually named
8361 something starting with __ and the normal name is an alias. */
8362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8370 if { (eval echo configure
:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8372 eval "ac_cv_func_$ac_func=yes"
8374 echo "configure: failed program was:" >&5
8375 cat conftest.
$ac_ext >&5
8377 eval "ac_cv_func_$ac_func=no"
8382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8383 echo "$ac_t""yes" 1>&6
8384 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8385 cat >> confdefs.h
<<EOF
8386 #define $ac_tr_func 1
8390 echo "$ac_t""no" 1>&6
8398 # this bit needs to be modified for each OS that is suported by
8399 # smbwrapper. You need to specify how to created a shared library and
8400 # how to compile C code to produce PIC object files
8402 # these are the defaults, good for lots of systems
8408 # and these are for particular systems
8410 *linux
*) cat >> confdefs.h
<<\EOF
8414 *solaris
*) cat >> confdefs.h
<<\EOF
8420 *sunos
*) cat >> confdefs.h
<<\EOF
8426 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8428 *irix
*) cat >> confdefs.h
<<\EOF
8433 *irix6
*) cat >> confdefs.h
<<\EOF
8439 ATTEMPT_WRAP32_BUILD
=yes
8441 *aix
*) cat >> confdefs.h
<<\EOF
8445 *hpux
*) cat >> confdefs.h
<<\EOF
8450 # Use special PIC flags for the native HP-UX compiler.
8451 if test $ac_cv_prog_cc_Ae = yes; then
8456 *qnx
*) cat >> confdefs.h
<<\EOF
8460 *osf
*) cat >> confdefs.h
<<\EOF
8464 *sco
*) cat >> confdefs.h
<<\EOF
8468 *next2
*) cat >> confdefs.h
<<\EOF
8472 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8473 set dummy
groff; ac_word
=$2
8474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8475 echo "configure:8476: checking for $ac_word" >&5
8476 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8479 if test -n "$ROFF"; then
8480 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8482 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8484 for ac_dir
in $ac_dummy; do
8485 test -z "$ac_dir" && ac_dir
=.
8486 if test -f $ac_dir/$ac_word; then
8487 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8494 ROFF
="$ac_cv_prog_ROFF"
8495 if test -n "$ROFF"; then
8496 echo "$ac_t""$ROFF" 1>&6
8498 echo "$ac_t""no" 1>&6
8503 *-univel-*) if test "$GCC" != yes ; then
8504 cat >> confdefs.h
<<\EOF
8505 #define HAVE_MEMSET 1
8511 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8512 #define RELIANTUNIX 1
8518 if test "$GCC" != yes ; then
8519 cat >> confdefs.h
<<\EOF
8520 #define HAVE_MEMSET 1
8528 # try to work out how to produce pic code with this compiler
8529 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8530 echo "configure:8531: checking whether ${CC-cc} accepts -fpic" >&5
8531 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8534 echo 'void f(){}' > conftest.c
8535 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8536 ac_cv_prog_cc_fpic
=yes
8538 ac_cv_prog_cc_fpic
=no
8544 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8545 if test $ac_cv_prog_cc_fpic = yes; then
8548 if test x
$PICFLAG = x
; then
8549 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8550 echo "configure:8551: checking whether ${CC-cc} accepts -KPIC" >&5
8551 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8554 echo 'void f(){}' > conftest.c
8555 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8556 ac_cv_prog_cc_KPIC
=yes
8558 ac_cv_prog_cc_KPIC
=no
8564 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8565 if test $ac_cv_prog_cc_KPIC = yes; then
8569 if test x
$PICFLAG = x
; then
8570 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8571 echo "configure:8572: checking whether ${CC-cc} accepts -Kpic" >&5
8572 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8575 echo 'void f(){}' > conftest.c
8576 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8577 ac_cv_prog_cc_Kpic
=yes
8579 ac_cv_prog_cc_Kpic
=no
8585 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8586 if test $ac_cv_prog_cc_Kpic = yes; then
8593 echo $ac_n "checking for long long""... $ac_c" 1>&6
8594 echo "configure:8595: checking for long long" >&5
8595 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8596 echo $ac_n "(cached) $ac_c" 1>&6
8599 if test "$cross_compiling" = yes; then
8600 samba_cv_have_longlong
=cross
8602 cat > conftest.
$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8606 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8608 if { (eval echo configure
:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8610 samba_cv_have_longlong
=yes
8612 echo "configure: failed program was:" >&5
8613 cat conftest.
$ac_ext >&5
8615 samba_cv_have_longlong
=no
8622 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8623 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8624 cat >> confdefs.h
<<\EOF
8625 #define HAVE_LONGLONG 1
8631 # Check if the compiler supports the LL prefix on long long integers.
8634 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8635 echo "configure:8636: checking for LL suffix on long long integers" >&5
8636 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8637 echo $ac_n "(cached) $ac_c" 1>&6
8640 cat > conftest.
$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8645 long long i = 0x8000000000LL
8648 if { (eval echo configure
:8649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8650 samba_cv_compiler_supports_ll
=yes
8652 echo "configure: failed program was:" >&5
8653 cat conftest.
$ac_ext >&5
8655 samba_cv_compiler_supports_ll
=no
8660 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8661 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8662 cat >> confdefs.h
<<\EOF
8663 #define COMPILER_SUPPORTS_LL 1
8669 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8670 echo "configure:8671: checking for 64 bit off_t" >&5
8671 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8675 if test "$cross_compiling" = yes; then
8676 samba_cv_SIZEOF_OFF_T
=cross
8678 cat > conftest.
$ac_ext <<EOF
8679 #line 8680 "configure"
8680 #include "confdefs.h"
8682 #include <sys/stat.h>
8683 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8685 if { (eval echo configure
:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8687 samba_cv_SIZEOF_OFF_T
=yes
8689 echo "configure: failed program was:" >&5
8690 cat conftest.
$ac_ext >&5
8692 samba_cv_SIZEOF_OFF_T
=no
8699 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8700 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8701 cat >> confdefs.h
<<\EOF
8702 #define SIZEOF_OFF_T 8
8707 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8708 echo "configure:8709: checking for off64_t" >&5
8709 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8713 if test "$cross_compiling" = yes; then
8714 samba_cv_HAVE_OFF64_T
=cross
8716 cat > conftest.
$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8720 #if defined(HAVE_UNISTD_H)
8724 #include <sys/stat.h>
8725 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8727 if { (eval echo configure
:8728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8729 samba_cv_HAVE_OFF64_T
=yes
8731 echo "configure: failed program was:" >&5
8732 cat conftest.
$ac_ext >&5
8734 samba_cv_HAVE_OFF64_T
=no
8741 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8742 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8743 cat >> confdefs.h
<<\EOF
8744 #define HAVE_OFF64_T 1
8749 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8750 echo "configure:8751: checking for 64 bit ino_t" >&5
8751 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8755 if test "$cross_compiling" = yes; then
8756 samba_cv_SIZEOF_INO_T
=cross
8758 cat > conftest.
$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8762 #include <sys/stat.h>
8763 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8765 if { (eval echo configure
:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8767 samba_cv_SIZEOF_INO_T
=yes
8769 echo "configure: failed program was:" >&5
8770 cat conftest.
$ac_ext >&5
8772 samba_cv_SIZEOF_INO_T
=no
8779 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8780 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8781 cat >> confdefs.h
<<\EOF
8782 #define SIZEOF_INO_T 8
8787 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8788 echo "configure:8789: checking for ino64_t" >&5
8789 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8793 if test "$cross_compiling" = yes; then
8794 samba_cv_HAVE_INO64_T
=cross
8796 cat > conftest.
$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8800 #if defined(HAVE_UNISTD_H)
8804 #include <sys/stat.h>
8805 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8807 if { (eval echo configure
:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8809 samba_cv_HAVE_INO64_T
=yes
8811 echo "configure: failed program was:" >&5
8812 cat conftest.
$ac_ext >&5
8814 samba_cv_HAVE_INO64_T
=no
8821 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8822 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8823 cat >> confdefs.h
<<\EOF
8824 #define HAVE_INO64_T 1
8829 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8830 echo "configure:8831: checking for struct dirent64" >&5
8831 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8835 cat > conftest.
$ac_ext <<EOF
8836 #line 8837 "configure"
8837 #include "confdefs.h"
8839 #if defined(HAVE_UNISTD_H)
8842 #include <sys/types.h>
8848 if { (eval echo configure
:8849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8850 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8852 echo "configure: failed program was:" >&5
8853 cat conftest.
$ac_ext >&5
8855 samba_cv_HAVE_STRUCT_DIRENT64
=no
8860 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8861 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8862 cat >> confdefs.h
<<\EOF
8863 #define HAVE_STRUCT_DIRENT64 1
8868 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8869 echo "configure:8870: checking for unsigned char" >&5
8870 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8871 echo $ac_n "(cached) $ac_c" 1>&6
8874 if test "$cross_compiling" = yes; then
8875 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8877 cat > conftest.
$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8881 main() { char c; c=250; exit((c > 0)?0:1); }
8883 if { (eval echo configure
:8884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8885 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8887 echo "configure: failed program was:" >&5
8888 cat conftest.
$ac_ext >&5
8890 samba_cv_HAVE_UNSIGNED_CHAR
=no
8897 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8898 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8899 cat >> confdefs.h
<<\EOF
8900 #define HAVE_UNSIGNED_CHAR 1
8905 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8906 echo "configure:8907: checking for sin_len in sock" >&5
8907 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8911 cat > conftest.
$ac_ext <<EOF
8912 #line 8913 "configure"
8913 #include "confdefs.h"
8914 #include <sys/types.h>
8915 #include <sys/socket.h>
8916 #include <netinet/in.h>
8918 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8921 if { (eval echo configure
:8922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8923 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8925 echo "configure: failed program was:" >&5
8926 cat conftest.
$ac_ext >&5
8928 samba_cv_HAVE_SOCK_SIN_LEN
=no
8933 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8934 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8935 cat >> confdefs.h
<<\EOF
8936 #define HAVE_SOCK_SIN_LEN 1
8941 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8942 echo "configure:8943: checking whether seekdir returns void" >&5
8943 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8947 cat > conftest.
$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 #include <sys/types.h>
8952 void seekdir(DIR *d, long loc) { return; }
8957 if { (eval echo configure
:8958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8959 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8961 echo "configure: failed program was:" >&5
8962 cat conftest.
$ac_ext >&5
8964 samba_cv_SEEKDIR_RETURNS_VOID
=no
8969 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8970 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8971 cat >> confdefs.h
<<\EOF
8972 #define SEEKDIR_RETURNS_VOID 1
8977 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8978 echo "configure:8979: checking for __FILE__ macro" >&5
8979 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8983 cat > conftest.
$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8988 printf("%s\n", __FILE__);
8991 if { (eval echo configure
:8992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8993 samba_cv_HAVE_FILE_MACRO
=yes
8995 echo "configure: failed program was:" >&5
8996 cat conftest.
$ac_ext >&5
8998 samba_cv_HAVE_FILE_MACRO
=no
9003 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9004 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9005 cat >> confdefs.h
<<\EOF
9006 #define HAVE_FILE_MACRO 1
9011 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9012 echo "configure:9013: checking for __FUNCTION__ macro" >&5
9013 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9014 echo $ac_n "(cached) $ac_c" 1>&6
9017 cat > conftest.
$ac_ext <<EOF
9018 #line 9019 "configure"
9019 #include "confdefs.h"
9022 printf("%s\n", __FUNCTION__);
9025 if { (eval echo configure
:9026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9027 samba_cv_HAVE_FUNCTION_MACRO
=yes
9029 echo "configure: failed program was:" >&5
9030 cat conftest.
$ac_ext >&5
9032 samba_cv_HAVE_FUNCTION_MACRO
=no
9037 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9038 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9039 cat >> confdefs.h
<<\EOF
9040 #define HAVE_FUNCTION_MACRO 1
9045 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9046 echo "configure:9047: checking if gettimeofday takes tz argument" >&5
9047 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9051 if test "$cross_compiling" = yes; then
9052 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9054 cat > conftest.
$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9058 #include <sys/time.h>
9060 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9062 if { (eval echo configure
:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9064 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9066 echo "configure: failed program was:" >&5
9067 cat conftest.
$ac_ext >&5
9069 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9076 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9077 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9078 cat >> confdefs.h
<<\EOF
9079 #define HAVE_GETTIMEOFDAY_TZ 1
9084 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9085 echo "configure:9086: checking for C99 vsnprintf" >&5
9086 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9090 if test "$cross_compiling" = yes; then
9091 samba_cv_HAVE_C99_VSNPRINTF
=cross
9093 cat > conftest.
$ac_ext <<EOF
9094 #line 9095 "configure"
9095 #include "confdefs.h"
9097 #include <sys/types.h>
9099 void foo(const char *format, ...) {
9104 va_start(ap, format);
9105 len = vsnprintf(0, 0, format, ap);
9107 if (len != 5) exit(1);
9109 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9113 main() { foo("hello"); }
9116 if { (eval echo configure
:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9118 samba_cv_HAVE_C99_VSNPRINTF
=yes
9120 echo "configure: failed program was:" >&5
9121 cat conftest.
$ac_ext >&5
9123 samba_cv_HAVE_C99_VSNPRINTF
=no
9130 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9131 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9132 cat >> confdefs.h
<<\EOF
9133 #define HAVE_C99_VSNPRINTF 1
9138 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9139 echo "configure:9140: checking for broken readdir" >&5
9140 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9141 echo $ac_n "(cached) $ac_c" 1>&6
9144 if test "$cross_compiling" = yes; then
9145 samba_cv_HAVE_BROKEN_READDIR
=cross
9147 cat > conftest.
$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 #include <sys/types.h>
9152 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9153 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9154 di->d_name[0] == 0) exit(0); exit(1);}
9156 if { (eval echo configure
:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9158 samba_cv_HAVE_BROKEN_READDIR
=yes
9160 echo "configure: failed program was:" >&5
9161 cat conftest.
$ac_ext >&5
9163 samba_cv_HAVE_BROKEN_READDIR
=no
9170 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9171 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9172 cat >> confdefs.h
<<\EOF
9173 #define HAVE_BROKEN_READDIR 1
9178 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9179 echo "configure:9180: checking for utimbuf" >&5
9180 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9184 cat > conftest.
$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9187 #include <sys/types.h>
9190 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9193 if { (eval echo configure
:9194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9195 samba_cv_HAVE_UTIMBUF
=yes
9197 echo "configure: failed program was:" >&5
9198 cat conftest.
$ac_ext >&5
9200 samba_cv_HAVE_UTIMBUF
=no
9205 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9206 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9207 cat >> confdefs.h
<<\EOF
9208 #define HAVE_UTIMBUF 1
9214 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9217 echo "configure:9218: checking for $ac_func" >&5
9218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9221 cat > conftest.
$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 /* System header to define __stub macros and hopefully few prototypes,
9225 which can conflict with char $ac_func(); below. */
9227 /* Override any gcc2 internal prototype to avoid an error. */
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9234 /* The GNU C library defines this for functions which it implements
9235 to always fail with ENOSYS. Some functions are actually named
9236 something starting with __ and the normal name is an alias. */
9237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9245 if { (eval echo configure
:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9247 eval "ac_cv_func_$ac_func=yes"
9249 echo "configure: failed program was:" >&5
9250 cat conftest.
$ac_ext >&5
9252 eval "ac_cv_func_$ac_func=no"
9257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9258 echo "$ac_t""yes" 1>&6
9259 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9260 cat >> confdefs.h
<<EOF
9261 #define $ac_tr_func 1
9265 echo "$ac_t""no" 1>&6
9270 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9271 echo "configure:9272: checking for ut_name in utmp" >&5
9272 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9276 cat > conftest.
$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9279 #include <sys/types.h>
9282 struct utmp ut; ut.ut_name[0] = 'a';
9285 if { (eval echo configure
:9286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9287 samba_cv_HAVE_UT_UT_NAME
=yes
9289 echo "configure: failed program was:" >&5
9290 cat conftest.
$ac_ext >&5
9292 samba_cv_HAVE_UT_UT_NAME
=no
9297 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9298 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9299 cat >> confdefs.h
<<\EOF
9300 #define HAVE_UT_UT_NAME 1
9305 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9306 echo "configure:9307: checking for ut_user in utmp" >&5
9307 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9311 cat > conftest.
$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 #include <sys/types.h>
9317 struct utmp ut; ut.ut_user[0] = 'a';
9320 if { (eval echo configure
:9321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9322 samba_cv_HAVE_UT_UT_USER
=yes
9324 echo "configure: failed program was:" >&5
9325 cat conftest.
$ac_ext >&5
9327 samba_cv_HAVE_UT_UT_USER
=no
9332 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9333 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9334 cat >> confdefs.h
<<\EOF
9335 #define HAVE_UT_UT_USER 1
9340 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9341 echo "configure:9342: checking for ut_id in utmp" >&5
9342 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9346 cat > conftest.
$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 #include <sys/types.h>
9352 struct utmp ut; ut.ut_id[0] = 'a';
9355 if { (eval echo configure
:9356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9357 samba_cv_HAVE_UT_UT_ID
=yes
9359 echo "configure: failed program was:" >&5
9360 cat conftest.
$ac_ext >&5
9362 samba_cv_HAVE_UT_UT_ID
=no
9367 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9368 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9369 cat >> confdefs.h
<<\EOF
9370 #define HAVE_UT_UT_ID 1
9375 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9376 echo "configure:9377: checking for ut_host in utmp" >&5
9377 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9378 echo $ac_n "(cached) $ac_c" 1>&6
9381 cat > conftest.
$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9387 struct utmp ut; ut.ut_host[0] = 'a';
9390 if { (eval echo configure
:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 samba_cv_HAVE_UT_UT_HOST
=yes
9394 echo "configure: failed program was:" >&5
9395 cat conftest.
$ac_ext >&5
9397 samba_cv_HAVE_UT_UT_HOST
=no
9402 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9403 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9404 cat >> confdefs.h
<<\EOF
9405 #define HAVE_UT_UT_HOST 1
9410 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9411 echo "configure:9412: checking for ut_time in utmp" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9416 cat > conftest.
$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 #include <sys/types.h>
9422 struct utmp ut; time_t t; ut.ut_time = t;
9425 if { (eval echo configure
:9426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9427 samba_cv_HAVE_UT_UT_TIME
=yes
9429 echo "configure: failed program was:" >&5
9430 cat conftest.
$ac_ext >&5
9432 samba_cv_HAVE_UT_UT_TIME
=no
9437 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9438 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9439 cat >> confdefs.h
<<\EOF
9440 #define HAVE_UT_UT_TIME 1
9445 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9446 echo "configure:9447: checking for ut_tv in utmp" >&5
9447 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9451 cat > conftest.
$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <sys/types.h>
9457 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9460 if { (eval echo configure
:9461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9462 samba_cv_HAVE_UT_UT_TV
=yes
9464 echo "configure: failed program was:" >&5
9465 cat conftest.
$ac_ext >&5
9467 samba_cv_HAVE_UT_UT_TV
=no
9472 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9473 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9474 cat >> confdefs.h
<<\EOF
9475 #define HAVE_UT_UT_TV 1
9480 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9481 echo "configure:9482: checking for ut_type in utmp" >&5
9482 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9483 echo $ac_n "(cached) $ac_c" 1>&6
9486 cat > conftest.
$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 #include <sys/types.h>
9492 struct utmp ut; ut.ut_type = 0;
9495 if { (eval echo configure
:9496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9497 samba_cv_HAVE_UT_UT_TYPE
=yes
9499 echo "configure: failed program was:" >&5
9500 cat conftest.
$ac_ext >&5
9502 samba_cv_HAVE_UT_UT_TYPE
=no
9507 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9508 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9509 cat >> confdefs.h
<<\EOF
9510 #define HAVE_UT_UT_TYPE 1
9515 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9516 echo "configure:9517: checking for ut_pid in utmp" >&5
9517 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9521 cat > conftest.
$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9524 #include <sys/types.h>
9527 struct utmp ut; ut.ut_pid = 0;
9530 if { (eval echo configure
:9531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9532 samba_cv_HAVE_UT_UT_PID
=yes
9534 echo "configure: failed program was:" >&5
9535 cat conftest.
$ac_ext >&5
9537 samba_cv_HAVE_UT_UT_PID
=no
9542 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9543 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9544 cat >> confdefs.h
<<\EOF
9545 #define HAVE_UT_UT_PID 1
9550 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9551 echo "configure:9552: checking for ut_exit in utmp" >&5
9552 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9556 cat > conftest.
$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 #include <sys/types.h>
9562 struct utmp ut; ut.ut_exit.e_exit = 0;
9565 if { (eval echo configure
:9566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9567 samba_cv_HAVE_UT_UT_EXIT
=yes
9569 echo "configure: failed program was:" >&5
9570 cat conftest.
$ac_ext >&5
9572 samba_cv_HAVE_UT_UT_EXIT
=no
9577 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9578 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9579 cat >> confdefs.h
<<\EOF
9580 #define HAVE_UT_UT_EXIT 1
9585 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9586 echo "configure:9587: checking for ut_addr in utmp" >&5
9587 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9591 cat > conftest.
$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 #include <sys/types.h>
9597 struct utmp ut; ut.ut_addr = 0;
9600 if { (eval echo configure
:9601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9602 samba_cv_HAVE_UT_UT_ADDR
=yes
9604 echo "configure: failed program was:" >&5
9605 cat conftest.
$ac_ext >&5
9607 samba_cv_HAVE_UT_UT_ADDR
=no
9612 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9613 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9614 cat >> confdefs.h
<<\EOF
9615 #define HAVE_UT_UT_ADDR 1
9620 if test x
$ac_cv_func_pututline = xyes
; then
9621 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9622 echo "configure:9623: checking whether pututline returns pointer" >&5
9623 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9627 cat > conftest.
$ac_ext <<EOF
9628 #line 9629 "configure"
9629 #include "confdefs.h"
9630 #include <sys/types.h>
9633 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9636 if { (eval echo configure
:9637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9638 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9640 echo "configure: failed program was:" >&5
9641 cat conftest.
$ac_ext >&5
9643 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9648 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9649 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9650 cat >> confdefs.h
<<\EOF
9651 #define PUTUTLINE_RETURNS_UTMP 1
9657 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9658 echo "configure:9659: checking for ut_syslen in utmpx" >&5
9659 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9663 cat > conftest.
$ac_ext <<EOF
9664 #line 9665 "configure"
9665 #include "confdefs.h"
9666 #include <sys/types.h>
9669 struct utmpx ux; ux.ut_syslen = 0;
9672 if { (eval echo configure
:9673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9674 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9676 echo "configure: failed program was:" >&5
9677 cat conftest.
$ac_ext >&5
9679 samba_cv_HAVE_UX_UT_SYSLEN
=no
9684 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9685 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9686 cat >> confdefs.h
<<\EOF
9687 #define HAVE_UX_UT_SYSLEN 1
9692 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9693 echo "configure:9694: checking for Linux kernel oplocks" >&5
9694 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9695 echo $ac_n "(cached) $ac_c" 1>&6
9698 if test "$cross_compiling" = yes; then
9699 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9701 cat > conftest.
$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9705 #include <sys/types.h>
9708 #define F_GETLEASE 1025
9711 int fd = open("/dev/null", O_RDONLY);
9712 return fcntl(fd, F_GETLEASE, 0) == -1;
9716 if { (eval echo configure
:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9718 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9720 echo "configure: failed program was:" >&5
9721 cat conftest.
$ac_ext >&5
9723 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9730 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9731 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9732 cat >> confdefs.h
<<\EOF
9733 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9738 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9739 echo "configure:9740: checking for kernel change notify support" >&5
9740 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9741 echo $ac_n "(cached) $ac_c" 1>&6
9744 if test "$cross_compiling" = yes; then
9745 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9747 cat > conftest.
$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9751 #include <sys/types.h>
9755 #define F_NOTIFY 1026
9758 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9762 if { (eval echo configure
:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9764 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9766 echo "configure: failed program was:" >&5
9767 cat conftest.
$ac_ext >&5
9769 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9776 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9777 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9778 cat >> confdefs.h
<<\EOF
9779 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9784 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9785 echo "configure:9786: checking for kernel share modes" >&5
9786 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9790 if test "$cross_compiling" = yes; then
9791 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9793 cat > conftest.
$ac_ext <<EOF
9794 #line 9795 "configure"
9795 #include "confdefs.h"
9797 #include <sys/types.h>
9800 #include <sys/file.h>
9802 #define LOCK_MAND 32
9803 #define LOCK_READ 64
9806 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9810 if { (eval echo configure
:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9812 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9814 echo "configure: failed program was:" >&5
9815 cat conftest.
$ac_ext >&5
9817 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9824 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9825 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9826 cat >> confdefs.h
<<\EOF
9827 #define HAVE_KERNEL_SHARE_MODES 1
9835 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9836 echo "configure:9837: checking for IRIX kernel oplock type definitions" >&5
9837 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
9841 cat > conftest.
$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 #include <sys/types.h>
9847 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9850 if { (eval echo configure
:9851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9852 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9854 echo "configure: failed program was:" >&5
9855 cat conftest.
$ac_ext >&5
9857 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9862 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9863 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9864 cat >> confdefs.h
<<\EOF
9865 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9870 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9871 echo "configure:9872: checking for irix specific capabilities" >&5
9872 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9876 if test "$cross_compiling" = yes; then
9877 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9879 cat > conftest.
$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9882 #include <sys/types.h>
9883 #include <sys/capability.h>
9886 if ((cap = cap_get_proc()) == NULL)
9888 cap->cap_effective |= CAP_NETWORK_MGT;
9889 cap->cap_inheritable |= CAP_NETWORK_MGT;
9895 if { (eval echo configure
:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9897 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9899 echo "configure: failed program was:" >&5
9900 cat conftest.
$ac_ext >&5
9902 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9909 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9910 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9911 cat >> confdefs.h
<<\EOF
9912 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9918 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9919 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9922 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9923 echo "configure:9924: checking for int16 typedef included by rpc/rpc.h" >&5
9924 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9928 cat > conftest.
$ac_ext <<EOF
9929 #line 9930 "configure"
9930 #include "confdefs.h"
9931 #include <sys/types.h>
9932 #if defined(HAVE_RPC_RPC_H)
9933 #include <rpc/rpc.h>
9939 if { (eval echo configure
:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9941 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9943 echo "configure: failed program was:" >&5
9944 cat conftest.
$ac_ext >&5
9946 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9951 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9952 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9953 cat >> confdefs.h
<<\EOF
9954 #define HAVE_INT16_FROM_RPC_RPC_H 1
9959 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9960 echo "configure:9961: checking for uint16 typedef included by rpc/rpc.h" >&5
9961 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9965 cat > conftest.
$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 #include <sys/types.h>
9969 #if defined(HAVE_RPC_RPC_H)
9970 #include <rpc/rpc.h>
9976 if { (eval echo configure
:9977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9978 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9980 echo "configure: failed program was:" >&5
9981 cat conftest.
$ac_ext >&5
9983 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9988 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9989 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9990 cat >> confdefs.h
<<\EOF
9991 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9996 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9997 echo "configure:9998: checking for int32 typedef included by rpc/rpc.h" >&5
9998 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10002 cat > conftest.
$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10005 #include <sys/types.h>
10006 #if defined(HAVE_RPC_RPC_H)
10007 #include <rpc/rpc.h>
10013 if { (eval echo configure
:10014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10015 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10017 echo "configure: failed program was:" >&5
10018 cat conftest.
$ac_ext >&5
10020 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10025 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10026 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10027 cat >> confdefs.h
<<\EOF
10028 #define HAVE_INT32_FROM_RPC_RPC_H 1
10033 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10034 echo "configure:10035: checking for uint32 typedef included by rpc/rpc.h" >&5
10035 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10039 cat > conftest.
$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include <sys/types.h>
10043 #if defined(HAVE_RPC_RPC_H)
10044 #include <rpc/rpc.h>
10050 if { (eval echo configure
:10051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10052 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10054 echo "configure: failed program was:" >&5
10055 cat conftest.
$ac_ext >&5
10057 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10062 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10063 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10064 cat >> confdefs.h
<<\EOF
10065 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10071 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10072 echo "configure:10073: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10073 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10077 cat > conftest.
$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <sys/types.h>
10081 #ifdef HAVE_SYS_SECURITY_H
10082 #include <sys/security.h>
10084 #endif /* HAVE_SYS_SECURITY_H */
10085 #if defined(HAVE_RPC_RPC_H)
10086 #include <rpc/rpc.h>
10092 if { (eval echo configure
:10093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10094 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10096 echo "configure: failed program was:" >&5
10097 cat conftest.
$ac_ext >&5
10099 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10104 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10105 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10106 cat >> confdefs.h
<<\EOF
10107 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10112 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10113 echo "configure:10114: checking for test routines" >&5
10114 if test "$cross_compiling" = yes; then
10115 echo "configure: warning: cannot run when cross-compiling" 1>&2
10117 cat > conftest.
$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120 #include "${srcdir-.}/tests/trivial.c"
10122 if { (eval echo configure
:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10124 echo "$ac_t""yes" 1>&6
10126 echo "configure: failed program was:" >&5
10127 cat conftest.
$ac_ext >&5
10129 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10135 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10136 echo "configure:10137: checking for ftruncate extend" >&5
10137 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10138 echo $ac_n "(cached) $ac_c" 1>&6
10141 if test "$cross_compiling" = yes; then
10142 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10144 cat > conftest.
$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 #include "${srcdir-.}/tests/ftruncate.c"
10149 if { (eval echo configure
:10150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10151 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10153 echo "configure: failed program was:" >&5
10154 cat conftest.
$ac_ext >&5
10156 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10163 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10164 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10165 cat >> confdefs.h
<<\EOF
10166 #define HAVE_FTRUNCATE_EXTEND 1
10171 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10172 echo "configure:10173: checking for broken getgroups" >&5
10173 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10177 if test "$cross_compiling" = yes; then
10178 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10180 cat > conftest.
$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include "${srcdir-.}/tests/getgroups.c"
10185 if { (eval echo configure
:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10187 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10189 echo "configure: failed program was:" >&5
10190 cat conftest.
$ac_ext >&5
10192 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10199 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10200 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10201 cat >> confdefs.h
<<\EOF
10202 #define HAVE_BROKEN_GETGROUPS 1
10207 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10208 echo "configure:10209: checking whether getpass should be replaced" >&5
10209 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10213 SAVE_CPPFLAGS
="$CPPFLAGS"
10214 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10215 cat > conftest.
$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10219 #define REPLACE_GETPASS 1
10220 #define NO_CONFIG_H 1
10221 #define main dont_declare_main
10222 #include "${srcdir-.}/lib/getsmbpass.c"
10229 if { (eval echo configure
:10230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10231 samba_cv_REPLACE_GETPASS
=yes
10233 echo "configure: failed program was:" >&5
10234 cat conftest.
$ac_ext >&5
10236 samba_cv_REPLACE_GETPASS
=no
10239 CPPFLAGS
="$SAVE_CPPFLAGS"
10243 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10244 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10245 cat >> confdefs.h
<<\EOF
10246 #define REPLACE_GETPASS 1
10251 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10252 echo "configure:10253: checking for broken inet_ntoa" >&5
10253 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10254 echo $ac_n "(cached) $ac_c" 1>&6
10257 if test "$cross_compiling" = yes; then
10258 samba_cv_REPLACE_INET_NTOA
=cross
10260 cat > conftest.
$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10265 #include <sys/types.h>
10266 #include <netinet/in.h>
10267 #ifdef HAVE_ARPA_INET_H
10268 #include <arpa/inet.h>
10270 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10271 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10272 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10275 if { (eval echo configure
:10276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10277 samba_cv_REPLACE_INET_NTOA
=yes
10279 echo "configure: failed program was:" >&5
10280 cat conftest.
$ac_ext >&5
10282 samba_cv_REPLACE_INET_NTOA
=no
10289 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10290 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10291 cat >> confdefs.h
<<\EOF
10292 #define REPLACE_INET_NTOA 1
10297 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10298 echo "configure:10299: checking for secure mkstemp" >&5
10299 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10300 echo $ac_n "(cached) $ac_c" 1>&6
10303 if test "$cross_compiling" = yes; then
10304 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10306 cat > conftest.
$ac_ext <<EOF
10307 #line 10308 "configure"
10308 #include "confdefs.h"
10309 #include <stdlib.h>
10310 #include <sys/types.h>
10311 #include <sys/stat.h>
10312 #include <unistd.h>
10315 char tpl[20]="/tmp/test.XXXXXX";
10316 int fd = mkstemp(tpl);
10317 if (fd == -1) exit(1);
10319 if (fstat(fd, &st) != 0) exit(1);
10320 if ((st.st_mode & 0777) != 0600) exit(1);
10324 if { (eval echo configure
:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10326 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10328 echo "configure: failed program was:" >&5
10329 cat conftest.
$ac_ext >&5
10331 samba_cv_HAVE_SECURE_MKSTEMP
=no
10338 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10339 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10340 cat >> confdefs.h
<<\EOF
10341 #define HAVE_SECURE_MKSTEMP 1
10346 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10347 echo "configure:10348: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10348 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10352 if test "$cross_compiling" = yes; then
10353 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10355 cat > conftest.
$ac_ext <<EOF
10356 #line 10357 "configure"
10357 #include "confdefs.h"
10358 #include <unistd.h>
10359 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10361 if { (eval echo configure
:10362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10363 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10365 echo "configure: failed program was:" >&5
10366 cat conftest.
$ac_ext >&5
10368 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10375 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10376 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10377 cat >> confdefs.h
<<\EOF
10378 #define SYSCONF_SC_NGROUPS_MAX 1
10383 echo $ac_n "checking for root""... $ac_c" 1>&6
10384 echo "configure:10385: checking for root" >&5
10385 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10389 if test "$cross_compiling" = yes; then
10390 samba_cv_HAVE_ROOT
=cross
10392 cat > conftest.
$ac_ext <<EOF
10393 #line 10394 "configure"
10394 #include "confdefs.h"
10395 main() { exit(getuid() != 0); }
10397 if { (eval echo configure
:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10399 samba_cv_HAVE_ROOT
=yes
10401 echo "configure: failed program was:" >&5
10402 cat conftest.
$ac_ext >&5
10404 samba_cv_HAVE_ROOT
=no
10411 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10412 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10413 cat >> confdefs.h
<<\EOF
10414 #define HAVE_ROOT 1
10418 echo "configure: warning: running as non-root will disable some tests" 1>&2
10422 # look for a method of finding the list of network interfaces
10424 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10425 echo "configure:10426: checking for iface AIX" >&5
10426 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10427 echo $ac_n "(cached) $ac_c" 1>&6
10430 if test "$cross_compiling" = yes; then
10431 samba_cv_HAVE_IFACE_AIX
=cross
10433 cat > conftest.
$ac_ext <<EOF
10434 #line 10435 "configure"
10435 #include "confdefs.h"
10437 #define HAVE_IFACE_AIX 1
10438 #define AUTOCONF_TEST 1
10439 #include "confdefs.h"
10440 #include "${srcdir-.}/lib/interfaces.c"
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 samba_cv_HAVE_IFACE_AIX
=yes
10446 echo "configure: failed program was:" >&5
10447 cat conftest.
$ac_ext >&5
10449 samba_cv_HAVE_IFACE_AIX
=no
10456 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10457 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10458 iface
=yes;cat >> confdefs.h
<<\EOF
10459 #define HAVE_IFACE_AIX 1
10464 if test $iface = no
; then
10465 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10466 echo "configure:10467: checking for iface ifconf" >&5
10467 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10471 if test "$cross_compiling" = yes; then
10472 samba_cv_HAVE_IFACE_IFCONF
=cross
10474 cat > conftest.
$ac_ext <<EOF
10475 #line 10476 "configure"
10476 #include "confdefs.h"
10478 #define HAVE_IFACE_IFCONF 1
10479 #define AUTOCONF_TEST 1
10480 #include "confdefs.h"
10481 #include "${srcdir-.}/lib/interfaces.c"
10483 if { (eval echo configure
:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10485 samba_cv_HAVE_IFACE_IFCONF
=yes
10487 echo "configure: failed program was:" >&5
10488 cat conftest.
$ac_ext >&5
10490 samba_cv_HAVE_IFACE_IFCONF
=no
10497 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10498 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10499 iface
=yes;cat >> confdefs.h
<<\EOF
10500 #define HAVE_IFACE_IFCONF 1
10506 if test $iface = no
; then
10507 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10508 echo "configure:10509: checking for iface ifreq" >&5
10509 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10513 if test "$cross_compiling" = yes; then
10514 samba_cv_HAVE_IFACE_IFREQ
=cross
10516 cat > conftest.
$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10520 #define HAVE_IFACE_IFREQ 1
10521 #define AUTOCONF_TEST 1
10522 #include "confdefs.h"
10523 #include "${srcdir-.}/lib/interfaces.c"
10525 if { (eval echo configure
:10526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10527 samba_cv_HAVE_IFACE_IFREQ
=yes
10529 echo "configure: failed program was:" >&5
10530 cat conftest.
$ac_ext >&5
10532 samba_cv_HAVE_IFACE_IFREQ
=no
10539 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10540 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10541 iface
=yes;cat >> confdefs.h
<<\EOF
10542 #define HAVE_IFACE_IFREQ 1
10549 ################################################
10550 # look for a method of setting the effective uid
10552 if test $seteuid = no
; then
10553 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10554 echo "configure:10555: checking for setresuid" >&5
10555 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10556 echo $ac_n "(cached) $ac_c" 1>&6
10559 if test "$cross_compiling" = yes; then
10560 samba_cv_USE_SETRESUID
=cross
10562 cat > conftest.
$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10566 #define AUTOCONF_TEST 1
10567 #define USE_SETRESUID 1
10568 #include "confdefs.h"
10569 #include "${srcdir-.}/lib/util_sec.c"
10571 if { (eval echo configure
:10572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10573 samba_cv_USE_SETRESUID
=yes
10575 echo "configure: failed program was:" >&5
10576 cat conftest.
$ac_ext >&5
10578 samba_cv_USE_SETRESUID
=no
10585 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10586 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10587 seteuid
=yes;cat >> confdefs.h
<<\EOF
10588 #define USE_SETRESUID 1
10595 if test $seteuid = no
; then
10596 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10597 echo "configure:10598: checking for setreuid" >&5
10598 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10602 if test "$cross_compiling" = yes; then
10603 samba_cv_USE_SETREUID
=cross
10605 cat > conftest.
$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10609 #define AUTOCONF_TEST 1
10610 #define USE_SETREUID 1
10611 #include "confdefs.h"
10612 #include "${srcdir-.}/lib/util_sec.c"
10614 if { (eval echo configure
:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10616 samba_cv_USE_SETREUID
=yes
10618 echo "configure: failed program was:" >&5
10619 cat conftest.
$ac_ext >&5
10621 samba_cv_USE_SETREUID
=no
10628 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10629 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10630 seteuid
=yes;cat >> confdefs.h
<<\EOF
10631 #define USE_SETREUID 1
10637 if test $seteuid = no
; then
10638 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10639 echo "configure:10640: checking for seteuid" >&5
10640 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10644 if test "$cross_compiling" = yes; then
10645 samba_cv_USE_SETEUID
=cross
10647 cat > conftest.
$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10651 #define AUTOCONF_TEST 1
10652 #define USE_SETEUID 1
10653 #include "confdefs.h"
10654 #include "${srcdir-.}/lib/util_sec.c"
10656 if { (eval echo configure
:10657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10658 samba_cv_USE_SETEUID
=yes
10660 echo "configure: failed program was:" >&5
10661 cat conftest.
$ac_ext >&5
10663 samba_cv_USE_SETEUID
=no
10670 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10671 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10672 seteuid
=yes;cat >> confdefs.h
<<\EOF
10673 #define USE_SETEUID 1
10679 if test $seteuid = no
; then
10680 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10681 echo "configure:10682: checking for setuidx" >&5
10682 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10686 if test "$cross_compiling" = yes; then
10687 samba_cv_USE_SETUIDX
=cross
10689 cat > conftest.
$ac_ext <<EOF
10690 #line 10691 "configure"
10691 #include "confdefs.h"
10693 #define AUTOCONF_TEST 1
10694 #define USE_SETUIDX 1
10695 #include "confdefs.h"
10696 #include "${srcdir-.}/lib/util_sec.c"
10698 if { (eval echo configure
:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10700 samba_cv_USE_SETUIDX
=yes
10702 echo "configure: failed program was:" >&5
10703 cat conftest.
$ac_ext >&5
10705 samba_cv_USE_SETUIDX
=no
10712 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10713 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10714 seteuid
=yes;cat >> confdefs.h
<<\EOF
10715 #define USE_SETUIDX 1
10722 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10723 echo "configure:10724: checking for working mmap" >&5
10724 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10728 if test "$cross_compiling" = yes; then
10729 samba_cv_HAVE_MMAP
=cross
10731 cat > conftest.
$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 #include "${srcdir-.}/tests/shared_mmap.c"
10736 if { (eval echo configure
:10737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10738 samba_cv_HAVE_MMAP
=yes
10740 echo "configure: failed program was:" >&5
10741 cat conftest.
$ac_ext >&5
10743 samba_cv_HAVE_MMAP
=no
10750 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10751 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10752 cat >> confdefs.h
<<\EOF
10753 #define HAVE_MMAP 1
10758 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10759 echo "configure:10760: checking for ftruncate needs root" >&5
10760 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10761 echo $ac_n "(cached) $ac_c" 1>&6
10764 if test "$cross_compiling" = yes; then
10765 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10767 cat > conftest.
$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10770 #include "${srcdir-.}/tests/ftruncroot.c"
10772 if { (eval echo configure
:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10774 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10776 echo "configure: failed program was:" >&5
10777 cat conftest.
$ac_ext >&5
10779 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10786 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10787 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10788 cat >> confdefs.h
<<\EOF
10789 #define FTRUNCATE_NEEDS_ROOT 1
10794 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10795 echo "configure:10796: checking for fcntl locking" >&5
10796 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10797 echo $ac_n "(cached) $ac_c" 1>&6
10800 if test "$cross_compiling" = yes; then
10801 samba_cv_HAVE_FCNTL_LOCK
=cross
10803 cat > conftest.
$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10806 #include "${srcdir-.}/tests/fcntl_lock.c"
10808 if { (eval echo configure
:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10810 samba_cv_HAVE_FCNTL_LOCK
=yes
10812 echo "configure: failed program was:" >&5
10813 cat conftest.
$ac_ext >&5
10815 samba_cv_HAVE_FCNTL_LOCK
=no
10822 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10823 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10824 cat >> confdefs.h
<<\EOF
10825 #define HAVE_FCNTL_LOCK 1
10830 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10831 echo "configure:10832: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10832 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10833 echo $ac_n "(cached) $ac_c" 1>&6
10836 if test "$cross_compiling" = yes; then
10837 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10839 cat > conftest.
$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10842 #include "${srcdir-.}/tests/fcntl_lock64.c"
10844 if { (eval echo configure
:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10846 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10848 echo "configure: failed program was:" >&5
10849 cat conftest.
$ac_ext >&5
10851 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10858 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10859 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10860 cat >> confdefs.h
<<\EOF
10861 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10868 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10869 echo "configure:10870: checking for 64 bit fcntl locking" >&5
10870 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10874 if test "$cross_compiling" = yes; then
10875 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10877 cat > conftest.
$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10881 #if defined(HAVE_UNISTD_H)
10882 #include <unistd.h>
10885 #include <stdlib.h>
10887 #ifdef HAVE_FCNTL_H
10891 #ifdef HAVE_SYS_FCNTL_H
10892 #include <sys/fcntl.h>
10894 main() { struct flock64 fl64;
10895 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10902 if { (eval echo configure
:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10904 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10906 echo "configure: failed program was:" >&5
10907 cat conftest.
$ac_ext >&5
10909 samba_cv_HAVE_STRUCT_FLOCK64
=no
10916 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10918 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10919 cat >> confdefs.h
<<\EOF
10920 #define HAVE_STRUCT_FLOCK64 1
10926 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10927 echo "configure:10928: checking for a crypt that needs truncated salt" >&5
10928 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10929 echo $ac_n "(cached) $ac_c" 1>&6
10932 if test "$cross_compiling" = yes; then
10933 samba_cv_HAVE_TRUNCATED_SALT
=cross
10935 cat > conftest.
$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 #include "${srcdir-.}/tests/crypttest.c"
10940 if { (eval echo configure
:10941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10942 samba_cv_HAVE_TRUNCATED_SALT
=no
10944 echo "configure: failed program was:" >&5
10945 cat conftest.
$ac_ext >&5
10947 samba_cv_HAVE_TRUNCATED_SALT
=yes
10954 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10955 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10956 cat >> confdefs.h
<<\EOF
10957 #define HAVE_TRUNCATED_SALT 1
10962 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10963 echo "configure:10964: checking for broken nisplus include files" >&5
10964 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10965 echo $ac_n "(cached) $ac_c" 1>&6
10968 cat > conftest.
$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10971 #include <sys/acl.h>
10972 #if defined(HAVE_RPCSVC_NIS_H)
10973 #include <rpcsvc/nis.h>
10979 if { (eval echo configure
:10980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10981 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10983 echo "configure: failed program was:" >&5
10984 cat conftest.
$ac_ext >&5
10986 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10991 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10992 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10993 cat >> confdefs.h
<<\EOF
10994 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11000 #################################################
11001 # check for smbwrapper support
11002 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11003 echo "configure:11004: checking whether to use smbwrapper" >&5
11004 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11005 if test "${with_smbwrapper+set}" = set; then
11006 withval
="$with_smbwrapper"
11009 echo "$ac_t""yes" 1>&6
11010 cat >> confdefs.h
<<\EOF
11011 #define WITH_SMBWRAPPER 1
11014 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11016 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11019 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11022 # Conditions under which smbwrapper should not be built.
11024 if test x
$PICFLAG = x
; then
11025 echo No support
for PIC code
- disabling smbwrapper and smbsh
11028 elif test x
$ac_cv_func_syscall = xno
; then
11029 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11035 echo "$ac_t""no" 1>&6
11039 echo "$ac_t""no" 1>&6
11044 #################################################
11045 # check for the AFS filesystem
11046 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11047 echo "configure:11048: checking whether to use AFS" >&5
11048 # Check whether --with-afs or --without-afs was given.
11049 if test "${with_afs+set}" = set; then
11050 withval
="$with_afs"
11053 echo "$ac_t""yes" 1>&6
11054 cat >> confdefs.h
<<\EOF
11060 echo "$ac_t""no" 1>&6
11064 echo "$ac_t""no" 1>&6
11070 #################################################
11071 # check for the DFS auth system
11072 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11073 echo "configure:11074: checking whether to use DFS auth" >&5
11074 # Check whether --with-dfs or --without-dfs was given.
11075 if test "${with_dfs+set}" = set; then
11076 withval
="$with_dfs"
11079 echo "$ac_t""yes" 1>&6
11080 cat >> confdefs.h
<<\EOF
11086 echo "$ac_t""no" 1>&6
11090 echo "$ac_t""no" 1>&6
11095 #################################################
11096 # check for Kerberos IV auth system
11097 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11098 echo "configure:11099: checking whether to use Kerberos IV" >&5
11099 # Check whether --with-krb4 or --without-krb4 was given.
11100 if test "${with_krb4+set}" = set; then
11101 withval
="$with_krb4"
11102 echo "$ac_t""yes" 1>&6
11103 cat >> confdefs.h
<<\EOF
11104 #define KRB4_AUTH 1
11107 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11108 echo "configure:11109: checking for dn_expand in -lresolv" >&5
11109 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11111 echo $ac_n "(cached) $ac_c" 1>&6
11113 ac_save_LIBS
="$LIBS"
11114 LIBS
="-lresolv $LIBS"
11115 cat > conftest.
$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11118 /* Override any gcc2 internal prototype to avoid an error. */
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11127 if { (eval echo configure
:11128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11129 eval "ac_cv_lib_$ac_lib_var=yes"
11131 echo "configure: failed program was:" >&5
11132 cat conftest.
$ac_ext >&5
11134 eval "ac_cv_lib_$ac_lib_var=no"
11137 LIBS
="$ac_save_LIBS"
11140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6
11142 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11144 cat >> confdefs.h
<<EOF
11145 #define $ac_tr_lib 1
11148 LIBS
="-lresolv $LIBS"
11151 echo "$ac_t""no" 1>&6
11154 LIBS
="$LIBS -lkrb -ldes"
11155 CFLAGS
="$CFLAGS -I$withval/include"
11156 LDFLAGS
="$LDFLAGS -L$withval/lib"
11158 echo "$ac_t""no" 1>&6
11163 #################################################
11164 # check for Kerberos 5 auth system
11165 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11166 echo "configure:11167: checking whether to use Kerberos 5" >&5
11167 # Check whether --with-krb5 or --without-krb5 was given.
11168 if test "${with_krb5+set}" = set; then
11169 withval
="$with_krb5"
11170 echo "$ac_t""yes" 1>&6
11171 cat >> confdefs.h
<<\EOF
11172 #define KRB5_AUTH 1
11175 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11176 CFLAGS
="$CFLAGS -I$withval/include"
11177 LDFLAGS
="$LDFLAGS -L$withval/lib"
11179 echo "$ac_t""no" 1>&6
11184 #################################################
11185 # check for automount support
11186 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11187 echo "configure:11188: checking whether to use AUTOMOUNT" >&5
11188 # Check whether --with-automount or --without-automount was given.
11189 if test "${with_automount+set}" = set; then
11190 withval
="$with_automount"
11193 echo "$ac_t""yes" 1>&6
11194 cat >> confdefs.h
<<\EOF
11195 #define WITH_AUTOMOUNT 1
11200 echo "$ac_t""no" 1>&6
11204 echo "$ac_t""no" 1>&6
11209 #################################################
11210 # check for smbmount support
11211 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11212 echo "configure:11213: checking whether to use SMBMOUNT" >&5
11213 # Check whether --with-smbmount or --without-smbmount was given.
11214 if test "${with_smbmount+set}" = set; then
11215 withval
="$with_smbmount"
11218 echo "$ac_t""yes" 1>&6
11219 cat >> confdefs.h
<<\EOF
11220 #define WITH_SMBMOUNT 1
11223 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11226 echo "$ac_t""no" 1>&6
11231 echo "$ac_t""no" 1>&6
11238 #################################################
11239 # check for a PAM password database
11240 with_pam_for_crypt
=no
11241 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11242 echo "configure:11243: checking whether to use PAM password database" >&5
11243 # Check whether --with-pam or --without-pam was given.
11244 if test "${with_pam+set}" = set; then
11245 withval
="$with_pam"
11248 echo "$ac_t""yes" 1>&6
11249 cat >> confdefs.h
<<\EOF
11254 with_pam_for_crypt
=yes
11257 echo "$ac_t""no" 1>&6
11261 echo "$ac_t""no" 1>&6
11266 # we can't build a pam module if we don't have pam.
11267 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11268 echo "configure:11269: checking for pam_get_data in -lpam" >&5
11269 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11271 echo $ac_n "(cached) $ac_c" 1>&6
11273 ac_save_LIBS
="$LIBS"
11275 cat > conftest.
$ac_ext <<EOF
11276 #line 11277 "configure"
11277 #include "confdefs.h"
11278 /* Override any gcc2 internal prototype to avoid an error. */
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281 char pam_get_data();
11287 if { (eval echo configure
:11288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11289 eval "ac_cv_lib_$ac_lib_var=yes"
11291 echo "configure: failed program was:" >&5
11292 cat conftest.
$ac_ext >&5
11294 eval "ac_cv_lib_$ac_lib_var=no"
11297 LIBS
="$ac_save_LIBS"
11300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11301 echo "$ac_t""yes" 1>&6
11302 cat >> confdefs.h
<<\EOF
11303 #define HAVE_LIBPAM 1
11307 echo "$ac_t""no" 1>&6
11311 #################################################
11312 # check for pam_smbpass support
11313 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11314 echo "configure:11315: checking whether to use pam_smbpass" >&5
11315 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11316 if test "${with_pam_smbpass+set}" = set; then
11317 withval
="$with_pam_smbpass"
11320 echo "$ac_t""yes" 1>&6
11322 # Conditions under which pam_smbpass should not be built.
11324 if test x
$PICFLAG = x
; then
11325 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11327 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11328 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11331 cat >> confdefs.h
<<\EOF
11332 #define WITH_PAM_SMBPASS 1
11335 PAM_MOD
="bin/pam_smbpass.so"
11339 echo "$ac_t""no" 1>&6
11343 echo "$ac_t""no" 1>&6
11349 ###############################################
11350 # test for where we get crypt() from, but only
11352 if test $with_pam_for_crypt = no
; then
11353 for ac_func
in crypt
11355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11356 echo "configure:11357: checking for $ac_func" >&5
11357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11358 echo $ac_n "(cached) $ac_c" 1>&6
11360 cat > conftest.
$ac_ext <<EOF
11361 #line 11362 "configure"
11362 #include "confdefs.h"
11363 /* System header to define __stub macros and hopefully few prototypes,
11364 which can conflict with char $ac_func(); below. */
11365 #include <assert.h>
11366 /* Override any gcc2 internal prototype to avoid an error. */
11367 /* We use char because int might match the return type of a gcc2
11368 builtin and then its argument prototype would still apply. */
11373 /* The GNU C library defines this for functions which it implements
11374 to always fail with ENOSYS. Some functions are actually named
11375 something starting with __ and the normal name is an alias. */
11376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11384 if { (eval echo configure
:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11386 eval "ac_cv_func_$ac_func=yes"
11388 echo "configure: failed program was:" >&5
11389 cat conftest.
$ac_ext >&5
11391 eval "ac_cv_func_$ac_func=no"
11396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11397 echo "$ac_t""yes" 1>&6
11398 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11399 cat >> confdefs.h
<<EOF
11400 #define $ac_tr_func 1
11404 echo "$ac_t""no" 1>&6
11408 if test x
"$ac_cv_func_crypt" = x
"no"; then
11409 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11410 echo "configure:11411: checking for crypt in -lcrypt" >&5
11411 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11413 echo $ac_n "(cached) $ac_c" 1>&6
11415 ac_save_LIBS
="$LIBS"
11416 LIBS
="-lcrypt $LIBS"
11417 cat > conftest.
$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11420 /* Override any gcc2 internal prototype to avoid an error. */
11421 /* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11429 if { (eval echo configure
:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11431 eval "ac_cv_lib_$ac_lib_var=yes"
11433 echo "configure: failed program was:" >&5
11434 cat conftest.
$ac_ext >&5
11436 eval "ac_cv_lib_$ac_lib_var=no"
11439 LIBS
="$ac_save_LIBS"
11442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11443 echo "$ac_t""yes" 1>&6
11444 LIBS
="$LIBS -lcrypt";
11445 cat >> confdefs.h
<<\EOF
11446 #define HAVE_CRYPT 1
11450 echo "$ac_t""no" 1>&6
11457 #################################################
11458 # removed until we get the code actually working
11460 # check for a TDB password database
11461 # AC_MSG_CHECKING(whether to use TDB password database)
11462 #AC_ARG_WITH(tdbpwd,
11463 #[ --with-tdbpwd Include TDB password database
11464 # --without-tdbpwd Don't include TDB password database (default)],
11465 #[ case "$withval" in
11467 # AC_MSG_RESULT(yes)
11468 # AC_DEFINE(WITH_TDBPWD)
11469 # AC_MSG_ERROR([TDB password database not supported in this version.])
11472 # AC_MSG_RESULT(no)
11475 # AC_MSG_RESULT(no)
11478 #################################################
11479 # removed until we get the code actually working
11482 # check for a LDAP password database
11483 #AC_MSG_CHECKING(whether to use LDAP password database)
11485 #[ --with-ldap Include LDAP support
11486 # --without-ldap Don't include LDAP support (default)],
11487 #[ case "$withval" in
11489 # AC_MSG_RESULT(yes)
11490 # AC_DEFINE(WITH_LDAP)
11491 # AC_MSG_ERROR([LDAP password database not supported in this version.])
11494 # AC_MSG_RESULT(no)
11497 # AC_MSG_RESULT(no)
11500 #################################################
11501 # check for a NISPLUS password database
11502 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11503 echo "configure:11504: checking whether to use NISPLUS password database" >&5
11504 # Check whether --with-nisplus or --without-nisplus was given.
11505 if test "${with_nisplus+set}" = set; then
11506 withval
="$with_nisplus"
11509 echo "$ac_t""yes" 1>&6
11510 cat >> confdefs.h
<<\EOF
11511 #define WITH_NISPLUS 1
11516 echo "$ac_t""no" 1>&6
11520 echo "$ac_t""no" 1>&6
11525 #################################################
11526 # check for a NISPLUS_HOME support
11527 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11528 echo "configure:11529: checking whether to use NISPLUS_HOME" >&5
11529 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11530 if test "${with_nisplus_home+set}" = set; then
11531 withval
="$with_nisplus_home"
11534 echo "$ac_t""yes" 1>&6
11535 cat >> confdefs.h
<<\EOF
11536 #define WITH_NISPLUS_HOME 1
11541 echo "$ac_t""no" 1>&6
11545 echo "$ac_t""no" 1>&6
11550 #################################################
11551 # check for the secure socket layer
11552 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11553 echo "configure:11554: checking whether to use SSL" >&5
11554 # Check whether --with-ssl or --without-ssl was given.
11555 if test "${with_ssl+set}" = set; then
11556 withval
="$with_ssl"
11559 echo "$ac_t""yes" 1>&6
11560 cat >> confdefs.h
<<\EOF
11564 withval
="/usr/local/ssl" # default
11566 if test "${with_sslinc+set}" = set; then
11568 withval
="$with_sslinc"
11571 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11572 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11573 LIBS
="-lssl -lcrypto $LIBS"
11574 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11577 CFLAGS
="-I${withval}/include $CFLAGS"
11578 LIBS
="-lssl -lcrypto $LIBS"
11579 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11585 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11586 LIBS
="-lssl -lcrypto $LIBS"
11587 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11591 if test ! -d ${withval}; then
11592 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11596 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11600 echo "$ac_t""no" 1>&6
11604 echo "$ac_t""no" 1>&6
11609 #################################################
11610 # check for syslog logging
11611 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11612 echo "configure:11613: checking whether to use syslog logging" >&5
11613 # Check whether --with-syslog or --without-syslog was given.
11614 if test "${with_syslog+set}" = set; then
11615 withval
="$with_syslog"
11618 echo "$ac_t""yes" 1>&6
11619 cat >> confdefs.h
<<\EOF
11620 #define WITH_SYSLOG 1
11625 echo "$ac_t""no" 1>&6
11629 echo "$ac_t""no" 1>&6
11634 #################################################
11635 # check for a shared memory profiling support
11636 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11637 echo "configure:11638: checking whether to use profiling" >&5
11638 # Check whether --with-profile or --without-profile was given.
11639 if test "${with_profile+set}" = set; then
11640 withval
="$with_profile"
11643 echo "$ac_t""yes" 1>&6
11644 cat >> confdefs.h
<<\EOF
11645 #define WITH_PROFILE 1
11650 echo "$ac_t""no" 1>&6
11654 echo "$ac_t""no" 1>&6
11660 #################################################
11661 # check for experimental netatalk resource fork support
11662 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11663 echo "configure:11664: checking whether to support netatalk" >&5
11664 # Check whether --with-netatalk or --without-netatalk was given.
11665 if test "${with_netatalk+set}" = set; then
11666 withval
="$with_netatalk"
11669 echo "$ac_t""yes" 1>&6
11670 cat >> confdefs.h
<<\EOF
11671 #define WITH_NETATALK 1
11676 echo "$ac_t""no" 1>&6
11680 echo "$ac_t""no" 1>&6
11685 #################################################
11686 # check for experimental disk-quotas support
11687 QUOTAOBJS
=smbd
/noquotas.o
11689 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11690 echo "configure:11691: checking whether to support disk-quotas" >&5
11691 # Check whether --with-quotas or --without-quotas was given.
11692 if test "${with_quotas+set}" = set; then
11693 withval
="$with_quotas"
11696 echo "$ac_t""yes" 1>&6
11697 QUOTAOBJS
=smbd
/quotas.o
11700 echo "$ac_t""no" 1>&6
11704 echo "$ac_t""no" 1>&6
11710 #################################################
11711 # check for experimental utmp accounting
11713 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11714 echo "configure:11715: checking whether to support utmp accounting" >&5
11715 # Check whether --with-utmp or --without-utmp was given.
11716 if test "${with_utmp+set}" = set; then
11717 withval
="$with_utmp"
11720 echo "$ac_t""yes" 1>&6
11721 cat >> confdefs.h
<<\EOF
11722 #define WITH_UTMP 1
11727 echo "$ac_t""no" 1>&6
11731 echo "$ac_t""no" 1>&6
11736 #################################################
11737 # check for MS Dfs support
11739 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11740 echo "configure:11741: checking whether to support Microsoft Dfs" >&5
11741 # Check whether --with-msdfs or --without-msdfs was given.
11742 if test "${with_msdfs+set}" = set; then
11743 withval
="$with_msdfs"
11746 echo "$ac_t""yes" 1>&6
11747 cat >> confdefs.h
<<\EOF
11748 #define WITH_MSDFS 1
11753 echo "$ac_t""no" 1>&6
11757 echo "$ac_t""no" 1>&6
11762 #################################################
11763 # check for Samba VFS support
11765 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11766 echo "configure:11767: checking whether to support the experimantal Samba vfs" >&5
11767 # Check whether --with-vfs or --without-vfs was given.
11768 if test "${with_vfs+set}" = set; then
11769 withval
="$with_vfs"
11772 echo "$ac_t""yes" 1>&6
11773 cat >> confdefs.h
<<\EOF
11779 echo "$ac_t""no" 1>&6
11783 echo "$ac_t""no" 1>&6
11788 #################################################
11789 # these tests are taken from the GNU fileutils package
11790 echo "checking how to get filesystem space usage" 1>&6
11791 echo "configure:11792: checking how to get filesystem space usage" >&5
11794 # Test for statvfs64.
11795 if test $space = no
; then
11797 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11798 echo "configure:11799: checking statvfs64 function (SVR4)" >&5
11799 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11802 if test "$cross_compiling" = yes; then
11803 fu_cv_sys_stat_statvfs64
=cross
11805 cat > conftest.
$ac_ext <<EOF
11806 #line 11807 "configure"
11807 #include "confdefs.h"
11809 #if defined(HAVE_UNISTD_H)
11810 #include <unistd.h>
11812 #include <sys/types.h>
11813 #include <sys/statvfs.h>
11816 struct statvfs64 fsd;
11817 exit (statvfs64 (".", &fsd));
11820 if { (eval echo configure
:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11822 fu_cv_sys_stat_statvfs64
=yes
11824 echo "configure: failed program was:" >&5
11825 cat conftest.
$ac_ext >&5
11827 fu_cv_sys_stat_statvfs64
=no
11834 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11835 if test $fu_cv_sys_stat_statvfs64 = yes; then
11837 cat >> confdefs.h
<<\EOF
11838 #define STAT_STATVFS64 1
11844 # Perform only the link test since it seems there are no variants of the
11845 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11846 # because that got a false positive on SCO OSR5. Adding the declaration
11847 # of a `struct statvfs' causes this test to fail (as it should) on such
11848 # systems. That system is reported to work fine with STAT_STATFS4 which
11849 # is what it gets when this test fails.
11850 if test $space = no
; then
11852 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11853 echo "configure:11854: checking statvfs function (SVR4)" >&5
11854 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11855 echo $ac_n "(cached) $ac_c" 1>&6
11857 cat > conftest.
$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 #include <sys/types.h>
11861 #include <sys/statvfs.h>
11863 struct statvfs fsd; statvfs (0, &fsd);
11866 if { (eval echo configure
:11867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11868 fu_cv_sys_stat_statvfs
=yes
11870 echo "configure: failed program was:" >&5
11871 cat conftest.
$ac_ext >&5
11873 fu_cv_sys_stat_statvfs
=no
11878 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11879 if test $fu_cv_sys_stat_statvfs = yes; then
11881 cat >> confdefs.h
<<\EOF
11882 #define STAT_STATVFS 1
11888 if test $space = no
; then
11889 # DEC Alpha running OSF/1
11890 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11891 echo "configure:11892: checking for 3-argument statfs function (DEC OSF/1)" >&5
11892 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11895 if test "$cross_compiling" = yes; then
11896 fu_cv_sys_stat_statfs3_osf1
=no
11898 cat > conftest.
$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11902 #include <sys/param.h>
11903 #include <sys/types.h>
11904 #include <sys/mount.h>
11909 exit (statfs (".", &fsd, sizeof (struct statfs)));
11912 if { (eval echo configure
:11913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11914 fu_cv_sys_stat_statfs3_osf1
=yes
11916 echo "configure: failed program was:" >&5
11917 cat conftest.
$ac_ext >&5
11919 fu_cv_sys_stat_statfs3_osf1
=no
11926 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11927 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11929 cat >> confdefs.h
<<\EOF
11930 #define STAT_STATFS3_OSF1 1
11936 if test $space = no
; then
11938 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11939 echo "configure:11940: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11940 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11941 echo $ac_n "(cached) $ac_c" 1>&6
11943 if test "$cross_compiling" = yes; then
11944 fu_cv_sys_stat_statfs2_bsize
=no
11946 cat > conftest.
$ac_ext <<EOF
11947 #line 11948 "configure"
11948 #include "confdefs.h"
11950 #ifdef HAVE_SYS_PARAM_H
11951 #include <sys/param.h>
11953 #ifdef HAVE_SYS_MOUNT_H
11954 #include <sys/mount.h>
11956 #ifdef HAVE_SYS_VFS_H
11957 #include <sys/vfs.h>
11963 exit (statfs (".", &fsd));
11966 if { (eval echo configure
:11967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11968 fu_cv_sys_stat_statfs2_bsize
=yes
11970 echo "configure: failed program was:" >&5
11971 cat conftest.
$ac_ext >&5
11973 fu_cv_sys_stat_statfs2_bsize
=no
11980 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11981 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11983 cat >> confdefs.h
<<\EOF
11984 #define STAT_STATFS2_BSIZE 1
11990 if test $space = no
; then
11992 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11993 echo "configure:11994: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11994 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11997 if test "$cross_compiling" = yes; then
11998 fu_cv_sys_stat_statfs4
=no
12000 cat > conftest.
$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12003 #include <sys/types.h>
12004 #include <sys/statfs.h>
12008 exit (statfs (".", &fsd, sizeof fsd, 0));
12011 if { (eval echo configure
:12012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12013 fu_cv_sys_stat_statfs4
=yes
12015 echo "configure: failed program was:" >&5
12016 cat conftest.
$ac_ext >&5
12018 fu_cv_sys_stat_statfs4
=no
12025 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12026 if test $fu_cv_sys_stat_statfs4 = yes; then
12028 cat >> confdefs.h
<<\EOF
12029 #define STAT_STATFS4 1
12035 if test $space = no
; then
12036 # 4.4BSD and NetBSD
12037 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12038 echo "configure:12039: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12039 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12040 echo $ac_n "(cached) $ac_c" 1>&6
12042 if test "$cross_compiling" = yes; then
12043 fu_cv_sys_stat_statfs2_fsize
=no
12045 cat > conftest.
$ac_ext <<EOF
12046 #line 12047 "configure"
12047 #include "confdefs.h"
12048 #include <sys/types.h>
12049 #ifdef HAVE_SYS_PARAM_H
12050 #include <sys/param.h>
12052 #ifdef HAVE_SYS_MOUNT_H
12053 #include <sys/mount.h>
12059 exit (statfs (".", &fsd));
12062 if { (eval echo configure
:12063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12064 fu_cv_sys_stat_statfs2_fsize
=yes
12066 echo "configure: failed program was:" >&5
12067 cat conftest.
$ac_ext >&5
12069 fu_cv_sys_stat_statfs2_fsize
=no
12076 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12077 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12079 cat >> confdefs.h
<<\EOF
12080 #define STAT_STATFS2_FSIZE 1
12086 if test $space = no
; then
12088 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12089 echo "configure:12090: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12090 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12091 echo $ac_n "(cached) $ac_c" 1>&6
12093 if test "$cross_compiling" = yes; then
12094 fu_cv_sys_stat_fs_data
=no
12096 cat > conftest.
$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12099 #include <sys/types.h>
12100 #ifdef HAVE_SYS_PARAM_H
12101 #include <sys/param.h>
12103 #ifdef HAVE_SYS_MOUNT_H
12104 #include <sys/mount.h>
12106 #ifdef HAVE_SYS_FS_TYPES_H
12107 #include <sys/fs_types.h>
12111 struct fs_data fsd;
12112 /* Ultrix's statfs returns 1 for success,
12113 0 for not mounted, -1 for failure. */
12114 exit (statfs (".", &fsd) != 1);
12117 if { (eval echo configure
:12118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12119 fu_cv_sys_stat_fs_data
=yes
12121 echo "configure: failed program was:" >&5
12122 cat conftest.
$ac_ext >&5
12124 fu_cv_sys_stat_fs_data
=no
12131 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12132 if test $fu_cv_sys_stat_fs_data = yes; then
12134 cat >> confdefs.h
<<\EOF
12135 #define STAT_STATFS2_FS_DATA 1
12142 # As a gating factor for large file support, in order to
12143 # use <4GB files we must have the following minimal support
12145 # long long, and a 64 bit off_t or off64_t.
12146 # If we don't have all of these then disable large
12149 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12150 echo "configure:12151: checking checking if large file support can be enabled" >&5
12151 cat > conftest.
$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12155 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12156 #include <sys/types.h>
12165 if { (eval echo configure
:12166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12167 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12169 echo "configure: failed program was:" >&5
12170 cat conftest.
$ac_ext >&5
12172 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12175 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12176 echo "$ac_t""yes" 1>&6
12177 cat >> confdefs.h
<<\EOF
12178 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12182 echo "$ac_t""no" 1>&6
12185 # Check whether --with-spinlocks or --without-spinlocks was given.
12186 if test "${with_spinlocks+set}" = set; then
12187 withval
="$with_spinlocks"
12191 if test "x$with_spinlocks" = "xyes"; then
12192 cat >> confdefs.h
<<\EOF
12193 #define USE_SPINLOCKS 1
12197 case "$host_cpu" in
12199 cat >> confdefs.h
<<\EOF
12200 #define SPARC_SPINLOCKS 1
12205 i386|i486|i586|i686
)
12206 cat >> confdefs.h
<<\EOF
12207 #define INTEL_SPINLOCKS 1
12213 cat >> confdefs.h
<<\EOF
12214 #define MIPS_SPINLOCKS 1
12220 cat >> confdefs.h
<<\EOF
12221 #define POWERPC_SPINLOCKS 1
12228 #################################################
12229 # check for ACL support
12231 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12232 echo "configure:12233: checking whether to support ACLs" >&5
12233 # Check whether --with-acl-support or --without-acl-support was given.
12234 if test "${with_acl_support+set}" = set; then
12235 withval
="$with_acl_support"
12241 echo "$ac_t""Using UnixWare ACLs" 1>&6
12242 cat >> confdefs.h
<<\EOF
12243 #define HAVE_UNIXWARE_ACLS 1
12248 echo "$ac_t""Using solaris ACLs" 1>&6
12249 cat >> confdefs.h
<<\EOF
12250 #define HAVE_SOLARIS_ACLS 1
12255 echo "$ac_t""Using IRIX ACLs" 1>&6
12256 cat >> confdefs.h
<<\EOF
12257 #define HAVE_IRIX_ACLS 1
12262 echo "$ac_t""Using AIX ACLs" 1>&6
12263 cat >> confdefs.h
<<\EOF
12264 #define HAVE_AIX_ACLS 1
12269 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12270 echo "configure:12271: checking for acl_get_file in -lacl" >&5
12271 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12273 echo $ac_n "(cached) $ac_c" 1>&6
12275 ac_save_LIBS
="$LIBS"
12277 cat > conftest.
$ac_ext <<EOF
12278 #line 12279 "configure"
12279 #include "confdefs.h"
12280 /* Override any gcc2 internal prototype to avoid an error. */
12281 /* We use char because int might match the return type of a gcc2
12282 builtin and then its argument prototype would still apply. */
12283 char acl_get_file();
12289 if { (eval echo configure
:12290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12291 eval "ac_cv_lib_$ac_lib_var=yes"
12293 echo "configure: failed program was:" >&5
12294 cat conftest.
$ac_ext >&5
12296 eval "ac_cv_lib_$ac_lib_var=no"
12299 LIBS
="$ac_save_LIBS"
12302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12303 echo "$ac_t""yes" 1>&6
12304 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12306 cat >> confdefs.h
<<EOF
12307 #define $ac_tr_lib 1
12313 echo "$ac_t""no" 1>&6
12316 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12317 echo "configure:12318: checking for ACL support" >&5
12318 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12319 echo $ac_n "(cached) $ac_c" 1>&6
12322 cat > conftest.
$ac_ext <<EOF
12323 #line 12324 "configure"
12324 #include "confdefs.h"
12325 #include <sys/types.h>
12326 #include <sys/acl.h>
12328 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12331 if { (eval echo configure
:12332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12333 samba_cv_HAVE_POSIX_ACLS
=yes
12335 echo "configure: failed program was:" >&5
12336 cat conftest.
$ac_ext >&5
12338 samba_cv_HAVE_POSIX_ACLS
=no
12343 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12344 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12345 echo "$ac_t""Using posix ACLs" 1>&6
12346 cat >> confdefs.h
<<\EOF
12347 #define HAVE_POSIX_ACLS 1
12350 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12351 echo "configure:12352: checking for acl_get_perm_np" >&5
12352 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12356 cat > conftest.
$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 #include <sys/types.h>
12360 #include <sys/acl.h>
12362 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12365 if { (eval echo configure
:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12367 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12369 echo "configure: failed program was:" >&5
12370 cat conftest.
$ac_ext >&5
12372 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12377 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12378 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12379 cat >> confdefs.h
<<\EOF
12380 #define HAVE_ACL_GET_PERM_NP 1
12385 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12386 echo "configure:12387: checking for XFS ACL support" >&5
12387 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12388 echo $ac_n "(cached) $ac_c" 1>&6
12391 cat > conftest.
$ac_ext <<EOF
12392 #line 12393 "configure"
12393 #include "confdefs.h"
12394 #include <sys/types.h>
12395 #include <acl/acl.h>
12397 char test_str[13] = SGI_ACL_FILE;
12400 if { (eval echo configure
:12401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12402 samba_cv_HAVE_XFS_ACLS
=yes
12404 echo "configure: failed program was:" >&5
12405 cat conftest.
$ac_ext >&5
12407 samba_cv_XFS_POSIX_ACLS
=no
12412 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12413 if test x
"$samba_cv_HAVE_XFS_ACLS" = x
"yes"; then
12414 echo "$ac_t""Using XFS ACLs" 1>&6
12415 cat >> confdefs.h
<<\EOF
12416 #define HAVE_XFS_ACLS 1
12424 echo "$ac_t""no" 1>&6
12425 cat >> confdefs.h
<<\EOF
12426 #define HAVE_NO_ACLS 1
12432 cat >> confdefs.h
<<\EOF
12433 #define HAVE_NO_ACLS 1
12436 echo "$ac_t""no" 1>&6
12441 #################################################
12442 # check for the historical SAMBA installation
12444 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
12445 # Put all binaries under the /usr/local/samba/bin directory.
12449 echo "checking configure summary"
12450 if test "$cross_compiling" = yes; then
12453 cat > conftest.
$ac_ext <<EOF
12454 #line 12455 "configure"
12455 #include "confdefs.h"
12456 #include "${srcdir-.}/tests/summary.c"
12458 if { (eval echo configure
:12459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12460 echo "configure OK";
12462 echo "configure: failed program was:" >&5
12463 cat conftest.
$ac_ext >&5
12465 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12475 cat > confcache
<<\EOF
12476 # This file is a shell script that caches the results of configure
12477 # tests run on this system so they can be shared between configure
12478 # scripts and configure runs. It is not useful on other systems.
12479 # If it contains results you don't want to keep, you may remove or edit it.
12481 # By default, configure uses ./config.cache as the cache file,
12482 # creating it if it does not exist already. You can give configure
12483 # the --cache-file=FILE option to use a different cache file; that is
12484 # what configure does when it calls configure scripts in
12485 # subdirectories, so they share the cache.
12486 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12487 # config.status only pays attention to the cache file if you give it the
12488 # --recheck option to rerun configure.
12491 # The following way of writing the cache mishandles newlines in values,
12492 # but we know of no workaround that is simple, portable, and efficient.
12493 # So, don't put newlines in cache variables' values.
12494 # Ultrix sh set writes to stderr and can't be redirected directly,
12495 # and sets the high bit in the cache file unless we assign to the vars.
12497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12499 # `set' does not quote correctly, so add quotes (double-quote substitution
12500 # turns \\\\ into \\, and sed turns \\ into \).
12502 -e "s/'/'\\\\''/g" \
12503 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12506 # `set' quotes correctly as required by POSIX, so do not add quotes.
12507 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12510 if cmp -s $cache_file confcache
; then
12513 if test -w $cache_file; then
12514 echo "updating cache $cache_file"
12515 cat confcache
> $cache_file
12517 echo "not updating unwritable cache $cache_file"
12522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12524 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12525 # Let make expand exec_prefix.
12526 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12528 # Any assignment to VPATH causes Sun make to only execute
12529 # the first set of double-colon rules, so remove it if not needed.
12530 # If there is a colon in the path, we need to keep it.
12531 if test "x$srcdir" = x.
; then
12532 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12535 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12537 DEFS
=-DHAVE_CONFIG_H
12539 # Without the "./", some shells look in PATH for config.status.
12540 : ${CONFIG_STATUS=./config.status}
12542 echo creating
$CONFIG_STATUS
12543 rm -f $CONFIG_STATUS
12544 cat > $CONFIG_STATUS <<EOF
12546 # Generated automatically by configure.
12547 # Run this file to recreate the current configuration.
12548 # This directory was configured as follows,
12549 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12551 # $0 $ac_configure_args
12553 # Compiler output produced by configure, useful for debugging
12554 # configure, is in ./config.log if it exists.
12556 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12559 case "\$ac_option" in
12560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12561 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12562 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12563 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12564 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12566 -help | --help | --hel | --he | --h)
12567 echo "\$ac_cs_usage"; exit 0 ;;
12568 *) echo "\$ac_cs_usage"; exit 1 ;;
12572 ac_given_srcdir=$srcdir
12573 ac_given_INSTALL="$INSTALL"
12575 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12577 cat >> $CONFIG_STATUS <<EOF
12579 # Protect against being on the right side of a sed subst in config.status.
12580 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12581 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12585 s%@CFLAGS@%$CFLAGS%g
12586 s%@CPPFLAGS@%$CPPFLAGS%g
12587 s%@CXXFLAGS@%$CXXFLAGS%g
12588 s%@FFLAGS@%$FFLAGS%g
12590 s%@LDFLAGS@%$LDFLAGS%g
12592 s%@exec_prefix@%$exec_prefix%g
12593 s%@prefix@%$prefix%g
12594 s%@program_transform_name@%$program_transform_name%g
12595 s%@bindir@%$bindir%g
12596 s%@sbindir@%$sbindir%g
12597 s%@libexecdir@%$libexecdir%g
12598 s%@datadir@%$datadir%g
12599 s%@sysconfdir@%$sysconfdir%g
12600 s%@sharedstatedir@%$sharedstatedir%g
12601 s%@localstatedir@%$localstatedir%g
12602 s%@libdir@%$libdir%g
12603 s%@includedir@%$includedir%g
12604 s%@oldincludedir@%$oldincludedir%g
12605 s%@infodir@%$infodir%g
12606 s%@mandir@%$mandir%g
12607 s%@codepagedir@%$codepagedir%g
12608 s%@configdir@%$configdir%g
12609 s%@lockdir@%$lockdir%g
12610 s%@logfilebase@%$logfilebase%g
12611 s%@privatedir@%$privatedir%g
12612 s%@swatdir@%$swatdir%g
12613 s%@RUNPROG@%$RUNPROG%g
12614 s%@MPROGS@%$MPROGS%g
12615 s%@LDSHFLAGS@%$LDSHFLAGS%g
12616 s%@HOST_OS@%$HOST_OS%g
12617 s%@PAM_MOD@%$PAM_MOD%g
12619 s%@WRAP32@%$WRAP32%g
12620 s%@PICFLAG@%$PICFLAG%g
12621 s%@SHLIBEXT@%$SHLIBEXT%g
12623 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12624 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12625 s%@INSTALL_DATA@%$INSTALL_DATA%g
12628 s%@host_alias@%$host_alias%g
12629 s%@host_cpu@%$host_cpu%g
12630 s%@host_vendor@%$host_vendor%g
12631 s%@host_os@%$host_os%g
12633 s%@build_alias@%$build_alias%g
12634 s%@build_cpu@%$build_cpu%g
12635 s%@build_vendor@%$build_vendor%g
12636 s%@build_os@%$build_os%g
12637 s%@RANLIB@%$RANLIB%g
12639 s%@LIBTOOL@%$LIBTOOL%g
12640 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12641 s%@BROKEN_CC@%$BROKEN_CC%g
12642 s%@target@%$target%g
12643 s%@target_alias@%$target_alias%g
12644 s%@target_cpu@%$target_cpu%g
12645 s%@target_vendor@%$target_vendor%g
12646 s%@target_os@%$target_os%g
12648 s%@LIBOBJS@%$LIBOBJS%g
12649 s%@TERMLIBS@%$TERMLIBS%g
12650 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12652 s%@QUOTAOBJS@%$QUOTAOBJS%g
12653 s%@builddir@%$builddir%g
12658 cat >> $CONFIG_STATUS <<\EOF
12660 # Split the substitutions into bite-sized pieces for seds with
12661 # small command number limits, like on Digital OSF/1 and HP-UX.
12662 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12663 ac_file
=1 # Number of current file.
12664 ac_beg
=1 # First line for current file.
12665 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12668 while $ac_more_lines; do
12669 if test $ac_beg -gt 1; then
12670 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12672 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12674 if test ! -s conftest.s
$ac_file; then
12675 ac_more_lines
=false
12676 rm -f conftest.s
$ac_file
12678 if test -z "$ac_sed_cmds"; then
12679 ac_sed_cmds
="sed -f conftest.s$ac_file"
12681 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12683 ac_file
=`expr $ac_file + 1`
12685 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12688 if test -z "$ac_sed_cmds"; then
12693 cat >> $CONFIG_STATUS <<EOF
12695 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12697 cat >> $CONFIG_STATUS <<\EOF
12698 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12699 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12701 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12702 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12703 *) ac_file_in
="${ac_file}.in" ;;
12706 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12708 # Remove last slash and all that follows it. Not all systems have dirname.
12709 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12710 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12711 # The file is in a subdirectory.
12712 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12713 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12714 # A "../" for each directory in $ac_dir_suffix.
12715 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12717 ac_dir_suffix
= ac_dots
=
12720 case "$ac_given_srcdir" in
12722 if test -z "$ac_dots"; then top_srcdir
=.
12723 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12724 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12725 *) # Relative path.
12726 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12727 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12730 case "$ac_given_INSTALL" in
12731 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12732 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12735 echo creating
"$ac_file"
12737 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12739 *Makefile
*) ac_comsub
="1i\\
12740 # $configure_input" ;;
12744 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12746 s%@configure_input@%$configure_input%g
12747 s%@srcdir@%$srcdir%g
12748 s%@top_srcdir@%$top_srcdir%g
12749 s%@INSTALL@%$INSTALL%g
12750 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12757 # ac_d sets the value in "#define NAME VALUE" lines.
12758 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12759 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12762 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12763 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12764 ac_uB
='\([ ]\)%\1#\2define\3'
12767 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12768 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12769 ac_eB
='$%\1#\2define\3'
12773 if test "${CONFIG_HEADERS+set}" != set; then
12775 cat >> $CONFIG_STATUS <<EOF
12776 CONFIG_HEADERS="include/config.h"
12778 cat >> $CONFIG_STATUS <<\EOF
12780 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12781 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12783 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12784 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12785 *) ac_file_in
="${ac_file}.in" ;;
12788 echo creating
$ac_file
12790 rm -f conftest.frag conftest.
in conftest.out
12791 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12792 cat $ac_file_inputs > conftest.
in
12796 # Transform confdefs.h into a sed script conftest.vals that substitutes
12797 # the proper values into config.h.in to produce config.h. And first:
12798 # Protect against being on the right side of a sed subst in config.status.
12799 # Protect against being in an unquoted here document in config.status.
12800 rm -f conftest.vals
12801 cat > conftest.hdr
<<\EOF
12804 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12808 sed -n -f conftest.hdr confdefs.h > conftest.vals
12811 # This sed command replaces #undef with comments. This is necessary, for
12812 # example, in the case of _POSIX_SOURCE, which is predefined and required
12813 # on some systems where configure will not decide to define it.
12814 cat >> conftest.vals <<\EOF
12815 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12818 # Break up conftest.vals because some shells have a limit on
12819 # the size of here documents, and old seds have small limits too.
12821 rm -f conftest.tail
12824 ac_lines=`grep -c . conftest.vals
`
12825 # grep -c gives empty output for an empty file on some AIX systems.
12826 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12827 # Write a limited-size here document to conftest.frag.
12828 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12829 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12831 sed -f conftest.frag conftest.in > conftest.out
12833 mv conftest.out conftest.in
12834 ' >> $CONFIG_STATUS
12835 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12836 rm -f conftest.vals
12837 mv conftest.tail conftest.vals
12839 rm -f conftest.vals
12841 cat >> $CONFIG_STATUS <<\EOF
12842 rm -f conftest.frag conftest.h
12843 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12844 cat conftest.in >> conftest.h
12846 if cmp -s $ac_file conftest.h 2>/dev/null; then
12847 echo "$ac_file is unchanged"
12850 # Remove last slash and all that follows it. Not all systems have dirname.
12851 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12852 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12853 # The file is in a subdirectory.
12854 test ! -d "$ac_dir" && mkdir "$ac_dir"
12857 mv conftest.h $ac_file
12862 cat >> $CONFIG_STATUS <<EOF
12865 cat >> $CONFIG_STATUS <<\EOF
12869 chmod +x $CONFIG_STATUS
12870 rm -fr confdefs* $ac_clean_files
12871 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1