3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-readline[=DIR] Look for readline include/libs in DIR
31 --without-readline Don't include readline support"
33 --with-smbwrapper Include SMB wrapper support
34 --without-smbwrapper Don't include SMB wrapper support (default)"
36 --with-afs Include AFS support
37 --without-afs Don't include AFS support (default)"
39 --with-dfs Include DFS support
40 --without-dfs Don't include DFS support (default)"
42 --with-krb4=base-dir Include Kerberos IV support
43 --without-krb4 Don't include Kerberos IV support (default)"
45 --with-krb5=base-dir Include Kerberos 5 support
46 --without-krb5 Don't include Kerberos 5 support (default)"
48 --with-automount Include AUTOMOUNT support
49 --without-automount Don't include AUTOMOUNT support (default)"
51 --with-smbmount Include SMBMOUNT (Linux only) support
52 --without-smbmount Don't include SMBMOUNT support (default)"
54 --with-pam Include PAM password database support
55 --without-pam Don't include PAM password database support (default)"
57 --with-pam_smbpass Include the smbpass PAM module
58 --without-pam_smbpass Don't include the smbpass PAM module (default)"
60 --with-tdbsam Include experimental TDB password database
61 --without-tdbsam Don't include experimental TDB password database (default)"
63 --with-ldap Include LDAP support
64 --without-ldap Don't include LDAP support (default)"
66 --with-nisplus Include NISPLUS password database support
67 --without-nisplus Don't include NISPLUS password database support (default)"
69 --with-nisplus-home Include NISPLUS_HOME support
70 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
72 --with-ssl Include SSL support
73 --without-ssl Don't include SSL support (default)
74 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
76 --with-syslog Include experimental SYSLOG support
77 --without-syslog Don't include SYSLOG support (default)"
79 --with-profile Include profile support
80 --without-profile Don't include profile support (default)"
82 --with-netatalk Include experimental Netatalk support
83 --without-netatalk Don't include experimental Netatalk support (default)"
85 --with-quotas Include experimental disk-quota support
86 --without-quotas Don't include experimental disk-quota support (default)"
88 --with-utmp Include experimental utmp accounting
89 --without-utmp Don't include experimental utmp accounting (default)"
91 --with-msdfs Include MS Dfs support
92 --without-msdfs Don't include MS Dfs support (default)"
94 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
96 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
98 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
100 --with-spinlocks use spin locks instead of fcntl locks "
102 --with-acl-support Include ACL support
103 --without-acl-support Don't include ACL support (default)"
105 # Initialize some variables set by options.
106 # The variables have the same names as the options, with
107 # dashes changed to underlines.
109 cache_file
=.
/config.cache
118 program_transform_name
=s
,x
,x
,
126 bindir
='${exec_prefix}/bin'
127 sbindir
='${exec_prefix}/sbin'
128 libexecdir
='${exec_prefix}/libexec'
129 datadir
='${prefix}/share'
130 sysconfdir
='${prefix}/etc'
131 sharedstatedir
='${prefix}/com'
132 localstatedir
='${prefix}/var'
133 libdir
='${exec_prefix}/lib'
134 includedir
='${prefix}/include'
135 oldincludedir
='/usr/include'
136 infodir
='${prefix}/info'
137 mandir
='${prefix}/man'
139 # Initialize some other variables.
142 SHELL
=${CONFIG_SHELL-/bin/sh}
143 # Maximum number of lines to put in a shell here document.
150 # If the previous option needs an argument, assign it.
151 if test -n "$ac_prev"; then
152 eval "$ac_prev=\$ac_option"
158 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
162 # Accept the important Cygnus configure options, so we can diagnose typos.
166 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
168 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
169 bindir
="$ac_optarg" ;;
171 -build |
--build |
--buil |
--bui |
--bu)
173 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
174 build
="$ac_optarg" ;;
176 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
177 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
178 ac_prev
=cache_file
;;
179 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
180 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
181 cache_file
="$ac_optarg" ;;
183 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
185 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
187 datadir
="$ac_optarg" ;;
189 -disable-* |
--disable-*)
190 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}=no" ;;
198 -enable-* |
--enable-*)
199 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
209 eval "enable_${ac_feature}='$ac_optarg'" ;;
211 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
212 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
213 |
--exec |
--exe |
--ex)
214 ac_prev
=exec_prefix
;;
215 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
216 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
217 |
--exec=* |
--exe=* |
--ex=*)
218 exec_prefix
="$ac_optarg" ;;
220 -gas |
--gas |
--ga |
--g)
221 # Obsolete; use --with-gas.
224 -help |
--help |
--hel |
--he)
225 # Omit some internal or obsolete options to make the list less imposing.
226 # This message is too long to be a string in the A/UX 3.1 sh.
228 Usage: configure [options] [host]
229 Options: [defaults in brackets after descriptions]
231 --cache-file=FILE cache test results in FILE
232 --help print this message
233 --no-create do not create output files
234 --quiet, --silent do not print \`checking...' messages
235 --version print the version of autoconf that created configure
236 Directory and file names:
237 --prefix=PREFIX install architecture-independent files in PREFIX
239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
241 --bindir=DIR user executables in DIR [EPREFIX/bin]
242 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
243 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
244 --datadir=DIR read-only architecture-independent data in DIR
246 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
247 --sharedstatedir=DIR modifiable architecture-independent data in DIR
249 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
250 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
251 --includedir=DIR C header files in DIR [PREFIX/include]
252 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
253 --infodir=DIR info documentation in DIR [PREFIX/info]
254 --mandir=DIR man documentation in DIR [PREFIX/man]
255 --srcdir=DIR find the sources in DIR [configure dir or ..]
256 --program-prefix=PREFIX prepend PREFIX to installed program names
257 --program-suffix=SUFFIX append SUFFIX to installed program names
258 --program-transform-name=PROGRAM
259 run sed PROGRAM on installed program names
263 --build=BUILD configure for building on BUILD [BUILD=HOST]
264 --host=HOST configure for HOST [guessed]
265 --target=TARGET configure for TARGET [TARGET=HOST]
266 Features and packages:
267 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
268 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
269 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
270 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
271 --x-includes=DIR X include files are in DIR
272 --x-libraries=DIR X library files are in DIR
274 if test -n "$ac_help"; then
275 echo "--enable and --with options recognized:$ac_help"
279 -host |
--host |
--hos |
--ho)
281 -host=* |
--host=* |
--hos=* |
--ho=*)
284 -includedir |
--includedir |
--includedi |
--included |
--include \
285 |
--includ |
--inclu |
--incl |
--inc)
286 ac_prev
=includedir
;;
287 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
288 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
289 includedir
="$ac_optarg" ;;
291 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
293 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
294 infodir
="$ac_optarg" ;;
296 -libdir |
--libdir |
--libdi |
--libd)
298 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
299 libdir
="$ac_optarg" ;;
301 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
302 |
--libexe |
--libex |
--libe)
303 ac_prev
=libexecdir
;;
304 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
305 |
--libexe=* |
--libex=* |
--libe=*)
306 libexecdir
="$ac_optarg" ;;
308 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
309 |
--localstate |
--localstat |
--localsta |
--localst \
310 |
--locals |
--local |
--loca |
--loc |
--lo)
311 ac_prev
=localstatedir
;;
312 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
313 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
314 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
315 localstatedir
="$ac_optarg" ;;
317 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
319 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
320 mandir
="$ac_optarg" ;;
323 # Obsolete; use --without-fp.
326 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
330 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
331 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
334 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
335 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
336 |
--oldin |
--oldi |
--old |
--ol |
--o)
337 ac_prev
=oldincludedir
;;
338 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
339 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
340 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
341 oldincludedir
="$ac_optarg" ;;
343 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
345 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
346 prefix
="$ac_optarg" ;;
348 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
349 |
--program-pre |
--program-pr |
--program-p)
350 ac_prev
=program_prefix
;;
351 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
352 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
353 program_prefix
="$ac_optarg" ;;
355 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
356 |
--program-suf |
--program-su |
--program-s)
357 ac_prev
=program_suffix
;;
358 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
359 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
360 program_suffix
="$ac_optarg" ;;
362 -program-transform-name |
--program-transform-name \
363 |
--program-transform-nam |
--program-transform-na \
364 |
--program-transform-n |
--program-transform- \
365 |
--program-transform |
--program-transfor \
366 |
--program-transfo |
--program-transf \
367 |
--program-trans |
--program-tran \
368 |
--progr-tra |
--program-tr |
--program-t)
369 ac_prev
=program_transform_name
;;
370 -program-transform-name=* |
--program-transform-name=* \
371 |
--program-transform-nam=* |
--program-transform-na=* \
372 |
--program-transform-n=* |
--program-transform-=* \
373 |
--program-transform=* |
--program-transfor=* \
374 |
--program-transfo=* |
--program-transf=* \
375 |
--program-trans=* |
--program-tran=* \
376 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
377 program_transform_name
="$ac_optarg" ;;
379 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
380 |
-silent |
--silent |
--silen |
--sile |
--sil)
383 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
385 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
387 sbindir
="$ac_optarg" ;;
389 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
390 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
391 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
393 ac_prev
=sharedstatedir
;;
394 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
395 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
396 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
398 sharedstatedir
="$ac_optarg" ;;
400 -site |
--site |
--sit)
402 -site=* |
--site=* |
--sit=*)
405 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
407 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
408 srcdir
="$ac_optarg" ;;
410 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
411 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
412 ac_prev
=sysconfdir
;;
413 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
414 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
415 sysconfdir
="$ac_optarg" ;;
417 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
419 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
420 target
="$ac_optarg" ;;
422 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
425 -version |
--version |
--versio |
--versi |
--vers)
426 echo "configure generated by autoconf version 2.13"
430 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package
=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}='$ac_optarg'" ;;
442 -without-* |
--without-*)
443 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
446 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
448 ac_package
=`echo $ac_package| sed 's/-/_/g'`
449 eval "with_${ac_package}=no" ;;
452 # Obsolete; use --with-x.
455 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
456 |
--x-incl |
--x-inc |
--x-in |
--x-i)
457 ac_prev
=x_includes
;;
458 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
459 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
460 x_includes
="$ac_optarg" ;;
462 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
463 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
464 ac_prev
=x_libraries
;;
465 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
466 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
467 x_libraries
="$ac_optarg" ;;
469 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
473 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
474 echo "configure: warning: $ac_option: invalid host type" 1>&2
476 if test "x$nonopt" != xNONE
; then
477 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
485 if test -n "$ac_prev"; then
486 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
491 # File descriptor usage:
494 # 2 errors and warnings
495 # 3 some systems may open it to /dev/tty
496 # 4 used on the Kubota Titan
497 # 6 checking for... messages and results
498 # 5 compiler messages saved in config.log
499 if test "$silent" = yes; then
507 This file contains any messages produced by compilers while
508 running configure, to aid debugging if configure makes a mistake.
511 # Strip out --no-create and --no-recursion so they do not pile up.
512 # Also quote any args containing shell metacharacters.
517 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
518 |
--no-cr |
--no-c) ;;
519 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
520 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
521 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
522 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
523 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
528 # Only set these to C if already set. These must not be set unconditionally
529 # because not all systems understand e.g. LANG=C (notably SCO).
530 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
531 # Non-C LC_CTYPE values break the ctype check.
532 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
533 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
534 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
535 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538 rm -rf conftest
* confdefs.h
539 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
542 # A filename unique to this package, relative to the directory that
543 # configure is in, which we can look for to find out if srcdir is correct.
544 ac_unique_file
=include
/includes.h
546 # Find the source files, if location was not specified.
547 if test -z "$srcdir"; then
548 ac_srcdir_defaulted
=yes
549 # Try the directory containing this script, then its parent.
551 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
552 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
554 if test ! -r $srcdir/$ac_unique_file; then
558 ac_srcdir_defaulted
=no
560 if test ! -r $srcdir/$ac_unique_file; then
561 if test "$ac_srcdir_defaulted" = yes; then
562 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
564 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
567 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
569 # Prefer explicitly selected file to automatically selected ones.
570 if test -z "$CONFIG_SITE"; then
571 if test "x$prefix" != xNONE
; then
572 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
574 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
577 for ac_site_file
in $CONFIG_SITE; do
578 if test -r "$ac_site_file"; then
579 echo "loading site script $ac_site_file"
584 if test -r "$cache_file"; then
585 echo "loading cache $cache_file"
588 echo "creating cache $cache_file"
593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
594 ac_cpp
='$CPP $CPPFLAGS'
595 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
596 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
597 cross_compiling
=$ac_cv_prog_cc_cross
601 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
602 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
603 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
610 ac_n
= ac_c
='\c' ac_t
=
615 # we want to be compatibe with older versions of Samba
629 # compile with optimisation and without debugging by default
630 CFLAGS
="-O ${CFLAGS}"
632 # Check whether --enable-debug or --disable-debug was given.
633 if test "${enable_debug+set}" = set; then
634 enableval
="$enable_debug"
635 if eval "test x$enable_debug = xyes"; then
636 CFLAGS
="${CFLAGS} -g"
642 # Extract the first word of "gcc", so it can be a program name with args.
643 set dummy gcc
; ac_word
=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 if test -n "$CC"; then
650 ac_cv_prog_CC
="$CC" # Let the user override the test.
652 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
671 if test -z "$CC"; then
672 # Extract the first word of "cc", so it can be a program name with args.
673 set dummy cc
; ac_word
=$2
674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675 echo "configure:676: checking for $ac_word" >&5
676 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
679 if test -n "$CC"; then
680 ac_cv_prog_CC
="$CC" # Let the user override the test.
682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
685 for ac_dir
in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir
=.
687 if test -f $ac_dir/$ac_word; then
688 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697 if test $ac_prog_rejected = yes; then
698 # We found a bogon in the path, so make sure we never use it.
699 set dummy
$ac_cv_prog_CC
701 if test $# -gt 0; then
702 # We chose a different compiler from the bogus one.
703 # However, it has the same basename, so the bogon will be chosen
704 # first if we set CC to just the basename; use the full file name.
706 set dummy
"$ac_dir/$ac_word" "$@"
714 if test -n "$CC"; then
715 echo "$ac_t""$CC" 1>&6
717 echo "$ac_t""no" 1>&6
720 if test -z "$CC"; then
723 # Extract the first word of "cl", so it can be a program name with args.
724 set dummy cl
; ac_word
=$2
725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726 echo "configure:727: checking for $ac_word" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 if test -n "$CC"; then
731 ac_cv_prog_CC
="$CC" # Let the user override the test.
733 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
735 for ac_dir
in $ac_dummy; do
736 test -z "$ac_dir" && ac_dir
=.
737 if test -f $ac_dir/$ac_word; then
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
749 echo "$ac_t""no" 1>&6
754 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
762 ac_cpp
='$CPP $CPPFLAGS'
763 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
764 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
765 cross_compiling
=$ac_cv_prog_cc_cross
767 cat > conftest.
$ac_ext << EOF
769 #line 770 "configure"
770 #include "confdefs.h"
774 if { (eval echo configure
:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
775 ac_cv_prog_cc_works
=yes
776 # If we can't run a trivial program, we are probably using a cross compiler.
777 if (.
/conftest
; exit) 2>/dev
/null
; then
778 ac_cv_prog_cc_cross
=no
780 ac_cv_prog_cc_cross
=yes
783 echo "configure: failed program was:" >&5
784 cat conftest.
$ac_ext >&5
785 ac_cv_prog_cc_works
=no
789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790 ac_cpp
='$CPP $CPPFLAGS'
791 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793 cross_compiling
=$ac_cv_prog_cc_cross
795 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
796 if test $ac_cv_prog_cc_works = no
; then
797 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
800 echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
801 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
802 cross_compiling
=$ac_cv_prog_cc_cross
804 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
805 echo "configure:806: checking whether we are using GNU C" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftest.c
<<EOF
814 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
823 if test $ac_cv_prog_gcc = yes; then
829 ac_test_CFLAGS
="${CFLAGS+set}"
830 ac_save_CFLAGS
="$CFLAGS"
832 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
833 echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 echo 'void f(){}' > conftest.c
838 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
848 if test "$ac_test_CFLAGS" = set; then
849 CFLAGS
="$ac_save_CFLAGS"
850 elif test $ac_cv_prog_cc_g = yes; then
851 if test "$GCC" = yes; then
857 if test "$GCC" = yes; then
865 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
866 if test -f $ac_dir/install-sh
; then
868 ac_install_sh
="$ac_aux_dir/install-sh -c"
870 elif test -f $ac_dir/install.sh
; then
872 ac_install_sh
="$ac_aux_dir/install.sh -c"
876 if test -z "$ac_aux_dir"; then
877 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
879 ac_config_guess
=$ac_aux_dir/config.guess
880 ac_config_sub
=$ac_aux_dir/config.sub
881 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
883 # Find a good install program. We prefer a C program (faster),
884 # so one script is as good as another. But avoid the broken or
885 # incompatible versions:
886 # SysV /etc/install, /usr/sbin/install
887 # SunOS /usr/etc/install
890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
893 # ./install, which can be erroneously created by make from ./install.sh.
894 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
895 echo "configure:896: checking for a BSD compatible install" >&5
896 if test -z "$INSTALL"; then
897 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
901 for ac_dir
in $PATH; do
902 # Account for people who put trailing slashes in PATH elements.
904 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
906 # OSF1 and SCO ODT 3.0 have their own names for install.
907 # Don't use installbsd from OSF since it installs stuff as root
909 for ac_prog
in ginstall scoinst
install; do
910 if test -f $ac_dir/$ac_prog; then
911 if test $ac_prog = install &&
912 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
913 # AIX install. It has an incompatible calling convention.
916 ac_cv_path_install
="$ac_dir/$ac_prog -c"
927 if test "${ac_cv_path_install+set}" = set; then
928 INSTALL
="$ac_cv_path_install"
930 # As a last resort, use the slow shell script. We don't cache a
931 # path for INSTALL within a source directory, because that will
932 # break other packages using the cache if that directory is
933 # removed, or if the path is relative.
934 INSTALL
="$ac_install_sh"
937 echo "$ac_t""$INSTALL" 1>&6
939 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
940 # It thinks the first close brace ends the variable substitution.
941 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
943 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
945 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
947 for ac_prog
in gawk mawk nawk
awk
949 # Extract the first word of "$ac_prog", so it can be a program name with args.
950 set dummy
$ac_prog; ac_word
=$2
951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 echo "configure:953: checking for $ac_word" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 if test -n "$AWK"; then
957 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
961 for ac_dir
in $ac_dummy; do
962 test -z "$ac_dir" && ac_dir
=.
963 if test -f $ac_dir/$ac_word; then
964 ac_cv_prog_AWK
="$ac_prog"
971 AWK
="$ac_cv_prog_AWK"
972 if test -n "$AWK"; then
973 echo "$ac_t""$AWK" 1>&6
975 echo "$ac_t""no" 1>&6
978 test -n "$AWK" && break
981 # Check whether --enable-shared or --disable-shared was given.
982 if test "${enable_shared+set}" = set; then
983 enableval
="$enable_shared"
986 yes) enable_shared
=yes ;;
987 no
) enable_shared
=no
;;
990 # Look at the argument we got. We use all the common list separators.
991 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
992 for pkg
in $enableval; do
993 if test "X$pkg" = "X$p"; then
1004 # Check whether --enable-static or --disable-static was given.
1005 if test "${enable_static+set}" = set; then
1006 enableval
="$enable_static"
1007 p
=${PACKAGE-default}
1008 case "$enableval" in
1009 yes) enable_static
=yes ;;
1010 no
) enable_static
=no
;;
1013 # Look at the argument we got. We use all the common list separators.
1014 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1015 for pkg
in $enableval; do
1016 if test "X$pkg" = "X$p"; then
1027 # Check whether --enable-fast-install or --disable-fast-install was given.
1028 if test "${enable_fast_install+set}" = set; then
1029 enableval
="$enable_fast_install"
1030 p
=${PACKAGE-default}
1031 case "$enableval" in
1032 yes) enable_fast_install
=yes ;;
1033 no
) enable_fast_install
=no
;;
1035 enable_fast_install
=no
1036 # Look at the argument we got. We use all the common list separators.
1037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1038 for pkg
in $enableval; do
1039 if test "X$pkg" = "X$p"; then
1040 enable_fast_install
=yes
1047 enable_fast_install
=yes
1051 # Make sure we can run config.sub.
1052 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1053 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1056 echo $ac_n "checking host system type""... $ac_c" 1>&6
1057 echo "configure:1058: checking host system type" >&5
1060 case "$host_alias" in
1064 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1065 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1067 *) host_alias
=$nonopt ;;
1071 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1072 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$host" 1>&6
1077 echo $ac_n "checking build system type""... $ac_c" 1>&6
1078 echo "configure:1079: checking build system type" >&5
1081 case "$build_alias" in
1084 NONE
) build_alias
=$host_alias ;;
1085 *) build_alias
=$nonopt ;;
1089 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1090 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1093 echo "$ac_t""$build" 1>&6
1095 # Extract the first word of "ranlib", so it can be a program name with args.
1096 set dummy ranlib
; ac_word
=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 if test -n "$RANLIB"; then
1103 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1105 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1107 for ac_dir
in $ac_dummy; do
1108 test -z "$ac_dir" && ac_dir
=.
1109 if test -f $ac_dir/$ac_word; then
1110 ac_cv_prog_RANLIB
="ranlib"
1115 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1118 RANLIB
="$ac_cv_prog_RANLIB"
1119 if test -n "$RANLIB"; then
1120 echo "$ac_t""$RANLIB" 1>&6
1122 echo "$ac_t""no" 1>&6
1125 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1126 if test "${with_gnu_ld+set}" = set; then
1127 withval
="$with_gnu_ld"
1128 test "$withval" = no || with_gnu_ld
=yes
1134 if test "$ac_cv_prog_gcc" = yes; then
1135 # Check if gcc -print-prog-name=ld gives a path.
1136 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1137 echo "configure:1138: checking for ld used by GCC" >&5
1138 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1140 # Accept absolute paths.
1141 [\\/]* |
[A-Za-z
]:[\\/]*)
1142 re_direlt
='/[^/][^/]*/\.\./'
1143 # Canonicalize the path of ld
1144 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1145 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1146 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1148 test -z "$LD" && LD
="$ac_prog"
1151 # If it fails, then pretend we aren't using GCC.
1155 # If it is relative, then search for the first ld in PATH.
1159 elif test "$with_gnu_ld" = yes; then
1160 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1161 echo "configure:1162: checking for GNU ld" >&5
1163 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1164 echo "configure:1165: checking for non-GNU ld" >&5
1166 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 if test -z "$LD"; then
1170 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1171 for ac_dir
in $PATH; do
1172 test -z "$ac_dir" && ac_dir
=.
1173 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1174 ac_cv_path_LD
="$ac_dir/$ac_prog"
1175 # Check to see if the program is GNU ld. I'd rather use --version,
1176 # but apparently some GNU ld's only accept -v.
1177 # Break only if it was the GNU/non-GNU ld that we prefer.
1178 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1179 test "$with_gnu_ld" != no
&& break
1181 test "$with_gnu_ld" != yes && break
1187 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1192 if test -n "$LD"; then
1193 echo "$ac_t""$LD" 1>&6
1195 echo "$ac_t""no" 1>&6
1197 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1199 echo "configure:1200: checking if the linker ($LD) is GNU ld" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1204 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1205 ac_cv_prog_gnu_ld
=yes
1207 ac_cv_prog_gnu_ld
=no
1211 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1214 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1215 echo "configure:1216: checking for BSD-compatible nm" >&5
1216 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$NM"; then
1220 # Let the user override the test.
1223 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1224 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1225 test -z "$ac_dir" && ac_dir
=.
1226 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1227 # Check to see if the nm accepts a BSD-compat flag.
1228 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1229 # nm: unknown option "B" ignored
1230 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1231 ac_cv_path_NM
="$ac_dir/nm -B"
1233 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1234 ac_cv_path_NM
="$ac_dir/nm -p"
1237 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1238 continue # so that we can try to find one that supports BSD flags
1243 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1248 echo "$ac_t""$NM" 1>&6
1250 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ln -s works" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1256 if ln -s X conftestdata
2>/dev
/null
1259 ac_cv_prog_LN_S
="ln -s"
1264 LN_S
="$ac_cv_prog_LN_S"
1265 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1266 echo "$ac_t""yes" 1>&6
1268 echo "$ac_t""no" 1>&6
1273 NONE
) lt_target
="$host" ;;
1274 *) lt_target
="$target" ;;
1277 # Check for any special flags to pass to ltconfig.
1278 libtool_flags
="--cache-file=$cache_file"
1279 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1280 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1281 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1282 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1283 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1287 if test "${enable_libtool_lock+set}" = set; then
1288 enableval
="$enable_libtool_lock"
1292 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1293 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1295 # Some flags need to be propagated to the compiler or linker for good
1297 case "$lt_target" in
1299 # Find out which ABI we are using.
1300 echo '#line 1301 "configure"' > conftest.
$ac_ext
1301 if { (eval echo configure
:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1302 case "`/usr/bin/file conftest.o`" in
1318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1319 SAVE_CFLAGS
="$CFLAGS"
1320 CFLAGS
="$CFLAGS -belf"
1321 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1322 echo "configure:1323: checking whether the C compiler needs -belf" >&5
1323 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 cat > conftest.
$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1334 if { (eval echo configure
:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1336 lt_cv_cc_needs_belf
=yes
1338 echo "configure: failed program was:" >&5
1339 cat conftest.
$ac_ext >&5
1341 lt_cv_cc_needs_belf
=no
1346 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1347 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1349 CFLAGS
="$SAVE_CFLAGS"
1357 # Save cache, so that ltconfig can load it
1358 cat > confcache
<<\EOF
1359 # This file is a shell script that caches the results of configure
1360 # tests run on this system so they can be shared between configure
1361 # scripts and configure runs. It is not useful on other systems.
1362 # If it contains results you don't want to keep, you may remove or edit it.
1364 # By default, configure uses ./config.cache as the cache file,
1365 # creating it if it does not exist already. You can give configure
1366 # the --cache-file=FILE option to use a different cache file; that is
1367 # what configure does when it calls configure scripts in
1368 # subdirectories, so they share the cache.
1369 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1370 # config.status only pays attention to the cache file if you give it the
1371 # --recheck option to rerun configure.
1374 # The following way of writing the cache mishandles newlines in values,
1375 # but we know of no workaround that is simple, portable, and efficient.
1376 # So, don't put newlines in cache variables' values.
1377 # Ultrix sh set writes to stderr and can't be redirected directly,
1378 # and sets the high bit in the cache file unless we assign to the vars.
1380 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1382 # `set' does not quote correctly, so add quotes (double-quote substitution
1383 # turns \\\\ into \\, and sed turns \\ into \).
1385 -e "s/'/'\\\\''/g" \
1386 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1389 # `set' quotes correctly as required by POSIX, so do not add quotes.
1390 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1393 if cmp -s $cache_file confcache
; then
1396 if test -w $cache_file; then
1397 echo "updating cache $cache_file"
1398 cat confcache
> $cache_file
1400 echo "not updating unwritable cache $cache_file"
1406 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1407 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1408 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1409 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1410 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1411 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1412 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1413 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1415 # Reload cache, that may have been modified by ltconfig
1416 if test -r "$cache_file"; then
1417 echo "loading cache $cache_file"
1420 echo "creating cache $cache_file"
1425 # This can be used to rebuild libtool when needed
1426 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1428 # Always use our own libtool.
1429 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1431 # Redirect the config.log output again, so that the ltconfig log is not
1432 # clobbered by the next message.
1433 exec 5>>.
/config.log
1437 if test "x$CC" != xcc
; then
1438 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1439 echo "configure:1440: checking whether $CC and cc understand -c and -o together" >&5
1441 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1442 echo "configure:1443: checking whether cc understands -c and -o together" >&5
1444 set dummy
$CC; ac_cc
="`echo $2 |
1445 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1446 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 echo 'foo(){}' > conftest.c
1450 # Make sure it works both with $CC and with simple cc.
1451 # We do the test twice because some compilers refuse to overwrite an
1452 # existing .o file with -o, though they will create one.
1453 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1454 if { (eval echo configure
:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1455 test -f conftest.o
&& { (eval echo configure
:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1457 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1458 if test "x$CC" != xcc
; then
1459 # Test first that cc exists at all.
1460 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1461 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1462 if { (eval echo configure
:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1463 test -f conftest.o
&& { (eval echo configure
:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1468 # cc exists but doesn't like -o.
1469 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1474 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1479 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1482 echo "$ac_t""no" 1>&6
1483 cat >> confdefs.h
<<\EOF
1484 #define NO_MINUS_C_MINUS_O 1
1489 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1496 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1497 echo "configure:1498: checking that the C compiler understands volatile" >&5
1498 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1502 cat > conftest.
$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 #include <sys/types.h>
1510 if { (eval echo configure
:1511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1512 samba_cv_volatile
=yes
1514 echo "configure: failed program was:" >&5
1515 cat conftest.
$ac_ext >&5
1517 samba_cv_volatile
=no
1522 echo "$ac_t""$samba_cv_volatile" 1>&6
1523 if test x
"$samba_cv_volatile" = x
"yes"; then
1524 cat >> confdefs.h
<<\EOF
1525 #define HAVE_VOLATILE 1
1531 #################################################
1532 # set codepage directory location
1533 # Check whether --with-codepagedir or --without-codepagedir was given.
1534 if test "${with_codepagedir+set}" = set; then
1535 withval
="$with_codepagedir"
1539 # Just in case anybody does it
1541 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1544 codepagedir
="$withval"
1552 # Do some error checking and defaulting for the host and target type.
1554 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1557 # 1. You are not allowed to specify --host, --target, and nonopt at the
1559 # 2. Host defaults to nonopt.
1560 # 3. If nonopt is not specified, then host defaults to the current host,
1561 # as determined by config.guess.
1562 # 4. Target and build default to nonopt.
1563 # 5. If nonopt is not specified, then target and build default to host.
1565 # The aliases save the names the user supplied, while $host etc.
1566 # will get canonicalized.
1567 case $host---$target---$nonopt in
1568 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1569 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1573 # Make sure we can run config.sub.
1574 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1575 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1578 echo $ac_n "checking host system type""... $ac_c" 1>&6
1579 echo "configure:1580: checking host system type" >&5
1582 case "$host_alias" in
1586 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1587 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1589 *) host_alias
=$nonopt ;;
1593 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1594 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597 echo "$ac_t""$host" 1>&6
1599 echo $ac_n "checking target system type""... $ac_c" 1>&6
1600 echo "configure:1601: checking target system type" >&5
1602 target_alias
=$target
1603 case "$target_alias" in
1606 NONE
) target_alias
=$host_alias ;;
1607 *) target_alias
=$nonopt ;;
1611 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1612 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615 echo "$ac_t""$target" 1>&6
1617 echo $ac_n "checking build system type""... $ac_c" 1>&6
1618 echo "configure:1619: checking build system type" >&5
1621 case "$build_alias" in
1624 NONE
) build_alias
=$host_alias ;;
1625 *) build_alias
=$nonopt ;;
1629 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1630 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 echo "$ac_t""$build" 1>&6
1635 test "$host_alias" != "$target_alias" &&
1636 test "$program_prefix$program_suffix$program_transform_name" = \
1638 program_prefix
=${target_alias}-
1642 *irix6
*) cat >> confdefs.h
<<\EOF
1643 #include <standards.h>
1651 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1652 echo "configure:1653: checking config.cache system type" >&5
1653 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1654 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1655 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1656 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1657 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1658 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1659 echo "$ac_t""different" 1>&6
1660 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1662 echo "$ac_t""same" 1>&6
1664 ac_cv_host_system_type
="$host"
1665 ac_cv_build_system_type
="$build"
1666 ac_cv_target_system_type
="$target"
1670 # Config CPPFLAG settings for strange OS's that must be set
1671 # before other tests.
1674 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1676 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether ${CC-cc} accepts -Ae" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 echo 'void f(){}' > conftest.c
1682 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1683 ac_cv_prog_cc_Ae
=yes
1691 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1692 if test $ac_cv_prog_cc_Ae = yes; then
1693 CPPFLAGS
="$CPPFLAGS -Ae"
1696 # Defines needed for HPUX support.
1697 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1698 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1702 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1703 cat >> confdefs.h
<<\EOF
1704 #define USE_BOTH_CRYPT_CALLS 1
1709 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1710 cat >> confdefs.h
<<\EOF
1711 #define USE_BOTH_CRYPT_CALLS 1
1718 # AIX4.x doesn't even admit to having large
1719 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1722 echo "$ac_t""enabling large file support" 1>&6
1723 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1726 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1727 # to the existance of large files..
1728 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1729 # recommendations on large file support, however it makes the
1730 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1731 # recommendation makes the compile fail on gcc2.7. JRA.
1736 echo "$ac_t""enabling large file support" 1>&6
1737 if test "$ac_cv_prog_gcc" = yes; then
1738 ${CC-cc} -v >conftest.c
2>&1
1739 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1741 case "$ac_cv_gcc_compiler_version_number" in
1742 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1743 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1746 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1750 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1756 # Tests needed for SINIX large file support.
1759 if test $host = mips-sni-sysv4
; then
1760 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1761 echo "configure:1762: checking for LFS support" >&5
1762 old_CPPFLAGS
="$CPPFLAGS"
1763 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1764 if test "$cross_compiling" = yes; then
1765 SINIX_LFS_SUPPORT
=cross
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1773 #if _LFS64_LARGEFILE == 1
1780 if { (eval echo configure
:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1782 SINIX_LFS_SUPPORT
=yes
1784 echo "configure: failed program was:" >&5
1785 cat conftest.
$ac_ext >&5
1787 SINIX_LFS_SUPPORT
=no
1792 CPPFLAGS
="$old_CPPFLAGS"
1793 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1794 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1795 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1796 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1797 LIBS
="`getconf LFS64_LIBS` $LIBS"
1799 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1803 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1806 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1807 echo "configure:1808: checking for LFS support" >&5
1808 old_CPPFLAGS
="$CPPFLAGS"
1809 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1810 if test "$cross_compiling" = yes; then
1811 LINUX_LFS_SUPPORT
=cross
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1818 #include <sys/utsname.h>
1820 #if _LFS64_LARGEFILE == 1
1825 /* Ensure this is glibc 2.2 or higher */
1826 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1827 int libc_major = __GLIBC__;
1828 int libc_minor = __GLIBC_MINOR__;
1836 /* Ensure this is kernel 2.4 or higher */
1839 release = uts.release;
1840 major = atoi(strsep(&release, "."));
1841 minor = atoi(strsep(&release, "."));
1843 if (major > 2 || (major == 2 && minor > 3))
1852 if { (eval echo configure
:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1854 LINUX_LFS_SUPPORT
=yes
1856 echo "configure: failed program was:" >&5
1857 cat conftest.
$ac_ext >&5
1859 LINUX_LFS_SUPPORT
=no
1864 CPPFLAGS
="$old_CPPFLAGS"
1865 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1866 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1868 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1872 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1873 echo "configure:1874: checking for LFS support" >&5
1874 old_CPPFLAGS
="$CPPFLAGS"
1875 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1876 if test "$cross_compiling" = yes; then
1877 GLIBC_LFS_SUPPORT
=cross
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1885 #if _LFS64_LARGEFILE == 1
1892 if { (eval echo configure
:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1894 GLIBC_LFS_SUPPORT
=yes
1896 echo "configure: failed program was:" >&5
1897 cat conftest.
$ac_ext >&5
1899 GLIBC_LFS_SUPPORT
=no
1904 CPPFLAGS
="$old_CPPFLAGS"
1905 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1906 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1908 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1913 echo $ac_n "checking for inline""... $ac_c" 1>&6
1914 echo "configure:1915: checking for inline" >&5
1915 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1919 for ac_kw
in inline __inline__ __inline
; do
1920 cat > conftest.
$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1928 if { (eval echo configure
:1929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1930 ac_cv_c_inline
=$ac_kw; break
1932 echo "configure: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1940 echo "$ac_t""$ac_cv_c_inline" 1>&6
1941 case "$ac_cv_c_inline" in
1943 no
) cat >> confdefs.h
<<\EOF
1947 *) cat >> confdefs.h
<<EOF
1948 #define inline $ac_cv_c_inline
1953 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1954 echo "configure:1955: checking how to run the C preprocessor" >&5
1955 # On Suns, sometimes $CPP names a directory.
1956 if test -n "$CPP" && test -d "$CPP"; then
1959 if test -z "$CPP"; then
1960 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 # This must be in double quotes, not single quotes, because CPP may get
1964 # substituted into the Makefile and "${CC-cc}" will confuse make.
1966 # On the NeXT, cc -E runs the code through the compiler's parser,
1967 # not just through cpp.
1968 cat > conftest.
$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1974 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1975 { (eval echo configure
:1976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1976 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1977 if test -z "$ac_err"; then
1981 echo "configure: failed program was:" >&5
1982 cat conftest.
$ac_ext >&5
1984 CPP
="${CC-cc} -E -traditional-cpp"
1985 cat > conftest.
$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1991 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1992 { (eval echo configure
:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1993 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1994 if test -z "$ac_err"; then
1998 echo "configure: failed program was:" >&5
1999 cat conftest.
$ac_ext >&5
2001 CPP
="${CC-cc} -nologo -E"
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2008 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2009 { (eval echo configure
:2010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2010 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2011 if test -z "$ac_err"; then
2015 echo "configure: failed program was:" >&5
2016 cat conftest.
$ac_ext >&5
2025 ac_cv_prog_CPP
="$CPP"
2027 CPP
="$ac_cv_prog_CPP"
2029 ac_cv_prog_CPP
="$CPP"
2031 echo "$ac_t""$CPP" 1>&6
2033 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2034 echo "configure:2035: checking for ANSI C header files" >&5
2035 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.
$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure
:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2051 ac_cv_header_stdc
=yes
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 ac_cv_header_stdc
=no
2061 if test $ac_cv_header_stdc = yes; then
2062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2069 egrep "memchr" >/dev
/null
2>&1; then
2073 ac_cv_header_stdc
=no
2079 if test $ac_cv_header_stdc = yes; then
2080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2087 egrep "free" >/dev
/null
2>&1; then
2091 ac_cv_header_stdc
=no
2097 if test $ac_cv_header_stdc = yes; then
2098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2099 if test "$cross_compiling" = yes; then
2102 cat > conftest.
$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2106 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2107 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2109 int main () { int i; for (i = 0; i < 256; i++)
2110 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2114 if { (eval echo configure
:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2118 echo "configure: failed program was:" >&5
2119 cat conftest.
$ac_ext >&5
2121 ac_cv_header_stdc
=no
2129 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2130 if test $ac_cv_header_stdc = yes; then
2131 cat >> confdefs.h
<<\EOF
2132 #define STDC_HEADERS 1
2138 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2140 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2141 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_hdr that defines DIR" >&5
2143 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 #include <sys/types.h>
2155 if { (eval echo configure
:2156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2157 eval "ac_cv_header_dirent_$ac_safe=yes"
2159 echo "configure: failed program was:" >&5
2160 cat conftest.
$ac_ext >&5
2162 eval "ac_cv_header_dirent_$ac_safe=no"
2166 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2167 echo "$ac_t""yes" 1>&6
2168 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2169 cat >> confdefs.h
<<EOF
2170 #define $ac_tr_hdr 1
2172 ac_header_dirent
=$ac_hdr; break
2174 echo "$ac_t""no" 1>&6
2177 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2178 if test $ac_header_dirent = dirent.h
; then
2179 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2180 echo "configure:2181: checking for opendir in -ldir" >&5
2181 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS
="$LIBS"
2187 cat > conftest.
$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2199 if { (eval echo configure
:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS
="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2216 echo "$ac_t""no" 1>&6
2220 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2221 echo "configure:2222: checking for opendir in -lx" >&5
2222 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 ac_save_LIBS
="$LIBS"
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2240 if { (eval echo configure
:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2242 eval "ac_cv_lib_$ac_lib_var=yes"
2244 echo "configure: failed program was:" >&5
2245 cat conftest.
$ac_ext >&5
2247 eval "ac_cv_lib_$ac_lib_var=no"
2250 LIBS
="$ac_save_LIBS"
2253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2257 echo "$ac_t""no" 1>&6
2262 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2263 echo "configure:2264: checking whether time.h and sys/time.h may both be included" >&5
2264 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.
$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 #include <sys/types.h>
2271 #include <sys/time.h>
2277 if { (eval echo configure
:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279 ac_cv_header_time
=yes
2281 echo "configure: failed program was:" >&5
2282 cat conftest.
$ac_ext >&5
2284 ac_cv_header_time
=no
2289 echo "$ac_t""$ac_cv_header_time" 1>&6
2290 if test $ac_cv_header_time = yes; then
2291 cat >> confdefs.h
<<\EOF
2292 #define TIME_WITH_SYS_TIME 1
2297 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2298 echo "configure:2299: checking for sys/wait.h that is POSIX.1 compatible" >&5
2299 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 cat > conftest.
$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 #include <sys/types.h>
2306 #include <sys/wait.h>
2308 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2311 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2316 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2319 if { (eval echo configure
:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321 ac_cv_header_sys_wait_h
=yes
2323 echo "configure: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2326 ac_cv_header_sys_wait_h
=no
2331 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2332 if test $ac_cv_header_sys_wait_h = yes; then
2333 cat >> confdefs.h
<<\EOF
2334 #define HAVE_SYS_WAIT_H 1
2339 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2341 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2343 echo "configure:2344: checking for $ac_hdr" >&5
2344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 cat > conftest.
$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2352 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2353 { (eval echo configure
:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2354 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2355 if test -z "$ac_err"; then
2357 eval "ac_cv_header_$ac_safe=yes"
2360 echo "configure: failed program was:" >&5
2361 cat conftest.
$ac_ext >&5
2363 eval "ac_cv_header_$ac_safe=no"
2367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2370 cat >> confdefs.h
<<EOF
2371 #define $ac_tr_hdr 1
2375 echo "$ac_t""no" 1>&6
2379 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2381 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2383 echo "configure:2384: checking for $ac_hdr" >&5
2384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure
:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then
2397 eval "ac_cv_header_$ac_safe=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 eval "ac_cv_header_$ac_safe=no"
2407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2410 cat >> confdefs.h
<<EOF
2411 #define $ac_tr_hdr 1
2415 echo "$ac_t""no" 1>&6
2419 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2421 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_hdr" >&5
2424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2432 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2433 { (eval echo configure
:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2434 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2435 if test -z "$ac_err"; then
2437 eval "ac_cv_header_$ac_safe=yes"
2440 echo "configure: failed program was:" >&5
2441 cat conftest.
$ac_ext >&5
2443 eval "ac_cv_header_$ac_safe=no"
2447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2450 cat >> confdefs.h
<<EOF
2451 #define $ac_tr_hdr 1
2455 echo "$ac_t""no" 1>&6
2459 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2461 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_hdr" >&5
2464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2473 { (eval echo configure
:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2474 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2475 if test -z "$ac_err"; then
2477 eval "ac_cv_header_$ac_safe=yes"
2480 echo "configure: failed program was:" >&5
2481 cat conftest.
$ac_ext >&5
2483 eval "ac_cv_header_$ac_safe=no"
2487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2488 echo "$ac_t""yes" 1>&6
2489 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2490 cat >> confdefs.h
<<EOF
2491 #define $ac_tr_hdr 1
2495 echo "$ac_t""no" 1>&6
2499 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2501 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.
$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2512 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure
:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2517 eval "ac_cv_header_$ac_safe=yes"
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2523 eval "ac_cv_header_$ac_safe=no"
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h
<<EOF
2531 #define $ac_tr_hdr 1
2535 echo "$ac_t""no" 1>&6
2539 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2541 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_hdr" >&5
2544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2552 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure
:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2557 eval "ac_cv_header_$ac_safe=yes"
2560 echo "configure: failed program was:" >&5
2561 cat conftest.
$ac_ext >&5
2563 eval "ac_cv_header_$ac_safe=no"
2567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2568 echo "$ac_t""yes" 1>&6
2569 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2570 cat >> confdefs.h
<<EOF
2571 #define $ac_tr_hdr 1
2575 echo "$ac_t""no" 1>&6
2579 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2581 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_hdr" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.
$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2592 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2593 { (eval echo configure
:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2594 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2595 if test -z "$ac_err"; then
2597 eval "ac_cv_header_$ac_safe=yes"
2600 echo "configure: failed program was:" >&5
2601 cat conftest.
$ac_ext >&5
2603 eval "ac_cv_header_$ac_safe=no"
2607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2610 cat >> confdefs.h
<<EOF
2611 #define $ac_tr_hdr 1
2615 echo "$ac_t""no" 1>&6
2620 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2621 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2625 cat > conftest.
$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2633 if { (eval echo configure
:2634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2635 ac_cv_header_shadow_h
=yes
2637 echo "configure: failed program was:" >&5
2638 cat conftest.
$ac_ext >&5
2640 ac_cv_header_shadow_h
=no
2643 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2644 cat >> confdefs.h
<<\EOF
2645 #define HAVE_SHADOW_H 1
2651 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2653 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_hdr" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2664 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure
:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2669 eval "ac_cv_header_$ac_safe=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2675 eval "ac_cv_header_$ac_safe=no"
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2682 cat >> confdefs.h
<<EOF
2683 #define $ac_tr_hdr 1
2687 echo "$ac_t""no" 1>&6
2691 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2693 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.
$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2704 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure
:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2709 eval "ac_cv_header_$ac_safe=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2715 eval "ac_cv_header_$ac_safe=no"
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h
<<EOF
2723 #define $ac_tr_hdr 1
2727 echo "$ac_t""no" 1>&6
2731 for ac_hdr
in stropts.h poll.h
2733 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2735 echo "configure:2736: checking for $ac_hdr" >&5
2736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.
$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2744 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure
:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2749 eval "ac_cv_header_$ac_safe=yes"
2752 echo "configure: failed program was:" >&5
2753 cat conftest.
$ac_ext >&5
2755 eval "ac_cv_header_$ac_safe=no"
2759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2761 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2762 cat >> confdefs.h
<<EOF
2763 #define $ac_tr_hdr 1
2767 echo "$ac_t""no" 1>&6
2771 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2773 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_hdr" >&5
2776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2784 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure
:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2789 eval "ac_cv_header_$ac_safe=yes"
2792 echo "configure: failed program was:" >&5
2793 cat conftest.
$ac_ext >&5
2795 eval "ac_cv_header_$ac_safe=no"
2799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2800 echo "$ac_t""yes" 1>&6
2801 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2802 cat >> confdefs.h
<<EOF
2803 #define $ac_tr_hdr 1
2807 echo "$ac_t""no" 1>&6
2811 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h acl
/acl.h
2813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_hdr" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 cat > conftest.
$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure
:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2829 eval "ac_cv_header_$ac_safe=yes"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2835 eval "ac_cv_header_$ac_safe=no"
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2842 cat >> confdefs.h
<<EOF
2843 #define $ac_tr_hdr 1
2847 echo "$ac_t""no" 1>&6
2852 # For experimental utmp support (lastlog on some BSD-like systems)
2853 for ac_hdr
in utmp.h utmpx.h lastlog.h
2855 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_hdr" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2866 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure
:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2871 eval "ac_cv_header_$ac_safe=yes"
2874 echo "configure: failed program was:" >&5
2875 cat conftest.
$ac_ext >&5
2877 eval "ac_cv_header_$ac_safe=no"
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2884 cat >> confdefs.h
<<EOF
2885 #define $ac_tr_hdr 1
2889 echo "$ac_t""no" 1>&6
2894 # For quotas on Veritas VxFS filesystems
2895 for ac_hdr
in sys
/fs
/vx_quota.h
2897 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_hdr" >&5
2900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.
$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2909 { (eval echo configure
:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2911 if test -z "$ac_err"; then
2913 eval "ac_cv_header_$ac_safe=yes"
2916 echo "configure: failed program was:" >&5
2917 cat conftest.
$ac_ext >&5
2919 eval "ac_cv_header_$ac_safe=no"
2923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2926 cat >> confdefs.h
<<EOF
2927 #define $ac_tr_hdr 1
2931 echo "$ac_t""no" 1>&6
2936 echo $ac_n "checking size of int""... $ac_c" 1>&6
2937 echo "configure:2938: checking size of int" >&5
2938 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 if test "$cross_compiling" = yes; then
2942 ac_cv_sizeof_int
=cross
2944 cat > conftest.
$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2950 FILE *f=fopen("conftestval", "w");
2952 fprintf(f, "%d\n", sizeof(int));
2956 if { (eval echo configure
:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2958 ac_cv_sizeof_int
=`cat conftestval`
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2969 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2970 cat >> confdefs.h
<<EOF
2971 #define SIZEOF_INT $ac_cv_sizeof_int
2975 echo $ac_n "checking size of long""... $ac_c" 1>&6
2976 echo "configure:2977: checking size of long" >&5
2977 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 if test "$cross_compiling" = yes; then
2981 ac_cv_sizeof_long
=cross
2983 cat > conftest.
$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2989 FILE *f=fopen("conftestval", "w");
2991 fprintf(f, "%d\n", sizeof(long));
2995 if { (eval echo configure
:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2997 ac_cv_sizeof_long
=`cat conftestval`
2999 echo "configure: failed program was:" >&5
3000 cat conftest.
$ac_ext >&5
3008 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3009 cat >> confdefs.h
<<EOF
3010 #define SIZEOF_LONG $ac_cv_sizeof_long
3014 echo $ac_n "checking size of short""... $ac_c" 1>&6
3015 echo "configure:3016: checking size of short" >&5
3016 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test "$cross_compiling" = yes; then
3020 ac_cv_sizeof_short
=cross
3022 cat > conftest.
$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3028 FILE *f=fopen("conftestval", "w");
3030 fprintf(f, "%d\n", sizeof(short));
3034 if { (eval echo configure
:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3036 ac_cv_sizeof_short
=`cat conftestval`
3038 echo "configure: failed program was:" >&5
3039 cat conftest.
$ac_ext >&5
3041 ac_cv_sizeof_short
=0
3047 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3048 cat >> confdefs.h
<<EOF
3049 #define SIZEOF_SHORT $ac_cv_sizeof_short
3054 echo $ac_n "checking for working const""... $ac_c" 1>&6
3055 echo "configure:3056: checking for working const" >&5
3056 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 cat > conftest.
$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3065 /* Ultrix mips cc rejects this. */
3066 typedef int charset[2]; const charset x;
3067 /* SunOS 4.1.1 cc rejects this. */
3068 char const *const *ccp;
3070 /* NEC SVR4.0.2 mips cc rejects this. */
3071 struct point {int x, y;};
3072 static struct point const zero = {0,0};
3073 /* AIX XL C 1.02.0.0 rejects this.
3074 It does not let you subtract one const X* pointer from another in an arm
3075 of an if-expression whose if-part is not a constant expression */
3076 const char *g = "string";
3077 ccp = &g + (g ? g-g : 0);
3078 /* HPUX 7.0 cc rejects these. */
3081 ccp = (char const *const *) p;
3082 { /* SCO 3.2v4 cc rejects this. */
3084 char const *s = 0 ? (char *) 0 : (char const *) 0;
3088 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3090 const int *foo = &x[0];
3093 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3094 typedef const int *iptr;
3098 { /* AIX XL C 1.02.0.0 rejects this saying
3099 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3100 struct s { int j; const int *ap[3]; };
3101 struct s *b; b->j = 5;
3103 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3109 if { (eval echo configure
:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113 echo "configure: failed program was:" >&5
3114 cat conftest.
$ac_ext >&5
3121 echo "$ac_t""$ac_cv_c_const" 1>&6
3122 if test $ac_cv_c_const = no
; then
3123 cat >> confdefs.h
<<\EOF
3129 echo $ac_n "checking for inline""... $ac_c" 1>&6
3130 echo "configure:3131: checking for inline" >&5
3131 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3135 for ac_kw
in inline __inline__ __inline
; do
3136 cat > conftest.
$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure
:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3146 ac_cv_c_inline
=$ac_kw; break
3148 echo "configure: failed program was:" >&5
3149 cat conftest.
$ac_ext >&5
3156 echo "$ac_t""$ac_cv_c_inline" 1>&6
3157 case "$ac_cv_c_inline" in
3159 no
) cat >> confdefs.h
<<\EOF
3163 *) cat >> confdefs.h
<<EOF
3164 #define inline $ac_cv_c_inline
3169 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3170 echo "configure:3171: checking whether byte ordering is bigendian" >&5
3171 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 ac_cv_c_bigendian
=unknown
3175 # See if sys/param.h defines the BYTE_ORDER macro.
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <sys/types.h>
3180 #include <sys/param.h>
3183 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3188 if { (eval echo configure
:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190 # It does; now see whether it defined to BIG_ENDIAN or not.
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #include <sys/types.h>
3195 #include <sys/param.h>
3198 #if BYTE_ORDER != BIG_ENDIAN
3203 if { (eval echo configure
:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205 ac_cv_c_bigendian
=yes
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 ac_cv_c_bigendian
=no
3214 echo "configure: failed program was:" >&5
3215 cat conftest.
$ac_ext >&5
3218 if test $ac_cv_c_bigendian = unknown
; then
3219 if test "$cross_compiling" = yes; then
3220 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3226 /* Are we little or big endian? From Harbison&Steele. */
3230 char c[sizeof (long)];
3233 exit (u.c[sizeof (long) - 1] == 1);
3236 if { (eval echo configure
:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3238 ac_cv_c_bigendian
=no
3240 echo "configure: failed program was:" >&5
3241 cat conftest.
$ac_ext >&5
3243 ac_cv_c_bigendian
=yes
3251 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3252 if test $ac_cv_c_bigendian = yes; then
3253 cat >> confdefs.h
<<\EOF
3254 #define WORDS_BIGENDIAN 1
3259 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3260 echo "configure:3261: checking whether char is unsigned" >&5
3261 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 if test "$GCC" = yes; then
3265 # GCC predefines this symbol on systems where it applies.
3266 cat > conftest.
$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #ifdef __CHAR_UNSIGNED__
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275 egrep "yes" >/dev
/null
2>&1; then
3277 ac_cv_c_char_unsigned
=yes
3280 ac_cv_c_char_unsigned
=no
3285 if test "$cross_compiling" = yes; then
3286 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3288 cat > conftest.
$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3292 #if !defined(__STDC__) || __STDC__ != 1
3296 volatile char c = 255; exit(c < 0);
3299 if { (eval echo configure
:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3301 ac_cv_c_char_unsigned
=yes
3303 echo "configure: failed program was:" >&5
3304 cat conftest.
$ac_ext >&5
3306 ac_cv_c_char_unsigned
=no
3314 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3315 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3316 cat >> confdefs.h
<<\EOF
3317 #define __CHAR_UNSIGNED__ 1
3323 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3324 echo "configure:3325: checking return type of signal handlers" >&5
3325 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 cat > conftest.
$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 #include <sys/types.h>
3337 extern "C" void (*signal (int, void (*)(int)))(int);
3339 void (*signal ()) ();
3346 if { (eval echo configure
:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348 ac_cv_type_signal
=void
3350 echo "configure: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3353 ac_cv_type_signal
=int
3358 echo "$ac_t""$ac_cv_type_signal" 1>&6
3359 cat >> confdefs.h
<<EOF
3360 #define RETSIGTYPE $ac_cv_type_signal
3364 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3365 echo "configure:3366: checking for uid_t in sys/types.h" >&5
3366 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 cat > conftest.
$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <sys/types.h>
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 egrep "uid_t" >/dev
/null
2>&1; then
3377 ac_cv_type_uid_t
=yes
3386 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3387 if test $ac_cv_type_uid_t = no
; then
3388 cat >> confdefs.h
<<\EOF
3392 cat >> confdefs.h
<<\EOF
3398 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3399 echo "configure:3400: checking for mode_t" >&5
3400 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 cat > conftest.
$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <sys/types.h>
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3415 ac_cv_type_mode_t
=yes
3418 ac_cv_type_mode_t
=no
3423 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3424 if test $ac_cv_type_mode_t = no
; then
3425 cat >> confdefs.h
<<\EOF
3431 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3432 echo "configure:3433: checking for off_t" >&5
3433 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.
$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 #include <sys/types.h>
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3448 ac_cv_type_off_t
=yes
3456 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3457 if test $ac_cv_type_off_t = no
; then
3458 cat >> confdefs.h
<<\EOF
3464 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3465 echo "configure:3466: checking for size_t" >&5
3466 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 cat > conftest.
$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 #include <sys/types.h>
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3481 ac_cv_type_size_t
=yes
3484 ac_cv_type_size_t
=no
3489 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3490 if test $ac_cv_type_size_t = no
; then
3491 cat >> confdefs.h
<<\EOF
3492 #define size_t unsigned
3497 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3498 echo "configure:3499: checking for pid_t" >&5
3499 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 cat > conftest.
$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <sys/types.h>
3511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3512 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3514 ac_cv_type_pid_t
=yes
3522 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3523 if test $ac_cv_type_pid_t = no
; then
3524 cat >> confdefs.h
<<\EOF
3530 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3531 echo "configure:3532: checking for st_rdev in struct stat" >&5
3532 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3535 cat > conftest.
$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 #include <sys/types.h>
3539 #include <sys/stat.h>
3541 struct stat s; s.st_rdev;
3544 if { (eval echo configure
:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 ac_cv_struct_st_rdev
=yes
3548 echo "configure: failed program was:" >&5
3549 cat conftest.
$ac_ext >&5
3551 ac_cv_struct_st_rdev
=no
3556 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3557 if test $ac_cv_struct_st_rdev = yes; then
3558 cat >> confdefs.h
<<\EOF
3559 #define HAVE_ST_RDEV 1
3564 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3565 echo "configure:3566: checking for d_off in dirent" >&5
3566 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 cat > conftest.
$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3574 #include <sys/types.h>
3577 struct dirent d; d.d_off;
3580 if { (eval echo configure
:3581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3582 ac_cv_dirent_d_off
=yes
3584 echo "configure: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3587 ac_cv_dirent_d_off
=no
3592 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3593 if test $ac_cv_dirent_d_off = yes; then
3594 cat >> confdefs.h
<<\EOF
3595 #define HAVE_DIRENT_D_OFF 1
3600 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3601 echo "configure:3602: checking for ino_t" >&5
3602 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 cat > conftest.
$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <sys/types.h>
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3617 ac_cv_type_ino_t
=yes
3625 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3626 if test $ac_cv_type_ino_t = no
; then
3627 cat >> confdefs.h
<<\EOF
3628 #define ino_t unsigned
3633 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3634 echo "configure:3635: checking for loff_t" >&5
3635 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 cat > conftest.
$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3650 ac_cv_type_loff_t
=yes
3653 ac_cv_type_loff_t
=no
3658 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3659 if test $ac_cv_type_loff_t = no
; then
3660 cat >> confdefs.h
<<\EOF
3661 #define loff_t off_t
3666 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3667 echo "configure:3668: checking for offset_t" >&5
3668 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.
$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3683 ac_cv_type_offset_t
=yes
3686 ac_cv_type_offset_t
=no
3691 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3692 if test $ac_cv_type_offset_t = no
; then
3693 cat >> confdefs.h
<<\EOF
3694 #define offset_t loff_t
3699 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3700 echo "configure:3701: checking for ssize_t" >&5
3701 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 cat > conftest.
$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3716 ac_cv_type_ssize_t
=yes
3719 ac_cv_type_ssize_t
=no
3724 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3725 if test $ac_cv_type_ssize_t = no
; then
3726 cat >> confdefs.h
<<\EOF
3732 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3733 echo "configure:3734: checking for wchar_t" >&5
3734 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.
$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 #include <sys/types.h>
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3749 ac_cv_type_wchar_t
=yes
3752 ac_cv_type_wchar_t
=no
3757 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3758 if test $ac_cv_type_wchar_t = no
; then
3759 cat >> confdefs.h
<<\EOF
3760 #define wchar_t unsigned short
3766 # we need libcups for CUPS support...
3767 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3768 echo "configure:3769: checking for httpConnect in -lcups" >&5
3769 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 ac_save_LIBS
="$LIBS"
3775 cat > conftest.
$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3787 if { (eval echo configure
:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3789 eval "ac_cv_lib_$ac_lib_var=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.
$ac_ext >&5
3794 eval "ac_cv_lib_$ac_lib_var=no"
3797 LIBS
="$ac_save_LIBS"
3800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3803 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3804 cat >> confdefs.h
<<EOF
3805 #define $ac_tr_lib 1
3811 echo "$ac_t""no" 1>&6
3815 # we need libdl for PAM and the new VFS code
3816 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3817 echo "configure:3818: checking for dlopen in -ldl" >&5
3818 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 ac_save_LIBS
="$LIBS"
3824 cat > conftest.
$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3827 /* Override any gcc2 internal prototype to avoid an error. */
3828 /* We use char because int might match the return type of a gcc2
3829 builtin and then its argument prototype would still apply. */
3836 if { (eval echo configure
:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3838 eval "ac_cv_lib_$ac_lib_var=yes"
3840 echo "configure: failed program was:" >&5
3841 cat conftest.
$ac_ext >&5
3843 eval "ac_cv_lib_$ac_lib_var=no"
3846 LIBS
="$ac_save_LIBS"
3849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3852 cat >> confdefs.h
<<\EOF
3853 #define HAVE_LIBDL 1
3857 echo "$ac_t""no" 1>&6
3861 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3862 echo "configure:3863: checking for sig_atomic_t type" >&5
3863 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3867 cat > conftest.
$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3871 #include <sys/types.h>
3881 if { (eval echo configure
:3882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 samba_cv_sig_atomic_t
=yes
3885 echo "configure: failed program was:" >&5
3886 cat conftest.
$ac_ext >&5
3888 samba_cv_sig_atomic_t
=no
3893 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3894 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3895 cat >> confdefs.h
<<\EOF
3896 #define HAVE_SIG_ATOMIC_T_TYPE 1
3901 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3902 echo "configure:3903: checking for errno in errno.h" >&5
3903 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.
$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3915 if { (eval echo configure
:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3919 echo "configure: failed program was:" >&5
3920 cat conftest.
$ac_ext >&5
3922 samba_cv_have_errno
=no
3927 echo "$ac_t""$samba_cv_errno" 1>&6
3928 if test x
"$samba_cv_errno" = x
"yes"; then
3929 cat >> confdefs.h
<<\EOF
3930 #define HAVE_ERRNO_DECL 1
3935 # stupid glibc has the functions but no declaration. grrrr.
3936 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3937 echo "configure:3938: checking for setresuid declaration" >&5
3938 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3942 cat > conftest.
$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3947 int i = (int)setresuid
3950 if { (eval echo configure
:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3952 samba_cv_have_setresuid_decl
=yes
3954 echo "configure: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3957 samba_cv_have_setresuid_decl
=no
3962 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3963 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3964 cat >> confdefs.h
<<\EOF
3965 #define HAVE_SETRESUID_DECL 1
3970 # stupid glibc has the functions but no declaration. grrrr.
3971 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3972 echo "configure:3973: checking for setresgid declaration" >&5
3973 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3977 cat > conftest.
$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3982 int i = (int)setresgid
3985 if { (eval echo configure
:3986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3987 samba_cv_have_setresgid_decl
=yes
3989 echo "configure: failed program was:" >&5
3990 cat conftest.
$ac_ext >&5
3992 samba_cv_have_setresgid_decl
=no
3997 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3998 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3999 cat >> confdefs.h
<<\EOF
4000 #define HAVE_SETRESGID_DECL 1
4005 # and glibc has setresuid under linux but the function does
4006 # nothing until kernel 2.1.44! very dumb.
4007 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4008 echo "configure:4009: checking for real setresuid" >&5
4009 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4013 if test "$cross_compiling" = yes; then
4014 samba_cv_have_setresuid
=cross
4016 cat > conftest.
$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4020 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4022 if { (eval echo configure
:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4024 samba_cv_have_setresuid
=yes
4026 echo "configure: failed program was:" >&5
4027 cat conftest.
$ac_ext >&5
4029 samba_cv_have_setresuid
=no
4036 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4037 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4038 cat >> confdefs.h
<<\EOF
4039 #define HAVE_SETRESUID 1
4044 # Do the same check for setresguid...
4046 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4047 echo "configure:4048: checking for real setresgid" >&5
4048 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4052 if test "$cross_compiling" = yes; then
4053 samba_cv_have_setresgid
=cross
4055 cat > conftest.
$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4060 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4062 if { (eval echo configure
:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4064 samba_cv_have_setresgid
=yes
4066 echo "configure: failed program was:" >&5
4067 cat conftest.
$ac_ext >&5
4069 samba_cv_have_setresgid
=no
4076 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4077 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4078 cat >> confdefs.h
<<\EOF
4079 #define HAVE_SETRESGID 1
4084 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4085 echo "configure:4086: checking for 8-bit clean memcmp" >&5
4086 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4089 if test "$cross_compiling" = yes; then
4090 ac_cv_func_memcmp_clean
=no
4092 cat > conftest.
$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4098 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4099 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4103 if { (eval echo configure
:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4105 ac_cv_func_memcmp_clean
=yes
4107 echo "configure: failed program was:" >&5
4108 cat conftest.
$ac_ext >&5
4110 ac_cv_func_memcmp_clean
=no
4117 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4118 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4121 ###############################################
4122 # test for where we get crypt() from
4123 for ac_func
in crypt
4125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4126 echo "configure:4127: checking for $ac_func" >&5
4127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 cat > conftest.
$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 /* System header to define __stub macros and hopefully few prototypes,
4134 which can conflict with char $ac_func(); below. */
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4143 /* The GNU C library defines this for functions which it implements
4144 to always fail with ENOSYS. Some functions are actually named
4145 something starting with __ and the normal name is an alias. */
4146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4154 if { (eval echo configure
:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4156 eval "ac_cv_func_$ac_func=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.
$ac_ext >&5
4161 eval "ac_cv_func_$ac_func=no"
4166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4169 cat >> confdefs.h
<<EOF
4170 #define $ac_tr_func 1
4174 echo "$ac_t""no" 1>&6
4178 if test x
"$ac_cv_func_crypt" = x
"no"; then
4179 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4180 echo "configure:4181: checking for crypt in -lcrypt" >&5
4181 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 ac_save_LIBS
="$LIBS"
4186 LIBS
="-lcrypt $LIBS"
4187 cat > conftest.
$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4199 if { (eval echo configure
:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4201 eval "ac_cv_lib_$ac_lib_var=yes"
4203 echo "configure: failed program was:" >&5
4204 cat conftest.
$ac_ext >&5
4206 eval "ac_cv_lib_$ac_lib_var=no"
4209 LIBS
="$ac_save_LIBS"
4212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4213 echo "$ac_t""yes" 1>&6
4214 LIBS
="$LIBS -lcrypt";
4215 cat >> confdefs.h
<<\EOF
4216 #define HAVE_CRYPT 1
4220 echo "$ac_t""no" 1>&6
4226 ###############################################
4227 # Readline included by default unless explicitly asked not to
4228 test "${with_readline+set}" != "set" && with_readline
=yes
4230 # test for where we get readline() from
4231 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4232 echo "configure:4233: checking whether to use readline" >&5
4233 # Check whether --with-readline or --without-readline was given.
4234 if test "${with_readline+set}" = set; then
4235 withval
="$with_readline"
4236 case "$with_readline" in
4238 echo "$ac_t""yes" 1>&6
4240 for ac_hdr
in readline.h
history.h readline
/readline.h
4242 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4244 echo "configure:4245: checking for $ac_hdr" >&5
4245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4253 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4254 { (eval echo configure
:4255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4255 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4256 if test -z "$ac_err"; then
4258 eval "ac_cv_header_$ac_safe=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.
$ac_ext >&5
4264 eval "ac_cv_header_$ac_safe=no"
4268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4271 cat >> confdefs.h
<<EOF
4272 #define $ac_tr_hdr 1
4276 echo "$ac_t""no" 1>&6
4280 for ac_hdr
in readline
/history.h
4282 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4284 echo "configure:4285: checking for $ac_hdr" >&5
4285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4288 cat > conftest.
$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4294 { (eval echo configure
:4295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4295 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4296 if test -z "$ac_err"; then
4298 eval "ac_cv_header_$ac_safe=yes"
4301 echo "configure: failed program was:" >&5
4302 cat conftest.
$ac_ext >&5
4304 eval "ac_cv_header_$ac_safe=no"
4308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4311 cat >> confdefs.h
<<EOF
4312 #define $ac_tr_hdr 1
4316 echo "$ac_t""no" 1>&6
4321 for ac_hdr
in readline.h readline
/readline.h
4323 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4325 echo "configure:4326: checking for $ac_hdr" >&5
4326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 cat > conftest.
$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4334 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure
:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4339 eval "ac_cv_header_$ac_safe=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.
$ac_ext >&5
4345 eval "ac_cv_header_$ac_safe=no"
4349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4352 cat >> confdefs.h
<<EOF
4353 #define $ac_tr_hdr 1
4356 for termlib
in ncurses curses termcap terminfo termlib
; do
4357 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4358 echo "configure:4359: checking for tgetent in -l${termlib}" >&5
4359 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 ac_save_LIBS
="$LIBS"
4364 LIBS
="-l${termlib} $LIBS"
4365 cat > conftest.
$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4377 if { (eval echo configure
:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4379 eval "ac_cv_lib_$ac_lib_var=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.
$ac_ext >&5
4384 eval "ac_cv_lib_$ac_lib_var=no"
4387 LIBS
="$ac_save_LIBS"
4390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 TERMLIBS
="-l${termlib}"; break
4394 echo "$ac_t""no" 1>&6
4398 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4399 echo "configure:4400: checking for rl_callback_handler_install in -lreadline" >&5
4400 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 ac_save_LIBS
="$LIBS"
4405 LIBS
="-lreadline $TERMLIBS $LIBS"
4406 cat > conftest.
$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4412 char rl_callback_handler_install();
4415 rl_callback_handler_install()
4418 if { (eval echo configure
:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4420 eval "ac_cv_lib_$ac_lib_var=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.
$ac_ext >&5
4425 eval "ac_cv_lib_$ac_lib_var=no"
4428 LIBS
="$ac_save_LIBS"
4431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 TERMLIBS
="-lreadline $TERMLIBS"
4434 cat >> confdefs.h
<<\EOF
4435 #define HAVE_LIBREADLINE 1
4440 echo "$ac_t""no" 1>&6
4445 echo "$ac_t""no" 1>&6
4451 echo "$ac_t""no" 1>&6
4454 echo "$ac_t""yes" 1>&6
4456 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4457 # alternate readline path
4459 _cppflags
=${CPPFLAGS}
4461 # Add additional search path
4462 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4463 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4465 for ac_hdr
in readline.h
history.h readline
/readline.h
4467 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4469 echo "configure:4470: checking for $ac_hdr" >&5
4470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 cat > conftest.
$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4478 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4479 { (eval echo configure
:4480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4480 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4481 if test -z "$ac_err"; then
4483 eval "ac_cv_header_$ac_safe=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4489 eval "ac_cv_header_$ac_safe=no"
4493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4496 cat >> confdefs.h
<<EOF
4497 #define $ac_tr_hdr 1
4501 echo "$ac_t""no" 1>&6
4505 for ac_hdr
in readline
/history.h
4507 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4509 echo "configure:4510: checking for $ac_hdr" >&5
4510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 cat > conftest.
$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4518 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4519 { (eval echo configure
:4520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4520 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4521 if test -z "$ac_err"; then
4523 eval "ac_cv_header_$ac_safe=yes"
4526 echo "configure: failed program was:" >&5
4527 cat conftest.
$ac_ext >&5
4529 eval "ac_cv_header_$ac_safe=no"
4533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4534 echo "$ac_t""yes" 1>&6
4535 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4536 cat >> confdefs.h
<<EOF
4537 #define $ac_tr_hdr 1
4541 echo "$ac_t""no" 1>&6
4546 for ac_hdr
in readline.h readline
/readline.h
4548 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_hdr" >&5
4551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.
$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4559 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4560 { (eval echo configure
:4561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4561 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4562 if test -z "$ac_err"; then
4564 eval "ac_cv_header_$ac_safe=yes"
4567 echo "configure: failed program was:" >&5
4568 cat conftest.
$ac_ext >&5
4570 eval "ac_cv_header_$ac_safe=no"
4574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4575 echo "$ac_t""yes" 1>&6
4576 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4577 cat >> confdefs.h
<<EOF
4578 #define $ac_tr_hdr 1
4581 for termlib
in ncurses curses termcap terminfo termlib
; do
4582 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4583 echo "configure:4584: checking for tgetent in -l${termlib}" >&5
4584 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 ac_save_LIBS
="$LIBS"
4589 LIBS
="-l${termlib} $LIBS"
4590 cat > conftest.
$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 /* Override any gcc2 internal prototype to avoid an error. */
4594 /* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4602 if { (eval echo configure
:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4604 eval "ac_cv_lib_$ac_lib_var=yes"
4606 echo "configure: failed program was:" >&5
4607 cat conftest.
$ac_ext >&5
4609 eval "ac_cv_lib_$ac_lib_var=no"
4612 LIBS
="$ac_save_LIBS"
4615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4617 TERMLIBS
="-l${termlib}"; break
4619 echo "$ac_t""no" 1>&6
4623 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4624 echo "configure:4625: checking for rl_callback_handler_install in -lreadline" >&5
4625 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 ac_save_LIBS
="$LIBS"
4630 LIBS
="-lreadline $TERMLIBS $LIBS"
4631 cat > conftest.
$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4637 char rl_callback_handler_install();
4640 rl_callback_handler_install()
4643 if { (eval echo configure
:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4645 eval "ac_cv_lib_$ac_lib_var=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.
$ac_ext >&5
4650 eval "ac_cv_lib_$ac_lib_var=no"
4653 LIBS
="$ac_save_LIBS"
4656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4658 TERMLDFLAGS
="-L$with_readline/lib"
4659 TERMCPPFLAGS
="-I$with_readline/include"
4660 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4661 TERMLIBS
="-lreadline $TERMLIBS"
4662 cat >> confdefs.h
<<\EOF
4663 #define HAVE_LIBREADLINE 1
4668 echo "$ac_t""no" 1>&6
4669 TERMLIBS
= CPPFLAGS
=$_cppflags
4673 echo "$ac_t""no" 1>&6
4682 echo "$ac_t""no" 1>&6
4689 # The following test taken from the cvs sources
4690 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4691 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4692 # libsocket.so which has a bad implementation of gethostbyname (it
4693 # only looks in /etc/hosts), so we only look for -lsocket if we need
4695 for ac_func
in connect
4697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_func" >&5
4699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.
$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 /* System header to define __stub macros and hopefully few prototypes,
4706 which can conflict with char $ac_func(); below. */
4708 /* Override any gcc2 internal prototype to avoid an error. */
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4715 /* The GNU C library defines this for functions which it implements
4716 to always fail with ENOSYS. Some functions are actually named
4717 something starting with __ and the normal name is an alias. */
4718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4726 if { (eval echo configure
:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4728 eval "ac_cv_func_$ac_func=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.
$ac_ext >&5
4733 eval "ac_cv_func_$ac_func=no"
4738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4741 cat >> confdefs.h
<<EOF
4742 #define $ac_tr_func 1
4746 echo "$ac_t""no" 1>&6
4750 if test x
"$ac_cv_func_connect" = x
"no"; then
4753 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4754 echo "configure:4755: checking for printf in -lnsl_s" >&5
4755 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 ac_save_LIBS
="$LIBS"
4760 LIBS
="-lnsl_s $LIBS"
4761 cat > conftest.
$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4773 if { (eval echo configure
:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4775 eval "ac_cv_lib_$ac_lib_var=yes"
4777 echo "configure: failed program was:" >&5
4778 cat conftest.
$ac_ext >&5
4780 eval "ac_cv_lib_$ac_lib_var=no"
4783 LIBS
="$ac_save_LIBS"
4786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4788 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4790 cat >> confdefs.h
<<EOF
4791 #define $ac_tr_lib 1
4794 LIBS
="-lnsl_s $LIBS"
4797 echo "$ac_t""no" 1>&6
4803 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4804 echo "configure:4805: checking for printf in -lnsl" >&5
4805 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4809 ac_save_LIBS
="$LIBS"
4811 cat > conftest.
$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4823 if { (eval echo configure
:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4825 eval "ac_cv_lib_$ac_lib_var=yes"
4827 echo "configure: failed program was:" >&5
4828 cat conftest.
$ac_ext >&5
4830 eval "ac_cv_lib_$ac_lib_var=no"
4833 LIBS
="$ac_save_LIBS"
4836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4838 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4839 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4840 cat >> confdefs.h
<<EOF
4841 #define $ac_tr_lib 1
4847 echo "$ac_t""no" 1>&6
4853 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4854 echo "configure:4855: checking for connect in -lsocket" >&5
4855 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4859 ac_save_LIBS
="$LIBS"
4860 LIBS
="-lsocket $LIBS"
4861 cat > conftest.
$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 /* Override any gcc2 internal prototype to avoid an error. */
4865 /* We use char because int might match the return type of a gcc2
4866 builtin and then its argument prototype would still apply. */
4873 if { (eval echo configure
:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4875 eval "ac_cv_lib_$ac_lib_var=yes"
4877 echo "configure: failed program was:" >&5
4878 cat conftest.
$ac_ext >&5
4880 eval "ac_cv_lib_$ac_lib_var=no"
4883 LIBS
="$ac_save_LIBS"
4886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4887 echo "$ac_t""yes" 1>&6
4888 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4890 cat >> confdefs.h
<<EOF
4891 #define $ac_tr_lib 1
4894 LIBS
="-lsocket $LIBS"
4897 echo "$ac_t""no" 1>&6
4903 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4904 echo "configure:4905: checking for connect in -linet" >&5
4905 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 ac_save_LIBS
="$LIBS"
4911 cat > conftest.
$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4923 if { (eval echo configure
:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4925 eval "ac_cv_lib_$ac_lib_var=yes"
4927 echo "configure: failed program was:" >&5
4928 cat conftest.
$ac_ext >&5
4930 eval "ac_cv_lib_$ac_lib_var=no"
4933 LIBS
="$ac_save_LIBS"
4936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4937 echo "$ac_t""yes" 1>&6
4938 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4939 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4940 cat >> confdefs.h
<<EOF
4941 #define $ac_tr_lib 1
4947 echo "$ac_t""no" 1>&6
4951 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4952 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4953 # ac_cv_func_connect=yes
4954 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4955 cat >> confdefs.h
<<\EOF
4956 #define HAVE_CONNECT 1
4962 ###############################################
4963 # test for where we get get_yp_default_domain() from
4964 for ac_func
in yp_get_default_domain
4966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4967 echo "configure:4968: checking for $ac_func" >&5
4968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4971 cat > conftest.
$ac_ext <<EOF
4972 #line 4973 "configure"
4973 #include "confdefs.h"
4974 /* System header to define __stub macros and hopefully few prototypes,
4975 which can conflict with char $ac_func(); below. */
4977 /* Override any gcc2 internal prototype to avoid an error. */
4978 /* We use char because int might match the return type of a gcc2
4979 builtin and then its argument prototype would still apply. */
4984 /* The GNU C library defines this for functions which it implements
4985 to always fail with ENOSYS. Some functions are actually named
4986 something starting with __ and the normal name is an alias. */
4987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4995 if { (eval echo configure
:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4997 eval "ac_cv_func_$ac_func=yes"
4999 echo "configure: failed program was:" >&5
5000 cat conftest.
$ac_ext >&5
5002 eval "ac_cv_func_$ac_func=no"
5007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5008 echo "$ac_t""yes" 1>&6
5009 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5010 cat >> confdefs.h
<<EOF
5011 #define $ac_tr_func 1
5015 echo "$ac_t""no" 1>&6
5019 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5020 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5021 echo "configure:5022: checking for yp_get_default_domain in -lnsl" >&5
5022 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5026 ac_save_LIBS
="$LIBS"
5028 cat > conftest.
$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5031 /* Override any gcc2 internal prototype to avoid an error. */
5032 /* We use char because int might match the return type of a gcc2
5033 builtin and then its argument prototype would still apply. */
5034 char yp_get_default_domain();
5037 yp_get_default_domain()
5040 if { (eval echo configure
:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5042 eval "ac_cv_lib_$ac_lib_var=yes"
5044 echo "configure: failed program was:" >&5
5045 cat conftest.
$ac_ext >&5
5047 eval "ac_cv_lib_$ac_lib_var=no"
5050 LIBS
="$ac_save_LIBS"
5053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5054 echo "$ac_t""yes" 1>&6
5056 cat >> confdefs.h
<<\EOF
5057 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5061 echo "$ac_t""no" 1>&6
5066 # Check if we have execl, if not we need to compile smbrun.
5067 for ac_func
in execl
5069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5070 echo "configure:5071: checking for $ac_func" >&5
5071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 cat > conftest.
$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5077 /* System header to define __stub macros and hopefully few prototypes,
5078 which can conflict with char $ac_func(); below. */
5080 /* Override any gcc2 internal prototype to avoid an error. */
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5087 /* The GNU C library defines this for functions which it implements
5088 to always fail with ENOSYS. Some functions are actually named
5089 something starting with __ and the normal name is an alias. */
5090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5098 if { (eval echo configure
:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5100 eval "ac_cv_func_$ac_func=yes"
5102 echo "configure: failed program was:" >&5
5103 cat conftest.
$ac_ext >&5
5105 eval "ac_cv_func_$ac_func=no"
5110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5111 echo "$ac_t""yes" 1>&6
5112 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5113 cat >> confdefs.h
<<EOF
5114 #define $ac_tr_func 1
5118 echo "$ac_t""no" 1>&6
5122 if test x
"$ac_cv_func_execl" = x
"no"; then
5123 RUNPROG
="bin/smbrun"
5128 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
5130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5131 echo "configure:5132: checking for $ac_func" >&5
5132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5135 cat > conftest.
$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5138 /* System header to define __stub macros and hopefully few prototypes,
5139 which can conflict with char $ac_func(); below. */
5141 /* Override any gcc2 internal prototype to avoid an error. */
5142 /* We use char because int might match the return type of a gcc2
5143 builtin and then its argument prototype would still apply. */
5148 /* The GNU C library defines this for functions which it implements
5149 to always fail with ENOSYS. Some functions are actually named
5150 something starting with __ and the normal name is an alias. */
5151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5159 if { (eval echo configure
:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5161 eval "ac_cv_func_$ac_func=yes"
5163 echo "configure: failed program was:" >&5
5164 cat conftest.
$ac_ext >&5
5166 eval "ac_cv_func_$ac_func=no"
5171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5172 echo "$ac_t""yes" 1>&6
5173 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5174 cat >> confdefs.h
<<EOF
5175 #define $ac_tr_func 1
5179 echo "$ac_t""no" 1>&6
5183 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5186 echo "configure:5187: checking for $ac_func" >&5
5187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 cat > conftest.
$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5193 /* System header to define __stub macros and hopefully few prototypes,
5194 which can conflict with char $ac_func(); below. */
5196 /* Override any gcc2 internal prototype to avoid an error. */
5197 /* We use char because int might match the return type of a gcc2
5198 builtin and then its argument prototype would still apply. */
5203 /* The GNU C library defines this for functions which it implements
5204 to always fail with ENOSYS. Some functions are actually named
5205 something starting with __ and the normal name is an alias. */
5206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5214 if { (eval echo configure
:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5216 eval "ac_cv_func_$ac_func=yes"
5218 echo "configure: failed program was:" >&5
5219 cat conftest.
$ac_ext >&5
5221 eval "ac_cv_func_$ac_func=no"
5226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5227 echo "$ac_t""yes" 1>&6
5228 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5229 cat >> confdefs.h
<<EOF
5230 #define $ac_tr_func 1
5234 echo "$ac_t""no" 1>&6
5238 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
5240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5241 echo "configure:5242: checking for $ac_func" >&5
5242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 cat > conftest.
$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5248 /* System header to define __stub macros and hopefully few prototypes,
5249 which can conflict with char $ac_func(); below. */
5251 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5258 /* The GNU C library defines this for functions which it implements
5259 to always fail with ENOSYS. Some functions are actually named
5260 something starting with __ and the normal name is an alias. */
5261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5269 if { (eval echo configure
:5270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5271 eval "ac_cv_func_$ac_func=yes"
5273 echo "configure: failed program was:" >&5
5274 cat conftest.
$ac_ext >&5
5276 eval "ac_cv_func_$ac_func=no"
5281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5283 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5284 cat >> confdefs.h
<<EOF
5285 #define $ac_tr_func 1
5289 echo "$ac_t""no" 1>&6
5293 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5296 echo "configure:5297: checking for $ac_func" >&5
5297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 cat > conftest.
$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5303 /* System header to define __stub macros and hopefully few prototypes,
5304 which can conflict with char $ac_func(); below. */
5306 /* Override any gcc2 internal prototype to avoid an error. */
5307 /* We use char because int might match the return type of a gcc2
5308 builtin and then its argument prototype would still apply. */
5313 /* The GNU C library defines this for functions which it implements
5314 to always fail with ENOSYS. Some functions are actually named
5315 something starting with __ and the normal name is an alias. */
5316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5324 if { (eval echo configure
:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5326 eval "ac_cv_func_$ac_func=yes"
5328 echo "configure: failed program was:" >&5
5329 cat conftest.
$ac_ext >&5
5331 eval "ac_cv_func_$ac_func=no"
5336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5337 echo "$ac_t""yes" 1>&6
5338 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5339 cat >> confdefs.h
<<EOF
5340 #define $ac_tr_func 1
5344 echo "$ac_t""no" 1>&6
5348 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5351 echo "configure:5352: checking for $ac_func" >&5
5352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5355 cat > conftest.
$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358 /* System header to define __stub macros and hopefully few prototypes,
5359 which can conflict with char $ac_func(); below. */
5361 /* Override any gcc2 internal prototype to avoid an error. */
5362 /* We use char because int might match the return type of a gcc2
5363 builtin and then its argument prototype would still apply. */
5368 /* The GNU C library defines this for functions which it implements
5369 to always fail with ENOSYS. Some functions are actually named
5370 something starting with __ and the normal name is an alias. */
5371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5379 if { (eval echo configure
:5380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5381 eval "ac_cv_func_$ac_func=yes"
5383 echo "configure: failed program was:" >&5
5384 cat conftest.
$ac_ext >&5
5386 eval "ac_cv_func_$ac_func=no"
5391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5392 echo "$ac_t""yes" 1>&6
5393 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5394 cat >> confdefs.h
<<EOF
5395 #define $ac_tr_func 1
5399 echo "$ac_t""no" 1>&6
5403 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5406 echo "configure:5407: checking for $ac_func" >&5
5407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 cat > conftest.
$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char $ac_func(); below. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5423 /* The GNU C library defines this for functions which it implements
5424 to always fail with ENOSYS. Some functions are actually named
5425 something starting with __ and the normal name is an alias. */
5426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5434 if { (eval echo configure
:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5436 eval "ac_cv_func_$ac_func=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.
$ac_ext >&5
5441 eval "ac_cv_func_$ac_func=no"
5446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5449 cat >> confdefs.h
<<EOF
5450 #define $ac_tr_func 1
5454 echo "$ac_t""no" 1>&6
5458 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5461 echo "configure:5462: checking for $ac_func" >&5
5462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.
$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5468 /* System header to define __stub macros and hopefully few prototypes,
5469 which can conflict with char $ac_func(); below. */
5471 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5478 /* The GNU C library defines this for functions which it implements
5479 to always fail with ENOSYS. Some functions are actually named
5480 something starting with __ and the normal name is an alias. */
5481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5489 if { (eval echo configure
:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5491 eval "ac_cv_func_$ac_func=yes"
5493 echo "configure: failed program was:" >&5
5494 cat conftest.
$ac_ext >&5
5496 eval "ac_cv_func_$ac_func=no"
5501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5502 echo "$ac_t""yes" 1>&6
5503 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5504 cat >> confdefs.h
<<EOF
5505 #define $ac_tr_func 1
5509 echo "$ac_t""no" 1>&6
5513 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5516 echo "configure:5517: checking for $ac_func" >&5
5517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5518 echo $ac_n "(cached) $ac_c" 1>&6
5520 cat > conftest.
$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 /* System header to define __stub macros and hopefully few prototypes,
5524 which can conflict with char $ac_func(); below. */
5526 /* Override any gcc2 internal prototype to avoid an error. */
5527 /* We use char because int might match the return type of a gcc2
5528 builtin and then its argument prototype would still apply. */
5533 /* The GNU C library defines this for functions which it implements
5534 to always fail with ENOSYS. Some functions are actually named
5535 something starting with __ and the normal name is an alias. */
5536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5544 if { (eval echo configure
:5545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5546 eval "ac_cv_func_$ac_func=yes"
5548 echo "configure: failed program was:" >&5
5549 cat conftest.
$ac_ext >&5
5551 eval "ac_cv_func_$ac_func=no"
5556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5557 echo "$ac_t""yes" 1>&6
5558 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5559 cat >> confdefs.h
<<EOF
5560 #define $ac_tr_func 1
5564 echo "$ac_t""no" 1>&6
5568 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5571 echo "configure:5572: checking for $ac_func" >&5
5572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 cat > conftest.
$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5578 /* System header to define __stub macros and hopefully few prototypes,
5579 which can conflict with char $ac_func(); below. */
5581 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */
5588 /* The GNU C library defines this for functions which it implements
5589 to always fail with ENOSYS. Some functions are actually named
5590 something starting with __ and the normal name is an alias. */
5591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5599 if { (eval echo configure
:5600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5601 eval "ac_cv_func_$ac_func=yes"
5603 echo "configure: failed program was:" >&5
5604 cat conftest.
$ac_ext >&5
5606 eval "ac_cv_func_$ac_func=no"
5611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5612 echo "$ac_t""yes" 1>&6
5613 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5614 cat >> confdefs.h
<<EOF
5615 #define $ac_tr_func 1
5619 echo "$ac_t""no" 1>&6
5624 # syscall() is needed for smbwrapper.
5625 for ac_func
in syscall
5627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5628 echo "configure:5629: checking for $ac_func" >&5
5629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5632 cat > conftest.
$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5635 /* System header to define __stub macros and hopefully few prototypes,
5636 which can conflict with char $ac_func(); below. */
5638 /* Override any gcc2 internal prototype to avoid an error. */
5639 /* We use char because int might match the return type of a gcc2
5640 builtin and then its argument prototype would still apply. */
5645 /* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5656 if { (eval echo configure
:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5658 eval "ac_cv_func_$ac_func=yes"
5660 echo "configure: failed program was:" >&5
5661 cat conftest.
$ac_ext >&5
5663 eval "ac_cv_func_$ac_func=no"
5668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5670 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5671 cat >> confdefs.h
<<EOF
5672 #define $ac_tr_func 1
5676 echo "$ac_t""no" 1>&6
5681 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5684 echo "configure:5685: checking for $ac_func" >&5
5685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6
5688 cat > conftest.
$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691 /* System header to define __stub macros and hopefully few prototypes,
5692 which can conflict with char $ac_func(); below. */
5694 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5701 /* The GNU C library defines this for functions which it implements
5702 to always fail with ENOSYS. Some functions are actually named
5703 something starting with __ and the normal name is an alias. */
5704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5712 if { (eval echo configure
:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5714 eval "ac_cv_func_$ac_func=yes"
5716 echo "configure: failed program was:" >&5
5717 cat conftest.
$ac_ext >&5
5719 eval "ac_cv_func_$ac_func=no"
5724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5725 echo "$ac_t""yes" 1>&6
5726 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5727 cat >> confdefs.h
<<EOF
5728 #define $ac_tr_func 1
5732 echo "$ac_t""no" 1>&6
5736 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5739 echo "configure:5740: checking for $ac_func" >&5
5740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 cat > conftest.
$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746 /* System header to define __stub macros and hopefully few prototypes,
5747 which can conflict with char $ac_func(); below. */
5749 /* Override any gcc2 internal prototype to avoid an error. */
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5756 /* The GNU C library defines this for functions which it implements
5757 to always fail with ENOSYS. Some functions are actually named
5758 something starting with __ and the normal name is an alias. */
5759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5767 if { (eval echo configure
:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5769 eval "ac_cv_func_$ac_func=yes"
5771 echo "configure: failed program was:" >&5
5772 cat conftest.
$ac_ext >&5
5774 eval "ac_cv_func_$ac_func=no"
5779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5780 echo "$ac_t""yes" 1>&6
5781 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5782 cat >> confdefs.h
<<EOF
5783 #define $ac_tr_func 1
5787 echo "$ac_t""no" 1>&6
5791 for ac_func
in __getcwd _getcwd
5793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5794 echo "configure:5795: checking for $ac_func" >&5
5795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5798 cat > conftest.
$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5801 /* System header to define __stub macros and hopefully few prototypes,
5802 which can conflict with char $ac_func(); below. */
5804 /* Override any gcc2 internal prototype to avoid an error. */
5805 /* We use char because int might match the return type of a gcc2
5806 builtin and then its argument prototype would still apply. */
5811 /* The GNU C library defines this for functions which it implements
5812 to always fail with ENOSYS. Some functions are actually named
5813 something starting with __ and the normal name is an alias. */
5814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5822 if { (eval echo configure
:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5824 eval "ac_cv_func_$ac_func=yes"
5826 echo "configure: failed program was:" >&5
5827 cat conftest.
$ac_ext >&5
5829 eval "ac_cv_func_$ac_func=no"
5834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5835 echo "$ac_t""yes" 1>&6
5836 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5837 cat >> confdefs.h
<<EOF
5838 #define $ac_tr_func 1
5842 echo "$ac_t""no" 1>&6
5846 for ac_func
in __xstat __fxstat __lxstat
5848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5849 echo "configure:5850: checking for $ac_func" >&5
5850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6
5853 cat > conftest.
$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 /* System header to define __stub macros and hopefully few prototypes,
5857 which can conflict with char $ac_func(); below. */
5859 /* Override any gcc2 internal prototype to avoid an error. */
5860 /* We use char because int might match the return type of a gcc2
5861 builtin and then its argument prototype would still apply. */
5866 /* The GNU C library defines this for functions which it implements
5867 to always fail with ENOSYS. Some functions are actually named
5868 something starting with __ and the normal name is an alias. */
5869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5877 if { (eval echo configure
:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5879 eval "ac_cv_func_$ac_func=yes"
5881 echo "configure: failed program was:" >&5
5882 cat conftest.
$ac_ext >&5
5884 eval "ac_cv_func_$ac_func=no"
5889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5890 echo "$ac_t""yes" 1>&6
5891 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5892 cat >> confdefs.h
<<EOF
5893 #define $ac_tr_func 1
5897 echo "$ac_t""no" 1>&6
5901 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5904 echo "configure:5905: checking for $ac_func" >&5
5905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5906 echo $ac_n "(cached) $ac_c" 1>&6
5908 cat > conftest.
$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5911 /* System header to define __stub macros and hopefully few prototypes,
5912 which can conflict with char $ac_func(); below. */
5914 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5921 /* The GNU C library defines this for functions which it implements
5922 to always fail with ENOSYS. Some functions are actually named
5923 something starting with __ and the normal name is an alias. */
5924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5932 if { (eval echo configure
:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5934 eval "ac_cv_func_$ac_func=yes"
5936 echo "configure: failed program was:" >&5
5937 cat conftest.
$ac_ext >&5
5939 eval "ac_cv_func_$ac_func=no"
5944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5945 echo "$ac_t""yes" 1>&6
5946 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5947 cat >> confdefs.h
<<EOF
5948 #define $ac_tr_func 1
5952 echo "$ac_t""no" 1>&6
5956 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5959 echo "configure:5960: checking for $ac_func" >&5
5960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 cat > conftest.
$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 /* System header to define __stub macros and hopefully few prototypes,
5967 which can conflict with char $ac_func(); below. */
5969 /* Override any gcc2 internal prototype to avoid an error. */
5970 /* We use char because int might match the return type of a gcc2
5971 builtin and then its argument prototype would still apply. */
5976 /* The GNU C library defines this for functions which it implements
5977 to always fail with ENOSYS. Some functions are actually named
5978 something starting with __ and the normal name is an alias. */
5979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5987 if { (eval echo configure
:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5989 eval "ac_cv_func_$ac_func=yes"
5991 echo "configure: failed program was:" >&5
5992 cat conftest.
$ac_ext >&5
5994 eval "ac_cv_func_$ac_func=no"
5999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6000 echo "$ac_t""yes" 1>&6
6001 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6002 cat >> confdefs.h
<<EOF
6003 #define $ac_tr_func 1
6007 echo "$ac_t""no" 1>&6
6011 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6014 echo "configure:6015: checking for $ac_func" >&5
6015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6018 cat > conftest.
$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 /* System header to define __stub macros and hopefully few prototypes,
6022 which can conflict with char $ac_func(); below. */
6024 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6031 /* The GNU C library defines this for functions which it implements
6032 to always fail with ENOSYS. Some functions are actually named
6033 something starting with __ and the normal name is an alias. */
6034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6042 if { (eval echo configure
:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6044 eval "ac_cv_func_$ac_func=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.
$ac_ext >&5
6049 eval "ac_cv_func_$ac_func=no"
6054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6056 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6057 cat >> confdefs.h
<<EOF
6058 #define $ac_tr_func 1
6062 echo "$ac_t""no" 1>&6
6066 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6069 echo "configure:6070: checking for $ac_func" >&5
6070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6073 cat > conftest.
$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 /* System header to define __stub macros and hopefully few prototypes,
6077 which can conflict with char $ac_func(); below. */
6079 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6086 /* The GNU C library defines this for functions which it implements
6087 to always fail with ENOSYS. Some functions are actually named
6088 something starting with __ and the normal name is an alias. */
6089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6097 if { (eval echo configure
:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6099 eval "ac_cv_func_$ac_func=yes"
6101 echo "configure: failed program was:" >&5
6102 cat conftest.
$ac_ext >&5
6104 eval "ac_cv_func_$ac_func=no"
6109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6110 echo "$ac_t""yes" 1>&6
6111 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6112 cat >> confdefs.h
<<EOF
6113 #define $ac_tr_func 1
6117 echo "$ac_t""no" 1>&6
6121 for ac_func
in _write __write _fork __fork
6123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6124 echo "configure:6125: checking for $ac_func" >&5
6125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6128 cat > conftest.
$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6131 /* System header to define __stub macros and hopefully few prototypes,
6132 which can conflict with char $ac_func(); below. */
6134 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6141 /* The GNU C library defines this for functions which it implements
6142 to always fail with ENOSYS. Some functions are actually named
6143 something starting with __ and the normal name is an alias. */
6144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6152 if { (eval echo configure
:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6154 eval "ac_cv_func_$ac_func=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.
$ac_ext >&5
6159 eval "ac_cv_func_$ac_func=no"
6164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6165 echo "$ac_t""yes" 1>&6
6166 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6167 cat >> confdefs.h
<<EOF
6168 #define $ac_tr_func 1
6172 echo "$ac_t""no" 1>&6
6176 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6179 echo "configure:6180: checking for $ac_func" >&5
6180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6183 cat > conftest.
$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6186 /* System header to define __stub macros and hopefully few prototypes,
6187 which can conflict with char $ac_func(); below. */
6189 /* Override any gcc2 internal prototype to avoid an error. */
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6196 /* The GNU C library defines this for functions which it implements
6197 to always fail with ENOSYS. Some functions are actually named
6198 something starting with __ and the normal name is an alias. */
6199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6207 if { (eval echo configure
:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6209 eval "ac_cv_func_$ac_func=yes"
6211 echo "configure: failed program was:" >&5
6212 cat conftest.
$ac_ext >&5
6214 eval "ac_cv_func_$ac_func=no"
6219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6220 echo "$ac_t""yes" 1>&6
6221 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6222 cat >> confdefs.h
<<EOF
6223 #define $ac_tr_func 1
6227 echo "$ac_t""no" 1>&6
6231 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6234 echo "configure:6235: checking for $ac_func" >&5
6235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6236 echo $ac_n "(cached) $ac_c" 1>&6
6238 cat > conftest.
$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6241 /* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char $ac_func(); below. */
6244 /* Override any gcc2 internal prototype to avoid an error. */
6245 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6251 /* The GNU C library defines this for functions which it implements
6252 to always fail with ENOSYS. Some functions are actually named
6253 something starting with __ and the normal name is an alias. */
6254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6262 if { (eval echo configure
:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6264 eval "ac_cv_func_$ac_func=yes"
6266 echo "configure: failed program was:" >&5
6267 cat conftest.
$ac_ext >&5
6269 eval "ac_cv_func_$ac_func=no"
6274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6275 echo "$ac_t""yes" 1>&6
6276 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6277 cat >> confdefs.h
<<EOF
6278 #define $ac_tr_func 1
6282 echo "$ac_t""no" 1>&6
6286 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6289 echo "configure:6290: checking for $ac_func" >&5
6290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 cat > conftest.
$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 /* System header to define __stub macros and hopefully few prototypes,
6297 which can conflict with char $ac_func(); below. */
6299 /* Override any gcc2 internal prototype to avoid an error. */
6300 /* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6306 /* The GNU C library defines this for functions which it implements
6307 to always fail with ENOSYS. Some functions are actually named
6308 something starting with __ and the normal name is an alias. */
6309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6317 if { (eval echo configure
:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6319 eval "ac_cv_func_$ac_func=yes"
6321 echo "configure: failed program was:" >&5
6322 cat conftest.
$ac_ext >&5
6324 eval "ac_cv_func_$ac_func=no"
6329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6331 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6332 cat >> confdefs.h
<<EOF
6333 #define $ac_tr_func 1
6337 echo "$ac_t""no" 1>&6
6341 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6344 echo "configure:6345: checking for $ac_func" >&5
6345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6348 cat > conftest.
$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6351 /* System header to define __stub macros and hopefully few prototypes,
6352 which can conflict with char $ac_func(); below. */
6354 /* Override any gcc2 internal prototype to avoid an error. */
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6361 /* The GNU C library defines this for functions which it implements
6362 to always fail with ENOSYS. Some functions are actually named
6363 something starting with __ and the normal name is an alias. */
6364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6372 if { (eval echo configure
:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6374 eval "ac_cv_func_$ac_func=yes"
6376 echo "configure: failed program was:" >&5
6377 cat conftest.
$ac_ext >&5
6379 eval "ac_cv_func_$ac_func=no"
6384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6385 echo "$ac_t""yes" 1>&6
6386 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6387 cat >> confdefs.h
<<EOF
6388 #define $ac_tr_func 1
6392 echo "$ac_t""no" 1>&6
6396 for ac_func
in open64 _open64 __open64 creat64
6398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6399 echo "configure:6400: checking for $ac_func" >&5
6400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6403 cat > conftest.
$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* System header to define __stub macros and hopefully few prototypes,
6407 which can conflict with char $ac_func(); below. */
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */
6416 /* The GNU C library defines this for functions which it implements
6417 to always fail with ENOSYS. Some functions are actually named
6418 something starting with __ and the normal name is an alias. */
6419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6427 if { (eval echo configure
:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6429 eval "ac_cv_func_$ac_func=yes"
6431 echo "configure: failed program was:" >&5
6432 cat conftest.
$ac_ext >&5
6434 eval "ac_cv_func_$ac_func=no"
6439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6441 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6442 cat >> confdefs.h
<<EOF
6443 #define $ac_tr_func 1
6447 echo "$ac_t""no" 1>&6
6453 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6456 if test x
$ac_cv_func_stat64 = xno
; then
6457 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6458 echo "configure:6459: checking for stat64 in <sys/stat.h>" >&5
6459 cat > conftest.
$ac_ext <<EOF
6460 #line 6461 "configure"
6461 #include "confdefs.h"
6463 #if defined(HAVE_UNISTD_H)
6466 #include <sys/stat.h>
6469 struct stat64 st64; exit(stat64(".",&st64));
6472 if { (eval echo configure
:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6474 ac_cv_func_stat64
=yes
6476 echo "configure: failed program was:" >&5
6477 cat conftest.
$ac_ext >&5
6480 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6481 if test x
$ac_cv_func_stat64 = xyes
; then
6482 cat >> confdefs.h
<<\EOF
6483 #define HAVE_STAT64 1
6489 if test x
$ac_cv_func_lstat64 = xno
; then
6490 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6491 echo "configure:6492: checking for lstat64 in <sys/stat.h>" >&5
6492 cat > conftest.
$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6496 #if defined(HAVE_UNISTD_H)
6499 #include <sys/stat.h>
6502 struct stat64 st64; exit(lstat64(".",&st64));
6505 if { (eval echo configure
:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6507 ac_cv_func_lstat64
=yes
6509 echo "configure: failed program was:" >&5
6510 cat conftest.
$ac_ext >&5
6513 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6514 if test x
$ac_cv_func_lstat64 = xyes
; then
6515 cat >> confdefs.h
<<\EOF
6516 #define HAVE_LSTAT64 1
6522 if test x
$ac_cv_func_fstat64 = xno
; then
6523 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6524 echo "configure:6525: checking for fstat64 in <sys/stat.h>" >&5
6525 cat > conftest.
$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6529 #if defined(HAVE_UNISTD_H)
6532 #include <sys/stat.h>
6535 struct stat64 st64; exit(fstat64(0,&st64));
6538 if { (eval echo configure
:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6540 ac_cv_func_fstat64
=yes
6542 echo "configure: failed program was:" >&5
6543 cat conftest.
$ac_ext >&5
6546 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6547 if test x
$ac_cv_func_fstat64 = xyes
; then
6548 cat >> confdefs.h
<<\EOF
6549 #define HAVE_FSTAT64 1
6556 # If no strcasecmp, check for it in some known places
6557 # It is in -lresolv on ReliantUNIX and UnixWare
6558 # -lresolve *must* follow -lnsl for name resolution to work properly
6561 if test x
$ac_cv_func_strcasecmp = xno
; then
6562 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6563 echo "configure:6564: checking for strcasecmp in -lresolv" >&5
6564 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6568 ac_save_LIBS
="$LIBS"
6569 LIBS
="-lresolv $LIBS"
6570 cat > conftest.
$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6582 if { (eval echo configure
:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6584 eval "ac_cv_lib_$ac_lib_var=yes"
6586 echo "configure: failed program was:" >&5
6587 cat conftest.
$ac_ext >&5
6589 eval "ac_cv_lib_$ac_lib_var=no"
6592 LIBS
="$ac_save_LIBS"
6595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6596 echo "$ac_t""yes" 1>&6
6597 LIBS
="$LIBS -lresolv"
6598 cat >> confdefs.h
<<\EOF
6599 #define HAVE_STRCASECMP 1
6603 echo "$ac_t""no" 1>&6
6609 # Check for the functions putprpwnam, set_auth_parameters,
6610 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6611 # Needed for OSF1 and HPUX.
6615 *-lsecurity*) for ac_func
in putprpwnam
6617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6618 echo "configure:6619: checking for $ac_func" >&5
6619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6620 echo $ac_n "(cached) $ac_c" 1>&6
6622 cat > conftest.
$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 /* System header to define __stub macros and hopefully few prototypes,
6626 which can conflict with char $ac_func(); below. */
6628 /* Override any gcc2 internal prototype to avoid an error. */
6629 /* We use char because int might match the return type of a gcc2
6630 builtin and then its argument prototype would still apply. */
6635 /* The GNU C library defines this for functions which it implements
6636 to always fail with ENOSYS. Some functions are actually named
6637 something starting with __ and the normal name is an alias. */
6638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6646 if { (eval echo configure
:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6648 eval "ac_cv_func_$ac_func=yes"
6650 echo "configure: failed program was:" >&5
6651 cat conftest.
$ac_ext >&5
6653 eval "ac_cv_func_$ac_func=no"
6658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6661 cat >> confdefs.h
<<EOF
6662 #define $ac_tr_func 1
6666 echo "$ac_t""no" 1>&6
6670 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6671 echo "configure:6672: checking for putprpwnam in -lsecurity" >&5
6672 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6676 ac_save_LIBS
="$LIBS"
6677 LIBS
="-lsecurity $LIBS"
6678 cat > conftest.
$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6690 if { (eval echo configure
:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6692 eval "ac_cv_lib_$ac_lib_var=yes"
6694 echo "configure: failed program was:" >&5
6695 cat conftest.
$ac_ext >&5
6697 eval "ac_cv_lib_$ac_lib_var=no"
6700 LIBS
="$ac_save_LIBS"
6703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6704 echo "$ac_t""yes" 1>&6
6705 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6707 cat >> confdefs.h
<<EOF
6708 #define $ac_tr_lib 1
6711 LIBS
="-lsecurity $LIBS"
6714 echo "$ac_t""no" 1>&6
6717 for ac_func
in putprpwnam
6719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6720 echo "configure:6721: checking for $ac_func" >&5
6721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 cat > conftest.
$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 /* System header to define __stub macros and hopefully few prototypes,
6728 which can conflict with char $ac_func(); below. */
6730 /* Override any gcc2 internal prototype to avoid an error. */
6731 /* We use char because int might match the return type of a gcc2
6732 builtin and then its argument prototype would still apply. */
6737 /* The GNU C library defines this for functions which it implements
6738 to always fail with ENOSYS. Some functions are actually named
6739 something starting with __ and the normal name is an alias. */
6740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6748 if { (eval echo configure
:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6750 eval "ac_cv_func_$ac_func=yes"
6752 echo "configure: failed program was:" >&5
6753 cat conftest.
$ac_ext >&5
6755 eval "ac_cv_func_$ac_func=no"
6760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6761 echo "$ac_t""yes" 1>&6
6762 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6763 cat >> confdefs.h
<<EOF
6764 #define $ac_tr_func 1
6768 echo "$ac_t""no" 1>&6
6776 *-lsec*) for ac_func
in putprpwnam
6778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6779 echo "configure:6780: checking for $ac_func" >&5
6780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6781 echo $ac_n "(cached) $ac_c" 1>&6
6783 cat > conftest.
$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 /* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char $ac_func(); below. */
6789 /* Override any gcc2 internal prototype to avoid an error. */
6790 /* We use char because int might match the return type of a gcc2
6791 builtin and then its argument prototype would still apply. */
6796 /* The GNU C library defines this for functions which it implements
6797 to always fail with ENOSYS. Some functions are actually named
6798 something starting with __ and the normal name is an alias. */
6799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6807 if { (eval echo configure
:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6809 eval "ac_cv_func_$ac_func=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.
$ac_ext >&5
6814 eval "ac_cv_func_$ac_func=no"
6819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6822 cat >> confdefs.h
<<EOF
6823 #define $ac_tr_func 1
6827 echo "$ac_t""no" 1>&6
6831 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6832 echo "configure:6833: checking for putprpwnam in -lsec" >&5
6833 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 ac_save_LIBS
="$LIBS"
6839 cat > conftest.
$ac_ext <<EOF
6840 #line 6841 "configure"
6841 #include "confdefs.h"
6842 /* Override any gcc2 internal prototype to avoid an error. */
6843 /* We use char because int might match the return type of a gcc2
6844 builtin and then its argument prototype would still apply. */
6851 if { (eval echo configure
:6852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6853 eval "ac_cv_lib_$ac_lib_var=yes"
6855 echo "configure: failed program was:" >&5
6856 cat conftest.
$ac_ext >&5
6858 eval "ac_cv_lib_$ac_lib_var=no"
6861 LIBS
="$ac_save_LIBS"
6864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6866 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6867 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6868 cat >> confdefs.h
<<EOF
6869 #define $ac_tr_lib 1
6875 echo "$ac_t""no" 1>&6
6878 for ac_func
in putprpwnam
6880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6881 echo "configure:6882: checking for $ac_func" >&5
6882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6883 echo $ac_n "(cached) $ac_c" 1>&6
6885 cat > conftest.
$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 /* System header to define __stub macros and hopefully few prototypes,
6889 which can conflict with char $ac_func(); below. */
6891 /* Override any gcc2 internal prototype to avoid an error. */
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6898 /* The GNU C library defines this for functions which it implements
6899 to always fail with ENOSYS. Some functions are actually named
6900 something starting with __ and the normal name is an alias. */
6901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6909 if { (eval echo configure
:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6911 eval "ac_cv_func_$ac_func=yes"
6913 echo "configure: failed program was:" >&5
6914 cat conftest.
$ac_ext >&5
6916 eval "ac_cv_func_$ac_func=no"
6921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6922 echo "$ac_t""yes" 1>&6
6923 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6924 cat >> confdefs.h
<<EOF
6925 #define $ac_tr_func 1
6929 echo "$ac_t""no" 1>&6
6938 *-lsecurity*) for ac_func
in set_auth_parameters
6940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6941 echo "configure:6942: checking for $ac_func" >&5
6942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6945 cat > conftest.
$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char $ac_func(); below. */
6951 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6958 /* The GNU C library defines this for functions which it implements
6959 to always fail with ENOSYS. Some functions are actually named
6960 something starting with __ and the normal name is an alias. */
6961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6969 if { (eval echo configure
:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6971 eval "ac_cv_func_$ac_func=yes"
6973 echo "configure: failed program was:" >&5
6974 cat conftest.
$ac_ext >&5
6976 eval "ac_cv_func_$ac_func=no"
6981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6982 echo "$ac_t""yes" 1>&6
6983 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6984 cat >> confdefs.h
<<EOF
6985 #define $ac_tr_func 1
6989 echo "$ac_t""no" 1>&6
6993 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6994 echo "configure:6995: checking for set_auth_parameters in -lsecurity" >&5
6995 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6999 ac_save_LIBS
="$LIBS"
7000 LIBS
="-lsecurity $LIBS"
7001 cat > conftest.
$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 /* Override any gcc2 internal prototype to avoid an error. */
7005 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7007 char set_auth_parameters();
7010 set_auth_parameters()
7013 if { (eval echo configure
:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7015 eval "ac_cv_lib_$ac_lib_var=yes"
7017 echo "configure: failed program was:" >&5
7018 cat conftest.
$ac_ext >&5
7020 eval "ac_cv_lib_$ac_lib_var=no"
7023 LIBS
="$ac_save_LIBS"
7026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7027 echo "$ac_t""yes" 1>&6
7028 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7030 cat >> confdefs.h
<<EOF
7031 #define $ac_tr_lib 1
7034 LIBS
="-lsecurity $LIBS"
7037 echo "$ac_t""no" 1>&6
7040 for ac_func
in set_auth_parameters
7042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7043 echo "configure:7044: checking for $ac_func" >&5
7044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7045 echo $ac_n "(cached) $ac_c" 1>&6
7047 cat > conftest.
$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char $ac_func(); below. */
7053 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7060 /* The GNU C library defines this for functions which it implements
7061 to always fail with ENOSYS. Some functions are actually named
7062 something starting with __ and the normal name is an alias. */
7063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7071 if { (eval echo configure
:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7073 eval "ac_cv_func_$ac_func=yes"
7075 echo "configure: failed program was:" >&5
7076 cat conftest.
$ac_ext >&5
7078 eval "ac_cv_func_$ac_func=no"
7083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7084 echo "$ac_t""yes" 1>&6
7085 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7086 cat >> confdefs.h
<<EOF
7087 #define $ac_tr_func 1
7091 echo "$ac_t""no" 1>&6
7099 *-lsec*) for ac_func
in set_auth_parameters
7101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7102 echo "configure:7103: checking for $ac_func" >&5
7103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7104 echo $ac_n "(cached) $ac_c" 1>&6
7106 cat > conftest.
$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7109 /* System header to define __stub macros and hopefully few prototypes,
7110 which can conflict with char $ac_func(); below. */
7112 /* Override any gcc2 internal prototype to avoid an error. */
7113 /* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7119 /* The GNU C library defines this for functions which it implements
7120 to always fail with ENOSYS. Some functions are actually named
7121 something starting with __ and the normal name is an alias. */
7122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7130 if { (eval echo configure
:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7132 eval "ac_cv_func_$ac_func=yes"
7134 echo "configure: failed program was:" >&5
7135 cat conftest.
$ac_ext >&5
7137 eval "ac_cv_func_$ac_func=no"
7142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7143 echo "$ac_t""yes" 1>&6
7144 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7145 cat >> confdefs.h
<<EOF
7146 #define $ac_tr_func 1
7150 echo "$ac_t""no" 1>&6
7154 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7155 echo "configure:7156: checking for set_auth_parameters in -lsec" >&5
7156 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7158 echo $ac_n "(cached) $ac_c" 1>&6
7160 ac_save_LIBS
="$LIBS"
7162 cat > conftest.
$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7165 /* Override any gcc2 internal prototype to avoid an error. */
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7168 char set_auth_parameters();
7171 set_auth_parameters()
7174 if { (eval echo configure
:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7176 eval "ac_cv_lib_$ac_lib_var=yes"
7178 echo "configure: failed program was:" >&5
7179 cat conftest.
$ac_ext >&5
7181 eval "ac_cv_lib_$ac_lib_var=no"
7184 LIBS
="$ac_save_LIBS"
7187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7188 echo "$ac_t""yes" 1>&6
7189 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7191 cat >> confdefs.h
<<EOF
7192 #define $ac_tr_lib 1
7198 echo "$ac_t""no" 1>&6
7201 for ac_func
in set_auth_parameters
7203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7204 echo "configure:7205: checking for $ac_func" >&5
7205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7206 echo $ac_n "(cached) $ac_c" 1>&6
7208 cat > conftest.
$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 /* System header to define __stub macros and hopefully few prototypes,
7212 which can conflict with char $ac_func(); below. */
7214 /* Override any gcc2 internal prototype to avoid an error. */
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7221 /* The GNU C library defines this for functions which it implements
7222 to always fail with ENOSYS. Some functions are actually named
7223 something starting with __ and the normal name is an alias. */
7224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7232 if { (eval echo configure
:7233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7234 eval "ac_cv_func_$ac_func=yes"
7236 echo "configure: failed program was:" >&5
7237 cat conftest.
$ac_ext >&5
7239 eval "ac_cv_func_$ac_func=no"
7244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7245 echo "$ac_t""yes" 1>&6
7246 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7247 cat >> confdefs.h
<<EOF
7248 #define $ac_tr_func 1
7252 echo "$ac_t""no" 1>&6
7260 # UnixWare 7.x has its getspnam in -lgen
7262 *-lgen*) for ac_func
in getspnam
7264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7265 echo "configure:7266: checking for $ac_func" >&5
7266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7267 echo $ac_n "(cached) $ac_c" 1>&6
7269 cat > conftest.
$ac_ext <<EOF
7270 #line 7271 "configure"
7271 #include "confdefs.h"
7272 /* System header to define __stub macros and hopefully few prototypes,
7273 which can conflict with char $ac_func(); below. */
7275 /* Override any gcc2 internal prototype to avoid an error. */
7276 /* We use char because int might match the return type of a gcc2
7277 builtin and then its argument prototype would still apply. */
7282 /* The GNU C library defines this for functions which it implements
7283 to always fail with ENOSYS. Some functions are actually named
7284 something starting with __ and the normal name is an alias. */
7285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7293 if { (eval echo configure
:7294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7295 eval "ac_cv_func_$ac_func=yes"
7297 echo "configure: failed program was:" >&5
7298 cat conftest.
$ac_ext >&5
7300 eval "ac_cv_func_$ac_func=no"
7305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7306 echo "$ac_t""yes" 1>&6
7307 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7308 cat >> confdefs.h
<<EOF
7309 #define $ac_tr_func 1
7313 echo "$ac_t""no" 1>&6
7317 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7318 echo "configure:7319: checking for getspnam in -lgen" >&5
7319 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7321 echo $ac_n "(cached) $ac_c" 1>&6
7323 ac_save_LIBS
="$LIBS"
7325 cat > conftest.
$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7328 /* Override any gcc2 internal prototype to avoid an error. */
7329 /* We use char because int might match the return type of a gcc2
7330 builtin and then its argument prototype would still apply. */
7337 if { (eval echo configure
:7338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7339 eval "ac_cv_lib_$ac_lib_var=yes"
7341 echo "configure: failed program was:" >&5
7342 cat conftest.
$ac_ext >&5
7344 eval "ac_cv_lib_$ac_lib_var=no"
7347 LIBS
="$ac_save_LIBS"
7350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7351 echo "$ac_t""yes" 1>&6
7352 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7354 cat >> confdefs.h
<<EOF
7355 #define $ac_tr_lib 1
7361 echo "$ac_t""no" 1>&6
7364 for ac_func
in getspnam
7366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7367 echo "configure:7368: checking for $ac_func" >&5
7368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7369 echo $ac_n "(cached) $ac_c" 1>&6
7371 cat > conftest.
$ac_ext <<EOF
7372 #line 7373 "configure"
7373 #include "confdefs.h"
7374 /* System header to define __stub macros and hopefully few prototypes,
7375 which can conflict with char $ac_func(); below. */
7377 /* Override any gcc2 internal prototype to avoid an error. */
7378 /* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7384 /* The GNU C library defines this for functions which it implements
7385 to always fail with ENOSYS. Some functions are actually named
7386 something starting with __ and the normal name is an alias. */
7387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7395 if { (eval echo configure
:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7397 eval "ac_cv_func_$ac_func=yes"
7399 echo "configure: failed program was:" >&5
7400 cat conftest.
$ac_ext >&5
7402 eval "ac_cv_func_$ac_func=no"
7407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7408 echo "$ac_t""yes" 1>&6
7409 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7410 cat >> confdefs.h
<<EOF
7411 #define $ac_tr_func 1
7415 echo "$ac_t""no" 1>&6
7424 *-lsecurity*) for ac_func
in getspnam
7426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7427 echo "configure:7428: checking for $ac_func" >&5
7428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7431 cat > conftest.
$ac_ext <<EOF
7432 #line 7433 "configure"
7433 #include "confdefs.h"
7434 /* System header to define __stub macros and hopefully few prototypes,
7435 which can conflict with char $ac_func(); below. */
7437 /* Override any gcc2 internal prototype to avoid an error. */
7438 /* We use char because int might match the return type of a gcc2
7439 builtin and then its argument prototype would still apply. */
7444 /* The GNU C library defines this for functions which it implements
7445 to always fail with ENOSYS. Some functions are actually named
7446 something starting with __ and the normal name is an alias. */
7447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7455 if { (eval echo configure
:7456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7457 eval "ac_cv_func_$ac_func=yes"
7459 echo "configure: failed program was:" >&5
7460 cat conftest.
$ac_ext >&5
7462 eval "ac_cv_func_$ac_func=no"
7467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7468 echo "$ac_t""yes" 1>&6
7469 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7470 cat >> confdefs.h
<<EOF
7471 #define $ac_tr_func 1
7475 echo "$ac_t""no" 1>&6
7479 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7480 echo "configure:7481: checking for getspnam in -lsecurity" >&5
7481 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7483 echo $ac_n "(cached) $ac_c" 1>&6
7485 ac_save_LIBS
="$LIBS"
7486 LIBS
="-lsecurity $LIBS"
7487 cat > conftest.
$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7499 if { (eval echo configure
:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7501 eval "ac_cv_lib_$ac_lib_var=yes"
7503 echo "configure: failed program was:" >&5
7504 cat conftest.
$ac_ext >&5
7506 eval "ac_cv_lib_$ac_lib_var=no"
7509 LIBS
="$ac_save_LIBS"
7512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7513 echo "$ac_t""yes" 1>&6
7514 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7516 cat >> confdefs.h
<<EOF
7517 #define $ac_tr_lib 1
7520 LIBS
="-lsecurity $LIBS"
7523 echo "$ac_t""no" 1>&6
7526 for ac_func
in getspnam
7528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7529 echo "configure:7530: checking for $ac_func" >&5
7530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7533 cat > conftest.
$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536 /* System header to define __stub macros and hopefully few prototypes,
7537 which can conflict with char $ac_func(); below. */
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7546 /* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7557 if { (eval echo configure
:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7559 eval "ac_cv_func_$ac_func=yes"
7561 echo "configure: failed program was:" >&5
7562 cat conftest.
$ac_ext >&5
7564 eval "ac_cv_func_$ac_func=no"
7569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7570 echo "$ac_t""yes" 1>&6
7571 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7572 cat >> confdefs.h
<<EOF
7573 #define $ac_tr_func 1
7577 echo "$ac_t""no" 1>&6
7585 *-lsec*) for ac_func
in getspnam
7587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7588 echo "configure:7589: checking for $ac_func" >&5
7589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7590 echo $ac_n "(cached) $ac_c" 1>&6
7592 cat > conftest.
$ac_ext <<EOF
7593 #line 7594 "configure"
7594 #include "confdefs.h"
7595 /* System header to define __stub macros and hopefully few prototypes,
7596 which can conflict with char $ac_func(); below. */
7598 /* Override any gcc2 internal prototype to avoid an error. */
7599 /* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7605 /* The GNU C library defines this for functions which it implements
7606 to always fail with ENOSYS. Some functions are actually named
7607 something starting with __ and the normal name is an alias. */
7608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7616 if { (eval echo configure
:7617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7618 eval "ac_cv_func_$ac_func=yes"
7620 echo "configure: failed program was:" >&5
7621 cat conftest.
$ac_ext >&5
7623 eval "ac_cv_func_$ac_func=no"
7628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7629 echo "$ac_t""yes" 1>&6
7630 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7631 cat >> confdefs.h
<<EOF
7632 #define $ac_tr_func 1
7636 echo "$ac_t""no" 1>&6
7640 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7641 echo "configure:7642: checking for getspnam in -lsec" >&5
7642 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7644 echo $ac_n "(cached) $ac_c" 1>&6
7646 ac_save_LIBS
="$LIBS"
7648 cat > conftest.
$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7651 /* Override any gcc2 internal prototype to avoid an error. */
7652 /* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7660 if { (eval echo configure
:7661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7662 eval "ac_cv_lib_$ac_lib_var=yes"
7664 echo "configure: failed program was:" >&5
7665 cat conftest.
$ac_ext >&5
7667 eval "ac_cv_lib_$ac_lib_var=no"
7670 LIBS
="$ac_save_LIBS"
7673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7674 echo "$ac_t""yes" 1>&6
7675 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7677 cat >> confdefs.h
<<EOF
7678 #define $ac_tr_lib 1
7684 echo "$ac_t""no" 1>&6
7687 for ac_func
in getspnam
7689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7690 echo "configure:7691: checking for $ac_func" >&5
7691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7694 cat > conftest.
$ac_ext <<EOF
7695 #line 7696 "configure"
7696 #include "confdefs.h"
7697 /* System header to define __stub macros and hopefully few prototypes,
7698 which can conflict with char $ac_func(); below. */
7700 /* Override any gcc2 internal prototype to avoid an error. */
7701 /* We use char because int might match the return type of a gcc2
7702 builtin and then its argument prototype would still apply. */
7707 /* The GNU C library defines this for functions which it implements
7708 to always fail with ENOSYS. Some functions are actually named
7709 something starting with __ and the normal name is an alias. */
7710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7718 if { (eval echo configure
:7719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7720 eval "ac_cv_func_$ac_func=yes"
7722 echo "configure: failed program was:" >&5
7723 cat conftest.
$ac_ext >&5
7725 eval "ac_cv_func_$ac_func=no"
7730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7731 echo "$ac_t""yes" 1>&6
7732 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7733 cat >> confdefs.h
<<EOF
7734 #define $ac_tr_func 1
7738 echo "$ac_t""no" 1>&6
7747 *-lsecurity*) for ac_func
in bigcrypt
7749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7750 echo "configure:7751: checking for $ac_func" >&5
7751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7752 echo $ac_n "(cached) $ac_c" 1>&6
7754 cat > conftest.
$ac_ext <<EOF
7755 #line 7756 "configure"
7756 #include "confdefs.h"
7757 /* System header to define __stub macros and hopefully few prototypes,
7758 which can conflict with char $ac_func(); below. */
7760 /* Override any gcc2 internal prototype to avoid an error. */
7761 /* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7767 /* The GNU C library defines this for functions which it implements
7768 to always fail with ENOSYS. Some functions are actually named
7769 something starting with __ and the normal name is an alias. */
7770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7778 if { (eval echo configure
:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7780 eval "ac_cv_func_$ac_func=yes"
7782 echo "configure: failed program was:" >&5
7783 cat conftest.
$ac_ext >&5
7785 eval "ac_cv_func_$ac_func=no"
7790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7791 echo "$ac_t""yes" 1>&6
7792 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7793 cat >> confdefs.h
<<EOF
7794 #define $ac_tr_func 1
7798 echo "$ac_t""no" 1>&6
7802 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7803 echo "configure:7804: checking for bigcrypt in -lsecurity" >&5
7804 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7808 ac_save_LIBS
="$LIBS"
7809 LIBS
="-lsecurity $LIBS"
7810 cat > conftest.
$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 /* Override any gcc2 internal prototype to avoid an error. */
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7822 if { (eval echo configure
:7823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7824 eval "ac_cv_lib_$ac_lib_var=yes"
7826 echo "configure: failed program was:" >&5
7827 cat conftest.
$ac_ext >&5
7829 eval "ac_cv_lib_$ac_lib_var=no"
7832 LIBS
="$ac_save_LIBS"
7835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7836 echo "$ac_t""yes" 1>&6
7837 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7839 cat >> confdefs.h
<<EOF
7840 #define $ac_tr_lib 1
7843 LIBS
="-lsecurity $LIBS"
7846 echo "$ac_t""no" 1>&6
7849 for ac_func
in bigcrypt
7851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7852 echo "configure:7853: checking for $ac_func" >&5
7853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7856 cat > conftest.
$ac_ext <<EOF
7857 #line 7858 "configure"
7858 #include "confdefs.h"
7859 /* System header to define __stub macros and hopefully few prototypes,
7860 which can conflict with char $ac_func(); below. */
7862 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7869 /* The GNU C library defines this for functions which it implements
7870 to always fail with ENOSYS. Some functions are actually named
7871 something starting with __ and the normal name is an alias. */
7872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7880 if { (eval echo configure
:7881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7882 eval "ac_cv_func_$ac_func=yes"
7884 echo "configure: failed program was:" >&5
7885 cat conftest.
$ac_ext >&5
7887 eval "ac_cv_func_$ac_func=no"
7892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7893 echo "$ac_t""yes" 1>&6
7894 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7895 cat >> confdefs.h
<<EOF
7896 #define $ac_tr_func 1
7900 echo "$ac_t""no" 1>&6
7908 *-lsec*) for ac_func
in bigcrypt
7910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7911 echo "configure:7912: checking for $ac_func" >&5
7912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7913 echo $ac_n "(cached) $ac_c" 1>&6
7915 cat > conftest.
$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7918 /* System header to define __stub macros and hopefully few prototypes,
7919 which can conflict with char $ac_func(); below. */
7921 /* Override any gcc2 internal prototype to avoid an error. */
7922 /* We use char because int might match the return type of a gcc2
7923 builtin and then its argument prototype would still apply. */
7928 /* The GNU C library defines this for functions which it implements
7929 to always fail with ENOSYS. Some functions are actually named
7930 something starting with __ and the normal name is an alias. */
7931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7939 if { (eval echo configure
:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7941 eval "ac_cv_func_$ac_func=yes"
7943 echo "configure: failed program was:" >&5
7944 cat conftest.
$ac_ext >&5
7946 eval "ac_cv_func_$ac_func=no"
7951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7953 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7954 cat >> confdefs.h
<<EOF
7955 #define $ac_tr_func 1
7959 echo "$ac_t""no" 1>&6
7963 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7964 echo "configure:7965: checking for bigcrypt in -lsec" >&5
7965 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7969 ac_save_LIBS
="$LIBS"
7971 cat > conftest.
$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7974 /* Override any gcc2 internal prototype to avoid an error. */
7975 /* We use char because int might match the return type of a gcc2
7976 builtin and then its argument prototype would still apply. */
7983 if { (eval echo configure
:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7985 eval "ac_cv_lib_$ac_lib_var=yes"
7987 echo "configure: failed program was:" >&5
7988 cat conftest.
$ac_ext >&5
7990 eval "ac_cv_lib_$ac_lib_var=no"
7993 LIBS
="$ac_save_LIBS"
7996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7997 echo "$ac_t""yes" 1>&6
7998 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8000 cat >> confdefs.h
<<EOF
8001 #define $ac_tr_lib 1
8007 echo "$ac_t""no" 1>&6
8010 for ac_func
in bigcrypt
8012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8013 echo "configure:8014: checking for $ac_func" >&5
8014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 cat > conftest.
$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 /* System header to define __stub macros and hopefully few prototypes,
8021 which can conflict with char $ac_func(); below. */
8023 /* Override any gcc2 internal prototype to avoid an error. */
8024 /* We use char because int might match the return type of a gcc2
8025 builtin and then its argument prototype would still apply. */
8030 /* The GNU C library defines this for functions which it implements
8031 to always fail with ENOSYS. Some functions are actually named
8032 something starting with __ and the normal name is an alias. */
8033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8041 if { (eval echo configure
:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8043 eval "ac_cv_func_$ac_func=yes"
8045 echo "configure: failed program was:" >&5
8046 cat conftest.
$ac_ext >&5
8048 eval "ac_cv_func_$ac_func=no"
8053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8054 echo "$ac_t""yes" 1>&6
8055 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8056 cat >> confdefs.h
<<EOF
8057 #define $ac_tr_func 1
8061 echo "$ac_t""no" 1>&6
8070 *-lsecurity*) for ac_func
in getprpwnam
8072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8073 echo "configure:8074: checking for $ac_func" >&5
8074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8077 cat > conftest.
$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8080 /* System header to define __stub macros and hopefully few prototypes,
8081 which can conflict with char $ac_func(); below. */
8083 /* Override any gcc2 internal prototype to avoid an error. */
8084 /* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */
8090 /* The GNU C library defines this for functions which it implements
8091 to always fail with ENOSYS. Some functions are actually named
8092 something starting with __ and the normal name is an alias. */
8093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8101 if { (eval echo configure
:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8103 eval "ac_cv_func_$ac_func=yes"
8105 echo "configure: failed program was:" >&5
8106 cat conftest.
$ac_ext >&5
8108 eval "ac_cv_func_$ac_func=no"
8113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8114 echo "$ac_t""yes" 1>&6
8115 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8116 cat >> confdefs.h
<<EOF
8117 #define $ac_tr_func 1
8121 echo "$ac_t""no" 1>&6
8125 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8126 echo "configure:8127: checking for getprpwnam in -lsecurity" >&5
8127 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8129 echo $ac_n "(cached) $ac_c" 1>&6
8131 ac_save_LIBS
="$LIBS"
8132 LIBS
="-lsecurity $LIBS"
8133 cat > conftest.
$ac_ext <<EOF
8134 #line 8135 "configure"
8135 #include "confdefs.h"
8136 /* Override any gcc2 internal prototype to avoid an error. */
8137 /* We use char because int might match the return type of a gcc2
8138 builtin and then its argument prototype would still apply. */
8145 if { (eval echo configure
:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8147 eval "ac_cv_lib_$ac_lib_var=yes"
8149 echo "configure: failed program was:" >&5
8150 cat conftest.
$ac_ext >&5
8152 eval "ac_cv_lib_$ac_lib_var=no"
8155 LIBS
="$ac_save_LIBS"
8158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8159 echo "$ac_t""yes" 1>&6
8160 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8162 cat >> confdefs.h
<<EOF
8163 #define $ac_tr_lib 1
8166 LIBS
="-lsecurity $LIBS"
8169 echo "$ac_t""no" 1>&6
8172 for ac_func
in getprpwnam
8174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8175 echo "configure:8176: checking for $ac_func" >&5
8176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8179 cat > conftest.
$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 /* System header to define __stub macros and hopefully few prototypes,
8183 which can conflict with char $ac_func(); below. */
8185 /* Override any gcc2 internal prototype to avoid an error. */
8186 /* We use char because int might match the return type of a gcc2
8187 builtin and then its argument prototype would still apply. */
8192 /* The GNU C library defines this for functions which it implements
8193 to always fail with ENOSYS. Some functions are actually named
8194 something starting with __ and the normal name is an alias. */
8195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8203 if { (eval echo configure
:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8205 eval "ac_cv_func_$ac_func=yes"
8207 echo "configure: failed program was:" >&5
8208 cat conftest.
$ac_ext >&5
8210 eval "ac_cv_func_$ac_func=no"
8215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8216 echo "$ac_t""yes" 1>&6
8217 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8218 cat >> confdefs.h
<<EOF
8219 #define $ac_tr_func 1
8223 echo "$ac_t""no" 1>&6
8231 *-lsec*) for ac_func
in getprpwnam
8233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8234 echo "configure:8235: checking for $ac_func" >&5
8235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8236 echo $ac_n "(cached) $ac_c" 1>&6
8238 cat > conftest.
$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 /* System header to define __stub macros and hopefully few prototypes,
8242 which can conflict with char $ac_func(); below. */
8244 /* Override any gcc2 internal prototype to avoid an error. */
8245 /* We use char because int might match the return type of a gcc2
8246 builtin and then its argument prototype would still apply. */
8251 /* The GNU C library defines this for functions which it implements
8252 to always fail with ENOSYS. Some functions are actually named
8253 something starting with __ and the normal name is an alias. */
8254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8262 if { (eval echo configure
:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8264 eval "ac_cv_func_$ac_func=yes"
8266 echo "configure: failed program was:" >&5
8267 cat conftest.
$ac_ext >&5
8269 eval "ac_cv_func_$ac_func=no"
8274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8275 echo "$ac_t""yes" 1>&6
8276 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8277 cat >> confdefs.h
<<EOF
8278 #define $ac_tr_func 1
8282 echo "$ac_t""no" 1>&6
8286 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8287 echo "configure:8288: checking for getprpwnam in -lsec" >&5
8288 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8290 echo $ac_n "(cached) $ac_c" 1>&6
8292 ac_save_LIBS
="$LIBS"
8294 cat > conftest.
$ac_ext <<EOF
8295 #line 8296 "configure"
8296 #include "confdefs.h"
8297 /* Override any gcc2 internal prototype to avoid an error. */
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8306 if { (eval echo configure
:8307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8308 eval "ac_cv_lib_$ac_lib_var=yes"
8310 echo "configure: failed program was:" >&5
8311 cat conftest.
$ac_ext >&5
8313 eval "ac_cv_lib_$ac_lib_var=no"
8316 LIBS
="$ac_save_LIBS"
8319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8320 echo "$ac_t""yes" 1>&6
8321 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8323 cat >> confdefs.h
<<EOF
8324 #define $ac_tr_lib 1
8330 echo "$ac_t""no" 1>&6
8333 for ac_func
in getprpwnam
8335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8336 echo "configure:8337: checking for $ac_func" >&5
8337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8340 cat > conftest.
$ac_ext <<EOF
8341 #line 8342 "configure"
8342 #include "confdefs.h"
8343 /* System header to define __stub macros and hopefully few prototypes,
8344 which can conflict with char $ac_func(); below. */
8346 /* Override any gcc2 internal prototype to avoid an error. */
8347 /* We use char because int might match the return type of a gcc2
8348 builtin and then its argument prototype would still apply. */
8353 /* The GNU C library defines this for functions which it implements
8354 to always fail with ENOSYS. Some functions are actually named
8355 something starting with __ and the normal name is an alias. */
8356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8364 if { (eval echo configure
:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8366 eval "ac_cv_func_$ac_func=yes"
8368 echo "configure: failed program was:" >&5
8369 cat conftest.
$ac_ext >&5
8371 eval "ac_cv_func_$ac_func=no"
8376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8378 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8379 cat >> confdefs.h
<<EOF
8380 #define $ac_tr_func 1
8384 echo "$ac_t""no" 1>&6
8392 # this bit needs to be modified for each OS that is suported by
8393 # smbwrapper. You need to specify how to created a shared library and
8394 # how to compile C code to produce PIC object files
8396 # these are the defaults, good for lots of systems
8402 # and these are for particular systems
8404 *linux
*) cat >> confdefs.h
<<\EOF
8408 *solaris
*) cat >> confdefs.h
<<\EOF
8414 *sunos
*) cat >> confdefs.h
<<\EOF
8420 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8422 *irix
*) cat >> confdefs.h
<<\EOF
8427 *irix6
*) cat >> confdefs.h
<<\EOF
8433 ATTEMPT_WRAP32_BUILD
=yes
8435 *aix
*) cat >> confdefs.h
<<\EOF
8439 *hpux
*) cat >> confdefs.h
<<\EOF
8444 # Use special PIC flags for the native HP-UX compiler.
8445 if test $ac_cv_prog_cc_Ae = yes; then
8450 *qnx
*) cat >> confdefs.h
<<\EOF
8454 *osf
*) cat >> confdefs.h
<<\EOF
8458 *sco
*) cat >> confdefs.h
<<\EOF
8462 *next2
*) cat >> confdefs.h
<<\EOF
8466 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8467 set dummy
groff; ac_word
=$2
8468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8469 echo "configure:8470: checking for $ac_word" >&5
8470 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8473 if test -n "$ROFF"; then
8474 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8476 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8478 for ac_dir
in $ac_dummy; do
8479 test -z "$ac_dir" && ac_dir
=.
8480 if test -f $ac_dir/$ac_word; then
8481 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8488 ROFF
="$ac_cv_prog_ROFF"
8489 if test -n "$ROFF"; then
8490 echo "$ac_t""$ROFF" 1>&6
8492 echo "$ac_t""no" 1>&6
8497 *-univel-*) if test "$GCC" != yes ; then
8498 cat >> confdefs.h
<<\EOF
8499 #define HAVE_MEMSET 1
8505 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8506 #define RELIANTUNIX 1
8512 if test "$GCC" != yes ; then
8513 cat >> confdefs.h
<<\EOF
8514 #define HAVE_MEMSET 1
8522 # try to work out how to produce pic code with this compiler
8523 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8524 echo "configure:8525: checking whether ${CC-cc} accepts -fpic" >&5
8525 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8528 echo 'void f(){}' > conftest.c
8529 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8530 ac_cv_prog_cc_fpic
=yes
8532 ac_cv_prog_cc_fpic
=no
8538 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8539 if test $ac_cv_prog_cc_fpic = yes; then
8542 if test x
$PICFLAG = x
; then
8543 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8544 echo "configure:8545: checking whether ${CC-cc} accepts -KPIC" >&5
8545 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8548 echo 'void f(){}' > conftest.c
8549 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8550 ac_cv_prog_cc_KPIC
=yes
8552 ac_cv_prog_cc_KPIC
=no
8558 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8559 if test $ac_cv_prog_cc_KPIC = yes; then
8563 if test x
$PICFLAG = x
; then
8564 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8565 echo "configure:8566: checking whether ${CC-cc} accepts -Kpic" >&5
8566 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8567 echo $ac_n "(cached) $ac_c" 1>&6
8569 echo 'void f(){}' > conftest.c
8570 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8571 ac_cv_prog_cc_Kpic
=yes
8573 ac_cv_prog_cc_Kpic
=no
8579 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8580 if test $ac_cv_prog_cc_Kpic = yes; then
8587 echo $ac_n "checking for long long""... $ac_c" 1>&6
8588 echo "configure:8589: checking for long long" >&5
8589 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8593 if test "$cross_compiling" = yes; then
8594 samba_cv_have_longlong
=cross
8596 cat > conftest.
$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8600 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8602 if { (eval echo configure
:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8604 samba_cv_have_longlong
=yes
8606 echo "configure: failed program was:" >&5
8607 cat conftest.
$ac_ext >&5
8609 samba_cv_have_longlong
=no
8616 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8617 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8618 cat >> confdefs.h
<<\EOF
8619 #define HAVE_LONGLONG 1
8625 # Check if the compiler supports the LL prefix on long long integers.
8628 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8629 echo "configure:8630: checking for LL suffix on long long integers" >&5
8630 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8634 cat > conftest.
$ac_ext <<EOF
8635 #line 8636 "configure"
8636 #include "confdefs.h"
8639 long long i = 0x8000000000LL
8642 if { (eval echo configure
:8643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8644 samba_cv_compiler_supports_ll
=yes
8646 echo "configure: failed program was:" >&5
8647 cat conftest.
$ac_ext >&5
8649 samba_cv_compiler_supports_ll
=no
8654 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8655 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8656 cat >> confdefs.h
<<\EOF
8657 #define COMPILER_SUPPORTS_LL 1
8663 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8664 echo "configure:8665: checking for 64 bit off_t" >&5
8665 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8669 if test "$cross_compiling" = yes; then
8670 samba_cv_SIZEOF_OFF_T
=cross
8672 cat > conftest.
$ac_ext <<EOF
8673 #line 8674 "configure"
8674 #include "confdefs.h"
8676 #include <sys/stat.h>
8677 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8679 if { (eval echo configure
:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8681 samba_cv_SIZEOF_OFF_T
=yes
8683 echo "configure: failed program was:" >&5
8684 cat conftest.
$ac_ext >&5
8686 samba_cv_SIZEOF_OFF_T
=no
8693 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8694 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8695 cat >> confdefs.h
<<\EOF
8696 #define SIZEOF_OFF_T 8
8701 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8702 echo "configure:8703: checking for off64_t" >&5
8703 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8707 if test "$cross_compiling" = yes; then
8708 samba_cv_HAVE_OFF64_T
=cross
8710 cat > conftest.
$ac_ext <<EOF
8711 #line 8712 "configure"
8712 #include "confdefs.h"
8714 #if defined(HAVE_UNISTD_H)
8718 #include <sys/stat.h>
8719 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8721 if { (eval echo configure
:8722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8723 samba_cv_HAVE_OFF64_T
=yes
8725 echo "configure: failed program was:" >&5
8726 cat conftest.
$ac_ext >&5
8728 samba_cv_HAVE_OFF64_T
=no
8735 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8736 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8737 cat >> confdefs.h
<<\EOF
8738 #define HAVE_OFF64_T 1
8743 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8744 echo "configure:8745: checking for 64 bit ino_t" >&5
8745 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8746 echo $ac_n "(cached) $ac_c" 1>&6
8749 if test "$cross_compiling" = yes; then
8750 samba_cv_SIZEOF_INO_T
=cross
8752 cat > conftest.
$ac_ext <<EOF
8753 #line 8754 "configure"
8754 #include "confdefs.h"
8756 #include <sys/stat.h>
8757 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8759 if { (eval echo configure
:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8761 samba_cv_SIZEOF_INO_T
=yes
8763 echo "configure: failed program was:" >&5
8764 cat conftest.
$ac_ext >&5
8766 samba_cv_SIZEOF_INO_T
=no
8773 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8774 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8775 cat >> confdefs.h
<<\EOF
8776 #define SIZEOF_INO_T 8
8781 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8782 echo "configure:8783: checking for ino64_t" >&5
8783 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8787 if test "$cross_compiling" = yes; then
8788 samba_cv_HAVE_INO64_T
=cross
8790 cat > conftest.
$ac_ext <<EOF
8791 #line 8792 "configure"
8792 #include "confdefs.h"
8794 #if defined(HAVE_UNISTD_H)
8798 #include <sys/stat.h>
8799 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8801 if { (eval echo configure
:8802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8803 samba_cv_HAVE_INO64_T
=yes
8805 echo "configure: failed program was:" >&5
8806 cat conftest.
$ac_ext >&5
8808 samba_cv_HAVE_INO64_T
=no
8815 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8816 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8817 cat >> confdefs.h
<<\EOF
8818 #define HAVE_INO64_T 1
8823 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8824 echo "configure:8825: checking for struct dirent64" >&5
8825 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8826 echo $ac_n "(cached) $ac_c" 1>&6
8829 cat > conftest.
$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8833 #if defined(HAVE_UNISTD_H)
8836 #include <sys/types.h>
8842 if { (eval echo configure
:8843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8844 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8846 echo "configure: failed program was:" >&5
8847 cat conftest.
$ac_ext >&5
8849 samba_cv_HAVE_STRUCT_DIRENT64
=no
8854 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8855 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8856 cat >> confdefs.h
<<\EOF
8857 #define HAVE_STRUCT_DIRENT64 1
8862 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8863 echo "configure:8864: checking for unsigned char" >&5
8864 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8865 echo $ac_n "(cached) $ac_c" 1>&6
8868 if test "$cross_compiling" = yes; then
8869 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8871 cat > conftest.
$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8875 main() { char c; c=250; exit((c > 0)?0:1); }
8877 if { (eval echo configure
:8878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8879 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8881 echo "configure: failed program was:" >&5
8882 cat conftest.
$ac_ext >&5
8884 samba_cv_HAVE_UNSIGNED_CHAR
=no
8891 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8892 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8893 cat >> confdefs.h
<<\EOF
8894 #define HAVE_UNSIGNED_CHAR 1
8899 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8900 echo "configure:8901: checking for sin_len in sock" >&5
8901 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8905 cat > conftest.
$ac_ext <<EOF
8906 #line 8907 "configure"
8907 #include "confdefs.h"
8908 #include <sys/types.h>
8909 #include <sys/socket.h>
8910 #include <netinet/in.h>
8912 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8915 if { (eval echo configure
:8916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8917 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8919 echo "configure: failed program was:" >&5
8920 cat conftest.
$ac_ext >&5
8922 samba_cv_HAVE_SOCK_SIN_LEN
=no
8927 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8928 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8929 cat >> confdefs.h
<<\EOF
8930 #define HAVE_SOCK_SIN_LEN 1
8935 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8936 echo "configure:8937: checking whether seekdir returns void" >&5
8937 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8938 echo $ac_n "(cached) $ac_c" 1>&6
8941 cat > conftest.
$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 #include <sys/types.h>
8946 void seekdir(DIR *d, long loc) { return; }
8951 if { (eval echo configure
:8952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8953 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8955 echo "configure: failed program was:" >&5
8956 cat conftest.
$ac_ext >&5
8958 samba_cv_SEEKDIR_RETURNS_VOID
=no
8963 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8964 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8965 cat >> confdefs.h
<<\EOF
8966 #define SEEKDIR_RETURNS_VOID 1
8971 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8972 echo "configure:8973: checking for __FILE__ macro" >&5
8973 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8977 cat > conftest.
$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8982 printf("%s\n", __FILE__);
8985 if { (eval echo configure
:8986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8987 samba_cv_HAVE_FILE_MACRO
=yes
8989 echo "configure: failed program was:" >&5
8990 cat conftest.
$ac_ext >&5
8992 samba_cv_HAVE_FILE_MACRO
=no
8997 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8998 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8999 cat >> confdefs.h
<<\EOF
9000 #define HAVE_FILE_MACRO 1
9005 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9006 echo "configure:9007: checking for __FUNCTION__ macro" >&5
9007 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9011 cat > conftest.
$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9016 printf("%s\n", __FUNCTION__);
9019 if { (eval echo configure
:9020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9021 samba_cv_HAVE_FUNCTION_MACRO
=yes
9023 echo "configure: failed program was:" >&5
9024 cat conftest.
$ac_ext >&5
9026 samba_cv_HAVE_FUNCTION_MACRO
=no
9031 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9032 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9033 cat >> confdefs.h
<<\EOF
9034 #define HAVE_FUNCTION_MACRO 1
9039 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9040 echo "configure:9041: checking if gettimeofday takes tz argument" >&5
9041 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9045 if test "$cross_compiling" = yes; then
9046 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9048 cat > conftest.
$ac_ext <<EOF
9049 #line 9050 "configure"
9050 #include "confdefs.h"
9052 #include <sys/time.h>
9054 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9056 if { (eval echo configure
:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9058 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9060 echo "configure: failed program was:" >&5
9061 cat conftest.
$ac_ext >&5
9063 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9070 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9071 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9072 cat >> confdefs.h
<<\EOF
9073 #define HAVE_GETTIMEOFDAY_TZ 1
9079 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9080 echo "configure:9081: checking for broken readdir" >&5
9081 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9085 if test "$cross_compiling" = yes; then
9086 samba_cv_HAVE_BROKEN_READDIR
=cross
9088 cat > conftest.
$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 #include <sys/types.h>
9093 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9094 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9095 di->d_name[0] == 0) exit(0); exit(1);}
9097 if { (eval echo configure
:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9099 samba_cv_HAVE_BROKEN_READDIR
=yes
9101 echo "configure: failed program was:" >&5
9102 cat conftest.
$ac_ext >&5
9104 samba_cv_HAVE_BROKEN_READDIR
=no
9111 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9112 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9113 cat >> confdefs.h
<<\EOF
9114 #define HAVE_BROKEN_READDIR 1
9119 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9120 echo "configure:9121: checking for utimbuf" >&5
9121 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9125 cat > conftest.
$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9128 #include <sys/types.h>
9131 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9134 if { (eval echo configure
:9135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9136 samba_cv_HAVE_UTIMBUF
=yes
9138 echo "configure: failed program was:" >&5
9139 cat conftest.
$ac_ext >&5
9141 samba_cv_HAVE_UTIMBUF
=no
9146 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9147 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9148 cat >> confdefs.h
<<\EOF
9149 #define HAVE_UTIMBUF 1
9155 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9158 echo "configure:9159: checking for $ac_func" >&5
9159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9160 echo $ac_n "(cached) $ac_c" 1>&6
9162 cat > conftest.
$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 /* System header to define __stub macros and hopefully few prototypes,
9166 which can conflict with char $ac_func(); below. */
9168 /* Override any gcc2 internal prototype to avoid an error. */
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9175 /* The GNU C library defines this for functions which it implements
9176 to always fail with ENOSYS. Some functions are actually named
9177 something starting with __ and the normal name is an alias. */
9178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9186 if { (eval echo configure
:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9188 eval "ac_cv_func_$ac_func=yes"
9190 echo "configure: failed program was:" >&5
9191 cat conftest.
$ac_ext >&5
9193 eval "ac_cv_func_$ac_func=no"
9198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9199 echo "$ac_t""yes" 1>&6
9200 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9201 cat >> confdefs.h
<<EOF
9202 #define $ac_tr_func 1
9206 echo "$ac_t""no" 1>&6
9211 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9212 echo "configure:9213: checking for ut_name in utmp" >&5
9213 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9217 cat > conftest.
$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220 #include <sys/types.h>
9223 struct utmp ut; ut.ut_name[0] = 'a';
9226 if { (eval echo configure
:9227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9228 samba_cv_HAVE_UT_UT_NAME
=yes
9230 echo "configure: failed program was:" >&5
9231 cat conftest.
$ac_ext >&5
9233 samba_cv_HAVE_UT_UT_NAME
=no
9238 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9239 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9240 cat >> confdefs.h
<<\EOF
9241 #define HAVE_UT_UT_NAME 1
9246 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9247 echo "configure:9248: checking for ut_user in utmp" >&5
9248 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9252 cat > conftest.
$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9255 #include <sys/types.h>
9258 struct utmp ut; ut.ut_user[0] = 'a';
9261 if { (eval echo configure
:9262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9263 samba_cv_HAVE_UT_UT_USER
=yes
9265 echo "configure: failed program was:" >&5
9266 cat conftest.
$ac_ext >&5
9268 samba_cv_HAVE_UT_UT_USER
=no
9273 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9274 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9275 cat >> confdefs.h
<<\EOF
9276 #define HAVE_UT_UT_USER 1
9281 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9282 echo "configure:9283: checking for ut_id in utmp" >&5
9283 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9287 cat > conftest.
$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <sys/types.h>
9293 struct utmp ut; ut.ut_id[0] = 'a';
9296 if { (eval echo configure
:9297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9298 samba_cv_HAVE_UT_UT_ID
=yes
9300 echo "configure: failed program was:" >&5
9301 cat conftest.
$ac_ext >&5
9303 samba_cv_HAVE_UT_UT_ID
=no
9308 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9309 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9310 cat >> confdefs.h
<<\EOF
9311 #define HAVE_UT_UT_ID 1
9316 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9317 echo "configure:9318: checking for ut_host in utmp" >&5
9318 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9319 echo $ac_n "(cached) $ac_c" 1>&6
9322 cat > conftest.
$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 #include <sys/types.h>
9328 struct utmp ut; ut.ut_host[0] = 'a';
9331 if { (eval echo configure
:9332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9333 samba_cv_HAVE_UT_UT_HOST
=yes
9335 echo "configure: failed program was:" >&5
9336 cat conftest.
$ac_ext >&5
9338 samba_cv_HAVE_UT_UT_HOST
=no
9343 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9344 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9345 cat >> confdefs.h
<<\EOF
9346 #define HAVE_UT_UT_HOST 1
9351 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9352 echo "configure:9353: checking for ut_time in utmp" >&5
9353 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9354 echo $ac_n "(cached) $ac_c" 1>&6
9357 cat > conftest.
$ac_ext <<EOF
9358 #line 9359 "configure"
9359 #include "confdefs.h"
9360 #include <sys/types.h>
9363 struct utmp ut; time_t t; ut.ut_time = t;
9366 if { (eval echo configure
:9367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9368 samba_cv_HAVE_UT_UT_TIME
=yes
9370 echo "configure: failed program was:" >&5
9371 cat conftest.
$ac_ext >&5
9373 samba_cv_HAVE_UT_UT_TIME
=no
9378 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9379 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9380 cat >> confdefs.h
<<\EOF
9381 #define HAVE_UT_UT_TIME 1
9386 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9387 echo "configure:9388: checking for ut_tv in utmp" >&5
9388 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9392 cat > conftest.
$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9395 #include <sys/types.h>
9398 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9401 if { (eval echo configure
:9402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9403 samba_cv_HAVE_UT_UT_TV
=yes
9405 echo "configure: failed program was:" >&5
9406 cat conftest.
$ac_ext >&5
9408 samba_cv_HAVE_UT_UT_TV
=no
9413 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9414 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9415 cat >> confdefs.h
<<\EOF
9416 #define HAVE_UT_UT_TV 1
9421 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9422 echo "configure:9423: checking for ut_type in utmp" >&5
9423 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9427 cat > conftest.
$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9430 #include <sys/types.h>
9433 struct utmp ut; ut.ut_type = 0;
9436 if { (eval echo configure
:9437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9438 samba_cv_HAVE_UT_UT_TYPE
=yes
9440 echo "configure: failed program was:" >&5
9441 cat conftest.
$ac_ext >&5
9443 samba_cv_HAVE_UT_UT_TYPE
=no
9448 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9449 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9450 cat >> confdefs.h
<<\EOF
9451 #define HAVE_UT_UT_TYPE 1
9456 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9457 echo "configure:9458: checking for ut_pid in utmp" >&5
9458 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9462 cat > conftest.
$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 #include <sys/types.h>
9468 struct utmp ut; ut.ut_pid = 0;
9471 if { (eval echo configure
:9472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9473 samba_cv_HAVE_UT_UT_PID
=yes
9475 echo "configure: failed program was:" >&5
9476 cat conftest.
$ac_ext >&5
9478 samba_cv_HAVE_UT_UT_PID
=no
9483 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9484 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9485 cat >> confdefs.h
<<\EOF
9486 #define HAVE_UT_UT_PID 1
9491 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9492 echo "configure:9493: checking for ut_exit in utmp" >&5
9493 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9494 echo $ac_n "(cached) $ac_c" 1>&6
9497 cat > conftest.
$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #include <sys/types.h>
9503 struct utmp ut; ut.ut_exit.e_exit = 0;
9506 if { (eval echo configure
:9507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9508 samba_cv_HAVE_UT_UT_EXIT
=yes
9510 echo "configure: failed program was:" >&5
9511 cat conftest.
$ac_ext >&5
9513 samba_cv_HAVE_UT_UT_EXIT
=no
9518 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9519 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9520 cat >> confdefs.h
<<\EOF
9521 #define HAVE_UT_UT_EXIT 1
9526 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9527 echo "configure:9528: checking for ut_addr in utmp" >&5
9528 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9532 cat > conftest.
$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9538 struct utmp ut; ut.ut_addr = 0;
9541 if { (eval echo configure
:9542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9543 samba_cv_HAVE_UT_UT_ADDR
=yes
9545 echo "configure: failed program was:" >&5
9546 cat conftest.
$ac_ext >&5
9548 samba_cv_HAVE_UT_UT_ADDR
=no
9553 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9554 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9555 cat >> confdefs.h
<<\EOF
9556 #define HAVE_UT_UT_ADDR 1
9561 if test x
$ac_cv_func_pututline = xyes
; then
9562 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9563 echo "configure:9564: checking whether pututline returns pointer" >&5
9564 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9568 cat > conftest.
$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9574 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9577 if { (eval echo configure
:9578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9579 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9581 echo "configure: failed program was:" >&5
9582 cat conftest.
$ac_ext >&5
9584 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9589 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9590 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9591 cat >> confdefs.h
<<\EOF
9592 #define PUTUTLINE_RETURNS_UTMP 1
9598 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9599 echo "configure:9600: checking for ut_syslen in utmpx" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9604 cat > conftest.
$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 #include <sys/types.h>
9610 struct utmpx ux; ux.ut_syslen = 0;
9613 if { (eval echo configure
:9614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9615 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9617 echo "configure: failed program was:" >&5
9618 cat conftest.
$ac_ext >&5
9620 samba_cv_HAVE_UX_UT_SYSLEN
=no
9625 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9626 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9627 cat >> confdefs.h
<<\EOF
9628 #define HAVE_UX_UT_SYSLEN 1
9633 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9634 echo "configure:9635: checking for Linux kernel oplocks" >&5
9635 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9636 echo $ac_n "(cached) $ac_c" 1>&6
9639 if test "$cross_compiling" = yes; then
9640 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9642 cat > conftest.
$ac_ext <<EOF
9643 #line 9644 "configure"
9644 #include "confdefs.h"
9646 #include <sys/types.h>
9649 #define F_GETLEASE 1025
9652 int fd = open("/dev/null", O_RDONLY);
9653 return fcntl(fd, F_GETLEASE, 0) == -1;
9657 if { (eval echo configure
:9658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9659 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9661 echo "configure: failed program was:" >&5
9662 cat conftest.
$ac_ext >&5
9664 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9671 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9672 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9673 cat >> confdefs.h
<<\EOF
9674 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9679 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9680 echo "configure:9681: checking for kernel change notify support" >&5
9681 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9682 echo $ac_n "(cached) $ac_c" 1>&6
9685 if test "$cross_compiling" = yes; then
9686 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9688 cat > conftest.
$ac_ext <<EOF
9689 #line 9690 "configure"
9690 #include "confdefs.h"
9692 #include <sys/types.h>
9696 #define F_NOTIFY 1026
9699 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9703 if { (eval echo configure
:9704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9705 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9707 echo "configure: failed program was:" >&5
9708 cat conftest.
$ac_ext >&5
9710 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9717 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9718 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9719 cat >> confdefs.h
<<\EOF
9720 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9725 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9726 echo "configure:9727: checking for kernel share modes" >&5
9727 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9731 if test "$cross_compiling" = yes; then
9732 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9734 cat > conftest.
$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9738 #include <sys/types.h>
9741 #include <sys/file.h>
9743 #define LOCK_MAND 32
9744 #define LOCK_READ 64
9747 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9751 if { (eval echo configure
:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9753 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9755 echo "configure: failed program was:" >&5
9756 cat conftest.
$ac_ext >&5
9758 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9765 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9766 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9767 cat >> confdefs.h
<<\EOF
9768 #define HAVE_KERNEL_SHARE_MODES 1
9776 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9777 echo "configure:9778: checking for IRIX kernel oplock type definitions" >&5
9778 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9782 cat > conftest.
$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 #include <sys/types.h>
9788 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9791 if { (eval echo configure
:9792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9793 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9795 echo "configure: failed program was:" >&5
9796 cat conftest.
$ac_ext >&5
9798 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9803 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9804 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9805 cat >> confdefs.h
<<\EOF
9806 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9811 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9812 echo "configure:9813: checking for irix specific capabilities" >&5
9813 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9814 echo $ac_n "(cached) $ac_c" 1>&6
9817 if test "$cross_compiling" = yes; then
9818 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9820 cat > conftest.
$ac_ext <<EOF
9821 #line 9822 "configure"
9822 #include "confdefs.h"
9823 #include <sys/types.h>
9824 #include <sys/capability.h>
9827 if ((cap = cap_get_proc()) == NULL)
9829 cap->cap_effective |= CAP_NETWORK_MGT;
9830 cap->cap_inheritable |= CAP_NETWORK_MGT;
9836 if { (eval echo configure
:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9838 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9840 echo "configure: failed program was:" >&5
9841 cat conftest.
$ac_ext >&5
9843 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9850 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9851 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9852 cat >> confdefs.h
<<\EOF
9853 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9859 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9860 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9863 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9864 echo "configure:9865: checking for int16 typedef included by rpc/rpc.h" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9869 cat > conftest.
$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 #include <sys/types.h>
9873 #if defined(HAVE_RPC_RPC_H)
9874 #include <rpc/rpc.h>
9880 if { (eval echo configure
:9881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9882 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9884 echo "configure: failed program was:" >&5
9885 cat conftest.
$ac_ext >&5
9887 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9892 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9893 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9894 cat >> confdefs.h
<<\EOF
9895 #define HAVE_INT16_FROM_RPC_RPC_H 1
9900 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9901 echo "configure:9902: checking for uint16 typedef included by rpc/rpc.h" >&5
9902 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9906 cat > conftest.
$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 #include <sys/types.h>
9910 #if defined(HAVE_RPC_RPC_H)
9911 #include <rpc/rpc.h>
9917 if { (eval echo configure
:9918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9919 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9921 echo "configure: failed program was:" >&5
9922 cat conftest.
$ac_ext >&5
9924 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9929 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9930 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9931 cat >> confdefs.h
<<\EOF
9932 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9937 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9938 echo "configure:9939: checking for int32 typedef included by rpc/rpc.h" >&5
9939 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9943 cat > conftest.
$ac_ext <<EOF
9944 #line 9945 "configure"
9945 #include "confdefs.h"
9946 #include <sys/types.h>
9947 #if defined(HAVE_RPC_RPC_H)
9948 #include <rpc/rpc.h>
9954 if { (eval echo configure
:9955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9956 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9958 echo "configure: failed program was:" >&5
9959 cat conftest.
$ac_ext >&5
9961 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9966 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9967 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9968 cat >> confdefs.h
<<\EOF
9969 #define HAVE_INT32_FROM_RPC_RPC_H 1
9974 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9975 echo "configure:9976: checking for uint32 typedef included by rpc/rpc.h" >&5
9976 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9977 echo $ac_n "(cached) $ac_c" 1>&6
9980 cat > conftest.
$ac_ext <<EOF
9981 #line 9982 "configure"
9982 #include "confdefs.h"
9983 #include <sys/types.h>
9984 #if defined(HAVE_RPC_RPC_H)
9985 #include <rpc/rpc.h>
9991 if { (eval echo configure
:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9993 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9995 echo "configure: failed program was:" >&5
9996 cat conftest.
$ac_ext >&5
9998 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10003 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10004 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10005 cat >> confdefs.h
<<\EOF
10006 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10012 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10013 echo "configure:10014: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10014 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10018 cat > conftest.
$ac_ext <<EOF
10019 #line 10020 "configure"
10020 #include "confdefs.h"
10021 #include <sys/types.h>
10022 #ifdef HAVE_SYS_SECURITY_H
10023 #include <sys/security.h>
10025 #endif /* HAVE_SYS_SECURITY_H */
10026 #if defined(HAVE_RPC_RPC_H)
10027 #include <rpc/rpc.h>
10033 if { (eval echo configure
:10034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10035 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10037 echo "configure: failed program was:" >&5
10038 cat conftest.
$ac_ext >&5
10040 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10045 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10046 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10047 cat >> confdefs.h
<<\EOF
10048 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10053 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10054 echo "configure:10055: checking for test routines" >&5
10055 if test "$cross_compiling" = yes; then
10056 echo "configure: warning: cannot run when cross-compiling" 1>&2
10058 cat > conftest.
$ac_ext <<EOF
10059 #line 10060 "configure"
10060 #include "confdefs.h"
10061 #include "${srcdir-.}/tests/trivial.c"
10063 if { (eval echo configure
:10064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10065 echo "$ac_t""yes" 1>&6
10067 echo "configure: failed program was:" >&5
10068 cat conftest.
$ac_ext >&5
10070 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10076 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10077 echo "configure:10078: checking for ftruncate extend" >&5
10078 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10079 echo $ac_n "(cached) $ac_c" 1>&6
10082 if test "$cross_compiling" = yes; then
10083 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10085 cat > conftest.
$ac_ext <<EOF
10086 #line 10087 "configure"
10087 #include "confdefs.h"
10088 #include "${srcdir-.}/tests/ftruncate.c"
10090 if { (eval echo configure
:10091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10092 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10094 echo "configure: failed program was:" >&5
10095 cat conftest.
$ac_ext >&5
10097 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10104 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10105 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10106 cat >> confdefs.h
<<\EOF
10107 #define HAVE_FTRUNCATE_EXTEND 1
10112 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10113 echo "configure:10114: checking for broken getgroups" >&5
10114 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10118 if test "$cross_compiling" = yes; then
10119 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10121 cat > conftest.
$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 #include "${srcdir-.}/tests/getgroups.c"
10126 if { (eval echo configure
:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10128 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10130 echo "configure: failed program was:" >&5
10131 cat conftest.
$ac_ext >&5
10133 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10140 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10141 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10142 cat >> confdefs.h
<<\EOF
10143 #define HAVE_BROKEN_GETGROUPS 1
10148 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10149 echo "configure:10150: checking whether getpass should be replaced" >&5
10150 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10151 echo $ac_n "(cached) $ac_c" 1>&6
10154 SAVE_CPPFLAGS
="$CPPFLAGS"
10155 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10156 cat > conftest.
$ac_ext <<EOF
10157 #line 10158 "configure"
10158 #include "confdefs.h"
10160 #define REPLACE_GETPASS 1
10161 #define NO_CONFIG_H 1
10162 #define main dont_declare_main
10163 #include "${srcdir-.}/lib/getsmbpass.c"
10170 if { (eval echo configure
:10171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10172 samba_cv_REPLACE_GETPASS
=yes
10174 echo "configure: failed program was:" >&5
10175 cat conftest.
$ac_ext >&5
10177 samba_cv_REPLACE_GETPASS
=no
10180 CPPFLAGS
="$SAVE_CPPFLAGS"
10184 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10185 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10186 cat >> confdefs.h
<<\EOF
10187 #define REPLACE_GETPASS 1
10192 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10193 echo "configure:10194: checking for broken inet_ntoa" >&5
10194 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10198 if test "$cross_compiling" = yes; then
10199 samba_cv_REPLACE_INET_NTOA
=cross
10201 cat > conftest.
$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10206 #include <sys/types.h>
10207 #include <netinet/in.h>
10208 #ifdef HAVE_ARPA_INET_H
10209 #include <arpa/inet.h>
10211 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10212 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10213 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10216 if { (eval echo configure
:10217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10218 samba_cv_REPLACE_INET_NTOA
=yes
10220 echo "configure: failed program was:" >&5
10221 cat conftest.
$ac_ext >&5
10223 samba_cv_REPLACE_INET_NTOA
=no
10230 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10231 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10232 cat >> confdefs.h
<<\EOF
10233 #define REPLACE_INET_NTOA 1
10238 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10239 echo "configure:10240: checking for secure mkstemp" >&5
10240 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10241 echo $ac_n "(cached) $ac_c" 1>&6
10244 if test "$cross_compiling" = yes; then
10245 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10247 cat > conftest.
$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10250 #include <stdlib.h>
10251 #include <sys/types.h>
10252 #include <sys/stat.h>
10253 #include <unistd.h>
10256 char tpl[20]="/tmp/test.XXXXXX";
10257 int fd = mkstemp(tpl);
10258 if (fd == -1) exit(1);
10260 if (fstat(fd, &st) != 0) exit(1);
10261 if ((st.st_mode & 0777) != 0600) exit(1);
10265 if { (eval echo configure
:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10267 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10269 echo "configure: failed program was:" >&5
10270 cat conftest.
$ac_ext >&5
10272 samba_cv_HAVE_SECURE_MKSTEMP
=no
10279 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10280 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10281 cat >> confdefs.h
<<\EOF
10282 #define HAVE_SECURE_MKSTEMP 1
10287 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10288 echo "configure:10289: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10289 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
10293 if test "$cross_compiling" = yes; then
10294 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10296 cat > conftest.
$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 #include <unistd.h>
10300 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10302 if { (eval echo configure
:10303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10304 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10306 echo "configure: failed program was:" >&5
10307 cat conftest.
$ac_ext >&5
10309 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10316 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10317 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10318 cat >> confdefs.h
<<\EOF
10319 #define SYSCONF_SC_NGROUPS_MAX 1
10324 echo $ac_n "checking for root""... $ac_c" 1>&6
10325 echo "configure:10326: checking for root" >&5
10326 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10330 if test "$cross_compiling" = yes; then
10331 samba_cv_HAVE_ROOT
=cross
10333 cat > conftest.
$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10336 main() { exit(getuid() != 0); }
10338 if { (eval echo configure
:10339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10340 samba_cv_HAVE_ROOT
=yes
10342 echo "configure: failed program was:" >&5
10343 cat conftest.
$ac_ext >&5
10345 samba_cv_HAVE_ROOT
=no
10352 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10353 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10354 cat >> confdefs.h
<<\EOF
10355 #define HAVE_ROOT 1
10359 echo "configure: warning: running as non-root will disable some tests" 1>&2
10363 # look for a method of finding the list of network interfaces
10365 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10366 echo "configure:10367: checking for iface AIX" >&5
10367 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10368 echo $ac_n "(cached) $ac_c" 1>&6
10371 if test "$cross_compiling" = yes; then
10372 samba_cv_HAVE_IFACE_AIX
=cross
10374 cat > conftest.
$ac_ext <<EOF
10375 #line 10376 "configure"
10376 #include "confdefs.h"
10378 #define HAVE_IFACE_AIX 1
10379 #define AUTOCONF_TEST 1
10380 #include "confdefs.h"
10381 #include "${srcdir-.}/lib/interfaces.c"
10383 if { (eval echo configure
:10384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10385 samba_cv_HAVE_IFACE_AIX
=yes
10387 echo "configure: failed program was:" >&5
10388 cat conftest.
$ac_ext >&5
10390 samba_cv_HAVE_IFACE_AIX
=no
10397 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10398 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10399 iface
=yes;cat >> confdefs.h
<<\EOF
10400 #define HAVE_IFACE_AIX 1
10405 if test $iface = no
; then
10406 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10407 echo "configure:10408: checking for iface ifconf" >&5
10408 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10409 echo $ac_n "(cached) $ac_c" 1>&6
10412 if test "$cross_compiling" = yes; then
10413 samba_cv_HAVE_IFACE_IFCONF
=cross
10415 cat > conftest.
$ac_ext <<EOF
10416 #line 10417 "configure"
10417 #include "confdefs.h"
10419 #define HAVE_IFACE_IFCONF 1
10420 #define AUTOCONF_TEST 1
10421 #include "confdefs.h"
10422 #include "${srcdir-.}/lib/interfaces.c"
10424 if { (eval echo configure
:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10426 samba_cv_HAVE_IFACE_IFCONF
=yes
10428 echo "configure: failed program was:" >&5
10429 cat conftest.
$ac_ext >&5
10431 samba_cv_HAVE_IFACE_IFCONF
=no
10438 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10439 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10440 iface
=yes;cat >> confdefs.h
<<\EOF
10441 #define HAVE_IFACE_IFCONF 1
10447 if test $iface = no
; then
10448 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10449 echo "configure:10450: checking for iface ifreq" >&5
10450 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10451 echo $ac_n "(cached) $ac_c" 1>&6
10454 if test "$cross_compiling" = yes; then
10455 samba_cv_HAVE_IFACE_IFREQ
=cross
10457 cat > conftest.
$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10461 #define HAVE_IFACE_IFREQ 1
10462 #define AUTOCONF_TEST 1
10463 #include "confdefs.h"
10464 #include "${srcdir-.}/lib/interfaces.c"
10466 if { (eval echo configure
:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10468 samba_cv_HAVE_IFACE_IFREQ
=yes
10470 echo "configure: failed program was:" >&5
10471 cat conftest.
$ac_ext >&5
10473 samba_cv_HAVE_IFACE_IFREQ
=no
10480 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10481 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10482 iface
=yes;cat >> confdefs.h
<<\EOF
10483 #define HAVE_IFACE_IFREQ 1
10490 ################################################
10491 # look for a method of setting the effective uid
10493 if test $seteuid = no
; then
10494 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10495 echo "configure:10496: checking for setresuid" >&5
10496 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10497 echo $ac_n "(cached) $ac_c" 1>&6
10500 if test "$cross_compiling" = yes; then
10501 samba_cv_USE_SETRESUID
=cross
10503 cat > conftest.
$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10507 #define AUTOCONF_TEST 1
10508 #define USE_SETRESUID 1
10509 #include "confdefs.h"
10510 #include "${srcdir-.}/lib/util_sec.c"
10512 if { (eval echo configure
:10513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10514 samba_cv_USE_SETRESUID
=yes
10516 echo "configure: failed program was:" >&5
10517 cat conftest.
$ac_ext >&5
10519 samba_cv_USE_SETRESUID
=no
10526 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10527 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10528 seteuid
=yes;cat >> confdefs.h
<<\EOF
10529 #define USE_SETRESUID 1
10536 if test $seteuid = no
; then
10537 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10538 echo "configure:10539: checking for setreuid" >&5
10539 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10543 if test "$cross_compiling" = yes; then
10544 samba_cv_USE_SETREUID
=cross
10546 cat > conftest.
$ac_ext <<EOF
10547 #line 10548 "configure"
10548 #include "confdefs.h"
10550 #define AUTOCONF_TEST 1
10551 #define USE_SETREUID 1
10552 #include "confdefs.h"
10553 #include "${srcdir-.}/lib/util_sec.c"
10555 if { (eval echo configure
:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10557 samba_cv_USE_SETREUID
=yes
10559 echo "configure: failed program was:" >&5
10560 cat conftest.
$ac_ext >&5
10562 samba_cv_USE_SETREUID
=no
10569 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10570 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10571 seteuid
=yes;cat >> confdefs.h
<<\EOF
10572 #define USE_SETREUID 1
10578 if test $seteuid = no
; then
10579 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10580 echo "configure:10581: checking for seteuid" >&5
10581 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10582 echo $ac_n "(cached) $ac_c" 1>&6
10585 if test "$cross_compiling" = yes; then
10586 samba_cv_USE_SETEUID
=cross
10588 cat > conftest.
$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10592 #define AUTOCONF_TEST 1
10593 #define USE_SETEUID 1
10594 #include "confdefs.h"
10595 #include "${srcdir-.}/lib/util_sec.c"
10597 if { (eval echo configure
:10598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10599 samba_cv_USE_SETEUID
=yes
10601 echo "configure: failed program was:" >&5
10602 cat conftest.
$ac_ext >&5
10604 samba_cv_USE_SETEUID
=no
10611 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10612 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10613 seteuid
=yes;cat >> confdefs.h
<<\EOF
10614 #define USE_SETEUID 1
10620 if test $seteuid = no
; then
10621 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10622 echo "configure:10623: checking for setuidx" >&5
10623 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10627 if test "$cross_compiling" = yes; then
10628 samba_cv_USE_SETUIDX
=cross
10630 cat > conftest.
$ac_ext <<EOF
10631 #line 10632 "configure"
10632 #include "confdefs.h"
10634 #define AUTOCONF_TEST 1
10635 #define USE_SETUIDX 1
10636 #include "confdefs.h"
10637 #include "${srcdir-.}/lib/util_sec.c"
10639 if { (eval echo configure
:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10641 samba_cv_USE_SETUIDX
=yes
10643 echo "configure: failed program was:" >&5
10644 cat conftest.
$ac_ext >&5
10646 samba_cv_USE_SETUIDX
=no
10653 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10654 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10655 seteuid
=yes;cat >> confdefs.h
<<\EOF
10656 #define USE_SETUIDX 1
10663 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10664 echo "configure:10665: checking for working mmap" >&5
10665 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10669 if test "$cross_compiling" = yes; then
10670 samba_cv_HAVE_MMAP
=cross
10672 cat > conftest.
$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10675 #include "${srcdir-.}/tests/shared_mmap.c"
10677 if { (eval echo configure
:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10679 samba_cv_HAVE_MMAP
=yes
10681 echo "configure: failed program was:" >&5
10682 cat conftest.
$ac_ext >&5
10684 samba_cv_HAVE_MMAP
=no
10691 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10692 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10693 cat >> confdefs.h
<<\EOF
10694 #define HAVE_MMAP 1
10699 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10700 echo "configure:10701: checking for ftruncate needs root" >&5
10701 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10702 echo $ac_n "(cached) $ac_c" 1>&6
10705 if test "$cross_compiling" = yes; then
10706 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10708 cat > conftest.
$ac_ext <<EOF
10709 #line 10710 "configure"
10710 #include "confdefs.h"
10711 #include "${srcdir-.}/tests/ftruncroot.c"
10713 if { (eval echo configure
:10714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10715 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10717 echo "configure: failed program was:" >&5
10718 cat conftest.
$ac_ext >&5
10720 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10727 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10728 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10729 cat >> confdefs.h
<<\EOF
10730 #define FTRUNCATE_NEEDS_ROOT 1
10735 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10736 echo "configure:10737: checking for fcntl locking" >&5
10737 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10741 if test "$cross_compiling" = yes; then
10742 samba_cv_HAVE_FCNTL_LOCK
=cross
10744 cat > conftest.
$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10747 #include "${srcdir-.}/tests/fcntl_lock.c"
10749 if { (eval echo configure
:10750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10751 samba_cv_HAVE_FCNTL_LOCK
=yes
10753 echo "configure: failed program was:" >&5
10754 cat conftest.
$ac_ext >&5
10756 samba_cv_HAVE_FCNTL_LOCK
=no
10763 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10764 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10765 cat >> confdefs.h
<<\EOF
10766 #define HAVE_FCNTL_LOCK 1
10771 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10772 echo "configure:10773: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10773 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10774 echo $ac_n "(cached) $ac_c" 1>&6
10777 if test "$cross_compiling" = yes; then
10778 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10780 cat > conftest.
$ac_ext <<EOF
10781 #line 10782 "configure"
10782 #include "confdefs.h"
10783 #include "${srcdir-.}/tests/fcntl_lock64.c"
10785 if { (eval echo configure
:10786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10787 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10789 echo "configure: failed program was:" >&5
10790 cat conftest.
$ac_ext >&5
10792 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10799 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10800 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10801 cat >> confdefs.h
<<\EOF
10802 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10809 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10810 echo "configure:10811: checking for 64 bit fcntl locking" >&5
10811 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10815 if test "$cross_compiling" = yes; then
10816 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10818 cat > conftest.
$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10822 #if defined(HAVE_UNISTD_H)
10823 #include <unistd.h>
10826 #include <stdlib.h>
10828 #ifdef HAVE_FCNTL_H
10832 #ifdef HAVE_SYS_FCNTL_H
10833 #include <sys/fcntl.h>
10835 main() { struct flock64 fl64;
10836 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10843 if { (eval echo configure
:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10845 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10847 echo "configure: failed program was:" >&5
10848 cat conftest.
$ac_ext >&5
10850 samba_cv_HAVE_STRUCT_FLOCK64
=no
10857 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10859 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10860 cat >> confdefs.h
<<\EOF
10861 #define HAVE_STRUCT_FLOCK64 1
10867 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10868 echo "configure:10869: checking for a crypt that needs truncated salt" >&5
10869 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10873 if test "$cross_compiling" = yes; then
10874 samba_cv_HAVE_TRUNCATED_SALT
=cross
10876 cat > conftest.
$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10879 #include "${srcdir-.}/tests/crypttest.c"
10881 if { (eval echo configure
:10882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10883 samba_cv_HAVE_TRUNCATED_SALT
=no
10885 echo "configure: failed program was:" >&5
10886 cat conftest.
$ac_ext >&5
10888 samba_cv_HAVE_TRUNCATED_SALT
=yes
10895 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10896 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10897 cat >> confdefs.h
<<\EOF
10898 #define HAVE_TRUNCATED_SALT 1
10903 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10904 echo "configure:10905: checking for broken nisplus include files" >&5
10905 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10909 cat > conftest.
$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10912 #include <sys/acl.h>
10913 #if defined(HAVE_RPCSVC_NIS_H)
10914 #include <rpcsvc/nis.h>
10920 if { (eval echo configure
:10921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10922 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10924 echo "configure: failed program was:" >&5
10925 cat conftest.
$ac_ext >&5
10927 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10932 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10933 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10934 cat >> confdefs.h
<<\EOF
10935 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10941 #################################################
10942 # check for smbwrapper support
10943 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10944 echo "configure:10945: checking whether to use smbwrapper" >&5
10945 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10946 if test "${with_smbwrapper+set}" = set; then
10947 withval
="$with_smbwrapper"
10950 echo "$ac_t""yes" 1>&6
10951 cat >> confdefs.h
<<\EOF
10952 #define WITH_SMBWRAPPER 1
10955 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10957 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10960 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10963 # Conditions under which smbwrapper should not be built.
10965 if test x
$PICFLAG = x
; then
10966 echo No support
for PIC code
- disabling smbwrapper and smbsh
10969 elif test x
$ac_cv_func_syscall = xno
; then
10970 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10976 echo "$ac_t""no" 1>&6
10980 echo "$ac_t""no" 1>&6
10985 #################################################
10986 # check for the AFS filesystem
10987 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10988 echo "configure:10989: checking whether to use AFS" >&5
10989 # Check whether --with-afs or --without-afs was given.
10990 if test "${with_afs+set}" = set; then
10991 withval
="$with_afs"
10994 echo "$ac_t""yes" 1>&6
10995 cat >> confdefs.h
<<\EOF
11001 echo "$ac_t""no" 1>&6
11005 echo "$ac_t""no" 1>&6
11011 #################################################
11012 # check for the DFS auth system
11013 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11014 echo "configure:11015: checking whether to use DFS auth" >&5
11015 # Check whether --with-dfs or --without-dfs was given.
11016 if test "${with_dfs+set}" = set; then
11017 withval
="$with_dfs"
11020 echo "$ac_t""yes" 1>&6
11021 cat >> confdefs.h
<<\EOF
11027 echo "$ac_t""no" 1>&6
11031 echo "$ac_t""no" 1>&6
11036 #################################################
11037 # check for Kerberos IV auth system
11038 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11039 echo "configure:11040: checking whether to use Kerberos IV" >&5
11040 # Check whether --with-krb4 or --without-krb4 was given.
11041 if test "${with_krb4+set}" = set; then
11042 withval
="$with_krb4"
11043 echo "$ac_t""yes" 1>&6
11044 cat >> confdefs.h
<<\EOF
11045 #define KRB4_AUTH 1
11048 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11049 echo "configure:11050: checking for dn_expand in -lresolv" >&5
11050 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11052 echo $ac_n "(cached) $ac_c" 1>&6
11054 ac_save_LIBS
="$LIBS"
11055 LIBS
="-lresolv $LIBS"
11056 cat > conftest.
$ac_ext <<EOF
11057 #line 11058 "configure"
11058 #include "confdefs.h"
11059 /* Override any gcc2 internal prototype to avoid an error. */
11060 /* We use char because int might match the return type of a gcc2
11061 builtin and then its argument prototype would still apply. */
11068 if { (eval echo configure
:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11070 eval "ac_cv_lib_$ac_lib_var=yes"
11072 echo "configure: failed program was:" >&5
11073 cat conftest.
$ac_ext >&5
11075 eval "ac_cv_lib_$ac_lib_var=no"
11078 LIBS
="$ac_save_LIBS"
11081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11082 echo "$ac_t""yes" 1>&6
11083 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11084 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11085 cat >> confdefs.h
<<EOF
11086 #define $ac_tr_lib 1
11089 LIBS
="-lresolv $LIBS"
11092 echo "$ac_t""no" 1>&6
11095 LIBS
="$LIBS -lkrb -ldes"
11096 CFLAGS
="$CFLAGS -I$withval/include"
11097 LDFLAGS
="$LDFLAGS -L$withval/lib"
11099 echo "$ac_t""no" 1>&6
11104 #################################################
11105 # check for Kerberos 5 auth system
11106 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11107 echo "configure:11108: checking whether to use Kerberos 5" >&5
11108 # Check whether --with-krb5 or --without-krb5 was given.
11109 if test "${with_krb5+set}" = set; then
11110 withval
="$with_krb5"
11111 echo "$ac_t""yes" 1>&6
11112 cat >> confdefs.h
<<\EOF
11113 #define KRB5_AUTH 1
11116 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11117 CFLAGS
="$CFLAGS -I$withval/include"
11118 LDFLAGS
="$LDFLAGS -L$withval/lib"
11120 echo "$ac_t""no" 1>&6
11125 #################################################
11126 # check for automount support
11127 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11128 echo "configure:11129: checking whether to use AUTOMOUNT" >&5
11129 # Check whether --with-automount or --without-automount was given.
11130 if test "${with_automount+set}" = set; then
11131 withval
="$with_automount"
11134 echo "$ac_t""yes" 1>&6
11135 cat >> confdefs.h
<<\EOF
11136 #define WITH_AUTOMOUNT 1
11141 echo "$ac_t""no" 1>&6
11145 echo "$ac_t""no" 1>&6
11150 #################################################
11151 # check for smbmount support
11152 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11153 echo "configure:11154: checking whether to use SMBMOUNT" >&5
11154 # Check whether --with-smbmount or --without-smbmount was given.
11155 if test "${with_smbmount+set}" = set; then
11156 withval
="$with_smbmount"
11159 echo "$ac_t""yes" 1>&6
11160 cat >> confdefs.h
<<\EOF
11161 #define WITH_SMBMOUNT 1
11164 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11167 echo "$ac_t""no" 1>&6
11172 echo "$ac_t""no" 1>&6
11179 #################################################
11180 # check for a PAM password database
11181 with_pam_for_crypt
=no
11182 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11183 echo "configure:11184: checking whether to use PAM password database" >&5
11184 # Check whether --with-pam or --without-pam was given.
11185 if test "${with_pam+set}" = set; then
11186 withval
="$with_pam"
11189 echo "$ac_t""yes" 1>&6
11190 cat >> confdefs.h
<<\EOF
11195 with_pam_for_crypt
=yes
11198 echo "$ac_t""no" 1>&6
11202 echo "$ac_t""no" 1>&6
11207 # we can't build a pam module if we don't have pam.
11208 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11209 echo "configure:11210: checking for pam_get_data in -lpam" >&5
11210 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11212 echo $ac_n "(cached) $ac_c" 1>&6
11214 ac_save_LIBS
="$LIBS"
11216 cat > conftest.
$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11219 /* Override any gcc2 internal prototype to avoid an error. */
11220 /* We use char because int might match the return type of a gcc2
11221 builtin and then its argument prototype would still apply. */
11222 char pam_get_data();
11228 if { (eval echo configure
:11229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11230 eval "ac_cv_lib_$ac_lib_var=yes"
11232 echo "configure: failed program was:" >&5
11233 cat conftest.
$ac_ext >&5
11235 eval "ac_cv_lib_$ac_lib_var=no"
11238 LIBS
="$ac_save_LIBS"
11241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11242 echo "$ac_t""yes" 1>&6
11243 cat >> confdefs.h
<<\EOF
11244 #define HAVE_LIBPAM 1
11248 echo "$ac_t""no" 1>&6
11252 #################################################
11253 # check for pam_smbpass support
11254 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11255 echo "configure:11256: checking whether to use pam_smbpass" >&5
11256 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11257 if test "${with_pam_smbpass+set}" = set; then
11258 withval
="$with_pam_smbpass"
11261 echo "$ac_t""yes" 1>&6
11263 # Conditions under which pam_smbpass should not be built.
11265 if test x
$PICFLAG = x
; then
11266 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11268 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11269 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11272 cat >> confdefs.h
<<\EOF
11273 #define WITH_PAM_SMBPASS 1
11276 PAM_MOD
="bin/pam_smbpass.so"
11280 echo "$ac_t""no" 1>&6
11284 echo "$ac_t""no" 1>&6
11290 ###############################################
11291 # test for where we get crypt() from, but only
11293 if test $with_pam_for_crypt = no
; then
11294 for ac_func
in crypt
11296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11297 echo "configure:11298: checking for $ac_func" >&5
11298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11301 cat > conftest.
$ac_ext <<EOF
11302 #line 11303 "configure"
11303 #include "confdefs.h"
11304 /* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func(); below. */
11306 #include <assert.h>
11307 /* Override any gcc2 internal prototype to avoid an error. */
11308 /* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11314 /* The GNU C library defines this for functions which it implements
11315 to always fail with ENOSYS. Some functions are actually named
11316 something starting with __ and the normal name is an alias. */
11317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11325 if { (eval echo configure
:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11327 eval "ac_cv_func_$ac_func=yes"
11329 echo "configure: failed program was:" >&5
11330 cat conftest.
$ac_ext >&5
11332 eval "ac_cv_func_$ac_func=no"
11337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11340 cat >> confdefs.h
<<EOF
11341 #define $ac_tr_func 1
11345 echo "$ac_t""no" 1>&6
11349 if test x
"$ac_cv_func_crypt" = x
"no"; then
11350 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11351 echo "configure:11352: checking for crypt in -lcrypt" >&5
11352 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11354 echo $ac_n "(cached) $ac_c" 1>&6
11356 ac_save_LIBS
="$LIBS"
11357 LIBS
="-lcrypt $LIBS"
11358 cat > conftest.
$ac_ext <<EOF
11359 #line 11360 "configure"
11360 #include "confdefs.h"
11361 /* Override any gcc2 internal prototype to avoid an error. */
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11370 if { (eval echo configure
:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11372 eval "ac_cv_lib_$ac_lib_var=yes"
11374 echo "configure: failed program was:" >&5
11375 cat conftest.
$ac_ext >&5
11377 eval "ac_cv_lib_$ac_lib_var=no"
11380 LIBS
="$ac_save_LIBS"
11383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11384 echo "$ac_t""yes" 1>&6
11385 LIBS
="$LIBS -lcrypt";
11386 cat >> confdefs.h
<<\EOF
11387 #define HAVE_CRYPT 1
11391 echo "$ac_t""no" 1>&6
11398 #################################################
11399 # check for a TDB password database
11400 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11401 echo "configure:11402: checking whether to use TDB password database" >&5
11402 # Check whether --with-tdbsam or --without-tdbsam was given.
11403 if test "${with_tdbsam+set}" = set; then
11404 withval
="$with_tdbsam"
11407 echo "$ac_t""yes" 1>&6
11408 cat >> confdefs.h
<<\EOF
11409 #define WITH_TDBPWD 1
11412 # AC_MSG_ERROR([TDB password database not supported in this version.])
11415 echo "$ac_t""no" 1>&6
11419 echo "$ac_t""no" 1>&6
11424 #################################################
11425 # check for a LDAP password database
11426 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11427 echo "configure:11428: checking whether to use LDAP password database" >&5
11428 # Check whether --with-ldap or --without-ldap was given.
11429 if test "${with_ldap+set}" = set; then
11430 withval
="$with_ldap"
11433 echo "$ac_t""yes" 1>&6
11434 cat >> confdefs.h
<<\EOF
11435 #define WITH_LDAP 1
11438 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11441 echo "$ac_t""no" 1>&6
11445 echo "$ac_t""no" 1>&6
11450 #################################################
11451 # check for a NISPLUS password database
11452 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11453 echo "configure:11454: checking whether to use NISPLUS password database" >&5
11454 # Check whether --with-nisplus or --without-nisplus was given.
11455 if test "${with_nisplus+set}" = set; then
11456 withval
="$with_nisplus"
11459 echo "$ac_t""yes" 1>&6
11460 cat >> confdefs.h
<<\EOF
11461 #define WITH_NISPLUS 1
11466 echo "$ac_t""no" 1>&6
11470 echo "$ac_t""no" 1>&6
11475 #################################################
11476 # check for a NISPLUS_HOME support
11477 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11478 echo "configure:11479: checking whether to use NISPLUS_HOME" >&5
11479 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11480 if test "${with_nisplus_home+set}" = set; then
11481 withval
="$with_nisplus_home"
11484 echo "$ac_t""yes" 1>&6
11485 cat >> confdefs.h
<<\EOF
11486 #define WITH_NISPLUS_HOME 1
11491 echo "$ac_t""no" 1>&6
11495 echo "$ac_t""no" 1>&6
11500 #################################################
11501 # check for the secure socket layer
11502 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11503 echo "configure:11504: checking whether to use SSL" >&5
11504 # Check whether --with-ssl or --without-ssl was given.
11505 if test "${with_ssl+set}" = set; then
11506 withval
="$with_ssl"
11509 echo "$ac_t""yes" 1>&6
11510 cat >> confdefs.h
<<\EOF
11514 withval
="/usr/local/ssl" # default
11516 if test "${with_sslinc+set}" = set; then
11518 withval
="$with_sslinc"
11521 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11522 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11523 LIBS
="-lssl -lcrypto $LIBS"
11524 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11527 CFLAGS
="-I${withval}/include $CFLAGS"
11528 LIBS
="-lssl -lcrypto $LIBS"
11529 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11535 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11536 LIBS
="-lssl -lcrypto $LIBS"
11537 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11541 if test ! -d ${withval}; then
11542 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11546 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11550 echo "$ac_t""no" 1>&6
11554 echo "$ac_t""no" 1>&6
11559 #################################################
11560 # check for syslog logging
11561 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11562 echo "configure:11563: checking whether to use syslog logging" >&5
11563 # Check whether --with-syslog or --without-syslog was given.
11564 if test "${with_syslog+set}" = set; then
11565 withval
="$with_syslog"
11568 echo "$ac_t""yes" 1>&6
11569 cat >> confdefs.h
<<\EOF
11570 #define WITH_SYSLOG 1
11575 echo "$ac_t""no" 1>&6
11579 echo "$ac_t""no" 1>&6
11584 #################################################
11585 # check for a shared memory profiling support
11586 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11587 echo "configure:11588: checking whether to use profiling" >&5
11588 # Check whether --with-profile or --without-profile was given.
11589 if test "${with_profile+set}" = set; then
11590 withval
="$with_profile"
11593 echo "$ac_t""yes" 1>&6
11594 cat >> confdefs.h
<<\EOF
11595 #define WITH_PROFILE 1
11600 echo "$ac_t""no" 1>&6
11604 echo "$ac_t""no" 1>&6
11610 #################################################
11611 # check for experimental netatalk resource fork support
11612 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11613 echo "configure:11614: checking whether to support netatalk" >&5
11614 # Check whether --with-netatalk or --without-netatalk was given.
11615 if test "${with_netatalk+set}" = set; then
11616 withval
="$with_netatalk"
11619 echo "$ac_t""yes" 1>&6
11620 cat >> confdefs.h
<<\EOF
11621 #define WITH_NETATALK 1
11626 echo "$ac_t""no" 1>&6
11630 echo "$ac_t""no" 1>&6
11635 #################################################
11636 # check for experimental disk-quotas support
11637 QUOTAOBJS
=smbd
/noquotas.o
11639 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11640 echo "configure:11641: checking whether to support disk-quotas" >&5
11641 # Check whether --with-quotas or --without-quotas was given.
11642 if test "${with_quotas+set}" = set; then
11643 withval
="$with_quotas"
11646 echo "$ac_t""yes" 1>&6
11647 QUOTAOBJS
=smbd
/quotas.o
11650 echo "$ac_t""no" 1>&6
11654 echo "$ac_t""no" 1>&6
11660 #################################################
11661 # check for experimental utmp accounting
11663 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11664 echo "configure:11665: checking whether to support utmp accounting" >&5
11665 # Check whether --with-utmp or --without-utmp was given.
11666 if test "${with_utmp+set}" = set; then
11667 withval
="$with_utmp"
11670 echo "$ac_t""yes" 1>&6
11671 cat >> confdefs.h
<<\EOF
11672 #define WITH_UTMP 1
11677 echo "$ac_t""no" 1>&6
11681 echo "$ac_t""no" 1>&6
11686 #################################################
11687 # check for MS Dfs support
11689 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11690 echo "configure:11691: checking whether to support Microsoft Dfs" >&5
11691 # Check whether --with-msdfs or --without-msdfs was given.
11692 if test "${with_msdfs+set}" = set; then
11693 withval
="$with_msdfs"
11696 echo "$ac_t""yes" 1>&6
11697 cat >> confdefs.h
<<\EOF
11698 #define WITH_MSDFS 1
11703 echo "$ac_t""no" 1>&6
11707 echo "$ac_t""no" 1>&6
11712 #################################################
11713 # set private directory location
11714 # Check whether --with-privatedir or --without-privatedir was given.
11715 if test "${with_privatedir+set}" = set; then
11716 withval
="$with_privatedir"
11720 # Just in case anybody calls it without argument
11722 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11723 privatedir
='${prefix}/private'
11726 privatedir
="$withval"
11731 privatedir
='${prefix}/private'
11737 #################################################
11738 # set lock directory location
11739 # Check whether --with-lockdir or --without-lockdir was given.
11740 if test "${with_lockdir+set}" = set; then
11741 withval
="$with_lockdir"
11745 # Just in case anybody calls it without argument
11747 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11748 lockdir
='$(VARDIR)/locks'
11756 lockdir
='$(VARDIR)/locks'
11762 #################################################
11763 # set SWAT directory location
11764 # Check whether --with-swatdir or --without-swatdir was given.
11765 if test "${with_swatdir+set}" = set; then
11766 withval
="$with_swatdir"
11770 # Just in case anybody does it
11772 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11773 swatdir
='${prefix}/swat'
11781 swatdir
='${prefix}/swat'
11787 #################################################
11788 # these tests are taken from the GNU fileutils package
11789 echo "checking how to get filesystem space usage" 1>&6
11790 echo "configure:11791: checking how to get filesystem space usage" >&5
11793 # Test for statvfs64.
11794 if test $space = no
; then
11796 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11797 echo "configure:11798: checking statvfs64 function (SVR4)" >&5
11798 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11799 echo $ac_n "(cached) $ac_c" 1>&6
11801 if test "$cross_compiling" = yes; then
11802 fu_cv_sys_stat_statvfs64
=cross
11804 cat > conftest.
$ac_ext <<EOF
11805 #line 11806 "configure"
11806 #include "confdefs.h"
11808 #if defined(HAVE_UNISTD_H)
11809 #include <unistd.h>
11811 #include <sys/types.h>
11812 #include <sys/statvfs.h>
11815 struct statvfs64 fsd;
11816 exit (statvfs64 (".", &fsd));
11819 if { (eval echo configure
:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11821 fu_cv_sys_stat_statvfs64
=yes
11823 echo "configure: failed program was:" >&5
11824 cat conftest.
$ac_ext >&5
11826 fu_cv_sys_stat_statvfs64
=no
11833 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11834 if test $fu_cv_sys_stat_statvfs64 = yes; then
11836 cat >> confdefs.h
<<\EOF
11837 #define STAT_STATVFS64 1
11843 # Perform only the link test since it seems there are no variants of the
11844 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11845 # because that got a false positive on SCO OSR5. Adding the declaration
11846 # of a `struct statvfs' causes this test to fail (as it should) on such
11847 # systems. That system is reported to work fine with STAT_STATFS4 which
11848 # is what it gets when this test fails.
11849 if test $space = no
; then
11851 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11852 echo "configure:11853: checking statvfs function (SVR4)" >&5
11853 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11854 echo $ac_n "(cached) $ac_c" 1>&6
11856 cat > conftest.
$ac_ext <<EOF
11857 #line 11858 "configure"
11858 #include "confdefs.h"
11859 #include <sys/types.h>
11860 #include <sys/statvfs.h>
11862 struct statvfs fsd; statvfs (0, &fsd);
11865 if { (eval echo configure
:11866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11867 fu_cv_sys_stat_statvfs
=yes
11869 echo "configure: failed program was:" >&5
11870 cat conftest.
$ac_ext >&5
11872 fu_cv_sys_stat_statvfs
=no
11877 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11878 if test $fu_cv_sys_stat_statvfs = yes; then
11880 cat >> confdefs.h
<<\EOF
11881 #define STAT_STATVFS 1
11887 if test $space = no
; then
11888 # DEC Alpha running OSF/1
11889 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11890 echo "configure:11891: checking for 3-argument statfs function (DEC OSF/1)" >&5
11891 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11892 echo $ac_n "(cached) $ac_c" 1>&6
11894 if test "$cross_compiling" = yes; then
11895 fu_cv_sys_stat_statfs3_osf1
=no
11897 cat > conftest.
$ac_ext <<EOF
11898 #line 11899 "configure"
11899 #include "confdefs.h"
11901 #include <sys/param.h>
11902 #include <sys/types.h>
11903 #include <sys/mount.h>
11908 exit (statfs (".", &fsd, sizeof (struct statfs)));
11911 if { (eval echo configure
:11912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11913 fu_cv_sys_stat_statfs3_osf1
=yes
11915 echo "configure: failed program was:" >&5
11916 cat conftest.
$ac_ext >&5
11918 fu_cv_sys_stat_statfs3_osf1
=no
11925 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11926 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11928 cat >> confdefs.h
<<\EOF
11929 #define STAT_STATFS3_OSF1 1
11935 if test $space = no
; then
11937 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11938 echo "configure:11939: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11939 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11942 if test "$cross_compiling" = yes; then
11943 fu_cv_sys_stat_statfs2_bsize
=no
11945 cat > conftest.
$ac_ext <<EOF
11946 #line 11947 "configure"
11947 #include "confdefs.h"
11949 #ifdef HAVE_SYS_PARAM_H
11950 #include <sys/param.h>
11952 #ifdef HAVE_SYS_MOUNT_H
11953 #include <sys/mount.h>
11955 #ifdef HAVE_SYS_VFS_H
11956 #include <sys/vfs.h>
11962 exit (statfs (".", &fsd));
11965 if { (eval echo configure
:11966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11967 fu_cv_sys_stat_statfs2_bsize
=yes
11969 echo "configure: failed program was:" >&5
11970 cat conftest.
$ac_ext >&5
11972 fu_cv_sys_stat_statfs2_bsize
=no
11979 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11980 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11982 cat >> confdefs.h
<<\EOF
11983 #define STAT_STATFS2_BSIZE 1
11989 if test $space = no
; then
11991 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11992 echo "configure:11993: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11993 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11994 echo $ac_n "(cached) $ac_c" 1>&6
11996 if test "$cross_compiling" = yes; then
11997 fu_cv_sys_stat_statfs4
=no
11999 cat > conftest.
$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 #include <sys/types.h>
12003 #include <sys/statfs.h>
12007 exit (statfs (".", &fsd, sizeof fsd, 0));
12010 if { (eval echo configure
:12011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12012 fu_cv_sys_stat_statfs4
=yes
12014 echo "configure: failed program was:" >&5
12015 cat conftest.
$ac_ext >&5
12017 fu_cv_sys_stat_statfs4
=no
12024 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12025 if test $fu_cv_sys_stat_statfs4 = yes; then
12027 cat >> confdefs.h
<<\EOF
12028 #define STAT_STATFS4 1
12034 if test $space = no
; then
12035 # 4.4BSD and NetBSD
12036 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12037 echo "configure:12038: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12038 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12039 echo $ac_n "(cached) $ac_c" 1>&6
12041 if test "$cross_compiling" = yes; then
12042 fu_cv_sys_stat_statfs2_fsize
=no
12044 cat > conftest.
$ac_ext <<EOF
12045 #line 12046 "configure"
12046 #include "confdefs.h"
12047 #include <sys/types.h>
12048 #ifdef HAVE_SYS_PARAM_H
12049 #include <sys/param.h>
12051 #ifdef HAVE_SYS_MOUNT_H
12052 #include <sys/mount.h>
12058 exit (statfs (".", &fsd));
12061 if { (eval echo configure
:12062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12063 fu_cv_sys_stat_statfs2_fsize
=yes
12065 echo "configure: failed program was:" >&5
12066 cat conftest.
$ac_ext >&5
12068 fu_cv_sys_stat_statfs2_fsize
=no
12075 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12076 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12078 cat >> confdefs.h
<<\EOF
12079 #define STAT_STATFS2_FSIZE 1
12085 if test $space = no
; then
12087 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12088 echo "configure:12089: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12089 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
12092 if test "$cross_compiling" = yes; then
12093 fu_cv_sys_stat_fs_data
=no
12095 cat > conftest.
$ac_ext <<EOF
12096 #line 12097 "configure"
12097 #include "confdefs.h"
12098 #include <sys/types.h>
12099 #ifdef HAVE_SYS_PARAM_H
12100 #include <sys/param.h>
12102 #ifdef HAVE_SYS_MOUNT_H
12103 #include <sys/mount.h>
12105 #ifdef HAVE_SYS_FS_TYPES_H
12106 #include <sys/fs_types.h>
12110 struct fs_data fsd;
12111 /* Ultrix's statfs returns 1 for success,
12112 0 for not mounted, -1 for failure. */
12113 exit (statfs (".", &fsd) != 1);
12116 if { (eval echo configure
:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12118 fu_cv_sys_stat_fs_data
=yes
12120 echo "configure: failed program was:" >&5
12121 cat conftest.
$ac_ext >&5
12123 fu_cv_sys_stat_fs_data
=no
12130 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12131 if test $fu_cv_sys_stat_fs_data = yes; then
12133 cat >> confdefs.h
<<\EOF
12134 #define STAT_STATFS2_FS_DATA 1
12141 # As a gating factor for large file support, in order to
12142 # use <4GB files we must have the following minimal support
12144 # long long, and a 64 bit off_t or off64_t.
12145 # If we don't have all of these then disable large
12148 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12149 echo "configure:12150: checking if large file support can be enabled" >&5
12150 cat > conftest.
$ac_ext <<EOF
12151 #line 12152 "configure"
12152 #include "confdefs.h"
12154 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12155 #include <sys/types.h>
12164 if { (eval echo configure
:12165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12166 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12168 echo "configure: failed program was:" >&5
12169 cat conftest.
$ac_ext >&5
12171 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12174 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12175 echo "$ac_t""yes" 1>&6
12176 cat >> confdefs.h
<<\EOF
12177 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12181 echo "$ac_t""no" 1>&6
12183 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 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
12440 echo "checking configure summary"
12441 if test "$cross_compiling" = yes; then
12444 cat > conftest.
$ac_ext <<EOF
12445 #line 12446 "configure"
12446 #include "confdefs.h"
12447 #include "${srcdir-.}/tests/summary.c"
12449 if { (eval echo configure
:12450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12451 echo "configure OK";
12453 echo "configure: failed program was:" >&5
12454 cat conftest.
$ac_ext >&5
12456 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12466 cat > confcache
<<\EOF
12467 # This file is a shell script that caches the results of configure
12468 # tests run on this system so they can be shared between configure
12469 # scripts and configure runs. It is not useful on other systems.
12470 # If it contains results you don't want to keep, you may remove or edit it.
12472 # By default, configure uses ./config.cache as the cache file,
12473 # creating it if it does not exist already. You can give configure
12474 # the --cache-file=FILE option to use a different cache file; that is
12475 # what configure does when it calls configure scripts in
12476 # subdirectories, so they share the cache.
12477 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12478 # config.status only pays attention to the cache file if you give it the
12479 # --recheck option to rerun configure.
12482 # The following way of writing the cache mishandles newlines in values,
12483 # but we know of no workaround that is simple, portable, and efficient.
12484 # So, don't put newlines in cache variables' values.
12485 # Ultrix sh set writes to stderr and can't be redirected directly,
12486 # and sets the high bit in the cache file unless we assign to the vars.
12488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12490 # `set' does not quote correctly, so add quotes (double-quote substitution
12491 # turns \\\\ into \\, and sed turns \\ into \).
12493 -e "s/'/'\\\\''/g" \
12494 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12497 # `set' quotes correctly as required by POSIX, so do not add quotes.
12498 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12501 if cmp -s $cache_file confcache
; then
12504 if test -w $cache_file; then
12505 echo "updating cache $cache_file"
12506 cat confcache
> $cache_file
12508 echo "not updating unwritable cache $cache_file"
12513 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12515 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12516 # Let make expand exec_prefix.
12517 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12519 # Any assignment to VPATH causes Sun make to only execute
12520 # the first set of double-colon rules, so remove it if not needed.
12521 # If there is a colon in the path, we need to keep it.
12522 if test "x$srcdir" = x.
; then
12523 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12526 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12528 DEFS
=-DHAVE_CONFIG_H
12530 # Without the "./", some shells look in PATH for config.status.
12531 : ${CONFIG_STATUS=./config.status}
12533 echo creating
$CONFIG_STATUS
12534 rm -f $CONFIG_STATUS
12535 cat > $CONFIG_STATUS <<EOF
12537 # Generated automatically by configure.
12538 # Run this file to recreate the current configuration.
12539 # This directory was configured as follows,
12540 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12542 # $0 $ac_configure_args
12544 # Compiler output produced by configure, useful for debugging
12545 # configure, is in ./config.log if it exists.
12547 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12550 case "\$ac_option" in
12551 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12552 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12553 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12554 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12555 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12557 -help | --help | --hel | --he | --h)
12558 echo "\$ac_cs_usage"; exit 0 ;;
12559 *) echo "\$ac_cs_usage"; exit 1 ;;
12563 ac_given_srcdir=$srcdir
12564 ac_given_INSTALL="$INSTALL"
12566 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12568 cat >> $CONFIG_STATUS <<EOF
12570 # Protect against being on the right side of a sed subst in config.status.
12571 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12572 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12576 s%@CFLAGS@%$CFLAGS%g
12577 s%@CPPFLAGS@%$CPPFLAGS%g
12578 s%@CXXFLAGS@%$CXXFLAGS%g
12579 s%@FFLAGS@%$FFLAGS%g
12581 s%@LDFLAGS@%$LDFLAGS%g
12583 s%@exec_prefix@%$exec_prefix%g
12584 s%@prefix@%$prefix%g
12585 s%@program_transform_name@%$program_transform_name%g
12586 s%@bindir@%$bindir%g
12587 s%@sbindir@%$sbindir%g
12588 s%@libexecdir@%$libexecdir%g
12589 s%@datadir@%$datadir%g
12590 s%@sysconfdir@%$sysconfdir%g
12591 s%@sharedstatedir@%$sharedstatedir%g
12592 s%@localstatedir@%$localstatedir%g
12593 s%@libdir@%$libdir%g
12594 s%@includedir@%$includedir%g
12595 s%@oldincludedir@%$oldincludedir%g
12596 s%@infodir@%$infodir%g
12597 s%@mandir@%$mandir%g
12598 s%@RUNPROG@%$RUNPROG%g
12599 s%@MPROGS@%$MPROGS%g
12600 s%@LDSHFLAGS@%$LDSHFLAGS%g
12601 s%@HOST_OS@%$HOST_OS%g
12602 s%@PAM_MOD@%$PAM_MOD%g
12604 s%@WRAP32@%$WRAP32%g
12605 s%@PICFLAG@%$PICFLAG%g
12606 s%@SHLIBEXT@%$SHLIBEXT%g
12608 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12609 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12610 s%@INSTALL_DATA@%$INSTALL_DATA%g
12613 s%@host_alias@%$host_alias%g
12614 s%@host_cpu@%$host_cpu%g
12615 s%@host_vendor@%$host_vendor%g
12616 s%@host_os@%$host_os%g
12618 s%@build_alias@%$build_alias%g
12619 s%@build_cpu@%$build_cpu%g
12620 s%@build_vendor@%$build_vendor%g
12621 s%@build_os@%$build_os%g
12622 s%@RANLIB@%$RANLIB%g
12624 s%@LIBTOOL@%$LIBTOOL%g
12625 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12626 s%@BROKEN_CC@%$BROKEN_CC%g
12627 s%@target@%$target%g
12628 s%@target_alias@%$target_alias%g
12629 s%@target_cpu@%$target_cpu%g
12630 s%@target_vendor@%$target_vendor%g
12631 s%@target_os@%$target_os%g
12633 s%@LIBOBJS@%$LIBOBJS%g
12634 s%@TERMLIBS@%$TERMLIBS%g
12635 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12637 s%@QUOTAOBJS@%$QUOTAOBJS%g
12638 s%@privatedir@%$privatedir%g
12639 s%@lockdir@%$lockdir%g
12640 s%@swatdir@%$swatdir%g
12641 s%@builddir@%$builddir%g
12646 cat >> $CONFIG_STATUS <<\EOF
12648 # Split the substitutions into bite-sized pieces for seds with
12649 # small command number limits, like on Digital OSF/1 and HP-UX.
12650 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12651 ac_file
=1 # Number of current file.
12652 ac_beg
=1 # First line for current file.
12653 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12656 while $ac_more_lines; do
12657 if test $ac_beg -gt 1; then
12658 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12660 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12662 if test ! -s conftest.s
$ac_file; then
12663 ac_more_lines
=false
12664 rm -f conftest.s
$ac_file
12666 if test -z "$ac_sed_cmds"; then
12667 ac_sed_cmds
="sed -f conftest.s$ac_file"
12669 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12671 ac_file
=`expr $ac_file + 1`
12673 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12676 if test -z "$ac_sed_cmds"; then
12681 cat >> $CONFIG_STATUS <<EOF
12683 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12685 cat >> $CONFIG_STATUS <<\EOF
12686 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12689 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12690 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12691 *) ac_file_in
="${ac_file}.in" ;;
12694 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12696 # Remove last slash and all that follows it. Not all systems have dirname.
12697 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12699 # The file is in a subdirectory.
12700 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12701 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12702 # A "../" for each directory in $ac_dir_suffix.
12703 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12705 ac_dir_suffix
= ac_dots
=
12708 case "$ac_given_srcdir" in
12710 if test -z "$ac_dots"; then top_srcdir
=.
12711 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12712 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12713 *) # Relative path.
12714 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12715 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12718 case "$ac_given_INSTALL" in
12719 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12720 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12723 echo creating
"$ac_file"
12725 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12727 *Makefile
*) ac_comsub
="1i\\
12728 # $configure_input" ;;
12732 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12734 s%@configure_input@%$configure_input%g
12735 s%@srcdir@%$srcdir%g
12736 s%@top_srcdir@%$top_srcdir%g
12737 s%@INSTALL@%$INSTALL%g
12738 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12745 # ac_d sets the value in "#define NAME VALUE" lines.
12746 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12747 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12750 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12751 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12752 ac_uB
='\([ ]\)%\1#\2define\3'
12755 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12756 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12757 ac_eB
='$%\1#\2define\3'
12761 if test "${CONFIG_HEADERS+set}" != set; then
12763 cat >> $CONFIG_STATUS <<EOF
12764 CONFIG_HEADERS="include/config.h"
12766 cat >> $CONFIG_STATUS <<\EOF
12768 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12771 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12772 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12773 *) ac_file_in
="${ac_file}.in" ;;
12776 echo creating
$ac_file
12778 rm -f conftest.frag conftest.
in conftest.out
12779 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12780 cat $ac_file_inputs > conftest.
in
12784 # Transform confdefs.h into a sed script conftest.vals that substitutes
12785 # the proper values into config.h.in to produce config.h. And first:
12786 # Protect against being on the right side of a sed subst in config.status.
12787 # Protect against being in an unquoted here document in config.status.
12788 rm -f conftest.vals
12789 cat > conftest.hdr
<<\EOF
12792 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12796 sed -n -f conftest.hdr confdefs.h > conftest.vals
12799 # This sed command replaces #undef with comments. This is necessary, for
12800 # example, in the case of _POSIX_SOURCE, which is predefined and required
12801 # on some systems where configure will not decide to define it.
12802 cat >> conftest.vals <<\EOF
12803 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12806 # Break up conftest.vals because some shells have a limit on
12807 # the size of here documents, and old seds have small limits too.
12809 rm -f conftest.tail
12812 ac_lines=`grep -c . conftest.vals
`
12813 # grep -c gives empty output for an empty file on some AIX systems.
12814 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12815 # Write a limited-size here document to conftest.frag.
12816 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12817 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12819 sed -f conftest.frag conftest.in > conftest.out
12821 mv conftest.out conftest.in
12822 ' >> $CONFIG_STATUS
12823 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12824 rm -f conftest.vals
12825 mv conftest.tail conftest.vals
12827 rm -f conftest.vals
12829 cat >> $CONFIG_STATUS <<\EOF
12830 rm -f conftest.frag conftest.h
12831 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12832 cat conftest.in >> conftest.h
12834 if cmp -s $ac_file conftest.h 2>/dev/null; then
12835 echo "$ac_file is unchanged"
12838 # Remove last slash and all that follows it. Not all systems have dirname.
12839 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12840 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12841 # The file is in a subdirectory.
12842 test ! -d "$ac_dir" && mkdir "$ac_dir"
12845 mv conftest.h $ac_file
12850 cat >> $CONFIG_STATUS <<EOF
12853 cat >> $CONFIG_STATUS <<\EOF
12857 chmod +x $CONFIG_STATUS
12858 rm -fr confdefs* $ac_clean_files
12859 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1