3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 --enable-static[=PKGS] build static libraries [default=yes]"
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 --disable-libtool-lock avoid locking (might break parallel builds)"
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
50 --with-tdbpwd Include TDB password database
51 --without-tdbpwd Don't include TDB password database (default)"
53 --with-ldap Include LDAP support
54 --without-ldap Don't include LDAP support (default)"
56 --with-nisplus Include NISPLUS password database support
57 --without-nisplus Don't include NISPLUS password database support (default)"
59 --with-nisplus-home Include NISPLUS_HOME support
60 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
62 --with-ssl Include SSL support
63 --without-ssl Don't include SSL support (default)
64 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
66 --with-syslog Include experimental SYSLOG support
67 --without-syslog Don't include SYSLOG support (default)"
69 --with-profile Include profile support
70 --without-profile Don't include profile support (default)"
72 --with-netatalk Include experimental Netatalk support
73 --without-netatalk Don't include experimental Netatalk support (default)"
75 --with-quotas Include experimental disk-quota support
76 --without-quotas Don't include experimental disk-quota support (default)"
78 --with-utmp Include experimental utmp accounting
79 --without-utmp Don't include experimental utmp accounting (default)"
81 --with-msdfs Include MS Dfs support
82 --without-msdfs Don't include MS Dfs support (default)"
84 --with-vfs Include Samba vfs support
85 --without-vfs Don't include Samba vfs support (default)"
87 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
89 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
91 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
93 --with-spinlocks use spin locks instead of fcntl locks "
95 --with-posix-acls Include POSIX ACL support
96 --without-posix-acls Don't include POSIX ACL support (default)"
98 # Initialize some variables set by options.
99 # The variables have the same names as the options, with
100 # dashes changed to underlines.
102 cache_file
=.
/config.cache
111 program_transform_name
=s
,x
,x
,
119 bindir
='${exec_prefix}/bin'
120 sbindir
='${exec_prefix}/sbin'
121 libexecdir
='${exec_prefix}/libexec'
122 datadir
='${prefix}/share'
123 sysconfdir
='${prefix}/etc'
124 sharedstatedir
='${prefix}/com'
125 localstatedir
='${prefix}/var'
126 libdir
='${exec_prefix}/lib'
127 includedir
='${prefix}/include'
128 oldincludedir
='/usr/include'
129 infodir
='${prefix}/info'
130 mandir
='${prefix}/man'
132 # Initialize some other variables.
135 SHELL
=${CONFIG_SHELL-/bin/sh}
136 # Maximum number of lines to put in a shell here document.
143 # If the previous option needs an argument, assign it.
144 if test -n "$ac_prev"; then
145 eval "$ac_prev=\$ac_option"
151 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 # Accept the important Cygnus configure options, so we can diagnose typos.
159 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
161 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
162 bindir
="$ac_optarg" ;;
164 -build |
--build |
--buil |
--bui |
--bu)
166 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
167 build
="$ac_optarg" ;;
169 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
170 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
171 ac_prev
=cache_file
;;
172 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
173 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
174 cache_file
="$ac_optarg" ;;
176 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
178 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
180 datadir
="$ac_optarg" ;;
182 -disable-* |
--disable-*)
183 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}=no" ;;
191 -enable-* |
--enable-*)
192 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
193 # Reject names that are not valid shell variable names.
194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
202 eval "enable_${ac_feature}='$ac_optarg'" ;;
204 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
205 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
206 |
--exec |
--exe |
--ex)
207 ac_prev
=exec_prefix
;;
208 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
209 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
210 |
--exec=* |
--exe=* |
--ex=*)
211 exec_prefix
="$ac_optarg" ;;
213 -gas |
--gas |
--ga |
--g)
214 # Obsolete; use --with-gas.
217 -help |
--help |
--hel |
--he)
218 # Omit some internal or obsolete options to make the list less imposing.
219 # This message is too long to be a string in the A/UX 3.1 sh.
221 Usage: configure [options] [host]
222 Options: [defaults in brackets after descriptions]
224 --cache-file=FILE cache test results in FILE
225 --help print this message
226 --no-create do not create output files
227 --quiet, --silent do not print \`checking...' messages
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
272 -host |
--host |
--hos |
--ho)
274 -host=* |
--host=* |
--hos=* |
--ho=*)
277 -includedir |
--includedir |
--includedi |
--included |
--include \
278 |
--includ |
--inclu |
--incl |
--inc)
279 ac_prev
=includedir
;;
280 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
281 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
282 includedir
="$ac_optarg" ;;
284 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
286 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
287 infodir
="$ac_optarg" ;;
289 -libdir |
--libdir |
--libdi |
--libd)
291 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
292 libdir
="$ac_optarg" ;;
294 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
295 |
--libexe |
--libex |
--libe)
296 ac_prev
=libexecdir
;;
297 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
298 |
--libexe=* |
--libex=* |
--libe=*)
299 libexecdir
="$ac_optarg" ;;
301 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
302 |
--localstate |
--localstat |
--localsta |
--localst \
303 |
--locals |
--local |
--loca |
--loc |
--lo)
304 ac_prev
=localstatedir
;;
305 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
306 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
307 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
308 localstatedir
="$ac_optarg" ;;
310 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
312 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
313 mandir
="$ac_optarg" ;;
316 # Obsolete; use --without-fp.
319 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
323 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
324 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
327 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
328 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
329 |
--oldin |
--oldi |
--old |
--ol |
--o)
330 ac_prev
=oldincludedir
;;
331 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
332 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
333 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
334 oldincludedir
="$ac_optarg" ;;
336 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
338 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
339 prefix
="$ac_optarg" ;;
341 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
342 |
--program-pre |
--program-pr |
--program-p)
343 ac_prev
=program_prefix
;;
344 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
345 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
346 program_prefix
="$ac_optarg" ;;
348 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
349 |
--program-suf |
--program-su |
--program-s)
350 ac_prev
=program_suffix
;;
351 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
352 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
353 program_suffix
="$ac_optarg" ;;
355 -program-transform-name |
--program-transform-name \
356 |
--program-transform-nam |
--program-transform-na \
357 |
--program-transform-n |
--program-transform- \
358 |
--program-transform |
--program-transfor \
359 |
--program-transfo |
--program-transf \
360 |
--program-trans |
--program-tran \
361 |
--progr-tra |
--program-tr |
--program-t)
362 ac_prev
=program_transform_name
;;
363 -program-transform-name=* |
--program-transform-name=* \
364 |
--program-transform-nam=* |
--program-transform-na=* \
365 |
--program-transform-n=* |
--program-transform-=* \
366 |
--program-transform=* |
--program-transfor=* \
367 |
--program-transfo=* |
--program-transf=* \
368 |
--program-trans=* |
--program-tran=* \
369 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
370 program_transform_name
="$ac_optarg" ;;
372 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
373 |
-silent |
--silent |
--silen |
--sile |
--sil)
376 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
378 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
380 sbindir
="$ac_optarg" ;;
382 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
383 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
384 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
386 ac_prev
=sharedstatedir
;;
387 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
388 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
389 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
391 sharedstatedir
="$ac_optarg" ;;
393 -site |
--site |
--sit)
395 -site=* |
--site=* |
--sit=*)
398 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
400 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
401 srcdir
="$ac_optarg" ;;
403 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
404 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
405 ac_prev
=sysconfdir
;;
406 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
407 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
408 sysconfdir
="$ac_optarg" ;;
410 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
412 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
413 target
="$ac_optarg" ;;
415 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
418 -version |
--version |
--versio |
--versi |
--vers)
419 echo "configure generated by autoconf version 2.13"
423 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package
=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}='$ac_optarg'" ;;
435 -without-* |
--without-*)
436 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package
=`echo $ac_package| sed 's/-/_/g'`
442 eval "with_${ac_package}=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
449 |
--x-incl |
--x-inc |
--x-in |
--x-i)
450 ac_prev
=x_includes
;;
451 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
452 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
453 x_includes
="$ac_optarg" ;;
455 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
456 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
457 ac_prev
=x_libraries
;;
458 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
459 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
460 x_libraries
="$ac_optarg" ;;
462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE
; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
478 if test -n "$ac_prev"; then
479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484 # File descriptor usage:
487 # 2 errors and warnings
488 # 3 some systems may open it to /dev/tty
489 # 4 used on the Kubota Titan
490 # 6 checking for... messages and results
491 # 5 compiler messages saved in config.log
492 if test "$silent" = yes; then
500 This file contains any messages produced by compilers while
501 running configure, to aid debugging if configure makes a mistake.
504 # Strip out --no-create and --no-recursion so they do not pile up.
505 # Also quote any args containing shell metacharacters.
510 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
511 |
--no-cr |
--no-c) ;;
512 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
513 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
514 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
515 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
516 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
521 # Only set these to C if already set. These must not be set unconditionally
522 # because not all systems understand e.g. LANG=C (notably SCO).
523 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
524 # Non-C LC_CTYPE values break the ctype check.
525 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
526 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
527 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
528 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
531 rm -rf conftest
* confdefs.h
532 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
535 # A filename unique to this package, relative to the directory that
536 # configure is in, which we can look for to find out if srcdir is correct.
537 ac_unique_file
=include
/includes.h
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted
=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted
=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562 # Prefer explicitly selected file to automatically selected ones.
563 if test -z "$CONFIG_SITE"; then
564 if test "x$prefix" != xNONE
; then
565 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
567 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 for ac_site_file
in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp
='$CPP $CPPFLAGS'
588 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling
=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
603 ac_n
= ac_c
='\c' ac_t
=
608 # we want to be compatibe with older versions of Samba
621 # compile with optimisation and without debugging by default
622 CFLAGS
=${CFLAGS-"-O"}
624 # Extract the first word of "gcc", so it can be a program name with args.
625 set dummy gcc
; ac_word
=$2
626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627 echo "configure:628: checking for $ac_word" >&5
628 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 if test -n "$CC"; then
632 ac_cv_prog_CC
="$CC" # Let the user override the test.
634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
636 for ac_dir
in $ac_dummy; do
637 test -z "$ac_dir" && ac_dir
=.
638 if test -f $ac_dir/$ac_word; then
647 if test -n "$CC"; then
648 echo "$ac_t""$CC" 1>&6
650 echo "$ac_t""no" 1>&6
653 if test -z "$CC"; then
654 # Extract the first word of "cc", so it can be a program name with args.
655 set dummy cc
; ac_word
=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
661 if test -n "$CC"; then
662 ac_cv_prog_CC
="$CC" # Let the user override the test.
664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
667 for ac_dir
in $ac_dummy; do
668 test -z "$ac_dir" && ac_dir
=.
669 if test -f $ac_dir/$ac_word; then
670 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
679 if test $ac_prog_rejected = yes; then
680 # We found a bogon in the path, so make sure we never use it.
681 set dummy
$ac_cv_prog_CC
683 if test $# -gt 0; then
684 # We chose a different compiler from the bogus one.
685 # However, it has the same basename, so the bogon will be chosen
686 # first if we set CC to just the basename; use the full file name.
688 set dummy
"$ac_dir/$ac_word" "$@"
696 if test -n "$CC"; then
697 echo "$ac_t""$CC" 1>&6
699 echo "$ac_t""no" 1>&6
702 if test -z "$CC"; then
705 # Extract the first word of "cl", so it can be a program name with args.
706 set dummy cl
; ac_word
=$2
707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
708 echo "configure:709: checking for $ac_word" >&5
709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 if test -n "$CC"; then
713 ac_cv_prog_CC
="$CC" # Let the user override the test.
715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
717 for ac_dir
in $ac_dummy; do
718 test -z "$ac_dir" && ac_dir
=.
719 if test -f $ac_dir/$ac_word; then
728 if test -n "$CC"; then
729 echo "$ac_t""$CC" 1>&6
731 echo "$ac_t""no" 1>&6
736 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
739 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
740 echo "configure:741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
744 ac_cpp
='$CPP $CPPFLAGS'
745 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
746 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
747 cross_compiling
=$ac_cv_prog_cc_cross
749 cat > conftest.
$ac_ext << EOF
751 #line 752 "configure"
752 #include "confdefs.h"
756 if { (eval echo configure
:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
757 ac_cv_prog_cc_works
=yes
758 # If we can't run a trivial program, we are probably using a cross compiler.
759 if (.
/conftest
; exit) 2>/dev
/null
; then
760 ac_cv_prog_cc_cross
=no
762 ac_cv_prog_cc_cross
=yes
765 echo "configure: failed program was:" >&5
766 cat conftest.
$ac_ext >&5
767 ac_cv_prog_cc_works
=no
771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
772 ac_cpp
='$CPP $CPPFLAGS'
773 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
774 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
775 cross_compiling
=$ac_cv_prog_cc_cross
777 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
778 if test $ac_cv_prog_cc_works = no
; then
779 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
783 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
784 cross_compiling
=$ac_cv_prog_cc_cross
786 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
787 echo "configure:788: checking whether we are using GNU C" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 cat > conftest.c
<<EOF
796 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
803 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
805 if test $ac_cv_prog_gcc = yes; then
811 ac_test_CFLAGS
="${CFLAGS+set}"
812 ac_save_CFLAGS
="$CFLAGS"
814 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
815 echo "configure:816: checking whether ${CC-cc} accepts -g" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 echo 'void f(){}' > conftest.c
820 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
829 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
830 if test "$ac_test_CFLAGS" = set; then
831 CFLAGS
="$ac_save_CFLAGS"
832 elif test $ac_cv_prog_cc_g = yes; then
833 if test "$GCC" = yes; then
839 if test "$GCC" = yes; then
847 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
848 if test -f $ac_dir/install-sh
; then
850 ac_install_sh
="$ac_aux_dir/install-sh -c"
852 elif test -f $ac_dir/install.sh
; then
854 ac_install_sh
="$ac_aux_dir/install.sh -c"
858 if test -z "$ac_aux_dir"; then
859 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
861 ac_config_guess
=$ac_aux_dir/config.guess
862 ac_config_sub
=$ac_aux_dir/config.sub
863 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
865 # Find a good install program. We prefer a C program (faster),
866 # so one script is as good as another. But avoid the broken or
867 # incompatible versions:
868 # SysV /etc/install, /usr/sbin/install
869 # SunOS /usr/etc/install
872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
875 # ./install, which can be erroneously created by make from ./install.sh.
876 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
877 echo "configure:878: checking for a BSD compatible install" >&5
878 if test -z "$INSTALL"; then
879 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
883 for ac_dir
in $PATH; do
884 # Account for people who put trailing slashes in PATH elements.
886 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
888 # OSF1 and SCO ODT 3.0 have their own names for install.
889 # Don't use installbsd from OSF since it installs stuff as root
891 for ac_prog
in ginstall scoinst
install; do
892 if test -f $ac_dir/$ac_prog; then
893 if test $ac_prog = install &&
894 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
895 # AIX install. It has an incompatible calling convention.
898 ac_cv_path_install
="$ac_dir/$ac_prog -c"
909 if test "${ac_cv_path_install+set}" = set; then
910 INSTALL
="$ac_cv_path_install"
912 # As a last resort, use the slow shell script. We don't cache a
913 # path for INSTALL within a source directory, because that will
914 # break other packages using the cache if that directory is
915 # removed, or if the path is relative.
916 INSTALL
="$ac_install_sh"
919 echo "$ac_t""$INSTALL" 1>&6
921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
922 # It thinks the first close brace ends the variable substitution.
923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
927 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
929 for ac_prog
in gawk mawk nawk
awk
931 # Extract the first word of "$ac_prog", so it can be a program name with args.
932 set dummy
$ac_prog; ac_word
=$2
933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
934 echo "configure:935: checking for $ac_word" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 if test -n "$AWK"; then
939 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
941 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
943 for ac_dir
in $ac_dummy; do
944 test -z "$ac_dir" && ac_dir
=.
945 if test -f $ac_dir/$ac_word; then
946 ac_cv_prog_AWK
="$ac_prog"
953 AWK
="$ac_cv_prog_AWK"
954 if test -n "$AWK"; then
955 echo "$ac_t""$AWK" 1>&6
957 echo "$ac_t""no" 1>&6
960 test -n "$AWK" && break
963 # Check whether --enable-shared or --disable-shared was given.
964 if test "${enable_shared+set}" = set; then
965 enableval
="$enable_shared"
968 yes) enable_shared
=yes ;;
969 no
) enable_shared
=no
;;
972 # Look at the argument we got. We use all the common list separators.
973 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
974 for pkg
in $enableval; do
975 if test "X$pkg" = "X$p"; then
986 # Check whether --enable-static or --disable-static was given.
987 if test "${enable_static+set}" = set; then
988 enableval
="$enable_static"
991 yes) enable_static
=yes ;;
992 no
) enable_static
=no
;;
995 # Look at the argument we got. We use all the common list separators.
996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
997 for pkg
in $enableval; do
998 if test "X$pkg" = "X$p"; then
1009 # Check whether --enable-fast-install or --disable-fast-install was given.
1010 if test "${enable_fast_install+set}" = set; then
1011 enableval
="$enable_fast_install"
1012 p
=${PACKAGE-default}
1013 case "$enableval" in
1014 yes) enable_fast_install
=yes ;;
1015 no
) enable_fast_install
=no
;;
1017 enable_fast_install
=no
1018 # Look at the argument we got. We use all the common list separators.
1019 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1020 for pkg
in $enableval; do
1021 if test "X$pkg" = "X$p"; then
1022 enable_fast_install
=yes
1029 enable_fast_install
=yes
1033 # Make sure we can run config.sub.
1034 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1035 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1038 echo $ac_n "checking host system type""... $ac_c" 1>&6
1039 echo "configure:1040: checking host system type" >&5
1042 case "$host_alias" in
1046 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1047 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1049 *) host_alias
=$nonopt ;;
1053 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1054 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$host" 1>&6
1059 echo $ac_n "checking build system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking build system type" >&5
1063 case "$build_alias" in
1066 NONE
) build_alias
=$host_alias ;;
1067 *) build_alias
=$nonopt ;;
1071 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$build" 1>&6
1077 # Extract the first word of "ranlib", so it can be a program name with args.
1078 set dummy ranlib
; ac_word
=$2
1079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1080 echo "configure:1081: checking for $ac_word" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 if test -n "$RANLIB"; then
1085 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1087 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1089 for ac_dir
in $ac_dummy; do
1090 test -z "$ac_dir" && ac_dir
=.
1091 if test -f $ac_dir/$ac_word; then
1092 ac_cv_prog_RANLIB
="ranlib"
1097 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1100 RANLIB
="$ac_cv_prog_RANLIB"
1101 if test -n "$RANLIB"; then
1102 echo "$ac_t""$RANLIB" 1>&6
1104 echo "$ac_t""no" 1>&6
1107 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1108 if test "${with_gnu_ld+set}" = set; then
1109 withval
="$with_gnu_ld"
1110 test "$withval" = no || with_gnu_ld
=yes
1116 if test "$ac_cv_prog_gcc" = yes; then
1117 # Check if gcc -print-prog-name=ld gives a path.
1118 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1119 echo "configure:1120: checking for ld used by GCC" >&5
1120 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1122 # Accept absolute paths.
1123 [\\/]* |
[A-Za-z
]:[\\/]*)
1124 re_direlt
='/[^/][^/]*/\.\./'
1125 # Canonicalize the path of ld
1126 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1127 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1128 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1130 test -z "$LD" && LD
="$ac_prog"
1133 # If it fails, then pretend we aren't using GCC.
1137 # If it is relative, then search for the first ld in PATH.
1141 elif test "$with_gnu_ld" = yes; then
1142 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1143 echo "configure:1144: checking for GNU ld" >&5
1145 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1146 echo "configure:1147: checking for non-GNU ld" >&5
1148 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 if test -z "$LD"; then
1152 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1153 for ac_dir
in $PATH; do
1154 test -z "$ac_dir" && ac_dir
=.
1155 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1156 ac_cv_path_LD
="$ac_dir/$ac_prog"
1157 # Check to see if the program is GNU ld. I'd rather use --version,
1158 # but apparently some GNU ld's only accept -v.
1159 # Break only if it was the GNU/non-GNU ld that we prefer.
1160 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1161 test "$with_gnu_ld" != no
&& break
1163 test "$with_gnu_ld" != yes && break
1169 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1174 if test -n "$LD"; then
1175 echo "$ac_t""$LD" 1>&6
1177 echo "$ac_t""no" 1>&6
1179 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1180 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1181 echo "configure:1182: checking if the linker ($LD) is GNU ld" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1186 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1187 ac_cv_prog_gnu_ld
=yes
1189 ac_cv_prog_gnu_ld
=no
1193 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1196 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1197 echo "configure:1198: checking for BSD-compatible nm" >&5
1198 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -n "$NM"; then
1202 # Let the user override the test.
1205 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1206 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1207 test -z "$ac_dir" && ac_dir
=.
1208 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1209 # Check to see if the nm accepts a BSD-compat flag.
1210 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1211 # nm: unknown option "B" ignored
1212 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1213 ac_cv_path_NM
="$ac_dir/nm -B"
1215 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1216 ac_cv_path_NM
="$ac_dir/nm -p"
1219 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1220 continue # so that we can try to find one that supports BSD flags
1225 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1230 echo "$ac_t""$NM" 1>&6
1232 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether ln -s works" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1238 if ln -s X conftestdata
2>/dev
/null
1241 ac_cv_prog_LN_S
="ln -s"
1246 LN_S
="$ac_cv_prog_LN_S"
1247 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1248 echo "$ac_t""yes" 1>&6
1250 echo "$ac_t""no" 1>&6
1255 NONE
) lt_target
="$host" ;;
1256 *) lt_target
="$target" ;;
1259 # Check for any special flags to pass to ltconfig.
1260 libtool_flags
="--cache-file=$cache_file"
1261 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1262 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1263 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1264 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1265 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1268 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1269 if test "${enable_libtool_lock+set}" = set; then
1270 enableval
="$enable_libtool_lock"
1274 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1275 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1277 # Some flags need to be propagated to the compiler or linker for good
1279 case "$lt_target" in
1281 # Find out which ABI we are using.
1282 echo '#line 1283 "configure"' > conftest.
$ac_ext
1283 if { (eval echo configure
:1284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1284 case "`/usr/bin/file conftest.o`" in
1300 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1301 SAVE_CFLAGS
="$CFLAGS"
1302 CFLAGS
="$CFLAGS -belf"
1303 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether the C compiler needs -belf" >&5
1305 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 cat > conftest.
$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1316 if { (eval echo configure
:1317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1318 lt_cv_cc_needs_belf
=yes
1320 echo "configure: failed program was:" >&5
1321 cat conftest.
$ac_ext >&5
1323 lt_cv_cc_needs_belf
=no
1328 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1329 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1331 CFLAGS
="$SAVE_CFLAGS"
1339 # Save cache, so that ltconfig can load it
1340 cat > confcache
<<\EOF
1341 # This file is a shell script that caches the results of configure
1342 # tests run on this system so they can be shared between configure
1343 # scripts and configure runs. It is not useful on other systems.
1344 # If it contains results you don't want to keep, you may remove or edit it.
1346 # By default, configure uses ./config.cache as the cache file,
1347 # creating it if it does not exist already. You can give configure
1348 # the --cache-file=FILE option to use a different cache file; that is
1349 # what configure does when it calls configure scripts in
1350 # subdirectories, so they share the cache.
1351 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1352 # config.status only pays attention to the cache file if you give it the
1353 # --recheck option to rerun configure.
1356 # The following way of writing the cache mishandles newlines in values,
1357 # but we know of no workaround that is simple, portable, and efficient.
1358 # So, don't put newlines in cache variables' values.
1359 # Ultrix sh set writes to stderr and can't be redirected directly,
1360 # and sets the high bit in the cache file unless we assign to the vars.
1362 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1364 # `set' does not quote correctly, so add quotes (double-quote substitution
1365 # turns \\\\ into \\, and sed turns \\ into \).
1367 -e "s/'/'\\\\''/g" \
1368 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1371 # `set' quotes correctly as required by POSIX, so do not add quotes.
1372 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1375 if cmp -s $cache_file confcache
; then
1378 if test -w $cache_file; then
1379 echo "updating cache $cache_file"
1380 cat confcache
> $cache_file
1382 echo "not updating unwritable cache $cache_file"
1388 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1389 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1390 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1391 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1392 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1393 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1394 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1395 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1397 # Reload cache, that may have been modified by ltconfig
1398 if test -r "$cache_file"; then
1399 echo "loading cache $cache_file"
1402 echo "creating cache $cache_file"
1407 # This can be used to rebuild libtool when needed
1408 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1410 # Always use our own libtool.
1411 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1413 # Redirect the config.log output again, so that the ltconfig log is not
1414 # clobbered by the next message.
1415 exec 5>>.
/config.log
1419 if test "x$CC" != xcc
; then
1420 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether $CC and cc understand -c and -o together" >&5
1423 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1424 echo "configure:1425: checking whether cc understands -c and -o together" >&5
1426 set dummy
$CC; ac_cc
="`echo $2 |
1427 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1428 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 echo 'foo(){}' > conftest.c
1432 # Make sure it works both with $CC and with simple cc.
1433 # We do the test twice because some compilers refuse to overwrite an
1434 # existing .o file with -o, though they will create one.
1435 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1436 if { (eval echo configure
:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1437 test -f conftest.o
&& { (eval echo configure
:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1439 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1440 if test "x$CC" != xcc
; then
1441 # Test first that cc exists at all.
1442 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1443 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1444 if { (eval echo configure
:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1445 test -f conftest.o
&& { (eval echo configure
:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1450 # cc exists but doesn't like -o.
1451 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1456 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1461 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1462 echo "$ac_t""yes" 1>&6
1464 echo "$ac_t""no" 1>&6
1465 cat >> confdefs.h
<<\EOF
1466 #define NO_MINUS_C_MINUS_O 1
1471 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1478 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1479 echo "configure:1480: checking that the C compiler understands volatile" >&5
1480 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftest.
$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 #include <sys/types.h>
1492 if { (eval echo configure
:1493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1494 samba_cv_volatile
=yes
1496 echo "configure: failed program was:" >&5
1497 cat conftest.
$ac_ext >&5
1499 samba_cv_volatile
=no
1504 echo "$ac_t""$samba_cv_volatile" 1>&6
1505 if test x
"$samba_cv_volatile" = x
"yes"; then
1506 cat >> confdefs.h
<<\EOF
1507 #define HAVE_VOLATILE 1
1515 # Do some error checking and defaulting for the host and target type.
1517 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1520 # 1. You are not allowed to specify --host, --target, and nonopt at the
1522 # 2. Host defaults to nonopt.
1523 # 3. If nonopt is not specified, then host defaults to the current host,
1524 # as determined by config.guess.
1525 # 4. Target and build default to nonopt.
1526 # 5. If nonopt is not specified, then target and build default to host.
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 case $host---$target---$nonopt in
1531 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1532 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1536 # Make sure we can run config.sub.
1537 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1538 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1541 echo $ac_n "checking host system type""... $ac_c" 1>&6
1542 echo "configure:1543: checking host system type" >&5
1545 case "$host_alias" in
1549 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1550 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1552 *) host_alias
=$nonopt ;;
1556 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1557 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1558 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1559 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560 echo "$ac_t""$host" 1>&6
1562 echo $ac_n "checking target system type""... $ac_c" 1>&6
1563 echo "configure:1564: checking target system type" >&5
1565 target_alias
=$target
1566 case "$target_alias" in
1569 NONE
) target_alias
=$host_alias ;;
1570 *) target_alias
=$nonopt ;;
1574 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1575 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578 echo "$ac_t""$target" 1>&6
1580 echo $ac_n "checking build system type""... $ac_c" 1>&6
1581 echo "configure:1582: checking build system type" >&5
1584 case "$build_alias" in
1587 NONE
) build_alias
=$host_alias ;;
1588 *) build_alias
=$nonopt ;;
1592 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1593 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596 echo "$ac_t""$build" 1>&6
1598 test "$host_alias" != "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1601 program_prefix
=${target_alias}-
1605 *irix
*) cat >> confdefs.h
<<\EOF
1606 #include <standards.h>
1614 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1615 echo "configure:1616: checking config.cache system type" >&5
1616 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1617 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1618 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1619 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1620 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1621 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1622 echo "$ac_t""different" 1>&6
1623 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1625 echo "$ac_t""same" 1>&6
1627 ac_cv_host_system_type
="$host"
1628 ac_cv_build_system_type
="$build"
1629 ac_cv_target_system_type
="$target"
1633 # Config CPPFLAG settings for strange OS's that must be set
1634 # before other tests.
1637 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1639 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1640 echo "configure:1641: checking whether ${CC-cc} accepts -Ae" >&5
1641 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 echo 'void f(){}' > conftest.c
1645 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1646 ac_cv_prog_cc_Ae
=yes
1654 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1655 if test $ac_cv_prog_cc_Ae = yes; then
1656 CPPFLAGS
="$CPPFLAGS -Ae"
1659 # Defines needed for HPUX support.
1660 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1661 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1665 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1666 cat >> confdefs.h
<<\EOF
1667 #define USE_BOTH_CRYPT_CALLS 1
1672 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1673 cat >> confdefs.h
<<\EOF
1674 #define USE_BOTH_CRYPT_CALLS 1
1681 # AIX4.x doesn't even admit to having large
1682 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1685 echo "$ac_t""enabling large file support" 1>&6
1686 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1689 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1690 # to the existance of large files..
1691 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1692 # recommendations on large file support, however it makes the
1693 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1694 # recommendation makes the compile fail on gcc2.7. JRA.
1699 echo "$ac_t""enabling large file support" 1>&6
1700 if test "$ac_cv_prog_gcc" = yes; then
1701 ${CC-cc} -v >conftest.c
2>&1
1702 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1704 case "$ac_cv_gcc_compiler_version_number" in
1705 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1706 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1709 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1713 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1719 # Tests needed for SINIX large file support.
1722 if test $host = mips-sni-sysv4
; then
1723 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1724 echo "configure:1725: checking for LFS support" >&5
1725 old_CPPFLAGS
="$CPPFLAGS"
1726 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1727 if test "$cross_compiling" = yes; then
1728 SINIX_LFS_SUPPORT
=cross
1730 cat > conftest.
$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1736 #if _LFS64_LARGEFILE == 1
1743 if { (eval echo configure
:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1745 SINIX_LFS_SUPPORT
=yes
1747 echo "configure: failed program was:" >&5
1748 cat conftest.
$ac_ext >&5
1750 SINIX_LFS_SUPPORT
=no
1755 CPPFLAGS
="$old_CPPFLAGS"
1756 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1757 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1758 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1759 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1760 LIBS
="`getconf LFS64_LIBS` $LIBS"
1762 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1767 # Tests needed for glibc 2.1 large file support.
1770 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1773 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1774 echo "configure:1775: checking for LFS support" >&5
1775 old_CPPFLAGS
="$CPPFLAGS"
1776 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1777 if test "$cross_compiling" = yes; then
1778 GLIBC_LFS_SUPPORT
=cross
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1786 #if _LFS64_LARGEFILE == 1
1793 if { (eval echo configure
:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1795 GLIBC_LFS_SUPPORT
=yes
1797 echo "configure: failed program was:" >&5
1798 cat conftest.
$ac_ext >&5
1800 GLIBC_LFS_SUPPORT
=no
1805 CPPFLAGS
="$old_CPPFLAGS"
1806 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1807 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1809 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1814 echo $ac_n "checking for inline""... $ac_c" 1>&6
1815 echo "configure:1816: checking for inline" >&5
1816 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1820 for ac_kw
in inline __inline__ __inline
; do
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1829 if { (eval echo configure
:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1831 ac_cv_c_inline
=$ac_kw; break
1833 echo "configure: failed program was:" >&5
1834 cat conftest.
$ac_ext >&5
1841 echo "$ac_t""$ac_cv_c_inline" 1>&6
1842 case "$ac_cv_c_inline" in
1844 no
) cat >> confdefs.h
<<\EOF
1848 *) cat >> confdefs.h
<<EOF
1849 #define inline $ac_cv_c_inline
1854 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1855 echo "configure:1856: checking how to run the C preprocessor" >&5
1856 # On Suns, sometimes $CPP names a directory.
1857 if test -n "$CPP" && test -d "$CPP"; then
1860 if test -z "$CPP"; then
1861 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 # This must be in double quotes, not single quotes, because CPP may get
1865 # substituted into the Makefile and "${CC-cc}" will confuse make.
1867 # On the NeXT, cc -E runs the code through the compiler's parser,
1868 # not just through cpp.
1869 cat > conftest.
$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1875 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1876 { (eval echo configure
:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1877 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1878 if test -z "$ac_err"; then
1882 echo "configure: failed program was:" >&5
1883 cat conftest.
$ac_ext >&5
1885 CPP
="${CC-cc} -E -traditional-cpp"
1886 cat > conftest.
$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1892 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure
:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1899 echo "configure: failed program was:" >&5
1900 cat conftest.
$ac_ext >&5
1902 CPP
="${CC-cc} -nologo -E"
1903 cat > conftest.
$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1910 { (eval echo configure
:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1911 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1912 if test -z "$ac_err"; then
1916 echo "configure: failed program was:" >&5
1917 cat conftest.
$ac_ext >&5
1926 ac_cv_prog_CPP
="$CPP"
1928 CPP
="$ac_cv_prog_CPP"
1930 ac_cv_prog_CPP
="$CPP"
1932 echo "$ac_t""$CPP" 1>&6
1934 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1935 echo "configure:1936: checking for ANSI C header files" >&5
1936 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 cat > conftest.
$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1947 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1948 { (eval echo configure
:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1949 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1950 if test -z "$ac_err"; then
1952 ac_cv_header_stdc
=yes
1955 echo "configure: failed program was:" >&5
1956 cat conftest.
$ac_ext >&5
1958 ac_cv_header_stdc
=no
1962 if test $ac_cv_header_stdc = yes; then
1963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1964 cat > conftest.
$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1970 egrep "memchr" >/dev
/null
2>&1; then
1974 ac_cv_header_stdc
=no
1980 if test $ac_cv_header_stdc = yes; then
1981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1982 cat > conftest.
$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1988 egrep "free" >/dev
/null
2>&1; then
1992 ac_cv_header_stdc
=no
1998 if test $ac_cv_header_stdc = yes; then
1999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2000 if test "$cross_compiling" = yes; then
2003 cat > conftest.
$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2007 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2008 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2010 int main () { int i; for (i = 0; i < 256; i++)
2011 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2015 if { (eval echo configure
:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2019 echo "configure: failed program was:" >&5
2020 cat conftest.
$ac_ext >&5
2022 ac_cv_header_stdc
=no
2030 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2031 if test $ac_cv_header_stdc = yes; then
2032 cat >> confdefs.h
<<\EOF
2033 #define STDC_HEADERS 1
2039 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2041 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2042 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_hdr that defines DIR" >&5
2044 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 cat > conftest.
$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2050 #include <sys/types.h>
2056 if { (eval echo configure
:2057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2058 eval "ac_cv_header_dirent_$ac_safe=yes"
2060 echo "configure: failed program was:" >&5
2061 cat conftest.
$ac_ext >&5
2063 eval "ac_cv_header_dirent_$ac_safe=no"
2067 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2070 cat >> confdefs.h
<<EOF
2071 #define $ac_tr_hdr 1
2073 ac_header_dirent
=$ac_hdr; break
2075 echo "$ac_t""no" 1>&6
2078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2079 if test $ac_header_dirent = dirent.h
; then
2080 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2081 echo "configure:2082: checking for opendir in -ldir" >&5
2082 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 ac_save_LIBS
="$LIBS"
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* Override any gcc2 internal prototype to avoid an error. */
2092 /* We use char because int might match the return type of a gcc2
2093 builtin and then its argument prototype would still apply. */
2100 if { (eval echo configure
:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2102 eval "ac_cv_lib_$ac_lib_var=yes"
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2107 eval "ac_cv_lib_$ac_lib_var=no"
2110 LIBS
="$ac_save_LIBS"
2113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2114 echo "$ac_t""yes" 1>&6
2117 echo "$ac_t""no" 1>&6
2121 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2122 echo "configure:2123: checking for opendir in -lx" >&5
2123 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 ac_save_LIBS
="$LIBS"
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* Override any gcc2 internal prototype to avoid an error. */
2133 /* We use char because int might match the return type of a gcc2
2134 builtin and then its argument prototype would still apply. */
2141 if { (eval echo configure
:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2143 eval "ac_cv_lib_$ac_lib_var=yes"
2145 echo "configure: failed program was:" >&5
2146 cat conftest.
$ac_ext >&5
2148 eval "ac_cv_lib_$ac_lib_var=no"
2151 LIBS
="$ac_save_LIBS"
2154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2155 echo "$ac_t""yes" 1>&6
2158 echo "$ac_t""no" 1>&6
2163 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2164 echo "configure:2165: checking whether time.h and sys/time.h may both be included" >&5
2165 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 cat > conftest.
$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 #include <sys/types.h>
2172 #include <sys/time.h>
2178 if { (eval echo configure
:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2180 ac_cv_header_time
=yes
2182 echo "configure: failed program was:" >&5
2183 cat conftest.
$ac_ext >&5
2185 ac_cv_header_time
=no
2190 echo "$ac_t""$ac_cv_header_time" 1>&6
2191 if test $ac_cv_header_time = yes; then
2192 cat >> confdefs.h
<<\EOF
2193 #define TIME_WITH_SYS_TIME 1
2198 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2199 echo "configure:2200: checking for sys/wait.h that is POSIX.1 compatible" >&5
2200 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 cat > conftest.
$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 #include <sys/types.h>
2207 #include <sys/wait.h>
2209 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2212 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2217 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2220 if { (eval echo configure
:2221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2222 ac_cv_header_sys_wait_h
=yes
2224 echo "configure: failed program was:" >&5
2225 cat conftest.
$ac_ext >&5
2227 ac_cv_header_sys_wait_h
=no
2232 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2233 if test $ac_cv_header_sys_wait_h = yes; then
2234 cat >> confdefs.h
<<\EOF
2235 #define HAVE_SYS_WAIT_H 1
2240 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2242 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_hdr" >&5
2245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 cat > conftest.
$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2253 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2254 { (eval echo configure
:2255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2255 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2256 if test -z "$ac_err"; then
2258 eval "ac_cv_header_$ac_safe=yes"
2261 echo "configure: failed program was:" >&5
2262 cat conftest.
$ac_ext >&5
2264 eval "ac_cv_header_$ac_safe=no"
2268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2271 cat >> confdefs.h
<<EOF
2272 #define $ac_tr_hdr 1
2276 echo "$ac_t""no" 1>&6
2280 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2282 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_hdr" >&5
2285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.
$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2294 { (eval echo configure
:2295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2295 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2296 if test -z "$ac_err"; then
2298 eval "ac_cv_header_$ac_safe=yes"
2301 echo "configure: failed program was:" >&5
2302 cat conftest.
$ac_ext >&5
2304 eval "ac_cv_header_$ac_safe=no"
2308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2309 echo "$ac_t""yes" 1>&6
2310 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2311 cat >> confdefs.h
<<EOF
2312 #define $ac_tr_hdr 1
2316 echo "$ac_t""no" 1>&6
2320 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2322 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_hdr" >&5
2325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.
$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2333 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2334 { (eval echo configure
:2335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2335 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2336 if test -z "$ac_err"; then
2338 eval "ac_cv_header_$ac_safe=yes"
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2344 eval "ac_cv_header_$ac_safe=no"
2348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2349 echo "$ac_t""yes" 1>&6
2350 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2351 cat >> confdefs.h
<<EOF
2352 #define $ac_tr_hdr 1
2356 echo "$ac_t""no" 1>&6
2360 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2362 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2364 echo "configure:2365: checking for $ac_hdr" >&5
2365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.
$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2373 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2374 { (eval echo configure
:2375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2375 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2376 if test -z "$ac_err"; then
2378 eval "ac_cv_header_$ac_safe=yes"
2381 echo "configure: failed program was:" >&5
2382 cat conftest.
$ac_ext >&5
2384 eval "ac_cv_header_$ac_safe=no"
2388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2389 echo "$ac_t""yes" 1>&6
2390 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2391 cat >> confdefs.h
<<EOF
2392 #define $ac_tr_hdr 1
2396 echo "$ac_t""no" 1>&6
2400 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2402 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_hdr" >&5
2405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2414 { (eval echo configure
:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2415 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2416 if test -z "$ac_err"; then
2418 eval "ac_cv_header_$ac_safe=yes"
2421 echo "configure: failed program was:" >&5
2422 cat conftest.
$ac_ext >&5
2424 eval "ac_cv_header_$ac_safe=no"
2428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2431 cat >> confdefs.h
<<EOF
2432 #define $ac_tr_hdr 1
2436 echo "$ac_t""no" 1>&6
2440 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2442 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_hdr" >&5
2445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 cat > conftest.
$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2454 { (eval echo configure
:2455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2455 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2456 if test -z "$ac_err"; then
2458 eval "ac_cv_header_$ac_safe=yes"
2461 echo "configure: failed program was:" >&5
2462 cat conftest.
$ac_ext >&5
2464 eval "ac_cv_header_$ac_safe=no"
2468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2469 echo "$ac_t""yes" 1>&6
2470 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2471 cat >> confdefs.h
<<EOF
2472 #define $ac_tr_hdr 1
2476 echo "$ac_t""no" 1>&6
2480 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2482 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2484 echo "configure:2485: checking for $ac_hdr" >&5
2485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 cat > conftest.
$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2493 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2494 { (eval echo configure
:2495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2495 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2496 if test -z "$ac_err"; then
2498 eval "ac_cv_header_$ac_safe=yes"
2501 echo "configure: failed program was:" >&5
2502 cat conftest.
$ac_ext >&5
2504 eval "ac_cv_header_$ac_safe=no"
2508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2510 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2511 cat >> confdefs.h
<<EOF
2512 #define $ac_tr_hdr 1
2516 echo "$ac_t""no" 1>&6
2521 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2522 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2526 cat > conftest.
$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2534 if { (eval echo configure
:2535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2536 ac_cv_header_shadow_h
=yes
2538 echo "configure: failed program was:" >&5
2539 cat conftest.
$ac_ext >&5
2541 ac_cv_header_shadow_h
=no
2544 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2545 cat >> confdefs.h
<<\EOF
2546 #define HAVE_SHADOW_H 1
2552 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2554 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2556 echo "configure:2557: checking for $ac_hdr" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.
$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure
:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2570 eval "ac_cv_header_$ac_safe=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2576 eval "ac_cv_header_$ac_safe=no"
2580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2583 cat >> confdefs.h
<<EOF
2584 #define $ac_tr_hdr 1
2588 echo "$ac_t""no" 1>&6
2592 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h
2594 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2596 echo "configure:2597: checking for $ac_hdr" >&5
2597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2606 { (eval echo configure
:2607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2607 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2608 if test -z "$ac_err"; then
2610 eval "ac_cv_header_$ac_safe=yes"
2613 echo "configure: failed program was:" >&5
2614 cat conftest.
$ac_ext >&5
2616 eval "ac_cv_header_$ac_safe=no"
2620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2623 cat >> confdefs.h
<<EOF
2624 #define $ac_tr_hdr 1
2628 echo "$ac_t""no" 1>&6
2632 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2634 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_hdr" >&5
2637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 cat > conftest.
$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2645 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2646 { (eval echo configure
:2647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2647 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2648 if test -z "$ac_err"; then
2650 eval "ac_cv_header_$ac_safe=yes"
2653 echo "configure: failed program was:" >&5
2654 cat conftest.
$ac_ext >&5
2656 eval "ac_cv_header_$ac_safe=no"
2660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2661 echo "$ac_t""yes" 1>&6
2662 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2663 cat >> confdefs.h
<<EOF
2664 #define $ac_tr_hdr 1
2668 echo "$ac_t""no" 1>&6
2672 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2674 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2676 echo "configure:2677: checking for $ac_hdr" >&5
2677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.
$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2685 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686 { (eval echo configure
:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688 if test -z "$ac_err"; then
2690 eval "ac_cv_header_$ac_safe=yes"
2693 echo "configure: failed program was:" >&5
2694 cat conftest.
$ac_ext >&5
2696 eval "ac_cv_header_$ac_safe=no"
2700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2703 cat >> confdefs.h
<<EOF
2704 #define $ac_tr_hdr 1
2708 echo "$ac_t""no" 1>&6
2712 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2714 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2716 echo "configure:2717: checking for $ac_hdr" >&5
2717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 cat > conftest.
$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2725 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2726 { (eval echo configure
:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2727 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2728 if test -z "$ac_err"; then
2730 eval "ac_cv_header_$ac_safe=yes"
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2736 eval "ac_cv_header_$ac_safe=no"
2740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2743 cat >> confdefs.h
<<EOF
2744 #define $ac_tr_hdr 1
2748 echo "$ac_t""no" 1>&6
2753 # For experimental utmp support (lastlog on some BSD-like systems)
2754 for ac_hdr
in utmp.h utmpx.h lastlog.h
2756 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_hdr" >&5
2759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.
$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2767 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure
:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2772 eval "ac_cv_header_$ac_safe=yes"
2775 echo "configure: failed program was:" >&5
2776 cat conftest.
$ac_ext >&5
2778 eval "ac_cv_header_$ac_safe=no"
2782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2785 cat >> confdefs.h
<<EOF
2786 #define $ac_tr_hdr 1
2790 echo "$ac_t""no" 1>&6
2795 # For quotas on Veritas VxFS filesystems
2796 for ac_hdr
in sys
/fs
/vx_quota.h
2798 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2800 echo "configure:2801: checking for $ac_hdr" >&5
2801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2809 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2810 { (eval echo configure
:2811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2811 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2812 if test -z "$ac_err"; then
2814 eval "ac_cv_header_$ac_safe=yes"
2817 echo "configure: failed program was:" >&5
2818 cat conftest.
$ac_ext >&5
2820 eval "ac_cv_header_$ac_safe=no"
2824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2827 cat >> confdefs.h
<<EOF
2828 #define $ac_tr_hdr 1
2832 echo "$ac_t""no" 1>&6
2837 echo $ac_n "checking size of int""... $ac_c" 1>&6
2838 echo "configure:2839: checking size of int" >&5
2839 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 if test "$cross_compiling" = yes; then
2843 ac_cv_sizeof_int
=cross
2845 cat > conftest.
$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2851 FILE *f=fopen("conftestval", "w");
2853 fprintf(f, "%d\n", sizeof(int));
2857 if { (eval echo configure
:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2859 ac_cv_sizeof_int
=`cat conftestval`
2861 echo "configure: failed program was:" >&5
2862 cat conftest.
$ac_ext >&5
2870 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2871 cat >> confdefs.h
<<EOF
2872 #define SIZEOF_INT $ac_cv_sizeof_int
2876 echo $ac_n "checking size of long""... $ac_c" 1>&6
2877 echo "configure:2878: checking size of long" >&5
2878 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 if test "$cross_compiling" = yes; then
2882 ac_cv_sizeof_long
=cross
2884 cat > conftest.
$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2890 FILE *f=fopen("conftestval", "w");
2892 fprintf(f, "%d\n", sizeof(long));
2896 if { (eval echo configure
:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2898 ac_cv_sizeof_long
=`cat conftestval`
2900 echo "configure: failed program was:" >&5
2901 cat conftest.
$ac_ext >&5
2909 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2910 cat >> confdefs.h
<<EOF
2911 #define SIZEOF_LONG $ac_cv_sizeof_long
2915 echo $ac_n "checking size of short""... $ac_c" 1>&6
2916 echo "configure:2917: checking size of short" >&5
2917 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 if test "$cross_compiling" = yes; then
2921 ac_cv_sizeof_short
=cross
2923 cat > conftest.
$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2929 FILE *f=fopen("conftestval", "w");
2931 fprintf(f, "%d\n", sizeof(short));
2935 if { (eval echo configure
:2936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2937 ac_cv_sizeof_short
=`cat conftestval`
2939 echo "configure: failed program was:" >&5
2940 cat conftest.
$ac_ext >&5
2942 ac_cv_sizeof_short
=0
2948 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2949 cat >> confdefs.h
<<EOF
2950 #define SIZEOF_SHORT $ac_cv_sizeof_short
2955 echo $ac_n "checking for working const""... $ac_c" 1>&6
2956 echo "configure:2957: checking for working const" >&5
2957 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2966 /* Ultrix mips cc rejects this. */
2967 typedef int charset[2]; const charset x;
2968 /* SunOS 4.1.1 cc rejects this. */
2969 char const *const *ccp;
2971 /* NEC SVR4.0.2 mips cc rejects this. */
2972 struct point {int x, y;};
2973 static struct point const zero = {0,0};
2974 /* AIX XL C 1.02.0.0 rejects this.
2975 It does not let you subtract one const X* pointer from another in an arm
2976 of an if-expression whose if-part is not a constant expression */
2977 const char *g = "string";
2978 ccp = &g + (g ? g-g : 0);
2979 /* HPUX 7.0 cc rejects these. */
2982 ccp = (char const *const *) p;
2983 { /* SCO 3.2v4 cc rejects this. */
2985 char const *s = 0 ? (char *) 0 : (char const *) 0;
2989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2991 const int *foo = &x[0];
2994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2995 typedef const int *iptr;
2999 { /* AIX XL C 1.02.0.0 rejects this saying
3000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3001 struct s { int j; const int *ap[3]; };
3002 struct s *b; b->j = 5;
3004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3010 if { (eval echo configure
:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3014 echo "configure: failed program was:" >&5
3015 cat conftest.
$ac_ext >&5
3022 echo "$ac_t""$ac_cv_c_const" 1>&6
3023 if test $ac_cv_c_const = no
; then
3024 cat >> confdefs.h
<<\EOF
3030 echo $ac_n "checking for inline""... $ac_c" 1>&6
3031 echo "configure:3032: checking for inline" >&5
3032 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3036 for ac_kw
in inline __inline__ __inline
; do
3037 cat > conftest.
$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3045 if { (eval echo configure
:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3047 ac_cv_c_inline
=$ac_kw; break
3049 echo "configure: failed program was:" >&5
3050 cat conftest.
$ac_ext >&5
3057 echo "$ac_t""$ac_cv_c_inline" 1>&6
3058 case "$ac_cv_c_inline" in
3060 no
) cat >> confdefs.h
<<\EOF
3064 *) cat >> confdefs.h
<<EOF
3065 #define inline $ac_cv_c_inline
3070 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3071 echo "configure:3072: checking whether byte ordering is bigendian" >&5
3072 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 ac_cv_c_bigendian
=unknown
3076 # See if sys/param.h defines the BYTE_ORDER macro.
3077 cat > conftest.
$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <sys/types.h>
3081 #include <sys/param.h>
3084 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3089 if { (eval echo configure
:3090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3091 # It does; now see whether it defined to BIG_ENDIAN or not.
3092 cat > conftest.
$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 #include <sys/types.h>
3096 #include <sys/param.h>
3099 #if BYTE_ORDER != BIG_ENDIAN
3104 if { (eval echo configure
:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3106 ac_cv_c_bigendian
=yes
3108 echo "configure: failed program was:" >&5
3109 cat conftest.
$ac_ext >&5
3111 ac_cv_c_bigendian
=no
3115 echo "configure: failed program was:" >&5
3116 cat conftest.
$ac_ext >&5
3119 if test $ac_cv_c_bigendian = unknown
; then
3120 if test "$cross_compiling" = yes; then
3121 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3127 /* Are we little or big endian? From Harbison&Steele. */
3131 char c[sizeof (long)];
3134 exit (u.c[sizeof (long) - 1] == 1);
3137 if { (eval echo configure
:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3139 ac_cv_c_bigendian
=no
3141 echo "configure: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3144 ac_cv_c_bigendian
=yes
3152 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3153 if test $ac_cv_c_bigendian = yes; then
3154 cat >> confdefs.h
<<\EOF
3155 #define WORDS_BIGENDIAN 1
3160 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3161 echo "configure:3162: checking whether char is unsigned" >&5
3162 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 if test "$GCC" = yes; then
3166 # GCC predefines this symbol on systems where it applies.
3167 cat > conftest.
$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #ifdef __CHAR_UNSIGNED__
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 egrep "yes" >/dev
/null
2>&1; then
3178 ac_cv_c_char_unsigned
=yes
3181 ac_cv_c_char_unsigned
=no
3186 if test "$cross_compiling" = yes; then
3187 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3189 cat > conftest.
$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3193 #if !defined(__STDC__) || __STDC__ != 1
3197 volatile char c = 255; exit(c < 0);
3200 if { (eval echo configure
:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3202 ac_cv_c_char_unsigned
=yes
3204 echo "configure: failed program was:" >&5
3205 cat conftest.
$ac_ext >&5
3207 ac_cv_c_char_unsigned
=no
3215 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3216 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3217 cat >> confdefs.h
<<\EOF
3218 #define __CHAR_UNSIGNED__ 1
3224 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3225 echo "configure:3226: checking return type of signal handlers" >&5
3226 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.
$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <sys/types.h>
3238 extern "C" void (*signal (int, void (*)(int)))(int);
3240 void (*signal ()) ();
3247 if { (eval echo configure
:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3249 ac_cv_type_signal
=void
3251 echo "configure: failed program was:" >&5
3252 cat conftest.
$ac_ext >&5
3254 ac_cv_type_signal
=int
3259 echo "$ac_t""$ac_cv_type_signal" 1>&6
3260 cat >> confdefs.h
<<EOF
3261 #define RETSIGTYPE $ac_cv_type_signal
3265 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3266 echo "configure:3267: checking for uid_t in sys/types.h" >&5
3267 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 cat > conftest.
$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <sys/types.h>
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 egrep "uid_t" >/dev
/null
2>&1; then
3278 ac_cv_type_uid_t
=yes
3287 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3288 if test $ac_cv_type_uid_t = no
; then
3289 cat >> confdefs.h
<<\EOF
3293 cat >> confdefs.h
<<\EOF
3299 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3300 echo "configure:3301: checking for mode_t" >&5
3301 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.
$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 #include <sys/types.h>
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3316 ac_cv_type_mode_t
=yes
3319 ac_cv_type_mode_t
=no
3324 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3325 if test $ac_cv_type_mode_t = no
; then
3326 cat >> confdefs.h
<<\EOF
3332 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3333 echo "configure:3334: checking for off_t" >&5
3334 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.
$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3349 ac_cv_type_off_t
=yes
3357 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3358 if test $ac_cv_type_off_t = no
; then
3359 cat >> confdefs.h
<<\EOF
3365 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3366 echo "configure:3367: checking for size_t" >&5
3367 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 cat > conftest.
$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <sys/types.h>
3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3382 ac_cv_type_size_t
=yes
3385 ac_cv_type_size_t
=no
3390 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3391 if test $ac_cv_type_size_t = no
; then
3392 cat >> confdefs.h
<<\EOF
3393 #define size_t unsigned
3398 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3399 echo "configure:3400: checking for pid_t" >&5
3400 if eval "test \"`echo '$''{'ac_cv_type_pid_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])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3415 ac_cv_type_pid_t
=yes
3423 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3424 if test $ac_cv_type_pid_t = no
; then
3425 cat >> confdefs.h
<<\EOF
3431 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3432 echo "configure:3433: checking for st_rdev in struct stat" >&5
3433 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+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>
3440 #include <sys/stat.h>
3442 struct stat s; s.st_rdev;
3445 if { (eval echo configure
:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447 ac_cv_struct_st_rdev
=yes
3449 echo "configure: failed program was:" >&5
3450 cat conftest.
$ac_ext >&5
3452 ac_cv_struct_st_rdev
=no
3457 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3458 if test $ac_cv_struct_st_rdev = yes; then
3459 cat >> confdefs.h
<<\EOF
3460 #define HAVE_ST_RDEV 1
3465 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3466 echo "configure:3467: checking for d_off in dirent" >&5
3467 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3475 #include <sys/types.h>
3478 struct dirent d; d.d_off;
3481 if { (eval echo configure
:3482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3483 ac_cv_dirent_d_off
=yes
3485 echo "configure: failed program was:" >&5
3486 cat conftest.
$ac_ext >&5
3488 ac_cv_dirent_d_off
=no
3493 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3494 if test $ac_cv_dirent_d_off = yes; then
3495 cat >> confdefs.h
<<\EOF
3496 #define HAVE_DIRENT_D_OFF 1
3501 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3502 echo "configure:3503: checking for ino_t" >&5
3503 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3506 cat > conftest.
$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 #include <sys/types.h>
3515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3518 ac_cv_type_ino_t
=yes
3526 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3527 if test $ac_cv_type_ino_t = no
; then
3528 cat >> confdefs.h
<<\EOF
3529 #define ino_t unsigned
3534 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3535 echo "configure:3536: checking for loff_t" >&5
3536 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.
$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3551 ac_cv_type_loff_t
=yes
3554 ac_cv_type_loff_t
=no
3559 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3560 if test $ac_cv_type_loff_t = no
; then
3561 cat >> confdefs.h
<<\EOF
3562 #define loff_t off_t
3567 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3568 echo "configure:3569: checking for offset_t" >&5
3569 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 cat > conftest.
$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 #include <sys/types.h>
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3584 ac_cv_type_offset_t
=yes
3587 ac_cv_type_offset_t
=no
3592 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3593 if test $ac_cv_type_offset_t = no
; then
3594 cat >> confdefs.h
<<\EOF
3595 #define offset_t loff_t
3600 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3601 echo "configure:3602: checking for ssize_t" >&5
3602 if eval "test \"`echo '$''{'ac_cv_type_ssize_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])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3617 ac_cv_type_ssize_t
=yes
3620 ac_cv_type_ssize_t
=no
3625 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3626 if test $ac_cv_type_ssize_t = no
; then
3627 cat >> confdefs.h
<<\EOF
3633 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3634 echo "configure:3635: checking for wchar_t" >&5
3635 if eval "test \"`echo '$''{'ac_cv_type_wchar_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])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3650 ac_cv_type_wchar_t
=yes
3653 ac_cv_type_wchar_t
=no
3658 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3659 if test $ac_cv_type_wchar_t = no
; then
3660 cat >> confdefs.h
<<\EOF
3661 #define wchar_t unsigned short
3667 # we need libcups for CUPS support...
3668 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3669 echo "configure:3670: checking for httpConnect in -lcups" >&5
3670 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 ac_save_LIBS
="$LIBS"
3676 cat > conftest.
$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* Override any gcc2 internal prototype to avoid an error. */
3680 /* We use char because int might match the return type of a gcc2
3681 builtin and then its argument prototype would still apply. */
3688 if { (eval echo configure
:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3690 eval "ac_cv_lib_$ac_lib_var=yes"
3692 echo "configure: failed program was:" >&5
3693 cat conftest.
$ac_ext >&5
3695 eval "ac_cv_lib_$ac_lib_var=no"
3698 LIBS
="$ac_save_LIBS"
3701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3704 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3705 cat >> confdefs.h
<<EOF
3706 #define $ac_tr_lib 1
3712 echo "$ac_t""no" 1>&6
3716 # we need libdl for PAM and the new VFS code
3717 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3718 echo "configure:3719: checking for dlopen in -ldl" >&5
3719 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3723 ac_save_LIBS
="$LIBS"
3725 cat > conftest.
$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 /* Override any gcc2 internal prototype to avoid an error. */
3729 /* We use char because int might match the return type of a gcc2
3730 builtin and then its argument prototype would still apply. */
3737 if { (eval echo configure
:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3739 eval "ac_cv_lib_$ac_lib_var=yes"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.
$ac_ext >&5
3744 eval "ac_cv_lib_$ac_lib_var=no"
3747 LIBS
="$ac_save_LIBS"
3750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3753 cat >> confdefs.h
<<\EOF
3754 #define HAVE_LIBDL 1
3758 echo "$ac_t""no" 1>&6
3762 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3763 echo "configure:3764: checking for sig_atomic_t type" >&5
3764 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3768 cat > conftest.
$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3772 #include <sys/types.h>
3782 if { (eval echo configure
:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784 samba_cv_sig_atomic_t
=yes
3786 echo "configure: failed program was:" >&5
3787 cat conftest.
$ac_ext >&5
3789 samba_cv_sig_atomic_t
=no
3794 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3795 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3796 cat >> confdefs.h
<<\EOF
3797 #define HAVE_SIG_ATOMIC_T_TYPE 1
3802 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3803 echo "configure:3804: checking for errno in errno.h" >&5
3804 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3808 cat > conftest.
$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3816 if { (eval echo configure
:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3820 echo "configure: failed program was:" >&5
3821 cat conftest.
$ac_ext >&5
3823 samba_cv_have_errno
=no
3828 echo "$ac_t""$samba_cv_errno" 1>&6
3829 if test x
"$samba_cv_errno" = x
"yes"; then
3830 cat >> confdefs.h
<<\EOF
3831 #define HAVE_ERRNO_DECL 1
3836 # stupid glibc has the functions but no declaration. grrrr.
3837 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3838 echo "configure:3839: checking for setresuid declaration" >&5
3839 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3843 cat > conftest.
$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3848 int i = (int)setresuid
3851 if { (eval echo configure
:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 samba_cv_have_setresuid_decl
=yes
3855 echo "configure: failed program was:" >&5
3856 cat conftest.
$ac_ext >&5
3858 samba_cv_have_setresuid_decl
=no
3863 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3864 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3865 cat >> confdefs.h
<<\EOF
3866 #define HAVE_SETRESUID_DECL 1
3871 # stupid glibc has the functions but no declaration. grrrr.
3872 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3873 echo "configure:3874: checking for setresgid declaration" >&5
3874 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3878 cat > conftest.
$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3883 int i = (int)setresgid
3886 if { (eval echo configure
:3887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3888 samba_cv_have_setresgid_decl
=yes
3890 echo "configure: failed program was:" >&5
3891 cat conftest.
$ac_ext >&5
3893 samba_cv_have_setresgid_decl
=no
3898 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3899 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3900 cat >> confdefs.h
<<\EOF
3901 #define HAVE_SETRESGID_DECL 1
3906 # and glibc has setresuid under linux but the function does
3907 # nothing until kernel 2.1.44! very dumb.
3908 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3909 echo "configure:3910: checking for real setresuid" >&5
3910 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3914 if test "$cross_compiling" = yes; then
3915 samba_cv_have_setresuid
=cross
3917 cat > conftest.
$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3921 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3923 if { (eval echo configure
:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3925 samba_cv_have_setresuid
=yes
3927 echo "configure: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3930 samba_cv_have_setresuid
=no
3937 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3938 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3939 cat >> confdefs.h
<<\EOF
3940 #define HAVE_SETRESUID 1
3945 # Do the same check for setresguid...
3947 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3948 echo "configure:3949: checking for real setresgid" >&5
3949 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3953 if test "$cross_compiling" = yes; then
3954 samba_cv_have_setresgid
=cross
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3961 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3963 if { (eval echo configure
:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3965 samba_cv_have_setresgid
=yes
3967 echo "configure: failed program was:" >&5
3968 cat conftest.
$ac_ext >&5
3970 samba_cv_have_setresgid
=no
3977 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3978 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
3979 cat >> confdefs.h
<<\EOF
3980 #define HAVE_SETRESGID 1
3985 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3986 echo "configure:3987: checking for 8-bit clean memcmp" >&5
3987 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 if test "$cross_compiling" = yes; then
3991 ac_cv_func_memcmp_clean
=no
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3999 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4000 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4004 if { (eval echo configure
:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4006 ac_cv_func_memcmp_clean
=yes
4008 echo "configure: failed program was:" >&5
4009 cat conftest.
$ac_ext >&5
4011 ac_cv_func_memcmp_clean
=no
4018 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4019 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4022 ###############################################
4023 # test for where we get crypt() from
4024 for ac_func
in crypt
4026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_func" >&5
4028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.
$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 /* System header to define __stub macros and hopefully few prototypes,
4035 which can conflict with char $ac_func(); below. */
4037 /* Override any gcc2 internal prototype to avoid an error. */
4038 /* We use char because int might match the return type of a gcc2
4039 builtin and then its argument prototype would still apply. */
4044 /* The GNU C library defines this for functions which it implements
4045 to always fail with ENOSYS. Some functions are actually named
4046 something starting with __ and the normal name is an alias. */
4047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4055 if { (eval echo configure
:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4057 eval "ac_cv_func_$ac_func=yes"
4059 echo "configure: failed program was:" >&5
4060 cat conftest.
$ac_ext >&5
4062 eval "ac_cv_func_$ac_func=no"
4067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4070 cat >> confdefs.h
<<EOF
4071 #define $ac_tr_func 1
4075 echo "$ac_t""no" 1>&6
4079 if test x
"$ac_cv_func_crypt" = x
"no"; then
4080 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4081 echo "configure:4082: checking for crypt in -lcrypt" >&5
4082 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 ac_save_LIBS
="$LIBS"
4087 LIBS
="-lcrypt $LIBS"
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 /* Override any gcc2 internal prototype to avoid an error. */
4092 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */
4100 if { (eval echo configure
:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4102 eval "ac_cv_lib_$ac_lib_var=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.
$ac_ext >&5
4107 eval "ac_cv_lib_$ac_lib_var=no"
4110 LIBS
="$ac_save_LIBS"
4113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 LIBS
="$LIBS -lcrypt";
4116 cat >> confdefs.h
<<\EOF
4117 #define HAVE_CRYPT 1
4121 echo "$ac_t""no" 1>&6
4127 ###############################################
4128 # test for where we get readline() from
4129 if test "$ac_cv_header_readline_h" = "yes" ||
4130 test "$ac_cv_header_readline_readline_h" = "yes"; then
4131 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4132 echo "configure:4133: checking for readline in -lreadline" >&5
4133 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 ac_save_LIBS
="$LIBS"
4138 LIBS
="-lreadline $LIBS"
4139 cat > conftest.
$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4151 if { (eval echo configure
:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4153 eval "ac_cv_lib_$ac_lib_var=yes"
4155 echo "configure: failed program was:" >&5
4156 cat conftest.
$ac_ext >&5
4158 eval "ac_cv_lib_$ac_lib_var=no"
4161 LIBS
="$ac_save_LIBS"
4164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4165 echo "$ac_t""yes" 1>&6
4166 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4168 cat >> confdefs.h
<<EOF
4169 #define $ac_tr_lib 1
4172 LIBS
="-lreadline $LIBS"
4175 echo "$ac_t""no" 1>&6
4181 # The following test taken from the cvs sources
4182 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4183 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4184 # libsocket.so which has a bad implementation of gethostbyname (it
4185 # only looks in /etc/hosts), so we only look for -lsocket if we need
4187 for ac_func
in connect
4189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_func" >&5
4191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.
$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* System header to define __stub macros and hopefully few prototypes,
4198 which can conflict with char $ac_func(); below. */
4200 /* Override any gcc2 internal prototype to avoid an error. */
4201 /* We use char because int might match the return type of a gcc2
4202 builtin and then its argument prototype would still apply. */
4207 /* The GNU C library defines this for functions which it implements
4208 to always fail with ENOSYS. Some functions are actually named
4209 something starting with __ and the normal name is an alias. */
4210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4218 if { (eval echo configure
:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4220 eval "ac_cv_func_$ac_func=yes"
4222 echo "configure: failed program was:" >&5
4223 cat conftest.
$ac_ext >&5
4225 eval "ac_cv_func_$ac_func=no"
4230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233 cat >> confdefs.h
<<EOF
4234 #define $ac_tr_func 1
4238 echo "$ac_t""no" 1>&6
4242 if test x
"$ac_cv_func_connect" = x
"no"; then
4245 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4246 echo "configure:4247: checking for printf in -lnsl_s" >&5
4247 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 ac_save_LIBS
="$LIBS"
4252 LIBS
="-lnsl_s $LIBS"
4253 cat > conftest.
$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 /* Override any gcc2 internal prototype to avoid an error. */
4257 /* We use char because int might match the return type of a gcc2
4258 builtin and then its argument prototype would still apply. */
4265 if { (eval echo configure
:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4267 eval "ac_cv_lib_$ac_lib_var=yes"
4269 echo "configure: failed program was:" >&5
4270 cat conftest.
$ac_ext >&5
4272 eval "ac_cv_lib_$ac_lib_var=no"
4275 LIBS
="$ac_save_LIBS"
4278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4280 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4281 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4282 cat >> confdefs.h
<<EOF
4283 #define $ac_tr_lib 1
4286 LIBS
="-lnsl_s $LIBS"
4289 echo "$ac_t""no" 1>&6
4295 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4296 echo "configure:4297: checking for printf in -lnsl" >&5
4297 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 ac_save_LIBS
="$LIBS"
4303 cat > conftest.
$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 /* Override any gcc2 internal prototype to avoid an error. */
4307 /* We use char because int might match the return type of a gcc2
4308 builtin and then its argument prototype would still apply. */
4315 if { (eval echo configure
:4316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4317 eval "ac_cv_lib_$ac_lib_var=yes"
4319 echo "configure: failed program was:" >&5
4320 cat conftest.
$ac_ext >&5
4322 eval "ac_cv_lib_$ac_lib_var=no"
4325 LIBS
="$ac_save_LIBS"
4328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4329 echo "$ac_t""yes" 1>&6
4330 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4332 cat >> confdefs.h
<<EOF
4333 #define $ac_tr_lib 1
4339 echo "$ac_t""no" 1>&6
4345 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4346 echo "configure:4347: checking for connect in -lsocket" >&5
4347 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 ac_save_LIBS
="$LIBS"
4352 LIBS
="-lsocket $LIBS"
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4365 if { (eval echo configure
:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4369 echo "configure: failed program was:" >&5
4370 cat conftest.
$ac_ext >&5
4372 eval "ac_cv_lib_$ac_lib_var=no"
4375 LIBS
="$ac_save_LIBS"
4378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4380 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4382 cat >> confdefs.h
<<EOF
4383 #define $ac_tr_lib 1
4386 LIBS
="-lsocket $LIBS"
4389 echo "$ac_t""no" 1>&6
4395 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4396 echo "configure:4397: checking for connect in -linet" >&5
4397 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 ac_save_LIBS
="$LIBS"
4403 cat > conftest.
$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4415 if { (eval echo configure
:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4417 eval "ac_cv_lib_$ac_lib_var=yes"
4419 echo "configure: failed program was:" >&5
4420 cat conftest.
$ac_ext >&5
4422 eval "ac_cv_lib_$ac_lib_var=no"
4425 LIBS
="$ac_save_LIBS"
4428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4429 echo "$ac_t""yes" 1>&6
4430 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4431 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4432 cat >> confdefs.h
<<EOF
4433 #define $ac_tr_lib 1
4439 echo "$ac_t""no" 1>&6
4443 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4444 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4445 # ac_cv_func_connect=yes
4446 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4447 cat >> confdefs.h
<<\EOF
4448 #define HAVE_CONNECT 1
4454 ###############################################
4455 # test for where we get get_yp_default_domain() from
4456 for ac_func
in yp_get_default_domain
4458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_func" >&5
4460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 cat > conftest.
$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* System header to define __stub macros and hopefully few prototypes,
4467 which can conflict with char $ac_func(); below. */
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4476 /* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4487 if { (eval echo configure
:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4489 eval "ac_cv_func_$ac_func=yes"
4491 echo "configure: failed program was:" >&5
4492 cat conftest.
$ac_ext >&5
4494 eval "ac_cv_func_$ac_func=no"
4499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4502 cat >> confdefs.h
<<EOF
4503 #define $ac_tr_func 1
4507 echo "$ac_t""no" 1>&6
4511 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4512 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4513 echo "configure:4514: checking for yp_get_default_domain in -lnsl" >&5
4514 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 ac_save_LIBS
="$LIBS"
4520 cat > conftest.
$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 /* Override any gcc2 internal prototype to avoid an error. */
4524 /* We use char because int might match the return type of a gcc2
4525 builtin and then its argument prototype would still apply. */
4526 char yp_get_default_domain();
4529 yp_get_default_domain()
4532 if { (eval echo configure
:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4534 eval "ac_cv_lib_$ac_lib_var=yes"
4536 echo "configure: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4539 eval "ac_cv_lib_$ac_lib_var=no"
4542 LIBS
="$ac_save_LIBS"
4545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4546 echo "$ac_t""yes" 1>&6
4548 cat >> confdefs.h
<<\EOF
4549 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4553 echo "$ac_t""no" 1>&6
4558 # Check if we have execl, if not we need to compile smbrun.
4559 for ac_func
in execl
4561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4562 echo "configure:4563: checking for $ac_func" >&5
4563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 cat > conftest.
$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 /* System header to define __stub macros and hopefully few prototypes,
4570 which can conflict with char $ac_func(); below. */
4572 /* Override any gcc2 internal prototype to avoid an error. */
4573 /* We use char because int might match the return type of a gcc2
4574 builtin and then its argument prototype would still apply. */
4579 /* The GNU C library defines this for functions which it implements
4580 to always fail with ENOSYS. Some functions are actually named
4581 something starting with __ and the normal name is an alias. */
4582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4590 if { (eval echo configure
:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4592 eval "ac_cv_func_$ac_func=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.
$ac_ext >&5
4597 eval "ac_cv_func_$ac_func=no"
4602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4605 cat >> confdefs.h
<<EOF
4606 #define $ac_tr_func 1
4610 echo "$ac_t""no" 1>&6
4614 if test x
"$ac_cv_func_execl" = x
"no"; then
4615 RUNPROG
="bin/smbrun"
4620 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4623 echo "configure:4624: checking for $ac_func" >&5
4624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 cat > conftest.
$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* System header to define __stub macros and hopefully few prototypes,
4631 which can conflict with char $ac_func(); below. */
4633 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
4640 /* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4651 if { (eval echo configure
:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4653 eval "ac_cv_func_$ac_func=yes"
4655 echo "configure: failed program was:" >&5
4656 cat conftest.
$ac_ext >&5
4658 eval "ac_cv_func_$ac_func=no"
4663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4665 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4666 cat >> confdefs.h
<<EOF
4667 #define $ac_tr_func 1
4671 echo "$ac_t""no" 1>&6
4675 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_func" >&5
4679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.
$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func(); below. */
4688 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4695 /* The GNU C library defines this for functions which it implements
4696 to always fail with ENOSYS. Some functions are actually named
4697 something starting with __ and the normal name is an alias. */
4698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4706 if { (eval echo configure
:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4708 eval "ac_cv_func_$ac_func=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.
$ac_ext >&5
4713 eval "ac_cv_func_$ac_func=no"
4718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4721 cat >> confdefs.h
<<EOF
4722 #define $ac_tr_func 1
4726 echo "$ac_t""no" 1>&6
4730 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4733 echo "configure:4734: checking for $ac_func" >&5
4734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 cat > conftest.
$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func(); below. */
4743 /* Override any gcc2 internal prototype to avoid an error. */
4744 /* We use char because int might match the return type of a gcc2
4745 builtin and then its argument prototype would still apply. */
4750 /* The GNU C library defines this for functions which it implements
4751 to always fail with ENOSYS. Some functions are actually named
4752 something starting with __ and the normal name is an alias. */
4753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4761 if { (eval echo configure
:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4763 eval "ac_cv_func_$ac_func=yes"
4765 echo "configure: failed program was:" >&5
4766 cat conftest.
$ac_ext >&5
4768 eval "ac_cv_func_$ac_func=no"
4773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4774 echo "$ac_t""yes" 1>&6
4775 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4776 cat >> confdefs.h
<<EOF
4777 #define $ac_tr_func 1
4781 echo "$ac_t""no" 1>&6
4785 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_func" >&5
4789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* System header to define __stub macros and hopefully few prototypes,
4796 which can conflict with char $ac_func(); below. */
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4805 /* The GNU C library defines this for functions which it implements
4806 to always fail with ENOSYS. Some functions are actually named
4807 something starting with __ and the normal name is an alias. */
4808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4816 if { (eval echo configure
:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4818 eval "ac_cv_func_$ac_func=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.
$ac_ext >&5
4823 eval "ac_cv_func_$ac_func=no"
4828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4830 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4831 cat >> confdefs.h
<<EOF
4832 #define $ac_tr_func 1
4836 echo "$ac_t""no" 1>&6
4840 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
4842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4843 echo "configure:4844: checking for $ac_func" >&5
4844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4847 cat > conftest.
$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 /* System header to define __stub macros and hopefully few prototypes,
4851 which can conflict with char $ac_func(); below. */
4853 /* Override any gcc2 internal prototype to avoid an error. */
4854 /* We use char because int might match the return type of a gcc2
4855 builtin and then its argument prototype would still apply. */
4860 /* The GNU C library defines this for functions which it implements
4861 to always fail with ENOSYS. Some functions are actually named
4862 something starting with __ and the normal name is an alias. */
4863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4871 if { (eval echo configure
:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4873 eval "ac_cv_func_$ac_func=yes"
4875 echo "configure: failed program was:" >&5
4876 cat conftest.
$ac_ext >&5
4878 eval "ac_cv_func_$ac_func=no"
4883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4886 cat >> confdefs.h
<<EOF
4887 #define $ac_tr_func 1
4891 echo "$ac_t""no" 1>&6
4895 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4898 echo "configure:4899: checking for $ac_func" >&5
4899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 cat > conftest.
$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 /* System header to define __stub macros and hopefully few prototypes,
4906 which can conflict with char $ac_func(); below. */
4908 /* Override any gcc2 internal prototype to avoid an error. */
4909 /* We use char because int might match the return type of a gcc2
4910 builtin and then its argument prototype would still apply. */
4915 /* The GNU C library defines this for functions which it implements
4916 to always fail with ENOSYS. Some functions are actually named
4917 something starting with __ and the normal name is an alias. */
4918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4926 if { (eval echo configure
:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4928 eval "ac_cv_func_$ac_func=yes"
4930 echo "configure: failed program was:" >&5
4931 cat conftest.
$ac_ext >&5
4933 eval "ac_cv_func_$ac_func=no"
4938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4940 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4941 cat >> confdefs.h
<<EOF
4942 #define $ac_tr_func 1
4946 echo "$ac_t""no" 1>&6
4950 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4953 echo "configure:4954: checking for $ac_func" >&5
4954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 cat > conftest.
$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 /* System header to define __stub macros and hopefully few prototypes,
4961 which can conflict with char $ac_func(); below. */
4963 /* Override any gcc2 internal prototype to avoid an error. */
4964 /* We use char because int might match the return type of a gcc2
4965 builtin and then its argument prototype would still apply. */
4970 /* The GNU C library defines this for functions which it implements
4971 to always fail with ENOSYS. Some functions are actually named
4972 something starting with __ and the normal name is an alias. */
4973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4981 if { (eval echo configure
:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4983 eval "ac_cv_func_$ac_func=yes"
4985 echo "configure: failed program was:" >&5
4986 cat conftest.
$ac_ext >&5
4988 eval "ac_cv_func_$ac_func=no"
4993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4996 cat >> confdefs.h
<<EOF
4997 #define $ac_tr_func 1
5001 echo "$ac_t""no" 1>&6
5005 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
5007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5008 echo "configure:5009: checking for $ac_func" >&5
5009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 cat > conftest.
$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 /* System header to define __stub macros and hopefully few prototypes,
5016 which can conflict with char $ac_func(); below. */
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5025 /* The GNU C library defines this for functions which it implements
5026 to always fail with ENOSYS. Some functions are actually named
5027 something starting with __ and the normal name is an alias. */
5028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5036 if { (eval echo configure
:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5038 eval "ac_cv_func_$ac_func=yes"
5040 echo "configure: failed program was:" >&5
5041 cat conftest.
$ac_ext >&5
5043 eval "ac_cv_func_$ac_func=no"
5048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5050 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5051 cat >> confdefs.h
<<EOF
5052 #define $ac_tr_func 1
5056 echo "$ac_t""no" 1>&6
5060 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_func" >&5
5064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 cat > conftest.
$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 /* System header to define __stub macros and hopefully few prototypes,
5071 which can conflict with char $ac_func(); below. */
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5080 /* The GNU C library defines this for functions which it implements
5081 to always fail with ENOSYS. Some functions are actually named
5082 something starting with __ and the normal name is an alias. */
5083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5091 if { (eval echo configure
:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5093 eval "ac_cv_func_$ac_func=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.
$ac_ext >&5
5098 eval "ac_cv_func_$ac_func=no"
5103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5105 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5106 cat >> confdefs.h
<<EOF
5107 #define $ac_tr_func 1
5111 echo "$ac_t""no" 1>&6
5116 # syscall() is needed for smbwrapper.
5117 for ac_func
in syscall
5119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_func" >&5
5121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 cat > conftest.
$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128 which can conflict with char $ac_func(); below. */
5130 /* Override any gcc2 internal prototype to avoid an error. */
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148 if { (eval echo configure
:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5150 eval "ac_cv_func_$ac_func=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.
$ac_ext >&5
5155 eval "ac_cv_func_$ac_func=no"
5160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5162 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5163 cat >> confdefs.h
<<EOF
5164 #define $ac_tr_func 1
5168 echo "$ac_t""no" 1>&6
5173 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5176 echo "configure:5177: checking for $ac_func" >&5
5177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5180 cat > conftest.
$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5183 /* System header to define __stub macros and hopefully few prototypes,
5184 which can conflict with char $ac_func(); below. */
5186 /* Override any gcc2 internal prototype to avoid an error. */
5187 /* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5193 /* The GNU C library defines this for functions which it implements
5194 to always fail with ENOSYS. Some functions are actually named
5195 something starting with __ and the normal name is an alias. */
5196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5204 if { (eval echo configure
:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5206 eval "ac_cv_func_$ac_func=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.
$ac_ext >&5
5211 eval "ac_cv_func_$ac_func=no"
5216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5217 echo "$ac_t""yes" 1>&6
5218 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5219 cat >> confdefs.h
<<EOF
5220 #define $ac_tr_func 1
5224 echo "$ac_t""no" 1>&6
5228 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5231 echo "configure:5232: checking for $ac_func" >&5
5232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5235 cat > conftest.
$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5238 /* System header to define __stub macros and hopefully few prototypes,
5239 which can conflict with char $ac_func(); below. */
5241 /* Override any gcc2 internal prototype to avoid an error. */
5242 /* We use char because int might match the return type of a gcc2
5243 builtin and then its argument prototype would still apply. */
5248 /* The GNU C library defines this for functions which it implements
5249 to always fail with ENOSYS. Some functions are actually named
5250 something starting with __ and the normal name is an alias. */
5251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5259 if { (eval echo configure
:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5261 eval "ac_cv_func_$ac_func=yes"
5263 echo "configure: failed program was:" >&5
5264 cat conftest.
$ac_ext >&5
5266 eval "ac_cv_func_$ac_func=no"
5271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5272 echo "$ac_t""yes" 1>&6
5273 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5274 cat >> confdefs.h
<<EOF
5275 #define $ac_tr_func 1
5279 echo "$ac_t""no" 1>&6
5283 for ac_func
in __getcwd _getcwd
5285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5286 echo "configure:5287: checking for $ac_func" >&5
5287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 cat > conftest.
$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5293 /* System header to define __stub macros and hopefully few prototypes,
5294 which can conflict with char $ac_func(); below. */
5296 /* Override any gcc2 internal prototype to avoid an error. */
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5303 /* The GNU C library defines this for functions which it implements
5304 to always fail with ENOSYS. Some functions are actually named
5305 something starting with __ and the normal name is an alias. */
5306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5314 if { (eval echo configure
:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5316 eval "ac_cv_func_$ac_func=yes"
5318 echo "configure: failed program was:" >&5
5319 cat conftest.
$ac_ext >&5
5321 eval "ac_cv_func_$ac_func=no"
5326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5327 echo "$ac_t""yes" 1>&6
5328 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5329 cat >> confdefs.h
<<EOF
5330 #define $ac_tr_func 1
5334 echo "$ac_t""no" 1>&6
5338 for ac_func
in __xstat __fxstat __lxstat
5340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5341 echo "configure:5342: checking for $ac_func" >&5
5342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.
$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 /* System header to define __stub macros and hopefully few prototypes,
5349 which can conflict with char $ac_func(); below. */
5351 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5358 /* The GNU C library defines this for functions which it implements
5359 to always fail with ENOSYS. Some functions are actually named
5360 something starting with __ and the normal name is an alias. */
5361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5369 if { (eval echo configure
:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5371 eval "ac_cv_func_$ac_func=yes"
5373 echo "configure: failed program was:" >&5
5374 cat conftest.
$ac_ext >&5
5376 eval "ac_cv_func_$ac_func=no"
5381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5382 echo "$ac_t""yes" 1>&6
5383 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5384 cat >> confdefs.h
<<EOF
5385 #define $ac_tr_func 1
5389 echo "$ac_t""no" 1>&6
5393 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5396 echo "configure:5397: checking for $ac_func" >&5
5397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5400 cat > conftest.
$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 /* System header to define __stub macros and hopefully few prototypes,
5404 which can conflict with char $ac_func(); below. */
5406 /* Override any gcc2 internal prototype to avoid an error. */
5407 /* We use char because int might match the return type of a gcc2
5408 builtin and then its argument prototype would still apply. */
5413 /* The GNU C library defines this for functions which it implements
5414 to always fail with ENOSYS. Some functions are actually named
5415 something starting with __ and the normal name is an alias. */
5416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5424 if { (eval echo configure
:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5426 eval "ac_cv_func_$ac_func=yes"
5428 echo "configure: failed program was:" >&5
5429 cat conftest.
$ac_ext >&5
5431 eval "ac_cv_func_$ac_func=no"
5436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5437 echo "$ac_t""yes" 1>&6
5438 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5439 cat >> confdefs.h
<<EOF
5440 #define $ac_tr_func 1
5444 echo "$ac_t""no" 1>&6
5448 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5451 echo "configure:5452: checking for $ac_func" >&5
5452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5455 cat > conftest.
$ac_ext <<EOF
5456 #line 5457 "configure"
5457 #include "confdefs.h"
5458 /* System header to define __stub macros and hopefully few prototypes,
5459 which can conflict with char $ac_func(); below. */
5461 /* Override any gcc2 internal prototype to avoid an error. */
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5468 /* The GNU C library defines this for functions which it implements
5469 to always fail with ENOSYS. Some functions are actually named
5470 something starting with __ and the normal name is an alias. */
5471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5479 if { (eval echo configure
:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5481 eval "ac_cv_func_$ac_func=yes"
5483 echo "configure: failed program was:" >&5
5484 cat conftest.
$ac_ext >&5
5486 eval "ac_cv_func_$ac_func=no"
5491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5492 echo "$ac_t""yes" 1>&6
5493 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5494 cat >> confdefs.h
<<EOF
5495 #define $ac_tr_func 1
5499 echo "$ac_t""no" 1>&6
5503 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5506 echo "configure:5507: checking for $ac_func" >&5
5507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5510 cat > conftest.
$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 /* System header to define __stub macros and hopefully few prototypes,
5514 which can conflict with char $ac_func(); below. */
5516 /* Override any gcc2 internal prototype to avoid an error. */
5517 /* We use char because int might match the return type of a gcc2
5518 builtin and then its argument prototype would still apply. */
5523 /* The GNU C library defines this for functions which it implements
5524 to always fail with ENOSYS. Some functions are actually named
5525 something starting with __ and the normal name is an alias. */
5526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5534 if { (eval echo configure
:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5536 eval "ac_cv_func_$ac_func=yes"
5538 echo "configure: failed program was:" >&5
5539 cat conftest.
$ac_ext >&5
5541 eval "ac_cv_func_$ac_func=no"
5546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5547 echo "$ac_t""yes" 1>&6
5548 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5549 cat >> confdefs.h
<<EOF
5550 #define $ac_tr_func 1
5554 echo "$ac_t""no" 1>&6
5558 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5561 echo "configure:5562: checking for $ac_func" >&5
5562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 cat > conftest.
$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 /* System header to define __stub macros and hopefully few prototypes,
5569 which can conflict with char $ac_func(); below. */
5571 /* Override any gcc2 internal prototype to avoid an error. */
5572 /* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */
5578 /* The GNU C library defines this for functions which it implements
5579 to always fail with ENOSYS. Some functions are actually named
5580 something starting with __ and the normal name is an alias. */
5581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5589 if { (eval echo configure
:5590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5591 eval "ac_cv_func_$ac_func=yes"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.
$ac_ext >&5
5596 eval "ac_cv_func_$ac_func=no"
5601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5602 echo "$ac_t""yes" 1>&6
5603 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5604 cat >> confdefs.h
<<EOF
5605 #define $ac_tr_func 1
5609 echo "$ac_t""no" 1>&6
5613 for ac_func
in _write __write _fork __fork
5615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5616 echo "configure:5617: checking for $ac_func" >&5
5617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5620 cat > conftest.
$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5623 /* System header to define __stub macros and hopefully few prototypes,
5624 which can conflict with char $ac_func(); below. */
5626 /* Override any gcc2 internal prototype to avoid an error. */
5627 /* We use char because int might match the return type of a gcc2
5628 builtin and then its argument prototype would still apply. */
5633 /* The GNU C library defines this for functions which it implements
5634 to always fail with ENOSYS. Some functions are actually named
5635 something starting with __ and the normal name is an alias. */
5636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5644 if { (eval echo configure
:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5646 eval "ac_cv_func_$ac_func=yes"
5648 echo "configure: failed program was:" >&5
5649 cat conftest.
$ac_ext >&5
5651 eval "ac_cv_func_$ac_func=no"
5656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5657 echo "$ac_t""yes" 1>&6
5658 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5659 cat >> confdefs.h
<<EOF
5660 #define $ac_tr_func 1
5664 echo "$ac_t""no" 1>&6
5668 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5671 echo "configure:5672: checking for $ac_func" >&5
5672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.
$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 /* System header to define __stub macros and hopefully few prototypes,
5679 which can conflict with char $ac_func(); below. */
5681 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5688 /* The GNU C library defines this for functions which it implements
5689 to always fail with ENOSYS. Some functions are actually named
5690 something starting with __ and the normal name is an alias. */
5691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5699 if { (eval echo configure
:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5701 eval "ac_cv_func_$ac_func=yes"
5703 echo "configure: failed program was:" >&5
5704 cat conftest.
$ac_ext >&5
5706 eval "ac_cv_func_$ac_func=no"
5711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5713 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5714 cat >> confdefs.h
<<EOF
5715 #define $ac_tr_func 1
5719 echo "$ac_t""no" 1>&6
5723 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5726 echo "configure:5727: checking for $ac_func" >&5
5727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5730 cat > conftest.
$ac_ext <<EOF
5731 #line 5732 "configure"
5732 #include "confdefs.h"
5733 /* System header to define __stub macros and hopefully few prototypes,
5734 which can conflict with char $ac_func(); below. */
5736 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5743 /* The GNU C library defines this for functions which it implements
5744 to always fail with ENOSYS. Some functions are actually named
5745 something starting with __ and the normal name is an alias. */
5746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5754 if { (eval echo configure
:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5756 eval "ac_cv_func_$ac_func=yes"
5758 echo "configure: failed program was:" >&5
5759 cat conftest.
$ac_ext >&5
5761 eval "ac_cv_func_$ac_func=no"
5766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5767 echo "$ac_t""yes" 1>&6
5768 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5769 cat >> confdefs.h
<<EOF
5770 #define $ac_tr_func 1
5774 echo "$ac_t""no" 1>&6
5778 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
5780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5781 echo "configure:5782: checking for $ac_func" >&5
5782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5785 cat > conftest.
$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 /* System header to define __stub macros and hopefully few prototypes,
5789 which can conflict with char $ac_func(); below. */
5791 /* Override any gcc2 internal prototype to avoid an error. */
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5798 /* The GNU C library defines this for functions which it implements
5799 to always fail with ENOSYS. Some functions are actually named
5800 something starting with __ and the normal name is an alias. */
5801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5809 if { (eval echo configure
:5810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5811 eval "ac_cv_func_$ac_func=yes"
5813 echo "configure: failed program was:" >&5
5814 cat conftest.
$ac_ext >&5
5816 eval "ac_cv_func_$ac_func=no"
5821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5822 echo "$ac_t""yes" 1>&6
5823 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5824 cat >> confdefs.h
<<EOF
5825 #define $ac_tr_func 1
5829 echo "$ac_t""no" 1>&6
5833 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5836 echo "configure:5837: checking for $ac_func" >&5
5837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5838 echo $ac_n "(cached) $ac_c" 1>&6
5840 cat > conftest.
$ac_ext <<EOF
5841 #line 5842 "configure"
5842 #include "confdefs.h"
5843 /* System header to define __stub macros and hopefully few prototypes,
5844 which can conflict with char $ac_func(); below. */
5846 /* Override any gcc2 internal prototype to avoid an error. */
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5853 /* The GNU C library defines this for functions which it implements
5854 to always fail with ENOSYS. Some functions are actually named
5855 something starting with __ and the normal name is an alias. */
5856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5864 if { (eval echo configure
:5865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5866 eval "ac_cv_func_$ac_func=yes"
5868 echo "configure: failed program was:" >&5
5869 cat conftest.
$ac_ext >&5
5871 eval "ac_cv_func_$ac_func=no"
5876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5877 echo "$ac_t""yes" 1>&6
5878 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5879 cat >> confdefs.h
<<EOF
5880 #define $ac_tr_func 1
5884 echo "$ac_t""no" 1>&6
5888 for ac_func
in open64 _open64 __open64 creat64
5890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5891 echo "configure:5892: checking for $ac_func" >&5
5892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 cat > conftest.
$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5898 /* System header to define __stub macros and hopefully few prototypes,
5899 which can conflict with char $ac_func(); below. */
5901 /* Override any gcc2 internal prototype to avoid an error. */
5902 /* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5908 /* The GNU C library defines this for functions which it implements
5909 to always fail with ENOSYS. Some functions are actually named
5910 something starting with __ and the normal name is an alias. */
5911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 if { (eval echo configure
:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5921 eval "ac_cv_func_$ac_func=yes"
5923 echo "configure: failed program was:" >&5
5924 cat conftest.
$ac_ext >&5
5926 eval "ac_cv_func_$ac_func=no"
5931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5932 echo "$ac_t""yes" 1>&6
5933 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5934 cat >> confdefs.h
<<EOF
5935 #define $ac_tr_func 1
5939 echo "$ac_t""no" 1>&6
5945 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5948 if test x
$ac_cv_func_stat64 = xno
; then
5949 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5950 echo "configure:5951: checking for stat64 in <sys/stat.h>" >&5
5951 cat > conftest.
$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5955 #if defined(HAVE_UNISTD_H)
5958 #include <sys/stat.h>
5961 struct stat64 st64; exit(stat64(".",&st64));
5964 if { (eval echo configure
:5965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5966 ac_cv_func_stat64
=yes
5968 echo "configure: failed program was:" >&5
5969 cat conftest.
$ac_ext >&5
5972 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5973 if test x
$ac_cv_func_stat64 = xyes
; then
5974 cat >> confdefs.h
<<\EOF
5975 #define HAVE_STAT64 1
5981 if test x
$ac_cv_func_lstat64 = xno
; then
5982 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5983 echo "configure:5984: checking for lstat64 in <sys/stat.h>" >&5
5984 cat > conftest.
$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5988 #if defined(HAVE_UNISTD_H)
5991 #include <sys/stat.h>
5994 struct stat64 st64; exit(lstat64(".",&st64));
5997 if { (eval echo configure
:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5999 ac_cv_func_lstat64
=yes
6001 echo "configure: failed program was:" >&5
6002 cat conftest.
$ac_ext >&5
6005 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6006 if test x
$ac_cv_func_lstat64 = xyes
; then
6007 cat >> confdefs.h
<<\EOF
6008 #define HAVE_LSTAT64 1
6014 if test x
$ac_cv_func_fstat64 = xno
; then
6015 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6016 echo "configure:6017: checking for fstat64 in <sys/stat.h>" >&5
6017 cat > conftest.
$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6021 #if defined(HAVE_UNISTD_H)
6024 #include <sys/stat.h>
6027 struct stat64 st64; exit(fstat64(0,&st64));
6030 if { (eval echo configure
:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6032 ac_cv_func_fstat64
=yes
6034 echo "configure: failed program was:" >&5
6035 cat conftest.
$ac_ext >&5
6038 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6039 if test x
$ac_cv_func_fstat64 = xyes
; then
6040 cat >> confdefs.h
<<\EOF
6041 #define HAVE_FSTAT64 1
6048 # If no strcasecmp, check for it in some known places
6049 # It is in -lresolv on ReliantUNIX and UnixWare
6050 # -lresolve *must* follow -lnsl for name resolution to work properly
6053 if test x
$ac_cv_func_strcasecmp = xno
; then
6054 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6055 echo "configure:6056: checking for strcasecmp in -lresolv" >&5
6056 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6060 ac_save_LIBS
="$LIBS"
6061 LIBS
="-lresolv $LIBS"
6062 cat > conftest.
$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6074 if { (eval echo configure
:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6076 eval "ac_cv_lib_$ac_lib_var=yes"
6078 echo "configure: failed program was:" >&5
6079 cat conftest.
$ac_ext >&5
6081 eval "ac_cv_lib_$ac_lib_var=no"
6084 LIBS
="$ac_save_LIBS"
6087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6088 echo "$ac_t""yes" 1>&6
6089 LIBS
="$LIBS -lresolv"
6090 cat >> confdefs.h
<<\EOF
6091 #define HAVE_STRCASECMP 1
6095 echo "$ac_t""no" 1>&6
6101 # Check for the functions putprpwnam, set_auth_parameters,
6102 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6103 # Needed for OSF1 and HPUX.
6107 *-lsecurity*) for ac_func
in putprpwnam
6109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_func" >&5
6111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6114 cat > conftest.
$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6138 if { (eval echo configure
:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6140 eval "ac_cv_func_$ac_func=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.
$ac_ext >&5
6145 eval "ac_cv_func_$ac_func=no"
6150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6153 cat >> confdefs.h
<<EOF
6154 #define $ac_tr_func 1
6158 echo "$ac_t""no" 1>&6
6162 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6163 echo "configure:6164: checking for putprpwnam in -lsecurity" >&5
6164 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6168 ac_save_LIBS
="$LIBS"
6169 LIBS
="-lsecurity $LIBS"
6170 cat > conftest.
$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* Override any gcc2 internal prototype to avoid an error. */
6174 /* We use char because int might match the return type of a gcc2
6175 builtin and then its argument prototype would still apply. */
6182 if { (eval echo configure
:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6184 eval "ac_cv_lib_$ac_lib_var=yes"
6186 echo "configure: failed program was:" >&5
6187 cat conftest.
$ac_ext >&5
6189 eval "ac_cv_lib_$ac_lib_var=no"
6192 LIBS
="$ac_save_LIBS"
6195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6197 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6199 cat >> confdefs.h
<<EOF
6200 #define $ac_tr_lib 1
6203 LIBS
="-lsecurity $LIBS"
6206 echo "$ac_t""no" 1>&6
6209 for ac_func
in putprpwnam
6211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6212 echo "configure:6213: checking for $ac_func" >&5
6213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 cat > conftest.
$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* System header to define __stub macros and hopefully few prototypes,
6220 which can conflict with char $ac_func(); below. */
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6240 if { (eval echo configure
:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6242 eval "ac_cv_func_$ac_func=yes"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.
$ac_ext >&5
6247 eval "ac_cv_func_$ac_func=no"
6252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6254 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6255 cat >> confdefs.h
<<EOF
6256 #define $ac_tr_func 1
6260 echo "$ac_t""no" 1>&6
6268 *-lsec*) for ac_func
in putprpwnam
6270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_func" >&5
6272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.
$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* System header to define __stub macros and hopefully few prototypes,
6279 which can conflict with char $ac_func(); below. */
6281 /* Override any gcc2 internal prototype to avoid an error. */
6282 /* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6288 /* The GNU C library defines this for functions which it implements
6289 to always fail with ENOSYS. Some functions are actually named
6290 something starting with __ and the normal name is an alias. */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6299 if { (eval echo configure
:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6301 eval "ac_cv_func_$ac_func=yes"
6303 echo "configure: failed program was:" >&5
6304 cat conftest.
$ac_ext >&5
6306 eval "ac_cv_func_$ac_func=no"
6311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6314 cat >> confdefs.h
<<EOF
6315 #define $ac_tr_func 1
6319 echo "$ac_t""no" 1>&6
6323 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6324 echo "configure:6325: checking for putprpwnam in -lsec" >&5
6325 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6327 echo $ac_n "(cached) $ac_c" 1>&6
6329 ac_save_LIBS
="$LIBS"
6331 cat > conftest.
$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6343 if { (eval echo configure
:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6345 eval "ac_cv_lib_$ac_lib_var=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.
$ac_ext >&5
6350 eval "ac_cv_lib_$ac_lib_var=no"
6353 LIBS
="$ac_save_LIBS"
6356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6358 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6360 cat >> confdefs.h
<<EOF
6361 #define $ac_tr_lib 1
6367 echo "$ac_t""no" 1>&6
6370 for ac_func
in putprpwnam
6372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6373 echo "configure:6374: checking for $ac_func" >&5
6374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 cat > conftest.
$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6380 /* System header to define __stub macros and hopefully few prototypes,
6381 which can conflict with char $ac_func(); below. */
6383 /* Override any gcc2 internal prototype to avoid an error. */
6384 /* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6390 /* The GNU C library defines this for functions which it implements
6391 to always fail with ENOSYS. Some functions are actually named
6392 something starting with __ and the normal name is an alias. */
6393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6401 if { (eval echo configure
:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6403 eval "ac_cv_func_$ac_func=yes"
6405 echo "configure: failed program was:" >&5
6406 cat conftest.
$ac_ext >&5
6408 eval "ac_cv_func_$ac_func=no"
6413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6414 echo "$ac_t""yes" 1>&6
6415 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6416 cat >> confdefs.h
<<EOF
6417 #define $ac_tr_func 1
6421 echo "$ac_t""no" 1>&6
6430 *-lsecurity*) for ac_func
in set_auth_parameters
6432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6433 echo "configure:6434: checking for $ac_func" >&5
6434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6437 cat > conftest.
$ac_ext <<EOF
6438 #line 6439 "configure"
6439 #include "confdefs.h"
6440 /* System header to define __stub macros and hopefully few prototypes,
6441 which can conflict with char $ac_func(); below. */
6443 /* Override any gcc2 internal prototype to avoid an error. */
6444 /* We use char because int might match the return type of a gcc2
6445 builtin and then its argument prototype would still apply. */
6450 /* The GNU C library defines this for functions which it implements
6451 to always fail with ENOSYS. Some functions are actually named
6452 something starting with __ and the normal name is an alias. */
6453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6461 if { (eval echo configure
:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6463 eval "ac_cv_func_$ac_func=yes"
6465 echo "configure: failed program was:" >&5
6466 cat conftest.
$ac_ext >&5
6468 eval "ac_cv_func_$ac_func=no"
6473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6474 echo "$ac_t""yes" 1>&6
6475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6476 cat >> confdefs.h
<<EOF
6477 #define $ac_tr_func 1
6481 echo "$ac_t""no" 1>&6
6485 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6486 echo "configure:6487: checking for set_auth_parameters in -lsecurity" >&5
6487 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 ac_save_LIBS
="$LIBS"
6492 LIBS
="-lsecurity $LIBS"
6493 cat > conftest.
$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char set_auth_parameters();
6502 set_auth_parameters()
6505 if { (eval echo configure
:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6507 eval "ac_cv_lib_$ac_lib_var=yes"
6509 echo "configure: failed program was:" >&5
6510 cat conftest.
$ac_ext >&5
6512 eval "ac_cv_lib_$ac_lib_var=no"
6515 LIBS
="$ac_save_LIBS"
6518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6522 cat >> confdefs.h
<<EOF
6523 #define $ac_tr_lib 1
6526 LIBS
="-lsecurity $LIBS"
6529 echo "$ac_t""no" 1>&6
6532 for ac_func
in set_auth_parameters
6534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6535 echo "configure:6536: checking for $ac_func" >&5
6536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6539 cat > conftest.
$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6542 /* System header to define __stub macros and hopefully few prototypes,
6543 which can conflict with char $ac_func(); below. */
6545 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6552 /* The GNU C library defines this for functions which it implements
6553 to always fail with ENOSYS. Some functions are actually named
6554 something starting with __ and the normal name is an alias. */
6555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6563 if { (eval echo configure
:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6565 eval "ac_cv_func_$ac_func=yes"
6567 echo "configure: failed program was:" >&5
6568 cat conftest.
$ac_ext >&5
6570 eval "ac_cv_func_$ac_func=no"
6575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6576 echo "$ac_t""yes" 1>&6
6577 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6578 cat >> confdefs.h
<<EOF
6579 #define $ac_tr_func 1
6583 echo "$ac_t""no" 1>&6
6591 *-lsec*) for ac_func
in set_auth_parameters
6593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6594 echo "configure:6595: checking for $ac_func" >&5
6595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6596 echo $ac_n "(cached) $ac_c" 1>&6
6598 cat > conftest.
$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6601 /* System header to define __stub macros and hopefully few prototypes,
6602 which can conflict with char $ac_func(); below. */
6604 /* Override any gcc2 internal prototype to avoid an error. */
6605 /* We use char because int might match the return type of a gcc2
6606 builtin and then its argument prototype would still apply. */
6611 /* The GNU C library defines this for functions which it implements
6612 to always fail with ENOSYS. Some functions are actually named
6613 something starting with __ and the normal name is an alias. */
6614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6622 if { (eval echo configure
:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6624 eval "ac_cv_func_$ac_func=yes"
6626 echo "configure: failed program was:" >&5
6627 cat conftest.
$ac_ext >&5
6629 eval "ac_cv_func_$ac_func=no"
6634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6635 echo "$ac_t""yes" 1>&6
6636 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6637 cat >> confdefs.h
<<EOF
6638 #define $ac_tr_func 1
6642 echo "$ac_t""no" 1>&6
6646 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6647 echo "configure:6648: checking for set_auth_parameters in -lsec" >&5
6648 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6652 ac_save_LIBS
="$LIBS"
6654 cat > conftest.
$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6657 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6660 char set_auth_parameters();
6663 set_auth_parameters()
6666 if { (eval echo configure
:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6668 eval "ac_cv_lib_$ac_lib_var=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.
$ac_ext >&5
6673 eval "ac_cv_lib_$ac_lib_var=no"
6676 LIBS
="$ac_save_LIBS"
6679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6680 echo "$ac_t""yes" 1>&6
6681 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6683 cat >> confdefs.h
<<EOF
6684 #define $ac_tr_lib 1
6690 echo "$ac_t""no" 1>&6
6693 for ac_func
in set_auth_parameters
6695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6696 echo "configure:6697: checking for $ac_func" >&5
6697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6700 cat > conftest.
$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char $ac_func(); below. */
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6713 /* The GNU C library defines this for functions which it implements
6714 to always fail with ENOSYS. Some functions are actually named
6715 something starting with __ and the normal name is an alias. */
6716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6724 if { (eval echo configure
:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6726 eval "ac_cv_func_$ac_func=yes"
6728 echo "configure: failed program was:" >&5
6729 cat conftest.
$ac_ext >&5
6731 eval "ac_cv_func_$ac_func=no"
6736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6739 cat >> confdefs.h
<<EOF
6740 #define $ac_tr_func 1
6744 echo "$ac_t""no" 1>&6
6752 # UnixWare 7.x has its getspnam in -lgen
6754 *-lgen*) for ac_func
in getspnam
6756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6757 echo "configure:6758: checking for $ac_func" >&5
6758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6759 echo $ac_n "(cached) $ac_c" 1>&6
6761 cat > conftest.
$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 /* System header to define __stub macros and hopefully few prototypes,
6765 which can conflict with char $ac_func(); below. */
6767 /* Override any gcc2 internal prototype to avoid an error. */
6768 /* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6774 /* The GNU C library defines this for functions which it implements
6775 to always fail with ENOSYS. Some functions are actually named
6776 something starting with __ and the normal name is an alias. */
6777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6785 if { (eval echo configure
:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6787 eval "ac_cv_func_$ac_func=yes"
6789 echo "configure: failed program was:" >&5
6790 cat conftest.
$ac_ext >&5
6792 eval "ac_cv_func_$ac_func=no"
6797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6800 cat >> confdefs.h
<<EOF
6801 #define $ac_tr_func 1
6805 echo "$ac_t""no" 1>&6
6809 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6810 echo "configure:6811: checking for getspnam in -lgen" >&5
6811 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 ac_save_LIBS
="$LIBS"
6817 cat > conftest.
$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6829 if { (eval echo configure
:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6831 eval "ac_cv_lib_$ac_lib_var=yes"
6833 echo "configure: failed program was:" >&5
6834 cat conftest.
$ac_ext >&5
6836 eval "ac_cv_lib_$ac_lib_var=no"
6839 LIBS
="$ac_save_LIBS"
6842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6845 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6846 cat >> confdefs.h
<<EOF
6847 #define $ac_tr_lib 1
6853 echo "$ac_t""no" 1>&6
6856 for ac_func
in getspnam
6858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6859 echo "configure:6860: checking for $ac_func" >&5
6860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6863 cat > conftest.
$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 /* System header to define __stub macros and hopefully few prototypes,
6867 which can conflict with char $ac_func(); below. */
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6876 /* The GNU C library defines this for functions which it implements
6877 to always fail with ENOSYS. Some functions are actually named
6878 something starting with __ and the normal name is an alias. */
6879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6887 if { (eval echo configure
:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6889 eval "ac_cv_func_$ac_func=yes"
6891 echo "configure: failed program was:" >&5
6892 cat conftest.
$ac_ext >&5
6894 eval "ac_cv_func_$ac_func=no"
6899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6900 echo "$ac_t""yes" 1>&6
6901 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6902 cat >> confdefs.h
<<EOF
6903 #define $ac_tr_func 1
6907 echo "$ac_t""no" 1>&6
6916 *-lsecurity*) for ac_func
in getspnam
6918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6919 echo "configure:6920: checking for $ac_func" >&5
6920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6923 cat > conftest.
$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6926 /* System header to define __stub macros and hopefully few prototypes,
6927 which can conflict with char $ac_func(); below. */
6929 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6936 /* The GNU C library defines this for functions which it implements
6937 to always fail with ENOSYS. Some functions are actually named
6938 something starting with __ and the normal name is an alias. */
6939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6947 if { (eval echo configure
:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6949 eval "ac_cv_func_$ac_func=yes"
6951 echo "configure: failed program was:" >&5
6952 cat conftest.
$ac_ext >&5
6954 eval "ac_cv_func_$ac_func=no"
6959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6960 echo "$ac_t""yes" 1>&6
6961 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6962 cat >> confdefs.h
<<EOF
6963 #define $ac_tr_func 1
6967 echo "$ac_t""no" 1>&6
6971 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6972 echo "configure:6973: checking for getspnam in -lsecurity" >&5
6973 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6977 ac_save_LIBS
="$LIBS"
6978 LIBS
="-lsecurity $LIBS"
6979 cat > conftest.
$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6982 /* Override any gcc2 internal prototype to avoid an error. */
6983 /* We use char because int might match the return type of a gcc2
6984 builtin and then its argument prototype would still apply. */
6991 if { (eval echo configure
:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6993 eval "ac_cv_lib_$ac_lib_var=yes"
6995 echo "configure: failed program was:" >&5
6996 cat conftest.
$ac_ext >&5
6998 eval "ac_cv_lib_$ac_lib_var=no"
7001 LIBS
="$ac_save_LIBS"
7004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7005 echo "$ac_t""yes" 1>&6
7006 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7008 cat >> confdefs.h
<<EOF
7009 #define $ac_tr_lib 1
7012 LIBS
="-lsecurity $LIBS"
7015 echo "$ac_t""no" 1>&6
7018 for ac_func
in getspnam
7020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7021 echo "configure:7022: checking for $ac_func" >&5
7022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 cat > conftest.
$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 /* System header to define __stub macros and hopefully few prototypes,
7029 which can conflict with char $ac_func(); below. */
7031 /* Override any gcc2 internal prototype to avoid an error. */
7032 /* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7038 /* The GNU C library defines this for functions which it implements
7039 to always fail with ENOSYS. Some functions are actually named
7040 something starting with __ and the normal name is an alias. */
7041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7049 if { (eval echo configure
:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7051 eval "ac_cv_func_$ac_func=yes"
7053 echo "configure: failed program was:" >&5
7054 cat conftest.
$ac_ext >&5
7056 eval "ac_cv_func_$ac_func=no"
7061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7062 echo "$ac_t""yes" 1>&6
7063 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7064 cat >> confdefs.h
<<EOF
7065 #define $ac_tr_func 1
7069 echo "$ac_t""no" 1>&6
7077 *-lsec*) for ac_func
in getspnam
7079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7080 echo "configure:7081: checking for $ac_func" >&5
7081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7082 echo $ac_n "(cached) $ac_c" 1>&6
7084 cat > conftest.
$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7087 /* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func(); below. */
7090 /* Override any gcc2 internal prototype to avoid an error. */
7091 /* We use char because int might match the return type of a gcc2
7092 builtin and then its argument prototype would still apply. */
7097 /* The GNU C library defines this for functions which it implements
7098 to always fail with ENOSYS. Some functions are actually named
7099 something starting with __ and the normal name is an alias. */
7100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7108 if { (eval echo configure
:7109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7110 eval "ac_cv_func_$ac_func=yes"
7112 echo "configure: failed program was:" >&5
7113 cat conftest.
$ac_ext >&5
7115 eval "ac_cv_func_$ac_func=no"
7120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7121 echo "$ac_t""yes" 1>&6
7122 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7123 cat >> confdefs.h
<<EOF
7124 #define $ac_tr_func 1
7128 echo "$ac_t""no" 1>&6
7132 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7133 echo "configure:7134: checking for getspnam in -lsec" >&5
7134 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7138 ac_save_LIBS
="$LIBS"
7140 cat > conftest.
$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7152 if { (eval echo configure
:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.
$ac_ext >&5
7159 eval "ac_cv_lib_$ac_lib_var=no"
7162 LIBS
="$ac_save_LIBS"
7165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7169 cat >> confdefs.h
<<EOF
7170 #define $ac_tr_lib 1
7176 echo "$ac_t""no" 1>&6
7179 for ac_func
in getspnam
7181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7182 echo "configure:7183: checking for $ac_func" >&5
7183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7186 cat > conftest.
$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* System header to define __stub macros and hopefully few prototypes,
7190 which can conflict with char $ac_func(); below. */
7192 /* Override any gcc2 internal prototype to avoid an error. */
7193 /* We use char because int might match the return type of a gcc2
7194 builtin and then its argument prototype would still apply. */
7199 /* The GNU C library defines this for functions which it implements
7200 to always fail with ENOSYS. Some functions are actually named
7201 something starting with __ and the normal name is an alias. */
7202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7210 if { (eval echo configure
:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7212 eval "ac_cv_func_$ac_func=yes"
7214 echo "configure: failed program was:" >&5
7215 cat conftest.
$ac_ext >&5
7217 eval "ac_cv_func_$ac_func=no"
7222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7223 echo "$ac_t""yes" 1>&6
7224 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7225 cat >> confdefs.h
<<EOF
7226 #define $ac_tr_func 1
7230 echo "$ac_t""no" 1>&6
7239 *-lsecurity*) for ac_func
in bigcrypt
7241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_func" >&5
7243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7246 cat > conftest.
$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char $ac_func(); below. */
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7270 if { (eval echo configure
:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7272 eval "ac_cv_func_$ac_func=yes"
7274 echo "configure: failed program was:" >&5
7275 cat conftest.
$ac_ext >&5
7277 eval "ac_cv_func_$ac_func=no"
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283 echo "$ac_t""yes" 1>&6
7284 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7285 cat >> confdefs.h
<<EOF
7286 #define $ac_tr_func 1
7290 echo "$ac_t""no" 1>&6
7294 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7295 echo "configure:7296: checking for bigcrypt in -lsecurity" >&5
7296 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 ac_save_LIBS
="$LIBS"
7301 LIBS
="-lsecurity $LIBS"
7302 cat > conftest.
$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7305 /* Override any gcc2 internal prototype to avoid an error. */
7306 /* We use char because int might match the return type of a gcc2
7307 builtin and then its argument prototype would still apply. */
7314 if { (eval echo configure
:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7316 eval "ac_cv_lib_$ac_lib_var=yes"
7318 echo "configure: failed program was:" >&5
7319 cat conftest.
$ac_ext >&5
7321 eval "ac_cv_lib_$ac_lib_var=no"
7324 LIBS
="$ac_save_LIBS"
7327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7329 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7330 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7331 cat >> confdefs.h
<<EOF
7332 #define $ac_tr_lib 1
7335 LIBS
="-lsecurity $LIBS"
7338 echo "$ac_t""no" 1>&6
7341 for ac_func
in bigcrypt
7343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7344 echo "configure:7345: checking for $ac_func" >&5
7345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 cat > conftest.
$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 /* System header to define __stub macros and hopefully few prototypes,
7352 which can conflict with char $ac_func(); below. */
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7372 if { (eval echo configure
:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7374 eval "ac_cv_func_$ac_func=yes"
7376 echo "configure: failed program was:" >&5
7377 cat conftest.
$ac_ext >&5
7379 eval "ac_cv_func_$ac_func=no"
7384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7385 echo "$ac_t""yes" 1>&6
7386 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7387 cat >> confdefs.h
<<EOF
7388 #define $ac_tr_func 1
7392 echo "$ac_t""no" 1>&6
7400 *-lsec*) for ac_func
in bigcrypt
7402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7403 echo "configure:7404: checking for $ac_func" >&5
7404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7407 cat > conftest.
$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 /* System header to define __stub macros and hopefully few prototypes,
7411 which can conflict with char $ac_func(); below. */
7413 /* Override any gcc2 internal prototype to avoid an error. */
7414 /* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7420 /* The GNU C library defines this for functions which it implements
7421 to always fail with ENOSYS. Some functions are actually named
7422 something starting with __ and the normal name is an alias. */
7423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7431 if { (eval echo configure
:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7433 eval "ac_cv_func_$ac_func=yes"
7435 echo "configure: failed program was:" >&5
7436 cat conftest.
$ac_ext >&5
7438 eval "ac_cv_func_$ac_func=no"
7443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7444 echo "$ac_t""yes" 1>&6
7445 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7446 cat >> confdefs.h
<<EOF
7447 #define $ac_tr_func 1
7451 echo "$ac_t""no" 1>&6
7455 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7456 echo "configure:7457: checking for bigcrypt in -lsec" >&5
7457 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7461 ac_save_LIBS
="$LIBS"
7463 cat > conftest.
$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7466 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7475 if { (eval echo configure
:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7477 eval "ac_cv_lib_$ac_lib_var=yes"
7479 echo "configure: failed program was:" >&5
7480 cat conftest.
$ac_ext >&5
7482 eval "ac_cv_lib_$ac_lib_var=no"
7485 LIBS
="$ac_save_LIBS"
7488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7491 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7492 cat >> confdefs.h
<<EOF
7493 #define $ac_tr_lib 1
7499 echo "$ac_t""no" 1>&6
7502 for ac_func
in bigcrypt
7504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7505 echo "configure:7506: checking for $ac_func" >&5
7506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7509 cat > conftest.
$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7512 /* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char $ac_func(); below. */
7515 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7522 /* The GNU C library defines this for functions which it implements
7523 to always fail with ENOSYS. Some functions are actually named
7524 something starting with __ and the normal name is an alias. */
7525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7533 if { (eval echo configure
:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7535 eval "ac_cv_func_$ac_func=yes"
7537 echo "configure: failed program was:" >&5
7538 cat conftest.
$ac_ext >&5
7540 eval "ac_cv_func_$ac_func=no"
7545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7548 cat >> confdefs.h
<<EOF
7549 #define $ac_tr_func 1
7553 echo "$ac_t""no" 1>&6
7562 *-lsecurity*) for ac_func
in getprpwnam
7564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7565 echo "configure:7566: checking for $ac_func" >&5
7566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7569 cat > conftest.
$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char $ac_func(); below. */
7575 /* Override any gcc2 internal prototype to avoid an error. */
7576 /* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7582 /* The GNU C library defines this for functions which it implements
7583 to always fail with ENOSYS. Some functions are actually named
7584 something starting with __ and the normal name is an alias. */
7585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7593 if { (eval echo configure
:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7595 eval "ac_cv_func_$ac_func=yes"
7597 echo "configure: failed program was:" >&5
7598 cat conftest.
$ac_ext >&5
7600 eval "ac_cv_func_$ac_func=no"
7605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7608 cat >> confdefs.h
<<EOF
7609 #define $ac_tr_func 1
7613 echo "$ac_t""no" 1>&6
7617 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7618 echo "configure:7619: checking for getprpwnam in -lsecurity" >&5
7619 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7623 ac_save_LIBS
="$LIBS"
7624 LIBS
="-lsecurity $LIBS"
7625 cat > conftest.
$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 /* Override any gcc2 internal prototype to avoid an error. */
7629 /* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7637 if { (eval echo configure
:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7639 eval "ac_cv_lib_$ac_lib_var=yes"
7641 echo "configure: failed program was:" >&5
7642 cat conftest.
$ac_ext >&5
7644 eval "ac_cv_lib_$ac_lib_var=no"
7647 LIBS
="$ac_save_LIBS"
7650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7651 echo "$ac_t""yes" 1>&6
7652 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7654 cat >> confdefs.h
<<EOF
7655 #define $ac_tr_lib 1
7658 LIBS
="-lsecurity $LIBS"
7661 echo "$ac_t""no" 1>&6
7664 for ac_func
in getprpwnam
7666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7667 echo "configure:7668: checking for $ac_func" >&5
7668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7671 cat > conftest.
$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* System header to define __stub macros and hopefully few prototypes,
7675 which can conflict with char $ac_func(); below. */
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7695 if { (eval echo configure
:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7697 eval "ac_cv_func_$ac_func=yes"
7699 echo "configure: failed program was:" >&5
7700 cat conftest.
$ac_ext >&5
7702 eval "ac_cv_func_$ac_func=no"
7707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7708 echo "$ac_t""yes" 1>&6
7709 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7710 cat >> confdefs.h
<<EOF
7711 #define $ac_tr_func 1
7715 echo "$ac_t""no" 1>&6
7723 *-lsec*) for ac_func
in getprpwnam
7725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7726 echo "configure:7727: checking for $ac_func" >&5
7727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7730 cat > conftest.
$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 /* System header to define __stub macros and hopefully few prototypes,
7734 which can conflict with char $ac_func(); below. */
7736 /* Override any gcc2 internal prototype to avoid an error. */
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7743 /* The GNU C library defines this for functions which it implements
7744 to always fail with ENOSYS. Some functions are actually named
7745 something starting with __ and the normal name is an alias. */
7746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7754 if { (eval echo configure
:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7756 eval "ac_cv_func_$ac_func=yes"
7758 echo "configure: failed program was:" >&5
7759 cat conftest.
$ac_ext >&5
7761 eval "ac_cv_func_$ac_func=no"
7766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7767 echo "$ac_t""yes" 1>&6
7768 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7769 cat >> confdefs.h
<<EOF
7770 #define $ac_tr_func 1
7774 echo "$ac_t""no" 1>&6
7778 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7779 echo "configure:7780: checking for getprpwnam in -lsec" >&5
7780 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7784 ac_save_LIBS
="$LIBS"
7786 cat > conftest.
$ac_ext <<EOF
7787 #line 7788 "configure"
7788 #include "confdefs.h"
7789 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7798 if { (eval echo configure
:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7800 eval "ac_cv_lib_$ac_lib_var=yes"
7802 echo "configure: failed program was:" >&5
7803 cat conftest.
$ac_ext >&5
7805 eval "ac_cv_lib_$ac_lib_var=no"
7808 LIBS
="$ac_save_LIBS"
7811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7812 echo "$ac_t""yes" 1>&6
7813 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7815 cat >> confdefs.h
<<EOF
7816 #define $ac_tr_lib 1
7822 echo "$ac_t""no" 1>&6
7825 for ac_func
in getprpwnam
7827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7828 echo "configure:7829: checking for $ac_func" >&5
7829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7832 cat > conftest.
$ac_ext <<EOF
7833 #line 7834 "configure"
7834 #include "confdefs.h"
7835 /* System header to define __stub macros and hopefully few prototypes,
7836 which can conflict with char $ac_func(); below. */
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7845 /* The GNU C library defines this for functions which it implements
7846 to always fail with ENOSYS. Some functions are actually named
7847 something starting with __ and the normal name is an alias. */
7848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7856 if { (eval echo configure
:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7858 eval "ac_cv_func_$ac_func=yes"
7860 echo "configure: failed program was:" >&5
7861 cat conftest.
$ac_ext >&5
7863 eval "ac_cv_func_$ac_func=no"
7868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7870 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7871 cat >> confdefs.h
<<EOF
7872 #define $ac_tr_func 1
7876 echo "$ac_t""no" 1>&6
7884 # this bit needs to be modified for each OS that is suported by
7885 # smbwrapper. You need to specify how to created a shared library and
7886 # how to compile C code to produce PIC object files
7888 # these are the defaults, good for lots of systems
7894 # and these are for particular systems
7896 *linux
*) cat >> confdefs.h
<<\EOF
7900 *solaris
*) cat >> confdefs.h
<<\EOF
7906 *sunos
*) cat >> confdefs.h
<<\EOF
7912 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7914 *irix
*) cat >> confdefs.h
<<\EOF
7919 *irix6
*) cat >> confdefs.h
<<\EOF
7925 ATTEMPT_WRAP32_BUILD
=yes
7927 *aix
*) cat >> confdefs.h
<<\EOF
7931 *hpux
*) cat >> confdefs.h
<<\EOF
7936 # Use special PIC flags for the native HP-UX compiler.
7937 if test $ac_cv_prog_cc_Ae = yes; then
7942 *qnx
*) cat >> confdefs.h
<<\EOF
7946 *osf
*) cat >> confdefs.h
<<\EOF
7950 *sco
*) cat >> confdefs.h
<<\EOF
7954 *next2
*) cat >> confdefs.h
<<\EOF
7958 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
7959 set dummy
groff; ac_word
=$2
7960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7961 echo "configure:7962: checking for $ac_word" >&5
7962 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7965 if test -n "$ROFF"; then
7966 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
7968 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7970 for ac_dir
in $ac_dummy; do
7971 test -z "$ac_dir" && ac_dir
=.
7972 if test -f $ac_dir/$ac_word; then
7973 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
7980 ROFF
="$ac_cv_prog_ROFF"
7981 if test -n "$ROFF"; then
7982 echo "$ac_t""$ROFF" 1>&6
7984 echo "$ac_t""no" 1>&6
7989 *-univel-*) if test "$GCC" != yes ; then
7990 cat >> confdefs.h
<<\EOF
7991 #define HAVE_MEMSET 1
7997 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
7998 #define RELIANTUNIX 1
8004 if test "$GCC" != yes ; then
8005 cat >> confdefs.h
<<\EOF
8006 #define HAVE_MEMSET 1
8014 # try to work out how to produce pic code with this compiler
8015 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8016 echo "configure:8017: checking whether ${CC-cc} accepts -fpic" >&5
8017 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8020 echo 'void f(){}' > conftest.c
8021 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8022 ac_cv_prog_cc_fpic
=yes
8024 ac_cv_prog_cc_fpic
=no
8030 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8031 if test $ac_cv_prog_cc_fpic = yes; then
8034 if test x
$PICFLAG = x
; then
8035 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8036 echo "configure:8037: checking whether ${CC-cc} accepts -Kpic" >&5
8037 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8038 echo $ac_n "(cached) $ac_c" 1>&6
8040 echo 'void f(){}' > conftest.c
8041 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8042 ac_cv_prog_cc_Kpic
=yes
8044 ac_cv_prog_cc_Kpic
=no
8050 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8051 if test $ac_cv_prog_cc_Kpic = yes; then
8055 if test x
$PICFLAG = x
; then
8056 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8057 echo "configure:8058: checking whether ${CC-cc} accepts -KPIC" >&5
8058 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8061 echo 'void f(){}' > conftest.c
8062 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8063 ac_cv_prog_cc_KPIC
=yes
8065 ac_cv_prog_cc_KPIC
=no
8071 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8072 if test $ac_cv_prog_cc_KPIC = yes; then
8079 echo $ac_n "checking for long long""... $ac_c" 1>&6
8080 echo "configure:8081: checking for long long" >&5
8081 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8085 if test "$cross_compiling" = yes; then
8086 samba_cv_have_longlong
=cross
8088 cat > conftest.
$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8092 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8094 if { (eval echo configure
:8095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8096 samba_cv_have_longlong
=yes
8098 echo "configure: failed program was:" >&5
8099 cat conftest.
$ac_ext >&5
8101 samba_cv_have_longlong
=no
8108 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8109 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8110 cat >> confdefs.h
<<\EOF
8111 #define HAVE_LONGLONG 1
8117 # Check if the compiler supports the LL prefix on long long integers.
8120 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8121 echo "configure:8122: checking for LL suffix on long long integers" >&5
8122 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8126 cat > conftest.
$ac_ext <<EOF
8127 #line 8128 "configure"
8128 #include "confdefs.h"
8131 long long i = 0x8000000000LL
8134 if { (eval echo configure
:8135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8136 samba_cv_compiler_supports_ll
=yes
8138 echo "configure: failed program was:" >&5
8139 cat conftest.
$ac_ext >&5
8141 samba_cv_compiler_supports_ll
=no
8146 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8147 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8148 cat >> confdefs.h
<<\EOF
8149 #define COMPILER_SUPPORTS_LL 1
8155 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8156 echo "configure:8157: checking for 64 bit off_t" >&5
8157 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8158 echo $ac_n "(cached) $ac_c" 1>&6
8161 if test "$cross_compiling" = yes; then
8162 samba_cv_SIZEOF_OFF_T
=cross
8164 cat > conftest.
$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8168 #include <sys/stat.h>
8169 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8171 if { (eval echo configure
:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8173 samba_cv_SIZEOF_OFF_T
=yes
8175 echo "configure: failed program was:" >&5
8176 cat conftest.
$ac_ext >&5
8178 samba_cv_SIZEOF_OFF_T
=no
8185 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8186 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8187 cat >> confdefs.h
<<\EOF
8188 #define SIZEOF_OFF_T 8
8193 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8194 echo "configure:8195: checking for off64_t" >&5
8195 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8196 echo $ac_n "(cached) $ac_c" 1>&6
8199 if test "$cross_compiling" = yes; then
8200 samba_cv_HAVE_OFF64_T
=cross
8202 cat > conftest.
$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8206 #if defined(HAVE_UNISTD_H)
8210 #include <sys/stat.h>
8211 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8213 if { (eval echo configure
:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8215 samba_cv_HAVE_OFF64_T
=yes
8217 echo "configure: failed program was:" >&5
8218 cat conftest.
$ac_ext >&5
8220 samba_cv_HAVE_OFF64_T
=no
8227 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8228 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8229 cat >> confdefs.h
<<\EOF
8230 #define HAVE_OFF64_T 1
8235 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8236 echo "configure:8237: checking for 64 bit ino_t" >&5
8237 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8241 if test "$cross_compiling" = yes; then
8242 samba_cv_SIZEOF_INO_T
=cross
8244 cat > conftest.
$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8248 #include <sys/stat.h>
8249 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8251 if { (eval echo configure
:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8253 samba_cv_SIZEOF_INO_T
=yes
8255 echo "configure: failed program was:" >&5
8256 cat conftest.
$ac_ext >&5
8258 samba_cv_SIZEOF_INO_T
=no
8265 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8266 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8267 cat >> confdefs.h
<<\EOF
8268 #define SIZEOF_INO_T 8
8273 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8274 echo "configure:8275: checking for ino64_t" >&5
8275 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8279 if test "$cross_compiling" = yes; then
8280 samba_cv_HAVE_INO64_T
=cross
8282 cat > conftest.
$ac_ext <<EOF
8283 #line 8284 "configure"
8284 #include "confdefs.h"
8286 #if defined(HAVE_UNISTD_H)
8290 #include <sys/stat.h>
8291 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8293 if { (eval echo configure
:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8295 samba_cv_HAVE_INO64_T
=yes
8297 echo "configure: failed program was:" >&5
8298 cat conftest.
$ac_ext >&5
8300 samba_cv_HAVE_INO64_T
=no
8307 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8308 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8309 cat >> confdefs.h
<<\EOF
8310 #define HAVE_INO64_T 1
8315 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8316 echo "configure:8317: checking for struct dirent64" >&5
8317 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8321 cat > conftest.
$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8325 #if defined(HAVE_UNISTD_H)
8328 #include <sys/types.h>
8334 if { (eval echo configure
:8335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8336 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8338 echo "configure: failed program was:" >&5
8339 cat conftest.
$ac_ext >&5
8341 samba_cv_HAVE_STRUCT_DIRENT64
=no
8346 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8347 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8348 cat >> confdefs.h
<<\EOF
8349 #define HAVE_STRUCT_DIRENT64 1
8354 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8355 echo "configure:8356: checking for unsigned char" >&5
8356 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8360 if test "$cross_compiling" = yes; then
8361 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8363 cat > conftest.
$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8367 main() { char c; c=250; exit((c > 0)?0:1); }
8369 if { (eval echo configure
:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8371 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8373 echo "configure: failed program was:" >&5
8374 cat conftest.
$ac_ext >&5
8376 samba_cv_HAVE_UNSIGNED_CHAR
=no
8383 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8384 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8385 cat >> confdefs.h
<<\EOF
8386 #define HAVE_UNSIGNED_CHAR 1
8391 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8392 echo "configure:8393: checking for sin_len in sock" >&5
8393 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8397 cat > conftest.
$ac_ext <<EOF
8398 #line 8399 "configure"
8399 #include "confdefs.h"
8400 #include <sys/types.h>
8401 #include <sys/socket.h>
8402 #include <netinet/in.h>
8404 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8407 if { (eval echo configure
:8408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8409 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8411 echo "configure: failed program was:" >&5
8412 cat conftest.
$ac_ext >&5
8414 samba_cv_HAVE_SOCK_SIN_LEN
=no
8419 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8420 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8421 cat >> confdefs.h
<<\EOF
8422 #define HAVE_SOCK_SIN_LEN 1
8427 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8428 echo "configure:8429: checking whether seekdir returns void" >&5
8429 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8430 echo $ac_n "(cached) $ac_c" 1>&6
8433 cat > conftest.
$ac_ext <<EOF
8434 #line 8435 "configure"
8435 #include "confdefs.h"
8436 #include <sys/types.h>
8438 void seekdir(DIR *d, long loc) { return; }
8443 if { (eval echo configure
:8444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8445 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8447 echo "configure: failed program was:" >&5
8448 cat conftest.
$ac_ext >&5
8450 samba_cv_SEEKDIR_RETURNS_VOID
=no
8455 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8456 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8457 cat >> confdefs.h
<<\EOF
8458 #define SEEKDIR_RETURNS_VOID 1
8463 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8464 echo "configure:8465: checking for __FILE__ macro" >&5
8465 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8469 cat > conftest.
$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8474 printf("%s\n", __FILE__);
8477 if { (eval echo configure
:8478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8479 samba_cv_HAVE_FILE_MACRO
=yes
8481 echo "configure: failed program was:" >&5
8482 cat conftest.
$ac_ext >&5
8484 samba_cv_HAVE_FILE_MACRO
=no
8489 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8490 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8491 cat >> confdefs.h
<<\EOF
8492 #define HAVE_FILE_MACRO 1
8497 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8498 echo "configure:8499: checking for __FUNCTION__ macro" >&5
8499 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8500 echo $ac_n "(cached) $ac_c" 1>&6
8503 cat > conftest.
$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8508 printf("%s\n", __FUNCTION__);
8511 if { (eval echo configure
:8512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8513 samba_cv_HAVE_FUNCTION_MACRO
=yes
8515 echo "configure: failed program was:" >&5
8516 cat conftest.
$ac_ext >&5
8518 samba_cv_HAVE_FUNCTION_MACRO
=no
8523 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8524 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8525 cat >> confdefs.h
<<\EOF
8526 #define HAVE_FUNCTION_MACRO 1
8531 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8532 echo "configure:8533: checking if gettimeofday takes tz argument" >&5
8533 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8534 echo $ac_n "(cached) $ac_c" 1>&6
8537 if test "$cross_compiling" = yes; then
8538 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8540 cat > conftest.
$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8544 #include <sys/time.h>
8546 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8548 if { (eval echo configure
:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8550 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8552 echo "configure: failed program was:" >&5
8553 cat conftest.
$ac_ext >&5
8555 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8562 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8563 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8564 cat >> confdefs.h
<<\EOF
8565 #define HAVE_GETTIMEOFDAY_TZ 1
8571 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8572 echo "configure:8573: checking for broken readdir" >&5
8573 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8577 if test "$cross_compiling" = yes; then
8578 samba_cv_HAVE_BROKEN_READDIR
=cross
8580 cat > conftest.
$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8583 #include <sys/types.h>
8585 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8586 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8587 di->d_name[0] == 0) exit(0); exit(1);}
8589 if { (eval echo configure
:8590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8591 samba_cv_HAVE_BROKEN_READDIR
=yes
8593 echo "configure: failed program was:" >&5
8594 cat conftest.
$ac_ext >&5
8596 samba_cv_HAVE_BROKEN_READDIR
=no
8603 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8604 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8605 cat >> confdefs.h
<<\EOF
8606 #define HAVE_BROKEN_READDIR 1
8611 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8612 echo "configure:8613: checking for utimbuf" >&5
8613 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8617 cat > conftest.
$ac_ext <<EOF
8618 #line 8619 "configure"
8619 #include "confdefs.h"
8620 #include <sys/types.h>
8623 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8626 if { (eval echo configure
:8627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8628 samba_cv_HAVE_UTIMBUF
=yes
8630 echo "configure: failed program was:" >&5
8631 cat conftest.
$ac_ext >&5
8633 samba_cv_HAVE_UTIMBUF
=no
8638 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8639 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8640 cat >> confdefs.h
<<\EOF
8641 #define HAVE_UTIMBUF 1
8647 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
8649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8650 echo "configure:8651: checking for $ac_func" >&5
8651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8654 cat > conftest.
$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8657 /* System header to define __stub macros and hopefully few prototypes,
8658 which can conflict with char $ac_func(); below. */
8660 /* Override any gcc2 internal prototype to avoid an error. */
8661 /* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8667 /* The GNU C library defines this for functions which it implements
8668 to always fail with ENOSYS. Some functions are actually named
8669 something starting with __ and the normal name is an alias. */
8670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678 if { (eval echo configure
:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8680 eval "ac_cv_func_$ac_func=yes"
8682 echo "configure: failed program was:" >&5
8683 cat conftest.
$ac_ext >&5
8685 eval "ac_cv_func_$ac_func=no"
8690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8691 echo "$ac_t""yes" 1>&6
8692 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8693 cat >> confdefs.h
<<EOF
8694 #define $ac_tr_func 1
8698 echo "$ac_t""no" 1>&6
8703 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8704 echo "configure:8705: checking for ut_name in utmp" >&5
8705 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
8709 cat > conftest.
$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8712 #include <sys/types.h>
8715 struct utmp ut; ut.ut_name[0] = 'a';
8718 if { (eval echo configure
:8719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8720 samba_cv_HAVE_UT_UT_NAME
=yes
8722 echo "configure: failed program was:" >&5
8723 cat conftest.
$ac_ext >&5
8725 samba_cv_HAVE_UT_UT_NAME
=no
8730 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8731 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
8732 cat >> confdefs.h
<<\EOF
8733 #define HAVE_UT_UT_NAME 1
8738 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8739 echo "configure:8740: checking for ut_user in utmp" >&5
8740 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8744 cat > conftest.
$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8747 #include <sys/types.h>
8750 struct utmp ut; ut.ut_user[0] = 'a';
8753 if { (eval echo configure
:8754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8755 samba_cv_HAVE_UT_UT_USER
=yes
8757 echo "configure: failed program was:" >&5
8758 cat conftest.
$ac_ext >&5
8760 samba_cv_HAVE_UT_UT_USER
=no
8765 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8766 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
8767 cat >> confdefs.h
<<\EOF
8768 #define HAVE_UT_UT_USER 1
8773 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
8774 echo "configure:8775: checking for ut_id in utmp" >&5
8775 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8779 cat > conftest.
$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 #include <sys/types.h>
8785 struct utmp ut; ut.ut_id[0] = 'a';
8788 if { (eval echo configure
:8789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8790 samba_cv_HAVE_UT_UT_ID
=yes
8792 echo "configure: failed program was:" >&5
8793 cat conftest.
$ac_ext >&5
8795 samba_cv_HAVE_UT_UT_ID
=no
8800 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
8801 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
8802 cat >> confdefs.h
<<\EOF
8803 #define HAVE_UT_UT_ID 1
8808 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
8809 echo "configure:8810: checking for ut_host in utmp" >&5
8810 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8814 cat > conftest.
$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 #include <sys/types.h>
8820 struct utmp ut; ut.ut_host[0] = 'a';
8823 if { (eval echo configure
:8824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8825 samba_cv_HAVE_UT_UT_HOST
=yes
8827 echo "configure: failed program was:" >&5
8828 cat conftest.
$ac_ext >&5
8830 samba_cv_HAVE_UT_UT_HOST
=no
8835 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
8836 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
8837 cat >> confdefs.h
<<\EOF
8838 #define HAVE_UT_UT_HOST 1
8843 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
8844 echo "configure:8845: checking for ut_time in utmp" >&5
8845 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8849 cat > conftest.
$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 #include <sys/types.h>
8855 struct utmp ut; time_t t; ut.ut_time = t;
8858 if { (eval echo configure
:8859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8860 samba_cv_HAVE_UT_UT_TIME
=yes
8862 echo "configure: failed program was:" >&5
8863 cat conftest.
$ac_ext >&5
8865 samba_cv_HAVE_UT_UT_TIME
=no
8870 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
8871 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
8872 cat >> confdefs.h
<<\EOF
8873 #define HAVE_UT_UT_TIME 1
8878 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
8879 echo "configure:8880: checking for ut_tv in utmp" >&5
8880 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8884 cat > conftest.
$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 #include <sys/types.h>
8890 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
8893 if { (eval echo configure
:8894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8895 samba_cv_HAVE_UT_UT_TV
=yes
8897 echo "configure: failed program was:" >&5
8898 cat conftest.
$ac_ext >&5
8900 samba_cv_HAVE_UT_UT_TV
=no
8905 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
8906 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
8907 cat >> confdefs.h
<<\EOF
8908 #define HAVE_UT_UT_TV 1
8913 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
8914 echo "configure:8915: checking for ut_type in utmp" >&5
8915 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8919 cat > conftest.
$ac_ext <<EOF
8920 #line 8921 "configure"
8921 #include "confdefs.h"
8922 #include <sys/types.h>
8925 struct utmp ut; ut.ut_type = 0;
8928 if { (eval echo configure
:8929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8930 samba_cv_HAVE_UT_UT_TYPE
=yes
8932 echo "configure: failed program was:" >&5
8933 cat conftest.
$ac_ext >&5
8935 samba_cv_HAVE_UT_UT_TYPE
=no
8940 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
8941 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
8942 cat >> confdefs.h
<<\EOF
8943 #define HAVE_UT_UT_TYPE 1
8948 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
8949 echo "configure:8950: checking for ut_pid in utmp" >&5
8950 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
8951 echo $ac_n "(cached) $ac_c" 1>&6
8954 cat > conftest.
$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 #include <sys/types.h>
8960 struct utmp ut; ut.ut_pid = 0;
8963 if { (eval echo configure
:8964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8965 samba_cv_HAVE_UT_UT_PID
=yes
8967 echo "configure: failed program was:" >&5
8968 cat conftest.
$ac_ext >&5
8970 samba_cv_HAVE_UT_UT_PID
=no
8975 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
8976 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
8977 cat >> confdefs.h
<<\EOF
8978 #define HAVE_UT_UT_PID 1
8983 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
8984 echo "configure:8985: checking for ut_exit in utmp" >&5
8985 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8989 cat > conftest.
$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 #include <sys/types.h>
8995 struct utmp ut; ut.ut_exit.e_exit = 0;
8998 if { (eval echo configure
:8999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9000 samba_cv_HAVE_UT_UT_EXIT
=yes
9002 echo "configure: failed program was:" >&5
9003 cat conftest.
$ac_ext >&5
9005 samba_cv_HAVE_UT_UT_EXIT
=no
9010 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9011 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9012 cat >> confdefs.h
<<\EOF
9013 #define HAVE_UT_UT_EXIT 1
9018 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9019 echo "configure:9020: checking for ut_addr in utmp" >&5
9020 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9024 cat > conftest.
$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9027 #include <sys/types.h>
9030 struct utmp ut; ut.ut_addr = 0;
9033 if { (eval echo configure
:9034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9035 samba_cv_HAVE_UT_UT_ADDR
=yes
9037 echo "configure: failed program was:" >&5
9038 cat conftest.
$ac_ext >&5
9040 samba_cv_HAVE_UT_UT_ADDR
=no
9045 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9046 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9047 cat >> confdefs.h
<<\EOF
9048 #define HAVE_UT_UT_ADDR 1
9053 if test x
$ac_cv_func_pututline = xyes
; then
9054 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9055 echo "configure:9056: checking whether pututline returns pointer" >&5
9056 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9060 cat > conftest.
$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063 #include <sys/types.h>
9066 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9069 if { (eval echo configure
:9070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9073 echo "configure: failed program was:" >&5
9074 cat conftest.
$ac_ext >&5
9076 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9081 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9082 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9083 cat >> confdefs.h
<<\EOF
9084 #define PUTUTLINE_RETURNS_UTMP 1
9090 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9091 echo "configure:9092: checking for ut_syslen in utmpx" >&5
9092 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9096 cat > conftest.
$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 #include <sys/types.h>
9102 struct utmpx ux; ux.ut_syslen = 0;
9105 if { (eval echo configure
:9106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9107 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9109 echo "configure: failed program was:" >&5
9110 cat conftest.
$ac_ext >&5
9112 samba_cv_HAVE_UX_UT_SYSLEN
=no
9117 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9118 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9119 cat >> confdefs.h
<<\EOF
9120 #define HAVE_UX_UT_SYSLEN 1
9125 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9126 echo "configure:9127: checking for Linux kernel oplocks" >&5
9127 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9131 if test "$cross_compiling" = yes; then
9132 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9134 cat > conftest.
$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9138 #include <sys/types.h>
9141 #define F_GETLEASE 1025
9144 int fd = open("/dev/null", O_RDONLY);
9145 return fcntl(fd, F_GETLEASE, 0) == -1;
9149 if { (eval echo configure
:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9151 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9153 echo "configure: failed program was:" >&5
9154 cat conftest.
$ac_ext >&5
9156 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9163 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9164 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9165 cat >> confdefs.h
<<\EOF
9166 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9171 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9172 echo "configure:9173: checking for kernel change notify support" >&5
9173 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9174 echo $ac_n "(cached) $ac_c" 1>&6
9177 if test "$cross_compiling" = yes; then
9178 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9180 cat > conftest.
$ac_ext <<EOF
9181 #line 9182 "configure"
9182 #include "confdefs.h"
9184 #include <sys/types.h>
9188 #define F_NOTIFY 1026
9191 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9195 if { (eval echo configure
:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9197 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9199 echo "configure: failed program was:" >&5
9200 cat conftest.
$ac_ext >&5
9202 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9209 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9210 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9211 cat >> confdefs.h
<<\EOF
9212 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9217 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9218 echo "configure:9219: checking for kernel share modes" >&5
9219 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9220 echo $ac_n "(cached) $ac_c" 1>&6
9223 if test "$cross_compiling" = yes; then
9224 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9226 cat > conftest.
$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9230 #include <sys/types.h>
9233 #include <sys/file.h>
9235 #define LOCK_MAND 32
9236 #define LOCK_READ 64
9239 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9243 if { (eval echo configure
:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9245 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9247 echo "configure: failed program was:" >&5
9248 cat conftest.
$ac_ext >&5
9250 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9257 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9258 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9259 cat >> confdefs.h
<<\EOF
9260 #define HAVE_KERNEL_SHARE_MODES 1
9268 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9269 echo "configure:9270: checking for IRIX kernel oplock type definitions" >&5
9270 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9274 cat > conftest.
$ac_ext <<EOF
9275 #line 9276 "configure"
9276 #include "confdefs.h"
9277 #include <sys/types.h>
9280 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9283 if { (eval echo configure
:9284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9285 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9287 echo "configure: failed program was:" >&5
9288 cat conftest.
$ac_ext >&5
9290 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9295 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9296 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9297 cat >> confdefs.h
<<\EOF
9298 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9303 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9304 echo "configure:9305: checking for irix specific capabilities" >&5
9305 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9306 echo $ac_n "(cached) $ac_c" 1>&6
9309 if test "$cross_compiling" = yes; then
9310 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9312 cat > conftest.
$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9315 #include <sys/types.h>
9316 #include <sys/capability.h>
9319 if ((cap = cap_get_proc()) == NULL)
9321 cap->cap_effective |= CAP_NETWORK_MGT;
9322 cap->cap_inheritable |= CAP_NETWORK_MGT;
9328 if { (eval echo configure
:9329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9330 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9332 echo "configure: failed program was:" >&5
9333 cat conftest.
$ac_ext >&5
9335 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9342 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9343 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9344 cat >> confdefs.h
<<\EOF
9345 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9351 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9352 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9355 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9356 echo "configure:9357: checking for int16 typedef included by rpc/rpc.h" >&5
9357 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9361 cat > conftest.
$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 #include <sys/types.h>
9365 #if defined(HAVE_RPC_RPC_H)
9366 #include <rpc/rpc.h>
9372 if { (eval echo configure
:9373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9374 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9376 echo "configure: failed program was:" >&5
9377 cat conftest.
$ac_ext >&5
9379 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9384 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9385 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9386 cat >> confdefs.h
<<\EOF
9387 #define HAVE_INT16_FROM_RPC_RPC_H 1
9392 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9393 echo "configure:9394: checking for uint16 typedef included by rpc/rpc.h" >&5
9394 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9398 cat > conftest.
$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 #include <sys/types.h>
9402 #if defined(HAVE_RPC_RPC_H)
9403 #include <rpc/rpc.h>
9409 if { (eval echo configure
:9410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9411 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9413 echo "configure: failed program was:" >&5
9414 cat conftest.
$ac_ext >&5
9416 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9421 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9422 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9423 cat >> confdefs.h
<<\EOF
9424 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9429 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9430 echo "configure:9431: checking for int32 typedef included by rpc/rpc.h" >&5
9431 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9435 cat > conftest.
$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9438 #include <sys/types.h>
9439 #if defined(HAVE_RPC_RPC_H)
9440 #include <rpc/rpc.h>
9446 if { (eval echo configure
:9447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9448 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9450 echo "configure: failed program was:" >&5
9451 cat conftest.
$ac_ext >&5
9453 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9458 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9459 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9460 cat >> confdefs.h
<<\EOF
9461 #define HAVE_INT32_FROM_RPC_RPC_H 1
9466 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9467 echo "configure:9468: checking for uint32 typedef included by rpc/rpc.h" >&5
9468 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9472 cat > conftest.
$ac_ext <<EOF
9473 #line 9474 "configure"
9474 #include "confdefs.h"
9475 #include <sys/types.h>
9476 #if defined(HAVE_RPC_RPC_H)
9477 #include <rpc/rpc.h>
9483 if { (eval echo configure
:9484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9485 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9487 echo "configure: failed program was:" >&5
9488 cat conftest.
$ac_ext >&5
9490 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9495 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9496 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9497 cat >> confdefs.h
<<\EOF
9498 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9504 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9505 echo "configure:9506: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9506 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9510 cat > conftest.
$ac_ext <<EOF
9511 #line 9512 "configure"
9512 #include "confdefs.h"
9513 #include <sys/types.h>
9514 #ifdef HAVE_SYS_SECURITY_H
9515 #include <sys/security.h>
9517 #endif /* HAVE_SYS_SECURITY_H */
9518 #if defined(HAVE_RPC_RPC_H)
9519 #include <rpc/rpc.h>
9525 if { (eval echo configure
:9526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9527 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9529 echo "configure: failed program was:" >&5
9530 cat conftest.
$ac_ext >&5
9532 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9537 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9538 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9539 cat >> confdefs.h
<<\EOF
9540 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9545 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9546 echo "configure:9547: checking for test routines" >&5
9547 if test "$cross_compiling" = yes; then
9548 echo "configure: warning: cannot run when cross-compiling" 1>&2
9550 cat > conftest.
$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 #include "${srcdir-.}/tests/trivial.c"
9555 if { (eval echo configure
:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9557 echo "$ac_t""yes" 1>&6
9559 echo "configure: failed program was:" >&5
9560 cat conftest.
$ac_ext >&5
9562 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9568 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9569 echo "configure:9570: checking for ftruncate extend" >&5
9570 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9571 echo $ac_n "(cached) $ac_c" 1>&6
9574 if test "$cross_compiling" = yes; then
9575 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9577 cat > conftest.
$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9580 #include "${srcdir-.}/tests/ftruncate.c"
9582 if { (eval echo configure
:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9584 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9586 echo "configure: failed program was:" >&5
9587 cat conftest.
$ac_ext >&5
9589 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
9596 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9597 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
9598 cat >> confdefs.h
<<\EOF
9599 #define HAVE_FTRUNCATE_EXTEND 1
9604 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9605 echo "configure:9606: checking for broken getgroups" >&5
9606 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9607 echo $ac_n "(cached) $ac_c" 1>&6
9610 if test "$cross_compiling" = yes; then
9611 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9613 cat > conftest.
$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include "${srcdir-.}/tests/getgroups.c"
9618 if { (eval echo configure
:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9620 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9622 echo "configure: failed program was:" >&5
9623 cat conftest.
$ac_ext >&5
9625 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9632 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9633 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9634 cat >> confdefs.h
<<\EOF
9635 #define HAVE_BROKEN_GETGROUPS 1
9640 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9641 echo "configure:9642: checking whether getpass should be replaced" >&5
9642 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9646 SAVE_CPPFLAGS
="$CPPFLAGS"
9647 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9648 cat > conftest.
$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9652 #define REPLACE_GETPASS 1
9653 #define NO_CONFIG_H 1
9654 #define main dont_declare_main
9655 #include "${srcdir-.}/lib/getsmbpass.c"
9662 if { (eval echo configure
:9663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9664 samba_cv_REPLACE_GETPASS
=yes
9666 echo "configure: failed program was:" >&5
9667 cat conftest.
$ac_ext >&5
9669 samba_cv_REPLACE_GETPASS
=no
9672 CPPFLAGS
="$SAVE_CPPFLAGS"
9676 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9677 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9678 cat >> confdefs.h
<<\EOF
9679 #define REPLACE_GETPASS 1
9684 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9685 echo "configure:9686: checking for broken inet_ntoa" >&5
9686 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9690 if test "$cross_compiling" = yes; then
9691 samba_cv_REPLACE_INET_NTOA
=cross
9693 cat > conftest.
$ac_ext <<EOF
9694 #line 9695 "configure"
9695 #include "confdefs.h"
9698 #include <sys/types.h>
9699 #include <netinet/in.h>
9700 #ifdef HAVE_ARPA_INET_H
9701 #include <arpa/inet.h>
9703 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9704 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9705 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9708 if { (eval echo configure
:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9710 samba_cv_REPLACE_INET_NTOA
=yes
9712 echo "configure: failed program was:" >&5
9713 cat conftest.
$ac_ext >&5
9715 samba_cv_REPLACE_INET_NTOA
=no
9722 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9723 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9724 cat >> confdefs.h
<<\EOF
9725 #define REPLACE_INET_NTOA 1
9730 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9731 echo "configure:9732: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9732 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9736 if test "$cross_compiling" = yes; then
9737 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9739 cat > conftest.
$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9743 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9745 if { (eval echo configure
:9746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9747 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9749 echo "configure: failed program was:" >&5
9750 cat conftest.
$ac_ext >&5
9752 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9759 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9760 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9761 cat >> confdefs.h
<<\EOF
9762 #define SYSCONF_SC_NGROUPS_MAX 1
9767 echo $ac_n "checking for root""... $ac_c" 1>&6
9768 echo "configure:9769: checking for root" >&5
9769 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9773 if test "$cross_compiling" = yes; then
9774 samba_cv_HAVE_ROOT
=cross
9776 cat > conftest.
$ac_ext <<EOF
9777 #line 9778 "configure"
9778 #include "confdefs.h"
9779 main() { exit(getuid() != 0); }
9781 if { (eval echo configure
:9782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9783 samba_cv_HAVE_ROOT
=yes
9785 echo "configure: failed program was:" >&5
9786 cat conftest.
$ac_ext >&5
9788 samba_cv_HAVE_ROOT
=no
9795 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9796 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
9797 cat >> confdefs.h
<<\EOF
9802 echo "configure: warning: running as non-root will disable some tests" 1>&2
9806 # look for a method of finding the list of network interfaces
9808 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9809 echo "configure:9810: checking for iface AIX" >&5
9810 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9814 if test "$cross_compiling" = yes; then
9815 samba_cv_HAVE_IFACE_AIX
=cross
9817 cat > conftest.
$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9821 #define HAVE_IFACE_AIX 1
9822 #define AUTOCONF_TEST 1
9823 #include "confdefs.h"
9824 #include "${srcdir-.}/lib/interfaces.c"
9826 if { (eval echo configure
:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9828 samba_cv_HAVE_IFACE_AIX
=yes
9830 echo "configure: failed program was:" >&5
9831 cat conftest.
$ac_ext >&5
9833 samba_cv_HAVE_IFACE_AIX
=no
9840 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9841 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
9842 iface
=yes;cat >> confdefs.h
<<\EOF
9843 #define HAVE_IFACE_AIX 1
9848 if test $iface = no
; then
9849 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9850 echo "configure:9851: checking for iface ifconf" >&5
9851 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9855 if test "$cross_compiling" = yes; then
9856 samba_cv_HAVE_IFACE_IFCONF
=cross
9858 cat > conftest.
$ac_ext <<EOF
9859 #line 9860 "configure"
9860 #include "confdefs.h"
9862 #define HAVE_IFACE_IFCONF 1
9863 #define AUTOCONF_TEST 1
9864 #include "confdefs.h"
9865 #include "${srcdir-.}/lib/interfaces.c"
9867 if { (eval echo configure
:9868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9869 samba_cv_HAVE_IFACE_IFCONF
=yes
9871 echo "configure: failed program was:" >&5
9872 cat conftest.
$ac_ext >&5
9874 samba_cv_HAVE_IFACE_IFCONF
=no
9881 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9882 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
9883 iface
=yes;cat >> confdefs.h
<<\EOF
9884 #define HAVE_IFACE_IFCONF 1
9890 if test $iface = no
; then
9891 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9892 echo "configure:9893: checking for iface ifreq" >&5
9893 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9897 if test "$cross_compiling" = yes; then
9898 samba_cv_HAVE_IFACE_IFREQ
=cross
9900 cat > conftest.
$ac_ext <<EOF
9901 #line 9902 "configure"
9902 #include "confdefs.h"
9904 #define HAVE_IFACE_IFREQ 1
9905 #define AUTOCONF_TEST 1
9906 #include "confdefs.h"
9907 #include "${srcdir-.}/lib/interfaces.c"
9909 if { (eval echo configure
:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9911 samba_cv_HAVE_IFACE_IFREQ
=yes
9913 echo "configure: failed program was:" >&5
9914 cat conftest.
$ac_ext >&5
9916 samba_cv_HAVE_IFACE_IFREQ
=no
9923 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9924 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
9925 iface
=yes;cat >> confdefs.h
<<\EOF
9926 #define HAVE_IFACE_IFREQ 1
9933 ################################################
9934 # look for a method of setting the effective uid
9936 if test $seteuid = no
; then
9937 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9938 echo "configure:9939: checking for setresuid" >&5
9939 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9943 if test "$cross_compiling" = yes; then
9944 samba_cv_USE_SETRESUID
=cross
9946 cat > conftest.
$ac_ext <<EOF
9947 #line 9948 "configure"
9948 #include "confdefs.h"
9950 #define AUTOCONF_TEST 1
9951 #define USE_SETRESUID 1
9952 #include "confdefs.h"
9953 #include "${srcdir-.}/lib/util_sec.c"
9955 if { (eval echo configure
:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9957 samba_cv_USE_SETRESUID
=yes
9959 echo "configure: failed program was:" >&5
9960 cat conftest.
$ac_ext >&5
9962 samba_cv_USE_SETRESUID
=no
9969 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9970 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
9971 seteuid
=yes;cat >> confdefs.h
<<\EOF
9972 #define USE_SETRESUID 1
9979 if test $seteuid = no
; then
9980 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9981 echo "configure:9982: checking for setreuid" >&5
9982 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9986 if test "$cross_compiling" = yes; then
9987 samba_cv_USE_SETREUID
=cross
9989 cat > conftest.
$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9993 #define AUTOCONF_TEST 1
9994 #define USE_SETREUID 1
9995 #include "confdefs.h"
9996 #include "${srcdir-.}/lib/util_sec.c"
9998 if { (eval echo configure
:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10000 samba_cv_USE_SETREUID
=yes
10002 echo "configure: failed program was:" >&5
10003 cat conftest.
$ac_ext >&5
10005 samba_cv_USE_SETREUID
=no
10012 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10013 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10014 seteuid
=yes;cat >> confdefs.h
<<\EOF
10015 #define USE_SETREUID 1
10021 if test $seteuid = no
; then
10022 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10023 echo "configure:10024: checking for seteuid" >&5
10024 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10028 if test "$cross_compiling" = yes; then
10029 samba_cv_USE_SETEUID
=cross
10031 cat > conftest.
$ac_ext <<EOF
10032 #line 10033 "configure"
10033 #include "confdefs.h"
10035 #define AUTOCONF_TEST 1
10036 #define USE_SETEUID 1
10037 #include "confdefs.h"
10038 #include "${srcdir-.}/lib/util_sec.c"
10040 if { (eval echo configure
:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10042 samba_cv_USE_SETEUID
=yes
10044 echo "configure: failed program was:" >&5
10045 cat conftest.
$ac_ext >&5
10047 samba_cv_USE_SETEUID
=no
10054 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10055 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10056 seteuid
=yes;cat >> confdefs.h
<<\EOF
10057 #define USE_SETEUID 1
10063 if test $seteuid = no
; then
10064 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10065 echo "configure:10066: checking for setuidx" >&5
10066 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10070 if test "$cross_compiling" = yes; then
10071 samba_cv_USE_SETUIDX
=cross
10073 cat > conftest.
$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10077 #define AUTOCONF_TEST 1
10078 #define USE_SETUIDX 1
10079 #include "confdefs.h"
10080 #include "${srcdir-.}/lib/util_sec.c"
10082 if { (eval echo configure
:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10084 samba_cv_USE_SETUIDX
=yes
10086 echo "configure: failed program was:" >&5
10087 cat conftest.
$ac_ext >&5
10089 samba_cv_USE_SETUIDX
=no
10096 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10097 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10098 seteuid
=yes;cat >> confdefs.h
<<\EOF
10099 #define USE_SETUIDX 1
10106 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10107 echo "configure:10108: checking for working mmap" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10112 if test "$cross_compiling" = yes; then
10113 samba_cv_HAVE_MMAP
=cross
10115 cat > conftest.
$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 #include "${srcdir-.}/tests/shared_mmap.c"
10120 if { (eval echo configure
:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10122 samba_cv_HAVE_MMAP
=yes
10124 echo "configure: failed program was:" >&5
10125 cat conftest.
$ac_ext >&5
10127 samba_cv_HAVE_MMAP
=no
10134 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10135 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10136 cat >> confdefs.h
<<\EOF
10137 #define HAVE_MMAP 1
10142 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10143 echo "configure:10144: checking for ftruncate needs root" >&5
10144 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10148 if test "$cross_compiling" = yes; then
10149 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10151 cat > conftest.
$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 #include "${srcdir-.}/tests/ftruncroot.c"
10156 if { (eval echo configure
:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10158 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10160 echo "configure: failed program was:" >&5
10161 cat conftest.
$ac_ext >&5
10163 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10170 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10171 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10172 cat >> confdefs.h
<<\EOF
10173 #define FTRUNCATE_NEEDS_ROOT 1
10178 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10179 echo "configure:10180: checking for fcntl locking" >&5
10180 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10184 if test "$cross_compiling" = yes; then
10185 samba_cv_HAVE_FCNTL_LOCK
=cross
10187 cat > conftest.
$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 #include "${srcdir-.}/tests/fcntl_lock.c"
10192 if { (eval echo configure
:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10194 samba_cv_HAVE_FCNTL_LOCK
=yes
10196 echo "configure: failed program was:" >&5
10197 cat conftest.
$ac_ext >&5
10199 samba_cv_HAVE_FCNTL_LOCK
=no
10206 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10207 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10208 cat >> confdefs.h
<<\EOF
10209 #define HAVE_FCNTL_LOCK 1
10214 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10215 echo "configure:10216: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10216 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10217 echo $ac_n "(cached) $ac_c" 1>&6
10220 if test "$cross_compiling" = yes; then
10221 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10223 cat > conftest.
$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 #include "${srcdir-.}/tests/fcntl_lock64.c"
10228 if { (eval echo configure
:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10230 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10232 echo "configure: failed program was:" >&5
10233 cat conftest.
$ac_ext >&5
10235 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10242 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10243 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10244 cat >> confdefs.h
<<\EOF
10245 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10252 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10253 echo "configure:10254: checking for 64 bit fcntl locking" >&5
10254 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10258 if test "$cross_compiling" = yes; then
10259 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10261 cat > conftest.
$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10265 #if defined(HAVE_UNISTD_H)
10266 #include <unistd.h>
10269 #include <stdlib.h>
10271 #ifdef HAVE_FCNTL_H
10275 #ifdef HAVE_SYS_FCNTL_H
10276 #include <sys/fcntl.h>
10278 main() { struct flock64 fl64;
10279 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10286 if { (eval echo configure
:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10288 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10290 echo "configure: failed program was:" >&5
10291 cat conftest.
$ac_ext >&5
10293 samba_cv_HAVE_STRUCT_FLOCK64
=no
10300 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10302 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10303 cat >> confdefs.h
<<\EOF
10304 #define HAVE_STRUCT_FLOCK64 1
10310 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10311 echo "configure:10312: checking for a crypt that needs truncated salt" >&5
10312 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10316 if test "$cross_compiling" = yes; then
10317 samba_cv_HAVE_TRUNCATED_SALT
=cross
10319 cat > conftest.
$ac_ext <<EOF
10320 #line 10321 "configure"
10321 #include "confdefs.h"
10322 #include "${srcdir-.}/tests/crypttest.c"
10324 if { (eval echo configure
:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10326 samba_cv_HAVE_TRUNCATED_SALT
=no
10328 echo "configure: failed program was:" >&5
10329 cat conftest.
$ac_ext >&5
10331 samba_cv_HAVE_TRUNCATED_SALT
=yes
10338 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10339 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10340 cat >> confdefs.h
<<\EOF
10341 #define HAVE_TRUNCATED_SALT 1
10346 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10347 echo "configure:10348: checking for broken nisplus include files" >&5
10348 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10352 cat > conftest.
$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 #include <sys/acl.h>
10356 #if defined(HAVE_RPCSVC_NIS_H)
10357 #include <rpcsvc/nis.h>
10363 if { (eval echo configure
:10364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10365 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10367 echo "configure: failed program was:" >&5
10368 cat conftest.
$ac_ext >&5
10370 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10375 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10376 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10377 cat >> confdefs.h
<<\EOF
10378 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10384 #################################################
10385 # check for smbwrapper support
10386 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10387 echo "configure:10388: checking whether to use smbwrapper" >&5
10388 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10389 if test "${with_smbwrapper+set}" = set; then
10390 withval
="$with_smbwrapper"
10393 echo "$ac_t""yes" 1>&6
10394 cat >> confdefs.h
<<\EOF
10395 #define WITH_SMBWRAPPER 1
10398 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10400 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10403 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10406 # Conditions under which smbwrapper should not be built.
10408 if test x
$PICFLAG = x
; then
10409 echo No support
for PIC code
- disabling smbwrapper and smbsh
10412 elif test x
$ac_cv_func_syscall = xno
; then
10413 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10419 echo "$ac_t""no" 1>&6
10423 echo "$ac_t""no" 1>&6
10428 #################################################
10429 # check for the AFS filesystem
10430 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10431 echo "configure:10432: checking whether to use AFS" >&5
10432 # Check whether --with-afs or --without-afs was given.
10433 if test "${with_afs+set}" = set; then
10434 withval
="$with_afs"
10437 echo "$ac_t""yes" 1>&6
10438 cat >> confdefs.h
<<\EOF
10444 echo "$ac_t""no" 1>&6
10448 echo "$ac_t""no" 1>&6
10454 #################################################
10455 # check for the DFS auth system
10456 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10457 echo "configure:10458: checking whether to use DFS auth" >&5
10458 # Check whether --with-dfs or --without-dfs was given.
10459 if test "${with_dfs+set}" = set; then
10460 withval
="$with_dfs"
10463 echo "$ac_t""yes" 1>&6
10464 cat >> confdefs.h
<<\EOF
10470 echo "$ac_t""no" 1>&6
10474 echo "$ac_t""no" 1>&6
10479 #################################################
10480 # check for Kerberos IV auth system
10481 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10482 echo "configure:10483: checking whether to use Kerberos IV" >&5
10483 # Check whether --with-krb4 or --without-krb4 was given.
10484 if test "${with_krb4+set}" = set; then
10485 withval
="$with_krb4"
10486 echo "$ac_t""yes" 1>&6
10487 cat >> confdefs.h
<<\EOF
10488 #define KRB4_AUTH 1
10491 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10492 echo "configure:10493: checking for dn_expand in -lresolv" >&5
10493 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10497 ac_save_LIBS
="$LIBS"
10498 LIBS
="-lresolv $LIBS"
10499 cat > conftest.
$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 /* We use char because int might match the return type of a gcc2
10504 builtin and then its argument prototype would still apply. */
10511 if { (eval echo configure
:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10513 eval "ac_cv_lib_$ac_lib_var=yes"
10515 echo "configure: failed program was:" >&5
10516 cat conftest.
$ac_ext >&5
10518 eval "ac_cv_lib_$ac_lib_var=no"
10521 LIBS
="$ac_save_LIBS"
10524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10525 echo "$ac_t""yes" 1>&6
10526 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10528 cat >> confdefs.h
<<EOF
10529 #define $ac_tr_lib 1
10532 LIBS
="-lresolv $LIBS"
10535 echo "$ac_t""no" 1>&6
10538 LIBS
="$LIBS -lkrb -ldes"
10539 CFLAGS
="$CFLAGS -I$withval/include"
10540 LDFLAGS
="$LDFLAGS -L$withval/lib"
10542 echo "$ac_t""no" 1>&6
10547 #################################################
10548 # check for Kerberos 5 auth system
10549 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10550 echo "configure:10551: checking whether to use Kerberos 5" >&5
10551 # Check whether --with-krb5 or --without-krb5 was given.
10552 if test "${with_krb5+set}" = set; then
10553 withval
="$with_krb5"
10554 echo "$ac_t""yes" 1>&6
10555 cat >> confdefs.h
<<\EOF
10556 #define KRB5_AUTH 1
10559 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10560 CFLAGS
="$CFLAGS -I$withval/include"
10561 LDFLAGS
="$LDFLAGS -L$withval/lib"
10563 echo "$ac_t""no" 1>&6
10568 #################################################
10569 # check for automount support
10570 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10571 echo "configure:10572: checking whether to use AUTOMOUNT" >&5
10572 # Check whether --with-automount or --without-automount was given.
10573 if test "${with_automount+set}" = set; then
10574 withval
="$with_automount"
10577 echo "$ac_t""yes" 1>&6
10578 cat >> confdefs.h
<<\EOF
10579 #define WITH_AUTOMOUNT 1
10584 echo "$ac_t""no" 1>&6
10588 echo "$ac_t""no" 1>&6
10593 #################################################
10594 # check for smbmount support
10595 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10596 echo "configure:10597: checking whether to use SMBMOUNT" >&5
10597 # Check whether --with-smbmount or --without-smbmount was given.
10598 if test "${with_smbmount+set}" = set; then
10599 withval
="$with_smbmount"
10602 echo "$ac_t""yes" 1>&6
10603 cat >> confdefs.h
<<\EOF
10604 #define WITH_SMBMOUNT 1
10607 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10610 echo "$ac_t""no" 1>&6
10615 echo "$ac_t""no" 1>&6
10622 #################################################
10623 # check for a PAM password database
10624 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10625 echo "configure:10626: checking whether to use PAM password database" >&5
10626 # Check whether --with-pam or --without-pam was given.
10627 if test "${with_pam+set}" = set; then
10628 withval
="$with_pam"
10631 echo "$ac_t""yes" 1>&6
10632 cat >> confdefs.h
<<\EOF
10639 echo "$ac_t""no" 1>&6
10643 echo "$ac_t""no" 1>&6
10648 #################################################
10649 # check for a TDB password database
10650 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10651 echo "configure:10652: checking whether to use TDB password database" >&5
10652 # Check whether --with-tdbpwd or --without-tdbpwd was given.
10653 if test "${with_tdbpwd+set}" = set; then
10654 withval
="$with_tdbpwd"
10657 echo "$ac_t""yes" 1>&6
10658 cat >> confdefs.h
<<\EOF
10659 #define WITH_TDBPWD 1
10662 # AC_MSG_ERROR([TDB password database not supported in this version.])
10665 echo "$ac_t""no" 1>&6
10669 echo "$ac_t""no" 1>&6
10674 #################################################
10675 # check for a LDAP password database
10676 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10677 echo "configure:10678: checking whether to use LDAP password database" >&5
10678 # Check whether --with-ldap or --without-ldap was given.
10679 if test "${with_ldap+set}" = set; then
10680 withval
="$with_ldap"
10683 echo "$ac_t""yes" 1>&6
10684 cat >> confdefs.h
<<\EOF
10685 #define WITH_LDAP 1
10688 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10691 echo "$ac_t""no" 1>&6
10695 echo "$ac_t""no" 1>&6
10700 #################################################
10701 # check for a NISPLUS password database
10702 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10703 echo "configure:10704: checking whether to use NISPLUS password database" >&5
10704 # Check whether --with-nisplus or --without-nisplus was given.
10705 if test "${with_nisplus+set}" = set; then
10706 withval
="$with_nisplus"
10709 echo "$ac_t""yes" 1>&6
10710 cat >> confdefs.h
<<\EOF
10711 #define WITH_NISPLUS 1
10716 echo "$ac_t""no" 1>&6
10720 echo "$ac_t""no" 1>&6
10725 #################################################
10726 # check for a NISPLUS_HOME support
10727 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10728 echo "configure:10729: checking whether to use NISPLUS_HOME" >&5
10729 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10730 if test "${with_nisplus_home+set}" = set; then
10731 withval
="$with_nisplus_home"
10734 echo "$ac_t""yes" 1>&6
10735 cat >> confdefs.h
<<\EOF
10736 #define WITH_NISPLUS_HOME 1
10741 echo "$ac_t""no" 1>&6
10745 echo "$ac_t""no" 1>&6
10750 #################################################
10751 # check for the secure socket layer
10752 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10753 echo "configure:10754: checking whether to use SSL" >&5
10754 # Check whether --with-ssl or --without-ssl was given.
10755 if test "${with_ssl+set}" = set; then
10756 withval
="$with_ssl"
10759 echo "$ac_t""yes" 1>&6
10760 cat >> confdefs.h
<<\EOF
10764 withval
="/usr/local/ssl" # default
10766 if test "${with_sslinc+set}" = set; then
10768 withval
="$with_sslinc"
10771 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10772 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10773 LIBS
="-lssl -lcrypto $LIBS"
10774 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
10777 CFLAGS
="-I${withval}/include $CFLAGS"
10778 LIBS
="-lssl -lcrypto $LIBS"
10779 LDFLAGS
="-L${withval}/lib $LDFLAGS"
10785 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10786 LIBS
="-lssl -lcrypto $LIBS"
10787 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
10791 if test ! -d ${withval}; then
10792 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10796 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10800 echo "$ac_t""no" 1>&6
10804 echo "$ac_t""no" 1>&6
10809 #################################################
10810 # check for syslog logging
10811 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10812 echo "configure:10813: checking whether to use syslog logging" >&5
10813 # Check whether --with-syslog or --without-syslog was given.
10814 if test "${with_syslog+set}" = set; then
10815 withval
="$with_syslog"
10818 echo "$ac_t""yes" 1>&6
10819 cat >> confdefs.h
<<\EOF
10820 #define WITH_SYSLOG 1
10825 echo "$ac_t""no" 1>&6
10829 echo "$ac_t""no" 1>&6
10834 #################################################
10835 # check for a shared memory profiling support
10836 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10837 echo "configure:10838: checking whether to use profiling" >&5
10838 # Check whether --with-profile or --without-profile was given.
10839 if test "${with_profile+set}" = set; then
10840 withval
="$with_profile"
10843 echo "$ac_t""yes" 1>&6
10844 cat >> confdefs.h
<<\EOF
10845 #define WITH_PROFILE 1
10850 echo "$ac_t""no" 1>&6
10854 echo "$ac_t""no" 1>&6
10860 #################################################
10861 # check for experimental netatalk resource fork support
10862 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10863 echo "configure:10864: checking whether to support netatalk" >&5
10864 # Check whether --with-netatalk or --without-netatalk was given.
10865 if test "${with_netatalk+set}" = set; then
10866 withval
="$with_netatalk"
10869 echo "$ac_t""yes" 1>&6
10870 cat >> confdefs.h
<<\EOF
10871 #define WITH_NETATALK 1
10876 echo "$ac_t""no" 1>&6
10880 echo "$ac_t""no" 1>&6
10885 #################################################
10886 # check for experimental disk-quotas support
10887 QUOTAOBJS
=smbd
/noquotas.o
10889 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10890 echo "configure:10891: checking whether to support disk-quotas" >&5
10891 # Check whether --with-quotas or --without-quotas was given.
10892 if test "${with_quotas+set}" = set; then
10893 withval
="$with_quotas"
10896 echo "$ac_t""yes" 1>&6
10897 QUOTAOBJS
=smbd
/quotas.o
10900 echo "$ac_t""no" 1>&6
10904 echo "$ac_t""no" 1>&6
10910 #################################################
10911 # check for experimental utmp accounting
10913 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10914 echo "configure:10915: checking whether to support utmp accounting" >&5
10915 # Check whether --with-utmp or --without-utmp was given.
10916 if test "${with_utmp+set}" = set; then
10917 withval
="$with_utmp"
10920 echo "$ac_t""yes" 1>&6
10921 cat >> confdefs.h
<<\EOF
10922 #define WITH_UTMP 1
10927 echo "$ac_t""no" 1>&6
10931 echo "$ac_t""no" 1>&6
10936 #################################################
10937 # check for MS Dfs support
10939 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
10940 echo "configure:10941: checking whether to support Microsoft Dfs" >&5
10941 # Check whether --with-msdfs or --without-msdfs was given.
10942 if test "${with_msdfs+set}" = set; then
10943 withval
="$with_msdfs"
10946 echo "$ac_t""yes" 1>&6
10947 cat >> confdefs.h
<<\EOF
10948 #define WITH_MSDFS 1
10953 echo "$ac_t""no" 1>&6
10957 echo "$ac_t""no" 1>&6
10962 #################################################
10963 # check for Samba VFS support
10965 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
10966 echo "configure:10967: checking whether to support the experimantal Samba vfs" >&5
10967 # Check whether --with-vfs or --without-vfs was given.
10968 if test "${with_vfs+set}" = set; then
10969 withval
="$with_vfs"
10972 echo "$ac_t""yes" 1>&6
10973 cat >> confdefs.h
<<\EOF
10979 echo "$ac_t""no" 1>&6
10983 echo "$ac_t""no" 1>&6
10988 #################################################
10989 #################################################
10990 # set private directory location
10991 # Check whether --with-privatedir or --without-privatedir was given.
10992 if test "${with_privatedir+set}" = set; then
10993 withval
="$with_privatedir"
10997 # Just in case anybody calls it without argument
10999 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11000 privatedir
='${prefix}/private'
11003 privatedir
="$withval"
11008 privatedir
='${prefix}/private'
11014 #################################################
11015 # set lock directory location
11016 # Check whether --with-lockdir or --without-lockdir was given.
11017 if test "${with_lockdir+set}" = set; then
11018 withval
="$with_lockdir"
11022 # Just in case anybody calls it without argument
11024 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11025 lockdir
='$(VARDIR)/locks'
11033 lockdir
='$(VARDIR)/locks'
11039 #################################################
11040 # set SWAT directory location
11041 # Check whether --with-swatdir or --without-swatdir was given.
11042 if test "${with_swatdir+set}" = set; then
11043 withval
="$with_swatdir"
11047 # Just in case anybody does it
11049 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11050 swatdir
='${prefix}/swat'
11058 swatdir
='${prefix}/swat'
11064 #################################################
11065 # these tests are taken from the GNU fileutils package
11066 echo "checking how to get filesystem space usage" 1>&6
11067 echo "configure:11068: checking how to get filesystem space usage" >&5
11070 # Test for statvfs64.
11071 if test $space = no
; then
11073 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11074 echo "configure:11075: checking statvfs64 function (SVR4)" >&5
11075 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11078 if test "$cross_compiling" = yes; then
11079 fu_cv_sys_stat_statvfs64
=cross
11081 cat > conftest.
$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11085 #if defined(HAVE_UNISTD_H)
11086 #include <unistd.h>
11088 #include <sys/types.h>
11089 #include <sys/statvfs.h>
11092 struct statvfs64 fsd;
11093 exit (statvfs64 (".", &fsd));
11096 if { (eval echo configure
:11097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11098 fu_cv_sys_stat_statvfs64
=yes
11100 echo "configure: failed program was:" >&5
11101 cat conftest.
$ac_ext >&5
11103 fu_cv_sys_stat_statvfs64
=no
11110 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11111 if test $fu_cv_sys_stat_statvfs64 = yes; then
11113 cat >> confdefs.h
<<\EOF
11114 #define STAT_STATVFS64 1
11120 # Perform only the link test since it seems there are no variants of the
11121 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11122 # because that got a false positive on SCO OSR5. Adding the declaration
11123 # of a `struct statvfs' causes this test to fail (as it should) on such
11124 # systems. That system is reported to work fine with STAT_STATFS4 which
11125 # is what it gets when this test fails.
11126 if test $space = no
; then
11128 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11129 echo "configure:11130: checking statvfs function (SVR4)" >&5
11130 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11133 cat > conftest.
$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 #include <sys/types.h>
11137 #include <sys/statvfs.h>
11139 struct statvfs fsd; statvfs (0, &fsd);
11142 if { (eval echo configure
:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11144 fu_cv_sys_stat_statvfs
=yes
11146 echo "configure: failed program was:" >&5
11147 cat conftest.
$ac_ext >&5
11149 fu_cv_sys_stat_statvfs
=no
11154 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11155 if test $fu_cv_sys_stat_statvfs = yes; then
11157 cat >> confdefs.h
<<\EOF
11158 #define STAT_STATVFS 1
11164 if test $space = no
; then
11165 # DEC Alpha running OSF/1
11166 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11167 echo "configure:11168: checking for 3-argument statfs function (DEC OSF/1)" >&5
11168 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11169 echo $ac_n "(cached) $ac_c" 1>&6
11171 if test "$cross_compiling" = yes; then
11172 fu_cv_sys_stat_statfs3_osf1
=no
11174 cat > conftest.
$ac_ext <<EOF
11175 #line 11176 "configure"
11176 #include "confdefs.h"
11178 #include <sys/param.h>
11179 #include <sys/types.h>
11180 #include <sys/mount.h>
11185 exit (statfs (".", &fsd, sizeof (struct statfs)));
11188 if { (eval echo configure
:11189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11190 fu_cv_sys_stat_statfs3_osf1
=yes
11192 echo "configure: failed program was:" >&5
11193 cat conftest.
$ac_ext >&5
11195 fu_cv_sys_stat_statfs3_osf1
=no
11202 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11203 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11205 cat >> confdefs.h
<<\EOF
11206 #define STAT_STATFS3_OSF1 1
11212 if test $space = no
; then
11214 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11215 echo "configure:11216: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11216 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11219 if test "$cross_compiling" = yes; then
11220 fu_cv_sys_stat_statfs2_bsize
=no
11222 cat > conftest.
$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11226 #ifdef HAVE_SYS_PARAM_H
11227 #include <sys/param.h>
11229 #ifdef HAVE_SYS_MOUNT_H
11230 #include <sys/mount.h>
11232 #ifdef HAVE_SYS_VFS_H
11233 #include <sys/vfs.h>
11239 exit (statfs (".", &fsd));
11242 if { (eval echo configure
:11243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11244 fu_cv_sys_stat_statfs2_bsize
=yes
11246 echo "configure: failed program was:" >&5
11247 cat conftest.
$ac_ext >&5
11249 fu_cv_sys_stat_statfs2_bsize
=no
11256 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11257 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11259 cat >> confdefs.h
<<\EOF
11260 #define STAT_STATFS2_BSIZE 1
11266 if test $space = no
; then
11268 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11269 echo "configure:11270: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11270 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11271 echo $ac_n "(cached) $ac_c" 1>&6
11273 if test "$cross_compiling" = yes; then
11274 fu_cv_sys_stat_statfs4
=no
11276 cat > conftest.
$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11279 #include <sys/types.h>
11280 #include <sys/statfs.h>
11284 exit (statfs (".", &fsd, sizeof fsd, 0));
11287 if { (eval echo configure
:11288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11289 fu_cv_sys_stat_statfs4
=yes
11291 echo "configure: failed program was:" >&5
11292 cat conftest.
$ac_ext >&5
11294 fu_cv_sys_stat_statfs4
=no
11301 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11302 if test $fu_cv_sys_stat_statfs4 = yes; then
11304 cat >> confdefs.h
<<\EOF
11305 #define STAT_STATFS4 1
11311 if test $space = no
; then
11312 # 4.4BSD and NetBSD
11313 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11314 echo "configure:11315: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11315 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11316 echo $ac_n "(cached) $ac_c" 1>&6
11318 if test "$cross_compiling" = yes; then
11319 fu_cv_sys_stat_statfs2_fsize
=no
11321 cat > conftest.
$ac_ext <<EOF
11322 #line 11323 "configure"
11323 #include "confdefs.h"
11324 #include <sys/types.h>
11325 #ifdef HAVE_SYS_PARAM_H
11326 #include <sys/param.h>
11328 #ifdef HAVE_SYS_MOUNT_H
11329 #include <sys/mount.h>
11335 exit (statfs (".", &fsd));
11338 if { (eval echo configure
:11339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11340 fu_cv_sys_stat_statfs2_fsize
=yes
11342 echo "configure: failed program was:" >&5
11343 cat conftest.
$ac_ext >&5
11345 fu_cv_sys_stat_statfs2_fsize
=no
11352 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11353 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11355 cat >> confdefs.h
<<\EOF
11356 #define STAT_STATFS2_FSIZE 1
11362 if test $space = no
; then
11364 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11365 echo "configure:11366: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11366 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11367 echo $ac_n "(cached) $ac_c" 1>&6
11369 if test "$cross_compiling" = yes; then
11370 fu_cv_sys_stat_fs_data
=no
11372 cat > conftest.
$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11375 #include <sys/types.h>
11376 #ifdef HAVE_SYS_PARAM_H
11377 #include <sys/param.h>
11379 #ifdef HAVE_SYS_MOUNT_H
11380 #include <sys/mount.h>
11382 #ifdef HAVE_SYS_FS_TYPES_H
11383 #include <sys/fs_types.h>
11387 struct fs_data fsd;
11388 /* Ultrix's statfs returns 1 for success,
11389 0 for not mounted, -1 for failure. */
11390 exit (statfs (".", &fsd) != 1);
11393 if { (eval echo configure
:11394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11395 fu_cv_sys_stat_fs_data
=yes
11397 echo "configure: failed program was:" >&5
11398 cat conftest.
$ac_ext >&5
11400 fu_cv_sys_stat_fs_data
=no
11407 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11408 if test $fu_cv_sys_stat_fs_data = yes; then
11410 cat >> confdefs.h
<<\EOF
11411 #define STAT_STATFS2_FS_DATA 1
11418 # As a gating factor for large file support, in order to
11419 # use <4GB files we must have the following minimal support
11421 # long long, and a 64 bit off_t or off64_t.
11422 # If we don't have all of these then disable large
11425 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
11426 echo "configure:11427: checking checking if large file support can be enabled" >&5
11427 cat > conftest.
$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11431 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11432 #include <sys/types.h>
11441 if { (eval echo configure
:11442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11443 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11445 echo "configure: failed program was:" >&5
11446 cat conftest.
$ac_ext >&5
11448 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11451 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11453 cat >> confdefs.h
<<\EOF
11454 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11461 # Check whether --with-spinlocks or --without-spinlocks was given.
11462 if test "${with_spinlocks+set}" = set; then
11463 withval
="$with_spinlocks"
11467 if test "x$with_spinlocks" = "xyes"; then
11468 cat >> confdefs.h
<<\EOF
11469 #define USE_SPINLOCKS 1
11473 case "$host_cpu" in
11475 cat >> confdefs.h
<<\EOF
11476 #define SPARC_SPINLOCKS 1
11481 i386|i486|i586|i686
)
11482 cat >> confdefs.h
<<\EOF
11483 #define INTEL_SPINLOCKS 1
11489 cat >> confdefs.h
<<\EOF
11490 #define MIPS_SPINLOCKS 1
11496 cat >> confdefs.h
<<\EOF
11497 #define POWERPC_SPINLOCKS 1
11504 #################################################
11505 # check for POSIX ACL support
11507 echo $ac_n "checking whether to support POSIX ACLs""... $ac_c" 1>&6
11508 echo "configure:11509: checking whether to support POSIX ACLs" >&5
11509 # Check whether --with-posix-acls or --without-posix-acls was given.
11510 if test "${with_posix_acls+set}" = set; then
11511 withval
="$with_posix_acls"
11515 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
11516 echo "configure:11517: checking for acl_get_file in -lacl" >&5
11517 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
11518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11521 ac_save_LIBS
="$LIBS"
11523 cat > conftest.
$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 /* Override any gcc2 internal prototype to avoid an error. */
11527 /* We use char because int might match the return type of a gcc2
11528 builtin and then its argument prototype would still apply. */
11529 char acl_get_file();
11535 if { (eval echo configure
:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11537 eval "ac_cv_lib_$ac_lib_var=yes"
11539 echo "configure: failed program was:" >&5
11540 cat conftest.
$ac_ext >&5
11542 eval "ac_cv_lib_$ac_lib_var=no"
11545 LIBS
="$ac_save_LIBS"
11548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11549 echo "$ac_t""yes" 1>&6
11550 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11552 cat >> confdefs.h
<<EOF
11553 #define $ac_tr_lib 1
11559 echo "$ac_t""no" 1>&6
11562 echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6
11563 echo "configure:11564: checking for POSIX ACL support" >&5
11564 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
11565 echo $ac_n "(cached) $ac_c" 1>&6
11568 cat > conftest.
$ac_ext <<EOF
11569 #line 11570 "configure"
11570 #include "confdefs.h"
11571 #include <sys/types.h>
11572 #include <sys/acl.h>
11574 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
11577 if { (eval echo configure
:11578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11579 samba_cv_HAVE_POSIX_ACLS
=yes
11581 echo "configure: failed program was:" >&5
11582 cat conftest.
$ac_ext >&5
11584 samba_cv_HAVE_POSIX_ACLS
=no
11589 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
11590 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
11591 echo "$ac_t""yes" 1>&6
11592 cat >> confdefs.h
<<\EOF
11593 #define HAVE_POSIX_ACLS 1
11599 echo "$ac_t""no" 1>&6
11600 cat >> confdefs.h
<<\EOF
11601 #define HAVE_NO_ACLS 1
11607 cat >> confdefs.h
<<\EOF
11608 #define HAVE_NO_ACLS 1
11611 echo "$ac_t""no" 1>&6
11615 echo "checking configure summary"
11616 if test "$cross_compiling" = yes; then
11619 cat > conftest.
$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 #include "${srcdir-.}/tests/summary.c"
11624 if { (eval echo configure
:11625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11626 echo "configure OK";
11628 echo "configure: failed program was:" >&5
11629 cat conftest.
$ac_ext >&5
11631 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11641 cat > confcache
<<\EOF
11642 # This file is a shell script that caches the results of configure
11643 # tests run on this system so they can be shared between configure
11644 # scripts and configure runs. It is not useful on other systems.
11645 # If it contains results you don't want to keep, you may remove or edit it.
11647 # By default, configure uses ./config.cache as the cache file,
11648 # creating it if it does not exist already. You can give configure
11649 # the --cache-file=FILE option to use a different cache file; that is
11650 # what configure does when it calls configure scripts in
11651 # subdirectories, so they share the cache.
11652 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11653 # config.status only pays attention to the cache file if you give it the
11654 # --recheck option to rerun configure.
11657 # The following way of writing the cache mishandles newlines in values,
11658 # but we know of no workaround that is simple, portable, and efficient.
11659 # So, don't put newlines in cache variables' values.
11660 # Ultrix sh set writes to stderr and can't be redirected directly,
11661 # and sets the high bit in the cache file unless we assign to the vars.
11663 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11665 # `set' does not quote correctly, so add quotes (double-quote substitution
11666 # turns \\\\ into \\, and sed turns \\ into \).
11668 -e "s/'/'\\\\''/g" \
11669 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11672 # `set' quotes correctly as required by POSIX, so do not add quotes.
11673 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11676 if cmp -s $cache_file confcache
; then
11679 if test -w $cache_file; then
11680 echo "updating cache $cache_file"
11681 cat confcache
> $cache_file
11683 echo "not updating unwritable cache $cache_file"
11688 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11690 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11691 # Let make expand exec_prefix.
11692 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11694 # Any assignment to VPATH causes Sun make to only execute
11695 # the first set of double-colon rules, so remove it if not needed.
11696 # If there is a colon in the path, we need to keep it.
11697 if test "x$srcdir" = x.
; then
11698 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11701 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11703 DEFS
=-DHAVE_CONFIG_H
11705 # Without the "./", some shells look in PATH for config.status.
11706 : ${CONFIG_STATUS=./config.status}
11708 echo creating
$CONFIG_STATUS
11709 rm -f $CONFIG_STATUS
11710 cat > $CONFIG_STATUS <<EOF
11712 # Generated automatically by configure.
11713 # Run this file to recreate the current configuration.
11714 # This directory was configured as follows,
11715 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11717 # $0 $ac_configure_args
11719 # Compiler output produced by configure, useful for debugging
11720 # configure, is in ./config.log if it exists.
11722 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11725 case "\$ac_option" in
11726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11727 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11728 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11729 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11730 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11732 -help | --help | --hel | --he | --h)
11733 echo "\$ac_cs_usage"; exit 0 ;;
11734 *) echo "\$ac_cs_usage"; exit 1 ;;
11738 ac_given_srcdir=$srcdir
11739 ac_given_INSTALL="$INSTALL"
11741 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11743 cat >> $CONFIG_STATUS <<EOF
11745 # Protect against being on the right side of a sed subst in config.status.
11746 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11747 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11751 s%@CFLAGS@%$CFLAGS%g
11752 s%@CPPFLAGS@%$CPPFLAGS%g
11753 s%@CXXFLAGS@%$CXXFLAGS%g
11754 s%@FFLAGS@%$FFLAGS%g
11756 s%@LDFLAGS@%$LDFLAGS%g
11758 s%@exec_prefix@%$exec_prefix%g
11759 s%@prefix@%$prefix%g
11760 s%@program_transform_name@%$program_transform_name%g
11761 s%@bindir@%$bindir%g
11762 s%@sbindir@%$sbindir%g
11763 s%@libexecdir@%$libexecdir%g
11764 s%@datadir@%$datadir%g
11765 s%@sysconfdir@%$sysconfdir%g
11766 s%@sharedstatedir@%$sharedstatedir%g
11767 s%@localstatedir@%$localstatedir%g
11768 s%@libdir@%$libdir%g
11769 s%@includedir@%$includedir%g
11770 s%@oldincludedir@%$oldincludedir%g
11771 s%@infodir@%$infodir%g
11772 s%@mandir@%$mandir%g
11773 s%@RUNPROG@%$RUNPROG%g
11774 s%@MPROGS@%$MPROGS%g
11775 s%@LDSHFLAGS@%$LDSHFLAGS%g
11776 s%@HOST_OS@%$HOST_OS%g
11778 s%@WRAP32@%$WRAP32%g
11779 s%@PICFLAG@%$PICFLAG%g
11780 s%@SHLIBEXT@%$SHLIBEXT%g
11782 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11783 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11784 s%@INSTALL_DATA@%$INSTALL_DATA%g
11787 s%@host_alias@%$host_alias%g
11788 s%@host_cpu@%$host_cpu%g
11789 s%@host_vendor@%$host_vendor%g
11790 s%@host_os@%$host_os%g
11792 s%@build_alias@%$build_alias%g
11793 s%@build_cpu@%$build_cpu%g
11794 s%@build_vendor@%$build_vendor%g
11795 s%@build_os@%$build_os%g
11796 s%@RANLIB@%$RANLIB%g
11798 s%@LIBTOOL@%$LIBTOOL%g
11799 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11800 s%@BROKEN_CC@%$BROKEN_CC%g
11801 s%@target@%$target%g
11802 s%@target_alias@%$target_alias%g
11803 s%@target_cpu@%$target_cpu%g
11804 s%@target_vendor@%$target_vendor%g
11805 s%@target_os@%$target_os%g
11807 s%@LIBOBJS@%$LIBOBJS%g
11809 s%@QUOTAOBJS@%$QUOTAOBJS%g
11810 s%@privatedir@%$privatedir%g
11811 s%@lockdir@%$lockdir%g
11812 s%@swatdir@%$swatdir%g
11813 s%@builddir@%$builddir%g
11818 cat >> $CONFIG_STATUS <<\EOF
11820 # Split the substitutions into bite-sized pieces for seds with
11821 # small command number limits, like on Digital OSF/1 and HP-UX.
11822 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11823 ac_file
=1 # Number of current file.
11824 ac_beg
=1 # First line for current file.
11825 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11828 while $ac_more_lines; do
11829 if test $ac_beg -gt 1; then
11830 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11832 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11834 if test ! -s conftest.s
$ac_file; then
11835 ac_more_lines
=false
11836 rm -f conftest.s
$ac_file
11838 if test -z "$ac_sed_cmds"; then
11839 ac_sed_cmds
="sed -f conftest.s$ac_file"
11841 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11843 ac_file
=`expr $ac_file + 1`
11845 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11848 if test -z "$ac_sed_cmds"; then
11853 cat >> $CONFIG_STATUS <<EOF
11855 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11857 cat >> $CONFIG_STATUS <<\EOF
11858 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11861 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11862 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11863 *) ac_file_in
="${ac_file}.in" ;;
11866 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11868 # Remove last slash and all that follows it. Not all systems have dirname.
11869 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11870 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11871 # The file is in a subdirectory.
11872 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11873 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11874 # A "../" for each directory in $ac_dir_suffix.
11875 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11877 ac_dir_suffix
= ac_dots
=
11880 case "$ac_given_srcdir" in
11882 if test -z "$ac_dots"; then top_srcdir
=.
11883 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11884 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11885 *) # Relative path.
11886 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11887 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11890 case "$ac_given_INSTALL" in
11891 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11892 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11895 echo creating
"$ac_file"
11897 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11899 *Makefile
*) ac_comsub
="1i\\
11900 # $configure_input" ;;
11904 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11906 s%@configure_input@%$configure_input%g
11907 s%@srcdir@%$srcdir%g
11908 s%@top_srcdir@%$top_srcdir%g
11909 s%@INSTALL@%$INSTALL%g
11910 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11914 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11915 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11917 # ac_d sets the value in "#define NAME VALUE" lines.
11918 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11919 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11922 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11923 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11924 ac_uB
='\([ ]\)%\1#\2define\3'
11927 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11928 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11929 ac_eB
='$%\1#\2define\3'
11933 if test "${CONFIG_HEADERS+set}" != set; then
11935 cat >> $CONFIG_STATUS <<EOF
11936 CONFIG_HEADERS="include/config.h"
11938 cat >> $CONFIG_STATUS <<\EOF
11940 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11943 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11944 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11945 *) ac_file_in
="${ac_file}.in" ;;
11948 echo creating
$ac_file
11950 rm -f conftest.frag conftest.
in conftest.out
11951 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11952 cat $ac_file_inputs > conftest.
in
11956 # Transform confdefs.h into a sed script conftest.vals that substitutes
11957 # the proper values into config.h.in to produce config.h. And first:
11958 # Protect against being on the right side of a sed subst in config.status.
11959 # Protect against being in an unquoted here document in config.status.
11960 rm -f conftest.vals
11961 cat > conftest.hdr
<<\EOF
11964 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11968 sed -n -f conftest.hdr confdefs.h > conftest.vals
11971 # This sed command replaces #undef with comments. This is necessary, for
11972 # example, in the case of _POSIX_SOURCE, which is predefined and required
11973 # on some systems where configure will not decide to define it.
11974 cat >> conftest.vals <<\EOF
11975 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11978 # Break up conftest.vals because some shells have a limit on
11979 # the size of here documents, and old seds have small limits too.
11981 rm -f conftest.tail
11984 ac_lines=`grep -c . conftest.vals
`
11985 # grep -c gives empty output for an empty file on some AIX systems.
11986 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11987 # Write a limited-size here document to conftest.frag.
11988 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11989 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11991 sed -f conftest.frag conftest.in > conftest.out
11993 mv conftest.out conftest.in
11994 ' >> $CONFIG_STATUS
11995 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11996 rm -f conftest.vals
11997 mv conftest.tail conftest.vals
11999 rm -f conftest.vals
12001 cat >> $CONFIG_STATUS <<\EOF
12002 rm -f conftest.frag conftest.h
12003 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12004 cat conftest.in >> conftest.h
12006 if cmp -s $ac_file conftest.h 2>/dev/null; then
12007 echo "$ac_file is unchanged"
12010 # Remove last slash and all that follows it. Not all systems have dirname.
12011 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12012 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12013 # The file is in a subdirectory.
12014 test ! -d "$ac_dir" && mkdir "$ac_dir"
12017 mv conftest.h $ac_file
12022 cat >> $CONFIG_STATUS <<EOF
12025 cat >> $CONFIG_STATUS <<\EOF
12029 chmod +x $CONFIG_STATUS
12030 rm -fr confdefs* $ac_clean_files
12031 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1