3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
28 --enable-debug Turn on compiler debugging information (default=no)"
30 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
32 --with-smbwrapper Include SMB wrapper support (default=no)"
34 --with-afs Include AFS support (default=no)"
36 --with-dce-dfs Include DCE/DFS support (default=no)"
38 --with-krb4=base-dir Include Kerberos IV support (default=no)"
40 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
42 --with-automount Include AUTOMOUNT support (default=no)"
44 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
46 --with-pam Include PAM password database support (default=no)"
48 --with-pam_smbpass Include the smbpass PAM module (default=no)"
50 --with-tdbsam Include experimental TDB SAM support (default=no)"
52 --with-ldapsam Include experimental LDAP SAM support (default=no)"
54 --with-nisplussam Include NISPLUS SAM support (default=no)"
56 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
58 --with-ssl Include SSL support (default=no)
59 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
60 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
62 --with-syslog Include experimental SYSLOG support (default=no)"
64 --with-profiling-data Include gathering source code profile information (default=no)"
66 --with-quotas Include experimental disk-quota support (default=no)"
68 --with-utmp Include experimental utmp accounting (default=no)"
70 --with-msdfs Include MS Dfs support (default=no)"
72 --with-vfs Include Samba vfs support (default=no)"
74 --with-libsmbclient Build the libsmbclient shared library (default=no)"
76 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
78 --with-acl-support Include ACL support (default=no)"
80 --with-winbind Build winbind (default, if supported by OS)"
82 # Initialize some variables set by options.
83 # The variables have the same names as the options, with
84 # dashes changed to underlines.
86 cache_file
=.
/config.cache
95 program_transform_name
=s
,x
,x
,
103 bindir
='${exec_prefix}/bin'
104 sbindir
='${exec_prefix}/sbin'
105 libexecdir
='${exec_prefix}/libexec'
106 datadir
='${prefix}/share'
107 sysconfdir
='${prefix}/etc'
108 sharedstatedir
='${prefix}/com'
109 localstatedir
='${prefix}/var'
110 libdir
='${exec_prefix}/lib'
111 includedir
='${prefix}/include'
112 oldincludedir
='/usr/include'
113 infodir
='${prefix}/info'
114 mandir
='${prefix}/man'
116 # Initialize some other variables.
119 SHELL
=${CONFIG_SHELL-/bin/sh}
120 # Maximum number of lines to put in a shell here document.
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
135 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 # Accept the important Cygnus configure options, so we can diagnose typos.
143 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
145 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
146 bindir
="$ac_optarg" ;;
148 -build |
--build |
--buil |
--bui |
--bu)
150 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
151 build
="$ac_optarg" ;;
153 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
154 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
155 ac_prev
=cache_file
;;
156 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
157 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
158 cache_file
="$ac_optarg" ;;
160 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
162 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
164 datadir
="$ac_optarg" ;;
166 -disable-* |
--disable-*)
167 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* |
--enable-*)
176 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
189 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
190 |
--exec |
--exe |
--ex)
191 ac_prev
=exec_prefix
;;
192 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
193 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
194 |
--exec=* |
--exe=* |
--ex=*)
195 exec_prefix
="$ac_optarg" ;;
197 -gas |
--gas |
--ga |
--g)
198 # Obsolete; use --with-gas.
201 -help |
--help |
--hel |
--he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --infodir=DIR info documentation in DIR [PREFIX/info]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
256 -host |
--host |
--hos |
--ho)
258 -host=* |
--host=* |
--hos=* |
--ho=*)
261 -includedir |
--includedir |
--includedi |
--included |
--include \
262 |
--includ |
--inclu |
--incl |
--inc)
263 ac_prev
=includedir
;;
264 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
265 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
266 includedir
="$ac_optarg" ;;
268 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
270 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
271 infodir
="$ac_optarg" ;;
273 -libdir |
--libdir |
--libdi |
--libd)
275 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
276 libdir
="$ac_optarg" ;;
278 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
279 |
--libexe |
--libex |
--libe)
280 ac_prev
=libexecdir
;;
281 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
282 |
--libexe=* |
--libex=* |
--libe=*)
283 libexecdir
="$ac_optarg" ;;
285 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
286 |
--localstate |
--localstat |
--localsta |
--localst \
287 |
--locals |
--local |
--loca |
--loc |
--lo)
288 ac_prev
=localstatedir
;;
289 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
290 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
291 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
292 localstatedir
="$ac_optarg" ;;
294 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
296 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
297 mandir
="$ac_optarg" ;;
300 # Obsolete; use --without-fp.
303 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
307 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
308 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
311 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
312 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
313 |
--oldin |
--oldi |
--old |
--ol |
--o)
314 ac_prev
=oldincludedir
;;
315 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
316 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
317 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
318 oldincludedir
="$ac_optarg" ;;
320 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
322 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
323 prefix
="$ac_optarg" ;;
325 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
326 |
--program-pre |
--program-pr |
--program-p)
327 ac_prev
=program_prefix
;;
328 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
329 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
330 program_prefix
="$ac_optarg" ;;
332 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
333 |
--program-suf |
--program-su |
--program-s)
334 ac_prev
=program_suffix
;;
335 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
336 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
337 program_suffix
="$ac_optarg" ;;
339 -program-transform-name |
--program-transform-name \
340 |
--program-transform-nam |
--program-transform-na \
341 |
--program-transform-n |
--program-transform- \
342 |
--program-transform |
--program-transfor \
343 |
--program-transfo |
--program-transf \
344 |
--program-trans |
--program-tran \
345 |
--progr-tra |
--program-tr |
--program-t)
346 ac_prev
=program_transform_name
;;
347 -program-transform-name=* |
--program-transform-name=* \
348 |
--program-transform-nam=* |
--program-transform-na=* \
349 |
--program-transform-n=* |
--program-transform-=* \
350 |
--program-transform=* |
--program-transfor=* \
351 |
--program-transfo=* |
--program-transf=* \
352 |
--program-trans=* |
--program-tran=* \
353 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
354 program_transform_name
="$ac_optarg" ;;
356 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
357 |
-silent |
--silent |
--silen |
--sile |
--sil)
360 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
362 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
364 sbindir
="$ac_optarg" ;;
366 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
367 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
368 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
370 ac_prev
=sharedstatedir
;;
371 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
372 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
373 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
375 sharedstatedir
="$ac_optarg" ;;
377 -site |
--site |
--sit)
379 -site=* |
--site=* |
--sit=*)
382 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
384 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
385 srcdir
="$ac_optarg" ;;
387 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
388 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
389 ac_prev
=sysconfdir
;;
390 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
391 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
392 sysconfdir
="$ac_optarg" ;;
394 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
396 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
397 target
="$ac_optarg" ;;
399 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
402 -version |
--version |
--versio |
--versi |
--vers)
403 echo "configure generated by autoconf version 2.13"
407 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* |
--without-*)
420 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
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'`
426 eval "with_${ac_package}=no" ;;
429 # Obsolete; use --with-x.
432 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
433 |
--x-incl |
--x-inc |
--x-in |
--x-i)
434 ac_prev
=x_includes
;;
435 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
436 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
437 x_includes
="$ac_optarg" ;;
439 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
440 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
441 ac_prev
=x_libraries
;;
442 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
443 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
444 x_libraries
="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE
; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
494 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
495 |
--no-cr |
--no-c) ;;
496 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
497 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
498 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest
* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file
=include
/includes.h
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted
=yes
526 # Try the directory containing this script, then its parent.
528 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
531 if test ! -r $srcdir/$ac_unique_file; then
535 ac_srcdir_defaulted
=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE
; then
549 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
551 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file
in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
565 echo "creating cache $cache_file"
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp
='$CPP $CPPFLAGS'
572 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling
=$ac_cv_prog_cc_cross
578 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
579 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
580 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
587 ac_n
= ac_c
='\c' ac_t
=
593 #################################################
594 # Directory handling stuff to support both the
595 # legacy SAMBA directories and FHS compliant
599 # Check whether --with-fhs or --without-fhs was given.
600 if test "${with_fhs+set}" = set; then
602 codepagedir
="\$(DATADIR)/samba/codepages"
603 configdir
="${sysconfdir}/samba"
604 lockdir
="\${VARDIR}/cache/samba"
605 logfilebase
="\${VARDIR}/log/samba"
606 privatedir
="\${CONFIGDIR}/private"
607 swatdir
="\${DATADIR}/samba/swat"
609 codepagedir
="\$(LIBDIR)/codepages"
610 configdir
="\$(LIBDIR)"
611 lockdir
="\$(VARDIR)/locks"
612 logfilebase
="\$(VARDIR)"
613 privatedir
="\${prefix}/private"
614 swatdir
="\${prefix}/swat"
618 #################################################
619 # set private directory location
620 # Check whether --with-privatedir or --without-privatedir was given.
621 if test "${with_privatedir+set}" = set; then
622 withval
="$with_privatedir"
626 # Just in case anybody calls it without argument
628 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
631 privatedir
="$withval"
637 #################################################
638 # set lock directory location
639 # Check whether --with-lockdir or --without-lockdir was given.
640 if test "${with_lockdir+set}" = set; then
641 withval
="$with_lockdir"
645 # Just in case anybody calls it without argument
647 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
656 #################################################
657 # set SWAT directory location
658 # Check whether --with-swatdir or --without-swatdir was given.
659 if test "${with_swatdir+set}" = set; then
660 withval
="$with_swatdir"
664 # Just in case anybody does it
666 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
675 #################################################
676 # set configuration directory location
677 # Check whether --with-configdir or --without-configdir was given.
678 if test "${with_configdir+set}" = set; then
679 withval
="$with_configdir"
683 # Just in case anybody does it
685 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
694 #################################################
695 # set codepage directory location
696 # Check whether --with-codepagedir or --without-codepagedir was given.
697 if test "${with_codepagedir+set}" = set; then
698 withval
="$with_codepagedir"
702 # Just in case anybody does it
704 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
707 codepagedir
="$withval"
740 # compile with optimization and without debugging by default
741 CFLAGS
="-O ${CFLAGS}"
743 # Check whether --enable-debug or --disable-debug was given.
744 if test "${enable_debug+set}" = set; then
745 enableval
="$enable_debug"
746 if eval "test x$enable_debug = xyes"; then
747 CFLAGS
="${CFLAGS} -g"
754 # Extract the first word of "gcc", so it can be a program name with args.
755 set dummy gcc
; ac_word
=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC
="$CC" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
766 for ac_dir
in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir
=.
768 if test -f $ac_dir/$ac_word; then
777 if test -n "$CC"; then
778 echo "$ac_t""$CC" 1>&6
780 echo "$ac_t""no" 1>&6
783 if test -z "$CC"; then
784 # Extract the first word of "cc", so it can be a program name with args.
785 set dummy cc
; ac_word
=$2
786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787 echo "configure:788: checking for $ac_word" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 if test -n "$CC"; then
792 ac_cv_prog_CC
="$CC" # Let the user override the test.
794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
797 for ac_dir
in $ac_dummy; do
798 test -z "$ac_dir" && ac_dir
=.
799 if test -f $ac_dir/$ac_word; then
800 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
809 if test $ac_prog_rejected = yes; then
810 # We found a bogon in the path, so make sure we never use it.
811 set dummy
$ac_cv_prog_CC
813 if test $# -gt 0; then
814 # We chose a different compiler from the bogus one.
815 # However, it has the same basename, so the bogon will be chosen
816 # first if we set CC to just the basename; use the full file name.
818 set dummy
"$ac_dir/$ac_word" "$@"
826 if test -n "$CC"; then
827 echo "$ac_t""$CC" 1>&6
829 echo "$ac_t""no" 1>&6
832 if test -z "$CC"; then
835 # Extract the first word of "cl", so it can be a program name with args.
836 set dummy cl
; ac_word
=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$CC"; then
843 ac_cv_prog_CC
="$CC" # Let the user override the test.
845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
847 for ac_dir
in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir
=.
849 if test -f $ac_dir/$ac_word; then
858 if test -n "$CC"; then
859 echo "$ac_t""$CC" 1>&6
861 echo "$ac_t""no" 1>&6
866 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
869 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
870 echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874 ac_cpp
='$CPP $CPPFLAGS'
875 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877 cross_compiling
=$ac_cv_prog_cc_cross
879 cat > conftest.
$ac_ext << EOF
881 #line 882 "configure"
882 #include "confdefs.h"
886 if { (eval echo configure
:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
887 ac_cv_prog_cc_works
=yes
888 # If we can't run a trivial program, we are probably using a cross compiler.
889 if (.
/conftest
; exit) 2>/dev
/null
; then
890 ac_cv_prog_cc_cross
=no
892 ac_cv_prog_cc_cross
=yes
895 echo "configure: failed program was:" >&5
896 cat conftest.
$ac_ext >&5
897 ac_cv_prog_cc_works
=no
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp
='$CPP $CPPFLAGS'
903 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling
=$ac_cv_prog_cc_cross
907 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
908 if test $ac_cv_prog_cc_works = no
; then
909 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
911 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
912 echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
913 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
914 cross_compiling
=$ac_cv_prog_cc_cross
916 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
917 echo "configure:918: checking whether we are using GNU C" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 cat > conftest.c
<<EOF
926 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
933 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
935 if test $ac_cv_prog_gcc = yes; then
941 ac_test_CFLAGS
="${CFLAGS+set}"
942 ac_save_CFLAGS
="$CFLAGS"
944 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
945 echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 echo 'void f(){}' > conftest.c
950 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
959 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
960 if test "$ac_test_CFLAGS" = set; then
961 CFLAGS
="$ac_save_CFLAGS"
962 elif test $ac_cv_prog_cc_g = yes; then
963 if test "$GCC" = yes; then
969 if test "$GCC" = yes; then
977 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
978 if test -f $ac_dir/install-sh
; then
980 ac_install_sh
="$ac_aux_dir/install-sh -c"
982 elif test -f $ac_dir/install.sh
; then
984 ac_install_sh
="$ac_aux_dir/install.sh -c"
988 if test -z "$ac_aux_dir"; then
989 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
991 ac_config_guess
=$ac_aux_dir/config.guess
992 ac_config_sub
=$ac_aux_dir/config.sub
993 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
995 # Find a good install program. We prefer a C program (faster),
996 # so one script is as good as another. But avoid the broken or
997 # incompatible versions:
998 # SysV /etc/install, /usr/sbin/install
999 # SunOS /usr/etc/install
1000 # IRIX /sbin/install
1002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1005 # ./install, which can be erroneously created by make from ./install.sh.
1006 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1007 echo "configure:1008: checking for a BSD compatible install" >&5
1008 if test -z "$INSTALL"; then
1009 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1013 for ac_dir
in $PATH; do
1014 # Account for people who put trailing slashes in PATH elements.
1016 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1018 # OSF1 and SCO ODT 3.0 have their own names for install.
1019 # Don't use installbsd from OSF since it installs stuff as root
1021 for ac_prog
in ginstall scoinst
install; do
1022 if test -f $ac_dir/$ac_prog; then
1023 if test $ac_prog = install &&
1024 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1025 # AIX install. It has an incompatible calling convention.
1028 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1039 if test "${ac_cv_path_install+set}" = set; then
1040 INSTALL
="$ac_cv_path_install"
1042 # As a last resort, use the slow shell script. We don't cache a
1043 # path for INSTALL within a source directory, because that will
1044 # break other packages using the cache if that directory is
1045 # removed, or if the path is relative.
1046 INSTALL
="$ac_install_sh"
1049 echo "$ac_t""$INSTALL" 1>&6
1051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1052 # It thinks the first close brace ends the variable substitution.
1053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1057 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1059 for ac_prog
in gawk mawk nawk
awk
1061 # Extract the first word of "$ac_prog", so it can be a program name with args.
1062 set dummy
$ac_prog; ac_word
=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$AWK"; then
1069 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1073 for ac_dir
in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir
=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_AWK
="$ac_prog"
1083 AWK
="$ac_cv_prog_AWK"
1084 if test -n "$AWK"; then
1085 echo "$ac_t""$AWK" 1>&6
1087 echo "$ac_t""no" 1>&6
1090 test -n "$AWK" && break
1094 if test "x$CC" != xcc
; then
1095 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1096 echo "configure:1097: checking whether $CC and cc understand -c and -o together" >&5
1098 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether cc understands -c and -o together" >&5
1101 set dummy
$CC; ac_cc
="`echo $2 |
1102 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1103 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 echo 'foo(){}' > conftest.c
1107 # Make sure it works both with $CC and with simple cc.
1108 # We do the test twice because some compilers refuse to overwrite an
1109 # existing .o file with -o, though they will create one.
1110 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1111 if { (eval echo configure
:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1112 test -f conftest.o
&& { (eval echo configure
:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1114 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1115 if test "x$CC" != xcc
; then
1116 # Test first that cc exists at all.
1117 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1118 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1119 if { (eval echo configure
:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1120 test -f conftest.o
&& { (eval echo configure
:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1125 # cc exists but doesn't like -o.
1126 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1131 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1136 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1137 echo "$ac_t""yes" 1>&6
1139 echo "$ac_t""no" 1>&6
1140 cat >> confdefs.h
<<\EOF
1141 #define NO_MINUS_C_MINUS_O 1
1146 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1153 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1154 echo "configure:1155: checking that the C compiler understands volatile" >&5
1155 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1159 cat > conftest.
$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1162 #include <sys/types.h>
1167 if { (eval echo configure
:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1169 samba_cv_volatile
=yes
1171 echo "configure: failed program was:" >&5
1172 cat conftest.
$ac_ext >&5
1174 samba_cv_volatile
=no
1179 echo "$ac_t""$samba_cv_volatile" 1>&6
1180 if test x
"$samba_cv_volatile" = x
"yes"; then
1181 cat >> confdefs.h
<<\EOF
1182 #define HAVE_VOLATILE 1
1190 # Do some error checking and defaulting for the host and target type.
1192 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1195 # 1. You are not allowed to specify --host, --target, and nonopt at the
1197 # 2. Host defaults to nonopt.
1198 # 3. If nonopt is not specified, then host defaults to the current host,
1199 # as determined by config.guess.
1200 # 4. Target and build default to nonopt.
1201 # 5. If nonopt is not specified, then target and build default to host.
1203 # The aliases save the names the user supplied, while $host etc.
1204 # will get canonicalized.
1205 case $host---$target---$nonopt in
1206 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1207 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1211 # Make sure we can run config.sub.
1212 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1213 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1216 echo $ac_n "checking host system type""... $ac_c" 1>&6
1217 echo "configure:1218: checking host system type" >&5
1220 case "$host_alias" in
1224 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1225 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1227 *) host_alias
=$nonopt ;;
1231 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1232 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1233 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1234 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1235 echo "$ac_t""$host" 1>&6
1237 echo $ac_n "checking target system type""... $ac_c" 1>&6
1238 echo "configure:1239: checking target system type" >&5
1240 target_alias
=$target
1241 case "$target_alias" in
1244 NONE
) target_alias
=$host_alias ;;
1245 *) target_alias
=$nonopt ;;
1249 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1250 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1251 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1252 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1253 echo "$ac_t""$target" 1>&6
1255 echo $ac_n "checking build system type""... $ac_c" 1>&6
1256 echo "configure:1257: checking build system type" >&5
1259 case "$build_alias" in
1262 NONE
) build_alias
=$host_alias ;;
1263 *) build_alias
=$nonopt ;;
1267 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1268 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$ac_t""$build" 1>&6
1273 test "$host_alias" != "$target_alias" &&
1274 test "$program_prefix$program_suffix$program_transform_name" = \
1276 program_prefix
=${target_alias}-
1280 *irix6
*) cat >> confdefs.h
<<\EOF
1281 #include <standards.h>
1289 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1290 echo "configure:1291: checking config.cache system type" >&5
1291 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1292 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1293 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1294 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1295 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1296 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1297 echo "$ac_t""different" 1>&6
1298 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1300 echo "$ac_t""same" 1>&6
1302 ac_cv_host_system_type
="$host"
1303 ac_cv_build_system_type
="$build"
1304 ac_cv_target_system_type
="$target"
1308 # Config CPPFLAG settings for strange OS's that must be set
1309 # before other tests.
1312 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1314 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1315 echo "configure:1316: checking whether ${CC-cc} accepts -Ae" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 echo 'void f(){}' > conftest.c
1320 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1321 ac_cv_prog_cc_Ae
=yes
1329 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1330 # mmap on HPUX is completely broken...
1331 cat >> confdefs.h
<<\EOF
1332 #define MMAP_BLACKLIST 1
1335 if test $ac_cv_prog_cc_Ae = yes; then
1336 CPPFLAGS
="$CPPFLAGS -Ae"
1339 # Defines needed for HPUX support.
1340 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1341 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1345 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1346 cat >> confdefs.h
<<\EOF
1347 #define USE_BOTH_CRYPT_CALLS 1
1352 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1353 cat >> confdefs.h
<<\EOF
1354 #define USE_BOTH_CRYPT_CALLS 1
1361 # AIX4.x doesn't even admit to having large
1362 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1365 echo "$ac_t""enabling large file support" 1>&6
1366 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1369 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1370 # to the existance of large files..
1371 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1372 # recommendations on large file support, however it makes the
1373 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1374 # recommendation makes the compile fail on gcc2.7. JRA.
1378 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1379 echo "$ac_t""no large file support" 1>&6
1382 echo "$ac_t""enabling large file support" 1>&6
1383 if test "$ac_cv_prog_gcc" = yes; then
1384 ${CC-cc} -v >conftest.c
2>&1
1385 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1387 case "$ac_cv_gcc_compiler_version_number" in
1388 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1389 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1392 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1396 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1402 # Tests needed for SINIX large file support.
1405 if test $host = mips-sni-sysv4
; then
1406 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1407 echo "configure:1408: checking for LFS support" >&5
1408 old_CPPFLAGS
="$CPPFLAGS"
1409 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1410 if test "$cross_compiling" = yes; then
1411 SINIX_LFS_SUPPORT
=cross
1413 cat > conftest.
$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1419 #if _LFS64_LARGEFILE == 1
1426 if { (eval echo configure
:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1428 SINIX_LFS_SUPPORT
=yes
1430 echo "configure: failed program was:" >&5
1431 cat conftest.
$ac_ext >&5
1433 SINIX_LFS_SUPPORT
=no
1438 CPPFLAGS
="$old_CPPFLAGS"
1439 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1440 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1441 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1442 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1443 LIBS
="`getconf LFS64_LIBS` $LIBS"
1445 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1449 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1452 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1453 echo "configure:1454: checking for LFS support" >&5
1454 old_CPPFLAGS
="$CPPFLAGS"
1455 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1456 if test "$cross_compiling" = yes; then
1457 LINUX_LFS_SUPPORT
=cross
1459 cat > conftest.
$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1464 #include <sys/utsname.h>
1466 #if _LFS64_LARGEFILE == 1
1471 /* Ensure this is glibc 2.2 or higher */
1472 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1473 int libc_major = __GLIBC__;
1474 int libc_minor = __GLIBC_MINOR__;
1482 /* Ensure this is kernel 2.4 or higher */
1485 release = uts.release;
1486 major = atoi(strsep(&release, "."));
1487 minor = atoi(strsep(&release, "."));
1489 if (major > 2 || (major == 2 && minor > 3))
1498 if { (eval echo configure
:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1500 LINUX_LFS_SUPPORT
=yes
1502 echo "configure: failed program was:" >&5
1503 cat conftest.
$ac_ext >&5
1505 LINUX_LFS_SUPPORT
=no
1510 CPPFLAGS
="$old_CPPFLAGS"
1511 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1512 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1514 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1518 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1519 echo "configure:1520: checking for LFS support" >&5
1520 old_CPPFLAGS
="$CPPFLAGS"
1521 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1522 if test "$cross_compiling" = yes; then
1523 GLIBC_LFS_SUPPORT
=cross
1525 cat > conftest.
$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1531 #if _LFS64_LARGEFILE == 1
1538 if { (eval echo configure
:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1540 GLIBC_LFS_SUPPORT
=yes
1542 echo "configure: failed program was:" >&5
1543 cat conftest.
$ac_ext >&5
1545 GLIBC_LFS_SUPPORT
=no
1550 CPPFLAGS
="$old_CPPFLAGS"
1551 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1552 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1554 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1559 echo $ac_n "checking for inline""... $ac_c" 1>&6
1560 echo "configure:1561: checking for inline" >&5
1561 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1565 for ac_kw
in inline __inline__ __inline
; do
1566 cat > conftest.
$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1574 if { (eval echo configure
:1575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1576 ac_cv_c_inline
=$ac_kw; break
1578 echo "configure: failed program was:" >&5
1579 cat conftest.
$ac_ext >&5
1586 echo "$ac_t""$ac_cv_c_inline" 1>&6
1587 case "$ac_cv_c_inline" in
1589 no
) cat >> confdefs.h
<<\EOF
1593 *) cat >> confdefs.h
<<EOF
1594 #define inline $ac_cv_c_inline
1599 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1600 echo "configure:1601: checking how to run the C preprocessor" >&5
1601 # On Suns, sometimes $CPP names a directory.
1602 if test -n "$CPP" && test -d "$CPP"; then
1605 if test -z "$CPP"; then
1606 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 # This must be in double quotes, not single quotes, because CPP may get
1610 # substituted into the Makefile and "${CC-cc}" will confuse make.
1612 # On the NeXT, cc -E runs the code through the compiler's parser,
1613 # not just through cpp.
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1620 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1621 { (eval echo configure
:1622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1622 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1623 if test -z "$ac_err"; then
1627 echo "configure: failed program was:" >&5
1628 cat conftest.
$ac_ext >&5
1630 CPP
="${CC-cc} -E -traditional-cpp"
1631 cat > conftest.
$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1637 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638 { (eval echo configure
:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640 if test -z "$ac_err"; then
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 CPP
="${CC-cc} -nologo -E"
1648 cat > conftest.
$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1654 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1655 { (eval echo configure
:1656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1656 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1657 if test -z "$ac_err"; then
1661 echo "configure: failed program was:" >&5
1662 cat conftest.
$ac_ext >&5
1671 ac_cv_prog_CPP
="$CPP"
1673 CPP
="$ac_cv_prog_CPP"
1675 ac_cv_prog_CPP
="$CPP"
1677 echo "$ac_t""$CPP" 1>&6
1679 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1680 echo "configure:1681: checking for ANSI C header files" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1692 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1693 { (eval echo configure
:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1694 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1695 if test -z "$ac_err"; then
1697 ac_cv_header_stdc
=yes
1700 echo "configure: failed program was:" >&5
1701 cat conftest.
$ac_ext >&5
1703 ac_cv_header_stdc
=no
1707 if test $ac_cv_header_stdc = yes; then
1708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1709 cat > conftest.
$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715 egrep "memchr" >/dev
/null
2>&1; then
1719 ac_cv_header_stdc
=no
1725 if test $ac_cv_header_stdc = yes; then
1726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1733 egrep "free" >/dev
/null
2>&1; then
1737 ac_cv_header_stdc
=no
1743 if test $ac_cv_header_stdc = yes; then
1744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1745 if test "$cross_compiling" = yes; then
1748 cat > conftest.
$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1752 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1753 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1755 int main () { int i; for (i = 0; i < 256; i++)
1756 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1760 if { (eval echo configure
:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1764 echo "configure: failed program was:" >&5
1765 cat conftest.
$ac_ext >&5
1767 ac_cv_header_stdc
=no
1775 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1776 if test $ac_cv_header_stdc = yes; then
1777 cat >> confdefs.h
<<\EOF
1778 #define STDC_HEADERS 1
1784 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1786 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1787 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_hdr that defines DIR" >&5
1789 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.
$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 #include <sys/types.h>
1801 if { (eval echo configure
:1802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1803 eval "ac_cv_header_dirent_$ac_safe=yes"
1805 echo "configure: failed program was:" >&5
1806 cat conftest.
$ac_ext >&5
1808 eval "ac_cv_header_dirent_$ac_safe=no"
1812 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1813 echo "$ac_t""yes" 1>&6
1814 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1815 cat >> confdefs.h
<<EOF
1816 #define $ac_tr_hdr 1
1818 ac_header_dirent
=$ac_hdr; break
1820 echo "$ac_t""no" 1>&6
1823 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1824 if test $ac_header_dirent = dirent.h
; then
1825 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1826 echo "configure:1827: checking for opendir in -ldir" >&5
1827 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 ac_save_LIBS
="$LIBS"
1833 cat > conftest.
$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1845 if { (eval echo configure
:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1847 eval "ac_cv_lib_$ac_lib_var=yes"
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1852 eval "ac_cv_lib_$ac_lib_var=no"
1855 LIBS
="$ac_save_LIBS"
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1862 echo "$ac_t""no" 1>&6
1866 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1867 echo "configure:1868: checking for opendir in -lx" >&5
1868 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 ac_save_LIBS
="$LIBS"
1874 cat > conftest.
$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1886 if { (eval echo configure
:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1890 echo "configure: failed program was:" >&5
1891 cat conftest.
$ac_ext >&5
1893 eval "ac_cv_lib_$ac_lib_var=no"
1896 LIBS
="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1903 echo "$ac_t""no" 1>&6
1908 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1909 echo "configure:1910: checking whether time.h and sys/time.h may both be included" >&5
1910 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 #include <sys/types.h>
1917 #include <sys/time.h>
1923 if { (eval echo configure
:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1925 ac_cv_header_time
=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1930 ac_cv_header_time
=no
1935 echo "$ac_t""$ac_cv_header_time" 1>&6
1936 if test $ac_cv_header_time = yes; then
1937 cat >> confdefs.h
<<\EOF
1938 #define TIME_WITH_SYS_TIME 1
1943 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1944 echo "configure:1945: checking for sys/wait.h that is POSIX.1 compatible" >&5
1945 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 cat > conftest.
$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 #include <sys/types.h>
1952 #include <sys/wait.h>
1954 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1957 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1962 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1965 if { (eval echo configure
:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1967 ac_cv_header_sys_wait_h
=yes
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1972 ac_cv_header_sys_wait_h
=no
1977 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1978 if test $ac_cv_header_sys_wait_h = yes; then
1979 cat >> confdefs.h
<<\EOF
1980 #define HAVE_SYS_WAIT_H 1
1985 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1987 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_hdr" >&5
1990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 cat > conftest.
$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1998 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999 { (eval echo configure
:2000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2001 if test -z "$ac_err"; then
2003 eval "ac_cv_header_$ac_safe=yes"
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2009 eval "ac_cv_header_$ac_safe=no"
2013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2016 cat >> confdefs.h
<<EOF
2017 #define $ac_tr_hdr 1
2021 echo "$ac_t""no" 1>&6
2025 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2027 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_hdr" >&5
2030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.
$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2038 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2039 { (eval echo configure
:2040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2040 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2041 if test -z "$ac_err"; then
2043 eval "ac_cv_header_$ac_safe=yes"
2046 echo "configure: failed program was:" >&5
2047 cat conftest.
$ac_ext >&5
2049 eval "ac_cv_header_$ac_safe=no"
2053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2056 cat >> confdefs.h
<<EOF
2057 #define $ac_tr_hdr 1
2061 echo "$ac_t""no" 1>&6
2065 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2067 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_hdr" >&5
2070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2078 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2079 { (eval echo configure
:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2080 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2081 if test -z "$ac_err"; then
2083 eval "ac_cv_header_$ac_safe=yes"
2086 echo "configure: failed program was:" >&5
2087 cat conftest.
$ac_ext >&5
2089 eval "ac_cv_header_$ac_safe=no"
2093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2096 cat >> confdefs.h
<<EOF
2097 #define $ac_tr_hdr 1
2101 echo "$ac_t""no" 1>&6
2105 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2107 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2109 echo "configure:2110: checking for $ac_hdr" >&5
2110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.
$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2118 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2119 { (eval echo configure
:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2120 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2121 if test -z "$ac_err"; then
2123 eval "ac_cv_header_$ac_safe=yes"
2126 echo "configure: failed program was:" >&5
2127 cat conftest.
$ac_ext >&5
2129 eval "ac_cv_header_$ac_safe=no"
2133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2134 echo "$ac_t""yes" 1>&6
2135 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2136 cat >> confdefs.h
<<EOF
2137 #define $ac_tr_hdr 1
2141 echo "$ac_t""no" 1>&6
2145 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2147 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_hdr" >&5
2150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.
$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2158 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2159 { (eval echo configure
:2160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2160 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2161 if test -z "$ac_err"; then
2163 eval "ac_cv_header_$ac_safe=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.
$ac_ext >&5
2169 eval "ac_cv_header_$ac_safe=no"
2173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2175 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2176 cat >> confdefs.h
<<EOF
2177 #define $ac_tr_hdr 1
2181 echo "$ac_t""no" 1>&6
2185 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2187 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_hdr" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2198 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure
:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.
$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2216 cat >> confdefs.h
<<EOF
2217 #define $ac_tr_hdr 1
2221 echo "$ac_t""no" 1>&6
2225 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2227 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_hdr" >&5
2230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2238 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure
:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241 if test -z "$ac_err"; then
2243 eval "ac_cv_header_$ac_safe=yes"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.
$ac_ext >&5
2249 eval "ac_cv_header_$ac_safe=no"
2253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2256 cat >> confdefs.h
<<EOF
2257 #define $ac_tr_hdr 1
2261 echo "$ac_t""no" 1>&6
2265 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h
2267 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_hdr" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.
$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure
:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2283 eval "ac_cv_header_$ac_safe=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2289 eval "ac_cv_header_$ac_safe=no"
2293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2296 cat >> confdefs.h
<<EOF
2297 #define $ac_tr_hdr 1
2301 echo "$ac_t""no" 1>&6
2307 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2308 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2320 if { (eval echo configure
:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2322 ac_cv_header_shadow_h
=yes
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 ac_cv_header_shadow_h
=no
2330 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2331 cat >> confdefs.h
<<\EOF
2332 #define HAVE_SHADOW_H 1
2338 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2340 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_hdr" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.
$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2351 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure
:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2356 eval "ac_cv_header_$ac_safe=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 eval "ac_cv_header_$ac_safe=no"
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2369 cat >> confdefs.h
<<EOF
2370 #define $ac_tr_hdr 1
2374 echo "$ac_t""no" 1>&6
2378 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2380 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_hdr" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.
$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2391 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2392 { (eval echo configure
:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2393 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2394 if test -z "$ac_err"; then
2396 eval "ac_cv_header_$ac_safe=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2402 eval "ac_cv_header_$ac_safe=no"
2406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2409 cat >> confdefs.h
<<EOF
2410 #define $ac_tr_hdr 1
2414 echo "$ac_t""no" 1>&6
2418 for ac_hdr
in stropts.h poll.h
2420 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2431 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure
:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h
<<EOF
2450 #define $ac_tr_hdr 1
2454 echo "$ac_t""no" 1>&6
2458 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2460 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_hdr" >&5
2463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure
:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2476 eval "ac_cv_header_$ac_safe=yes"
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 eval "ac_cv_header_$ac_safe=no"
2486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2489 cat >> confdefs.h
<<EOF
2490 #define $ac_tr_hdr 1
2494 echo "$ac_t""no" 1>&6
2498 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2500 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_hdr" >&5
2503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 cat > conftest.
$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2511 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure
:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2514 if test -z "$ac_err"; then
2516 eval "ac_cv_header_$ac_safe=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.
$ac_ext >&5
2522 eval "ac_cv_header_$ac_safe=no"
2526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2529 cat >> confdefs.h
<<EOF
2530 #define $ac_tr_hdr 1
2534 echo "$ac_t""no" 1>&6
2539 # For experimental utmp support (lastlog on some BSD-like systems)
2540 for ac_hdr
in utmp.h utmpx.h lastlog.h
2542 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure
:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h
<<EOF
2572 #define $ac_tr_hdr 1
2576 echo "$ac_t""no" 1>&6
2581 # For quotas on Veritas VxFS filesystems
2582 for ac_hdr
in sys
/fs
/vx_quota.h
2584 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_hdr" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2596 { (eval echo configure
:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2597 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2598 if test -z "$ac_err"; then
2600 eval "ac_cv_header_$ac_safe=yes"
2603 echo "configure: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2606 eval "ac_cv_header_$ac_safe=no"
2610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2613 cat >> confdefs.h
<<EOF
2614 #define $ac_tr_hdr 1
2618 echo "$ac_t""no" 1>&6
2623 # For quotas on Linux XFS filesystems
2624 for ac_hdr
in linux
/xqm.h
2626 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_hdr" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.
$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2637 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure
:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2642 eval "ac_cv_header_$ac_safe=yes"
2645 echo "configure: failed program was:" >&5
2646 cat conftest.
$ac_ext >&5
2648 eval "ac_cv_header_$ac_safe=no"
2652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2655 cat >> confdefs.h
<<EOF
2656 #define $ac_tr_hdr 1
2660 echo "$ac_t""no" 1>&6
2665 echo $ac_n "checking size of int""... $ac_c" 1>&6
2666 echo "configure:2667: checking size of int" >&5
2667 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 if test "$cross_compiling" = yes; then
2671 ac_cv_sizeof_int
=cross
2673 cat > conftest.
$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2679 FILE *f=fopen("conftestval", "w");
2681 fprintf(f, "%d\n", sizeof(int));
2685 if { (eval echo configure
:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2687 ac_cv_sizeof_int
=`cat conftestval`
2689 echo "configure: failed program was:" >&5
2690 cat conftest.
$ac_ext >&5
2698 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2699 cat >> confdefs.h
<<EOF
2700 #define SIZEOF_INT $ac_cv_sizeof_int
2704 echo $ac_n "checking size of long""... $ac_c" 1>&6
2705 echo "configure:2706: checking size of long" >&5
2706 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 if test "$cross_compiling" = yes; then
2710 ac_cv_sizeof_long
=cross
2712 cat > conftest.
$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2718 FILE *f=fopen("conftestval", "w");
2720 fprintf(f, "%d\n", sizeof(long));
2724 if { (eval echo configure
:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2726 ac_cv_sizeof_long
=`cat conftestval`
2728 echo "configure: failed program was:" >&5
2729 cat conftest.
$ac_ext >&5
2737 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2738 cat >> confdefs.h
<<EOF
2739 #define SIZEOF_LONG $ac_cv_sizeof_long
2743 echo $ac_n "checking size of short""... $ac_c" 1>&6
2744 echo "configure:2745: checking size of short" >&5
2745 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2748 if test "$cross_compiling" = yes; then
2749 ac_cv_sizeof_short
=cross
2751 cat > conftest.
$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2757 FILE *f=fopen("conftestval", "w");
2759 fprintf(f, "%d\n", sizeof(short));
2763 if { (eval echo configure
:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2765 ac_cv_sizeof_short
=`cat conftestval`
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2770 ac_cv_sizeof_short
=0
2776 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2777 cat >> confdefs.h
<<EOF
2778 #define SIZEOF_SHORT $ac_cv_sizeof_short
2783 echo $ac_n "checking for working const""... $ac_c" 1>&6
2784 echo "configure:2785: checking for working const" >&5
2785 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.
$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2794 /* Ultrix mips cc rejects this. */
2795 typedef int charset[2]; const charset x;
2796 /* SunOS 4.1.1 cc rejects this. */
2797 char const *const *ccp;
2799 /* NEC SVR4.0.2 mips cc rejects this. */
2800 struct point {int x, y;};
2801 static struct point const zero = {0,0};
2802 /* AIX XL C 1.02.0.0 rejects this.
2803 It does not let you subtract one const X* pointer from another in an arm
2804 of an if-expression whose if-part is not a constant expression */
2805 const char *g = "string";
2806 ccp = &g + (g ? g-g : 0);
2807 /* HPUX 7.0 cc rejects these. */
2810 ccp = (char const *const *) p;
2811 { /* SCO 3.2v4 cc rejects this. */
2813 char const *s = 0 ? (char *) 0 : (char const *) 0;
2817 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2819 const int *foo = &x[0];
2822 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2823 typedef const int *iptr;
2827 { /* AIX XL C 1.02.0.0 rejects this saying
2828 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2829 struct s { int j; const int *ap[3]; };
2830 struct s *b; b->j = 5;
2832 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2838 if { (eval echo configure
:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2850 echo "$ac_t""$ac_cv_c_const" 1>&6
2851 if test $ac_cv_c_const = no
; then
2852 cat >> confdefs.h
<<\EOF
2858 echo $ac_n "checking for inline""... $ac_c" 1>&6
2859 echo "configure:2860: checking for inline" >&5
2860 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2864 for ac_kw
in inline __inline__ __inline
; do
2865 cat > conftest.
$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2873 if { (eval echo configure
:2874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2875 ac_cv_c_inline
=$ac_kw; break
2877 echo "configure: failed program was:" >&5
2878 cat conftest.
$ac_ext >&5
2885 echo "$ac_t""$ac_cv_c_inline" 1>&6
2886 case "$ac_cv_c_inline" in
2888 no
) cat >> confdefs.h
<<\EOF
2892 *) cat >> confdefs.h
<<EOF
2893 #define inline $ac_cv_c_inline
2898 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2899 echo "configure:2900: checking whether byte ordering is bigendian" >&5
2900 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 ac_cv_c_bigendian
=unknown
2904 # See if sys/param.h defines the BYTE_ORDER macro.
2905 cat > conftest.
$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <sys/types.h>
2909 #include <sys/param.h>
2912 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2917 if { (eval echo configure
:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2919 # It does; now see whether it defined to BIG_ENDIAN or not.
2920 cat > conftest.
$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2923 #include <sys/types.h>
2924 #include <sys/param.h>
2927 #if BYTE_ORDER != BIG_ENDIAN
2932 if { (eval echo configure
:2933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2934 ac_cv_c_bigendian
=yes
2936 echo "configure: failed program was:" >&5
2937 cat conftest.
$ac_ext >&5
2939 ac_cv_c_bigendian
=no
2943 echo "configure: failed program was:" >&5
2944 cat conftest.
$ac_ext >&5
2947 if test $ac_cv_c_bigendian = unknown
; then
2948 if test "$cross_compiling" = yes; then
2949 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2951 cat > conftest.
$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2955 /* Are we little or big endian? From Harbison&Steele. */
2959 char c[sizeof (long)];
2962 exit (u.c[sizeof (long) - 1] == 1);
2965 if { (eval echo configure
:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2967 ac_cv_c_bigendian
=no
2969 echo "configure: failed program was:" >&5
2970 cat conftest.
$ac_ext >&5
2972 ac_cv_c_bigendian
=yes
2980 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2981 if test $ac_cv_c_bigendian = yes; then
2982 cat >> confdefs.h
<<\EOF
2983 #define WORDS_BIGENDIAN 1
2988 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2989 echo "configure:2990: checking whether char is unsigned" >&5
2990 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 if test "$GCC" = yes; then
2994 # GCC predefines this symbol on systems where it applies.
2995 cat > conftest.
$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #ifdef __CHAR_UNSIGNED__
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 egrep "yes" >/dev
/null
2>&1; then
3006 ac_cv_c_char_unsigned
=yes
3009 ac_cv_c_char_unsigned
=no
3014 if test "$cross_compiling" = yes; then
3015 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3017 cat > conftest.
$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3021 #if !defined(__STDC__) || __STDC__ != 1
3025 volatile char c = 255; exit(c < 0);
3028 if { (eval echo configure
:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3030 ac_cv_c_char_unsigned
=yes
3032 echo "configure: failed program was:" >&5
3033 cat conftest.
$ac_ext >&5
3035 ac_cv_c_char_unsigned
=no
3043 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3044 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3045 cat >> confdefs.h
<<\EOF
3046 #define __CHAR_UNSIGNED__ 1
3052 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3053 echo "configure:3054: checking return type of signal handlers" >&5
3054 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.
$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <sys/types.h>
3066 extern "C" void (*signal (int, void (*)(int)))(int);
3068 void (*signal ()) ();
3075 if { (eval echo configure
:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3077 ac_cv_type_signal
=void
3079 echo "configure: failed program was:" >&5
3080 cat conftest.
$ac_ext >&5
3082 ac_cv_type_signal
=int
3087 echo "$ac_t""$ac_cv_type_signal" 1>&6
3088 cat >> confdefs.h
<<EOF
3089 #define RETSIGTYPE $ac_cv_type_signal
3093 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3094 echo "configure:3095: checking for uid_t in sys/types.h" >&5
3095 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 cat > conftest.
$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <sys/types.h>
3103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3104 egrep "uid_t" >/dev
/null
2>&1; then
3106 ac_cv_type_uid_t
=yes
3115 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3116 if test $ac_cv_type_uid_t = no
; then
3117 cat >> confdefs.h
<<\EOF
3121 cat >> confdefs.h
<<\EOF
3127 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3128 echo "configure:3129: checking for mode_t" >&5
3129 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3132 cat > conftest.
$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3135 #include <sys/types.h>
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3144 ac_cv_type_mode_t
=yes
3147 ac_cv_type_mode_t
=no
3152 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3153 if test $ac_cv_type_mode_t = no
; then
3154 cat >> confdefs.h
<<\EOF
3160 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3161 echo "configure:3162: checking for off_t" >&5
3162 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 cat > conftest.
$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 #include <sys/types.h>
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3177 ac_cv_type_off_t
=yes
3185 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3186 if test $ac_cv_type_off_t = no
; then
3187 cat >> confdefs.h
<<\EOF
3193 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3194 echo "configure:3195: checking for size_t" >&5
3195 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include <sys/types.h>
3207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3208 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3210 ac_cv_type_size_t
=yes
3213 ac_cv_type_size_t
=no
3218 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3219 if test $ac_cv_type_size_t = no
; then
3220 cat >> confdefs.h
<<\EOF
3221 #define size_t unsigned
3226 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3227 echo "configure:3228: checking for pid_t" >&5
3228 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 #include <sys/types.h>
3240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3241 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3243 ac_cv_type_pid_t
=yes
3251 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3252 if test $ac_cv_type_pid_t = no
; then
3253 cat >> confdefs.h
<<\EOF
3259 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3260 echo "configure:3261: checking for st_rdev in struct stat" >&5
3261 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <sys/types.h>
3268 #include <sys/stat.h>
3270 struct stat s; s.st_rdev;
3273 if { (eval echo configure
:3274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275 ac_cv_struct_st_rdev
=yes
3277 echo "configure: failed program was:" >&5
3278 cat conftest.
$ac_ext >&5
3280 ac_cv_struct_st_rdev
=no
3285 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3286 if test $ac_cv_struct_st_rdev = yes; then
3287 cat >> confdefs.h
<<\EOF
3288 #define HAVE_ST_RDEV 1
3293 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3294 echo "configure:3295: checking for d_off in dirent" >&5
3295 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3303 #include <sys/types.h>
3306 struct dirent d; d.d_off;
3309 if { (eval echo configure
:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311 ac_cv_dirent_d_off
=yes
3313 echo "configure: failed program was:" >&5
3314 cat conftest.
$ac_ext >&5
3316 ac_cv_dirent_d_off
=no
3321 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3322 if test $ac_cv_dirent_d_off = yes; then
3323 cat >> confdefs.h
<<\EOF
3324 #define HAVE_DIRENT_D_OFF 1
3329 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3330 echo "configure:3331: checking for ino_t" >&5
3331 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 cat > conftest.
$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 #include <sys/types.h>
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3346 ac_cv_type_ino_t
=yes
3354 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3355 if test $ac_cv_type_ino_t = no
; then
3356 cat >> confdefs.h
<<\EOF
3357 #define ino_t unsigned
3362 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3363 echo "configure:3364: checking for loff_t" >&5
3364 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3367 cat > conftest.
$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 #include <sys/types.h>
3376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3377 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3379 ac_cv_type_loff_t
=yes
3382 ac_cv_type_loff_t
=no
3387 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3388 if test $ac_cv_type_loff_t = no
; then
3389 cat >> confdefs.h
<<\EOF
3390 #define loff_t off_t
3395 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3396 echo "configure:3397: checking for offset_t" >&5
3397 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include <sys/types.h>
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3412 ac_cv_type_offset_t
=yes
3415 ac_cv_type_offset_t
=no
3420 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3421 if test $ac_cv_type_offset_t = no
; then
3422 cat >> confdefs.h
<<\EOF
3423 #define offset_t loff_t
3428 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3429 echo "configure:3430: checking for ssize_t" >&5
3430 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include <sys/types.h>
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3445 ac_cv_type_ssize_t
=yes
3448 ac_cv_type_ssize_t
=no
3453 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3454 if test $ac_cv_type_ssize_t = no
; then
3455 cat >> confdefs.h
<<\EOF
3461 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3462 echo "configure:3463: checking for wchar_t" >&5
3463 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 cat > conftest.
$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <sys/types.h>
3475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3478 ac_cv_type_wchar_t
=yes
3481 ac_cv_type_wchar_t
=no
3486 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3487 if test $ac_cv_type_wchar_t = no
; then
3488 cat >> confdefs.h
<<\EOF
3489 #define wchar_t unsigned short
3495 ############################################
3496 # for cups support we need libcups, and a handful of header files
3498 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3499 echo "configure:3500: checking for httpConnect in -lcups" >&5
3500 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS
="$LIBS"
3506 cat > conftest.
$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3518 if { (eval echo configure
:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3520 eval "ac_cv_lib_$ac_lib_var=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.
$ac_ext >&5
3525 eval "ac_cv_lib_$ac_lib_var=no"
3528 LIBS
="$ac_save_LIBS"
3531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3533 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3535 cat >> confdefs.h
<<EOF
3536 #define $ac_tr_lib 1
3542 echo "$ac_t""no" 1>&6
3546 # I wonder if there is a nicer way of doing this?
3548 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3549 for ac_hdr
in cups
/cups.h cups
/language.h
3551 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3553 echo "configure:3554: checking for $ac_hdr" >&5
3554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 cat > conftest.
$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3562 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3563 { (eval echo configure
:3564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3564 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3565 if test -z "$ac_err"; then
3567 eval "ac_cv_header_$ac_safe=yes"
3570 echo "configure: failed program was:" >&5
3571 cat conftest.
$ac_ext >&5
3573 eval "ac_cv_header_$ac_safe=no"
3577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3579 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3580 cat >> confdefs.h
<<EOF
3581 #define $ac_tr_hdr 1
3585 echo "$ac_t""no" 1>&6
3589 if test x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3590 if test x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3591 cat >> confdefs.h
<<\EOF
3599 ############################################
3600 # we need libdl for PAM and the new VFS code
3601 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3602 echo "configure:3603: checking for dlopen in -ldl" >&5
3603 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 ac_save_LIBS
="$LIBS"
3609 cat > conftest.
$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3621 if { (eval echo configure
:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.
$ac_ext >&5
3628 eval "ac_cv_lib_$ac_lib_var=no"
3631 LIBS
="$ac_save_LIBS"
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3637 cat >> confdefs.h
<<\EOF
3638 #define HAVE_LIBDL 1
3642 echo "$ac_t""no" 1>&6
3646 ############################################
3647 # check if the compiler can do immediate structures
3648 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3649 echo "configure:3650: checking for immediate structures" >&5
3650 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.
$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3661 #define X_FOOBAR(x) ((FOOBAR) { x })
3662 typedef struct {unsigned x;} FOOBAR;
3663 FOOBAR f = X_FOOBAR(1);
3667 if { (eval echo configure
:3668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3669 samba_cv_immediate_structures
=yes
3671 echo "configure: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3674 samba_cv_immediate_structures
=no
3679 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3680 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3681 cat >> confdefs.h
<<\EOF
3682 #define HAVE_IMMEDIATE_STRUCTURES 1
3687 ############################################
3688 # check for unix domain sockets
3689 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3690 echo "configure:3691: checking for unix domain sockets" >&5
3691 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3695 cat > conftest.
$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3699 #include <sys/types.h>
3702 #include <sys/socket.h>
3706 struct sockaddr_un sunaddr;
3707 sunaddr.sun_family = AF_UNIX;
3711 if { (eval echo configure
:3712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713 samba_cv_unixsocket
=yes
3715 echo "configure: failed program was:" >&5
3716 cat conftest.
$ac_ext >&5
3718 samba_cv_unixsocket
=no
3723 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3724 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3725 cat >> confdefs.h
<<\EOF
3726 #define HAVE_UNIXSOCKET 1
3731 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3732 echo "configure:3733: checking for socklen_t type" >&5
3733 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.
$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3741 #include <sys/types.h>
3746 #include <sys/socket.h>
3751 if { (eval echo configure
:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3753 samba_cv_socklen_t
=yes
3755 echo "configure: failed program was:" >&5
3756 cat conftest.
$ac_ext >&5
3758 samba_cv_socklen_t
=no
3763 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3764 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3765 cat >> confdefs.h
<<\EOF
3766 #define HAVE_SOCKLEN_T_TYPE 1
3771 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3772 echo "configure:3773: checking for sig_atomic_t type" >&5
3773 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3777 cat > conftest.
$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3781 #include <sys/types.h>
3791 if { (eval echo configure
:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3793 samba_cv_sig_atomic_t
=yes
3795 echo "configure: failed program was:" >&5
3796 cat conftest.
$ac_ext >&5
3798 samba_cv_sig_atomic_t
=no
3803 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3804 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3805 cat >> confdefs.h
<<\EOF
3806 #define HAVE_SIG_ATOMIC_T_TYPE 1
3811 # stupid headers have the functions but no declaration. grrrr.
3813 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3814 echo "configure:3815: checking for errno declaration" >&5
3815 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3819 cat > conftest.
$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3827 if { (eval echo configure
:3828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3829 ac_cv_have_errno_decl
=yes
3831 echo "configure: failed program was:" >&5
3832 cat conftest.
$ac_ext >&5
3834 ac_cv_have_errno_decl
=no
3839 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3840 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3841 cat >> confdefs.h
<<\EOF
3842 #define HAVE_ERRNO_DECL 1
3848 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3849 echo "configure:3850: checking for setresuid declaration" >&5
3850 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3854 cat > conftest.
$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3859 int i = (int)setresuid
3862 if { (eval echo configure
:3863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3864 ac_cv_have_setresuid_decl
=yes
3866 echo "configure: failed program was:" >&5
3867 cat conftest.
$ac_ext >&5
3869 ac_cv_have_setresuid_decl
=no
3874 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3875 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3876 cat >> confdefs.h
<<\EOF
3877 #define HAVE_SETRESUID_DECL 1
3883 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3884 echo "configure:3885: checking for setresgid declaration" >&5
3885 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.
$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3894 int i = (int)setresgid
3897 if { (eval echo configure
:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3899 ac_cv_have_setresgid_decl
=yes
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 ac_cv_have_setresgid_decl
=no
3909 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3910 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3911 cat >> confdefs.h
<<\EOF
3912 #define HAVE_SETRESGID_DECL 1
3918 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3919 echo "configure:3920: checking for asprintf declaration" >&5
3920 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3924 cat > conftest.
$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3929 int i = (int)asprintf
3932 if { (eval echo configure
:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 ac_cv_have_asprintf_decl
=yes
3936 echo "configure: failed program was:" >&5
3937 cat conftest.
$ac_ext >&5
3939 ac_cv_have_asprintf_decl
=no
3944 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3945 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3946 cat >> confdefs.h
<<\EOF
3947 #define HAVE_ASPRINTF_DECL 1
3953 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3954 echo "configure:3955: checking for vasprintf declaration" >&5
3955 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3959 cat > conftest.
$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3964 int i = (int)vasprintf
3967 if { (eval echo configure
:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3969 ac_cv_have_vasprintf_decl
=yes
3971 echo "configure: failed program was:" >&5
3972 cat conftest.
$ac_ext >&5
3974 ac_cv_have_vasprintf_decl
=no
3979 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3980 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3981 cat >> confdefs.h
<<\EOF
3982 #define HAVE_VASPRINTF_DECL 1
3988 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3989 echo "configure:3990: checking for vsnprintf declaration" >&5
3990 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.
$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3999 int i = (int)vsnprintf
4002 if { (eval echo configure
:4003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4004 ac_cv_have_vsnprintf_decl
=yes
4006 echo "configure: failed program was:" >&5
4007 cat conftest.
$ac_ext >&5
4009 ac_cv_have_vsnprintf_decl
=no
4014 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4015 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4016 cat >> confdefs.h
<<\EOF
4017 #define HAVE_VSNPRINTF_DECL 1
4023 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4024 echo "configure:4025: checking for snprintf declaration" >&5
4025 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4029 cat > conftest.
$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4034 int i = (int)snprintf
4037 if { (eval echo configure
:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4039 ac_cv_have_snprintf_decl
=yes
4041 echo "configure: failed program was:" >&5
4042 cat conftest.
$ac_ext >&5
4044 ac_cv_have_snprintf_decl
=no
4049 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4050 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4051 cat >> confdefs.h
<<\EOF
4052 #define HAVE_SNPRINTF_DECL 1
4058 # and glibc has setresuid under linux but the function does
4059 # nothing until kernel 2.1.44! very dumb.
4060 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4061 echo "configure:4062: checking for real setresuid" >&5
4062 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4066 if test "$cross_compiling" = yes; then
4067 samba_cv_have_setresuid
=cross
4069 cat > conftest.
$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4073 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4075 if { (eval echo configure
:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4077 samba_cv_have_setresuid
=yes
4079 echo "configure: failed program was:" >&5
4080 cat conftest.
$ac_ext >&5
4082 samba_cv_have_setresuid
=no
4089 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4090 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4091 cat >> confdefs.h
<<\EOF
4092 #define HAVE_SETRESUID 1
4097 # Do the same check for setresguid...
4099 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4100 echo "configure:4101: checking for real setresgid" >&5
4101 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4105 if test "$cross_compiling" = yes; then
4106 samba_cv_have_setresgid
=cross
4108 cat > conftest.
$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4113 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4115 if { (eval echo configure
:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4117 samba_cv_have_setresgid
=yes
4119 echo "configure: failed program was:" >&5
4120 cat conftest.
$ac_ext >&5
4122 samba_cv_have_setresgid
=no
4129 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4130 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4131 cat >> confdefs.h
<<\EOF
4132 #define HAVE_SETRESGID 1
4137 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4138 echo "configure:4139: checking for 8-bit clean memcmp" >&5
4139 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4142 if test "$cross_compiling" = yes; then
4143 ac_cv_func_memcmp_clean
=no
4145 cat > conftest.
$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4151 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4152 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4156 if { (eval echo configure
:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4158 ac_cv_func_memcmp_clean
=yes
4160 echo "configure: failed program was:" >&5
4161 cat conftest.
$ac_ext >&5
4163 ac_cv_func_memcmp_clean
=no
4170 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4171 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4174 ###############################################
4175 # Readline included by default unless explicitly asked not to
4176 test "${with_readline+set}" != "set" && with_readline
=yes
4178 # test for where we get readline() from
4179 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4180 echo "configure:4181: checking whether to use readline" >&5
4181 # Check whether --with-readline or --without-readline was given.
4182 if test "${with_readline+set}" = set; then
4183 withval
="$with_readline"
4184 case "$with_readline" in
4186 echo "$ac_t""yes" 1>&6
4188 for ac_hdr
in readline.h
history.h readline
/readline.h
4190 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4192 echo "configure:4193: checking for $ac_hdr" >&5
4193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 cat > conftest.
$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4202 { (eval echo configure
:4203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4203 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4204 if test -z "$ac_err"; then
4206 eval "ac_cv_header_$ac_safe=yes"
4209 echo "configure: failed program was:" >&5
4210 cat conftest.
$ac_ext >&5
4212 eval "ac_cv_header_$ac_safe=no"
4216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4217 echo "$ac_t""yes" 1>&6
4218 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4219 cat >> confdefs.h
<<EOF
4220 #define $ac_tr_hdr 1
4224 echo "$ac_t""no" 1>&6
4228 for ac_hdr
in readline
/history.h
4230 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4232 echo "configure:4233: checking for $ac_hdr" >&5
4233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 cat > conftest.
$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4242 { (eval echo configure
:4243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4243 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4244 if test -z "$ac_err"; then
4246 eval "ac_cv_header_$ac_safe=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.
$ac_ext >&5
4252 eval "ac_cv_header_$ac_safe=no"
4256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4257 echo "$ac_t""yes" 1>&6
4258 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4259 cat >> confdefs.h
<<EOF
4260 #define $ac_tr_hdr 1
4264 echo "$ac_t""no" 1>&6
4269 for ac_hdr
in readline.h readline
/readline.h
4271 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4273 echo "configure:4274: checking for $ac_hdr" >&5
4274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 cat > conftest.
$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4283 { (eval echo configure
:4284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4285 if test -z "$ac_err"; then
4287 eval "ac_cv_header_$ac_safe=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.
$ac_ext >&5
4293 eval "ac_cv_header_$ac_safe=no"
4297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4300 cat >> confdefs.h
<<EOF
4301 #define $ac_tr_hdr 1
4304 for termlib
in ncurses curses termcap terminfo termlib
; do
4305 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4306 echo "configure:4307: checking for tgetent in -l${termlib}" >&5
4307 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 ac_save_LIBS
="$LIBS"
4312 LIBS
="-l${termlib} $LIBS"
4313 cat > conftest.
$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 /* Override any gcc2 internal prototype to avoid an error. */
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
4329 echo "configure: failed program was:" >&5
4330 cat conftest.
$ac_ext >&5
4332 eval "ac_cv_lib_$ac_lib_var=no"
4335 LIBS
="$ac_save_LIBS"
4338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4339 echo "$ac_t""yes" 1>&6
4340 TERMLIBS
="-l${termlib}"; break
4342 echo "$ac_t""no" 1>&6
4346 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4347 echo "configure:4348: checking for rl_callback_handler_install in -lreadline" >&5
4348 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 ac_save_LIBS
="$LIBS"
4353 LIBS
="-lreadline $TERMLIBS $LIBS"
4354 cat > conftest.
$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* Override any gcc2 internal prototype to avoid an error. */
4358 /* We use char because int might match the return type of a gcc2
4359 builtin and then its argument prototype would still apply. */
4360 char rl_callback_handler_install();
4363 rl_callback_handler_install()
4366 if { (eval echo configure
:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4368 eval "ac_cv_lib_$ac_lib_var=yes"
4370 echo "configure: failed program was:" >&5
4371 cat conftest.
$ac_ext >&5
4373 eval "ac_cv_lib_$ac_lib_var=no"
4376 LIBS
="$ac_save_LIBS"
4379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4381 TERMLIBS
="-lreadline $TERMLIBS"
4382 cat >> confdefs.h
<<\EOF
4383 #define HAVE_LIBREADLINE 1
4388 echo "$ac_t""no" 1>&6
4393 echo "$ac_t""no" 1>&6
4399 echo "$ac_t""no" 1>&6
4402 echo "$ac_t""yes" 1>&6
4404 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4405 # alternate readline path
4407 _cppflags
=${CPPFLAGS}
4409 # Add additional search path
4410 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4411 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4413 for ac_hdr
in readline.h
history.h readline
/readline.h
4415 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_hdr" >&5
4418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 cat > conftest.
$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4426 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4427 { (eval echo configure
:4428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4428 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4429 if test -z "$ac_err"; then
4431 eval "ac_cv_header_$ac_safe=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.
$ac_ext >&5
4437 eval "ac_cv_header_$ac_safe=no"
4441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4442 echo "$ac_t""yes" 1>&6
4443 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4444 cat >> confdefs.h
<<EOF
4445 #define $ac_tr_hdr 1
4449 echo "$ac_t""no" 1>&6
4453 for ac_hdr
in readline
/history.h
4455 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4457 echo "configure:4458: checking for $ac_hdr" >&5
4458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 cat > conftest.
$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4466 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4467 { (eval echo configure
:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4468 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4469 if test -z "$ac_err"; then
4471 eval "ac_cv_header_$ac_safe=yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.
$ac_ext >&5
4477 eval "ac_cv_header_$ac_safe=no"
4481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4484 cat >> confdefs.h
<<EOF
4485 #define $ac_tr_hdr 1
4489 echo "$ac_t""no" 1>&6
4494 for ac_hdr
in readline.h readline
/readline.h
4496 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_hdr" >&5
4499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 cat > conftest.
$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4507 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4508 { (eval echo configure
:4509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4509 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4510 if test -z "$ac_err"; then
4512 eval "ac_cv_header_$ac_safe=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.
$ac_ext >&5
4518 eval "ac_cv_header_$ac_safe=no"
4522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4525 cat >> confdefs.h
<<EOF
4526 #define $ac_tr_hdr 1
4529 for termlib
in ncurses curses termcap terminfo termlib
; do
4530 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4531 echo "configure:4532: checking for tgetent in -l${termlib}" >&5
4532 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 ac_save_LIBS
="$LIBS"
4537 LIBS
="-l${termlib} $LIBS"
4538 cat > conftest.
$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4550 if { (eval echo configure
:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS
="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 TERMLIBS
="-l${termlib}"; break
4567 echo "$ac_t""no" 1>&6
4571 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4572 echo "configure:4573: checking for rl_callback_handler_install in -lreadline" >&5
4573 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 ac_save_LIBS
="$LIBS"
4578 LIBS
="-lreadline $TERMLIBS $LIBS"
4579 cat > conftest.
$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4585 char rl_callback_handler_install();
4588 rl_callback_handler_install()
4591 if { (eval echo configure
:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4593 eval "ac_cv_lib_$ac_lib_var=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.
$ac_ext >&5
4598 eval "ac_cv_lib_$ac_lib_var=no"
4601 LIBS
="$ac_save_LIBS"
4604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 TERMLDFLAGS
="-L$with_readline/lib"
4607 TERMCPPFLAGS
="-I$with_readline/include"
4608 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4609 TERMLIBS
="-lreadline $TERMLIBS"
4610 cat >> confdefs.h
<<\EOF
4611 #define HAVE_LIBREADLINE 1
4616 echo "$ac_t""no" 1>&6
4617 TERMLIBS
= CPPFLAGS
=$_cppflags
4621 echo "$ac_t""no" 1>&6
4630 echo "$ac_t""no" 1>&6
4637 # The following test taken from the cvs sources
4638 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4639 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4640 # libsocket.so which has a bad implementation of gethostbyname (it
4641 # only looks in /etc/hosts), so we only look for -lsocket if we need
4643 for ac_func
in connect
4645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4646 echo "configure:4647: checking for $ac_func" >&5
4647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4650 cat > conftest.
$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 /* System header to define __stub macros and hopefully few prototypes,
4654 which can conflict with char $ac_func(); below. */
4656 /* Override any gcc2 internal prototype to avoid an error. */
4657 /* We use char because int might match the return type of a gcc2
4658 builtin and then its argument prototype would still apply. */
4663 /* The GNU C library defines this for functions which it implements
4664 to always fail with ENOSYS. Some functions are actually named
4665 something starting with __ and the normal name is an alias. */
4666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4674 if { (eval echo configure
:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4676 eval "ac_cv_func_$ac_func=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.
$ac_ext >&5
4681 eval "ac_cv_func_$ac_func=no"
4686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
4688 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4689 cat >> confdefs.h
<<EOF
4690 #define $ac_tr_func 1
4694 echo "$ac_t""no" 1>&6
4698 if test x
"$ac_cv_func_connect" = x
"no"; then
4701 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4702 echo "configure:4703: checking for printf in -lnsl_s" >&5
4703 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 ac_save_LIBS
="$LIBS"
4708 LIBS
="-lnsl_s $LIBS"
4709 cat > conftest.
$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* Override any gcc2 internal prototype to avoid an error. */
4713 /* We use char because int might match the return type of a gcc2
4714 builtin and then its argument prototype would still apply. */
4721 if { (eval echo configure
:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4723 eval "ac_cv_lib_$ac_lib_var=yes"
4725 echo "configure: failed program was:" >&5
4726 cat conftest.
$ac_ext >&5
4728 eval "ac_cv_lib_$ac_lib_var=no"
4731 LIBS
="$ac_save_LIBS"
4734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4736 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4738 cat >> confdefs.h
<<EOF
4739 #define $ac_tr_lib 1
4742 LIBS
="-lnsl_s $LIBS"
4745 echo "$ac_t""no" 1>&6
4751 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4752 echo "configure:4753: checking for printf in -lnsl" >&5
4753 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 ac_save_LIBS
="$LIBS"
4759 cat > conftest.
$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4771 if { (eval echo configure
:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4773 eval "ac_cv_lib_$ac_lib_var=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.
$ac_ext >&5
4778 eval "ac_cv_lib_$ac_lib_var=no"
4781 LIBS
="$ac_save_LIBS"
4784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6
4786 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4788 cat >> confdefs.h
<<EOF
4789 #define $ac_tr_lib 1
4795 echo "$ac_t""no" 1>&6
4801 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4802 echo "configure:4803: checking for connect in -lsocket" >&5
4803 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 ac_save_LIBS
="$LIBS"
4808 LIBS
="-lsocket $LIBS"
4809 cat > conftest.
$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4812 /* Override any gcc2 internal prototype to avoid an error. */
4813 /* We use char because int might match the return type of a gcc2
4814 builtin and then its argument prototype would still apply. */
4821 if { (eval echo configure
:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4823 eval "ac_cv_lib_$ac_lib_var=yes"
4825 echo "configure: failed program was:" >&5
4826 cat conftest.
$ac_ext >&5
4828 eval "ac_cv_lib_$ac_lib_var=no"
4831 LIBS
="$ac_save_LIBS"
4834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4838 cat >> confdefs.h
<<EOF
4839 #define $ac_tr_lib 1
4842 LIBS
="-lsocket $LIBS"
4845 echo "$ac_t""no" 1>&6
4851 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4852 echo "configure:4853: checking for connect in -linet" >&5
4853 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 ac_save_LIBS
="$LIBS"
4859 cat > conftest.
$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */
4871 if { (eval echo configure
:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4873 eval "ac_cv_lib_$ac_lib_var=yes"
4875 echo "configure: failed program was:" >&5
4876 cat conftest.
$ac_ext >&5
4878 eval "ac_cv_lib_$ac_lib_var=no"
4881 LIBS
="$ac_save_LIBS"
4884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4887 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4888 cat >> confdefs.h
<<EOF
4889 #define $ac_tr_lib 1
4895 echo "$ac_t""no" 1>&6
4899 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4900 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4901 # ac_cv_func_connect=yes
4902 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4903 cat >> confdefs.h
<<\EOF
4904 #define HAVE_CONNECT 1
4910 ###############################################
4911 # test for where we get get_yp_default_domain() from
4912 for ac_func
in yp_get_default_domain
4914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $ac_func" >&5
4916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 cat > conftest.
$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 /* System header to define __stub macros and hopefully few prototypes,
4923 which can conflict with char $ac_func(); below. */
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */
4932 /* The GNU C library defines this for functions which it implements
4933 to always fail with ENOSYS. Some functions are actually named
4934 something starting with __ and the normal name is an alias. */
4935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4943 if { (eval echo configure
:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4945 eval "ac_cv_func_$ac_func=yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.
$ac_ext >&5
4950 eval "ac_cv_func_$ac_func=no"
4955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4958 cat >> confdefs.h
<<EOF
4959 #define $ac_tr_func 1
4963 echo "$ac_t""no" 1>&6
4967 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4968 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4969 echo "configure:4970: checking for yp_get_default_domain in -lnsl" >&5
4970 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 ac_save_LIBS
="$LIBS"
4976 cat > conftest.
$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4982 char yp_get_default_domain();
4985 yp_get_default_domain()
4988 if { (eval echo configure
:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4990 eval "ac_cv_lib_$ac_lib_var=yes"
4992 echo "configure: failed program was:" >&5
4993 cat conftest.
$ac_ext >&5
4995 eval "ac_cv_lib_$ac_lib_var=no"
4998 LIBS
="$ac_save_LIBS"
5001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5004 cat >> confdefs.h
<<\EOF
5005 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5009 echo "$ac_t""no" 1>&6
5014 # Check if we have execl, if not we need to compile smbrun.
5015 for ac_func
in execl
5017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_func" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.
$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char $ac_func(); below. */
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5046 if { (eval echo configure
:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5048 eval "ac_cv_func_$ac_func=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.
$ac_ext >&5
5053 eval "ac_cv_func_$ac_func=no"
5058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5060 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5061 cat >> confdefs.h
<<EOF
5062 #define $ac_tr_func 1
5066 echo "$ac_t""no" 1>&6
5070 if test x
"$ac_cv_func_execl" = x
"no"; then
5071 RUNPROG
="bin/smbrun"
5076 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
5078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5079 echo "configure:5080: checking for $ac_func" >&5
5080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5081 echo $ac_n "(cached) $ac_c" 1>&6
5083 cat > conftest.
$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5086 /* System header to define __stub macros and hopefully few prototypes,
5087 which can conflict with char $ac_func(); below. */
5089 /* Override any gcc2 internal prototype to avoid an error. */
5090 /* We use char because int might match the return type of a gcc2
5091 builtin and then its argument prototype would still apply. */
5096 /* The GNU C library defines this for functions which it implements
5097 to always fail with ENOSYS. Some functions are actually named
5098 something starting with __ and the normal name is an alias. */
5099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5107 if { (eval echo configure
:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5109 eval "ac_cv_func_$ac_func=yes"
5111 echo "configure: failed program was:" >&5
5112 cat conftest.
$ac_ext >&5
5114 eval "ac_cv_func_$ac_func=no"
5119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5120 echo "$ac_t""yes" 1>&6
5121 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5122 cat >> confdefs.h
<<EOF
5123 #define $ac_tr_func 1
5127 echo "$ac_t""no" 1>&6
5131 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5134 echo "configure:5135: checking for $ac_func" >&5
5135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 cat > conftest.
$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141 /* System header to define __stub macros and hopefully few prototypes,
5142 which can conflict with char $ac_func(); below. */
5144 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5151 /* The GNU C library defines this for functions which it implements
5152 to always fail with ENOSYS. Some functions are actually named
5153 something starting with __ and the normal name is an alias. */
5154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5162 if { (eval echo configure
:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5164 eval "ac_cv_func_$ac_func=yes"
5166 echo "configure: failed program was:" >&5
5167 cat conftest.
$ac_ext >&5
5169 eval "ac_cv_func_$ac_func=no"
5174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5175 echo "$ac_t""yes" 1>&6
5176 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5177 cat >> confdefs.h
<<EOF
5178 #define $ac_tr_func 1
5182 echo "$ac_t""no" 1>&6
5186 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5189 echo "configure:5190: checking for $ac_func" >&5
5190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 cat > conftest.
$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 /* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char $ac_func(); below. */
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5206 /* The GNU C library defines this for functions which it implements
5207 to always fail with ENOSYS. Some functions are actually named
5208 something starting with __ and the normal name is an alias. */
5209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5217 if { (eval echo configure
:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5219 eval "ac_cv_func_$ac_func=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.
$ac_ext >&5
5224 eval "ac_cv_func_$ac_func=no"
5229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5230 echo "$ac_t""yes" 1>&6
5231 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5232 cat >> confdefs.h
<<EOF
5233 #define $ac_tr_func 1
5237 echo "$ac_t""no" 1>&6
5241 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_func" >&5
5245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.
$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 /* System header to define __stub macros and hopefully few prototypes,
5252 which can conflict with char $ac_func(); below. */
5254 /* Override any gcc2 internal prototype to avoid an error. */
5255 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */
5261 /* The GNU C library defines this for functions which it implements
5262 to always fail with ENOSYS. Some functions are actually named
5263 something starting with __ and the normal name is an alias. */
5264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5272 if { (eval echo configure
:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5274 eval "ac_cv_func_$ac_func=yes"
5276 echo "configure: failed program was:" >&5
5277 cat conftest.
$ac_ext >&5
5279 eval "ac_cv_func_$ac_func=no"
5284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5286 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5287 cat >> confdefs.h
<<EOF
5288 #define $ac_tr_func 1
5292 echo "$ac_t""no" 1>&6
5296 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5299 echo "configure:5300: checking for $ac_func" >&5
5300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5303 cat > conftest.
$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5306 /* System header to define __stub macros and hopefully few prototypes,
5307 which can conflict with char $ac_func(); below. */
5309 /* Override any gcc2 internal prototype to avoid an error. */
5310 /* We use char because int might match the return type of a gcc2
5311 builtin and then its argument prototype would still apply. */
5316 /* The GNU C library defines this for functions which it implements
5317 to always fail with ENOSYS. Some functions are actually named
5318 something starting with __ and the normal name is an alias. */
5319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5327 if { (eval echo configure
:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5329 eval "ac_cv_func_$ac_func=yes"
5331 echo "configure: failed program was:" >&5
5332 cat conftest.
$ac_ext >&5
5334 eval "ac_cv_func_$ac_func=no"
5339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5340 echo "$ac_t""yes" 1>&6
5341 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5342 cat >> confdefs.h
<<EOF
5343 #define $ac_tr_func 1
5347 echo "$ac_t""no" 1>&6
5351 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5354 echo "configure:5355: checking for $ac_func" >&5
5355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5358 cat > conftest.
$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5361 /* System header to define __stub macros and hopefully few prototypes,
5362 which can conflict with char $ac_func(); below. */
5364 /* Override any gcc2 internal prototype to avoid an error. */
5365 /* We use char because int might match the return type of a gcc2
5366 builtin and then its argument prototype would still apply. */
5371 /* The GNU C library defines this for functions which it implements
5372 to always fail with ENOSYS. Some functions are actually named
5373 something starting with __ and the normal name is an alias. */
5374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5382 if { (eval echo configure
:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5384 eval "ac_cv_func_$ac_func=yes"
5386 echo "configure: failed program was:" >&5
5387 cat conftest.
$ac_ext >&5
5389 eval "ac_cv_func_$ac_func=no"
5394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5395 echo "$ac_t""yes" 1>&6
5396 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5397 cat >> confdefs.h
<<EOF
5398 #define $ac_tr_func 1
5402 echo "$ac_t""no" 1>&6
5406 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5409 echo "configure:5410: checking for $ac_func" >&5
5410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 cat > conftest.
$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5416 /* System header to define __stub macros and hopefully few prototypes,
5417 which can conflict with char $ac_func(); below. */
5419 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5426 /* The GNU C library defines this for functions which it implements
5427 to always fail with ENOSYS. Some functions are actually named
5428 something starting with __ and the normal name is an alias. */
5429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5437 if { (eval echo configure
:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5439 eval "ac_cv_func_$ac_func=yes"
5441 echo "configure: failed program was:" >&5
5442 cat conftest.
$ac_ext >&5
5444 eval "ac_cv_func_$ac_func=no"
5449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5450 echo "$ac_t""yes" 1>&6
5451 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5452 cat >> confdefs.h
<<EOF
5453 #define $ac_tr_func 1
5457 echo "$ac_t""no" 1>&6
5461 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5464 echo "configure:5465: checking for $ac_func" >&5
5465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5468 cat > conftest.
$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* System header to define __stub macros and hopefully few prototypes,
5472 which can conflict with char $ac_func(); below. */
5474 /* Override any gcc2 internal prototype to avoid an error. */
5475 /* We use char because int might match the return type of a gcc2
5476 builtin and then its argument prototype would still apply. */
5481 /* The GNU C library defines this for functions which it implements
5482 to always fail with ENOSYS. Some functions are actually named
5483 something starting with __ and the normal name is an alias. */
5484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5492 if { (eval echo configure
:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5494 eval "ac_cv_func_$ac_func=yes"
5496 echo "configure: failed program was:" >&5
5497 cat conftest.
$ac_ext >&5
5499 eval "ac_cv_func_$ac_func=no"
5504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5505 echo "$ac_t""yes" 1>&6
5506 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5507 cat >> confdefs.h
<<EOF
5508 #define $ac_tr_func 1
5512 echo "$ac_t""no" 1>&6
5516 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5519 echo "configure:5520: checking for $ac_func" >&5
5520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 cat > conftest.
$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 /* System header to define __stub macros and hopefully few prototypes,
5527 which can conflict with char $ac_func(); below. */
5529 /* Override any gcc2 internal prototype to avoid an error. */
5530 /* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5536 /* The GNU C library defines this for functions which it implements
5537 to always fail with ENOSYS. Some functions are actually named
5538 something starting with __ and the normal name is an alias. */
5539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5547 if { (eval echo configure
:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5549 eval "ac_cv_func_$ac_func=yes"
5551 echo "configure: failed program was:" >&5
5552 cat conftest.
$ac_ext >&5
5554 eval "ac_cv_func_$ac_func=no"
5559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5560 echo "$ac_t""yes" 1>&6
5561 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5562 cat >> confdefs.h
<<EOF
5563 #define $ac_tr_func 1
5567 echo "$ac_t""no" 1>&6
5572 # syscall() is needed for smbwrapper.
5573 for ac_func
in syscall
5575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_func" >&5
5577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.
$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 /* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char $ac_func(); below. */
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5593 /* The GNU C library defines this for functions which it implements
5594 to always fail with ENOSYS. Some functions are actually named
5595 something starting with __ and the normal name is an alias. */
5596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5604 if { (eval echo configure
:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5606 eval "ac_cv_func_$ac_func=yes"
5608 echo "configure: failed program was:" >&5
5609 cat conftest.
$ac_ext >&5
5611 eval "ac_cv_func_$ac_func=no"
5616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5617 echo "$ac_t""yes" 1>&6
5618 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5619 cat >> confdefs.h
<<EOF
5620 #define $ac_tr_func 1
5624 echo "$ac_t""no" 1>&6
5629 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5632 echo "configure:5633: checking for $ac_func" >&5
5633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5636 cat > conftest.
$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 /* System header to define __stub macros and hopefully few prototypes,
5640 which can conflict with char $ac_func(); below. */
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5649 /* The GNU C library defines this for functions which it implements
5650 to always fail with ENOSYS. Some functions are actually named
5651 something starting with __ and the normal name is an alias. */
5652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5660 if { (eval echo configure
:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5662 eval "ac_cv_func_$ac_func=yes"
5664 echo "configure: failed program was:" >&5
5665 cat conftest.
$ac_ext >&5
5667 eval "ac_cv_func_$ac_func=no"
5672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5673 echo "$ac_t""yes" 1>&6
5674 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5675 cat >> confdefs.h
<<EOF
5676 #define $ac_tr_func 1
5680 echo "$ac_t""no" 1>&6
5684 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5687 echo "configure:5688: checking for $ac_func" >&5
5688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 cat > conftest.
$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 /* System header to define __stub macros and hopefully few prototypes,
5695 which can conflict with char $ac_func(); below. */
5697 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5704 /* The GNU C library defines this for functions which it implements
5705 to always fail with ENOSYS. Some functions are actually named
5706 something starting with __ and the normal name is an alias. */
5707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5715 if { (eval echo configure
:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5717 eval "ac_cv_func_$ac_func=yes"
5719 echo "configure: failed program was:" >&5
5720 cat conftest.
$ac_ext >&5
5722 eval "ac_cv_func_$ac_func=no"
5727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5728 echo "$ac_t""yes" 1>&6
5729 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5730 cat >> confdefs.h
<<EOF
5731 #define $ac_tr_func 1
5735 echo "$ac_t""no" 1>&6
5739 for ac_func
in __getcwd _getcwd
5741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5742 echo "configure:5743: checking for $ac_func" >&5
5743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5746 cat > conftest.
$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5749 /* System header to define __stub macros and hopefully few prototypes,
5750 which can conflict with char $ac_func(); below. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5759 /* The GNU C library defines this for functions which it implements
5760 to always fail with ENOSYS. Some functions are actually named
5761 something starting with __ and the normal name is an alias. */
5762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5770 if { (eval echo configure
:5771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5772 eval "ac_cv_func_$ac_func=yes"
5774 echo "configure: failed program was:" >&5
5775 cat conftest.
$ac_ext >&5
5777 eval "ac_cv_func_$ac_func=no"
5782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5783 echo "$ac_t""yes" 1>&6
5784 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5785 cat >> confdefs.h
<<EOF
5786 #define $ac_tr_func 1
5790 echo "$ac_t""no" 1>&6
5794 for ac_func
in __xstat __fxstat __lxstat
5796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_func" >&5
5798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 cat > conftest.
$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5804 /* System header to define __stub macros and hopefully few prototypes,
5805 which can conflict with char $ac_func(); below. */
5807 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5814 /* The GNU C library defines this for functions which it implements
5815 to always fail with ENOSYS. Some functions are actually named
5816 something starting with __ and the normal name is an alias. */
5817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5825 if { (eval echo configure
:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5827 eval "ac_cv_func_$ac_func=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.
$ac_ext >&5
5832 eval "ac_cv_func_$ac_func=no"
5837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5840 cat >> confdefs.h
<<EOF
5841 #define $ac_tr_func 1
5845 echo "$ac_t""no" 1>&6
5849 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5852 echo "configure:5853: checking for $ac_func" >&5
5853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 cat > conftest.
$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 /* System header to define __stub macros and hopefully few prototypes,
5860 which can conflict with char $ac_func(); below. */
5862 /* Override any gcc2 internal prototype to avoid an error. */
5863 /* We use char because int might match the return type of a gcc2
5864 builtin and then its argument prototype would still apply. */
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5880 if { (eval echo configure
:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5882 eval "ac_cv_func_$ac_func=yes"
5884 echo "configure: failed program was:" >&5
5885 cat conftest.
$ac_ext >&5
5887 eval "ac_cv_func_$ac_func=no"
5892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5893 echo "$ac_t""yes" 1>&6
5894 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5895 cat >> confdefs.h
<<EOF
5896 #define $ac_tr_func 1
5900 echo "$ac_t""no" 1>&6
5904 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5907 echo "configure:5908: checking for $ac_func" >&5
5908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5911 cat > conftest.
$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 /* System header to define __stub macros and hopefully few prototypes,
5915 which can conflict with char $ac_func(); below. */
5917 /* Override any gcc2 internal prototype to avoid an error. */
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5924 /* The GNU C library defines this for functions which it implements
5925 to always fail with ENOSYS. Some functions are actually named
5926 something starting with __ and the normal name is an alias. */
5927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5935 if { (eval echo configure
:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5937 eval "ac_cv_func_$ac_func=yes"
5939 echo "configure: failed program was:" >&5
5940 cat conftest.
$ac_ext >&5
5942 eval "ac_cv_func_$ac_func=no"
5947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5948 echo "$ac_t""yes" 1>&6
5949 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5950 cat >> confdefs.h
<<EOF
5951 #define $ac_tr_func 1
5955 echo "$ac_t""no" 1>&6
5959 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5962 echo "configure:5963: checking for $ac_func" >&5
5963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5966 cat > conftest.
$ac_ext <<EOF
5967 #line 5968 "configure"
5968 #include "confdefs.h"
5969 /* System header to define __stub macros and hopefully few prototypes,
5970 which can conflict with char $ac_func(); below. */
5972 /* Override any gcc2 internal prototype to avoid an error. */
5973 /* We use char because int might match the return type of a gcc2
5974 builtin and then its argument prototype would still apply. */
5979 /* The GNU C library defines this for functions which it implements
5980 to always fail with ENOSYS. Some functions are actually named
5981 something starting with __ and the normal name is an alias. */
5982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5990 if { (eval echo configure
:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5992 eval "ac_cv_func_$ac_func=yes"
5994 echo "configure: failed program was:" >&5
5995 cat conftest.
$ac_ext >&5
5997 eval "ac_cv_func_$ac_func=no"
6002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6005 cat >> confdefs.h
<<EOF
6006 #define $ac_tr_func 1
6010 echo "$ac_t""no" 1>&6
6014 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6017 echo "configure:6018: checking for $ac_func" >&5
6018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6021 cat > conftest.
$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 /* System header to define __stub macros and hopefully few prototypes,
6025 which can conflict with char $ac_func(); below. */
6027 /* Override any gcc2 internal prototype to avoid an error. */
6028 /* We use char because int might match the return type of a gcc2
6029 builtin and then its argument prototype would still apply. */
6034 /* The GNU C library defines this for functions which it implements
6035 to always fail with ENOSYS. Some functions are actually named
6036 something starting with __ and the normal name is an alias. */
6037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6045 if { (eval echo configure
:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6047 eval "ac_cv_func_$ac_func=yes"
6049 echo "configure: failed program was:" >&5
6050 cat conftest.
$ac_ext >&5
6052 eval "ac_cv_func_$ac_func=no"
6057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6058 echo "$ac_t""yes" 1>&6
6059 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6060 cat >> confdefs.h
<<EOF
6061 #define $ac_tr_func 1
6065 echo "$ac_t""no" 1>&6
6069 for ac_func
in _write __write _fork __fork
6071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6072 echo "configure:6073: checking for $ac_func" >&5
6073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6076 cat > conftest.
$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 /* System header to define __stub macros and hopefully few prototypes,
6080 which can conflict with char $ac_func(); below. */
6082 /* Override any gcc2 internal prototype to avoid an error. */
6083 /* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */
6089 /* The GNU C library defines this for functions which it implements
6090 to always fail with ENOSYS. Some functions are actually named
6091 something starting with __ and the normal name is an alias. */
6092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6100 if { (eval echo configure
:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6102 eval "ac_cv_func_$ac_func=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.
$ac_ext >&5
6107 eval "ac_cv_func_$ac_func=no"
6112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6113 echo "$ac_t""yes" 1>&6
6114 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6115 cat >> confdefs.h
<<EOF
6116 #define $ac_tr_func 1
6120 echo "$ac_t""no" 1>&6
6124 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6127 echo "configure:6128: checking for $ac_func" >&5
6128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6131 cat > conftest.
$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6134 /* System header to define __stub macros and hopefully few prototypes,
6135 which can conflict with char $ac_func(); below. */
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6144 /* The GNU C library defines this for functions which it implements
6145 to always fail with ENOSYS. Some functions are actually named
6146 something starting with __ and the normal name is an alias. */
6147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6155 if { (eval echo configure
:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6157 eval "ac_cv_func_$ac_func=yes"
6159 echo "configure: failed program was:" >&5
6160 cat conftest.
$ac_ext >&5
6162 eval "ac_cv_func_$ac_func=no"
6167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6169 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6170 cat >> confdefs.h
<<EOF
6171 #define $ac_tr_func 1
6175 echo "$ac_t""no" 1>&6
6179 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6182 echo "configure:6183: checking for $ac_func" >&5
6183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6184 echo $ac_n "(cached) $ac_c" 1>&6
6186 cat > conftest.
$ac_ext <<EOF
6187 #line 6188 "configure"
6188 #include "confdefs.h"
6189 /* System header to define __stub macros and hopefully few prototypes,
6190 which can conflict with char $ac_func(); below. */
6192 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6199 /* The GNU C library defines this for functions which it implements
6200 to always fail with ENOSYS. Some functions are actually named
6201 something starting with __ and the normal name is an alias. */
6202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6210 if { (eval echo configure
:6211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6212 eval "ac_cv_func_$ac_func=yes"
6214 echo "configure: failed program was:" >&5
6215 cat conftest.
$ac_ext >&5
6217 eval "ac_cv_func_$ac_func=no"
6222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6223 echo "$ac_t""yes" 1>&6
6224 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6225 cat >> confdefs.h
<<EOF
6226 #define $ac_tr_func 1
6230 echo "$ac_t""no" 1>&6
6234 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6237 echo "configure:6238: checking for $ac_func" >&5
6238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6241 cat > conftest.
$ac_ext <<EOF
6242 #line 6243 "configure"
6243 #include "confdefs.h"
6244 /* System header to define __stub macros and hopefully few prototypes,
6245 which can conflict with char $ac_func(); below. */
6247 /* Override any gcc2 internal prototype to avoid an error. */
6248 /* We use char because int might match the return type of a gcc2
6249 builtin and then its argument prototype would still apply. */
6254 /* The GNU C library defines this for functions which it implements
6255 to always fail with ENOSYS. Some functions are actually named
6256 something starting with __ and the normal name is an alias. */
6257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6265 if { (eval echo configure
:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6267 eval "ac_cv_func_$ac_func=yes"
6269 echo "configure: failed program was:" >&5
6270 cat conftest.
$ac_ext >&5
6272 eval "ac_cv_func_$ac_func=no"
6277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6278 echo "$ac_t""yes" 1>&6
6279 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6280 cat >> confdefs.h
<<EOF
6281 #define $ac_tr_func 1
6285 echo "$ac_t""no" 1>&6
6289 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6292 echo "configure:6293: checking for $ac_func" >&5
6293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6294 echo $ac_n "(cached) $ac_c" 1>&6
6296 cat > conftest.
$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 /* System header to define __stub macros and hopefully few prototypes,
6300 which can conflict with char $ac_func(); below. */
6302 /* Override any gcc2 internal prototype to avoid an error. */
6303 /* We use char because int might match the return type of a gcc2
6304 builtin and then its argument prototype would still apply. */
6309 /* The GNU C library defines this for functions which it implements
6310 to always fail with ENOSYS. Some functions are actually named
6311 something starting with __ and the normal name is an alias. */
6312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6320 if { (eval echo configure
:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6322 eval "ac_cv_func_$ac_func=yes"
6324 echo "configure: failed program was:" >&5
6325 cat conftest.
$ac_ext >&5
6327 eval "ac_cv_func_$ac_func=no"
6332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6333 echo "$ac_t""yes" 1>&6
6334 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6335 cat >> confdefs.h
<<EOF
6336 #define $ac_tr_func 1
6340 echo "$ac_t""no" 1>&6
6344 for ac_func
in open64 _open64 __open64 creat64
6346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6347 echo "configure:6348: checking for $ac_func" >&5
6348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 cat > conftest.
$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char $ac_func(); below. */
6357 /* Override any gcc2 internal prototype to avoid an error. */
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6364 /* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */
6367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6375 if { (eval echo configure
:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6377 eval "ac_cv_func_$ac_func=yes"
6379 echo "configure: failed program was:" >&5
6380 cat conftest.
$ac_ext >&5
6382 eval "ac_cv_func_$ac_func=no"
6387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6388 echo "$ac_t""yes" 1>&6
6389 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6390 cat >> confdefs.h
<<EOF
6391 #define $ac_tr_func 1
6395 echo "$ac_t""no" 1>&6
6401 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6404 if test x
$ac_cv_func_stat64 = xno
; then
6405 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6406 echo "configure:6407: checking for stat64 in <sys/stat.h>" >&5
6407 cat > conftest.
$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6411 #if defined(HAVE_UNISTD_H)
6414 #include <sys/stat.h>
6417 struct stat64 st64; exit(stat64(".",&st64));
6420 if { (eval echo configure
:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6422 ac_cv_func_stat64
=yes
6424 echo "configure: failed program was:" >&5
6425 cat conftest.
$ac_ext >&5
6428 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6429 if test x
$ac_cv_func_stat64 = xyes
; then
6430 cat >> confdefs.h
<<\EOF
6431 #define HAVE_STAT64 1
6437 if test x
$ac_cv_func_lstat64 = xno
; then
6438 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6439 echo "configure:6440: checking for lstat64 in <sys/stat.h>" >&5
6440 cat > conftest.
$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6444 #if defined(HAVE_UNISTD_H)
6447 #include <sys/stat.h>
6450 struct stat64 st64; exit(lstat64(".",&st64));
6453 if { (eval echo configure
:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6455 ac_cv_func_lstat64
=yes
6457 echo "configure: failed program was:" >&5
6458 cat conftest.
$ac_ext >&5
6461 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6462 if test x
$ac_cv_func_lstat64 = xyes
; then
6463 cat >> confdefs.h
<<\EOF
6464 #define HAVE_LSTAT64 1
6470 if test x
$ac_cv_func_fstat64 = xno
; then
6471 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6472 echo "configure:6473: checking for fstat64 in <sys/stat.h>" >&5
6473 cat > conftest.
$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6477 #if defined(HAVE_UNISTD_H)
6480 #include <sys/stat.h>
6483 struct stat64 st64; exit(fstat64(0,&st64));
6486 if { (eval echo configure
:6487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6488 ac_cv_func_fstat64
=yes
6490 echo "configure: failed program was:" >&5
6491 cat conftest.
$ac_ext >&5
6494 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6495 if test x
$ac_cv_func_fstat64 = xyes
; then
6496 cat >> confdefs.h
<<\EOF
6497 #define HAVE_FSTAT64 1
6504 # If no strcasecmp, check for it in some known places
6505 # It is in -lresolv on ReliantUNIX and UnixWare
6506 # -lresolve *must* follow -lnsl for name resolution to work properly
6509 if test x
$ac_cv_func_strcasecmp = xno
; then
6510 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6511 echo "configure:6512: checking for strcasecmp in -lresolv" >&5
6512 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 ac_save_LIBS
="$LIBS"
6517 LIBS
="-lresolv $LIBS"
6518 cat > conftest.
$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6530 if { (eval echo configure
:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6532 eval "ac_cv_lib_$ac_lib_var=yes"
6534 echo "configure: failed program was:" >&5
6535 cat conftest.
$ac_ext >&5
6537 eval "ac_cv_lib_$ac_lib_var=no"
6540 LIBS
="$ac_save_LIBS"
6543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6545 LIBS
="$LIBS -lresolv"
6546 cat >> confdefs.h
<<\EOF
6547 #define HAVE_STRCASECMP 1
6551 echo "$ac_t""no" 1>&6
6557 # Check for the functions putprpwnam, set_auth_parameters,
6558 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6559 # Needed for OSF1 and HPUX.
6563 *-lsecurity*) for ac_func
in putprpwnam
6565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6566 echo "configure:6567: checking for $ac_func" >&5
6567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6570 cat > conftest.
$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* System header to define __stub macros and hopefully few prototypes,
6574 which can conflict with char $ac_func(); below. */
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6594 if { (eval echo configure
:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6596 eval "ac_cv_func_$ac_func=yes"
6598 echo "configure: failed program was:" >&5
6599 cat conftest.
$ac_ext >&5
6601 eval "ac_cv_func_$ac_func=no"
6606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6607 echo "$ac_t""yes" 1>&6
6608 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6609 cat >> confdefs.h
<<EOF
6610 #define $ac_tr_func 1
6614 echo "$ac_t""no" 1>&6
6618 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6619 echo "configure:6620: checking for putprpwnam in -lsecurity" >&5
6620 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6622 echo $ac_n "(cached) $ac_c" 1>&6
6624 ac_save_LIBS
="$LIBS"
6625 LIBS
="-lsecurity $LIBS"
6626 cat > conftest.
$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* Override any gcc2 internal prototype to avoid an error. */
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6638 if { (eval echo configure
:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6640 eval "ac_cv_lib_$ac_lib_var=yes"
6642 echo "configure: failed program was:" >&5
6643 cat conftest.
$ac_ext >&5
6645 eval "ac_cv_lib_$ac_lib_var=no"
6648 LIBS
="$ac_save_LIBS"
6651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6652 echo "$ac_t""yes" 1>&6
6653 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6655 cat >> confdefs.h
<<EOF
6656 #define $ac_tr_lib 1
6659 LIBS
="-lsecurity $LIBS"
6662 echo "$ac_t""no" 1>&6
6665 for ac_func
in putprpwnam
6667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_func" >&5
6669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.
$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char $ac_func(); below. */
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6685 /* The GNU C library defines this for functions which it implements
6686 to always fail with ENOSYS. Some functions are actually named
6687 something starting with __ and the normal name is an alias. */
6688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6696 if { (eval echo configure
:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6698 eval "ac_cv_func_$ac_func=yes"
6700 echo "configure: failed program was:" >&5
6701 cat conftest.
$ac_ext >&5
6703 eval "ac_cv_func_$ac_func=no"
6708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6709 echo "$ac_t""yes" 1>&6
6710 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6711 cat >> confdefs.h
<<EOF
6712 #define $ac_tr_func 1
6716 echo "$ac_t""no" 1>&6
6724 *-lsec*) for ac_func
in putprpwnam
6726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6727 echo "configure:6728: checking for $ac_func" >&5
6728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6731 cat > conftest.
$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char $ac_func(); below. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6755 if { (eval echo configure
:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6757 eval "ac_cv_func_$ac_func=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.
$ac_ext >&5
6762 eval "ac_cv_func_$ac_func=no"
6767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6768 echo "$ac_t""yes" 1>&6
6769 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6770 cat >> confdefs.h
<<EOF
6771 #define $ac_tr_func 1
6775 echo "$ac_t""no" 1>&6
6779 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6780 echo "configure:6781: checking for putprpwnam in -lsec" >&5
6781 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6785 ac_save_LIBS
="$LIBS"
6787 cat > conftest.
$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6799 if { (eval echo configure
:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6801 eval "ac_cv_lib_$ac_lib_var=yes"
6803 echo "configure: failed program was:" >&5
6804 cat conftest.
$ac_ext >&5
6806 eval "ac_cv_lib_$ac_lib_var=no"
6809 LIBS
="$ac_save_LIBS"
6812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6813 echo "$ac_t""yes" 1>&6
6814 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6816 cat >> confdefs.h
<<EOF
6817 #define $ac_tr_lib 1
6823 echo "$ac_t""no" 1>&6
6826 for ac_func
in putprpwnam
6828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6829 echo "configure:6830: checking for $ac_func" >&5
6830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 cat > conftest.
$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 /* System header to define __stub macros and hopefully few prototypes,
6837 which can conflict with char $ac_func(); below. */
6839 /* Override any gcc2 internal prototype to avoid an error. */
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6846 /* The GNU C library defines this for functions which it implements
6847 to always fail with ENOSYS. Some functions are actually named
6848 something starting with __ and the normal name is an alias. */
6849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6857 if { (eval echo configure
:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6859 eval "ac_cv_func_$ac_func=yes"
6861 echo "configure: failed program was:" >&5
6862 cat conftest.
$ac_ext >&5
6864 eval "ac_cv_func_$ac_func=no"
6869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6870 echo "$ac_t""yes" 1>&6
6871 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6872 cat >> confdefs.h
<<EOF
6873 #define $ac_tr_func 1
6877 echo "$ac_t""no" 1>&6
6886 *-lsecurity*) for ac_func
in set_auth_parameters
6888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6889 echo "configure:6890: checking for $ac_func" >&5
6890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6893 cat > conftest.
$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 /* System header to define __stub macros and hopefully few prototypes,
6897 which can conflict with char $ac_func(); below. */
6899 /* Override any gcc2 internal prototype to avoid an error. */
6900 /* We use char because int might match the return type of a gcc2
6901 builtin and then its argument prototype would still apply. */
6906 /* The GNU C library defines this for functions which it implements
6907 to always fail with ENOSYS. Some functions are actually named
6908 something starting with __ and the normal name is an alias. */
6909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6917 if { (eval echo configure
:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6919 eval "ac_cv_func_$ac_func=yes"
6921 echo "configure: failed program was:" >&5
6922 cat conftest.
$ac_ext >&5
6924 eval "ac_cv_func_$ac_func=no"
6929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6930 echo "$ac_t""yes" 1>&6
6931 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6932 cat >> confdefs.h
<<EOF
6933 #define $ac_tr_func 1
6937 echo "$ac_t""no" 1>&6
6941 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6942 echo "configure:6943: checking for set_auth_parameters in -lsecurity" >&5
6943 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6947 ac_save_LIBS
="$LIBS"
6948 LIBS
="-lsecurity $LIBS"
6949 cat > conftest.
$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 /* Override any gcc2 internal prototype to avoid an error. */
6953 /* We use char because int might match the return type of a gcc2
6954 builtin and then its argument prototype would still apply. */
6955 char set_auth_parameters();
6958 set_auth_parameters()
6961 if { (eval echo configure
:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6963 eval "ac_cv_lib_$ac_lib_var=yes"
6965 echo "configure: failed program was:" >&5
6966 cat conftest.
$ac_ext >&5
6968 eval "ac_cv_lib_$ac_lib_var=no"
6971 LIBS
="$ac_save_LIBS"
6974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6975 echo "$ac_t""yes" 1>&6
6976 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6977 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6978 cat >> confdefs.h
<<EOF
6979 #define $ac_tr_lib 1
6982 LIBS
="-lsecurity $LIBS"
6985 echo "$ac_t""no" 1>&6
6988 for ac_func
in set_auth_parameters
6990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6991 echo "configure:6992: checking for $ac_func" >&5
6992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6995 cat > conftest.
$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6998 /* System header to define __stub macros and hopefully few prototypes,
6999 which can conflict with char $ac_func(); below. */
7001 /* Override any gcc2 internal prototype to avoid an error. */
7002 /* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7008 /* The GNU C library defines this for functions which it implements
7009 to always fail with ENOSYS. Some functions are actually named
7010 something starting with __ and the normal name is an alias. */
7011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7019 if { (eval echo configure
:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7021 eval "ac_cv_func_$ac_func=yes"
7023 echo "configure: failed program was:" >&5
7024 cat conftest.
$ac_ext >&5
7026 eval "ac_cv_func_$ac_func=no"
7031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7032 echo "$ac_t""yes" 1>&6
7033 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7034 cat >> confdefs.h
<<EOF
7035 #define $ac_tr_func 1
7039 echo "$ac_t""no" 1>&6
7047 *-lsec*) for ac_func
in set_auth_parameters
7049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7050 echo "configure:7051: checking for $ac_func" >&5
7051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7054 cat > conftest.
$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057 /* System header to define __stub macros and hopefully few prototypes,
7058 which can conflict with char $ac_func(); below. */
7060 /* Override any gcc2 internal prototype to avoid an error. */
7061 /* We use char because int might match the return type of a gcc2
7062 builtin and then its argument prototype would still apply. */
7067 /* The GNU C library defines this for functions which it implements
7068 to always fail with ENOSYS. Some functions are actually named
7069 something starting with __ and the normal name is an alias. */
7070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7078 if { (eval echo configure
:7079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7080 eval "ac_cv_func_$ac_func=yes"
7082 echo "configure: failed program was:" >&5
7083 cat conftest.
$ac_ext >&5
7085 eval "ac_cv_func_$ac_func=no"
7090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7091 echo "$ac_t""yes" 1>&6
7092 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7093 cat >> confdefs.h
<<EOF
7094 #define $ac_tr_func 1
7098 echo "$ac_t""no" 1>&6
7102 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7103 echo "configure:7104: checking for set_auth_parameters in -lsec" >&5
7104 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7108 ac_save_LIBS
="$LIBS"
7110 cat > conftest.
$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7116 char set_auth_parameters();
7119 set_auth_parameters()
7122 if { (eval echo configure
:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7124 eval "ac_cv_lib_$ac_lib_var=yes"
7126 echo "configure: failed program was:" >&5
7127 cat conftest.
$ac_ext >&5
7129 eval "ac_cv_lib_$ac_lib_var=no"
7132 LIBS
="$ac_save_LIBS"
7135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7136 echo "$ac_t""yes" 1>&6
7137 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7139 cat >> confdefs.h
<<EOF
7140 #define $ac_tr_lib 1
7146 echo "$ac_t""no" 1>&6
7149 for ac_func
in set_auth_parameters
7151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7152 echo "configure:7153: checking for $ac_func" >&5
7153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 cat > conftest.
$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7159 /* System header to define __stub macros and hopefully few prototypes,
7160 which can conflict with char $ac_func(); below. */
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7169 /* The GNU C library defines this for functions which it implements
7170 to always fail with ENOSYS. Some functions are actually named
7171 something starting with __ and the normal name is an alias. */
7172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7180 if { (eval echo configure
:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7182 eval "ac_cv_func_$ac_func=yes"
7184 echo "configure: failed program was:" >&5
7185 cat conftest.
$ac_ext >&5
7187 eval "ac_cv_func_$ac_func=no"
7192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7193 echo "$ac_t""yes" 1>&6
7194 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7195 cat >> confdefs.h
<<EOF
7196 #define $ac_tr_func 1
7200 echo "$ac_t""no" 1>&6
7208 # UnixWare 7.x has its getspnam in -lgen
7210 *-lgen*) for ac_func
in getspnam
7212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7213 echo "configure:7214: checking for $ac_func" >&5
7214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7215 echo $ac_n "(cached) $ac_c" 1>&6
7217 cat > conftest.
$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7220 /* System header to define __stub macros and hopefully few prototypes,
7221 which can conflict with char $ac_func(); below. */
7223 /* Override any gcc2 internal prototype to avoid an error. */
7224 /* We use char because int might match the return type of a gcc2
7225 builtin and then its argument prototype would still apply. */
7230 /* The GNU C library defines this for functions which it implements
7231 to always fail with ENOSYS. Some functions are actually named
7232 something starting with __ and the normal name is an alias. */
7233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7241 if { (eval echo configure
:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7243 eval "ac_cv_func_$ac_func=yes"
7245 echo "configure: failed program was:" >&5
7246 cat conftest.
$ac_ext >&5
7248 eval "ac_cv_func_$ac_func=no"
7253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7254 echo "$ac_t""yes" 1>&6
7255 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7256 cat >> confdefs.h
<<EOF
7257 #define $ac_tr_func 1
7261 echo "$ac_t""no" 1>&6
7265 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7266 echo "configure:7267: checking for getspnam in -lgen" >&5
7267 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7271 ac_save_LIBS
="$LIBS"
7273 cat > conftest.
$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7276 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7285 if { (eval echo configure
:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7287 eval "ac_cv_lib_$ac_lib_var=yes"
7289 echo "configure: failed program was:" >&5
7290 cat conftest.
$ac_ext >&5
7292 eval "ac_cv_lib_$ac_lib_var=no"
7295 LIBS
="$ac_save_LIBS"
7298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7299 echo "$ac_t""yes" 1>&6
7300 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7302 cat >> confdefs.h
<<EOF
7303 #define $ac_tr_lib 1
7309 echo "$ac_t""no" 1>&6
7312 for ac_func
in getspnam
7314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7315 echo "configure:7316: checking for $ac_func" >&5
7316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7317 echo $ac_n "(cached) $ac_c" 1>&6
7319 cat > conftest.
$ac_ext <<EOF
7320 #line 7321 "configure"
7321 #include "confdefs.h"
7322 /* System header to define __stub macros and hopefully few prototypes,
7323 which can conflict with char $ac_func(); below. */
7325 /* Override any gcc2 internal prototype to avoid an error. */
7326 /* We use char because int might match the return type of a gcc2
7327 builtin and then its argument prototype would still apply. */
7332 /* The GNU C library defines this for functions which it implements
7333 to always fail with ENOSYS. Some functions are actually named
7334 something starting with __ and the normal name is an alias. */
7335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7343 if { (eval echo configure
:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7345 eval "ac_cv_func_$ac_func=yes"
7347 echo "configure: failed program was:" >&5
7348 cat conftest.
$ac_ext >&5
7350 eval "ac_cv_func_$ac_func=no"
7355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7356 echo "$ac_t""yes" 1>&6
7357 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7358 cat >> confdefs.h
<<EOF
7359 #define $ac_tr_func 1
7363 echo "$ac_t""no" 1>&6
7372 *-lsecurity*) for ac_func
in getspnam
7374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7375 echo "configure:7376: checking for $ac_func" >&5
7376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7379 cat > conftest.
$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7382 /* System header to define __stub macros and hopefully few prototypes,
7383 which can conflict with char $ac_func(); below. */
7385 /* Override any gcc2 internal prototype to avoid an error. */
7386 /* We use char because int might match the return type of a gcc2
7387 builtin and then its argument prototype would still apply. */
7392 /* The GNU C library defines this for functions which it implements
7393 to always fail with ENOSYS. Some functions are actually named
7394 something starting with __ and the normal name is an alias. */
7395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7403 if { (eval echo configure
:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7405 eval "ac_cv_func_$ac_func=yes"
7407 echo "configure: failed program was:" >&5
7408 cat conftest.
$ac_ext >&5
7410 eval "ac_cv_func_$ac_func=no"
7415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7416 echo "$ac_t""yes" 1>&6
7417 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7418 cat >> confdefs.h
<<EOF
7419 #define $ac_tr_func 1
7423 echo "$ac_t""no" 1>&6
7427 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7428 echo "configure:7429: checking for getspnam in -lsecurity" >&5
7429 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7433 ac_save_LIBS
="$LIBS"
7434 LIBS
="-lsecurity $LIBS"
7435 cat > conftest.
$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 /* Override any gcc2 internal prototype to avoid an error. */
7439 /* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */
7447 if { (eval echo configure
:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7449 eval "ac_cv_lib_$ac_lib_var=yes"
7451 echo "configure: failed program was:" >&5
7452 cat conftest.
$ac_ext >&5
7454 eval "ac_cv_lib_$ac_lib_var=no"
7457 LIBS
="$ac_save_LIBS"
7460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7461 echo "$ac_t""yes" 1>&6
7462 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7464 cat >> confdefs.h
<<EOF
7465 #define $ac_tr_lib 1
7468 LIBS
="-lsecurity $LIBS"
7471 echo "$ac_t""no" 1>&6
7474 for ac_func
in getspnam
7476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_func" >&5
7478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7481 cat > conftest.
$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char $ac_func(); below. */
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 /* We use char because int might match the return type of a gcc2
7489 builtin and then its argument prototype would still apply. */
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7505 if { (eval echo configure
:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7507 eval "ac_cv_func_$ac_func=yes"
7509 echo "configure: failed program was:" >&5
7510 cat conftest.
$ac_ext >&5
7512 eval "ac_cv_func_$ac_func=no"
7517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7518 echo "$ac_t""yes" 1>&6
7519 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7520 cat >> confdefs.h
<<EOF
7521 #define $ac_tr_func 1
7525 echo "$ac_t""no" 1>&6
7533 *-lsec*) for ac_func
in getspnam
7535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7536 echo "configure:7537: checking for $ac_func" >&5
7537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7538 echo $ac_n "(cached) $ac_c" 1>&6
7540 cat > conftest.
$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7543 /* System header to define __stub macros and hopefully few prototypes,
7544 which can conflict with char $ac_func(); below. */
7546 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7553 /* The GNU C library defines this for functions which it implements
7554 to always fail with ENOSYS. Some functions are actually named
7555 something starting with __ and the normal name is an alias. */
7556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7564 if { (eval echo configure
:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7566 eval "ac_cv_func_$ac_func=yes"
7568 echo "configure: failed program was:" >&5
7569 cat conftest.
$ac_ext >&5
7571 eval "ac_cv_func_$ac_func=no"
7576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7577 echo "$ac_t""yes" 1>&6
7578 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7579 cat >> confdefs.h
<<EOF
7580 #define $ac_tr_func 1
7584 echo "$ac_t""no" 1>&6
7588 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7589 echo "configure:7590: checking for getspnam in -lsec" >&5
7590 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7592 echo $ac_n "(cached) $ac_c" 1>&6
7594 ac_save_LIBS
="$LIBS"
7596 cat > conftest.
$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* Override any gcc2 internal prototype to avoid an error. */
7600 /* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7608 if { (eval echo configure
:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7610 eval "ac_cv_lib_$ac_lib_var=yes"
7612 echo "configure: failed program was:" >&5
7613 cat conftest.
$ac_ext >&5
7615 eval "ac_cv_lib_$ac_lib_var=no"
7618 LIBS
="$ac_save_LIBS"
7621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7622 echo "$ac_t""yes" 1>&6
7623 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7625 cat >> confdefs.h
<<EOF
7626 #define $ac_tr_lib 1
7632 echo "$ac_t""no" 1>&6
7635 for ac_func
in getspnam
7637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7638 echo "configure:7639: checking for $ac_func" >&5
7639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7642 cat > conftest.
$ac_ext <<EOF
7643 #line 7644 "configure"
7644 #include "confdefs.h"
7645 /* System header to define __stub macros and hopefully few prototypes,
7646 which can conflict with char $ac_func(); below. */
7648 /* Override any gcc2 internal prototype to avoid an error. */
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7655 /* The GNU C library defines this for functions which it implements
7656 to always fail with ENOSYS. Some functions are actually named
7657 something starting with __ and the normal name is an alias. */
7658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7666 if { (eval echo configure
:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7668 eval "ac_cv_func_$ac_func=yes"
7670 echo "configure: failed program was:" >&5
7671 cat conftest.
$ac_ext >&5
7673 eval "ac_cv_func_$ac_func=no"
7678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7679 echo "$ac_t""yes" 1>&6
7680 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7681 cat >> confdefs.h
<<EOF
7682 #define $ac_tr_func 1
7686 echo "$ac_t""no" 1>&6
7695 *-lsecurity*) for ac_func
in bigcrypt
7697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7698 echo "configure:7699: checking for $ac_func" >&5
7699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7700 echo $ac_n "(cached) $ac_c" 1>&6
7702 cat > conftest.
$ac_ext <<EOF
7703 #line 7704 "configure"
7704 #include "confdefs.h"
7705 /* System header to define __stub macros and hopefully few prototypes,
7706 which can conflict with char $ac_func(); below. */
7708 /* Override any gcc2 internal prototype to avoid an error. */
7709 /* We use char because int might match the return type of a gcc2
7710 builtin and then its argument prototype would still apply. */
7715 /* The GNU C library defines this for functions which it implements
7716 to always fail with ENOSYS. Some functions are actually named
7717 something starting with __ and the normal name is an alias. */
7718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7726 if { (eval echo configure
:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7728 eval "ac_cv_func_$ac_func=yes"
7730 echo "configure: failed program was:" >&5
7731 cat conftest.
$ac_ext >&5
7733 eval "ac_cv_func_$ac_func=no"
7738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7739 echo "$ac_t""yes" 1>&6
7740 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7741 cat >> confdefs.h
<<EOF
7742 #define $ac_tr_func 1
7746 echo "$ac_t""no" 1>&6
7750 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7751 echo "configure:7752: checking for bigcrypt in -lsecurity" >&5
7752 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7756 ac_save_LIBS
="$LIBS"
7757 LIBS
="-lsecurity $LIBS"
7758 cat > conftest.
$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* Override any gcc2 internal prototype to avoid an error. */
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7770 if { (eval echo configure
:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7772 eval "ac_cv_lib_$ac_lib_var=yes"
7774 echo "configure: failed program was:" >&5
7775 cat conftest.
$ac_ext >&5
7777 eval "ac_cv_lib_$ac_lib_var=no"
7780 LIBS
="$ac_save_LIBS"
7783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7784 echo "$ac_t""yes" 1>&6
7785 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7786 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7787 cat >> confdefs.h
<<EOF
7788 #define $ac_tr_lib 1
7791 LIBS
="-lsecurity $LIBS"
7794 echo "$ac_t""no" 1>&6
7797 for ac_func
in bigcrypt
7799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7800 echo "configure:7801: checking for $ac_func" >&5
7801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 cat > conftest.
$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 /* System header to define __stub macros and hopefully few prototypes,
7808 which can conflict with char $ac_func(); below. */
7810 /* Override any gcc2 internal prototype to avoid an error. */
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7817 /* The GNU C library defines this for functions which it implements
7818 to always fail with ENOSYS. Some functions are actually named
7819 something starting with __ and the normal name is an alias. */
7820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7828 if { (eval echo configure
:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7830 eval "ac_cv_func_$ac_func=yes"
7832 echo "configure: failed program was:" >&5
7833 cat conftest.
$ac_ext >&5
7835 eval "ac_cv_func_$ac_func=no"
7840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7841 echo "$ac_t""yes" 1>&6
7842 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7843 cat >> confdefs.h
<<EOF
7844 #define $ac_tr_func 1
7848 echo "$ac_t""no" 1>&6
7856 *-lsec*) for ac_func
in bigcrypt
7858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7859 echo "configure:7860: checking for $ac_func" >&5
7860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7863 cat > conftest.
$ac_ext <<EOF
7864 #line 7865 "configure"
7865 #include "confdefs.h"
7866 /* System header to define __stub macros and hopefully few prototypes,
7867 which can conflict with char $ac_func(); below. */
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7876 /* The GNU C library defines this for functions which it implements
7877 to always fail with ENOSYS. Some functions are actually named
7878 something starting with __ and the normal name is an alias. */
7879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7887 if { (eval echo configure
:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7889 eval "ac_cv_func_$ac_func=yes"
7891 echo "configure: failed program was:" >&5
7892 cat conftest.
$ac_ext >&5
7894 eval "ac_cv_func_$ac_func=no"
7899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6
7901 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7902 cat >> confdefs.h
<<EOF
7903 #define $ac_tr_func 1
7907 echo "$ac_t""no" 1>&6
7911 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7912 echo "configure:7913: checking for bigcrypt in -lsec" >&5
7913 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7917 ac_save_LIBS
="$LIBS"
7919 cat > conftest.
$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* Override any gcc2 internal prototype to avoid an error. */
7923 /* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */
7931 if { (eval echo configure
:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7933 eval "ac_cv_lib_$ac_lib_var=yes"
7935 echo "configure: failed program was:" >&5
7936 cat conftest.
$ac_ext >&5
7938 eval "ac_cv_lib_$ac_lib_var=no"
7941 LIBS
="$ac_save_LIBS"
7944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7945 echo "$ac_t""yes" 1>&6
7946 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7947 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7948 cat >> confdefs.h
<<EOF
7949 #define $ac_tr_lib 1
7955 echo "$ac_t""no" 1>&6
7958 for ac_func
in bigcrypt
7960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7961 echo "configure:7962: checking for $ac_func" >&5
7962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7965 cat > conftest.
$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7968 /* System header to define __stub macros and hopefully few prototypes,
7969 which can conflict with char $ac_func(); below. */
7971 /* Override any gcc2 internal prototype to avoid an error. */
7972 /* We use char because int might match the return type of a gcc2
7973 builtin and then its argument prototype would still apply. */
7978 /* The GNU C library defines this for functions which it implements
7979 to always fail with ENOSYS. Some functions are actually named
7980 something starting with __ and the normal name is an alias. */
7981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7989 if { (eval echo configure
:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7991 eval "ac_cv_func_$ac_func=yes"
7993 echo "configure: failed program was:" >&5
7994 cat conftest.
$ac_ext >&5
7996 eval "ac_cv_func_$ac_func=no"
8001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8004 cat >> confdefs.h
<<EOF
8005 #define $ac_tr_func 1
8009 echo "$ac_t""no" 1>&6
8018 *-lsecurity*) for ac_func
in getprpwnam
8020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8021 echo "configure:8022: checking for $ac_func" >&5
8022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8025 cat > conftest.
$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8028 /* System header to define __stub macros and hopefully few prototypes,
8029 which can conflict with char $ac_func(); below. */
8031 /* Override any gcc2 internal prototype to avoid an error. */
8032 /* We use char because int might match the return type of a gcc2
8033 builtin and then its argument prototype would still apply. */
8038 /* The GNU C library defines this for functions which it implements
8039 to always fail with ENOSYS. Some functions are actually named
8040 something starting with __ and the normal name is an alias. */
8041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8049 if { (eval echo configure
:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8051 eval "ac_cv_func_$ac_func=yes"
8053 echo "configure: failed program was:" >&5
8054 cat conftest.
$ac_ext >&5
8056 eval "ac_cv_func_$ac_func=no"
8061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8062 echo "$ac_t""yes" 1>&6
8063 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8064 cat >> confdefs.h
<<EOF
8065 #define $ac_tr_func 1
8069 echo "$ac_t""no" 1>&6
8073 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8074 echo "configure:8075: checking for getprpwnam in -lsecurity" >&5
8075 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8079 ac_save_LIBS
="$LIBS"
8080 LIBS
="-lsecurity $LIBS"
8081 cat > conftest.
$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8084 /* Override any gcc2 internal prototype to avoid an error. */
8085 /* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8093 if { (eval echo configure
:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8095 eval "ac_cv_lib_$ac_lib_var=yes"
8097 echo "configure: failed program was:" >&5
8098 cat conftest.
$ac_ext >&5
8100 eval "ac_cv_lib_$ac_lib_var=no"
8103 LIBS
="$ac_save_LIBS"
8106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8107 echo "$ac_t""yes" 1>&6
8108 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8110 cat >> confdefs.h
<<EOF
8111 #define $ac_tr_lib 1
8114 LIBS
="-lsecurity $LIBS"
8117 echo "$ac_t""no" 1>&6
8120 for ac_func
in getprpwnam
8122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8123 echo "configure:8124: checking for $ac_func" >&5
8124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8127 cat > conftest.
$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 /* System header to define __stub macros and hopefully few prototypes,
8131 which can conflict with char $ac_func(); below. */
8133 /* Override any gcc2 internal prototype to avoid an error. */
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8140 /* The GNU C library defines this for functions which it implements
8141 to always fail with ENOSYS. Some functions are actually named
8142 something starting with __ and the normal name is an alias. */
8143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8151 if { (eval echo configure
:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8153 eval "ac_cv_func_$ac_func=yes"
8155 echo "configure: failed program was:" >&5
8156 cat conftest.
$ac_ext >&5
8158 eval "ac_cv_func_$ac_func=no"
8163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8164 echo "$ac_t""yes" 1>&6
8165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8166 cat >> confdefs.h
<<EOF
8167 #define $ac_tr_func 1
8171 echo "$ac_t""no" 1>&6
8179 *-lsec*) for ac_func
in getprpwnam
8181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8182 echo "configure:8183: checking for $ac_func" >&5
8183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8184 echo $ac_n "(cached) $ac_c" 1>&6
8186 cat > conftest.
$ac_ext <<EOF
8187 #line 8188 "configure"
8188 #include "confdefs.h"
8189 /* System header to define __stub macros and hopefully few prototypes,
8190 which can conflict with char $ac_func(); below. */
8192 /* Override any gcc2 internal prototype to avoid an error. */
8193 /* We use char because int might match the return type of a gcc2
8194 builtin and then its argument prototype would still apply. */
8199 /* The GNU C library defines this for functions which it implements
8200 to always fail with ENOSYS. Some functions are actually named
8201 something starting with __ and the normal name is an alias. */
8202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8210 if { (eval echo configure
:8211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8212 eval "ac_cv_func_$ac_func=yes"
8214 echo "configure: failed program was:" >&5
8215 cat conftest.
$ac_ext >&5
8217 eval "ac_cv_func_$ac_func=no"
8222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8223 echo "$ac_t""yes" 1>&6
8224 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8225 cat >> confdefs.h
<<EOF
8226 #define $ac_tr_func 1
8230 echo "$ac_t""no" 1>&6
8234 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8235 echo "configure:8236: checking for getprpwnam in -lsec" >&5
8236 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8240 ac_save_LIBS
="$LIBS"
8242 cat > conftest.
$ac_ext <<EOF
8243 #line 8244 "configure"
8244 #include "confdefs.h"
8245 /* Override any gcc2 internal prototype to avoid an error. */
8246 /* We use char because int might match the return type of a gcc2
8247 builtin and then its argument prototype would still apply. */
8254 if { (eval echo configure
:8255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8256 eval "ac_cv_lib_$ac_lib_var=yes"
8258 echo "configure: failed program was:" >&5
8259 cat conftest.
$ac_ext >&5
8261 eval "ac_cv_lib_$ac_lib_var=no"
8264 LIBS
="$ac_save_LIBS"
8267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8268 echo "$ac_t""yes" 1>&6
8269 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8271 cat >> confdefs.h
<<EOF
8272 #define $ac_tr_lib 1
8278 echo "$ac_t""no" 1>&6
8281 for ac_func
in getprpwnam
8283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8284 echo "configure:8285: checking for $ac_func" >&5
8285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8288 cat > conftest.
$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* System header to define __stub macros and hopefully few prototypes,
8292 which can conflict with char $ac_func(); below. */
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8301 /* The GNU C library defines this for functions which it implements
8302 to always fail with ENOSYS. Some functions are actually named
8303 something starting with __ and the normal name is an alias. */
8304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8312 if { (eval echo configure
:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8314 eval "ac_cv_func_$ac_func=yes"
8316 echo "configure: failed program was:" >&5
8317 cat conftest.
$ac_ext >&5
8319 eval "ac_cv_func_$ac_func=no"
8324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8325 echo "$ac_t""yes" 1>&6
8326 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8327 cat >> confdefs.h
<<EOF
8328 #define $ac_tr_func 1
8332 echo "$ac_t""no" 1>&6
8340 # this bit needs to be modified for each OS that is suported by
8341 # smbwrapper. You need to specify how to created a shared library and
8342 # how to compile C code to produce PIC object files
8344 # these are the defaults, good for lots of systems
8351 # Assume non-shared by default and override below
8354 # and these are for particular systems
8356 *linux
*) cat >> confdefs.h
<<\EOF
8364 *solaris
*) cat >> confdefs.h
<<\EOF
8369 *sunos
*) cat >> confdefs.h
<<\EOF
8374 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8376 *irix
*) cat >> confdefs.h
<<\EOF
8381 *irix6
*) cat >> confdefs.h
<<\EOF
8387 ATTEMPT_WRAP32_BUILD
=yes
8389 *aix
*) cat >> confdefs.h
<<\EOF
8393 # AIX is too ugly for now
8395 *hpux
*) cat >> confdefs.h
<<\EOF
8400 # Use special PIC flags for the native HP-UX compiler.
8401 if test $ac_cv_prog_cc_Ae = yes; then
8406 *qnx
*) cat >> confdefs.h
<<\EOF
8410 *osf
*) cat >> confdefs.h
<<\EOF
8414 *sco
*) cat >> confdefs.h
<<\EOF
8418 *next2
*) cat >> confdefs.h
<<\EOF
8422 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8423 set dummy
groff; ac_word
=$2
8424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8425 echo "configure:8426: checking for $ac_word" >&5
8426 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8429 if test -n "$ROFF"; then
8430 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8432 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8434 for ac_dir
in $ac_dummy; do
8435 test -z "$ac_dir" && ac_dir
=.
8436 if test -f $ac_dir/$ac_word; then
8437 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8444 ROFF
="$ac_cv_prog_ROFF"
8445 if test -n "$ROFF"; then
8446 echo "$ac_t""$ROFF" 1>&6
8448 echo "$ac_t""no" 1>&6
8453 *-univel-*) if test "$GCC" != yes ; then
8454 cat >> confdefs.h
<<\EOF
8455 #define HAVE_MEMSET 1
8461 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8462 #define RELIANTUNIX 1
8468 if test "$GCC" != yes ; then
8469 cat >> confdefs.h
<<\EOF
8470 #define HAVE_MEMSET 1
8478 # try to work out how to produce pic code with this compiler
8479 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8480 echo "configure:8481: checking whether ${CC-cc} accepts -fpic" >&5
8481 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8484 echo 'void f(){}' > conftest.c
8485 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8486 ac_cv_prog_cc_fpic
=yes
8488 ac_cv_prog_cc_fpic
=no
8494 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8495 if test $ac_cv_prog_cc_fpic = yes; then
8498 if test x
$PICFLAG = x
; then
8499 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8500 echo "configure:8501: checking whether ${CC-cc} accepts -KPIC" >&5
8501 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8504 echo 'void f(){}' > conftest.c
8505 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8506 ac_cv_prog_cc_KPIC
=yes
8508 ac_cv_prog_cc_KPIC
=no
8514 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8515 if test $ac_cv_prog_cc_KPIC = yes; then
8519 if test x
$PICFLAG = x
; then
8520 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8521 echo "configure:8522: checking whether ${CC-cc} accepts -Kpic" >&5
8522 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8525 echo 'void f(){}' > conftest.c
8526 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8527 ac_cv_prog_cc_Kpic
=yes
8529 ac_cv_prog_cc_Kpic
=no
8535 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8536 if test $ac_cv_prog_cc_Kpic = yes; then
8543 echo $ac_n "checking for long long""... $ac_c" 1>&6
8544 echo "configure:8545: checking for long long" >&5
8545 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8549 if test "$cross_compiling" = yes; then
8550 samba_cv_have_longlong
=cross
8552 cat > conftest.
$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8556 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8558 if { (eval echo configure
:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8560 samba_cv_have_longlong
=yes
8562 echo "configure: failed program was:" >&5
8563 cat conftest.
$ac_ext >&5
8565 samba_cv_have_longlong
=no
8572 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8573 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8574 cat >> confdefs.h
<<\EOF
8575 #define HAVE_LONGLONG 1
8581 # Check if the compiler supports the LL prefix on long long integers.
8584 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8585 echo "configure:8586: checking for LL suffix on long long integers" >&5
8586 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8590 cat > conftest.
$ac_ext <<EOF
8591 #line 8592 "configure"
8592 #include "confdefs.h"
8595 long long i = 0x8000000000LL
8598 if { (eval echo configure
:8599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8600 samba_cv_compiler_supports_ll
=yes
8602 echo "configure: failed program was:" >&5
8603 cat conftest.
$ac_ext >&5
8605 samba_cv_compiler_supports_ll
=no
8610 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8611 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8612 cat >> confdefs.h
<<\EOF
8613 #define COMPILER_SUPPORTS_LL 1
8619 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8620 echo "configure:8621: checking for 64 bit off_t" >&5
8621 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8625 if test "$cross_compiling" = yes; then
8626 samba_cv_SIZEOF_OFF_T
=cross
8628 cat > conftest.
$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8632 #include <sys/stat.h>
8633 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8635 if { (eval echo configure
:8636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8637 samba_cv_SIZEOF_OFF_T
=yes
8639 echo "configure: failed program was:" >&5
8640 cat conftest.
$ac_ext >&5
8642 samba_cv_SIZEOF_OFF_T
=no
8649 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8650 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8651 cat >> confdefs.h
<<\EOF
8652 #define SIZEOF_OFF_T 8
8657 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8658 echo "configure:8659: checking for off64_t" >&5
8659 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8663 if test "$cross_compiling" = yes; then
8664 samba_cv_HAVE_OFF64_T
=cross
8666 cat > conftest.
$ac_ext <<EOF
8667 #line 8668 "configure"
8668 #include "confdefs.h"
8670 #if defined(HAVE_UNISTD_H)
8674 #include <sys/stat.h>
8675 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8677 if { (eval echo configure
:8678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8679 samba_cv_HAVE_OFF64_T
=yes
8681 echo "configure: failed program was:" >&5
8682 cat conftest.
$ac_ext >&5
8684 samba_cv_HAVE_OFF64_T
=no
8691 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8692 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8693 cat >> confdefs.h
<<\EOF
8694 #define HAVE_OFF64_T 1
8699 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8700 echo "configure:8701: checking for 64 bit ino_t" >&5
8701 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8705 if test "$cross_compiling" = yes; then
8706 samba_cv_SIZEOF_INO_T
=cross
8708 cat > conftest.
$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8712 #include <sys/stat.h>
8713 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8715 if { (eval echo configure
:8716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8717 samba_cv_SIZEOF_INO_T
=yes
8719 echo "configure: failed program was:" >&5
8720 cat conftest.
$ac_ext >&5
8722 samba_cv_SIZEOF_INO_T
=no
8729 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8730 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8731 cat >> confdefs.h
<<\EOF
8732 #define SIZEOF_INO_T 8
8737 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8738 echo "configure:8739: checking for ino64_t" >&5
8739 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8743 if test "$cross_compiling" = yes; then
8744 samba_cv_HAVE_INO64_T
=cross
8746 cat > conftest.
$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8750 #if defined(HAVE_UNISTD_H)
8754 #include <sys/stat.h>
8755 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8757 if { (eval echo configure
:8758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8759 samba_cv_HAVE_INO64_T
=yes
8761 echo "configure: failed program was:" >&5
8762 cat conftest.
$ac_ext >&5
8764 samba_cv_HAVE_INO64_T
=no
8771 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8772 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8773 cat >> confdefs.h
<<\EOF
8774 #define HAVE_INO64_T 1
8779 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8780 echo "configure:8781: checking for struct dirent64" >&5
8781 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8782 echo $ac_n "(cached) $ac_c" 1>&6
8785 cat > conftest.
$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8789 #if defined(HAVE_UNISTD_H)
8792 #include <sys/types.h>
8798 if { (eval echo configure
:8799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8800 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8802 echo "configure: failed program was:" >&5
8803 cat conftest.
$ac_ext >&5
8805 samba_cv_HAVE_STRUCT_DIRENT64
=no
8810 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8811 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8812 cat >> confdefs.h
<<\EOF
8813 #define HAVE_STRUCT_DIRENT64 1
8818 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8819 echo "configure:8820: checking for unsigned char" >&5
8820 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8824 if test "$cross_compiling" = yes; then
8825 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8827 cat > conftest.
$ac_ext <<EOF
8828 #line 8829 "configure"
8829 #include "confdefs.h"
8831 main() { char c; c=250; exit((c > 0)?0:1); }
8833 if { (eval echo configure
:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8835 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8837 echo "configure: failed program was:" >&5
8838 cat conftest.
$ac_ext >&5
8840 samba_cv_HAVE_UNSIGNED_CHAR
=no
8847 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8848 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8849 cat >> confdefs.h
<<\EOF
8850 #define HAVE_UNSIGNED_CHAR 1
8855 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8856 echo "configure:8857: checking for sin_len in sock" >&5
8857 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8861 cat > conftest.
$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8864 #include <sys/types.h>
8865 #include <sys/socket.h>
8866 #include <netinet/in.h>
8868 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8871 if { (eval echo configure
:8872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8873 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8875 echo "configure: failed program was:" >&5
8876 cat conftest.
$ac_ext >&5
8878 samba_cv_HAVE_SOCK_SIN_LEN
=no
8883 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8884 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8885 cat >> confdefs.h
<<\EOF
8886 #define HAVE_SOCK_SIN_LEN 1
8891 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8892 echo "configure:8893: checking whether seekdir returns void" >&5
8893 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8897 cat > conftest.
$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8900 #include <sys/types.h>
8902 void seekdir(DIR *d, long loc) { return; }
8907 if { (eval echo configure
:8908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8909 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8911 echo "configure: failed program was:" >&5
8912 cat conftest.
$ac_ext >&5
8914 samba_cv_SEEKDIR_RETURNS_VOID
=no
8919 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8920 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8921 cat >> confdefs.h
<<\EOF
8922 #define SEEKDIR_RETURNS_VOID 1
8927 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8928 echo "configure:8929: checking for __FILE__ macro" >&5
8929 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8933 cat > conftest.
$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8938 printf("%s\n", __FILE__);
8941 if { (eval echo configure
:8942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8943 samba_cv_HAVE_FILE_MACRO
=yes
8945 echo "configure: failed program was:" >&5
8946 cat conftest.
$ac_ext >&5
8948 samba_cv_HAVE_FILE_MACRO
=no
8953 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8954 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8955 cat >> confdefs.h
<<\EOF
8956 #define HAVE_FILE_MACRO 1
8961 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8962 echo "configure:8963: checking for __FUNCTION__ macro" >&5
8963 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8967 cat > conftest.
$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8972 printf("%s\n", __FUNCTION__);
8975 if { (eval echo configure
:8976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8977 samba_cv_HAVE_FUNCTION_MACRO
=yes
8979 echo "configure: failed program was:" >&5
8980 cat conftest.
$ac_ext >&5
8982 samba_cv_HAVE_FUNCTION_MACRO
=no
8987 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8988 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8989 cat >> confdefs.h
<<\EOF
8990 #define HAVE_FUNCTION_MACRO 1
8995 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8996 echo "configure:8997: checking if gettimeofday takes tz argument" >&5
8997 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8998 echo $ac_n "(cached) $ac_c" 1>&6
9001 if test "$cross_compiling" = yes; then
9002 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9004 cat > conftest.
$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9008 #include <sys/time.h>
9010 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9012 if { (eval echo configure
:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9014 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9016 echo "configure: failed program was:" >&5
9017 cat conftest.
$ac_ext >&5
9019 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9026 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9027 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9028 cat >> confdefs.h
<<\EOF
9029 #define HAVE_GETTIMEOFDAY_TZ 1
9034 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9035 echo "configure:9036: checking for C99 vsnprintf" >&5
9036 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9040 if test "$cross_compiling" = yes; then
9041 samba_cv_HAVE_C99_VSNPRINTF
=cross
9043 cat > conftest.
$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9047 #include <sys/types.h>
9049 void foo(const char *format, ...) {
9054 va_start(ap, format);
9055 len = vsnprintf(0, 0, format, ap);
9057 if (len != 5) exit(1);
9059 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9063 main() { foo("hello"); }
9066 if { (eval echo configure
:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9068 samba_cv_HAVE_C99_VSNPRINTF
=yes
9070 echo "configure: failed program was:" >&5
9071 cat conftest.
$ac_ext >&5
9073 samba_cv_HAVE_C99_VSNPRINTF
=no
9080 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9081 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9082 cat >> confdefs.h
<<\EOF
9083 #define HAVE_C99_VSNPRINTF 1
9088 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9089 echo "configure:9090: checking for broken readdir" >&5
9090 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9094 if test "$cross_compiling" = yes; then
9095 samba_cv_HAVE_BROKEN_READDIR
=cross
9097 cat > conftest.
$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9100 #include <sys/types.h>
9102 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9103 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9104 di->d_name[0] == 0) exit(0); exit(1);}
9106 if { (eval echo configure
:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9108 samba_cv_HAVE_BROKEN_READDIR
=yes
9110 echo "configure: failed program was:" >&5
9111 cat conftest.
$ac_ext >&5
9113 samba_cv_HAVE_BROKEN_READDIR
=no
9120 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9121 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9122 cat >> confdefs.h
<<\EOF
9123 #define HAVE_BROKEN_READDIR 1
9128 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9129 echo "configure:9130: checking for utimbuf" >&5
9130 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9134 cat > conftest.
$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9137 #include <sys/types.h>
9140 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9143 if { (eval echo configure
:9144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9145 samba_cv_HAVE_UTIMBUF
=yes
9147 echo "configure: failed program was:" >&5
9148 cat conftest.
$ac_ext >&5
9150 samba_cv_HAVE_UTIMBUF
=no
9155 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9156 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9157 cat >> confdefs.h
<<\EOF
9158 #define HAVE_UTIMBUF 1
9164 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9167 echo "configure:9168: checking for $ac_func" >&5
9168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9171 cat > conftest.
$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 /* System header to define __stub macros and hopefully few prototypes,
9175 which can conflict with char $ac_func(); below. */
9177 /* Override any gcc2 internal prototype to avoid an error. */
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9184 /* The GNU C library defines this for functions which it implements
9185 to always fail with ENOSYS. Some functions are actually named
9186 something starting with __ and the normal name is an alias. */
9187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9195 if { (eval echo configure
:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9197 eval "ac_cv_func_$ac_func=yes"
9199 echo "configure: failed program was:" >&5
9200 cat conftest.
$ac_ext >&5
9202 eval "ac_cv_func_$ac_func=no"
9207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9208 echo "$ac_t""yes" 1>&6
9209 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9210 cat >> confdefs.h
<<EOF
9211 #define $ac_tr_func 1
9215 echo "$ac_t""no" 1>&6
9220 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9221 echo "configure:9222: checking for ut_name in utmp" >&5
9222 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9226 cat > conftest.
$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9229 #include <sys/types.h>
9232 struct utmp ut; ut.ut_name[0] = 'a';
9235 if { (eval echo configure
:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9237 samba_cv_HAVE_UT_UT_NAME
=yes
9239 echo "configure: failed program was:" >&5
9240 cat conftest.
$ac_ext >&5
9242 samba_cv_HAVE_UT_UT_NAME
=no
9247 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9248 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9249 cat >> confdefs.h
<<\EOF
9250 #define HAVE_UT_UT_NAME 1
9255 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9256 echo "configure:9257: checking for ut_user in utmp" >&5
9257 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9261 cat > conftest.
$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9264 #include <sys/types.h>
9267 struct utmp ut; ut.ut_user[0] = 'a';
9270 if { (eval echo configure
:9271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9272 samba_cv_HAVE_UT_UT_USER
=yes
9274 echo "configure: failed program was:" >&5
9275 cat conftest.
$ac_ext >&5
9277 samba_cv_HAVE_UT_UT_USER
=no
9282 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9283 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9284 cat >> confdefs.h
<<\EOF
9285 #define HAVE_UT_UT_USER 1
9290 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9291 echo "configure:9292: checking for ut_id in utmp" >&5
9292 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9296 cat > conftest.
$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9299 #include <sys/types.h>
9302 struct utmp ut; ut.ut_id[0] = 'a';
9305 if { (eval echo configure
:9306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9307 samba_cv_HAVE_UT_UT_ID
=yes
9309 echo "configure: failed program was:" >&5
9310 cat conftest.
$ac_ext >&5
9312 samba_cv_HAVE_UT_UT_ID
=no
9317 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9318 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9319 cat >> confdefs.h
<<\EOF
9320 #define HAVE_UT_UT_ID 1
9325 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9326 echo "configure:9327: checking for ut_host in utmp" >&5
9327 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9331 cat > conftest.
$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 #include <sys/types.h>
9337 struct utmp ut; ut.ut_host[0] = 'a';
9340 if { (eval echo configure
:9341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9342 samba_cv_HAVE_UT_UT_HOST
=yes
9344 echo "configure: failed program was:" >&5
9345 cat conftest.
$ac_ext >&5
9347 samba_cv_HAVE_UT_UT_HOST
=no
9352 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9353 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9354 cat >> confdefs.h
<<\EOF
9355 #define HAVE_UT_UT_HOST 1
9360 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9361 echo "configure:9362: checking for ut_time in utmp" >&5
9362 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9366 cat > conftest.
$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9369 #include <sys/types.h>
9372 struct utmp ut; time_t t; ut.ut_time = t;
9375 if { (eval echo configure
:9376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9377 samba_cv_HAVE_UT_UT_TIME
=yes
9379 echo "configure: failed program was:" >&5
9380 cat conftest.
$ac_ext >&5
9382 samba_cv_HAVE_UT_UT_TIME
=no
9387 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9388 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9389 cat >> confdefs.h
<<\EOF
9390 #define HAVE_UT_UT_TIME 1
9395 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9396 echo "configure:9397: checking for ut_tv in utmp" >&5
9397 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9398 echo $ac_n "(cached) $ac_c" 1>&6
9401 cat > conftest.
$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 #include <sys/types.h>
9407 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9410 if { (eval echo configure
:9411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9412 samba_cv_HAVE_UT_UT_TV
=yes
9414 echo "configure: failed program was:" >&5
9415 cat conftest.
$ac_ext >&5
9417 samba_cv_HAVE_UT_UT_TV
=no
9422 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9423 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9424 cat >> confdefs.h
<<\EOF
9425 #define HAVE_UT_UT_TV 1
9430 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9431 echo "configure:9432: checking for ut_type in utmp" >&5
9432 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9436 cat > conftest.
$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 #include <sys/types.h>
9442 struct utmp ut; ut.ut_type = 0;
9445 if { (eval echo configure
:9446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9447 samba_cv_HAVE_UT_UT_TYPE
=yes
9449 echo "configure: failed program was:" >&5
9450 cat conftest.
$ac_ext >&5
9452 samba_cv_HAVE_UT_UT_TYPE
=no
9457 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9458 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9459 cat >> confdefs.h
<<\EOF
9460 #define HAVE_UT_UT_TYPE 1
9465 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9466 echo "configure:9467: checking for ut_pid in utmp" >&5
9467 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9471 cat > conftest.
$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 #include <sys/types.h>
9477 struct utmp ut; ut.ut_pid = 0;
9480 if { (eval echo configure
:9481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9482 samba_cv_HAVE_UT_UT_PID
=yes
9484 echo "configure: failed program was:" >&5
9485 cat conftest.
$ac_ext >&5
9487 samba_cv_HAVE_UT_UT_PID
=no
9492 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9493 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9494 cat >> confdefs.h
<<\EOF
9495 #define HAVE_UT_UT_PID 1
9500 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9501 echo "configure:9502: checking for ut_exit in utmp" >&5
9502 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9506 cat > conftest.
$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 #include <sys/types.h>
9512 struct utmp ut; ut.ut_exit.e_exit = 0;
9515 if { (eval echo configure
:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9517 samba_cv_HAVE_UT_UT_EXIT
=yes
9519 echo "configure: failed program was:" >&5
9520 cat conftest.
$ac_ext >&5
9522 samba_cv_HAVE_UT_UT_EXIT
=no
9527 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9528 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9529 cat >> confdefs.h
<<\EOF
9530 #define HAVE_UT_UT_EXIT 1
9535 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9536 echo "configure:9537: checking for ut_addr in utmp" >&5
9537 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9541 cat > conftest.
$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9544 #include <sys/types.h>
9547 struct utmp ut; ut.ut_addr = 0;
9550 if { (eval echo configure
:9551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9552 samba_cv_HAVE_UT_UT_ADDR
=yes
9554 echo "configure: failed program was:" >&5
9555 cat conftest.
$ac_ext >&5
9557 samba_cv_HAVE_UT_UT_ADDR
=no
9562 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9563 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9564 cat >> confdefs.h
<<\EOF
9565 #define HAVE_UT_UT_ADDR 1
9570 if test x
$ac_cv_func_pututline = xyes
; then
9571 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9572 echo "configure:9573: checking whether pututline returns pointer" >&5
9573 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9577 cat > conftest.
$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9580 #include <sys/types.h>
9583 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9586 if { (eval echo configure
:9587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9588 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9590 echo "configure: failed program was:" >&5
9591 cat conftest.
$ac_ext >&5
9593 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9598 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9599 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9600 cat >> confdefs.h
<<\EOF
9601 #define PUTUTLINE_RETURNS_UTMP 1
9607 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9608 echo "configure:9609: checking for ut_syslen in utmpx" >&5
9609 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
9613 cat > conftest.
$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include <sys/types.h>
9619 struct utmpx ux; ux.ut_syslen = 0;
9622 if { (eval echo configure
:9623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9624 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9626 echo "configure: failed program was:" >&5
9627 cat conftest.
$ac_ext >&5
9629 samba_cv_HAVE_UX_UT_SYSLEN
=no
9634 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9635 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9636 cat >> confdefs.h
<<\EOF
9637 #define HAVE_UX_UT_SYSLEN 1
9642 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9643 echo "configure:9644: checking for Linux kernel oplocks" >&5
9644 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9648 if test "$cross_compiling" = yes; then
9649 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9651 cat > conftest.
$ac_ext <<EOF
9652 #line 9653 "configure"
9653 #include "confdefs.h"
9655 #include <sys/types.h>
9658 #define F_GETLEASE 1025
9661 int fd = open("/dev/null", O_RDONLY);
9662 return fcntl(fd, F_GETLEASE, 0) == -1;
9666 if { (eval echo configure
:9667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9668 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9670 echo "configure: failed program was:" >&5
9671 cat conftest.
$ac_ext >&5
9673 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9680 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9681 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9682 cat >> confdefs.h
<<\EOF
9683 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9688 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9689 echo "configure:9690: checking for kernel change notify support" >&5
9690 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9694 if test "$cross_compiling" = yes; then
9695 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9697 cat > conftest.
$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9701 #include <sys/types.h>
9705 #define F_NOTIFY 1026
9708 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9712 if { (eval echo configure
:9713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9714 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9716 echo "configure: failed program was:" >&5
9717 cat conftest.
$ac_ext >&5
9719 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9726 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9727 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9728 cat >> confdefs.h
<<\EOF
9729 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9734 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9735 echo "configure:9736: checking for kernel share modes" >&5
9736 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9740 if test "$cross_compiling" = yes; then
9741 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9743 cat > conftest.
$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9747 #include <sys/types.h>
9750 #include <sys/file.h>
9752 #define LOCK_MAND 32
9753 #define LOCK_READ 64
9756 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9760 if { (eval echo configure
:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9762 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9764 echo "configure: failed program was:" >&5
9765 cat conftest.
$ac_ext >&5
9767 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9774 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9775 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9776 cat >> confdefs.h
<<\EOF
9777 #define HAVE_KERNEL_SHARE_MODES 1
9785 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9786 echo "configure:9787: checking for IRIX kernel oplock type definitions" >&5
9787 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9791 cat > conftest.
$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9794 #include <sys/types.h>
9797 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9800 if { (eval echo configure
:9801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9802 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9804 echo "configure: failed program was:" >&5
9805 cat conftest.
$ac_ext >&5
9807 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9812 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9813 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9814 cat >> confdefs.h
<<\EOF
9815 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9820 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9821 echo "configure:9822: checking for irix specific capabilities" >&5
9822 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9826 if test "$cross_compiling" = yes; then
9827 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9829 cat > conftest.
$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 #include <sys/types.h>
9833 #include <sys/capability.h>
9836 if ((cap = cap_get_proc()) == NULL)
9838 cap->cap_effective |= CAP_NETWORK_MGT;
9839 cap->cap_inheritable |= CAP_NETWORK_MGT;
9845 if { (eval echo configure
:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9847 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9849 echo "configure: failed program was:" >&5
9850 cat conftest.
$ac_ext >&5
9852 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9859 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9860 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9861 cat >> confdefs.h
<<\EOF
9862 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9868 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9869 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9872 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9873 echo "configure:9874: checking for int16 typedef included by rpc/rpc.h" >&5
9874 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9878 cat > conftest.
$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include <sys/types.h>
9882 #if defined(HAVE_RPC_RPC_H)
9883 #include <rpc/rpc.h>
9889 if { (eval echo configure
:9890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9891 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9893 echo "configure: failed program was:" >&5
9894 cat conftest.
$ac_ext >&5
9896 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9901 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9902 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9903 cat >> confdefs.h
<<\EOF
9904 #define HAVE_INT16_FROM_RPC_RPC_H 1
9909 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9910 echo "configure:9911: checking for uint16 typedef included by rpc/rpc.h" >&5
9911 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9912 echo $ac_n "(cached) $ac_c" 1>&6
9915 cat > conftest.
$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 #include <sys/types.h>
9919 #if defined(HAVE_RPC_RPC_H)
9920 #include <rpc/rpc.h>
9926 if { (eval echo configure
:9927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9928 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9930 echo "configure: failed program was:" >&5
9931 cat conftest.
$ac_ext >&5
9933 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9938 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9939 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9940 cat >> confdefs.h
<<\EOF
9941 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9946 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9947 echo "configure:9948: checking for int32 typedef included by rpc/rpc.h" >&5
9948 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9952 cat > conftest.
$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 #include <sys/types.h>
9956 #if defined(HAVE_RPC_RPC_H)
9957 #include <rpc/rpc.h>
9963 if { (eval echo configure
:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9965 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9967 echo "configure: failed program was:" >&5
9968 cat conftest.
$ac_ext >&5
9970 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9975 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9976 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9977 cat >> confdefs.h
<<\EOF
9978 #define HAVE_INT32_FROM_RPC_RPC_H 1
9983 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9984 echo "configure:9985: checking for uint32 typedef included by rpc/rpc.h" >&5
9985 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9986 echo $ac_n "(cached) $ac_c" 1>&6
9989 cat > conftest.
$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 #include <sys/types.h>
9993 #if defined(HAVE_RPC_RPC_H)
9994 #include <rpc/rpc.h>
10000 if { (eval echo configure
:10001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10002 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10004 echo "configure: failed program was:" >&5
10005 cat conftest.
$ac_ext >&5
10007 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10012 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10013 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10014 cat >> confdefs.h
<<\EOF
10015 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10021 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10022 echo "configure:10023: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10023 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10024 echo $ac_n "(cached) $ac_c" 1>&6
10027 cat > conftest.
$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #ifdef HAVE_SYS_SECURITY_H
10032 #include <sys/security.h>
10034 #endif /* HAVE_SYS_SECURITY_H */
10035 #if defined(HAVE_RPC_RPC_H)
10036 #include <rpc/rpc.h>
10042 if { (eval echo configure
:10043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10044 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10046 echo "configure: failed program was:" >&5
10047 cat conftest.
$ac_ext >&5
10049 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10054 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10055 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10056 cat >> confdefs.h
<<\EOF
10057 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10062 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10063 echo "configure:10064: checking for test routines" >&5
10064 if test "$cross_compiling" = yes; then
10065 echo "configure: warning: cannot run when cross-compiling" 1>&2
10067 cat > conftest.
$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10070 #include "${srcdir-.}/tests/trivial.c"
10072 if { (eval echo configure
:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10074 echo "$ac_t""yes" 1>&6
10076 echo "configure: failed program was:" >&5
10077 cat conftest.
$ac_ext >&5
10079 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10085 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10086 echo "configure:10087: checking for ftruncate extend" >&5
10087 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10091 if test "$cross_compiling" = yes; then
10092 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10094 cat > conftest.
$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097 #include "${srcdir-.}/tests/ftruncate.c"
10099 if { (eval echo configure
:10100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10101 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10103 echo "configure: failed program was:" >&5
10104 cat conftest.
$ac_ext >&5
10106 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10113 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10114 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10115 cat >> confdefs.h
<<\EOF
10116 #define HAVE_FTRUNCATE_EXTEND 1
10121 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10122 echo "configure:10123: checking for broken getgroups" >&5
10123 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10124 echo $ac_n "(cached) $ac_c" 1>&6
10127 if test "$cross_compiling" = yes; then
10128 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10130 cat > conftest.
$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10133 #include "${srcdir-.}/tests/getgroups.c"
10135 if { (eval echo configure
:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10137 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10139 echo "configure: failed program was:" >&5
10140 cat conftest.
$ac_ext >&5
10142 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10149 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10150 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10151 cat >> confdefs.h
<<\EOF
10152 #define HAVE_BROKEN_GETGROUPS 1
10157 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10158 echo "configure:10159: checking whether getpass should be replaced" >&5
10159 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10163 SAVE_CPPFLAGS
="$CPPFLAGS"
10164 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10165 cat > conftest.
$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10169 #define REPLACE_GETPASS 1
10170 #define NO_CONFIG_H 1
10171 #define main dont_declare_main
10172 #include "${srcdir-.}/lib/getsmbpass.c"
10179 if { (eval echo configure
:10180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10181 samba_cv_REPLACE_GETPASS
=yes
10183 echo "configure: failed program was:" >&5
10184 cat conftest.
$ac_ext >&5
10186 samba_cv_REPLACE_GETPASS
=no
10189 CPPFLAGS
="$SAVE_CPPFLAGS"
10193 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10194 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10195 cat >> confdefs.h
<<\EOF
10196 #define REPLACE_GETPASS 1
10201 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10202 echo "configure:10203: checking for broken inet_ntoa" >&5
10203 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10207 if test "$cross_compiling" = yes; then
10208 samba_cv_REPLACE_INET_NTOA
=cross
10210 cat > conftest.
$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10215 #include <sys/types.h>
10216 #include <netinet/in.h>
10217 #ifdef HAVE_ARPA_INET_H
10218 #include <arpa/inet.h>
10220 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10221 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10222 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10225 if { (eval echo configure
:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10227 samba_cv_REPLACE_INET_NTOA
=yes
10229 echo "configure: failed program was:" >&5
10230 cat conftest.
$ac_ext >&5
10232 samba_cv_REPLACE_INET_NTOA
=no
10239 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10240 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10241 cat >> confdefs.h
<<\EOF
10242 #define REPLACE_INET_NTOA 1
10247 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10248 echo "configure:10249: checking for secure mkstemp" >&5
10249 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10253 if test "$cross_compiling" = yes; then
10254 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10256 cat > conftest.
$ac_ext <<EOF
10257 #line 10258 "configure"
10258 #include "confdefs.h"
10259 #include <stdlib.h>
10260 #include <sys/types.h>
10261 #include <sys/stat.h>
10262 #include <unistd.h>
10265 char tpl[20]="/tmp/test.XXXXXX";
10266 int fd = mkstemp(tpl);
10267 if (fd == -1) exit(1);
10269 if (fstat(fd, &st) != 0) exit(1);
10270 if ((st.st_mode & 0777) != 0600) exit(1);
10274 if { (eval echo configure
:10275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10276 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10278 echo "configure: failed program was:" >&5
10279 cat conftest.
$ac_ext >&5
10281 samba_cv_HAVE_SECURE_MKSTEMP
=no
10288 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10289 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10290 cat >> confdefs.h
<<\EOF
10291 #define HAVE_SECURE_MKSTEMP 1
10296 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10297 echo "configure:10298: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10298 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10302 if test "$cross_compiling" = yes; then
10303 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10305 cat > conftest.
$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <unistd.h>
10309 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10311 if { (eval echo configure
:10312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10313 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10315 echo "configure: failed program was:" >&5
10316 cat conftest.
$ac_ext >&5
10318 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10325 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10326 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10327 cat >> confdefs.h
<<\EOF
10328 #define SYSCONF_SC_NGROUPS_MAX 1
10333 echo $ac_n "checking for root""... $ac_c" 1>&6
10334 echo "configure:10335: checking for root" >&5
10335 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10336 echo $ac_n "(cached) $ac_c" 1>&6
10339 if test "$cross_compiling" = yes; then
10340 samba_cv_HAVE_ROOT
=cross
10342 cat > conftest.
$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10345 main() { exit(getuid() != 0); }
10347 if { (eval echo configure
:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10349 samba_cv_HAVE_ROOT
=yes
10351 echo "configure: failed program was:" >&5
10352 cat conftest.
$ac_ext >&5
10354 samba_cv_HAVE_ROOT
=no
10361 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10362 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10363 cat >> confdefs.h
<<\EOF
10364 #define HAVE_ROOT 1
10368 echo "configure: warning: running as non-root will disable some tests" 1>&2
10372 # look for a method of finding the list of network interfaces
10374 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10375 echo "configure:10376: checking for iface AIX" >&5
10376 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10380 if test "$cross_compiling" = yes; then
10381 samba_cv_HAVE_IFACE_AIX
=cross
10383 cat > conftest.
$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10387 #define HAVE_IFACE_AIX 1
10388 #define AUTOCONF_TEST 1
10389 #include "confdefs.h"
10390 #include "${srcdir-.}/lib/interfaces.c"
10392 if { (eval echo configure
:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10394 samba_cv_HAVE_IFACE_AIX
=yes
10396 echo "configure: failed program was:" >&5
10397 cat conftest.
$ac_ext >&5
10399 samba_cv_HAVE_IFACE_AIX
=no
10406 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10407 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10408 iface
=yes;cat >> confdefs.h
<<\EOF
10409 #define HAVE_IFACE_AIX 1
10414 if test $iface = no
; then
10415 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10416 echo "configure:10417: checking for iface ifconf" >&5
10417 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10418 echo $ac_n "(cached) $ac_c" 1>&6
10421 if test "$cross_compiling" = yes; then
10422 samba_cv_HAVE_IFACE_IFCONF
=cross
10424 cat > conftest.
$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10428 #define HAVE_IFACE_IFCONF 1
10429 #define AUTOCONF_TEST 1
10430 #include "confdefs.h"
10431 #include "${srcdir-.}/lib/interfaces.c"
10433 if { (eval echo configure
:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10435 samba_cv_HAVE_IFACE_IFCONF
=yes
10437 echo "configure: failed program was:" >&5
10438 cat conftest.
$ac_ext >&5
10440 samba_cv_HAVE_IFACE_IFCONF
=no
10447 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10448 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10449 iface
=yes;cat >> confdefs.h
<<\EOF
10450 #define HAVE_IFACE_IFCONF 1
10456 if test $iface = no
; then
10457 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10458 echo "configure:10459: checking for iface ifreq" >&5
10459 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10460 echo $ac_n "(cached) $ac_c" 1>&6
10463 if test "$cross_compiling" = yes; then
10464 samba_cv_HAVE_IFACE_IFREQ
=cross
10466 cat > conftest.
$ac_ext <<EOF
10467 #line 10468 "configure"
10468 #include "confdefs.h"
10470 #define HAVE_IFACE_IFREQ 1
10471 #define AUTOCONF_TEST 1
10472 #include "confdefs.h"
10473 #include "${srcdir-.}/lib/interfaces.c"
10475 if { (eval echo configure
:10476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10477 samba_cv_HAVE_IFACE_IFREQ
=yes
10479 echo "configure: failed program was:" >&5
10480 cat conftest.
$ac_ext >&5
10482 samba_cv_HAVE_IFACE_IFREQ
=no
10489 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10490 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10491 iface
=yes;cat >> confdefs.h
<<\EOF
10492 #define HAVE_IFACE_IFREQ 1
10499 ################################################
10500 # look for a method of setting the effective uid
10502 if test $seteuid = no
; then
10503 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10504 echo "configure:10505: checking for setresuid" >&5
10505 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10509 if test "$cross_compiling" = yes; then
10510 samba_cv_USE_SETRESUID
=cross
10512 cat > conftest.
$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10516 #define AUTOCONF_TEST 1
10517 #define USE_SETRESUID 1
10518 #include "confdefs.h"
10519 #include "${srcdir-.}/lib/util_sec.c"
10521 if { (eval echo configure
:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10523 samba_cv_USE_SETRESUID
=yes
10525 echo "configure: failed program was:" >&5
10526 cat conftest.
$ac_ext >&5
10528 samba_cv_USE_SETRESUID
=no
10535 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10536 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10537 seteuid
=yes;cat >> confdefs.h
<<\EOF
10538 #define USE_SETRESUID 1
10545 if test $seteuid = no
; then
10546 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10547 echo "configure:10548: checking for setreuid" >&5
10548 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10552 if test "$cross_compiling" = yes; then
10553 samba_cv_USE_SETREUID
=cross
10555 cat > conftest.
$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10559 #define AUTOCONF_TEST 1
10560 #define USE_SETREUID 1
10561 #include "confdefs.h"
10562 #include "${srcdir-.}/lib/util_sec.c"
10564 if { (eval echo configure
:10565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10566 samba_cv_USE_SETREUID
=yes
10568 echo "configure: failed program was:" >&5
10569 cat conftest.
$ac_ext >&5
10571 samba_cv_USE_SETREUID
=no
10578 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10579 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10580 seteuid
=yes;cat >> confdefs.h
<<\EOF
10581 #define USE_SETREUID 1
10587 if test $seteuid = no
; then
10588 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10589 echo "configure:10590: checking for seteuid" >&5
10590 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10594 if test "$cross_compiling" = yes; then
10595 samba_cv_USE_SETEUID
=cross
10597 cat > conftest.
$ac_ext <<EOF
10598 #line 10599 "configure"
10599 #include "confdefs.h"
10601 #define AUTOCONF_TEST 1
10602 #define USE_SETEUID 1
10603 #include "confdefs.h"
10604 #include "${srcdir-.}/lib/util_sec.c"
10606 if { (eval echo configure
:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10608 samba_cv_USE_SETEUID
=yes
10610 echo "configure: failed program was:" >&5
10611 cat conftest.
$ac_ext >&5
10613 samba_cv_USE_SETEUID
=no
10620 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10621 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10622 seteuid
=yes;cat >> confdefs.h
<<\EOF
10623 #define USE_SETEUID 1
10629 if test $seteuid = no
; then
10630 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10631 echo "configure:10632: checking for setuidx" >&5
10632 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10633 echo $ac_n "(cached) $ac_c" 1>&6
10636 if test "$cross_compiling" = yes; then
10637 samba_cv_USE_SETUIDX
=cross
10639 cat > conftest.
$ac_ext <<EOF
10640 #line 10641 "configure"
10641 #include "confdefs.h"
10643 #define AUTOCONF_TEST 1
10644 #define USE_SETUIDX 1
10645 #include "confdefs.h"
10646 #include "${srcdir-.}/lib/util_sec.c"
10648 if { (eval echo configure
:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10650 samba_cv_USE_SETUIDX
=yes
10652 echo "configure: failed program was:" >&5
10653 cat conftest.
$ac_ext >&5
10655 samba_cv_USE_SETUIDX
=no
10662 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10663 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10664 seteuid
=yes;cat >> confdefs.h
<<\EOF
10665 #define USE_SETUIDX 1
10672 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10673 echo "configure:10674: checking for working mmap" >&5
10674 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
10678 if test "$cross_compiling" = yes; then
10679 samba_cv_HAVE_MMAP
=cross
10681 cat > conftest.
$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10684 #include "${srcdir-.}/tests/shared_mmap.c"
10686 if { (eval echo configure
:10687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10688 samba_cv_HAVE_MMAP
=yes
10690 echo "configure: failed program was:" >&5
10691 cat conftest.
$ac_ext >&5
10693 samba_cv_HAVE_MMAP
=no
10700 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10701 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10702 cat >> confdefs.h
<<\EOF
10703 #define HAVE_MMAP 1
10708 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10709 echo "configure:10710: checking for ftruncate needs root" >&5
10710 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10711 echo $ac_n "(cached) $ac_c" 1>&6
10714 if test "$cross_compiling" = yes; then
10715 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10717 cat > conftest.
$ac_ext <<EOF
10718 #line 10719 "configure"
10719 #include "confdefs.h"
10720 #include "${srcdir-.}/tests/ftruncroot.c"
10722 if { (eval echo configure
:10723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10724 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10726 echo "configure: failed program was:" >&5
10727 cat conftest.
$ac_ext >&5
10729 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10736 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10737 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10738 cat >> confdefs.h
<<\EOF
10739 #define FTRUNCATE_NEEDS_ROOT 1
10744 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10745 echo "configure:10746: checking for fcntl locking" >&5
10746 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10750 if test "$cross_compiling" = yes; then
10751 samba_cv_HAVE_FCNTL_LOCK
=cross
10753 cat > conftest.
$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10756 #include "${srcdir-.}/tests/fcntl_lock.c"
10758 if { (eval echo configure
:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10760 samba_cv_HAVE_FCNTL_LOCK
=yes
10762 echo "configure: failed program was:" >&5
10763 cat conftest.
$ac_ext >&5
10765 samba_cv_HAVE_FCNTL_LOCK
=no
10772 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10773 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10774 cat >> confdefs.h
<<\EOF
10775 #define HAVE_FCNTL_LOCK 1
10780 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10781 echo "configure:10782: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10782 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10789 cat > conftest.
$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10792 #include "${srcdir-.}/tests/fcntl_lock64.c"
10794 if { (eval echo configure
:10795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10796 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10798 echo "configure: failed program was:" >&5
10799 cat conftest.
$ac_ext >&5
10801 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10808 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10809 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10810 cat >> confdefs.h
<<\EOF
10811 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10818 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10819 echo "configure:10820: checking for 64 bit fcntl locking" >&5
10820 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10821 echo $ac_n "(cached) $ac_c" 1>&6
10824 if test "$cross_compiling" = yes; then
10825 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10827 cat > conftest.
$ac_ext <<EOF
10828 #line 10829 "configure"
10829 #include "confdefs.h"
10831 #if defined(HAVE_UNISTD_H)
10832 #include <unistd.h>
10835 #include <stdlib.h>
10837 #ifdef HAVE_FCNTL_H
10841 #ifdef HAVE_SYS_FCNTL_H
10842 #include <sys/fcntl.h>
10844 main() { struct flock64 fl64;
10845 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10852 if { (eval echo configure
:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10854 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10856 echo "configure: failed program was:" >&5
10857 cat conftest.
$ac_ext >&5
10859 samba_cv_HAVE_STRUCT_FLOCK64
=no
10866 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10868 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10869 cat >> confdefs.h
<<\EOF
10870 #define HAVE_STRUCT_FLOCK64 1
10879 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
10880 echo "configure:10881: checking for broken RedHat 7.2 system header files" >&5
10881 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10885 cat > conftest.
$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10889 #ifdef HAVE_SYS_VFS_H
10890 #include <sys/vfs.h>
10892 #ifdef HAVE_SYS_CAPABILITY_H
10893 #include <sys/capability.h>
10900 if { (eval echo configure
:10901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10902 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
10904 echo "configure: failed program was:" >&5
10905 cat conftest.
$ac_ext >&5
10907 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
10912 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
10913 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
10914 cat >> confdefs.h
<<\EOF
10915 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
10922 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10923 echo "configure:10924: checking for broken nisplus include files" >&5
10924 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10925 echo $ac_n "(cached) $ac_c" 1>&6
10928 cat > conftest.
$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 #include <sys/acl.h>
10932 #if defined(HAVE_RPCSVC_NIS_H)
10933 #include <rpcsvc/nis.h>
10939 if { (eval echo configure
:10940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10941 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10943 echo "configure: failed program was:" >&5
10944 cat conftest.
$ac_ext >&5
10946 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10951 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10952 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10953 cat >> confdefs.h
<<\EOF
10954 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10960 #################################################
10961 # check for smbwrapper support
10962 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10963 echo "configure:10964: checking whether to use smbwrapper" >&5
10964 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10965 if test "${with_smbwrapper+set}" = set; then
10966 withval
="$with_smbwrapper"
10969 echo "$ac_t""yes" 1>&6
10970 cat >> confdefs.h
<<\EOF
10971 #define WITH_SMBWRAPPER 1
10974 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10976 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10979 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10982 # Conditions under which smbwrapper should not be built.
10984 if test x
$PICFLAG = x
; then
10985 echo No support
for PIC code
- disabling smbwrapper and smbsh
10988 elif test x
$ac_cv_func_syscall = xno
; then
10989 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10995 echo "$ac_t""no" 1>&6
10999 echo "$ac_t""no" 1>&6
11004 #################################################
11005 # check for the AFS filesystem
11006 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11007 echo "configure:11008: checking whether to use AFS" >&5
11008 # Check whether --with-afs or --without-afs was given.
11009 if test "${with_afs+set}" = set; then
11010 withval
="$with_afs"
11013 echo "$ac_t""yes" 1>&6
11014 cat >> confdefs.h
<<\EOF
11020 echo "$ac_t""no" 1>&6
11024 echo "$ac_t""no" 1>&6
11030 #################################################
11031 # check for the DFS auth system
11032 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11033 echo "configure:11034: checking whether to use DCE/DFS auth" >&5
11034 # Check whether --with-dfs or --without-dfs was given.
11035 if test "${with_dfs+set}" = set; then
11036 withval
="$with_dfs"
11039 echo "$ac_t""yes" 1>&6
11040 cat >> confdefs.h
<<\EOF
11046 echo "$ac_t""no" 1>&6
11050 echo "$ac_t""no" 1>&6
11055 #################################################
11056 # check for Kerberos IV auth system
11057 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11058 echo "configure:11059: checking whether to use Kerberos IV" >&5
11059 # Check whether --with-krb4 or --without-krb4 was given.
11060 if test "${with_krb4+set}" = set; then
11061 withval
="$with_krb4"
11064 echo "$ac_t""yes" 1>&6
11065 cat >> confdefs.h
<<\EOF
11066 #define KRB4_AUTH 1
11069 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11070 echo "configure:11071: checking for dn_expand in -lresolv" >&5
11071 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11073 echo $ac_n "(cached) $ac_c" 1>&6
11075 ac_save_LIBS
="$LIBS"
11076 LIBS
="-lresolv $LIBS"
11077 cat > conftest.
$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080 /* Override any gcc2 internal prototype to avoid an error. */
11081 /* We use char because int might match the return type of a gcc2
11082 builtin and then its argument prototype would still apply. */
11089 if { (eval echo configure
:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11091 eval "ac_cv_lib_$ac_lib_var=yes"
11093 echo "configure: failed program was:" >&5
11094 cat conftest.
$ac_ext >&5
11096 eval "ac_cv_lib_$ac_lib_var=no"
11099 LIBS
="$ac_save_LIBS"
11102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11103 echo "$ac_t""yes" 1>&6
11104 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11105 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11106 cat >> confdefs.h
<<EOF
11107 #define $ac_tr_lib 1
11110 LIBS
="-lresolv $LIBS"
11113 echo "$ac_t""no" 1>&6
11116 LIBS
="$LIBS -lkrb -ldes"
11117 CFLAGS
="$CFLAGS -I$withval/include"
11118 LDFLAGS
="$LDFLAGS -L$withval/lib"
11121 echo "$ac_t""no" 1>&6
11125 echo "$ac_t""no" 1>&6
11130 #################################################
11131 # check for Kerberos 5 auth system
11132 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11133 echo "configure:11134: checking whether to use Kerberos 5" >&5
11134 # Check whether --with-krb5 or --without-krb5 was given.
11135 if test "${with_krb5+set}" = set; then
11136 withval
="$with_krb5"
11139 echo "$ac_t""yes" 1>&6
11140 cat >> confdefs.h
<<\EOF
11141 #define KRB5_AUTH 1
11144 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11145 CFLAGS
="$CFLAGS -I$withval/include"
11146 LDFLAGS
="$LDFLAGS -L$withval/lib"
11149 echo "$ac_t""no" 1>&6
11153 echo "$ac_t""no" 1>&6
11158 #################################################
11159 # check for automount support
11160 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11161 echo "configure:11162: checking whether to use AUTOMOUNT" >&5
11162 # Check whether --with-automount or --without-automount was given.
11163 if test "${with_automount+set}" = set; then
11164 withval
="$with_automount"
11167 echo "$ac_t""yes" 1>&6
11168 cat >> confdefs.h
<<\EOF
11169 #define WITH_AUTOMOUNT 1
11174 echo "$ac_t""no" 1>&6
11178 echo "$ac_t""no" 1>&6
11183 #################################################
11184 # check for smbmount support
11185 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11186 echo "configure:11187: checking whether to use SMBMOUNT" >&5
11187 # Check whether --with-smbmount or --without-smbmount was given.
11188 if test "${with_smbmount+set}" = set; then
11189 withval
="$with_smbmount"
11194 echo "$ac_t""yes" 1>&6
11195 cat >> confdefs.h
<<\EOF
11196 #define WITH_SMBMOUNT 1
11199 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11202 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11207 echo "$ac_t""no" 1>&6
11212 echo "$ac_t""no" 1>&6
11219 #################################################
11220 # check for a PAM password database
11221 with_pam_for_crypt
=no
11222 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11223 echo "configure:11224: checking whether to use PAM password database" >&5
11224 # Check whether --with-pam or --without-pam was given.
11225 if test "${with_pam+set}" = set; then
11226 withval
="$with_pam"
11229 echo "$ac_t""yes" 1>&6
11230 cat >> confdefs.h
<<\EOF
11235 with_pam_for_crypt
=yes
11238 echo "$ac_t""no" 1>&6
11242 echo "$ac_t""no" 1>&6
11247 # we can't build a pam module if we don't have pam.
11248 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11249 echo "configure:11250: checking for pam_get_data in -lpam" >&5
11250 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11254 ac_save_LIBS
="$LIBS"
11256 cat > conftest.
$ac_ext <<EOF
11257 #line 11258 "configure"
11258 #include "confdefs.h"
11259 /* Override any gcc2 internal prototype to avoid an error. */
11260 /* We use char because int might match the return type of a gcc2
11261 builtin and then its argument prototype would still apply. */
11262 char pam_get_data();
11268 if { (eval echo configure
:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11270 eval "ac_cv_lib_$ac_lib_var=yes"
11272 echo "configure: failed program was:" >&5
11273 cat conftest.
$ac_ext >&5
11275 eval "ac_cv_lib_$ac_lib_var=no"
11278 LIBS
="$ac_save_LIBS"
11281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11282 echo "$ac_t""yes" 1>&6
11283 cat >> confdefs.h
<<\EOF
11284 #define HAVE_LIBPAM 1
11288 echo "$ac_t""no" 1>&6
11292 #################################################
11293 # check for pam_smbpass support
11294 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11295 echo "configure:11296: checking whether to use pam_smbpass" >&5
11296 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11297 if test "${with_pam_smbpass+set}" = set; then
11298 withval
="$with_pam_smbpass"
11301 echo "$ac_t""yes" 1>&6
11303 # Conditions under which pam_smbpass should not be built.
11305 if test x
$PICFLAG = x
; then
11306 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11308 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11309 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11312 cat >> confdefs.h
<<\EOF
11313 #define WITH_PAM_SMBPASS 1
11316 PAM_MOD
="bin/pam_smbpass.so"
11320 echo "$ac_t""no" 1>&6
11324 echo "$ac_t""no" 1>&6
11330 ###############################################
11331 # test for where we get crypt() from, but only
11333 if test $with_pam_for_crypt = no
; then
11334 for ac_func
in crypt
11336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11337 echo "configure:11338: checking for $ac_func" >&5
11338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11341 cat > conftest.
$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11344 /* System header to define __stub macros and hopefully few prototypes,
11345 which can conflict with char $ac_func(); below. */
11346 #include <assert.h>
11347 /* Override any gcc2 internal prototype to avoid an error. */
11348 /* We use char because int might match the return type of a gcc2
11349 builtin and then its argument prototype would still apply. */
11354 /* The GNU C library defines this for functions which it implements
11355 to always fail with ENOSYS. Some functions are actually named
11356 something starting with __ and the normal name is an alias. */
11357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11365 if { (eval echo configure
:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11367 eval "ac_cv_func_$ac_func=yes"
11369 echo "configure: failed program was:" >&5
11370 cat conftest.
$ac_ext >&5
11372 eval "ac_cv_func_$ac_func=no"
11377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11378 echo "$ac_t""yes" 1>&6
11379 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11380 cat >> confdefs.h
<<EOF
11381 #define $ac_tr_func 1
11385 echo "$ac_t""no" 1>&6
11389 if test x
"$ac_cv_func_crypt" = x
"no"; then
11390 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11391 echo "configure:11392: checking for crypt in -lcrypt" >&5
11392 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11394 echo $ac_n "(cached) $ac_c" 1>&6
11396 ac_save_LIBS
="$LIBS"
11397 LIBS
="-lcrypt $LIBS"
11398 cat > conftest.
$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11401 /* Override any gcc2 internal prototype to avoid an error. */
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11410 if { (eval echo configure
:11411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11412 eval "ac_cv_lib_$ac_lib_var=yes"
11414 echo "configure: failed program was:" >&5
11415 cat conftest.
$ac_ext >&5
11417 eval "ac_cv_lib_$ac_lib_var=no"
11420 LIBS
="$ac_save_LIBS"
11423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11424 echo "$ac_t""yes" 1>&6
11425 LIBS
="$LIBS -lcrypt";
11426 cat >> confdefs.h
<<\EOF
11427 #define HAVE_CRYPT 1
11431 echo "$ac_t""no" 1>&6
11438 ## moved after the check for -lcrypt in order to
11439 ## ensure that the necessary libraries are included
11440 ## check checking for truncated salt. Wrapped by the
11441 ## $with_pam_for_crypt variable as above --jerry
11443 if test $with_pam_for_crypt = no
; then
11444 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11445 echo "configure:11446: checking for a crypt that needs truncated salt" >&5
11446 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
11450 if test "$cross_compiling" = yes; then
11451 samba_cv_HAVE_TRUNCATED_SALT
=cross
11453 cat > conftest.
$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 #include "${srcdir-.}/tests/crypttest.c"
11458 if { (eval echo configure
:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11460 samba_cv_HAVE_TRUNCATED_SALT
=no
11462 echo "configure: failed program was:" >&5
11463 cat conftest.
$ac_ext >&5
11465 samba_cv_HAVE_TRUNCATED_SALT
=yes
11472 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11473 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11474 cat >> confdefs.h
<<\EOF
11475 #define HAVE_TRUNCATED_SALT 1
11482 ########################################################################################
11484 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11486 ########################################################################################
11488 ## set the with_smbpasswd_sam as the default
11489 with_smbpasswd_sam
=yes
11493 #################################################
11494 # check for a TDB password database
11495 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11496 echo "configure:11497: checking whether to use TDB SAM database" >&5
11497 # Check whether --with-tdbsam or --without-tdbsam was given.
11498 if test "${with_tdbsam+set}" = set; then
11499 withval
="$with_tdbsam"
11502 echo "$ac_t""yes" 1>&6
11503 cat >> confdefs.h
<<\EOF
11504 #define WITH_TDB_SAM 1
11507 with_smbpasswd_sam
=no
11510 echo "$ac_t""no" 1>&6
11514 echo "$ac_t""no" 1>&6
11519 #################################################
11520 # check for a LDAP password database
11521 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11522 echo "configure:11523: checking whether to use LDAP SAM database" >&5
11523 # Check whether --with-ldapsam or --without-ldapsam was given.
11524 if test "${with_ldapsam+set}" = set; then
11525 withval
="$with_ldapsam"
11528 echo "$ac_t""yes" 1>&6
11529 cat >> confdefs.h
<<\EOF
11530 #define WITH_LDAP_SAM 1
11533 LIBS
="-lldap -llber -lresolv $LIBS"
11534 with_smbpasswd_sam
=no
11537 echo "$ac_t""no" 1>&6
11541 echo "$ac_t""no" 1>&6
11546 #################################################
11547 # check for a NISPLUS password database
11548 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11549 echo "configure:11550: checking whether to use NISPLUS SAM database" >&5
11550 # Check whether --with-nisplussam or --without-nisplussam was given.
11551 if test "${with_nisplussam+set}" = set; then
11552 withval
="$with_nisplussam"
11555 echo "$ac_t""yes" 1>&6
11556 cat >> confdefs.h
<<\EOF
11557 #define WITH_NISPLUS_SAM 1
11560 with_smbpasswd_sam
=no
11563 echo "$ac_t""no" 1>&6
11567 echo "$ac_t""no" 1>&6
11572 ################################################
11573 # This test should come last because the
11574 # smbpasswd SAM is only used if another format
11575 # has not been defined
11576 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11577 echo "configure:11578: checking whether to use traditional smbpasswd file" >&5
11578 if test $with_smbpasswd_sam = yes; then
11579 echo "$ac_t""yes" 1>&6
11580 cat >> confdefs.h
<<\EOF
11581 #define WITH_SMBPASSWD_SAM 1
11586 echo "$ac_t""no" 1>&6
11587 PDBEDIT
=bin
/pdbedit
11590 ########################################################################################
11592 ## END OF TESTS FOR SAM BACKENDS.
11594 ########################################################################################
11596 #################################################
11597 # check for a NISPLUS_HOME support
11598 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11599 echo "configure:11600: checking whether to use NISPLUS_HOME" >&5
11600 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11601 if test "${with_nisplus_home+set}" = set; then
11602 withval
="$with_nisplus_home"
11605 echo "$ac_t""yes" 1>&6
11606 cat >> confdefs.h
<<\EOF
11607 #define WITH_NISPLUS_HOME 1
11612 echo "$ac_t""no" 1>&6
11616 echo "$ac_t""no" 1>&6
11621 #################################################
11622 # check for the secure socket layer
11623 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11624 echo "configure:11625: checking whether to use SSL" >&5
11625 # Check whether --with-ssl or --without-ssl was given.
11626 if test "${with_ssl+set}" = set; then
11627 withval
="$with_ssl"
11630 echo "$ac_t""yes" 1>&6
11631 cat >> confdefs.h
<<\EOF
11635 withval
="/usr/local/ssl" # default
11637 if test "${with_sslinc+set}" = set; then
11639 withval
="$with_sslinc"
11642 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11643 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11646 CFLAGS
="-I${withval} $CFLAGS"
11652 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11656 if test "${with_ssllib+set}" = set; then
11658 withval
="$with_ssllib"
11661 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11662 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11665 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11671 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11675 LIBS
="-lssl -lcrypto $LIBS"
11677 # if test ! -d ${withval}; then
11678 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11682 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11686 echo "$ac_t""no" 1>&6
11690 echo "$ac_t""no" 1>&6
11695 #################################################
11696 # check for syslog logging
11697 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11698 echo "configure:11699: checking whether to use syslog logging" >&5
11699 # Check whether --with-syslog or --without-syslog was given.
11700 if test "${with_syslog+set}" = set; then
11701 withval
="$with_syslog"
11704 echo "$ac_t""yes" 1>&6
11705 cat >> confdefs.h
<<\EOF
11706 #define WITH_SYSLOG 1
11711 echo "$ac_t""no" 1>&6
11715 echo "$ac_t""no" 1>&6
11720 #################################################
11721 # check for a shared memory profiling support
11722 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11723 echo "configure:11724: checking whether to use profiling" >&5
11724 # Check whether --with-profiling-data or --without-profiling-data was given.
11725 if test "${with_profiling_data+set}" = set; then
11726 withval
="$with_profiling_data"
11729 echo "$ac_t""yes" 1>&6
11730 cat >> confdefs.h
<<\EOF
11731 #define WITH_PROFILE 1
11736 echo "$ac_t""no" 1>&6
11740 echo "$ac_t""no" 1>&6
11746 #################################################
11747 # check for experimental disk-quotas support
11748 QUOTAOBJS
=smbd
/noquotas.o
11750 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11751 echo "configure:11752: checking whether to support disk-quotas" >&5
11752 # Check whether --with-quotas or --without-quotas was given.
11753 if test "${with_quotas+set}" = set; then
11754 withval
="$with_quotas"
11757 echo "$ac_t""yes" 1>&6
11758 QUOTAOBJS
=smbd
/quotas.o
11761 # Check for kernel 2.4.x quota braindamage...
11762 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11763 echo "configure:11764: checking for linux 2.4.x quota braindamage.." >&5
11764 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11765 echo $ac_n "(cached) $ac_c" 1>&6
11768 cat > conftest.
$ac_ext <<EOF
11769 #line 11770 "configure"
11770 #include "confdefs.h"
11772 #include <sys/types.h>
11773 #include <asm/types.h>
11774 #include <linux/quota.h>
11775 #include <mntent.h>
11776 #include <linux/unistd.h>
11778 struct mem_dqblk D;
11781 if { (eval echo configure
:11782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11783 samba_cv_linux_2_4_quota_braindamage
=yes
11785 echo "configure: failed program was:" >&5
11786 cat conftest.
$ac_ext >&5
11788 samba_cv_linux_2_4_quota_braindamage
=no
11793 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11794 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
11795 cat >> confdefs.h
<<\EOF
11796 #define LINUX_QUOTAS_2 1
11800 cat >> confdefs.h
<<\EOF
11801 #define LINUX_QUOTAS_1 1
11811 echo "$ac_t""no" 1>&6
11815 echo "$ac_t""no" 1>&6
11821 #################################################
11822 # check for experimental utmp accounting
11824 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11825 echo "configure:11826: checking whether to support utmp accounting" >&5
11826 # Check whether --with-utmp or --without-utmp was given.
11827 if test "${with_utmp+set}" = set; then
11828 withval
="$with_utmp"
11831 echo "$ac_t""yes" 1>&6
11832 cat >> confdefs.h
<<\EOF
11833 #define WITH_UTMP 1
11838 echo "$ac_t""no" 1>&6
11842 echo "$ac_t""no" 1>&6
11847 #################################################
11848 # check for MS Dfs support
11850 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11851 echo "configure:11852: checking whether to support Microsoft Dfs" >&5
11852 # Check whether --with-msdfs or --without-msdfs was given.
11853 if test "${with_msdfs+set}" = set; then
11854 withval
="$with_msdfs"
11857 echo "$ac_t""yes" 1>&6
11858 cat >> confdefs.h
<<\EOF
11859 #define WITH_MSDFS 1
11864 echo "$ac_t""no" 1>&6
11868 echo "$ac_t""no" 1>&6
11873 #################################################
11874 # check for Samba VFS support
11876 echo $ac_n "checking whether to support the experimental Samba vfs""... $ac_c" 1>&6
11877 echo "configure:11878: checking whether to support the experimental Samba vfs" >&5
11878 # Check whether --with-vfs or --without-vfs was given.
11879 if test "${with_vfs+set}" = set; then
11880 withval
="$with_vfs"
11883 echo "$ac_t""yes" 1>&6
11884 cat >> confdefs.h
<<\EOF
11890 echo "$ac_t""no" 1>&6
11894 echo "$ac_t""no" 1>&6
11900 #################################################
11901 # should we build libsmbclient?
11903 LIBSMBCLIENT_SHARED
=
11905 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
11906 echo "configure:11907: checking whether to build the libsmbclient shared library" >&5
11907 # Check whether --with-libsmbclient or --without-libsmbclient was given.
11908 if test "${with_libsmbclient+set}" = set; then
11909 withval
="$with_libsmbclient"
11912 if test $BLDSHARED = true
; then
11913 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
11914 LIBSMBCLIENT
=libsmbclient
11915 echo "$ac_t""yes" 1>&6
11917 echo "$ac_t""no shared library support" 1>&6
11921 echo "$ac_t""no" 1>&6
11925 echo "$ac_t""no" 1>&6
11930 #################################################
11931 # these tests are taken from the GNU fileutils package
11932 echo "checking how to get filesystem space usage" 1>&6
11933 echo "configure:11934: checking how to get filesystem space usage" >&5
11936 # Test for statvfs64.
11937 if test $space = no
; then
11939 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11940 echo "configure:11941: checking statvfs64 function (SVR4)" >&5
11941 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11942 echo $ac_n "(cached) $ac_c" 1>&6
11944 if test "$cross_compiling" = yes; then
11945 fu_cv_sys_stat_statvfs64
=cross
11947 cat > conftest.
$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11951 #if defined(HAVE_UNISTD_H)
11952 #include <unistd.h>
11954 #include <sys/types.h>
11955 #include <sys/statvfs.h>
11958 struct statvfs64 fsd;
11959 exit (statvfs64 (".", &fsd));
11962 if { (eval echo configure
:11963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11964 fu_cv_sys_stat_statvfs64
=yes
11966 echo "configure: failed program was:" >&5
11967 cat conftest.
$ac_ext >&5
11969 fu_cv_sys_stat_statvfs64
=no
11976 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11977 if test $fu_cv_sys_stat_statvfs64 = yes; then
11979 cat >> confdefs.h
<<\EOF
11980 #define STAT_STATVFS64 1
11986 # Perform only the link test since it seems there are no variants of the
11987 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11988 # because that got a false positive on SCO OSR5. Adding the declaration
11989 # of a `struct statvfs' causes this test to fail (as it should) on such
11990 # systems. That system is reported to work fine with STAT_STATFS4 which
11991 # is what it gets when this test fails.
11992 if test $space = no
; then
11994 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11995 echo "configure:11996: checking statvfs function (SVR4)" >&5
11996 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11999 cat > conftest.
$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 #include <sys/types.h>
12003 #include <sys/statvfs.h>
12005 struct statvfs fsd; statvfs (0, &fsd);
12008 if { (eval echo configure
:12009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12010 fu_cv_sys_stat_statvfs
=yes
12012 echo "configure: failed program was:" >&5
12013 cat conftest.
$ac_ext >&5
12015 fu_cv_sys_stat_statvfs
=no
12020 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12021 if test $fu_cv_sys_stat_statvfs = yes; then
12023 cat >> confdefs.h
<<\EOF
12024 #define STAT_STATVFS 1
12030 if test $space = no
; then
12031 # DEC Alpha running OSF/1
12032 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12033 echo "configure:12034: checking for 3-argument statfs function (DEC OSF/1)" >&5
12034 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12035 echo $ac_n "(cached) $ac_c" 1>&6
12037 if test "$cross_compiling" = yes; then
12038 fu_cv_sys_stat_statfs3_osf1
=no
12040 cat > conftest.
$ac_ext <<EOF
12041 #line 12042 "configure"
12042 #include "confdefs.h"
12044 #include <sys/param.h>
12045 #include <sys/types.h>
12046 #include <sys/mount.h>
12051 exit (statfs (".", &fsd, sizeof (struct statfs)));
12054 if { (eval echo configure
:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12056 fu_cv_sys_stat_statfs3_osf1
=yes
12058 echo "configure: failed program was:" >&5
12059 cat conftest.
$ac_ext >&5
12061 fu_cv_sys_stat_statfs3_osf1
=no
12068 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12069 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12071 cat >> confdefs.h
<<\EOF
12072 #define STAT_STATFS3_OSF1 1
12078 if test $space = no
; then
12080 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12081 echo "configure:12082: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12082 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12083 echo $ac_n "(cached) $ac_c" 1>&6
12085 if test "$cross_compiling" = yes; then
12086 fu_cv_sys_stat_statfs2_bsize
=no
12088 cat > conftest.
$ac_ext <<EOF
12089 #line 12090 "configure"
12090 #include "confdefs.h"
12092 #ifdef HAVE_SYS_PARAM_H
12093 #include <sys/param.h>
12095 #ifdef HAVE_SYS_MOUNT_H
12096 #include <sys/mount.h>
12098 #ifdef HAVE_SYS_VFS_H
12099 #include <sys/vfs.h>
12105 exit (statfs (".", &fsd));
12108 if { (eval echo configure
:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12110 fu_cv_sys_stat_statfs2_bsize
=yes
12112 echo "configure: failed program was:" >&5
12113 cat conftest.
$ac_ext >&5
12115 fu_cv_sys_stat_statfs2_bsize
=no
12122 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12123 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12125 cat >> confdefs.h
<<\EOF
12126 #define STAT_STATFS2_BSIZE 1
12132 if test $space = no
; then
12134 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12135 echo "configure:12136: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12136 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12137 echo $ac_n "(cached) $ac_c" 1>&6
12139 if test "$cross_compiling" = yes; then
12140 fu_cv_sys_stat_statfs4
=no
12142 cat > conftest.
$ac_ext <<EOF
12143 #line 12144 "configure"
12144 #include "confdefs.h"
12145 #include <sys/types.h>
12146 #include <sys/statfs.h>
12150 exit (statfs (".", &fsd, sizeof fsd, 0));
12153 if { (eval echo configure
:12154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12155 fu_cv_sys_stat_statfs4
=yes
12157 echo "configure: failed program was:" >&5
12158 cat conftest.
$ac_ext >&5
12160 fu_cv_sys_stat_statfs4
=no
12167 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12168 if test $fu_cv_sys_stat_statfs4 = yes; then
12170 cat >> confdefs.h
<<\EOF
12171 #define STAT_STATFS4 1
12177 if test $space = no
; then
12178 # 4.4BSD and NetBSD
12179 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12180 echo "configure:12181: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12181 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12182 echo $ac_n "(cached) $ac_c" 1>&6
12184 if test "$cross_compiling" = yes; then
12185 fu_cv_sys_stat_statfs2_fsize
=no
12187 cat > conftest.
$ac_ext <<EOF
12188 #line 12189 "configure"
12189 #include "confdefs.h"
12190 #include <sys/types.h>
12191 #ifdef HAVE_SYS_PARAM_H
12192 #include <sys/param.h>
12194 #ifdef HAVE_SYS_MOUNT_H
12195 #include <sys/mount.h>
12201 exit (statfs (".", &fsd));
12204 if { (eval echo configure
:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12206 fu_cv_sys_stat_statfs2_fsize
=yes
12208 echo "configure: failed program was:" >&5
12209 cat conftest.
$ac_ext >&5
12211 fu_cv_sys_stat_statfs2_fsize
=no
12218 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12219 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12221 cat >> confdefs.h
<<\EOF
12222 #define STAT_STATFS2_FSIZE 1
12228 if test $space = no
; then
12230 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12231 echo "configure:12232: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12232 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12233 echo $ac_n "(cached) $ac_c" 1>&6
12235 if test "$cross_compiling" = yes; then
12236 fu_cv_sys_stat_fs_data
=no
12238 cat > conftest.
$ac_ext <<EOF
12239 #line 12240 "configure"
12240 #include "confdefs.h"
12241 #include <sys/types.h>
12242 #ifdef HAVE_SYS_PARAM_H
12243 #include <sys/param.h>
12245 #ifdef HAVE_SYS_MOUNT_H
12246 #include <sys/mount.h>
12248 #ifdef HAVE_SYS_FS_TYPES_H
12249 #include <sys/fs_types.h>
12253 struct fs_data fsd;
12254 /* Ultrix's statfs returns 1 for success,
12255 0 for not mounted, -1 for failure. */
12256 exit (statfs (".", &fsd) != 1);
12259 if { (eval echo configure
:12260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12261 fu_cv_sys_stat_fs_data
=yes
12263 echo "configure: failed program was:" >&5
12264 cat conftest.
$ac_ext >&5
12266 fu_cv_sys_stat_fs_data
=no
12273 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12274 if test $fu_cv_sys_stat_fs_data = yes; then
12276 cat >> confdefs.h
<<\EOF
12277 #define STAT_STATFS2_FS_DATA 1
12284 # As a gating factor for large file support, in order to
12285 # use <4GB files we must have the following minimal support
12287 # long long, and a 64 bit off_t or off64_t.
12288 # If we don't have all of these then disable large
12291 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12292 echo "configure:12293: checking checking if large file support can be enabled" >&5
12293 cat > conftest.
$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12297 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12298 #include <sys/types.h>
12307 if { (eval echo configure
:12308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12309 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12311 echo "configure: failed program was:" >&5
12312 cat conftest.
$ac_ext >&5
12314 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12317 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12318 echo "$ac_t""yes" 1>&6
12319 cat >> confdefs.h
<<\EOF
12320 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12324 echo "$ac_t""no" 1>&6
12327 # Check whether --with-spinlocks or --without-spinlocks was given.
12328 if test "${with_spinlocks+set}" = set; then
12329 withval
="$with_spinlocks"
12333 if test "x$with_spinlocks" = "xyes"; then
12334 cat >> confdefs.h
<<\EOF
12335 #define USE_SPINLOCKS 1
12339 case "$host_cpu" in
12341 cat >> confdefs.h
<<\EOF
12342 #define SPARC_SPINLOCKS 1
12347 i386|i486|i586|i686
)
12348 cat >> confdefs.h
<<\EOF
12349 #define INTEL_SPINLOCKS 1
12355 cat >> confdefs.h
<<\EOF
12356 #define MIPS_SPINLOCKS 1
12362 cat >> confdefs.h
<<\EOF
12363 #define POWERPC_SPINLOCKS 1
12370 #################################################
12371 # check for ACL support
12373 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12374 echo "configure:12375: checking whether to support ACLs" >&5
12375 # Check whether --with-acl-support or --without-acl-support was given.
12376 if test "${with_acl_support+set}" = set; then
12377 withval
="$with_acl_support"
12383 echo "$ac_t""Using UnixWare ACLs" 1>&6
12384 cat >> confdefs.h
<<\EOF
12385 #define HAVE_UNIXWARE_ACLS 1
12390 echo "$ac_t""Using solaris ACLs" 1>&6
12391 cat >> confdefs.h
<<\EOF
12392 #define HAVE_SOLARIS_ACLS 1
12397 echo "$ac_t""Using IRIX ACLs" 1>&6
12398 cat >> confdefs.h
<<\EOF
12399 #define HAVE_IRIX_ACLS 1
12404 echo "$ac_t""Using AIX ACLs" 1>&6
12405 cat >> confdefs.h
<<\EOF
12406 #define HAVE_AIX_ACLS 1
12411 echo "$ac_t""Using Tru64 ACLs" 1>&6
12412 cat >> confdefs.h
<<\EOF
12413 #define HAVE_TRU64_ACLS 1
12416 LIBS
="$LIBS -lpacl"
12419 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12420 echo "configure:12421: checking for acl_get_file in -lacl" >&5
12421 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12425 ac_save_LIBS
="$LIBS"
12427 cat > conftest.
$ac_ext <<EOF
12428 #line 12429 "configure"
12429 #include "confdefs.h"
12430 /* Override any gcc2 internal prototype to avoid an error. */
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433 char acl_get_file();
12439 if { (eval echo configure
:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12441 eval "ac_cv_lib_$ac_lib_var=yes"
12443 echo "configure: failed program was:" >&5
12444 cat conftest.
$ac_ext >&5
12446 eval "ac_cv_lib_$ac_lib_var=no"
12449 LIBS
="$ac_save_LIBS"
12452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12453 echo "$ac_t""yes" 1>&6
12454 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12456 cat >> confdefs.h
<<EOF
12457 #define $ac_tr_lib 1
12463 echo "$ac_t""no" 1>&6
12466 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12467 echo "configure:12468: checking for ACL support" >&5
12468 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12469 echo $ac_n "(cached) $ac_c" 1>&6
12472 cat > conftest.
$ac_ext <<EOF
12473 #line 12474 "configure"
12474 #include "confdefs.h"
12475 #include <sys/types.h>
12476 #include <sys/acl.h>
12478 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12481 if { (eval echo configure
:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12483 samba_cv_HAVE_POSIX_ACLS
=yes
12485 echo "configure: failed program was:" >&5
12486 cat conftest.
$ac_ext >&5
12488 samba_cv_HAVE_POSIX_ACLS
=no
12493 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12494 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12495 echo "$ac_t""Using posix ACLs" 1>&6
12496 cat >> confdefs.h
<<\EOF
12497 #define HAVE_POSIX_ACLS 1
12500 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12501 echo "configure:12502: checking for acl_get_perm_np" >&5
12502 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12506 cat > conftest.
$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 #include <sys/types.h>
12510 #include <sys/acl.h>
12512 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12515 if { (eval echo configure
:12516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12517 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12519 echo "configure: failed program was:" >&5
12520 cat conftest.
$ac_ext >&5
12522 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12527 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12528 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12529 cat >> confdefs.h
<<\EOF
12530 #define HAVE_ACL_GET_PERM_NP 1
12539 echo "$ac_t""no" 1>&6
12540 cat >> confdefs.h
<<\EOF
12541 #define HAVE_NO_ACLS 1
12547 cat >> confdefs.h
<<\EOF
12548 #define HAVE_NO_ACLS 1
12551 echo "$ac_t""no" 1>&6
12556 #################################################
12557 # check for the historical SAMBA installation
12559 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
12560 # Put all binaries under the /usr/local/samba/bin directory.
12564 #################################################
12565 # Check whether winbind is supported on this platform. If so we need to
12566 # build and install client programs (WINBIND_TARGETS), sbin programs
12567 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12569 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12570 echo "configure:12571: checking whether to build winbind" >&5
12572 # Initially, the value of $host_os decides whether winbind is supported
12580 winbind_no_reason
=", unsupported on $host_os"
12584 # Check the setting of --with-winbindd
12586 # Check whether --with-winbind or --without-winbind was given.
12587 if test "${with_winbind+set}" = set; then
12588 withval
="$with_winbind"
12602 # We need unix domain sockets for winbind
12604 if test x
"$HAVE_WINBIND" = x
"yes"; then
12605 if test x
"$samba_cv_unixsocket" = x
"no"; then
12606 winbind_no_reason
=", no unix domain socket support on $host_os"
12611 # Display test results
12613 if test x
"$HAVE_WINBIND" = x
"yes"; then
12615 echo "$ac_t""yes" 1>&6
12617 WINBIND_TARGETS
="bin/wbinfo"
12618 WINBIND_STARGETS
="bin/winbindd"
12619 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
12621 case "$with_pam" in
12623 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
12627 echo "$ac_t""no$winbind_no_reason" 1>&6
12630 WINBIND_STARGETS
=""
12631 WINBIND_LTARGETS
=""
12632 WINBIND_PAM_TARGETS
=""
12635 # Substitution time!
12642 #################################################
12643 # final configure stuff
12644 echo "checking configure summary"
12645 if test "$cross_compiling" = yes; then
12648 cat > conftest.
$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12651 #include "${srcdir-.}/tests/summary.c"
12653 if { (eval echo configure
:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12655 echo "configure OK";
12657 echo "configure: failed program was:" >&5
12658 cat conftest.
$ac_ext >&5
12660 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12670 cat > confcache
<<\EOF
12671 # This file is a shell script that caches the results of configure
12672 # tests run on this system so they can be shared between configure
12673 # scripts and configure runs. It is not useful on other systems.
12674 # If it contains results you don't want to keep, you may remove or edit it.
12676 # By default, configure uses ./config.cache as the cache file,
12677 # creating it if it does not exist already. You can give configure
12678 # the --cache-file=FILE option to use a different cache file; that is
12679 # what configure does when it calls configure scripts in
12680 # subdirectories, so they share the cache.
12681 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12682 # config.status only pays attention to the cache file if you give it the
12683 # --recheck option to rerun configure.
12686 # The following way of writing the cache mishandles newlines in values,
12687 # but we know of no workaround that is simple, portable, and efficient.
12688 # So, don't put newlines in cache variables' values.
12689 # Ultrix sh set writes to stderr and can't be redirected directly,
12690 # and sets the high bit in the cache file unless we assign to the vars.
12692 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12694 # `set' does not quote correctly, so add quotes (double-quote substitution
12695 # turns \\\\ into \\, and sed turns \\ into \).
12697 -e "s/'/'\\\\''/g" \
12698 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12701 # `set' quotes correctly as required by POSIX, so do not add quotes.
12702 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12705 if cmp -s $cache_file confcache
; then
12708 if test -w $cache_file; then
12709 echo "updating cache $cache_file"
12710 cat confcache
> $cache_file
12712 echo "not updating unwritable cache $cache_file"
12717 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12719 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12720 # Let make expand exec_prefix.
12721 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12723 # Any assignment to VPATH causes Sun make to only execute
12724 # the first set of double-colon rules, so remove it if not needed.
12725 # If there is a colon in the path, we need to keep it.
12726 if test "x$srcdir" = x.
; then
12727 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12730 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12732 DEFS
=-DHAVE_CONFIG_H
12734 # Without the "./", some shells look in PATH for config.status.
12735 : ${CONFIG_STATUS=./config.status}
12737 echo creating
$CONFIG_STATUS
12738 rm -f $CONFIG_STATUS
12739 cat > $CONFIG_STATUS <<EOF
12741 # Generated automatically by configure.
12742 # Run this file to recreate the current configuration.
12743 # This directory was configured as follows,
12744 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12746 # $0 $ac_configure_args
12748 # Compiler output produced by configure, useful for debugging
12749 # configure, is in ./config.log if it exists.
12751 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12754 case "\$ac_option" in
12755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12756 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12757 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12758 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12759 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12761 -help | --help | --hel | --he | --h)
12762 echo "\$ac_cs_usage"; exit 0 ;;
12763 *) echo "\$ac_cs_usage"; exit 1 ;;
12767 ac_given_srcdir=$srcdir
12768 ac_given_INSTALL="$INSTALL"
12770 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12772 cat >> $CONFIG_STATUS <<EOF
12774 # Protect against being on the right side of a sed subst in config.status.
12775 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12776 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12780 s%@CFLAGS@%$CFLAGS%g
12781 s%@CPPFLAGS@%$CPPFLAGS%g
12782 s%@CXXFLAGS@%$CXXFLAGS%g
12783 s%@FFLAGS@%$FFLAGS%g
12785 s%@LDFLAGS@%$LDFLAGS%g
12787 s%@exec_prefix@%$exec_prefix%g
12788 s%@prefix@%$prefix%g
12789 s%@program_transform_name@%$program_transform_name%g
12790 s%@bindir@%$bindir%g
12791 s%@sbindir@%$sbindir%g
12792 s%@libexecdir@%$libexecdir%g
12793 s%@datadir@%$datadir%g
12794 s%@sysconfdir@%$sysconfdir%g
12795 s%@sharedstatedir@%$sharedstatedir%g
12796 s%@localstatedir@%$localstatedir%g
12797 s%@libdir@%$libdir%g
12798 s%@includedir@%$includedir%g
12799 s%@oldincludedir@%$oldincludedir%g
12800 s%@infodir@%$infodir%g
12801 s%@mandir@%$mandir%g
12802 s%@codepagedir@%$codepagedir%g
12803 s%@configdir@%$configdir%g
12804 s%@lockdir@%$lockdir%g
12805 s%@logfilebase@%$logfilebase%g
12806 s%@privatedir@%$privatedir%g
12807 s%@swatdir@%$swatdir%g
12808 s%@RUNPROG@%$RUNPROG%g
12809 s%@MPROGS@%$MPROGS%g
12810 s%@LDSHFLAGS@%$LDSHFLAGS%g
12812 s%@HOST_OS@%$HOST_OS%g
12813 s%@PAM_MOD@%$PAM_MOD%g
12814 s%@PDBEDIT@%$PDBEDIT%g
12816 s%@WRAP32@%$WRAP32%g
12817 s%@PICFLAG@%$PICFLAG%g
12818 s%@PICSUFFIX@%$PICSUFFIX%g
12819 s%@SHLIBEXT@%$SHLIBEXT%g
12820 s%@BLDSHARED@%$BLDSHARED%g
12821 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
12822 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
12824 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12825 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12826 s%@INSTALL_DATA@%$INSTALL_DATA%g
12828 s%@BROKEN_CC@%$BROKEN_CC%g
12830 s%@host_alias@%$host_alias%g
12831 s%@host_cpu@%$host_cpu%g
12832 s%@host_vendor@%$host_vendor%g
12833 s%@host_os@%$host_os%g
12834 s%@target@%$target%g
12835 s%@target_alias@%$target_alias%g
12836 s%@target_cpu@%$target_cpu%g
12837 s%@target_vendor@%$target_vendor%g
12838 s%@target_os@%$target_os%g
12840 s%@build_alias@%$build_alias%g
12841 s%@build_cpu@%$build_cpu%g
12842 s%@build_vendor@%$build_vendor%g
12843 s%@build_os@%$build_os%g
12845 s%@LIBOBJS@%$LIBOBJS%g
12846 s%@TERMLIBS@%$TERMLIBS%g
12847 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12849 s%@QUOTAOBJS@%$QUOTAOBJS%g
12850 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12851 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12852 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12853 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
12854 s%@builddir@%$builddir%g
12859 cat >> $CONFIG_STATUS <<\EOF
12861 # Split the substitutions into bite-sized pieces for seds with
12862 # small command number limits, like on Digital OSF/1 and HP-UX.
12863 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12864 ac_file
=1 # Number of current file.
12865 ac_beg
=1 # First line for current file.
12866 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12869 while $ac_more_lines; do
12870 if test $ac_beg -gt 1; then
12871 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12873 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12875 if test ! -s conftest.s
$ac_file; then
12876 ac_more_lines
=false
12877 rm -f conftest.s
$ac_file
12879 if test -z "$ac_sed_cmds"; then
12880 ac_sed_cmds
="sed -f conftest.s$ac_file"
12882 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12884 ac_file
=`expr $ac_file + 1`
12886 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12889 if test -z "$ac_sed_cmds"; then
12894 cat >> $CONFIG_STATUS <<EOF
12896 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12898 cat >> $CONFIG_STATUS <<\EOF
12899 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12902 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12903 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12904 *) ac_file_in
="${ac_file}.in" ;;
12907 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12909 # Remove last slash and all that follows it. Not all systems have dirname.
12910 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12911 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12912 # The file is in a subdirectory.
12913 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12914 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12915 # A "../" for each directory in $ac_dir_suffix.
12916 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12918 ac_dir_suffix
= ac_dots
=
12921 case "$ac_given_srcdir" in
12923 if test -z "$ac_dots"; then top_srcdir
=.
12924 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12925 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12926 *) # Relative path.
12927 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12928 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12931 case "$ac_given_INSTALL" in
12932 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12933 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12936 echo creating
"$ac_file"
12938 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12940 *Makefile
*) ac_comsub
="1i\\
12941 # $configure_input" ;;
12945 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12947 s%@configure_input@%$configure_input%g
12948 s%@srcdir@%$srcdir%g
12949 s%@top_srcdir@%$top_srcdir%g
12950 s%@INSTALL@%$INSTALL%g
12951 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12955 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12956 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12958 # ac_d sets the value in "#define NAME VALUE" lines.
12959 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12960 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12963 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12964 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12965 ac_uB
='\([ ]\)%\1#\2define\3'
12968 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12969 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12970 ac_eB
='$%\1#\2define\3'
12974 if test "${CONFIG_HEADERS+set}" != set; then
12976 cat >> $CONFIG_STATUS <<EOF
12977 CONFIG_HEADERS="include/config.h"
12979 cat >> $CONFIG_STATUS <<\EOF
12981 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12984 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12985 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12986 *) ac_file_in
="${ac_file}.in" ;;
12989 echo creating
$ac_file
12991 rm -f conftest.frag conftest.
in conftest.out
12992 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12993 cat $ac_file_inputs > conftest.
in
12997 # Transform confdefs.h into a sed script conftest.vals that substitutes
12998 # the proper values into config.h.in to produce config.h. And first:
12999 # Protect against being on the right side of a sed subst in config.status.
13000 # Protect against being in an unquoted here document in config.status.
13001 rm -f conftest.vals
13002 cat > conftest.hdr
<<\EOF
13005 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13009 sed -n -f conftest.hdr confdefs.h > conftest.vals
13012 # This sed command replaces #undef with comments. This is necessary, for
13013 # example, in the case of _POSIX_SOURCE, which is predefined and required
13014 # on some systems where configure will not decide to define it.
13015 cat >> conftest.vals <<\EOF
13016 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13019 # Break up conftest.vals because some shells have a limit on
13020 # the size of here documents, and old seds have small limits too.
13022 rm -f conftest.tail
13025 ac_lines=`grep -c . conftest.vals
`
13026 # grep -c gives empty output for an empty file on some AIX systems.
13027 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13028 # Write a limited-size here document to conftest.frag.
13029 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13030 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13032 sed -f conftest.frag conftest.in > conftest.out
13034 mv conftest.out conftest.in
13035 ' >> $CONFIG_STATUS
13036 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13037 rm -f conftest.vals
13038 mv conftest.tail conftest.vals
13040 rm -f conftest.vals
13042 cat >> $CONFIG_STATUS <<\EOF
13043 rm -f conftest.frag conftest.h
13044 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13045 cat conftest.in >> conftest.h
13047 if cmp -s $ac_file conftest.h 2>/dev/null; then
13048 echo "$ac_file is unchanged"
13051 # Remove last slash and all that follows it. Not all systems have dirname.
13052 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
13053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13054 # The file is in a subdirectory.
13055 test ! -d "$ac_dir" && mkdir "$ac_dir"
13058 mv conftest.h $ac_file
13063 cat >> $CONFIG_STATUS <<EOF
13066 cat >> $CONFIG_STATUS <<\EOF
13070 chmod +x $CONFIG_STATUS
13071 rm -fr confdefs* $ac_clean_files
13072 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1