3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 --enable-static[=PKGS] build static libraries [default=yes]"
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 --disable-libtool-lock avoid locking (might break parallel builds)"
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
50 --with-tdbsam Include experimental TDB password database
51 --without-tdbsam Don't include experimental TDB password database (default)"
53 --with-ldap Include LDAP support
54 --without-ldap Don't include LDAP support (default)"
56 --with-nisplus Include NISPLUS password database support
57 --without-nisplus Don't include NISPLUS password database support (default)"
59 --with-nisplus-home Include NISPLUS_HOME support
60 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
62 --with-ssl Include SSL support
63 --without-ssl Don't include SSL support (default)
64 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
66 --with-syslog Include experimental SYSLOG support
67 --without-syslog Don't include SYSLOG support (default)"
69 --with-profile Include profile support
70 --without-profile Don't include profile support (default)"
72 --with-netatalk Include experimental Netatalk support
73 --without-netatalk Don't include experimental Netatalk support (default)"
75 --with-quotas Include experimental disk-quota support
76 --without-quotas Don't include experimental disk-quota support (default)"
78 --with-utmp Include experimental utmp accounting
79 --without-utmp Don't include experimental utmp accounting (default)"
81 --with-msdfs Include MS Dfs support
82 --without-msdfs Don't include MS Dfs support (default)"
84 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
86 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
88 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
90 --with-spinlocks use spin locks instead of fcntl locks "
92 --with-acl-support Include ACL support
93 --without-acl-support Don't include ACL support (default)"
95 # Initialize some variables set by options.
96 # The variables have the same names as the options, with
97 # dashes changed to underlines.
99 cache_file
=.
/config.cache
108 program_transform_name
=s
,x
,x
,
116 bindir
='${exec_prefix}/bin'
117 sbindir
='${exec_prefix}/sbin'
118 libexecdir
='${exec_prefix}/libexec'
119 datadir
='${prefix}/share'
120 sysconfdir
='${prefix}/etc'
121 sharedstatedir
='${prefix}/com'
122 localstatedir
='${prefix}/var'
123 libdir
='${exec_prefix}/lib'
124 includedir
='${prefix}/include'
125 oldincludedir
='/usr/include'
126 infodir
='${prefix}/info'
127 mandir
='${prefix}/man'
129 # Initialize some other variables.
132 SHELL
=${CONFIG_SHELL-/bin/sh}
133 # Maximum number of lines to put in a shell here document.
140 # If the previous option needs an argument, assign it.
141 if test -n "$ac_prev"; then
142 eval "$ac_prev=\$ac_option"
148 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
152 # Accept the important Cygnus configure options, so we can diagnose typos.
156 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
158 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
159 bindir
="$ac_optarg" ;;
161 -build |
--build |
--buil |
--bui |
--bu)
163 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
164 build
="$ac_optarg" ;;
166 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
167 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
168 ac_prev
=cache_file
;;
169 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
170 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
171 cache_file
="$ac_optarg" ;;
173 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
175 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
177 datadir
="$ac_optarg" ;;
179 -disable-* |
--disable-*)
180 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}=no" ;;
188 -enable-* |
--enable-*)
189 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
190 # Reject names that are not valid shell variable names.
191 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
192 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
194 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
199 eval "enable_${ac_feature}='$ac_optarg'" ;;
201 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
202 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
203 |
--exec |
--exe |
--ex)
204 ac_prev
=exec_prefix
;;
205 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
206 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
207 |
--exec=* |
--exe=* |
--ex=*)
208 exec_prefix
="$ac_optarg" ;;
210 -gas |
--gas |
--ga |
--g)
211 # Obsolete; use --with-gas.
214 -help |
--help |
--hel |
--he)
215 # Omit some internal or obsolete options to make the list less imposing.
216 # This message is too long to be a string in the A/UX 3.1 sh.
218 Usage: configure [options] [host]
219 Options: [defaults in brackets after descriptions]
221 --cache-file=FILE cache test results in FILE
222 --help print this message
223 --no-create do not create output files
224 --quiet, --silent do not print \`checking...' messages
225 --version print the version of autoconf that created configure
226 Directory and file names:
227 --prefix=PREFIX install architecture-independent files in PREFIX
229 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
231 --bindir=DIR user executables in DIR [EPREFIX/bin]
232 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
233 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
234 --datadir=DIR read-only architecture-independent data in DIR
236 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
237 --sharedstatedir=DIR modifiable architecture-independent data in DIR
239 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
240 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
241 --includedir=DIR C header files in DIR [PREFIX/include]
242 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
243 --infodir=DIR info documentation in DIR [PREFIX/info]
244 --mandir=DIR man documentation in DIR [PREFIX/man]
245 --srcdir=DIR find the sources in DIR [configure dir or ..]
246 --program-prefix=PREFIX prepend PREFIX to installed program names
247 --program-suffix=SUFFIX append SUFFIX to installed program names
248 --program-transform-name=PROGRAM
249 run sed PROGRAM on installed program names
253 --build=BUILD configure for building on BUILD [BUILD=HOST]
254 --host=HOST configure for HOST [guessed]
255 --target=TARGET configure for TARGET [TARGET=HOST]
256 Features and packages:
257 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
258 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
259 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
260 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
261 --x-includes=DIR X include files are in DIR
262 --x-libraries=DIR X library files are in DIR
264 if test -n "$ac_help"; then
265 echo "--enable and --with options recognized:$ac_help"
269 -host |
--host |
--hos |
--ho)
271 -host=* |
--host=* |
--hos=* |
--ho=*)
274 -includedir |
--includedir |
--includedi |
--included |
--include \
275 |
--includ |
--inclu |
--incl |
--inc)
276 ac_prev
=includedir
;;
277 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
278 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
279 includedir
="$ac_optarg" ;;
281 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
283 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
284 infodir
="$ac_optarg" ;;
286 -libdir |
--libdir |
--libdi |
--libd)
288 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
289 libdir
="$ac_optarg" ;;
291 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
292 |
--libexe |
--libex |
--libe)
293 ac_prev
=libexecdir
;;
294 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
295 |
--libexe=* |
--libex=* |
--libe=*)
296 libexecdir
="$ac_optarg" ;;
298 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
299 |
--localstate |
--localstat |
--localsta |
--localst \
300 |
--locals |
--local |
--loca |
--loc |
--lo)
301 ac_prev
=localstatedir
;;
302 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
303 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
304 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
305 localstatedir
="$ac_optarg" ;;
307 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
309 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
310 mandir
="$ac_optarg" ;;
313 # Obsolete; use --without-fp.
316 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
320 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
321 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
324 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
325 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
326 |
--oldin |
--oldi |
--old |
--ol |
--o)
327 ac_prev
=oldincludedir
;;
328 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
329 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
330 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
331 oldincludedir
="$ac_optarg" ;;
333 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
335 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
336 prefix
="$ac_optarg" ;;
338 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
339 |
--program-pre |
--program-pr |
--program-p)
340 ac_prev
=program_prefix
;;
341 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
342 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
343 program_prefix
="$ac_optarg" ;;
345 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
346 |
--program-suf |
--program-su |
--program-s)
347 ac_prev
=program_suffix
;;
348 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
349 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
350 program_suffix
="$ac_optarg" ;;
352 -program-transform-name |
--program-transform-name \
353 |
--program-transform-nam |
--program-transform-na \
354 |
--program-transform-n |
--program-transform- \
355 |
--program-transform |
--program-transfor \
356 |
--program-transfo |
--program-transf \
357 |
--program-trans |
--program-tran \
358 |
--progr-tra |
--program-tr |
--program-t)
359 ac_prev
=program_transform_name
;;
360 -program-transform-name=* |
--program-transform-name=* \
361 |
--program-transform-nam=* |
--program-transform-na=* \
362 |
--program-transform-n=* |
--program-transform-=* \
363 |
--program-transform=* |
--program-transfor=* \
364 |
--program-transfo=* |
--program-transf=* \
365 |
--program-trans=* |
--program-tran=* \
366 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
367 program_transform_name
="$ac_optarg" ;;
369 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
370 |
-silent |
--silent |
--silen |
--sile |
--sil)
373 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
375 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
377 sbindir
="$ac_optarg" ;;
379 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
380 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
381 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
383 ac_prev
=sharedstatedir
;;
384 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
385 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
386 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
388 sharedstatedir
="$ac_optarg" ;;
390 -site |
--site |
--sit)
392 -site=* |
--site=* |
--sit=*)
395 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
397 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
398 srcdir
="$ac_optarg" ;;
400 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
401 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
402 ac_prev
=sysconfdir
;;
403 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
404 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
405 sysconfdir
="$ac_optarg" ;;
407 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
409 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
410 target
="$ac_optarg" ;;
412 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
415 -version |
--version |
--versio |
--versi |
--vers)
416 echo "configure generated by autoconf version 2.13"
420 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package
=`echo $ac_package| sed 's/-/_/g'`
430 eval "with_${ac_package}='$ac_optarg'" ;;
432 -without-* |
--without-*)
433 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package
=`echo $ac_package| sed 's/-/_/g'`
439 eval "with_${ac_package}=no" ;;
442 # Obsolete; use --with-x.
445 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
446 |
--x-incl |
--x-inc |
--x-in |
--x-i)
447 ac_prev
=x_includes
;;
448 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
449 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
450 x_includes
="$ac_optarg" ;;
452 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
453 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
454 ac_prev
=x_libraries
;;
455 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
456 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
457 x_libraries
="$ac_optarg" ;;
459 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
463 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
464 echo "configure: warning: $ac_option: invalid host type" 1>&2
466 if test "x$nonopt" != xNONE
; then
467 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
475 if test -n "$ac_prev"; then
476 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
479 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
481 # File descriptor usage:
484 # 2 errors and warnings
485 # 3 some systems may open it to /dev/tty
486 # 4 used on the Kubota Titan
487 # 6 checking for... messages and results
488 # 5 compiler messages saved in config.log
489 if test "$silent" = yes; then
497 This file contains any messages produced by compilers while
498 running configure, to aid debugging if configure makes a mistake.
501 # Strip out --no-create and --no-recursion so they do not pile up.
502 # Also quote any args containing shell metacharacters.
507 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
508 |
--no-cr |
--no-c) ;;
509 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
510 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
511 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
512 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
513 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
518 # Only set these to C if already set. These must not be set unconditionally
519 # because not all systems understand e.g. LANG=C (notably SCO).
520 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
521 # Non-C LC_CTYPE values break the ctype check.
522 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
523 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
524 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
525 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
527 # confdefs.h avoids OS command line length limits that DEFS can exceed.
528 rm -rf conftest
* confdefs.h
529 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
532 # A filename unique to this package, relative to the directory that
533 # configure is in, which we can look for to find out if srcdir is correct.
534 ac_unique_file
=include
/includes.h
536 # Find the source files, if location was not specified.
537 if test -z "$srcdir"; then
538 ac_srcdir_defaulted
=yes
539 # Try the directory containing this script, then its parent.
541 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
542 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
544 if test ! -r $srcdir/$ac_unique_file; then
548 ac_srcdir_defaulted
=no
550 if test ! -r $srcdir/$ac_unique_file; then
551 if test "$ac_srcdir_defaulted" = yes; then
552 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
554 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
557 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
559 # Prefer explicitly selected file to automatically selected ones.
560 if test -z "$CONFIG_SITE"; then
561 if test "x$prefix" != xNONE
; then
562 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
564 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
567 for ac_site_file
in $CONFIG_SITE; do
568 if test -r "$ac_site_file"; then
569 echo "loading site script $ac_site_file"
574 if test -r "$cache_file"; then
575 echo "loading cache $cache_file"
578 echo "creating cache $cache_file"
583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
584 ac_cpp
='$CPP $CPPFLAGS'
585 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
586 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
587 cross_compiling
=$ac_cv_prog_cc_cross
591 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
592 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
593 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
600 ac_n
= ac_c
='\c' ac_t
=
605 # we want to be compatibe with older versions of Samba
618 # compile with optimisation and without debugging by default
619 CFLAGS
=${CFLAGS-"-O"}
621 # Extract the first word of "gcc", so it can be a program name with args.
622 set dummy gcc
; ac_word
=$2
623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
624 echo "configure:625: checking for $ac_word" >&5
625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
628 if test -n "$CC"; then
629 ac_cv_prog_CC
="$CC" # Let the user override the test.
631 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
633 for ac_dir
in $ac_dummy; do
634 test -z "$ac_dir" && ac_dir
=.
635 if test -f $ac_dir/$ac_word; then
644 if test -n "$CC"; then
645 echo "$ac_t""$CC" 1>&6
647 echo "$ac_t""no" 1>&6
650 if test -z "$CC"; then
651 # Extract the first word of "cc", so it can be a program name with args.
652 set dummy cc
; ac_word
=$2
653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654 echo "configure:655: checking for $ac_word" >&5
655 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
658 if test -n "$CC"; then
659 ac_cv_prog_CC
="$CC" # Let the user override the test.
661 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
664 for ac_dir
in $ac_dummy; do
665 test -z "$ac_dir" && ac_dir
=.
666 if test -f $ac_dir/$ac_word; then
667 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
676 if test $ac_prog_rejected = yes; then
677 # We found a bogon in the path, so make sure we never use it.
678 set dummy
$ac_cv_prog_CC
680 if test $# -gt 0; then
681 # We chose a different compiler from the bogus one.
682 # However, it has the same basename, so the bogon will be chosen
683 # first if we set CC to just the basename; use the full file name.
685 set dummy
"$ac_dir/$ac_word" "$@"
693 if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
696 echo "$ac_t""no" 1>&6
699 if test -z "$CC"; then
702 # Extract the first word of "cl", so it can be a program name with args.
703 set dummy cl
; ac_word
=$2
704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
705 echo "configure:706: checking for $ac_word" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 if test -n "$CC"; then
710 ac_cv_prog_CC
="$CC" # Let the user override the test.
712 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
714 for ac_dir
in $ac_dummy; do
715 test -z "$ac_dir" && ac_dir
=.
716 if test -f $ac_dir/$ac_word; then
725 if test -n "$CC"; then
726 echo "$ac_t""$CC" 1>&6
728 echo "$ac_t""no" 1>&6
733 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
736 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
737 echo "configure:738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
741 ac_cpp
='$CPP $CPPFLAGS'
742 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
743 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
744 cross_compiling
=$ac_cv_prog_cc_cross
746 cat > conftest.
$ac_ext << EOF
748 #line 749 "configure"
749 #include "confdefs.h"
753 if { (eval echo configure
:754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
754 ac_cv_prog_cc_works
=yes
755 # If we can't run a trivial program, we are probably using a cross compiler.
756 if (.
/conftest
; exit) 2>/dev
/null
; then
757 ac_cv_prog_cc_cross
=no
759 ac_cv_prog_cc_cross
=yes
762 echo "configure: failed program was:" >&5
763 cat conftest.
$ac_ext >&5
764 ac_cv_prog_cc_works
=no
768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
769 ac_cpp
='$CPP $CPPFLAGS'
770 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
771 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
772 cross_compiling
=$ac_cv_prog_cc_cross
774 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
775 if test $ac_cv_prog_cc_works = no
; then
776 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
780 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
781 cross_compiling
=$ac_cv_prog_cc_cross
783 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
784 echo "configure:785: checking whether we are using GNU C" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 cat > conftest.c
<<EOF
793 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
800 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
802 if test $ac_cv_prog_gcc = yes; then
808 ac_test_CFLAGS
="${CFLAGS+set}"
809 ac_save_CFLAGS
="$CFLAGS"
811 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
812 echo "configure:813: checking whether ${CC-cc} accepts -g" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 echo 'void f(){}' > conftest.c
817 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
826 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
827 if test "$ac_test_CFLAGS" = set; then
828 CFLAGS
="$ac_save_CFLAGS"
829 elif test $ac_cv_prog_cc_g = yes; then
830 if test "$GCC" = yes; then
836 if test "$GCC" = yes; then
844 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
845 if test -f $ac_dir/install-sh
; then
847 ac_install_sh
="$ac_aux_dir/install-sh -c"
849 elif test -f $ac_dir/install.sh
; then
851 ac_install_sh
="$ac_aux_dir/install.sh -c"
855 if test -z "$ac_aux_dir"; then
856 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
858 ac_config_guess
=$ac_aux_dir/config.guess
859 ac_config_sub
=$ac_aux_dir/config.sub
860 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
862 # Find a good install program. We prefer a C program (faster),
863 # so one script is as good as another. But avoid the broken or
864 # incompatible versions:
865 # SysV /etc/install, /usr/sbin/install
866 # SunOS /usr/etc/install
869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
872 # ./install, which can be erroneously created by make from ./install.sh.
873 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
874 echo "configure:875: checking for a BSD compatible install" >&5
875 if test -z "$INSTALL"; then
876 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
880 for ac_dir
in $PATH; do
881 # Account for people who put trailing slashes in PATH elements.
883 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
885 # OSF1 and SCO ODT 3.0 have their own names for install.
886 # Don't use installbsd from OSF since it installs stuff as root
888 for ac_prog
in ginstall scoinst
install; do
889 if test -f $ac_dir/$ac_prog; then
890 if test $ac_prog = install &&
891 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
892 # AIX install. It has an incompatible calling convention.
895 ac_cv_path_install
="$ac_dir/$ac_prog -c"
906 if test "${ac_cv_path_install+set}" = set; then
907 INSTALL
="$ac_cv_path_install"
909 # As a last resort, use the slow shell script. We don't cache a
910 # path for INSTALL within a source directory, because that will
911 # break other packages using the cache if that directory is
912 # removed, or if the path is relative.
913 INSTALL
="$ac_install_sh"
916 echo "$ac_t""$INSTALL" 1>&6
918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
919 # It thinks the first close brace ends the variable substitution.
920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
924 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
926 for ac_prog
in gawk mawk nawk
awk
928 # Extract the first word of "$ac_prog", so it can be a program name with args.
929 set dummy
$ac_prog; ac_word
=$2
930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931 echo "configure:932: checking for $ac_word" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 if test -n "$AWK"; then
936 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
938 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
940 for ac_dir
in $ac_dummy; do
941 test -z "$ac_dir" && ac_dir
=.
942 if test -f $ac_dir/$ac_word; then
943 ac_cv_prog_AWK
="$ac_prog"
950 AWK
="$ac_cv_prog_AWK"
951 if test -n "$AWK"; then
952 echo "$ac_t""$AWK" 1>&6
954 echo "$ac_t""no" 1>&6
957 test -n "$AWK" && break
960 # Check whether --enable-shared or --disable-shared was given.
961 if test "${enable_shared+set}" = set; then
962 enableval
="$enable_shared"
965 yes) enable_shared
=yes ;;
966 no
) enable_shared
=no
;;
969 # Look at the argument we got. We use all the common list separators.
970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
971 for pkg
in $enableval; do
972 if test "X$pkg" = "X$p"; then
983 # Check whether --enable-static or --disable-static was given.
984 if test "${enable_static+set}" = set; then
985 enableval
="$enable_static"
988 yes) enable_static
=yes ;;
989 no
) enable_static
=no
;;
992 # Look at the argument we got. We use all the common list separators.
993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
994 for pkg
in $enableval; do
995 if test "X$pkg" = "X$p"; then
1006 # Check whether --enable-fast-install or --disable-fast-install was given.
1007 if test "${enable_fast_install+set}" = set; then
1008 enableval
="$enable_fast_install"
1009 p
=${PACKAGE-default}
1010 case "$enableval" in
1011 yes) enable_fast_install
=yes ;;
1012 no
) enable_fast_install
=no
;;
1014 enable_fast_install
=no
1015 # Look at the argument we got. We use all the common list separators.
1016 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1017 for pkg
in $enableval; do
1018 if test "X$pkg" = "X$p"; then
1019 enable_fast_install
=yes
1026 enable_fast_install
=yes
1030 # Make sure we can run config.sub.
1031 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1032 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1035 echo $ac_n "checking host system type""... $ac_c" 1>&6
1036 echo "configure:1037: checking host system type" >&5
1039 case "$host_alias" in
1043 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1044 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1046 *) host_alias
=$nonopt ;;
1050 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1051 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1052 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1053 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1054 echo "$ac_t""$host" 1>&6
1056 echo $ac_n "checking build system type""... $ac_c" 1>&6
1057 echo "configure:1058: checking build system type" >&5
1060 case "$build_alias" in
1063 NONE
) build_alias
=$host_alias ;;
1064 *) build_alias
=$nonopt ;;
1068 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1069 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1070 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1071 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1072 echo "$ac_t""$build" 1>&6
1074 # Extract the first word of "ranlib", so it can be a program name with args.
1075 set dummy ranlib
; ac_word
=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 if test -n "$RANLIB"; then
1082 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1086 for ac_dir
in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir
=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_prog_RANLIB
="ranlib"
1094 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1097 RANLIB
="$ac_cv_prog_RANLIB"
1098 if test -n "$RANLIB"; then
1099 echo "$ac_t""$RANLIB" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1105 if test "${with_gnu_ld+set}" = set; then
1106 withval
="$with_gnu_ld"
1107 test "$withval" = no || with_gnu_ld
=yes
1113 if test "$ac_cv_prog_gcc" = yes; then
1114 # Check if gcc -print-prog-name=ld gives a path.
1115 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1116 echo "configure:1117: checking for ld used by GCC" >&5
1117 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1119 # Accept absolute paths.
1120 [\\/]* |
[A-Za-z
]:[\\/]*)
1121 re_direlt
='/[^/][^/]*/\.\./'
1122 # Canonicalize the path of ld
1123 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1124 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1125 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1127 test -z "$LD" && LD
="$ac_prog"
1130 # If it fails, then pretend we aren't using GCC.
1134 # If it is relative, then search for the first ld in PATH.
1138 elif test "$with_gnu_ld" = yes; then
1139 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1140 echo "configure:1141: checking for GNU ld" >&5
1142 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1143 echo "configure:1144: checking for non-GNU ld" >&5
1145 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -z "$LD"; then
1149 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1150 for ac_dir
in $PATH; do
1151 test -z "$ac_dir" && ac_dir
=.
1152 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1153 ac_cv_path_LD
="$ac_dir/$ac_prog"
1154 # Check to see if the program is GNU ld. I'd rather use --version,
1155 # but apparently some GNU ld's only accept -v.
1156 # Break only if it was the GNU/non-GNU ld that we prefer.
1157 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1158 test "$with_gnu_ld" != no
&& break
1160 test "$with_gnu_ld" != yes && break
1166 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1171 if test -n "$LD"; then
1172 echo "$ac_t""$LD" 1>&6
1174 echo "$ac_t""no" 1>&6
1176 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1177 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1178 echo "configure:1179: checking if the linker ($LD) is GNU ld" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1183 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1184 ac_cv_prog_gnu_ld
=yes
1186 ac_cv_prog_gnu_ld
=no
1190 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1193 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1194 echo "configure:1195: checking for BSD-compatible nm" >&5
1195 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 if test -n "$NM"; then
1199 # Let the user override the test.
1202 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1203 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1204 test -z "$ac_dir" && ac_dir
=.
1205 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1206 # Check to see if the nm accepts a BSD-compat flag.
1207 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1208 # nm: unknown option "B" ignored
1209 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1210 ac_cv_path_NM
="$ac_dir/nm -B"
1212 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1213 ac_cv_path_NM
="$ac_dir/nm -p"
1216 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1217 continue # so that we can try to find one that supports BSD flags
1222 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1227 echo "$ac_t""$NM" 1>&6
1229 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether ln -s works" >&5
1231 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1235 if ln -s X conftestdata
2>/dev
/null
1238 ac_cv_prog_LN_S
="ln -s"
1243 LN_S
="$ac_cv_prog_LN_S"
1244 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1245 echo "$ac_t""yes" 1>&6
1247 echo "$ac_t""no" 1>&6
1252 NONE
) lt_target
="$host" ;;
1253 *) lt_target
="$target" ;;
1256 # Check for any special flags to pass to ltconfig.
1257 libtool_flags
="--cache-file=$cache_file"
1258 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1259 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1260 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1261 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1262 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1265 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1266 if test "${enable_libtool_lock+set}" = set; then
1267 enableval
="$enable_libtool_lock"
1271 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1272 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1274 # Some flags need to be propagated to the compiler or linker for good
1276 case "$lt_target" in
1278 # Find out which ABI we are using.
1279 echo '#line 1280 "configure"' > conftest.
$ac_ext
1280 if { (eval echo configure
:1281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1281 case "`/usr/bin/file conftest.o`" in
1297 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1298 SAVE_CFLAGS
="$CFLAGS"
1299 CFLAGS
="$CFLAGS -belf"
1300 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether the C compiler needs -belf" >&5
1302 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 cat > conftest.
$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1313 if { (eval echo configure
:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1315 lt_cv_cc_needs_belf
=yes
1317 echo "configure: failed program was:" >&5
1318 cat conftest.
$ac_ext >&5
1320 lt_cv_cc_needs_belf
=no
1325 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1326 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1328 CFLAGS
="$SAVE_CFLAGS"
1336 # Save cache, so that ltconfig can load it
1337 cat > confcache
<<\EOF
1338 # This file is a shell script that caches the results of configure
1339 # tests run on this system so they can be shared between configure
1340 # scripts and configure runs. It is not useful on other systems.
1341 # If it contains results you don't want to keep, you may remove or edit it.
1343 # By default, configure uses ./config.cache as the cache file,
1344 # creating it if it does not exist already. You can give configure
1345 # the --cache-file=FILE option to use a different cache file; that is
1346 # what configure does when it calls configure scripts in
1347 # subdirectories, so they share the cache.
1348 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1349 # config.status only pays attention to the cache file if you give it the
1350 # --recheck option to rerun configure.
1353 # The following way of writing the cache mishandles newlines in values,
1354 # but we know of no workaround that is simple, portable, and efficient.
1355 # So, don't put newlines in cache variables' values.
1356 # Ultrix sh set writes to stderr and can't be redirected directly,
1357 # and sets the high bit in the cache file unless we assign to the vars.
1359 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1361 # `set' does not quote correctly, so add quotes (double-quote substitution
1362 # turns \\\\ into \\, and sed turns \\ into \).
1364 -e "s/'/'\\\\''/g" \
1365 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1368 # `set' quotes correctly as required by POSIX, so do not add quotes.
1369 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1372 if cmp -s $cache_file confcache
; then
1375 if test -w $cache_file; then
1376 echo "updating cache $cache_file"
1377 cat confcache
> $cache_file
1379 echo "not updating unwritable cache $cache_file"
1385 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1386 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1387 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1388 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1389 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1390 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1391 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1392 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1394 # Reload cache, that may have been modified by ltconfig
1395 if test -r "$cache_file"; then
1396 echo "loading cache $cache_file"
1399 echo "creating cache $cache_file"
1404 # This can be used to rebuild libtool when needed
1405 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1407 # Always use our own libtool.
1408 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1410 # Redirect the config.log output again, so that the ltconfig log is not
1411 # clobbered by the next message.
1412 exec 5>>.
/config.log
1416 if test "x$CC" != xcc
; then
1417 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether $CC and cc understand -c and -o together" >&5
1420 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether cc understands -c and -o together" >&5
1423 set dummy
$CC; ac_cc
="`echo $2 |
1424 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1425 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 echo 'foo(){}' > conftest.c
1429 # Make sure it works both with $CC and with simple cc.
1430 # We do the test twice because some compilers refuse to overwrite an
1431 # existing .o file with -o, though they will create one.
1432 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1433 if { (eval echo configure
:1434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1434 test -f conftest.o
&& { (eval echo configure
:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1436 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1437 if test "x$CC" != xcc
; then
1438 # Test first that cc exists at all.
1439 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1440 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1441 if { (eval echo configure
:1442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1442 test -f conftest.o
&& { (eval echo configure
:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1447 # cc exists but doesn't like -o.
1448 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1453 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1458 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1459 echo "$ac_t""yes" 1>&6
1461 echo "$ac_t""no" 1>&6
1462 cat >> confdefs.h
<<\EOF
1463 #define NO_MINUS_C_MINUS_O 1
1468 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1475 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1476 echo "configure:1477: checking that the C compiler understands volatile" >&5
1477 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1481 cat > conftest.
$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 #include <sys/types.h>
1489 if { (eval echo configure
:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1491 samba_cv_volatile
=yes
1493 echo "configure: failed program was:" >&5
1494 cat conftest.
$ac_ext >&5
1496 samba_cv_volatile
=no
1501 echo "$ac_t""$samba_cv_volatile" 1>&6
1502 if test x
"$samba_cv_volatile" = x
"yes"; then
1503 cat >> confdefs.h
<<\EOF
1504 #define HAVE_VOLATILE 1
1512 # Do some error checking and defaulting for the host and target type.
1514 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1517 # 1. You are not allowed to specify --host, --target, and nonopt at the
1519 # 2. Host defaults to nonopt.
1520 # 3. If nonopt is not specified, then host defaults to the current host,
1521 # as determined by config.guess.
1522 # 4. Target and build default to nonopt.
1523 # 5. If nonopt is not specified, then target and build default to host.
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 case $host---$target---$nonopt in
1528 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1529 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1533 # Make sure we can run config.sub.
1534 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1535 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1538 echo $ac_n "checking host system type""... $ac_c" 1>&6
1539 echo "configure:1540: checking host system type" >&5
1542 case "$host_alias" in
1546 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1547 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1549 *) host_alias
=$nonopt ;;
1553 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1554 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557 echo "$ac_t""$host" 1>&6
1559 echo $ac_n "checking target system type""... $ac_c" 1>&6
1560 echo "configure:1561: checking target system type" >&5
1562 target_alias
=$target
1563 case "$target_alias" in
1566 NONE
) target_alias
=$host_alias ;;
1567 *) target_alias
=$nonopt ;;
1571 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1572 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 echo "$ac_t""$target" 1>&6
1577 echo $ac_n "checking build system type""... $ac_c" 1>&6
1578 echo "configure:1579: checking build system type" >&5
1581 case "$build_alias" in
1584 NONE
) build_alias
=$host_alias ;;
1585 *) build_alias
=$nonopt ;;
1589 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1590 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593 echo "$ac_t""$build" 1>&6
1595 test "$host_alias" != "$target_alias" &&
1596 test "$program_prefix$program_suffix$program_transform_name" = \
1598 program_prefix
=${target_alias}-
1602 *irix6
*) cat >> confdefs.h
<<\EOF
1603 #include <standards.h>
1611 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1612 echo "configure:1613: checking config.cache system type" >&5
1613 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1614 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1615 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1616 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1617 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1618 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1619 echo "$ac_t""different" 1>&6
1620 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1622 echo "$ac_t""same" 1>&6
1624 ac_cv_host_system_type
="$host"
1625 ac_cv_build_system_type
="$build"
1626 ac_cv_target_system_type
="$target"
1630 # Config CPPFLAG settings for strange OS's that must be set
1631 # before other tests.
1634 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1636 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1637 echo "configure:1638: checking whether ${CC-cc} accepts -Ae" >&5
1638 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 echo 'void f(){}' > conftest.c
1642 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1643 ac_cv_prog_cc_Ae
=yes
1651 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1652 if test $ac_cv_prog_cc_Ae = yes; then
1653 CPPFLAGS
="$CPPFLAGS -Ae"
1656 # Defines needed for HPUX support.
1657 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1658 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1662 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1663 cat >> confdefs.h
<<\EOF
1664 #define USE_BOTH_CRYPT_CALLS 1
1669 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1670 cat >> confdefs.h
<<\EOF
1671 #define USE_BOTH_CRYPT_CALLS 1
1678 # AIX4.x doesn't even admit to having large
1679 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1682 echo "$ac_t""enabling large file support" 1>&6
1683 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1686 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1687 # to the existance of large files..
1688 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1689 # recommendations on large file support, however it makes the
1690 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1691 # recommendation makes the compile fail on gcc2.7. JRA.
1696 echo "$ac_t""enabling large file support" 1>&6
1697 if test "$ac_cv_prog_gcc" = yes; then
1698 ${CC-cc} -v >conftest.c
2>&1
1699 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1701 case "$ac_cv_gcc_compiler_version_number" in
1702 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1703 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1706 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1710 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1716 # Tests needed for SINIX large file support.
1719 if test $host = mips-sni-sysv4
; then
1720 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1721 echo "configure:1722: checking for LFS support" >&5
1722 old_CPPFLAGS
="$CPPFLAGS"
1723 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1724 if test "$cross_compiling" = yes; then
1725 SINIX_LFS_SUPPORT
=cross
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1733 #if _LFS64_LARGEFILE == 1
1740 if { (eval echo configure
:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1742 SINIX_LFS_SUPPORT
=yes
1744 echo "configure: failed program was:" >&5
1745 cat conftest.
$ac_ext >&5
1747 SINIX_LFS_SUPPORT
=no
1752 CPPFLAGS
="$old_CPPFLAGS"
1753 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1754 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1755 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1756 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1757 LIBS
="`getconf LFS64_LIBS` $LIBS"
1759 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1763 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1766 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1767 echo "configure:1768: checking for LFS support" >&5
1768 old_CPPFLAGS
="$CPPFLAGS"
1769 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1770 if test "$cross_compiling" = yes; then
1771 LINUX_LFS_SUPPORT
=cross
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1778 #include <sys/utsname.h>
1780 #if _LFS64_LARGEFILE == 1
1785 /* Ensure this is glibc 2.2 or higher */
1786 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1787 int libc_major = __GLIBC__;
1788 int libc_minor = __GLIBC_MINOR__;
1796 /* Ensure this is kernel 2.4 or higher */
1799 release = uts.release;
1800 major = atoi(strsep(&release, "."));
1801 minor = atoi(strsep(&release, "."));
1803 if (major > 2 || (major == 2 && minor > 3))
1812 if { (eval echo configure
:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1814 LINUX_LFS_SUPPORT
=yes
1816 echo "configure: failed program was:" >&5
1817 cat conftest.
$ac_ext >&5
1819 LINUX_LFS_SUPPORT
=no
1824 CPPFLAGS
="$old_CPPFLAGS"
1825 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1826 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1828 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1832 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1833 echo "configure:1834: checking for LFS support" >&5
1834 old_CPPFLAGS
="$CPPFLAGS"
1835 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1836 if test "$cross_compiling" = yes; then
1837 GLIBC_LFS_SUPPORT
=cross
1839 cat > conftest.
$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1845 #if _LFS64_LARGEFILE == 1
1852 if { (eval echo configure
:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1854 GLIBC_LFS_SUPPORT
=yes
1856 echo "configure: failed program was:" >&5
1857 cat conftest.
$ac_ext >&5
1859 GLIBC_LFS_SUPPORT
=no
1864 CPPFLAGS
="$old_CPPFLAGS"
1865 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1866 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1868 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1873 echo $ac_n "checking for inline""... $ac_c" 1>&6
1874 echo "configure:1875: checking for inline" >&5
1875 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1879 for ac_kw
in inline __inline__ __inline
; do
1880 cat > conftest.
$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1888 if { (eval echo configure
:1889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890 ac_cv_c_inline
=$ac_kw; break
1892 echo "configure: failed program was:" >&5
1893 cat conftest.
$ac_ext >&5
1900 echo "$ac_t""$ac_cv_c_inline" 1>&6
1901 case "$ac_cv_c_inline" in
1903 no
) cat >> confdefs.h
<<\EOF
1907 *) cat >> confdefs.h
<<EOF
1908 #define inline $ac_cv_c_inline
1913 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1914 echo "configure:1915: checking how to run the C preprocessor" >&5
1915 # On Suns, sometimes $CPP names a directory.
1916 if test -n "$CPP" && test -d "$CPP"; then
1919 if test -z "$CPP"; then
1920 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 # This must be in double quotes, not single quotes, because CPP may get
1924 # substituted into the Makefile and "${CC-cc}" will confuse make.
1926 # On the NeXT, cc -E runs the code through the compiler's parser,
1927 # not just through cpp.
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1934 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1935 { (eval echo configure
:1936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1936 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1937 if test -z "$ac_err"; then
1941 echo "configure: failed program was:" >&5
1942 cat conftest.
$ac_ext >&5
1944 CPP
="${CC-cc} -E -traditional-cpp"
1945 cat > conftest.
$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1951 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1952 { (eval echo configure
:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1953 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1954 if test -z "$ac_err"; then
1958 echo "configure: failed program was:" >&5
1959 cat conftest.
$ac_ext >&5
1961 CPP
="${CC-cc} -nologo -E"
1962 cat > conftest.
$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1968 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1969 { (eval echo configure
:1970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1970 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1971 if test -z "$ac_err"; then
1975 echo "configure: failed program was:" >&5
1976 cat conftest.
$ac_ext >&5
1985 ac_cv_prog_CPP
="$CPP"
1987 CPP
="$ac_cv_prog_CPP"
1989 ac_cv_prog_CPP
="$CPP"
1991 echo "$ac_t""$CPP" 1>&6
1993 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1994 echo "configure:1995: checking for ANSI C header files" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure
:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2009 if test -z "$ac_err"; then
2011 ac_cv_header_stdc
=yes
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 ac_cv_header_stdc
=no
2021 if test $ac_cv_header_stdc = yes; then
2022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2029 egrep "memchr" >/dev
/null
2>&1; then
2033 ac_cv_header_stdc
=no
2039 if test $ac_cv_header_stdc = yes; then
2040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2047 egrep "free" >/dev
/null
2>&1; then
2051 ac_cv_header_stdc
=no
2057 if test $ac_cv_header_stdc = yes; then
2058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2059 if test "$cross_compiling" = yes; then
2062 cat > conftest.
$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2066 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2067 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2068 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2069 int main () { int i; for (i = 0; i < 256; i++)
2070 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2074 if { (eval echo configure
:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2078 echo "configure: failed program was:" >&5
2079 cat conftest.
$ac_ext >&5
2081 ac_cv_header_stdc
=no
2089 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2090 if test $ac_cv_header_stdc = yes; then
2091 cat >> confdefs.h
<<\EOF
2092 #define STDC_HEADERS 1
2098 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2100 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2101 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_hdr that defines DIR" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.
$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #include <sys/types.h>
2115 if { (eval echo configure
:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2117 eval "ac_cv_header_dirent_$ac_safe=yes"
2119 echo "configure: failed program was:" >&5
2120 cat conftest.
$ac_ext >&5
2122 eval "ac_cv_header_dirent_$ac_safe=no"
2126 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2127 echo "$ac_t""yes" 1>&6
2128 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2129 cat >> confdefs.h
<<EOF
2130 #define $ac_tr_hdr 1
2132 ac_header_dirent
=$ac_hdr; break
2134 echo "$ac_t""no" 1>&6
2137 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2138 if test $ac_header_dirent = dirent.h
; then
2139 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2140 echo "configure:2141: checking for opendir in -ldir" >&5
2141 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 ac_save_LIBS
="$LIBS"
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 /* Override any gcc2 internal prototype to avoid an error. */
2151 /* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2159 if { (eval echo configure
:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2161 eval "ac_cv_lib_$ac_lib_var=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.
$ac_ext >&5
2166 eval "ac_cv_lib_$ac_lib_var=no"
2169 LIBS
="$ac_save_LIBS"
2172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2176 echo "$ac_t""no" 1>&6
2180 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2181 echo "configure:2182: checking for opendir in -lx" >&5
2182 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 ac_save_LIBS
="$LIBS"
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2200 if { (eval echo configure
:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2202 eval "ac_cv_lib_$ac_lib_var=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2207 eval "ac_cv_lib_$ac_lib_var=no"
2210 LIBS
="$ac_save_LIBS"
2213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2217 echo "$ac_t""no" 1>&6
2222 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2223 echo "configure:2224: checking whether time.h and sys/time.h may both be included" >&5
2224 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <sys/types.h>
2231 #include <sys/time.h>
2237 if { (eval echo configure
:2238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2239 ac_cv_header_time
=yes
2241 echo "configure: failed program was:" >&5
2242 cat conftest.
$ac_ext >&5
2244 ac_cv_header_time
=no
2249 echo "$ac_t""$ac_cv_header_time" 1>&6
2250 if test $ac_cv_header_time = yes; then
2251 cat >> confdefs.h
<<\EOF
2252 #define TIME_WITH_SYS_TIME 1
2257 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2258 echo "configure:2259: checking for sys/wait.h that is POSIX.1 compatible" >&5
2259 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 cat > conftest.
$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 #include <sys/types.h>
2266 #include <sys/wait.h>
2268 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2271 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2276 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2279 if { (eval echo configure
:2280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2281 ac_cv_header_sys_wait_h
=yes
2283 echo "configure: failed program was:" >&5
2284 cat conftest.
$ac_ext >&5
2286 ac_cv_header_sys_wait_h
=no
2291 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2292 if test $ac_cv_header_sys_wait_h = yes; then
2293 cat >> confdefs.h
<<\EOF
2294 #define HAVE_SYS_WAIT_H 1
2299 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2301 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_hdr" >&5
2304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 cat > conftest.
$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2312 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2313 { (eval echo configure
:2314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2314 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2315 if test -z "$ac_err"; then
2317 eval "ac_cv_header_$ac_safe=yes"
2320 echo "configure: failed program was:" >&5
2321 cat conftest.
$ac_ext >&5
2323 eval "ac_cv_header_$ac_safe=no"
2327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2330 cat >> confdefs.h
<<EOF
2331 #define $ac_tr_hdr 1
2335 echo "$ac_t""no" 1>&6
2339 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2341 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2343 echo "configure:2344: checking for $ac_hdr" >&5
2344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 cat > conftest.
$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2352 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2353 { (eval echo configure
:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2354 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2355 if test -z "$ac_err"; then
2357 eval "ac_cv_header_$ac_safe=yes"
2360 echo "configure: failed program was:" >&5
2361 cat conftest.
$ac_ext >&5
2363 eval "ac_cv_header_$ac_safe=no"
2367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2370 cat >> confdefs.h
<<EOF
2371 #define $ac_tr_hdr 1
2375 echo "$ac_t""no" 1>&6
2379 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2381 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2383 echo "configure:2384: checking for $ac_hdr" >&5
2384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure
:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then
2397 eval "ac_cv_header_$ac_safe=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 eval "ac_cv_header_$ac_safe=no"
2407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2410 cat >> confdefs.h
<<EOF
2411 #define $ac_tr_hdr 1
2415 echo "$ac_t""no" 1>&6
2419 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2421 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_hdr" >&5
2424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2432 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2433 { (eval echo configure
:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2434 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2435 if test -z "$ac_err"; then
2437 eval "ac_cv_header_$ac_safe=yes"
2440 echo "configure: failed program was:" >&5
2441 cat conftest.
$ac_ext >&5
2443 eval "ac_cv_header_$ac_safe=no"
2447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2450 cat >> confdefs.h
<<EOF
2451 #define $ac_tr_hdr 1
2455 echo "$ac_t""no" 1>&6
2459 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2461 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_hdr" >&5
2464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2473 { (eval echo configure
:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2474 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2475 if test -z "$ac_err"; then
2477 eval "ac_cv_header_$ac_safe=yes"
2480 echo "configure: failed program was:" >&5
2481 cat conftest.
$ac_ext >&5
2483 eval "ac_cv_header_$ac_safe=no"
2487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2488 echo "$ac_t""yes" 1>&6
2489 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2490 cat >> confdefs.h
<<EOF
2491 #define $ac_tr_hdr 1
2495 echo "$ac_t""no" 1>&6
2499 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2501 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.
$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2512 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure
:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2517 eval "ac_cv_header_$ac_safe=yes"
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2523 eval "ac_cv_header_$ac_safe=no"
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h
<<EOF
2531 #define $ac_tr_hdr 1
2535 echo "$ac_t""no" 1>&6
2539 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2541 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_hdr" >&5
2544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2552 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure
:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2557 eval "ac_cv_header_$ac_safe=yes"
2560 echo "configure: failed program was:" >&5
2561 cat conftest.
$ac_ext >&5
2563 eval "ac_cv_header_$ac_safe=no"
2567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2568 echo "$ac_t""yes" 1>&6
2569 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2570 cat >> confdefs.h
<<EOF
2571 #define $ac_tr_hdr 1
2575 echo "$ac_t""no" 1>&6
2580 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2581 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2585 cat > conftest.
$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2593 if { (eval echo configure
:2594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2595 ac_cv_header_shadow_h
=yes
2597 echo "configure: failed program was:" >&5
2598 cat conftest.
$ac_ext >&5
2600 ac_cv_header_shadow_h
=no
2603 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2604 cat >> confdefs.h
<<\EOF
2605 #define HAVE_SHADOW_H 1
2611 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2613 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_hdr" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2624 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure
:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2629 eval "ac_cv_header_$ac_safe=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 eval "ac_cv_header_$ac_safe=no"
2639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2642 cat >> confdefs.h
<<EOF
2643 #define $ac_tr_hdr 1
2647 echo "$ac_t""no" 1>&6
2651 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h
2653 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_hdr" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2664 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure
:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2669 eval "ac_cv_header_$ac_safe=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2675 eval "ac_cv_header_$ac_safe=no"
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2682 cat >> confdefs.h
<<EOF
2683 #define $ac_tr_hdr 1
2687 echo "$ac_t""no" 1>&6
2691 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2693 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.
$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2704 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure
:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2709 eval "ac_cv_header_$ac_safe=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2715 eval "ac_cv_header_$ac_safe=no"
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h
<<EOF
2723 #define $ac_tr_hdr 1
2727 echo "$ac_t""no" 1>&6
2731 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2733 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2735 echo "configure:2736: checking for $ac_hdr" >&5
2736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.
$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2744 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure
:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2749 eval "ac_cv_header_$ac_safe=yes"
2752 echo "configure: failed program was:" >&5
2753 cat conftest.
$ac_ext >&5
2755 eval "ac_cv_header_$ac_safe=no"
2759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2761 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2762 cat >> confdefs.h
<<EOF
2763 #define $ac_tr_hdr 1
2767 echo "$ac_t""no" 1>&6
2771 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2773 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_hdr" >&5
2776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2784 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure
:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2789 eval "ac_cv_header_$ac_safe=yes"
2792 echo "configure: failed program was:" >&5
2793 cat conftest.
$ac_ext >&5
2795 eval "ac_cv_header_$ac_safe=no"
2799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2800 echo "$ac_t""yes" 1>&6
2801 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2802 cat >> confdefs.h
<<EOF
2803 #define $ac_tr_hdr 1
2807 echo "$ac_t""no" 1>&6
2812 # For experimental utmp support (lastlog on some BSD-like systems)
2813 for ac_hdr
in utmp.h utmpx.h lastlog.h
2815 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_hdr" >&5
2818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.
$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2827 { (eval echo configure
:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2829 if test -z "$ac_err"; then
2831 eval "ac_cv_header_$ac_safe=yes"
2834 echo "configure: failed program was:" >&5
2835 cat conftest.
$ac_ext >&5
2837 eval "ac_cv_header_$ac_safe=no"
2841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2844 cat >> confdefs.h
<<EOF
2845 #define $ac_tr_hdr 1
2849 echo "$ac_t""no" 1>&6
2854 # For quotas on Veritas VxFS filesystems
2855 for ac_hdr
in sys
/fs
/vx_quota.h
2857 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_hdr" >&5
2860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 cat > conftest.
$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure
:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2873 eval "ac_cv_header_$ac_safe=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2879 eval "ac_cv_header_$ac_safe=no"
2883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2886 cat >> confdefs.h
<<EOF
2887 #define $ac_tr_hdr 1
2891 echo "$ac_t""no" 1>&6
2896 echo $ac_n "checking size of int""... $ac_c" 1>&6
2897 echo "configure:2898: checking size of int" >&5
2898 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 if test "$cross_compiling" = yes; then
2902 ac_cv_sizeof_int
=cross
2904 cat > conftest.
$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2910 FILE *f=fopen("conftestval", "w");
2912 fprintf(f, "%d\n", sizeof(int));
2916 if { (eval echo configure
:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2918 ac_cv_sizeof_int
=`cat conftestval`
2920 echo "configure: failed program was:" >&5
2921 cat conftest.
$ac_ext >&5
2929 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2930 cat >> confdefs.h
<<EOF
2931 #define SIZEOF_INT $ac_cv_sizeof_int
2935 echo $ac_n "checking size of long""... $ac_c" 1>&6
2936 echo "configure:2937: checking size of long" >&5
2937 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 if test "$cross_compiling" = yes; then
2941 ac_cv_sizeof_long
=cross
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2949 FILE *f=fopen("conftestval", "w");
2951 fprintf(f, "%d\n", sizeof(long));
2955 if { (eval echo configure
:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2957 ac_cv_sizeof_long
=`cat conftestval`
2959 echo "configure: failed program was:" >&5
2960 cat conftest.
$ac_ext >&5
2968 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2969 cat >> confdefs.h
<<EOF
2970 #define SIZEOF_LONG $ac_cv_sizeof_long
2974 echo $ac_n "checking size of short""... $ac_c" 1>&6
2975 echo "configure:2976: checking size of short" >&5
2976 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 if test "$cross_compiling" = yes; then
2980 ac_cv_sizeof_short
=cross
2982 cat > conftest.
$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2988 FILE *f=fopen("conftestval", "w");
2990 fprintf(f, "%d\n", sizeof(short));
2994 if { (eval echo configure
:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2996 ac_cv_sizeof_short
=`cat conftestval`
2998 echo "configure: failed program was:" >&5
2999 cat conftest.
$ac_ext >&5
3001 ac_cv_sizeof_short
=0
3007 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3008 cat >> confdefs.h
<<EOF
3009 #define SIZEOF_SHORT $ac_cv_sizeof_short
3014 echo $ac_n "checking for working const""... $ac_c" 1>&6
3015 echo "configure:3016: checking for working const" >&5
3016 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 cat > conftest.
$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3025 /* Ultrix mips cc rejects this. */
3026 typedef int charset[2]; const charset x;
3027 /* SunOS 4.1.1 cc rejects this. */
3028 char const *const *ccp;
3030 /* NEC SVR4.0.2 mips cc rejects this. */
3031 struct point {int x, y;};
3032 static struct point const zero = {0,0};
3033 /* AIX XL C 1.02.0.0 rejects this.
3034 It does not let you subtract one const X* pointer from another in an arm
3035 of an if-expression whose if-part is not a constant expression */
3036 const char *g = "string";
3037 ccp = &g + (g ? g-g : 0);
3038 /* HPUX 7.0 cc rejects these. */
3041 ccp = (char const *const *) p;
3042 { /* SCO 3.2v4 cc rejects this. */
3044 char const *s = 0 ? (char *) 0 : (char const *) 0;
3048 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3050 const int *foo = &x[0];
3053 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3054 typedef const int *iptr;
3058 { /* AIX XL C 1.02.0.0 rejects this saying
3059 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3060 struct s { int j; const int *ap[3]; };
3061 struct s *b; b->j = 5;
3063 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3069 if { (eval echo configure
:3070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3073 echo "configure: failed program was:" >&5
3074 cat conftest.
$ac_ext >&5
3081 echo "$ac_t""$ac_cv_c_const" 1>&6
3082 if test $ac_cv_c_const = no
; then
3083 cat >> confdefs.h
<<\EOF
3089 echo $ac_n "checking for inline""... $ac_c" 1>&6
3090 echo "configure:3091: checking for inline" >&5
3091 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3095 for ac_kw
in inline __inline__ __inline
; do
3096 cat > conftest.
$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3104 if { (eval echo configure
:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3106 ac_cv_c_inline
=$ac_kw; break
3108 echo "configure: failed program was:" >&5
3109 cat conftest.
$ac_ext >&5
3116 echo "$ac_t""$ac_cv_c_inline" 1>&6
3117 case "$ac_cv_c_inline" in
3119 no
) cat >> confdefs.h
<<\EOF
3123 *) cat >> confdefs.h
<<EOF
3124 #define inline $ac_cv_c_inline
3129 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3130 echo "configure:3131: checking whether byte ordering is bigendian" >&5
3131 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 ac_cv_c_bigendian
=unknown
3135 # See if sys/param.h defines the BYTE_ORDER macro.
3136 cat > conftest.
$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 #include <sys/types.h>
3140 #include <sys/param.h>
3143 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3148 if { (eval echo configure
:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3150 # It does; now see whether it defined to BIG_ENDIAN or not.
3151 cat > conftest.
$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 #include <sys/types.h>
3155 #include <sys/param.h>
3158 #if BYTE_ORDER != BIG_ENDIAN
3163 if { (eval echo configure
:3164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3165 ac_cv_c_bigendian
=yes
3167 echo "configure: failed program was:" >&5
3168 cat conftest.
$ac_ext >&5
3170 ac_cv_c_bigendian
=no
3174 echo "configure: failed program was:" >&5
3175 cat conftest.
$ac_ext >&5
3178 if test $ac_cv_c_bigendian = unknown
; then
3179 if test "$cross_compiling" = yes; then
3180 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3186 /* Are we little or big endian? From Harbison&Steele. */
3190 char c[sizeof (long)];
3193 exit (u.c[sizeof (long) - 1] == 1);
3196 if { (eval echo configure
:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3198 ac_cv_c_bigendian
=no
3200 echo "configure: failed program was:" >&5
3201 cat conftest.
$ac_ext >&5
3203 ac_cv_c_bigendian
=yes
3211 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3212 if test $ac_cv_c_bigendian = yes; then
3213 cat >> confdefs.h
<<\EOF
3214 #define WORDS_BIGENDIAN 1
3219 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3220 echo "configure:3221: checking whether char is unsigned" >&5
3221 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 if test "$GCC" = yes; then
3225 # GCC predefines this symbol on systems where it applies.
3226 cat > conftest.
$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 #ifdef __CHAR_UNSIGNED__
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235 egrep "yes" >/dev
/null
2>&1; then
3237 ac_cv_c_char_unsigned
=yes
3240 ac_cv_c_char_unsigned
=no
3245 if test "$cross_compiling" = yes; then
3246 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3248 cat > conftest.
$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3252 #if !defined(__STDC__) || __STDC__ != 1
3256 volatile char c = 255; exit(c < 0);
3259 if { (eval echo configure
:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3261 ac_cv_c_char_unsigned
=yes
3263 echo "configure: failed program was:" >&5
3264 cat conftest.
$ac_ext >&5
3266 ac_cv_c_char_unsigned
=no
3274 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3275 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3276 cat >> confdefs.h
<<\EOF
3277 #define __CHAR_UNSIGNED__ 1
3283 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3284 echo "configure:3285: checking return type of signal handlers" >&5
3285 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.
$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <sys/types.h>
3297 extern "C" void (*signal (int, void (*)(int)))(int);
3299 void (*signal ()) ();
3306 if { (eval echo configure
:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3308 ac_cv_type_signal
=void
3310 echo "configure: failed program was:" >&5
3311 cat conftest.
$ac_ext >&5
3313 ac_cv_type_signal
=int
3318 echo "$ac_t""$ac_cv_type_signal" 1>&6
3319 cat >> confdefs.h
<<EOF
3320 #define RETSIGTYPE $ac_cv_type_signal
3324 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3325 echo "configure:3326: checking for uid_t in sys/types.h" >&5
3326 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 cat > conftest.
$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <sys/types.h>
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 egrep "uid_t" >/dev
/null
2>&1; then
3337 ac_cv_type_uid_t
=yes
3346 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3347 if test $ac_cv_type_uid_t = no
; then
3348 cat >> confdefs.h
<<\EOF
3352 cat >> confdefs.h
<<\EOF
3358 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3359 echo "configure:3360: checking for mode_t" >&5
3360 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <sys/types.h>
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3375 ac_cv_type_mode_t
=yes
3378 ac_cv_type_mode_t
=no
3383 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3384 if test $ac_cv_type_mode_t = no
; then
3385 cat >> confdefs.h
<<\EOF
3391 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3392 echo "configure:3393: checking for off_t" >&5
3393 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.
$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 #include <sys/types.h>
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3408 ac_cv_type_off_t
=yes
3416 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3417 if test $ac_cv_type_off_t = no
; then
3418 cat >> confdefs.h
<<\EOF
3424 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3425 echo "configure:3426: checking for size_t" >&5
3426 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 cat > conftest.
$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 #include <sys/types.h>
3438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3439 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3441 ac_cv_type_size_t
=yes
3444 ac_cv_type_size_t
=no
3449 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3450 if test $ac_cv_type_size_t = no
; then
3451 cat >> confdefs.h
<<\EOF
3452 #define size_t unsigned
3457 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3458 echo "configure:3459: checking for pid_t" >&5
3459 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <sys/types.h>
3471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3472 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3474 ac_cv_type_pid_t
=yes
3482 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3483 if test $ac_cv_type_pid_t = no
; then
3484 cat >> confdefs.h
<<\EOF
3490 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3491 echo "configure:3492: checking for st_rdev in struct stat" >&5
3492 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 cat > conftest.
$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 #include <sys/types.h>
3499 #include <sys/stat.h>
3501 struct stat s; s.st_rdev;
3504 if { (eval echo configure
:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 ac_cv_struct_st_rdev
=yes
3508 echo "configure: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3511 ac_cv_struct_st_rdev
=no
3516 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3517 if test $ac_cv_struct_st_rdev = yes; then
3518 cat >> confdefs.h
<<\EOF
3519 #define HAVE_ST_RDEV 1
3524 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3525 echo "configure:3526: checking for d_off in dirent" >&5
3526 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.
$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3534 #include <sys/types.h>
3537 struct dirent d; d.d_off;
3540 if { (eval echo configure
:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 ac_cv_dirent_d_off
=yes
3544 echo "configure: failed program was:" >&5
3545 cat conftest.
$ac_ext >&5
3547 ac_cv_dirent_d_off
=no
3552 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3553 if test $ac_cv_dirent_d_off = yes; then
3554 cat >> confdefs.h
<<\EOF
3555 #define HAVE_DIRENT_D_OFF 1
3560 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3561 echo "configure:3562: checking for ino_t" >&5
3562 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 #include <sys/types.h>
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3577 ac_cv_type_ino_t
=yes
3585 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3586 if test $ac_cv_type_ino_t = no
; then
3587 cat >> confdefs.h
<<\EOF
3588 #define ino_t unsigned
3593 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3594 echo "configure:3595: checking for loff_t" >&5
3595 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 #include <sys/types.h>
3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3610 ac_cv_type_loff_t
=yes
3613 ac_cv_type_loff_t
=no
3618 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3619 if test $ac_cv_type_loff_t = no
; then
3620 cat >> confdefs.h
<<\EOF
3621 #define loff_t off_t
3626 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3627 echo "configure:3628: checking for offset_t" >&5
3628 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.
$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <sys/types.h>
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3643 ac_cv_type_offset_t
=yes
3646 ac_cv_type_offset_t
=no
3651 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3652 if test $ac_cv_type_offset_t = no
; then
3653 cat >> confdefs.h
<<\EOF
3654 #define offset_t loff_t
3659 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3660 echo "configure:3661: checking for ssize_t" >&5
3661 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3664 cat > conftest.
$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3676 ac_cv_type_ssize_t
=yes
3679 ac_cv_type_ssize_t
=no
3684 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3685 if test $ac_cv_type_ssize_t = no
; then
3686 cat >> confdefs.h
<<\EOF
3692 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3693 echo "configure:3694: checking for wchar_t" >&5
3694 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 cat > conftest.
$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3709 ac_cv_type_wchar_t
=yes
3712 ac_cv_type_wchar_t
=no
3717 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3718 if test $ac_cv_type_wchar_t = no
; then
3719 cat >> confdefs.h
<<\EOF
3720 #define wchar_t unsigned short
3726 # we need libcups for CUPS support...
3727 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3728 echo "configure:3729: checking for httpConnect in -lcups" >&5
3729 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 ac_save_LIBS
="$LIBS"
3735 cat > conftest.
$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 /* Override any gcc2 internal prototype to avoid an error. */
3739 /* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3747 if { (eval echo configure
:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3749 eval "ac_cv_lib_$ac_lib_var=yes"
3751 echo "configure: failed program was:" >&5
3752 cat conftest.
$ac_ext >&5
3754 eval "ac_cv_lib_$ac_lib_var=no"
3757 LIBS
="$ac_save_LIBS"
3760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3764 cat >> confdefs.h
<<EOF
3765 #define $ac_tr_lib 1
3771 echo "$ac_t""no" 1>&6
3775 # we need libdl for PAM and the new VFS code
3776 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3777 echo "configure:3778: checking for dlopen in -ldl" >&5
3778 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 ac_save_LIBS
="$LIBS"
3784 cat > conftest.
$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3796 if { (eval echo configure
:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3798 eval "ac_cv_lib_$ac_lib_var=yes"
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 eval "ac_cv_lib_$ac_lib_var=no"
3806 LIBS
="$ac_save_LIBS"
3809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3812 cat >> confdefs.h
<<\EOF
3813 #define HAVE_LIBDL 1
3817 echo "$ac_t""no" 1>&6
3821 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3822 echo "configure:3823: checking for sig_atomic_t type" >&5
3823 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3827 cat > conftest.
$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3831 #include <sys/types.h>
3841 if { (eval echo configure
:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3843 samba_cv_sig_atomic_t
=yes
3845 echo "configure: failed program was:" >&5
3846 cat conftest.
$ac_ext >&5
3848 samba_cv_sig_atomic_t
=no
3853 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3854 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3855 cat >> confdefs.h
<<\EOF
3856 #define HAVE_SIG_ATOMIC_T_TYPE 1
3861 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3862 echo "configure:3863: checking for errno in errno.h" >&5
3863 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3867 cat > conftest.
$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3875 if { (eval echo configure
:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879 echo "configure: failed program was:" >&5
3880 cat conftest.
$ac_ext >&5
3882 samba_cv_have_errno
=no
3887 echo "$ac_t""$samba_cv_errno" 1>&6
3888 if test x
"$samba_cv_errno" = x
"yes"; then
3889 cat >> confdefs.h
<<\EOF
3890 #define HAVE_ERRNO_DECL 1
3895 # stupid glibc has the functions but no declaration. grrrr.
3896 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3897 echo "configure:3898: checking for setresuid declaration" >&5
3898 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3902 cat > conftest.
$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3907 int i = (int)setresuid
3910 if { (eval echo configure
:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3912 samba_cv_have_setresuid_decl
=yes
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3917 samba_cv_have_setresuid_decl
=no
3922 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3923 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3924 cat >> confdefs.h
<<\EOF
3925 #define HAVE_SETRESUID_DECL 1
3930 # stupid glibc has the functions but no declaration. grrrr.
3931 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3932 echo "configure:3933: checking for setresgid declaration" >&5
3933 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3937 cat > conftest.
$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3942 int i = (int)setresgid
3945 if { (eval echo configure
:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3947 samba_cv_have_setresgid_decl
=yes
3949 echo "configure: failed program was:" >&5
3950 cat conftest.
$ac_ext >&5
3952 samba_cv_have_setresgid_decl
=no
3957 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3958 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3959 cat >> confdefs.h
<<\EOF
3960 #define HAVE_SETRESGID_DECL 1
3965 # and glibc has setresuid under linux but the function does
3966 # nothing until kernel 2.1.44! very dumb.
3967 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3968 echo "configure:3969: checking for real setresuid" >&5
3969 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3973 if test "$cross_compiling" = yes; then
3974 samba_cv_have_setresuid
=cross
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3980 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3982 if { (eval echo configure
:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3984 samba_cv_have_setresuid
=yes
3986 echo "configure: failed program was:" >&5
3987 cat conftest.
$ac_ext >&5
3989 samba_cv_have_setresuid
=no
3996 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3997 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3998 cat >> confdefs.h
<<\EOF
3999 #define HAVE_SETRESUID 1
4004 # Do the same check for setresguid...
4006 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4007 echo "configure:4008: checking for real setresgid" >&5
4008 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4012 if test "$cross_compiling" = yes; then
4013 samba_cv_have_setresgid
=cross
4015 cat > conftest.
$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4020 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4022 if { (eval echo configure
:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4024 samba_cv_have_setresgid
=yes
4026 echo "configure: failed program was:" >&5
4027 cat conftest.
$ac_ext >&5
4029 samba_cv_have_setresgid
=no
4036 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4037 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4038 cat >> confdefs.h
<<\EOF
4039 #define HAVE_SETRESGID 1
4044 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4045 echo "configure:4046: checking for 8-bit clean memcmp" >&5
4046 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_func_memcmp_clean
=no
4052 cat > conftest.
$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4058 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4059 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4063 if { (eval echo configure
:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4065 ac_cv_func_memcmp_clean
=yes
4067 echo "configure: failed program was:" >&5
4068 cat conftest.
$ac_ext >&5
4070 ac_cv_func_memcmp_clean
=no
4077 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4078 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4081 ###############################################
4082 # test for where we get crypt() from
4083 for ac_func
in crypt
4085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4086 echo "configure:4087: checking for $ac_func" >&5
4087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.
$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* System header to define __stub macros and hopefully few prototypes,
4094 which can conflict with char $ac_func(); below. */
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4103 /* The GNU C library defines this for functions which it implements
4104 to always fail with ENOSYS. Some functions are actually named
4105 something starting with __ and the normal name is an alias. */
4106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4114 if { (eval echo configure
:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4116 eval "ac_cv_func_$ac_func=yes"
4118 echo "configure: failed program was:" >&5
4119 cat conftest.
$ac_ext >&5
4121 eval "ac_cv_func_$ac_func=no"
4126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4129 cat >> confdefs.h
<<EOF
4130 #define $ac_tr_func 1
4134 echo "$ac_t""no" 1>&6
4138 if test x
"$ac_cv_func_crypt" = x
"no"; then
4139 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4140 echo "configure:4141: checking for crypt in -lcrypt" >&5
4141 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4145 ac_save_LIBS
="$LIBS"
4146 LIBS
="-lcrypt $LIBS"
4147 cat > conftest.
$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 /* Override any gcc2 internal prototype to avoid an error. */
4151 /* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
4159 if { (eval echo configure
:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4161 eval "ac_cv_lib_$ac_lib_var=yes"
4163 echo "configure: failed program was:" >&5
4164 cat conftest.
$ac_ext >&5
4166 eval "ac_cv_lib_$ac_lib_var=no"
4169 LIBS
="$ac_save_LIBS"
4172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4174 LIBS
="$LIBS -lcrypt";
4175 cat >> confdefs.h
<<\EOF
4176 #define HAVE_CRYPT 1
4180 echo "$ac_t""no" 1>&6
4186 ###############################################
4187 # test for where we get readline() from
4188 if test "$ac_cv_header_readline_h" = "yes" ||
4189 test "$ac_cv_header_readline_readline_h" = "yes"; then
4190 # we need to also pull in termcap for some systems to use readline
4191 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
4192 echo "configure:4193: checking for tgetent in -ltermcap" >&5
4193 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
4194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 ac_save_LIBS
="$LIBS"
4198 LIBS
="-ltermcap $LIBS"
4199 cat > conftest.
$ac_ext <<EOF
4200 #line 4201 "configure"
4201 #include "confdefs.h"
4202 /* Override any gcc2 internal prototype to avoid an error. */
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4211 if { (eval echo configure
:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4213 eval "ac_cv_lib_$ac_lib_var=yes"
4215 echo "configure: failed program was:" >&5
4216 cat conftest.
$ac_ext >&5
4218 eval "ac_cv_lib_$ac_lib_var=no"
4221 LIBS
="$ac_save_LIBS"
4224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4225 echo "$ac_t""yes" 1>&6
4226 ac_tr_lib
=HAVE_LIB
`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4227 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4228 cat >> confdefs.h
<<EOF
4229 #define $ac_tr_lib 1
4232 LIBS
="-ltermcap $LIBS"
4235 echo "$ac_t""no" 1>&6
4238 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4239 echo "configure:4240: checking for rl_callback_handler_install in -lreadline" >&5
4240 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 ac_save_LIBS
="$LIBS"
4245 LIBS
="-lreadline $LIBS"
4246 cat > conftest.
$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252 char rl_callback_handler_install();
4255 rl_callback_handler_install()
4258 if { (eval echo configure
:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4260 eval "ac_cv_lib_$ac_lib_var=yes"
4262 echo "configure: failed program was:" >&5
4263 cat conftest.
$ac_ext >&5
4265 eval "ac_cv_lib_$ac_lib_var=no"
4268 LIBS
="$ac_save_LIBS"
4271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4275 cat >> confdefs.h
<<EOF
4276 #define $ac_tr_lib 1
4279 LIBS
="-lreadline $LIBS"
4282 echo "$ac_t""no" 1>&6
4288 # The following test taken from the cvs sources
4289 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4290 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4291 # libsocket.so which has a bad implementation of gethostbyname (it
4292 # only looks in /etc/hosts), so we only look for -lsocket if we need
4294 for ac_func
in connect
4296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4297 echo "configure:4298: checking for $ac_func" >&5
4298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 cat > conftest.
$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 /* System header to define __stub macros and hopefully few prototypes,
4305 which can conflict with char $ac_func(); below. */
4307 /* Override any gcc2 internal prototype to avoid an error. */
4308 /* We use char because int might match the return type of a gcc2
4309 builtin and then its argument prototype would still apply. */
4314 /* The GNU C library defines this for functions which it implements
4315 to always fail with ENOSYS. Some functions are actually named
4316 something starting with __ and the normal name is an alias. */
4317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4325 if { (eval echo configure
:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4327 eval "ac_cv_func_$ac_func=yes"
4329 echo "configure: failed program was:" >&5
4330 cat conftest.
$ac_ext >&5
4332 eval "ac_cv_func_$ac_func=no"
4337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4340 cat >> confdefs.h
<<EOF
4341 #define $ac_tr_func 1
4345 echo "$ac_t""no" 1>&6
4349 if test x
"$ac_cv_func_connect" = x
"no"; then
4352 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4353 echo "configure:4354: checking for printf in -lnsl_s" >&5
4354 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4358 ac_save_LIBS
="$LIBS"
4359 LIBS
="-lnsl_s $LIBS"
4360 cat > conftest.
$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 /* Override any gcc2 internal prototype to avoid an error. */
4364 /* We use char because int might match the return type of a gcc2
4365 builtin and then its argument prototype would still apply. */
4372 if { (eval echo configure
:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4374 eval "ac_cv_lib_$ac_lib_var=yes"
4376 echo "configure: failed program was:" >&5
4377 cat conftest.
$ac_ext >&5
4379 eval "ac_cv_lib_$ac_lib_var=no"
4382 LIBS
="$ac_save_LIBS"
4385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4386 echo "$ac_t""yes" 1>&6
4387 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4388 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4389 cat >> confdefs.h
<<EOF
4390 #define $ac_tr_lib 1
4393 LIBS
="-lnsl_s $LIBS"
4396 echo "$ac_t""no" 1>&6
4402 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4403 echo "configure:4404: checking for printf in -lnsl" >&5
4404 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 ac_save_LIBS
="$LIBS"
4410 cat > conftest.
$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */
4422 if { (eval echo configure
:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4424 eval "ac_cv_lib_$ac_lib_var=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.
$ac_ext >&5
4429 eval "ac_cv_lib_$ac_lib_var=no"
4432 LIBS
="$ac_save_LIBS"
4435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4436 echo "$ac_t""yes" 1>&6
4437 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4439 cat >> confdefs.h
<<EOF
4440 #define $ac_tr_lib 1
4446 echo "$ac_t""no" 1>&6
4452 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4453 echo "configure:4454: checking for connect in -lsocket" >&5
4454 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 ac_save_LIBS
="$LIBS"
4459 LIBS
="-lsocket $LIBS"
4460 cat > conftest.
$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4472 if { (eval echo configure
:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4474 eval "ac_cv_lib_$ac_lib_var=yes"
4476 echo "configure: failed program was:" >&5
4477 cat conftest.
$ac_ext >&5
4479 eval "ac_cv_lib_$ac_lib_var=no"
4482 LIBS
="$ac_save_LIBS"
4485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4487 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4488 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4489 cat >> confdefs.h
<<EOF
4490 #define $ac_tr_lib 1
4493 LIBS
="-lsocket $LIBS"
4496 echo "$ac_t""no" 1>&6
4502 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4503 echo "configure:4504: checking for connect in -linet" >&5
4504 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 ac_save_LIBS
="$LIBS"
4510 cat > conftest.
$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* Override any gcc2 internal prototype to avoid an error. */
4514 /* We use char because int might match the return type of a gcc2
4515 builtin and then its argument prototype would still apply. */
4522 if { (eval echo configure
:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4524 eval "ac_cv_lib_$ac_lib_var=yes"
4526 echo "configure: failed program was:" >&5
4527 cat conftest.
$ac_ext >&5
4529 eval "ac_cv_lib_$ac_lib_var=no"
4532 LIBS
="$ac_save_LIBS"
4535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4539 cat >> confdefs.h
<<EOF
4540 #define $ac_tr_lib 1
4546 echo "$ac_t""no" 1>&6
4550 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4551 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4552 # ac_cv_func_connect=yes
4553 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4554 cat >> confdefs.h
<<\EOF
4555 #define HAVE_CONNECT 1
4561 ###############################################
4562 # test for where we get get_yp_default_domain() from
4563 for ac_func
in yp_get_default_domain
4565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_func" >&5
4567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 /* System header to define __stub macros and hopefully few prototypes,
4574 which can conflict with char $ac_func(); below. */
4576 /* Override any gcc2 internal prototype to avoid an error. */
4577 /* We use char because int might match the return type of a gcc2
4578 builtin and then its argument prototype would still apply. */
4583 /* The GNU C library defines this for functions which it implements
4584 to always fail with ENOSYS. Some functions are actually named
4585 something starting with __ and the normal name is an alias. */
4586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4594 if { (eval echo configure
:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4596 eval "ac_cv_func_$ac_func=yes"
4598 echo "configure: failed program was:" >&5
4599 cat conftest.
$ac_ext >&5
4601 eval "ac_cv_func_$ac_func=no"
4606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4607 echo "$ac_t""yes" 1>&6
4608 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4609 cat >> confdefs.h
<<EOF
4610 #define $ac_tr_func 1
4614 echo "$ac_t""no" 1>&6
4618 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4619 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4620 echo "configure:4621: checking for yp_get_default_domain in -lnsl" >&5
4621 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 ac_save_LIBS
="$LIBS"
4627 cat > conftest.
$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4633 char yp_get_default_domain();
4636 yp_get_default_domain()
4639 if { (eval echo configure
:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4641 eval "ac_cv_lib_$ac_lib_var=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.
$ac_ext >&5
4646 eval "ac_cv_lib_$ac_lib_var=no"
4649 LIBS
="$ac_save_LIBS"
4652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4655 cat >> confdefs.h
<<\EOF
4656 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4660 echo "$ac_t""no" 1>&6
4665 # Check if we have execl, if not we need to compile smbrun.
4666 for ac_func
in execl
4668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4669 echo "configure:4670: checking for $ac_func" >&5
4670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 cat > conftest.
$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 /* System header to define __stub macros and hopefully few prototypes,
4677 which can conflict with char $ac_func(); below. */
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4686 /* The GNU C library defines this for functions which it implements
4687 to always fail with ENOSYS. Some functions are actually named
4688 something starting with __ and the normal name is an alias. */
4689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4697 if { (eval echo configure
:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4699 eval "ac_cv_func_$ac_func=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4704 eval "ac_cv_func_$ac_func=no"
4709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4711 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4712 cat >> confdefs.h
<<EOF
4713 #define $ac_tr_func 1
4717 echo "$ac_t""no" 1>&6
4721 if test x
"$ac_cv_func_execl" = x
"no"; then
4722 RUNPROG
="bin/smbrun"
4727 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4730 echo "configure:4731: checking for $ac_func" >&5
4731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 cat > conftest.
$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4737 /* System header to define __stub macros and hopefully few prototypes,
4738 which can conflict with char $ac_func(); below. */
4740 /* Override any gcc2 internal prototype to avoid an error. */
4741 /* We use char because int might match the return type of a gcc2
4742 builtin and then its argument prototype would still apply. */
4747 /* The GNU C library defines this for functions which it implements
4748 to always fail with ENOSYS. Some functions are actually named
4749 something starting with __ and the normal name is an alias. */
4750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4758 if { (eval echo configure
:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4760 eval "ac_cv_func_$ac_func=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4765 eval "ac_cv_func_$ac_func=no"
4770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4772 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4773 cat >> confdefs.h
<<EOF
4774 #define $ac_tr_func 1
4778 echo "$ac_t""no" 1>&6
4782 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4785 echo "configure:4786: checking for $ac_func" >&5
4786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.
$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792 /* System header to define __stub macros and hopefully few prototypes,
4793 which can conflict with char $ac_func(); below. */
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4802 /* The GNU C library defines this for functions which it implements
4803 to always fail with ENOSYS. Some functions are actually named
4804 something starting with __ and the normal name is an alias. */
4805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4813 if { (eval echo configure
:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4815 eval "ac_cv_func_$ac_func=yes"
4817 echo "configure: failed program was:" >&5
4818 cat conftest.
$ac_ext >&5
4820 eval "ac_cv_func_$ac_func=no"
4825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4827 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4828 cat >> confdefs.h
<<EOF
4829 #define $ac_tr_func 1
4833 echo "$ac_t""no" 1>&6
4837 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4840 echo "configure:4841: checking for $ac_func" >&5
4841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 cat > conftest.
$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 /* System header to define __stub macros and hopefully few prototypes,
4848 which can conflict with char $ac_func(); below. */
4850 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4857 /* The GNU C library defines this for functions which it implements
4858 to always fail with ENOSYS. Some functions are actually named
4859 something starting with __ and the normal name is an alias. */
4860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4868 if { (eval echo configure
:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4870 eval "ac_cv_func_$ac_func=yes"
4872 echo "configure: failed program was:" >&5
4873 cat conftest.
$ac_ext >&5
4875 eval "ac_cv_func_$ac_func=no"
4880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4881 echo "$ac_t""yes" 1>&6
4882 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4883 cat >> confdefs.h
<<EOF
4884 #define $ac_tr_func 1
4888 echo "$ac_t""no" 1>&6
4892 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4895 echo "configure:4896: checking for $ac_func" >&5
4896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 cat > conftest.
$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4902 /* System header to define __stub macros and hopefully few prototypes,
4903 which can conflict with char $ac_func(); below. */
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 /* We use char because int might match the return type of a gcc2
4907 builtin and then its argument prototype would still apply. */
4912 /* The GNU C library defines this for functions which it implements
4913 to always fail with ENOSYS. Some functions are actually named
4914 something starting with __ and the normal name is an alias. */
4915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4923 if { (eval echo configure
:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4925 eval "ac_cv_func_$ac_func=yes"
4927 echo "configure: failed program was:" >&5
4928 cat conftest.
$ac_ext >&5
4930 eval "ac_cv_func_$ac_func=no"
4935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4938 cat >> confdefs.h
<<EOF
4939 #define $ac_tr_func 1
4943 echo "$ac_t""no" 1>&6
4947 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
4949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4950 echo "configure:4951: checking for $ac_func" >&5
4951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4954 cat > conftest.
$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 /* System header to define __stub macros and hopefully few prototypes,
4958 which can conflict with char $ac_func(); below. */
4960 /* Override any gcc2 internal prototype to avoid an error. */
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4967 /* The GNU C library defines this for functions which it implements
4968 to always fail with ENOSYS. Some functions are actually named
4969 something starting with __ and the normal name is an alias. */
4970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
4982 echo "configure: failed program was:" >&5
4983 cat conftest.
$ac_ext >&5
4985 eval "ac_cv_func_$ac_func=no"
4990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4993 cat >> confdefs.h
<<EOF
4994 #define $ac_tr_func 1
4998 echo "$ac_t""no" 1>&6
5002 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5005 echo "configure:5006: checking for $ac_func" >&5
5006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 cat > conftest.
$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5012 /* System header to define __stub macros and hopefully few prototypes,
5013 which can conflict with char $ac_func(); below. */
5015 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */
5022 /* The GNU C library defines this for functions which it implements
5023 to always fail with ENOSYS. Some functions are actually named
5024 something starting with __ and the normal name is an alias. */
5025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5033 if { (eval echo configure
:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5035 eval "ac_cv_func_$ac_func=yes"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.
$ac_ext >&5
5040 eval "ac_cv_func_$ac_func=no"
5045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5046 echo "$ac_t""yes" 1>&6
5047 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5048 cat >> confdefs.h
<<EOF
5049 #define $ac_tr_func 1
5053 echo "$ac_t""no" 1>&6
5057 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_func" >&5
5061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 cat > conftest.
$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 /* System header to define __stub macros and hopefully few prototypes,
5068 which can conflict with char $ac_func(); below. */
5070 /* Override any gcc2 internal prototype to avoid an error. */
5071 /* We use char because int might match the return type of a gcc2
5072 builtin and then its argument prototype would still apply. */
5077 /* The GNU C library defines this for functions which it implements
5078 to always fail with ENOSYS. Some functions are actually named
5079 something starting with __ and the normal name is an alias. */
5080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5088 if { (eval echo configure
:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5090 eval "ac_cv_func_$ac_func=yes"
5092 echo "configure: failed program was:" >&5
5093 cat conftest.
$ac_ext >&5
5095 eval "ac_cv_func_$ac_func=no"
5100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5101 echo "$ac_t""yes" 1>&6
5102 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5103 cat >> confdefs.h
<<EOF
5104 #define $ac_tr_func 1
5108 echo "$ac_t""no" 1>&6
5112 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
5114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5115 echo "configure:5116: checking for $ac_func" >&5
5116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 cat > conftest.
$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5122 /* System header to define __stub macros and hopefully few prototypes,
5123 which can conflict with char $ac_func(); below. */
5125 /* Override any gcc2 internal prototype to avoid an error. */
5126 /* We use char because int might match the return type of a gcc2
5127 builtin and then its argument prototype would still apply. */
5132 /* The GNU C library defines this for functions which it implements
5133 to always fail with ENOSYS. Some functions are actually named
5134 something starting with __ and the normal name is an alias. */
5135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5143 if { (eval echo configure
:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5145 eval "ac_cv_func_$ac_func=yes"
5147 echo "configure: failed program was:" >&5
5148 cat conftest.
$ac_ext >&5
5150 eval "ac_cv_func_$ac_func=no"
5155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5156 echo "$ac_t""yes" 1>&6
5157 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5158 cat >> confdefs.h
<<EOF
5159 #define $ac_tr_func 1
5163 echo "$ac_t""no" 1>&6
5167 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5170 echo "configure:5171: checking for $ac_func" >&5
5171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 cat > conftest.
$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 /* System header to define __stub macros and hopefully few prototypes,
5178 which can conflict with char $ac_func(); below. */
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5187 /* The GNU C library defines this for functions which it implements
5188 to always fail with ENOSYS. Some functions are actually named
5189 something starting with __ and the normal name is an alias. */
5190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198 if { (eval echo configure
:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5200 eval "ac_cv_func_$ac_func=yes"
5202 echo "configure: failed program was:" >&5
5203 cat conftest.
$ac_ext >&5
5205 eval "ac_cv_func_$ac_func=no"
5210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5213 cat >> confdefs.h
<<EOF
5214 #define $ac_tr_func 1
5218 echo "$ac_t""no" 1>&6
5223 # syscall() is needed for smbwrapper.
5224 for ac_func
in syscall
5226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5227 echo "configure:5228: checking for $ac_func" >&5
5228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5231 cat > conftest.
$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234 /* System header to define __stub macros and hopefully few prototypes,
5235 which can conflict with char $ac_func(); below. */
5237 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5244 /* The GNU C library defines this for functions which it implements
5245 to always fail with ENOSYS. Some functions are actually named
5246 something starting with __ and the normal name is an alias. */
5247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5255 if { (eval echo configure
:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5257 eval "ac_cv_func_$ac_func=yes"
5259 echo "configure: failed program was:" >&5
5260 cat conftest.
$ac_ext >&5
5262 eval "ac_cv_func_$ac_func=no"
5267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5269 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5270 cat >> confdefs.h
<<EOF
5271 #define $ac_tr_func 1
5275 echo "$ac_t""no" 1>&6
5280 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_func" >&5
5284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 cat > conftest.
$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290 /* System header to define __stub macros and hopefully few prototypes,
5291 which can conflict with char $ac_func(); below. */
5293 /* Override any gcc2 internal prototype to avoid an error. */
5294 /* We use char because int might match the return type of a gcc2
5295 builtin and then its argument prototype would still apply. */
5300 /* The GNU C library defines this for functions which it implements
5301 to always fail with ENOSYS. Some functions are actually named
5302 something starting with __ and the normal name is an alias. */
5303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5311 if { (eval echo configure
:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5313 eval "ac_cv_func_$ac_func=yes"
5315 echo "configure: failed program was:" >&5
5316 cat conftest.
$ac_ext >&5
5318 eval "ac_cv_func_$ac_func=no"
5323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5325 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5326 cat >> confdefs.h
<<EOF
5327 #define $ac_tr_func 1
5331 echo "$ac_t""no" 1>&6
5335 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.
$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char $ac_func(); below. */
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5355 /* The GNU C library defines this for functions which it implements
5356 to always fail with ENOSYS. Some functions are actually named
5357 something starting with __ and the normal name is an alias. */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5366 if { (eval echo configure
:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5368 eval "ac_cv_func_$ac_func=yes"
5370 echo "configure: failed program was:" >&5
5371 cat conftest.
$ac_ext >&5
5373 eval "ac_cv_func_$ac_func=no"
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379 echo "$ac_t""yes" 1>&6
5380 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381 cat >> confdefs.h
<<EOF
5382 #define $ac_tr_func 1
5386 echo "$ac_t""no" 1>&6
5390 for ac_func
in __getcwd _getcwd
5392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_func" >&5
5394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.
$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 /* System header to define __stub macros and hopefully few prototypes,
5401 which can conflict with char $ac_func(); below. */
5403 /* Override any gcc2 internal prototype to avoid an error. */
5404 /* We use char because int might match the return type of a gcc2
5405 builtin and then its argument prototype would still apply. */
5410 /* The GNU C library defines this for functions which it implements
5411 to always fail with ENOSYS. Some functions are actually named
5412 something starting with __ and the normal name is an alias. */
5413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5421 if { (eval echo configure
:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5423 eval "ac_cv_func_$ac_func=yes"
5425 echo "configure: failed program was:" >&5
5426 cat conftest.
$ac_ext >&5
5428 eval "ac_cv_func_$ac_func=no"
5433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5434 echo "$ac_t""yes" 1>&6
5435 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5436 cat >> confdefs.h
<<EOF
5437 #define $ac_tr_func 1
5441 echo "$ac_t""no" 1>&6
5445 for ac_func
in __xstat __fxstat __lxstat
5447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5448 echo "configure:5449: checking for $ac_func" >&5
5449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5452 cat > conftest.
$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 /* System header to define __stub macros and hopefully few prototypes,
5456 which can conflict with char $ac_func(); below. */
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5465 /* The GNU C library defines this for functions which it implements
5466 to always fail with ENOSYS. Some functions are actually named
5467 something starting with __ and the normal name is an alias. */
5468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5476 if { (eval echo configure
:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5478 eval "ac_cv_func_$ac_func=yes"
5480 echo "configure: failed program was:" >&5
5481 cat conftest.
$ac_ext >&5
5483 eval "ac_cv_func_$ac_func=no"
5488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5490 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5491 cat >> confdefs.h
<<EOF
5492 #define $ac_tr_func 1
5496 echo "$ac_t""no" 1>&6
5500 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5503 echo "configure:5504: checking for $ac_func" >&5
5504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.
$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 /* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func(); below. */
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5520 /* The GNU C library defines this for functions which it implements
5521 to always fail with ENOSYS. Some functions are actually named
5522 something starting with __ and the normal name is an alias. */
5523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5531 if { (eval echo configure
:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5533 eval "ac_cv_func_$ac_func=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 eval "ac_cv_func_$ac_func=no"
5543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5545 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5546 cat >> confdefs.h
<<EOF
5547 #define $ac_tr_func 1
5551 echo "$ac_t""no" 1>&6
5555 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5558 echo "configure:5559: checking for $ac_func" >&5
5559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 cat > conftest.
$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5565 /* System header to define __stub macros and hopefully few prototypes,
5566 which can conflict with char $ac_func(); below. */
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5575 /* The GNU C library defines this for functions which it implements
5576 to always fail with ENOSYS. Some functions are actually named
5577 something starting with __ and the normal name is an alias. */
5578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5586 if { (eval echo configure
:5587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5588 eval "ac_cv_func_$ac_func=yes"
5590 echo "configure: failed program was:" >&5
5591 cat conftest.
$ac_ext >&5
5593 eval "ac_cv_func_$ac_func=no"
5598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5599 echo "$ac_t""yes" 1>&6
5600 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5601 cat >> confdefs.h
<<EOF
5602 #define $ac_tr_func 1
5606 echo "$ac_t""no" 1>&6
5610 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5613 echo "configure:5614: checking for $ac_func" >&5
5614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 cat > conftest.
$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5620 /* System header to define __stub macros and hopefully few prototypes,
5621 which can conflict with char $ac_func(); below. */
5623 /* Override any gcc2 internal prototype to avoid an error. */
5624 /* We use char because int might match the return type of a gcc2
5625 builtin and then its argument prototype would still apply. */
5630 /* The GNU C library defines this for functions which it implements
5631 to always fail with ENOSYS. Some functions are actually named
5632 something starting with __ and the normal name is an alias. */
5633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5641 if { (eval echo configure
:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5643 eval "ac_cv_func_$ac_func=yes"
5645 echo "configure: failed program was:" >&5
5646 cat conftest.
$ac_ext >&5
5648 eval "ac_cv_func_$ac_func=no"
5653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5654 echo "$ac_t""yes" 1>&6
5655 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5656 cat >> confdefs.h
<<EOF
5657 #define $ac_tr_func 1
5661 echo "$ac_t""no" 1>&6
5665 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5668 echo "configure:5669: checking for $ac_func" >&5
5669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5672 cat > conftest.
$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 /* System header to define __stub macros and hopefully few prototypes,
5676 which can conflict with char $ac_func(); below. */
5678 /* Override any gcc2 internal prototype to avoid an error. */
5679 /* We use char because int might match the return type of a gcc2
5680 builtin and then its argument prototype would still apply. */
5685 /* The GNU C library defines this for functions which it implements
5686 to always fail with ENOSYS. Some functions are actually named
5687 something starting with __ and the normal name is an alias. */
5688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5696 if { (eval echo configure
:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5698 eval "ac_cv_func_$ac_func=yes"
5700 echo "configure: failed program was:" >&5
5701 cat conftest.
$ac_ext >&5
5703 eval "ac_cv_func_$ac_func=no"
5708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5709 echo "$ac_t""yes" 1>&6
5710 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5711 cat >> confdefs.h
<<EOF
5712 #define $ac_tr_func 1
5716 echo "$ac_t""no" 1>&6
5720 for ac_func
in _write __write _fork __fork
5722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5723 echo "configure:5724: checking for $ac_func" >&5
5724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5727 cat > conftest.
$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 /* System header to define __stub macros and hopefully few prototypes,
5731 which can conflict with char $ac_func(); below. */
5733 /* Override any gcc2 internal prototype to avoid an error. */
5734 /* We use char because int might match the return type of a gcc2
5735 builtin and then its argument prototype would still apply. */
5740 /* The GNU C library defines this for functions which it implements
5741 to always fail with ENOSYS. Some functions are actually named
5742 something starting with __ and the normal name is an alias. */
5743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5751 if { (eval echo configure
:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5753 eval "ac_cv_func_$ac_func=yes"
5755 echo "configure: failed program was:" >&5
5756 cat conftest.
$ac_ext >&5
5758 eval "ac_cv_func_$ac_func=no"
5763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5766 cat >> confdefs.h
<<EOF
5767 #define $ac_tr_func 1
5771 echo "$ac_t""no" 1>&6
5775 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5778 echo "configure:5779: checking for $ac_func" >&5
5779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5782 cat > conftest.
$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 /* System header to define __stub macros and hopefully few prototypes,
5786 which can conflict with char $ac_func(); below. */
5788 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5795 /* The GNU C library defines this for functions which it implements
5796 to always fail with ENOSYS. Some functions are actually named
5797 something starting with __ and the normal name is an alias. */
5798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5806 if { (eval echo configure
:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5808 eval "ac_cv_func_$ac_func=yes"
5810 echo "configure: failed program was:" >&5
5811 cat conftest.
$ac_ext >&5
5813 eval "ac_cv_func_$ac_func=no"
5818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5821 cat >> confdefs.h
<<EOF
5822 #define $ac_tr_func 1
5826 echo "$ac_t""no" 1>&6
5830 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5833 echo "configure:5834: checking for $ac_func" >&5
5834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 cat > conftest.
$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 /* System header to define __stub macros and hopefully few prototypes,
5841 which can conflict with char $ac_func(); below. */
5843 /* Override any gcc2 internal prototype to avoid an error. */
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5850 /* The GNU C library defines this for functions which it implements
5851 to always fail with ENOSYS. Some functions are actually named
5852 something starting with __ and the normal name is an alias. */
5853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5861 if { (eval echo configure
:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5863 eval "ac_cv_func_$ac_func=yes"
5865 echo "configure: failed program was:" >&5
5866 cat conftest.
$ac_ext >&5
5868 eval "ac_cv_func_$ac_func=no"
5873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5875 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5876 cat >> confdefs.h
<<EOF
5877 #define $ac_tr_func 1
5881 echo "$ac_t""no" 1>&6
5885 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
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
5940 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5943 echo "configure:5944: checking for $ac_func" >&5
5944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5947 cat > conftest.
$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950 /* System header to define __stub macros and hopefully few prototypes,
5951 which can conflict with char $ac_func(); below. */
5953 /* Override any gcc2 internal prototype to avoid an error. */
5954 /* We use char because int might match the return type of a gcc2
5955 builtin and then its argument prototype would still apply. */
5960 /* The GNU C library defines this for functions which it implements
5961 to always fail with ENOSYS. Some functions are actually named
5962 something starting with __ and the normal name is an alias. */
5963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5971 if { (eval echo configure
:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5973 eval "ac_cv_func_$ac_func=yes"
5975 echo "configure: failed program was:" >&5
5976 cat conftest.
$ac_ext >&5
5978 eval "ac_cv_func_$ac_func=no"
5983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5984 echo "$ac_t""yes" 1>&6
5985 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5986 cat >> confdefs.h
<<EOF
5987 #define $ac_tr_func 1
5991 echo "$ac_t""no" 1>&6
5995 for ac_func
in open64 _open64 __open64 creat64
5997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5998 echo "configure:5999: checking for $ac_func" >&5
5999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6002 cat > conftest.
$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6005 /* System header to define __stub macros and hopefully few prototypes,
6006 which can conflict with char $ac_func(); below. */
6008 /* Override any gcc2 internal prototype to avoid an error. */
6009 /* We use char because int might match the return type of a gcc2
6010 builtin and then its argument prototype would still apply. */
6015 /* The GNU C library defines this for functions which it implements
6016 to always fail with ENOSYS. Some functions are actually named
6017 something starting with __ and the normal name is an alias. */
6018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6026 if { (eval echo configure
:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6028 eval "ac_cv_func_$ac_func=yes"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.
$ac_ext >&5
6033 eval "ac_cv_func_$ac_func=no"
6038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6039 echo "$ac_t""yes" 1>&6
6040 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6041 cat >> confdefs.h
<<EOF
6042 #define $ac_tr_func 1
6046 echo "$ac_t""no" 1>&6
6052 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6055 if test x
$ac_cv_func_stat64 = xno
; then
6056 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6057 echo "configure:6058: checking for stat64 in <sys/stat.h>" >&5
6058 cat > conftest.
$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6062 #if defined(HAVE_UNISTD_H)
6065 #include <sys/stat.h>
6068 struct stat64 st64; exit(stat64(".",&st64));
6071 if { (eval echo configure
:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6073 ac_cv_func_stat64
=yes
6075 echo "configure: failed program was:" >&5
6076 cat conftest.
$ac_ext >&5
6079 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6080 if test x
$ac_cv_func_stat64 = xyes
; then
6081 cat >> confdefs.h
<<\EOF
6082 #define HAVE_STAT64 1
6088 if test x
$ac_cv_func_lstat64 = xno
; then
6089 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6090 echo "configure:6091: checking for lstat64 in <sys/stat.h>" >&5
6091 cat > conftest.
$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6095 #if defined(HAVE_UNISTD_H)
6098 #include <sys/stat.h>
6101 struct stat64 st64; exit(lstat64(".",&st64));
6104 if { (eval echo configure
:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6106 ac_cv_func_lstat64
=yes
6108 echo "configure: failed program was:" >&5
6109 cat conftest.
$ac_ext >&5
6112 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6113 if test x
$ac_cv_func_lstat64 = xyes
; then
6114 cat >> confdefs.h
<<\EOF
6115 #define HAVE_LSTAT64 1
6121 if test x
$ac_cv_func_fstat64 = xno
; then
6122 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6123 echo "configure:6124: checking for fstat64 in <sys/stat.h>" >&5
6124 cat > conftest.
$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6128 #if defined(HAVE_UNISTD_H)
6131 #include <sys/stat.h>
6134 struct stat64 st64; exit(fstat64(0,&st64));
6137 if { (eval echo configure
:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6139 ac_cv_func_fstat64
=yes
6141 echo "configure: failed program was:" >&5
6142 cat conftest.
$ac_ext >&5
6145 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6146 if test x
$ac_cv_func_fstat64 = xyes
; then
6147 cat >> confdefs.h
<<\EOF
6148 #define HAVE_FSTAT64 1
6155 # If no strcasecmp, check for it in some known places
6156 # It is in -lresolv on ReliantUNIX and UnixWare
6157 # -lresolve *must* follow -lnsl for name resolution to work properly
6160 if test x
$ac_cv_func_strcasecmp = xno
; then
6161 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6162 echo "configure:6163: checking for strcasecmp in -lresolv" >&5
6163 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 ac_save_LIBS
="$LIBS"
6168 LIBS
="-lresolv $LIBS"
6169 cat > conftest.
$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6181 if { (eval echo configure
:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6183 eval "ac_cv_lib_$ac_lib_var=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.
$ac_ext >&5
6188 eval "ac_cv_lib_$ac_lib_var=no"
6191 LIBS
="$ac_save_LIBS"
6194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 LIBS
="$LIBS -lresolv"
6197 cat >> confdefs.h
<<\EOF
6198 #define HAVE_STRCASECMP 1
6202 echo "$ac_t""no" 1>&6
6208 # Check for the functions putprpwnam, set_auth_parameters,
6209 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6210 # Needed for OSF1 and HPUX.
6214 *-lsecurity*) for ac_func
in putprpwnam
6216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6217 echo "configure:6218: checking for $ac_func" >&5
6218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 cat > conftest.
$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func(); below. */
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6234 /* The GNU C library defines this for functions which it implements
6235 to always fail with ENOSYS. Some functions are actually named
6236 something starting with __ and the normal name is an alias. */
6237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6245 if { (eval echo configure
:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6247 eval "ac_cv_func_$ac_func=yes"
6249 echo "configure: failed program was:" >&5
6250 cat conftest.
$ac_ext >&5
6252 eval "ac_cv_func_$ac_func=no"
6257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6258 echo "$ac_t""yes" 1>&6
6259 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6260 cat >> confdefs.h
<<EOF
6261 #define $ac_tr_func 1
6265 echo "$ac_t""no" 1>&6
6269 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6270 echo "configure:6271: checking for putprpwnam in -lsecurity" >&5
6271 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 ac_save_LIBS
="$LIBS"
6276 LIBS
="-lsecurity $LIBS"
6277 cat > conftest.
$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6280 /* Override any gcc2 internal prototype to avoid an error. */
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6289 if { (eval echo configure
:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6291 eval "ac_cv_lib_$ac_lib_var=yes"
6293 echo "configure: failed program was:" >&5
6294 cat conftest.
$ac_ext >&5
6296 eval "ac_cv_lib_$ac_lib_var=no"
6299 LIBS
="$ac_save_LIBS"
6302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6303 echo "$ac_t""yes" 1>&6
6304 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6306 cat >> confdefs.h
<<EOF
6307 #define $ac_tr_lib 1
6310 LIBS
="-lsecurity $LIBS"
6313 echo "$ac_t""no" 1>&6
6316 for ac_func
in putprpwnam
6318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6319 echo "configure:6320: checking for $ac_func" >&5
6320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6323 cat > conftest.
$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* System header to define __stub macros and hopefully few prototypes,
6327 which can conflict with char $ac_func(); below. */
6329 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6347 if { (eval echo configure
:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6349 eval "ac_cv_func_$ac_func=yes"
6351 echo "configure: failed program was:" >&5
6352 cat conftest.
$ac_ext >&5
6354 eval "ac_cv_func_$ac_func=no"
6359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6360 echo "$ac_t""yes" 1>&6
6361 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6362 cat >> confdefs.h
<<EOF
6363 #define $ac_tr_func 1
6367 echo "$ac_t""no" 1>&6
6375 *-lsec*) for ac_func
in putprpwnam
6377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_func" >&5
6379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 cat > conftest.
$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6385 /* System header to define __stub macros and hopefully few prototypes,
6386 which can conflict with char $ac_func(); below. */
6388 /* Override any gcc2 internal prototype to avoid an error. */
6389 /* We use char because int might match the return type of a gcc2
6390 builtin and then its argument prototype would still apply. */
6395 /* The GNU C library defines this for functions which it implements
6396 to always fail with ENOSYS. Some functions are actually named
6397 something starting with __ and the normal name is an alias. */
6398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6406 if { (eval echo configure
:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6408 eval "ac_cv_func_$ac_func=yes"
6410 echo "configure: failed program was:" >&5
6411 cat conftest.
$ac_ext >&5
6413 eval "ac_cv_func_$ac_func=no"
6418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6420 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6421 cat >> confdefs.h
<<EOF
6422 #define $ac_tr_func 1
6426 echo "$ac_t""no" 1>&6
6430 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6431 echo "configure:6432: checking for putprpwnam in -lsec" >&5
6432 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6436 ac_save_LIBS
="$LIBS"
6438 cat > conftest.
$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 /* Override any gcc2 internal prototype to avoid an error. */
6442 /* We use char because int might match the return type of a gcc2
6443 builtin and then its argument prototype would still apply. */
6450 if { (eval echo configure
:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6452 eval "ac_cv_lib_$ac_lib_var=yes"
6454 echo "configure: failed program was:" >&5
6455 cat conftest.
$ac_ext >&5
6457 eval "ac_cv_lib_$ac_lib_var=no"
6460 LIBS
="$ac_save_LIBS"
6463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6467 cat >> confdefs.h
<<EOF
6468 #define $ac_tr_lib 1
6474 echo "$ac_t""no" 1>&6
6477 for ac_func
in putprpwnam
6479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6480 echo "configure:6481: checking for $ac_func" >&5
6481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6484 cat > conftest.
$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char $ac_func(); below. */
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6497 /* The GNU C library defines this for functions which it implements
6498 to always fail with ENOSYS. Some functions are actually named
6499 something starting with __ and the normal name is an alias. */
6500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6508 if { (eval echo configure
:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6510 eval "ac_cv_func_$ac_func=yes"
6512 echo "configure: failed program was:" >&5
6513 cat conftest.
$ac_ext >&5
6515 eval "ac_cv_func_$ac_func=no"
6520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6522 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6523 cat >> confdefs.h
<<EOF
6524 #define $ac_tr_func 1
6528 echo "$ac_t""no" 1>&6
6537 *-lsecurity*) for ac_func
in set_auth_parameters
6539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6540 echo "configure:6541: checking for $ac_func" >&5
6541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6542 echo $ac_n "(cached) $ac_c" 1>&6
6544 cat > conftest.
$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 /* System header to define __stub macros and hopefully few prototypes,
6548 which can conflict with char $ac_func(); below. */
6550 /* Override any gcc2 internal prototype to avoid an error. */
6551 /* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */
6557 /* The GNU C library defines this for functions which it implements
6558 to always fail with ENOSYS. Some functions are actually named
6559 something starting with __ and the normal name is an alias. */
6560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6568 if { (eval echo configure
:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6570 eval "ac_cv_func_$ac_func=yes"
6572 echo "configure: failed program was:" >&5
6573 cat conftest.
$ac_ext >&5
6575 eval "ac_cv_func_$ac_func=no"
6580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6581 echo "$ac_t""yes" 1>&6
6582 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6583 cat >> confdefs.h
<<EOF
6584 #define $ac_tr_func 1
6588 echo "$ac_t""no" 1>&6
6592 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6593 echo "configure:6594: checking for set_auth_parameters in -lsecurity" >&5
6594 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6596 echo $ac_n "(cached) $ac_c" 1>&6
6598 ac_save_LIBS
="$LIBS"
6599 LIBS
="-lsecurity $LIBS"
6600 cat > conftest.
$ac_ext <<EOF
6601 #line 6602 "configure"
6602 #include "confdefs.h"
6603 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6606 char set_auth_parameters();
6609 set_auth_parameters()
6612 if { (eval echo configure
:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6614 eval "ac_cv_lib_$ac_lib_var=yes"
6616 echo "configure: failed program was:" >&5
6617 cat conftest.
$ac_ext >&5
6619 eval "ac_cv_lib_$ac_lib_var=no"
6622 LIBS
="$ac_save_LIBS"
6625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6629 cat >> confdefs.h
<<EOF
6630 #define $ac_tr_lib 1
6633 LIBS
="-lsecurity $LIBS"
6636 echo "$ac_t""no" 1>&6
6639 for ac_func
in set_auth_parameters
6641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6642 echo "configure:6643: checking for $ac_func" >&5
6643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6646 cat > conftest.
$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 /* System header to define __stub macros and hopefully few prototypes,
6650 which can conflict with char $ac_func(); below. */
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6659 /* The GNU C library defines this for functions which it implements
6660 to always fail with ENOSYS. Some functions are actually named
6661 something starting with __ and the normal name is an alias. */
6662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6670 if { (eval echo configure
:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6672 eval "ac_cv_func_$ac_func=yes"
6674 echo "configure: failed program was:" >&5
6675 cat conftest.
$ac_ext >&5
6677 eval "ac_cv_func_$ac_func=no"
6682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6683 echo "$ac_t""yes" 1>&6
6684 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6685 cat >> confdefs.h
<<EOF
6686 #define $ac_tr_func 1
6690 echo "$ac_t""no" 1>&6
6698 *-lsec*) for ac_func
in set_auth_parameters
6700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6701 echo "configure:6702: checking for $ac_func" >&5
6702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6705 cat > conftest.
$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 /* System header to define __stub macros and hopefully few prototypes,
6709 which can conflict with char $ac_func(); below. */
6711 /* Override any gcc2 internal prototype to avoid an error. */
6712 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */
6718 /* The GNU C library defines this for functions which it implements
6719 to always fail with ENOSYS. Some functions are actually named
6720 something starting with __ and the normal name is an alias. */
6721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6729 if { (eval echo configure
:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6731 eval "ac_cv_func_$ac_func=yes"
6733 echo "configure: failed program was:" >&5
6734 cat conftest.
$ac_ext >&5
6736 eval "ac_cv_func_$ac_func=no"
6741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6742 echo "$ac_t""yes" 1>&6
6743 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6744 cat >> confdefs.h
<<EOF
6745 #define $ac_tr_func 1
6749 echo "$ac_t""no" 1>&6
6753 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6754 echo "configure:6755: checking for set_auth_parameters in -lsec" >&5
6755 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 ac_save_LIBS
="$LIBS"
6761 cat > conftest.
$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 /* Override any gcc2 internal prototype to avoid an error. */
6765 /* We use char because int might match the return type of a gcc2
6766 builtin and then its argument prototype would still apply. */
6767 char set_auth_parameters();
6770 set_auth_parameters()
6773 if { (eval echo configure
:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6775 eval "ac_cv_lib_$ac_lib_var=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.
$ac_ext >&5
6780 eval "ac_cv_lib_$ac_lib_var=no"
6783 LIBS
="$ac_save_LIBS"
6786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6790 cat >> confdefs.h
<<EOF
6791 #define $ac_tr_lib 1
6797 echo "$ac_t""no" 1>&6
6800 for ac_func
in set_auth_parameters
6802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6803 echo "configure:6804: checking for $ac_func" >&5
6804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 cat > conftest.
$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6810 /* System header to define __stub macros and hopefully few prototypes,
6811 which can conflict with char $ac_func(); below. */
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6820 /* The GNU C library defines this for functions which it implements
6821 to always fail with ENOSYS. Some functions are actually named
6822 something starting with __ and the normal name is an alias. */
6823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6831 if { (eval echo configure
:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6833 eval "ac_cv_func_$ac_func=yes"
6835 echo "configure: failed program was:" >&5
6836 cat conftest.
$ac_ext >&5
6838 eval "ac_cv_func_$ac_func=no"
6843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6844 echo "$ac_t""yes" 1>&6
6845 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6846 cat >> confdefs.h
<<EOF
6847 #define $ac_tr_func 1
6851 echo "$ac_t""no" 1>&6
6859 # UnixWare 7.x has its getspnam in -lgen
6861 *-lgen*) for ac_func
in getspnam
6863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6864 echo "configure:6865: checking for $ac_func" >&5
6865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6868 cat > conftest.
$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func(); below. */
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6881 /* The GNU C library defines this for functions which it implements
6882 to always fail with ENOSYS. Some functions are actually named
6883 something starting with __ and the normal name is an alias. */
6884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6892 if { (eval echo configure
:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6894 eval "ac_cv_func_$ac_func=yes"
6896 echo "configure: failed program was:" >&5
6897 cat conftest.
$ac_ext >&5
6899 eval "ac_cv_func_$ac_func=no"
6904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6905 echo "$ac_t""yes" 1>&6
6906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6907 cat >> confdefs.h
<<EOF
6908 #define $ac_tr_func 1
6912 echo "$ac_t""no" 1>&6
6916 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6917 echo "configure:6918: checking for getspnam in -lgen" >&5
6918 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6922 ac_save_LIBS
="$LIBS"
6924 cat > conftest.
$ac_ext <<EOF
6925 #line 6926 "configure"
6926 #include "confdefs.h"
6927 /* Override any gcc2 internal prototype to avoid an error. */
6928 /* We use char because int might match the return type of a gcc2
6929 builtin and then its argument prototype would still apply. */
6936 if { (eval echo configure
:6937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6938 eval "ac_cv_lib_$ac_lib_var=yes"
6940 echo "configure: failed program was:" >&5
6941 cat conftest.
$ac_ext >&5
6943 eval "ac_cv_lib_$ac_lib_var=no"
6946 LIBS
="$ac_save_LIBS"
6949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6950 echo "$ac_t""yes" 1>&6
6951 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6953 cat >> confdefs.h
<<EOF
6954 #define $ac_tr_lib 1
6960 echo "$ac_t""no" 1>&6
6963 for ac_func
in getspnam
6965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6966 echo "configure:6967: checking for $ac_func" >&5
6967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6970 cat > conftest.
$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* System header to define __stub macros and hopefully few prototypes,
6974 which can conflict with char $ac_func(); below. */
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6983 /* The GNU C library defines this for functions which it implements
6984 to always fail with ENOSYS. Some functions are actually named
6985 something starting with __ and the normal name is an alias. */
6986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6994 if { (eval echo configure
:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6996 eval "ac_cv_func_$ac_func=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.
$ac_ext >&5
7001 eval "ac_cv_func_$ac_func=no"
7006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7008 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7009 cat >> confdefs.h
<<EOF
7010 #define $ac_tr_func 1
7014 echo "$ac_t""no" 1>&6
7023 *-lsecurity*) for ac_func
in getspnam
7025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7026 echo "configure:7027: checking for $ac_func" >&5
7027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 cat > conftest.
$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* System header to define __stub macros and hopefully few prototypes,
7034 which can conflict with char $ac_func(); below. */
7036 /* Override any gcc2 internal prototype to avoid an error. */
7037 /* We use char because int might match the return type of a gcc2
7038 builtin and then its argument prototype would still apply. */
7043 /* The GNU C library defines this for functions which it implements
7044 to always fail with ENOSYS. Some functions are actually named
7045 something starting with __ and the normal name is an alias. */
7046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7054 if { (eval echo configure
:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7056 eval "ac_cv_func_$ac_func=yes"
7058 echo "configure: failed program was:" >&5
7059 cat conftest.
$ac_ext >&5
7061 eval "ac_cv_func_$ac_func=no"
7066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7067 echo "$ac_t""yes" 1>&6
7068 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7069 cat >> confdefs.h
<<EOF
7070 #define $ac_tr_func 1
7074 echo "$ac_t""no" 1>&6
7078 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7079 echo "configure:7080: checking for getspnam in -lsecurity" >&5
7080 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7082 echo $ac_n "(cached) $ac_c" 1>&6
7084 ac_save_LIBS
="$LIBS"
7085 LIBS
="-lsecurity $LIBS"
7086 cat > conftest.
$ac_ext <<EOF
7087 #line 7088 "configure"
7088 #include "confdefs.h"
7089 /* Override any gcc2 internal prototype to avoid an error. */
7090 /* We use char because int might match the return type of a gcc2
7091 builtin and then its argument prototype would still apply. */
7098 if { (eval echo configure
:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7100 eval "ac_cv_lib_$ac_lib_var=yes"
7102 echo "configure: failed program was:" >&5
7103 cat conftest.
$ac_ext >&5
7105 eval "ac_cv_lib_$ac_lib_var=no"
7108 LIBS
="$ac_save_LIBS"
7111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7115 cat >> confdefs.h
<<EOF
7116 #define $ac_tr_lib 1
7119 LIBS
="-lsecurity $LIBS"
7122 echo "$ac_t""no" 1>&6
7125 for ac_func
in getspnam
7127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7128 echo "configure:7129: checking for $ac_func" >&5
7129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7132 cat > conftest.
$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* System header to define __stub macros and hopefully few prototypes,
7136 which can conflict with char $ac_func(); below. */
7138 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */
7145 /* The GNU C library defines this for functions which it implements
7146 to always fail with ENOSYS. Some functions are actually named
7147 something starting with __ and the normal name is an alias. */
7148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156 if { (eval echo configure
:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7158 eval "ac_cv_func_$ac_func=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.
$ac_ext >&5
7163 eval "ac_cv_func_$ac_func=no"
7168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7170 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7171 cat >> confdefs.h
<<EOF
7172 #define $ac_tr_func 1
7176 echo "$ac_t""no" 1>&6
7184 *-lsec*) for ac_func
in getspnam
7186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7187 echo "configure:7188: checking for $ac_func" >&5
7188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7191 cat > conftest.
$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* System header to define __stub macros and hopefully few prototypes,
7195 which can conflict with char $ac_func(); below. */
7197 /* Override any gcc2 internal prototype to avoid an error. */
7198 /* We use char because int might match the return type of a gcc2
7199 builtin and then its argument prototype would still apply. */
7204 /* The GNU C library defines this for functions which it implements
7205 to always fail with ENOSYS. Some functions are actually named
7206 something starting with __ and the normal name is an alias. */
7207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7215 if { (eval echo configure
:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7217 eval "ac_cv_func_$ac_func=yes"
7219 echo "configure: failed program was:" >&5
7220 cat conftest.
$ac_ext >&5
7222 eval "ac_cv_func_$ac_func=no"
7227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7230 cat >> confdefs.h
<<EOF
7231 #define $ac_tr_func 1
7235 echo "$ac_t""no" 1>&6
7239 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7240 echo "configure:7241: checking for getspnam in -lsec" >&5
7241 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7245 ac_save_LIBS
="$LIBS"
7247 cat > conftest.
$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7250 /* Override any gcc2 internal prototype to avoid an error. */
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7259 if { (eval echo configure
:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7261 eval "ac_cv_lib_$ac_lib_var=yes"
7263 echo "configure: failed program was:" >&5
7264 cat conftest.
$ac_ext >&5
7266 eval "ac_cv_lib_$ac_lib_var=no"
7269 LIBS
="$ac_save_LIBS"
7272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7276 cat >> confdefs.h
<<EOF
7277 #define $ac_tr_lib 1
7283 echo "$ac_t""no" 1>&6
7286 for ac_func
in getspnam
7288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7289 echo "configure:7290: checking for $ac_func" >&5
7290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7293 cat > conftest.
$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 /* System header to define __stub macros and hopefully few prototypes,
7297 which can conflict with char $ac_func(); below. */
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7306 /* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7317 if { (eval echo configure
:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7319 eval "ac_cv_func_$ac_func=yes"
7321 echo "configure: failed program was:" >&5
7322 cat conftest.
$ac_ext >&5
7324 eval "ac_cv_func_$ac_func=no"
7329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7332 cat >> confdefs.h
<<EOF
7333 #define $ac_tr_func 1
7337 echo "$ac_t""no" 1>&6
7346 *-lsecurity*) for ac_func
in bigcrypt
7348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7349 echo "configure:7350: checking for $ac_func" >&5
7350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7353 cat > conftest.
$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7356 /* System header to define __stub macros and hopefully few prototypes,
7357 which can conflict with char $ac_func(); below. */
7359 /* Override any gcc2 internal prototype to avoid an error. */
7360 /* We use char because int might match the return type of a gcc2
7361 builtin and then its argument prototype would still apply. */
7366 /* The GNU C library defines this for functions which it implements
7367 to always fail with ENOSYS. Some functions are actually named
7368 something starting with __ and the normal name is an alias. */
7369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7377 if { (eval echo configure
:7378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7379 eval "ac_cv_func_$ac_func=yes"
7381 echo "configure: failed program was:" >&5
7382 cat conftest.
$ac_ext >&5
7384 eval "ac_cv_func_$ac_func=no"
7389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7390 echo "$ac_t""yes" 1>&6
7391 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7392 cat >> confdefs.h
<<EOF
7393 #define $ac_tr_func 1
7397 echo "$ac_t""no" 1>&6
7401 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7402 echo "configure:7403: checking for bigcrypt in -lsecurity" >&5
7403 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7407 ac_save_LIBS
="$LIBS"
7408 LIBS
="-lsecurity $LIBS"
7409 cat > conftest.
$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7412 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7421 if { (eval echo configure
:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7423 eval "ac_cv_lib_$ac_lib_var=yes"
7425 echo "configure: failed program was:" >&5
7426 cat conftest.
$ac_ext >&5
7428 eval "ac_cv_lib_$ac_lib_var=no"
7431 LIBS
="$ac_save_LIBS"
7434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7438 cat >> confdefs.h
<<EOF
7439 #define $ac_tr_lib 1
7442 LIBS
="-lsecurity $LIBS"
7445 echo "$ac_t""no" 1>&6
7448 for ac_func
in bigcrypt
7450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7451 echo "configure:7452: checking for $ac_func" >&5
7452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 cat > conftest.
$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* System header to define __stub macros and hopefully few prototypes,
7459 which can conflict with char $ac_func(); below. */
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 /* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7468 /* The GNU C library defines this for functions which it implements
7469 to always fail with ENOSYS. Some functions are actually named
7470 something starting with __ and the normal name is an alias. */
7471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7479 if { (eval echo configure
:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7481 eval "ac_cv_func_$ac_func=yes"
7483 echo "configure: failed program was:" >&5
7484 cat conftest.
$ac_ext >&5
7486 eval "ac_cv_func_$ac_func=no"
7491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7492 echo "$ac_t""yes" 1>&6
7493 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7494 cat >> confdefs.h
<<EOF
7495 #define $ac_tr_func 1
7499 echo "$ac_t""no" 1>&6
7507 *-lsec*) for ac_func
in bigcrypt
7509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_func" >&5
7511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 cat > conftest.
$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 /* System header to define __stub macros and hopefully few prototypes,
7518 which can conflict with char $ac_func(); below. */
7520 /* Override any gcc2 internal prototype to avoid an error. */
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7527 /* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7538 if { (eval echo configure
:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7540 eval "ac_cv_func_$ac_func=yes"
7542 echo "configure: failed program was:" >&5
7543 cat conftest.
$ac_ext >&5
7545 eval "ac_cv_func_$ac_func=no"
7550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7553 cat >> confdefs.h
<<EOF
7554 #define $ac_tr_func 1
7558 echo "$ac_t""no" 1>&6
7562 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7563 echo "configure:7564: checking for bigcrypt in -lsec" >&5
7564 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7568 ac_save_LIBS
="$LIBS"
7570 cat > conftest.
$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7573 /* Override any gcc2 internal prototype to avoid an error. */
7574 /* We use char because int might match the return type of a gcc2
7575 builtin and then its argument prototype would still apply. */
7582 if { (eval echo configure
:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7584 eval "ac_cv_lib_$ac_lib_var=yes"
7586 echo "configure: failed program was:" >&5
7587 cat conftest.
$ac_ext >&5
7589 eval "ac_cv_lib_$ac_lib_var=no"
7592 LIBS
="$ac_save_LIBS"
7595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7599 cat >> confdefs.h
<<EOF
7600 #define $ac_tr_lib 1
7606 echo "$ac_t""no" 1>&6
7609 for ac_func
in bigcrypt
7611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_func" >&5
7613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7616 cat > conftest.
$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* System header to define __stub macros and hopefully few prototypes,
7620 which can conflict with char $ac_func(); below. */
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7629 /* The GNU C library defines this for functions which it implements
7630 to always fail with ENOSYS. Some functions are actually named
7631 something starting with __ and the normal name is an alias. */
7632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7640 if { (eval echo configure
:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7642 eval "ac_cv_func_$ac_func=yes"
7644 echo "configure: failed program was:" >&5
7645 cat conftest.
$ac_ext >&5
7647 eval "ac_cv_func_$ac_func=no"
7652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7653 echo "$ac_t""yes" 1>&6
7654 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7655 cat >> confdefs.h
<<EOF
7656 #define $ac_tr_func 1
7660 echo "$ac_t""no" 1>&6
7669 *-lsecurity*) for ac_func
in getprpwnam
7671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7672 echo "configure:7673: checking for $ac_func" >&5
7673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7676 cat > conftest.
$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 /* System header to define __stub macros and hopefully few prototypes,
7680 which can conflict with char $ac_func(); below. */
7682 /* Override any gcc2 internal prototype to avoid an error. */
7683 /* We use char because int might match the return type of a gcc2
7684 builtin and then its argument prototype would still apply. */
7689 /* The GNU C library defines this for functions which it implements
7690 to always fail with ENOSYS. Some functions are actually named
7691 something starting with __ and the normal name is an alias. */
7692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7700 if { (eval echo configure
:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7702 eval "ac_cv_func_$ac_func=yes"
7704 echo "configure: failed program was:" >&5
7705 cat conftest.
$ac_ext >&5
7707 eval "ac_cv_func_$ac_func=no"
7712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7713 echo "$ac_t""yes" 1>&6
7714 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7715 cat >> confdefs.h
<<EOF
7716 #define $ac_tr_func 1
7720 echo "$ac_t""no" 1>&6
7724 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7725 echo "configure:7726: checking for getprpwnam in -lsecurity" >&5
7726 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7730 ac_save_LIBS
="$LIBS"
7731 LIBS
="-lsecurity $LIBS"
7732 cat > conftest.
$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7744 if { (eval echo configure
:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7746 eval "ac_cv_lib_$ac_lib_var=yes"
7748 echo "configure: failed program was:" >&5
7749 cat conftest.
$ac_ext >&5
7751 eval "ac_cv_lib_$ac_lib_var=no"
7754 LIBS
="$ac_save_LIBS"
7757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7758 echo "$ac_t""yes" 1>&6
7759 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7761 cat >> confdefs.h
<<EOF
7762 #define $ac_tr_lib 1
7765 LIBS
="-lsecurity $LIBS"
7768 echo "$ac_t""no" 1>&6
7771 for ac_func
in getprpwnam
7773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7774 echo "configure:7775: checking for $ac_func" >&5
7775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 cat > conftest.
$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 /* System header to define __stub macros and hopefully few prototypes,
7782 which can conflict with char $ac_func(); below. */
7784 /* Override any gcc2 internal prototype to avoid an error. */
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7791 /* The GNU C library defines this for functions which it implements
7792 to always fail with ENOSYS. Some functions are actually named
7793 something starting with __ and the normal name is an alias. */
7794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7802 if { (eval echo configure
:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7804 eval "ac_cv_func_$ac_func=yes"
7806 echo "configure: failed program was:" >&5
7807 cat conftest.
$ac_ext >&5
7809 eval "ac_cv_func_$ac_func=no"
7814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7815 echo "$ac_t""yes" 1>&6
7816 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7817 cat >> confdefs.h
<<EOF
7818 #define $ac_tr_func 1
7822 echo "$ac_t""no" 1>&6
7830 *-lsec*) for ac_func
in getprpwnam
7832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7833 echo "configure:7834: checking for $ac_func" >&5
7834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7837 cat > conftest.
$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 /* System header to define __stub macros and hopefully few prototypes,
7841 which can conflict with char $ac_func(); below. */
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7850 /* The GNU C library defines this for functions which it implements
7851 to always fail with ENOSYS. Some functions are actually named
7852 something starting with __ and the normal name is an alias. */
7853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7861 if { (eval echo configure
:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7863 eval "ac_cv_func_$ac_func=yes"
7865 echo "configure: failed program was:" >&5
7866 cat conftest.
$ac_ext >&5
7868 eval "ac_cv_func_$ac_func=no"
7873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7876 cat >> confdefs.h
<<EOF
7877 #define $ac_tr_func 1
7881 echo "$ac_t""no" 1>&6
7885 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7886 echo "configure:7887: checking for getprpwnam in -lsec" >&5
7887 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7891 ac_save_LIBS
="$LIBS"
7893 cat > conftest.
$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 /* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7905 if { (eval echo configure
:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7907 eval "ac_cv_lib_$ac_lib_var=yes"
7909 echo "configure: failed program was:" >&5
7910 cat conftest.
$ac_ext >&5
7912 eval "ac_cv_lib_$ac_lib_var=no"
7915 LIBS
="$ac_save_LIBS"
7918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7922 cat >> confdefs.h
<<EOF
7923 #define $ac_tr_lib 1
7929 echo "$ac_t""no" 1>&6
7932 for ac_func
in getprpwnam
7934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7935 echo "configure:7936: checking for $ac_func" >&5
7936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7939 cat > conftest.
$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942 /* System header to define __stub macros and hopefully few prototypes,
7943 which can conflict with char $ac_func(); below. */
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7963 if { (eval echo configure
:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7965 eval "ac_cv_func_$ac_func=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.
$ac_ext >&5
7970 eval "ac_cv_func_$ac_func=no"
7975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7976 echo "$ac_t""yes" 1>&6
7977 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7978 cat >> confdefs.h
<<EOF
7979 #define $ac_tr_func 1
7983 echo "$ac_t""no" 1>&6
7991 # this bit needs to be modified for each OS that is suported by
7992 # smbwrapper. You need to specify how to created a shared library and
7993 # how to compile C code to produce PIC object files
7995 # these are the defaults, good for lots of systems
8001 # and these are for particular systems
8003 *linux
*) cat >> confdefs.h
<<\EOF
8007 *solaris
*) cat >> confdefs.h
<<\EOF
8013 *sunos
*) cat >> confdefs.h
<<\EOF
8019 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8021 *irix
*) cat >> confdefs.h
<<\EOF
8026 *irix6
*) cat >> confdefs.h
<<\EOF
8032 ATTEMPT_WRAP32_BUILD
=yes
8034 *aix
*) cat >> confdefs.h
<<\EOF
8038 *hpux
*) cat >> confdefs.h
<<\EOF
8043 # Use special PIC flags for the native HP-UX compiler.
8044 if test $ac_cv_prog_cc_Ae = yes; then
8049 *qnx
*) cat >> confdefs.h
<<\EOF
8053 *osf
*) cat >> confdefs.h
<<\EOF
8057 *sco
*) cat >> confdefs.h
<<\EOF
8061 *next2
*) cat >> confdefs.h
<<\EOF
8065 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8066 set dummy
groff; ac_word
=$2
8067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8068 echo "configure:8069: checking for $ac_word" >&5
8069 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8072 if test -n "$ROFF"; then
8073 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8077 for ac_dir
in $ac_dummy; do
8078 test -z "$ac_dir" && ac_dir
=.
8079 if test -f $ac_dir/$ac_word; then
8080 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8087 ROFF
="$ac_cv_prog_ROFF"
8088 if test -n "$ROFF"; then
8089 echo "$ac_t""$ROFF" 1>&6
8091 echo "$ac_t""no" 1>&6
8096 *-univel-*) if test "$GCC" != yes ; then
8097 cat >> confdefs.h
<<\EOF
8098 #define HAVE_MEMSET 1
8104 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8105 #define RELIANTUNIX 1
8111 if test "$GCC" != yes ; then
8112 cat >> confdefs.h
<<\EOF
8113 #define HAVE_MEMSET 1
8121 # try to work out how to produce pic code with this compiler
8122 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8123 echo "configure:8124: checking whether ${CC-cc} accepts -fpic" >&5
8124 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8127 echo 'void f(){}' > conftest.c
8128 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8129 ac_cv_prog_cc_fpic
=yes
8131 ac_cv_prog_cc_fpic
=no
8137 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8138 if test $ac_cv_prog_cc_fpic = yes; then
8141 if test x
$PICFLAG = x
; then
8142 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8143 echo "configure:8144: checking whether ${CC-cc} accepts -Kpic" >&5
8144 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8147 echo 'void f(){}' > conftest.c
8148 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8149 ac_cv_prog_cc_Kpic
=yes
8151 ac_cv_prog_cc_Kpic
=no
8157 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8158 if test $ac_cv_prog_cc_Kpic = yes; then
8162 if test x
$PICFLAG = x
; then
8163 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8164 echo "configure:8165: checking whether ${CC-cc} accepts -KPIC" >&5
8165 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8168 echo 'void f(){}' > conftest.c
8169 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8170 ac_cv_prog_cc_KPIC
=yes
8172 ac_cv_prog_cc_KPIC
=no
8178 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8179 if test $ac_cv_prog_cc_KPIC = yes; then
8186 echo $ac_n "checking for long long""... $ac_c" 1>&6
8187 echo "configure:8188: checking for long long" >&5
8188 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8192 if test "$cross_compiling" = yes; then
8193 samba_cv_have_longlong
=cross
8195 cat > conftest.
$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8199 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8201 if { (eval echo configure
:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8203 samba_cv_have_longlong
=yes
8205 echo "configure: failed program was:" >&5
8206 cat conftest.
$ac_ext >&5
8208 samba_cv_have_longlong
=no
8215 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8216 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8217 cat >> confdefs.h
<<\EOF
8218 #define HAVE_LONGLONG 1
8224 # Check if the compiler supports the LL prefix on long long integers.
8227 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8228 echo "configure:8229: checking for LL suffix on long long integers" >&5
8229 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8233 cat > conftest.
$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8238 long long i = 0x8000000000LL
8241 if { (eval echo configure
:8242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8243 samba_cv_compiler_supports_ll
=yes
8245 echo "configure: failed program was:" >&5
8246 cat conftest.
$ac_ext >&5
8248 samba_cv_compiler_supports_ll
=no
8253 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8254 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8255 cat >> confdefs.h
<<\EOF
8256 #define COMPILER_SUPPORTS_LL 1
8262 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8263 echo "configure:8264: checking for 64 bit off_t" >&5
8264 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8268 if test "$cross_compiling" = yes; then
8269 samba_cv_SIZEOF_OFF_T
=cross
8271 cat > conftest.
$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8275 #include <sys/stat.h>
8276 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8278 if { (eval echo configure
:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8280 samba_cv_SIZEOF_OFF_T
=yes
8282 echo "configure: failed program was:" >&5
8283 cat conftest.
$ac_ext >&5
8285 samba_cv_SIZEOF_OFF_T
=no
8292 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8293 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8294 cat >> confdefs.h
<<\EOF
8295 #define SIZEOF_OFF_T 8
8300 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8301 echo "configure:8302: checking for off64_t" >&5
8302 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8306 if test "$cross_compiling" = yes; then
8307 samba_cv_HAVE_OFF64_T
=cross
8309 cat > conftest.
$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8313 #if defined(HAVE_UNISTD_H)
8317 #include <sys/stat.h>
8318 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8320 if { (eval echo configure
:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8322 samba_cv_HAVE_OFF64_T
=yes
8324 echo "configure: failed program was:" >&5
8325 cat conftest.
$ac_ext >&5
8327 samba_cv_HAVE_OFF64_T
=no
8334 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8335 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8336 cat >> confdefs.h
<<\EOF
8337 #define HAVE_OFF64_T 1
8342 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8343 echo "configure:8344: checking for 64 bit ino_t" >&5
8344 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8348 if test "$cross_compiling" = yes; then
8349 samba_cv_SIZEOF_INO_T
=cross
8351 cat > conftest.
$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8355 #include <sys/stat.h>
8356 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8358 if { (eval echo configure
:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8360 samba_cv_SIZEOF_INO_T
=yes
8362 echo "configure: failed program was:" >&5
8363 cat conftest.
$ac_ext >&5
8365 samba_cv_SIZEOF_INO_T
=no
8372 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8373 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8374 cat >> confdefs.h
<<\EOF
8375 #define SIZEOF_INO_T 8
8380 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8381 echo "configure:8382: checking for ino64_t" >&5
8382 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8386 if test "$cross_compiling" = yes; then
8387 samba_cv_HAVE_INO64_T
=cross
8389 cat > conftest.
$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8393 #if defined(HAVE_UNISTD_H)
8397 #include <sys/stat.h>
8398 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8400 if { (eval echo configure
:8401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8402 samba_cv_HAVE_INO64_T
=yes
8404 echo "configure: failed program was:" >&5
8405 cat conftest.
$ac_ext >&5
8407 samba_cv_HAVE_INO64_T
=no
8414 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8415 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8416 cat >> confdefs.h
<<\EOF
8417 #define HAVE_INO64_T 1
8422 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8423 echo "configure:8424: checking for struct dirent64" >&5
8424 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8428 cat > conftest.
$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8432 #if defined(HAVE_UNISTD_H)
8435 #include <sys/types.h>
8441 if { (eval echo configure
:8442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8443 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8445 echo "configure: failed program was:" >&5
8446 cat conftest.
$ac_ext >&5
8448 samba_cv_HAVE_STRUCT_DIRENT64
=no
8453 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8454 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8455 cat >> confdefs.h
<<\EOF
8456 #define HAVE_STRUCT_DIRENT64 1
8461 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8462 echo "configure:8463: checking for unsigned char" >&5
8463 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8464 echo $ac_n "(cached) $ac_c" 1>&6
8467 if test "$cross_compiling" = yes; then
8468 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8470 cat > conftest.
$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8474 main() { char c; c=250; exit((c > 0)?0:1); }
8476 if { (eval echo configure
:8477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8478 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8480 echo "configure: failed program was:" >&5
8481 cat conftest.
$ac_ext >&5
8483 samba_cv_HAVE_UNSIGNED_CHAR
=no
8490 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8491 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8492 cat >> confdefs.h
<<\EOF
8493 #define HAVE_UNSIGNED_CHAR 1
8498 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8499 echo "configure:8500: checking for sin_len in sock" >&5
8500 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8501 echo $ac_n "(cached) $ac_c" 1>&6
8504 cat > conftest.
$ac_ext <<EOF
8505 #line 8506 "configure"
8506 #include "confdefs.h"
8507 #include <sys/types.h>
8508 #include <sys/socket.h>
8509 #include <netinet/in.h>
8511 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8514 if { (eval echo configure
:8515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8516 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8518 echo "configure: failed program was:" >&5
8519 cat conftest.
$ac_ext >&5
8521 samba_cv_HAVE_SOCK_SIN_LEN
=no
8526 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8527 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8528 cat >> confdefs.h
<<\EOF
8529 #define HAVE_SOCK_SIN_LEN 1
8534 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8535 echo "configure:8536: checking whether seekdir returns void" >&5
8536 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8537 echo $ac_n "(cached) $ac_c" 1>&6
8540 cat > conftest.
$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 #include <sys/types.h>
8545 void seekdir(DIR *d, long loc) { return; }
8550 if { (eval echo configure
:8551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8552 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8554 echo "configure: failed program was:" >&5
8555 cat conftest.
$ac_ext >&5
8557 samba_cv_SEEKDIR_RETURNS_VOID
=no
8562 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8563 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8564 cat >> confdefs.h
<<\EOF
8565 #define SEEKDIR_RETURNS_VOID 1
8570 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8571 echo "configure:8572: checking for __FILE__ macro" >&5
8572 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8576 cat > conftest.
$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8581 printf("%s\n", __FILE__);
8584 if { (eval echo configure
:8585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8586 samba_cv_HAVE_FILE_MACRO
=yes
8588 echo "configure: failed program was:" >&5
8589 cat conftest.
$ac_ext >&5
8591 samba_cv_HAVE_FILE_MACRO
=no
8596 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8597 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8598 cat >> confdefs.h
<<\EOF
8599 #define HAVE_FILE_MACRO 1
8604 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8605 echo "configure:8606: checking for __FUNCTION__ macro" >&5
8606 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
8610 cat > conftest.
$ac_ext <<EOF
8611 #line 8612 "configure"
8612 #include "confdefs.h"
8615 printf("%s\n", __FUNCTION__);
8618 if { (eval echo configure
:8619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8620 samba_cv_HAVE_FUNCTION_MACRO
=yes
8622 echo "configure: failed program was:" >&5
8623 cat conftest.
$ac_ext >&5
8625 samba_cv_HAVE_FUNCTION_MACRO
=no
8630 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8631 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8632 cat >> confdefs.h
<<\EOF
8633 #define HAVE_FUNCTION_MACRO 1
8638 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8639 echo "configure:8640: checking if gettimeofday takes tz argument" >&5
8640 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8644 if test "$cross_compiling" = yes; then
8645 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8647 cat > conftest.
$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8651 #include <sys/time.h>
8653 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8655 if { (eval echo configure
:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8657 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8659 echo "configure: failed program was:" >&5
8660 cat conftest.
$ac_ext >&5
8662 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8669 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8670 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8671 cat >> confdefs.h
<<\EOF
8672 #define HAVE_GETTIMEOFDAY_TZ 1
8678 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8679 echo "configure:8680: checking for broken readdir" >&5
8680 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8684 if test "$cross_compiling" = yes; then
8685 samba_cv_HAVE_BROKEN_READDIR
=cross
8687 cat > conftest.
$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 #include <sys/types.h>
8692 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8693 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8694 di->d_name[0] == 0) exit(0); exit(1);}
8696 if { (eval echo configure
:8697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8698 samba_cv_HAVE_BROKEN_READDIR
=yes
8700 echo "configure: failed program was:" >&5
8701 cat conftest.
$ac_ext >&5
8703 samba_cv_HAVE_BROKEN_READDIR
=no
8710 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8711 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8712 cat >> confdefs.h
<<\EOF
8713 #define HAVE_BROKEN_READDIR 1
8718 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8719 echo "configure:8720: checking for utimbuf" >&5
8720 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8724 cat > conftest.
$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727 #include <sys/types.h>
8730 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8733 if { (eval echo configure
:8734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8735 samba_cv_HAVE_UTIMBUF
=yes
8737 echo "configure: failed program was:" >&5
8738 cat conftest.
$ac_ext >&5
8740 samba_cv_HAVE_UTIMBUF
=no
8745 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8746 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8747 cat >> confdefs.h
<<\EOF
8748 #define HAVE_UTIMBUF 1
8754 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
8756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8757 echo "configure:8758: checking for $ac_func" >&5
8758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8759 echo $ac_n "(cached) $ac_c" 1>&6
8761 cat > conftest.
$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 /* System header to define __stub macros and hopefully few prototypes,
8765 which can conflict with char $ac_func(); below. */
8767 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8774 /* The GNU C library defines this for functions which it implements
8775 to always fail with ENOSYS. Some functions are actually named
8776 something starting with __ and the normal name is an alias. */
8777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8785 if { (eval echo configure
:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8787 eval "ac_cv_func_$ac_func=yes"
8789 echo "configure: failed program was:" >&5
8790 cat conftest.
$ac_ext >&5
8792 eval "ac_cv_func_$ac_func=no"
8797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8798 echo "$ac_t""yes" 1>&6
8799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8800 cat >> confdefs.h
<<EOF
8801 #define $ac_tr_func 1
8805 echo "$ac_t""no" 1>&6
8810 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8811 echo "configure:8812: checking for ut_name in utmp" >&5
8812 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8816 cat > conftest.
$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8819 #include <sys/types.h>
8822 struct utmp ut; ut.ut_name[0] = 'a';
8825 if { (eval echo configure
:8826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8827 samba_cv_HAVE_UT_UT_NAME
=yes
8829 echo "configure: failed program was:" >&5
8830 cat conftest.
$ac_ext >&5
8832 samba_cv_HAVE_UT_UT_NAME
=no
8837 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8838 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
8839 cat >> confdefs.h
<<\EOF
8840 #define HAVE_UT_UT_NAME 1
8845 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8846 echo "configure:8847: checking for ut_user in utmp" >&5
8847 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8851 cat > conftest.
$ac_ext <<EOF
8852 #line 8853 "configure"
8853 #include "confdefs.h"
8854 #include <sys/types.h>
8857 struct utmp ut; ut.ut_user[0] = 'a';
8860 if { (eval echo configure
:8861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8862 samba_cv_HAVE_UT_UT_USER
=yes
8864 echo "configure: failed program was:" >&5
8865 cat conftest.
$ac_ext >&5
8867 samba_cv_HAVE_UT_UT_USER
=no
8872 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8873 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
8874 cat >> confdefs.h
<<\EOF
8875 #define HAVE_UT_UT_USER 1
8880 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
8881 echo "configure:8882: checking for ut_id in utmp" >&5
8882 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8886 cat > conftest.
$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 #include <sys/types.h>
8892 struct utmp ut; ut.ut_id[0] = 'a';
8895 if { (eval echo configure
:8896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8897 samba_cv_HAVE_UT_UT_ID
=yes
8899 echo "configure: failed program was:" >&5
8900 cat conftest.
$ac_ext >&5
8902 samba_cv_HAVE_UT_UT_ID
=no
8907 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
8908 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
8909 cat >> confdefs.h
<<\EOF
8910 #define HAVE_UT_UT_ID 1
8915 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
8916 echo "configure:8917: checking for ut_host in utmp" >&5
8917 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8921 cat > conftest.
$ac_ext <<EOF
8922 #line 8923 "configure"
8923 #include "confdefs.h"
8924 #include <sys/types.h>
8927 struct utmp ut; ut.ut_host[0] = 'a';
8930 if { (eval echo configure
:8931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8932 samba_cv_HAVE_UT_UT_HOST
=yes
8934 echo "configure: failed program was:" >&5
8935 cat conftest.
$ac_ext >&5
8937 samba_cv_HAVE_UT_UT_HOST
=no
8942 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
8943 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
8944 cat >> confdefs.h
<<\EOF
8945 #define HAVE_UT_UT_HOST 1
8950 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
8951 echo "configure:8952: checking for ut_time in utmp" >&5
8952 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
8953 echo $ac_n "(cached) $ac_c" 1>&6
8956 cat > conftest.
$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8959 #include <sys/types.h>
8962 struct utmp ut; time_t t; ut.ut_time = t;
8965 if { (eval echo configure
:8966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8967 samba_cv_HAVE_UT_UT_TIME
=yes
8969 echo "configure: failed program was:" >&5
8970 cat conftest.
$ac_ext >&5
8972 samba_cv_HAVE_UT_UT_TIME
=no
8977 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
8978 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
8979 cat >> confdefs.h
<<\EOF
8980 #define HAVE_UT_UT_TIME 1
8985 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
8986 echo "configure:8987: checking for ut_tv in utmp" >&5
8987 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8991 cat > conftest.
$ac_ext <<EOF
8992 #line 8993 "configure"
8993 #include "confdefs.h"
8994 #include <sys/types.h>
8997 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9000 if { (eval echo configure
:9001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9002 samba_cv_HAVE_UT_UT_TV
=yes
9004 echo "configure: failed program was:" >&5
9005 cat conftest.
$ac_ext >&5
9007 samba_cv_HAVE_UT_UT_TV
=no
9012 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9013 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9014 cat >> confdefs.h
<<\EOF
9015 #define HAVE_UT_UT_TV 1
9020 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9021 echo "configure:9022: checking for ut_type in utmp" >&5
9022 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9023 echo $ac_n "(cached) $ac_c" 1>&6
9026 cat > conftest.
$ac_ext <<EOF
9027 #line 9028 "configure"
9028 #include "confdefs.h"
9029 #include <sys/types.h>
9032 struct utmp ut; ut.ut_type = 0;
9035 if { (eval echo configure
:9036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9037 samba_cv_HAVE_UT_UT_TYPE
=yes
9039 echo "configure: failed program was:" >&5
9040 cat conftest.
$ac_ext >&5
9042 samba_cv_HAVE_UT_UT_TYPE
=no
9047 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9048 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9049 cat >> confdefs.h
<<\EOF
9050 #define HAVE_UT_UT_TYPE 1
9055 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9056 echo "configure:9057: checking for ut_pid in utmp" >&5
9057 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9061 cat > conftest.
$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <sys/types.h>
9067 struct utmp ut; ut.ut_pid = 0;
9070 if { (eval echo configure
:9071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9072 samba_cv_HAVE_UT_UT_PID
=yes
9074 echo "configure: failed program was:" >&5
9075 cat conftest.
$ac_ext >&5
9077 samba_cv_HAVE_UT_UT_PID
=no
9082 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9083 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9084 cat >> confdefs.h
<<\EOF
9085 #define HAVE_UT_UT_PID 1
9090 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9091 echo "configure:9092: checking for ut_exit in utmp" >&5
9092 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9096 cat > conftest.
$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 #include <sys/types.h>
9102 struct utmp ut; ut.ut_exit.e_exit = 0;
9105 if { (eval echo configure
:9106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9107 samba_cv_HAVE_UT_UT_EXIT
=yes
9109 echo "configure: failed program was:" >&5
9110 cat conftest.
$ac_ext >&5
9112 samba_cv_HAVE_UT_UT_EXIT
=no
9117 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9118 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9119 cat >> confdefs.h
<<\EOF
9120 #define HAVE_UT_UT_EXIT 1
9125 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9126 echo "configure:9127: checking for ut_addr in utmp" >&5
9127 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9131 cat > conftest.
$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 #include <sys/types.h>
9137 struct utmp ut; ut.ut_addr = 0;
9140 if { (eval echo configure
:9141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9142 samba_cv_HAVE_UT_UT_ADDR
=yes
9144 echo "configure: failed program was:" >&5
9145 cat conftest.
$ac_ext >&5
9147 samba_cv_HAVE_UT_UT_ADDR
=no
9152 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9153 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9154 cat >> confdefs.h
<<\EOF
9155 #define HAVE_UT_UT_ADDR 1
9160 if test x
$ac_cv_func_pututline = xyes
; then
9161 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9162 echo "configure:9163: checking whether pututline returns pointer" >&5
9163 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9167 cat > conftest.
$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 #include <sys/types.h>
9173 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9176 if { (eval echo configure
:9177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9178 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9180 echo "configure: failed program was:" >&5
9181 cat conftest.
$ac_ext >&5
9183 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9188 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9189 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9190 cat >> confdefs.h
<<\EOF
9191 #define PUTUTLINE_RETURNS_UTMP 1
9197 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9198 echo "configure:9199: checking for ut_syslen in utmpx" >&5
9199 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9200 echo $ac_n "(cached) $ac_c" 1>&6
9203 cat > conftest.
$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 #include <sys/types.h>
9209 struct utmpx ux; ux.ut_syslen = 0;
9212 if { (eval echo configure
:9213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9214 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9216 echo "configure: failed program was:" >&5
9217 cat conftest.
$ac_ext >&5
9219 samba_cv_HAVE_UX_UT_SYSLEN
=no
9224 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9225 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9226 cat >> confdefs.h
<<\EOF
9227 #define HAVE_UX_UT_SYSLEN 1
9232 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9233 echo "configure:9234: checking for Linux kernel oplocks" >&5
9234 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9238 if test "$cross_compiling" = yes; then
9239 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9241 cat > conftest.
$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9245 #include <sys/types.h>
9248 #define F_GETLEASE 1025
9251 int fd = open("/dev/null", O_RDONLY);
9252 return fcntl(fd, F_GETLEASE, 0) == -1;
9256 if { (eval echo configure
:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9258 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9260 echo "configure: failed program was:" >&5
9261 cat conftest.
$ac_ext >&5
9263 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9270 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9271 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9272 cat >> confdefs.h
<<\EOF
9273 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9278 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9279 echo "configure:9280: checking for kernel change notify support" >&5
9280 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9284 if test "$cross_compiling" = yes; then
9285 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9287 cat > conftest.
$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9291 #include <sys/types.h>
9295 #define F_NOTIFY 1026
9298 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9302 if { (eval echo configure
:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9304 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9306 echo "configure: failed program was:" >&5
9307 cat conftest.
$ac_ext >&5
9309 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9316 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9317 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9318 cat >> confdefs.h
<<\EOF
9319 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9324 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9325 echo "configure:9326: checking for kernel share modes" >&5
9326 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9330 if test "$cross_compiling" = yes; then
9331 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9333 cat > conftest.
$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #include <sys/types.h>
9340 #include <sys/file.h>
9342 #define LOCK_MAND 32
9343 #define LOCK_READ 64
9346 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9350 if { (eval echo configure
:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9352 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9354 echo "configure: failed program was:" >&5
9355 cat conftest.
$ac_ext >&5
9357 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9364 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9365 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9366 cat >> confdefs.h
<<\EOF
9367 #define HAVE_KERNEL_SHARE_MODES 1
9375 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9376 echo "configure:9377: checking for IRIX kernel oplock type definitions" >&5
9377 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9378 echo $ac_n "(cached) $ac_c" 1>&6
9381 cat > conftest.
$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9387 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9390 if { (eval echo configure
:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9394 echo "configure: failed program was:" >&5
9395 cat conftest.
$ac_ext >&5
9397 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9402 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9403 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9404 cat >> confdefs.h
<<\EOF
9405 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9410 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9411 echo "configure:9412: checking for irix specific capabilities" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9416 if test "$cross_compiling" = yes; then
9417 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9419 cat > conftest.
$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 #include <sys/types.h>
9423 #include <sys/capability.h>
9426 if ((cap = cap_get_proc()) == NULL)
9428 cap->cap_effective |= CAP_NETWORK_MGT;
9429 cap->cap_inheritable |= CAP_NETWORK_MGT;
9435 if { (eval echo configure
:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9437 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9439 echo "configure: failed program was:" >&5
9440 cat conftest.
$ac_ext >&5
9442 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9449 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9450 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9451 cat >> confdefs.h
<<\EOF
9452 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9458 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9459 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9462 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9463 echo "configure:9464: checking for int16 typedef included by rpc/rpc.h" >&5
9464 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9468 cat > conftest.
$ac_ext <<EOF
9469 #line 9470 "configure"
9470 #include "confdefs.h"
9471 #include <sys/types.h>
9472 #if defined(HAVE_RPC_RPC_H)
9473 #include <rpc/rpc.h>
9479 if { (eval echo configure
:9480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9481 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9483 echo "configure: failed program was:" >&5
9484 cat conftest.
$ac_ext >&5
9486 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9491 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9492 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9493 cat >> confdefs.h
<<\EOF
9494 #define HAVE_INT16_FROM_RPC_RPC_H 1
9499 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9500 echo "configure:9501: checking for uint16 typedef included by rpc/rpc.h" >&5
9501 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9505 cat > conftest.
$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9508 #include <sys/types.h>
9509 #if defined(HAVE_RPC_RPC_H)
9510 #include <rpc/rpc.h>
9516 if { (eval echo configure
:9517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9518 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9520 echo "configure: failed program was:" >&5
9521 cat conftest.
$ac_ext >&5
9523 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9528 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9529 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9530 cat >> confdefs.h
<<\EOF
9531 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9536 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9537 echo "configure:9538: checking for int32 typedef included by rpc/rpc.h" >&5
9538 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9542 cat > conftest.
$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 #include <sys/types.h>
9546 #if defined(HAVE_RPC_RPC_H)
9547 #include <rpc/rpc.h>
9553 if { (eval echo configure
:9554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9555 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9557 echo "configure: failed program was:" >&5
9558 cat conftest.
$ac_ext >&5
9560 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9565 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9566 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9567 cat >> confdefs.h
<<\EOF
9568 #define HAVE_INT32_FROM_RPC_RPC_H 1
9573 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9574 echo "configure:9575: checking for uint32 typedef included by rpc/rpc.h" >&5
9575 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9576 echo $ac_n "(cached) $ac_c" 1>&6
9579 cat > conftest.
$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 #include <sys/types.h>
9583 #if defined(HAVE_RPC_RPC_H)
9584 #include <rpc/rpc.h>
9590 if { (eval echo configure
:9591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9592 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9594 echo "configure: failed program was:" >&5
9595 cat conftest.
$ac_ext >&5
9597 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9602 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9603 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9604 cat >> confdefs.h
<<\EOF
9605 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9611 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9612 echo "configure:9613: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9613 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9617 cat > conftest.
$ac_ext <<EOF
9618 #line 9619 "configure"
9619 #include "confdefs.h"
9620 #include <sys/types.h>
9621 #ifdef HAVE_SYS_SECURITY_H
9622 #include <sys/security.h>
9624 #endif /* HAVE_SYS_SECURITY_H */
9625 #if defined(HAVE_RPC_RPC_H)
9626 #include <rpc/rpc.h>
9632 if { (eval echo configure
:9633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9634 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9636 echo "configure: failed program was:" >&5
9637 cat conftest.
$ac_ext >&5
9639 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9644 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9645 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9646 cat >> confdefs.h
<<\EOF
9647 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9652 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9653 echo "configure:9654: checking for test routines" >&5
9654 if test "$cross_compiling" = yes; then
9655 echo "configure: warning: cannot run when cross-compiling" 1>&2
9657 cat > conftest.
$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 #include "${srcdir-.}/tests/trivial.c"
9662 if { (eval echo configure
:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9664 echo "$ac_t""yes" 1>&6
9666 echo "configure: failed program was:" >&5
9667 cat conftest.
$ac_ext >&5
9669 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9675 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9676 echo "configure:9677: checking for ftruncate extend" >&5
9677 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9678 echo $ac_n "(cached) $ac_c" 1>&6
9681 if test "$cross_compiling" = yes; then
9682 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9684 cat > conftest.
$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9687 #include "${srcdir-.}/tests/ftruncate.c"
9689 if { (eval echo configure
:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9691 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9693 echo "configure: failed program was:" >&5
9694 cat conftest.
$ac_ext >&5
9696 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
9703 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9704 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
9705 cat >> confdefs.h
<<\EOF
9706 #define HAVE_FTRUNCATE_EXTEND 1
9711 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9712 echo "configure:9713: checking for broken getgroups" >&5
9713 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9717 if test "$cross_compiling" = yes; then
9718 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9720 cat > conftest.
$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 #include "${srcdir-.}/tests/getgroups.c"
9725 if { (eval echo configure
:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9727 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9729 echo "configure: failed program was:" >&5
9730 cat conftest.
$ac_ext >&5
9732 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9739 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9740 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9741 cat >> confdefs.h
<<\EOF
9742 #define HAVE_BROKEN_GETGROUPS 1
9747 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9748 echo "configure:9749: checking whether getpass should be replaced" >&5
9749 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9753 SAVE_CPPFLAGS
="$CPPFLAGS"
9754 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9755 cat > conftest.
$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9759 #define REPLACE_GETPASS 1
9760 #define NO_CONFIG_H 1
9761 #define main dont_declare_main
9762 #include "${srcdir-.}/lib/getsmbpass.c"
9769 if { (eval echo configure
:9770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9771 samba_cv_REPLACE_GETPASS
=yes
9773 echo "configure: failed program was:" >&5
9774 cat conftest.
$ac_ext >&5
9776 samba_cv_REPLACE_GETPASS
=no
9779 CPPFLAGS
="$SAVE_CPPFLAGS"
9783 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9784 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9785 cat >> confdefs.h
<<\EOF
9786 #define REPLACE_GETPASS 1
9791 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9792 echo "configure:9793: checking for broken inet_ntoa" >&5
9793 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9794 echo $ac_n "(cached) $ac_c" 1>&6
9797 if test "$cross_compiling" = yes; then
9798 samba_cv_REPLACE_INET_NTOA
=cross
9800 cat > conftest.
$ac_ext <<EOF
9801 #line 9802 "configure"
9802 #include "confdefs.h"
9805 #include <sys/types.h>
9806 #include <netinet/in.h>
9807 #ifdef HAVE_ARPA_INET_H
9808 #include <arpa/inet.h>
9810 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9811 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9812 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9815 if { (eval echo configure
:9816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9817 samba_cv_REPLACE_INET_NTOA
=yes
9819 echo "configure: failed program was:" >&5
9820 cat conftest.
$ac_ext >&5
9822 samba_cv_REPLACE_INET_NTOA
=no
9829 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9830 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9831 cat >> confdefs.h
<<\EOF
9832 #define REPLACE_INET_NTOA 1
9837 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9838 echo "configure:9839: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9839 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9840 echo $ac_n "(cached) $ac_c" 1>&6
9843 if test "$cross_compiling" = yes; then
9844 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9846 cat > conftest.
$ac_ext <<EOF
9847 #line 9848 "configure"
9848 #include "confdefs.h"
9850 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9852 if { (eval echo configure
:9853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9854 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9856 echo "configure: failed program was:" >&5
9857 cat conftest.
$ac_ext >&5
9859 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9866 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9867 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9868 cat >> confdefs.h
<<\EOF
9869 #define SYSCONF_SC_NGROUPS_MAX 1
9874 echo $ac_n "checking for root""... $ac_c" 1>&6
9875 echo "configure:9876: checking for root" >&5
9876 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9877 echo $ac_n "(cached) $ac_c" 1>&6
9880 if test "$cross_compiling" = yes; then
9881 samba_cv_HAVE_ROOT
=cross
9883 cat > conftest.
$ac_ext <<EOF
9884 #line 9885 "configure"
9885 #include "confdefs.h"
9886 main() { exit(getuid() != 0); }
9888 if { (eval echo configure
:9889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9890 samba_cv_HAVE_ROOT
=yes
9892 echo "configure: failed program was:" >&5
9893 cat conftest.
$ac_ext >&5
9895 samba_cv_HAVE_ROOT
=no
9902 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9903 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
9904 cat >> confdefs.h
<<\EOF
9909 echo "configure: warning: running as non-root will disable some tests" 1>&2
9913 # look for a method of finding the list of network interfaces
9915 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9916 echo "configure:9917: checking for iface AIX" >&5
9917 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9918 echo $ac_n "(cached) $ac_c" 1>&6
9921 if test "$cross_compiling" = yes; then
9922 samba_cv_HAVE_IFACE_AIX
=cross
9924 cat > conftest.
$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9928 #define HAVE_IFACE_AIX 1
9929 #define AUTOCONF_TEST 1
9930 #include "confdefs.h"
9931 #include "${srcdir-.}/lib/interfaces.c"
9933 if { (eval echo configure
:9934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9935 samba_cv_HAVE_IFACE_AIX
=yes
9937 echo "configure: failed program was:" >&5
9938 cat conftest.
$ac_ext >&5
9940 samba_cv_HAVE_IFACE_AIX
=no
9947 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9948 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
9949 iface
=yes;cat >> confdefs.h
<<\EOF
9950 #define HAVE_IFACE_AIX 1
9955 if test $iface = no
; then
9956 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9957 echo "configure:9958: checking for iface ifconf" >&5
9958 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9959 echo $ac_n "(cached) $ac_c" 1>&6
9962 if test "$cross_compiling" = yes; then
9963 samba_cv_HAVE_IFACE_IFCONF
=cross
9965 cat > conftest.
$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9969 #define HAVE_IFACE_IFCONF 1
9970 #define AUTOCONF_TEST 1
9971 #include "confdefs.h"
9972 #include "${srcdir-.}/lib/interfaces.c"
9974 if { (eval echo configure
:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9976 samba_cv_HAVE_IFACE_IFCONF
=yes
9978 echo "configure: failed program was:" >&5
9979 cat conftest.
$ac_ext >&5
9981 samba_cv_HAVE_IFACE_IFCONF
=no
9988 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9989 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
9990 iface
=yes;cat >> confdefs.h
<<\EOF
9991 #define HAVE_IFACE_IFCONF 1
9997 if test $iface = no
; then
9998 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9999 echo "configure:10000: checking for iface ifreq" >&5
10000 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10004 if test "$cross_compiling" = yes; then
10005 samba_cv_HAVE_IFACE_IFREQ
=cross
10007 cat > conftest.
$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10011 #define HAVE_IFACE_IFREQ 1
10012 #define AUTOCONF_TEST 1
10013 #include "confdefs.h"
10014 #include "${srcdir-.}/lib/interfaces.c"
10016 if { (eval echo configure
:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10018 samba_cv_HAVE_IFACE_IFREQ
=yes
10020 echo "configure: failed program was:" >&5
10021 cat conftest.
$ac_ext >&5
10023 samba_cv_HAVE_IFACE_IFREQ
=no
10030 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10031 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10032 iface
=yes;cat >> confdefs.h
<<\EOF
10033 #define HAVE_IFACE_IFREQ 1
10040 ################################################
10041 # look for a method of setting the effective uid
10043 if test $seteuid = no
; then
10044 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10045 echo "configure:10046: checking for setresuid" >&5
10046 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10050 if test "$cross_compiling" = yes; then
10051 samba_cv_USE_SETRESUID
=cross
10053 cat > conftest.
$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10057 #define AUTOCONF_TEST 1
10058 #define USE_SETRESUID 1
10059 #include "confdefs.h"
10060 #include "${srcdir-.}/lib/util_sec.c"
10062 if { (eval echo configure
:10063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10064 samba_cv_USE_SETRESUID
=yes
10066 echo "configure: failed program was:" >&5
10067 cat conftest.
$ac_ext >&5
10069 samba_cv_USE_SETRESUID
=no
10076 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10077 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10078 seteuid
=yes;cat >> confdefs.h
<<\EOF
10079 #define USE_SETRESUID 1
10086 if test $seteuid = no
; then
10087 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10088 echo "configure:10089: checking for setreuid" >&5
10089 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10090 echo $ac_n "(cached) $ac_c" 1>&6
10093 if test "$cross_compiling" = yes; then
10094 samba_cv_USE_SETREUID
=cross
10096 cat > conftest.
$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10100 #define AUTOCONF_TEST 1
10101 #define USE_SETREUID 1
10102 #include "confdefs.h"
10103 #include "${srcdir-.}/lib/util_sec.c"
10105 if { (eval echo configure
:10106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10107 samba_cv_USE_SETREUID
=yes
10109 echo "configure: failed program was:" >&5
10110 cat conftest.
$ac_ext >&5
10112 samba_cv_USE_SETREUID
=no
10119 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10120 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10121 seteuid
=yes;cat >> confdefs.h
<<\EOF
10122 #define USE_SETREUID 1
10128 if test $seteuid = no
; then
10129 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10130 echo "configure:10131: checking for seteuid" >&5
10131 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10135 if test "$cross_compiling" = yes; then
10136 samba_cv_USE_SETEUID
=cross
10138 cat > conftest.
$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10142 #define AUTOCONF_TEST 1
10143 #define USE_SETEUID 1
10144 #include "confdefs.h"
10145 #include "${srcdir-.}/lib/util_sec.c"
10147 if { (eval echo configure
:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10149 samba_cv_USE_SETEUID
=yes
10151 echo "configure: failed program was:" >&5
10152 cat conftest.
$ac_ext >&5
10154 samba_cv_USE_SETEUID
=no
10161 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10162 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10163 seteuid
=yes;cat >> confdefs.h
<<\EOF
10164 #define USE_SETEUID 1
10170 if test $seteuid = no
; then
10171 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10172 echo "configure:10173: checking for setuidx" >&5
10173 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10177 if test "$cross_compiling" = yes; then
10178 samba_cv_USE_SETUIDX
=cross
10180 cat > conftest.
$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10184 #define AUTOCONF_TEST 1
10185 #define USE_SETUIDX 1
10186 #include "confdefs.h"
10187 #include "${srcdir-.}/lib/util_sec.c"
10189 if { (eval echo configure
:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10191 samba_cv_USE_SETUIDX
=yes
10193 echo "configure: failed program was:" >&5
10194 cat conftest.
$ac_ext >&5
10196 samba_cv_USE_SETUIDX
=no
10203 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10204 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10205 seteuid
=yes;cat >> confdefs.h
<<\EOF
10206 #define USE_SETUIDX 1
10213 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10214 echo "configure:10215: checking for working mmap" >&5
10215 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10219 if test "$cross_compiling" = yes; then
10220 samba_cv_HAVE_MMAP
=cross
10222 cat > conftest.
$ac_ext <<EOF
10223 #line 10224 "configure"
10224 #include "confdefs.h"
10225 #include "${srcdir-.}/tests/shared_mmap.c"
10227 if { (eval echo configure
:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10229 samba_cv_HAVE_MMAP
=yes
10231 echo "configure: failed program was:" >&5
10232 cat conftest.
$ac_ext >&5
10234 samba_cv_HAVE_MMAP
=no
10241 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10242 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10243 cat >> confdefs.h
<<\EOF
10244 #define HAVE_MMAP 1
10249 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10250 echo "configure:10251: checking for ftruncate needs root" >&5
10251 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10255 if test "$cross_compiling" = yes; then
10256 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10258 cat > conftest.
$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 #include "${srcdir-.}/tests/ftruncroot.c"
10263 if { (eval echo configure
:10264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10265 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10267 echo "configure: failed program was:" >&5
10268 cat conftest.
$ac_ext >&5
10270 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10277 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10278 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10279 cat >> confdefs.h
<<\EOF
10280 #define FTRUNCATE_NEEDS_ROOT 1
10285 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10286 echo "configure:10287: checking for fcntl locking" >&5
10287 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10291 if test "$cross_compiling" = yes; then
10292 samba_cv_HAVE_FCNTL_LOCK
=cross
10294 cat > conftest.
$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10297 #include "${srcdir-.}/tests/fcntl_lock.c"
10299 if { (eval echo configure
:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10301 samba_cv_HAVE_FCNTL_LOCK
=yes
10303 echo "configure: failed program was:" >&5
10304 cat conftest.
$ac_ext >&5
10306 samba_cv_HAVE_FCNTL_LOCK
=no
10313 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10314 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10315 cat >> confdefs.h
<<\EOF
10316 #define HAVE_FCNTL_LOCK 1
10321 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10322 echo "configure:10323: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10323 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10327 if test "$cross_compiling" = yes; then
10328 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10330 cat > conftest.
$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 #include "${srcdir-.}/tests/fcntl_lock64.c"
10335 if { (eval echo configure
:10336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10337 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10339 echo "configure: failed program was:" >&5
10340 cat conftest.
$ac_ext >&5
10342 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10349 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10350 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10351 cat >> confdefs.h
<<\EOF
10352 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10359 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10360 echo "configure:10361: checking for 64 bit fcntl locking" >&5
10361 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10362 echo $ac_n "(cached) $ac_c" 1>&6
10365 if test "$cross_compiling" = yes; then
10366 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10368 cat > conftest.
$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10372 #if defined(HAVE_UNISTD_H)
10373 #include <unistd.h>
10376 #include <stdlib.h>
10378 #ifdef HAVE_FCNTL_H
10382 #ifdef HAVE_SYS_FCNTL_H
10383 #include <sys/fcntl.h>
10385 main() { struct flock64 fl64;
10386 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10393 if { (eval echo configure
:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10395 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10397 echo "configure: failed program was:" >&5
10398 cat conftest.
$ac_ext >&5
10400 samba_cv_HAVE_STRUCT_FLOCK64
=no
10407 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10409 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10410 cat >> confdefs.h
<<\EOF
10411 #define HAVE_STRUCT_FLOCK64 1
10417 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10418 echo "configure:10419: checking for a crypt that needs truncated salt" >&5
10419 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10420 echo $ac_n "(cached) $ac_c" 1>&6
10423 if test "$cross_compiling" = yes; then
10424 samba_cv_HAVE_TRUNCATED_SALT
=cross
10426 cat > conftest.
$ac_ext <<EOF
10427 #line 10428 "configure"
10428 #include "confdefs.h"
10429 #include "${srcdir-.}/tests/crypttest.c"
10431 if { (eval echo configure
:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10433 samba_cv_HAVE_TRUNCATED_SALT
=no
10435 echo "configure: failed program was:" >&5
10436 cat conftest.
$ac_ext >&5
10438 samba_cv_HAVE_TRUNCATED_SALT
=yes
10445 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10446 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10447 cat >> confdefs.h
<<\EOF
10448 #define HAVE_TRUNCATED_SALT 1
10453 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10454 echo "configure:10455: checking for broken nisplus include files" >&5
10455 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10459 cat > conftest.
$ac_ext <<EOF
10460 #line 10461 "configure"
10461 #include "confdefs.h"
10462 #include <sys/acl.h>
10463 #if defined(HAVE_RPCSVC_NIS_H)
10464 #include <rpcsvc/nis.h>
10470 if { (eval echo configure
:10471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10472 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10474 echo "configure: failed program was:" >&5
10475 cat conftest.
$ac_ext >&5
10477 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10482 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10483 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10484 cat >> confdefs.h
<<\EOF
10485 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10491 #################################################
10492 # check for smbwrapper support
10493 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10494 echo "configure:10495: checking whether to use smbwrapper" >&5
10495 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10496 if test "${with_smbwrapper+set}" = set; then
10497 withval
="$with_smbwrapper"
10500 echo "$ac_t""yes" 1>&6
10501 cat >> confdefs.h
<<\EOF
10502 #define WITH_SMBWRAPPER 1
10505 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10507 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10510 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10513 # Conditions under which smbwrapper should not be built.
10515 if test x
$PICFLAG = x
; then
10516 echo No support
for PIC code
- disabling smbwrapper and smbsh
10519 elif test x
$ac_cv_func_syscall = xno
; then
10520 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10526 echo "$ac_t""no" 1>&6
10530 echo "$ac_t""no" 1>&6
10535 #################################################
10536 # check for the AFS filesystem
10537 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10538 echo "configure:10539: checking whether to use AFS" >&5
10539 # Check whether --with-afs or --without-afs was given.
10540 if test "${with_afs+set}" = set; then
10541 withval
="$with_afs"
10544 echo "$ac_t""yes" 1>&6
10545 cat >> confdefs.h
<<\EOF
10551 echo "$ac_t""no" 1>&6
10555 echo "$ac_t""no" 1>&6
10561 #################################################
10562 # check for the DFS auth system
10563 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10564 echo "configure:10565: checking whether to use DFS auth" >&5
10565 # Check whether --with-dfs or --without-dfs was given.
10566 if test "${with_dfs+set}" = set; then
10567 withval
="$with_dfs"
10570 echo "$ac_t""yes" 1>&6
10571 cat >> confdefs.h
<<\EOF
10577 echo "$ac_t""no" 1>&6
10581 echo "$ac_t""no" 1>&6
10586 #################################################
10587 # check for Kerberos IV auth system
10588 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10589 echo "configure:10590: checking whether to use Kerberos IV" >&5
10590 # Check whether --with-krb4 or --without-krb4 was given.
10591 if test "${with_krb4+set}" = set; then
10592 withval
="$with_krb4"
10593 echo "$ac_t""yes" 1>&6
10594 cat >> confdefs.h
<<\EOF
10595 #define KRB4_AUTH 1
10598 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10599 echo "configure:10600: checking for dn_expand in -lresolv" >&5
10600 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10604 ac_save_LIBS
="$LIBS"
10605 LIBS
="-lresolv $LIBS"
10606 cat > conftest.
$ac_ext <<EOF
10607 #line 10608 "configure"
10608 #include "confdefs.h"
10609 /* Override any gcc2 internal prototype to avoid an error. */
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10618 if { (eval echo configure
:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10620 eval "ac_cv_lib_$ac_lib_var=yes"
10622 echo "configure: failed program was:" >&5
10623 cat conftest.
$ac_ext >&5
10625 eval "ac_cv_lib_$ac_lib_var=no"
10628 LIBS
="$ac_save_LIBS"
10631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10632 echo "$ac_t""yes" 1>&6
10633 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10634 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10635 cat >> confdefs.h
<<EOF
10636 #define $ac_tr_lib 1
10639 LIBS
="-lresolv $LIBS"
10642 echo "$ac_t""no" 1>&6
10645 LIBS
="$LIBS -lkrb -ldes"
10646 CFLAGS
="$CFLAGS -I$withval/include"
10647 LDFLAGS
="$LDFLAGS -L$withval/lib"
10649 echo "$ac_t""no" 1>&6
10654 #################################################
10655 # check for Kerberos 5 auth system
10656 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10657 echo "configure:10658: checking whether to use Kerberos 5" >&5
10658 # Check whether --with-krb5 or --without-krb5 was given.
10659 if test "${with_krb5+set}" = set; then
10660 withval
="$with_krb5"
10661 echo "$ac_t""yes" 1>&6
10662 cat >> confdefs.h
<<\EOF
10663 #define KRB5_AUTH 1
10666 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10667 CFLAGS
="$CFLAGS -I$withval/include"
10668 LDFLAGS
="$LDFLAGS -L$withval/lib"
10670 echo "$ac_t""no" 1>&6
10675 #################################################
10676 # check for automount support
10677 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10678 echo "configure:10679: checking whether to use AUTOMOUNT" >&5
10679 # Check whether --with-automount or --without-automount was given.
10680 if test "${with_automount+set}" = set; then
10681 withval
="$with_automount"
10684 echo "$ac_t""yes" 1>&6
10685 cat >> confdefs.h
<<\EOF
10686 #define WITH_AUTOMOUNT 1
10691 echo "$ac_t""no" 1>&6
10695 echo "$ac_t""no" 1>&6
10700 #################################################
10701 # check for smbmount support
10702 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10703 echo "configure:10704: checking whether to use SMBMOUNT" >&5
10704 # Check whether --with-smbmount or --without-smbmount was given.
10705 if test "${with_smbmount+set}" = set; then
10706 withval
="$with_smbmount"
10709 echo "$ac_t""yes" 1>&6
10710 cat >> confdefs.h
<<\EOF
10711 #define WITH_SMBMOUNT 1
10714 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10717 echo "$ac_t""no" 1>&6
10722 echo "$ac_t""no" 1>&6
10729 #################################################
10730 # check for a PAM password database
10731 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10732 echo "configure:10733: checking whether to use PAM password database" >&5
10733 # Check whether --with-pam or --without-pam was given.
10734 if test "${with_pam+set}" = set; then
10735 withval
="$with_pam"
10738 echo "$ac_t""yes" 1>&6
10739 cat >> confdefs.h
<<\EOF
10746 echo "$ac_t""no" 1>&6
10750 echo "$ac_t""no" 1>&6
10755 #################################################
10756 # check for a TDB password database
10757 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10758 echo "configure:10759: checking whether to use TDB password database" >&5
10759 # Check whether --with-tdbsam or --without-tdbsam was given.
10760 if test "${with_tdbsam+set}" = set; then
10761 withval
="$with_tdbsam"
10764 echo "$ac_t""yes" 1>&6
10765 cat >> confdefs.h
<<\EOF
10766 #define WITH_TDBPWD 1
10769 # AC_MSG_ERROR([TDB password database not supported in this version.])
10772 echo "$ac_t""no" 1>&6
10776 echo "$ac_t""no" 1>&6
10781 #################################################
10782 # check for a LDAP password database
10783 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10784 echo "configure:10785: checking whether to use LDAP password database" >&5
10785 # Check whether --with-ldap or --without-ldap was given.
10786 if test "${with_ldap+set}" = set; then
10787 withval
="$with_ldap"
10790 echo "$ac_t""yes" 1>&6
10791 cat >> confdefs.h
<<\EOF
10792 #define WITH_LDAP 1
10795 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10798 echo "$ac_t""no" 1>&6
10802 echo "$ac_t""no" 1>&6
10807 #################################################
10808 # check for a NISPLUS password database
10809 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10810 echo "configure:10811: checking whether to use NISPLUS password database" >&5
10811 # Check whether --with-nisplus or --without-nisplus was given.
10812 if test "${with_nisplus+set}" = set; then
10813 withval
="$with_nisplus"
10816 echo "$ac_t""yes" 1>&6
10817 cat >> confdefs.h
<<\EOF
10818 #define WITH_NISPLUS 1
10823 echo "$ac_t""no" 1>&6
10827 echo "$ac_t""no" 1>&6
10832 #################################################
10833 # check for a NISPLUS_HOME support
10834 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10835 echo "configure:10836: checking whether to use NISPLUS_HOME" >&5
10836 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10837 if test "${with_nisplus_home+set}" = set; then
10838 withval
="$with_nisplus_home"
10841 echo "$ac_t""yes" 1>&6
10842 cat >> confdefs.h
<<\EOF
10843 #define WITH_NISPLUS_HOME 1
10848 echo "$ac_t""no" 1>&6
10852 echo "$ac_t""no" 1>&6
10857 #################################################
10858 # check for the secure socket layer
10859 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10860 echo "configure:10861: checking whether to use SSL" >&5
10861 # Check whether --with-ssl or --without-ssl was given.
10862 if test "${with_ssl+set}" = set; then
10863 withval
="$with_ssl"
10866 echo "$ac_t""yes" 1>&6
10867 cat >> confdefs.h
<<\EOF
10871 withval
="/usr/local/ssl" # default
10873 if test "${with_sslinc+set}" = set; then
10875 withval
="$with_sslinc"
10878 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10879 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10880 LIBS
="-lssl -lcrypto $LIBS"
10881 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
10884 CFLAGS
="-I${withval}/include $CFLAGS"
10885 LIBS
="-lssl -lcrypto $LIBS"
10886 LDFLAGS
="-L${withval}/lib $LDFLAGS"
10892 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10893 LIBS
="-lssl -lcrypto $LIBS"
10894 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
10898 if test ! -d ${withval}; then
10899 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10903 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10907 echo "$ac_t""no" 1>&6
10911 echo "$ac_t""no" 1>&6
10916 #################################################
10917 # check for syslog logging
10918 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10919 echo "configure:10920: checking whether to use syslog logging" >&5
10920 # Check whether --with-syslog or --without-syslog was given.
10921 if test "${with_syslog+set}" = set; then
10922 withval
="$with_syslog"
10925 echo "$ac_t""yes" 1>&6
10926 cat >> confdefs.h
<<\EOF
10927 #define WITH_SYSLOG 1
10932 echo "$ac_t""no" 1>&6
10936 echo "$ac_t""no" 1>&6
10941 #################################################
10942 # check for a shared memory profiling support
10943 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10944 echo "configure:10945: checking whether to use profiling" >&5
10945 # Check whether --with-profile or --without-profile was given.
10946 if test "${with_profile+set}" = set; then
10947 withval
="$with_profile"
10950 echo "$ac_t""yes" 1>&6
10951 cat >> confdefs.h
<<\EOF
10952 #define WITH_PROFILE 1
10957 echo "$ac_t""no" 1>&6
10961 echo "$ac_t""no" 1>&6
10967 #################################################
10968 # check for experimental netatalk resource fork support
10969 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10970 echo "configure:10971: checking whether to support netatalk" >&5
10971 # Check whether --with-netatalk or --without-netatalk was given.
10972 if test "${with_netatalk+set}" = set; then
10973 withval
="$with_netatalk"
10976 echo "$ac_t""yes" 1>&6
10977 cat >> confdefs.h
<<\EOF
10978 #define WITH_NETATALK 1
10983 echo "$ac_t""no" 1>&6
10987 echo "$ac_t""no" 1>&6
10992 #################################################
10993 # check for experimental disk-quotas support
10994 QUOTAOBJS
=smbd
/noquotas.o
10996 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10997 echo "configure:10998: checking whether to support disk-quotas" >&5
10998 # Check whether --with-quotas or --without-quotas was given.
10999 if test "${with_quotas+set}" = set; then
11000 withval
="$with_quotas"
11003 echo "$ac_t""yes" 1>&6
11004 QUOTAOBJS
=smbd
/quotas.o
11007 echo "$ac_t""no" 1>&6
11011 echo "$ac_t""no" 1>&6
11017 #################################################
11018 # check for experimental utmp accounting
11020 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11021 echo "configure:11022: checking whether to support utmp accounting" >&5
11022 # Check whether --with-utmp or --without-utmp was given.
11023 if test "${with_utmp+set}" = set; then
11024 withval
="$with_utmp"
11027 echo "$ac_t""yes" 1>&6
11028 cat >> confdefs.h
<<\EOF
11029 #define WITH_UTMP 1
11034 echo "$ac_t""no" 1>&6
11038 echo "$ac_t""no" 1>&6
11043 #################################################
11044 # check for MS Dfs support
11046 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11047 echo "configure:11048: checking whether to support Microsoft Dfs" >&5
11048 # Check whether --with-msdfs or --without-msdfs was given.
11049 if test "${with_msdfs+set}" = set; then
11050 withval
="$with_msdfs"
11053 echo "$ac_t""yes" 1>&6
11054 cat >> confdefs.h
<<\EOF
11055 #define WITH_MSDFS 1
11060 echo "$ac_t""no" 1>&6
11064 echo "$ac_t""no" 1>&6
11069 #################################################
11070 # set private directory location
11071 # Check whether --with-privatedir or --without-privatedir was given.
11072 if test "${with_privatedir+set}" = set; then
11073 withval
="$with_privatedir"
11077 # Just in case anybody calls it without argument
11079 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11080 privatedir
='${prefix}/private'
11083 privatedir
="$withval"
11088 privatedir
='${prefix}/private'
11094 #################################################
11095 # set lock directory location
11096 # Check whether --with-lockdir or --without-lockdir was given.
11097 if test "${with_lockdir+set}" = set; then
11098 withval
="$with_lockdir"
11102 # Just in case anybody calls it without argument
11104 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11105 lockdir
='$(VARDIR)/locks'
11113 lockdir
='$(VARDIR)/locks'
11119 #################################################
11120 # set SWAT directory location
11121 # Check whether --with-swatdir or --without-swatdir was given.
11122 if test "${with_swatdir+set}" = set; then
11123 withval
="$with_swatdir"
11127 # Just in case anybody does it
11129 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11130 swatdir
='${prefix}/swat'
11138 swatdir
='${prefix}/swat'
11144 #################################################
11145 # these tests are taken from the GNU fileutils package
11146 echo "checking how to get filesystem space usage" 1>&6
11147 echo "configure:11148: checking how to get filesystem space usage" >&5
11150 # Test for statvfs64.
11151 if test $space = no
; then
11153 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11154 echo "configure:11155: checking statvfs64 function (SVR4)" >&5
11155 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11156 echo $ac_n "(cached) $ac_c" 1>&6
11158 if test "$cross_compiling" = yes; then
11159 fu_cv_sys_stat_statvfs64
=cross
11161 cat > conftest.
$ac_ext <<EOF
11162 #line 11163 "configure"
11163 #include "confdefs.h"
11165 #if defined(HAVE_UNISTD_H)
11166 #include <unistd.h>
11168 #include <sys/types.h>
11169 #include <sys/statvfs.h>
11172 struct statvfs64 fsd;
11173 exit (statvfs64 (".", &fsd));
11176 if { (eval echo configure
:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11178 fu_cv_sys_stat_statvfs64
=yes
11180 echo "configure: failed program was:" >&5
11181 cat conftest.
$ac_ext >&5
11183 fu_cv_sys_stat_statvfs64
=no
11190 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11191 if test $fu_cv_sys_stat_statvfs64 = yes; then
11193 cat >> confdefs.h
<<\EOF
11194 #define STAT_STATVFS64 1
11200 # Perform only the link test since it seems there are no variants of the
11201 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11202 # because that got a false positive on SCO OSR5. Adding the declaration
11203 # of a `struct statvfs' causes this test to fail (as it should) on such
11204 # systems. That system is reported to work fine with STAT_STATFS4 which
11205 # is what it gets when this test fails.
11206 if test $space = no
; then
11208 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11209 echo "configure:11210: checking statvfs function (SVR4)" >&5
11210 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11213 cat > conftest.
$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 #include <sys/types.h>
11217 #include <sys/statvfs.h>
11219 struct statvfs fsd; statvfs (0, &fsd);
11222 if { (eval echo configure
:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11224 fu_cv_sys_stat_statvfs
=yes
11226 echo "configure: failed program was:" >&5
11227 cat conftest.
$ac_ext >&5
11229 fu_cv_sys_stat_statvfs
=no
11234 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11235 if test $fu_cv_sys_stat_statvfs = yes; then
11237 cat >> confdefs.h
<<\EOF
11238 #define STAT_STATVFS 1
11244 if test $space = no
; then
11245 # DEC Alpha running OSF/1
11246 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11247 echo "configure:11248: checking for 3-argument statfs function (DEC OSF/1)" >&5
11248 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
11251 if test "$cross_compiling" = yes; then
11252 fu_cv_sys_stat_statfs3_osf1
=no
11254 cat > conftest.
$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11258 #include <sys/param.h>
11259 #include <sys/types.h>
11260 #include <sys/mount.h>
11265 exit (statfs (".", &fsd, sizeof (struct statfs)));
11268 if { (eval echo configure
:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11270 fu_cv_sys_stat_statfs3_osf1
=yes
11272 echo "configure: failed program was:" >&5
11273 cat conftest.
$ac_ext >&5
11275 fu_cv_sys_stat_statfs3_osf1
=no
11282 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11283 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11285 cat >> confdefs.h
<<\EOF
11286 #define STAT_STATFS3_OSF1 1
11292 if test $space = no
; then
11294 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11295 echo "configure:11296: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11296 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11297 echo $ac_n "(cached) $ac_c" 1>&6
11299 if test "$cross_compiling" = yes; then
11300 fu_cv_sys_stat_statfs2_bsize
=no
11302 cat > conftest.
$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11306 #ifdef HAVE_SYS_PARAM_H
11307 #include <sys/param.h>
11309 #ifdef HAVE_SYS_MOUNT_H
11310 #include <sys/mount.h>
11312 #ifdef HAVE_SYS_VFS_H
11313 #include <sys/vfs.h>
11319 exit (statfs (".", &fsd));
11322 if { (eval echo configure
:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11324 fu_cv_sys_stat_statfs2_bsize
=yes
11326 echo "configure: failed program was:" >&5
11327 cat conftest.
$ac_ext >&5
11329 fu_cv_sys_stat_statfs2_bsize
=no
11336 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11337 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11339 cat >> confdefs.h
<<\EOF
11340 #define STAT_STATFS2_BSIZE 1
11346 if test $space = no
; then
11348 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11349 echo "configure:11350: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11350 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11353 if test "$cross_compiling" = yes; then
11354 fu_cv_sys_stat_statfs4
=no
11356 cat > conftest.
$ac_ext <<EOF
11357 #line 11358 "configure"
11358 #include "confdefs.h"
11359 #include <sys/types.h>
11360 #include <sys/statfs.h>
11364 exit (statfs (".", &fsd, sizeof fsd, 0));
11367 if { (eval echo configure
:11368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11369 fu_cv_sys_stat_statfs4
=yes
11371 echo "configure: failed program was:" >&5
11372 cat conftest.
$ac_ext >&5
11374 fu_cv_sys_stat_statfs4
=no
11381 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11382 if test $fu_cv_sys_stat_statfs4 = yes; then
11384 cat >> confdefs.h
<<\EOF
11385 #define STAT_STATFS4 1
11391 if test $space = no
; then
11392 # 4.4BSD and NetBSD
11393 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11394 echo "configure:11395: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11395 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11398 if test "$cross_compiling" = yes; then
11399 fu_cv_sys_stat_statfs2_fsize
=no
11401 cat > conftest.
$ac_ext <<EOF
11402 #line 11403 "configure"
11403 #include "confdefs.h"
11404 #include <sys/types.h>
11405 #ifdef HAVE_SYS_PARAM_H
11406 #include <sys/param.h>
11408 #ifdef HAVE_SYS_MOUNT_H
11409 #include <sys/mount.h>
11415 exit (statfs (".", &fsd));
11418 if { (eval echo configure
:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11420 fu_cv_sys_stat_statfs2_fsize
=yes
11422 echo "configure: failed program was:" >&5
11423 cat conftest.
$ac_ext >&5
11425 fu_cv_sys_stat_statfs2_fsize
=no
11432 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11433 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11435 cat >> confdefs.h
<<\EOF
11436 #define STAT_STATFS2_FSIZE 1
11442 if test $space = no
; then
11444 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11445 echo "configure:11446: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11446 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
11449 if test "$cross_compiling" = yes; then
11450 fu_cv_sys_stat_fs_data
=no
11452 cat > conftest.
$ac_ext <<EOF
11453 #line 11454 "configure"
11454 #include "confdefs.h"
11455 #include <sys/types.h>
11456 #ifdef HAVE_SYS_PARAM_H
11457 #include <sys/param.h>
11459 #ifdef HAVE_SYS_MOUNT_H
11460 #include <sys/mount.h>
11462 #ifdef HAVE_SYS_FS_TYPES_H
11463 #include <sys/fs_types.h>
11467 struct fs_data fsd;
11468 /* Ultrix's statfs returns 1 for success,
11469 0 for not mounted, -1 for failure. */
11470 exit (statfs (".", &fsd) != 1);
11473 if { (eval echo configure
:11474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11475 fu_cv_sys_stat_fs_data
=yes
11477 echo "configure: failed program was:" >&5
11478 cat conftest.
$ac_ext >&5
11480 fu_cv_sys_stat_fs_data
=no
11487 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11488 if test $fu_cv_sys_stat_fs_data = yes; then
11490 cat >> confdefs.h
<<\EOF
11491 #define STAT_STATFS2_FS_DATA 1
11498 # As a gating factor for large file support, in order to
11499 # use <4GB files we must have the following minimal support
11501 # long long, and a 64 bit off_t or off64_t.
11502 # If we don't have all of these then disable large
11505 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
11506 echo "configure:11507: checking if large file support can be enabled" >&5
11507 cat > conftest.
$ac_ext <<EOF
11508 #line 11509 "configure"
11509 #include "confdefs.h"
11511 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11512 #include <sys/types.h>
11521 if { (eval echo configure
:11522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11523 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11525 echo "configure: failed program was:" >&5
11526 cat conftest.
$ac_ext >&5
11528 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11531 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11532 cat >> confdefs.h
<<\EOF
11533 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11537 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
11539 # Check whether --with-spinlocks or --without-spinlocks was given.
11540 if test "${with_spinlocks+set}" = set; then
11541 withval
="$with_spinlocks"
11545 if test "x$with_spinlocks" = "xyes"; then
11546 cat >> confdefs.h
<<\EOF
11547 #define USE_SPINLOCKS 1
11551 case "$host_cpu" in
11553 cat >> confdefs.h
<<\EOF
11554 #define SPARC_SPINLOCKS 1
11559 i386|i486|i586|i686
)
11560 cat >> confdefs.h
<<\EOF
11561 #define INTEL_SPINLOCKS 1
11567 cat >> confdefs.h
<<\EOF
11568 #define MIPS_SPINLOCKS 1
11574 cat >> confdefs.h
<<\EOF
11575 #define POWERPC_SPINLOCKS 1
11582 #################################################
11583 # check for ACL support
11585 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
11586 echo "configure:11587: checking whether to support ACLs" >&5
11587 # Check whether --with-acl-support or --without-acl-support was given.
11588 if test "${with_acl_support+set}" = set; then
11589 withval
="$with_acl_support"
11595 echo "$ac_t""Using SVR4 ACLs" 1>&6
11596 cat >> confdefs.h
<<\EOF
11597 #define HAVE_UNIXWARE_ACLS 1
11602 echo "$ac_t""Using solaris ACLs" 1>&6
11603 cat >> confdefs.h
<<\EOF
11604 #define HAVE_SOLARIS_ACLS 1
11609 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
11610 echo "configure:11611: checking for acl_get_file in -lacl" >&5
11611 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
11612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11613 echo $ac_n "(cached) $ac_c" 1>&6
11615 ac_save_LIBS
="$LIBS"
11617 cat > conftest.
$ac_ext <<EOF
11618 #line 11619 "configure"
11619 #include "confdefs.h"
11620 /* Override any gcc2 internal prototype to avoid an error. */
11621 /* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11623 char acl_get_file();
11629 if { (eval echo configure
:11630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11631 eval "ac_cv_lib_$ac_lib_var=yes"
11633 echo "configure: failed program was:" >&5
11634 cat conftest.
$ac_ext >&5
11636 eval "ac_cv_lib_$ac_lib_var=no"
11639 LIBS
="$ac_save_LIBS"
11642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11643 echo "$ac_t""yes" 1>&6
11644 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11645 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11646 cat >> confdefs.h
<<EOF
11647 #define $ac_tr_lib 1
11653 echo "$ac_t""no" 1>&6
11656 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
11657 echo "configure:11658: checking for ACL support" >&5
11658 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
11659 echo $ac_n "(cached) $ac_c" 1>&6
11662 cat > conftest.
$ac_ext <<EOF
11663 #line 11664 "configure"
11664 #include "confdefs.h"
11665 #include <sys/types.h>
11666 #include <sys/acl.h>
11668 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
11671 if { (eval echo configure
:11672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11673 samba_cv_HAVE_POSIX_ACLS
=yes
11675 echo "configure: failed program was:" >&5
11676 cat conftest.
$ac_ext >&5
11678 samba_cv_HAVE_POSIX_ACLS
=no
11683 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
11684 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
11685 echo "$ac_t""Using posix ACLs" 1>&6
11686 cat >> confdefs.h
<<\EOF
11687 #define HAVE_POSIX_ACLS 1
11695 echo "$ac_t""no" 1>&6
11696 cat >> confdefs.h
<<\EOF
11697 #define HAVE_NO_ACLS 1
11703 cat >> confdefs.h
<<\EOF
11704 #define HAVE_NO_ACLS 1
11707 echo "$ac_t""no" 1>&6
11711 echo "checking configure summary"
11712 if test "$cross_compiling" = yes; then
11715 cat > conftest.
$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 #include "${srcdir-.}/tests/summary.c"
11720 if { (eval echo configure
:11721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11722 echo "configure OK";
11724 echo "configure: failed program was:" >&5
11725 cat conftest.
$ac_ext >&5
11727 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11737 cat > confcache
<<\EOF
11738 # This file is a shell script that caches the results of configure
11739 # tests run on this system so they can be shared between configure
11740 # scripts and configure runs. It is not useful on other systems.
11741 # If it contains results you don't want to keep, you may remove or edit it.
11743 # By default, configure uses ./config.cache as the cache file,
11744 # creating it if it does not exist already. You can give configure
11745 # the --cache-file=FILE option to use a different cache file; that is
11746 # what configure does when it calls configure scripts in
11747 # subdirectories, so they share the cache.
11748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11749 # config.status only pays attention to the cache file if you give it the
11750 # --recheck option to rerun configure.
11753 # The following way of writing the cache mishandles newlines in values,
11754 # but we know of no workaround that is simple, portable, and efficient.
11755 # So, don't put newlines in cache variables' values.
11756 # Ultrix sh set writes to stderr and can't be redirected directly,
11757 # and sets the high bit in the cache file unless we assign to the vars.
11759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11761 # `set' does not quote correctly, so add quotes (double-quote substitution
11762 # turns \\\\ into \\, and sed turns \\ into \).
11764 -e "s/'/'\\\\''/g" \
11765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11768 # `set' quotes correctly as required by POSIX, so do not add quotes.
11769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11772 if cmp -s $cache_file confcache
; then
11775 if test -w $cache_file; then
11776 echo "updating cache $cache_file"
11777 cat confcache
> $cache_file
11779 echo "not updating unwritable cache $cache_file"
11784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11786 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11787 # Let make expand exec_prefix.
11788 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11790 # Any assignment to VPATH causes Sun make to only execute
11791 # the first set of double-colon rules, so remove it if not needed.
11792 # If there is a colon in the path, we need to keep it.
11793 if test "x$srcdir" = x.
; then
11794 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11799 DEFS
=-DHAVE_CONFIG_H
11801 # Without the "./", some shells look in PATH for config.status.
11802 : ${CONFIG_STATUS=./config.status}
11804 echo creating
$CONFIG_STATUS
11805 rm -f $CONFIG_STATUS
11806 cat > $CONFIG_STATUS <<EOF
11808 # Generated automatically by configure.
11809 # Run this file to recreate the current configuration.
11810 # This directory was configured as follows,
11811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11813 # $0 $ac_configure_args
11815 # Compiler output produced by configure, useful for debugging
11816 # configure, is in ./config.log if it exists.
11818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11821 case "\$ac_option" in
11822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11826 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11828 -help | --help | --hel | --he | --h)
11829 echo "\$ac_cs_usage"; exit 0 ;;
11830 *) echo "\$ac_cs_usage"; exit 1 ;;
11834 ac_given_srcdir=$srcdir
11835 ac_given_INSTALL="$INSTALL"
11837 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11839 cat >> $CONFIG_STATUS <<EOF
11841 # Protect against being on the right side of a sed subst in config.status.
11842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11847 s%@CFLAGS@%$CFLAGS%g
11848 s%@CPPFLAGS@%$CPPFLAGS%g
11849 s%@CXXFLAGS@%$CXXFLAGS%g
11850 s%@FFLAGS@%$FFLAGS%g
11852 s%@LDFLAGS@%$LDFLAGS%g
11854 s%@exec_prefix@%$exec_prefix%g
11855 s%@prefix@%$prefix%g
11856 s%@program_transform_name@%$program_transform_name%g
11857 s%@bindir@%$bindir%g
11858 s%@sbindir@%$sbindir%g
11859 s%@libexecdir@%$libexecdir%g
11860 s%@datadir@%$datadir%g
11861 s%@sysconfdir@%$sysconfdir%g
11862 s%@sharedstatedir@%$sharedstatedir%g
11863 s%@localstatedir@%$localstatedir%g
11864 s%@libdir@%$libdir%g
11865 s%@includedir@%$includedir%g
11866 s%@oldincludedir@%$oldincludedir%g
11867 s%@infodir@%$infodir%g
11868 s%@mandir@%$mandir%g
11869 s%@RUNPROG@%$RUNPROG%g
11870 s%@MPROGS@%$MPROGS%g
11871 s%@LDSHFLAGS@%$LDSHFLAGS%g
11872 s%@HOST_OS@%$HOST_OS%g
11874 s%@WRAP32@%$WRAP32%g
11875 s%@PICFLAG@%$PICFLAG%g
11876 s%@SHLIBEXT@%$SHLIBEXT%g
11878 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11879 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11880 s%@INSTALL_DATA@%$INSTALL_DATA%g
11883 s%@host_alias@%$host_alias%g
11884 s%@host_cpu@%$host_cpu%g
11885 s%@host_vendor@%$host_vendor%g
11886 s%@host_os@%$host_os%g
11888 s%@build_alias@%$build_alias%g
11889 s%@build_cpu@%$build_cpu%g
11890 s%@build_vendor@%$build_vendor%g
11891 s%@build_os@%$build_os%g
11892 s%@RANLIB@%$RANLIB%g
11894 s%@LIBTOOL@%$LIBTOOL%g
11895 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11896 s%@BROKEN_CC@%$BROKEN_CC%g
11897 s%@target@%$target%g
11898 s%@target_alias@%$target_alias%g
11899 s%@target_cpu@%$target_cpu%g
11900 s%@target_vendor@%$target_vendor%g
11901 s%@target_os@%$target_os%g
11903 s%@LIBOBJS@%$LIBOBJS%g
11905 s%@QUOTAOBJS@%$QUOTAOBJS%g
11906 s%@privatedir@%$privatedir%g
11907 s%@lockdir@%$lockdir%g
11908 s%@swatdir@%$swatdir%g
11909 s%@builddir@%$builddir%g
11914 cat >> $CONFIG_STATUS <<\EOF
11916 # Split the substitutions into bite-sized pieces for seds with
11917 # small command number limits, like on Digital OSF/1 and HP-UX.
11918 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11919 ac_file
=1 # Number of current file.
11920 ac_beg
=1 # First line for current file.
11921 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11924 while $ac_more_lines; do
11925 if test $ac_beg -gt 1; then
11926 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11928 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11930 if test ! -s conftest.s
$ac_file; then
11931 ac_more_lines
=false
11932 rm -f conftest.s
$ac_file
11934 if test -z "$ac_sed_cmds"; then
11935 ac_sed_cmds
="sed -f conftest.s$ac_file"
11937 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11939 ac_file
=`expr $ac_file + 1`
11941 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11944 if test -z "$ac_sed_cmds"; then
11949 cat >> $CONFIG_STATUS <<EOF
11951 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11953 cat >> $CONFIG_STATUS <<\EOF
11954 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11957 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11958 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11959 *) ac_file_in
="${ac_file}.in" ;;
11962 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11964 # Remove last slash and all that follows it. Not all systems have dirname.
11965 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11966 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11967 # The file is in a subdirectory.
11968 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11969 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11970 # A "../" for each directory in $ac_dir_suffix.
11971 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11973 ac_dir_suffix
= ac_dots
=
11976 case "$ac_given_srcdir" in
11978 if test -z "$ac_dots"; then top_srcdir
=.
11979 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11980 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11981 *) # Relative path.
11982 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11983 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11986 case "$ac_given_INSTALL" in
11987 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11988 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11991 echo creating
"$ac_file"
11993 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11995 *Makefile
*) ac_comsub
="1i\\
11996 # $configure_input" ;;
12000 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12002 s%@configure_input@%$configure_input%g
12003 s%@srcdir@%$srcdir%g
12004 s%@top_srcdir@%$top_srcdir%g
12005 s%@INSTALL@%$INSTALL%g
12006 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12010 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12011 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12013 # ac_d sets the value in "#define NAME VALUE" lines.
12014 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12015 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12018 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12019 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12020 ac_uB
='\([ ]\)%\1#\2define\3'
12023 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12024 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12025 ac_eB
='$%\1#\2define\3'
12029 if test "${CONFIG_HEADERS+set}" != set; then
12031 cat >> $CONFIG_STATUS <<EOF
12032 CONFIG_HEADERS="include/config.h"
12034 cat >> $CONFIG_STATUS <<\EOF
12036 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12039 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12040 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12041 *) ac_file_in
="${ac_file}.in" ;;
12044 echo creating
$ac_file
12046 rm -f conftest.frag conftest.
in conftest.out
12047 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12048 cat $ac_file_inputs > conftest.
in
12052 # Transform confdefs.h into a sed script conftest.vals that substitutes
12053 # the proper values into config.h.in to produce config.h. And first:
12054 # Protect against being on the right side of a sed subst in config.status.
12055 # Protect against being in an unquoted here document in config.status.
12056 rm -f conftest.vals
12057 cat > conftest.hdr
<<\EOF
12060 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12064 sed -n -f conftest.hdr confdefs.h > conftest.vals
12067 # This sed command replaces #undef with comments. This is necessary, for
12068 # example, in the case of _POSIX_SOURCE, which is predefined and required
12069 # on some systems where configure will not decide to define it.
12070 cat >> conftest.vals <<\EOF
12071 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12074 # Break up conftest.vals because some shells have a limit on
12075 # the size of here documents, and old seds have small limits too.
12077 rm -f conftest.tail
12080 ac_lines=`grep -c . conftest.vals
`
12081 # grep -c gives empty output for an empty file on some AIX systems.
12082 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12083 # Write a limited-size here document to conftest.frag.
12084 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12085 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12087 sed -f conftest.frag conftest.in > conftest.out
12089 mv conftest.out conftest.in
12090 ' >> $CONFIG_STATUS
12091 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12092 rm -f conftest.vals
12093 mv conftest.tail conftest.vals
12095 rm -f conftest.vals
12097 cat >> $CONFIG_STATUS <<\EOF
12098 rm -f conftest.frag conftest.h
12099 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12100 cat conftest.in >> conftest.h
12102 if cmp -s $ac_file conftest.h 2>/dev/null; then
12103 echo "$ac_file is unchanged"
12106 # Remove last slash and all that follows it. Not all systems have dirname.
12107 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12108 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12109 # The file is in a subdirectory.
12110 test ! -d "$ac_dir" && mkdir "$ac_dir"
12113 mv conftest.h $ac_file
12118 cat >> $CONFIG_STATUS <<EOF
12121 cat >> $CONFIG_STATUS <<\EOF
12125 chmod +x $CONFIG_STATUS
12126 rm -fr confdefs* $ac_clean_files
12127 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1