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-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-cups Turn on CUPS support (default=auto)"
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
38 --with-smbwrapper Include SMB wrapper support (default=no)"
40 --with-afs Include AFS support (default=no)"
42 --with-dce-dfs Include DCE/DFS support (default=no)"
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
48 --with-automount Include AUTOMOUNT support (default=no)"
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
52 --with-pam Include PAM password database support (default=no)"
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-msdfs Include MS Dfs support (default=no)"
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
82 --with-acl-support Include ACL support (default=no)"
84 --with-winbind Build winbind (default, if supported by OS)"
86 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
88 --with-included-popt use bundled popt library, not from system"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
94 cache_file
=.
/config.cache
103 program_transform_name
=s
,x
,x
,
111 bindir
='${exec_prefix}/bin'
112 sbindir
='${exec_prefix}/sbin'
113 libexecdir
='${exec_prefix}/libexec'
114 datadir
='${prefix}/share'
115 sysconfdir
='${prefix}/etc'
116 sharedstatedir
='${prefix}/com'
117 localstatedir
='${prefix}/var'
118 libdir
='${exec_prefix}/lib'
119 includedir
='${prefix}/include'
120 oldincludedir
='/usr/include'
121 infodir
='${prefix}/info'
122 mandir
='${prefix}/man'
124 # Initialize some other variables.
127 SHELL
=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
143 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
147 # Accept the important Cygnus configure options, so we can diagnose typos.
151 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
153 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
154 bindir
="$ac_optarg" ;;
156 -build |
--build |
--buil |
--bui |
--bu)
158 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
159 build
="$ac_optarg" ;;
161 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
162 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
163 ac_prev
=cache_file
;;
164 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
165 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
166 cache_file
="$ac_optarg" ;;
168 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
170 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
172 datadir
="$ac_optarg" ;;
174 -disable-* |
--disable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* |
--enable-*)
184 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
197 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
198 |
--exec |
--exe |
--ex)
199 ac_prev
=exec_prefix
;;
200 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
201 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
202 |
--exec=* |
--exe=* |
--ex=*)
203 exec_prefix
="$ac_optarg" ;;
205 -gas |
--gas |
--ga |
--g)
206 # Obsolete; use --with-gas.
209 -help |
--help |
--hel |
--he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
264 -host |
--host |
--hos |
--ho)
266 -host=* |
--host=* |
--hos=* |
--ho=*)
269 -includedir |
--includedir |
--includedi |
--included |
--include \
270 |
--includ |
--inclu |
--incl |
--inc)
271 ac_prev
=includedir
;;
272 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
273 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
274 includedir
="$ac_optarg" ;;
276 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
278 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
279 infodir
="$ac_optarg" ;;
281 -libdir |
--libdir |
--libdi |
--libd)
283 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
284 libdir
="$ac_optarg" ;;
286 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
287 |
--libexe |
--libex |
--libe)
288 ac_prev
=libexecdir
;;
289 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
290 |
--libexe=* |
--libex=* |
--libe=*)
291 libexecdir
="$ac_optarg" ;;
293 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
294 |
--localstate |
--localstat |
--localsta |
--localst \
295 |
--locals |
--local |
--loca |
--loc |
--lo)
296 ac_prev
=localstatedir
;;
297 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
298 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
299 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
300 localstatedir
="$ac_optarg" ;;
302 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
304 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
305 mandir
="$ac_optarg" ;;
308 # Obsolete; use --without-fp.
311 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
315 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
316 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
319 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
320 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
321 |
--oldin |
--oldi |
--old |
--ol |
--o)
322 ac_prev
=oldincludedir
;;
323 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
324 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
325 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
326 oldincludedir
="$ac_optarg" ;;
328 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
330 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
331 prefix
="$ac_optarg" ;;
333 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
334 |
--program-pre |
--program-pr |
--program-p)
335 ac_prev
=program_prefix
;;
336 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
337 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
338 program_prefix
="$ac_optarg" ;;
340 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
341 |
--program-suf |
--program-su |
--program-s)
342 ac_prev
=program_suffix
;;
343 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
344 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
345 program_suffix
="$ac_optarg" ;;
347 -program-transform-name |
--program-transform-name \
348 |
--program-transform-nam |
--program-transform-na \
349 |
--program-transform-n |
--program-transform- \
350 |
--program-transform |
--program-transfor \
351 |
--program-transfo |
--program-transf \
352 |
--program-trans |
--program-tran \
353 |
--progr-tra |
--program-tr |
--program-t)
354 ac_prev
=program_transform_name
;;
355 -program-transform-name=* |
--program-transform-name=* \
356 |
--program-transform-nam=* |
--program-transform-na=* \
357 |
--program-transform-n=* |
--program-transform-=* \
358 |
--program-transform=* |
--program-transfor=* \
359 |
--program-transfo=* |
--program-transf=* \
360 |
--program-trans=* |
--program-tran=* \
361 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
362 program_transform_name
="$ac_optarg" ;;
364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
365 |
-silent |
--silent |
--silen |
--sile |
--sil)
368 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
370 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
372 sbindir
="$ac_optarg" ;;
374 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
375 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
376 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
378 ac_prev
=sharedstatedir
;;
379 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
380 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
381 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
383 sharedstatedir
="$ac_optarg" ;;
385 -site |
--site |
--sit)
387 -site=* |
--site=* |
--sit=*)
390 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
392 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
393 srcdir
="$ac_optarg" ;;
395 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
396 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
397 ac_prev
=sysconfdir
;;
398 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
399 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
400 sysconfdir
="$ac_optarg" ;;
402 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
404 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
405 target
="$ac_optarg" ;;
407 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
410 -version |
--version |
--versio |
--versi |
--vers)
411 echo "configure generated by autoconf version 2.13"
415 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* |
--without-*)
428 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package
=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
441 |
--x-incl |
--x-inc |
--x-in |
--x-i)
442 ac_prev
=x_includes
;;
443 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
444 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
445 x_includes
="$ac_optarg" ;;
447 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
448 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
449 ac_prev
=x_libraries
;;
450 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
451 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
452 x_libraries
="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE
; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
502 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
503 |
--no-cr |
--no-c) ;;
504 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
505 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
506 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest
* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file
=include
/includes.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted
=yes
534 # Try the directory containing this script, then its parent.
536 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
539 if test ! -r $srcdir/$ac_unique_file; then
543 ac_srcdir_defaulted
=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE
; then
557 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
559 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file
in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
573 echo "creating cache $cache_file"
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp
='$CPP $CPPFLAGS'
580 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling
=$ac_cv_prog_cc_cross
586 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
595 ac_n
= ac_c
='\c' ac_t
=
601 #################################################
602 # Directory handling stuff to support both the
603 # legacy SAMBA directories and FHS compliant
607 # Check whether --with-fhs or --without-fhs was given.
608 if test "${with_fhs+set}" = set; then
610 codepagedir
="\$(DATADIR)/samba/codepages"
611 configdir
="${sysconfdir}/samba"
612 lockdir
="\${VARDIR}/cache/samba"
613 piddir
="\$(VARDIR)/run/samba"
614 logfilebase
="\${VARDIR}/log/samba"
615 privatedir
="\${CONFIGDIR}/private"
616 swatdir
="\${DATADIR}/samba/swat"
618 codepagedir
="\$(LIBDIR)/codepages"
619 configdir
="\$(LIBDIR)"
620 logfilebase
="\$(VARDIR)"
621 lockdir
="\${VARDIR}/locks"
622 piddir
="\$(VARDIR)/locks"
623 privatedir
="\${prefix}/private"
624 swatdir
="\${prefix}/swat"
628 #################################################
629 # set private directory location
630 # Check whether --with-privatedir or --without-privatedir was given.
631 if test "${with_privatedir+set}" = set; then
632 withval
="$with_privatedir"
636 # Just in case anybody calls it without argument
638 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
641 privatedir
="$withval"
647 #################################################
648 # set lock directory location
649 # Check whether --with-lockdir or --without-lockdir was given.
650 if test "${with_lockdir+set}" = set; then
651 withval
="$with_lockdir"
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
666 #################################################
667 # set pid directory location
668 # Check whether --with-piddir or --without-piddir was given.
669 if test "${with_piddir+set}" = set; then
670 withval
="$with_piddir"
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
685 #################################################
686 # set SWAT directory location
687 # Check whether --with-swatdir or --without-swatdir was given.
688 if test "${with_swatdir+set}" = set; then
689 withval
="$with_swatdir"
693 # Just in case anybody does it
695 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
704 #################################################
705 # set configuration directory location
706 # Check whether --with-configdir or --without-configdir was given.
707 if test "${with_configdir+set}" = set; then
708 withval
="$with_configdir"
712 # Just in case anybody does it
714 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
723 #################################################
724 # set codepage directory location
725 # Check whether --with-codepagedir or --without-codepagedir was given.
726 if test "${with_codepagedir+set}" = set; then
727 withval
="$with_codepagedir"
731 # Just in case anybody does it
733 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
736 codepagedir
="$withval"
742 #################################################
743 # set log directory location
744 # Check whether --with-logfilebase or --without-logfilebase was given.
745 if test "${with_logfilebase+set}" = set; then
746 withval
="$with_logfilebase"
750 # Just in case anybody does it
752 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
755 logfilebase
="$withval"
790 # compile with optimization and without debugging by default
791 CFLAGS
="-O ${CFLAGS}"
793 # Check whether --enable-debug or --disable-debug was given.
794 if test "${enable_debug+set}" = set; then
795 enableval
="$enable_debug"
796 if eval "test x$enable_debug = xyes"; then
797 CFLAGS
="${CFLAGS} -g"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc
; ac_word
=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$CC"; then
812 ac_cv_prog_CC
="$CC" # Let the user override the test.
814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
816 for ac_dir
in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir
=.
818 if test -f $ac_dir/$ac_word; then
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc
; ac_word
=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$CC"; then
842 ac_cv_prog_CC
="$CC" # Let the user override the test.
844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
847 for ac_dir
in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir
=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy
$ac_cv_prog_CC
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
868 set dummy
"$ac_dir/$ac_word" "$@"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl
; ac_word
=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC
="$CC" # Let the user override the test.
895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
897 for ac_dir
in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir
=.
899 if test -f $ac_dir/$ac_word; then
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp
='$CPP $CPPFLAGS'
925 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling
=$ac_cv_prog_cc_cross
929 cat > conftest.
$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 if { (eval echo configure
:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
937 ac_cv_prog_cc_works
=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (.
/conftest
; exit) 2>/dev
/null
; then
940 ac_cv_prog_cc_cross
=no
942 ac_cv_prog_cc_cross
=yes
945 echo "configure: failed program was:" >&5
946 cat conftest.
$ac_ext >&5
947 ac_cv_prog_cc_works
=no
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp
='$CPP $CPPFLAGS'
953 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling
=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no
; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling
=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 cat > conftest.c
<<EOF
976 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
991 ac_test_CFLAGS
="${CFLAGS+set}"
992 ac_save_CFLAGS
="$CFLAGS"
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS
="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1019 if test "$GCC" = yes; then
1027 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1028 if test -f $ac_dir/install-sh
; then
1030 ac_install_sh
="$ac_aux_dir/install-sh -c"
1032 elif test -f $ac_dir/install.sh
; then
1034 ac_install_sh
="$ac_aux_dir/install.sh -c"
1038 if test -z "$ac_aux_dir"; then
1039 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1041 ac_config_guess
=$ac_aux_dir/config.guess
1042 ac_config_sub
=$ac_aux_dir/config.sub
1043 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1045 # Find a good install program. We prefer a C program (faster),
1046 # so one script is as good as another. But avoid the broken or
1047 # incompatible versions:
1048 # SysV /etc/install, /usr/sbin/install
1049 # SunOS /usr/etc/install
1050 # IRIX /sbin/install
1052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1055 # ./install, which can be erroneously created by make from ./install.sh.
1056 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1057 echo "configure:1058: checking for a BSD compatible install" >&5
1058 if test -z "$INSTALL"; then
1059 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1063 for ac_dir
in $PATH; do
1064 # Account for people who put trailing slashes in PATH elements.
1066 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1068 # OSF1 and SCO ODT 3.0 have their own names for install.
1069 # Don't use installbsd from OSF since it installs stuff as root
1071 for ac_prog
in ginstall scoinst
install; do
1072 if test -f $ac_dir/$ac_prog; then
1073 if test $ac_prog = install &&
1074 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1075 # AIX install. It has an incompatible calling convention.
1078 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1089 if test "${ac_cv_path_install+set}" = set; then
1090 INSTALL
="$ac_cv_path_install"
1092 # As a last resort, use the slow shell script. We don't cache a
1093 # path for INSTALL within a source directory, because that will
1094 # break other packages using the cache if that directory is
1095 # removed, or if the path is relative.
1096 INSTALL
="$ac_install_sh"
1099 echo "$ac_t""$INSTALL" 1>&6
1101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1102 # It thinks the first close brace ends the variable substitution.
1103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1107 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1109 for ac_prog
in gawk mawk nawk
awk
1111 # Extract the first word of "$ac_prog", so it can be a program name with args.
1112 set dummy
$ac_prog; ac_word
=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$AWK"; then
1119 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1121 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1123 for ac_dir
in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir
=.
1125 if test -f $ac_dir/$ac_word; then
1126 ac_cv_prog_AWK
="$ac_prog"
1133 AWK
="$ac_cv_prog_AWK"
1134 if test -n "$AWK"; then
1135 echo "$ac_t""$AWK" 1>&6
1137 echo "$ac_t""no" 1>&6
1140 test -n "$AWK" && break
1144 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1145 echo "configure:1146: checking if the linker ($LD) is GNU ld" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1150 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1151 ac_cv_prog_gnu_ld
=yes
1153 ac_cv_prog_gnu_ld
=no
1157 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1159 # Extract the first word of "passwd", so it can be a program name with args.
1160 set dummy passwd
; ac_word
=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 case "$passwd_program" in
1168 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1171 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1174 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1176 for ac_dir
in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir
=.
1178 if test -f $ac_dir/$ac_word; then
1179 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1184 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1188 passwd_program
="$ac_cv_path_passwd_program"
1189 if test -n "$passwd_program"; then
1190 echo "$ac_t""$passwd_program" 1>&6
1192 echo "$ac_t""no" 1>&6
1197 if test "x$CC" != xcc
; then
1198 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether $CC and cc understand -c and -o together" >&5
1201 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether cc understands -c and -o together" >&5
1204 set dummy
$CC; ac_cc
="`echo $2 |
1205 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1206 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 echo 'foo(){}' > conftest.c
1210 # Make sure it works both with $CC and with simple cc.
1211 # We do the test twice because some compilers refuse to overwrite an
1212 # existing .o file with -o, though they will create one.
1213 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1214 if { (eval echo configure
:1215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1215 test -f conftest.o
&& { (eval echo configure
:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1217 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1218 if test "x$CC" != xcc
; then
1219 # Test first that cc exists at all.
1220 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1221 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1222 if { (eval echo configure
:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1223 test -f conftest.o
&& { (eval echo configure
:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1228 # cc exists but doesn't like -o.
1229 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1234 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1239 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1242 echo "$ac_t""no" 1>&6
1243 cat >> confdefs.h
<<\EOF
1244 #define NO_MINUS_C_MINUS_O 1
1249 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1256 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1257 echo "configure:1258: checking that the C compiler understands volatile" >&5
1258 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.
$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <sys/types.h>
1270 if { (eval echo configure
:1271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1272 samba_cv_volatile
=yes
1274 echo "configure: failed program was:" >&5
1275 cat conftest.
$ac_ext >&5
1277 samba_cv_volatile
=no
1282 echo "$ac_t""$samba_cv_volatile" 1>&6
1283 if test x
"$samba_cv_volatile" = x
"yes"; then
1284 cat >> confdefs.h
<<\EOF
1285 #define HAVE_VOLATILE 1
1293 # Do some error checking and defaulting for the host and target type.
1295 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1298 # 1. You are not allowed to specify --host, --target, and nonopt at the
1300 # 2. Host defaults to nonopt.
1301 # 3. If nonopt is not specified, then host defaults to the current host,
1302 # as determined by config.guess.
1303 # 4. Target and build default to nonopt.
1304 # 5. If nonopt is not specified, then target and build default to host.
1306 # The aliases save the names the user supplied, while $host etc.
1307 # will get canonicalized.
1308 case $host---$target---$nonopt in
1309 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1310 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1314 # Make sure we can run config.sub.
1315 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1316 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1319 echo $ac_n "checking host system type""... $ac_c" 1>&6
1320 echo "configure:1321: checking host system type" >&5
1323 case "$host_alias" in
1327 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1328 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1330 *) host_alias
=$nonopt ;;
1334 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1335 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$ac_t""$host" 1>&6
1340 echo $ac_n "checking target system type""... $ac_c" 1>&6
1341 echo "configure:1342: checking target system type" >&5
1343 target_alias
=$target
1344 case "$target_alias" in
1347 NONE
) target_alias
=$host_alias ;;
1348 *) target_alias
=$nonopt ;;
1352 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1353 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$ac_t""$target" 1>&6
1358 echo $ac_n "checking build system type""... $ac_c" 1>&6
1359 echo "configure:1360: checking build system type" >&5
1362 case "$build_alias" in
1365 NONE
) build_alias
=$host_alias ;;
1366 *) build_alias
=$nonopt ;;
1370 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1371 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374 echo "$ac_t""$build" 1>&6
1376 test "$host_alias" != "$target_alias" &&
1377 test "$program_prefix$program_suffix$program_transform_name" = \
1379 program_prefix
=${target_alias}-
1383 *irix6
*) cat >> confdefs.h
<<\EOF
1384 #include <standards.h>
1392 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1393 echo "configure:1394: checking config.cache system type" >&5
1394 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1395 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1396 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1397 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1398 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1399 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1400 echo "$ac_t""different" 1>&6
1401 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1403 echo "$ac_t""same" 1>&6
1405 ac_cv_host_system_type
="$host"
1406 ac_cv_build_system_type
="$build"
1407 ac_cv_target_system_type
="$target"
1413 # Config CPPFLAG settings for strange OS's that must be set
1414 # before other tests.
1417 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1419 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether ${CC-cc} accepts -Ae" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 echo 'void f(){}' > conftest.c
1425 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1426 ac_cv_prog_cc_Ae
=yes
1434 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1435 # mmap on HPUX is completely broken...
1436 cat >> confdefs.h
<<\EOF
1437 #define MMAP_BLACKLIST 1
1440 if test $ac_cv_prog_cc_Ae = yes; then
1441 CPPFLAGS
="$CPPFLAGS -Ae"
1444 # Defines needed for HPUX support.
1445 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1446 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1450 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1451 cat >> confdefs.h
<<\EOF
1452 #define USE_BOTH_CRYPT_CALLS 1
1455 cat >> confdefs.h
<<\EOF
1456 #define _HPUX_SOURCE 1
1459 cat >> confdefs.h
<<\EOF
1460 #define _POSIX_SOURCE 1
1463 cat >> confdefs.h
<<\EOF
1464 #define _ALIGNMENT_REQUIRED 1
1467 cat >> confdefs.h
<<\EOF
1468 #define _MAX_ALIGNMENT 4
1473 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1474 cat >> confdefs.h
<<\EOF
1475 #define _HPUX_SOURCE 1
1478 cat >> confdefs.h
<<\EOF
1479 #define _POSIX_SOURCE 1
1482 cat >> confdefs.h
<<\EOF
1483 #define _LARGEFILE64_SOURCE 1
1486 cat >> confdefs.h
<<\EOF
1487 #define _ALIGNMENT_REQUIRED 1
1490 cat >> confdefs.h
<<\EOF
1491 #define _MAX_ALIGNMENT 4
1494 cat >> confdefs.h
<<\EOF
1495 #define USE_BOTH_CRYPT_CALLS 1
1505 # CRAY Unicos has broken const handling
1507 echo "$ac_t""disabling const" 1>&6
1508 CPPFLAGS
="$CPPFLAGS -Dconst="
1512 # AIX4.x doesn't even admit to having large
1513 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1516 echo "$ac_t""enabling large file support" 1>&6
1517 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1518 cat >> confdefs.h
<<\EOF
1519 #define _LARGE_FILES 1
1524 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1525 # to the existance of large files..
1526 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1527 # recommendations on large file support, however it makes the
1528 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1529 # recommendation makes the compile fail on gcc2.7. JRA.
1533 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1534 echo "$ac_t""no large file support" 1>&6
1537 echo "$ac_t""enabling large file support" 1>&6
1538 if test "$ac_cv_prog_gcc" = yes; then
1539 ${CC-cc} -v >conftest.c
2>&1
1540 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1542 case "$ac_cv_gcc_compiler_version_number" in
1543 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1544 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1545 cat >> confdefs.h
<<\EOF
1546 #define _LARGEFILE64_SOURCE 1
1551 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1552 cat >> confdefs.h
<<\EOF
1553 #define _LARGEFILE64_SOURCE 1
1556 cat >> confdefs.h
<<\EOF
1557 #define _FILE_OFFSET_BITS 64
1563 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1564 cat >> confdefs.h
<<\EOF
1565 #define _LARGEFILE64_SOURCE 1
1568 cat >> confdefs.h
<<\EOF
1569 #define _FILE_OFFSET_BITS 64
1577 # Tests needed for SINIX large file support.
1580 if test $host = mips-sni-sysv4
; then
1581 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1582 echo "configure:1583: checking for LFS support" >&5
1583 old_CPPFLAGS
="$CPPFLAGS"
1584 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1585 if test "$cross_compiling" = yes; then
1586 SINIX_LFS_SUPPORT
=cross
1588 cat > conftest.
$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1594 #if _LFS64_LARGEFILE == 1
1601 if { (eval echo configure
:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1603 SINIX_LFS_SUPPORT
=yes
1605 echo "configure: failed program was:" >&5
1606 cat conftest.
$ac_ext >&5
1608 SINIX_LFS_SUPPORT
=no
1613 CPPFLAGS
="$old_CPPFLAGS"
1614 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1615 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1616 cat >> confdefs.h
<<\EOF
1617 #define _LARGEFILE64_SOURCE 1
1620 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1621 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1622 LIBS
="`getconf LFS64_LIBS` $LIBS"
1624 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1628 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1631 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1632 echo "configure:1633: checking for LFS support" >&5
1633 old_CPPFLAGS
="$CPPFLAGS"
1634 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1635 if test "$cross_compiling" = yes; then
1636 LINUX_LFS_SUPPORT
=cross
1638 cat > conftest.
$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1643 #include <sys/utsname.h>
1645 #if _LFS64_LARGEFILE == 1
1650 /* Ensure this is glibc 2.2 or higher */
1651 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1652 int libc_major = __GLIBC__;
1653 int libc_minor = __GLIBC_MINOR__;
1661 /* Ensure this is kernel 2.4 or higher */
1664 release = uts.release;
1665 major = atoi(strsep(&release, "."));
1666 minor = atoi(strsep(&release, "."));
1668 if (major > 2 || (major == 2 && minor > 3))
1677 if { (eval echo configure
:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1679 LINUX_LFS_SUPPORT
=yes
1681 echo "configure: failed program was:" >&5
1682 cat conftest.
$ac_ext >&5
1684 LINUX_LFS_SUPPORT
=no
1689 CPPFLAGS
="$old_CPPFLAGS"
1690 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1691 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1692 cat >> confdefs.h
<<\EOF
1693 #define _LARGEFILE64_SOURCE 1
1696 cat >> confdefs.h
<<\EOF
1697 #define _FILE_OFFSET_BITS 64
1700 cat >> confdefs.h
<<\EOF
1701 #define _GNU_SOURCE 1
1705 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1709 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1710 echo "configure:1711: checking for LFS support" >&5
1711 old_CPPFLAGS
="$CPPFLAGS"
1712 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1713 if test "$cross_compiling" = yes; then
1714 GLIBC_LFS_SUPPORT
=cross
1716 cat > conftest.
$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1722 #if _LFS64_LARGEFILE == 1
1729 if { (eval echo configure
:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1731 GLIBC_LFS_SUPPORT
=yes
1733 echo "configure: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1736 GLIBC_LFS_SUPPORT
=no
1741 CPPFLAGS
="$old_CPPFLAGS"
1742 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1743 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1744 cat >> confdefs.h
<<\EOF
1745 #define _LARGEFILE64_SOURCE 1
1748 cat >> confdefs.h
<<\EOF
1749 #define _GNU_SOURCE 1
1753 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1758 echo $ac_n "checking for inline""... $ac_c" 1>&6
1759 echo "configure:1760: checking for inline" >&5
1760 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1764 for ac_kw
in inline __inline__ __inline
; do
1765 cat > conftest.
$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1773 if { (eval echo configure
:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1775 ac_cv_c_inline
=$ac_kw; break
1777 echo "configure: failed program was:" >&5
1778 cat conftest.
$ac_ext >&5
1785 echo "$ac_t""$ac_cv_c_inline" 1>&6
1786 case "$ac_cv_c_inline" in
1788 no
) cat >> confdefs.h
<<\EOF
1792 *) cat >> confdefs.h
<<EOF
1793 #define inline $ac_cv_c_inline
1798 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1799 echo "configure:1800: checking how to run the C preprocessor" >&5
1800 # On Suns, sometimes $CPP names a directory.
1801 if test -n "$CPP" && test -d "$CPP"; then
1804 if test -z "$CPP"; then
1805 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 # This must be in double quotes, not single quotes, because CPP may get
1809 # substituted into the Makefile and "${CC-cc}" will confuse make.
1811 # On the NeXT, cc -E runs the code through the compiler's parser,
1812 # not just through cpp.
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1819 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1820 { (eval echo configure
:1821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1821 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1822 if test -z "$ac_err"; then
1826 echo "configure: failed program was:" >&5
1827 cat conftest.
$ac_ext >&5
1829 CPP
="${CC-cc} -E -traditional-cpp"
1830 cat > conftest.
$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1837 { (eval echo configure
:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1838 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1839 if test -z "$ac_err"; then
1843 echo "configure: failed program was:" >&5
1844 cat conftest.
$ac_ext >&5
1846 CPP
="${CC-cc} -nologo -E"
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1854 { (eval echo configure
:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1856 if test -z "$ac_err"; then
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1870 ac_cv_prog_CPP
="$CPP"
1872 CPP
="$ac_cv_prog_CPP"
1874 ac_cv_prog_CPP
="$CPP"
1876 echo "$ac_t""$CPP" 1>&6
1878 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1879 echo "configure:1880: checking for ANSI C header files" >&5
1880 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.
$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1891 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1892 { (eval echo configure
:1893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1893 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1894 if test -z "$ac_err"; then
1896 ac_cv_header_stdc
=yes
1899 echo "configure: failed program was:" >&5
1900 cat conftest.
$ac_ext >&5
1902 ac_cv_header_stdc
=no
1906 if test $ac_cv_header_stdc = yes; then
1907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1908 cat > conftest.
$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1914 egrep "memchr" >/dev
/null
2>&1; then
1918 ac_cv_header_stdc
=no
1924 if test $ac_cv_header_stdc = yes; then
1925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1926 cat > conftest.
$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1932 egrep "free" >/dev
/null
2>&1; then
1936 ac_cv_header_stdc
=no
1942 if test $ac_cv_header_stdc = yes; then
1943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1944 if test "$cross_compiling" = yes; then
1947 cat > conftest.
$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1951 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1952 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1954 int main () { int i; for (i = 0; i < 256; i++)
1955 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1959 if { (eval echo configure
:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1963 echo "configure: failed program was:" >&5
1964 cat conftest.
$ac_ext >&5
1966 ac_cv_header_stdc
=no
1974 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1975 if test $ac_cv_header_stdc = yes; then
1976 cat >> confdefs.h
<<\EOF
1977 #define STDC_HEADERS 1
1983 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1985 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_hdr that defines DIR" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.
$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 #include <sys/types.h>
2000 if { (eval echo configure
:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2002 eval "ac_cv_header_dirent_$ac_safe=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 eval "ac_cv_header_dirent_$ac_safe=no"
2011 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2014 cat >> confdefs.h
<<EOF
2015 #define $ac_tr_hdr 1
2017 ac_header_dirent
=$ac_hdr; break
2019 echo "$ac_t""no" 1>&6
2022 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2023 if test $ac_header_dirent = dirent.h
; then
2024 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2025 echo "configure:2026: checking for opendir in -ldir" >&5
2026 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 ac_save_LIBS
="$LIBS"
2032 cat > conftest.
$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2044 if { (eval echo configure
:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2046 eval "ac_cv_lib_$ac_lib_var=yes"
2048 echo "configure: failed program was:" >&5
2049 cat conftest.
$ac_ext >&5
2051 eval "ac_cv_lib_$ac_lib_var=no"
2054 LIBS
="$ac_save_LIBS"
2057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2061 echo "$ac_t""no" 1>&6
2065 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2066 echo "configure:2067: checking for opendir in -lx" >&5
2067 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 ac_save_LIBS
="$LIBS"
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 /* Override any gcc2 internal prototype to avoid an error. */
2077 /* We use char because int might match the return type of a gcc2
2078 builtin and then its argument prototype would still apply. */
2085 if { (eval echo configure
:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2087 eval "ac_cv_lib_$ac_lib_var=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 eval "ac_cv_lib_$ac_lib_var=no"
2095 LIBS
="$ac_save_LIBS"
2098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2102 echo "$ac_t""no" 1>&6
2107 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether time.h and sys/time.h may both be included" >&5
2109 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.
$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #include <sys/types.h>
2116 #include <sys/time.h>
2122 if { (eval echo configure
:2123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2124 ac_cv_header_time
=yes
2126 echo "configure: failed program was:" >&5
2127 cat conftest.
$ac_ext >&5
2129 ac_cv_header_time
=no
2134 echo "$ac_t""$ac_cv_header_time" 1>&6
2135 if test $ac_cv_header_time = yes; then
2136 cat >> confdefs.h
<<\EOF
2137 #define TIME_WITH_SYS_TIME 1
2142 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2143 echo "configure:2144: checking for sys/wait.h that is POSIX.1 compatible" >&5
2144 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 #include <sys/types.h>
2151 #include <sys/wait.h>
2153 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2156 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2161 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2164 if { (eval echo configure
:2165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2166 ac_cv_header_sys_wait_h
=yes
2168 echo "configure: failed program was:" >&5
2169 cat conftest.
$ac_ext >&5
2171 ac_cv_header_sys_wait_h
=no
2176 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2177 if test $ac_cv_header_sys_wait_h = yes; then
2178 cat >> confdefs.h
<<\EOF
2179 #define HAVE_SYS_WAIT_H 1
2184 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2186 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_hdr" >&5
2189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2197 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure
:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2200 if test -z "$ac_err"; then
2202 eval "ac_cv_header_$ac_safe=yes"
2205 echo "configure: failed program was:" >&5
2206 cat conftest.
$ac_ext >&5
2208 eval "ac_cv_header_$ac_safe=no"
2212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2215 cat >> confdefs.h
<<EOF
2216 #define $ac_tr_hdr 1
2220 echo "$ac_t""no" 1>&6
2224 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2226 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2237 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure
:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2242 eval "ac_cv_header_$ac_safe=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 eval "ac_cv_header_$ac_safe=no"
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h
<<EOF
2256 #define $ac_tr_hdr 1
2260 echo "$ac_t""no" 1>&6
2264 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2266 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2268 echo "configure:2269: checking for $ac_hdr" >&5
2269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.
$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2277 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2278 { (eval echo configure
:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2279 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2280 if test -z "$ac_err"; then
2282 eval "ac_cv_header_$ac_safe=yes"
2285 echo "configure: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2288 eval "ac_cv_header_$ac_safe=no"
2292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2295 cat >> confdefs.h
<<EOF
2296 #define $ac_tr_hdr 1
2300 echo "$ac_t""no" 1>&6
2304 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2306 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2308 echo "configure:2309: checking for $ac_hdr" >&5
2309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2317 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2318 { (eval echo configure
:2319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2319 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2320 if test -z "$ac_err"; then
2322 eval "ac_cv_header_$ac_safe=yes"
2325 echo "configure: failed program was:" >&5
2326 cat conftest.
$ac_ext >&5
2328 eval "ac_cv_header_$ac_safe=no"
2332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2333 echo "$ac_t""yes" 1>&6
2334 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2335 cat >> confdefs.h
<<EOF
2336 #define $ac_tr_hdr 1
2340 echo "$ac_t""no" 1>&6
2344 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2346 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_hdr" >&5
2349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 cat > conftest.
$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2358 { (eval echo configure
:2359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2359 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2360 if test -z "$ac_err"; then
2362 eval "ac_cv_header_$ac_safe=yes"
2365 echo "configure: failed program was:" >&5
2366 cat conftest.
$ac_ext >&5
2368 eval "ac_cv_header_$ac_safe=no"
2372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2373 echo "$ac_t""yes" 1>&6
2374 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2375 cat >> confdefs.h
<<EOF
2376 #define $ac_tr_hdr 1
2380 echo "$ac_t""no" 1>&6
2384 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.h
2386 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_hdr" >&5
2389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 cat > conftest.
$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2397 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2398 { (eval echo configure
:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2399 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2400 if test -z "$ac_err"; then
2402 eval "ac_cv_header_$ac_safe=yes"
2405 echo "configure: failed program was:" >&5
2406 cat conftest.
$ac_ext >&5
2408 eval "ac_cv_header_$ac_safe=no"
2412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2415 cat >> confdefs.h
<<EOF
2416 #define $ac_tr_hdr 1
2420 echo "$ac_t""no" 1>&6
2424 for ac_hdr
in syslog.h sys
/syslog.h sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2426 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2428 echo "configure:2429: checking for $ac_hdr" >&5
2429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2437 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2438 { (eval echo configure
:2439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2439 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2440 if test -z "$ac_err"; then
2442 eval "ac_cv_header_$ac_safe=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.
$ac_ext >&5
2448 eval "ac_cv_header_$ac_safe=no"
2452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2455 cat >> confdefs.h
<<EOF
2456 #define $ac_tr_hdr 1
2460 echo "$ac_t""no" 1>&6
2464 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2466 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2468 echo "configure:2469: checking for $ac_hdr" >&5
2469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.
$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2477 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure
:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2482 eval "ac_cv_header_$ac_safe=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.
$ac_ext >&5
2488 eval "ac_cv_header_$ac_safe=no"
2492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2493 echo "$ac_t""yes" 1>&6
2494 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2495 cat >> confdefs.h
<<EOF
2496 #define $ac_tr_hdr 1
2500 echo "$ac_t""no" 1>&6
2504 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2506 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_hdr" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.
$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure
:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2520 if test -z "$ac_err"; then
2522 eval "ac_cv_header_$ac_safe=yes"
2525 echo "configure: failed program was:" >&5
2526 cat conftest.
$ac_ext >&5
2528 eval "ac_cv_header_$ac_safe=no"
2532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2535 cat >> confdefs.h
<<EOF
2536 #define $ac_tr_hdr 1
2540 echo "$ac_t""no" 1>&6
2546 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2547 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2551 cat > conftest.
$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2559 if { (eval echo configure
:2560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2561 ac_cv_header_shadow_h
=yes
2563 echo "configure: failed program was:" >&5
2564 cat conftest.
$ac_ext >&5
2566 ac_cv_header_shadow_h
=no
2569 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2570 cat >> confdefs.h
<<\EOF
2571 #define HAVE_SHADOW_H 1
2577 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2579 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_hdr" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.
$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2590 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure
:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2595 eval "ac_cv_header_$ac_safe=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.
$ac_ext >&5
2601 eval "ac_cv_header_$ac_safe=no"
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2608 cat >> confdefs.h
<<EOF
2609 #define $ac_tr_hdr 1
2613 echo "$ac_t""no" 1>&6
2617 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2619 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_hdr" >&5
2622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 cat > conftest.
$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure
:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2635 eval "ac_cv_header_$ac_safe=yes"
2638 echo "configure: failed program was:" >&5
2639 cat conftest.
$ac_ext >&5
2641 eval "ac_cv_header_$ac_safe=no"
2645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2646 echo "$ac_t""yes" 1>&6
2647 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2648 cat >> confdefs.h
<<EOF
2649 #define $ac_tr_hdr 1
2653 echo "$ac_t""no" 1>&6
2657 for ac_hdr
in stropts.h poll.h
2659 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_hdr" >&5
2662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 cat > conftest.
$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2670 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2671 { (eval echo configure
:2672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2672 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2673 if test -z "$ac_err"; then
2675 eval "ac_cv_header_$ac_safe=yes"
2678 echo "configure: failed program was:" >&5
2679 cat conftest.
$ac_ext >&5
2681 eval "ac_cv_header_$ac_safe=no"
2685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2688 cat >> confdefs.h
<<EOF
2689 #define $ac_tr_hdr 1
2693 echo "$ac_t""no" 1>&6
2697 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2699 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2701 echo "configure:2702: checking for $ac_hdr" >&5
2702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 cat > conftest.
$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2710 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2711 { (eval echo configure
:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2712 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2713 if test -z "$ac_err"; then
2715 eval "ac_cv_header_$ac_safe=yes"
2718 echo "configure: failed program was:" >&5
2719 cat conftest.
$ac_ext >&5
2721 eval "ac_cv_header_$ac_safe=no"
2725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2728 cat >> confdefs.h
<<EOF
2729 #define $ac_tr_hdr 1
2733 echo "$ac_t""no" 1>&6
2737 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2739 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_hdr" >&5
2742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.
$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure
:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2755 eval "ac_cv_header_$ac_safe=yes"
2758 echo "configure: failed program was:" >&5
2759 cat conftest.
$ac_ext >&5
2761 eval "ac_cv_header_$ac_safe=no"
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2768 cat >> confdefs.h
<<EOF
2769 #define $ac_tr_hdr 1
2773 echo "$ac_t""no" 1>&6
2778 # For experimental utmp support (lastlog on some BSD-like systems)
2779 for ac_hdr
in utmp.h utmpx.h lastlog.h
2781 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_hdr" >&5
2784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 cat > conftest.
$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2792 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2793 { (eval echo configure
:2794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2794 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2795 if test -z "$ac_err"; then
2797 eval "ac_cv_header_$ac_safe=yes"
2800 echo "configure: failed program was:" >&5
2801 cat conftest.
$ac_ext >&5
2803 eval "ac_cv_header_$ac_safe=no"
2807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2808 echo "$ac_t""yes" 1>&6
2809 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2810 cat >> confdefs.h
<<EOF
2811 #define $ac_tr_hdr 1
2815 echo "$ac_t""no" 1>&6
2820 # For quotas on Veritas VxFS filesystems
2821 for ac_hdr
in sys
/fs
/vx_quota.h
2823 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2825 echo "configure:2826: checking for $ac_hdr" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.
$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure
:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2837 if test -z "$ac_err"; then
2839 eval "ac_cv_header_$ac_safe=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2845 eval "ac_cv_header_$ac_safe=no"
2849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2851 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2852 cat >> confdefs.h
<<EOF
2853 #define $ac_tr_hdr 1
2857 echo "$ac_t""no" 1>&6
2862 # For quotas on Linux XFS filesystems
2863 for ac_hdr
in linux
/xqm.h
2865 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_hdr" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.
$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2877 { (eval echo configure
:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2879 if test -z "$ac_err"; then
2881 eval "ac_cv_header_$ac_safe=yes"
2884 echo "configure: failed program was:" >&5
2885 cat conftest.
$ac_ext >&5
2887 eval "ac_cv_header_$ac_safe=no"
2891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2892 echo "$ac_t""yes" 1>&6
2893 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2894 cat >> confdefs.h
<<EOF
2895 #define $ac_tr_hdr 1
2899 echo "$ac_t""no" 1>&6
2904 echo $ac_n "checking size of int""... $ac_c" 1>&6
2905 echo "configure:2906: checking size of int" >&5
2906 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 if test "$cross_compiling" = yes; then
2910 ac_cv_sizeof_int
=cross
2912 cat > conftest.
$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2918 FILE *f=fopen("conftestval", "w");
2920 fprintf(f, "%d\n", sizeof(int));
2924 if { (eval echo configure
:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2926 ac_cv_sizeof_int
=`cat conftestval`
2928 echo "configure: failed program was:" >&5
2929 cat conftest.
$ac_ext >&5
2937 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2938 cat >> confdefs.h
<<EOF
2939 #define SIZEOF_INT $ac_cv_sizeof_int
2943 echo $ac_n "checking size of long""... $ac_c" 1>&6
2944 echo "configure:2945: checking size of long" >&5
2945 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 if test "$cross_compiling" = yes; then
2949 ac_cv_sizeof_long
=cross
2951 cat > conftest.
$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2957 FILE *f=fopen("conftestval", "w");
2959 fprintf(f, "%d\n", sizeof(long));
2963 if { (eval echo configure
:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2965 ac_cv_sizeof_long
=`cat conftestval`
2967 echo "configure: failed program was:" >&5
2968 cat conftest.
$ac_ext >&5
2976 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2977 cat >> confdefs.h
<<EOF
2978 #define SIZEOF_LONG $ac_cv_sizeof_long
2982 echo $ac_n "checking size of short""... $ac_c" 1>&6
2983 echo "configure:2984: checking size of short" >&5
2984 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 if test "$cross_compiling" = yes; then
2988 ac_cv_sizeof_short
=cross
2990 cat > conftest.
$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2996 FILE *f=fopen("conftestval", "w");
2998 fprintf(f, "%d\n", sizeof(short));
3002 if { (eval echo configure
:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3004 ac_cv_sizeof_short
=`cat conftestval`
3006 echo "configure: failed program was:" >&5
3007 cat conftest.
$ac_ext >&5
3009 ac_cv_sizeof_short
=0
3015 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3016 cat >> confdefs.h
<<EOF
3017 #define SIZEOF_SHORT $ac_cv_sizeof_short
3022 echo $ac_n "checking for working const""... $ac_c" 1>&6
3023 echo "configure:3024: checking for working const" >&5
3024 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.
$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3033 /* Ultrix mips cc rejects this. */
3034 typedef int charset[2]; const charset x;
3035 /* SunOS 4.1.1 cc rejects this. */
3036 char const *const *ccp;
3038 /* NEC SVR4.0.2 mips cc rejects this. */
3039 struct point {int x, y;};
3040 static struct point const zero = {0,0};
3041 /* AIX XL C 1.02.0.0 rejects this.
3042 It does not let you subtract one const X* pointer from another in an arm
3043 of an if-expression whose if-part is not a constant expression */
3044 const char *g = "string";
3045 ccp = &g + (g ? g-g : 0);
3046 /* HPUX 7.0 cc rejects these. */
3049 ccp = (char const *const *) p;
3050 { /* SCO 3.2v4 cc rejects this. */
3052 char const *s = 0 ? (char *) 0 : (char const *) 0;
3056 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3058 const int *foo = &x[0];
3061 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3062 typedef const int *iptr;
3066 { /* AIX XL C 1.02.0.0 rejects this saying
3067 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3068 struct s { int j; const int *ap[3]; };
3069 struct s *b; b->j = 5;
3071 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3077 if { (eval echo configure
:3078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 echo "configure: failed program was:" >&5
3082 cat conftest.
$ac_ext >&5
3089 echo "$ac_t""$ac_cv_c_const" 1>&6
3090 if test $ac_cv_c_const = no
; then
3091 cat >> confdefs.h
<<\EOF
3097 echo $ac_n "checking for inline""... $ac_c" 1>&6
3098 echo "configure:3099: checking for inline" >&5
3099 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3103 for ac_kw
in inline __inline__ __inline
; do
3104 cat > conftest.
$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3112 if { (eval echo configure
:3113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3114 ac_cv_c_inline
=$ac_kw; break
3116 echo "configure: failed program was:" >&5
3117 cat conftest.
$ac_ext >&5
3124 echo "$ac_t""$ac_cv_c_inline" 1>&6
3125 case "$ac_cv_c_inline" in
3127 no
) cat >> confdefs.h
<<\EOF
3131 *) cat >> confdefs.h
<<EOF
3132 #define inline $ac_cv_c_inline
3137 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3138 echo "configure:3139: checking whether byte ordering is bigendian" >&5
3139 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 ac_cv_c_bigendian
=unknown
3143 # See if sys/param.h defines the BYTE_ORDER macro.
3144 cat > conftest.
$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <sys/types.h>
3148 #include <sys/param.h>
3151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3156 if { (eval echo configure
:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3158 # It does; now see whether it defined to BIG_ENDIAN or not.
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <sys/types.h>
3163 #include <sys/param.h>
3166 #if BYTE_ORDER != BIG_ENDIAN
3171 if { (eval echo configure
:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3173 ac_cv_c_bigendian
=yes
3175 echo "configure: failed program was:" >&5
3176 cat conftest.
$ac_ext >&5
3178 ac_cv_c_bigendian
=no
3182 echo "configure: failed program was:" >&5
3183 cat conftest.
$ac_ext >&5
3186 if test $ac_cv_c_bigendian = unknown
; then
3187 if test "$cross_compiling" = yes; then
3188 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3194 /* Are we little or big endian? From Harbison&Steele. */
3198 char c[sizeof (long)];
3201 exit (u.c[sizeof (long) - 1] == 1);
3204 if { (eval echo configure
:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3206 ac_cv_c_bigendian
=no
3208 echo "configure: failed program was:" >&5
3209 cat conftest.
$ac_ext >&5
3211 ac_cv_c_bigendian
=yes
3219 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3220 if test $ac_cv_c_bigendian = yes; then
3221 cat >> confdefs.h
<<\EOF
3222 #define WORDS_BIGENDIAN 1
3227 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3228 echo "configure:3229: checking whether char is unsigned" >&5
3229 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 if test "$GCC" = yes; then
3233 # GCC predefines this symbol on systems where it applies.
3234 cat > conftest.
$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #ifdef __CHAR_UNSIGNED__
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243 egrep "yes" >/dev
/null
2>&1; then
3245 ac_cv_c_char_unsigned
=yes
3248 ac_cv_c_char_unsigned
=no
3253 if test "$cross_compiling" = yes; then
3254 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3256 cat > conftest.
$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3260 #if !defined(__STDC__) || __STDC__ != 1
3264 volatile char c = 255; exit(c < 0);
3267 if { (eval echo configure
:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3269 ac_cv_c_char_unsigned
=yes
3271 echo "configure: failed program was:" >&5
3272 cat conftest.
$ac_ext >&5
3274 ac_cv_c_char_unsigned
=no
3282 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3283 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3284 cat >> confdefs.h
<<\EOF
3285 #define __CHAR_UNSIGNED__ 1
3291 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3292 echo "configure:3293: checking return type of signal handlers" >&5
3293 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <sys/types.h>
3305 extern "C" void (*signal (int, void (*)(int)))(int);
3307 void (*signal ()) ();
3314 if { (eval echo configure
:3315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316 ac_cv_type_signal
=void
3318 echo "configure: failed program was:" >&5
3319 cat conftest.
$ac_ext >&5
3321 ac_cv_type_signal
=int
3326 echo "$ac_t""$ac_cv_type_signal" 1>&6
3327 cat >> confdefs.h
<<EOF
3328 #define RETSIGTYPE $ac_cv_type_signal
3332 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3333 echo "configure:3334: checking for uid_t in sys/types.h" >&5
3334 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.
$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3343 egrep "uid_t" >/dev
/null
2>&1; then
3345 ac_cv_type_uid_t
=yes
3354 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3355 if test $ac_cv_type_uid_t = no
; then
3356 cat >> confdefs.h
<<\EOF
3360 cat >> confdefs.h
<<\EOF
3366 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3367 echo "configure:3368: checking for mode_t" >&5
3368 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.
$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 #include <sys/types.h>
3380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3383 ac_cv_type_mode_t
=yes
3386 ac_cv_type_mode_t
=no
3391 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3392 if test $ac_cv_type_mode_t = no
; then
3393 cat >> confdefs.h
<<\EOF
3399 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3400 echo "configure:3401: checking for off_t" >&5
3401 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.
$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <sys/types.h>
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3416 ac_cv_type_off_t
=yes
3424 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3425 if test $ac_cv_type_off_t = no
; then
3426 cat >> confdefs.h
<<\EOF
3432 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3433 echo "configure:3434: checking for size_t" >&5
3434 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.
$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3449 ac_cv_type_size_t
=yes
3452 ac_cv_type_size_t
=no
3457 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3458 if test $ac_cv_type_size_t = no
; then
3459 cat >> confdefs.h
<<\EOF
3460 #define size_t unsigned
3465 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3466 echo "configure:3467: checking for pid_t" >&5
3467 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 #include <sys/types.h>
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3482 ac_cv_type_pid_t
=yes
3490 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3491 if test $ac_cv_type_pid_t = no
; then
3492 cat >> confdefs.h
<<\EOF
3498 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3499 echo "configure:3500: checking for st_rdev in struct stat" >&5
3500 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 cat > conftest.
$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <sys/types.h>
3507 #include <sys/stat.h>
3509 struct stat s; s.st_rdev;
3512 if { (eval echo configure
:3513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3514 ac_cv_struct_st_rdev
=yes
3516 echo "configure: failed program was:" >&5
3517 cat conftest.
$ac_ext >&5
3519 ac_cv_struct_st_rdev
=no
3524 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3525 if test $ac_cv_struct_st_rdev = yes; then
3526 cat >> confdefs.h
<<\EOF
3527 #define HAVE_ST_RDEV 1
3532 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3533 echo "configure:3534: checking for d_off in dirent" >&5
3534 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 cat > conftest.
$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3542 #include <sys/types.h>
3545 struct dirent d; d.d_off;
3548 if { (eval echo configure
:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 ac_cv_dirent_d_off
=yes
3552 echo "configure: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3555 ac_cv_dirent_d_off
=no
3560 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3561 if test $ac_cv_dirent_d_off = yes; then
3562 cat >> confdefs.h
<<\EOF
3563 #define HAVE_DIRENT_D_OFF 1
3568 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3569 echo "configure:3570: checking for ino_t" >&5
3570 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.
$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <sys/types.h>
3582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3585 ac_cv_type_ino_t
=yes
3593 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3594 if test $ac_cv_type_ino_t = no
; then
3595 cat >> confdefs.h
<<\EOF
3596 #define ino_t unsigned
3601 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3602 echo "configure:3603: checking for loff_t" >&5
3603 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 #include <sys/types.h>
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3618 ac_cv_type_loff_t
=yes
3621 ac_cv_type_loff_t
=no
3626 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3627 if test $ac_cv_type_loff_t = no
; then
3628 cat >> confdefs.h
<<\EOF
3629 #define loff_t off_t
3634 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3635 echo "configure:3636: checking for offset_t" >&5
3636 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 cat > conftest.
$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <sys/types.h>
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3651 ac_cv_type_offset_t
=yes
3654 ac_cv_type_offset_t
=no
3659 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3660 if test $ac_cv_type_offset_t = no
; then
3661 cat >> confdefs.h
<<\EOF
3662 #define offset_t loff_t
3667 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3668 echo "configure:3669: checking for ssize_t" >&5
3669 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 cat > conftest.
$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <sys/types.h>
3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3684 ac_cv_type_ssize_t
=yes
3687 ac_cv_type_ssize_t
=no
3692 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3693 if test $ac_cv_type_ssize_t = no
; then
3694 cat >> confdefs.h
<<\EOF
3700 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3701 echo "configure:3702: checking for wchar_t" >&5
3702 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 cat > conftest.
$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 #include <sys/types.h>
3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3717 ac_cv_type_wchar_t
=yes
3720 ac_cv_type_wchar_t
=no
3725 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3726 if test $ac_cv_type_wchar_t = no
; then
3727 cat >> confdefs.h
<<\EOF
3728 #define wchar_t unsigned short
3734 ############################################
3735 # for cups support we need libcups, and a handful of header files
3737 # Check whether --enable-cups or --disable-cups was given.
3738 if test "${enable_cups+set}" = set; then
3739 enableval
="$enable_cups"
3744 if test x
$enable_cups != xno
; then
3745 # Extract the first word of "cups-config", so it can be a program name with args.
3746 set dummy cups-config
; ac_word
=$2
3747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3748 echo "configure:3749: checking for $ac_word" >&5
3749 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 case "$CUPS_CONFIG" in
3754 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3757 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3760 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3762 for ac_dir
in $ac_dummy; do
3763 test -z "$ac_dir" && ac_dir
=.
3764 if test -f $ac_dir/$ac_word; then
3765 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3773 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3774 if test -n "$CUPS_CONFIG"; then
3775 echo "$ac_t""$CUPS_CONFIG" 1>&6
3777 echo "$ac_t""no" 1>&6
3781 if test "x$CUPS_CONFIG" != x
; then
3782 cat >> confdefs.h
<<\EOF
3786 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3787 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3788 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3792 ############################################
3793 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3794 for ac_func
in dlopen
3796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_func" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.
$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func(); below. */
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3825 if { (eval echo configure
:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3827 eval "ac_cv_func_$ac_func=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 eval "ac_cv_func_$ac_func=no"
3837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3840 cat >> confdefs.h
<<EOF
3841 #define $ac_tr_func 1
3845 echo "$ac_t""no" 1>&6
3849 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3850 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3851 echo "configure:3852: checking for dlopen in -ldl" >&5
3852 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 ac_save_LIBS
="$LIBS"
3858 cat > conftest.
$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3870 if { (eval echo configure
:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3872 eval "ac_cv_lib_$ac_lib_var=yes"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.
$ac_ext >&5
3877 eval "ac_cv_lib_$ac_lib_var=no"
3880 LIBS
="$ac_save_LIBS"
3883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3884 echo "$ac_t""yes" 1>&6
3886 cat >> confdefs.h
<<\EOF
3887 #define HAVE_DLOPEN 1
3891 echo "$ac_t""no" 1>&6
3895 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3897 ############################################
3898 # check if the compiler can do immediate structures
3899 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3900 echo "configure:3901: checking for immediate structures" >&5
3901 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3905 cat > conftest.
$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3912 typedef struct {unsigned x;} FOOBAR;
3913 #define X_FOOBAR(x) ((FOOBAR) { x })
3914 #define FOO_ONE X_FOOBAR(1)
3924 if { (eval echo configure
:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 samba_cv_immediate_structures
=yes
3928 echo "configure: failed program was:" >&5
3929 cat conftest.
$ac_ext >&5
3931 samba_cv_immediate_structures
=no
3936 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3937 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3938 cat >> confdefs.h
<<\EOF
3939 #define HAVE_IMMEDIATE_STRUCTURES 1
3944 ############################################
3945 # check for unix domain sockets
3946 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3947 echo "configure:3948: checking for unix domain sockets" >&5
3948 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.
$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3956 #include <sys/types.h>
3959 #include <sys/socket.h>
3963 struct sockaddr_un sunaddr;
3964 sunaddr.sun_family = AF_UNIX;
3968 if { (eval echo configure
:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3970 samba_cv_unixsocket
=yes
3972 echo "configure: failed program was:" >&5
3973 cat conftest.
$ac_ext >&5
3975 samba_cv_unixsocket
=no
3980 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3981 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3982 cat >> confdefs.h
<<\EOF
3983 #define HAVE_UNIXSOCKET 1
3988 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3989 echo "configure:3990: checking for socklen_t type" >&5
3990 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.
$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3998 #include <sys/types.h>
4003 #include <sys/socket.h>
4008 if { (eval echo configure
:4009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4010 samba_cv_socklen_t
=yes
4012 echo "configure: failed program was:" >&5
4013 cat conftest.
$ac_ext >&5
4015 samba_cv_socklen_t
=no
4020 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4021 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4022 cat >> confdefs.h
<<\EOF
4023 #define HAVE_SOCKLEN_T_TYPE 1
4028 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4029 echo "configure:4030: checking for sig_atomic_t type" >&5
4030 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4034 cat > conftest.
$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4038 #include <sys/types.h>
4048 if { (eval echo configure
:4049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4050 samba_cv_sig_atomic_t
=yes
4052 echo "configure: failed program was:" >&5
4053 cat conftest.
$ac_ext >&5
4055 samba_cv_sig_atomic_t
=no
4060 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4061 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4062 cat >> confdefs.h
<<\EOF
4063 #define HAVE_SIG_ATOMIC_T_TYPE 1
4068 # stupid headers have the functions but no declaration. grrrr.
4070 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4071 echo "configure:4072: checking for errno declaration" >&5
4072 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.
$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4084 if { (eval echo configure
:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 ac_cv_have_errno_decl
=yes
4088 echo "configure: failed program was:" >&5
4089 cat conftest.
$ac_ext >&5
4091 ac_cv_have_errno_decl
=no
4096 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4097 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4098 cat >> confdefs.h
<<\EOF
4099 #define HAVE_ERRNO_DECL 1
4105 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4106 echo "configure:4107: checking for setresuid declaration" >&5
4107 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4116 int i = (int)setresuid
4119 if { (eval echo configure
:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4121 ac_cv_have_setresuid_decl
=yes
4123 echo "configure: failed program was:" >&5
4124 cat conftest.
$ac_ext >&5
4126 ac_cv_have_setresuid_decl
=no
4131 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4132 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4133 cat >> confdefs.h
<<\EOF
4134 #define HAVE_SETRESUID_DECL 1
4140 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4141 echo "configure:4142: checking for setresgid declaration" >&5
4142 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4146 cat > conftest.
$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4151 int i = (int)setresgid
4154 if { (eval echo configure
:4155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4156 ac_cv_have_setresgid_decl
=yes
4158 echo "configure: failed program was:" >&5
4159 cat conftest.
$ac_ext >&5
4161 ac_cv_have_setresgid_decl
=no
4166 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4167 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4168 cat >> confdefs.h
<<\EOF
4169 #define HAVE_SETRESGID_DECL 1
4175 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4176 echo "configure:4177: checking for asprintf declaration" >&5
4177 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4181 cat > conftest.
$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4186 int i = (int)asprintf
4189 if { (eval echo configure
:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4191 ac_cv_have_asprintf_decl
=yes
4193 echo "configure: failed program was:" >&5
4194 cat conftest.
$ac_ext >&5
4196 ac_cv_have_asprintf_decl
=no
4201 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4202 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4203 cat >> confdefs.h
<<\EOF
4204 #define HAVE_ASPRINTF_DECL 1
4210 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4211 echo "configure:4212: checking for vasprintf declaration" >&5
4212 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4216 cat > conftest.
$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4221 int i = (int)vasprintf
4224 if { (eval echo configure
:4225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4226 ac_cv_have_vasprintf_decl
=yes
4228 echo "configure: failed program was:" >&5
4229 cat conftest.
$ac_ext >&5
4231 ac_cv_have_vasprintf_decl
=no
4236 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4237 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4238 cat >> confdefs.h
<<\EOF
4239 #define HAVE_VASPRINTF_DECL 1
4245 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4246 echo "configure:4247: checking for vsnprintf declaration" >&5
4247 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4251 cat > conftest.
$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4256 int i = (int)vsnprintf
4259 if { (eval echo configure
:4260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4261 ac_cv_have_vsnprintf_decl
=yes
4263 echo "configure: failed program was:" >&5
4264 cat conftest.
$ac_ext >&5
4266 ac_cv_have_vsnprintf_decl
=no
4271 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4272 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4273 cat >> confdefs.h
<<\EOF
4274 #define HAVE_VSNPRINTF_DECL 1
4280 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4281 echo "configure:4282: checking for snprintf declaration" >&5
4282 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4286 cat > conftest.
$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4291 int i = (int)snprintf
4294 if { (eval echo configure
:4295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4296 ac_cv_have_snprintf_decl
=yes
4298 echo "configure: failed program was:" >&5
4299 cat conftest.
$ac_ext >&5
4301 ac_cv_have_snprintf_decl
=no
4306 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4307 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4308 cat >> confdefs.h
<<\EOF
4309 #define HAVE_SNPRINTF_DECL 1
4315 # and glibc has setresuid under linux but the function does
4316 # nothing until kernel 2.1.44! very dumb.
4317 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4318 echo "configure:4319: checking for real setresuid" >&5
4319 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4323 if test "$cross_compiling" = yes; then
4324 samba_cv_have_setresuid
=cross
4326 cat > conftest.
$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4330 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4332 if { (eval echo configure
:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4334 samba_cv_have_setresuid
=yes
4336 echo "configure: failed program was:" >&5
4337 cat conftest.
$ac_ext >&5
4339 samba_cv_have_setresuid
=no
4346 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4347 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4348 cat >> confdefs.h
<<\EOF
4349 #define HAVE_SETRESUID 1
4354 # Do the same check for setresguid...
4356 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4357 echo "configure:4358: checking for real setresgid" >&5
4358 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4362 if test "$cross_compiling" = yes; then
4363 samba_cv_have_setresgid
=cross
4365 cat > conftest.
$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4370 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4372 if { (eval echo configure
:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4374 samba_cv_have_setresgid
=yes
4376 echo "configure: failed program was:" >&5
4377 cat conftest.
$ac_ext >&5
4379 samba_cv_have_setresgid
=no
4386 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4387 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4388 cat >> confdefs.h
<<\EOF
4389 #define HAVE_SETRESGID 1
4394 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4395 echo "configure:4396: checking for 8-bit clean memcmp" >&5
4396 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 if test "$cross_compiling" = yes; then
4400 ac_cv_func_memcmp_clean
=no
4402 cat > conftest.
$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4408 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4409 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4413 if { (eval echo configure
:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4415 ac_cv_func_memcmp_clean
=yes
4417 echo "configure: failed program was:" >&5
4418 cat conftest.
$ac_ext >&5
4420 ac_cv_func_memcmp_clean
=no
4427 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4428 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4431 ###############################################
4432 # Readline included by default unless explicitly asked not to
4433 test "${with_readline+set}" != "set" && with_readline
=yes
4435 # test for where we get readline() from
4436 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4437 echo "configure:4438: checking whether to use readline" >&5
4438 # Check whether --with-readline or --without-readline was given.
4439 if test "${with_readline+set}" = set; then
4440 withval
="$with_readline"
4441 case "$with_readline" in
4443 echo "$ac_t""yes" 1>&6
4445 for ac_hdr
in readline.h
history.h readline
/readline.h
4447 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_hdr" >&5
4450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.
$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4458 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4459 { (eval echo configure
:4460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4460 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4461 if test -z "$ac_err"; then
4463 eval "ac_cv_header_$ac_safe=yes"
4466 echo "configure: failed program was:" >&5
4467 cat conftest.
$ac_ext >&5
4469 eval "ac_cv_header_$ac_safe=no"
4473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4476 cat >> confdefs.h
<<EOF
4477 #define $ac_tr_hdr 1
4481 echo "$ac_t""no" 1>&6
4485 for ac_hdr
in readline
/history.h
4487 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4489 echo "configure:4490: checking for $ac_hdr" >&5
4490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.
$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4498 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4499 { (eval echo configure
:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4500 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4501 if test -z "$ac_err"; then
4503 eval "ac_cv_header_$ac_safe=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.
$ac_ext >&5
4509 eval "ac_cv_header_$ac_safe=no"
4513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4516 cat >> confdefs.h
<<EOF
4517 #define $ac_tr_hdr 1
4521 echo "$ac_t""no" 1>&6
4526 for ac_hdr
in readline.h readline
/readline.h
4528 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_hdr" >&5
4531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 cat > conftest.
$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4539 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4540 { (eval echo configure
:4541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4541 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4542 if test -z "$ac_err"; then
4544 eval "ac_cv_header_$ac_safe=yes"
4547 echo "configure: failed program was:" >&5
4548 cat conftest.
$ac_ext >&5
4550 eval "ac_cv_header_$ac_safe=no"
4554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4557 cat >> confdefs.h
<<EOF
4558 #define $ac_tr_hdr 1
4561 for termlib
in ncurses curses termcap terminfo termlib
; do
4562 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4563 echo "configure:4564: checking for tgetent in -l${termlib}" >&5
4564 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 ac_save_LIBS
="$LIBS"
4569 LIBS
="-l${termlib} $LIBS"
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4582 if { (eval echo configure
:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4584 eval "ac_cv_lib_$ac_lib_var=yes"
4586 echo "configure: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4589 eval "ac_cv_lib_$ac_lib_var=no"
4592 LIBS
="$ac_save_LIBS"
4595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4596 echo "$ac_t""yes" 1>&6
4597 TERMLIBS
="-l${termlib}"; break
4599 echo "$ac_t""no" 1>&6
4603 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4604 echo "configure:4605: checking for rl_callback_handler_install in -lreadline" >&5
4605 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4609 ac_save_LIBS
="$LIBS"
4610 LIBS
="-lreadline $TERMLIBS $LIBS"
4611 cat > conftest.
$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4617 char rl_callback_handler_install();
4620 rl_callback_handler_install()
4623 if { (eval echo configure
:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4625 eval "ac_cv_lib_$ac_lib_var=yes"
4627 echo "configure: failed program was:" >&5
4628 cat conftest.
$ac_ext >&5
4630 eval "ac_cv_lib_$ac_lib_var=no"
4633 LIBS
="$ac_save_LIBS"
4636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4637 echo "$ac_t""yes" 1>&6
4638 TERMLIBS
="-lreadline $TERMLIBS"
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_LIBREADLINE 1
4645 echo "$ac_t""no" 1>&6
4650 echo "$ac_t""no" 1>&6
4656 echo "$ac_t""no" 1>&6
4659 echo "$ac_t""yes" 1>&6
4661 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4662 # alternate readline path
4664 _cppflags
=${CPPFLAGS}
4666 # Add additional search path
4667 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4668 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4670 for ac_hdr
in readline.h
history.h readline
/readline.h
4672 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4674 echo "configure:4675: checking for $ac_hdr" >&5
4675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4683 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4684 { (eval echo configure
:4685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4685 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4686 if test -z "$ac_err"; then
4688 eval "ac_cv_header_$ac_safe=yes"
4691 echo "configure: failed program was:" >&5
4692 cat conftest.
$ac_ext >&5
4694 eval "ac_cv_header_$ac_safe=no"
4698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4699 echo "$ac_t""yes" 1>&6
4700 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4701 cat >> confdefs.h
<<EOF
4702 #define $ac_tr_hdr 1
4706 echo "$ac_t""no" 1>&6
4710 for ac_hdr
in readline
/history.h
4712 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_hdr" >&5
4715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.
$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4723 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4724 { (eval echo configure
:4725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4725 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4726 if test -z "$ac_err"; then
4728 eval "ac_cv_header_$ac_safe=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.
$ac_ext >&5
4734 eval "ac_cv_header_$ac_safe=no"
4738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4741 cat >> confdefs.h
<<EOF
4742 #define $ac_tr_hdr 1
4746 echo "$ac_t""no" 1>&6
4751 for ac_hdr
in readline.h readline
/readline.h
4753 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4755 echo "configure:4756: checking for $ac_hdr" >&5
4756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.
$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4764 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4765 { (eval echo configure
:4766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4766 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4767 if test -z "$ac_err"; then
4769 eval "ac_cv_header_$ac_safe=yes"
4772 echo "configure: failed program was:" >&5
4773 cat conftest.
$ac_ext >&5
4775 eval "ac_cv_header_$ac_safe=no"
4779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4782 cat >> confdefs.h
<<EOF
4783 #define $ac_tr_hdr 1
4786 for termlib
in ncurses curses termcap terminfo termlib
; do
4787 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4788 echo "configure:4789: checking for tgetent in -l${termlib}" >&5
4789 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 ac_save_LIBS
="$LIBS"
4794 LIBS
="-l${termlib} $LIBS"
4795 cat > conftest.
$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4807 if { (eval echo configure
:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4809 eval "ac_cv_lib_$ac_lib_var=yes"
4811 echo "configure: failed program was:" >&5
4812 cat conftest.
$ac_ext >&5
4814 eval "ac_cv_lib_$ac_lib_var=no"
4817 LIBS
="$ac_save_LIBS"
4820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 TERMLIBS
="-l${termlib}"; break
4824 echo "$ac_t""no" 1>&6
4828 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4829 echo "configure:4830: checking for rl_callback_handler_install in -lreadline" >&5
4830 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 ac_save_LIBS
="$LIBS"
4835 LIBS
="-lreadline $TERMLIBS $LIBS"
4836 cat > conftest.
$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4842 char rl_callback_handler_install();
4845 rl_callback_handler_install()
4848 if { (eval echo configure
:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4850 eval "ac_cv_lib_$ac_lib_var=yes"
4852 echo "configure: failed program was:" >&5
4853 cat conftest.
$ac_ext >&5
4855 eval "ac_cv_lib_$ac_lib_var=no"
4858 LIBS
="$ac_save_LIBS"
4861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4862 echo "$ac_t""yes" 1>&6
4863 TERMLDFLAGS
="-L$with_readline/lib"
4864 TERMCPPFLAGS
="-I$with_readline/include"
4865 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4866 TERMLIBS
="-lreadline $TERMLIBS"
4867 cat >> confdefs.h
<<\EOF
4868 #define HAVE_LIBREADLINE 1
4873 echo "$ac_t""no" 1>&6
4874 TERMLIBS
= CPPFLAGS
=$_cppflags
4878 echo "$ac_t""no" 1>&6
4887 echo "$ac_t""no" 1>&6
4894 # The following test taken from the cvs sources
4895 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4896 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4897 # libsocket.so which has a bad implementation of gethostbyname (it
4898 # only looks in /etc/hosts), so we only look for -lsocket if we need
4900 for ac_func
in connect
4902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4903 echo "configure:4904: checking for $ac_func" >&5
4904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4907 cat > conftest.
$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* System header to define __stub macros and hopefully few prototypes,
4911 which can conflict with char $ac_func(); below. */
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4920 /* The GNU C library defines this for functions which it implements
4921 to always fail with ENOSYS. Some functions are actually named
4922 something starting with __ and the normal name is an alias. */
4923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4931 if { (eval echo configure
:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4933 eval "ac_cv_func_$ac_func=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.
$ac_ext >&5
4938 eval "ac_cv_func_$ac_func=no"
4943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4944 echo "$ac_t""yes" 1>&6
4945 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4946 cat >> confdefs.h
<<EOF
4947 #define $ac_tr_func 1
4951 echo "$ac_t""no" 1>&6
4955 if test x
"$ac_cv_func_connect" = x
"no"; then
4958 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4959 echo "configure:4960: checking for printf in -lnsl_s" >&5
4960 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 ac_save_LIBS
="$LIBS"
4965 LIBS
="-lnsl_s $LIBS"
4966 cat > conftest.
$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4969 /* Override any gcc2 internal prototype to avoid an error. */
4970 /* We use char because int might match the return type of a gcc2
4971 builtin and then its argument prototype would still apply. */
4978 if { (eval echo configure
:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4980 eval "ac_cv_lib_$ac_lib_var=yes"
4982 echo "configure: failed program was:" >&5
4983 cat conftest.
$ac_ext >&5
4985 eval "ac_cv_lib_$ac_lib_var=no"
4988 LIBS
="$ac_save_LIBS"
4991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4993 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4995 cat >> confdefs.h
<<EOF
4996 #define $ac_tr_lib 1
4999 LIBS
="-lnsl_s $LIBS"
5002 echo "$ac_t""no" 1>&6
5008 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5009 echo "configure:5010: checking for printf in -lnsl" >&5
5010 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 ac_save_LIBS
="$LIBS"
5016 cat > conftest.
$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5028 if { (eval echo configure
:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5030 eval "ac_cv_lib_$ac_lib_var=yes"
5032 echo "configure: failed program was:" >&5
5033 cat conftest.
$ac_ext >&5
5035 eval "ac_cv_lib_$ac_lib_var=no"
5038 LIBS
="$ac_save_LIBS"
5041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5045 cat >> confdefs.h
<<EOF
5046 #define $ac_tr_lib 1
5052 echo "$ac_t""no" 1>&6
5058 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5059 echo "configure:5060: checking for connect in -lsocket" >&5
5060 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 ac_save_LIBS
="$LIBS"
5065 LIBS
="-lsocket $LIBS"
5066 cat > conftest.
$ac_ext <<EOF
5067 #line 5068 "configure"
5068 #include "confdefs.h"
5069 /* Override any gcc2 internal prototype to avoid an error. */
5070 /* We use char because int might match the return type of a gcc2
5071 builtin and then its argument prototype would still apply. */
5078 if { (eval echo configure
:5079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5080 eval "ac_cv_lib_$ac_lib_var=yes"
5082 echo "configure: failed program was:" >&5
5083 cat conftest.
$ac_ext >&5
5085 eval "ac_cv_lib_$ac_lib_var=no"
5088 LIBS
="$ac_save_LIBS"
5091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5094 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5095 cat >> confdefs.h
<<EOF
5096 #define $ac_tr_lib 1
5099 LIBS
="-lsocket $LIBS"
5102 echo "$ac_t""no" 1>&6
5108 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5109 echo "configure:5110: checking for connect in -linet" >&5
5110 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5112 echo $ac_n "(cached) $ac_c" 1>&6
5114 ac_save_LIBS
="$LIBS"
5116 cat > conftest.
$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 /* We use char because int might match the return type of a gcc2
5121 builtin and then its argument prototype would still apply. */
5128 if { (eval echo configure
:5129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5130 eval "ac_cv_lib_$ac_lib_var=yes"
5132 echo "configure: failed program was:" >&5
5133 cat conftest.
$ac_ext >&5
5135 eval "ac_cv_lib_$ac_lib_var=no"
5138 LIBS
="$ac_save_LIBS"
5141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5142 echo "$ac_t""yes" 1>&6
5143 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5145 cat >> confdefs.h
<<EOF
5146 #define $ac_tr_lib 1
5152 echo "$ac_t""no" 1>&6
5156 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5157 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5158 # ac_cv_func_connect=yes
5159 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5160 cat >> confdefs.h
<<\EOF
5161 #define HAVE_CONNECT 1
5167 ###############################################
5168 # test for where we get get_yp_default_domain() from
5169 for ac_func
in yp_get_default_domain
5171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5172 echo "configure:5173: checking for $ac_func" >&5
5173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5176 cat > conftest.
$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* System header to define __stub macros and hopefully few prototypes,
5180 which can conflict with char $ac_func(); below. */
5182 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5189 /* The GNU C library defines this for functions which it implements
5190 to always fail with ENOSYS. Some functions are actually named
5191 something starting with __ and the normal name is an alias. */
5192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5200 if { (eval echo configure
:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5202 eval "ac_cv_func_$ac_func=yes"
5204 echo "configure: failed program was:" >&5
5205 cat conftest.
$ac_ext >&5
5207 eval "ac_cv_func_$ac_func=no"
5212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5213 echo "$ac_t""yes" 1>&6
5214 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5215 cat >> confdefs.h
<<EOF
5216 #define $ac_tr_func 1
5220 echo "$ac_t""no" 1>&6
5224 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5225 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5226 echo "configure:5227: checking for yp_get_default_domain in -lnsl" >&5
5227 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5231 ac_save_LIBS
="$LIBS"
5233 cat > conftest.
$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 /* Override any gcc2 internal prototype to avoid an error. */
5237 /* We use char because int might match the return type of a gcc2
5238 builtin and then its argument prototype would still apply. */
5239 char yp_get_default_domain();
5242 yp_get_default_domain()
5245 if { (eval echo configure
:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5247 eval "ac_cv_lib_$ac_lib_var=yes"
5249 echo "configure: failed program was:" >&5
5250 cat conftest.
$ac_ext >&5
5252 eval "ac_cv_lib_$ac_lib_var=no"
5255 LIBS
="$ac_save_LIBS"
5258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5259 echo "$ac_t""yes" 1>&6
5261 cat >> confdefs.h
<<\EOF
5262 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5266 echo "$ac_t""no" 1>&6
5271 # Check if we have execl, if not we need to compile smbrun.
5272 for ac_func
in execl
5274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5275 echo "configure:5276: checking for $ac_func" >&5
5276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5279 cat > conftest.
$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 /* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func(); below. */
5285 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5292 /* The GNU C library defines this for functions which it implements
5293 to always fail with ENOSYS. Some functions are actually named
5294 something starting with __ and the normal name is an alias. */
5295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5303 if { (eval echo configure
:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5305 eval "ac_cv_func_$ac_func=yes"
5307 echo "configure: failed program was:" >&5
5308 cat conftest.
$ac_ext >&5
5310 eval "ac_cv_func_$ac_func=no"
5315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5316 echo "$ac_t""yes" 1>&6
5317 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5318 cat >> confdefs.h
<<EOF
5319 #define $ac_tr_func 1
5323 echo "$ac_t""no" 1>&6
5327 if test x
"$ac_cv_func_execl" = x
"no"; then
5328 RUNPROG
="bin/smbrun"
5333 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_func" >&5
5337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 cat > conftest.
$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 /* System header to define __stub macros and hopefully few prototypes,
5344 which can conflict with char $ac_func(); below. */
5346 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5353 /* The GNU C library defines this for functions which it implements
5354 to always fail with ENOSYS. Some functions are actually named
5355 something starting with __ and the normal name is an alias. */
5356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5364 if { (eval echo configure
:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5366 eval "ac_cv_func_$ac_func=yes"
5368 echo "configure: failed program was:" >&5
5369 cat conftest.
$ac_ext >&5
5371 eval "ac_cv_func_$ac_func=no"
5376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5377 echo "$ac_t""yes" 1>&6
5378 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5379 cat >> confdefs.h
<<EOF
5380 #define $ac_tr_func 1
5384 echo "$ac_t""no" 1>&6
5388 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5391 echo "configure:5392: checking for $ac_func" >&5
5392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 cat > conftest.
$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 /* System header to define __stub macros and hopefully few prototypes,
5399 which can conflict with char $ac_func(); below. */
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5408 /* The GNU C library defines this for functions which it implements
5409 to always fail with ENOSYS. Some functions are actually named
5410 something starting with __ and the normal name is an alias. */
5411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5419 if { (eval echo configure
:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5421 eval "ac_cv_func_$ac_func=yes"
5423 echo "configure: failed program was:" >&5
5424 cat conftest.
$ac_ext >&5
5426 eval "ac_cv_func_$ac_func=no"
5431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5432 echo "$ac_t""yes" 1>&6
5433 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5434 cat >> confdefs.h
<<EOF
5435 #define $ac_tr_func 1
5439 echo "$ac_t""no" 1>&6
5443 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5446 echo "configure:5447: checking for $ac_func" >&5
5447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5450 cat > conftest.
$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453 /* System header to define __stub macros and hopefully few prototypes,
5454 which can conflict with char $ac_func(); below. */
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5463 /* The GNU C library defines this for functions which it implements
5464 to always fail with ENOSYS. Some functions are actually named
5465 something starting with __ and the normal name is an alias. */
5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5474 if { (eval echo configure
:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5476 eval "ac_cv_func_$ac_func=yes"
5478 echo "configure: failed program was:" >&5
5479 cat conftest.
$ac_ext >&5
5481 eval "ac_cv_func_$ac_func=no"
5486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5487 echo "$ac_t""yes" 1>&6
5488 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5489 cat >> confdefs.h
<<EOF
5490 #define $ac_tr_func 1
5494 echo "$ac_t""no" 1>&6
5498 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5501 echo "configure:5502: checking for $ac_func" >&5
5502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.
$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char $ac_func(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5518 /* The GNU C library defines this for functions which it implements
5519 to always fail with ENOSYS. Some functions are actually named
5520 something starting with __ and the normal name is an alias. */
5521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5529 if { (eval echo configure
:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5531 eval "ac_cv_func_$ac_func=yes"
5533 echo "configure: failed program was:" >&5
5534 cat conftest.
$ac_ext >&5
5536 eval "ac_cv_func_$ac_func=no"
5541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5543 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5544 cat >> confdefs.h
<<EOF
5545 #define $ac_tr_func 1
5549 echo "$ac_t""no" 1>&6
5553 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.
$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char $ac_func(); below. */
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5584 if { (eval echo configure
:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5586 eval "ac_cv_func_$ac_func=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.
$ac_ext >&5
5591 eval "ac_cv_func_$ac_func=no"
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5598 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5599 cat >> confdefs.h
<<EOF
5600 #define $ac_tr_func 1
5604 echo "$ac_t""no" 1>&6
5608 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5611 echo "configure:5612: checking for $ac_func" >&5
5612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 cat > conftest.
$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 /* System header to define __stub macros and hopefully few prototypes,
5619 which can conflict with char $ac_func(); below. */
5621 /* Override any gcc2 internal prototype to avoid an error. */
5622 /* We use char because int might match the return type of a gcc2
5623 builtin and then its argument prototype would still apply. */
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5639 if { (eval echo configure
:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5641 eval "ac_cv_func_$ac_func=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.
$ac_ext >&5
5646 eval "ac_cv_func_$ac_func=no"
5651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5653 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5654 cat >> confdefs.h
<<EOF
5655 #define $ac_tr_func 1
5659 echo "$ac_t""no" 1>&6
5663 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5666 echo "configure:5667: checking for $ac_func" >&5
5667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 cat > conftest.
$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 /* System header to define __stub macros and hopefully few prototypes,
5674 which can conflict with char $ac_func(); below. */
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5683 /* The GNU C library defines this for functions which it implements
5684 to always fail with ENOSYS. Some functions are actually named
5685 something starting with __ and the normal name is an alias. */
5686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5694 if { (eval echo configure
:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5696 eval "ac_cv_func_$ac_func=yes"
5698 echo "configure: failed program was:" >&5
5699 cat conftest.
$ac_ext >&5
5701 eval "ac_cv_func_$ac_func=no"
5706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5708 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5709 cat >> confdefs.h
<<EOF
5710 #define $ac_tr_func 1
5714 echo "$ac_t""no" 1>&6
5718 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_func" >&5
5722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.
$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func(); below. */
5731 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5738 /* The GNU C library defines this for functions which it implements
5739 to always fail with ENOSYS. Some functions are actually named
5740 something starting with __ and the normal name is an alias. */
5741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5749 if { (eval echo configure
:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5751 eval "ac_cv_func_$ac_func=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.
$ac_ext >&5
5756 eval "ac_cv_func_$ac_func=no"
5761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5764 cat >> confdefs.h
<<EOF
5765 #define $ac_tr_func 1
5769 echo "$ac_t""no" 1>&6
5773 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_func" >&5
5777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.
$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 /* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char $ac_func(); below. */
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5793 /* The GNU C library defines this for functions which it implements
5794 to always fail with ENOSYS. Some functions are actually named
5795 something starting with __ and the normal name is an alias. */
5796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5804 if { (eval echo configure
:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5806 eval "ac_cv_func_$ac_func=yes"
5808 echo "configure: failed program was:" >&5
5809 cat conftest.
$ac_ext >&5
5811 eval "ac_cv_func_$ac_func=no"
5816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5819 cat >> confdefs.h
<<EOF
5820 #define $ac_tr_func 1
5824 echo "$ac_t""no" 1>&6
5828 for ac_func
in syslog vsyslog
5830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_func" >&5
5832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.
$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* System header to define __stub macros and hopefully few prototypes,
5839 which can conflict with char $ac_func(); below. */
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5848 /* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5859 if { (eval echo configure
:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5861 eval "ac_cv_func_$ac_func=yes"
5863 echo "configure: failed program was:" >&5
5864 cat conftest.
$ac_ext >&5
5866 eval "ac_cv_func_$ac_func=no"
5871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5872 echo "$ac_t""yes" 1>&6
5873 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5874 cat >> confdefs.h
<<EOF
5875 #define $ac_tr_func 1
5879 echo "$ac_t""no" 1>&6
5884 # syscall() is needed for smbwrapper.
5885 for ac_func
in syscall
5887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5888 echo "configure:5889: checking for $ac_func" >&5
5889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5892 cat > conftest.
$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* System header to define __stub macros and hopefully few prototypes,
5896 which can conflict with char $ac_func(); below. */
5898 /* Override any gcc2 internal prototype to avoid an error. */
5899 /* We use char because int might match the return type of a gcc2
5900 builtin and then its argument prototype would still apply. */
5905 /* The GNU C library defines this for functions which it implements
5906 to always fail with ENOSYS. Some functions are actually named
5907 something starting with __ and the normal name is an alias. */
5908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5916 if { (eval echo configure
:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5918 eval "ac_cv_func_$ac_func=yes"
5920 echo "configure: failed program was:" >&5
5921 cat conftest.
$ac_ext >&5
5923 eval "ac_cv_func_$ac_func=no"
5928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5929 echo "$ac_t""yes" 1>&6
5930 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5931 cat >> confdefs.h
<<EOF
5932 #define $ac_tr_func 1
5936 echo "$ac_t""no" 1>&6
5941 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5944 echo "configure:5945: checking for $ac_func" >&5
5945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 cat > conftest.
$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 /* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char $ac_func(); below. */
5954 /* Override any gcc2 internal prototype to avoid an error. */
5955 /* We use char because int might match the return type of a gcc2
5956 builtin and then its argument prototype would still apply. */
5961 /* The GNU C library defines this for functions which it implements
5962 to always fail with ENOSYS. Some functions are actually named
5963 something starting with __ and the normal name is an alias. */
5964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5972 if { (eval echo configure
:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5974 eval "ac_cv_func_$ac_func=yes"
5976 echo "configure: failed program was:" >&5
5977 cat conftest.
$ac_ext >&5
5979 eval "ac_cv_func_$ac_func=no"
5984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5985 echo "$ac_t""yes" 1>&6
5986 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5987 cat >> confdefs.h
<<EOF
5988 #define $ac_tr_func 1
5992 echo "$ac_t""no" 1>&6
5996 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5999 echo "configure:6000: checking for $ac_func" >&5
6000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6003 cat > conftest.
$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 /* System header to define __stub macros and hopefully few prototypes,
6007 which can conflict with char $ac_func(); below. */
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6016 /* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
6019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6027 if { (eval echo configure
:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6029 eval "ac_cv_func_$ac_func=yes"
6031 echo "configure: failed program was:" >&5
6032 cat conftest.
$ac_ext >&5
6034 eval "ac_cv_func_$ac_func=no"
6039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6040 echo "$ac_t""yes" 1>&6
6041 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6042 cat >> confdefs.h
<<EOF
6043 #define $ac_tr_func 1
6047 echo "$ac_t""no" 1>&6
6051 for ac_func
in __getcwd _getcwd
6053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_func" >&5
6055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6058 cat > conftest.
$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 /* System header to define __stub macros and hopefully few prototypes,
6062 which can conflict with char $ac_func(); below. */
6064 /* Override any gcc2 internal prototype to avoid an error. */
6065 /* We use char because int might match the return type of a gcc2
6066 builtin and then its argument prototype would still apply. */
6071 /* The GNU C library defines this for functions which it implements
6072 to always fail with ENOSYS. Some functions are actually named
6073 something starting with __ and the normal name is an alias. */
6074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6082 if { (eval echo configure
:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6084 eval "ac_cv_func_$ac_func=yes"
6086 echo "configure: failed program was:" >&5
6087 cat conftest.
$ac_ext >&5
6089 eval "ac_cv_func_$ac_func=no"
6094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6095 echo "$ac_t""yes" 1>&6
6096 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6097 cat >> confdefs.h
<<EOF
6098 #define $ac_tr_func 1
6102 echo "$ac_t""no" 1>&6
6106 for ac_func
in __xstat __fxstat __lxstat
6108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_func" >&5
6110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6113 cat > conftest.
$ac_ext <<EOF
6114 #line 6115 "configure"
6115 #include "confdefs.h"
6116 /* System header to define __stub macros and hopefully few prototypes,
6117 which can conflict with char $ac_func(); below. */
6119 /* Override any gcc2 internal prototype to avoid an error. */
6120 /* We use char because int might match the return type of a gcc2
6121 builtin and then its argument prototype would still apply. */
6126 /* The GNU C library defines this for functions which it implements
6127 to always fail with ENOSYS. Some functions are actually named
6128 something starting with __ and the normal name is an alias. */
6129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6137 if { (eval echo configure
:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6139 eval "ac_cv_func_$ac_func=yes"
6141 echo "configure: failed program was:" >&5
6142 cat conftest.
$ac_ext >&5
6144 eval "ac_cv_func_$ac_func=no"
6149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6151 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152 cat >> confdefs.h
<<EOF
6153 #define $ac_tr_func 1
6157 echo "$ac_t""no" 1>&6
6161 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6164 echo "configure:6165: checking for $ac_func" >&5
6165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6168 cat > conftest.
$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 /* System header to define __stub macros and hopefully few prototypes,
6172 which can conflict with char $ac_func(); below. */
6174 /* Override any gcc2 internal prototype to avoid an error. */
6175 /* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6181 /* The GNU C library defines this for functions which it implements
6182 to always fail with ENOSYS. Some functions are actually named
6183 something starting with __ and the normal name is an alias. */
6184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6192 if { (eval echo configure
:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6194 eval "ac_cv_func_$ac_func=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.
$ac_ext >&5
6199 eval "ac_cv_func_$ac_func=no"
6204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6206 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6207 cat >> confdefs.h
<<EOF
6208 #define $ac_tr_func 1
6212 echo "$ac_t""no" 1>&6
6216 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6219 echo "configure:6220: checking for $ac_func" >&5
6220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6223 cat > conftest.
$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char $ac_func(); below. */
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6236 /* The GNU C library defines this for functions which it implements
6237 to always fail with ENOSYS. Some functions are actually named
6238 something starting with __ and the normal name is an alias. */
6239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 if { (eval echo configure
:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6249 eval "ac_cv_func_$ac_func=yes"
6251 echo "configure: failed program was:" >&5
6252 cat conftest.
$ac_ext >&5
6254 eval "ac_cv_func_$ac_func=no"
6259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6261 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6262 cat >> confdefs.h
<<EOF
6263 #define $ac_tr_func 1
6267 echo "$ac_t""no" 1>&6
6271 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6274 echo "configure:6275: checking for $ac_func" >&5
6275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6278 cat > conftest.
$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6281 /* System header to define __stub macros and hopefully few prototypes,
6282 which can conflict with char $ac_func(); below. */
6284 /* Override any gcc2 internal prototype to avoid an error. */
6285 /* We use char because int might match the return type of a gcc2
6286 builtin and then its argument prototype would still apply. */
6291 /* The GNU C library defines this for functions which it implements
6292 to always fail with ENOSYS. Some functions are actually named
6293 something starting with __ and the normal name is an alias. */
6294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6302 if { (eval echo configure
:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6304 eval "ac_cv_func_$ac_func=yes"
6306 echo "configure: failed program was:" >&5
6307 cat conftest.
$ac_ext >&5
6309 eval "ac_cv_func_$ac_func=no"
6314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6315 echo "$ac_t""yes" 1>&6
6316 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6317 cat >> confdefs.h
<<EOF
6318 #define $ac_tr_func 1
6322 echo "$ac_t""no" 1>&6
6326 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_func" >&5
6330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 cat > conftest.
$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func(); below. */
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6346 /* The GNU C library defines this for functions which it implements
6347 to always fail with ENOSYS. Some functions are actually named
6348 something starting with __ and the normal name is an alias. */
6349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6357 if { (eval echo configure
:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6359 eval "ac_cv_func_$ac_func=yes"
6361 echo "configure: failed program was:" >&5
6362 cat conftest.
$ac_ext >&5
6364 eval "ac_cv_func_$ac_func=no"
6369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6371 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6372 cat >> confdefs.h
<<EOF
6373 #define $ac_tr_func 1
6377 echo "$ac_t""no" 1>&6
6381 for ac_func
in _write __write _fork __fork
6383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6384 echo "configure:6385: checking for $ac_func" >&5
6385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6388 cat > conftest.
$ac_ext <<EOF
6389 #line 6390 "configure"
6390 #include "confdefs.h"
6391 /* System header to define __stub macros and hopefully few prototypes,
6392 which can conflict with char $ac_func(); below. */
6394 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6401 /* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6412 if { (eval echo configure
:6413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6414 eval "ac_cv_func_$ac_func=yes"
6416 echo "configure: failed program was:" >&5
6417 cat conftest.
$ac_ext >&5
6419 eval "ac_cv_func_$ac_func=no"
6424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6426 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6427 cat >> confdefs.h
<<EOF
6428 #define $ac_tr_func 1
6432 echo "$ac_t""no" 1>&6
6436 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_func" >&5
6440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6443 cat > conftest.
$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6446 /* System header to define __stub macros and hopefully few prototypes,
6447 which can conflict with char $ac_func(); below. */
6449 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6456 /* The GNU C library defines this for functions which it implements
6457 to always fail with ENOSYS. Some functions are actually named
6458 something starting with __ and the normal name is an alias. */
6459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6467 if { (eval echo configure
:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6469 eval "ac_cv_func_$ac_func=yes"
6471 echo "configure: failed program was:" >&5
6472 cat conftest.
$ac_ext >&5
6474 eval "ac_cv_func_$ac_func=no"
6479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6480 echo "$ac_t""yes" 1>&6
6481 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6482 cat >> confdefs.h
<<EOF
6483 #define $ac_tr_func 1
6487 echo "$ac_t""no" 1>&6
6491 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6494 echo "configure:6495: checking for $ac_func" >&5
6495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6498 cat > conftest.
$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6501 /* System header to define __stub macros and hopefully few prototypes,
6502 which can conflict with char $ac_func(); below. */
6504 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6511 /* The GNU C library defines this for functions which it implements
6512 to always fail with ENOSYS. Some functions are actually named
6513 something starting with __ and the normal name is an alias. */
6514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6522 if { (eval echo configure
:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6524 eval "ac_cv_func_$ac_func=yes"
6526 echo "configure: failed program was:" >&5
6527 cat conftest.
$ac_ext >&5
6529 eval "ac_cv_func_$ac_func=no"
6534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6535 echo "$ac_t""yes" 1>&6
6536 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6537 cat >> confdefs.h
<<EOF
6538 #define $ac_tr_func 1
6542 echo "$ac_t""no" 1>&6
6546 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6549 echo "configure:6550: checking for $ac_func" >&5
6550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 cat > conftest.
$ac_ext <<EOF
6554 #line 6555 "configure"
6555 #include "confdefs.h"
6556 /* System header to define __stub macros and hopefully few prototypes,
6557 which can conflict with char $ac_func(); below. */
6559 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6566 /* The GNU C library defines this for functions which it implements
6567 to always fail with ENOSYS. Some functions are actually named
6568 something starting with __ and the normal name is an alias. */
6569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6577 if { (eval echo configure
:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6579 eval "ac_cv_func_$ac_func=yes"
6581 echo "configure: failed program was:" >&5
6582 cat conftest.
$ac_ext >&5
6584 eval "ac_cv_func_$ac_func=no"
6589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6590 echo "$ac_t""yes" 1>&6
6591 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6592 cat >> confdefs.h
<<EOF
6593 #define $ac_tr_func 1
6597 echo "$ac_t""no" 1>&6
6601 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6604 echo "configure:6605: checking for $ac_func" >&5
6605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 cat > conftest.
$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6611 /* System header to define __stub macros and hopefully few prototypes,
6612 which can conflict with char $ac_func(); below. */
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6621 /* The GNU C library defines this for functions which it implements
6622 to always fail with ENOSYS. Some functions are actually named
6623 something starting with __ and the normal name is an alias. */
6624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6632 if { (eval echo configure
:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6634 eval "ac_cv_func_$ac_func=yes"
6636 echo "configure: failed program was:" >&5
6637 cat conftest.
$ac_ext >&5
6639 eval "ac_cv_func_$ac_func=no"
6644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6645 echo "$ac_t""yes" 1>&6
6646 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6647 cat >> confdefs.h
<<EOF
6648 #define $ac_tr_func 1
6652 echo "$ac_t""no" 1>&6
6656 for ac_func
in open64 _open64 __open64 creat64
6658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6659 echo "configure:6660: checking for $ac_func" >&5
6660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6663 cat > conftest.
$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 /* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func(); below. */
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6676 /* The GNU C library defines this for functions which it implements
6677 to always fail with ENOSYS. Some functions are actually named
6678 something starting with __ and the normal name is an alias. */
6679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 if { (eval echo configure
:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6689 eval "ac_cv_func_$ac_func=yes"
6691 echo "configure: failed program was:" >&5
6692 cat conftest.
$ac_ext >&5
6694 eval "ac_cv_func_$ac_func=no"
6699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6702 cat >> confdefs.h
<<EOF
6703 #define $ac_tr_func 1
6707 echo "$ac_t""no" 1>&6
6713 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6716 if test x
$ac_cv_func_stat64 = xno
; then
6717 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6718 echo "configure:6719: checking for stat64 in <sys/stat.h>" >&5
6719 cat > conftest.
$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6723 #if defined(HAVE_UNISTD_H)
6726 #include <sys/stat.h>
6729 struct stat64 st64; exit(stat64(".",&st64));
6732 if { (eval echo configure
:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6734 ac_cv_func_stat64
=yes
6736 echo "configure: failed program was:" >&5
6737 cat conftest.
$ac_ext >&5
6740 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6741 if test x
$ac_cv_func_stat64 = xyes
; then
6742 cat >> confdefs.h
<<\EOF
6743 #define HAVE_STAT64 1
6749 if test x
$ac_cv_func_lstat64 = xno
; then
6750 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6751 echo "configure:6752: checking for lstat64 in <sys/stat.h>" >&5
6752 cat > conftest.
$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6756 #if defined(HAVE_UNISTD_H)
6759 #include <sys/stat.h>
6762 struct stat64 st64; exit(lstat64(".",&st64));
6765 if { (eval echo configure
:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6767 ac_cv_func_lstat64
=yes
6769 echo "configure: failed program was:" >&5
6770 cat conftest.
$ac_ext >&5
6773 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6774 if test x
$ac_cv_func_lstat64 = xyes
; then
6775 cat >> confdefs.h
<<\EOF
6776 #define HAVE_LSTAT64 1
6782 if test x
$ac_cv_func_fstat64 = xno
; then
6783 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6784 echo "configure:6785: checking for fstat64 in <sys/stat.h>" >&5
6785 cat > conftest.
$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6789 #if defined(HAVE_UNISTD_H)
6792 #include <sys/stat.h>
6795 struct stat64 st64; exit(fstat64(0,&st64));
6798 if { (eval echo configure
:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6800 ac_cv_func_fstat64
=yes
6802 echo "configure: failed program was:" >&5
6803 cat conftest.
$ac_ext >&5
6806 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6807 if test x
$ac_cv_func_fstat64 = xyes
; then
6808 cat >> confdefs.h
<<\EOF
6809 #define HAVE_FSTAT64 1
6816 # If no strcasecmp, check for it in some known places
6817 # It is in -lresolv on ReliantUNIX and UnixWare
6818 # -lresolve *must* follow -lnsl for name resolution to work properly
6821 if test x
$ac_cv_func_strcasecmp = xno
; then
6822 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6823 echo "configure:6824: checking for strcasecmp in -lresolv" >&5
6824 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 ac_save_LIBS
="$LIBS"
6829 LIBS
="-lresolv $LIBS"
6830 cat > conftest.
$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 /* Override any gcc2 internal prototype to avoid an error. */
6834 /* We use char because int might match the return type of a gcc2
6835 builtin and then its argument prototype would still apply. */
6842 if { (eval echo configure
:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6844 eval "ac_cv_lib_$ac_lib_var=yes"
6846 echo "configure: failed program was:" >&5
6847 cat conftest.
$ac_ext >&5
6849 eval "ac_cv_lib_$ac_lib_var=no"
6852 LIBS
="$ac_save_LIBS"
6855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6856 echo "$ac_t""yes" 1>&6
6857 LIBS
="$LIBS -lresolv"
6858 cat >> confdefs.h
<<\EOF
6859 #define HAVE_STRCASECMP 1
6863 echo "$ac_t""no" 1>&6
6869 # Check for the functions putprpwnam, set_auth_parameters,
6870 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6871 # Needed for OSF1 and HPUX.
6875 *-lsecurity*) for ac_func
in putprpwnam
6877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6878 echo "configure:6879: checking for $ac_func" >&5
6879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6882 cat > conftest.
$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6885 /* System header to define __stub macros and hopefully few prototypes,
6886 which can conflict with char $ac_func(); below. */
6888 /* Override any gcc2 internal prototype to avoid an error. */
6889 /* We use char because int might match the return type of a gcc2
6890 builtin and then its argument prototype would still apply. */
6895 /* The GNU C library defines this for functions which it implements
6896 to always fail with ENOSYS. Some functions are actually named
6897 something starting with __ and the normal name is an alias. */
6898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6906 if { (eval echo configure
:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6908 eval "ac_cv_func_$ac_func=yes"
6910 echo "configure: failed program was:" >&5
6911 cat conftest.
$ac_ext >&5
6913 eval "ac_cv_func_$ac_func=no"
6918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6919 echo "$ac_t""yes" 1>&6
6920 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6921 cat >> confdefs.h
<<EOF
6922 #define $ac_tr_func 1
6926 echo "$ac_t""no" 1>&6
6930 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6931 echo "configure:6932: checking for putprpwnam in -lsecurity" >&5
6932 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6934 echo $ac_n "(cached) $ac_c" 1>&6
6936 ac_save_LIBS
="$LIBS"
6937 LIBS
="-lsecurity $LIBS"
6938 cat > conftest.
$ac_ext <<EOF
6939 #line 6940 "configure"
6940 #include "confdefs.h"
6941 /* Override any gcc2 internal prototype to avoid an error. */
6942 /* We use char because int might match the return type of a gcc2
6943 builtin and then its argument prototype would still apply. */
6950 if { (eval echo configure
:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6952 eval "ac_cv_lib_$ac_lib_var=yes"
6954 echo "configure: failed program was:" >&5
6955 cat conftest.
$ac_ext >&5
6957 eval "ac_cv_lib_$ac_lib_var=no"
6960 LIBS
="$ac_save_LIBS"
6963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6964 echo "$ac_t""yes" 1>&6
6965 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6967 cat >> confdefs.h
<<EOF
6968 #define $ac_tr_lib 1
6971 LIBS
="-lsecurity $LIBS"
6974 echo "$ac_t""no" 1>&6
6977 for ac_func
in putprpwnam
6979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6980 echo "configure:6981: checking for $ac_func" >&5
6981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6984 cat > conftest.
$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6987 /* System header to define __stub macros and hopefully few prototypes,
6988 which can conflict with char $ac_func(); below. */
6990 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6997 /* The GNU C library defines this for functions which it implements
6998 to always fail with ENOSYS. Some functions are actually named
6999 something starting with __ and the normal name is an alias. */
7000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7008 if { (eval echo configure
:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7010 eval "ac_cv_func_$ac_func=yes"
7012 echo "configure: failed program was:" >&5
7013 cat conftest.
$ac_ext >&5
7015 eval "ac_cv_func_$ac_func=no"
7020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7021 echo "$ac_t""yes" 1>&6
7022 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7023 cat >> confdefs.h
<<EOF
7024 #define $ac_tr_func 1
7028 echo "$ac_t""no" 1>&6
7036 *-lsec*) for ac_func
in putprpwnam
7038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7039 echo "configure:7040: checking for $ac_func" >&5
7040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7043 cat > conftest.
$ac_ext <<EOF
7044 #line 7045 "configure"
7045 #include "confdefs.h"
7046 /* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char $ac_func(); below. */
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7056 /* The GNU C library defines this for functions which it implements
7057 to always fail with ENOSYS. Some functions are actually named
7058 something starting with __ and the normal name is an alias. */
7059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7067 if { (eval echo configure
:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7069 eval "ac_cv_func_$ac_func=yes"
7071 echo "configure: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7074 eval "ac_cv_func_$ac_func=no"
7079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7082 cat >> confdefs.h
<<EOF
7083 #define $ac_tr_func 1
7087 echo "$ac_t""no" 1>&6
7091 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7092 echo "configure:7093: checking for putprpwnam in -lsec" >&5
7093 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7097 ac_save_LIBS
="$LIBS"
7099 cat > conftest.
$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7102 /* Override any gcc2 internal prototype to avoid an error. */
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7111 if { (eval echo configure
:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7113 eval "ac_cv_lib_$ac_lib_var=yes"
7115 echo "configure: failed program was:" >&5
7116 cat conftest.
$ac_ext >&5
7118 eval "ac_cv_lib_$ac_lib_var=no"
7121 LIBS
="$ac_save_LIBS"
7124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7128 cat >> confdefs.h
<<EOF
7129 #define $ac_tr_lib 1
7135 echo "$ac_t""no" 1>&6
7138 for ac_func
in putprpwnam
7140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7141 echo "configure:7142: checking for $ac_func" >&5
7142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7145 cat > conftest.
$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* System header to define __stub macros and hopefully few prototypes,
7149 which can conflict with char $ac_func(); below. */
7151 /* Override any gcc2 internal prototype to avoid an error. */
7152 /* We use char because int might match the return type of a gcc2
7153 builtin and then its argument prototype would still apply. */
7158 /* The GNU C library defines this for functions which it implements
7159 to always fail with ENOSYS. Some functions are actually named
7160 something starting with __ and the normal name is an alias. */
7161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7169 if { (eval echo configure
:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7171 eval "ac_cv_func_$ac_func=yes"
7173 echo "configure: failed program was:" >&5
7174 cat conftest.
$ac_ext >&5
7176 eval "ac_cv_func_$ac_func=no"
7181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7182 echo "$ac_t""yes" 1>&6
7183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7184 cat >> confdefs.h
<<EOF
7185 #define $ac_tr_func 1
7189 echo "$ac_t""no" 1>&6
7198 *-lsecurity*) for ac_func
in set_auth_parameters
7200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7201 echo "configure:7202: checking for $ac_func" >&5
7202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7205 cat > conftest.
$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 /* System header to define __stub macros and hopefully few prototypes,
7209 which can conflict with char $ac_func(); below. */
7211 /* Override any gcc2 internal prototype to avoid an error. */
7212 /* We use char because int might match the return type of a gcc2
7213 builtin and then its argument prototype would still apply. */
7218 /* The GNU C library defines this for functions which it implements
7219 to always fail with ENOSYS. Some functions are actually named
7220 something starting with __ and the normal name is an alias. */
7221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7229 if { (eval echo configure
:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7231 eval "ac_cv_func_$ac_func=yes"
7233 echo "configure: failed program was:" >&5
7234 cat conftest.
$ac_ext >&5
7236 eval "ac_cv_func_$ac_func=no"
7241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7243 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7244 cat >> confdefs.h
<<EOF
7245 #define $ac_tr_func 1
7249 echo "$ac_t""no" 1>&6
7253 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7254 echo "configure:7255: checking for set_auth_parameters in -lsecurity" >&5
7255 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7257 echo $ac_n "(cached) $ac_c" 1>&6
7259 ac_save_LIBS
="$LIBS"
7260 LIBS
="-lsecurity $LIBS"
7261 cat > conftest.
$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 /* Override any gcc2 internal prototype to avoid an error. */
7265 /* We use char because int might match the return type of a gcc2
7266 builtin and then its argument prototype would still apply. */
7267 char set_auth_parameters();
7270 set_auth_parameters()
7273 if { (eval echo configure
:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7275 eval "ac_cv_lib_$ac_lib_var=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.
$ac_ext >&5
7280 eval "ac_cv_lib_$ac_lib_var=no"
7283 LIBS
="$ac_save_LIBS"
7286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7290 cat >> confdefs.h
<<EOF
7291 #define $ac_tr_lib 1
7294 LIBS
="-lsecurity $LIBS"
7297 echo "$ac_t""no" 1>&6
7300 for ac_func
in set_auth_parameters
7302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7303 echo "configure:7304: checking for $ac_func" >&5
7304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 cat > conftest.
$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7310 /* System header to define __stub macros and hopefully few prototypes,
7311 which can conflict with char $ac_func(); below. */
7313 /* Override any gcc2 internal prototype to avoid an error. */
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7320 /* The GNU C library defines this for functions which it implements
7321 to always fail with ENOSYS. Some functions are actually named
7322 something starting with __ and the normal name is an alias. */
7323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7331 if { (eval echo configure
:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7333 eval "ac_cv_func_$ac_func=yes"
7335 echo "configure: failed program was:" >&5
7336 cat conftest.
$ac_ext >&5
7338 eval "ac_cv_func_$ac_func=no"
7343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7344 echo "$ac_t""yes" 1>&6
7345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7346 cat >> confdefs.h
<<EOF
7347 #define $ac_tr_func 1
7351 echo "$ac_t""no" 1>&6
7359 *-lsec*) for ac_func
in set_auth_parameters
7361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7362 echo "configure:7363: checking for $ac_func" >&5
7363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7364 echo $ac_n "(cached) $ac_c" 1>&6
7366 cat > conftest.
$ac_ext <<EOF
7367 #line 7368 "configure"
7368 #include "confdefs.h"
7369 /* System header to define __stub macros and hopefully few prototypes,
7370 which can conflict with char $ac_func(); below. */
7372 /* Override any gcc2 internal prototype to avoid an error. */
7373 /* We use char because int might match the return type of a gcc2
7374 builtin and then its argument prototype would still apply. */
7379 /* The GNU C library defines this for functions which it implements
7380 to always fail with ENOSYS. Some functions are actually named
7381 something starting with __ and the normal name is an alias. */
7382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7390 if { (eval echo configure
:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7392 eval "ac_cv_func_$ac_func=yes"
7394 echo "configure: failed program was:" >&5
7395 cat conftest.
$ac_ext >&5
7397 eval "ac_cv_func_$ac_func=no"
7402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7403 echo "$ac_t""yes" 1>&6
7404 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7405 cat >> confdefs.h
<<EOF
7406 #define $ac_tr_func 1
7410 echo "$ac_t""no" 1>&6
7414 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7415 echo "configure:7416: checking for set_auth_parameters in -lsec" >&5
7416 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7420 ac_save_LIBS
="$LIBS"
7422 cat > conftest.
$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7425 /* Override any gcc2 internal prototype to avoid an error. */
7426 /* We use char because int might match the return type of a gcc2
7427 builtin and then its argument prototype would still apply. */
7428 char set_auth_parameters();
7431 set_auth_parameters()
7434 if { (eval echo configure
:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7436 eval "ac_cv_lib_$ac_lib_var=yes"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.
$ac_ext >&5
7441 eval "ac_cv_lib_$ac_lib_var=no"
7444 LIBS
="$ac_save_LIBS"
7447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7448 echo "$ac_t""yes" 1>&6
7449 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7451 cat >> confdefs.h
<<EOF
7452 #define $ac_tr_lib 1
7458 echo "$ac_t""no" 1>&6
7461 for ac_func
in set_auth_parameters
7463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7464 echo "configure:7465: checking for $ac_func" >&5
7465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7468 cat > conftest.
$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* System header to define __stub macros and hopefully few prototypes,
7472 which can conflict with char $ac_func(); below. */
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 /* We use char because int might match the return type of a gcc2
7476 builtin and then its argument prototype would still apply. */
7481 /* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7492 if { (eval echo configure
:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7494 eval "ac_cv_func_$ac_func=yes"
7496 echo "configure: failed program was:" >&5
7497 cat conftest.
$ac_ext >&5
7499 eval "ac_cv_func_$ac_func=no"
7504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7505 echo "$ac_t""yes" 1>&6
7506 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7507 cat >> confdefs.h
<<EOF
7508 #define $ac_tr_func 1
7512 echo "$ac_t""no" 1>&6
7520 # UnixWare 7.x has its getspnam in -lgen
7522 *-lgen*) for ac_func
in getspnam
7524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_func" >&5
7526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7529 cat > conftest.
$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func(); below. */
7535 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7553 if { (eval echo configure
:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7555 eval "ac_cv_func_$ac_func=yes"
7557 echo "configure: failed program was:" >&5
7558 cat conftest.
$ac_ext >&5
7560 eval "ac_cv_func_$ac_func=no"
7565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7568 cat >> confdefs.h
<<EOF
7569 #define $ac_tr_func 1
7573 echo "$ac_t""no" 1>&6
7577 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7578 echo "configure:7579: checking for getspnam in -lgen" >&5
7579 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7581 echo $ac_n "(cached) $ac_c" 1>&6
7583 ac_save_LIBS
="$LIBS"
7585 cat > conftest.
$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 /* Override any gcc2 internal prototype to avoid an error. */
7589 /* We use char because int might match the return type of a gcc2
7590 builtin and then its argument prototype would still apply. */
7597 if { (eval echo configure
:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7599 eval "ac_cv_lib_$ac_lib_var=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 eval "ac_cv_lib_$ac_lib_var=no"
7607 LIBS
="$ac_save_LIBS"
7610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7614 cat >> confdefs.h
<<EOF
7615 #define $ac_tr_lib 1
7621 echo "$ac_t""no" 1>&6
7624 for ac_func
in getspnam
7626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7627 echo "configure:7628: checking for $ac_func" >&5
7628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7631 cat > conftest.
$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 /* System header to define __stub macros and hopefully few prototypes,
7635 which can conflict with char $ac_func(); below. */
7637 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7644 /* The GNU C library defines this for functions which it implements
7645 to always fail with ENOSYS. Some functions are actually named
7646 something starting with __ and the normal name is an alias. */
7647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7655 if { (eval echo configure
:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7657 eval "ac_cv_func_$ac_func=yes"
7659 echo "configure: failed program was:" >&5
7660 cat conftest.
$ac_ext >&5
7662 eval "ac_cv_func_$ac_func=no"
7667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7669 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7670 cat >> confdefs.h
<<EOF
7671 #define $ac_tr_func 1
7675 echo "$ac_t""no" 1>&6
7684 *-lsecurity*) for ac_func
in getspnam
7686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7687 echo "configure:7688: checking for $ac_func" >&5
7688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7691 cat > conftest.
$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char $ac_func(); below. */
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7704 /* The GNU C library defines this for functions which it implements
7705 to always fail with ENOSYS. Some functions are actually named
7706 something starting with __ and the normal name is an alias. */
7707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7715 if { (eval echo configure
:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7717 eval "ac_cv_func_$ac_func=yes"
7719 echo "configure: failed program was:" >&5
7720 cat conftest.
$ac_ext >&5
7722 eval "ac_cv_func_$ac_func=no"
7727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7729 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7730 cat >> confdefs.h
<<EOF
7731 #define $ac_tr_func 1
7735 echo "$ac_t""no" 1>&6
7739 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7740 echo "configure:7741: checking for getspnam in -lsecurity" >&5
7741 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7745 ac_save_LIBS
="$LIBS"
7746 LIBS
="-lsecurity $LIBS"
7747 cat > conftest.
$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 /* Override any gcc2 internal prototype to avoid an error. */
7751 /* We use char because int might match the return type of a gcc2
7752 builtin and then its argument prototype would still apply. */
7759 if { (eval echo configure
:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7761 eval "ac_cv_lib_$ac_lib_var=yes"
7763 echo "configure: failed program was:" >&5
7764 cat conftest.
$ac_ext >&5
7766 eval "ac_cv_lib_$ac_lib_var=no"
7769 LIBS
="$ac_save_LIBS"
7772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7773 echo "$ac_t""yes" 1>&6
7774 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7775 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7776 cat >> confdefs.h
<<EOF
7777 #define $ac_tr_lib 1
7780 LIBS
="-lsecurity $LIBS"
7783 echo "$ac_t""no" 1>&6
7786 for ac_func
in getspnam
7788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7789 echo "configure:7790: checking for $ac_func" >&5
7790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 cat > conftest.
$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* System header to define __stub macros and hopefully few prototypes,
7797 which can conflict with char $ac_func(); below. */
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7806 /* The GNU C library defines this for functions which it implements
7807 to always fail with ENOSYS. Some functions are actually named
7808 something starting with __ and the normal name is an alias. */
7809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7817 if { (eval echo configure
:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7819 eval "ac_cv_func_$ac_func=yes"
7821 echo "configure: failed program was:" >&5
7822 cat conftest.
$ac_ext >&5
7824 eval "ac_cv_func_$ac_func=no"
7829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7830 echo "$ac_t""yes" 1>&6
7831 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7832 cat >> confdefs.h
<<EOF
7833 #define $ac_tr_func 1
7837 echo "$ac_t""no" 1>&6
7845 *-lsec*) for ac_func
in getspnam
7847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_func" >&5
7849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7852 cat > conftest.
$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func(); below. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7865 /* The GNU C library defines this for functions which it implements
7866 to always fail with ENOSYS. Some functions are actually named
7867 something starting with __ and the normal name is an alias. */
7868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7876 if { (eval echo configure
:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7878 eval "ac_cv_func_$ac_func=yes"
7880 echo "configure: failed program was:" >&5
7881 cat conftest.
$ac_ext >&5
7883 eval "ac_cv_func_$ac_func=no"
7888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7891 cat >> confdefs.h
<<EOF
7892 #define $ac_tr_func 1
7896 echo "$ac_t""no" 1>&6
7900 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7901 echo "configure:7902: checking for getspnam in -lsec" >&5
7902 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7906 ac_save_LIBS
="$LIBS"
7908 cat > conftest.
$ac_ext <<EOF
7909 #line 7910 "configure"
7910 #include "confdefs.h"
7911 /* Override any gcc2 internal prototype to avoid an error. */
7912 /* We use char because int might match the return type of a gcc2
7913 builtin and then its argument prototype would still apply. */
7920 if { (eval echo configure
:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7922 eval "ac_cv_lib_$ac_lib_var=yes"
7924 echo "configure: failed program was:" >&5
7925 cat conftest.
$ac_ext >&5
7927 eval "ac_cv_lib_$ac_lib_var=no"
7930 LIBS
="$ac_save_LIBS"
7933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7934 echo "$ac_t""yes" 1>&6
7935 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7936 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7937 cat >> confdefs.h
<<EOF
7938 #define $ac_tr_lib 1
7944 echo "$ac_t""no" 1>&6
7947 for ac_func
in getspnam
7949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7950 echo "configure:7951: checking for $ac_func" >&5
7951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7954 cat > conftest.
$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 /* System header to define __stub macros and hopefully few prototypes,
7958 which can conflict with char $ac_func(); below. */
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 /* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7967 /* The GNU C library defines this for functions which it implements
7968 to always fail with ENOSYS. Some functions are actually named
7969 something starting with __ and the normal name is an alias. */
7970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7978 if { (eval echo configure
:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7980 eval "ac_cv_func_$ac_func=yes"
7982 echo "configure: failed program was:" >&5
7983 cat conftest.
$ac_ext >&5
7985 eval "ac_cv_func_$ac_func=no"
7990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7991 echo "$ac_t""yes" 1>&6
7992 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7993 cat >> confdefs.h
<<EOF
7994 #define $ac_tr_func 1
7998 echo "$ac_t""no" 1>&6
8007 *-lsecurity*) for ac_func
in bigcrypt
8009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_func" >&5
8011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8014 cat > conftest.
$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 /* System header to define __stub macros and hopefully few prototypes,
8018 which can conflict with char $ac_func(); below. */
8020 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8027 /* The GNU C library defines this for functions which it implements
8028 to always fail with ENOSYS. Some functions are actually named
8029 something starting with __ and the normal name is an alias. */
8030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8038 if { (eval echo configure
:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8040 eval "ac_cv_func_$ac_func=yes"
8042 echo "configure: failed program was:" >&5
8043 cat conftest.
$ac_ext >&5
8045 eval "ac_cv_func_$ac_func=no"
8050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8051 echo "$ac_t""yes" 1>&6
8052 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8053 cat >> confdefs.h
<<EOF
8054 #define $ac_tr_func 1
8058 echo "$ac_t""no" 1>&6
8062 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8063 echo "configure:8064: checking for bigcrypt in -lsecurity" >&5
8064 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8066 echo $ac_n "(cached) $ac_c" 1>&6
8068 ac_save_LIBS
="$LIBS"
8069 LIBS
="-lsecurity $LIBS"
8070 cat > conftest.
$ac_ext <<EOF
8071 #line 8072 "configure"
8072 #include "confdefs.h"
8073 /* Override any gcc2 internal prototype to avoid an error. */
8074 /* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8082 if { (eval echo configure
:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8084 eval "ac_cv_lib_$ac_lib_var=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8089 eval "ac_cv_lib_$ac_lib_var=no"
8092 LIBS
="$ac_save_LIBS"
8095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8096 echo "$ac_t""yes" 1>&6
8097 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8099 cat >> confdefs.h
<<EOF
8100 #define $ac_tr_lib 1
8103 LIBS
="-lsecurity $LIBS"
8106 echo "$ac_t""no" 1>&6
8109 for ac_func
in bigcrypt
8111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8112 echo "configure:8113: checking for $ac_func" >&5
8113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8114 echo $ac_n "(cached) $ac_c" 1>&6
8116 cat > conftest.
$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8119 /* System header to define __stub macros and hopefully few prototypes,
8120 which can conflict with char $ac_func(); below. */
8122 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8129 /* The GNU C library defines this for functions which it implements
8130 to always fail with ENOSYS. Some functions are actually named
8131 something starting with __ and the normal name is an alias. */
8132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8140 if { (eval echo configure
:8141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8142 eval "ac_cv_func_$ac_func=yes"
8144 echo "configure: failed program was:" >&5
8145 cat conftest.
$ac_ext >&5
8147 eval "ac_cv_func_$ac_func=no"
8152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8155 cat >> confdefs.h
<<EOF
8156 #define $ac_tr_func 1
8160 echo "$ac_t""no" 1>&6
8168 *-lsec*) for ac_func
in bigcrypt
8170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8171 echo "configure:8172: checking for $ac_func" >&5
8172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8175 cat > conftest.
$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 /* System header to define __stub macros and hopefully few prototypes,
8179 which can conflict with char $ac_func(); below. */
8181 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8188 /* The GNU C library defines this for functions which it implements
8189 to always fail with ENOSYS. Some functions are actually named
8190 something starting with __ and the normal name is an alias. */
8191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8199 if { (eval echo configure
:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8201 eval "ac_cv_func_$ac_func=yes"
8203 echo "configure: failed program was:" >&5
8204 cat conftest.
$ac_ext >&5
8206 eval "ac_cv_func_$ac_func=no"
8211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8212 echo "$ac_t""yes" 1>&6
8213 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8214 cat >> confdefs.h
<<EOF
8215 #define $ac_tr_func 1
8219 echo "$ac_t""no" 1>&6
8223 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8224 echo "configure:8225: checking for bigcrypt in -lsec" >&5
8225 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 ac_save_LIBS
="$LIBS"
8231 cat > conftest.
$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8234 /* Override any gcc2 internal prototype to avoid an error. */
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8243 if { (eval echo configure
:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8245 eval "ac_cv_lib_$ac_lib_var=yes"
8247 echo "configure: failed program was:" >&5
8248 cat conftest.
$ac_ext >&5
8250 eval "ac_cv_lib_$ac_lib_var=no"
8253 LIBS
="$ac_save_LIBS"
8256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8257 echo "$ac_t""yes" 1>&6
8258 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8259 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8260 cat >> confdefs.h
<<EOF
8261 #define $ac_tr_lib 1
8267 echo "$ac_t""no" 1>&6
8270 for ac_func
in bigcrypt
8272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8273 echo "configure:8274: checking for $ac_func" >&5
8274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8275 echo $ac_n "(cached) $ac_c" 1>&6
8277 cat > conftest.
$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8280 /* System header to define __stub macros and hopefully few prototypes,
8281 which can conflict with char $ac_func(); below. */
8283 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8290 /* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
8293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8301 if { (eval echo configure
:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8303 eval "ac_cv_func_$ac_func=yes"
8305 echo "configure: failed program was:" >&5
8306 cat conftest.
$ac_ext >&5
8308 eval "ac_cv_func_$ac_func=no"
8313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8314 echo "$ac_t""yes" 1>&6
8315 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8316 cat >> confdefs.h
<<EOF
8317 #define $ac_tr_func 1
8321 echo "$ac_t""no" 1>&6
8330 *-lsecurity*) for ac_func
in getprpwnam
8332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_func" >&5
8334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8337 cat > conftest.
$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func(); below. */
8343 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8361 if { (eval echo configure
:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8363 eval "ac_cv_func_$ac_func=yes"
8365 echo "configure: failed program was:" >&5
8366 cat conftest.
$ac_ext >&5
8368 eval "ac_cv_func_$ac_func=no"
8373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8376 cat >> confdefs.h
<<EOF
8377 #define $ac_tr_func 1
8381 echo "$ac_t""no" 1>&6
8385 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8386 echo "configure:8387: checking for getprpwnam in -lsecurity" >&5
8387 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8391 ac_save_LIBS
="$LIBS"
8392 LIBS
="-lsecurity $LIBS"
8393 cat > conftest.
$ac_ext <<EOF
8394 #line 8395 "configure"
8395 #include "confdefs.h"
8396 /* Override any gcc2 internal prototype to avoid an error. */
8397 /* We use char because int might match the return type of a gcc2
8398 builtin and then its argument prototype would still apply. */
8405 if { (eval echo configure
:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8407 eval "ac_cv_lib_$ac_lib_var=yes"
8409 echo "configure: failed program was:" >&5
8410 cat conftest.
$ac_ext >&5
8412 eval "ac_cv_lib_$ac_lib_var=no"
8415 LIBS
="$ac_save_LIBS"
8418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8419 echo "$ac_t""yes" 1>&6
8420 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8421 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8422 cat >> confdefs.h
<<EOF
8423 #define $ac_tr_lib 1
8426 LIBS
="-lsecurity $LIBS"
8429 echo "$ac_t""no" 1>&6
8432 for ac_func
in getprpwnam
8434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8435 echo "configure:8436: checking for $ac_func" >&5
8436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8439 cat > conftest.
$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 /* System header to define __stub macros and hopefully few prototypes,
8443 which can conflict with char $ac_func(); below. */
8445 /* Override any gcc2 internal prototype to avoid an error. */
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8452 /* The GNU C library defines this for functions which it implements
8453 to always fail with ENOSYS. Some functions are actually named
8454 something starting with __ and the normal name is an alias. */
8455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8463 if { (eval echo configure
:8464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8465 eval "ac_cv_func_$ac_func=yes"
8467 echo "configure: failed program was:" >&5
8468 cat conftest.
$ac_ext >&5
8470 eval "ac_cv_func_$ac_func=no"
8475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8478 cat >> confdefs.h
<<EOF
8479 #define $ac_tr_func 1
8483 echo "$ac_t""no" 1>&6
8491 *-lsec*) for ac_func
in getprpwnam
8493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8494 echo "configure:8495: checking for $ac_func" >&5
8495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8498 cat > conftest.
$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 /* System header to define __stub macros and hopefully few prototypes,
8502 which can conflict with char $ac_func(); below. */
8504 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8511 /* The GNU C library defines this for functions which it implements
8512 to always fail with ENOSYS. Some functions are actually named
8513 something starting with __ and the normal name is an alias. */
8514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8522 if { (eval echo configure
:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8524 eval "ac_cv_func_$ac_func=yes"
8526 echo "configure: failed program was:" >&5
8527 cat conftest.
$ac_ext >&5
8529 eval "ac_cv_func_$ac_func=no"
8534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8535 echo "$ac_t""yes" 1>&6
8536 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8537 cat >> confdefs.h
<<EOF
8538 #define $ac_tr_func 1
8542 echo "$ac_t""no" 1>&6
8546 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8547 echo "configure:8548: checking for getprpwnam in -lsec" >&5
8548 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8552 ac_save_LIBS
="$LIBS"
8554 cat > conftest.
$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8566 if { (eval echo configure
:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8568 eval "ac_cv_lib_$ac_lib_var=yes"
8570 echo "configure: failed program was:" >&5
8571 cat conftest.
$ac_ext >&5
8573 eval "ac_cv_lib_$ac_lib_var=no"
8576 LIBS
="$ac_save_LIBS"
8579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8580 echo "$ac_t""yes" 1>&6
8581 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8582 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8583 cat >> confdefs.h
<<EOF
8584 #define $ac_tr_lib 1
8590 echo "$ac_t""no" 1>&6
8593 for ac_func
in getprpwnam
8595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8596 echo "configure:8597: checking for $ac_func" >&5
8597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8598 echo $ac_n "(cached) $ac_c" 1>&6
8600 cat > conftest.
$ac_ext <<EOF
8601 #line 8602 "configure"
8602 #include "confdefs.h"
8603 /* System header to define __stub macros and hopefully few prototypes,
8604 which can conflict with char $ac_func(); below. */
8606 /* Override any gcc2 internal prototype to avoid an error. */
8607 /* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8613 /* The GNU C library defines this for functions which it implements
8614 to always fail with ENOSYS. Some functions are actually named
8615 something starting with __ and the normal name is an alias. */
8616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8624 if { (eval echo configure
:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8626 eval "ac_cv_func_$ac_func=yes"
8628 echo "configure: failed program was:" >&5
8629 cat conftest.
$ac_ext >&5
8631 eval "ac_cv_func_$ac_func=no"
8636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8639 cat >> confdefs.h
<<EOF
8640 #define $ac_tr_func 1
8644 echo "$ac_t""no" 1>&6
8652 # this bit needs to be modified for each OS that is suported by
8653 # smbwrapper. You need to specify how to created a shared library and
8654 # how to compile C code to produce PIC object files
8656 # these are the defaults, good for lots of systems
8664 # Assume non-shared by default and override below
8666 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8667 echo "configure:8668: checking ability to build shared libraries" >&5
8669 # and these are for particular systems
8671 *linux
*) cat >> confdefs.h
<<\EOF
8677 DYNEXP
="-Wl,--export-dynamic"
8679 SONAMEFLAG
="-Wl,-soname="
8680 cat >> confdefs.h
<<\EOF
8681 #define STAT_ST_BLOCKSIZE 512
8685 *solaris
*) cat >> confdefs.h
<<\EOF
8692 if test "${GCC}" = "yes"; then
8694 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8699 ## ${CFLAGS} added for building 64-bit shared
8700 ## libs using Sun's Compiler
8701 LDSHFLAGS
="-G \${CFLAGS}"
8705 cat >> confdefs.h
<<\EOF
8706 #define STAT_ST_BLOCKSIZE 512
8710 *sunos
*) cat >> confdefs.h
<<\EOF
8716 SONAMEFLAG
="-Wl,-h,"
8717 PICFLAG
="-KPIC" # Is this correct for SunOS
8719 *bsd
*) BLDSHARED
="true"
8721 DYNEXP
="-Wl,-Bdynamic"
8722 SONAMEFLAG
="-Wl,-soname,"
8724 cat >> confdefs.h
<<\EOF
8725 #define STAT_ST_BLOCKSIZE 512
8729 *irix
*) cat >> confdefs.h
<<\EOF
8734 *irix6
*) cat >> confdefs.h
<<\EOF
8740 ATTEMPT_WRAP32_BUILD
=yes
8742 LDSHFLAGS
="-set_version sgi1.0 -shared"
8743 SONAMEFLAG
="-soname "
8745 if test "${GCC}" = "yes"; then
8750 cat >> confdefs.h
<<\EOF
8751 #define STAT_ST_BLOCKSIZE 512
8755 *aix
*) cat >> confdefs.h
<<\EOF
8760 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8761 DYNEXP
="-Wl,-brtl,-bexpall"
8762 if test "${GCC}" = "yes"; then
8765 PICFLAG
="-O2 -qmaxmem=6000"
8766 ## for funky AIX compiler using strncpy()
8767 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8770 cat >> confdefs.h
<<\EOF
8771 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8775 *hpux
*) cat >> confdefs.h
<<\EOF
8780 # Use special PIC flags for the native HP-UX compiler.
8781 if test $ac_cv_prog_cc_Ae = yes; then
8784 LDSHFLAGS
="-B symbolic -b -z"
8789 cat >> confdefs.h
<<\EOF
8790 #define STAT_ST_BLOCKSIZE 8192
8794 *qnx
*) cat >> confdefs.h
<<\EOF
8798 *osf
*) cat >> confdefs.h
<<\EOF
8804 SONAMEFLAG
="-Wl,-soname,"
8807 *sco
*) cat >> confdefs.h
<<\EOF
8811 *unixware
*) cat >> confdefs.h
<<\EOF
8817 SONAMEFLAG
="-Wl,-soname,"
8820 *next2
*) cat >> confdefs.h
<<\EOF
8824 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8825 set dummy
groff; ac_word
=$2
8826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8827 echo "configure:8828: checking for $ac_word" >&5
8828 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8829 echo $ac_n "(cached) $ac_c" 1>&6
8831 if test -n "$ROFF"; then
8832 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8836 for ac_dir
in $ac_dummy; do
8837 test -z "$ac_dir" && ac_dir
=.
8838 if test -f $ac_dir/$ac_word; then
8839 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8846 ROFF
="$ac_cv_prog_ROFF"
8847 if test -n "$ROFF"; then
8848 echo "$ac_t""$ROFF" 1>&6
8850 echo "$ac_t""no" 1>&6
8855 *-univel-*) if test "$GCC" != yes ; then
8856 cat >> confdefs.h
<<\EOF
8857 #define HAVE_MEMSET 1
8864 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8865 #define RELIANTUNIX 1
8871 if test "$GCC" != yes ; then
8872 cat >> confdefs.h
<<\EOF
8873 #define HAVE_MEMSET 1
8881 echo "$ac_t""$BLDSHARED" 1>&6
8882 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8883 echo "configure:8884: checking linker flags for shared libraries" >&5
8884 echo "$ac_t""$LDSHFLAGS" 1>&6
8885 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8886 echo "configure:8887: checking compiler flags for position-independent code" >&5
8887 echo "$ac_t""$PICFLAGS" 1>&6
8889 # try to work out how to produce pic code with this compiler
8890 if test x
$PICFLAG = x
; then
8891 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8892 echo "configure:8893: checking whether ${CC-cc} accepts -fpic" >&5
8893 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8896 echo 'void f(){}' > conftest.c
8897 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8898 ac_cv_prog_cc_fpic
=yes
8900 ac_cv_prog_cc_fpic
=no
8906 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8907 if test $ac_cv_prog_cc_fpic = yes; then
8911 if test x
$PICFLAG = x
; then
8912 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8913 echo "configure:8914: checking whether ${CC-cc} accepts -KPIC" >&5
8914 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8917 echo 'void f(){}' > conftest.c
8918 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8919 ac_cv_prog_cc_KPIC
=yes
8921 ac_cv_prog_cc_KPIC
=no
8927 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8928 if test $ac_cv_prog_cc_KPIC = yes; then
8932 if test x
$PICFLAG = x
; then
8933 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8934 echo "configure:8935: checking whether ${CC-cc} accepts -Kpic" >&5
8935 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8938 echo 'void f(){}' > conftest.c
8939 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8940 ac_cv_prog_cc_Kpic
=yes
8942 ac_cv_prog_cc_Kpic
=no
8948 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8949 if test $ac_cv_prog_cc_Kpic = yes; then
8956 echo $ac_n "checking for long long""... $ac_c" 1>&6
8957 echo "configure:8958: checking for long long" >&5
8958 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8959 echo $ac_n "(cached) $ac_c" 1>&6
8962 if test "$cross_compiling" = yes; then
8963 samba_cv_have_longlong
=cross
8965 cat > conftest.
$ac_ext <<EOF
8966 #line 8967 "configure"
8967 #include "confdefs.h"
8969 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8971 if { (eval echo configure
:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8973 samba_cv_have_longlong
=yes
8975 echo "configure: failed program was:" >&5
8976 cat conftest.
$ac_ext >&5
8978 samba_cv_have_longlong
=no
8985 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8986 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8987 cat >> confdefs.h
<<\EOF
8988 #define HAVE_LONGLONG 1
8994 # Check if the compiler supports the LL prefix on long long integers.
8997 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8998 echo "configure:8999: checking for LL suffix on long long integers" >&5
8999 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9003 cat > conftest.
$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9008 long long i = 0x8000000000LL
9011 if { (eval echo configure
:9012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9013 samba_cv_compiler_supports_ll
=yes
9015 echo "configure: failed program was:" >&5
9016 cat conftest.
$ac_ext >&5
9018 samba_cv_compiler_supports_ll
=no
9023 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9024 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9025 cat >> confdefs.h
<<\EOF
9026 #define COMPILER_SUPPORTS_LL 1
9032 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9033 echo "configure:9034: checking for 64 bit off_t" >&5
9034 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9038 if test "$cross_compiling" = yes; then
9039 samba_cv_SIZEOF_OFF_T
=cross
9041 cat > conftest.
$ac_ext <<EOF
9042 #line 9043 "configure"
9043 #include "confdefs.h"
9045 #include <sys/stat.h>
9046 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9048 if { (eval echo configure
:9049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9050 samba_cv_SIZEOF_OFF_T
=yes
9052 echo "configure: failed program was:" >&5
9053 cat conftest.
$ac_ext >&5
9055 samba_cv_SIZEOF_OFF_T
=no
9062 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9063 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9064 cat >> confdefs.h
<<\EOF
9065 #define SIZEOF_OFF_T 8
9070 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9071 echo "configure:9072: checking for off64_t" >&5
9072 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9076 if test "$cross_compiling" = yes; then
9077 samba_cv_HAVE_OFF64_T
=cross
9079 cat > conftest.
$ac_ext <<EOF
9080 #line 9081 "configure"
9081 #include "confdefs.h"
9083 #if defined(HAVE_UNISTD_H)
9087 #include <sys/stat.h>
9088 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9090 if { (eval echo configure
:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9092 samba_cv_HAVE_OFF64_T
=yes
9094 echo "configure: failed program was:" >&5
9095 cat conftest.
$ac_ext >&5
9097 samba_cv_HAVE_OFF64_T
=no
9104 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9105 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9106 cat >> confdefs.h
<<\EOF
9107 #define HAVE_OFF64_T 1
9112 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9113 echo "configure:9114: checking for 64 bit ino_t" >&5
9114 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9118 if test "$cross_compiling" = yes; then
9119 samba_cv_SIZEOF_INO_T
=cross
9121 cat > conftest.
$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9125 #include <sys/stat.h>
9126 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9128 if { (eval echo configure
:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9130 samba_cv_SIZEOF_INO_T
=yes
9132 echo "configure: failed program was:" >&5
9133 cat conftest.
$ac_ext >&5
9135 samba_cv_SIZEOF_INO_T
=no
9142 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9143 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9144 cat >> confdefs.h
<<\EOF
9145 #define SIZEOF_INO_T 8
9150 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9151 echo "configure:9152: checking for ino64_t" >&5
9152 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9153 echo $ac_n "(cached) $ac_c" 1>&6
9156 if test "$cross_compiling" = yes; then
9157 samba_cv_HAVE_INO64_T
=cross
9159 cat > conftest.
$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9163 #if defined(HAVE_UNISTD_H)
9167 #include <sys/stat.h>
9168 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9170 if { (eval echo configure
:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9172 samba_cv_HAVE_INO64_T
=yes
9174 echo "configure: failed program was:" >&5
9175 cat conftest.
$ac_ext >&5
9177 samba_cv_HAVE_INO64_T
=no
9184 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9185 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9186 cat >> confdefs.h
<<\EOF
9187 #define HAVE_INO64_T 1
9192 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9193 echo "configure:9194: checking for dev64_t" >&5
9194 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9198 if test "$cross_compiling" = yes; then
9199 samba_cv_HAVE_DEV64_T
=cross
9201 cat > conftest.
$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9205 #if defined(HAVE_UNISTD_H)
9209 #include <sys/stat.h>
9210 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9212 if { (eval echo configure
:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9214 samba_cv_HAVE_DEV64_T
=yes
9216 echo "configure: failed program was:" >&5
9217 cat conftest.
$ac_ext >&5
9219 samba_cv_HAVE_DEV64_T
=no
9226 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9227 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9228 cat >> confdefs.h
<<\EOF
9229 #define HAVE_DEV64_T 1
9234 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9235 echo "configure:9236: checking for struct dirent64" >&5
9236 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9237 echo $ac_n "(cached) $ac_c" 1>&6
9240 cat > conftest.
$ac_ext <<EOF
9241 #line 9242 "configure"
9242 #include "confdefs.h"
9244 #if defined(HAVE_UNISTD_H)
9247 #include <sys/types.h>
9253 if { (eval echo configure
:9254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9255 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9257 echo "configure: failed program was:" >&5
9258 cat conftest.
$ac_ext >&5
9260 samba_cv_HAVE_STRUCT_DIRENT64
=no
9265 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9266 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9267 cat >> confdefs.h
<<\EOF
9268 #define HAVE_STRUCT_DIRENT64 1
9273 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9274 echo "configure:9275: checking for major macro" >&5
9275 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9279 if test "$cross_compiling" = yes; then
9280 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9282 cat > conftest.
$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9286 #if defined(HAVE_UNISTD_H)
9289 #include <sys/types.h>
9290 main() { dev_t dev; int i = major(dev); return 0; }
9292 if { (eval echo configure
:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9294 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9296 echo "configure: failed program was:" >&5
9297 cat conftest.
$ac_ext >&5
9299 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9306 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9307 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9308 cat >> confdefs.h
<<\EOF
9309 #define HAVE_DEVICE_MAJOR_FN 1
9314 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9315 echo "configure:9316: checking for minor macro" >&5
9316 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9317 echo $ac_n "(cached) $ac_c" 1>&6
9320 if test "$cross_compiling" = yes; then
9321 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9323 cat > conftest.
$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9327 #if defined(HAVE_UNISTD_H)
9330 #include <sys/types.h>
9331 main() { dev_t dev; int i = minor(dev); return 0; }
9333 if { (eval echo configure
:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9335 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9337 echo "configure: failed program was:" >&5
9338 cat conftest.
$ac_ext >&5
9340 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9347 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9348 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9349 cat >> confdefs.h
<<\EOF
9350 #define HAVE_DEVICE_MINOR_FN 1
9355 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9356 echo "configure:9357: checking for makedev macro" >&5
9357 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9361 if test "$cross_compiling" = yes; then
9362 samba_cv_HAVE_MAKEDEV_FN
=cross
9364 cat > conftest.
$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9368 #if defined(HAVE_UNISTD_H)
9371 #include <sys/types.h>
9372 main() { dev_t dev = makedev(1,2); return 0; }
9374 if { (eval echo configure
:9375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9376 samba_cv_HAVE_MAKEDEV_FN
=yes
9378 echo "configure: failed program was:" >&5
9379 cat conftest.
$ac_ext >&5
9381 samba_cv_HAVE_MAKEDEV_FN
=no
9388 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9389 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9390 cat >> confdefs.h
<<\EOF
9391 #define MAKEDEV_FN 1
9396 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9397 echo "configure:9398: checking for unsigned char" >&5
9398 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9402 if test "$cross_compiling" = yes; then
9403 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9405 cat > conftest.
$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9409 main() { char c; c=250; exit((c > 0)?0:1); }
9411 if { (eval echo configure
:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9413 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9415 echo "configure: failed program was:" >&5
9416 cat conftest.
$ac_ext >&5
9418 samba_cv_HAVE_UNSIGNED_CHAR
=no
9425 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9426 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9427 cat >> confdefs.h
<<\EOF
9428 #define HAVE_UNSIGNED_CHAR 1
9433 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9434 echo "configure:9435: checking for sin_len in sock" >&5
9435 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9439 cat > conftest.
$ac_ext <<EOF
9440 #line 9441 "configure"
9441 #include "confdefs.h"
9442 #include <sys/types.h>
9443 #include <sys/socket.h>
9444 #include <netinet/in.h>
9446 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9449 if { (eval echo configure
:9450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9451 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9453 echo "configure: failed program was:" >&5
9454 cat conftest.
$ac_ext >&5
9456 samba_cv_HAVE_SOCK_SIN_LEN
=no
9461 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9462 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9463 cat >> confdefs.h
<<\EOF
9464 #define HAVE_SOCK_SIN_LEN 1
9469 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9470 echo "configure:9471: checking whether seekdir returns void" >&5
9471 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9475 cat > conftest.
$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9478 #include <sys/types.h>
9480 void seekdir(DIR *d, long loc) { return; }
9485 if { (eval echo configure
:9486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9487 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9489 echo "configure: failed program was:" >&5
9490 cat conftest.
$ac_ext >&5
9492 samba_cv_SEEKDIR_RETURNS_VOID
=no
9497 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9498 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9499 cat >> confdefs.h
<<\EOF
9500 #define SEEKDIR_RETURNS_VOID 1
9505 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9506 echo "configure:9507: checking for __FILE__ macro" >&5
9507 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9511 cat > conftest.
$ac_ext <<EOF
9512 #line 9513 "configure"
9513 #include "confdefs.h"
9516 printf("%s\n", __FILE__);
9519 if { (eval echo configure
:9520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9521 samba_cv_HAVE_FILE_MACRO
=yes
9523 echo "configure: failed program was:" >&5
9524 cat conftest.
$ac_ext >&5
9526 samba_cv_HAVE_FILE_MACRO
=no
9531 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9532 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9533 cat >> confdefs.h
<<\EOF
9534 #define HAVE_FILE_MACRO 1
9539 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9540 echo "configure:9541: checking for __FUNCTION__ macro" >&5
9541 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9545 cat > conftest.
$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9550 printf("%s\n", __FUNCTION__);
9553 if { (eval echo configure
:9554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9555 samba_cv_HAVE_FUNCTION_MACRO
=yes
9557 echo "configure: failed program was:" >&5
9558 cat conftest.
$ac_ext >&5
9560 samba_cv_HAVE_FUNCTION_MACRO
=no
9565 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9566 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9567 cat >> confdefs.h
<<\EOF
9568 #define HAVE_FUNCTION_MACRO 1
9573 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9574 echo "configure:9575: checking if gettimeofday takes tz argument" >&5
9575 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9576 echo $ac_n "(cached) $ac_c" 1>&6
9579 if test "$cross_compiling" = yes; then
9580 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9582 cat > conftest.
$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9586 #include <sys/time.h>
9588 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9590 if { (eval echo configure
:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9592 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9594 echo "configure: failed program was:" >&5
9595 cat conftest.
$ac_ext >&5
9597 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9604 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9605 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9606 cat >> confdefs.h
<<\EOF
9607 #define HAVE_GETTIMEOFDAY_TZ 1
9612 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9613 echo "configure:9614: checking for __va_copy" >&5
9614 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9618 cat > conftest.
$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9627 if { (eval echo configure
:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9629 samba_cv_HAVE_VA_COPY
=yes
9631 echo "configure: failed program was:" >&5
9632 cat conftest.
$ac_ext >&5
9634 samba_cv_HAVE_VA_COPY
=no
9639 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9640 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9641 cat >> confdefs.h
<<\EOF
9642 #define HAVE_VA_COPY 1
9647 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9648 echo "configure:9649: checking for C99 vsnprintf" >&5
9649 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9653 if test "$cross_compiling" = yes; then
9654 samba_cv_HAVE_C99_VSNPRINTF
=cross
9656 cat > conftest.
$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9660 #include <sys/types.h>
9662 void foo(const char *format, ...) {
9667 va_start(ap, format);
9668 len = vsnprintf(buf, 0, format, ap);
9670 if (len != 5) exit(1);
9672 va_start(ap, format);
9673 len = vsnprintf(0, 0, format, ap);
9675 if (len != 5) exit(1);
9677 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9681 main() { foo("hello"); }
9684 if { (eval echo configure
:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9686 samba_cv_HAVE_C99_VSNPRINTF
=yes
9688 echo "configure: failed program was:" >&5
9689 cat conftest.
$ac_ext >&5
9691 samba_cv_HAVE_C99_VSNPRINTF
=no
9698 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9699 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9700 cat >> confdefs.h
<<\EOF
9701 #define HAVE_C99_VSNPRINTF 1
9706 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9707 echo "configure:9708: checking for broken readdir" >&5
9708 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6
9712 if test "$cross_compiling" = yes; then
9713 samba_cv_HAVE_BROKEN_READDIR
=cross
9715 cat > conftest.
$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 #include <sys/types.h>
9720 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9721 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9722 di->d_name[0] == 0) exit(0); exit(1);}
9724 if { (eval echo configure
:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9726 samba_cv_HAVE_BROKEN_READDIR
=yes
9728 echo "configure: failed program was:" >&5
9729 cat conftest.
$ac_ext >&5
9731 samba_cv_HAVE_BROKEN_READDIR
=no
9738 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9739 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9740 cat >> confdefs.h
<<\EOF
9741 #define HAVE_BROKEN_READDIR 1
9746 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9747 echo "configure:9748: checking for utimbuf" >&5
9748 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9752 cat > conftest.
$ac_ext <<EOF
9753 #line 9754 "configure"
9754 #include "confdefs.h"
9755 #include <sys/types.h>
9758 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9761 if { (eval echo configure
:9762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9763 samba_cv_HAVE_UTIMBUF
=yes
9765 echo "configure: failed program was:" >&5
9766 cat conftest.
$ac_ext >&5
9768 samba_cv_HAVE_UTIMBUF
=no
9773 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9774 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9775 cat >> confdefs.h
<<\EOF
9776 #define HAVE_UTIMBUF 1
9782 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9785 echo "configure:9786: checking for $ac_func" >&5
9786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9789 cat > conftest.
$ac_ext <<EOF
9790 #line 9791 "configure"
9791 #include "confdefs.h"
9792 /* System header to define __stub macros and hopefully few prototypes,
9793 which can conflict with char $ac_func(); below. */
9795 /* Override any gcc2 internal prototype to avoid an error. */
9796 /* We use char because int might match the return type of a gcc2
9797 builtin and then its argument prototype would still apply. */
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9813 if { (eval echo configure
:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9815 eval "ac_cv_func_$ac_func=yes"
9817 echo "configure: failed program was:" >&5
9818 cat conftest.
$ac_ext >&5
9820 eval "ac_cv_func_$ac_func=no"
9825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9826 echo "$ac_t""yes" 1>&6
9827 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9828 cat >> confdefs.h
<<EOF
9829 #define $ac_tr_func 1
9833 echo "$ac_t""no" 1>&6
9838 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9839 echo "configure:9840: checking for ut_name in utmp" >&5
9840 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9844 cat > conftest.
$ac_ext <<EOF
9845 #line 9846 "configure"
9846 #include "confdefs.h"
9847 #include <sys/types.h>
9850 struct utmp ut; ut.ut_name[0] = 'a';
9853 if { (eval echo configure
:9854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9855 samba_cv_HAVE_UT_UT_NAME
=yes
9857 echo "configure: failed program was:" >&5
9858 cat conftest.
$ac_ext >&5
9860 samba_cv_HAVE_UT_UT_NAME
=no
9865 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9866 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9867 cat >> confdefs.h
<<\EOF
9868 #define HAVE_UT_UT_NAME 1
9873 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9874 echo "configure:9875: checking for ut_user in utmp" >&5
9875 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9876 echo $ac_n "(cached) $ac_c" 1>&6
9879 cat > conftest.
$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9882 #include <sys/types.h>
9885 struct utmp ut; ut.ut_user[0] = 'a';
9888 if { (eval echo configure
:9889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9890 samba_cv_HAVE_UT_UT_USER
=yes
9892 echo "configure: failed program was:" >&5
9893 cat conftest.
$ac_ext >&5
9895 samba_cv_HAVE_UT_UT_USER
=no
9900 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9901 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9902 cat >> confdefs.h
<<\EOF
9903 #define HAVE_UT_UT_USER 1
9908 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9909 echo "configure:9910: checking for ut_id in utmp" >&5
9910 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9911 echo $ac_n "(cached) $ac_c" 1>&6
9914 cat > conftest.
$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <sys/types.h>
9920 struct utmp ut; ut.ut_id[0] = 'a';
9923 if { (eval echo configure
:9924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9925 samba_cv_HAVE_UT_UT_ID
=yes
9927 echo "configure: failed program was:" >&5
9928 cat conftest.
$ac_ext >&5
9930 samba_cv_HAVE_UT_UT_ID
=no
9935 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9936 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9937 cat >> confdefs.h
<<\EOF
9938 #define HAVE_UT_UT_ID 1
9943 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9944 echo "configure:9945: checking for ut_host in utmp" >&5
9945 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9946 echo $ac_n "(cached) $ac_c" 1>&6
9949 cat > conftest.
$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 #include <sys/types.h>
9955 struct utmp ut; ut.ut_host[0] = 'a';
9958 if { (eval echo configure
:9959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9960 samba_cv_HAVE_UT_UT_HOST
=yes
9962 echo "configure: failed program was:" >&5
9963 cat conftest.
$ac_ext >&5
9965 samba_cv_HAVE_UT_UT_HOST
=no
9970 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9971 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9972 cat >> confdefs.h
<<\EOF
9973 #define HAVE_UT_UT_HOST 1
9978 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9979 echo "configure:9980: checking for ut_time in utmp" >&5
9980 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9981 echo $ac_n "(cached) $ac_c" 1>&6
9984 cat > conftest.
$ac_ext <<EOF
9985 #line 9986 "configure"
9986 #include "confdefs.h"
9987 #include <sys/types.h>
9990 struct utmp ut; time_t t; ut.ut_time = t;
9993 if { (eval echo configure
:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9995 samba_cv_HAVE_UT_UT_TIME
=yes
9997 echo "configure: failed program was:" >&5
9998 cat conftest.
$ac_ext >&5
10000 samba_cv_HAVE_UT_UT_TIME
=no
10005 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10006 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10007 cat >> confdefs.h
<<\EOF
10008 #define HAVE_UT_UT_TIME 1
10013 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10014 echo "configure:10015: checking for ut_tv in utmp" >&5
10015 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10016 echo $ac_n "(cached) $ac_c" 1>&6
10019 cat > conftest.
$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 #include <sys/types.h>
10025 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10028 if { (eval echo configure
:10029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10030 samba_cv_HAVE_UT_UT_TV
=yes
10032 echo "configure: failed program was:" >&5
10033 cat conftest.
$ac_ext >&5
10035 samba_cv_HAVE_UT_UT_TV
=no
10040 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10041 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10042 cat >> confdefs.h
<<\EOF
10043 #define HAVE_UT_UT_TV 1
10048 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10049 echo "configure:10050: checking for ut_type in utmp" >&5
10050 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10051 echo $ac_n "(cached) $ac_c" 1>&6
10054 cat > conftest.
$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 #include <sys/types.h>
10060 struct utmp ut; ut.ut_type = 0;
10063 if { (eval echo configure
:10064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10065 samba_cv_HAVE_UT_UT_TYPE
=yes
10067 echo "configure: failed program was:" >&5
10068 cat conftest.
$ac_ext >&5
10070 samba_cv_HAVE_UT_UT_TYPE
=no
10075 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10076 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10077 cat >> confdefs.h
<<\EOF
10078 #define HAVE_UT_UT_TYPE 1
10083 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10084 echo "configure:10085: checking for ut_pid in utmp" >&5
10085 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10089 cat > conftest.
$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 #include <sys/types.h>
10095 struct utmp ut; ut.ut_pid = 0;
10098 if { (eval echo configure
:10099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10100 samba_cv_HAVE_UT_UT_PID
=yes
10102 echo "configure: failed program was:" >&5
10103 cat conftest.
$ac_ext >&5
10105 samba_cv_HAVE_UT_UT_PID
=no
10110 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10111 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10112 cat >> confdefs.h
<<\EOF
10113 #define HAVE_UT_UT_PID 1
10118 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10119 echo "configure:10120: checking for ut_exit in utmp" >&5
10120 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10124 cat > conftest.
$ac_ext <<EOF
10125 #line 10126 "configure"
10126 #include "confdefs.h"
10127 #include <sys/types.h>
10130 struct utmp ut; ut.ut_exit.e_exit = 0;
10133 if { (eval echo configure
:10134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10135 samba_cv_HAVE_UT_UT_EXIT
=yes
10137 echo "configure: failed program was:" >&5
10138 cat conftest.
$ac_ext >&5
10140 samba_cv_HAVE_UT_UT_EXIT
=no
10145 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10146 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10147 cat >> confdefs.h
<<\EOF
10148 #define HAVE_UT_UT_EXIT 1
10153 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10154 echo "configure:10155: checking for ut_addr in utmp" >&5
10155 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10159 cat > conftest.
$ac_ext <<EOF
10160 #line 10161 "configure"
10161 #include "confdefs.h"
10162 #include <sys/types.h>
10165 struct utmp ut; ut.ut_addr = 0;
10168 if { (eval echo configure
:10169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10170 samba_cv_HAVE_UT_UT_ADDR
=yes
10172 echo "configure: failed program was:" >&5
10173 cat conftest.
$ac_ext >&5
10175 samba_cv_HAVE_UT_UT_ADDR
=no
10180 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10181 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10182 cat >> confdefs.h
<<\EOF
10183 #define HAVE_UT_UT_ADDR 1
10188 if test x
$ac_cv_func_pututline = xyes
; then
10189 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10190 echo "configure:10191: checking whether pututline returns pointer" >&5
10191 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10195 cat > conftest.
$ac_ext <<EOF
10196 #line 10197 "configure"
10197 #include "confdefs.h"
10198 #include <sys/types.h>
10201 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10204 if { (eval echo configure
:10205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10206 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10208 echo "configure: failed program was:" >&5
10209 cat conftest.
$ac_ext >&5
10211 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10216 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10217 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10218 cat >> confdefs.h
<<\EOF
10219 #define PUTUTLINE_RETURNS_UTMP 1
10225 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10226 echo "configure:10227: checking for ut_syslen in utmpx" >&5
10227 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10228 echo $ac_n "(cached) $ac_c" 1>&6
10231 cat > conftest.
$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 #include <sys/types.h>
10237 struct utmpx ux; ux.ut_syslen = 0;
10240 if { (eval echo configure
:10241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10242 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10244 echo "configure: failed program was:" >&5
10245 cat conftest.
$ac_ext >&5
10247 samba_cv_HAVE_UX_UT_SYSLEN
=no
10252 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10253 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10254 cat >> confdefs.h
<<\EOF
10255 #define HAVE_UX_UT_SYSLEN 1
10260 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10261 echo "configure:10262: checking for Linux kernel oplocks" >&5
10262 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10263 echo $ac_n "(cached) $ac_c" 1>&6
10266 if test "$cross_compiling" = yes; then
10267 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10269 cat > conftest.
$ac_ext <<EOF
10270 #line 10271 "configure"
10271 #include "confdefs.h"
10273 #include <sys/types.h>
10276 #define F_GETLEASE 1025
10279 int fd = open("/dev/null", O_RDONLY);
10280 return fcntl(fd, F_GETLEASE, 0) == -1;
10284 if { (eval echo configure
:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10286 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10288 echo "configure: failed program was:" >&5
10289 cat conftest.
$ac_ext >&5
10291 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10298 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10299 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10300 cat >> confdefs.h
<<\EOF
10301 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10306 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10307 echo "configure:10308: checking for kernel change notify support" >&5
10308 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10312 if test "$cross_compiling" = yes; then
10313 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10315 cat > conftest.
$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10319 #include <sys/types.h>
10321 #include <signal.h>
10323 #define F_NOTIFY 1026
10326 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10330 if { (eval echo configure
:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10332 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10334 echo "configure: failed program was:" >&5
10335 cat conftest.
$ac_ext >&5
10337 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10344 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10345 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10346 cat >> confdefs.h
<<\EOF
10347 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10352 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10353 echo "configure:10354: checking for kernel share modes" >&5
10354 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10358 if test "$cross_compiling" = yes; then
10359 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10361 cat > conftest.
$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10365 #include <sys/types.h>
10367 #include <signal.h>
10368 #include <sys/file.h>
10370 #define LOCK_MAND 32
10371 #define LOCK_READ 64
10374 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10378 if { (eval echo configure
:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10380 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10382 echo "configure: failed program was:" >&5
10383 cat conftest.
$ac_ext >&5
10385 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10392 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10393 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10394 cat >> confdefs.h
<<\EOF
10395 #define HAVE_KERNEL_SHARE_MODES 1
10403 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10404 echo "configure:10405: checking for IRIX kernel oplock type definitions" >&5
10405 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10409 cat > conftest.
$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412 #include <sys/types.h>
10415 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10418 if { (eval echo configure
:10419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10420 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10422 echo "configure: failed program was:" >&5
10423 cat conftest.
$ac_ext >&5
10425 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10430 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10431 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10432 cat >> confdefs.h
<<\EOF
10433 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10438 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10439 echo "configure:10440: checking for irix specific capabilities" >&5
10440 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10441 echo $ac_n "(cached) $ac_c" 1>&6
10444 if test "$cross_compiling" = yes; then
10445 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10447 cat > conftest.
$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 #include <sys/types.h>
10451 #include <sys/capability.h>
10454 if ((cap = cap_get_proc()) == NULL)
10456 cap->cap_effective |= CAP_NETWORK_MGT;
10457 cap->cap_inheritable |= CAP_NETWORK_MGT;
10463 if { (eval echo configure
:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10465 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10467 echo "configure: failed program was:" >&5
10468 cat conftest.
$ac_ext >&5
10470 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10477 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10478 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10479 cat >> confdefs.h
<<\EOF
10480 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10486 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10487 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10490 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10491 echo "configure:10492: checking for int16 typedef included by rpc/rpc.h" >&5
10492 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
10496 cat > conftest.
$ac_ext <<EOF
10497 #line 10498 "configure"
10498 #include "confdefs.h"
10499 #include <sys/types.h>
10500 #if defined(HAVE_RPC_RPC_H)
10501 #include <rpc/rpc.h>
10507 if { (eval echo configure
:10508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10509 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10511 echo "configure: failed program was:" >&5
10512 cat conftest.
$ac_ext >&5
10514 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10519 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10520 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10521 cat >> confdefs.h
<<\EOF
10522 #define HAVE_INT16_FROM_RPC_RPC_H 1
10527 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10528 echo "configure:10529: checking for uint16 typedef included by rpc/rpc.h" >&5
10529 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10533 cat > conftest.
$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <sys/types.h>
10537 #if defined(HAVE_RPC_RPC_H)
10538 #include <rpc/rpc.h>
10544 if { (eval echo configure
:10545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10546 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10548 echo "configure: failed program was:" >&5
10549 cat conftest.
$ac_ext >&5
10551 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10556 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10557 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10558 cat >> confdefs.h
<<\EOF
10559 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10564 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10565 echo "configure:10566: checking for int32 typedef included by rpc/rpc.h" >&5
10566 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10570 cat > conftest.
$ac_ext <<EOF
10571 #line 10572 "configure"
10572 #include "confdefs.h"
10573 #include <sys/types.h>
10574 #if defined(HAVE_RPC_RPC_H)
10575 #include <rpc/rpc.h>
10581 if { (eval echo configure
:10582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10583 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10585 echo "configure: failed program was:" >&5
10586 cat conftest.
$ac_ext >&5
10588 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10593 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10594 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10595 cat >> confdefs.h
<<\EOF
10596 #define HAVE_INT32_FROM_RPC_RPC_H 1
10601 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10602 echo "configure:10603: checking for uint32 typedef included by rpc/rpc.h" >&5
10603 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10607 cat > conftest.
$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10610 #include <sys/types.h>
10611 #if defined(HAVE_RPC_RPC_H)
10612 #include <rpc/rpc.h>
10618 if { (eval echo configure
:10619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10620 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10622 echo "configure: failed program was:" >&5
10623 cat conftest.
$ac_ext >&5
10625 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10630 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10631 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10632 cat >> confdefs.h
<<\EOF
10633 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10639 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10640 echo "configure:10641: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10641 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10645 cat > conftest.
$ac_ext <<EOF
10646 #line 10647 "configure"
10647 #include "confdefs.h"
10648 #include <sys/types.h>
10649 #ifdef HAVE_SYS_SECURITY_H
10650 #include <sys/security.h>
10652 #endif /* HAVE_SYS_SECURITY_H */
10653 #if defined(HAVE_RPC_RPC_H)
10654 #include <rpc/rpc.h>
10660 if { (eval echo configure
:10661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10662 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10664 echo "configure: failed program was:" >&5
10665 cat conftest.
$ac_ext >&5
10667 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10672 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10673 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10674 cat >> confdefs.h
<<\EOF
10675 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10680 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10681 echo "configure:10682: checking for test routines" >&5
10682 if test "$cross_compiling" = yes; then
10683 echo "configure: warning: cannot run when cross-compiling" 1>&2
10685 cat > conftest.
$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 #include "${srcdir-.}/tests/trivial.c"
10690 if { (eval echo configure
:10691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10692 echo "$ac_t""yes" 1>&6
10694 echo "configure: failed program was:" >&5
10695 cat conftest.
$ac_ext >&5
10697 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10703 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10704 echo "configure:10705: checking for ftruncate extend" >&5
10705 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10709 if test "$cross_compiling" = yes; then
10710 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10712 cat > conftest.
$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10715 #include "${srcdir-.}/tests/ftruncate.c"
10717 if { (eval echo configure
:10718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10719 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10721 echo "configure: failed program was:" >&5
10722 cat conftest.
$ac_ext >&5
10724 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10731 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10732 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10733 cat >> confdefs.h
<<\EOF
10734 #define HAVE_FTRUNCATE_EXTEND 1
10739 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10740 echo "configure:10741: checking for broken getgroups" >&5
10741 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10742 echo $ac_n "(cached) $ac_c" 1>&6
10745 if test "$cross_compiling" = yes; then
10746 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10748 cat > conftest.
$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 #include "${srcdir-.}/tests/getgroups.c"
10753 if { (eval echo configure
:10754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10755 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10757 echo "configure: failed program was:" >&5
10758 cat conftest.
$ac_ext >&5
10760 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10767 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10768 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10769 cat >> confdefs.h
<<\EOF
10770 #define HAVE_BROKEN_GETGROUPS 1
10775 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10776 echo "configure:10777: checking whether getpass should be replaced" >&5
10777 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10778 echo $ac_n "(cached) $ac_c" 1>&6
10781 SAVE_CPPFLAGS
="$CPPFLAGS"
10782 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10783 cat > conftest.
$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10787 #define REPLACE_GETPASS 1
10788 #define NO_CONFIG_H 1
10789 #define main dont_declare_main
10790 #include "${srcdir-.}/lib/getsmbpass.c"
10797 if { (eval echo configure
:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10799 samba_cv_REPLACE_GETPASS
=yes
10801 echo "configure: failed program was:" >&5
10802 cat conftest.
$ac_ext >&5
10804 samba_cv_REPLACE_GETPASS
=no
10807 CPPFLAGS
="$SAVE_CPPFLAGS"
10811 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10812 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10813 cat >> confdefs.h
<<\EOF
10814 #define REPLACE_GETPASS 1
10819 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10820 echo "configure:10821: checking for broken inet_ntoa" >&5
10821 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10822 echo $ac_n "(cached) $ac_c" 1>&6
10825 if test "$cross_compiling" = yes; then
10826 samba_cv_REPLACE_INET_NTOA
=cross
10828 cat > conftest.
$ac_ext <<EOF
10829 #line 10830 "configure"
10830 #include "confdefs.h"
10833 #include <sys/types.h>
10834 #include <netinet/in.h>
10835 #ifdef HAVE_ARPA_INET_H
10836 #include <arpa/inet.h>
10838 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10839 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10840 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10843 if { (eval echo configure
:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10845 samba_cv_REPLACE_INET_NTOA
=yes
10847 echo "configure: failed program was:" >&5
10848 cat conftest.
$ac_ext >&5
10850 samba_cv_REPLACE_INET_NTOA
=no
10857 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10858 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10859 cat >> confdefs.h
<<\EOF
10860 #define REPLACE_INET_NTOA 1
10865 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10866 echo "configure:10867: checking for secure mkstemp" >&5
10867 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10868 echo $ac_n "(cached) $ac_c" 1>&6
10871 if test "$cross_compiling" = yes; then
10872 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10874 cat > conftest.
$ac_ext <<EOF
10875 #line 10876 "configure"
10876 #include "confdefs.h"
10877 #include <stdlib.h>
10878 #include <sys/types.h>
10879 #include <sys/stat.h>
10880 #include <unistd.h>
10883 char tpl[20]="/tmp/test.XXXXXX";
10884 int fd = mkstemp(tpl);
10885 if (fd == -1) exit(1);
10887 if (fstat(fd, &st) != 0) exit(1);
10888 if ((st.st_mode & 0777) != 0600) exit(1);
10892 if { (eval echo configure
:10893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10894 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10896 echo "configure: failed program was:" >&5
10897 cat conftest.
$ac_ext >&5
10899 samba_cv_HAVE_SECURE_MKSTEMP
=no
10906 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10907 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10908 cat >> confdefs.h
<<\EOF
10909 #define HAVE_SECURE_MKSTEMP 1
10914 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10915 echo "configure:10916: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10916 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10917 echo $ac_n "(cached) $ac_c" 1>&6
10920 if test "$cross_compiling" = yes; then
10921 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10923 cat > conftest.
$ac_ext <<EOF
10924 #line 10925 "configure"
10925 #include "confdefs.h"
10926 #include <unistd.h>
10927 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10929 if { (eval echo configure
:10930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10931 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10933 echo "configure: failed program was:" >&5
10934 cat conftest.
$ac_ext >&5
10936 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10943 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10944 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10945 cat >> confdefs.h
<<\EOF
10946 #define SYSCONF_SC_NGROUPS_MAX 1
10951 echo $ac_n "checking for root""... $ac_c" 1>&6
10952 echo "configure:10953: checking for root" >&5
10953 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10957 if test "$cross_compiling" = yes; then
10958 samba_cv_HAVE_ROOT
=cross
10960 cat > conftest.
$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 main() { exit(getuid() != 0); }
10965 if { (eval echo configure
:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10967 samba_cv_HAVE_ROOT
=yes
10969 echo "configure: failed program was:" >&5
10970 cat conftest.
$ac_ext >&5
10972 samba_cv_HAVE_ROOT
=no
10979 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10980 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10981 cat >> confdefs.h
<<\EOF
10982 #define HAVE_ROOT 1
10986 echo "configure: warning: running as non-root will disable some tests" 1>&2
10990 # look for a method of finding the list of network interfaces
10992 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10993 echo "configure:10994: checking for iface AIX" >&5
10994 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10995 echo $ac_n "(cached) $ac_c" 1>&6
10998 if test "$cross_compiling" = yes; then
10999 samba_cv_HAVE_IFACE_AIX
=cross
11001 cat > conftest.
$ac_ext <<EOF
11002 #line 11003 "configure"
11003 #include "confdefs.h"
11005 #define HAVE_IFACE_AIX 1
11006 #define AUTOCONF_TEST 1
11007 #include "confdefs.h"
11008 #include "${srcdir-.}/lib/interfaces.c"
11010 if { (eval echo configure
:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11012 samba_cv_HAVE_IFACE_AIX
=yes
11014 echo "configure: failed program was:" >&5
11015 cat conftest.
$ac_ext >&5
11017 samba_cv_HAVE_IFACE_AIX
=no
11024 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11025 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11026 iface
=yes;cat >> confdefs.h
<<\EOF
11027 #define HAVE_IFACE_AIX 1
11032 if test $iface = no
; then
11033 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11034 echo "configure:11035: checking for iface ifconf" >&5
11035 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11036 echo $ac_n "(cached) $ac_c" 1>&6
11039 if test "$cross_compiling" = yes; then
11040 samba_cv_HAVE_IFACE_IFCONF
=cross
11042 cat > conftest.
$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11046 #define HAVE_IFACE_IFCONF 1
11047 #define AUTOCONF_TEST 1
11048 #include "confdefs.h"
11049 #include "${srcdir-.}/lib/interfaces.c"
11051 if { (eval echo configure
:11052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11053 samba_cv_HAVE_IFACE_IFCONF
=yes
11055 echo "configure: failed program was:" >&5
11056 cat conftest.
$ac_ext >&5
11058 samba_cv_HAVE_IFACE_IFCONF
=no
11065 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11066 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11067 iface
=yes;cat >> confdefs.h
<<\EOF
11068 #define HAVE_IFACE_IFCONF 1
11074 if test $iface = no
; then
11075 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11076 echo "configure:11077: checking for iface ifreq" >&5
11077 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11081 if test "$cross_compiling" = yes; then
11082 samba_cv_HAVE_IFACE_IFREQ
=cross
11084 cat > conftest.
$ac_ext <<EOF
11085 #line 11086 "configure"
11086 #include "confdefs.h"
11088 #define HAVE_IFACE_IFREQ 1
11089 #define AUTOCONF_TEST 1
11090 #include "confdefs.h"
11091 #include "${srcdir-.}/lib/interfaces.c"
11093 if { (eval echo configure
:11094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11095 samba_cv_HAVE_IFACE_IFREQ
=yes
11097 echo "configure: failed program was:" >&5
11098 cat conftest.
$ac_ext >&5
11100 samba_cv_HAVE_IFACE_IFREQ
=no
11107 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11108 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11109 iface
=yes;cat >> confdefs.h
<<\EOF
11110 #define HAVE_IFACE_IFREQ 1
11117 ################################################
11118 # look for a method of setting the effective uid
11120 if test $seteuid = no
; then
11121 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11122 echo "configure:11123: checking for setresuid" >&5
11123 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11127 if test "$cross_compiling" = yes; then
11128 samba_cv_USE_SETRESUID
=cross
11130 cat > conftest.
$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11134 #define AUTOCONF_TEST 1
11135 #define USE_SETRESUID 1
11136 #include "confdefs.h"
11137 #include "${srcdir-.}/lib/util_sec.c"
11139 if { (eval echo configure
:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11141 samba_cv_USE_SETRESUID
=yes
11143 echo "configure: failed program was:" >&5
11144 cat conftest.
$ac_ext >&5
11146 samba_cv_USE_SETRESUID
=no
11153 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11154 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11155 seteuid
=yes;cat >> confdefs.h
<<\EOF
11156 #define USE_SETRESUID 1
11163 if test $seteuid = no
; then
11164 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11165 echo "configure:11166: checking for setreuid" >&5
11166 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11170 if test "$cross_compiling" = yes; then
11171 samba_cv_USE_SETREUID
=cross
11173 cat > conftest.
$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11177 #define AUTOCONF_TEST 1
11178 #define USE_SETREUID 1
11179 #include "confdefs.h"
11180 #include "${srcdir-.}/lib/util_sec.c"
11182 if { (eval echo configure
:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11184 samba_cv_USE_SETREUID
=yes
11186 echo "configure: failed program was:" >&5
11187 cat conftest.
$ac_ext >&5
11189 samba_cv_USE_SETREUID
=no
11196 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11197 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11198 seteuid
=yes;cat >> confdefs.h
<<\EOF
11199 #define USE_SETREUID 1
11205 if test $seteuid = no
; then
11206 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11207 echo "configure:11208: checking for seteuid" >&5
11208 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11209 echo $ac_n "(cached) $ac_c" 1>&6
11212 if test "$cross_compiling" = yes; then
11213 samba_cv_USE_SETEUID
=cross
11215 cat > conftest.
$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11219 #define AUTOCONF_TEST 1
11220 #define USE_SETEUID 1
11221 #include "confdefs.h"
11222 #include "${srcdir-.}/lib/util_sec.c"
11224 if { (eval echo configure
:11225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11226 samba_cv_USE_SETEUID
=yes
11228 echo "configure: failed program was:" >&5
11229 cat conftest.
$ac_ext >&5
11231 samba_cv_USE_SETEUID
=no
11238 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11239 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11240 seteuid
=yes;cat >> confdefs.h
<<\EOF
11241 #define USE_SETEUID 1
11247 if test $seteuid = no
; then
11248 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11249 echo "configure:11250: checking for setuidx" >&5
11250 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11254 if test "$cross_compiling" = yes; then
11255 samba_cv_USE_SETUIDX
=cross
11257 cat > conftest.
$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11261 #define AUTOCONF_TEST 1
11262 #define USE_SETUIDX 1
11263 #include "confdefs.h"
11264 #include "${srcdir-.}/lib/util_sec.c"
11266 if { (eval echo configure
:11267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11268 samba_cv_USE_SETUIDX
=yes
11270 echo "configure: failed program was:" >&5
11271 cat conftest.
$ac_ext >&5
11273 samba_cv_USE_SETUIDX
=no
11280 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11281 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11282 seteuid
=yes;cat >> confdefs.h
<<\EOF
11283 #define USE_SETUIDX 1
11290 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11291 echo "configure:11292: checking for working mmap" >&5
11292 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11296 if test "$cross_compiling" = yes; then
11297 samba_cv_HAVE_MMAP
=cross
11299 cat > conftest.
$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 #include "${srcdir-.}/tests/shared_mmap.c"
11304 if { (eval echo configure
:11305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11306 samba_cv_HAVE_MMAP
=yes
11308 echo "configure: failed program was:" >&5
11309 cat conftest.
$ac_ext >&5
11311 samba_cv_HAVE_MMAP
=no
11318 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11319 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11320 cat >> confdefs.h
<<\EOF
11321 #define HAVE_MMAP 1
11326 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11327 echo "configure:11328: checking for ftruncate needs root" >&5
11328 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11329 echo $ac_n "(cached) $ac_c" 1>&6
11332 if test "$cross_compiling" = yes; then
11333 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11335 cat > conftest.
$ac_ext <<EOF
11336 #line 11337 "configure"
11337 #include "confdefs.h"
11338 #include "${srcdir-.}/tests/ftruncroot.c"
11340 if { (eval echo configure
:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11342 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11344 echo "configure: failed program was:" >&5
11345 cat conftest.
$ac_ext >&5
11347 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11354 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11355 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11356 cat >> confdefs.h
<<\EOF
11357 #define FTRUNCATE_NEEDS_ROOT 1
11362 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11363 echo "configure:11364: checking for fcntl locking" >&5
11364 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11365 echo $ac_n "(cached) $ac_c" 1>&6
11368 if test "$cross_compiling" = yes; then
11369 samba_cv_HAVE_FCNTL_LOCK
=cross
11371 cat > conftest.
$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 #include "${srcdir-.}/tests/fcntl_lock.c"
11376 if { (eval echo configure
:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11378 samba_cv_HAVE_FCNTL_LOCK
=yes
11380 echo "configure: failed program was:" >&5
11381 cat conftest.
$ac_ext >&5
11383 samba_cv_HAVE_FCNTL_LOCK
=no
11390 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11391 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11392 cat >> confdefs.h
<<\EOF
11393 #define HAVE_FCNTL_LOCK 1
11398 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11399 echo "configure:11400: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11400 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11401 echo $ac_n "(cached) $ac_c" 1>&6
11404 if test "$cross_compiling" = yes; then
11405 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11407 cat > conftest.
$ac_ext <<EOF
11408 #line 11409 "configure"
11409 #include "confdefs.h"
11410 #include "${srcdir-.}/tests/fcntl_lock64.c"
11412 if { (eval echo configure
:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11414 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11416 echo "configure: failed program was:" >&5
11417 cat conftest.
$ac_ext >&5
11419 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11426 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11427 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11428 cat >> confdefs.h
<<\EOF
11429 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11436 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11437 echo "configure:11438: checking for 64 bit fcntl locking" >&5
11438 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11439 echo $ac_n "(cached) $ac_c" 1>&6
11442 if test "$cross_compiling" = yes; then
11443 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11445 cat > conftest.
$ac_ext <<EOF
11446 #line 11447 "configure"
11447 #include "confdefs.h"
11449 #if defined(HAVE_UNISTD_H)
11450 #include <unistd.h>
11453 #include <stdlib.h>
11455 #ifdef HAVE_FCNTL_H
11459 #ifdef HAVE_SYS_FCNTL_H
11460 #include <sys/fcntl.h>
11462 main() { struct flock64 fl64;
11463 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11470 if { (eval echo configure
:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11472 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11474 echo "configure: failed program was:" >&5
11475 cat conftest.
$ac_ext >&5
11477 samba_cv_HAVE_STRUCT_FLOCK64
=no
11484 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11486 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11487 cat >> confdefs.h
<<\EOF
11488 #define HAVE_STRUCT_FLOCK64 1
11494 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11495 echo "configure:11496: checking for st_blocks in struct stat" >&5
11496 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11500 cat > conftest.
$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include <sys/types.h>
11504 #include <sys/stat.h>
11505 #include <unistd.h>
11507 struct stat st; st.st_blocks = 0;
11510 if { (eval echo configure
:11511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11512 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11514 echo "configure: failed program was:" >&5
11515 cat conftest.
$ac_ext >&5
11517 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11522 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11523 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11524 cat >> confdefs.h
<<\EOF
11525 #define HAVE_STAT_ST_BLOCKS 1
11532 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11533 echo "configure:11534: checking for broken RedHat 7.2 system header files" >&5
11534 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11535 echo $ac_n "(cached) $ac_c" 1>&6
11538 cat > conftest.
$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11542 #ifdef HAVE_SYS_VFS_H
11543 #include <sys/vfs.h>
11545 #ifdef HAVE_SYS_CAPABILITY_H
11546 #include <sys/capability.h>
11553 if { (eval echo configure
:11554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11555 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11557 echo "configure: failed program was:" >&5
11558 cat conftest.
$ac_ext >&5
11560 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11565 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11566 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11567 cat >> confdefs.h
<<\EOF
11568 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11575 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11576 echo "configure:11577: checking for broken nisplus include files" >&5
11577 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11581 cat > conftest.
$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584 #include <sys/acl.h>
11585 #if defined(HAVE_RPCSVC_NIS_H)
11586 #include <rpcsvc/nis.h>
11592 if { (eval echo configure
:11593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11594 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11596 echo "configure: failed program was:" >&5
11597 cat conftest.
$ac_ext >&5
11599 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11604 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11605 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11606 cat >> confdefs.h
<<\EOF
11607 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11613 #################################################
11614 # check for smbwrapper support
11615 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11616 echo "configure:11617: checking whether to use smbwrapper" >&5
11617 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11618 if test "${with_smbwrapper+set}" = set; then
11619 withval
="$with_smbwrapper"
11622 echo "$ac_t""yes" 1>&6
11623 cat >> confdefs.h
<<\EOF
11624 #define WITH_SMBWRAPPER 1
11627 WRAPPROG
="bin/smbsh"
11628 WRAP
="bin/smbwrapper.$SHLIBEXT"
11630 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11633 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11636 # Conditions under which smbwrapper should not be built.
11638 if test x
$PICFLAG = x
; then
11639 echo No support
for PIC code
- disabling smbwrapper and smbsh
11643 elif test x
$ac_cv_func_syscall = xno
; then
11644 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11651 echo "$ac_t""no" 1>&6
11655 echo "$ac_t""no" 1>&6
11660 #################################################
11661 # check for the AFS filesystem
11662 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11663 echo "configure:11664: checking whether to use AFS" >&5
11664 # Check whether --with-afs or --without-afs was given.
11665 if test "${with_afs+set}" = set; then
11666 withval
="$with_afs"
11669 echo "$ac_t""yes" 1>&6
11670 cat >> confdefs.h
<<\EOF
11676 echo "$ac_t""no" 1>&6
11680 echo "$ac_t""no" 1>&6
11686 #################################################
11687 # check for the DFS auth system
11688 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11689 echo "configure:11690: checking whether to use DCE/DFS auth" >&5
11690 # Check whether --with-dfs or --without-dfs was given.
11691 if test "${with_dfs+set}" = set; then
11692 withval
="$with_dfs"
11695 echo "$ac_t""yes" 1>&6
11696 cat >> confdefs.h
<<\EOF
11702 echo "$ac_t""no" 1>&6
11706 echo "$ac_t""no" 1>&6
11711 #################################################
11712 # check for Kerberos IV auth system
11713 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11714 echo "configure:11715: checking whether to use Kerberos IV" >&5
11715 # Check whether --with-krb4 or --without-krb4 was given.
11716 if test "${with_krb4+set}" = set; then
11717 withval
="$with_krb4"
11720 echo "$ac_t""yes" 1>&6
11721 cat >> confdefs.h
<<\EOF
11722 #define KRB4_AUTH 1
11725 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11726 echo "configure:11727: checking for dn_expand in -lresolv" >&5
11727 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11731 ac_save_LIBS
="$LIBS"
11732 LIBS
="-lresolv $LIBS"
11733 cat > conftest.
$ac_ext <<EOF
11734 #line 11735 "configure"
11735 #include "confdefs.h"
11736 /* Override any gcc2 internal prototype to avoid an error. */
11737 /* We use char because int might match the return type of a gcc2
11738 builtin and then its argument prototype would still apply. */
11745 if { (eval echo configure
:11746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11747 eval "ac_cv_lib_$ac_lib_var=yes"
11749 echo "configure: failed program was:" >&5
11750 cat conftest.
$ac_ext >&5
11752 eval "ac_cv_lib_$ac_lib_var=no"
11755 LIBS
="$ac_save_LIBS"
11758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11759 echo "$ac_t""yes" 1>&6
11760 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11762 cat >> confdefs.h
<<EOF
11763 #define $ac_tr_lib 1
11766 LIBS
="-lresolv $LIBS"
11769 echo "$ac_t""no" 1>&6
11772 LIBS
="$LIBS -lkrb -ldes"
11773 CFLAGS
="$CFLAGS -I$withval/include"
11774 LDFLAGS
="$LDFLAGS -L$withval/lib"
11777 echo "$ac_t""no" 1>&6
11781 echo "$ac_t""no" 1>&6
11786 #################################################
11787 # check for Kerberos 5 auth system
11788 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11789 echo "configure:11790: checking whether to use Kerberos 5" >&5
11790 # Check whether --with-krb5 or --without-krb5 was given.
11791 if test "${with_krb5+set}" = set; then
11792 withval
="$with_krb5"
11795 echo "$ac_t""yes" 1>&6
11796 cat >> confdefs.h
<<\EOF
11797 #define KRB5_AUTH 1
11800 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11801 CFLAGS
="$CFLAGS -I$withval/include"
11802 LDFLAGS
="$LDFLAGS -L$withval/lib"
11805 echo "$ac_t""no" 1>&6
11809 echo "$ac_t""no" 1>&6
11814 #################################################
11815 # check for automount support
11816 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11817 echo "configure:11818: checking whether to use AUTOMOUNT" >&5
11818 # Check whether --with-automount or --without-automount was given.
11819 if test "${with_automount+set}" = set; then
11820 withval
="$with_automount"
11823 echo "$ac_t""yes" 1>&6
11824 cat >> confdefs.h
<<\EOF
11825 #define WITH_AUTOMOUNT 1
11830 echo "$ac_t""no" 1>&6
11834 echo "$ac_t""no" 1>&6
11839 #################################################
11840 # check for smbmount support
11841 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11842 echo "configure:11843: checking whether to use SMBMOUNT" >&5
11843 # Check whether --with-smbmount or --without-smbmount was given.
11844 if test "${with_smbmount+set}" = set; then
11845 withval
="$with_smbmount"
11850 echo "$ac_t""yes" 1>&6
11851 cat >> confdefs.h
<<\EOF
11852 #define WITH_SMBMOUNT 1
11855 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11858 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11863 echo "$ac_t""no" 1>&6
11868 echo "$ac_t""no" 1>&6
11875 #################################################
11876 # check for a PAM password database
11877 with_pam_for_crypt
=no
11878 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11879 echo "configure:11880: checking whether to use PAM password database" >&5
11880 # Check whether --with-pam or --without-pam was given.
11881 if test "${with_pam+set}" = set; then
11882 withval
="$with_pam"
11885 echo "$ac_t""yes" 1>&6
11886 cat >> confdefs.h
<<\EOF
11891 with_pam_for_crypt
=yes
11894 echo "$ac_t""no" 1>&6
11898 echo "$ac_t""no" 1>&6
11903 # we can't build a pam module if we don't have pam.
11904 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11905 echo "configure:11906: checking for pam_get_data in -lpam" >&5
11906 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11910 ac_save_LIBS
="$LIBS"
11912 cat > conftest.
$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11915 /* Override any gcc2 internal prototype to avoid an error. */
11916 /* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11918 char pam_get_data();
11924 if { (eval echo configure
:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11926 eval "ac_cv_lib_$ac_lib_var=yes"
11928 echo "configure: failed program was:" >&5
11929 cat conftest.
$ac_ext >&5
11931 eval "ac_cv_lib_$ac_lib_var=no"
11934 LIBS
="$ac_save_LIBS"
11937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11938 echo "$ac_t""yes" 1>&6
11939 cat >> confdefs.h
<<\EOF
11940 #define HAVE_LIBPAM 1
11944 echo "$ac_t""no" 1>&6
11948 #################################################
11949 # check for pam_smbpass support
11950 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11951 echo "configure:11952: checking whether to use pam_smbpass" >&5
11952 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11953 if test "${with_pam_smbpass+set}" = set; then
11954 withval
="$with_pam_smbpass"
11957 echo "$ac_t""yes" 1>&6
11959 # Conditions under which pam_smbpass should not be built.
11961 if test x
$PICFLAG = x
; then
11962 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11964 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11965 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11968 cat >> confdefs.h
<<\EOF
11969 #define WITH_PAM_SMBPASS 1
11972 PAM_MOD
="bin/pam_smbpass.so"
11976 echo "$ac_t""no" 1>&6
11980 echo "$ac_t""no" 1>&6
11986 ###############################################
11987 # test for where we get crypt() from, but only
11989 if test $with_pam_for_crypt = no
; then
11990 for ac_func
in crypt
11992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11993 echo "configure:11994: checking for $ac_func" >&5
11994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11997 cat > conftest.
$ac_ext <<EOF
11998 #line 11999 "configure"
11999 #include "confdefs.h"
12000 /* System header to define __stub macros and hopefully few prototypes,
12001 which can conflict with char $ac_func(); below. */
12002 #include <assert.h>
12003 /* Override any gcc2 internal prototype to avoid an error. */
12004 /* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12010 /* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12021 if { (eval echo configure
:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12023 eval "ac_cv_func_$ac_func=yes"
12025 echo "configure: failed program was:" >&5
12026 cat conftest.
$ac_ext >&5
12028 eval "ac_cv_func_$ac_func=no"
12033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12034 echo "$ac_t""yes" 1>&6
12035 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12036 cat >> confdefs.h
<<EOF
12037 #define $ac_tr_func 1
12041 echo "$ac_t""no" 1>&6
12045 if test x
"$ac_cv_func_crypt" = x
"no"; then
12046 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12047 echo "configure:12048: checking for crypt in -lcrypt" >&5
12048 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12050 echo $ac_n "(cached) $ac_c" 1>&6
12052 ac_save_LIBS
="$LIBS"
12053 LIBS
="-lcrypt $LIBS"
12054 cat > conftest.
$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12057 /* Override any gcc2 internal prototype to avoid an error. */
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12066 if { (eval echo configure
:12067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12068 eval "ac_cv_lib_$ac_lib_var=yes"
12070 echo "configure: failed program was:" >&5
12071 cat conftest.
$ac_ext >&5
12073 eval "ac_cv_lib_$ac_lib_var=no"
12076 LIBS
="$ac_save_LIBS"
12079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081 LIBS
="$LIBS -lcrypt";
12082 cat >> confdefs.h
<<\EOF
12083 #define HAVE_CRYPT 1
12087 echo "$ac_t""no" 1>&6
12094 ## moved after the check for -lcrypt in order to
12095 ## ensure that the necessary libraries are included
12096 ## check checking for truncated salt. Wrapped by the
12097 ## $with_pam_for_crypt variable as above --jerry
12099 if test $with_pam_for_crypt = no
; then
12100 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12101 echo "configure:12102: checking for a crypt that needs truncated salt" >&5
12102 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
12106 if test "$cross_compiling" = yes; then
12107 samba_cv_HAVE_TRUNCATED_SALT
=cross
12109 cat > conftest.
$ac_ext <<EOF
12110 #line 12111 "configure"
12111 #include "confdefs.h"
12112 #include "${srcdir-.}/tests/crypttest.c"
12114 if { (eval echo configure
:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12116 samba_cv_HAVE_TRUNCATED_SALT
=no
12118 echo "configure: failed program was:" >&5
12119 cat conftest.
$ac_ext >&5
12121 samba_cv_HAVE_TRUNCATED_SALT
=yes
12128 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12129 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12130 cat >> confdefs.h
<<\EOF
12131 #define HAVE_TRUNCATED_SALT 1
12138 ########################################################################################
12140 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12142 ########################################################################################
12144 ## set the with_smbpasswd_sam as the default
12145 with_smbpasswd_sam
=yes
12149 #################################################
12150 # check for a TDB password database
12151 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12152 echo "configure:12153: checking whether to use TDB SAM database" >&5
12153 # Check whether --with-tdbsam or --without-tdbsam was given.
12154 if test "${with_tdbsam+set}" = set; then
12155 withval
="$with_tdbsam"
12158 echo "$ac_t""yes" 1>&6
12159 cat >> confdefs.h
<<\EOF
12160 #define WITH_TDB_SAM 1
12163 with_smbpasswd_sam
=no
12166 echo "$ac_t""no" 1>&6
12170 echo "$ac_t""no" 1>&6
12175 #################################################
12176 # check for a LDAP password database
12177 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12178 echo "configure:12179: checking whether to use LDAP SAM database" >&5
12179 # Check whether --with-ldapsam or --without-ldapsam was given.
12180 if test "${with_ldapsam+set}" = set; then
12181 withval
="$with_ldapsam"
12184 echo "$ac_t""yes" 1>&6
12185 cat >> confdefs.h
<<\EOF
12186 #define WITH_LDAP_SAM 1
12190 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12191 echo "configure:12192: checking for ber_bvfree in -llber" >&5
12192 ac_lib_var
=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12194 echo $ac_n "(cached) $ac_c" 1>&6
12196 ac_save_LIBS
="$LIBS"
12197 LIBS
="-llber $LIBS"
12198 cat > conftest.
$ac_ext <<EOF
12199 #line 12200 "configure"
12200 #include "confdefs.h"
12201 /* Override any gcc2 internal prototype to avoid an error. */
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12210 if { (eval echo configure
:12211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12212 eval "ac_cv_lib_$ac_lib_var=yes"
12214 echo "configure: failed program was:" >&5
12215 cat conftest.
$ac_ext >&5
12217 eval "ac_cv_lib_$ac_lib_var=no"
12220 LIBS
="$ac_save_LIBS"
12223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
12225 LDAPLIBS
="$LDAPLIBS -llber"
12227 echo "$ac_t""no" 1>&6
12230 LDAPLIBS
="-lresolv $LDAPLIBS"
12231 old_LDFLAGS
="$LDFLAGS"
12232 LDFLAGS
="$LDFLAGS $LDAPLIBS"
12233 for ac_func
in ldap_start_tls_s
12235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12236 echo "configure:12237: checking for $ac_func" >&5
12237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12238 echo $ac_n "(cached) $ac_c" 1>&6
12240 cat > conftest.
$ac_ext <<EOF
12241 #line 12242 "configure"
12242 #include "confdefs.h"
12243 /* System header to define __stub macros and hopefully few prototypes,
12244 which can conflict with char $ac_func(); below. */
12245 #include <assert.h>
12246 /* Override any gcc2 internal prototype to avoid an error. */
12247 /* We use char because int might match the return type of a gcc2
12248 builtin and then its argument prototype would still apply. */
12253 /* The GNU C library defines this for functions which it implements
12254 to always fail with ENOSYS. Some functions are actually named
12255 something starting with __ and the normal name is an alias. */
12256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12264 if { (eval echo configure
:12265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12266 eval "ac_cv_func_$ac_func=yes"
12268 echo "configure: failed program was:" >&5
12269 cat conftest.
$ac_ext >&5
12271 eval "ac_cv_func_$ac_func=no"
12276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12277 echo "$ac_t""yes" 1>&6
12278 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12279 cat >> confdefs.h
<<EOF
12280 #define $ac_tr_func 1
12284 echo "$ac_t""no" 1>&6
12288 LDFLAGS
="$old_LDFLAGS"
12289 with_smbpasswd_sam
=no
12293 echo "$ac_t""no" 1>&6
12297 echo "$ac_t""no" 1>&6
12302 #################################################
12303 # check for a NISPLUS password database
12304 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12305 echo "configure:12306: checking whether to use NISPLUS SAM database" >&5
12306 # Check whether --with-nisplussam or --without-nisplussam was given.
12307 if test "${with_nisplussam+set}" = set; then
12308 withval
="$with_nisplussam"
12311 echo "$ac_t""yes" 1>&6
12312 cat >> confdefs.h
<<\EOF
12313 #define WITH_NISPLUS_SAM 1
12316 with_smbpasswd_sam
=no
12319 echo "$ac_t""no" 1>&6
12323 echo "$ac_t""no" 1>&6
12328 ################################################
12329 # This test should come last because the
12330 # smbpasswd SAM is only used if another format
12331 # has not been defined
12332 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12333 echo "configure:12334: checking whether to use traditional smbpasswd file" >&5
12334 if test $with_smbpasswd_sam = yes; then
12335 echo "$ac_t""yes" 1>&6
12336 cat >> confdefs.h
<<\EOF
12337 #define WITH_SMBPASSWD_SAM 1
12342 echo "$ac_t""no" 1>&6
12343 PDBEDIT
=bin
/pdbedit
12346 ########################################################################################
12348 ## END OF TESTS FOR SAM BACKENDS.
12350 ########################################################################################
12352 #################################################
12353 # check for a NISPLUS_HOME support
12354 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12355 echo "configure:12356: checking whether to use NISPLUS_HOME" >&5
12356 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12357 if test "${with_nisplus_home+set}" = set; then
12358 withval
="$with_nisplus_home"
12361 echo "$ac_t""yes" 1>&6
12362 cat >> confdefs.h
<<\EOF
12363 #define WITH_NISPLUS_HOME 1
12368 echo "$ac_t""no" 1>&6
12372 echo "$ac_t""no" 1>&6
12377 #################################################
12378 # check for the secure socket layer
12379 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12380 echo "configure:12381: checking whether to use SSL" >&5
12381 # Check whether --with-ssl or --without-ssl was given.
12382 if test "${with_ssl+set}" = set; then
12383 withval
="$with_ssl"
12386 echo "$ac_t""yes" 1>&6
12387 cat >> confdefs.h
<<\EOF
12391 withval
="/usr/local/ssl" # default
12393 if test "${with_sslinc+set}" = set; then
12395 withval
="$with_sslinc"
12398 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12399 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12402 CFLAGS
="-I${withval} $CFLAGS"
12408 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12412 if test "${with_ssllib+set}" = set; then
12414 withval
="$with_ssllib"
12417 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12418 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12421 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12427 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12431 LIBS
="-lssl -lcrypto $LIBS"
12433 # if test ! -d ${withval}; then
12434 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12438 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12442 echo "$ac_t""no" 1>&6
12446 echo "$ac_t""no" 1>&6
12451 #################################################
12452 # check for syslog logging
12453 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12454 echo "configure:12455: checking whether to use syslog logging" >&5
12455 # Check whether --with-syslog or --without-syslog was given.
12456 if test "${with_syslog+set}" = set; then
12457 withval
="$with_syslog"
12460 echo "$ac_t""yes" 1>&6
12461 cat >> confdefs.h
<<\EOF
12462 #define WITH_SYSLOG 1
12467 echo "$ac_t""no" 1>&6
12471 echo "$ac_t""no" 1>&6
12476 #################################################
12477 # check for a shared memory profiling support
12478 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12479 echo "configure:12480: checking whether to use profiling" >&5
12480 # Check whether --with-profiling-data or --without-profiling-data was given.
12481 if test "${with_profiling_data+set}" = set; then
12482 withval
="$with_profiling_data"
12485 echo "$ac_t""yes" 1>&6
12486 cat >> confdefs.h
<<\EOF
12487 #define WITH_PROFILE 1
12492 echo "$ac_t""no" 1>&6
12496 echo "$ac_t""no" 1>&6
12502 #################################################
12503 # check for experimental disk-quotas support
12504 QUOTAOBJS
=smbd
/noquotas.o
12506 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12507 echo "configure:12508: checking whether to support disk-quotas" >&5
12508 # Check whether --with-quotas or --without-quotas was given.
12509 if test "${with_quotas+set}" = set; then
12510 withval
="$with_quotas"
12513 echo "$ac_t""yes" 1>&6
12514 QUOTAOBJS
=smbd
/quotas.o
12517 echo "$ac_t""no" 1>&6
12521 echo "$ac_t""no" 1>&6
12527 #################################################
12528 # check for experimental utmp accounting
12530 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12531 echo "configure:12532: checking whether to support utmp accounting" >&5
12532 # Check whether --with-utmp or --without-utmp was given.
12533 if test "${with_utmp+set}" = set; then
12534 withval
="$with_utmp"
12537 echo "$ac_t""yes" 1>&6
12538 cat >> confdefs.h
<<\EOF
12539 #define WITH_UTMP 1
12544 echo "$ac_t""no" 1>&6
12548 echo "$ac_t""no" 1>&6
12553 #################################################
12554 # check for MS Dfs support
12556 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12557 echo "configure:12558: checking whether to support Microsoft Dfs" >&5
12558 # Check whether --with-msdfs or --without-msdfs was given.
12559 if test "${with_msdfs+set}" = set; then
12560 withval
="$with_msdfs"
12563 echo "$ac_t""yes" 1>&6
12564 cat >> confdefs.h
<<\EOF
12565 #define WITH_MSDFS 1
12570 echo "$ac_t""no" 1>&6
12574 echo "$ac_t""no" 1>&6
12579 #################################################
12580 # should we build libsmbclient?
12582 LIBSMBCLIENT_SHARED
=
12584 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12585 echo "configure:12586: checking whether to build the libsmbclient shared library" >&5
12586 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12587 if test "${with_libsmbclient+set}" = set; then
12588 withval
="$with_libsmbclient"
12591 if test $BLDSHARED = true
; then
12592 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12593 LIBSMBCLIENT
=libsmbclient
12594 echo "$ac_t""yes" 1>&6
12596 echo "$ac_t""no shared library support" 1>&6
12600 echo "$ac_t""no" 1>&6
12604 echo "$ac_t""no" 1>&6
12609 #################################################
12610 # these tests are taken from the GNU fileutils package
12611 echo "checking how to get filesystem space usage" 1>&6
12612 echo "configure:12613: checking how to get filesystem space usage" >&5
12615 # Test for statvfs64.
12616 if test $space = no
; then
12618 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12619 echo "configure:12620: checking statvfs64 function (SVR4)" >&5
12620 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12621 echo $ac_n "(cached) $ac_c" 1>&6
12623 if test "$cross_compiling" = yes; then
12624 fu_cv_sys_stat_statvfs64
=cross
12626 cat > conftest.
$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12630 #if defined(HAVE_UNISTD_H)
12631 #include <unistd.h>
12633 #include <sys/types.h>
12634 #include <sys/statvfs.h>
12637 struct statvfs64 fsd;
12638 exit (statvfs64 (".", &fsd));
12641 if { (eval echo configure
:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12643 fu_cv_sys_stat_statvfs64
=yes
12645 echo "configure: failed program was:" >&5
12646 cat conftest.
$ac_ext >&5
12648 fu_cv_sys_stat_statvfs64
=no
12655 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12656 if test $fu_cv_sys_stat_statvfs64 = yes; then
12658 cat >> confdefs.h
<<\EOF
12659 #define STAT_STATVFS64 1
12665 # Perform only the link test since it seems there are no variants of the
12666 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12667 # because that got a false positive on SCO OSR5. Adding the declaration
12668 # of a `struct statvfs' causes this test to fail (as it should) on such
12669 # systems. That system is reported to work fine with STAT_STATFS4 which
12670 # is what it gets when this test fails.
12671 if test $space = no
; then
12673 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12674 echo "configure:12675: checking statvfs function (SVR4)" >&5
12675 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12676 echo $ac_n "(cached) $ac_c" 1>&6
12678 cat > conftest.
$ac_ext <<EOF
12679 #line 12680 "configure"
12680 #include "confdefs.h"
12681 #include <sys/types.h>
12682 #include <sys/statvfs.h>
12684 struct statvfs fsd; statvfs (0, &fsd);
12687 if { (eval echo configure
:12688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12689 fu_cv_sys_stat_statvfs
=yes
12691 echo "configure: failed program was:" >&5
12692 cat conftest.
$ac_ext >&5
12694 fu_cv_sys_stat_statvfs
=no
12699 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12700 if test $fu_cv_sys_stat_statvfs = yes; then
12702 cat >> confdefs.h
<<\EOF
12703 #define STAT_STATVFS 1
12709 if test $space = no
; then
12710 # DEC Alpha running OSF/1
12711 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12712 echo "configure:12713: checking for 3-argument statfs function (DEC OSF/1)" >&5
12713 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12716 if test "$cross_compiling" = yes; then
12717 fu_cv_sys_stat_statfs3_osf1
=no
12719 cat > conftest.
$ac_ext <<EOF
12720 #line 12721 "configure"
12721 #include "confdefs.h"
12723 #include <sys/param.h>
12724 #include <sys/types.h>
12725 #include <sys/mount.h>
12730 exit (statfs (".", &fsd, sizeof (struct statfs)));
12733 if { (eval echo configure
:12734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12735 fu_cv_sys_stat_statfs3_osf1
=yes
12737 echo "configure: failed program was:" >&5
12738 cat conftest.
$ac_ext >&5
12740 fu_cv_sys_stat_statfs3_osf1
=no
12747 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12748 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12750 cat >> confdefs.h
<<\EOF
12751 #define STAT_STATFS3_OSF1 1
12757 if test $space = no
; then
12759 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12760 echo "configure:12761: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12761 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12762 echo $ac_n "(cached) $ac_c" 1>&6
12764 if test "$cross_compiling" = yes; then
12765 fu_cv_sys_stat_statfs2_bsize
=no
12767 cat > conftest.
$ac_ext <<EOF
12768 #line 12769 "configure"
12769 #include "confdefs.h"
12771 #ifdef HAVE_SYS_PARAM_H
12772 #include <sys/param.h>
12774 #ifdef HAVE_SYS_MOUNT_H
12775 #include <sys/mount.h>
12777 #ifdef HAVE_SYS_VFS_H
12778 #include <sys/vfs.h>
12784 exit (statfs (".", &fsd));
12787 if { (eval echo configure
:12788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12789 fu_cv_sys_stat_statfs2_bsize
=yes
12791 echo "configure: failed program was:" >&5
12792 cat conftest.
$ac_ext >&5
12794 fu_cv_sys_stat_statfs2_bsize
=no
12801 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12802 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12804 cat >> confdefs.h
<<\EOF
12805 #define STAT_STATFS2_BSIZE 1
12811 if test $space = no
; then
12813 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12814 echo "configure:12815: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12815 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12816 echo $ac_n "(cached) $ac_c" 1>&6
12818 if test "$cross_compiling" = yes; then
12819 fu_cv_sys_stat_statfs4
=no
12821 cat > conftest.
$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 #include <sys/types.h>
12825 #include <sys/statfs.h>
12829 exit (statfs (".", &fsd, sizeof fsd, 0));
12832 if { (eval echo configure
:12833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12834 fu_cv_sys_stat_statfs4
=yes
12836 echo "configure: failed program was:" >&5
12837 cat conftest.
$ac_ext >&5
12839 fu_cv_sys_stat_statfs4
=no
12846 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12847 if test $fu_cv_sys_stat_statfs4 = yes; then
12849 cat >> confdefs.h
<<\EOF
12850 #define STAT_STATFS4 1
12856 if test $space = no
; then
12857 # 4.4BSD and NetBSD
12858 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12859 echo "configure:12860: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12860 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12863 if test "$cross_compiling" = yes; then
12864 fu_cv_sys_stat_statfs2_fsize
=no
12866 cat > conftest.
$ac_ext <<EOF
12867 #line 12868 "configure"
12868 #include "confdefs.h"
12869 #include <sys/types.h>
12870 #ifdef HAVE_SYS_PARAM_H
12871 #include <sys/param.h>
12873 #ifdef HAVE_SYS_MOUNT_H
12874 #include <sys/mount.h>
12880 exit (statfs (".", &fsd));
12883 if { (eval echo configure
:12884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12885 fu_cv_sys_stat_statfs2_fsize
=yes
12887 echo "configure: failed program was:" >&5
12888 cat conftest.
$ac_ext >&5
12890 fu_cv_sys_stat_statfs2_fsize
=no
12897 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12898 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12900 cat >> confdefs.h
<<\EOF
12901 #define STAT_STATFS2_FSIZE 1
12907 if test $space = no
; then
12909 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12910 echo "configure:12911: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12911 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12912 echo $ac_n "(cached) $ac_c" 1>&6
12914 if test "$cross_compiling" = yes; then
12915 fu_cv_sys_stat_fs_data
=no
12917 cat > conftest.
$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 #include <sys/types.h>
12921 #ifdef HAVE_SYS_PARAM_H
12922 #include <sys/param.h>
12924 #ifdef HAVE_SYS_MOUNT_H
12925 #include <sys/mount.h>
12927 #ifdef HAVE_SYS_FS_TYPES_H
12928 #include <sys/fs_types.h>
12932 struct fs_data fsd;
12933 /* Ultrix's statfs returns 1 for success,
12934 0 for not mounted, -1 for failure. */
12935 exit (statfs (".", &fsd) != 1);
12938 if { (eval echo configure
:12939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12940 fu_cv_sys_stat_fs_data
=yes
12942 echo "configure: failed program was:" >&5
12943 cat conftest.
$ac_ext >&5
12945 fu_cv_sys_stat_fs_data
=no
12952 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12953 if test $fu_cv_sys_stat_fs_data = yes; then
12955 cat >> confdefs.h
<<\EOF
12956 #define STAT_STATFS2_FS_DATA 1
12963 # As a gating factor for large file support, in order to
12964 # use <4GB files we must have the following minimal support
12966 # long long, and a 64 bit off_t or off64_t.
12967 # If we don't have all of these then disable large
12970 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12971 echo "configure:12972: checking if large file support can be enabled" >&5
12972 cat > conftest.
$ac_ext <<EOF
12973 #line 12974 "configure"
12974 #include "confdefs.h"
12976 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12977 #include <sys/types.h>
12986 if { (eval echo configure
:12987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12988 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12990 echo "configure: failed program was:" >&5
12991 cat conftest.
$ac_ext >&5
12993 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12996 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12997 echo "$ac_t""yes" 1>&6
12998 cat >> confdefs.h
<<\EOF
12999 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13003 echo "$ac_t""no" 1>&6
13006 # Check whether --with-spinlocks or --without-spinlocks was given.
13007 if test "${with_spinlocks+set}" = set; then
13008 withval
="$with_spinlocks"
13012 if test "x$with_spinlocks" = "xyes"; then
13013 cat >> confdefs.h
<<\EOF
13014 #define USE_SPINLOCKS 1
13018 case "$host_cpu" in
13020 cat >> confdefs.h
<<\EOF
13021 #define SPARC_SPINLOCKS 1
13026 i386|i486|i586|i686
)
13027 cat >> confdefs.h
<<\EOF
13028 #define INTEL_SPINLOCKS 1
13034 cat >> confdefs.h
<<\EOF
13035 #define MIPS_SPINLOCKS 1
13041 cat >> confdefs.h
<<\EOF
13042 #define POWERPC_SPINLOCKS 1
13049 #################################################
13050 # check for ACL support
13052 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13053 echo "configure:13054: checking whether to support ACLs" >&5
13054 # Check whether --with-acl-support or --without-acl-support was given.
13055 if test "${with_acl_support+set}" = set; then
13056 withval
="$with_acl_support"
13062 echo "$ac_t""Using UnixWare ACLs" 1>&6
13063 cat >> confdefs.h
<<\EOF
13064 #define HAVE_UNIXWARE_ACLS 1
13069 echo "$ac_t""Using solaris ACLs" 1>&6
13070 cat >> confdefs.h
<<\EOF
13071 #define HAVE_SOLARIS_ACLS 1
13076 echo "$ac_t""Using HPUX ACLs" 1>&6
13077 cat >> confdefs.h
<<\EOF
13078 #define HAVE_HPUX_ACLS 1
13083 echo "$ac_t""Using IRIX ACLs" 1>&6
13084 cat >> confdefs.h
<<\EOF
13085 #define HAVE_IRIX_ACLS 1
13090 echo "$ac_t""Using AIX ACLs" 1>&6
13091 cat >> confdefs.h
<<\EOF
13092 #define HAVE_AIX_ACLS 1
13097 echo "$ac_t""Using Tru64 ACLs" 1>&6
13098 cat >> confdefs.h
<<\EOF
13099 #define HAVE_TRU64_ACLS 1
13102 LIBS
="$LIBS -lpacl"
13105 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13106 echo "configure:13107: checking for acl_get_file in -lacl" >&5
13107 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13109 echo $ac_n "(cached) $ac_c" 1>&6
13111 ac_save_LIBS
="$LIBS"
13113 cat > conftest.
$ac_ext <<EOF
13114 #line 13115 "configure"
13115 #include "confdefs.h"
13116 /* Override any gcc2 internal prototype to avoid an error. */
13117 /* We use char because int might match the return type of a gcc2
13118 builtin and then its argument prototype would still apply. */
13119 char acl_get_file();
13125 if { (eval echo configure
:13126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13127 eval "ac_cv_lib_$ac_lib_var=yes"
13129 echo "configure: failed program was:" >&5
13130 cat conftest.
$ac_ext >&5
13132 eval "ac_cv_lib_$ac_lib_var=no"
13135 LIBS
="$ac_save_LIBS"
13138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13139 echo "$ac_t""yes" 1>&6
13140 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13142 cat >> confdefs.h
<<EOF
13143 #define $ac_tr_lib 1
13149 echo "$ac_t""no" 1>&6
13152 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13153 echo "configure:13154: checking for ACL support" >&5
13154 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13155 echo $ac_n "(cached) $ac_c" 1>&6
13158 cat > conftest.
$ac_ext <<EOF
13159 #line 13160 "configure"
13160 #include "confdefs.h"
13161 #include <sys/types.h>
13162 #include <sys/acl.h>
13164 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13167 if { (eval echo configure
:13168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13169 samba_cv_HAVE_POSIX_ACLS
=yes
13171 echo "configure: failed program was:" >&5
13172 cat conftest.
$ac_ext >&5
13174 samba_cv_HAVE_POSIX_ACLS
=no
13179 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13180 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13181 echo "$ac_t""Using posix ACLs" 1>&6
13182 cat >> confdefs.h
<<\EOF
13183 #define HAVE_POSIX_ACLS 1
13186 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13187 echo "configure:13188: checking for acl_get_perm_np" >&5
13188 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13189 echo $ac_n "(cached) $ac_c" 1>&6
13192 cat > conftest.
$ac_ext <<EOF
13193 #line 13194 "configure"
13194 #include "confdefs.h"
13195 #include <sys/types.h>
13196 #include <sys/acl.h>
13198 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13201 if { (eval echo configure
:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13203 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13205 echo "configure: failed program was:" >&5
13206 cat conftest.
$ac_ext >&5
13208 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13213 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13214 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13215 cat >> confdefs.h
<<\EOF
13216 #define HAVE_ACL_GET_PERM_NP 1
13225 echo "$ac_t""no" 1>&6
13226 cat >> confdefs.h
<<\EOF
13227 #define HAVE_NO_ACLS 1
13233 cat >> confdefs.h
<<\EOF
13234 #define HAVE_NO_ACLS 1
13237 echo "$ac_t""no" 1>&6
13242 #################################################
13243 # check for the historical SAMBA installation
13245 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13246 # Put all binaries under the /usr/local/samba/bin directory.
13250 #################################################
13251 # Check whether winbind is supported on this platform. If so we need to
13252 # build and install client programs (WINBIND_TARGETS), sbin programs
13253 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13255 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13256 echo "configure:13257: checking whether to build winbind" >&5
13258 # Initially, the value of $host_os decides whether winbind is supported
13266 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13267 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13271 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13278 winbind_no_reason
=", unsupported on $host_os"
13282 # Check the setting of --with-winbindd
13284 # Check whether --with-winbind or --without-winbind was given.
13285 if test "${with_winbind+set}" = set; then
13286 withval
="$with_winbind"
13300 # We need unix domain sockets for winbind
13302 if test x
"$HAVE_WINBIND" = x
"yes"; then
13303 if test x
"$samba_cv_unixsocket" = x
"no"; then
13304 winbind_no_reason
=", no unix domain socket support on $host_os"
13309 # Display test results
13311 if test x
"$HAVE_WINBIND" = x
"yes"; then
13313 echo "$ac_t""yes" 1>&6
13315 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13316 echo "configure:13317: checking whether to enable winbind auth challenge/response code" >&5
13317 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13318 if test "${with_winbind_auth_challenge+set}" = set; then
13319 withval
="$with_winbind_auth_challenge"
13323 cat >> confdefs.h
<<\EOF
13324 #define WITH_WINBIND_AUTH_CRAP 1
13327 echo "$ac_t""yes" 1>&6
13330 echo "$ac_t""no" 1>&6
13334 echo "$ac_t""no" 1>&6
13339 # Check for FreeBSD problem with getgroups
13341 WINBIND_TARGETS
="bin/wbinfo"
13342 WINBIND_STARGETS
="bin/winbindd"
13345 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
13348 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13353 case "$with_pam" in
13355 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13359 echo "$ac_t""no$winbind_no_reason" 1>&6
13362 WINBIND_STARGETS
=""
13363 WINBIND_LTARGETS
=""
13364 WINBIND_PAM_TARGETS
=""
13368 # Check for FreeBSD problem with getgroups
13369 # It returns EGID too many times in the list of groups
13370 # and causes a security problem
13371 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13372 echo "configure:13373: checking whether or not getgroups returns EGID too many times" >&5
13373 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13374 echo $ac_n "(cached) $ac_c" 1>&6
13376 if test "$cross_compiling" = yes; then
13377 samba_cv_have_getgroups_too_many_egids
=cross
13379 cat > conftest.
$ac_ext <<EOF
13380 #line 13381 "configure"
13381 #include "confdefs.h"
13383 #include <sys/types.h>
13386 int main(int argc, char *argv[])
13391 n = getgroups(n, &groups);
13392 /* Could actually pass back the number of EGIDs there ... */
13393 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13396 if { (eval echo configure
:13397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13398 samba_cv_have_getgroups_too_many_egids
=no
13400 echo "configure: failed program was:" >&5
13401 cat conftest.
$ac_ext >&5
13403 samba_cv_have_getgroups_too_many_egids
=yes
13410 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13411 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
13412 cat >> confdefs.h
<<\EOF
13413 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13418 # Substitution time!
13427 # Solaris has some extra fields in struct passwd that need to be
13428 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13429 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13432 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13433 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13434 # [#include <pwd.h>])
13436 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13437 echo "configure:13438: checking whether struct passwd has pw_comment" >&5
13438 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13439 echo $ac_n "(cached) $ac_c" 1>&6
13442 cat > conftest.
$ac_ext <<EOF
13443 #line 13444 "configure"
13444 #include "confdefs.h"
13447 struct passwd p; p.pw_comment;
13450 if { (eval echo configure
:13451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13452 samba_cv_passwd_pw_comment
=yes
13454 echo "configure: failed program was:" >&5
13455 cat conftest.
$ac_ext >&5
13457 samba_cv_passwd_pw_comment
=no
13462 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13463 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
13464 cat >> confdefs.h
<<\EOF
13465 #define HAVE_PASSWD_PW_COMMENT 1
13470 #AC_CHECK_MEMBER(struct passwd.pw_age,
13471 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13472 # [#include <pwd.h>])
13474 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13475 echo "configure:13476: checking whether struct passwd has pw_age" >&5
13476 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13480 cat > conftest.
$ac_ext <<EOF
13481 #line 13482 "configure"
13482 #include "confdefs.h"
13485 struct passwd p; p.pw_age;
13488 if { (eval echo configure
:13489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13490 samba_cv_passwd_pw_age
=yes
13492 echo "configure: failed program was:" >&5
13493 cat conftest.
$ac_ext >&5
13495 samba_cv_passwd_pw_age
=no
13500 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13501 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
13502 cat >> confdefs.h
<<\EOF
13503 #define HAVE_PASSWD_PW_AGE 1
13508 #################################################
13509 # Check to see if we should use the included popt
13511 # Check whether --with-included-popt or --without-included-popt was given.
13512 if test "${with_included_popt+set}" = set; then
13513 withval
="$with_included_popt"
13525 if test x
"$INCLUDED_POPT" != x
"yes"; then
13526 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13527 echo "configure:13528: checking for poptGetContext in -lpopt" >&5
13528 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13530 echo $ac_n "(cached) $ac_c" 1>&6
13532 ac_save_LIBS
="$LIBS"
13533 LIBS
="-lpopt $LIBS"
13534 cat > conftest.
$ac_ext <<EOF
13535 #line 13536 "configure"
13536 #include "confdefs.h"
13537 /* Override any gcc2 internal prototype to avoid an error. */
13538 /* We use char because int might match the return type of a gcc2
13539 builtin and then its argument prototype would still apply. */
13540 char poptGetContext();
13546 if { (eval echo configure
:13547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13548 eval "ac_cv_lib_$ac_lib_var=yes"
13550 echo "configure: failed program was:" >&5
13551 cat conftest.
$ac_ext >&5
13553 eval "ac_cv_lib_$ac_lib_var=no"
13556 LIBS
="$ac_save_LIBS"
13559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13560 echo "$ac_t""yes" 1>&6
13563 echo "$ac_t""no" 1>&6
13569 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13570 echo "configure:13571: checking whether to use included popt" >&5
13571 if test x
"$INCLUDED_POPT" = x
"yes"; then
13572 echo "$ac_t""$srcdir/popt" 1>&6
13573 BUILD_POPT
='$(POPT_OBJS)'
13574 FLAGS1
="-I$srcdir/popt"
13576 echo "$ac_t""no" 1>&6
13577 LIBS
="$LIBS -lpopt"
13582 #################################################
13583 # final configure stuff
13584 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13585 echo "configure:13586: checking configure summary" >&5
13586 if test "$cross_compiling" = yes; then
13587 echo "configure: warning: cannot run when cross-compiling" 1>&2
13589 cat > conftest.
$ac_ext <<EOF
13590 #line 13591 "configure"
13591 #include "confdefs.h"
13592 #include "${srcdir-.}/tests/summary.c"
13594 if { (eval echo configure
:13595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13596 echo "$ac_t""yes" 1>&6
13598 echo "configure: failed program was:" >&5
13599 cat conftest.
$ac_ext >&5
13601 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13611 cat > confcache
<<\EOF
13612 # This file is a shell script that caches the results of configure
13613 # tests run on this system so they can be shared between configure
13614 # scripts and configure runs. It is not useful on other systems.
13615 # If it contains results you don't want to keep, you may remove or edit it.
13617 # By default, configure uses ./config.cache as the cache file,
13618 # creating it if it does not exist already. You can give configure
13619 # the --cache-file=FILE option to use a different cache file; that is
13620 # what configure does when it calls configure scripts in
13621 # subdirectories, so they share the cache.
13622 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13623 # config.status only pays attention to the cache file if you give it the
13624 # --recheck option to rerun configure.
13627 # The following way of writing the cache mishandles newlines in values,
13628 # but we know of no workaround that is simple, portable, and efficient.
13629 # So, don't put newlines in cache variables' values.
13630 # Ultrix sh set writes to stderr and can't be redirected directly,
13631 # and sets the high bit in the cache file unless we assign to the vars.
13633 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13635 # `set' does not quote correctly, so add quotes (double-quote substitution
13636 # turns \\\\ into \\, and sed turns \\ into \).
13638 -e "s/'/'\\\\''/g" \
13639 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13642 # `set' quotes correctly as required by POSIX, so do not add quotes.
13643 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13646 if cmp -s $cache_file confcache
; then
13649 if test -w $cache_file; then
13650 echo "updating cache $cache_file"
13651 cat confcache
> $cache_file
13653 echo "not updating unwritable cache $cache_file"
13658 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13660 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13661 # Let make expand exec_prefix.
13662 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13664 # Any assignment to VPATH causes Sun make to only execute
13665 # the first set of double-colon rules, so remove it if not needed.
13666 # If there is a colon in the path, we need to keep it.
13667 if test "x$srcdir" = x.
; then
13668 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13671 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13673 DEFS
=-DHAVE_CONFIG_H
13675 # Without the "./", some shells look in PATH for config.status.
13676 : ${CONFIG_STATUS=./config.status}
13678 echo creating
$CONFIG_STATUS
13679 rm -f $CONFIG_STATUS
13680 cat > $CONFIG_STATUS <<EOF
13682 # Generated automatically by configure.
13683 # Run this file to recreate the current configuration.
13684 # This directory was configured as follows,
13685 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13687 # $0 $ac_configure_args
13689 # Compiler output produced by configure, useful for debugging
13690 # configure, is in ./config.log if it exists.
13692 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13695 case "\$ac_option" in
13696 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13697 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13698 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13699 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13700 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13702 -help | --help | --hel | --he | --h)
13703 echo "\$ac_cs_usage"; exit 0 ;;
13704 *) echo "\$ac_cs_usage"; exit 1 ;;
13708 ac_given_srcdir=$srcdir
13709 ac_given_INSTALL="$INSTALL"
13711 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13713 cat >> $CONFIG_STATUS <<EOF
13715 # Protect against being on the right side of a sed subst in config.status.
13716 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13717 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13721 s%@CFLAGS@%$CFLAGS%g
13722 s%@CPPFLAGS@%$CPPFLAGS%g
13723 s%@CXXFLAGS@%$CXXFLAGS%g
13724 s%@FFLAGS@%$FFLAGS%g
13726 s%@LDFLAGS@%$LDFLAGS%g
13728 s%@exec_prefix@%$exec_prefix%g
13729 s%@prefix@%$prefix%g
13730 s%@program_transform_name@%$program_transform_name%g
13731 s%@bindir@%$bindir%g
13732 s%@sbindir@%$sbindir%g
13733 s%@libexecdir@%$libexecdir%g
13734 s%@datadir@%$datadir%g
13735 s%@sysconfdir@%$sysconfdir%g
13736 s%@sharedstatedir@%$sharedstatedir%g
13737 s%@localstatedir@%$localstatedir%g
13738 s%@libdir@%$libdir%g
13739 s%@includedir@%$includedir%g
13740 s%@oldincludedir@%$oldincludedir%g
13741 s%@infodir@%$infodir%g
13742 s%@mandir@%$mandir%g
13743 s%@codepagedir@%$codepagedir%g
13744 s%@configdir@%$configdir%g
13745 s%@lockdir@%$lockdir%g
13746 s%@piddir@%$piddir%g
13747 s%@logfilebase@%$logfilebase%g
13748 s%@privatedir@%$privatedir%g
13749 s%@swatdir@%$swatdir%g
13750 s%@RUNPROG@%$RUNPROG%g
13751 s%@MPROGS@%$MPROGS%g
13752 s%@LDSHFLAGS@%$LDSHFLAGS%g
13753 s%@SONAMEFLAG@%$SONAMEFLAG%g
13755 s%@HOST_OS@%$HOST_OS%g
13756 s%@PAM_MOD@%$PAM_MOD%g
13757 s%@PDBEDIT@%$PDBEDIT%g
13759 s%@WRAP32@%$WRAP32%g
13760 s%@WRAPPROG@%$WRAPPROG%g
13761 s%@PICFLAG@%$PICFLAG%g
13762 s%@PICSUFFIX@%$PICSUFFIX%g
13763 s%@SHLIBEXT@%$SHLIBEXT%g
13764 s%@BLDSHARED@%$BLDSHARED%g
13765 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13766 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13768 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13769 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13770 s%@INSTALL_DATA@%$INSTALL_DATA%g
13772 s%@passwd_program@%$passwd_program%g
13773 s%@BROKEN_CC@%$BROKEN_CC%g
13775 s%@host_alias@%$host_alias%g
13776 s%@host_cpu@%$host_cpu%g
13777 s%@host_vendor@%$host_vendor%g
13778 s%@host_os@%$host_os%g
13779 s%@target@%$target%g
13780 s%@target_alias@%$target_alias%g
13781 s%@target_cpu@%$target_cpu%g
13782 s%@target_vendor@%$target_vendor%g
13783 s%@target_os@%$target_os%g
13785 s%@build_alias@%$build_alias%g
13786 s%@build_cpu@%$build_cpu%g
13787 s%@build_vendor@%$build_vendor%g
13788 s%@build_os@%$build_os%g
13790 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13791 s%@LIBOBJS@%$LIBOBJS%g
13792 s%@TERMLIBS@%$TERMLIBS%g
13793 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13795 s%@DYNEXP@%$DYNEXP%g
13796 s%@LDAPLIBS@%$LDAPLIBS%g
13797 s%@QUOTAOBJS@%$QUOTAOBJS%g
13798 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13799 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13800 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13801 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13802 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13803 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13804 s%@BUILD_POPT@%$BUILD_POPT%g
13805 s%@FLAGS1@%$FLAGS1%g
13806 s%@builddir@%$builddir%g
13811 cat >> $CONFIG_STATUS <<\EOF
13813 # Split the substitutions into bite-sized pieces for seds with
13814 # small command number limits, like on Digital OSF/1 and HP-UX.
13815 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13816 ac_file
=1 # Number of current file.
13817 ac_beg
=1 # First line for current file.
13818 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13821 while $ac_more_lines; do
13822 if test $ac_beg -gt 1; then
13823 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13825 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13827 if test ! -s conftest.s
$ac_file; then
13828 ac_more_lines
=false
13829 rm -f conftest.s
$ac_file
13831 if test -z "$ac_sed_cmds"; then
13832 ac_sed_cmds
="sed -f conftest.s$ac_file"
13834 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13836 ac_file
=`expr $ac_file + 1`
13838 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13841 if test -z "$ac_sed_cmds"; then
13846 cat >> $CONFIG_STATUS <<EOF
13848 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13850 cat >> $CONFIG_STATUS <<\EOF
13851 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13854 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13855 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13856 *) ac_file_in
="${ac_file}.in" ;;
13859 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13861 # Remove last slash and all that follows it. Not all systems have dirname.
13862 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13863 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13864 # The file is in a subdirectory.
13865 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13866 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13867 # A "../" for each directory in $ac_dir_suffix.
13868 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13870 ac_dir_suffix
= ac_dots
=
13873 case "$ac_given_srcdir" in
13875 if test -z "$ac_dots"; then top_srcdir
=.
13876 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13877 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13878 *) # Relative path.
13879 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13880 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13883 case "$ac_given_INSTALL" in
13884 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13885 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13888 echo creating
"$ac_file"
13890 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13892 *Makefile
*) ac_comsub
="1i\\
13893 # $configure_input" ;;
13897 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13899 s%@configure_input@%$configure_input%g
13900 s%@srcdir@%$srcdir%g
13901 s%@top_srcdir@%$top_srcdir%g
13902 s%@INSTALL@%$INSTALL%g
13903 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13910 # ac_d sets the value in "#define NAME VALUE" lines.
13911 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13912 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13915 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13916 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13917 ac_uB
='\([ ]\)%\1#\2define\3'
13920 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13921 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13922 ac_eB
='$%\1#\2define\3'
13926 if test "${CONFIG_HEADERS+set}" != set; then
13928 cat >> $CONFIG_STATUS <<EOF
13929 CONFIG_HEADERS="include/config.h"
13931 cat >> $CONFIG_STATUS <<\EOF
13933 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13936 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13937 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13938 *) ac_file_in
="${ac_file}.in" ;;
13941 echo creating
$ac_file
13943 rm -f conftest.frag conftest.
in conftest.out
13944 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13945 cat $ac_file_inputs > conftest.
in
13949 # Transform confdefs.h into a sed script conftest.vals that substitutes
13950 # the proper values into config.h.in to produce config.h. And first:
13951 # Protect against being on the right side of a sed subst in config.status.
13952 # Protect against being in an unquoted here document in config.status.
13953 rm -f conftest.vals
13954 cat > conftest.hdr
<<\EOF
13957 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13961 sed -n -f conftest.hdr confdefs.h > conftest.vals
13964 # This sed command replaces #undef with comments. This is necessary, for
13965 # example, in the case of _POSIX_SOURCE, which is predefined and required
13966 # on some systems where configure will not decide to define it.
13967 cat >> conftest.vals <<\EOF
13968 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13971 # Break up conftest.vals because some shells have a limit on
13972 # the size of here documents, and old seds have small limits too.
13974 rm -f conftest.tail
13977 ac_lines=`grep -c . conftest.vals
`
13978 # grep -c gives empty output for an empty file on some AIX systems.
13979 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13980 # Write a limited-size here document to conftest.frag.
13981 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13982 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13984 sed -f conftest.frag conftest.in > conftest.out
13986 mv conftest.out conftest.in
13987 ' >> $CONFIG_STATUS
13988 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13989 rm -f conftest.vals
13990 mv conftest.tail conftest.vals
13992 rm -f conftest.vals
13994 cat >> $CONFIG_STATUS <<\EOF
13995 rm -f conftest.frag conftest.h
13996 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13997 cat conftest.in >> conftest.h
13999 if cmp -s $ac_file conftest.h 2>/dev/null; then
14000 echo "$ac_file is unchanged"
14003 # Remove last slash and all that follows it. Not all systems have dirname.
14004 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14005 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14006 # The file is in a subdirectory.
14007 test ! -d "$ac_dir" && mkdir "$ac_dir"
14010 mv conftest.h $ac_file
14015 cat >> $CONFIG_STATUS <<EOF
14018 cat >> $CONFIG_STATUS <<\EOF
14022 chmod +x $CONFIG_STATUS
14023 rm -fr confdefs* $ac_clean_files
14024 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1