3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
28 --enable-debug Turn on compiler debugging information (default=no)"
30 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
32 --with-smbwrapper Include SMB wrapper support (default=no)"
34 --with-afs Include AFS support (default=no)"
36 --with-dce-dfs Include DCE/DFS support (default=no)"
38 --with-krb4=base-dir Include Kerberos IV support (default=no)"
40 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
42 --with-automount Include AUTOMOUNT support (default=no)"
44 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
46 --with-pam Include PAM password database support (default=no)"
48 --with-pam_smbpass Include the smbpass PAM module (default=no)"
50 --with-tdbsam Include TDB password database (default=no)"
52 --with-ldapsam Include Experimental LDAP-Sam support (default=no)"
54 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
56 --with-ssl Include SSL support (default=no)
57 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
59 --with-syslog Include experimental SYSLOG support (default=no)"
61 --with-profiling-data Include gathering source code profile information (default=no)"
63 --with-quotas Include experimental disk-quota support (default=no)"
65 --with-utmp Include experimental utmp accounting (default=no)"
67 --with-msdfs Include MS Dfs support (default=no)"
69 --with-vfs Include Samba vfs support (default=no)"
71 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
73 --with-acl-support Include ACL support (default=no)"
75 --with-winbind Build winbind (default, if supported by OS)"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file
=.
/config.cache
90 program_transform_name
=s
,x
,x
,
98 bindir
='${exec_prefix}/bin'
99 sbindir
='${exec_prefix}/sbin'
100 libexecdir
='${exec_prefix}/libexec'
101 datadir
='${prefix}/share'
102 sysconfdir
='${prefix}/etc'
103 sharedstatedir
='${prefix}/com'
104 localstatedir
='${prefix}/var'
105 libdir
='${exec_prefix}/lib'
106 includedir
='${prefix}/include'
107 oldincludedir
='/usr/include'
108 infodir
='${prefix}/info'
109 mandir
='${prefix}/man'
111 # Initialize some other variables.
114 SHELL
=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
140 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
141 bindir
="$ac_optarg" ;;
143 -build |
--build |
--buil |
--bui |
--bu)
145 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
146 build
="$ac_optarg" ;;
148 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
149 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
150 ac_prev
=cache_file
;;
151 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
152 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
153 cache_file
="$ac_optarg" ;;
155 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
157 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
159 datadir
="$ac_optarg" ;;
161 -disable-* |
--disable-*)
162 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* |
--enable-*)
171 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
184 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
185 |
--exec |
--exe |
--ex)
186 ac_prev
=exec_prefix
;;
187 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
188 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
189 |
--exec=* |
--exe=* |
--ex=*)
190 exec_prefix
="$ac_optarg" ;;
192 -gas |
--gas |
--ga |
--g)
193 # Obsolete; use --with-gas.
196 -help |
--help |
--hel |
--he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host |
--host |
--hos |
--ho)
253 -host=* |
--host=* |
--hos=* |
--ho=*)
256 -includedir |
--includedir |
--includedi |
--included |
--include \
257 |
--includ |
--inclu |
--incl |
--inc)
258 ac_prev
=includedir
;;
259 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
260 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
261 includedir
="$ac_optarg" ;;
263 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
265 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
266 infodir
="$ac_optarg" ;;
268 -libdir |
--libdir |
--libdi |
--libd)
270 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
271 libdir
="$ac_optarg" ;;
273 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
274 |
--libexe |
--libex |
--libe)
275 ac_prev
=libexecdir
;;
276 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
277 |
--libexe=* |
--libex=* |
--libe=*)
278 libexecdir
="$ac_optarg" ;;
280 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
281 |
--localstate |
--localstat |
--localsta |
--localst \
282 |
--locals |
--local |
--loca |
--loc |
--lo)
283 ac_prev
=localstatedir
;;
284 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
285 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
286 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
287 localstatedir
="$ac_optarg" ;;
289 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
291 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
292 mandir
="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
302 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
303 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
306 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
307 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
308 |
--oldin |
--oldi |
--old |
--ol |
--o)
309 ac_prev
=oldincludedir
;;
310 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
311 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
312 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
313 oldincludedir
="$ac_optarg" ;;
315 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
317 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
318 prefix
="$ac_optarg" ;;
320 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
321 |
--program-pre |
--program-pr |
--program-p)
322 ac_prev
=program_prefix
;;
323 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
324 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
325 program_prefix
="$ac_optarg" ;;
327 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
328 |
--program-suf |
--program-su |
--program-s)
329 ac_prev
=program_suffix
;;
330 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
331 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
332 program_suffix
="$ac_optarg" ;;
334 -program-transform-name |
--program-transform-name \
335 |
--program-transform-nam |
--program-transform-na \
336 |
--program-transform-n |
--program-transform- \
337 |
--program-transform |
--program-transfor \
338 |
--program-transfo |
--program-transf \
339 |
--program-trans |
--program-tran \
340 |
--progr-tra |
--program-tr |
--program-t)
341 ac_prev
=program_transform_name
;;
342 -program-transform-name=* |
--program-transform-name=* \
343 |
--program-transform-nam=* |
--program-transform-na=* \
344 |
--program-transform-n=* |
--program-transform-=* \
345 |
--program-transform=* |
--program-transfor=* \
346 |
--program-transfo=* |
--program-transf=* \
347 |
--program-trans=* |
--program-tran=* \
348 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
349 program_transform_name
="$ac_optarg" ;;
351 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
352 |
-silent |
--silent |
--silen |
--sile |
--sil)
355 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
357 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
359 sbindir
="$ac_optarg" ;;
361 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
362 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
363 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
365 ac_prev
=sharedstatedir
;;
366 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
367 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
368 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
370 sharedstatedir
="$ac_optarg" ;;
372 -site |
--site |
--sit)
374 -site=* |
--site=* |
--sit=*)
377 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
379 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
380 srcdir
="$ac_optarg" ;;
382 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
383 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
384 ac_prev
=sysconfdir
;;
385 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
386 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
387 sysconfdir
="$ac_optarg" ;;
389 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
391 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
392 target
="$ac_optarg" ;;
394 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
397 -version |
--version |
--versio |
--versi |
--vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package
=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* |
--without-*)
415 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package
=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
428 |
--x-incl |
--x-inc |
--x-in |
--x-i)
429 ac_prev
=x_includes
;;
430 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
431 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
432 x_includes
="$ac_optarg" ;;
434 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
435 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
436 ac_prev
=x_libraries
;;
437 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
438 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
439 x_libraries
="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE
; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
490 |
--no-cr |
--no-c) ;;
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
493 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest
* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file
=include
/includes.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted
=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted
=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE
; then
544 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
588 #################################################
589 # Directory handling stuff to support both the
590 # legacy SAMBA directories and FHS compliant
594 # Check whether --with-fhs or --without-fhs was given.
595 if test "${with_fhs+set}" = set; then
597 codepagedir
="\$(DATADIR)/samba/codepages"
598 configdir
="${sysconfdir}/samba"
599 lockdir
="\${VARDIR}/cache/samba"
600 logfilebase
="\${VARDIR}/log/samba"
601 privatedir
="\${CONFIGDIR}/private"
602 swatdir
="\${DATADIR}/samba/swat"
604 codepagedir
="\$(LIBDIR)/codepages"
605 configdir
="\$(LIBDIR)"
606 lockdir
="\$(VARDIR)/locks"
607 logfilebase
="\$(VARDIR)"
608 privatedir
="\${prefix}/private"
609 swatdir
="\${prefix}/swat"
613 #################################################
614 # set private directory location
615 # Check whether --with-privatedir or --without-privatedir was given.
616 if test "${with_privatedir+set}" = set; then
617 withval
="$with_privatedir"
621 # Just in case anybody calls it without argument
623 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
626 privatedir
="$withval"
632 #################################################
633 # set lock directory location
634 # Check whether --with-lockdir or --without-lockdir was given.
635 if test "${with_lockdir+set}" = set; then
636 withval
="$with_lockdir"
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
651 #################################################
652 # set SWAT directory location
653 # Check whether --with-swatdir or --without-swatdir was given.
654 if test "${with_swatdir+set}" = set; then
655 withval
="$with_swatdir"
659 # Just in case anybody does it
661 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
670 #################################################
671 # set configuration directory location
672 # Check whether --with-configdir or --without-configdir was given.
673 if test "${with_configdir+set}" = set; then
674 withval
="$with_configdir"
678 # Just in case anybody does it
680 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
689 #################################################
690 # set codepage directory location
691 # Check whether --with-codepagedir or --without-codepagedir was given.
692 if test "${with_codepagedir+set}" = set; then
693 withval
="$with_codepagedir"
697 # Just in case anybody does it
699 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
702 codepagedir
="$withval"
729 # compile with optimization and without debugging by default
730 CFLAGS
="-O ${CFLAGS}"
732 # Check whether --enable-debug or --disable-debug was given.
733 if test "${enable_debug+set}" = set; then
734 enableval
="$enable_debug"
735 if eval "test x$enable_debug = xyes"; then
736 CFLAGS
="${CFLAGS} -g"
743 # Extract the first word of "gcc", so it can be a program name with args.
744 set dummy gcc
; ac_word
=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 if test -n "$CC"; then
751 ac_cv_prog_CC
="$CC" # Let the user override the test.
753 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
755 for ac_dir
in $ac_dummy; do
756 test -z "$ac_dir" && ac_dir
=.
757 if test -f $ac_dir/$ac_word; then
766 if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
769 echo "$ac_t""no" 1>&6
772 if test -z "$CC"; then
773 # Extract the first word of "cc", so it can be a program name with args.
774 set dummy cc
; ac_word
=$2
775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776 echo "configure:777: checking for $ac_word" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 if test -n "$CC"; then
781 ac_cv_prog_CC
="$CC" # Let the user override the test.
783 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
786 for ac_dir
in $ac_dummy; do
787 test -z "$ac_dir" && ac_dir
=.
788 if test -f $ac_dir/$ac_word; then
789 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
798 if test $ac_prog_rejected = yes; then
799 # We found a bogon in the path, so make sure we never use it.
800 set dummy
$ac_cv_prog_CC
802 if test $# -gt 0; then
803 # We chose a different compiler from the bogus one.
804 # However, it has the same basename, so the bogon will be chosen
805 # first if we set CC to just the basename; use the full file name.
807 set dummy
"$ac_dir/$ac_word" "$@"
815 if test -n "$CC"; then
816 echo "$ac_t""$CC" 1>&6
818 echo "$ac_t""no" 1>&6
821 if test -z "$CC"; then
824 # Extract the first word of "cl", so it can be a program name with args.
825 set dummy cl
; ac_word
=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 if test -n "$CC"; then
832 ac_cv_prog_CC
="$CC" # Let the user override the test.
834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
836 for ac_dir
in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir
=.
838 if test -f $ac_dir/$ac_word; then
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no" 1>&6
855 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
858 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
859 echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
863 ac_cpp
='$CPP $CPPFLAGS'
864 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
865 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
866 cross_compiling
=$ac_cv_prog_cc_cross
868 cat > conftest.
$ac_ext << EOF
870 #line 871 "configure"
871 #include "confdefs.h"
875 if { (eval echo configure
:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
876 ac_cv_prog_cc_works
=yes
877 # If we can't run a trivial program, we are probably using a cross compiler.
878 if (.
/conftest
; exit) 2>/dev
/null
; then
879 ac_cv_prog_cc_cross
=no
881 ac_cv_prog_cc_cross
=yes
884 echo "configure: failed program was:" >&5
885 cat conftest.
$ac_ext >&5
886 ac_cv_prog_cc_works
=no
890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
891 ac_cpp
='$CPP $CPPFLAGS'
892 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
893 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
894 cross_compiling
=$ac_cv_prog_cc_cross
896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
897 if test $ac_cv_prog_cc_works = no
; then
898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
903 cross_compiling
=$ac_cv_prog_cc_cross
905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
906 echo "configure:907: checking whether we are using GNU C" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 cat > conftest.c
<<EOF
915 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
922 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
924 if test $ac_cv_prog_gcc = yes; then
930 ac_test_CFLAGS
="${CFLAGS+set}"
931 ac_save_CFLAGS
="$CFLAGS"
933 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
934 echo "configure:935: checking whether ${CC-cc} accepts -g" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 echo 'void f(){}' > conftest.c
939 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
948 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
949 if test "$ac_test_CFLAGS" = set; then
950 CFLAGS
="$ac_save_CFLAGS"
951 elif test $ac_cv_prog_cc_g = yes; then
952 if test "$GCC" = yes; then
958 if test "$GCC" = yes; then
966 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
967 if test -f $ac_dir/install-sh
; then
969 ac_install_sh
="$ac_aux_dir/install-sh -c"
971 elif test -f $ac_dir/install.sh
; then
973 ac_install_sh
="$ac_aux_dir/install.sh -c"
977 if test -z "$ac_aux_dir"; then
978 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
980 ac_config_guess
=$ac_aux_dir/config.guess
981 ac_config_sub
=$ac_aux_dir/config.sub
982 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
984 # Find a good install program. We prefer a C program (faster),
985 # so one script is as good as another. But avoid the broken or
986 # incompatible versions:
987 # SysV /etc/install, /usr/sbin/install
988 # SunOS /usr/etc/install
991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
994 # ./install, which can be erroneously created by make from ./install.sh.
995 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
996 echo "configure:997: checking for a BSD compatible install" >&5
997 if test -z "$INSTALL"; then
998 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1002 for ac_dir
in $PATH; do
1003 # Account for people who put trailing slashes in PATH elements.
1005 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1007 # OSF1 and SCO ODT 3.0 have their own names for install.
1008 # Don't use installbsd from OSF since it installs stuff as root
1010 for ac_prog
in ginstall scoinst
install; do
1011 if test -f $ac_dir/$ac_prog; then
1012 if test $ac_prog = install &&
1013 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1014 # AIX install. It has an incompatible calling convention.
1017 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1028 if test "${ac_cv_path_install+set}" = set; then
1029 INSTALL
="$ac_cv_path_install"
1031 # As a last resort, use the slow shell script. We don't cache a
1032 # path for INSTALL within a source directory, because that will
1033 # break other packages using the cache if that directory is
1034 # removed, or if the path is relative.
1035 INSTALL
="$ac_install_sh"
1038 echo "$ac_t""$INSTALL" 1>&6
1040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1041 # It thinks the first close brace ends the variable substitution.
1042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1046 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1048 for ac_prog
in mawk gawk nawk
awk
1050 # Extract the first word of "$ac_prog", so it can be a program name with args.
1051 set dummy
$ac_prog; ac_word
=$2
1052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1053 echo "configure:1054: checking for $ac_word" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 if test -n "$AWK"; then
1058 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1060 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1062 for ac_dir
in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir
=.
1064 if test -f $ac_dir/$ac_word; then
1065 ac_cv_prog_AWK
="$ac_prog"
1072 AWK
="$ac_cv_prog_AWK"
1073 if test -n "$AWK"; then
1074 echo "$ac_t""$AWK" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 test -n "$AWK" && break
1083 if test "x$CC" != xcc
; then
1084 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether $CC and cc understand -c and -o together" >&5
1087 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether cc understands -c and -o together" >&5
1090 set dummy
$CC; ac_cc
="`echo $2 |
1091 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1092 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 echo 'foo(){}' > conftest.c
1096 # Make sure it works both with $CC and with simple cc.
1097 # We do the test twice because some compilers refuse to overwrite an
1098 # existing .o file with -o, though they will create one.
1099 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1100 if { (eval echo configure
:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1101 test -f conftest.o
&& { (eval echo configure
:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1103 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1104 if test "x$CC" != xcc
; then
1105 # Test first that cc exists at all.
1106 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1107 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1108 if { (eval echo configure
:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1109 test -f conftest.o
&& { (eval echo configure
:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1114 # cc exists but doesn't like -o.
1115 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1120 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1125 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1126 echo "$ac_t""yes" 1>&6
1128 echo "$ac_t""no" 1>&6
1129 cat >> confdefs.h
<<\EOF
1130 #define NO_MINUS_C_MINUS_O 1
1135 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1142 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1143 echo "configure:1144: checking that the C compiler understands volatile" >&5
1144 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1148 cat > conftest.
$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1151 #include <sys/types.h>
1156 if { (eval echo configure
:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1158 samba_cv_volatile
=yes
1160 echo "configure: failed program was:" >&5
1161 cat conftest.
$ac_ext >&5
1163 samba_cv_volatile
=no
1168 echo "$ac_t""$samba_cv_volatile" 1>&6
1169 if test x
"$samba_cv_volatile" = x
"yes"; then
1170 cat >> confdefs.h
<<\EOF
1171 #define HAVE_VOLATILE 1
1179 # Do some error checking and defaulting for the host and target type.
1181 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1184 # 1. You are not allowed to specify --host, --target, and nonopt at the
1186 # 2. Host defaults to nonopt.
1187 # 3. If nonopt is not specified, then host defaults to the current host,
1188 # as determined by config.guess.
1189 # 4. Target and build default to nonopt.
1190 # 5. If nonopt is not specified, then target and build default to host.
1192 # The aliases save the names the user supplied, while $host etc.
1193 # will get canonicalized.
1194 case $host---$target---$nonopt in
1195 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1196 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1200 # Make sure we can run config.sub.
1201 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1202 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1205 echo $ac_n "checking host system type""... $ac_c" 1>&6
1206 echo "configure:1207: checking host system type" >&5
1209 case "$host_alias" in
1213 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1214 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1216 *) host_alias
=$nonopt ;;
1220 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1221 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1222 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1223 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1224 echo "$ac_t""$host" 1>&6
1226 echo $ac_n "checking target system type""... $ac_c" 1>&6
1227 echo "configure:1228: checking target system type" >&5
1229 target_alias
=$target
1230 case "$target_alias" in
1233 NONE
) target_alias
=$host_alias ;;
1234 *) target_alias
=$nonopt ;;
1238 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1239 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1240 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1241 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1242 echo "$ac_t""$target" 1>&6
1244 echo $ac_n "checking build system type""... $ac_c" 1>&6
1245 echo "configure:1246: checking build system type" >&5
1248 case "$build_alias" in
1251 NONE
) build_alias
=$host_alias ;;
1252 *) build_alias
=$nonopt ;;
1256 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1257 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1258 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1259 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1260 echo "$ac_t""$build" 1>&6
1262 test "$host_alias" != "$target_alias" &&
1263 test "$program_prefix$program_suffix$program_transform_name" = \
1265 program_prefix
=${target_alias}-
1269 *irix6
*) cat >> confdefs.h
<<\EOF
1270 #include <standards.h>
1278 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1279 echo "configure:1280: checking config.cache system type" >&5
1280 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1281 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1282 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1283 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1284 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1285 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1286 echo "$ac_t""different" 1>&6
1287 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1289 echo "$ac_t""same" 1>&6
1291 ac_cv_host_system_type
="$host"
1292 ac_cv_build_system_type
="$build"
1293 ac_cv_target_system_type
="$target"
1297 # Config CPPFLAG settings for strange OS's that must be set
1298 # before other tests.
1301 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1303 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether ${CC-cc} accepts -Ae" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 echo 'void f(){}' > conftest.c
1309 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1310 ac_cv_prog_cc_Ae
=yes
1318 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1319 # mmap on HPUX is completely broken...
1320 cat >> confdefs.h
<<\EOF
1321 #define MMAP_BLACKLIST 1
1324 if test $ac_cv_prog_cc_Ae = yes; then
1325 CPPFLAGS
="$CPPFLAGS -Ae"
1328 # Defines needed for HPUX support.
1329 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1330 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1334 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1335 cat >> confdefs.h
<<\EOF
1336 #define USE_BOTH_CRYPT_CALLS 1
1341 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1342 cat >> confdefs.h
<<\EOF
1343 #define USE_BOTH_CRYPT_CALLS 1
1350 # AIX4.x doesn't even admit to having large
1351 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1354 echo "$ac_t""enabling large file support" 1>&6
1355 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1358 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1359 # to the existance of large files..
1360 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1361 # recommendations on large file support, however it makes the
1362 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1363 # recommendation makes the compile fail on gcc2.7. JRA.
1368 echo "$ac_t""enabling large file support" 1>&6
1369 if test "$ac_cv_prog_gcc" = yes; then
1370 ${CC-cc} -v >conftest.c
2>&1
1371 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1373 case "$ac_cv_gcc_compiler_version_number" in
1374 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1375 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1378 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1382 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1388 # Tests needed for SINIX large file support.
1391 if test $host = mips-sni-sysv4
; then
1392 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1393 echo "configure:1394: checking for LFS support" >&5
1394 old_CPPFLAGS
="$CPPFLAGS"
1395 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1396 if test "$cross_compiling" = yes; then
1397 SINIX_LFS_SUPPORT
=cross
1399 cat > conftest.
$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1405 #if _LFS64_LARGEFILE == 1
1412 if { (eval echo configure
:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1414 SINIX_LFS_SUPPORT
=yes
1416 echo "configure: failed program was:" >&5
1417 cat conftest.
$ac_ext >&5
1419 SINIX_LFS_SUPPORT
=no
1424 CPPFLAGS
="$old_CPPFLAGS"
1425 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1426 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1427 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1428 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1429 LIBS
="`getconf LFS64_LIBS` $LIBS"
1431 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1435 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1438 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1439 echo "configure:1440: checking for LFS support" >&5
1440 old_CPPFLAGS
="$CPPFLAGS"
1441 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1442 if test "$cross_compiling" = yes; then
1443 LINUX_LFS_SUPPORT
=cross
1445 cat > conftest.
$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1450 #include <sys/utsname.h>
1452 #if _LFS64_LARGEFILE == 1
1457 /* Ensure this is glibc 2.2 or higher */
1458 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1459 int libc_major = __GLIBC__;
1460 int libc_minor = __GLIBC_MINOR__;
1468 /* Ensure this is kernel 2.4 or higher */
1471 release = uts.release;
1472 major = atoi(strsep(&release, "."));
1473 minor = atoi(strsep(&release, "."));
1475 if (major > 2 || (major == 2 && minor > 3))
1484 if { (eval echo configure
:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1486 LINUX_LFS_SUPPORT
=yes
1488 echo "configure: failed program was:" >&5
1489 cat conftest.
$ac_ext >&5
1491 LINUX_LFS_SUPPORT
=no
1496 CPPFLAGS
="$old_CPPFLAGS"
1497 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1498 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1500 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1504 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1505 echo "configure:1506: checking for LFS support" >&5
1506 old_CPPFLAGS
="$CPPFLAGS"
1507 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1508 if test "$cross_compiling" = yes; then
1509 GLIBC_LFS_SUPPORT
=cross
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1517 #if _LFS64_LARGEFILE == 1
1524 if { (eval echo configure
:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1526 GLIBC_LFS_SUPPORT
=yes
1528 echo "configure: failed program was:" >&5
1529 cat conftest.
$ac_ext >&5
1531 GLIBC_LFS_SUPPORT
=no
1536 CPPFLAGS
="$old_CPPFLAGS"
1537 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1538 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1540 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1545 echo $ac_n "checking for inline""... $ac_c" 1>&6
1546 echo "configure:1547: checking for inline" >&5
1547 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1551 for ac_kw
in inline __inline__ __inline
; do
1552 cat > conftest.
$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1560 if { (eval echo configure
:1561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1562 ac_cv_c_inline
=$ac_kw; break
1564 echo "configure: failed program was:" >&5
1565 cat conftest.
$ac_ext >&5
1572 echo "$ac_t""$ac_cv_c_inline" 1>&6
1573 case "$ac_cv_c_inline" in
1575 no
) cat >> confdefs.h
<<\EOF
1579 *) cat >> confdefs.h
<<EOF
1580 #define inline $ac_cv_c_inline
1585 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1586 echo "configure:1587: checking how to run the C preprocessor" >&5
1587 # On Suns, sometimes $CPP names a directory.
1588 if test -n "$CPP" && test -d "$CPP"; then
1591 if test -z "$CPP"; then
1592 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 # This must be in double quotes, not single quotes, because CPP may get
1596 # substituted into the Makefile and "${CC-cc}" will confuse make.
1598 # On the NeXT, cc -E runs the code through the compiler's parser,
1599 # not just through cpp.
1600 cat > conftest.
$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1606 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1607 { (eval echo configure
:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1608 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1609 if test -z "$ac_err"; then
1613 echo "configure: failed program was:" >&5
1614 cat conftest.
$ac_ext >&5
1616 CPP
="${CC-cc} -E -traditional-cpp"
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1624 { (eval echo configure
:1625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1625 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1626 if test -z "$ac_err"; then
1630 echo "configure: failed program was:" >&5
1631 cat conftest.
$ac_ext >&5
1633 CPP
="${CC-cc} -nologo -E"
1634 cat > conftest.
$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1640 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1641 { (eval echo configure
:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1642 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1643 if test -z "$ac_err"; then
1647 echo "configure: failed program was:" >&5
1648 cat conftest.
$ac_ext >&5
1657 ac_cv_prog_CPP
="$CPP"
1659 CPP
="$ac_cv_prog_CPP"
1661 ac_cv_prog_CPP
="$CPP"
1663 echo "$ac_t""$CPP" 1>&6
1665 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1666 echo "configure:1667: checking for ANSI C header files" >&5
1667 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1678 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1679 { (eval echo configure
:1680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1680 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1681 if test -z "$ac_err"; then
1683 ac_cv_header_stdc
=yes
1686 echo "configure: failed program was:" >&5
1687 cat conftest.
$ac_ext >&5
1689 ac_cv_header_stdc
=no
1693 if test $ac_cv_header_stdc = yes; then
1694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1695 cat > conftest.
$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1701 egrep "memchr" >/dev
/null
2>&1; then
1705 ac_cv_header_stdc
=no
1711 if test $ac_cv_header_stdc = yes; then
1712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1719 egrep "free" >/dev
/null
2>&1; then
1723 ac_cv_header_stdc
=no
1729 if test $ac_cv_header_stdc = yes; then
1730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1731 if test "$cross_compiling" = yes; then
1734 cat > conftest.
$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1738 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1739 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1741 int main () { int i; for (i = 0; i < 256; i++)
1742 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1746 if { (eval echo configure
:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1750 echo "configure: failed program was:" >&5
1751 cat conftest.
$ac_ext >&5
1753 ac_cv_header_stdc
=no
1761 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1762 if test $ac_cv_header_stdc = yes; then
1763 cat >> confdefs.h
<<\EOF
1764 #define STDC_HEADERS 1
1770 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1772 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1773 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1774 echo "configure:1775: checking for $ac_hdr that defines DIR" >&5
1775 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 cat > conftest.
$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #include <sys/types.h>
1787 if { (eval echo configure
:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1789 eval "ac_cv_header_dirent_$ac_safe=yes"
1791 echo "configure: failed program was:" >&5
1792 cat conftest.
$ac_ext >&5
1794 eval "ac_cv_header_dirent_$ac_safe=no"
1798 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1800 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1801 cat >> confdefs.h
<<EOF
1802 #define $ac_tr_hdr 1
1804 ac_header_dirent
=$ac_hdr; break
1806 echo "$ac_t""no" 1>&6
1809 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1810 if test $ac_header_dirent = dirent.h
; then
1811 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1812 echo "configure:1813: checking for opendir in -ldir" >&5
1813 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 ac_save_LIBS
="$LIBS"
1819 cat > conftest.
$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 /* Override any gcc2 internal prototype to avoid an error. */
1823 /* We use char because int might match the return type of a gcc2
1824 builtin and then its argument prototype would still apply. */
1831 if { (eval echo configure
:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1833 eval "ac_cv_lib_$ac_lib_var=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.
$ac_ext >&5
1838 eval "ac_cv_lib_$ac_lib_var=no"
1841 LIBS
="$ac_save_LIBS"
1844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1848 echo "$ac_t""no" 1>&6
1852 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1853 echo "configure:1854: checking for opendir in -lx" >&5
1854 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 ac_save_LIBS
="$LIBS"
1860 cat > conftest.
$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 /* Override any gcc2 internal prototype to avoid an error. */
1864 /* We use char because int might match the return type of a gcc2
1865 builtin and then its argument prototype would still apply. */
1872 if { (eval echo configure
:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1874 eval "ac_cv_lib_$ac_lib_var=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.
$ac_ext >&5
1879 eval "ac_cv_lib_$ac_lib_var=no"
1882 LIBS
="$ac_save_LIBS"
1885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1889 echo "$ac_t""no" 1>&6
1894 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether time.h and sys/time.h may both be included" >&5
1896 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902 #include <sys/types.h>
1903 #include <sys/time.h>
1909 if { (eval echo configure
:1910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1911 ac_cv_header_time
=yes
1913 echo "configure: failed program was:" >&5
1914 cat conftest.
$ac_ext >&5
1916 ac_cv_header_time
=no
1921 echo "$ac_t""$ac_cv_header_time" 1>&6
1922 if test $ac_cv_header_time = yes; then
1923 cat >> confdefs.h
<<\EOF
1924 #define TIME_WITH_SYS_TIME 1
1929 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1930 echo "configure:1931: checking for sys/wait.h that is POSIX.1 compatible" >&5
1931 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 cat > conftest.
$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1937 #include <sys/types.h>
1938 #include <sys/wait.h>
1940 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1943 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1948 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1951 if { (eval echo configure
:1952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1953 ac_cv_header_sys_wait_h
=yes
1955 echo "configure: failed program was:" >&5
1956 cat conftest.
$ac_ext >&5
1958 ac_cv_header_sys_wait_h
=no
1963 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1964 if test $ac_cv_header_sys_wait_h = yes; then
1965 cat >> confdefs.h
<<\EOF
1966 #define HAVE_SYS_WAIT_H 1
1971 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1973 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_hdr" >&5
1976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 cat > conftest.
$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1984 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure
:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1987 if test -z "$ac_err"; then
1989 eval "ac_cv_header_$ac_safe=yes"
1992 echo "configure: failed program was:" >&5
1993 cat conftest.
$ac_ext >&5
1995 eval "ac_cv_header_$ac_safe=no"
1999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2000 echo "$ac_t""yes" 1>&6
2001 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2002 cat >> confdefs.h
<<EOF
2003 #define $ac_tr_hdr 1
2007 echo "$ac_t""no" 1>&6
2011 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2013 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2015 echo "configure:2016: checking for $ac_hdr" >&5
2016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 cat > conftest.
$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2024 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2025 { (eval echo configure
:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2026 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2027 if test -z "$ac_err"; then
2029 eval "ac_cv_header_$ac_safe=yes"
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 eval "ac_cv_header_$ac_safe=no"
2039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2041 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2042 cat >> confdefs.h
<<EOF
2043 #define $ac_tr_hdr 1
2047 echo "$ac_t""no" 1>&6
2051 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2053 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2055 echo "configure:2056: checking for $ac_hdr" >&5
2056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 cat > conftest.
$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2064 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2065 { (eval echo configure
:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2066 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2067 if test -z "$ac_err"; then
2069 eval "ac_cv_header_$ac_safe=yes"
2072 echo "configure: failed program was:" >&5
2073 cat conftest.
$ac_ext >&5
2075 eval "ac_cv_header_$ac_safe=no"
2079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2080 echo "$ac_t""yes" 1>&6
2081 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2082 cat >> confdefs.h
<<EOF
2083 #define $ac_tr_hdr 1
2087 echo "$ac_t""no" 1>&6
2091 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2093 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_hdr" >&5
2096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.
$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2104 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2105 { (eval echo configure
:2106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2106 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2107 if test -z "$ac_err"; then
2109 eval "ac_cv_header_$ac_safe=yes"
2112 echo "configure: failed program was:" >&5
2113 cat conftest.
$ac_ext >&5
2115 eval "ac_cv_header_$ac_safe=no"
2119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2121 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2122 cat >> confdefs.h
<<EOF
2123 #define $ac_tr_hdr 1
2127 echo "$ac_t""no" 1>&6
2131 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2133 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2135 echo "configure:2136: checking for $ac_hdr" >&5
2136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 cat > conftest.
$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2144 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2145 { (eval echo configure
:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2146 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2147 if test -z "$ac_err"; then
2149 eval "ac_cv_header_$ac_safe=yes"
2152 echo "configure: failed program was:" >&5
2153 cat conftest.
$ac_ext >&5
2155 eval "ac_cv_header_$ac_safe=no"
2159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2161 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2162 cat >> confdefs.h
<<EOF
2163 #define $ac_tr_hdr 1
2167 echo "$ac_t""no" 1>&6
2171 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2173 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_hdr" >&5
2176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2184 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2185 { (eval echo configure
:2186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2186 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2187 if test -z "$ac_err"; then
2189 eval "ac_cv_header_$ac_safe=yes"
2192 echo "configure: failed program was:" >&5
2193 cat conftest.
$ac_ext >&5
2195 eval "ac_cv_header_$ac_safe=no"
2199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2201 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2202 cat >> confdefs.h
<<EOF
2203 #define $ac_tr_hdr 1
2207 echo "$ac_t""no" 1>&6
2211 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2213 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2215 echo "configure:2216: checking for $ac_hdr" >&5
2216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 cat > conftest.
$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2224 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2225 { (eval echo configure
:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2226 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2227 if test -z "$ac_err"; then
2229 eval "ac_cv_header_$ac_safe=yes"
2232 echo "configure: failed program was:" >&5
2233 cat conftest.
$ac_ext >&5
2235 eval "ac_cv_header_$ac_safe=no"
2239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2242 cat >> confdefs.h
<<EOF
2243 #define $ac_tr_hdr 1
2247 echo "$ac_t""no" 1>&6
2251 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h
2253 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_hdr" >&5
2256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2264 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2265 { (eval echo configure
:2266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2266 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2267 if test -z "$ac_err"; then
2269 eval "ac_cv_header_$ac_safe=yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.
$ac_ext >&5
2275 eval "ac_cv_header_$ac_safe=no"
2279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2282 cat >> confdefs.h
<<EOF
2283 #define $ac_tr_hdr 1
2287 echo "$ac_t""no" 1>&6
2293 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2294 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2298 cat > conftest.
$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2306 if { (eval echo configure
:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2308 ac_cv_header_shadow_h
=yes
2310 echo "configure: failed program was:" >&5
2311 cat conftest.
$ac_ext >&5
2313 ac_cv_header_shadow_h
=no
2316 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2317 cat >> confdefs.h
<<\EOF
2318 #define HAVE_SHADOW_H 1
2324 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2326 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2328 echo "configure:2329: checking for $ac_hdr" >&5
2329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 cat > conftest.
$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2337 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2338 { (eval echo configure
:2339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2339 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2340 if test -z "$ac_err"; then
2342 eval "ac_cv_header_$ac_safe=yes"
2345 echo "configure: failed program was:" >&5
2346 cat conftest.
$ac_ext >&5
2348 eval "ac_cv_header_$ac_safe=no"
2352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2354 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2355 cat >> confdefs.h
<<EOF
2356 #define $ac_tr_hdr 1
2360 echo "$ac_t""no" 1>&6
2364 for ac_hdr
in nss.h nss_common.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2366 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2368 echo "configure:2369: checking for $ac_hdr" >&5
2369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.
$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2377 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2378 { (eval echo configure
:2379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2379 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2380 if test -z "$ac_err"; then
2382 eval "ac_cv_header_$ac_safe=yes"
2385 echo "configure: failed program was:" >&5
2386 cat conftest.
$ac_ext >&5
2388 eval "ac_cv_header_$ac_safe=no"
2392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2395 cat >> confdefs.h
<<EOF
2396 #define $ac_tr_hdr 1
2400 echo "$ac_t""no" 1>&6
2404 for ac_hdr
in stropts.h poll.h
2406 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_hdr" >&5
2409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2417 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2418 { (eval echo configure
:2419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2419 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2420 if test -z "$ac_err"; then
2422 eval "ac_cv_header_$ac_safe=yes"
2425 echo "configure: failed program was:" >&5
2426 cat conftest.
$ac_ext >&5
2428 eval "ac_cv_header_$ac_safe=no"
2432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2435 cat >> confdefs.h
<<EOF
2436 #define $ac_tr_hdr 1
2440 echo "$ac_t""no" 1>&6
2444 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2446 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2448 echo "configure:2449: checking for $ac_hdr" >&5
2449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 cat > conftest.
$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2457 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2458 { (eval echo configure
:2459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2459 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2460 if test -z "$ac_err"; then
2462 eval "ac_cv_header_$ac_safe=yes"
2465 echo "configure: failed program was:" >&5
2466 cat conftest.
$ac_ext >&5
2468 eval "ac_cv_header_$ac_safe=no"
2472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2475 cat >> confdefs.h
<<EOF
2476 #define $ac_tr_hdr 1
2480 echo "$ac_t""no" 1>&6
2484 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2486 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2488 echo "configure:2489: checking for $ac_hdr" >&5
2489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 cat > conftest.
$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2497 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2498 { (eval echo configure
:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2499 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2500 if test -z "$ac_err"; then
2502 eval "ac_cv_header_$ac_safe=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 eval "ac_cv_header_$ac_safe=no"
2512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2515 cat >> confdefs.h
<<EOF
2516 #define $ac_tr_hdr 1
2520 echo "$ac_t""no" 1>&6
2525 # For experimental utmp support (lastlog on some BSD-like systems)
2526 for ac_hdr
in utmp.h utmpx.h lastlog.h
2528 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_hdr" >&5
2531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.
$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2539 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2540 { (eval echo configure
:2541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2541 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2542 if test -z "$ac_err"; then
2544 eval "ac_cv_header_$ac_safe=yes"
2547 echo "configure: failed program was:" >&5
2548 cat conftest.
$ac_ext >&5
2550 eval "ac_cv_header_$ac_safe=no"
2554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2555 echo "$ac_t""yes" 1>&6
2556 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2557 cat >> confdefs.h
<<EOF
2558 #define $ac_tr_hdr 1
2562 echo "$ac_t""no" 1>&6
2567 # For quotas on Veritas VxFS filesystems
2568 for ac_hdr
in sys
/fs
/vx_quota.h
2570 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2572 echo "configure:2573: checking for $ac_hdr" >&5
2573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2581 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2582 { (eval echo configure
:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2583 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2584 if test -z "$ac_err"; then
2586 eval "ac_cv_header_$ac_safe=yes"
2589 echo "configure: failed program was:" >&5
2590 cat conftest.
$ac_ext >&5
2592 eval "ac_cv_header_$ac_safe=no"
2596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2597 echo "$ac_t""yes" 1>&6
2598 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2599 cat >> confdefs.h
<<EOF
2600 #define $ac_tr_hdr 1
2604 echo "$ac_t""no" 1>&6
2609 echo $ac_n "checking size of int""... $ac_c" 1>&6
2610 echo "configure:2611: checking size of int" >&5
2611 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 if test "$cross_compiling" = yes; then
2615 ac_cv_sizeof_int
=cross
2617 cat > conftest.
$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2623 FILE *f=fopen("conftestval", "w");
2625 fprintf(f, "%d\n", sizeof(int));
2629 if { (eval echo configure
:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2631 ac_cv_sizeof_int
=`cat conftestval`
2633 echo "configure: failed program was:" >&5
2634 cat conftest.
$ac_ext >&5
2642 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2643 cat >> confdefs.h
<<EOF
2644 #define SIZEOF_INT $ac_cv_sizeof_int
2648 echo $ac_n "checking size of long""... $ac_c" 1>&6
2649 echo "configure:2650: checking size of long" >&5
2650 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 if test "$cross_compiling" = yes; then
2654 ac_cv_sizeof_long
=cross
2656 cat > conftest.
$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2662 FILE *f=fopen("conftestval", "w");
2664 fprintf(f, "%d\n", sizeof(long));
2668 if { (eval echo configure
:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2670 ac_cv_sizeof_long
=`cat conftestval`
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2681 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2682 cat >> confdefs.h
<<EOF
2683 #define SIZEOF_LONG $ac_cv_sizeof_long
2687 echo $ac_n "checking size of short""... $ac_c" 1>&6
2688 echo "configure:2689: checking size of short" >&5
2689 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 if test "$cross_compiling" = yes; then
2693 ac_cv_sizeof_short
=cross
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2701 FILE *f=fopen("conftestval", "w");
2703 fprintf(f, "%d\n", sizeof(short));
2707 if { (eval echo configure
:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2709 ac_cv_sizeof_short
=`cat conftestval`
2711 echo "configure: failed program was:" >&5
2712 cat conftest.
$ac_ext >&5
2714 ac_cv_sizeof_short
=0
2720 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2721 cat >> confdefs.h
<<EOF
2722 #define SIZEOF_SHORT $ac_cv_sizeof_short
2727 echo $ac_n "checking for working const""... $ac_c" 1>&6
2728 echo "configure:2729: checking for working const" >&5
2729 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 cat > conftest.
$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2738 /* Ultrix mips cc rejects this. */
2739 typedef int charset[2]; const charset x;
2740 /* SunOS 4.1.1 cc rejects this. */
2741 char const *const *ccp;
2743 /* NEC SVR4.0.2 mips cc rejects this. */
2744 struct point {int x, y;};
2745 static struct point const zero = {0,0};
2746 /* AIX XL C 1.02.0.0 rejects this.
2747 It does not let you subtract one const X* pointer from another in an arm
2748 of an if-expression whose if-part is not a constant expression */
2749 const char *g = "string";
2750 ccp = &g + (g ? g-g : 0);
2751 /* HPUX 7.0 cc rejects these. */
2754 ccp = (char const *const *) p;
2755 { /* SCO 3.2v4 cc rejects this. */
2757 char const *s = 0 ? (char *) 0 : (char const *) 0;
2761 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2763 const int *foo = &x[0];
2766 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2767 typedef const int *iptr;
2771 { /* AIX XL C 1.02.0.0 rejects this saying
2772 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2773 struct s { int j; const int *ap[3]; };
2774 struct s *b; b->j = 5;
2776 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2782 if { (eval echo configure
:2783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2786 echo "configure: failed program was:" >&5
2787 cat conftest.
$ac_ext >&5
2794 echo "$ac_t""$ac_cv_c_const" 1>&6
2795 if test $ac_cv_c_const = no
; then
2796 cat >> confdefs.h
<<\EOF
2802 echo $ac_n "checking for inline""... $ac_c" 1>&6
2803 echo "configure:2804: checking for inline" >&5
2804 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2808 for ac_kw
in inline __inline__ __inline
; do
2809 cat > conftest.
$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2817 if { (eval echo configure
:2818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2819 ac_cv_c_inline
=$ac_kw; break
2821 echo "configure: failed program was:" >&5
2822 cat conftest.
$ac_ext >&5
2829 echo "$ac_t""$ac_cv_c_inline" 1>&6
2830 case "$ac_cv_c_inline" in
2832 no
) cat >> confdefs.h
<<\EOF
2836 *) cat >> confdefs.h
<<EOF
2837 #define inline $ac_cv_c_inline
2842 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2843 echo "configure:2844: checking whether byte ordering is bigendian" >&5
2844 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 ac_cv_c_bigendian
=unknown
2848 # See if sys/param.h defines the BYTE_ORDER macro.
2849 cat > conftest.
$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2852 #include <sys/types.h>
2853 #include <sys/param.h>
2856 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2861 if { (eval echo configure
:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2863 # It does; now see whether it defined to BIG_ENDIAN or not.
2864 cat > conftest.
$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 #include <sys/types.h>
2868 #include <sys/param.h>
2871 #if BYTE_ORDER != BIG_ENDIAN
2876 if { (eval echo configure
:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2878 ac_cv_c_bigendian
=yes
2880 echo "configure: failed program was:" >&5
2881 cat conftest.
$ac_ext >&5
2883 ac_cv_c_bigendian
=no
2887 echo "configure: failed program was:" >&5
2888 cat conftest.
$ac_ext >&5
2891 if test $ac_cv_c_bigendian = unknown
; then
2892 if test "$cross_compiling" = yes; then
2893 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2899 /* Are we little or big endian? From Harbison&Steele. */
2903 char c[sizeof (long)];
2906 exit (u.c[sizeof (long) - 1] == 1);
2909 if { (eval echo configure
:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2911 ac_cv_c_bigendian
=no
2913 echo "configure: failed program was:" >&5
2914 cat conftest.
$ac_ext >&5
2916 ac_cv_c_bigendian
=yes
2924 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2925 if test $ac_cv_c_bigendian = yes; then
2926 cat >> confdefs.h
<<\EOF
2927 #define WORDS_BIGENDIAN 1
2932 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2933 echo "configure:2934: checking whether char is unsigned" >&5
2934 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 if test "$GCC" = yes; then
2938 # GCC predefines this symbol on systems where it applies.
2939 cat > conftest.
$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 #ifdef __CHAR_UNSIGNED__
2947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948 egrep "yes" >/dev
/null
2>&1; then
2950 ac_cv_c_char_unsigned
=yes
2953 ac_cv_c_char_unsigned
=no
2958 if test "$cross_compiling" = yes; then
2959 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2961 cat > conftest.
$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2965 #if !defined(__STDC__) || __STDC__ != 1
2969 volatile char c = 255; exit(c < 0);
2972 if { (eval echo configure
:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2974 ac_cv_c_char_unsigned
=yes
2976 echo "configure: failed program was:" >&5
2977 cat conftest.
$ac_ext >&5
2979 ac_cv_c_char_unsigned
=no
2987 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2988 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2989 cat >> confdefs.h
<<\EOF
2990 #define __CHAR_UNSIGNED__ 1
2996 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2997 echo "configure:2998: checking return type of signal handlers" >&5
2998 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 cat > conftest.
$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3004 #include <sys/types.h>
3010 extern "C" void (*signal (int, void (*)(int)))(int);
3012 void (*signal ()) ();
3019 if { (eval echo configure
:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3021 ac_cv_type_signal
=void
3023 echo "configure: failed program was:" >&5
3024 cat conftest.
$ac_ext >&5
3026 ac_cv_type_signal
=int
3031 echo "$ac_t""$ac_cv_type_signal" 1>&6
3032 cat >> confdefs.h
<<EOF
3033 #define RETSIGTYPE $ac_cv_type_signal
3037 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3038 echo "configure:3039: checking for uid_t in sys/types.h" >&5
3039 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3042 cat > conftest.
$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3045 #include <sys/types.h>
3047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3048 egrep "uid_t" >/dev
/null
2>&1; then
3050 ac_cv_type_uid_t
=yes
3059 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3060 if test $ac_cv_type_uid_t = no
; then
3061 cat >> confdefs.h
<<\EOF
3065 cat >> confdefs.h
<<\EOF
3071 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3072 echo "configure:3073: checking for mode_t" >&5
3073 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 cat > conftest.
$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 #include <sys/types.h>
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3088 ac_cv_type_mode_t
=yes
3091 ac_cv_type_mode_t
=no
3096 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3097 if test $ac_cv_type_mode_t = no
; then
3098 cat >> confdefs.h
<<\EOF
3104 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3105 echo "configure:3106: checking for off_t" >&5
3106 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 cat > conftest.
$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 #include <sys/types.h>
3118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3119 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3121 ac_cv_type_off_t
=yes
3129 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3130 if test $ac_cv_type_off_t = no
; then
3131 cat >> confdefs.h
<<\EOF
3137 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3138 echo "configure:3139: checking for size_t" >&5
3139 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 cat > conftest.
$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <sys/types.h>
3151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3152 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3154 ac_cv_type_size_t
=yes
3157 ac_cv_type_size_t
=no
3162 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3163 if test $ac_cv_type_size_t = no
; then
3164 cat >> confdefs.h
<<\EOF
3165 #define size_t unsigned
3170 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3171 echo "configure:3172: checking for pid_t" >&5
3172 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3175 cat > conftest.
$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <sys/types.h>
3184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3185 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3187 ac_cv_type_pid_t
=yes
3195 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3196 if test $ac_cv_type_pid_t = no
; then
3197 cat >> confdefs.h
<<\EOF
3203 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3204 echo "configure:3205: checking for st_rdev in struct stat" >&5
3205 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 cat > conftest.
$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 #include <sys/types.h>
3212 #include <sys/stat.h>
3214 struct stat s; s.st_rdev;
3217 if { (eval echo configure
:3218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219 ac_cv_struct_st_rdev
=yes
3221 echo "configure: failed program was:" >&5
3222 cat conftest.
$ac_ext >&5
3224 ac_cv_struct_st_rdev
=no
3229 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3230 if test $ac_cv_struct_st_rdev = yes; then
3231 cat >> confdefs.h
<<\EOF
3232 #define HAVE_ST_RDEV 1
3237 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3238 echo "configure:3239: checking for d_off in dirent" >&5
3239 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 cat > conftest.
$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3247 #include <sys/types.h>
3250 struct dirent d; d.d_off;
3253 if { (eval echo configure
:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255 ac_cv_dirent_d_off
=yes
3257 echo "configure: failed program was:" >&5
3258 cat conftest.
$ac_ext >&5
3260 ac_cv_dirent_d_off
=no
3265 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3266 if test $ac_cv_dirent_d_off = yes; then
3267 cat >> confdefs.h
<<\EOF
3268 #define HAVE_DIRENT_D_OFF 1
3273 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3274 echo "configure:3275: checking for ino_t" >&5
3275 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 cat > conftest.
$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 #include <sys/types.h>
3287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3288 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3290 ac_cv_type_ino_t
=yes
3298 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3299 if test $ac_cv_type_ino_t = no
; then
3300 cat >> confdefs.h
<<\EOF
3301 #define ino_t unsigned
3306 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3307 echo "configure:3308: checking for loff_t" >&5
3308 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3323 ac_cv_type_loff_t
=yes
3326 ac_cv_type_loff_t
=no
3331 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3332 if test $ac_cv_type_loff_t = no
; then
3333 cat >> confdefs.h
<<\EOF
3334 #define loff_t off_t
3339 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3340 echo "configure:3341: checking for offset_t" >&5
3341 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <sys/types.h>
3353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3354 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3356 ac_cv_type_offset_t
=yes
3359 ac_cv_type_offset_t
=no
3364 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3365 if test $ac_cv_type_offset_t = no
; then
3366 cat >> confdefs.h
<<\EOF
3367 #define offset_t loff_t
3372 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3373 echo "configure:3374: checking for ssize_t" >&5
3374 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 cat > conftest.
$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <sys/types.h>
3386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3387 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3389 ac_cv_type_ssize_t
=yes
3392 ac_cv_type_ssize_t
=no
3397 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3398 if test $ac_cv_type_ssize_t = no
; then
3399 cat >> confdefs.h
<<\EOF
3405 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3406 echo "configure:3407: checking for wchar_t" >&5
3407 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3422 ac_cv_type_wchar_t
=yes
3425 ac_cv_type_wchar_t
=no
3430 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3431 if test $ac_cv_type_wchar_t = no
; then
3432 cat >> confdefs.h
<<\EOF
3433 #define wchar_t unsigned short
3439 ############################################
3440 # for cups support we need libcups, and a handful of header files
3442 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3443 echo "configure:3444: checking for httpConnect in -lcups" >&5
3444 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 ac_save_LIBS
="$LIBS"
3450 cat > conftest.
$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 /* Override any gcc2 internal prototype to avoid an error. */
3454 /* We use char because int might match the return type of a gcc2
3455 builtin and then its argument prototype would still apply. */
3462 if { (eval echo configure
:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3464 eval "ac_cv_lib_$ac_lib_var=yes"
3466 echo "configure: failed program was:" >&5
3467 cat conftest.
$ac_ext >&5
3469 eval "ac_cv_lib_$ac_lib_var=no"
3472 LIBS
="$ac_save_LIBS"
3475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3479 cat >> confdefs.h
<<EOF
3480 #define $ac_tr_lib 1
3486 echo "$ac_t""no" 1>&6
3490 # I wonder if there is a nicer way of doing this?
3492 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3493 for ac_hdr
in cups
/cups.h cups
/language.h
3495 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3497 echo "configure:3498: checking for $ac_hdr" >&5
3498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.
$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3506 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3507 { (eval echo configure
:3508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3508 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3509 if test -z "$ac_err"; then
3511 eval "ac_cv_header_$ac_safe=yes"
3514 echo "configure: failed program was:" >&5
3515 cat conftest.
$ac_ext >&5
3517 eval "ac_cv_header_$ac_safe=no"
3521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3524 cat >> confdefs.h
<<EOF
3525 #define $ac_tr_hdr 1
3529 echo "$ac_t""no" 1>&6
3533 if x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3534 if x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3535 cat >> confdefs.h
<<\EOF
3543 ############################################
3544 # we need libdl for PAM and the new VFS code
3545 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3546 echo "configure:3547: checking for dlopen in -ldl" >&5
3547 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 ac_save_LIBS
="$LIBS"
3553 cat > conftest.
$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3556 /* Override any gcc2 internal prototype to avoid an error. */
3557 /* We use char because int might match the return type of a gcc2
3558 builtin and then its argument prototype would still apply. */
3565 if { (eval echo configure
:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3567 eval "ac_cv_lib_$ac_lib_var=yes"
3569 echo "configure: failed program was:" >&5
3570 cat conftest.
$ac_ext >&5
3572 eval "ac_cv_lib_$ac_lib_var=no"
3575 LIBS
="$ac_save_LIBS"
3578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3581 cat >> confdefs.h
<<\EOF
3582 #define HAVE_LIBDL 1
3586 echo "$ac_t""no" 1>&6
3590 ############################################
3591 # check for unix domain sockets
3592 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3593 echo "configure:3594: checking for unix domain sockets" >&5
3594 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3602 #include <sys/types.h>
3605 #include <sys/socket.h>
3609 struct sockaddr_un sunaddr;
3610 sunaddr.sun_family = AF_UNIX;
3614 if { (eval echo configure
:3615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3616 samba_cv_unixsocket
=yes
3618 echo "configure: failed program was:" >&5
3619 cat conftest.
$ac_ext >&5
3621 samba_cv_unixsocket
=no
3626 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3627 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3628 cat >> confdefs.h
<<\EOF
3629 #define HAVE_UNIXSOCKET 1
3634 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3635 echo "configure:3636: checking for socklen_t type" >&5
3636 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3640 cat > conftest.
$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3644 #include <sys/types.h>
3649 #include <sys/socket.h>
3654 if { (eval echo configure
:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656 samba_cv_socklen_t
=yes
3658 echo "configure: failed program was:" >&5
3659 cat conftest.
$ac_ext >&5
3661 samba_cv_socklen_t
=no
3666 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3667 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3668 cat >> confdefs.h
<<\EOF
3669 #define HAVE_SOCKLEN_T_TYPE 1
3674 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3675 echo "configure:3676: checking for sig_atomic_t type" >&5
3676 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3684 #include <sys/types.h>
3694 if { (eval echo configure
:3695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3696 samba_cv_sig_atomic_t
=yes
3698 echo "configure: failed program was:" >&5
3699 cat conftest.
$ac_ext >&5
3701 samba_cv_sig_atomic_t
=no
3706 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3707 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3708 cat >> confdefs.h
<<\EOF
3709 #define HAVE_SIG_ATOMIC_T_TYPE 1
3714 # stupid headers have the functions but no declaration. grrrr.
3716 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3717 echo "configure:3718: checking for errno declaration" >&5
3718 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3722 cat > conftest.
$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3730 if { (eval echo configure
:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3732 ac_cv_have_errno_decl
=yes
3734 echo "configure: failed program was:" >&5
3735 cat conftest.
$ac_ext >&5
3737 ac_cv_have_errno_decl
=no
3742 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3743 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3744 cat >> confdefs.h
<<\EOF
3745 #define HAVE_ERRNO_DECL 1
3751 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3752 echo "configure:3753: checking for setresuid declaration" >&5
3753 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3757 cat > conftest.
$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3762 int i = (int)setresuid
3765 if { (eval echo configure
:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3767 ac_cv_have_setresuid_decl
=yes
3769 echo "configure: failed program was:" >&5
3770 cat conftest.
$ac_ext >&5
3772 ac_cv_have_setresuid_decl
=no
3777 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3778 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3779 cat >> confdefs.h
<<\EOF
3780 #define HAVE_SETRESUID_DECL 1
3786 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3787 echo "configure:3788: checking for setresgid declaration" >&5
3788 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3792 cat > conftest.
$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3797 int i = (int)setresgid
3800 if { (eval echo configure
:3801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3802 ac_cv_have_setresgid_decl
=yes
3804 echo "configure: failed program was:" >&5
3805 cat conftest.
$ac_ext >&5
3807 ac_cv_have_setresgid_decl
=no
3812 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3813 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3814 cat >> confdefs.h
<<\EOF
3815 #define HAVE_SETRESGID_DECL 1
3821 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3822 echo "configure:3823: checking for asprintf declaration" >&5
3823 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3827 cat > conftest.
$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3832 int i = (int)asprintf
3835 if { (eval echo configure
:3836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3837 ac_cv_have_asprintf_decl
=yes
3839 echo "configure: failed program was:" >&5
3840 cat conftest.
$ac_ext >&5
3842 ac_cv_have_asprintf_decl
=no
3847 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3848 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3849 cat >> confdefs.h
<<\EOF
3850 #define HAVE_ASPRINTF_DECL 1
3856 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3857 echo "configure:3858: checking for vasprintf declaration" >&5
3858 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.
$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3867 int i = (int)vasprintf
3870 if { (eval echo configure
:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3872 ac_cv_have_vasprintf_decl
=yes
3874 echo "configure: failed program was:" >&5
3875 cat conftest.
$ac_ext >&5
3877 ac_cv_have_vasprintf_decl
=no
3882 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3883 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3884 cat >> confdefs.h
<<\EOF
3885 #define HAVE_VASPRINTF_DECL 1
3891 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3892 echo "configure:3893: checking for vsnprintf declaration" >&5
3893 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.
$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3902 int i = (int)vsnprintf
3905 if { (eval echo configure
:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3907 ac_cv_have_vsnprintf_decl
=yes
3909 echo "configure: failed program was:" >&5
3910 cat conftest.
$ac_ext >&5
3912 ac_cv_have_vsnprintf_decl
=no
3917 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3918 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
3919 cat >> confdefs.h
<<\EOF
3920 #define HAVE_VSNPRINTF_DECL 1
3926 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3927 echo "configure:3928: checking for snprintf declaration" >&5
3928 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3932 cat > conftest.
$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3937 int i = (int)snprintf
3940 if { (eval echo configure
:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3942 ac_cv_have_snprintf_decl
=yes
3944 echo "configure: failed program was:" >&5
3945 cat conftest.
$ac_ext >&5
3947 ac_cv_have_snprintf_decl
=no
3952 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3953 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
3954 cat >> confdefs.h
<<\EOF
3955 #define HAVE_SNPRINTF_DECL 1
3961 # and glibc has setresuid under linux but the function does
3962 # nothing until kernel 2.1.44! very dumb.
3963 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3964 echo "configure:3965: checking for real setresuid" >&5
3965 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3969 if test "$cross_compiling" = yes; then
3970 samba_cv_have_setresuid
=cross
3972 cat > conftest.
$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3976 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3978 if { (eval echo configure
:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3980 samba_cv_have_setresuid
=yes
3982 echo "configure: failed program was:" >&5
3983 cat conftest.
$ac_ext >&5
3985 samba_cv_have_setresuid
=no
3992 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3993 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3994 cat >> confdefs.h
<<\EOF
3995 #define HAVE_SETRESUID 1
4000 # Do the same check for setresguid...
4002 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4003 echo "configure:4004: checking for real setresgid" >&5
4004 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4008 if test "$cross_compiling" = yes; then
4009 samba_cv_have_setresgid
=cross
4011 cat > conftest.
$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4016 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4018 if { (eval echo configure
:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4020 samba_cv_have_setresgid
=yes
4022 echo "configure: failed program was:" >&5
4023 cat conftest.
$ac_ext >&5
4025 samba_cv_have_setresgid
=no
4032 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4033 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4034 cat >> confdefs.h
<<\EOF
4035 #define HAVE_SETRESGID 1
4040 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4041 echo "configure:4042: checking for 8-bit clean memcmp" >&5
4042 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 if test "$cross_compiling" = yes; then
4046 ac_cv_func_memcmp_clean
=no
4048 cat > conftest.
$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4054 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4055 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4059 if { (eval echo configure
:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4061 ac_cv_func_memcmp_clean
=yes
4063 echo "configure: failed program was:" >&5
4064 cat conftest.
$ac_ext >&5
4066 ac_cv_func_memcmp_clean
=no
4073 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4074 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4077 ###############################################
4078 # Readline included by default unless explicitly asked not to
4079 test "${with_readline+set}" != "set" && with_readline
=yes
4081 # test for where we get readline() from
4082 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4083 echo "configure:4084: checking whether to use readline" >&5
4084 # Check whether --with-readline or --without-readline was given.
4085 if test "${with_readline+set}" = set; then
4086 withval
="$with_readline"
4087 case "$with_readline" in
4089 echo "$ac_t""yes" 1>&6
4091 for ac_hdr
in readline.h
history.h readline
/readline.h
4093 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4095 echo "configure:4096: checking for $ac_hdr" >&5
4096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 cat > conftest.
$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4104 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4105 { (eval echo configure
:4106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4106 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4107 if test -z "$ac_err"; then
4109 eval "ac_cv_header_$ac_safe=yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.
$ac_ext >&5
4115 eval "ac_cv_header_$ac_safe=no"
4119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4120 echo "$ac_t""yes" 1>&6
4121 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4122 cat >> confdefs.h
<<EOF
4123 #define $ac_tr_hdr 1
4127 echo "$ac_t""no" 1>&6
4131 for ac_hdr
in readline
/history.h
4133 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_hdr" >&5
4136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 cat > conftest.
$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4144 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4145 { (eval echo configure
:4146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4146 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4147 if test -z "$ac_err"; then
4149 eval "ac_cv_header_$ac_safe=yes"
4152 echo "configure: failed program was:" >&5
4153 cat conftest.
$ac_ext >&5
4155 eval "ac_cv_header_$ac_safe=no"
4159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4161 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4162 cat >> confdefs.h
<<EOF
4163 #define $ac_tr_hdr 1
4167 echo "$ac_t""no" 1>&6
4172 for ac_hdr
in readline.h readline
/readline.h
4174 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4176 echo "configure:4177: checking for $ac_hdr" >&5
4177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 cat > conftest.
$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4185 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4186 { (eval echo configure
:4187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4187 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4188 if test -z "$ac_err"; then
4190 eval "ac_cv_header_$ac_safe=yes"
4193 echo "configure: failed program was:" >&5
4194 cat conftest.
$ac_ext >&5
4196 eval "ac_cv_header_$ac_safe=no"
4200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4201 echo "$ac_t""yes" 1>&6
4202 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4203 cat >> confdefs.h
<<EOF
4204 #define $ac_tr_hdr 1
4207 for termlib
in ncurses curses termcap terminfo termlib
; do
4208 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4209 echo "configure:4210: checking for tgetent in -l${termlib}" >&5
4210 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 ac_save_LIBS
="$LIBS"
4215 LIBS
="-l${termlib} $LIBS"
4216 cat > conftest.
$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4228 if { (eval echo configure
:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4235 eval "ac_cv_lib_$ac_lib_var=no"
4238 LIBS
="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 TERMLIBS
="-l${termlib}"; break
4245 echo "$ac_t""no" 1>&6
4249 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4250 echo "configure:4251: checking for rl_callback_handler_install in -lreadline" >&5
4251 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 ac_save_LIBS
="$LIBS"
4256 LIBS
="-lreadline $TERMLIBS $LIBS"
4257 cat > conftest.
$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4263 char rl_callback_handler_install();
4266 rl_callback_handler_install()
4269 if { (eval echo configure
:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4271 eval "ac_cv_lib_$ac_lib_var=yes"
4273 echo "configure: failed program was:" >&5
4274 cat conftest.
$ac_ext >&5
4276 eval "ac_cv_lib_$ac_lib_var=no"
4279 LIBS
="$ac_save_LIBS"
4282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 TERMLIBS
="-lreadline $TERMLIBS"
4285 cat >> confdefs.h
<<\EOF
4286 #define HAVE_LIBREADLINE 1
4291 echo "$ac_t""no" 1>&6
4296 echo "$ac_t""no" 1>&6
4302 echo "$ac_t""no" 1>&6
4305 echo "$ac_t""yes" 1>&6
4307 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4308 # alternate readline path
4310 _cppflags
=${CPPFLAGS}
4312 # Add additional search path
4313 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4314 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4316 for ac_hdr
in readline.h
history.h readline
/readline.h
4318 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4320 echo "configure:4321: checking for $ac_hdr" >&5
4321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 cat > conftest.
$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4329 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4330 { (eval echo configure
:4331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4331 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4332 if test -z "$ac_err"; then
4334 eval "ac_cv_header_$ac_safe=yes"
4337 echo "configure: failed program was:" >&5
4338 cat conftest.
$ac_ext >&5
4340 eval "ac_cv_header_$ac_safe=no"
4344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4345 echo "$ac_t""yes" 1>&6
4346 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4347 cat >> confdefs.h
<<EOF
4348 #define $ac_tr_hdr 1
4352 echo "$ac_t""no" 1>&6
4356 for ac_hdr
in readline
/history.h
4358 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4360 echo "configure:4361: checking for $ac_hdr" >&5
4361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4364 cat > conftest.
$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4369 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4370 { (eval echo configure
:4371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4371 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4372 if test -z "$ac_err"; then
4374 eval "ac_cv_header_$ac_safe=yes"
4377 echo "configure: failed program was:" >&5
4378 cat conftest.
$ac_ext >&5
4380 eval "ac_cv_header_$ac_safe=no"
4384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4386 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4387 cat >> confdefs.h
<<EOF
4388 #define $ac_tr_hdr 1
4392 echo "$ac_t""no" 1>&6
4397 for ac_hdr
in readline.h readline
/readline.h
4399 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4401 echo "configure:4402: checking for $ac_hdr" >&5
4402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 cat > conftest.
$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4410 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4411 { (eval echo configure
:4412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4412 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4413 if test -z "$ac_err"; then
4415 eval "ac_cv_header_$ac_safe=yes"
4418 echo "configure: failed program was:" >&5
4419 cat conftest.
$ac_ext >&5
4421 eval "ac_cv_header_$ac_safe=no"
4425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4427 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4428 cat >> confdefs.h
<<EOF
4429 #define $ac_tr_hdr 1
4432 for termlib
in ncurses curses termcap terminfo termlib
; do
4433 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4434 echo "configure:4435: checking for tgetent in -l${termlib}" >&5
4435 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 ac_save_LIBS
="$LIBS"
4440 LIBS
="-l${termlib} $LIBS"
4441 cat > conftest.
$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 /* Override any gcc2 internal prototype to avoid an error. */
4445 /* We use char because int might match the return type of a gcc2
4446 builtin and then its argument prototype would still apply. */
4453 if { (eval echo configure
:4454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4455 eval "ac_cv_lib_$ac_lib_var=yes"
4457 echo "configure: failed program was:" >&5
4458 cat conftest.
$ac_ext >&5
4460 eval "ac_cv_lib_$ac_lib_var=no"
4463 LIBS
="$ac_save_LIBS"
4466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4467 echo "$ac_t""yes" 1>&6
4468 TERMLIBS
="-l${termlib}"; break
4470 echo "$ac_t""no" 1>&6
4474 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4475 echo "configure:4476: checking for rl_callback_handler_install in -lreadline" >&5
4476 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 ac_save_LIBS
="$LIBS"
4481 LIBS
="-lreadline $TERMLIBS $LIBS"
4482 cat > conftest.
$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4485 /* Override any gcc2 internal prototype to avoid an error. */
4486 /* We use char because int might match the return type of a gcc2
4487 builtin and then its argument prototype would still apply. */
4488 char rl_callback_handler_install();
4491 rl_callback_handler_install()
4494 if { (eval echo configure
:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4496 eval "ac_cv_lib_$ac_lib_var=yes"
4498 echo "configure: failed program was:" >&5
4499 cat conftest.
$ac_ext >&5
4501 eval "ac_cv_lib_$ac_lib_var=no"
4504 LIBS
="$ac_save_LIBS"
4507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6
4509 TERMLDFLAGS
="-L$with_readline/lib"
4510 TERMCPPFLAGS
="-I$with_readline/include"
4511 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4512 TERMLIBS
="-lreadline $TERMLIBS"
4513 cat >> confdefs.h
<<\EOF
4514 #define HAVE_LIBREADLINE 1
4519 echo "$ac_t""no" 1>&6
4520 TERMLIBS
= CPPFLAGS
=$_cppflags
4524 echo "$ac_t""no" 1>&6
4533 echo "$ac_t""no" 1>&6
4540 # The following test taken from the cvs sources
4541 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4542 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4543 # libsocket.so which has a bad implementation of gethostbyname (it
4544 # only looks in /etc/hosts), so we only look for -lsocket if we need
4546 for ac_func
in connect
4548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4549 echo "configure:4550: checking for $ac_func" >&5
4550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 /* System header to define __stub macros and hopefully few prototypes,
4557 which can conflict with char $ac_func(); below. */
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4566 /* The GNU C library defines this for functions which it implements
4567 to always fail with ENOSYS. Some functions are actually named
4568 something starting with __ and the normal name is an alias. */
4569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4577 if { (eval echo configure
:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4579 eval "ac_cv_func_$ac_func=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.
$ac_ext >&5
4584 eval "ac_cv_func_$ac_func=no"
4589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4591 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4592 cat >> confdefs.h
<<EOF
4593 #define $ac_tr_func 1
4597 echo "$ac_t""no" 1>&6
4601 if test x
"$ac_cv_func_connect" = x
"no"; then
4604 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4605 echo "configure:4606: checking for printf in -lnsl_s" >&5
4606 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4610 ac_save_LIBS
="$LIBS"
4611 LIBS
="-lnsl_s $LIBS"
4612 cat > conftest.
$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4624 if { (eval echo configure
:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4626 eval "ac_cv_lib_$ac_lib_var=yes"
4628 echo "configure: failed program was:" >&5
4629 cat conftest.
$ac_ext >&5
4631 eval "ac_cv_lib_$ac_lib_var=no"
4634 LIBS
="$ac_save_LIBS"
4637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4639 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4641 cat >> confdefs.h
<<EOF
4642 #define $ac_tr_lib 1
4645 LIBS
="-lnsl_s $LIBS"
4648 echo "$ac_t""no" 1>&6
4654 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4655 echo "configure:4656: checking for printf in -lnsl" >&5
4656 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 ac_save_LIBS
="$LIBS"
4662 cat > conftest.
$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4674 if { (eval echo configure
:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4676 eval "ac_cv_lib_$ac_lib_var=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.
$ac_ext >&5
4681 eval "ac_cv_lib_$ac_lib_var=no"
4684 LIBS
="$ac_save_LIBS"
4687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4689 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4690 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4691 cat >> confdefs.h
<<EOF
4692 #define $ac_tr_lib 1
4698 echo "$ac_t""no" 1>&6
4704 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4705 echo "configure:4706: checking for connect in -lsocket" >&5
4706 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 ac_save_LIBS
="$LIBS"
4711 LIBS
="-lsocket $LIBS"
4712 cat > conftest.
$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 /* Override any gcc2 internal prototype to avoid an error. */
4716 /* We use char because int might match the return type of a gcc2
4717 builtin and then its argument prototype would still apply. */
4724 if { (eval echo configure
:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4726 eval "ac_cv_lib_$ac_lib_var=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 eval "ac_cv_lib_$ac_lib_var=no"
4734 LIBS
="$ac_save_LIBS"
4737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4738 echo "$ac_t""yes" 1>&6
4739 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4740 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4741 cat >> confdefs.h
<<EOF
4742 #define $ac_tr_lib 1
4745 LIBS
="-lsocket $LIBS"
4748 echo "$ac_t""no" 1>&6
4754 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4755 echo "configure:4756: checking for connect in -linet" >&5
4756 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4760 ac_save_LIBS
="$LIBS"
4762 cat > conftest.
$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 /* Override any gcc2 internal prototype to avoid an error. */
4766 /* We use char because int might match the return type of a gcc2
4767 builtin and then its argument prototype would still apply. */
4774 if { (eval echo configure
:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4776 eval "ac_cv_lib_$ac_lib_var=yes"
4778 echo "configure: failed program was:" >&5
4779 cat conftest.
$ac_ext >&5
4781 eval "ac_cv_lib_$ac_lib_var=no"
4784 LIBS
="$ac_save_LIBS"
4787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4788 echo "$ac_t""yes" 1>&6
4789 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4790 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4791 cat >> confdefs.h
<<EOF
4792 #define $ac_tr_lib 1
4798 echo "$ac_t""no" 1>&6
4802 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4803 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4804 # ac_cv_func_connect=yes
4805 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4806 cat >> confdefs.h
<<\EOF
4807 #define HAVE_CONNECT 1
4813 ###############################################
4814 # test for where we get get_yp_default_domain() from
4815 for ac_func
in yp_get_default_domain
4817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_func" >&5
4819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 cat > conftest.
$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 /* System header to define __stub macros and hopefully few prototypes,
4826 which can conflict with char $ac_func(); below. */
4828 /* Override any gcc2 internal prototype to avoid an error. */
4829 /* We use char because int might match the return type of a gcc2
4830 builtin and then its argument prototype would still apply. */
4835 /* The GNU C library defines this for functions which it implements
4836 to always fail with ENOSYS. Some functions are actually named
4837 something starting with __ and the normal name is an alias. */
4838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4846 if { (eval echo configure
:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4848 eval "ac_cv_func_$ac_func=yes"
4850 echo "configure: failed program was:" >&5
4851 cat conftest.
$ac_ext >&5
4853 eval "ac_cv_func_$ac_func=no"
4858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4861 cat >> confdefs.h
<<EOF
4862 #define $ac_tr_func 1
4866 echo "$ac_t""no" 1>&6
4870 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4871 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4872 echo "configure:4873: checking for yp_get_default_domain in -lnsl" >&5
4873 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 ac_save_LIBS
="$LIBS"
4879 cat > conftest.
$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 /* Override any gcc2 internal prototype to avoid an error. */
4883 /* We use char because int might match the return type of a gcc2
4884 builtin and then its argument prototype would still apply. */
4885 char yp_get_default_domain();
4888 yp_get_default_domain()
4891 if { (eval echo configure
:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4893 eval "ac_cv_lib_$ac_lib_var=yes"
4895 echo "configure: failed program was:" >&5
4896 cat conftest.
$ac_ext >&5
4898 eval "ac_cv_lib_$ac_lib_var=no"
4901 LIBS
="$ac_save_LIBS"
4904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4905 echo "$ac_t""yes" 1>&6
4907 cat >> confdefs.h
<<\EOF
4908 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4912 echo "$ac_t""no" 1>&6
4917 # Check if we have execl, if not we need to compile smbrun.
4918 for ac_func
in execl
4920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4921 echo "configure:4922: checking for $ac_func" >&5
4922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4925 cat > conftest.
$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* System header to define __stub macros and hopefully few prototypes,
4929 which can conflict with char $ac_func(); below. */
4931 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4949 if { (eval echo configure
:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4951 eval "ac_cv_func_$ac_func=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.
$ac_ext >&5
4956 eval "ac_cv_func_$ac_func=no"
4961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4963 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4964 cat >> confdefs.h
<<EOF
4965 #define $ac_tr_func 1
4969 echo "$ac_t""no" 1>&6
4973 if test x
"$ac_cv_func_execl" = x
"no"; then
4974 RUNPROG
="bin/smbrun"
4979 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
4981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4982 echo "configure:4983: checking for $ac_func" >&5
4983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4986 cat > conftest.
$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4989 /* System header to define __stub macros and hopefully few prototypes,
4990 which can conflict with char $ac_func(); below. */
4992 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4999 /* The GNU C library defines this for functions which it implements
5000 to always fail with ENOSYS. Some functions are actually named
5001 something starting with __ and the normal name is an alias. */
5002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5010 if { (eval echo configure
:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5012 eval "ac_cv_func_$ac_func=yes"
5014 echo "configure: failed program was:" >&5
5015 cat conftest.
$ac_ext >&5
5017 eval "ac_cv_func_$ac_func=no"
5022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5025 cat >> confdefs.h
<<EOF
5026 #define $ac_tr_func 1
5030 echo "$ac_t""no" 1>&6
5034 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5037 echo "configure:5038: checking for $ac_func" >&5
5038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 cat > conftest.
$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char $ac_func(); below. */
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5054 /* The GNU C library defines this for functions which it implements
5055 to always fail with ENOSYS. Some functions are actually named
5056 something starting with __ and the normal name is an alias. */
5057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065 if { (eval echo configure
:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5067 eval "ac_cv_func_$ac_func=yes"
5069 echo "configure: failed program was:" >&5
5070 cat conftest.
$ac_ext >&5
5072 eval "ac_cv_func_$ac_func=no"
5077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5080 cat >> confdefs.h
<<EOF
5081 #define $ac_tr_func 1
5085 echo "$ac_t""no" 1>&6
5089 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5092 echo "configure:5093: checking for $ac_func" >&5
5093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 cat > conftest.
$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* System header to define __stub macros and hopefully few prototypes,
5100 which can conflict with char $ac_func(); below. */
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5120 if { (eval echo configure
:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5122 eval "ac_cv_func_$ac_func=yes"
5124 echo "configure: failed program was:" >&5
5125 cat conftest.
$ac_ext >&5
5127 eval "ac_cv_func_$ac_func=no"
5132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5134 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5135 cat >> confdefs.h
<<EOF
5136 #define $ac_tr_func 1
5140 echo "$ac_t""no" 1>&6
5144 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_func" >&5
5148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 cat > conftest.
$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char $ac_func(); below. */
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5175 if { (eval echo configure
:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5177 eval "ac_cv_func_$ac_func=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.
$ac_ext >&5
5182 eval "ac_cv_func_$ac_func=no"
5187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5190 cat >> confdefs.h
<<EOF
5191 #define $ac_tr_func 1
5195 echo "$ac_t""no" 1>&6
5199 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_func" >&5
5203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 cat > conftest.
$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func(); below. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5219 /* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5230 if { (eval echo configure
:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5232 eval "ac_cv_func_$ac_func=yes"
5234 echo "configure: failed program was:" >&5
5235 cat conftest.
$ac_ext >&5
5237 eval "ac_cv_func_$ac_func=no"
5242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5244 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5245 cat >> confdefs.h
<<EOF
5246 #define $ac_tr_func 1
5250 echo "$ac_t""no" 1>&6
5254 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_func" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.
$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char $ac_func(); below. */
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5285 if { (eval echo configure
:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5287 eval "ac_cv_func_$ac_func=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.
$ac_ext >&5
5292 eval "ac_cv_func_$ac_func=no"
5297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5300 cat >> confdefs.h
<<EOF
5301 #define $ac_tr_func 1
5305 echo "$ac_t""no" 1>&6
5309 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5312 echo "configure:5313: checking for $ac_func" >&5
5313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.
$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* System header to define __stub macros and hopefully few prototypes,
5320 which can conflict with char $ac_func(); below. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5340 if { (eval echo configure
:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5342 eval "ac_cv_func_$ac_func=yes"
5344 echo "configure: failed program was:" >&5
5345 cat conftest.
$ac_ext >&5
5347 eval "ac_cv_func_$ac_func=no"
5352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5354 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5355 cat >> confdefs.h
<<EOF
5356 #define $ac_tr_func 1
5360 echo "$ac_t""no" 1>&6
5364 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_func" >&5
5368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 cat > conftest.
$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 /* System header to define __stub macros and hopefully few prototypes,
5375 which can conflict with char $ac_func(); below. */
5377 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5384 /* The GNU C library defines this for functions which it implements
5385 to always fail with ENOSYS. Some functions are actually named
5386 something starting with __ and the normal name is an alias. */
5387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5395 if { (eval echo configure
:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5397 eval "ac_cv_func_$ac_func=yes"
5399 echo "configure: failed program was:" >&5
5400 cat conftest.
$ac_ext >&5
5402 eval "ac_cv_func_$ac_func=no"
5407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5408 echo "$ac_t""yes" 1>&6
5409 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5410 cat >> confdefs.h
<<EOF
5411 #define $ac_tr_func 1
5415 echo "$ac_t""no" 1>&6
5419 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5422 echo "configure:5423: checking for $ac_func" >&5
5423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 cat > conftest.
$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 /* System header to define __stub macros and hopefully few prototypes,
5430 which can conflict with char $ac_func(); below. */
5432 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5439 /* The GNU C library defines this for functions which it implements
5440 to always fail with ENOSYS. Some functions are actually named
5441 something starting with __ and the normal name is an alias. */
5442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5450 if { (eval echo configure
:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5452 eval "ac_cv_func_$ac_func=yes"
5454 echo "configure: failed program was:" >&5
5455 cat conftest.
$ac_ext >&5
5457 eval "ac_cv_func_$ac_func=no"
5462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5464 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5465 cat >> confdefs.h
<<EOF
5466 #define $ac_tr_func 1
5470 echo "$ac_t""no" 1>&6
5475 # syscall() is needed for smbwrapper.
5476 for ac_func
in syscall
5478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5479 echo "configure:5480: checking for $ac_func" >&5
5480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 cat > conftest.
$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5486 /* System header to define __stub macros and hopefully few prototypes,
5487 which can conflict with char $ac_func(); below. */
5489 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5496 /* The GNU C library defines this for functions which it implements
5497 to always fail with ENOSYS. Some functions are actually named
5498 something starting with __ and the normal name is an alias. */
5499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5507 if { (eval echo configure
:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5509 eval "ac_cv_func_$ac_func=yes"
5511 echo "configure: failed program was:" >&5
5512 cat conftest.
$ac_ext >&5
5514 eval "ac_cv_func_$ac_func=no"
5519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5522 cat >> confdefs.h
<<EOF
5523 #define $ac_tr_func 1
5527 echo "$ac_t""no" 1>&6
5532 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_func" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.
$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char $ac_func(); below. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5563 if { (eval echo configure
:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5565 eval "ac_cv_func_$ac_func=yes"
5567 echo "configure: failed program was:" >&5
5568 cat conftest.
$ac_ext >&5
5570 eval "ac_cv_func_$ac_func=no"
5575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5578 cat >> confdefs.h
<<EOF
5579 #define $ac_tr_func 1
5583 echo "$ac_t""no" 1>&6
5587 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_func" >&5
5591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 cat > conftest.
$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func(); below. */
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5607 /* The GNU C library defines this for functions which it implements
5608 to always fail with ENOSYS. Some functions are actually named
5609 something starting with __ and the normal name is an alias. */
5610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5618 if { (eval echo configure
:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5620 eval "ac_cv_func_$ac_func=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.
$ac_ext >&5
5625 eval "ac_cv_func_$ac_func=no"
5630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633 cat >> confdefs.h
<<EOF
5634 #define $ac_tr_func 1
5638 echo "$ac_t""no" 1>&6
5642 for ac_func
in __getcwd _getcwd
5644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5645 echo "configure:5646: checking for $ac_func" >&5
5646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5649 cat > conftest.
$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* System header to define __stub macros and hopefully few prototypes,
5653 which can conflict with char $ac_func(); below. */
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5662 /* The GNU C library defines this for functions which it implements
5663 to always fail with ENOSYS. Some functions are actually named
5664 something starting with __ and the normal name is an alias. */
5665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5673 if { (eval echo configure
:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5675 eval "ac_cv_func_$ac_func=yes"
5677 echo "configure: failed program was:" >&5
5678 cat conftest.
$ac_ext >&5
5680 eval "ac_cv_func_$ac_func=no"
5685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5688 cat >> confdefs.h
<<EOF
5689 #define $ac_tr_func 1
5693 echo "$ac_t""no" 1>&6
5697 for ac_func
in __xstat __fxstat __lxstat
5699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5700 echo "configure:5701: checking for $ac_func" >&5
5701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5704 cat > conftest.
$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 /* System header to define __stub macros and hopefully few prototypes,
5708 which can conflict with char $ac_func(); below. */
5710 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5717 /* The GNU C library defines this for functions which it implements
5718 to always fail with ENOSYS. Some functions are actually named
5719 something starting with __ and the normal name is an alias. */
5720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728 if { (eval echo configure
:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5730 eval "ac_cv_func_$ac_func=yes"
5732 echo "configure: failed program was:" >&5
5733 cat conftest.
$ac_ext >&5
5735 eval "ac_cv_func_$ac_func=no"
5740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5741 echo "$ac_t""yes" 1>&6
5742 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5743 cat >> confdefs.h
<<EOF
5744 #define $ac_tr_func 1
5748 echo "$ac_t""no" 1>&6
5752 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5755 echo "configure:5756: checking for $ac_func" >&5
5756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.
$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 /* System header to define __stub macros and hopefully few prototypes,
5763 which can conflict with char $ac_func(); below. */
5765 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5772 /* The GNU C library defines this for functions which it implements
5773 to always fail with ENOSYS. Some functions are actually named
5774 something starting with __ and the normal name is an alias. */
5775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5783 if { (eval echo configure
:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5785 eval "ac_cv_func_$ac_func=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.
$ac_ext >&5
5790 eval "ac_cv_func_$ac_func=no"
5795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5796 echo "$ac_t""yes" 1>&6
5797 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5798 cat >> confdefs.h
<<EOF
5799 #define $ac_tr_func 1
5803 echo "$ac_t""no" 1>&6
5807 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5810 echo "configure:5811: checking for $ac_func" >&5
5811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 cat > conftest.
$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 /* System header to define __stub macros and hopefully few prototypes,
5818 which can conflict with char $ac_func(); below. */
5820 /* Override any gcc2 internal prototype to avoid an error. */
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5827 /* The GNU C library defines this for functions which it implements
5828 to always fail with ENOSYS. Some functions are actually named
5829 something starting with __ and the normal name is an alias. */
5830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5838 if { (eval echo configure
:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5840 eval "ac_cv_func_$ac_func=yes"
5842 echo "configure: failed program was:" >&5
5843 cat conftest.
$ac_ext >&5
5845 eval "ac_cv_func_$ac_func=no"
5850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5851 echo "$ac_t""yes" 1>&6
5852 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5853 cat >> confdefs.h
<<EOF
5854 #define $ac_tr_func 1
5858 echo "$ac_t""no" 1>&6
5862 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5865 echo "configure:5866: checking for $ac_func" >&5
5866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6
5869 cat > conftest.
$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5872 /* System header to define __stub macros and hopefully few prototypes,
5873 which can conflict with char $ac_func(); below. */
5875 /* Override any gcc2 internal prototype to avoid an error. */
5876 /* We use char because int might match the return type of a gcc2
5877 builtin and then its argument prototype would still apply. */
5882 /* The GNU C library defines this for functions which it implements
5883 to always fail with ENOSYS. Some functions are actually named
5884 something starting with __ and the normal name is an alias. */
5885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5893 if { (eval echo configure
:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5895 eval "ac_cv_func_$ac_func=yes"
5897 echo "configure: failed program was:" >&5
5898 cat conftest.
$ac_ext >&5
5900 eval "ac_cv_func_$ac_func=no"
5905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5906 echo "$ac_t""yes" 1>&6
5907 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5908 cat >> confdefs.h
<<EOF
5909 #define $ac_tr_func 1
5913 echo "$ac_t""no" 1>&6
5917 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5920 echo "configure:5921: checking for $ac_func" >&5
5921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5924 cat > conftest.
$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 /* System header to define __stub macros and hopefully few prototypes,
5928 which can conflict with char $ac_func(); below. */
5930 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5937 /* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5948 if { (eval echo configure
:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5950 eval "ac_cv_func_$ac_func=yes"
5952 echo "configure: failed program was:" >&5
5953 cat conftest.
$ac_ext >&5
5955 eval "ac_cv_func_$ac_func=no"
5960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5961 echo "$ac_t""yes" 1>&6
5962 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5963 cat >> confdefs.h
<<EOF
5964 #define $ac_tr_func 1
5968 echo "$ac_t""no" 1>&6
5972 for ac_func
in _write __write _fork __fork
5974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5975 echo "configure:5976: checking for $ac_func" >&5
5976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5979 cat > conftest.
$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5982 /* System header to define __stub macros and hopefully few prototypes,
5983 which can conflict with char $ac_func(); below. */
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5992 /* The GNU C library defines this for functions which it implements
5993 to always fail with ENOSYS. Some functions are actually named
5994 something starting with __ and the normal name is an alias. */
5995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003 if { (eval echo configure
:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6005 eval "ac_cv_func_$ac_func=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.
$ac_ext >&5
6010 eval "ac_cv_func_$ac_func=no"
6015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6017 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6018 cat >> confdefs.h
<<EOF
6019 #define $ac_tr_func 1
6023 echo "$ac_t""no" 1>&6
6027 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_func" >&5
6031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6034 cat > conftest.
$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 /* System header to define __stub macros and hopefully few prototypes,
6038 which can conflict with char $ac_func(); below. */
6040 /* Override any gcc2 internal prototype to avoid an error. */
6041 /* We use char because int might match the return type of a gcc2
6042 builtin and then its argument prototype would still apply. */
6047 /* The GNU C library defines this for functions which it implements
6048 to always fail with ENOSYS. Some functions are actually named
6049 something starting with __ and the normal name is an alias. */
6050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6058 if { (eval echo configure
:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6060 eval "ac_cv_func_$ac_func=yes"
6062 echo "configure: failed program was:" >&5
6063 cat conftest.
$ac_ext >&5
6065 eval "ac_cv_func_$ac_func=no"
6070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6071 echo "$ac_t""yes" 1>&6
6072 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6073 cat >> confdefs.h
<<EOF
6074 #define $ac_tr_func 1
6078 echo "$ac_t""no" 1>&6
6082 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6085 echo "configure:6086: checking for $ac_func" >&5
6086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6089 cat > conftest.
$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 /* System header to define __stub macros and hopefully few prototypes,
6093 which can conflict with char $ac_func(); below. */
6095 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6102 /* The GNU C library defines this for functions which it implements
6103 to always fail with ENOSYS. Some functions are actually named
6104 something starting with __ and the normal name is an alias. */
6105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6113 if { (eval echo configure
:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6115 eval "ac_cv_func_$ac_func=yes"
6117 echo "configure: failed program was:" >&5
6118 cat conftest.
$ac_ext >&5
6120 eval "ac_cv_func_$ac_func=no"
6125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6126 echo "$ac_t""yes" 1>&6
6127 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6128 cat >> confdefs.h
<<EOF
6129 #define $ac_tr_func 1
6133 echo "$ac_t""no" 1>&6
6137 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6140 echo "configure:6141: checking for $ac_func" >&5
6141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6144 cat > conftest.
$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6147 /* System header to define __stub macros and hopefully few prototypes,
6148 which can conflict with char $ac_func(); below. */
6150 /* Override any gcc2 internal prototype to avoid an error. */
6151 /* We use char because int might match the return type of a gcc2
6152 builtin and then its argument prototype would still apply. */
6157 /* The GNU C library defines this for functions which it implements
6158 to always fail with ENOSYS. Some functions are actually named
6159 something starting with __ and the normal name is an alias. */
6160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6168 if { (eval echo configure
:6169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6170 eval "ac_cv_func_$ac_func=yes"
6172 echo "configure: failed program was:" >&5
6173 cat conftest.
$ac_ext >&5
6175 eval "ac_cv_func_$ac_func=no"
6180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6182 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6183 cat >> confdefs.h
<<EOF
6184 #define $ac_tr_func 1
6188 echo "$ac_t""no" 1>&6
6192 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6195 echo "configure:6196: checking for $ac_func" >&5
6196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6199 cat > conftest.
$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6202 /* System header to define __stub macros and hopefully few prototypes,
6203 which can conflict with char $ac_func(); below. */
6205 /* Override any gcc2 internal prototype to avoid an error. */
6206 /* We use char because int might match the return type of a gcc2
6207 builtin and then its argument prototype would still apply. */
6212 /* The GNU C library defines this for functions which it implements
6213 to always fail with ENOSYS. Some functions are actually named
6214 something starting with __ and the normal name is an alias. */
6215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6223 if { (eval echo configure
:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6225 eval "ac_cv_func_$ac_func=yes"
6227 echo "configure: failed program was:" >&5
6228 cat conftest.
$ac_ext >&5
6230 eval "ac_cv_func_$ac_func=no"
6235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6236 echo "$ac_t""yes" 1>&6
6237 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6238 cat >> confdefs.h
<<EOF
6239 #define $ac_tr_func 1
6243 echo "$ac_t""no" 1>&6
6247 for ac_func
in open64 _open64 __open64 creat64
6249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6250 echo "configure:6251: checking for $ac_func" >&5
6251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6254 cat > conftest.
$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 /* System header to define __stub macros and hopefully few prototypes,
6258 which can conflict with char $ac_func(); below. */
6260 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6267 /* The GNU C library defines this for functions which it implements
6268 to always fail with ENOSYS. Some functions are actually named
6269 something starting with __ and the normal name is an alias. */
6270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6278 if { (eval echo configure
:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6280 eval "ac_cv_func_$ac_func=yes"
6282 echo "configure: failed program was:" >&5
6283 cat conftest.
$ac_ext >&5
6285 eval "ac_cv_func_$ac_func=no"
6290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6293 cat >> confdefs.h
<<EOF
6294 #define $ac_tr_func 1
6298 echo "$ac_t""no" 1>&6
6304 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6307 if test x
$ac_cv_func_stat64 = xno
; then
6308 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6309 echo "configure:6310: checking for stat64 in <sys/stat.h>" >&5
6310 cat > conftest.
$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6314 #if defined(HAVE_UNISTD_H)
6317 #include <sys/stat.h>
6320 struct stat64 st64; exit(stat64(".",&st64));
6323 if { (eval echo configure
:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6325 ac_cv_func_stat64
=yes
6327 echo "configure: failed program was:" >&5
6328 cat conftest.
$ac_ext >&5
6331 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6332 if test x
$ac_cv_func_stat64 = xyes
; then
6333 cat >> confdefs.h
<<\EOF
6334 #define HAVE_STAT64 1
6340 if test x
$ac_cv_func_lstat64 = xno
; then
6341 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6342 echo "configure:6343: checking for lstat64 in <sys/stat.h>" >&5
6343 cat > conftest.
$ac_ext <<EOF
6344 #line 6345 "configure"
6345 #include "confdefs.h"
6347 #if defined(HAVE_UNISTD_H)
6350 #include <sys/stat.h>
6353 struct stat64 st64; exit(lstat64(".",&st64));
6356 if { (eval echo configure
:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6358 ac_cv_func_lstat64
=yes
6360 echo "configure: failed program was:" >&5
6361 cat conftest.
$ac_ext >&5
6364 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6365 if test x
$ac_cv_func_lstat64 = xyes
; then
6366 cat >> confdefs.h
<<\EOF
6367 #define HAVE_LSTAT64 1
6373 if test x
$ac_cv_func_fstat64 = xno
; then
6374 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6375 echo "configure:6376: checking for fstat64 in <sys/stat.h>" >&5
6376 cat > conftest.
$ac_ext <<EOF
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6380 #if defined(HAVE_UNISTD_H)
6383 #include <sys/stat.h>
6386 struct stat64 st64; exit(fstat64(0,&st64));
6389 if { (eval echo configure
:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6391 ac_cv_func_fstat64
=yes
6393 echo "configure: failed program was:" >&5
6394 cat conftest.
$ac_ext >&5
6397 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6398 if test x
$ac_cv_func_fstat64 = xyes
; then
6399 cat >> confdefs.h
<<\EOF
6400 #define HAVE_FSTAT64 1
6407 # If no strcasecmp, check for it in some known places
6408 # It is in -lresolv on ReliantUNIX and UnixWare
6409 # -lresolve *must* follow -lnsl for name resolution to work properly
6412 if test x
$ac_cv_func_strcasecmp = xno
; then
6413 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6414 echo "configure:6415: checking for strcasecmp in -lresolv" >&5
6415 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 ac_save_LIBS
="$LIBS"
6420 LIBS
="-lresolv $LIBS"
6421 cat > conftest.
$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 /* Override any gcc2 internal prototype to avoid an error. */
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6433 if { (eval echo configure
:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6435 eval "ac_cv_lib_$ac_lib_var=yes"
6437 echo "configure: failed program was:" >&5
6438 cat conftest.
$ac_ext >&5
6440 eval "ac_cv_lib_$ac_lib_var=no"
6443 LIBS
="$ac_save_LIBS"
6446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6447 echo "$ac_t""yes" 1>&6
6448 LIBS
="$LIBS -lresolv"
6449 cat >> confdefs.h
<<\EOF
6450 #define HAVE_STRCASECMP 1
6454 echo "$ac_t""no" 1>&6
6460 # Check for the functions putprpwnam, set_auth_parameters,
6461 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6462 # Needed for OSF1 and HPUX.
6466 *-lsecurity*) for ac_func
in putprpwnam
6468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6469 echo "configure:6470: checking for $ac_func" >&5
6470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 cat > conftest.
$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6476 /* System header to define __stub macros and hopefully few prototypes,
6477 which can conflict with char $ac_func(); below. */
6479 /* Override any gcc2 internal prototype to avoid an error. */
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6486 /* The GNU C library defines this for functions which it implements
6487 to always fail with ENOSYS. Some functions are actually named
6488 something starting with __ and the normal name is an alias. */
6489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6497 if { (eval echo configure
:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6499 eval "ac_cv_func_$ac_func=yes"
6501 echo "configure: failed program was:" >&5
6502 cat conftest.
$ac_ext >&5
6504 eval "ac_cv_func_$ac_func=no"
6509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6511 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6512 cat >> confdefs.h
<<EOF
6513 #define $ac_tr_func 1
6517 echo "$ac_t""no" 1>&6
6521 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6522 echo "configure:6523: checking for putprpwnam in -lsecurity" >&5
6523 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 ac_save_LIBS
="$LIBS"
6528 LIBS
="-lsecurity $LIBS"
6529 cat > conftest.
$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6541 if { (eval echo configure
:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6543 eval "ac_cv_lib_$ac_lib_var=yes"
6545 echo "configure: failed program was:" >&5
6546 cat conftest.
$ac_ext >&5
6548 eval "ac_cv_lib_$ac_lib_var=no"
6551 LIBS
="$ac_save_LIBS"
6554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6556 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6557 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6558 cat >> confdefs.h
<<EOF
6559 #define $ac_tr_lib 1
6562 LIBS
="-lsecurity $LIBS"
6565 echo "$ac_t""no" 1>&6
6568 for ac_func
in putprpwnam
6570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6571 echo "configure:6572: checking for $ac_func" >&5
6572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6575 cat > conftest.
$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 /* System header to define __stub macros and hopefully few prototypes,
6579 which can conflict with char $ac_func(); below. */
6581 /* Override any gcc2 internal prototype to avoid an error. */
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6588 /* The GNU C library defines this for functions which it implements
6589 to always fail with ENOSYS. Some functions are actually named
6590 something starting with __ and the normal name is an alias. */
6591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6599 if { (eval echo configure
:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6601 eval "ac_cv_func_$ac_func=yes"
6603 echo "configure: failed program was:" >&5
6604 cat conftest.
$ac_ext >&5
6606 eval "ac_cv_func_$ac_func=no"
6611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6612 echo "$ac_t""yes" 1>&6
6613 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6614 cat >> confdefs.h
<<EOF
6615 #define $ac_tr_func 1
6619 echo "$ac_t""no" 1>&6
6627 *-lsec*) for ac_func
in putprpwnam
6629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6630 echo "configure:6631: checking for $ac_func" >&5
6631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6634 cat > conftest.
$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* System header to define __stub macros and hopefully few prototypes,
6638 which can conflict with char $ac_func(); below. */
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6647 /* The GNU C library defines this for functions which it implements
6648 to always fail with ENOSYS. Some functions are actually named
6649 something starting with __ and the normal name is an alias. */
6650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6658 if { (eval echo configure
:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6660 eval "ac_cv_func_$ac_func=yes"
6662 echo "configure: failed program was:" >&5
6663 cat conftest.
$ac_ext >&5
6665 eval "ac_cv_func_$ac_func=no"
6670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6671 echo "$ac_t""yes" 1>&6
6672 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6673 cat >> confdefs.h
<<EOF
6674 #define $ac_tr_func 1
6678 echo "$ac_t""no" 1>&6
6682 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6683 echo "configure:6684: checking for putprpwnam in -lsec" >&5
6684 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 ac_save_LIBS
="$LIBS"
6690 cat > conftest.
$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6702 if { (eval echo configure
:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6704 eval "ac_cv_lib_$ac_lib_var=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.
$ac_ext >&5
6709 eval "ac_cv_lib_$ac_lib_var=no"
6712 LIBS
="$ac_save_LIBS"
6715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6717 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6718 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6719 cat >> confdefs.h
<<EOF
6720 #define $ac_tr_lib 1
6726 echo "$ac_t""no" 1>&6
6729 for ac_func
in putprpwnam
6731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6732 echo "configure:6733: checking for $ac_func" >&5
6733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6736 cat > conftest.
$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char $ac_func(); below. */
6742 /* Override any gcc2 internal prototype to avoid an error. */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6749 /* The GNU C library defines this for functions which it implements
6750 to always fail with ENOSYS. Some functions are actually named
6751 something starting with __ and the normal name is an alias. */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6760 if { (eval echo configure
:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6762 eval "ac_cv_func_$ac_func=yes"
6764 echo "configure: failed program was:" >&5
6765 cat conftest.
$ac_ext >&5
6767 eval "ac_cv_func_$ac_func=no"
6772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6773 echo "$ac_t""yes" 1>&6
6774 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6775 cat >> confdefs.h
<<EOF
6776 #define $ac_tr_func 1
6780 echo "$ac_t""no" 1>&6
6789 *-lsecurity*) for ac_func
in set_auth_parameters
6791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6792 echo "configure:6793: checking for $ac_func" >&5
6793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 cat > conftest.
$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 /* System header to define __stub macros and hopefully few prototypes,
6800 which can conflict with char $ac_func(); below. */
6802 /* Override any gcc2 internal prototype to avoid an error. */
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6809 /* The GNU C library defines this for functions which it implements
6810 to always fail with ENOSYS. Some functions are actually named
6811 something starting with __ and the normal name is an alias. */
6812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6820 if { (eval echo configure
:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6822 eval "ac_cv_func_$ac_func=yes"
6824 echo "configure: failed program was:" >&5
6825 cat conftest.
$ac_ext >&5
6827 eval "ac_cv_func_$ac_func=no"
6832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6833 echo "$ac_t""yes" 1>&6
6834 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6835 cat >> confdefs.h
<<EOF
6836 #define $ac_tr_func 1
6840 echo "$ac_t""no" 1>&6
6844 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6845 echo "configure:6846: checking for set_auth_parameters in -lsecurity" >&5
6846 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6850 ac_save_LIBS
="$LIBS"
6851 LIBS
="-lsecurity $LIBS"
6852 cat > conftest.
$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* Override any gcc2 internal prototype to avoid an error. */
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6858 char set_auth_parameters();
6861 set_auth_parameters()
6864 if { (eval echo configure
:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6866 eval "ac_cv_lib_$ac_lib_var=yes"
6868 echo "configure: failed program was:" >&5
6869 cat conftest.
$ac_ext >&5
6871 eval "ac_cv_lib_$ac_lib_var=no"
6874 LIBS
="$ac_save_LIBS"
6877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6878 echo "$ac_t""yes" 1>&6
6879 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6881 cat >> confdefs.h
<<EOF
6882 #define $ac_tr_lib 1
6885 LIBS
="-lsecurity $LIBS"
6888 echo "$ac_t""no" 1>&6
6891 for ac_func
in set_auth_parameters
6893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6894 echo "configure:6895: checking for $ac_func" >&5
6895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6898 cat > conftest.
$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 /* System header to define __stub macros and hopefully few prototypes,
6902 which can conflict with char $ac_func(); below. */
6904 /* Override any gcc2 internal prototype to avoid an error. */
6905 /* We use char because int might match the return type of a gcc2
6906 builtin and then its argument prototype would still apply. */
6911 /* The GNU C library defines this for functions which it implements
6912 to always fail with ENOSYS. Some functions are actually named
6913 something starting with __ and the normal name is an alias. */
6914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6922 if { (eval echo configure
:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6924 eval "ac_cv_func_$ac_func=yes"
6926 echo "configure: failed program was:" >&5
6927 cat conftest.
$ac_ext >&5
6929 eval "ac_cv_func_$ac_func=no"
6934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6935 echo "$ac_t""yes" 1>&6
6936 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6937 cat >> confdefs.h
<<EOF
6938 #define $ac_tr_func 1
6942 echo "$ac_t""no" 1>&6
6950 *-lsec*) for ac_func
in set_auth_parameters
6952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6953 echo "configure:6954: checking for $ac_func" >&5
6954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6955 echo $ac_n "(cached) $ac_c" 1>&6
6957 cat > conftest.
$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6960 /* System header to define __stub macros and hopefully few prototypes,
6961 which can conflict with char $ac_func(); below. */
6963 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6970 /* The GNU C library defines this for functions which it implements
6971 to always fail with ENOSYS. Some functions are actually named
6972 something starting with __ and the normal name is an alias. */
6973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6981 if { (eval echo configure
:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6983 eval "ac_cv_func_$ac_func=yes"
6985 echo "configure: failed program was:" >&5
6986 cat conftest.
$ac_ext >&5
6988 eval "ac_cv_func_$ac_func=no"
6993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6994 echo "$ac_t""yes" 1>&6
6995 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6996 cat >> confdefs.h
<<EOF
6997 #define $ac_tr_func 1
7001 echo "$ac_t""no" 1>&6
7005 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7006 echo "configure:7007: checking for set_auth_parameters in -lsec" >&5
7007 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 ac_save_LIBS
="$LIBS"
7013 cat > conftest.
$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* Override any gcc2 internal prototype to avoid an error. */
7017 /* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */
7019 char set_auth_parameters();
7022 set_auth_parameters()
7025 if { (eval echo configure
:7026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7027 eval "ac_cv_lib_$ac_lib_var=yes"
7029 echo "configure: failed program was:" >&5
7030 cat conftest.
$ac_ext >&5
7032 eval "ac_cv_lib_$ac_lib_var=no"
7035 LIBS
="$ac_save_LIBS"
7038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7040 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7042 cat >> confdefs.h
<<EOF
7043 #define $ac_tr_lib 1
7049 echo "$ac_t""no" 1>&6
7052 for ac_func
in set_auth_parameters
7054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7055 echo "configure:7056: checking for $ac_func" >&5
7056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7057 echo $ac_n "(cached) $ac_c" 1>&6
7059 cat > conftest.
$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 /* System header to define __stub macros and hopefully few prototypes,
7063 which can conflict with char $ac_func(); below. */
7065 /* Override any gcc2 internal prototype to avoid an error. */
7066 /* We use char because int might match the return type of a gcc2
7067 builtin and then its argument prototype would still apply. */
7072 /* The GNU C library defines this for functions which it implements
7073 to always fail with ENOSYS. Some functions are actually named
7074 something starting with __ and the normal name is an alias. */
7075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7083 if { (eval echo configure
:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7085 eval "ac_cv_func_$ac_func=yes"
7087 echo "configure: failed program was:" >&5
7088 cat conftest.
$ac_ext >&5
7090 eval "ac_cv_func_$ac_func=no"
7095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7096 echo "$ac_t""yes" 1>&6
7097 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7098 cat >> confdefs.h
<<EOF
7099 #define $ac_tr_func 1
7103 echo "$ac_t""no" 1>&6
7111 # UnixWare 7.x has its getspnam in -lgen
7113 *-lgen*) for ac_func
in getspnam
7115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7116 echo "configure:7117: checking for $ac_func" >&5
7117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7120 cat > conftest.
$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 /* System header to define __stub macros and hopefully few prototypes,
7124 which can conflict with char $ac_func(); below. */
7126 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7133 /* The GNU C library defines this for functions which it implements
7134 to always fail with ENOSYS. Some functions are actually named
7135 something starting with __ and the normal name is an alias. */
7136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7144 if { (eval echo configure
:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7146 eval "ac_cv_func_$ac_func=yes"
7148 echo "configure: failed program was:" >&5
7149 cat conftest.
$ac_ext >&5
7151 eval "ac_cv_func_$ac_func=no"
7156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7158 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7159 cat >> confdefs.h
<<EOF
7160 #define $ac_tr_func 1
7164 echo "$ac_t""no" 1>&6
7168 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7169 echo "configure:7170: checking for getspnam in -lgen" >&5
7170 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7174 ac_save_LIBS
="$LIBS"
7176 cat > conftest.
$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 /* Override any gcc2 internal prototype to avoid an error. */
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7188 if { (eval echo configure
:7189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7190 eval "ac_cv_lib_$ac_lib_var=yes"
7192 echo "configure: failed program was:" >&5
7193 cat conftest.
$ac_ext >&5
7195 eval "ac_cv_lib_$ac_lib_var=no"
7198 LIBS
="$ac_save_LIBS"
7201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7202 echo "$ac_t""yes" 1>&6
7203 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7205 cat >> confdefs.h
<<EOF
7206 #define $ac_tr_lib 1
7212 echo "$ac_t""no" 1>&6
7215 for ac_func
in getspnam
7217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7218 echo "configure:7219: checking for $ac_func" >&5
7219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7222 cat > conftest.
$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 /* System header to define __stub macros and hopefully few prototypes,
7226 which can conflict with char $ac_func(); below. */
7228 /* Override any gcc2 internal prototype to avoid an error. */
7229 /* We use char because int might match the return type of a gcc2
7230 builtin and then its argument prototype would still apply. */
7235 /* The GNU C library defines this for functions which it implements
7236 to always fail with ENOSYS. Some functions are actually named
7237 something starting with __ and the normal name is an alias. */
7238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7246 if { (eval echo configure
:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7248 eval "ac_cv_func_$ac_func=yes"
7250 echo "configure: failed program was:" >&5
7251 cat conftest.
$ac_ext >&5
7253 eval "ac_cv_func_$ac_func=no"
7258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7259 echo "$ac_t""yes" 1>&6
7260 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7261 cat >> confdefs.h
<<EOF
7262 #define $ac_tr_func 1
7266 echo "$ac_t""no" 1>&6
7275 *-lsecurity*) for ac_func
in getspnam
7277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7278 echo "configure:7279: checking for $ac_func" >&5
7279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7282 cat > conftest.
$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7285 /* System header to define __stub macros and hopefully few prototypes,
7286 which can conflict with char $ac_func(); below. */
7288 /* Override any gcc2 internal prototype to avoid an error. */
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7295 /* The GNU C library defines this for functions which it implements
7296 to always fail with ENOSYS. Some functions are actually named
7297 something starting with __ and the normal name is an alias. */
7298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7306 if { (eval echo configure
:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7308 eval "ac_cv_func_$ac_func=yes"
7310 echo "configure: failed program was:" >&5
7311 cat conftest.
$ac_ext >&5
7313 eval "ac_cv_func_$ac_func=no"
7318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7319 echo "$ac_t""yes" 1>&6
7320 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7321 cat >> confdefs.h
<<EOF
7322 #define $ac_tr_func 1
7326 echo "$ac_t""no" 1>&6
7330 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7331 echo "configure:7332: checking for getspnam in -lsecurity" >&5
7332 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7334 echo $ac_n "(cached) $ac_c" 1>&6
7336 ac_save_LIBS
="$LIBS"
7337 LIBS
="-lsecurity $LIBS"
7338 cat > conftest.
$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 /* Override any gcc2 internal prototype to avoid an error. */
7342 /* We use char because int might match the return type of a gcc2
7343 builtin and then its argument prototype would still apply. */
7350 if { (eval echo configure
:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7352 eval "ac_cv_lib_$ac_lib_var=yes"
7354 echo "configure: failed program was:" >&5
7355 cat conftest.
$ac_ext >&5
7357 eval "ac_cv_lib_$ac_lib_var=no"
7360 LIBS
="$ac_save_LIBS"
7363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7364 echo "$ac_t""yes" 1>&6
7365 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7367 cat >> confdefs.h
<<EOF
7368 #define $ac_tr_lib 1
7371 LIBS
="-lsecurity $LIBS"
7374 echo "$ac_t""no" 1>&6
7377 for ac_func
in getspnam
7379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7380 echo "configure:7381: checking for $ac_func" >&5
7381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7384 cat > conftest.
$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char $ac_func(); below. */
7390 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7397 /* The GNU C library defines this for functions which it implements
7398 to always fail with ENOSYS. Some functions are actually named
7399 something starting with __ and the normal name is an alias. */
7400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7408 if { (eval echo configure
:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7410 eval "ac_cv_func_$ac_func=yes"
7412 echo "configure: failed program was:" >&5
7413 cat conftest.
$ac_ext >&5
7415 eval "ac_cv_func_$ac_func=no"
7420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7421 echo "$ac_t""yes" 1>&6
7422 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7423 cat >> confdefs.h
<<EOF
7424 #define $ac_tr_func 1
7428 echo "$ac_t""no" 1>&6
7436 *-lsec*) for ac_func
in getspnam
7438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7439 echo "configure:7440: checking for $ac_func" >&5
7440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7441 echo $ac_n "(cached) $ac_c" 1>&6
7443 cat > conftest.
$ac_ext <<EOF
7444 #line 7445 "configure"
7445 #include "confdefs.h"
7446 /* System header to define __stub macros and hopefully few prototypes,
7447 which can conflict with char $ac_func(); below. */
7449 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7456 /* The GNU C library defines this for functions which it implements
7457 to always fail with ENOSYS. Some functions are actually named
7458 something starting with __ and the normal name is an alias. */
7459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7467 if { (eval echo configure
:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7469 eval "ac_cv_func_$ac_func=yes"
7471 echo "configure: failed program was:" >&5
7472 cat conftest.
$ac_ext >&5
7474 eval "ac_cv_func_$ac_func=no"
7479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7480 echo "$ac_t""yes" 1>&6
7481 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7482 cat >> confdefs.h
<<EOF
7483 #define $ac_tr_func 1
7487 echo "$ac_t""no" 1>&6
7491 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7492 echo "configure:7493: checking for getspnam in -lsec" >&5
7493 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7497 ac_save_LIBS
="$LIBS"
7499 cat > conftest.
$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7511 if { (eval echo configure
:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7513 eval "ac_cv_lib_$ac_lib_var=yes"
7515 echo "configure: failed program was:" >&5
7516 cat conftest.
$ac_ext >&5
7518 eval "ac_cv_lib_$ac_lib_var=no"
7521 LIBS
="$ac_save_LIBS"
7524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7525 echo "$ac_t""yes" 1>&6
7526 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7528 cat >> confdefs.h
<<EOF
7529 #define $ac_tr_lib 1
7535 echo "$ac_t""no" 1>&6
7538 for ac_func
in getspnam
7540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_func" >&5
7542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7545 cat > conftest.
$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7548 /* System header to define __stub macros and hopefully few prototypes,
7549 which can conflict with char $ac_func(); below. */
7551 /* Override any gcc2 internal prototype to avoid an error. */
7552 /* We use char because int might match the return type of a gcc2
7553 builtin and then its argument prototype would still apply. */
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7569 if { (eval echo configure
:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7571 eval "ac_cv_func_$ac_func=yes"
7573 echo "configure: failed program was:" >&5
7574 cat conftest.
$ac_ext >&5
7576 eval "ac_cv_func_$ac_func=no"
7581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7582 echo "$ac_t""yes" 1>&6
7583 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7584 cat >> confdefs.h
<<EOF
7585 #define $ac_tr_func 1
7589 echo "$ac_t""no" 1>&6
7598 *-lsecurity*) for ac_func
in bigcrypt
7600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7601 echo "configure:7602: checking for $ac_func" >&5
7602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7605 cat > conftest.
$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 /* System header to define __stub macros and hopefully few prototypes,
7609 which can conflict with char $ac_func(); below. */
7611 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7618 /* The GNU C library defines this for functions which it implements
7619 to always fail with ENOSYS. Some functions are actually named
7620 something starting with __ and the normal name is an alias. */
7621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7629 if { (eval echo configure
:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7631 eval "ac_cv_func_$ac_func=yes"
7633 echo "configure: failed program was:" >&5
7634 cat conftest.
$ac_ext >&5
7636 eval "ac_cv_func_$ac_func=no"
7641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7642 echo "$ac_t""yes" 1>&6
7643 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7644 cat >> confdefs.h
<<EOF
7645 #define $ac_tr_func 1
7649 echo "$ac_t""no" 1>&6
7653 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7654 echo "configure:7655: checking for bigcrypt in -lsecurity" >&5
7655 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7657 echo $ac_n "(cached) $ac_c" 1>&6
7659 ac_save_LIBS
="$LIBS"
7660 LIBS
="-lsecurity $LIBS"
7661 cat > conftest.
$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 /* Override any gcc2 internal prototype to avoid an error. */
7665 /* We use char because int might match the return type of a gcc2
7666 builtin and then its argument prototype would still apply. */
7673 if { (eval echo configure
:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7675 eval "ac_cv_lib_$ac_lib_var=yes"
7677 echo "configure: failed program was:" >&5
7678 cat conftest.
$ac_ext >&5
7680 eval "ac_cv_lib_$ac_lib_var=no"
7683 LIBS
="$ac_save_LIBS"
7686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7687 echo "$ac_t""yes" 1>&6
7688 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7689 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7690 cat >> confdefs.h
<<EOF
7691 #define $ac_tr_lib 1
7694 LIBS
="-lsecurity $LIBS"
7697 echo "$ac_t""no" 1>&6
7700 for ac_func
in bigcrypt
7702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7703 echo "configure:7704: checking for $ac_func" >&5
7704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7707 cat > conftest.
$ac_ext <<EOF
7708 #line 7709 "configure"
7709 #include "confdefs.h"
7710 /* System header to define __stub macros and hopefully few prototypes,
7711 which can conflict with char $ac_func(); below. */
7713 /* Override any gcc2 internal prototype to avoid an error. */
7714 /* We use char because int might match the return type of a gcc2
7715 builtin and then its argument prototype would still apply. */
7720 /* The GNU C library defines this for functions which it implements
7721 to always fail with ENOSYS. Some functions are actually named
7722 something starting with __ and the normal name is an alias. */
7723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7731 if { (eval echo configure
:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7733 eval "ac_cv_func_$ac_func=yes"
7735 echo "configure: failed program was:" >&5
7736 cat conftest.
$ac_ext >&5
7738 eval "ac_cv_func_$ac_func=no"
7743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7744 echo "$ac_t""yes" 1>&6
7745 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7746 cat >> confdefs.h
<<EOF
7747 #define $ac_tr_func 1
7751 echo "$ac_t""no" 1>&6
7759 *-lsec*) for ac_func
in bigcrypt
7761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7762 echo "configure:7763: checking for $ac_func" >&5
7763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7764 echo $ac_n "(cached) $ac_c" 1>&6
7766 cat > conftest.
$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7769 /* System header to define __stub macros and hopefully few prototypes,
7770 which can conflict with char $ac_func(); below. */
7772 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7779 /* The GNU C library defines this for functions which it implements
7780 to always fail with ENOSYS. Some functions are actually named
7781 something starting with __ and the normal name is an alias. */
7782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7790 if { (eval echo configure
:7791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7792 eval "ac_cv_func_$ac_func=yes"
7794 echo "configure: failed program was:" >&5
7795 cat conftest.
$ac_ext >&5
7797 eval "ac_cv_func_$ac_func=no"
7802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7803 echo "$ac_t""yes" 1>&6
7804 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7805 cat >> confdefs.h
<<EOF
7806 #define $ac_tr_func 1
7810 echo "$ac_t""no" 1>&6
7814 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7815 echo "configure:7816: checking for bigcrypt in -lsec" >&5
7816 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7820 ac_save_LIBS
="$LIBS"
7822 cat > conftest.
$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7834 if { (eval echo configure
:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7836 eval "ac_cv_lib_$ac_lib_var=yes"
7838 echo "configure: failed program was:" >&5
7839 cat conftest.
$ac_ext >&5
7841 eval "ac_cv_lib_$ac_lib_var=no"
7844 LIBS
="$ac_save_LIBS"
7847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7848 echo "$ac_t""yes" 1>&6
7849 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7851 cat >> confdefs.h
<<EOF
7852 #define $ac_tr_lib 1
7858 echo "$ac_t""no" 1>&6
7861 for ac_func
in bigcrypt
7863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7864 echo "configure:7865: checking for $ac_func" >&5
7865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
7868 cat > conftest.
$ac_ext <<EOF
7869 #line 7870 "configure"
7870 #include "confdefs.h"
7871 /* System header to define __stub macros and hopefully few prototypes,
7872 which can conflict with char $ac_func(); below. */
7874 /* Override any gcc2 internal prototype to avoid an error. */
7875 /* We use char because int might match the return type of a gcc2
7876 builtin and then its argument prototype would still apply. */
7881 /* The GNU C library defines this for functions which it implements
7882 to always fail with ENOSYS. Some functions are actually named
7883 something starting with __ and the normal name is an alias. */
7884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7892 if { (eval echo configure
:7893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7894 eval "ac_cv_func_$ac_func=yes"
7896 echo "configure: failed program was:" >&5
7897 cat conftest.
$ac_ext >&5
7899 eval "ac_cv_func_$ac_func=no"
7904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7905 echo "$ac_t""yes" 1>&6
7906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7907 cat >> confdefs.h
<<EOF
7908 #define $ac_tr_func 1
7912 echo "$ac_t""no" 1>&6
7921 *-lsecurity*) for ac_func
in getprpwnam
7923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7924 echo "configure:7925: checking for $ac_func" >&5
7925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 cat > conftest.
$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char $ac_func(); below. */
7934 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7941 /* The GNU C library defines this for functions which it implements
7942 to always fail with ENOSYS. Some functions are actually named
7943 something starting with __ and the normal name is an alias. */
7944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7952 if { (eval echo configure
:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7954 eval "ac_cv_func_$ac_func=yes"
7956 echo "configure: failed program was:" >&5
7957 cat conftest.
$ac_ext >&5
7959 eval "ac_cv_func_$ac_func=no"
7964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7965 echo "$ac_t""yes" 1>&6
7966 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7967 cat >> confdefs.h
<<EOF
7968 #define $ac_tr_func 1
7972 echo "$ac_t""no" 1>&6
7976 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7977 echo "configure:7978: checking for getprpwnam in -lsecurity" >&5
7978 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7982 ac_save_LIBS
="$LIBS"
7983 LIBS
="-lsecurity $LIBS"
7984 cat > conftest.
$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 /* Override any gcc2 internal prototype to avoid an error. */
7988 /* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7996 if { (eval echo configure
:7997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7998 eval "ac_cv_lib_$ac_lib_var=yes"
8000 echo "configure: failed program was:" >&5
8001 cat conftest.
$ac_ext >&5
8003 eval "ac_cv_lib_$ac_lib_var=no"
8006 LIBS
="$ac_save_LIBS"
8009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8010 echo "$ac_t""yes" 1>&6
8011 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8012 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8013 cat >> confdefs.h
<<EOF
8014 #define $ac_tr_lib 1
8017 LIBS
="-lsecurity $LIBS"
8020 echo "$ac_t""no" 1>&6
8023 for ac_func
in getprpwnam
8025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8026 echo "configure:8027: checking for $ac_func" >&5
8027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8028 echo $ac_n "(cached) $ac_c" 1>&6
8030 cat > conftest.
$ac_ext <<EOF
8031 #line 8032 "configure"
8032 #include "confdefs.h"
8033 /* System header to define __stub macros and hopefully few prototypes,
8034 which can conflict with char $ac_func(); below. */
8036 /* Override any gcc2 internal prototype to avoid an error. */
8037 /* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8043 /* The GNU C library defines this for functions which it implements
8044 to always fail with ENOSYS. Some functions are actually named
8045 something starting with __ and the normal name is an alias. */
8046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8054 if { (eval echo configure
:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8056 eval "ac_cv_func_$ac_func=yes"
8058 echo "configure: failed program was:" >&5
8059 cat conftest.
$ac_ext >&5
8061 eval "ac_cv_func_$ac_func=no"
8066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8067 echo "$ac_t""yes" 1>&6
8068 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8069 cat >> confdefs.h
<<EOF
8070 #define $ac_tr_func 1
8074 echo "$ac_t""no" 1>&6
8082 *-lsec*) for ac_func
in getprpwnam
8084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8085 echo "configure:8086: checking for $ac_func" >&5
8086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8087 echo $ac_n "(cached) $ac_c" 1>&6
8089 cat > conftest.
$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092 /* System header to define __stub macros and hopefully few prototypes,
8093 which can conflict with char $ac_func(); below. */
8095 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8102 /* The GNU C library defines this for functions which it implements
8103 to always fail with ENOSYS. Some functions are actually named
8104 something starting with __ and the normal name is an alias. */
8105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8113 if { (eval echo configure
:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8115 eval "ac_cv_func_$ac_func=yes"
8117 echo "configure: failed program was:" >&5
8118 cat conftest.
$ac_ext >&5
8120 eval "ac_cv_func_$ac_func=no"
8125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8127 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8128 cat >> confdefs.h
<<EOF
8129 #define $ac_tr_func 1
8133 echo "$ac_t""no" 1>&6
8137 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8138 echo "configure:8139: checking for getprpwnam in -lsec" >&5
8139 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8143 ac_save_LIBS
="$LIBS"
8145 cat > conftest.
$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* Override any gcc2 internal prototype to avoid an error. */
8149 /* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */
8157 if { (eval echo configure
:8158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8159 eval "ac_cv_lib_$ac_lib_var=yes"
8161 echo "configure: failed program was:" >&5
8162 cat conftest.
$ac_ext >&5
8164 eval "ac_cv_lib_$ac_lib_var=no"
8167 LIBS
="$ac_save_LIBS"
8170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8171 echo "$ac_t""yes" 1>&6
8172 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8174 cat >> confdefs.h
<<EOF
8175 #define $ac_tr_lib 1
8181 echo "$ac_t""no" 1>&6
8184 for ac_func
in getprpwnam
8186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8187 echo "configure:8188: checking for $ac_func" >&5
8188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8191 cat > conftest.
$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 /* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char $ac_func(); below. */
8197 /* Override any gcc2 internal prototype to avoid an error. */
8198 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8204 /* The GNU C library defines this for functions which it implements
8205 to always fail with ENOSYS. Some functions are actually named
8206 something starting with __ and the normal name is an alias. */
8207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8215 if { (eval echo configure
:8216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8217 eval "ac_cv_func_$ac_func=yes"
8219 echo "configure: failed program was:" >&5
8220 cat conftest.
$ac_ext >&5
8222 eval "ac_cv_func_$ac_func=no"
8227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8228 echo "$ac_t""yes" 1>&6
8229 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8230 cat >> confdefs.h
<<EOF
8231 #define $ac_tr_func 1
8235 echo "$ac_t""no" 1>&6
8243 # this bit needs to be modified for each OS that is suported by
8244 # smbwrapper. You need to specify how to created a shared library and
8245 # how to compile C code to produce PIC object files
8247 # these are the defaults, good for lots of systems
8253 # and these are for particular systems
8255 *linux
*) cat >> confdefs.h
<<\EOF
8259 *solaris
*) cat >> confdefs.h
<<\EOF
8265 *sunos
*) cat >> confdefs.h
<<\EOF
8271 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8273 *irix
*) cat >> confdefs.h
<<\EOF
8278 *irix6
*) cat >> confdefs.h
<<\EOF
8284 ATTEMPT_WRAP32_BUILD
=yes
8286 *aix
*) cat >> confdefs.h
<<\EOF
8290 *hpux
*) cat >> confdefs.h
<<\EOF
8295 # Use special PIC flags for the native HP-UX compiler.
8296 if test $ac_cv_prog_cc_Ae = yes; then
8301 *qnx
*) cat >> confdefs.h
<<\EOF
8305 *osf
*) cat >> confdefs.h
<<\EOF
8309 *sco
*) cat >> confdefs.h
<<\EOF
8313 *next2
*) cat >> confdefs.h
<<\EOF
8317 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8318 set dummy
groff; ac_word
=$2
8319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8320 echo "configure:8321: checking for $ac_word" >&5
8321 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8324 if test -n "$ROFF"; then
8325 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8327 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8329 for ac_dir
in $ac_dummy; do
8330 test -z "$ac_dir" && ac_dir
=.
8331 if test -f $ac_dir/$ac_word; then
8332 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8339 ROFF
="$ac_cv_prog_ROFF"
8340 if test -n "$ROFF"; then
8341 echo "$ac_t""$ROFF" 1>&6
8343 echo "$ac_t""no" 1>&6
8348 *-univel-*) if test "$GCC" != yes ; then
8349 cat >> confdefs.h
<<\EOF
8350 #define HAVE_MEMSET 1
8356 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8357 #define RELIANTUNIX 1
8363 if test "$GCC" != yes ; then
8364 cat >> confdefs.h
<<\EOF
8365 #define HAVE_MEMSET 1
8373 # try to work out how to produce pic code with this compiler
8374 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8375 echo "configure:8376: checking whether ${CC-cc} accepts -fpic" >&5
8376 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8377 echo $ac_n "(cached) $ac_c" 1>&6
8379 echo 'void f(){}' > conftest.c
8380 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8381 ac_cv_prog_cc_fpic
=yes
8383 ac_cv_prog_cc_fpic
=no
8389 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8390 if test $ac_cv_prog_cc_fpic = yes; then
8393 if test x
$PICFLAG = x
; then
8394 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8395 echo "configure:8396: checking whether ${CC-cc} accepts -KPIC" >&5
8396 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8397 echo $ac_n "(cached) $ac_c" 1>&6
8399 echo 'void f(){}' > conftest.c
8400 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8401 ac_cv_prog_cc_KPIC
=yes
8403 ac_cv_prog_cc_KPIC
=no
8409 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8410 if test $ac_cv_prog_cc_KPIC = yes; then
8414 if test x
$PICFLAG = x
; then
8415 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8416 echo "configure:8417: checking whether ${CC-cc} accepts -Kpic" >&5
8417 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8420 echo 'void f(){}' > conftest.c
8421 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8422 ac_cv_prog_cc_Kpic
=yes
8424 ac_cv_prog_cc_Kpic
=no
8430 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8431 if test $ac_cv_prog_cc_Kpic = yes; then
8438 echo $ac_n "checking for long long""... $ac_c" 1>&6
8439 echo "configure:8440: checking for long long" >&5
8440 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8444 if test "$cross_compiling" = yes; then
8445 samba_cv_have_longlong
=cross
8447 cat > conftest.
$ac_ext <<EOF
8448 #line 8449 "configure"
8449 #include "confdefs.h"
8451 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8453 if { (eval echo configure
:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8455 samba_cv_have_longlong
=yes
8457 echo "configure: failed program was:" >&5
8458 cat conftest.
$ac_ext >&5
8460 samba_cv_have_longlong
=no
8467 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8468 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8469 cat >> confdefs.h
<<\EOF
8470 #define HAVE_LONGLONG 1
8476 # Check if the compiler supports the LL prefix on long long integers.
8479 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8480 echo "configure:8481: checking for LL suffix on long long integers" >&5
8481 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8485 cat > conftest.
$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8490 long long i = 0x8000000000LL
8493 if { (eval echo configure
:8494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8495 samba_cv_compiler_supports_ll
=yes
8497 echo "configure: failed program was:" >&5
8498 cat conftest.
$ac_ext >&5
8500 samba_cv_compiler_supports_ll
=no
8505 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8506 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8507 cat >> confdefs.h
<<\EOF
8508 #define COMPILER_SUPPORTS_LL 1
8514 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8515 echo "configure:8516: checking for 64 bit off_t" >&5
8516 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8520 if test "$cross_compiling" = yes; then
8521 samba_cv_SIZEOF_OFF_T
=cross
8523 cat > conftest.
$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8527 #include <sys/stat.h>
8528 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8530 if { (eval echo configure
:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8532 samba_cv_SIZEOF_OFF_T
=yes
8534 echo "configure: failed program was:" >&5
8535 cat conftest.
$ac_ext >&5
8537 samba_cv_SIZEOF_OFF_T
=no
8544 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8545 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8546 cat >> confdefs.h
<<\EOF
8547 #define SIZEOF_OFF_T 8
8552 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8553 echo "configure:8554: checking for off64_t" >&5
8554 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8558 if test "$cross_compiling" = yes; then
8559 samba_cv_HAVE_OFF64_T
=cross
8561 cat > conftest.
$ac_ext <<EOF
8562 #line 8563 "configure"
8563 #include "confdefs.h"
8565 #if defined(HAVE_UNISTD_H)
8569 #include <sys/stat.h>
8570 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8572 if { (eval echo configure
:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8574 samba_cv_HAVE_OFF64_T
=yes
8576 echo "configure: failed program was:" >&5
8577 cat conftest.
$ac_ext >&5
8579 samba_cv_HAVE_OFF64_T
=no
8586 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8587 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8588 cat >> confdefs.h
<<\EOF
8589 #define HAVE_OFF64_T 1
8594 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8595 echo "configure:8596: checking for 64 bit ino_t" >&5
8596 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8600 if test "$cross_compiling" = yes; then
8601 samba_cv_SIZEOF_INO_T
=cross
8603 cat > conftest.
$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8607 #include <sys/stat.h>
8608 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8610 if { (eval echo configure
:8611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8612 samba_cv_SIZEOF_INO_T
=yes
8614 echo "configure: failed program was:" >&5
8615 cat conftest.
$ac_ext >&5
8617 samba_cv_SIZEOF_INO_T
=no
8624 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8625 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8626 cat >> confdefs.h
<<\EOF
8627 #define SIZEOF_INO_T 8
8632 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8633 echo "configure:8634: checking for ino64_t" >&5
8634 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8635 echo $ac_n "(cached) $ac_c" 1>&6
8638 if test "$cross_compiling" = yes; then
8639 samba_cv_HAVE_INO64_T
=cross
8641 cat > conftest.
$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8645 #if defined(HAVE_UNISTD_H)
8649 #include <sys/stat.h>
8650 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8652 if { (eval echo configure
:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8654 samba_cv_HAVE_INO64_T
=yes
8656 echo "configure: failed program was:" >&5
8657 cat conftest.
$ac_ext >&5
8659 samba_cv_HAVE_INO64_T
=no
8666 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8667 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8668 cat >> confdefs.h
<<\EOF
8669 #define HAVE_INO64_T 1
8674 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8675 echo "configure:8676: checking for struct dirent64" >&5
8676 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8680 cat > conftest.
$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8684 #if defined(HAVE_UNISTD_H)
8687 #include <sys/types.h>
8693 if { (eval echo configure
:8694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8695 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8697 echo "configure: failed program was:" >&5
8698 cat conftest.
$ac_ext >&5
8700 samba_cv_HAVE_STRUCT_DIRENT64
=no
8705 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8706 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8707 cat >> confdefs.h
<<\EOF
8708 #define HAVE_STRUCT_DIRENT64 1
8713 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8714 echo "configure:8715: checking for unsigned char" >&5
8715 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8719 if test "$cross_compiling" = yes; then
8720 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8722 cat > conftest.
$ac_ext <<EOF
8723 #line 8724 "configure"
8724 #include "confdefs.h"
8726 main() { char c; c=250; exit((c > 0)?0:1); }
8728 if { (eval echo configure
:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8730 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8732 echo "configure: failed program was:" >&5
8733 cat conftest.
$ac_ext >&5
8735 samba_cv_HAVE_UNSIGNED_CHAR
=no
8742 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8743 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8744 cat >> confdefs.h
<<\EOF
8745 #define HAVE_UNSIGNED_CHAR 1
8750 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8751 echo "configure:8752: checking for sin_len in sock" >&5
8752 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8753 echo $ac_n "(cached) $ac_c" 1>&6
8756 cat > conftest.
$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8759 #include <sys/types.h>
8760 #include <sys/socket.h>
8761 #include <netinet/in.h>
8763 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8766 if { (eval echo configure
:8767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8768 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8770 echo "configure: failed program was:" >&5
8771 cat conftest.
$ac_ext >&5
8773 samba_cv_HAVE_SOCK_SIN_LEN
=no
8778 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8779 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8780 cat >> confdefs.h
<<\EOF
8781 #define HAVE_SOCK_SIN_LEN 1
8786 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8787 echo "configure:8788: checking whether seekdir returns void" >&5
8788 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8789 echo $ac_n "(cached) $ac_c" 1>&6
8792 cat > conftest.
$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 #include <sys/types.h>
8797 void seekdir(DIR *d, long loc) { return; }
8802 if { (eval echo configure
:8803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8804 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8806 echo "configure: failed program was:" >&5
8807 cat conftest.
$ac_ext >&5
8809 samba_cv_SEEKDIR_RETURNS_VOID
=no
8814 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8815 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8816 cat >> confdefs.h
<<\EOF
8817 #define SEEKDIR_RETURNS_VOID 1
8822 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8823 echo "configure:8824: checking for __FILE__ macro" >&5
8824 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8825 echo $ac_n "(cached) $ac_c" 1>&6
8828 cat > conftest.
$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8833 printf("%s\n", __FILE__);
8836 if { (eval echo configure
:8837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8838 samba_cv_HAVE_FILE_MACRO
=yes
8840 echo "configure: failed program was:" >&5
8841 cat conftest.
$ac_ext >&5
8843 samba_cv_HAVE_FILE_MACRO
=no
8848 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8849 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8850 cat >> confdefs.h
<<\EOF
8851 #define HAVE_FILE_MACRO 1
8856 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8857 echo "configure:8858: checking for __FUNCTION__ macro" >&5
8858 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8862 cat > conftest.
$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8867 printf("%s\n", __FUNCTION__);
8870 if { (eval echo configure
:8871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8872 samba_cv_HAVE_FUNCTION_MACRO
=yes
8874 echo "configure: failed program was:" >&5
8875 cat conftest.
$ac_ext >&5
8877 samba_cv_HAVE_FUNCTION_MACRO
=no
8882 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8883 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8884 cat >> confdefs.h
<<\EOF
8885 #define HAVE_FUNCTION_MACRO 1
8890 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8891 echo "configure:8892: checking if gettimeofday takes tz argument" >&5
8892 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8893 echo $ac_n "(cached) $ac_c" 1>&6
8896 if test "$cross_compiling" = yes; then
8897 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8899 cat > conftest.
$ac_ext <<EOF
8900 #line 8901 "configure"
8901 #include "confdefs.h"
8903 #include <sys/time.h>
8905 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8907 if { (eval echo configure
:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8909 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8911 echo "configure: failed program was:" >&5
8912 cat conftest.
$ac_ext >&5
8914 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8921 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8922 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8923 cat >> confdefs.h
<<\EOF
8924 #define HAVE_GETTIMEOFDAY_TZ 1
8929 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8930 echo "configure:8931: checking for C99 vsnprintf" >&5
8931 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8932 echo $ac_n "(cached) $ac_c" 1>&6
8935 if test "$cross_compiling" = yes; then
8936 samba_cv_HAVE_C99_VSNPRINTF
=cross
8938 cat > conftest.
$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8942 #include <sys/types.h>
8944 void foo(const char *format, ...) {
8949 va_start(ap, format);
8950 len = vsnprintf(0, 0, format, ap);
8952 if (len != 5) exit(1);
8954 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8958 main() { foo("hello"); }
8961 if { (eval echo configure
:8962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8963 samba_cv_HAVE_C99_VSNPRINTF
=yes
8965 echo "configure: failed program was:" >&5
8966 cat conftest.
$ac_ext >&5
8968 samba_cv_HAVE_C99_VSNPRINTF
=no
8975 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8976 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
8977 cat >> confdefs.h
<<\EOF
8978 #define HAVE_C99_VSNPRINTF 1
8983 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8984 echo "configure:8985: checking for broken readdir" >&5
8985 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8989 if test "$cross_compiling" = yes; then
8990 samba_cv_HAVE_BROKEN_READDIR
=cross
8992 cat > conftest.
$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
8995 #include <sys/types.h>
8997 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8998 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8999 di->d_name[0] == 0) exit(0); exit(1);}
9001 if { (eval echo configure
:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9003 samba_cv_HAVE_BROKEN_READDIR
=yes
9005 echo "configure: failed program was:" >&5
9006 cat conftest.
$ac_ext >&5
9008 samba_cv_HAVE_BROKEN_READDIR
=no
9015 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9016 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9017 cat >> confdefs.h
<<\EOF
9018 #define HAVE_BROKEN_READDIR 1
9023 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9024 echo "configure:9025: checking for utimbuf" >&5
9025 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9026 echo $ac_n "(cached) $ac_c" 1>&6
9029 cat > conftest.
$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9032 #include <sys/types.h>
9035 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9038 if { (eval echo configure
:9039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9040 samba_cv_HAVE_UTIMBUF
=yes
9042 echo "configure: failed program was:" >&5
9043 cat conftest.
$ac_ext >&5
9045 samba_cv_HAVE_UTIMBUF
=no
9050 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9051 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9052 cat >> confdefs.h
<<\EOF
9053 #define HAVE_UTIMBUF 1
9059 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9062 echo "configure:9063: checking for $ac_func" >&5
9063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9066 cat > conftest.
$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 /* System header to define __stub macros and hopefully few prototypes,
9070 which can conflict with char $ac_func(); below. */
9072 /* Override any gcc2 internal prototype to avoid an error. */
9073 /* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9079 /* The GNU C library defines this for functions which it implements
9080 to always fail with ENOSYS. Some functions are actually named
9081 something starting with __ and the normal name is an alias. */
9082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9090 if { (eval echo configure
:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9092 eval "ac_cv_func_$ac_func=yes"
9094 echo "configure: failed program was:" >&5
9095 cat conftest.
$ac_ext >&5
9097 eval "ac_cv_func_$ac_func=no"
9102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9104 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9105 cat >> confdefs.h
<<EOF
9106 #define $ac_tr_func 1
9110 echo "$ac_t""no" 1>&6
9115 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9116 echo "configure:9117: checking for ut_name in utmp" >&5
9117 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9121 cat > conftest.
$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 #include <sys/types.h>
9127 struct utmp ut; ut.ut_name[0] = 'a';
9130 if { (eval echo configure
:9131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9132 samba_cv_HAVE_UT_UT_NAME
=yes
9134 echo "configure: failed program was:" >&5
9135 cat conftest.
$ac_ext >&5
9137 samba_cv_HAVE_UT_UT_NAME
=no
9142 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9143 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9144 cat >> confdefs.h
<<\EOF
9145 #define HAVE_UT_UT_NAME 1
9150 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9151 echo "configure:9152: checking for ut_user in utmp" >&5
9152 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9153 echo $ac_n "(cached) $ac_c" 1>&6
9156 cat > conftest.
$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9159 #include <sys/types.h>
9162 struct utmp ut; ut.ut_user[0] = 'a';
9165 if { (eval echo configure
:9166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9167 samba_cv_HAVE_UT_UT_USER
=yes
9169 echo "configure: failed program was:" >&5
9170 cat conftest.
$ac_ext >&5
9172 samba_cv_HAVE_UT_UT_USER
=no
9177 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9178 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9179 cat >> confdefs.h
<<\EOF
9180 #define HAVE_UT_UT_USER 1
9185 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9186 echo "configure:9187: checking for ut_id in utmp" >&5
9187 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9191 cat > conftest.
$ac_ext <<EOF
9192 #line 9193 "configure"
9193 #include "confdefs.h"
9194 #include <sys/types.h>
9197 struct utmp ut; ut.ut_id[0] = 'a';
9200 if { (eval echo configure
:9201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9202 samba_cv_HAVE_UT_UT_ID
=yes
9204 echo "configure: failed program was:" >&5
9205 cat conftest.
$ac_ext >&5
9207 samba_cv_HAVE_UT_UT_ID
=no
9212 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9213 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9214 cat >> confdefs.h
<<\EOF
9215 #define HAVE_UT_UT_ID 1
9220 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9221 echo "configure:9222: checking for ut_host in utmp" >&5
9222 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9226 cat > conftest.
$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9229 #include <sys/types.h>
9232 struct utmp ut; ut.ut_host[0] = 'a';
9235 if { (eval echo configure
:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9237 samba_cv_HAVE_UT_UT_HOST
=yes
9239 echo "configure: failed program was:" >&5
9240 cat conftest.
$ac_ext >&5
9242 samba_cv_HAVE_UT_UT_HOST
=no
9247 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9248 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9249 cat >> confdefs.h
<<\EOF
9250 #define HAVE_UT_UT_HOST 1
9255 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9256 echo "configure:9257: checking for ut_time in utmp" >&5
9257 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9261 cat > conftest.
$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9264 #include <sys/types.h>
9267 struct utmp ut; time_t t; ut.ut_time = t;
9270 if { (eval echo configure
:9271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9272 samba_cv_HAVE_UT_UT_TIME
=yes
9274 echo "configure: failed program was:" >&5
9275 cat conftest.
$ac_ext >&5
9277 samba_cv_HAVE_UT_UT_TIME
=no
9282 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9283 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9284 cat >> confdefs.h
<<\EOF
9285 #define HAVE_UT_UT_TIME 1
9290 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9291 echo "configure:9292: checking for ut_tv in utmp" >&5
9292 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9296 cat > conftest.
$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9299 #include <sys/types.h>
9302 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9305 if { (eval echo configure
:9306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9307 samba_cv_HAVE_UT_UT_TV
=yes
9309 echo "configure: failed program was:" >&5
9310 cat conftest.
$ac_ext >&5
9312 samba_cv_HAVE_UT_UT_TV
=no
9317 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9318 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9319 cat >> confdefs.h
<<\EOF
9320 #define HAVE_UT_UT_TV 1
9325 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9326 echo "configure:9327: checking for ut_type in utmp" >&5
9327 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9331 cat > conftest.
$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 #include <sys/types.h>
9337 struct utmp ut; ut.ut_type = 0;
9340 if { (eval echo configure
:9341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9342 samba_cv_HAVE_UT_UT_TYPE
=yes
9344 echo "configure: failed program was:" >&5
9345 cat conftest.
$ac_ext >&5
9347 samba_cv_HAVE_UT_UT_TYPE
=no
9352 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9353 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9354 cat >> confdefs.h
<<\EOF
9355 #define HAVE_UT_UT_TYPE 1
9360 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9361 echo "configure:9362: checking for ut_pid in utmp" >&5
9362 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9366 cat > conftest.
$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9369 #include <sys/types.h>
9372 struct utmp ut; ut.ut_pid = 0;
9375 if { (eval echo configure
:9376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9377 samba_cv_HAVE_UT_UT_PID
=yes
9379 echo "configure: failed program was:" >&5
9380 cat conftest.
$ac_ext >&5
9382 samba_cv_HAVE_UT_UT_PID
=no
9387 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9388 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9389 cat >> confdefs.h
<<\EOF
9390 #define HAVE_UT_UT_PID 1
9395 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9396 echo "configure:9397: checking for ut_exit in utmp" >&5
9397 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9398 echo $ac_n "(cached) $ac_c" 1>&6
9401 cat > conftest.
$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 #include <sys/types.h>
9407 struct utmp ut; ut.ut_exit.e_exit = 0;
9410 if { (eval echo configure
:9411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9412 samba_cv_HAVE_UT_UT_EXIT
=yes
9414 echo "configure: failed program was:" >&5
9415 cat conftest.
$ac_ext >&5
9417 samba_cv_HAVE_UT_UT_EXIT
=no
9422 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9423 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9424 cat >> confdefs.h
<<\EOF
9425 #define HAVE_UT_UT_EXIT 1
9430 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9431 echo "configure:9432: checking for ut_addr in utmp" >&5
9432 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9436 cat > conftest.
$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 #include <sys/types.h>
9442 struct utmp ut; ut.ut_addr = 0;
9445 if { (eval echo configure
:9446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9447 samba_cv_HAVE_UT_UT_ADDR
=yes
9449 echo "configure: failed program was:" >&5
9450 cat conftest.
$ac_ext >&5
9452 samba_cv_HAVE_UT_UT_ADDR
=no
9457 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9458 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9459 cat >> confdefs.h
<<\EOF
9460 #define HAVE_UT_UT_ADDR 1
9465 if test x
$ac_cv_func_pututline = xyes
; then
9466 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9467 echo "configure:9468: checking whether pututline returns pointer" >&5
9468 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+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>
9478 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9481 if { (eval echo configure
:9482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9483 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9485 echo "configure: failed program was:" >&5
9486 cat conftest.
$ac_ext >&5
9488 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9493 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9494 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9495 cat >> confdefs.h
<<\EOF
9496 #define PUTUTLINE_RETURNS_UTMP 1
9502 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9503 echo "configure:9504: checking for ut_syslen in utmpx" >&5
9504 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9508 cat > conftest.
$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511 #include <sys/types.h>
9514 struct utmpx ux; ux.ut_syslen = 0;
9517 if { (eval echo configure
:9518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9519 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9521 echo "configure: failed program was:" >&5
9522 cat conftest.
$ac_ext >&5
9524 samba_cv_HAVE_UX_UT_SYSLEN
=no
9529 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9530 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9531 cat >> confdefs.h
<<\EOF
9532 #define HAVE_UX_UT_SYSLEN 1
9537 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9538 echo "configure:9539: checking for Linux kernel oplocks" >&5
9539 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9543 if test "$cross_compiling" = yes; then
9544 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9546 cat > conftest.
$ac_ext <<EOF
9547 #line 9548 "configure"
9548 #include "confdefs.h"
9550 #include <sys/types.h>
9553 #define F_GETLEASE 1025
9556 int fd = open("/dev/null", O_RDONLY);
9557 return fcntl(fd, F_GETLEASE, 0) == -1;
9561 if { (eval echo configure
:9562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9563 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9565 echo "configure: failed program was:" >&5
9566 cat conftest.
$ac_ext >&5
9568 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9575 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9576 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9577 cat >> confdefs.h
<<\EOF
9578 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9583 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9584 echo "configure:9585: checking for kernel change notify support" >&5
9585 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9589 if test "$cross_compiling" = yes; then
9590 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9592 cat > conftest.
$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9596 #include <sys/types.h>
9600 #define F_NOTIFY 1026
9603 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9607 if { (eval echo configure
:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9609 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9611 echo "configure: failed program was:" >&5
9612 cat conftest.
$ac_ext >&5
9614 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9621 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9622 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9623 cat >> confdefs.h
<<\EOF
9624 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9629 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9630 echo "configure:9631: checking for kernel share modes" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9635 if test "$cross_compiling" = yes; then
9636 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9638 cat > conftest.
$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9642 #include <sys/types.h>
9645 #include <sys/file.h>
9647 #define LOCK_MAND 32
9648 #define LOCK_READ 64
9651 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9655 if { (eval echo configure
:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9657 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9659 echo "configure: failed program was:" >&5
9660 cat conftest.
$ac_ext >&5
9662 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9669 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9670 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9671 cat >> confdefs.h
<<\EOF
9672 #define HAVE_KERNEL_SHARE_MODES 1
9680 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9681 echo "configure:9682: checking for IRIX kernel oplock type definitions" >&5
9682 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9683 echo $ac_n "(cached) $ac_c" 1>&6
9686 cat > conftest.
$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9689 #include <sys/types.h>
9692 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9695 if { (eval echo configure
:9696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9697 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9699 echo "configure: failed program was:" >&5
9700 cat conftest.
$ac_ext >&5
9702 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9707 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9708 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9709 cat >> confdefs.h
<<\EOF
9710 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9715 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9716 echo "configure:9717: checking for irix specific capabilities" >&5
9717 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9718 echo $ac_n "(cached) $ac_c" 1>&6
9721 if test "$cross_compiling" = yes; then
9722 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9724 cat > conftest.
$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9728 #include <sys/capability.h>
9731 if ((cap = cap_get_proc()) == NULL)
9733 cap->cap_effective |= CAP_NETWORK_MGT;
9734 cap->cap_inheritable |= CAP_NETWORK_MGT;
9740 if { (eval echo configure
:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9742 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9744 echo "configure: failed program was:" >&5
9745 cat conftest.
$ac_ext >&5
9747 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9754 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9755 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9756 cat >> confdefs.h
<<\EOF
9757 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9763 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9764 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9767 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9768 echo "configure:9769: checking for int16 typedef included by rpc/rpc.h" >&5
9769 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9773 cat > conftest.
$ac_ext <<EOF
9774 #line 9775 "configure"
9775 #include "confdefs.h"
9776 #include <sys/types.h>
9777 #if defined(HAVE_RPC_RPC_H)
9778 #include <rpc/rpc.h>
9784 if { (eval echo configure
:9785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9786 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9788 echo "configure: failed program was:" >&5
9789 cat conftest.
$ac_ext >&5
9791 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9796 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9797 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9798 cat >> confdefs.h
<<\EOF
9799 #define HAVE_INT16_FROM_RPC_RPC_H 1
9804 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9805 echo "configure:9806: checking for uint16 typedef included by rpc/rpc.h" >&5
9806 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9810 cat > conftest.
$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813 #include <sys/types.h>
9814 #if defined(HAVE_RPC_RPC_H)
9815 #include <rpc/rpc.h>
9821 if { (eval echo configure
:9822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9823 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9825 echo "configure: failed program was:" >&5
9826 cat conftest.
$ac_ext >&5
9828 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9833 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9834 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9835 cat >> confdefs.h
<<\EOF
9836 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9841 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9842 echo "configure:9843: checking for int32 typedef included by rpc/rpc.h" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9847 cat > conftest.
$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9851 #if defined(HAVE_RPC_RPC_H)
9852 #include <rpc/rpc.h>
9858 if { (eval echo configure
:9859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9860 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9862 echo "configure: failed program was:" >&5
9863 cat conftest.
$ac_ext >&5
9865 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9870 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9871 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9872 cat >> confdefs.h
<<\EOF
9873 #define HAVE_INT32_FROM_RPC_RPC_H 1
9878 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9879 echo "configure:9880: checking for uint32 typedef included by rpc/rpc.h" >&5
9880 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
9884 cat > conftest.
$ac_ext <<EOF
9885 #line 9886 "configure"
9886 #include "confdefs.h"
9887 #include <sys/types.h>
9888 #if defined(HAVE_RPC_RPC_H)
9889 #include <rpc/rpc.h>
9895 if { (eval echo configure
:9896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9897 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9899 echo "configure: failed program was:" >&5
9900 cat conftest.
$ac_ext >&5
9902 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9907 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9908 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9909 cat >> confdefs.h
<<\EOF
9910 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9916 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9917 echo "configure:9918: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9918 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9922 cat > conftest.
$ac_ext <<EOF
9923 #line 9924 "configure"
9924 #include "confdefs.h"
9925 #include <sys/types.h>
9926 #ifdef HAVE_SYS_SECURITY_H
9927 #include <sys/security.h>
9929 #endif /* HAVE_SYS_SECURITY_H */
9930 #if defined(HAVE_RPC_RPC_H)
9931 #include <rpc/rpc.h>
9937 if { (eval echo configure
:9938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9939 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9941 echo "configure: failed program was:" >&5
9942 cat conftest.
$ac_ext >&5
9944 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9949 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9950 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9951 cat >> confdefs.h
<<\EOF
9952 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9957 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9958 echo "configure:9959: checking for test routines" >&5
9959 if test "$cross_compiling" = yes; then
9960 echo "configure: warning: cannot run when cross-compiling" 1>&2
9962 cat > conftest.
$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9965 #include "${srcdir-.}/tests/trivial.c"
9967 if { (eval echo configure
:9968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9969 echo "$ac_t""yes" 1>&6
9971 echo "configure: failed program was:" >&5
9972 cat conftest.
$ac_ext >&5
9974 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9980 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9981 echo "configure:9982: checking for ftruncate extend" >&5
9982 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9986 if test "$cross_compiling" = yes; then
9987 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9989 cat > conftest.
$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 #include "${srcdir-.}/tests/ftruncate.c"
9994 if { (eval echo configure
:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9996 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9998 echo "configure: failed program was:" >&5
9999 cat conftest.
$ac_ext >&5
10001 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10008 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10009 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10010 cat >> confdefs.h
<<\EOF
10011 #define HAVE_FTRUNCATE_EXTEND 1
10016 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10017 echo "configure:10018: checking for broken getgroups" >&5
10018 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10022 if test "$cross_compiling" = yes; then
10023 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10025 cat > conftest.
$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 #include "${srcdir-.}/tests/getgroups.c"
10030 if { (eval echo configure
:10031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10032 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10034 echo "configure: failed program was:" >&5
10035 cat conftest.
$ac_ext >&5
10037 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10044 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10045 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10046 cat >> confdefs.h
<<\EOF
10047 #define HAVE_BROKEN_GETGROUPS 1
10052 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10053 echo "configure:10054: checking whether getpass should be replaced" >&5
10054 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10058 SAVE_CPPFLAGS
="$CPPFLAGS"
10059 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10060 cat > conftest.
$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10064 #define REPLACE_GETPASS 1
10065 #define NO_CONFIG_H 1
10066 #define main dont_declare_main
10067 #include "${srcdir-.}/lib/getsmbpass.c"
10074 if { (eval echo configure
:10075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10076 samba_cv_REPLACE_GETPASS
=yes
10078 echo "configure: failed program was:" >&5
10079 cat conftest.
$ac_ext >&5
10081 samba_cv_REPLACE_GETPASS
=no
10084 CPPFLAGS
="$SAVE_CPPFLAGS"
10088 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10089 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10090 cat >> confdefs.h
<<\EOF
10091 #define REPLACE_GETPASS 1
10096 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10097 echo "configure:10098: checking for broken inet_ntoa" >&5
10098 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10102 if test "$cross_compiling" = yes; then
10103 samba_cv_REPLACE_INET_NTOA
=cross
10105 cat > conftest.
$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10110 #include <sys/types.h>
10111 #include <netinet/in.h>
10112 #ifdef HAVE_ARPA_INET_H
10113 #include <arpa/inet.h>
10115 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10116 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10117 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
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_REPLACE_INET_NTOA
=yes
10124 echo "configure: failed program was:" >&5
10125 cat conftest.
$ac_ext >&5
10127 samba_cv_REPLACE_INET_NTOA
=no
10134 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10135 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10136 cat >> confdefs.h
<<\EOF
10137 #define REPLACE_INET_NTOA 1
10142 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10143 echo "configure:10144: checking for secure mkstemp" >&5
10144 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10148 if test "$cross_compiling" = yes; then
10149 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10151 cat > conftest.
$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 #include <stdlib.h>
10155 #include <sys/types.h>
10156 #include <sys/stat.h>
10157 #include <unistd.h>
10160 char tpl[20]="/tmp/test.XXXXXX";
10161 int fd = mkstemp(tpl);
10162 if (fd == -1) exit(1);
10164 if (fstat(fd, &st) != 0) exit(1);
10165 if ((st.st_mode & 0777) != 0600) exit(1);
10169 if { (eval echo configure
:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10171 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10173 echo "configure: failed program was:" >&5
10174 cat conftest.
$ac_ext >&5
10176 samba_cv_HAVE_SECURE_MKSTEMP
=no
10183 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10184 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10185 cat >> confdefs.h
<<\EOF
10186 #define HAVE_SECURE_MKSTEMP 1
10191 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10192 echo "configure:10193: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10193 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10197 if test "$cross_compiling" = yes; then
10198 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10200 cat > conftest.
$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <unistd.h>
10204 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10206 if { (eval echo configure
:10207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10208 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10210 echo "configure: failed program was:" >&5
10211 cat conftest.
$ac_ext >&5
10213 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10220 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10221 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10222 cat >> confdefs.h
<<\EOF
10223 #define SYSCONF_SC_NGROUPS_MAX 1
10228 echo $ac_n "checking for root""... $ac_c" 1>&6
10229 echo "configure:10230: checking for root" >&5
10230 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10234 if test "$cross_compiling" = yes; then
10235 samba_cv_HAVE_ROOT
=cross
10237 cat > conftest.
$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10240 main() { exit(getuid() != 0); }
10242 if { (eval echo configure
:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10244 samba_cv_HAVE_ROOT
=yes
10246 echo "configure: failed program was:" >&5
10247 cat conftest.
$ac_ext >&5
10249 samba_cv_HAVE_ROOT
=no
10256 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10257 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10258 cat >> confdefs.h
<<\EOF
10259 #define HAVE_ROOT 1
10263 echo "configure: warning: running as non-root will disable some tests" 1>&2
10267 # look for a method of finding the list of network interfaces
10269 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10270 echo "configure:10271: checking for iface AIX" >&5
10271 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10272 echo $ac_n "(cached) $ac_c" 1>&6
10275 if test "$cross_compiling" = yes; then
10276 samba_cv_HAVE_IFACE_AIX
=cross
10278 cat > conftest.
$ac_ext <<EOF
10279 #line 10280 "configure"
10280 #include "confdefs.h"
10282 #define HAVE_IFACE_AIX 1
10283 #define AUTOCONF_TEST 1
10284 #include "confdefs.h"
10285 #include "${srcdir-.}/lib/interfaces.c"
10287 if { (eval echo configure
:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10289 samba_cv_HAVE_IFACE_AIX
=yes
10291 echo "configure: failed program was:" >&5
10292 cat conftest.
$ac_ext >&5
10294 samba_cv_HAVE_IFACE_AIX
=no
10301 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10302 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10303 iface
=yes;cat >> confdefs.h
<<\EOF
10304 #define HAVE_IFACE_AIX 1
10309 if test $iface = no
; then
10310 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10311 echo "configure:10312: checking for iface ifconf" >&5
10312 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10316 if test "$cross_compiling" = yes; then
10317 samba_cv_HAVE_IFACE_IFCONF
=cross
10319 cat > conftest.
$ac_ext <<EOF
10320 #line 10321 "configure"
10321 #include "confdefs.h"
10323 #define HAVE_IFACE_IFCONF 1
10324 #define AUTOCONF_TEST 1
10325 #include "confdefs.h"
10326 #include "${srcdir-.}/lib/interfaces.c"
10328 if { (eval echo configure
:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10330 samba_cv_HAVE_IFACE_IFCONF
=yes
10332 echo "configure: failed program was:" >&5
10333 cat conftest.
$ac_ext >&5
10335 samba_cv_HAVE_IFACE_IFCONF
=no
10342 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10343 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10344 iface
=yes;cat >> confdefs.h
<<\EOF
10345 #define HAVE_IFACE_IFCONF 1
10351 if test $iface = no
; then
10352 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10353 echo "configure:10354: checking for iface ifreq" >&5
10354 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10358 if test "$cross_compiling" = yes; then
10359 samba_cv_HAVE_IFACE_IFREQ
=cross
10361 cat > conftest.
$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10365 #define HAVE_IFACE_IFREQ 1
10366 #define AUTOCONF_TEST 1
10367 #include "confdefs.h"
10368 #include "${srcdir-.}/lib/interfaces.c"
10370 if { (eval echo configure
:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10372 samba_cv_HAVE_IFACE_IFREQ
=yes
10374 echo "configure: failed program was:" >&5
10375 cat conftest.
$ac_ext >&5
10377 samba_cv_HAVE_IFACE_IFREQ
=no
10384 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10385 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10386 iface
=yes;cat >> confdefs.h
<<\EOF
10387 #define HAVE_IFACE_IFREQ 1
10394 ################################################
10395 # look for a method of setting the effective uid
10397 if test $seteuid = no
; then
10398 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10399 echo "configure:10400: checking for setresuid" >&5
10400 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10404 if test "$cross_compiling" = yes; then
10405 samba_cv_USE_SETRESUID
=cross
10407 cat > conftest.
$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10411 #define AUTOCONF_TEST 1
10412 #define USE_SETRESUID 1
10413 #include "confdefs.h"
10414 #include "${srcdir-.}/lib/util_sec.c"
10416 if { (eval echo configure
:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10418 samba_cv_USE_SETRESUID
=yes
10420 echo "configure: failed program was:" >&5
10421 cat conftest.
$ac_ext >&5
10423 samba_cv_USE_SETRESUID
=no
10430 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10431 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10432 seteuid
=yes;cat >> confdefs.h
<<\EOF
10433 #define USE_SETRESUID 1
10440 if test $seteuid = no
; then
10441 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10442 echo "configure:10443: checking for setreuid" >&5
10443 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10447 if test "$cross_compiling" = yes; then
10448 samba_cv_USE_SETREUID
=cross
10450 cat > conftest.
$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10454 #define AUTOCONF_TEST 1
10455 #define USE_SETREUID 1
10456 #include "confdefs.h"
10457 #include "${srcdir-.}/lib/util_sec.c"
10459 if { (eval echo configure
:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10461 samba_cv_USE_SETREUID
=yes
10463 echo "configure: failed program was:" >&5
10464 cat conftest.
$ac_ext >&5
10466 samba_cv_USE_SETREUID
=no
10473 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10474 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10475 seteuid
=yes;cat >> confdefs.h
<<\EOF
10476 #define USE_SETREUID 1
10482 if test $seteuid = no
; then
10483 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10484 echo "configure:10485: checking for seteuid" >&5
10485 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10489 if test "$cross_compiling" = yes; then
10490 samba_cv_USE_SETEUID
=cross
10492 cat > conftest.
$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10496 #define AUTOCONF_TEST 1
10497 #define USE_SETEUID 1
10498 #include "confdefs.h"
10499 #include "${srcdir-.}/lib/util_sec.c"
10501 if { (eval echo configure
:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10503 samba_cv_USE_SETEUID
=yes
10505 echo "configure: failed program was:" >&5
10506 cat conftest.
$ac_ext >&5
10508 samba_cv_USE_SETEUID
=no
10515 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10516 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10517 seteuid
=yes;cat >> confdefs.h
<<\EOF
10518 #define USE_SETEUID 1
10524 if test $seteuid = no
; then
10525 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10526 echo "configure:10527: checking for setuidx" >&5
10527 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10528 echo $ac_n "(cached) $ac_c" 1>&6
10531 if test "$cross_compiling" = yes; then
10532 samba_cv_USE_SETUIDX
=cross
10534 cat > conftest.
$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10538 #define AUTOCONF_TEST 1
10539 #define USE_SETUIDX 1
10540 #include "confdefs.h"
10541 #include "${srcdir-.}/lib/util_sec.c"
10543 if { (eval echo configure
:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10545 samba_cv_USE_SETUIDX
=yes
10547 echo "configure: failed program was:" >&5
10548 cat conftest.
$ac_ext >&5
10550 samba_cv_USE_SETUIDX
=no
10557 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10558 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10559 seteuid
=yes;cat >> confdefs.h
<<\EOF
10560 #define USE_SETUIDX 1
10567 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10568 echo "configure:10569: checking for working mmap" >&5
10569 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10570 echo $ac_n "(cached) $ac_c" 1>&6
10573 if test "$cross_compiling" = yes; then
10574 samba_cv_HAVE_MMAP
=cross
10576 cat > conftest.
$ac_ext <<EOF
10577 #line 10578 "configure"
10578 #include "confdefs.h"
10579 #include "${srcdir-.}/tests/shared_mmap.c"
10581 if { (eval echo configure
:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10583 samba_cv_HAVE_MMAP
=yes
10585 echo "configure: failed program was:" >&5
10586 cat conftest.
$ac_ext >&5
10588 samba_cv_HAVE_MMAP
=no
10595 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10596 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10597 cat >> confdefs.h
<<\EOF
10598 #define HAVE_MMAP 1
10603 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10604 echo "configure:10605: checking for ftruncate needs root" >&5
10605 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10609 if test "$cross_compiling" = yes; then
10610 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10612 cat > conftest.
$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615 #include "${srcdir-.}/tests/ftruncroot.c"
10617 if { (eval echo configure
:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10619 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10621 echo "configure: failed program was:" >&5
10622 cat conftest.
$ac_ext >&5
10624 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10631 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10632 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10633 cat >> confdefs.h
<<\EOF
10634 #define FTRUNCATE_NEEDS_ROOT 1
10639 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10640 echo "configure:10641: checking for fcntl locking" >&5
10641 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10645 if test "$cross_compiling" = yes; then
10646 samba_cv_HAVE_FCNTL_LOCK
=cross
10648 cat > conftest.
$ac_ext <<EOF
10649 #line 10650 "configure"
10650 #include "confdefs.h"
10651 #include "${srcdir-.}/tests/fcntl_lock.c"
10653 if { (eval echo configure
:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10655 samba_cv_HAVE_FCNTL_LOCK
=yes
10657 echo "configure: failed program was:" >&5
10658 cat conftest.
$ac_ext >&5
10660 samba_cv_HAVE_FCNTL_LOCK
=no
10667 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10668 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10669 cat >> confdefs.h
<<\EOF
10670 #define HAVE_FCNTL_LOCK 1
10675 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10676 echo "configure:10677: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10677 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10678 echo $ac_n "(cached) $ac_c" 1>&6
10681 if test "$cross_compiling" = yes; then
10682 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10684 cat > conftest.
$ac_ext <<EOF
10685 #line 10686 "configure"
10686 #include "confdefs.h"
10687 #include "${srcdir-.}/tests/fcntl_lock64.c"
10689 if { (eval echo configure
:10690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10691 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10693 echo "configure: failed program was:" >&5
10694 cat conftest.
$ac_ext >&5
10696 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10703 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10704 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10705 cat >> confdefs.h
<<\EOF
10706 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10713 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10714 echo "configure:10715: checking for 64 bit fcntl locking" >&5
10715 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10719 if test "$cross_compiling" = yes; then
10720 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10722 cat > conftest.
$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10726 #if defined(HAVE_UNISTD_H)
10727 #include <unistd.h>
10730 #include <stdlib.h>
10732 #ifdef HAVE_FCNTL_H
10736 #ifdef HAVE_SYS_FCNTL_H
10737 #include <sys/fcntl.h>
10739 main() { struct flock64 fl64;
10740 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10747 if { (eval echo configure
:10748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10749 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10751 echo "configure: failed program was:" >&5
10752 cat conftest.
$ac_ext >&5
10754 samba_cv_HAVE_STRUCT_FLOCK64
=no
10761 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10763 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10764 cat >> confdefs.h
<<\EOF
10765 #define HAVE_STRUCT_FLOCK64 1
10771 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10772 echo "configure:10773: checking for broken nisplus include files" >&5
10773 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10774 echo $ac_n "(cached) $ac_c" 1>&6
10777 cat > conftest.
$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10780 #include <sys/acl.h>
10781 #if defined(HAVE_RPCSVC_NIS_H)
10782 #include <rpcsvc/nis.h>
10788 if { (eval echo configure
:10789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10790 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10792 echo "configure: failed program was:" >&5
10793 cat conftest.
$ac_ext >&5
10795 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10800 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10801 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10802 cat >> confdefs.h
<<\EOF
10803 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10809 #################################################
10810 # check for smbwrapper support
10811 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10812 echo "configure:10813: checking whether to use smbwrapper" >&5
10813 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10814 if test "${with_smbwrapper+set}" = set; then
10815 withval
="$with_smbwrapper"
10818 echo "$ac_t""yes" 1>&6
10819 cat >> confdefs.h
<<\EOF
10820 #define WITH_SMBWRAPPER 1
10823 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10825 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10828 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10831 # Conditions under which smbwrapper should not be built.
10833 if test x
$PICFLAG = x
; then
10834 echo No support
for PIC code
- disabling smbwrapper and smbsh
10837 elif test x
$ac_cv_func_syscall = xno
; then
10838 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10844 echo "$ac_t""no" 1>&6
10848 echo "$ac_t""no" 1>&6
10853 #################################################
10854 # check for the AFS filesystem
10855 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10856 echo "configure:10857: checking whether to use AFS" >&5
10857 # Check whether --with-afs or --without-afs was given.
10858 if test "${with_afs+set}" = set; then
10859 withval
="$with_afs"
10862 echo "$ac_t""yes" 1>&6
10863 cat >> confdefs.h
<<\EOF
10869 echo "$ac_t""no" 1>&6
10873 echo "$ac_t""no" 1>&6
10879 #################################################
10880 # check for the DFS auth system
10881 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
10882 echo "configure:10883: checking whether to use DCE/DFS auth" >&5
10883 # Check whether --with-dfs or --without-dfs was given.
10884 if test "${with_dfs+set}" = set; then
10885 withval
="$with_dfs"
10888 echo "$ac_t""yes" 1>&6
10889 cat >> confdefs.h
<<\EOF
10895 echo "$ac_t""no" 1>&6
10899 echo "$ac_t""no" 1>&6
10904 #################################################
10905 # check for Kerberos IV auth system
10906 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10907 echo "configure:10908: checking whether to use Kerberos IV" >&5
10908 # Check whether --with-krb4 or --without-krb4 was given.
10909 if test "${with_krb4+set}" = set; then
10910 withval
="$with_krb4"
10913 echo "$ac_t""yes" 1>&6
10914 cat >> confdefs.h
<<\EOF
10915 #define KRB4_AUTH 1
10918 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10919 echo "configure:10920: checking for dn_expand in -lresolv" >&5
10920 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10924 ac_save_LIBS
="$LIBS"
10925 LIBS
="-lresolv $LIBS"
10926 cat > conftest.
$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10929 /* Override any gcc2 internal prototype to avoid an error. */
10930 /* We use char because int might match the return type of a gcc2
10931 builtin and then its argument prototype would still apply. */
10938 if { (eval echo configure
:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10940 eval "ac_cv_lib_$ac_lib_var=yes"
10942 echo "configure: failed program was:" >&5
10943 cat conftest.
$ac_ext >&5
10945 eval "ac_cv_lib_$ac_lib_var=no"
10948 LIBS
="$ac_save_LIBS"
10951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10952 echo "$ac_t""yes" 1>&6
10953 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10955 cat >> confdefs.h
<<EOF
10956 #define $ac_tr_lib 1
10959 LIBS
="-lresolv $LIBS"
10962 echo "$ac_t""no" 1>&6
10965 LIBS
="$LIBS -lkrb -ldes"
10966 CFLAGS
="$CFLAGS -I$withval/include"
10967 LDFLAGS
="$LDFLAGS -L$withval/lib"
10970 echo "$ac_t""no" 1>&6
10974 echo "$ac_t""no" 1>&6
10979 #################################################
10980 # check for Kerberos 5 auth system
10981 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10982 echo "configure:10983: checking whether to use Kerberos 5" >&5
10983 # Check whether --with-krb5 or --without-krb5 was given.
10984 if test "${with_krb5+set}" = set; then
10985 withval
="$with_krb5"
10988 echo "$ac_t""yes" 1>&6
10989 cat >> confdefs.h
<<\EOF
10990 #define KRB5_AUTH 1
10993 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10994 CFLAGS
="$CFLAGS -I$withval/include"
10995 LDFLAGS
="$LDFLAGS -L$withval/lib"
10998 echo "$ac_t""no" 1>&6
11002 echo "$ac_t""no" 1>&6
11007 #################################################
11008 # check for automount support
11009 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11010 echo "configure:11011: checking whether to use AUTOMOUNT" >&5
11011 # Check whether --with-automount or --without-automount was given.
11012 if test "${with_automount+set}" = set; then
11013 withval
="$with_automount"
11016 echo "$ac_t""yes" 1>&6
11017 cat >> confdefs.h
<<\EOF
11018 #define WITH_AUTOMOUNT 1
11023 echo "$ac_t""no" 1>&6
11027 echo "$ac_t""no" 1>&6
11032 #################################################
11033 # check for smbmount support
11034 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11035 echo "configure:11036: checking whether to use SMBMOUNT" >&5
11036 # Check whether --with-smbmount or --without-smbmount was given.
11037 if test "${with_smbmount+set}" = set; then
11038 withval
="$with_smbmount"
11041 echo "$ac_t""yes" 1>&6
11042 cat >> confdefs.h
<<\EOF
11043 #define WITH_SMBMOUNT 1
11046 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11049 echo "$ac_t""no" 1>&6
11054 echo "$ac_t""no" 1>&6
11061 #################################################
11062 # check for a PAM password database
11063 with_pam_for_crypt
=no
11064 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11065 echo "configure:11066: checking whether to use PAM password database" >&5
11066 # Check whether --with-pam or --without-pam was given.
11067 if test "${with_pam+set}" = set; then
11068 withval
="$with_pam"
11071 echo "$ac_t""yes" 1>&6
11072 cat >> confdefs.h
<<\EOF
11077 with_pam_for_crypt
=yes
11080 echo "$ac_t""no" 1>&6
11084 echo "$ac_t""no" 1>&6
11089 # we can't build a pam module if we don't have pam.
11090 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11091 echo "configure:11092: checking for pam_get_data in -lpam" >&5
11092 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11094 echo $ac_n "(cached) $ac_c" 1>&6
11096 ac_save_LIBS
="$LIBS"
11098 cat > conftest.
$ac_ext <<EOF
11099 #line 11100 "configure"
11100 #include "confdefs.h"
11101 /* Override any gcc2 internal prototype to avoid an error. */
11102 /* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11104 char pam_get_data();
11110 if { (eval echo configure
:11111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11112 eval "ac_cv_lib_$ac_lib_var=yes"
11114 echo "configure: failed program was:" >&5
11115 cat conftest.
$ac_ext >&5
11117 eval "ac_cv_lib_$ac_lib_var=no"
11120 LIBS
="$ac_save_LIBS"
11123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11124 echo "$ac_t""yes" 1>&6
11125 cat >> confdefs.h
<<\EOF
11126 #define HAVE_LIBPAM 1
11130 echo "$ac_t""no" 1>&6
11134 #################################################
11135 # check for pam_smbpass support
11136 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11137 echo "configure:11138: checking whether to use pam_smbpass" >&5
11138 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11139 if test "${with_pam_smbpass+set}" = set; then
11140 withval
="$with_pam_smbpass"
11143 echo "$ac_t""yes" 1>&6
11145 # Conditions under which pam_smbpass should not be built.
11147 if test x
$PICFLAG = x
; then
11148 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11150 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11151 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11154 cat >> confdefs.h
<<\EOF
11155 #define WITH_PAM_SMBPASS 1
11158 PAM_MOD
="bin/pam_smbpass.so"
11162 echo "$ac_t""no" 1>&6
11166 echo "$ac_t""no" 1>&6
11172 ###############################################
11173 # test for where we get crypt() from, but only
11175 if test $with_pam_for_crypt = no
; then
11176 for ac_func
in crypt
11178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11179 echo "configure:11180: checking for $ac_func" >&5
11180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11183 cat > conftest.
$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 /* System header to define __stub macros and hopefully few prototypes,
11187 which can conflict with char $ac_func(); below. */
11188 #include <assert.h>
11189 /* Override any gcc2 internal prototype to avoid an error. */
11190 /* We use char because int might match the return type of a gcc2
11191 builtin and then its argument prototype would still apply. */
11196 /* The GNU C library defines this for functions which it implements
11197 to always fail with ENOSYS. Some functions are actually named
11198 something starting with __ and the normal name is an alias. */
11199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11207 if { (eval echo configure
:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11209 eval "ac_cv_func_$ac_func=yes"
11211 echo "configure: failed program was:" >&5
11212 cat conftest.
$ac_ext >&5
11214 eval "ac_cv_func_$ac_func=no"
11219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11220 echo "$ac_t""yes" 1>&6
11221 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11222 cat >> confdefs.h
<<EOF
11223 #define $ac_tr_func 1
11227 echo "$ac_t""no" 1>&6
11231 if test x
"$ac_cv_func_crypt" = x
"no"; then
11232 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11233 echo "configure:11234: checking for crypt in -lcrypt" >&5
11234 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11238 ac_save_LIBS
="$LIBS"
11239 LIBS
="-lcrypt $LIBS"
11240 cat > conftest.
$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 /* Override any gcc2 internal prototype to avoid an error. */
11244 /* We use char because int might match the return type of a gcc2
11245 builtin and then its argument prototype would still apply. */
11252 if { (eval echo configure
:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11254 eval "ac_cv_lib_$ac_lib_var=yes"
11256 echo "configure: failed program was:" >&5
11257 cat conftest.
$ac_ext >&5
11259 eval "ac_cv_lib_$ac_lib_var=no"
11262 LIBS
="$ac_save_LIBS"
11265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11266 echo "$ac_t""yes" 1>&6
11267 LIBS
="$LIBS -lcrypt";
11268 cat >> confdefs.h
<<\EOF
11269 #define HAVE_CRYPT 1
11273 echo "$ac_t""no" 1>&6
11280 ## moved after the check for -lcrypt in order to
11281 ## ensure that the necessary libraries are included
11282 ## check checking for truncated salt. Wrapped by the
11283 ## $with_pam_for_crypt variable as above --jerry
11285 if test $with_pam_for_crypt = no
; then
11286 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11287 echo "configure:11288: checking for a crypt that needs truncated salt" >&5
11288 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11292 if test "$cross_compiling" = yes; then
11293 samba_cv_HAVE_TRUNCATED_SALT
=cross
11295 cat > conftest.
$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11298 #include "${srcdir-.}/tests/crypttest.c"
11300 if { (eval echo configure
:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11302 samba_cv_HAVE_TRUNCATED_SALT
=no
11304 echo "configure: failed program was:" >&5
11305 cat conftest.
$ac_ext >&5
11307 samba_cv_HAVE_TRUNCATED_SALT
=yes
11314 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11315 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11316 cat >> confdefs.h
<<\EOF
11317 #define HAVE_TRUNCATED_SALT 1
11324 #################################################
11325 # check for a TDB password database
11326 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11327 echo "configure:11328: checking whether to use TDB password database" >&5
11328 # Check whether --with-tdbpwd or --without-tdbpwd was given.
11329 if test "${with_tdbpwd+set}" = set; then
11330 withval
="$with_tdbpwd"
11333 echo "$ac_t""yes" 1>&6
11334 cat >> confdefs.h
<<\EOF
11335 #define WITH_TDBPWD 1
11338 { echo "configure: error: TDB password database not supported in this version." 1>&2; exit 1; }
11341 echo "$ac_t""no" 1>&6
11345 echo "$ac_t""no" 1>&6
11350 #################################################
11351 # check for a LDAP password database
11352 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11353 echo "configure:11354: checking whether to use LDAP password database" >&5
11354 # Check whether --with-ldap or --without-ldap was given.
11355 if test "${with_ldap+set}" = set; then
11356 withval
="$with_ldap"
11359 echo "$ac_t""yes" 1>&6
11360 cat >> confdefs.h
<<\EOF
11361 #define WITH_LDAP 1
11364 LIBS
="-lldap -llber -lresolv $LIBS"
11367 echo "$ac_t""no" 1>&6
11371 echo "$ac_t""no" 1>&6
11376 #################################################
11377 ## commented out by --jerry
11378 # check for a NISPLUS password database
11379 #AC_MSG_CHECKING(whether to use NISPLUS password database)
11380 #AC_ARG_WITH(nisplus,
11381 #[ --with-nisplus Include NISPLUS password database support (default=no)],
11382 #[ case "$withval" in
11384 # AC_MSG_RESULT(yes)
11385 # AC_DEFINE(WITH_NISPLUS)
11388 # AC_MSG_RESULT(no)
11391 # AC_MSG_RESULT(no)
11394 #################################################
11395 # check for a NISPLUS_HOME support
11396 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11397 echo "configure:11398: checking whether to use NISPLUS_HOME" >&5
11398 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11399 if test "${with_nisplus_home+set}" = set; then
11400 withval
="$with_nisplus_home"
11403 echo "$ac_t""yes" 1>&6
11404 cat >> confdefs.h
<<\EOF
11405 #define WITH_NISPLUS_HOME 1
11410 echo "$ac_t""no" 1>&6
11414 echo "$ac_t""no" 1>&6
11419 #################################################
11420 # check for the secure socket layer
11421 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11422 echo "configure:11423: checking whether to use SSL" >&5
11423 # Check whether --with-ssl or --without-ssl was given.
11424 if test "${with_ssl+set}" = set; then
11425 withval
="$with_ssl"
11428 echo "$ac_t""yes" 1>&6
11429 cat >> confdefs.h
<<\EOF
11433 withval
="/usr/local/ssl" # default
11435 if test "${with_sslinc+set}" = set; then
11437 withval
="$with_sslinc"
11440 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11441 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11442 LIBS
="-lssl -lcrypto $LIBS"
11443 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11446 CFLAGS
="-I${withval} $CFLAGS"
11447 LIBS
="-lssl -lcrypto $LIBS"
11448 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11454 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11455 LIBS
="-lssl -lcrypto $LIBS"
11456 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11460 if test ! -d ${withval}; then
11461 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11465 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11469 echo "$ac_t""no" 1>&6
11473 echo "$ac_t""no" 1>&6
11478 #################################################
11479 # check for syslog logging
11480 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11481 echo "configure:11482: checking whether to use syslog logging" >&5
11482 # Check whether --with-syslog or --without-syslog was given.
11483 if test "${with_syslog+set}" = set; then
11484 withval
="$with_syslog"
11487 echo "$ac_t""yes" 1>&6
11488 cat >> confdefs.h
<<\EOF
11489 #define WITH_SYSLOG 1
11494 echo "$ac_t""no" 1>&6
11498 echo "$ac_t""no" 1>&6
11503 #################################################
11504 # check for a shared memory profiling support
11505 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11506 echo "configure:11507: checking whether to use profiling" >&5
11507 # Check whether --with-profile or --without-profile was given.
11508 if test "${with_profile+set}" = set; then
11509 withval
="$with_profile"
11512 echo "$ac_t""yes" 1>&6
11513 cat >> confdefs.h
<<\EOF
11514 #define WITH_PROFILE 1
11519 echo "$ac_t""no" 1>&6
11523 echo "$ac_t""no" 1>&6
11529 #################################################
11530 # check for experimental disk-quotas support
11531 QUOTAOBJS
=smbd
/noquotas.o
11533 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11534 echo "configure:11535: checking whether to support disk-quotas" >&5
11535 # Check whether --with-quotas or --without-quotas was given.
11536 if test "${with_quotas+set}" = set; then
11537 withval
="$with_quotas"
11540 echo "$ac_t""yes" 1>&6
11541 QUOTAOBJS
=smbd
/quotas.o
11544 echo "$ac_t""no" 1>&6
11548 echo "$ac_t""no" 1>&6
11554 #################################################
11555 # check for experimental utmp accounting
11557 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11558 echo "configure:11559: checking whether to support utmp accounting" >&5
11559 # Check whether --with-utmp or --without-utmp was given.
11560 if test "${with_utmp+set}" = set; then
11561 withval
="$with_utmp"
11564 echo "$ac_t""yes" 1>&6
11565 cat >> confdefs.h
<<\EOF
11566 #define WITH_UTMP 1
11571 echo "$ac_t""no" 1>&6
11575 echo "$ac_t""no" 1>&6
11580 #################################################
11581 # check for MS Dfs support
11583 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11584 echo "configure:11585: checking whether to support Microsoft Dfs" >&5
11585 # Check whether --with-msdfs or --without-msdfs was given.
11586 if test "${with_msdfs+set}" = set; then
11587 withval
="$with_msdfs"
11590 echo "$ac_t""yes" 1>&6
11591 cat >> confdefs.h
<<\EOF
11592 #define WITH_MSDFS 1
11597 echo "$ac_t""no" 1>&6
11601 echo "$ac_t""no" 1>&6
11606 #################################################
11607 # check for Samba VFS support
11609 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11610 echo "configure:11611: checking whether to support the experimantal Samba vfs" >&5
11611 # Check whether --with-vfs or --without-vfs was given.
11612 if test "${with_vfs+set}" = set; then
11613 withval
="$with_vfs"
11616 echo "$ac_t""yes" 1>&6
11617 cat >> confdefs.h
<<\EOF
11623 echo "$ac_t""no" 1>&6
11627 echo "$ac_t""no" 1>&6
11632 #################################################
11633 # these tests are taken from the GNU fileutils package
11634 echo "checking how to get filesystem space usage" 1>&6
11635 echo "configure:11636: checking how to get filesystem space usage" >&5
11638 # Test for statvfs64.
11639 if test $space = no
; then
11641 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11642 echo "configure:11643: checking statvfs64 function (SVR4)" >&5
11643 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11644 echo $ac_n "(cached) $ac_c" 1>&6
11646 if test "$cross_compiling" = yes; then
11647 fu_cv_sys_stat_statvfs64
=cross
11649 cat > conftest.
$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11653 #if defined(HAVE_UNISTD_H)
11654 #include <unistd.h>
11656 #include <sys/types.h>
11657 #include <sys/statvfs.h>
11660 struct statvfs64 fsd;
11661 exit (statvfs64 (".", &fsd));
11664 if { (eval echo configure
:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11666 fu_cv_sys_stat_statvfs64
=yes
11668 echo "configure: failed program was:" >&5
11669 cat conftest.
$ac_ext >&5
11671 fu_cv_sys_stat_statvfs64
=no
11678 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11679 if test $fu_cv_sys_stat_statvfs64 = yes; then
11681 cat >> confdefs.h
<<\EOF
11682 #define STAT_STATVFS64 1
11688 # Perform only the link test since it seems there are no variants of the
11689 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11690 # because that got a false positive on SCO OSR5. Adding the declaration
11691 # of a `struct statvfs' causes this test to fail (as it should) on such
11692 # systems. That system is reported to work fine with STAT_STATFS4 which
11693 # is what it gets when this test fails.
11694 if test $space = no
; then
11696 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11697 echo "configure:11698: checking statvfs function (SVR4)" >&5
11698 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11699 echo $ac_n "(cached) $ac_c" 1>&6
11701 cat > conftest.
$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 #include <sys/types.h>
11705 #include <sys/statvfs.h>
11707 struct statvfs fsd; statvfs (0, &fsd);
11710 if { (eval echo configure
:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11712 fu_cv_sys_stat_statvfs
=yes
11714 echo "configure: failed program was:" >&5
11715 cat conftest.
$ac_ext >&5
11717 fu_cv_sys_stat_statvfs
=no
11722 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11723 if test $fu_cv_sys_stat_statvfs = yes; then
11725 cat >> confdefs.h
<<\EOF
11726 #define STAT_STATVFS 1
11732 if test $space = no
; then
11733 # DEC Alpha running OSF/1
11734 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11735 echo "configure:11736: checking for 3-argument statfs function (DEC OSF/1)" >&5
11736 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11737 echo $ac_n "(cached) $ac_c" 1>&6
11739 if test "$cross_compiling" = yes; then
11740 fu_cv_sys_stat_statfs3_osf1
=no
11742 cat > conftest.
$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11746 #include <sys/param.h>
11747 #include <sys/types.h>
11748 #include <sys/mount.h>
11753 exit (statfs (".", &fsd, sizeof (struct statfs)));
11756 if { (eval echo configure
:11757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11758 fu_cv_sys_stat_statfs3_osf1
=yes
11760 echo "configure: failed program was:" >&5
11761 cat conftest.
$ac_ext >&5
11763 fu_cv_sys_stat_statfs3_osf1
=no
11770 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11771 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11773 cat >> confdefs.h
<<\EOF
11774 #define STAT_STATFS3_OSF1 1
11780 if test $space = no
; then
11782 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11783 echo "configure:11784: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11784 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11787 if test "$cross_compiling" = yes; then
11788 fu_cv_sys_stat_statfs2_bsize
=no
11790 cat > conftest.
$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11794 #ifdef HAVE_SYS_PARAM_H
11795 #include <sys/param.h>
11797 #ifdef HAVE_SYS_MOUNT_H
11798 #include <sys/mount.h>
11800 #ifdef HAVE_SYS_VFS_H
11801 #include <sys/vfs.h>
11807 exit (statfs (".", &fsd));
11810 if { (eval echo configure
:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11812 fu_cv_sys_stat_statfs2_bsize
=yes
11814 echo "configure: failed program was:" >&5
11815 cat conftest.
$ac_ext >&5
11817 fu_cv_sys_stat_statfs2_bsize
=no
11824 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11825 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11827 cat >> confdefs.h
<<\EOF
11828 #define STAT_STATFS2_BSIZE 1
11834 if test $space = no
; then
11836 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11837 echo "configure:11838: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11838 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11841 if test "$cross_compiling" = yes; then
11842 fu_cv_sys_stat_statfs4
=no
11844 cat > conftest.
$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 #include <sys/types.h>
11848 #include <sys/statfs.h>
11852 exit (statfs (".", &fsd, sizeof fsd, 0));
11855 if { (eval echo configure
:11856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11857 fu_cv_sys_stat_statfs4
=yes
11859 echo "configure: failed program was:" >&5
11860 cat conftest.
$ac_ext >&5
11862 fu_cv_sys_stat_statfs4
=no
11869 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11870 if test $fu_cv_sys_stat_statfs4 = yes; then
11872 cat >> confdefs.h
<<\EOF
11873 #define STAT_STATFS4 1
11879 if test $space = no
; then
11880 # 4.4BSD and NetBSD
11881 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11882 echo "configure:11883: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11883 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11884 echo $ac_n "(cached) $ac_c" 1>&6
11886 if test "$cross_compiling" = yes; then
11887 fu_cv_sys_stat_statfs2_fsize
=no
11889 cat > conftest.
$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11892 #include <sys/types.h>
11893 #ifdef HAVE_SYS_PARAM_H
11894 #include <sys/param.h>
11896 #ifdef HAVE_SYS_MOUNT_H
11897 #include <sys/mount.h>
11903 exit (statfs (".", &fsd));
11906 if { (eval echo configure
:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11908 fu_cv_sys_stat_statfs2_fsize
=yes
11910 echo "configure: failed program was:" >&5
11911 cat conftest.
$ac_ext >&5
11913 fu_cv_sys_stat_statfs2_fsize
=no
11920 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11921 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11923 cat >> confdefs.h
<<\EOF
11924 #define STAT_STATFS2_FSIZE 1
11930 if test $space = no
; then
11932 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11933 echo "configure:11934: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11934 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11935 echo $ac_n "(cached) $ac_c" 1>&6
11937 if test "$cross_compiling" = yes; then
11938 fu_cv_sys_stat_fs_data
=no
11940 cat > conftest.
$ac_ext <<EOF
11941 #line 11942 "configure"
11942 #include "confdefs.h"
11943 #include <sys/types.h>
11944 #ifdef HAVE_SYS_PARAM_H
11945 #include <sys/param.h>
11947 #ifdef HAVE_SYS_MOUNT_H
11948 #include <sys/mount.h>
11950 #ifdef HAVE_SYS_FS_TYPES_H
11951 #include <sys/fs_types.h>
11955 struct fs_data fsd;
11956 /* Ultrix's statfs returns 1 for success,
11957 0 for not mounted, -1 for failure. */
11958 exit (statfs (".", &fsd) != 1);
11961 if { (eval echo configure
:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11963 fu_cv_sys_stat_fs_data
=yes
11965 echo "configure: failed program was:" >&5
11966 cat conftest.
$ac_ext >&5
11968 fu_cv_sys_stat_fs_data
=no
11975 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11976 if test $fu_cv_sys_stat_fs_data = yes; then
11978 cat >> confdefs.h
<<\EOF
11979 #define STAT_STATFS2_FS_DATA 1
11986 # As a gating factor for large file support, in order to
11987 # use <4GB files we must have the following minimal support
11989 # long long, and a 64 bit off_t or off64_t.
11990 # If we don't have all of these then disable large
11993 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
11994 echo "configure:11995: checking checking if large file support can be enabled" >&5
11995 cat > conftest.
$ac_ext <<EOF
11996 #line 11997 "configure"
11997 #include "confdefs.h"
11999 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12000 #include <sys/types.h>
12009 if { (eval echo configure
:12010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12011 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12013 echo "configure: failed program was:" >&5
12014 cat conftest.
$ac_ext >&5
12016 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12019 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12020 echo "$ac_t""yes" 1>&6
12021 cat >> confdefs.h
<<\EOF
12022 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12026 echo "$ac_t""no" 1>&6
12029 # Check whether --with-spinlocks or --without-spinlocks was given.
12030 if test "${with_spinlocks+set}" = set; then
12031 withval
="$with_spinlocks"
12035 if test "x$with_spinlocks" = "xyes"; then
12036 cat >> confdefs.h
<<\EOF
12037 #define USE_SPINLOCKS 1
12041 case "$host_cpu" in
12043 cat >> confdefs.h
<<\EOF
12044 #define SPARC_SPINLOCKS 1
12049 i386|i486|i586|i686
)
12050 cat >> confdefs.h
<<\EOF
12051 #define INTEL_SPINLOCKS 1
12057 cat >> confdefs.h
<<\EOF
12058 #define MIPS_SPINLOCKS 1
12064 cat >> confdefs.h
<<\EOF
12065 #define POWERPC_SPINLOCKS 1
12072 #################################################
12073 # check for ACL support
12075 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12076 echo "configure:12077: checking whether to support ACLs" >&5
12077 # Check whether --with-acl-support or --without-acl-support was given.
12078 if test "${with_acl_support+set}" = set; then
12079 withval
="$with_acl_support"
12085 echo "$ac_t""Using UnixWare ACLs" 1>&6
12086 cat >> confdefs.h
<<\EOF
12087 #define HAVE_UNIXWARE_ACLS 1
12092 echo "$ac_t""Using solaris ACLs" 1>&6
12093 cat >> confdefs.h
<<\EOF
12094 #define HAVE_SOLARIS_ACLS 1
12099 echo "$ac_t""Using IRIX ACLs" 1>&6
12100 cat >> confdefs.h
<<\EOF
12101 #define HAVE_IRIX_ACLS 1
12106 echo "$ac_t""Using AIX ACLs" 1>&6
12107 cat >> confdefs.h
<<\EOF
12108 #define HAVE_AIX_ACLS 1
12113 echo "$ac_t""Using Tru64 ACLs" 1>&6
12114 cat >> confdefs.h
<<\EOF
12115 #define HAVE_TRU64_ACLS 1
12118 LIBS
="$LIBS -lpacl"
12121 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12122 echo "configure:12123: checking for acl_get_file in -lacl" >&5
12123 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12127 ac_save_LIBS
="$LIBS"
12129 cat > conftest.
$ac_ext <<EOF
12130 #line 12131 "configure"
12131 #include "confdefs.h"
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135 char acl_get_file();
12141 if { (eval echo configure
:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12143 eval "ac_cv_lib_$ac_lib_var=yes"
12145 echo "configure: failed program was:" >&5
12146 cat conftest.
$ac_ext >&5
12148 eval "ac_cv_lib_$ac_lib_var=no"
12151 LIBS
="$ac_save_LIBS"
12154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12157 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12158 cat >> confdefs.h
<<EOF
12159 #define $ac_tr_lib 1
12165 echo "$ac_t""no" 1>&6
12168 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12169 echo "configure:12170: checking for ACL support" >&5
12170 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12174 cat > conftest.
$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 #include <sys/types.h>
12178 #include <sys/acl.h>
12180 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12183 if { (eval echo configure
:12184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12185 samba_cv_HAVE_POSIX_ACLS
=yes
12187 echo "configure: failed program was:" >&5
12188 cat conftest.
$ac_ext >&5
12190 samba_cv_HAVE_POSIX_ACLS
=no
12195 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12196 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12197 echo "$ac_t""Using posix ACLs" 1>&6
12198 cat >> confdefs.h
<<\EOF
12199 #define HAVE_POSIX_ACLS 1
12202 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12203 echo "configure:12204: checking for acl_get_perm_np" >&5
12204 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12205 echo $ac_n "(cached) $ac_c" 1>&6
12208 cat > conftest.
$ac_ext <<EOF
12209 #line 12210 "configure"
12210 #include "confdefs.h"
12211 #include <sys/types.h>
12212 #include <sys/acl.h>
12214 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12217 if { (eval echo configure
:12218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12219 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12221 echo "configure: failed program was:" >&5
12222 cat conftest.
$ac_ext >&5
12224 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12229 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12230 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12231 cat >> confdefs.h
<<\EOF
12232 #define HAVE_ACL_GET_PERM_NP 1
12241 echo "$ac_t""no" 1>&6
12242 cat >> confdefs.h
<<\EOF
12243 #define HAVE_NO_ACLS 1
12249 cat >> confdefs.h
<<\EOF
12250 #define HAVE_NO_ACLS 1
12253 echo "$ac_t""no" 1>&6
12258 #################################################
12259 # check for the historical SAMBA installation
12261 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
12262 # Put all binaries under the /usr/local/samba/bin directory.
12266 #################################################
12267 # Check whether winbind is supported on this platform. If so we need to
12268 # build and install client programs (WINBIND_TARGETS), sbin programs
12269 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12271 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12272 echo "configure:12273: checking whether to build winbind" >&5
12274 # Initially, the value of $host_os decides whether winbind is supported
12282 winbind_no_reason
=", unsupported on $host_os"
12286 # Check the setting of --with-winbindd
12288 # Check whether --with-winbind or --without-winbind was given.
12289 if test "${with_winbind+set}" = set; then
12290 withval
="$with_winbind"
12304 # We need unix domain sockets for winbind
12306 if test x
"$HAVE_WINBIND" = x
"yes"; then
12307 if test x
"$samba_cv_unixsocket" = x
"no"; then
12308 winbind_no_reason
=", no unix domain socket support on $host_os"
12313 # Display test results
12315 if test x
"$HAVE_WINBIND" = x
"yes"; then
12317 echo "$ac_t""yes" 1>&6
12319 WINBIND_TARGETS
="\$(WINBIND_PROGS)"
12320 WINBIND_STARGETS
="\$(WINBIND_SPROGS)"
12321 WINBIND_LTARGETS
="\$(WINBIND_LPROGS)"
12323 case "$with_pam" in
12325 WINBIND_PAM_PROGS
="\$(WINBIND_PAM_PROGS)"
12329 echo "$ac_t""no$winbind_no_reason" 1>&6
12332 WINBIND_STARGETS
=""
12333 WINBIND_LTARGETS
=""
12334 WINBIND_PAM_PROGS
=""
12337 # Substitution time!
12344 #################################################
12345 # final configure stuff
12346 echo "checking configure summary"
12347 if test "$cross_compiling" = yes; then
12350 cat > conftest.
$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12353 #include "${srcdir-.}/tests/summary.c"
12355 if { (eval echo configure
:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12357 echo "configure OK";
12359 echo "configure: failed program was:" >&5
12360 cat conftest.
$ac_ext >&5
12362 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12372 cat > confcache
<<\EOF
12373 # This file is a shell script that caches the results of configure
12374 # tests run on this system so they can be shared between configure
12375 # scripts and configure runs. It is not useful on other systems.
12376 # If it contains results you don't want to keep, you may remove or edit it.
12378 # By default, configure uses ./config.cache as the cache file,
12379 # creating it if it does not exist already. You can give configure
12380 # the --cache-file=FILE option to use a different cache file; that is
12381 # what configure does when it calls configure scripts in
12382 # subdirectories, so they share the cache.
12383 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12384 # config.status only pays attention to the cache file if you give it the
12385 # --recheck option to rerun configure.
12388 # The following way of writing the cache mishandles newlines in values,
12389 # but we know of no workaround that is simple, portable, and efficient.
12390 # So, don't put newlines in cache variables' values.
12391 # Ultrix sh set writes to stderr and can't be redirected directly,
12392 # and sets the high bit in the cache file unless we assign to the vars.
12394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12396 # `set' does not quote correctly, so add quotes (double-quote substitution
12397 # turns \\\\ into \\, and sed turns \\ into \).
12399 -e "s/'/'\\\\''/g" \
12400 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12403 # `set' quotes correctly as required by POSIX, so do not add quotes.
12404 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12407 if cmp -s $cache_file confcache
; then
12410 if test -w $cache_file; then
12411 echo "updating cache $cache_file"
12412 cat confcache
> $cache_file
12414 echo "not updating unwritable cache $cache_file"
12419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12421 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12422 # Let make expand exec_prefix.
12423 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12425 # Any assignment to VPATH causes Sun make to only execute
12426 # the first set of double-colon rules, so remove it if not needed.
12427 # If there is a colon in the path, we need to keep it.
12428 if test "x$srcdir" = x.
; then
12429 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12432 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12434 DEFS
=-DHAVE_CONFIG_H
12436 # Without the "./", some shells look in PATH for config.status.
12437 : ${CONFIG_STATUS=./config.status}
12439 echo creating
$CONFIG_STATUS
12440 rm -f $CONFIG_STATUS
12441 cat > $CONFIG_STATUS <<EOF
12443 # Generated automatically by configure.
12444 # Run this file to recreate the current configuration.
12445 # This directory was configured as follows,
12446 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12448 # $0 $ac_configure_args
12450 # Compiler output produced by configure, useful for debugging
12451 # configure, is in ./config.log if it exists.
12453 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12456 case "\$ac_option" in
12457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12458 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12459 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12460 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12461 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12463 -help | --help | --hel | --he | --h)
12464 echo "\$ac_cs_usage"; exit 0 ;;
12465 *) echo "\$ac_cs_usage"; exit 1 ;;
12469 ac_given_srcdir=$srcdir
12470 ac_given_INSTALL="$INSTALL"
12472 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12474 cat >> $CONFIG_STATUS <<EOF
12476 # Protect against being on the right side of a sed subst in config.status.
12477 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12478 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12482 s%@CFLAGS@%$CFLAGS%g
12483 s%@CPPFLAGS@%$CPPFLAGS%g
12484 s%@CXXFLAGS@%$CXXFLAGS%g
12485 s%@FFLAGS@%$FFLAGS%g
12487 s%@LDFLAGS@%$LDFLAGS%g
12489 s%@exec_prefix@%$exec_prefix%g
12490 s%@prefix@%$prefix%g
12491 s%@program_transform_name@%$program_transform_name%g
12492 s%@bindir@%$bindir%g
12493 s%@sbindir@%$sbindir%g
12494 s%@libexecdir@%$libexecdir%g
12495 s%@datadir@%$datadir%g
12496 s%@sysconfdir@%$sysconfdir%g
12497 s%@sharedstatedir@%$sharedstatedir%g
12498 s%@localstatedir@%$localstatedir%g
12499 s%@libdir@%$libdir%g
12500 s%@includedir@%$includedir%g
12501 s%@oldincludedir@%$oldincludedir%g
12502 s%@infodir@%$infodir%g
12503 s%@mandir@%$mandir%g
12504 s%@codepagedir@%$codepagedir%g
12505 s%@configdir@%$configdir%g
12506 s%@lockdir@%$lockdir%g
12507 s%@logfilebase@%$logfilebase%g
12508 s%@privatedir@%$privatedir%g
12509 s%@swatdir@%$swatdir%g
12510 s%@RUNPROG@%$RUNPROG%g
12511 s%@MPROGS@%$MPROGS%g
12512 s%@LDSHFLAGS@%$LDSHFLAGS%g
12513 s%@HOST_OS@%$HOST_OS%g
12514 s%@PAM_MOD@%$PAM_MOD%g
12516 s%@WRAP32@%$WRAP32%g
12517 s%@PICFLAG@%$PICFLAG%g
12518 s%@SHLIBEXT@%$SHLIBEXT%g
12520 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12521 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12522 s%@INSTALL_DATA@%$INSTALL_DATA%g
12524 s%@BROKEN_CC@%$BROKEN_CC%g
12526 s%@host_alias@%$host_alias%g
12527 s%@host_cpu@%$host_cpu%g
12528 s%@host_vendor@%$host_vendor%g
12529 s%@host_os@%$host_os%g
12530 s%@target@%$target%g
12531 s%@target_alias@%$target_alias%g
12532 s%@target_cpu@%$target_cpu%g
12533 s%@target_vendor@%$target_vendor%g
12534 s%@target_os@%$target_os%g
12536 s%@build_alias@%$build_alias%g
12537 s%@build_cpu@%$build_cpu%g
12538 s%@build_vendor@%$build_vendor%g
12539 s%@build_os@%$build_os%g
12541 s%@LIBOBJS@%$LIBOBJS%g
12542 s%@TERMLIBS@%$TERMLIBS%g
12543 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12545 s%@QUOTAOBJS@%$QUOTAOBJS%g
12546 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12547 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12548 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12549 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12550 s%@builddir@%$builddir%g
12555 cat >> $CONFIG_STATUS <<\EOF
12557 # Split the substitutions into bite-sized pieces for seds with
12558 # small command number limits, like on Digital OSF/1 and HP-UX.
12559 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12560 ac_file
=1 # Number of current file.
12561 ac_beg
=1 # First line for current file.
12562 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12565 while $ac_more_lines; do
12566 if test $ac_beg -gt 1; then
12567 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12569 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12571 if test ! -s conftest.s
$ac_file; then
12572 ac_more_lines
=false
12573 rm -f conftest.s
$ac_file
12575 if test -z "$ac_sed_cmds"; then
12576 ac_sed_cmds
="sed -f conftest.s$ac_file"
12578 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12580 ac_file
=`expr $ac_file + 1`
12582 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12585 if test -z "$ac_sed_cmds"; then
12590 cat >> $CONFIG_STATUS <<EOF
12592 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12594 cat >> $CONFIG_STATUS <<\EOF
12595 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12598 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12599 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12600 *) ac_file_in
="${ac_file}.in" ;;
12603 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12605 # Remove last slash and all that follows it. Not all systems have dirname.
12606 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12607 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12608 # The file is in a subdirectory.
12609 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12610 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12611 # A "../" for each directory in $ac_dir_suffix.
12612 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12614 ac_dir_suffix
= ac_dots
=
12617 case "$ac_given_srcdir" in
12619 if test -z "$ac_dots"; then top_srcdir
=.
12620 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12621 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12622 *) # Relative path.
12623 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12624 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12627 case "$ac_given_INSTALL" in
12628 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12629 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12632 echo creating
"$ac_file"
12634 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12636 *Makefile
*) ac_comsub
="1i\\
12637 # $configure_input" ;;
12641 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12643 s%@configure_input@%$configure_input%g
12644 s%@srcdir@%$srcdir%g
12645 s%@top_srcdir@%$top_srcdir%g
12646 s%@INSTALL@%$INSTALL%g
12647 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12651 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12652 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12654 # ac_d sets the value in "#define NAME VALUE" lines.
12655 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12656 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12659 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12660 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12661 ac_uB
='\([ ]\)%\1#\2define\3'
12664 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12665 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12666 ac_eB
='$%\1#\2define\3'
12670 if test "${CONFIG_HEADERS+set}" != set; then
12672 cat >> $CONFIG_STATUS <<EOF
12673 CONFIG_HEADERS="include/config.h"
12675 cat >> $CONFIG_STATUS <<\EOF
12677 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12680 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12681 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12682 *) ac_file_in
="${ac_file}.in" ;;
12685 echo creating
$ac_file
12687 rm -f conftest.frag conftest.
in conftest.out
12688 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12689 cat $ac_file_inputs > conftest.
in
12693 # Transform confdefs.h into a sed script conftest.vals that substitutes
12694 # the proper values into config.h.in to produce config.h. And first:
12695 # Protect against being on the right side of a sed subst in config.status.
12696 # Protect against being in an unquoted here document in config.status.
12697 rm -f conftest.vals
12698 cat > conftest.hdr
<<\EOF
12701 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12705 sed -n -f conftest.hdr confdefs.h > conftest.vals
12708 # This sed command replaces #undef with comments. This is necessary, for
12709 # example, in the case of _POSIX_SOURCE, which is predefined and required
12710 # on some systems where configure will not decide to define it.
12711 cat >> conftest.vals <<\EOF
12712 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12715 # Break up conftest.vals because some shells have a limit on
12716 # the size of here documents, and old seds have small limits too.
12718 rm -f conftest.tail
12721 ac_lines=`grep -c . conftest.vals
`
12722 # grep -c gives empty output for an empty file on some AIX systems.
12723 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12724 # Write a limited-size here document to conftest.frag.
12725 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12726 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12728 sed -f conftest.frag conftest.in > conftest.out
12730 mv conftest.out conftest.in
12731 ' >> $CONFIG_STATUS
12732 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12733 rm -f conftest.vals
12734 mv conftest.tail conftest.vals
12736 rm -f conftest.vals
12738 cat >> $CONFIG_STATUS <<\EOF
12739 rm -f conftest.frag conftest.h
12740 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12741 cat conftest.in >> conftest.h
12743 if cmp -s $ac_file conftest.h 2>/dev/null; then
12744 echo "$ac_file is unchanged"
12747 # Remove last slash and all that follows it. Not all systems have dirname.
12748 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12749 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12750 # The file is in a subdirectory.
12751 test ! -d "$ac_dir" && mkdir "$ac_dir"
12754 mv conftest.h $ac_file
12759 cat >> $CONFIG_STATUS <<EOF
12762 cat >> $CONFIG_STATUS <<\EOF
12766 chmod +x $CONFIG_STATUS
12767 rm -fr confdefs* $ac_clean_files
12768 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1