3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-debug turn on debugging [default=no]"
18 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
20 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
22 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
24 --with-smbwrapper Include SMB wrapper support (default=no) "
26 --with-afs Include AFS support (default=no) "
28 --with-dce-dfs Include DCE/DFS support (default=no)"
30 --with-krb4=base-dir Include Kerberos IV support (default=no)"
32 --with-krb5=base-dir Include Kerberos 5 support (defualt=no)"
34 --with-automount Include AUTOMOUNT support (default=no)"
36 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
38 --with-pam Include PAM password database support (default=no)"
40 --with-pam_smbpass Include the smbpass PAM module (default=no)"
42 --with-tdbsam Include experimental TDB password database (default=no)"
44 --with-ldapsam Include Experimental LDAP-Sam support (default=no)"
46 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
48 --with-ssl Include SSL support (default=no)"
50 --with-syslog Include experimental SYSLOG support (default=no)"
52 --with-profiling-data Include gathering source code profile information (default=no)"
54 --with-quotas Include experimental disk-quota support (default=no)"
56 --with-utmp Include experimental utmp accounting (default=no)"
58 --with-msdfs Include MS Dfs support (default=no)"
60 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
62 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
64 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
66 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
68 --with-acl-support Include ACL support (default=no)"
70 --with-winbind Build winbind (default, if supported by OS)"
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file
=.
/config.cache
85 program_transform_name
=s
,x
,x
,
93 bindir
='${exec_prefix}/bin'
94 sbindir
='${exec_prefix}/sbin'
95 libexecdir
='${exec_prefix}/libexec'
96 datadir
='${prefix}/share'
97 sysconfdir
='${prefix}/etc'
98 sharedstatedir
='${prefix}/com'
99 localstatedir
='${prefix}/var'
100 libdir
='${exec_prefix}/lib'
101 includedir
='${prefix}/include'
102 oldincludedir
='/usr/include'
103 infodir
='${prefix}/info'
104 mandir
='${prefix}/man'
106 # Initialize some other variables.
109 SHELL
=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
125 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 # Accept the important Cygnus configure options, so we can diagnose typos.
133 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
135 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
136 bindir
="$ac_optarg" ;;
138 -build |
--build |
--buil |
--bui |
--bu)
140 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
141 build
="$ac_optarg" ;;
143 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
144 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
145 ac_prev
=cache_file
;;
146 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
147 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
148 cache_file
="$ac_optarg" ;;
150 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
152 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
154 datadir
="$ac_optarg" ;;
156 -disable-* |
--disable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* |
--enable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
179 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
180 |
--exec |
--exe |
--ex)
181 ac_prev
=exec_prefix
;;
182 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
183 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
184 |
--exec=* |
--exe=* |
--ex=*)
185 exec_prefix
="$ac_optarg" ;;
187 -gas |
--gas |
--ga |
--g)
188 # Obsolete; use --with-gas.
191 -help |
--help |
--hel |
--he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
246 -host |
--host |
--hos |
--ho)
248 -host=* |
--host=* |
--hos=* |
--ho=*)
251 -includedir |
--includedir |
--includedi |
--included |
--include \
252 |
--includ |
--inclu |
--incl |
--inc)
253 ac_prev
=includedir
;;
254 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
255 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
256 includedir
="$ac_optarg" ;;
258 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
260 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
261 infodir
="$ac_optarg" ;;
263 -libdir |
--libdir |
--libdi |
--libd)
265 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
266 libdir
="$ac_optarg" ;;
268 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
269 |
--libexe |
--libex |
--libe)
270 ac_prev
=libexecdir
;;
271 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
272 |
--libexe=* |
--libex=* |
--libe=*)
273 libexecdir
="$ac_optarg" ;;
275 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
276 |
--localstate |
--localstat |
--localsta |
--localst \
277 |
--locals |
--local |
--loca |
--loc |
--lo)
278 ac_prev
=localstatedir
;;
279 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
280 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
281 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
282 localstatedir
="$ac_optarg" ;;
284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
287 mandir
="$ac_optarg" ;;
290 # Obsolete; use --without-fp.
293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
303 |
--oldin |
--oldi |
--old |
--ol |
--o)
304 ac_prev
=oldincludedir
;;
305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
308 oldincludedir
="$ac_optarg" ;;
310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
313 prefix
="$ac_optarg" ;;
315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
316 |
--program-pre |
--program-pr |
--program-p)
317 ac_prev
=program_prefix
;;
318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
320 program_prefix
="$ac_optarg" ;;
322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
323 |
--program-suf |
--program-su |
--program-s)
324 ac_prev
=program_suffix
;;
325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
327 program_suffix
="$ac_optarg" ;;
329 -program-transform-name |
--program-transform-name \
330 |
--program-transform-nam |
--program-transform-na \
331 |
--program-transform-n |
--program-transform- \
332 |
--program-transform |
--program-transfor \
333 |
--program-transfo |
--program-transf \
334 |
--program-trans |
--program-tran \
335 |
--progr-tra |
--program-tr |
--program-t)
336 ac_prev
=program_transform_name
;;
337 -program-transform-name=* |
--program-transform-name=* \
338 |
--program-transform-nam=* |
--program-transform-na=* \
339 |
--program-transform-n=* |
--program-transform-=* \
340 |
--program-transform=* |
--program-transfor=* \
341 |
--program-transfo=* |
--program-transf=* \
342 |
--program-trans=* |
--program-tran=* \
343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
344 program_transform_name
="$ac_optarg" ;;
346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
347 |
-silent |
--silent |
--silen |
--sile |
--sil)
350 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
352 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
354 sbindir
="$ac_optarg" ;;
356 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
357 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
358 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
360 ac_prev
=sharedstatedir
;;
361 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
362 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
363 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
365 sharedstatedir
="$ac_optarg" ;;
367 -site |
--site |
--sit)
369 -site=* |
--site=* |
--sit=*)
372 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
374 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
375 srcdir
="$ac_optarg" ;;
377 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
378 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
379 ac_prev
=sysconfdir
;;
380 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
381 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
382 sysconfdir
="$ac_optarg" ;;
384 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
386 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
387 target
="$ac_optarg" ;;
389 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
392 -version |
--version |
--versio |
--versi |
--vers)
393 echo "configure generated by autoconf version 2.13"
397 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package
=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* |
--without-*)
410 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
423 |
--x-incl |
--x-inc |
--x-in |
--x-i)
424 ac_prev
=x_includes
;;
425 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
426 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
427 x_includes
="$ac_optarg" ;;
429 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
430 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
431 ac_prev
=x_libraries
;;
432 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
433 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
434 x_libraries
="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE
; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c) ;;
486 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
487 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
488 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest
* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file
=include
/includes.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted
=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted
=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE
; then
539 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file
in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp
='$CPP $CPPFLAGS'
562 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling
=$ac_cv_prog_cc_cross
568 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
577 ac_n
= ac_c
='\c' ac_t
=
582 # we want to be compatibe with older versions of Samba
600 # compile with optimisation and without debugging by default
601 CFLAGS
="-O ${CFLAGS}"
603 # Check whether --enable-debug or --disable-debug was given.
604 if test "${enable_debug+set}" = set; then
605 enableval
="$enable_debug"
606 if eval "test x$enable_debug = xyes"; then
607 CFLAGS
="${CFLAGS} -g"
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc
; ac_word
=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC
="$CC" # Let the user override the test.
623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
625 for ac_dir
in $ac_dummy; do
626 test -z "$ac_dir" && ac_dir
=.
627 if test -f $ac_dir/$ac_word; then
636 if test -n "$CC"; then
637 echo "$ac_t""$CC" 1>&6
639 echo "$ac_t""no" 1>&6
642 if test -z "$CC"; then
643 # Extract the first word of "cc", so it can be a program name with args.
644 set dummy cc
; ac_word
=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC
="$CC" # Let the user override the test.
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
656 for ac_dir
in $ac_dummy; do
657 test -z "$ac_dir" && ac_dir
=.
658 if test -f $ac_dir/$ac_word; then
659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
668 if test $ac_prog_rejected = yes; then
669 # We found a bogon in the path, so make sure we never use it.
670 set dummy
$ac_cv_prog_CC
672 if test $# -gt 0; then
673 # We chose a different compiler from the bogus one.
674 # However, it has the same basename, so the bogon will be chosen
675 # first if we set CC to just the basename; use the full file name.
677 set dummy
"$ac_dir/$ac_word" "$@"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
694 # Extract the first word of "cl", so it can be a program name with args.
695 set dummy cl
; ac_word
=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$CC"; then
702 ac_cv_prog_CC
="$CC" # Let the user override the test.
704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
706 for ac_dir
in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir
=.
708 if test -f $ac_dir/$ac_word; then
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp
='$CPP $CPPFLAGS'
734 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling
=$ac_cv_prog_cc_cross
738 cat > conftest.
$ac_ext << EOF
740 #line 741 "configure"
741 #include "confdefs.h"
745 if { (eval echo configure
:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
746 ac_cv_prog_cc_works
=yes
747 # If we can't run a trivial program, we are probably using a cross compiler.
748 if (.
/conftest
; exit) 2>/dev
/null
; then
749 ac_cv_prog_cc_cross
=no
751 ac_cv_prog_cc_cross
=yes
754 echo "configure: failed program was:" >&5
755 cat conftest.
$ac_ext >&5
756 ac_cv_prog_cc_works
=no
760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761 ac_cpp
='$CPP $CPPFLAGS'
762 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764 cross_compiling
=$ac_cv_prog_cc_cross
766 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
767 if test $ac_cv_prog_cc_works = no
; then
768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
772 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
773 cross_compiling
=$ac_cv_prog_cc_cross
775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
776 echo "configure:777: checking whether we are using GNU C" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftest.c
<<EOF
785 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
794 if test $ac_cv_prog_gcc = yes; then
800 ac_test_CFLAGS
="${CFLAGS+set}"
801 ac_save_CFLAGS
="$CFLAGS"
803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 echo 'void f(){}' > conftest.c
809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
819 if test "$ac_test_CFLAGS" = set; then
820 CFLAGS
="$ac_save_CFLAGS"
821 elif test $ac_cv_prog_cc_g = yes; then
822 if test "$GCC" = yes; then
828 if test "$GCC" = yes; then
836 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
837 if test -f $ac_dir/install-sh
; then
839 ac_install_sh
="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh
; then
843 ac_install_sh
="$ac_aux_dir/install.sh -c"
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
850 ac_config_guess
=$ac_aux_dir/config.guess
851 ac_config_sub
=$ac_aux_dir/config.sub
852 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
854 # Find a good install program. We prefer a C program (faster),
855 # so one script is as good as another. But avoid the broken or
856 # incompatible versions:
857 # SysV /etc/install, /usr/sbin/install
858 # SunOS /usr/etc/install
861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
864 # ./install, which can be erroneously created by make from ./install.sh.
865 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
866 echo "configure:867: checking for a BSD compatible install" >&5
867 if test -z "$INSTALL"; then
868 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
872 for ac_dir
in $PATH; do
873 # Account for people who put trailing slashes in PATH elements.
875 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
877 # OSF1 and SCO ODT 3.0 have their own names for install.
878 # Don't use installbsd from OSF since it installs stuff as root
880 for ac_prog
in ginstall scoinst
install; do
881 if test -f $ac_dir/$ac_prog; then
882 if test $ac_prog = install &&
883 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
884 # AIX install. It has an incompatible calling convention.
887 ac_cv_path_install
="$ac_dir/$ac_prog -c"
898 if test "${ac_cv_path_install+set}" = set; then
899 INSTALL
="$ac_cv_path_install"
901 # As a last resort, use the slow shell script. We don't cache a
902 # path for INSTALL within a source directory, because that will
903 # break other packages using the cache if that directory is
904 # removed, or if the path is relative.
905 INSTALL
="$ac_install_sh"
908 echo "$ac_t""$INSTALL" 1>&6
910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
911 # It thinks the first close brace ends the variable substitution.
912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
916 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
918 for ac_prog
in mawk gawk nawk
awk
920 # Extract the first word of "$ac_prog", so it can be a program name with args.
921 set dummy
$ac_prog; ac_word
=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 if test -n "$AWK"; then
928 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
930 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
932 for ac_dir
in $ac_dummy; do
933 test -z "$ac_dir" && ac_dir
=.
934 if test -f $ac_dir/$ac_word; then
935 ac_cv_prog_AWK
="$ac_prog"
942 AWK
="$ac_cv_prog_AWK"
943 if test -n "$AWK"; then
944 echo "$ac_t""$AWK" 1>&6
946 echo "$ac_t""no" 1>&6
949 test -n "$AWK" && break
953 if test "x$CC" != xcc
; then
954 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
955 echo "configure:956: checking whether $CC and cc understand -c and -o together" >&5
957 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
958 echo "configure:959: checking whether cc understands -c and -o together" >&5
960 set dummy
$CC; ac_cc
="`echo $2 |
961 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
962 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 echo 'foo(){}' > conftest.c
966 # Make sure it works both with $CC and with simple cc.
967 # We do the test twice because some compilers refuse to overwrite an
968 # existing .o file with -o, though they will create one.
969 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
970 if { (eval echo configure
:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
971 test -f conftest.o
&& { (eval echo configure
:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
973 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
974 if test "x$CC" != xcc
; then
975 # Test first that cc exists at all.
976 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
977 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
978 if { (eval echo configure
:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
979 test -f conftest.o
&& { (eval echo configure
:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
984 # cc exists but doesn't like -o.
985 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
990 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
995 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
996 echo "$ac_t""yes" 1>&6
998 echo "$ac_t""no" 1>&6
999 cat >> confdefs.h
<<\EOF
1000 #define NO_MINUS_C_MINUS_O 1
1005 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1012 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1013 echo "configure:1014: checking that the C compiler understands volatile" >&5
1014 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <sys/types.h>
1026 if { (eval echo configure
:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1028 samba_cv_volatile
=yes
1030 echo "configure: failed program was:" >&5
1031 cat conftest.
$ac_ext >&5
1033 samba_cv_volatile
=no
1038 echo "$ac_t""$samba_cv_volatile" 1>&6
1039 if test x
"$samba_cv_volatile" = x
"yes"; then
1040 cat >> confdefs.h
<<\EOF
1041 #define HAVE_VOLATILE 1
1047 #################################################
1048 # set codepage directory location
1049 # Check whether --with-codepagedir or --without-codepagedir was given.
1050 if test "${with_codepagedir+set}" = set; then
1051 withval
="$with_codepagedir"
1055 # Just in case anybody does it
1057 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1060 codepagedir
="$withval"
1068 # Do some error checking and defaulting for the host and target type.
1070 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1073 # 1. You are not allowed to specify --host, --target, and nonopt at the
1075 # 2. Host defaults to nonopt.
1076 # 3. If nonopt is not specified, then host defaults to the current host,
1077 # as determined by config.guess.
1078 # 4. Target and build default to nonopt.
1079 # 5. If nonopt is not specified, then target and build default to host.
1081 # The aliases save the names the user supplied, while $host etc.
1082 # will get canonicalized.
1083 case $host---$target---$nonopt in
1084 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1085 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1089 # Make sure we can run config.sub.
1090 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1091 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1094 echo $ac_n "checking host system type""... $ac_c" 1>&6
1095 echo "configure:1096: checking host system type" >&5
1098 case "$host_alias" in
1102 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1103 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1105 *) host_alias
=$nonopt ;;
1109 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1110 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1111 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1112 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1113 echo "$ac_t""$host" 1>&6
1115 echo $ac_n "checking target system type""... $ac_c" 1>&6
1116 echo "configure:1117: checking target system type" >&5
1118 target_alias
=$target
1119 case "$target_alias" in
1122 NONE
) target_alias
=$host_alias ;;
1123 *) target_alias
=$nonopt ;;
1127 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1128 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1129 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1130 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1131 echo "$ac_t""$target" 1>&6
1133 echo $ac_n "checking build system type""... $ac_c" 1>&6
1134 echo "configure:1135: checking build system type" >&5
1137 case "$build_alias" in
1140 NONE
) build_alias
=$host_alias ;;
1141 *) build_alias
=$nonopt ;;
1145 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1146 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1147 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1148 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1149 echo "$ac_t""$build" 1>&6
1151 test "$host_alias" != "$target_alias" &&
1152 test "$program_prefix$program_suffix$program_transform_name" = \
1154 program_prefix
=${target_alias}-
1158 *irix6
*) cat >> confdefs.h
<<\EOF
1159 #include <standards.h>
1167 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1168 echo "configure:1169: checking config.cache system type" >&5
1169 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1170 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1171 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1172 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1173 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1174 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1175 echo "$ac_t""different" 1>&6
1176 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1178 echo "$ac_t""same" 1>&6
1180 ac_cv_host_system_type
="$host"
1181 ac_cv_build_system_type
="$build"
1182 ac_cv_target_system_type
="$target"
1186 # Config CPPFLAG settings for strange OS's that must be set
1187 # before other tests.
1190 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1192 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${CC-cc} accepts -Ae" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 echo 'void f(){}' > conftest.c
1198 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1199 ac_cv_prog_cc_Ae
=yes
1207 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1208 # mmap on HPUX is completely broken...
1209 cat >> confdefs.h
<<\EOF
1210 #define MMAP_BLACKLIST 1
1213 if test $ac_cv_prog_cc_Ae = yes; then
1214 CPPFLAGS
="$CPPFLAGS -Ae"
1217 # Defines needed for HPUX support.
1218 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1219 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1223 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1224 cat >> confdefs.h
<<\EOF
1225 #define USE_BOTH_CRYPT_CALLS 1
1230 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1231 cat >> confdefs.h
<<\EOF
1232 #define USE_BOTH_CRYPT_CALLS 1
1239 # AIX4.x doesn't even admit to having large
1240 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1243 echo "$ac_t""enabling large file support" 1>&6
1244 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1247 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1248 # to the existance of large files..
1249 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1250 # recommendations on large file support, however it makes the
1251 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1252 # recommendation makes the compile fail on gcc2.7. JRA.
1257 echo "$ac_t""enabling large file support" 1>&6
1258 if test "$ac_cv_prog_gcc" = yes; then
1259 ${CC-cc} -v >conftest.c
2>&1
1260 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1262 case "$ac_cv_gcc_compiler_version_number" in
1263 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1264 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1267 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1271 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1277 # Tests needed for SINIX large file support.
1280 if test $host = mips-sni-sysv4
; then
1281 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1282 echo "configure:1283: checking for LFS support" >&5
1283 old_CPPFLAGS
="$CPPFLAGS"
1284 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1285 if test "$cross_compiling" = yes; then
1286 SINIX_LFS_SUPPORT
=cross
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1294 #if _LFS64_LARGEFILE == 1
1301 if { (eval echo configure
:1302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1303 SINIX_LFS_SUPPORT
=yes
1305 echo "configure: failed program was:" >&5
1306 cat conftest.
$ac_ext >&5
1308 SINIX_LFS_SUPPORT
=no
1313 CPPFLAGS
="$old_CPPFLAGS"
1314 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1315 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1316 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1317 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1318 LIBS
="`getconf LFS64_LIBS` $LIBS"
1320 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1324 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1327 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1328 echo "configure:1329: checking for LFS support" >&5
1329 old_CPPFLAGS
="$CPPFLAGS"
1330 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1331 if test "$cross_compiling" = yes; then
1332 LINUX_LFS_SUPPORT
=cross
1334 cat > conftest.
$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1339 #include <sys/utsname.h>
1341 #if _LFS64_LARGEFILE == 1
1346 /* Ensure this is glibc 2.2 or higher */
1347 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1348 int libc_major = __GLIBC__;
1349 int libc_minor = __GLIBC_MINOR__;
1357 /* Ensure this is kernel 2.4 or higher */
1360 release = uts.release;
1361 major = atoi(strsep(&release, "."));
1362 minor = atoi(strsep(&release, "."));
1364 if (major > 2 || (major == 2 && minor > 3))
1373 if { (eval echo configure
:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1375 LINUX_LFS_SUPPORT
=yes
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 LINUX_LFS_SUPPORT
=no
1385 CPPFLAGS
="$old_CPPFLAGS"
1386 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1387 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1389 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1393 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1394 echo "configure:1395: checking for LFS support" >&5
1395 old_CPPFLAGS
="$CPPFLAGS"
1396 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1397 if test "$cross_compiling" = yes; then
1398 GLIBC_LFS_SUPPORT
=cross
1400 cat > conftest.
$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1406 #if _LFS64_LARGEFILE == 1
1413 if { (eval echo configure
:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1415 GLIBC_LFS_SUPPORT
=yes
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1420 GLIBC_LFS_SUPPORT
=no
1425 CPPFLAGS
="$old_CPPFLAGS"
1426 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1427 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1429 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1434 echo $ac_n "checking for inline""... $ac_c" 1>&6
1435 echo "configure:1436: checking for inline" >&5
1436 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1440 for ac_kw
in inline __inline__ __inline
; do
1441 cat > conftest.
$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1449 if { (eval echo configure
:1450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1451 ac_cv_c_inline
=$ac_kw; break
1453 echo "configure: failed program was:" >&5
1454 cat conftest.
$ac_ext >&5
1461 echo "$ac_t""$ac_cv_c_inline" 1>&6
1462 case "$ac_cv_c_inline" in
1464 no
) cat >> confdefs.h
<<\EOF
1468 *) cat >> confdefs.h
<<EOF
1469 #define inline $ac_cv_c_inline
1474 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1475 echo "configure:1476: checking how to run the C preprocessor" >&5
1476 # On Suns, sometimes $CPP names a directory.
1477 if test -n "$CPP" && test -d "$CPP"; then
1480 if test -z "$CPP"; then
1481 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 # This must be in double quotes, not single quotes, because CPP may get
1485 # substituted into the Makefile and "${CC-cc}" will confuse make.
1487 # On the NeXT, cc -E runs the code through the compiler's parser,
1488 # not just through cpp.
1489 cat > conftest.
$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1495 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1496 { (eval echo configure
:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1497 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1498 if test -z "$ac_err"; then
1502 echo "configure: failed program was:" >&5
1503 cat conftest.
$ac_ext >&5
1505 CPP
="${CC-cc} -E -traditional-cpp"
1506 cat > conftest.
$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1512 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure
:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1519 echo "configure: failed program was:" >&5
1520 cat conftest.
$ac_ext >&5
1522 CPP
="${CC-cc} -nologo -E"
1523 cat > conftest.
$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530 { (eval echo configure
:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532 if test -z "$ac_err"; then
1536 echo "configure: failed program was:" >&5
1537 cat conftest.
$ac_ext >&5
1546 ac_cv_prog_CPP
="$CPP"
1548 CPP
="$ac_cv_prog_CPP"
1550 ac_cv_prog_CPP
="$CPP"
1552 echo "$ac_t""$CPP" 1>&6
1554 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1555 echo "configure:1556: checking for ANSI C header files" >&5
1556 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.
$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1567 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568 { (eval echo configure
:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1570 if test -z "$ac_err"; then
1572 ac_cv_header_stdc
=yes
1575 echo "configure: failed program was:" >&5
1576 cat conftest.
$ac_ext >&5
1578 ac_cv_header_stdc
=no
1582 if test $ac_cv_header_stdc = yes; then
1583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1590 egrep "memchr" >/dev
/null
2>&1; then
1594 ac_cv_header_stdc
=no
1600 if test $ac_cv_header_stdc = yes; then
1601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1608 egrep "free" >/dev
/null
2>&1; then
1612 ac_cv_header_stdc
=no
1618 if test $ac_cv_header_stdc = yes; then
1619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1620 if test "$cross_compiling" = yes; then
1623 cat > conftest.
$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1627 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1628 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1629 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1630 int main () { int i; for (i = 0; i < 256; i++)
1631 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1635 if { (eval echo configure
:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1639 echo "configure: failed program was:" >&5
1640 cat conftest.
$ac_ext >&5
1642 ac_cv_header_stdc
=no
1650 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1651 if test $ac_cv_header_stdc = yes; then
1652 cat >> confdefs.h
<<\EOF
1653 #define STDC_HEADERS 1
1659 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1661 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1662 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_hdr that defines DIR" >&5
1664 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 cat > conftest.
$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 #include <sys/types.h>
1676 if { (eval echo configure
:1677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1678 eval "ac_cv_header_dirent_$ac_safe=yes"
1680 echo "configure: failed program was:" >&5
1681 cat conftest.
$ac_ext >&5
1683 eval "ac_cv_header_dirent_$ac_safe=no"
1687 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1688 echo "$ac_t""yes" 1>&6
1689 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1690 cat >> confdefs.h
<<EOF
1691 #define $ac_tr_hdr 1
1693 ac_header_dirent
=$ac_hdr; break
1695 echo "$ac_t""no" 1>&6
1698 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1699 if test $ac_header_dirent = dirent.h
; then
1700 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1701 echo "configure:1702: checking for opendir in -ldir" >&5
1702 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 ac_save_LIBS
="$LIBS"
1708 cat > conftest.
$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 /* Override any gcc2 internal prototype to avoid an error. */
1712 /* We use char because int might match the return type of a gcc2
1713 builtin and then its argument prototype would still apply. */
1720 if { (eval echo configure
:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1722 eval "ac_cv_lib_$ac_lib_var=yes"
1724 echo "configure: failed program was:" >&5
1725 cat conftest.
$ac_ext >&5
1727 eval "ac_cv_lib_$ac_lib_var=no"
1730 LIBS
="$ac_save_LIBS"
1733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1734 echo "$ac_t""yes" 1>&6
1737 echo "$ac_t""no" 1>&6
1741 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1742 echo "configure:1743: checking for opendir in -lx" >&5
1743 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1747 ac_save_LIBS
="$LIBS"
1749 cat > conftest.
$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1761 if { (eval echo configure
:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1763 eval "ac_cv_lib_$ac_lib_var=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.
$ac_ext >&5
1768 eval "ac_cv_lib_$ac_lib_var=no"
1771 LIBS
="$ac_save_LIBS"
1774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1778 echo "$ac_t""no" 1>&6
1783 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether time.h and sys/time.h may both be included" >&5
1785 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 cat > conftest.
$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 #include <sys/types.h>
1792 #include <sys/time.h>
1798 if { (eval echo configure
:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800 ac_cv_header_time
=yes
1802 echo "configure: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1805 ac_cv_header_time
=no
1810 echo "$ac_t""$ac_cv_header_time" 1>&6
1811 if test $ac_cv_header_time = yes; then
1812 cat >> confdefs.h
<<\EOF
1813 #define TIME_WITH_SYS_TIME 1
1818 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1819 echo "configure:1820: checking for sys/wait.h that is POSIX.1 compatible" >&5
1820 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 cat > conftest.
$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 #include <sys/types.h>
1827 #include <sys/wait.h>
1829 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1832 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1837 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1840 if { (eval echo configure
:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1842 ac_cv_header_sys_wait_h
=yes
1844 echo "configure: failed program was:" >&5
1845 cat conftest.
$ac_ext >&5
1847 ac_cv_header_sys_wait_h
=no
1852 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1853 if test $ac_cv_header_sys_wait_h = yes; then
1854 cat >> confdefs.h
<<\EOF
1855 #define HAVE_SYS_WAIT_H 1
1860 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1862 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1864 echo "configure:1865: checking for $ac_hdr" >&5
1865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 cat > conftest.
$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1873 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1874 { (eval echo configure
:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1875 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1876 if test -z "$ac_err"; then
1878 eval "ac_cv_header_$ac_safe=yes"
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 eval "ac_cv_header_$ac_safe=no"
1888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1890 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1891 cat >> confdefs.h
<<EOF
1892 #define $ac_tr_hdr 1
1896 echo "$ac_t""no" 1>&6
1900 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
1902 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_hdr" >&5
1905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 cat > conftest.
$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1913 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1914 { (eval echo configure
:1915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1915 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1916 if test -z "$ac_err"; then
1918 eval "ac_cv_header_$ac_safe=yes"
1921 echo "configure: failed program was:" >&5
1922 cat conftest.
$ac_ext >&5
1924 eval "ac_cv_header_$ac_safe=no"
1928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1929 echo "$ac_t""yes" 1>&6
1930 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1931 cat >> confdefs.h
<<EOF
1932 #define $ac_tr_hdr 1
1936 echo "$ac_t""no" 1>&6
1940 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
1942 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1944 echo "configure:1945: checking for $ac_hdr" >&5
1945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
1953 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1954 { (eval echo configure
:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1955 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1956 if test -z "$ac_err"; then
1958 eval "ac_cv_header_$ac_safe=yes"
1961 echo "configure: failed program was:" >&5
1962 cat conftest.
$ac_ext >&5
1964 eval "ac_cv_header_$ac_safe=no"
1968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1969 echo "$ac_t""yes" 1>&6
1970 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1971 cat >> confdefs.h
<<EOF
1972 #define $ac_tr_hdr 1
1976 echo "$ac_t""no" 1>&6
1980 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
1982 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1984 echo "configure:1985: checking for $ac_hdr" >&5
1985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1993 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1994 { (eval echo configure
:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1995 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1996 if test -z "$ac_err"; then
1998 eval "ac_cv_header_$ac_safe=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.
$ac_ext >&5
2004 eval "ac_cv_header_$ac_safe=no"
2008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2011 cat >> confdefs.h
<<EOF
2012 #define $ac_tr_hdr 1
2016 echo "$ac_t""no" 1>&6
2020 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
2022 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2024 echo "configure:2025: checking for $ac_hdr" >&5
2025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2033 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2034 { (eval echo configure
:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2035 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2036 if test -z "$ac_err"; then
2038 eval "ac_cv_header_$ac_safe=yes"
2041 echo "configure: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2044 eval "ac_cv_header_$ac_safe=no"
2048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2049 echo "$ac_t""yes" 1>&6
2050 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2051 cat >> confdefs.h
<<EOF
2052 #define $ac_tr_hdr 1
2056 echo "$ac_t""no" 1>&6
2060 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2062 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2063 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2064 echo "configure:2065: checking for $ac_hdr" >&5
2065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 cat > conftest.
$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2073 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2074 { (eval echo configure
:2075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2075 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2076 if test -z "$ac_err"; then
2078 eval "ac_cv_header_$ac_safe=yes"
2081 echo "configure: failed program was:" >&5
2082 cat conftest.
$ac_ext >&5
2084 eval "ac_cv_header_$ac_safe=no"
2088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2089 echo "$ac_t""yes" 1>&6
2090 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2091 cat >> confdefs.h
<<EOF
2092 #define $ac_tr_hdr 1
2096 echo "$ac_t""no" 1>&6
2100 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2102 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_hdr" >&5
2105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.
$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2113 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2114 { (eval echo configure
:2115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2115 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2116 if test -z "$ac_err"; then
2118 eval "ac_cv_header_$ac_safe=yes"
2121 echo "configure: failed program was:" >&5
2122 cat conftest.
$ac_ext >&5
2124 eval "ac_cv_header_$ac_safe=no"
2128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2129 echo "$ac_t""yes" 1>&6
2130 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2131 cat >> confdefs.h
<<EOF
2132 #define $ac_tr_hdr 1
2136 echo "$ac_t""no" 1>&6
2140 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h
2142 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_hdr" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2153 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2154 { (eval echo configure
:2155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2155 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2156 if test -z "$ac_err"; then
2158 eval "ac_cv_header_$ac_safe=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.
$ac_ext >&5
2164 eval "ac_cv_header_$ac_safe=no"
2168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2169 echo "$ac_t""yes" 1>&6
2170 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2171 cat >> confdefs.h
<<EOF
2172 #define $ac_tr_hdr 1
2176 echo "$ac_t""no" 1>&6
2182 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2183 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2187 cat > conftest.
$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2195 if { (eval echo configure
:2196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2197 ac_cv_header_shadow_h
=yes
2199 echo "configure: failed program was:" >&5
2200 cat conftest.
$ac_ext >&5
2202 ac_cv_header_shadow_h
=no
2205 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2206 cat >> confdefs.h
<<\EOF
2207 #define HAVE_SHADOW_H 1
2213 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2215 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_hdr" >&5
2218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 cat > conftest.
$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2226 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2227 { (eval echo configure
:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2228 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2229 if test -z "$ac_err"; then
2231 eval "ac_cv_header_$ac_safe=yes"
2234 echo "configure: failed program was:" >&5
2235 cat conftest.
$ac_ext >&5
2237 eval "ac_cv_header_$ac_safe=no"
2241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2243 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2244 cat >> confdefs.h
<<EOF
2245 #define $ac_tr_hdr 1
2249 echo "$ac_t""no" 1>&6
2253 for ac_hdr
in nss.h nss_common.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2255 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_hdr" >&5
2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2267 { (eval echo configure
:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2269 if test -z "$ac_err"; then
2271 eval "ac_cv_header_$ac_safe=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 eval "ac_cv_header_$ac_safe=no"
2281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2284 cat >> confdefs.h
<<EOF
2285 #define $ac_tr_hdr 1
2289 echo "$ac_t""no" 1>&6
2293 for ac_hdr
in stropts.h poll.h
2295 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_hdr" >&5
2298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.
$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2306 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2307 { (eval echo configure
:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2308 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2309 if test -z "$ac_err"; then
2311 eval "ac_cv_header_$ac_safe=yes"
2314 echo "configure: failed program was:" >&5
2315 cat conftest.
$ac_ext >&5
2317 eval "ac_cv_header_$ac_safe=no"
2321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2324 cat >> confdefs.h
<<EOF
2325 #define $ac_tr_hdr 1
2329 echo "$ac_t""no" 1>&6
2333 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2335 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2337 echo "configure:2338: checking for $ac_hdr" >&5
2338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2346 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2347 { (eval echo configure
:2348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2348 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2349 if test -z "$ac_err"; then
2351 eval "ac_cv_header_$ac_safe=yes"
2354 echo "configure: failed program was:" >&5
2355 cat conftest.
$ac_ext >&5
2357 eval "ac_cv_header_$ac_safe=no"
2361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2362 echo "$ac_t""yes" 1>&6
2363 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2364 cat >> confdefs.h
<<EOF
2365 #define $ac_tr_hdr 1
2369 echo "$ac_t""no" 1>&6
2373 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2375 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_hdr" >&5
2378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 cat > conftest.
$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2386 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2387 { (eval echo configure
:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2388 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2389 if test -z "$ac_err"; then
2391 eval "ac_cv_header_$ac_safe=yes"
2394 echo "configure: failed program was:" >&5
2395 cat conftest.
$ac_ext >&5
2397 eval "ac_cv_header_$ac_safe=no"
2401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2404 cat >> confdefs.h
<<EOF
2405 #define $ac_tr_hdr 1
2409 echo "$ac_t""no" 1>&6
2414 # For experimental utmp support (lastlog on some BSD-like systems)
2415 for ac_hdr
in utmp.h utmpx.h lastlog.h
2417 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_hdr" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.
$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2428 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2429 { (eval echo configure
:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2430 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2431 if test -z "$ac_err"; then
2433 eval "ac_cv_header_$ac_safe=yes"
2436 echo "configure: failed program was:" >&5
2437 cat conftest.
$ac_ext >&5
2439 eval "ac_cv_header_$ac_safe=no"
2443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2446 cat >> confdefs.h
<<EOF
2447 #define $ac_tr_hdr 1
2451 echo "$ac_t""no" 1>&6
2456 # For quotas on Veritas VxFS filesystems
2457 for ac_hdr
in sys
/fs
/vx_quota.h
2459 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_hdr" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2470 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure
:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2473 if test -z "$ac_err"; then
2475 eval "ac_cv_header_$ac_safe=yes"
2478 echo "configure: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 eval "ac_cv_header_$ac_safe=no"
2485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2488 cat >> confdefs.h
<<EOF
2489 #define $ac_tr_hdr 1
2493 echo "$ac_t""no" 1>&6
2498 echo $ac_n "checking size of int""... $ac_c" 1>&6
2499 echo "configure:2500: checking size of int" >&5
2500 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 if test "$cross_compiling" = yes; then
2504 ac_cv_sizeof_int
=cross
2506 cat > conftest.
$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2512 FILE *f=fopen("conftestval", "w");
2514 fprintf(f, "%d\n", sizeof(int));
2518 if { (eval echo configure
:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2520 ac_cv_sizeof_int
=`cat conftestval`
2522 echo "configure: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2531 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2532 cat >> confdefs.h
<<EOF
2533 #define SIZEOF_INT $ac_cv_sizeof_int
2537 echo $ac_n "checking size of long""... $ac_c" 1>&6
2538 echo "configure:2539: checking size of long" >&5
2539 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 if test "$cross_compiling" = yes; then
2543 ac_cv_sizeof_long
=cross
2545 cat > conftest.
$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2551 FILE *f=fopen("conftestval", "w");
2553 fprintf(f, "%d\n", sizeof(long));
2557 if { (eval echo configure
:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2559 ac_cv_sizeof_long
=`cat conftestval`
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2570 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2571 cat >> confdefs.h
<<EOF
2572 #define SIZEOF_LONG $ac_cv_sizeof_long
2576 echo $ac_n "checking size of short""... $ac_c" 1>&6
2577 echo "configure:2578: checking size of short" >&5
2578 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 if test "$cross_compiling" = yes; then
2582 ac_cv_sizeof_short
=cross
2584 cat > conftest.
$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2590 FILE *f=fopen("conftestval", "w");
2592 fprintf(f, "%d\n", sizeof(short));
2596 if { (eval echo configure
:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2598 ac_cv_sizeof_short
=`cat conftestval`
2600 echo "configure: failed program was:" >&5
2601 cat conftest.
$ac_ext >&5
2603 ac_cv_sizeof_short
=0
2609 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2610 cat >> confdefs.h
<<EOF
2611 #define SIZEOF_SHORT $ac_cv_sizeof_short
2616 echo $ac_n "checking for working const""... $ac_c" 1>&6
2617 echo "configure:2618: checking for working const" >&5
2618 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.
$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2627 /* Ultrix mips cc rejects this. */
2628 typedef int charset[2]; const charset x;
2629 /* SunOS 4.1.1 cc rejects this. */
2630 char const *const *ccp;
2632 /* NEC SVR4.0.2 mips cc rejects this. */
2633 struct point {int x, y;};
2634 static struct point const zero = {0,0};
2635 /* AIX XL C 1.02.0.0 rejects this.
2636 It does not let you subtract one const X* pointer from another in an arm
2637 of an if-expression whose if-part is not a constant expression */
2638 const char *g = "string";
2639 ccp = &g + (g ? g-g : 0);
2640 /* HPUX 7.0 cc rejects these. */
2643 ccp = (char const *const *) p;
2644 { /* SCO 3.2v4 cc rejects this. */
2646 char const *s = 0 ? (char *) 0 : (char const *) 0;
2650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2652 const int *foo = &x[0];
2655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2656 typedef const int *iptr;
2660 { /* AIX XL C 1.02.0.0 rejects this saying
2661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2662 struct s { int j; const int *ap[3]; };
2663 struct s *b; b->j = 5;
2665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2671 if { (eval echo configure
:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2675 echo "configure: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2683 echo "$ac_t""$ac_cv_c_const" 1>&6
2684 if test $ac_cv_c_const = no
; then
2685 cat >> confdefs.h
<<\EOF
2691 echo $ac_n "checking for inline""... $ac_c" 1>&6
2692 echo "configure:2693: checking for inline" >&5
2693 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2697 for ac_kw
in inline __inline__ __inline
; do
2698 cat > conftest.
$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2706 if { (eval echo configure
:2707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2708 ac_cv_c_inline
=$ac_kw; break
2710 echo "configure: failed program was:" >&5
2711 cat conftest.
$ac_ext >&5
2718 echo "$ac_t""$ac_cv_c_inline" 1>&6
2719 case "$ac_cv_c_inline" in
2721 no
) cat >> confdefs.h
<<\EOF
2725 *) cat >> confdefs.h
<<EOF
2726 #define inline $ac_cv_c_inline
2731 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2732 echo "configure:2733: checking whether byte ordering is bigendian" >&5
2733 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 ac_cv_c_bigendian
=unknown
2737 # See if sys/param.h defines the BYTE_ORDER macro.
2738 cat > conftest.
$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <sys/types.h>
2742 #include <sys/param.h>
2745 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2750 if { (eval echo configure
:2751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2752 # It does; now see whether it defined to BIG_ENDIAN or not.
2753 cat > conftest.
$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <sys/types.h>
2757 #include <sys/param.h>
2760 #if BYTE_ORDER != BIG_ENDIAN
2765 if { (eval echo configure
:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767 ac_cv_c_bigendian
=yes
2769 echo "configure: failed program was:" >&5
2770 cat conftest.
$ac_ext >&5
2772 ac_cv_c_bigendian
=no
2776 echo "configure: failed program was:" >&5
2777 cat conftest.
$ac_ext >&5
2780 if test $ac_cv_c_bigendian = unknown
; then
2781 if test "$cross_compiling" = yes; then
2782 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2784 cat > conftest.
$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2788 /* Are we little or big endian? From Harbison&Steele. */
2792 char c[sizeof (long)];
2795 exit (u.c[sizeof (long) - 1] == 1);
2798 if { (eval echo configure
:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2800 ac_cv_c_bigendian
=no
2802 echo "configure: failed program was:" >&5
2803 cat conftest.
$ac_ext >&5
2805 ac_cv_c_bigendian
=yes
2813 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2814 if test $ac_cv_c_bigendian = yes; then
2815 cat >> confdefs.h
<<\EOF
2816 #define WORDS_BIGENDIAN 1
2821 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2822 echo "configure:2823: checking whether char is unsigned" >&5
2823 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 if test "$GCC" = yes; then
2827 # GCC predefines this symbol on systems where it applies.
2828 cat > conftest.
$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #ifdef __CHAR_UNSIGNED__
2836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2837 egrep "yes" >/dev
/null
2>&1; then
2839 ac_cv_c_char_unsigned
=yes
2842 ac_cv_c_char_unsigned
=no
2847 if test "$cross_compiling" = yes; then
2848 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2854 #if !defined(__STDC__) || __STDC__ != 1
2858 volatile char c = 255; exit(c < 0);
2861 if { (eval echo configure
:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2863 ac_cv_c_char_unsigned
=yes
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2868 ac_cv_c_char_unsigned
=no
2876 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2877 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2878 cat >> confdefs.h
<<\EOF
2879 #define __CHAR_UNSIGNED__ 1
2885 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2886 echo "configure:2887: checking return type of signal handlers" >&5
2887 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.
$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 #include <sys/types.h>
2899 extern "C" void (*signal (int, void (*)(int)))(int);
2901 void (*signal ()) ();
2908 if { (eval echo configure
:2909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2910 ac_cv_type_signal
=void
2912 echo "configure: failed program was:" >&5
2913 cat conftest.
$ac_ext >&5
2915 ac_cv_type_signal
=int
2920 echo "$ac_t""$ac_cv_type_signal" 1>&6
2921 cat >> confdefs.h
<<EOF
2922 #define RETSIGTYPE $ac_cv_type_signal
2926 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2927 echo "configure:2928: checking for uid_t in sys/types.h" >&5
2928 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.
$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2934 #include <sys/types.h>
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "uid_t" >/dev
/null
2>&1; then
2939 ac_cv_type_uid_t
=yes
2948 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2949 if test $ac_cv_type_uid_t = no
; then
2950 cat >> confdefs.h
<<\EOF
2954 cat >> confdefs.h
<<\EOF
2960 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2961 echo "configure:2962: checking for mode_t" >&5
2962 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 #include <sys/types.h>
2974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2977 ac_cv_type_mode_t
=yes
2980 ac_cv_type_mode_t
=no
2985 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2986 if test $ac_cv_type_mode_t = no
; then
2987 cat >> confdefs.h
<<\EOF
2993 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2994 echo "configure:2995: checking for off_t" >&5
2995 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.
$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 #include <sys/types.h>
3007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3008 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3010 ac_cv_type_off_t
=yes
3018 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3019 if test $ac_cv_type_off_t = no
; then
3020 cat >> confdefs.h
<<\EOF
3026 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3027 echo "configure:3028: checking for size_t" >&5
3028 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3043 ac_cv_type_size_t
=yes
3046 ac_cv_type_size_t
=no
3051 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3052 if test $ac_cv_type_size_t = no
; then
3053 cat >> confdefs.h
<<\EOF
3054 #define size_t unsigned
3059 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3060 echo "configure:3061: checking for pid_t" >&5
3061 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 cat > conftest.
$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3067 #include <sys/types.h>
3073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3074 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3076 ac_cv_type_pid_t
=yes
3084 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3085 if test $ac_cv_type_pid_t = no
; then
3086 cat >> confdefs.h
<<\EOF
3092 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3093 echo "configure:3094: checking for st_rdev in struct stat" >&5
3094 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.
$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 #include <sys/types.h>
3101 #include <sys/stat.h>
3103 struct stat s; s.st_rdev;
3106 if { (eval echo configure
:3107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3108 ac_cv_struct_st_rdev
=yes
3110 echo "configure: failed program was:" >&5
3111 cat conftest.
$ac_ext >&5
3113 ac_cv_struct_st_rdev
=no
3118 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3119 if test $ac_cv_struct_st_rdev = yes; then
3120 cat >> confdefs.h
<<\EOF
3121 #define HAVE_ST_RDEV 1
3126 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3127 echo "configure:3128: checking for d_off in dirent" >&5
3128 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3136 #include <sys/types.h>
3139 struct dirent d; d.d_off;
3142 if { (eval echo configure
:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3144 ac_cv_dirent_d_off
=yes
3146 echo "configure: failed program was:" >&5
3147 cat conftest.
$ac_ext >&5
3149 ac_cv_dirent_d_off
=no
3154 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3155 if test $ac_cv_dirent_d_off = yes; then
3156 cat >> confdefs.h
<<\EOF
3157 #define HAVE_DIRENT_D_OFF 1
3162 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3163 echo "configure:3164: checking for ino_t" >&5
3164 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 cat > conftest.
$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #include <sys/types.h>
3176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3177 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3179 ac_cv_type_ino_t
=yes
3187 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3188 if test $ac_cv_type_ino_t = no
; then
3189 cat >> confdefs.h
<<\EOF
3190 #define ino_t unsigned
3195 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3196 echo "configure:3197: checking for loff_t" >&5
3197 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 #include <sys/types.h>
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3212 ac_cv_type_loff_t
=yes
3215 ac_cv_type_loff_t
=no
3220 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3221 if test $ac_cv_type_loff_t = no
; then
3222 cat >> confdefs.h
<<\EOF
3223 #define loff_t off_t
3228 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3229 echo "configure:3230: checking for offset_t" >&5
3230 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 cat > conftest.
$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 #include <sys/types.h>
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3245 ac_cv_type_offset_t
=yes
3248 ac_cv_type_offset_t
=no
3253 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3254 if test $ac_cv_type_offset_t = no
; then
3255 cat >> confdefs.h
<<\EOF
3256 #define offset_t loff_t
3261 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3262 echo "configure:3263: checking for ssize_t" >&5
3263 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 cat > conftest.
$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #include <sys/types.h>
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3278 ac_cv_type_ssize_t
=yes
3281 ac_cv_type_ssize_t
=no
3286 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3287 if test $ac_cv_type_ssize_t = no
; then
3288 cat >> confdefs.h
<<\EOF
3294 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3295 echo "configure:3296: checking for wchar_t" >&5
3296 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 #include <sys/types.h>
3308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3309 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3311 ac_cv_type_wchar_t
=yes
3314 ac_cv_type_wchar_t
=no
3319 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3320 if test $ac_cv_type_wchar_t = no
; then
3321 cat >> confdefs.h
<<\EOF
3322 #define wchar_t unsigned short
3328 ############################################
3329 # for cups support we need libcups, and a handful of header files
3331 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3332 echo "configure:3333: checking for httpConnect in -lcups" >&5
3333 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 ac_save_LIBS
="$LIBS"
3339 cat > conftest.
$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* Override any gcc2 internal prototype to avoid an error. */
3343 /* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3351 if { (eval echo configure
:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3353 eval "ac_cv_lib_$ac_lib_var=yes"
3355 echo "configure: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3358 eval "ac_cv_lib_$ac_lib_var=no"
3361 LIBS
="$ac_save_LIBS"
3364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3365 echo "$ac_t""yes" 1>&6
3366 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3367 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3368 cat >> confdefs.h
<<EOF
3369 #define $ac_tr_lib 1
3375 echo "$ac_t""no" 1>&6
3379 # I wonder if there is a nicer way of doing this?
3381 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3382 for ac_hdr
in cups
/cups.h cups
/language.h
3384 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3386 echo "configure:3387: checking for $ac_hdr" >&5
3387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 cat > conftest.
$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3395 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3396 { (eval echo configure
:3397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3397 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3398 if test -z "$ac_err"; then
3400 eval "ac_cv_header_$ac_safe=yes"
3403 echo "configure: failed program was:" >&5
3404 cat conftest.
$ac_ext >&5
3406 eval "ac_cv_header_$ac_safe=no"
3410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3413 cat >> confdefs.h
<<EOF
3414 #define $ac_tr_hdr 1
3418 echo "$ac_t""no" 1>&6
3422 if x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3423 if x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3424 cat >> confdefs.h
<<\EOF
3432 ############################################
3433 # we need libdl for PAM and the new VFS code
3434 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3435 echo "configure:3436: checking for dlopen in -ldl" >&5
3436 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 ac_save_LIBS
="$LIBS"
3442 cat > conftest.
$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3454 if { (eval echo configure
:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3456 eval "ac_cv_lib_$ac_lib_var=yes"
3458 echo "configure: failed program was:" >&5
3459 cat conftest.
$ac_ext >&5
3461 eval "ac_cv_lib_$ac_lib_var=no"
3464 LIBS
="$ac_save_LIBS"
3467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3470 cat >> confdefs.h
<<\EOF
3471 #define HAVE_LIBDL 1
3475 echo "$ac_t""no" 1>&6
3479 ############################################
3480 # check for unix domain sockets
3481 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3482 echo "configure:3483: checking for unix domain sockets" >&5
3483 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.
$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3491 #include <sys/types.h>
3494 #include <sys/socket.h>
3498 struct sockaddr_un sunaddr;
3499 sunaddr.sun_family = AF_UNIX;
3503 if { (eval echo configure
:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505 samba_cv_unixsocket
=yes
3507 echo "configure: failed program was:" >&5
3508 cat conftest.
$ac_ext >&5
3510 samba_cv_unixsocket
=no
3515 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3516 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3517 cat >> confdefs.h
<<\EOF
3518 #define HAVE_UNIXSOCKET 1
3524 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3525 echo "configure:3526: checking for socklen_t type" >&5
3526 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.
$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3534 #include <sys/types.h>
3539 #include <sys/socket.h>
3544 if { (eval echo configure
:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 samba_cv_socklen_t
=yes
3548 echo "configure: failed program was:" >&5
3549 cat conftest.
$ac_ext >&5
3551 samba_cv_socklen_t
=no
3556 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3557 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3558 cat >> confdefs.h
<<\EOF
3559 #define HAVE_SOCKLEN_T_TYPE 1
3564 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3565 echo "configure:3566: checking for sig_atomic_t type" >&5
3566 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.
$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3574 #include <sys/types.h>
3584 if { (eval echo configure
:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 samba_cv_sig_atomic_t
=yes
3588 echo "configure: failed program was:" >&5
3589 cat conftest.
$ac_ext >&5
3591 samba_cv_sig_atomic_t
=no
3596 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3597 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3598 cat >> confdefs.h
<<\EOF
3599 #define HAVE_SIG_ATOMIC_T_TYPE 1
3604 # stupid headers have the functions but no declaration. grrrr.
3606 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3607 echo "configure:3608: checking for errno declaration" >&5
3608 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.
$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3620 if { (eval echo configure
:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 ac_cv_have_errno_decl
=yes
3624 echo "configure: failed program was:" >&5
3625 cat conftest.
$ac_ext >&5
3627 ac_cv_have_errno_decl
=no
3632 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3633 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3634 cat >> confdefs.h
<<\EOF
3635 #define HAVE_ERRNO_DECL 1
3641 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3642 echo "configure:3643: checking for setresuid declaration" >&5
3643 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3647 cat > conftest.
$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3652 int i = (int)setresuid
3655 if { (eval echo configure
:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657 ac_cv_have_setresuid_decl
=yes
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3662 ac_cv_have_setresuid_decl
=no
3667 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3668 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3669 cat >> confdefs.h
<<\EOF
3670 #define HAVE_SETRESUID_DECL 1
3676 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3677 echo "configure:3678: checking for setresgid declaration" >&5
3678 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3682 cat > conftest.
$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3687 int i = (int)setresgid
3690 if { (eval echo configure
:3691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3692 ac_cv_have_setresgid_decl
=yes
3694 echo "configure: failed program was:" >&5
3695 cat conftest.
$ac_ext >&5
3697 ac_cv_have_setresgid_decl
=no
3702 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3703 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3704 cat >> confdefs.h
<<\EOF
3705 #define HAVE_SETRESGID_DECL 1
3711 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3712 echo "configure:3713: checking for asprintf declaration" >&5
3713 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3717 cat > conftest.
$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3722 int i = (int)asprintf
3725 if { (eval echo configure
:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727 ac_cv_have_asprintf_decl
=yes
3729 echo "configure: failed program was:" >&5
3730 cat conftest.
$ac_ext >&5
3732 ac_cv_have_asprintf_decl
=no
3737 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3738 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3739 cat >> confdefs.h
<<\EOF
3740 #define HAVE_ASPRINTF_DECL 1
3746 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3747 echo "configure:3748: checking for vasprintf declaration" >&5
3748 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3752 cat > conftest.
$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3757 int i = (int)vasprintf
3760 if { (eval echo configure
:3761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762 ac_cv_have_vasprintf_decl
=yes
3764 echo "configure: failed program was:" >&5
3765 cat conftest.
$ac_ext >&5
3767 ac_cv_have_vasprintf_decl
=no
3772 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3773 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3774 cat >> confdefs.h
<<\EOF
3775 #define HAVE_VASPRINTF_DECL 1
3781 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3782 echo "configure:3783: checking for vsnprintf declaration" >&5
3783 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3787 cat > conftest.
$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3792 int i = (int)vsnprintf
3795 if { (eval echo configure
:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797 ac_cv_have_vsnprintf_decl
=yes
3799 echo "configure: failed program was:" >&5
3800 cat conftest.
$ac_ext >&5
3802 ac_cv_have_vsnprintf_decl
=no
3807 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3808 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
3809 cat >> confdefs.h
<<\EOF
3810 #define HAVE_VSNPRINTF_DECL 1
3816 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3817 echo "configure:3818: checking for snprintf declaration" >&5
3818 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3822 cat > conftest.
$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3827 int i = (int)snprintf
3830 if { (eval echo configure
:3831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3832 ac_cv_have_snprintf_decl
=yes
3834 echo "configure: failed program was:" >&5
3835 cat conftest.
$ac_ext >&5
3837 ac_cv_have_snprintf_decl
=no
3842 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3843 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
3844 cat >> confdefs.h
<<\EOF
3845 #define HAVE_SNPRINTF_DECL 1
3851 # and glibc has setresuid under linux but the function does
3852 # nothing until kernel 2.1.44! very dumb.
3853 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3854 echo "configure:3855: checking for real setresuid" >&5
3855 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3859 if test "$cross_compiling" = yes; then
3860 samba_cv_have_setresuid
=cross
3862 cat > conftest.
$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3866 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3868 if { (eval echo configure
:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3870 samba_cv_have_setresuid
=yes
3872 echo "configure: failed program was:" >&5
3873 cat conftest.
$ac_ext >&5
3875 samba_cv_have_setresuid
=no
3882 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3883 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3884 cat >> confdefs.h
<<\EOF
3885 #define HAVE_SETRESUID 1
3890 # Do the same check for setresguid...
3892 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3893 echo "configure:3894: checking for real setresgid" >&5
3894 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3898 if test "$cross_compiling" = yes; then
3899 samba_cv_have_setresgid
=cross
3901 cat > conftest.
$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3906 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3908 if { (eval echo configure
:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3910 samba_cv_have_setresgid
=yes
3912 echo "configure: failed program was:" >&5
3913 cat conftest.
$ac_ext >&5
3915 samba_cv_have_setresgid
=no
3922 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3923 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
3924 cat >> confdefs.h
<<\EOF
3925 #define HAVE_SETRESGID 1
3930 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3931 echo "configure:3932: checking for 8-bit clean memcmp" >&5
3932 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 if test "$cross_compiling" = yes; then
3936 ac_cv_func_memcmp_clean
=no
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3944 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3945 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3949 if { (eval echo configure
:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3951 ac_cv_func_memcmp_clean
=yes
3953 echo "configure: failed program was:" >&5
3954 cat conftest.
$ac_ext >&5
3956 ac_cv_func_memcmp_clean
=no
3963 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3964 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
3967 ###############################################
3968 # test for where we get crypt() from
3969 for ac_func
in crypt
3971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3972 echo "configure:3973: checking for $ac_func" >&5
3973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* System header to define __stub macros and hopefully few prototypes,
3980 which can conflict with char $ac_func(); below. */
3982 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3989 /* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4000 if { (eval echo configure
:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4002 eval "ac_cv_func_$ac_func=yes"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4007 eval "ac_cv_func_$ac_func=no"
4012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4015 cat >> confdefs.h
<<EOF
4016 #define $ac_tr_func 1
4020 echo "$ac_t""no" 1>&6
4024 if test x
"$ac_cv_func_crypt" = x
"no"; then
4025 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4026 echo "configure:4027: checking for crypt in -lcrypt" >&5
4027 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 ac_save_LIBS
="$LIBS"
4032 LIBS
="-lcrypt $LIBS"
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4045 if { (eval echo configure
:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4049 echo "configure: failed program was:" >&5
4050 cat conftest.
$ac_ext >&5
4052 eval "ac_cv_lib_$ac_lib_var=no"
4055 LIBS
="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 LIBS
="$LIBS -lcrypt";
4061 cat >> confdefs.h
<<\EOF
4062 #define HAVE_CRYPT 1
4066 echo "$ac_t""no" 1>&6
4072 ###############################################
4073 # Readline included by default unless explicitly asked not to
4074 test "${with_readline+set}" != "set" && with_readline
=yes
4076 # test for where we get readline() from
4077 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4078 echo "configure:4079: checking whether to use readline" >&5
4079 # Check whether --with-readline or --without-readline was given.
4080 if test "${with_readline+set}" = set; then
4081 withval
="$with_readline"
4082 case "$with_readline" in
4084 echo "$ac_t""yes" 1>&6
4086 for ac_hdr
in readline.h
history.h readline
/readline.h
4088 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4090 echo "configure:4091: checking for $ac_hdr" >&5
4091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 cat > conftest.
$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4099 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4100 { (eval echo configure
:4101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4101 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4102 if test -z "$ac_err"; then
4104 eval "ac_cv_header_$ac_safe=yes"
4107 echo "configure: failed program was:" >&5
4108 cat conftest.
$ac_ext >&5
4110 eval "ac_cv_header_$ac_safe=no"
4114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4115 echo "$ac_t""yes" 1>&6
4116 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4117 cat >> confdefs.h
<<EOF
4118 #define $ac_tr_hdr 1
4122 echo "$ac_t""no" 1>&6
4126 for ac_hdr
in readline
/history.h
4128 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4130 echo "configure:4131: checking for $ac_hdr" >&5
4131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 cat > conftest.
$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4139 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4140 { (eval echo configure
:4141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4141 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4142 if test -z "$ac_err"; then
4144 eval "ac_cv_header_$ac_safe=yes"
4147 echo "configure: failed program was:" >&5
4148 cat conftest.
$ac_ext >&5
4150 eval "ac_cv_header_$ac_safe=no"
4154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4156 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4157 cat >> confdefs.h
<<EOF
4158 #define $ac_tr_hdr 1
4162 echo "$ac_t""no" 1>&6
4167 for ac_hdr
in readline.h readline
/readline.h
4169 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_hdr" >&5
4172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 cat > conftest.
$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4181 { (eval echo configure
:4182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4183 if test -z "$ac_err"; then
4185 eval "ac_cv_header_$ac_safe=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.
$ac_ext >&5
4191 eval "ac_cv_header_$ac_safe=no"
4195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4198 cat >> confdefs.h
<<EOF
4199 #define $ac_tr_hdr 1
4202 for termlib
in ncurses curses termcap terminfo termlib
; do
4203 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4204 echo "configure:4205: checking for tgetent in -l${termlib}" >&5
4205 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 ac_save_LIBS
="$LIBS"
4210 LIBS
="-l${termlib} $LIBS"
4211 cat > conftest.
$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4223 if { (eval echo configure
:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4225 eval "ac_cv_lib_$ac_lib_var=yes"
4227 echo "configure: failed program was:" >&5
4228 cat conftest.
$ac_ext >&5
4230 eval "ac_cv_lib_$ac_lib_var=no"
4233 LIBS
="$ac_save_LIBS"
4236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4237 echo "$ac_t""yes" 1>&6
4238 TERMLIBS
="-l${termlib}"; break
4240 echo "$ac_t""no" 1>&6
4244 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4245 echo "configure:4246: checking for rl_callback_handler_install in -lreadline" >&5
4246 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4250 ac_save_LIBS
="$LIBS"
4251 LIBS
="-lreadline $TERMLIBS $LIBS"
4252 cat > conftest.
$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4258 char rl_callback_handler_install();
4261 rl_callback_handler_install()
4264 if { (eval echo configure
:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4266 eval "ac_cv_lib_$ac_lib_var=yes"
4268 echo "configure: failed program was:" >&5
4269 cat conftest.
$ac_ext >&5
4271 eval "ac_cv_lib_$ac_lib_var=no"
4274 LIBS
="$ac_save_LIBS"
4277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4278 echo "$ac_t""yes" 1>&6
4279 TERMLIBS
="-lreadline $TERMLIBS"
4280 cat >> confdefs.h
<<\EOF
4281 #define HAVE_LIBREADLINE 1
4286 echo "$ac_t""no" 1>&6
4291 echo "$ac_t""no" 1>&6
4297 echo "$ac_t""no" 1>&6
4300 echo "$ac_t""yes" 1>&6
4302 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4303 # alternate readline path
4305 _cppflags
=${CPPFLAGS}
4307 # Add additional search path
4308 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4309 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4311 for ac_hdr
in readline.h
history.h readline
/readline.h
4313 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4315 echo "configure:4316: checking for $ac_hdr" >&5
4316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.
$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4324 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4325 { (eval echo configure
:4326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4326 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4327 if test -z "$ac_err"; then
4329 eval "ac_cv_header_$ac_safe=yes"
4332 echo "configure: failed program was:" >&5
4333 cat conftest.
$ac_ext >&5
4335 eval "ac_cv_header_$ac_safe=no"
4339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4342 cat >> confdefs.h
<<EOF
4343 #define $ac_tr_hdr 1
4347 echo "$ac_t""no" 1>&6
4351 for ac_hdr
in readline
/history.h
4353 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_hdr" >&5
4356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 cat > conftest.
$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4364 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4365 { (eval echo configure
:4366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4366 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4367 if test -z "$ac_err"; then
4369 eval "ac_cv_header_$ac_safe=yes"
4372 echo "configure: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 eval "ac_cv_header_$ac_safe=no"
4379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4381 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4382 cat >> confdefs.h
<<EOF
4383 #define $ac_tr_hdr 1
4387 echo "$ac_t""no" 1>&6
4392 for ac_hdr
in readline.h readline
/readline.h
4394 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4396 echo "configure:4397: checking for $ac_hdr" >&5
4397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 cat > conftest.
$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4405 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4406 { (eval echo configure
:4407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4407 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4408 if test -z "$ac_err"; then
4410 eval "ac_cv_header_$ac_safe=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4416 eval "ac_cv_header_$ac_safe=no"
4420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4422 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4423 cat >> confdefs.h
<<EOF
4424 #define $ac_tr_hdr 1
4427 for termlib
in ncurses curses termcap terminfo termlib
; do
4428 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4429 echo "configure:4430: checking for tgetent in -l${termlib}" >&5
4430 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 ac_save_LIBS
="$LIBS"
4435 LIBS
="-l${termlib} $LIBS"
4436 cat > conftest.
$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4448 if { (eval echo configure
:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4450 eval "ac_cv_lib_$ac_lib_var=yes"
4452 echo "configure: failed program was:" >&5
4453 cat conftest.
$ac_ext >&5
4455 eval "ac_cv_lib_$ac_lib_var=no"
4458 LIBS
="$ac_save_LIBS"
4461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 TERMLIBS
="-l${termlib}"; break
4465 echo "$ac_t""no" 1>&6
4469 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4470 echo "configure:4471: checking for rl_callback_handler_install in -lreadline" >&5
4471 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 ac_save_LIBS
="$LIBS"
4476 LIBS
="-lreadline $TERMLIBS $LIBS"
4477 cat > conftest.
$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4483 char rl_callback_handler_install();
4486 rl_callback_handler_install()
4489 if { (eval echo configure
:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4491 eval "ac_cv_lib_$ac_lib_var=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4496 eval "ac_cv_lib_$ac_lib_var=no"
4499 LIBS
="$ac_save_LIBS"
4502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4503 echo "$ac_t""yes" 1>&6
4504 TERMLDFLAGS
="-L$with_readline/lib"
4505 TERMCPPFLAGS
="-I$with_readline/include"
4506 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4507 TERMLIBS
="-lreadline $TERMLIBS"
4508 cat >> confdefs.h
<<\EOF
4509 #define HAVE_LIBREADLINE 1
4514 echo "$ac_t""no" 1>&6
4515 TERMLIBS
= CPPFLAGS
=$_cppflags
4519 echo "$ac_t""no" 1>&6
4528 echo "$ac_t""no" 1>&6
4535 # The following test taken from the cvs sources
4536 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4537 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4538 # libsocket.so which has a bad implementation of gethostbyname (it
4539 # only looks in /etc/hosts), so we only look for -lsocket if we need
4541 for ac_func
in connect
4543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4544 echo "configure:4545: checking for $ac_func" >&5
4545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4548 cat > conftest.
$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 /* System header to define __stub macros and hopefully few prototypes,
4552 which can conflict with char $ac_func(); below. */
4554 /* Override any gcc2 internal prototype to avoid an error. */
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4561 /* The GNU C library defines this for functions which it implements
4562 to always fail with ENOSYS. Some functions are actually named
4563 something starting with __ and the normal name is an alias. */
4564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4572 if { (eval echo configure
:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4574 eval "ac_cv_func_$ac_func=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.
$ac_ext >&5
4579 eval "ac_cv_func_$ac_func=no"
4584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4585 echo "$ac_t""yes" 1>&6
4586 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4587 cat >> confdefs.h
<<EOF
4588 #define $ac_tr_func 1
4592 echo "$ac_t""no" 1>&6
4596 if test x
"$ac_cv_func_connect" = x
"no"; then
4599 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4600 echo "configure:4601: checking for printf in -lnsl_s" >&5
4601 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 ac_save_LIBS
="$LIBS"
4606 LIBS
="-lnsl_s $LIBS"
4607 cat > conftest.
$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 /* Override any gcc2 internal prototype to avoid an error. */
4611 /* We use char because int might match the return type of a gcc2
4612 builtin and then its argument prototype would still apply. */
4619 if { (eval echo configure
:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4621 eval "ac_cv_lib_$ac_lib_var=yes"
4623 echo "configure: failed program was:" >&5
4624 cat conftest.
$ac_ext >&5
4626 eval "ac_cv_lib_$ac_lib_var=no"
4629 LIBS
="$ac_save_LIBS"
4632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4636 cat >> confdefs.h
<<EOF
4637 #define $ac_tr_lib 1
4640 LIBS
="-lnsl_s $LIBS"
4643 echo "$ac_t""no" 1>&6
4649 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4650 echo "configure:4651: checking for printf in -lnsl" >&5
4651 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4655 ac_save_LIBS
="$LIBS"
4657 cat > conftest.
$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4669 if { (eval echo configure
:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4671 eval "ac_cv_lib_$ac_lib_var=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4676 eval "ac_cv_lib_$ac_lib_var=no"
4679 LIBS
="$ac_save_LIBS"
4682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4686 cat >> confdefs.h
<<EOF
4687 #define $ac_tr_lib 1
4693 echo "$ac_t""no" 1>&6
4699 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4700 echo "configure:4701: checking for connect in -lsocket" >&5
4701 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 ac_save_LIBS
="$LIBS"
4706 LIBS
="-lsocket $LIBS"
4707 cat > conftest.
$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4719 if { (eval echo configure
:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4721 eval "ac_cv_lib_$ac_lib_var=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4726 eval "ac_cv_lib_$ac_lib_var=no"
4729 LIBS
="$ac_save_LIBS"
4732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4735 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4736 cat >> confdefs.h
<<EOF
4737 #define $ac_tr_lib 1
4740 LIBS
="-lsocket $LIBS"
4743 echo "$ac_t""no" 1>&6
4749 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4750 echo "configure:4751: checking for connect in -linet" >&5
4751 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 ac_save_LIBS
="$LIBS"
4757 cat > conftest.
$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4769 if { (eval echo configure
:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4771 eval "ac_cv_lib_$ac_lib_var=yes"
4773 echo "configure: failed program was:" >&5
4774 cat conftest.
$ac_ext >&5
4776 eval "ac_cv_lib_$ac_lib_var=no"
4779 LIBS
="$ac_save_LIBS"
4782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4785 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4786 cat >> confdefs.h
<<EOF
4787 #define $ac_tr_lib 1
4793 echo "$ac_t""no" 1>&6
4797 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4798 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4799 # ac_cv_func_connect=yes
4800 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4801 cat >> confdefs.h
<<\EOF
4802 #define HAVE_CONNECT 1
4808 ###############################################
4809 # test for where we get get_yp_default_domain() from
4810 for ac_func
in yp_get_default_domain
4812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_func" >&5
4814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4817 cat > conftest.
$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* System header to define __stub macros and hopefully few prototypes,
4821 which can conflict with char $ac_func(); below. */
4823 /* Override any gcc2 internal prototype to avoid an error. */
4824 /* We use char because int might match the return type of a gcc2
4825 builtin and then its argument prototype would still apply. */
4830 /* The GNU C library defines this for functions which it implements
4831 to always fail with ENOSYS. Some functions are actually named
4832 something starting with __ and the normal name is an alias. */
4833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4841 if { (eval echo configure
:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4843 eval "ac_cv_func_$ac_func=yes"
4845 echo "configure: failed program was:" >&5
4846 cat conftest.
$ac_ext >&5
4848 eval "ac_cv_func_$ac_func=no"
4853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4855 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4856 cat >> confdefs.h
<<EOF
4857 #define $ac_tr_func 1
4861 echo "$ac_t""no" 1>&6
4865 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4866 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4867 echo "configure:4868: checking for yp_get_default_domain in -lnsl" >&5
4868 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 ac_save_LIBS
="$LIBS"
4874 cat > conftest.
$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* Override any gcc2 internal prototype to avoid an error. */
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4880 char yp_get_default_domain();
4883 yp_get_default_domain()
4886 if { (eval echo configure
:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4888 eval "ac_cv_lib_$ac_lib_var=yes"
4890 echo "configure: failed program was:" >&5
4891 cat conftest.
$ac_ext >&5
4893 eval "ac_cv_lib_$ac_lib_var=no"
4896 LIBS
="$ac_save_LIBS"
4899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4902 cat >> confdefs.h
<<\EOF
4903 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4907 echo "$ac_t""no" 1>&6
4912 # Check if we have execl, if not we need to compile smbrun.
4913 for ac_func
in execl
4915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4916 echo "configure:4917: checking for $ac_func" >&5
4917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 cat > conftest.
$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4923 /* System header to define __stub macros and hopefully few prototypes,
4924 which can conflict with char $ac_func(); below. */
4926 /* Override any gcc2 internal prototype to avoid an error. */
4927 /* We use char because int might match the return type of a gcc2
4928 builtin and then its argument prototype would still apply. */
4933 /* The GNU C library defines this for functions which it implements
4934 to always fail with ENOSYS. Some functions are actually named
4935 something starting with __ and the normal name is an alias. */
4936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4944 if { (eval echo configure
:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4946 eval "ac_cv_func_$ac_func=yes"
4948 echo "configure: failed program was:" >&5
4949 cat conftest.
$ac_ext >&5
4951 eval "ac_cv_func_$ac_func=no"
4956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4957 echo "$ac_t""yes" 1>&6
4958 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4959 cat >> confdefs.h
<<EOF
4960 #define $ac_tr_func 1
4964 echo "$ac_t""no" 1>&6
4968 if test x
"$ac_cv_func_execl" = x
"no"; then
4969 RUNPROG
="bin/smbrun"
4974 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
4976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4977 echo "configure:4978: checking for $ac_func" >&5
4978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 cat > conftest.
$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4984 /* System header to define __stub macros and hopefully few prototypes,
4985 which can conflict with char $ac_func(); below. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4994 /* The GNU C library defines this for functions which it implements
4995 to always fail with ENOSYS. Some functions are actually named
4996 something starting with __ and the normal name is an alias. */
4997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5005 if { (eval echo configure
:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5007 eval "ac_cv_func_$ac_func=yes"
5009 echo "configure: failed program was:" >&5
5010 cat conftest.
$ac_ext >&5
5012 eval "ac_cv_func_$ac_func=no"
5017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5020 cat >> confdefs.h
<<EOF
5021 #define $ac_tr_func 1
5025 echo "$ac_t""no" 1>&6
5029 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5032 echo "configure:5033: checking for $ac_func" >&5
5033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 cat > conftest.
$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 /* System header to define __stub macros and hopefully few prototypes,
5040 which can conflict with char $ac_func(); below. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5049 /* The GNU C library defines this for functions which it implements
5050 to always fail with ENOSYS. Some functions are actually named
5051 something starting with __ and the normal name is an alias. */
5052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5060 if { (eval echo configure
:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5062 eval "ac_cv_func_$ac_func=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.
$ac_ext >&5
5067 eval "ac_cv_func_$ac_func=no"
5072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5075 cat >> confdefs.h
<<EOF
5076 #define $ac_tr_func 1
5080 echo "$ac_t""no" 1>&6
5084 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5087 echo "configure:5088: checking for $ac_func" >&5
5088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 cat > conftest.
$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char $ac_func(); below. */
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5104 /* The GNU C library defines this for functions which it implements
5105 to always fail with ENOSYS. Some functions are actually named
5106 something starting with __ and the normal name is an alias. */
5107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5115 if { (eval echo configure
:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5117 eval "ac_cv_func_$ac_func=yes"
5119 echo "configure: failed program was:" >&5
5120 cat conftest.
$ac_ext >&5
5122 eval "ac_cv_func_$ac_func=no"
5127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5129 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5130 cat >> confdefs.h
<<EOF
5131 #define $ac_tr_func 1
5135 echo "$ac_t""no" 1>&6
5139 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5142 echo "configure:5143: checking for $ac_func" >&5
5143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 cat > conftest.
$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* System header to define __stub macros and hopefully few prototypes,
5150 which can conflict with char $ac_func(); below. */
5152 /* Override any gcc2 internal prototype to avoid an error. */
5153 /* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5159 /* The GNU C library defines this for functions which it implements
5160 to always fail with ENOSYS. Some functions are actually named
5161 something starting with __ and the normal name is an alias. */
5162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5170 if { (eval echo configure
:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5172 eval "ac_cv_func_$ac_func=yes"
5174 echo "configure: failed program was:" >&5
5175 cat conftest.
$ac_ext >&5
5177 eval "ac_cv_func_$ac_func=no"
5182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5183 echo "$ac_t""yes" 1>&6
5184 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5185 cat >> confdefs.h
<<EOF
5186 #define $ac_tr_func 1
5190 echo "$ac_t""no" 1>&6
5194 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5197 echo "configure:5198: checking for $ac_func" >&5
5198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5199 echo $ac_n "(cached) $ac_c" 1>&6
5201 cat > conftest.
$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5204 /* System header to define __stub macros and hopefully few prototypes,
5205 which can conflict with char $ac_func(); below. */
5207 /* Override any gcc2 internal prototype to avoid an error. */
5208 /* We use char because int might match the return type of a gcc2
5209 builtin and then its argument prototype would still apply. */
5214 /* The GNU C library defines this for functions which it implements
5215 to always fail with ENOSYS. Some functions are actually named
5216 something starting with __ and the normal name is an alias. */
5217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5225 if { (eval echo configure
:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5227 eval "ac_cv_func_$ac_func=yes"
5229 echo "configure: failed program was:" >&5
5230 cat conftest.
$ac_ext >&5
5232 eval "ac_cv_func_$ac_func=no"
5237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5238 echo "$ac_t""yes" 1>&6
5239 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5240 cat >> confdefs.h
<<EOF
5241 #define $ac_tr_func 1
5245 echo "$ac_t""no" 1>&6
5249 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_func" >&5
5253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5256 cat > conftest.
$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 /* System header to define __stub macros and hopefully few prototypes,
5260 which can conflict with char $ac_func(); below. */
5262 /* Override any gcc2 internal prototype to avoid an error. */
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5269 /* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 if { (eval echo configure
:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5282 eval "ac_cv_func_$ac_func=yes"
5284 echo "configure: failed program was:" >&5
5285 cat conftest.
$ac_ext >&5
5287 eval "ac_cv_func_$ac_func=no"
5292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5295 cat >> confdefs.h
<<EOF
5296 #define $ac_tr_func 1
5300 echo "$ac_t""no" 1>&6
5304 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_func" >&5
5308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 cat > conftest.
$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 /* System header to define __stub macros and hopefully few prototypes,
5315 which can conflict with char $ac_func(); below. */
5317 /* Override any gcc2 internal prototype to avoid an error. */
5318 /* We use char because int might match the return type of a gcc2
5319 builtin and then its argument prototype would still apply. */
5324 /* The GNU C library defines this for functions which it implements
5325 to always fail with ENOSYS. Some functions are actually named
5326 something starting with __ and the normal name is an alias. */
5327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5335 if { (eval echo configure
:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5337 eval "ac_cv_func_$ac_func=yes"
5339 echo "configure: failed program was:" >&5
5340 cat conftest.
$ac_ext >&5
5342 eval "ac_cv_func_$ac_func=no"
5347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5350 cat >> confdefs.h
<<EOF
5351 #define $ac_tr_func 1
5355 echo "$ac_t""no" 1>&6
5359 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5362 echo "configure:5363: checking for $ac_func" >&5
5363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5366 cat > conftest.
$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 /* System header to define __stub macros and hopefully few prototypes,
5370 which can conflict with char $ac_func(); below. */
5372 /* Override any gcc2 internal prototype to avoid an error. */
5373 /* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5379 /* The GNU C library defines this for functions which it implements
5380 to always fail with ENOSYS. Some functions are actually named
5381 something starting with __ and the normal name is an alias. */
5382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5390 if { (eval echo configure
:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5392 eval "ac_cv_func_$ac_func=yes"
5394 echo "configure: failed program was:" >&5
5395 cat conftest.
$ac_ext >&5
5397 eval "ac_cv_func_$ac_func=no"
5402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5405 cat >> confdefs.h
<<EOF
5406 #define $ac_tr_func 1
5410 echo "$ac_t""no" 1>&6
5414 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5417 echo "configure:5418: checking for $ac_func" >&5
5418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 cat > conftest.
$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 /* System header to define __stub macros and hopefully few prototypes,
5425 which can conflict with char $ac_func(); below. */
5427 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5434 /* The GNU C library defines this for functions which it implements
5435 to always fail with ENOSYS. Some functions are actually named
5436 something starting with __ and the normal name is an alias. */
5437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5445 if { (eval echo configure
:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5447 eval "ac_cv_func_$ac_func=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.
$ac_ext >&5
5452 eval "ac_cv_func_$ac_func=no"
5457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5458 echo "$ac_t""yes" 1>&6
5459 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5460 cat >> confdefs.h
<<EOF
5461 #define $ac_tr_func 1
5465 echo "$ac_t""no" 1>&6
5469 # setbuffer is needed for smbtorture
5470 for ac_func
in setbuffer
5472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5473 echo "configure:5474: checking for $ac_func" >&5
5474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 cat > conftest.
$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 /* System header to define __stub macros and hopefully few prototypes,
5481 which can conflict with char $ac_func(); below. */
5483 /* Override any gcc2 internal prototype to avoid an error. */
5484 /* We use char because int might match the return type of a gcc2
5485 builtin and then its argument prototype would still apply. */
5490 /* The GNU C library defines this for functions which it implements
5491 to always fail with ENOSYS. Some functions are actually named
5492 something starting with __ and the normal name is an alias. */
5493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5501 if { (eval echo configure
:5502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5503 eval "ac_cv_func_$ac_func=yes"
5505 echo "configure: failed program was:" >&5
5506 cat conftest.
$ac_ext >&5
5508 eval "ac_cv_func_$ac_func=no"
5513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5514 echo "$ac_t""yes" 1>&6
5515 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5516 cat >> confdefs.h
<<EOF
5517 #define $ac_tr_func 1
5521 echo "$ac_t""no" 1>&6
5526 # syscall() is needed for smbwrapper.
5527 for ac_func
in syscall
5529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5530 echo "configure:5531: checking for $ac_func" >&5
5531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5534 cat > conftest.
$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5537 /* System header to define __stub macros and hopefully few prototypes,
5538 which can conflict with char $ac_func(); below. */
5540 /* Override any gcc2 internal prototype to avoid an error. */
5541 /* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5547 /* The GNU C library defines this for functions which it implements
5548 to always fail with ENOSYS. Some functions are actually named
5549 something starting with __ and the normal name is an alias. */
5550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5558 if { (eval echo configure
:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5560 eval "ac_cv_func_$ac_func=yes"
5562 echo "configure: failed program was:" >&5
5563 cat conftest.
$ac_ext >&5
5565 eval "ac_cv_func_$ac_func=no"
5570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5571 echo "$ac_t""yes" 1>&6
5572 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5573 cat >> confdefs.h
<<EOF
5574 #define $ac_tr_func 1
5578 echo "$ac_t""no" 1>&6
5583 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5586 echo "configure:5587: checking for $ac_func" >&5
5587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 cat > conftest.
$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char $ac_func(); below. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5614 if { (eval echo configure
:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5616 eval "ac_cv_func_$ac_func=yes"
5618 echo "configure: failed program was:" >&5
5619 cat conftest.
$ac_ext >&5
5621 eval "ac_cv_func_$ac_func=no"
5626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5628 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5629 cat >> confdefs.h
<<EOF
5630 #define $ac_tr_func 1
5634 echo "$ac_t""no" 1>&6
5638 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5641 echo "configure:5642: checking for $ac_func" >&5
5642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 cat > conftest.
$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char $ac_func(); below. */
5651 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5658 /* The GNU C library defines this for functions which it implements
5659 to always fail with ENOSYS. Some functions are actually named
5660 something starting with __ and the normal name is an alias. */
5661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5669 if { (eval echo configure
:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5671 eval "ac_cv_func_$ac_func=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5676 eval "ac_cv_func_$ac_func=no"
5681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5683 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5684 cat >> confdefs.h
<<EOF
5685 #define $ac_tr_func 1
5689 echo "$ac_t""no" 1>&6
5693 for ac_func
in __getcwd _getcwd
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 cat > conftest.
$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char $ac_func(); below. */
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 if { (eval echo configure
:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5726 eval "ac_cv_func_$ac_func=yes"
5728 echo "configure: failed program was:" >&5
5729 cat conftest.
$ac_ext >&5
5731 eval "ac_cv_func_$ac_func=no"
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739 cat >> confdefs.h
<<EOF
5740 #define $ac_tr_func 1
5744 echo "$ac_t""no" 1>&6
5748 for ac_func
in __xstat __fxstat __lxstat
5750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5751 echo "configure:5752: checking for $ac_func" >&5
5752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 cat > conftest.
$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char $ac_func(); below. */
5761 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5768 /* The GNU C library defines this for functions which it implements
5769 to always fail with ENOSYS. Some functions are actually named
5770 something starting with __ and the normal name is an alias. */
5771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5779 if { (eval echo configure
:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5781 eval "ac_cv_func_$ac_func=yes"
5783 echo "configure: failed program was:" >&5
5784 cat conftest.
$ac_ext >&5
5786 eval "ac_cv_func_$ac_func=no"
5791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5792 echo "$ac_t""yes" 1>&6
5793 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5794 cat >> confdefs.h
<<EOF
5795 #define $ac_tr_func 1
5799 echo "$ac_t""no" 1>&6
5803 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5806 echo "configure:5807: checking for $ac_func" >&5
5807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5810 cat > conftest.
$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5813 /* System header to define __stub macros and hopefully few prototypes,
5814 which can conflict with char $ac_func(); below. */
5816 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5823 /* The GNU C library defines this for functions which it implements
5824 to always fail with ENOSYS. Some functions are actually named
5825 something starting with __ and the normal name is an alias. */
5826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5834 if { (eval echo configure
:5835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5836 eval "ac_cv_func_$ac_func=yes"
5838 echo "configure: failed program was:" >&5
5839 cat conftest.
$ac_ext >&5
5841 eval "ac_cv_func_$ac_func=no"
5846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5847 echo "$ac_t""yes" 1>&6
5848 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5849 cat >> confdefs.h
<<EOF
5850 #define $ac_tr_func 1
5854 echo "$ac_t""no" 1>&6
5858 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_func" >&5
5862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5865 cat > conftest.
$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 /* System header to define __stub macros and hopefully few prototypes,
5869 which can conflict with char $ac_func(); below. */
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 /* We use char because int might match the return type of a gcc2
5873 builtin and then its argument prototype would still apply. */
5878 /* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
5881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5889 if { (eval echo configure
:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5891 eval "ac_cv_func_$ac_func=yes"
5893 echo "configure: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5896 eval "ac_cv_func_$ac_func=no"
5901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5904 cat >> confdefs.h
<<EOF
5905 #define $ac_tr_func 1
5909 echo "$ac_t""no" 1>&6
5913 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5916 echo "configure:5917: checking for $ac_func" >&5
5917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5920 cat > conftest.
$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 /* System header to define __stub macros and hopefully few prototypes,
5924 which can conflict with char $ac_func(); below. */
5926 /* Override any gcc2 internal prototype to avoid an error. */
5927 /* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */
5933 /* The GNU C library defines this for functions which it implements
5934 to always fail with ENOSYS. Some functions are actually named
5935 something starting with __ and the normal name is an alias. */
5936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5944 if { (eval echo configure
:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5946 eval "ac_cv_func_$ac_func=yes"
5948 echo "configure: failed program was:" >&5
5949 cat conftest.
$ac_ext >&5
5951 eval "ac_cv_func_$ac_func=no"
5956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5957 echo "$ac_t""yes" 1>&6
5958 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5959 cat >> confdefs.h
<<EOF
5960 #define $ac_tr_func 1
5964 echo "$ac_t""no" 1>&6
5968 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5971 echo "configure:5972: checking for $ac_func" >&5
5972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5975 cat > conftest.
$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 /* System header to define __stub macros and hopefully few prototypes,
5979 which can conflict with char $ac_func(); below. */
5981 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5988 /* The GNU C library defines this for functions which it implements
5989 to always fail with ENOSYS. Some functions are actually named
5990 something starting with __ and the normal name is an alias. */
5991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5999 if { (eval echo configure
:6000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6001 eval "ac_cv_func_$ac_func=yes"
6003 echo "configure: failed program was:" >&5
6004 cat conftest.
$ac_ext >&5
6006 eval "ac_cv_func_$ac_func=no"
6011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6012 echo "$ac_t""yes" 1>&6
6013 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6014 cat >> confdefs.h
<<EOF
6015 #define $ac_tr_func 1
6019 echo "$ac_t""no" 1>&6
6023 for ac_func
in _write __write _fork __fork
6025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_func" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 cat > conftest.
$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func(); below. */
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6054 if { (eval echo configure
:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6056 eval "ac_cv_func_$ac_func=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.
$ac_ext >&5
6061 eval "ac_cv_func_$ac_func=no"
6066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h
<<EOF
6070 #define $ac_tr_func 1
6074 echo "$ac_t""no" 1>&6
6078 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6081 echo "configure:6082: checking for $ac_func" >&5
6082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6085 cat > conftest.
$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 /* System header to define __stub macros and hopefully few prototypes,
6089 which can conflict with char $ac_func(); below. */
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6098 /* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6109 if { (eval echo configure
:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6111 eval "ac_cv_func_$ac_func=yes"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.
$ac_ext >&5
6116 eval "ac_cv_func_$ac_func=no"
6121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6122 echo "$ac_t""yes" 1>&6
6123 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6124 cat >> confdefs.h
<<EOF
6125 #define $ac_tr_func 1
6129 echo "$ac_t""no" 1>&6
6133 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6136 echo "configure:6137: checking for $ac_func" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6140 cat > conftest.
$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* System header to define __stub macros and hopefully few prototypes,
6144 which can conflict with char $ac_func(); below. */
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 if { (eval echo configure
:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6166 eval "ac_cv_func_$ac_func=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.
$ac_ext >&5
6171 eval "ac_cv_func_$ac_func=no"
6176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6179 cat >> confdefs.h
<<EOF
6180 #define $ac_tr_func 1
6184 echo "$ac_t""no" 1>&6
6188 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6191 echo "configure:6192: checking for $ac_func" >&5
6192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6195 cat > conftest.
$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6198 /* System header to define __stub macros and hopefully few prototypes,
6199 which can conflict with char $ac_func(); below. */
6201 /* Override any gcc2 internal prototype to avoid an error. */
6202 /* We use char because int might match the return type of a gcc2
6203 builtin and then its argument prototype would still apply. */
6208 /* The GNU C library defines this for functions which it implements
6209 to always fail with ENOSYS. Some functions are actually named
6210 something starting with __ and the normal name is an alias. */
6211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6219 if { (eval echo configure
:6220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6221 eval "ac_cv_func_$ac_func=yes"
6223 echo "configure: failed program was:" >&5
6224 cat conftest.
$ac_ext >&5
6226 eval "ac_cv_func_$ac_func=no"
6231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6234 cat >> confdefs.h
<<EOF
6235 #define $ac_tr_func 1
6239 echo "$ac_t""no" 1>&6
6243 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6246 echo "configure:6247: checking for $ac_func" >&5
6247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 cat > conftest.
$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 /* System header to define __stub macros and hopefully few prototypes,
6254 which can conflict with char $ac_func(); below. */
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6274 if { (eval echo configure
:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6276 eval "ac_cv_func_$ac_func=yes"
6278 echo "configure: failed program was:" >&5
6279 cat conftest.
$ac_ext >&5
6281 eval "ac_cv_func_$ac_func=no"
6286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6288 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6289 cat >> confdefs.h
<<EOF
6290 #define $ac_tr_func 1
6294 echo "$ac_t""no" 1>&6
6298 for ac_func
in open64 _open64 __open64 creat64
6300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_func" >&5
6302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6305 cat > conftest.
$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* System header to define __stub macros and hopefully few prototypes,
6309 which can conflict with char $ac_func(); below. */
6311 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6318 /* The GNU C library defines this for functions which it implements
6319 to always fail with ENOSYS. Some functions are actually named
6320 something starting with __ and the normal name is an alias. */
6321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6329 if { (eval echo configure
:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6331 eval "ac_cv_func_$ac_func=yes"
6333 echo "configure: failed program was:" >&5
6334 cat conftest.
$ac_ext >&5
6336 eval "ac_cv_func_$ac_func=no"
6341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6343 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6344 cat >> confdefs.h
<<EOF
6345 #define $ac_tr_func 1
6349 echo "$ac_t""no" 1>&6
6355 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6358 if test x
$ac_cv_func_stat64 = xno
; then
6359 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6360 echo "configure:6361: checking for stat64 in <sys/stat.h>" >&5
6361 cat > conftest.
$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6365 #if defined(HAVE_UNISTD_H)
6368 #include <sys/stat.h>
6371 struct stat64 st64; exit(stat64(".",&st64));
6374 if { (eval echo configure
:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6376 ac_cv_func_stat64
=yes
6378 echo "configure: failed program was:" >&5
6379 cat conftest.
$ac_ext >&5
6382 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6383 if test x
$ac_cv_func_stat64 = xyes
; then
6384 cat >> confdefs.h
<<\EOF
6385 #define HAVE_STAT64 1
6391 if test x
$ac_cv_func_lstat64 = xno
; then
6392 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6393 echo "configure:6394: checking for lstat64 in <sys/stat.h>" >&5
6394 cat > conftest.
$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6398 #if defined(HAVE_UNISTD_H)
6401 #include <sys/stat.h>
6404 struct stat64 st64; exit(lstat64(".",&st64));
6407 if { (eval echo configure
:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6409 ac_cv_func_lstat64
=yes
6411 echo "configure: failed program was:" >&5
6412 cat conftest.
$ac_ext >&5
6415 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6416 if test x
$ac_cv_func_lstat64 = xyes
; then
6417 cat >> confdefs.h
<<\EOF
6418 #define HAVE_LSTAT64 1
6424 if test x
$ac_cv_func_fstat64 = xno
; then
6425 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6426 echo "configure:6427: checking for fstat64 in <sys/stat.h>" >&5
6427 cat > conftest.
$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6431 #if defined(HAVE_UNISTD_H)
6434 #include <sys/stat.h>
6437 struct stat64 st64; exit(fstat64(0,&st64));
6440 if { (eval echo configure
:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6442 ac_cv_func_fstat64
=yes
6444 echo "configure: failed program was:" >&5
6445 cat conftest.
$ac_ext >&5
6448 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6449 if test x
$ac_cv_func_fstat64 = xyes
; then
6450 cat >> confdefs.h
<<\EOF
6451 #define HAVE_FSTAT64 1
6458 # If no strcasecmp, check for it in some known places
6459 # It is in -lresolv on ReliantUNIX and UnixWare
6460 # -lresolve *must* follow -lnsl for name resolution to work properly
6463 if test x
$ac_cv_func_strcasecmp = xno
; then
6464 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6465 echo "configure:6466: checking for strcasecmp in -lresolv" >&5
6466 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 ac_save_LIBS
="$LIBS"
6471 LIBS
="-lresolv $LIBS"
6472 cat > conftest.
$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6484 if { (eval echo configure
:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6486 eval "ac_cv_lib_$ac_lib_var=yes"
6488 echo "configure: failed program was:" >&5
6489 cat conftest.
$ac_ext >&5
6491 eval "ac_cv_lib_$ac_lib_var=no"
6494 LIBS
="$ac_save_LIBS"
6497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 LIBS
="$LIBS -lresolv"
6500 cat >> confdefs.h
<<\EOF
6501 #define HAVE_STRCASECMP 1
6505 echo "$ac_t""no" 1>&6
6511 # Check for the functions putprpwnam, set_auth_parameters,
6512 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6513 # Needed for OSF1 and HPUX.
6517 *-lsecurity*) for ac_func
in putprpwnam
6519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6520 echo "configure:6521: checking for $ac_func" >&5
6521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6524 cat > conftest.
$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6527 /* System header to define __stub macros and hopefully few prototypes,
6528 which can conflict with char $ac_func(); below. */
6530 /* Override any gcc2 internal prototype to avoid an error. */
6531 /* We use char because int might match the return type of a gcc2
6532 builtin and then its argument prototype would still apply. */
6537 /* The GNU C library defines this for functions which it implements
6538 to always fail with ENOSYS. Some functions are actually named
6539 something starting with __ and the normal name is an alias. */
6540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6548 if { (eval echo configure
:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6550 eval "ac_cv_func_$ac_func=yes"
6552 echo "configure: failed program was:" >&5
6553 cat conftest.
$ac_ext >&5
6555 eval "ac_cv_func_$ac_func=no"
6560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6561 echo "$ac_t""yes" 1>&6
6562 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6563 cat >> confdefs.h
<<EOF
6564 #define $ac_tr_func 1
6568 echo "$ac_t""no" 1>&6
6572 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6573 echo "configure:6574: checking for putprpwnam in -lsecurity" >&5
6574 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 ac_save_LIBS
="$LIBS"
6579 LIBS
="-lsecurity $LIBS"
6580 cat > conftest.
$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6592 if { (eval echo configure
:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6594 eval "ac_cv_lib_$ac_lib_var=yes"
6596 echo "configure: failed program was:" >&5
6597 cat conftest.
$ac_ext >&5
6599 eval "ac_cv_lib_$ac_lib_var=no"
6602 LIBS
="$ac_save_LIBS"
6605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6606 echo "$ac_t""yes" 1>&6
6607 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6609 cat >> confdefs.h
<<EOF
6610 #define $ac_tr_lib 1
6613 LIBS
="-lsecurity $LIBS"
6616 echo "$ac_t""no" 1>&6
6619 for ac_func
in putprpwnam
6621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6622 echo "configure:6623: checking for $ac_func" >&5
6623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6624 echo $ac_n "(cached) $ac_c" 1>&6
6626 cat > conftest.
$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* System header to define __stub macros and hopefully few prototypes,
6630 which can conflict with char $ac_func(); below. */
6632 /* Override any gcc2 internal prototype to avoid an error. */
6633 /* We use char because int might match the return type of a gcc2
6634 builtin and then its argument prototype would still apply. */
6639 /* The GNU C library defines this for functions which it implements
6640 to always fail with ENOSYS. Some functions are actually named
6641 something starting with __ and the normal name is an alias. */
6642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6650 if { (eval echo configure
:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6652 eval "ac_cv_func_$ac_func=yes"
6654 echo "configure: failed program was:" >&5
6655 cat conftest.
$ac_ext >&5
6657 eval "ac_cv_func_$ac_func=no"
6662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6663 echo "$ac_t""yes" 1>&6
6664 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6665 cat >> confdefs.h
<<EOF
6666 #define $ac_tr_func 1
6670 echo "$ac_t""no" 1>&6
6678 *-lsec*) for ac_func
in putprpwnam
6680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_func" >&5
6682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6685 cat > conftest.
$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* System header to define __stub macros and hopefully few prototypes,
6689 which can conflict with char $ac_func(); below. */
6691 /* Override any gcc2 internal prototype to avoid an error. */
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6709 if { (eval echo configure
:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6711 eval "ac_cv_func_$ac_func=yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.
$ac_ext >&5
6716 eval "ac_cv_func_$ac_func=no"
6721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6724 cat >> confdefs.h
<<EOF
6725 #define $ac_tr_func 1
6729 echo "$ac_t""no" 1>&6
6733 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6734 echo "configure:6735: checking for putprpwnam in -lsec" >&5
6735 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6739 ac_save_LIBS
="$LIBS"
6741 cat > conftest.
$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6753 if { (eval echo configure
:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6755 eval "ac_cv_lib_$ac_lib_var=yes"
6757 echo "configure: failed program was:" >&5
6758 cat conftest.
$ac_ext >&5
6760 eval "ac_cv_lib_$ac_lib_var=no"
6763 LIBS
="$ac_save_LIBS"
6766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6768 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6770 cat >> confdefs.h
<<EOF
6771 #define $ac_tr_lib 1
6777 echo "$ac_t""no" 1>&6
6780 for ac_func
in putprpwnam
6782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6783 echo "configure:6784: checking for $ac_func" >&5
6784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6787 cat > conftest.
$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char $ac_func(); below. */
6793 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6800 /* The GNU C library defines this for functions which it implements
6801 to always fail with ENOSYS. Some functions are actually named
6802 something starting with __ and the normal name is an alias. */
6803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6811 if { (eval echo configure
:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6813 eval "ac_cv_func_$ac_func=yes"
6815 echo "configure: failed program was:" >&5
6816 cat conftest.
$ac_ext >&5
6818 eval "ac_cv_func_$ac_func=no"
6823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6824 echo "$ac_t""yes" 1>&6
6825 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6826 cat >> confdefs.h
<<EOF
6827 #define $ac_tr_func 1
6831 echo "$ac_t""no" 1>&6
6840 *-lsecurity*) for ac_func
in set_auth_parameters
6842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6843 echo "configure:6844: checking for $ac_func" >&5
6844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6845 echo $ac_n "(cached) $ac_c" 1>&6
6847 cat > conftest.
$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6850 /* System header to define __stub macros and hopefully few prototypes,
6851 which can conflict with char $ac_func(); below. */
6853 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6860 /* The GNU C library defines this for functions which it implements
6861 to always fail with ENOSYS. Some functions are actually named
6862 something starting with __ and the normal name is an alias. */
6863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6871 if { (eval echo configure
:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6873 eval "ac_cv_func_$ac_func=yes"
6875 echo "configure: failed program was:" >&5
6876 cat conftest.
$ac_ext >&5
6878 eval "ac_cv_func_$ac_func=no"
6883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6884 echo "$ac_t""yes" 1>&6
6885 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6886 cat >> confdefs.h
<<EOF
6887 #define $ac_tr_func 1
6891 echo "$ac_t""no" 1>&6
6895 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6896 echo "configure:6897: checking for set_auth_parameters in -lsecurity" >&5
6897 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6901 ac_save_LIBS
="$LIBS"
6902 LIBS
="-lsecurity $LIBS"
6903 cat > conftest.
$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6909 char set_auth_parameters();
6912 set_auth_parameters()
6915 if { (eval echo configure
:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6917 eval "ac_cv_lib_$ac_lib_var=yes"
6919 echo "configure: failed program was:" >&5
6920 cat conftest.
$ac_ext >&5
6922 eval "ac_cv_lib_$ac_lib_var=no"
6925 LIBS
="$ac_save_LIBS"
6928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6931 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6932 cat >> confdefs.h
<<EOF
6933 #define $ac_tr_lib 1
6936 LIBS
="-lsecurity $LIBS"
6939 echo "$ac_t""no" 1>&6
6942 for ac_func
in set_auth_parameters
6944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_func" >&5
6946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6947 echo $ac_n "(cached) $ac_c" 1>&6
6949 cat > conftest.
$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 /* System header to define __stub macros and hopefully few prototypes,
6953 which can conflict with char $ac_func(); below. */
6955 /* Override any gcc2 internal prototype to avoid an error. */
6956 /* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6962 /* The GNU C library defines this for functions which it implements
6963 to always fail with ENOSYS. Some functions are actually named
6964 something starting with __ and the normal name is an alias. */
6965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6973 if { (eval echo configure
:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6975 eval "ac_cv_func_$ac_func=yes"
6977 echo "configure: failed program was:" >&5
6978 cat conftest.
$ac_ext >&5
6980 eval "ac_cv_func_$ac_func=no"
6985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6986 echo "$ac_t""yes" 1>&6
6987 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6988 cat >> confdefs.h
<<EOF
6989 #define $ac_tr_func 1
6993 echo "$ac_t""no" 1>&6
7001 *-lsec*) for ac_func
in set_auth_parameters
7003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7004 echo "configure:7005: checking for $ac_func" >&5
7005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7008 cat > conftest.
$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func(); below. */
7014 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7021 /* The GNU C library defines this for functions which it implements
7022 to always fail with ENOSYS. Some functions are actually named
7023 something starting with __ and the normal name is an alias. */
7024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7032 if { (eval echo configure
:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7034 eval "ac_cv_func_$ac_func=yes"
7036 echo "configure: failed program was:" >&5
7037 cat conftest.
$ac_ext >&5
7039 eval "ac_cv_func_$ac_func=no"
7044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7046 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7047 cat >> confdefs.h
<<EOF
7048 #define $ac_tr_func 1
7052 echo "$ac_t""no" 1>&6
7056 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7057 echo "configure:7058: checking for set_auth_parameters in -lsec" >&5
7058 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7062 ac_save_LIBS
="$LIBS"
7064 cat > conftest.
$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7070 char set_auth_parameters();
7073 set_auth_parameters()
7076 if { (eval echo configure
:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7078 eval "ac_cv_lib_$ac_lib_var=yes"
7080 echo "configure: failed program was:" >&5
7081 cat conftest.
$ac_ext >&5
7083 eval "ac_cv_lib_$ac_lib_var=no"
7086 LIBS
="$ac_save_LIBS"
7089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7091 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7092 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7093 cat >> confdefs.h
<<EOF
7094 #define $ac_tr_lib 1
7100 echo "$ac_t""no" 1>&6
7103 for ac_func
in set_auth_parameters
7105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7106 echo "configure:7107: checking for $ac_func" >&5
7107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7110 cat > conftest.
$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* System header to define __stub macros and hopefully few prototypes,
7114 which can conflict with char $ac_func(); below. */
7116 /* Override any gcc2 internal prototype to avoid an error. */
7117 /* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7123 /* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7134 if { (eval echo configure
:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7136 eval "ac_cv_func_$ac_func=yes"
7138 echo "configure: failed program was:" >&5
7139 cat conftest.
$ac_ext >&5
7141 eval "ac_cv_func_$ac_func=no"
7146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7149 cat >> confdefs.h
<<EOF
7150 #define $ac_tr_func 1
7154 echo "$ac_t""no" 1>&6
7162 # UnixWare 7.x has its getspnam in -lgen
7164 *-lgen*) for ac_func
in getspnam
7166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7167 echo "configure:7168: checking for $ac_func" >&5
7168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7169 echo $ac_n "(cached) $ac_c" 1>&6
7171 cat > conftest.
$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7174 /* System header to define __stub macros and hopefully few prototypes,
7175 which can conflict with char $ac_func(); below. */
7177 /* Override any gcc2 internal prototype to avoid an error. */
7178 /* We use char because int might match the return type of a gcc2
7179 builtin and then its argument prototype would still apply. */
7184 /* The GNU C library defines this for functions which it implements
7185 to always fail with ENOSYS. Some functions are actually named
7186 something starting with __ and the normal name is an alias. */
7187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7195 if { (eval echo configure
:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7197 eval "ac_cv_func_$ac_func=yes"
7199 echo "configure: failed program was:" >&5
7200 cat conftest.
$ac_ext >&5
7202 eval "ac_cv_func_$ac_func=no"
7207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7208 echo "$ac_t""yes" 1>&6
7209 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7210 cat >> confdefs.h
<<EOF
7211 #define $ac_tr_func 1
7215 echo "$ac_t""no" 1>&6
7219 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7220 echo "configure:7221: checking for getspnam in -lgen" >&5
7221 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7223 echo $ac_n "(cached) $ac_c" 1>&6
7225 ac_save_LIBS
="$LIBS"
7227 cat > conftest.
$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7230 /* Override any gcc2 internal prototype to avoid an error. */
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7239 if { (eval echo configure
:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7241 eval "ac_cv_lib_$ac_lib_var=yes"
7243 echo "configure: failed program was:" >&5
7244 cat conftest.
$ac_ext >&5
7246 eval "ac_cv_lib_$ac_lib_var=no"
7249 LIBS
="$ac_save_LIBS"
7252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7253 echo "$ac_t""yes" 1>&6
7254 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7256 cat >> confdefs.h
<<EOF
7257 #define $ac_tr_lib 1
7263 echo "$ac_t""no" 1>&6
7266 for ac_func
in getspnam
7268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7269 echo "configure:7270: checking for $ac_func" >&5
7270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 cat > conftest.
$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7276 /* System header to define __stub macros and hopefully few prototypes,
7277 which can conflict with char $ac_func(); below. */
7279 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */
7286 /* The GNU C library defines this for functions which it implements
7287 to always fail with ENOSYS. Some functions are actually named
7288 something starting with __ and the normal name is an alias. */
7289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7297 if { (eval echo configure
:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7299 eval "ac_cv_func_$ac_func=yes"
7301 echo "configure: failed program was:" >&5
7302 cat conftest.
$ac_ext >&5
7304 eval "ac_cv_func_$ac_func=no"
7309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7311 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7312 cat >> confdefs.h
<<EOF
7313 #define $ac_tr_func 1
7317 echo "$ac_t""no" 1>&6
7326 *-lsecurity*) for ac_func
in getspnam
7328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7329 echo "configure:7330: checking for $ac_func" >&5
7330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7333 cat > conftest.
$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 /* System header to define __stub macros and hopefully few prototypes,
7337 which can conflict with char $ac_func(); below. */
7339 /* Override any gcc2 internal prototype to avoid an error. */
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7346 /* The GNU C library defines this for functions which it implements
7347 to always fail with ENOSYS. Some functions are actually named
7348 something starting with __ and the normal name is an alias. */
7349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7357 if { (eval echo configure
:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7359 eval "ac_cv_func_$ac_func=yes"
7361 echo "configure: failed program was:" >&5
7362 cat conftest.
$ac_ext >&5
7364 eval "ac_cv_func_$ac_func=no"
7369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7370 echo "$ac_t""yes" 1>&6
7371 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7372 cat >> confdefs.h
<<EOF
7373 #define $ac_tr_func 1
7377 echo "$ac_t""no" 1>&6
7381 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7382 echo "configure:7383: checking for getspnam in -lsecurity" >&5
7383 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7385 echo $ac_n "(cached) $ac_c" 1>&6
7387 ac_save_LIBS
="$LIBS"
7388 LIBS
="-lsecurity $LIBS"
7389 cat > conftest.
$ac_ext <<EOF
7390 #line 7391 "configure"
7391 #include "confdefs.h"
7392 /* Override any gcc2 internal prototype to avoid an error. */
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7401 if { (eval echo configure
:7402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7403 eval "ac_cv_lib_$ac_lib_var=yes"
7405 echo "configure: failed program was:" >&5
7406 cat conftest.
$ac_ext >&5
7408 eval "ac_cv_lib_$ac_lib_var=no"
7411 LIBS
="$ac_save_LIBS"
7414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7415 echo "$ac_t""yes" 1>&6
7416 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7417 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7418 cat >> confdefs.h
<<EOF
7419 #define $ac_tr_lib 1
7422 LIBS
="-lsecurity $LIBS"
7425 echo "$ac_t""no" 1>&6
7428 for ac_func
in getspnam
7430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7431 echo "configure:7432: checking for $ac_func" >&5
7432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7433 echo $ac_n "(cached) $ac_c" 1>&6
7435 cat > conftest.
$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 /* System header to define __stub macros and hopefully few prototypes,
7439 which can conflict with char $ac_func(); below. */
7441 /* Override any gcc2 internal prototype to avoid an error. */
7442 /* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7448 /* The GNU C library defines this for functions which it implements
7449 to always fail with ENOSYS. Some functions are actually named
7450 something starting with __ and the normal name is an alias. */
7451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7459 if { (eval echo configure
:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7461 eval "ac_cv_func_$ac_func=yes"
7463 echo "configure: failed program was:" >&5
7464 cat conftest.
$ac_ext >&5
7466 eval "ac_cv_func_$ac_func=no"
7471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7472 echo "$ac_t""yes" 1>&6
7473 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7474 cat >> confdefs.h
<<EOF
7475 #define $ac_tr_func 1
7479 echo "$ac_t""no" 1>&6
7487 *-lsec*) for ac_func
in getspnam
7489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7490 echo "configure:7491: checking for $ac_func" >&5
7491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7494 cat > conftest.
$ac_ext <<EOF
7495 #line 7496 "configure"
7496 #include "confdefs.h"
7497 /* System header to define __stub macros and hopefully few prototypes,
7498 which can conflict with char $ac_func(); below. */
7500 /* Override any gcc2 internal prototype to avoid an error. */
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7507 /* The GNU C library defines this for functions which it implements
7508 to always fail with ENOSYS. Some functions are actually named
7509 something starting with __ and the normal name is an alias. */
7510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7518 if { (eval echo configure
:7519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7520 eval "ac_cv_func_$ac_func=yes"
7522 echo "configure: failed program was:" >&5
7523 cat conftest.
$ac_ext >&5
7525 eval "ac_cv_func_$ac_func=no"
7530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7531 echo "$ac_t""yes" 1>&6
7532 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7533 cat >> confdefs.h
<<EOF
7534 #define $ac_tr_func 1
7538 echo "$ac_t""no" 1>&6
7542 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7543 echo "configure:7544: checking for getspnam in -lsec" >&5
7544 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7548 ac_save_LIBS
="$LIBS"
7550 cat > conftest.
$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7553 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7562 if { (eval echo configure
:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7564 eval "ac_cv_lib_$ac_lib_var=yes"
7566 echo "configure: failed program was:" >&5
7567 cat conftest.
$ac_ext >&5
7569 eval "ac_cv_lib_$ac_lib_var=no"
7572 LIBS
="$ac_save_LIBS"
7575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7576 echo "$ac_t""yes" 1>&6
7577 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7578 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7579 cat >> confdefs.h
<<EOF
7580 #define $ac_tr_lib 1
7586 echo "$ac_t""no" 1>&6
7589 for ac_func
in getspnam
7591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_func" >&5
7593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7596 cat > conftest.
$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* System header to define __stub macros and hopefully few prototypes,
7600 which can conflict with char $ac_func(); below. */
7602 /* Override any gcc2 internal prototype to avoid an error. */
7603 /* We use char because int might match the return type of a gcc2
7604 builtin and then its argument prototype would still apply. */
7609 /* The GNU C library defines this for functions which it implements
7610 to always fail with ENOSYS. Some functions are actually named
7611 something starting with __ and the normal name is an alias. */
7612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7620 if { (eval echo configure
:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7622 eval "ac_cv_func_$ac_func=yes"
7624 echo "configure: failed program was:" >&5
7625 cat conftest.
$ac_ext >&5
7627 eval "ac_cv_func_$ac_func=no"
7632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7633 echo "$ac_t""yes" 1>&6
7634 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7635 cat >> confdefs.h
<<EOF
7636 #define $ac_tr_func 1
7640 echo "$ac_t""no" 1>&6
7649 *-lsecurity*) for ac_func
in bigcrypt
7651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7652 echo "configure:7653: checking for $ac_func" >&5
7653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7654 echo $ac_n "(cached) $ac_c" 1>&6
7656 cat > conftest.
$ac_ext <<EOF
7657 #line 7658 "configure"
7658 #include "confdefs.h"
7659 /* System header to define __stub macros and hopefully few prototypes,
7660 which can conflict with char $ac_func(); below. */
7662 /* Override any gcc2 internal prototype to avoid an error. */
7663 /* We use char because int might match the return type of a gcc2
7664 builtin and then its argument prototype would still apply. */
7669 /* The GNU C library defines this for functions which it implements
7670 to always fail with ENOSYS. Some functions are actually named
7671 something starting with __ and the normal name is an alias. */
7672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7680 if { (eval echo configure
:7681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7682 eval "ac_cv_func_$ac_func=yes"
7684 echo "configure: failed program was:" >&5
7685 cat conftest.
$ac_ext >&5
7687 eval "ac_cv_func_$ac_func=no"
7692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7693 echo "$ac_t""yes" 1>&6
7694 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7695 cat >> confdefs.h
<<EOF
7696 #define $ac_tr_func 1
7700 echo "$ac_t""no" 1>&6
7704 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7705 echo "configure:7706: checking for bigcrypt in -lsecurity" >&5
7706 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7708 echo $ac_n "(cached) $ac_c" 1>&6
7710 ac_save_LIBS
="$LIBS"
7711 LIBS
="-lsecurity $LIBS"
7712 cat > conftest.
$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7715 /* Override any gcc2 internal prototype to avoid an error. */
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7724 if { (eval echo configure
:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7726 eval "ac_cv_lib_$ac_lib_var=yes"
7728 echo "configure: failed program was:" >&5
7729 cat conftest.
$ac_ext >&5
7731 eval "ac_cv_lib_$ac_lib_var=no"
7734 LIBS
="$ac_save_LIBS"
7737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7738 echo "$ac_t""yes" 1>&6
7739 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7740 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7741 cat >> confdefs.h
<<EOF
7742 #define $ac_tr_lib 1
7745 LIBS
="-lsecurity $LIBS"
7748 echo "$ac_t""no" 1>&6
7751 for ac_func
in bigcrypt
7753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7754 echo "configure:7755: checking for $ac_func" >&5
7755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 cat > conftest.
$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* System header to define __stub macros and hopefully few prototypes,
7762 which can conflict with char $ac_func(); below. */
7764 /* Override any gcc2 internal prototype to avoid an error. */
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7771 /* The GNU C library defines this for functions which it implements
7772 to always fail with ENOSYS. Some functions are actually named
7773 something starting with __ and the normal name is an alias. */
7774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7782 if { (eval echo configure
:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7784 eval "ac_cv_func_$ac_func=yes"
7786 echo "configure: failed program was:" >&5
7787 cat conftest.
$ac_ext >&5
7789 eval "ac_cv_func_$ac_func=no"
7794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7795 echo "$ac_t""yes" 1>&6
7796 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7797 cat >> confdefs.h
<<EOF
7798 #define $ac_tr_func 1
7802 echo "$ac_t""no" 1>&6
7810 *-lsec*) for ac_func
in bigcrypt
7812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7813 echo "configure:7814: checking for $ac_func" >&5
7814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7817 cat > conftest.
$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 /* System header to define __stub macros and hopefully few prototypes,
7821 which can conflict with char $ac_func(); below. */
7823 /* Override any gcc2 internal prototype to avoid an error. */
7824 /* We use char because int might match the return type of a gcc2
7825 builtin and then its argument prototype would still apply. */
7830 /* The GNU C library defines this for functions which it implements
7831 to always fail with ENOSYS. Some functions are actually named
7832 something starting with __ and the normal name is an alias. */
7833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7841 if { (eval echo configure
:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7843 eval "ac_cv_func_$ac_func=yes"
7845 echo "configure: failed program was:" >&5
7846 cat conftest.
$ac_ext >&5
7848 eval "ac_cv_func_$ac_func=no"
7853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7854 echo "$ac_t""yes" 1>&6
7855 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7856 cat >> confdefs.h
<<EOF
7857 #define $ac_tr_func 1
7861 echo "$ac_t""no" 1>&6
7865 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7866 echo "configure:7867: checking for bigcrypt in -lsec" >&5
7867 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7871 ac_save_LIBS
="$LIBS"
7873 cat > conftest.
$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7885 if { (eval echo configure
:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7887 eval "ac_cv_lib_$ac_lib_var=yes"
7889 echo "configure: failed program was:" >&5
7890 cat conftest.
$ac_ext >&5
7892 eval "ac_cv_lib_$ac_lib_var=no"
7895 LIBS
="$ac_save_LIBS"
7898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7899 echo "$ac_t""yes" 1>&6
7900 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7902 cat >> confdefs.h
<<EOF
7903 #define $ac_tr_lib 1
7909 echo "$ac_t""no" 1>&6
7912 for ac_func
in bigcrypt
7914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7915 echo "configure:7916: checking for $ac_func" >&5
7916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6
7919 cat > conftest.
$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* System header to define __stub macros and hopefully few prototypes,
7923 which can conflict with char $ac_func(); below. */
7925 /* Override any gcc2 internal prototype to avoid an error. */
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7932 /* The GNU C library defines this for functions which it implements
7933 to always fail with ENOSYS. Some functions are actually named
7934 something starting with __ and the normal name is an alias. */
7935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7943 if { (eval echo configure
:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7945 eval "ac_cv_func_$ac_func=yes"
7947 echo "configure: failed program was:" >&5
7948 cat conftest.
$ac_ext >&5
7950 eval "ac_cv_func_$ac_func=no"
7955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7958 cat >> confdefs.h
<<EOF
7959 #define $ac_tr_func 1
7963 echo "$ac_t""no" 1>&6
7972 *-lsecurity*) for ac_func
in getprpwnam
7974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7975 echo "configure:7976: checking for $ac_func" >&5
7976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7977 echo $ac_n "(cached) $ac_c" 1>&6
7979 cat > conftest.
$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7982 /* System header to define __stub macros and hopefully few prototypes,
7983 which can conflict with char $ac_func(); below. */
7985 /* Override any gcc2 internal prototype to avoid an error. */
7986 /* We use char because int might match the return type of a gcc2
7987 builtin and then its argument prototype would still apply. */
7992 /* The GNU C library defines this for functions which it implements
7993 to always fail with ENOSYS. Some functions are actually named
7994 something starting with __ and the normal name is an alias. */
7995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 if { (eval echo configure
:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8005 eval "ac_cv_func_$ac_func=yes"
8007 echo "configure: failed program was:" >&5
8008 cat conftest.
$ac_ext >&5
8010 eval "ac_cv_func_$ac_func=no"
8015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8016 echo "$ac_t""yes" 1>&6
8017 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8018 cat >> confdefs.h
<<EOF
8019 #define $ac_tr_func 1
8023 echo "$ac_t""no" 1>&6
8027 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8028 echo "configure:8029: checking for getprpwnam in -lsecurity" >&5
8029 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 ac_save_LIBS
="$LIBS"
8034 LIBS
="-lsecurity $LIBS"
8035 cat > conftest.
$ac_ext <<EOF
8036 #line 8037 "configure"
8037 #include "confdefs.h"
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 /* We use char because int might match the return type of a gcc2
8040 builtin and then its argument prototype would still apply. */
8047 if { (eval echo configure
:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8049 eval "ac_cv_lib_$ac_lib_var=yes"
8051 echo "configure: failed program was:" >&5
8052 cat conftest.
$ac_ext >&5
8054 eval "ac_cv_lib_$ac_lib_var=no"
8057 LIBS
="$ac_save_LIBS"
8060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8061 echo "$ac_t""yes" 1>&6
8062 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8063 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8064 cat >> confdefs.h
<<EOF
8065 #define $ac_tr_lib 1
8068 LIBS
="-lsecurity $LIBS"
8071 echo "$ac_t""no" 1>&6
8074 for ac_func
in getprpwnam
8076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8077 echo "configure:8078: checking for $ac_func" >&5
8078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8079 echo $ac_n "(cached) $ac_c" 1>&6
8081 cat > conftest.
$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8084 /* System header to define __stub macros and hopefully few prototypes,
8085 which can conflict with char $ac_func(); below. */
8087 /* Override any gcc2 internal prototype to avoid an error. */
8088 /* We use char because int might match the return type of a gcc2
8089 builtin and then its argument prototype would still apply. */
8094 /* The GNU C library defines this for functions which it implements
8095 to always fail with ENOSYS. Some functions are actually named
8096 something starting with __ and the normal name is an alias. */
8097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8105 if { (eval echo configure
:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8107 eval "ac_cv_func_$ac_func=yes"
8109 echo "configure: failed program was:" >&5
8110 cat conftest.
$ac_ext >&5
8112 eval "ac_cv_func_$ac_func=no"
8117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8118 echo "$ac_t""yes" 1>&6
8119 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8120 cat >> confdefs.h
<<EOF
8121 #define $ac_tr_func 1
8125 echo "$ac_t""no" 1>&6
8133 *-lsec*) for ac_func
in getprpwnam
8135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8136 echo "configure:8137: checking for $ac_func" >&5
8137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8140 cat > conftest.
$ac_ext <<EOF
8141 #line 8142 "configure"
8142 #include "confdefs.h"
8143 /* System header to define __stub macros and hopefully few prototypes,
8144 which can conflict with char $ac_func(); below. */
8146 /* Override any gcc2 internal prototype to avoid an error. */
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8153 /* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8164 if { (eval echo configure
:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8166 eval "ac_cv_func_$ac_func=yes"
8168 echo "configure: failed program was:" >&5
8169 cat conftest.
$ac_ext >&5
8171 eval "ac_cv_func_$ac_func=no"
8176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8177 echo "$ac_t""yes" 1>&6
8178 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8179 cat >> confdefs.h
<<EOF
8180 #define $ac_tr_func 1
8184 echo "$ac_t""no" 1>&6
8188 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8189 echo "configure:8190: checking for getprpwnam in -lsec" >&5
8190 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8192 echo $ac_n "(cached) $ac_c" 1>&6
8194 ac_save_LIBS
="$LIBS"
8196 cat > conftest.
$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8208 if { (eval echo configure
:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8210 eval "ac_cv_lib_$ac_lib_var=yes"
8212 echo "configure: failed program was:" >&5
8213 cat conftest.
$ac_ext >&5
8215 eval "ac_cv_lib_$ac_lib_var=no"
8218 LIBS
="$ac_save_LIBS"
8221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8222 echo "$ac_t""yes" 1>&6
8223 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8224 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8225 cat >> confdefs.h
<<EOF
8226 #define $ac_tr_lib 1
8232 echo "$ac_t""no" 1>&6
8235 for ac_func
in getprpwnam
8237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8238 echo "configure:8239: checking for $ac_func" >&5
8239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8242 cat > conftest.
$ac_ext <<EOF
8243 #line 8244 "configure"
8244 #include "confdefs.h"
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char $ac_func(); below. */
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8255 /* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */
8258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8266 if { (eval echo configure
:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8268 eval "ac_cv_func_$ac_func=yes"
8270 echo "configure: failed program was:" >&5
8271 cat conftest.
$ac_ext >&5
8273 eval "ac_cv_func_$ac_func=no"
8278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8281 cat >> confdefs.h
<<EOF
8282 #define $ac_tr_func 1
8286 echo "$ac_t""no" 1>&6
8294 # this bit needs to be modified for each OS that is suported by
8295 # smbwrapper. You need to specify how to created a shared library and
8296 # how to compile C code to produce PIC object files
8298 # these are the defaults, good for lots of systems
8308 # and these are for particular systems
8310 *linux
*) cat >> confdefs.h
<<\EOF
8318 *solaris
*) cat >> confdefs.h
<<\EOF
8323 LDSHFLAGS
="-Wl,-h,\$@.so -G"
8324 if test "${ac_cv_prog_CC}" = "gcc"; then
8327 PICFLAG
="-KPIC -xO4"
8332 *sunos
*) cat >> confdefs.h
<<\EOF
8337 LDSHFLAGS
="-Wl,-h,\$@ -G"
8338 PICFLAG
="-KPIC -O2" # Is this correct for SunOS
8340 *bsd
*) BLDSHARED
="true"
8341 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8344 *irix
*) cat >> confdefs.h
<<\EOF
8349 *irix6
*) cat >> confdefs.h
<<\EOF
8355 ATTEMPT_WRAP32_BUILD
=yes
8357 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8358 if test "${ac_cv_prog_CC}" = "gcc"; then
8364 *aix
*) cat >> confdefs.h
<<\EOF
8369 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8370 PICFLAG
="-O2 -qmaxmem=6000"
8372 *hpux
*) cat >> confdefs.h
<<\EOF
8377 # Use special PIC flags for the native HP-UX compiler.
8378 if test $ac_cv_prog_cc_Ae = yes; then
8380 LDSHFLAGS
="-b -z +h \$@"
8384 *qnx
*) cat >> confdefs.h
<<\EOF
8388 *osf
*) cat >> confdefs.h
<<\EOF
8393 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8396 *sco
*) cat >> confdefs.h
<<\EOF
8400 *unixware
*) cat >> confdefs.h
<<\EOF
8405 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8408 *next2
*) cat >> confdefs.h
<<\EOF
8412 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8413 set dummy
groff; ac_word
=$2
8414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8415 echo "configure:8416: checking for $ac_word" >&5
8416 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8419 if test -n "$ROFF"; then
8420 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8422 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8424 for ac_dir
in $ac_dummy; do
8425 test -z "$ac_dir" && ac_dir
=.
8426 if test -f $ac_dir/$ac_word; then
8427 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8434 ROFF
="$ac_cv_prog_ROFF"
8435 if test -n "$ROFF"; then
8436 echo "$ac_t""$ROFF" 1>&6
8438 echo "$ac_t""no" 1>&6
8443 *-univel-*) if test "$GCC" != yes ; then
8444 cat >> confdefs.h
<<\EOF
8445 #define HAVE_MEMSET 1
8451 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8452 #define RELIANTUNIX 1
8458 if test "$GCC" != yes ; then
8459 cat >> confdefs.h
<<\EOF
8460 #define HAVE_MEMSET 1
8470 echo $ac_n "checking for long long""... $ac_c" 1>&6
8471 echo "configure:8472: checking for long long" >&5
8472 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8476 if test "$cross_compiling" = yes; then
8477 samba_cv_have_longlong
=cross
8479 cat > conftest.
$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8483 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8485 if { (eval echo configure
:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8487 samba_cv_have_longlong
=yes
8489 echo "configure: failed program was:" >&5
8490 cat conftest.
$ac_ext >&5
8492 samba_cv_have_longlong
=no
8499 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8500 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8501 cat >> confdefs.h
<<\EOF
8502 #define HAVE_LONGLONG 1
8508 # Check if the compiler supports the LL prefix on long long integers.
8511 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8512 echo "configure:8513: checking for LL suffix on long long integers" >&5
8513 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8517 cat > conftest.
$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8522 long long i = 0x8000000000LL
8525 if { (eval echo configure
:8526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8527 samba_cv_compiler_supports_ll
=yes
8529 echo "configure: failed program was:" >&5
8530 cat conftest.
$ac_ext >&5
8532 samba_cv_compiler_supports_ll
=no
8537 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8538 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8539 cat >> confdefs.h
<<\EOF
8540 #define COMPILER_SUPPORTS_LL 1
8546 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8547 echo "configure:8548: checking for 64 bit off_t" >&5
8548 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8552 if test "$cross_compiling" = yes; then
8553 samba_cv_SIZEOF_OFF_T
=cross
8555 cat > conftest.
$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8559 #include <sys/stat.h>
8560 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8562 if { (eval echo configure
:8563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8564 samba_cv_SIZEOF_OFF_T
=yes
8566 echo "configure: failed program was:" >&5
8567 cat conftest.
$ac_ext >&5
8569 samba_cv_SIZEOF_OFF_T
=no
8576 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8577 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8578 cat >> confdefs.h
<<\EOF
8579 #define SIZEOF_OFF_T 8
8584 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8585 echo "configure:8586: checking for off64_t" >&5
8586 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8590 if test "$cross_compiling" = yes; then
8591 samba_cv_HAVE_OFF64_T
=cross
8593 cat > conftest.
$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8597 #if defined(HAVE_UNISTD_H)
8601 #include <sys/stat.h>
8602 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8604 if { (eval echo configure
:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8606 samba_cv_HAVE_OFF64_T
=yes
8608 echo "configure: failed program was:" >&5
8609 cat conftest.
$ac_ext >&5
8611 samba_cv_HAVE_OFF64_T
=no
8618 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8619 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8620 cat >> confdefs.h
<<\EOF
8621 #define HAVE_OFF64_T 1
8626 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8627 echo "configure:8628: checking for 64 bit ino_t" >&5
8628 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8632 if test "$cross_compiling" = yes; then
8633 samba_cv_SIZEOF_INO_T
=cross
8635 cat > conftest.
$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8639 #include <sys/stat.h>
8640 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8642 if { (eval echo configure
:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8644 samba_cv_SIZEOF_INO_T
=yes
8646 echo "configure: failed program was:" >&5
8647 cat conftest.
$ac_ext >&5
8649 samba_cv_SIZEOF_INO_T
=no
8656 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8657 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8658 cat >> confdefs.h
<<\EOF
8659 #define SIZEOF_INO_T 8
8664 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8665 echo "configure:8666: checking for ino64_t" >&5
8666 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8670 if test "$cross_compiling" = yes; then
8671 samba_cv_HAVE_INO64_T
=cross
8673 cat > conftest.
$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8677 #if defined(HAVE_UNISTD_H)
8681 #include <sys/stat.h>
8682 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8684 if { (eval echo configure
:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8686 samba_cv_HAVE_INO64_T
=yes
8688 echo "configure: failed program was:" >&5
8689 cat conftest.
$ac_ext >&5
8691 samba_cv_HAVE_INO64_T
=no
8698 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8699 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8700 cat >> confdefs.h
<<\EOF
8701 #define HAVE_INO64_T 1
8706 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8707 echo "configure:8708: checking for struct dirent64" >&5
8708 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8709 echo $ac_n "(cached) $ac_c" 1>&6
8712 cat > conftest.
$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8716 #if defined(HAVE_UNISTD_H)
8719 #include <sys/types.h>
8725 if { (eval echo configure
:8726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8727 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8729 echo "configure: failed program was:" >&5
8730 cat conftest.
$ac_ext >&5
8732 samba_cv_HAVE_STRUCT_DIRENT64
=no
8737 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8738 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8739 cat >> confdefs.h
<<\EOF
8740 #define HAVE_STRUCT_DIRENT64 1
8745 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8746 echo "configure:8747: checking for unsigned char" >&5
8747 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8748 echo $ac_n "(cached) $ac_c" 1>&6
8751 if test "$cross_compiling" = yes; then
8752 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8754 cat > conftest.
$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8758 main() { char c; c=250; exit((c > 0)?0:1); }
8760 if { (eval echo configure
:8761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8762 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8764 echo "configure: failed program was:" >&5
8765 cat conftest.
$ac_ext >&5
8767 samba_cv_HAVE_UNSIGNED_CHAR
=no
8774 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8775 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8776 cat >> confdefs.h
<<\EOF
8777 #define HAVE_UNSIGNED_CHAR 1
8782 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8783 echo "configure:8784: checking for sin_len in sock" >&5
8784 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8785 echo $ac_n "(cached) $ac_c" 1>&6
8788 cat > conftest.
$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 #include <sys/types.h>
8792 #include <sys/socket.h>
8793 #include <netinet/in.h>
8795 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8798 if { (eval echo configure
:8799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8800 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8802 echo "configure: failed program was:" >&5
8803 cat conftest.
$ac_ext >&5
8805 samba_cv_HAVE_SOCK_SIN_LEN
=no
8810 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8811 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8812 cat >> confdefs.h
<<\EOF
8813 #define HAVE_SOCK_SIN_LEN 1
8818 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8819 echo "configure:8820: checking whether seekdir returns void" >&5
8820 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8824 cat > conftest.
$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8827 #include <sys/types.h>
8829 void seekdir(DIR *d, long loc) { return; }
8834 if { (eval echo configure
:8835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8836 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8838 echo "configure: failed program was:" >&5
8839 cat conftest.
$ac_ext >&5
8841 samba_cv_SEEKDIR_RETURNS_VOID
=no
8846 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8847 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8848 cat >> confdefs.h
<<\EOF
8849 #define SEEKDIR_RETURNS_VOID 1
8854 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8855 echo "configure:8856: checking for __FILE__ macro" >&5
8856 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8857 echo $ac_n "(cached) $ac_c" 1>&6
8860 cat > conftest.
$ac_ext <<EOF
8861 #line 8862 "configure"
8862 #include "confdefs.h"
8865 printf("%s\n", __FILE__);
8868 if { (eval echo configure
:8869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8870 samba_cv_HAVE_FILE_MACRO
=yes
8872 echo "configure: failed program was:" >&5
8873 cat conftest.
$ac_ext >&5
8875 samba_cv_HAVE_FILE_MACRO
=no
8880 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8881 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8882 cat >> confdefs.h
<<\EOF
8883 #define HAVE_FILE_MACRO 1
8888 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8889 echo "configure:8890: checking for __FUNCTION__ macro" >&5
8890 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8894 cat > conftest.
$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8899 printf("%s\n", __FUNCTION__);
8902 if { (eval echo configure
:8903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8904 samba_cv_HAVE_FUNCTION_MACRO
=yes
8906 echo "configure: failed program was:" >&5
8907 cat conftest.
$ac_ext >&5
8909 samba_cv_HAVE_FUNCTION_MACRO
=no
8914 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8915 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8916 cat >> confdefs.h
<<\EOF
8917 #define HAVE_FUNCTION_MACRO 1
8922 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8923 echo "configure:8924: checking if gettimeofday takes tz argument" >&5
8924 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8928 if test "$cross_compiling" = yes; then
8929 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8931 cat > conftest.
$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8935 #include <sys/time.h>
8937 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8939 if { (eval echo configure
:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8941 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8943 echo "configure: failed program was:" >&5
8944 cat conftest.
$ac_ext >&5
8946 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8953 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8954 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8955 cat >> confdefs.h
<<\EOF
8956 #define HAVE_GETTIMEOFDAY_TZ 1
8961 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8962 echo "configure:8963: checking for C99 vsnprintf" >&5
8963 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8967 if test "$cross_compiling" = yes; then
8968 samba_cv_HAVE_C99_VSNPRINTF
=cross
8970 cat > conftest.
$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8974 #include <sys/types.h>
8976 void foo(const char *format, ...) {
8981 va_start(ap, format);
8982 len = vsnprintf(0, 0, format, ap);
8984 if (len != 5) exit(1);
8986 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8990 main() { foo("hello"); }
8993 if { (eval echo configure
:8994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8995 samba_cv_HAVE_C99_VSNPRINTF
=yes
8997 echo "configure: failed program was:" >&5
8998 cat conftest.
$ac_ext >&5
9000 samba_cv_HAVE_C99_VSNPRINTF
=no
9007 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9008 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9009 cat >> confdefs.h
<<\EOF
9010 #define HAVE_C99_VSNPRINTF 1
9015 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9016 echo "configure:9017: checking for broken readdir" >&5
9017 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9021 if test "$cross_compiling" = yes; then
9022 samba_cv_HAVE_BROKEN_READDIR
=cross
9024 cat > conftest.
$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9027 #include <sys/types.h>
9029 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9030 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9031 di->d_name[0] == 0) exit(0); exit(1);}
9033 if { (eval echo configure
:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9035 samba_cv_HAVE_BROKEN_READDIR
=yes
9037 echo "configure: failed program was:" >&5
9038 cat conftest.
$ac_ext >&5
9040 samba_cv_HAVE_BROKEN_READDIR
=no
9047 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9048 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9049 cat >> confdefs.h
<<\EOF
9050 #define HAVE_BROKEN_READDIR 1
9055 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9056 echo "configure:9057: checking for utimbuf" >&5
9057 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9061 cat > conftest.
$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <sys/types.h>
9067 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9070 if { (eval echo configure
:9071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9072 samba_cv_HAVE_UTIMBUF
=yes
9074 echo "configure: failed program was:" >&5
9075 cat conftest.
$ac_ext >&5
9077 samba_cv_HAVE_UTIMBUF
=no
9082 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9083 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9084 cat >> confdefs.h
<<\EOF
9085 #define HAVE_UTIMBUF 1
9091 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9094 echo "configure:9095: checking for $ac_func" >&5
9095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9098 cat > conftest.
$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 /* System header to define __stub macros and hopefully few prototypes,
9102 which can conflict with char $ac_func(); below. */
9104 /* Override any gcc2 internal prototype to avoid an error. */
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9111 /* The GNU C library defines this for functions which it implements
9112 to always fail with ENOSYS. Some functions are actually named
9113 something starting with __ and the normal name is an alias. */
9114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9122 if { (eval echo configure
:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9124 eval "ac_cv_func_$ac_func=yes"
9126 echo "configure: failed program was:" >&5
9127 cat conftest.
$ac_ext >&5
9129 eval "ac_cv_func_$ac_func=no"
9134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9135 echo "$ac_t""yes" 1>&6
9136 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9137 cat >> confdefs.h
<<EOF
9138 #define $ac_tr_func 1
9142 echo "$ac_t""no" 1>&6
9147 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9148 echo "configure:9149: checking for ut_name in utmp" >&5
9149 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9153 cat > conftest.
$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9156 #include <sys/types.h>
9159 struct utmp ut; ut.ut_name[0] = 'a';
9162 if { (eval echo configure
:9163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9164 samba_cv_HAVE_UT_UT_NAME
=yes
9166 echo "configure: failed program was:" >&5
9167 cat conftest.
$ac_ext >&5
9169 samba_cv_HAVE_UT_UT_NAME
=no
9174 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9175 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9176 cat >> confdefs.h
<<\EOF
9177 #define HAVE_UT_UT_NAME 1
9182 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9183 echo "configure:9184: checking for ut_user in utmp" >&5
9184 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9185 echo $ac_n "(cached) $ac_c" 1>&6
9188 cat > conftest.
$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191 #include <sys/types.h>
9194 struct utmp ut; ut.ut_user[0] = 'a';
9197 if { (eval echo configure
:9198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9199 samba_cv_HAVE_UT_UT_USER
=yes
9201 echo "configure: failed program was:" >&5
9202 cat conftest.
$ac_ext >&5
9204 samba_cv_HAVE_UT_UT_USER
=no
9209 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9210 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9211 cat >> confdefs.h
<<\EOF
9212 #define HAVE_UT_UT_USER 1
9217 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9218 echo "configure:9219: checking for ut_id in utmp" >&5
9219 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9220 echo $ac_n "(cached) $ac_c" 1>&6
9223 cat > conftest.
$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9226 #include <sys/types.h>
9229 struct utmp ut; ut.ut_id[0] = 'a';
9232 if { (eval echo configure
:9233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9234 samba_cv_HAVE_UT_UT_ID
=yes
9236 echo "configure: failed program was:" >&5
9237 cat conftest.
$ac_ext >&5
9239 samba_cv_HAVE_UT_UT_ID
=no
9244 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9245 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9246 cat >> confdefs.h
<<\EOF
9247 #define HAVE_UT_UT_ID 1
9252 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9253 echo "configure:9254: checking for ut_host in utmp" >&5
9254 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9258 cat > conftest.
$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9261 #include <sys/types.h>
9264 struct utmp ut; ut.ut_host[0] = 'a';
9267 if { (eval echo configure
:9268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9269 samba_cv_HAVE_UT_UT_HOST
=yes
9271 echo "configure: failed program was:" >&5
9272 cat conftest.
$ac_ext >&5
9274 samba_cv_HAVE_UT_UT_HOST
=no
9279 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9280 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9281 cat >> confdefs.h
<<\EOF
9282 #define HAVE_UT_UT_HOST 1
9287 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9288 echo "configure:9289: checking for ut_time in utmp" >&5
9289 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9293 cat > conftest.
$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9296 #include <sys/types.h>
9299 struct utmp ut; time_t t; ut.ut_time = t;
9302 if { (eval echo configure
:9303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9304 samba_cv_HAVE_UT_UT_TIME
=yes
9306 echo "configure: failed program was:" >&5
9307 cat conftest.
$ac_ext >&5
9309 samba_cv_HAVE_UT_UT_TIME
=no
9314 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9315 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9316 cat >> confdefs.h
<<\EOF
9317 #define HAVE_UT_UT_TIME 1
9322 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9323 echo "configure:9324: checking for ut_tv in utmp" >&5
9324 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9328 cat > conftest.
$ac_ext <<EOF
9329 #line 9330 "configure"
9330 #include "confdefs.h"
9331 #include <sys/types.h>
9334 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9337 if { (eval echo configure
:9338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9339 samba_cv_HAVE_UT_UT_TV
=yes
9341 echo "configure: failed program was:" >&5
9342 cat conftest.
$ac_ext >&5
9344 samba_cv_HAVE_UT_UT_TV
=no
9349 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9350 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9351 cat >> confdefs.h
<<\EOF
9352 #define HAVE_UT_UT_TV 1
9357 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9358 echo "configure:9359: checking for ut_type in utmp" >&5
9359 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9363 cat > conftest.
$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 #include <sys/types.h>
9369 struct utmp ut; ut.ut_type = 0;
9372 if { (eval echo configure
:9373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9374 samba_cv_HAVE_UT_UT_TYPE
=yes
9376 echo "configure: failed program was:" >&5
9377 cat conftest.
$ac_ext >&5
9379 samba_cv_HAVE_UT_UT_TYPE
=no
9384 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9385 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9386 cat >> confdefs.h
<<\EOF
9387 #define HAVE_UT_UT_TYPE 1
9392 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9393 echo "configure:9394: checking for ut_pid in utmp" >&5
9394 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9398 cat > conftest.
$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 #include <sys/types.h>
9404 struct utmp ut; ut.ut_pid = 0;
9407 if { (eval echo configure
:9408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9409 samba_cv_HAVE_UT_UT_PID
=yes
9411 echo "configure: failed program was:" >&5
9412 cat conftest.
$ac_ext >&5
9414 samba_cv_HAVE_UT_UT_PID
=no
9419 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9420 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9421 cat >> confdefs.h
<<\EOF
9422 #define HAVE_UT_UT_PID 1
9427 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9428 echo "configure:9429: checking for ut_exit in utmp" >&5
9429 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9433 cat > conftest.
$ac_ext <<EOF
9434 #line 9435 "configure"
9435 #include "confdefs.h"
9436 #include <sys/types.h>
9439 struct utmp ut; ut.ut_exit.e_exit = 0;
9442 if { (eval echo configure
:9443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9444 samba_cv_HAVE_UT_UT_EXIT
=yes
9446 echo "configure: failed program was:" >&5
9447 cat conftest.
$ac_ext >&5
9449 samba_cv_HAVE_UT_UT_EXIT
=no
9454 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9455 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9456 cat >> confdefs.h
<<\EOF
9457 #define HAVE_UT_UT_EXIT 1
9462 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9463 echo "configure:9464: checking for ut_addr in utmp" >&5
9464 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9468 cat > conftest.
$ac_ext <<EOF
9469 #line 9470 "configure"
9470 #include "confdefs.h"
9471 #include <sys/types.h>
9474 struct utmp ut; ut.ut_addr = 0;
9477 if { (eval echo configure
:9478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9479 samba_cv_HAVE_UT_UT_ADDR
=yes
9481 echo "configure: failed program was:" >&5
9482 cat conftest.
$ac_ext >&5
9484 samba_cv_HAVE_UT_UT_ADDR
=no
9489 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9490 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9491 cat >> confdefs.h
<<\EOF
9492 #define HAVE_UT_UT_ADDR 1
9497 if test x
$ac_cv_func_pututline = xyes
; then
9498 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9499 echo "configure:9500: checking whether pututline returns pointer" >&5
9500 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9504 cat > conftest.
$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <sys/types.h>
9510 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9513 if { (eval echo configure
:9514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9515 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9517 echo "configure: failed program was:" >&5
9518 cat conftest.
$ac_ext >&5
9520 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9525 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9526 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9527 cat >> confdefs.h
<<\EOF
9528 #define PUTUTLINE_RETURNS_UTMP 1
9534 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9535 echo "configure:9536: checking for ut_syslen in utmpx" >&5
9536 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9540 cat > conftest.
$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 #include <sys/types.h>
9546 struct utmpx ux; ux.ut_syslen = 0;
9549 if { (eval echo configure
:9550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9551 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9553 echo "configure: failed program was:" >&5
9554 cat conftest.
$ac_ext >&5
9556 samba_cv_HAVE_UX_UT_SYSLEN
=no
9561 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9562 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9563 cat >> confdefs.h
<<\EOF
9564 #define HAVE_UX_UT_SYSLEN 1
9570 #################################################
9571 # check for libiconv support
9572 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9573 echo "configure:9574: checking whether to use libiconv" >&5
9574 # Check whether --with-libiconv or --without-libiconv was given.
9575 if test "${with_libiconv+set}" = set; then
9576 withval
="$with_libiconv"
9579 echo "$ac_t""no" 1>&6
9582 echo "$ac_t""yes" 1>&6
9583 CFLAGS
="$CFLAGS -I$withval/include"
9584 LDFLAGS
="$LDFLAGS -L$withval/lib"
9585 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9586 echo "configure:9587: checking for iconv_open in -liconv" >&5
9587 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9591 ac_save_LIBS
="$LIBS"
9592 LIBS
="-liconv $LIBS"
9593 cat > conftest.
$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 /* Override any gcc2 internal prototype to avoid an error. */
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9605 if { (eval echo configure
:9606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9607 eval "ac_cv_lib_$ac_lib_var=yes"
9609 echo "configure: failed program was:" >&5
9610 cat conftest.
$ac_ext >&5
9612 eval "ac_cv_lib_$ac_lib_var=no"
9615 LIBS
="$ac_save_LIBS"
9618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9619 echo "$ac_t""yes" 1>&6
9620 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9621 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9622 cat >> confdefs.h
<<EOF
9623 #define $ac_tr_lib 1
9626 LIBS
="-liconv $LIBS"
9629 echo "$ac_t""no" 1>&6
9635 echo "$ac_t""no" 1>&6
9642 # check for iconv in libc
9643 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9644 echo "configure:9645: checking for working iconv" >&5
9645 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9649 if test "$cross_compiling" = yes; then
9650 samba_cv_HAVE_NATIVE_ICONV
=cross
9652 cat > conftest.
$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9658 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9659 if (cd == 0 || cd == (iconv_t)-1) return -1;
9664 if { (eval echo configure
:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9666 samba_cv_HAVE_NATIVE_ICONV
=yes
9668 echo "configure: failed program was:" >&5
9669 cat conftest.
$ac_ext >&5
9671 samba_cv_HAVE_NATIVE_ICONV
=no
9678 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9679 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
9680 cat >> confdefs.h
<<\EOF
9681 #define HAVE_NATIVE_ICONV 1
9687 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9688 echo "configure:9689: checking for Linux kernel oplocks" >&5
9689 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9693 if test "$cross_compiling" = yes; then
9694 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9696 cat > conftest.
$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9700 #include <sys/types.h>
9703 #define F_GETLEASE 1025
9706 int fd = open("/dev/null", O_RDONLY);
9707 return fcntl(fd, F_GETLEASE, 0) == -1;
9711 if { (eval echo configure
:9712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9713 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9715 echo "configure: failed program was:" >&5
9716 cat conftest.
$ac_ext >&5
9718 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9725 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9726 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9727 cat >> confdefs.h
<<\EOF
9728 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9733 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9734 echo "configure:9735: checking for kernel change notify support" >&5
9735 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9739 if test "$cross_compiling" = yes; then
9740 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9742 cat > conftest.
$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9746 #include <sys/types.h>
9750 #define F_NOTIFY 1026
9753 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9757 if { (eval echo configure
:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9759 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9761 echo "configure: failed program was:" >&5
9762 cat conftest.
$ac_ext >&5
9764 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9771 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9772 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9773 cat >> confdefs.h
<<\EOF
9774 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9779 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9780 echo "configure:9781: checking for kernel share modes" >&5
9781 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9782 echo $ac_n "(cached) $ac_c" 1>&6
9785 if test "$cross_compiling" = yes; then
9786 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9788 cat > conftest.
$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9792 #include <sys/types.h>
9795 #include <sys/file.h>
9797 #define LOCK_MAND 32
9798 #define LOCK_READ 64
9801 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9805 if { (eval echo configure
:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9807 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9809 echo "configure: failed program was:" >&5
9810 cat conftest.
$ac_ext >&5
9812 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9819 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9820 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9821 cat >> confdefs.h
<<\EOF
9822 #define HAVE_KERNEL_SHARE_MODES 1
9830 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9831 echo "configure:9832: checking for IRIX kernel oplock type definitions" >&5
9832 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
9836 cat > conftest.
$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 #include <sys/types.h>
9842 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9845 if { (eval echo configure
:9846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9847 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9849 echo "configure: failed program was:" >&5
9850 cat conftest.
$ac_ext >&5
9852 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9857 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9858 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9859 cat >> confdefs.h
<<\EOF
9860 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9865 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9866 echo "configure:9867: checking for irix specific capabilities" >&5
9867 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
9871 if test "$cross_compiling" = yes; then
9872 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9874 cat > conftest.
$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <sys/types.h>
9878 #include <sys/capability.h>
9881 if ((cap = cap_get_proc()) == NULL)
9883 cap->cap_effective |= CAP_NETWORK_MGT;
9884 cap->cap_inheritable |= CAP_NETWORK_MGT;
9890 if { (eval echo configure
:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9892 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9894 echo "configure: failed program was:" >&5
9895 cat conftest.
$ac_ext >&5
9897 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9904 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9905 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9906 cat >> confdefs.h
<<\EOF
9907 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9913 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9914 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9917 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9918 echo "configure:9919: checking for int16 typedef included by rpc/rpc.h" >&5
9919 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9920 echo $ac_n "(cached) $ac_c" 1>&6
9923 cat > conftest.
$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 #include <sys/types.h>
9927 #if defined(HAVE_RPC_RPC_H)
9928 #include <rpc/rpc.h>
9934 if { (eval echo configure
:9935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9936 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9938 echo "configure: failed program was:" >&5
9939 cat conftest.
$ac_ext >&5
9941 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9946 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9947 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9948 cat >> confdefs.h
<<\EOF
9949 #define HAVE_INT16_FROM_RPC_RPC_H 1
9954 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9955 echo "configure:9956: checking for uint16 typedef included by rpc/rpc.h" >&5
9956 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9957 echo $ac_n "(cached) $ac_c" 1>&6
9960 cat > conftest.
$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9963 #include <sys/types.h>
9964 #if defined(HAVE_RPC_RPC_H)
9965 #include <rpc/rpc.h>
9971 if { (eval echo configure
:9972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9973 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9975 echo "configure: failed program was:" >&5
9976 cat conftest.
$ac_ext >&5
9978 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9983 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9984 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9985 cat >> confdefs.h
<<\EOF
9986 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9991 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9992 echo "configure:9993: checking for int32 typedef included by rpc/rpc.h" >&5
9993 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9994 echo $ac_n "(cached) $ac_c" 1>&6
9997 cat > conftest.
$ac_ext <<EOF
9998 #line 9999 "configure"
9999 #include "confdefs.h"
10000 #include <sys/types.h>
10001 #if defined(HAVE_RPC_RPC_H)
10002 #include <rpc/rpc.h>
10008 if { (eval echo configure
:10009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10010 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10012 echo "configure: failed program was:" >&5
10013 cat conftest.
$ac_ext >&5
10015 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10020 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10021 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10022 cat >> confdefs.h
<<\EOF
10023 #define HAVE_INT32_FROM_RPC_RPC_H 1
10028 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10029 echo "configure:10030: checking for uint32 typedef included by rpc/rpc.h" >&5
10030 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10034 cat > conftest.
$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10038 #if defined(HAVE_RPC_RPC_H)
10039 #include <rpc/rpc.h>
10045 if { (eval echo configure
:10046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10047 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10049 echo "configure: failed program was:" >&5
10050 cat conftest.
$ac_ext >&5
10052 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10057 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10058 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10059 cat >> confdefs.h
<<\EOF
10060 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10066 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10067 echo "configure:10068: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10068 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10072 cat > conftest.
$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 #include <sys/types.h>
10076 #ifdef HAVE_SYS_SECURITY_H
10077 #include <sys/security.h>
10079 #endif /* HAVE_SYS_SECURITY_H */
10080 #if defined(HAVE_RPC_RPC_H)
10081 #include <rpc/rpc.h>
10087 if { (eval echo configure
:10088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10089 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10091 echo "configure: failed program was:" >&5
10092 cat conftest.
$ac_ext >&5
10094 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10099 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10100 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10101 cat >> confdefs.h
<<\EOF
10102 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10107 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10108 echo "configure:10109: checking for test routines" >&5
10109 if test "$cross_compiling" = yes; then
10110 echo "configure: warning: cannot run when cross-compiling" 1>&2
10112 cat > conftest.
$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include "${srcdir-.}/tests/trivial.c"
10117 if { (eval echo configure
:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10119 echo "$ac_t""yes" 1>&6
10121 echo "configure: failed program was:" >&5
10122 cat conftest.
$ac_ext >&5
10124 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10130 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10131 echo "configure:10132: checking for ftruncate extend" >&5
10132 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10133 echo $ac_n "(cached) $ac_c" 1>&6
10136 if test "$cross_compiling" = yes; then
10137 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10139 cat > conftest.
$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 #include "${srcdir-.}/tests/ftruncate.c"
10144 if { (eval echo configure
:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10146 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10148 echo "configure: failed program was:" >&5
10149 cat conftest.
$ac_ext >&5
10151 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10158 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10159 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10160 cat >> confdefs.h
<<\EOF
10161 #define HAVE_FTRUNCATE_EXTEND 1
10166 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10167 echo "configure:10168: checking for AF_LOCAL socket support" >&5
10168 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10172 if test "$cross_compiling" = yes; then
10173 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
10175 cat > conftest.
$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 #include "${srcdir-.}/tests/unixsock.c"
10180 if { (eval echo configure
:10181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10182 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
10184 echo "configure: failed program was:" >&5
10185 cat conftest.
$ac_ext >&5
10187 samba_cv_HAVE_WORKING_AF_LOCAL
=no
10194 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10195 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10197 cat >> confdefs.h
<<\EOF
10198 #define HAVE_WORKING_AF_LOCAL 1
10203 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10204 echo "configure:10205: checking for broken getgroups" >&5
10205 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10209 if test "$cross_compiling" = yes; then
10210 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10212 cat > conftest.
$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 #include "${srcdir-.}/tests/getgroups.c"
10217 if { (eval echo configure
:10218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10219 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10221 echo "configure: failed program was:" >&5
10222 cat conftest.
$ac_ext >&5
10224 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10231 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10232 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10233 cat >> confdefs.h
<<\EOF
10234 #define HAVE_BROKEN_GETGROUPS 1
10239 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10240 echo "configure:10241: checking whether getpass should be replaced" >&5
10241 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10242 echo $ac_n "(cached) $ac_c" 1>&6
10245 SAVE_CPPFLAGS
="$CPPFLAGS"
10246 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10247 cat > conftest.
$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10251 #define REPLACE_GETPASS 1
10252 #define NO_CONFIG_H 1
10253 #define main dont_declare_main
10254 #include "${srcdir-.}/lib/getsmbpass.c"
10261 if { (eval echo configure
:10262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10263 samba_cv_REPLACE_GETPASS
=yes
10265 echo "configure: failed program was:" >&5
10266 cat conftest.
$ac_ext >&5
10268 samba_cv_REPLACE_GETPASS
=no
10271 CPPFLAGS
="$SAVE_CPPFLAGS"
10275 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10276 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10277 cat >> confdefs.h
<<\EOF
10278 #define REPLACE_GETPASS 1
10283 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10284 echo "configure:10285: checking for broken inet_ntoa" >&5
10285 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10289 if test "$cross_compiling" = yes; then
10290 samba_cv_REPLACE_INET_NTOA
=cross
10292 cat > conftest.
$ac_ext <<EOF
10293 #line 10294 "configure"
10294 #include "confdefs.h"
10297 #include <sys/types.h>
10298 #include <netinet/in.h>
10299 #ifdef HAVE_ARPA_INET_H
10300 #include <arpa/inet.h>
10302 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10303 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10304 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10307 if { (eval echo configure
:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10309 samba_cv_REPLACE_INET_NTOA
=yes
10311 echo "configure: failed program was:" >&5
10312 cat conftest.
$ac_ext >&5
10314 samba_cv_REPLACE_INET_NTOA
=no
10321 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10322 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10323 cat >> confdefs.h
<<\EOF
10324 #define REPLACE_INET_NTOA 1
10329 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10330 echo "configure:10331: checking for secure mkstemp" >&5
10331 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10332 echo $ac_n "(cached) $ac_c" 1>&6
10335 if test "$cross_compiling" = yes; then
10336 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10338 cat > conftest.
$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10341 #include <stdlib.h>
10342 #include <sys/types.h>
10343 #include <sys/stat.h>
10344 #include <unistd.h>
10347 char tpl[20]="/tmp/test.XXXXXX";
10348 int fd = mkstemp(tpl);
10349 if (fd == -1) exit(1);
10351 if (fstat(fd, &st) != 0) exit(1);
10352 if ((st.st_mode & 0777) != 0600) exit(1);
10356 if { (eval echo configure
:10357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10358 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10360 echo "configure: failed program was:" >&5
10361 cat conftest.
$ac_ext >&5
10363 samba_cv_HAVE_SECURE_MKSTEMP
=no
10370 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10371 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10372 cat >> confdefs.h
<<\EOF
10373 #define HAVE_SECURE_MKSTEMP 1
10378 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10379 echo "configure:10380: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10380 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10384 if test "$cross_compiling" = yes; then
10385 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10387 cat > conftest.
$ac_ext <<EOF
10388 #line 10389 "configure"
10389 #include "confdefs.h"
10390 #include <unistd.h>
10391 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10393 if { (eval echo configure
:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10395 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10397 echo "configure: failed program was:" >&5
10398 cat conftest.
$ac_ext >&5
10400 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10407 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10408 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10409 cat >> confdefs.h
<<\EOF
10410 #define SYSCONF_SC_NGROUPS_MAX 1
10415 echo $ac_n "checking for root""... $ac_c" 1>&6
10416 echo "configure:10417: checking for root" >&5
10417 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10418 echo $ac_n "(cached) $ac_c" 1>&6
10421 if test "$cross_compiling" = yes; then
10422 samba_cv_HAVE_ROOT
=cross
10424 cat > conftest.
$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10427 main() { exit(getuid() != 0); }
10429 if { (eval echo configure
:10430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10431 samba_cv_HAVE_ROOT
=yes
10433 echo "configure: failed program was:" >&5
10434 cat conftest.
$ac_ext >&5
10436 samba_cv_HAVE_ROOT
=no
10443 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10444 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10445 cat >> confdefs.h
<<\EOF
10446 #define HAVE_ROOT 1
10450 echo "configure: warning: running as non-root will disable some tests" 1>&2
10454 # look for a method of finding the list of network interfaces
10456 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10457 echo "configure:10458: checking for iface AIX" >&5
10458 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10459 echo $ac_n "(cached) $ac_c" 1>&6
10462 if test "$cross_compiling" = yes; then
10463 samba_cv_HAVE_IFACE_AIX
=cross
10465 cat > conftest.
$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10469 #define HAVE_IFACE_AIX 1
10470 #define AUTOCONF_TEST 1
10471 #include "confdefs.h"
10472 #include "${srcdir-.}/lib/interfaces.c"
10474 if { (eval echo configure
:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10476 samba_cv_HAVE_IFACE_AIX
=yes
10478 echo "configure: failed program was:" >&5
10479 cat conftest.
$ac_ext >&5
10481 samba_cv_HAVE_IFACE_AIX
=no
10488 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10489 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10490 iface
=yes;cat >> confdefs.h
<<\EOF
10491 #define HAVE_IFACE_AIX 1
10496 if test $iface = no
; then
10497 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10498 echo "configure:10499: checking for iface ifconf" >&5
10499 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
10503 if test "$cross_compiling" = yes; then
10504 samba_cv_HAVE_IFACE_IFCONF
=cross
10506 cat > conftest.
$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10510 #define HAVE_IFACE_IFCONF 1
10511 #define AUTOCONF_TEST 1
10512 #include "confdefs.h"
10513 #include "${srcdir-.}/lib/interfaces.c"
10515 if { (eval echo configure
:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10517 samba_cv_HAVE_IFACE_IFCONF
=yes
10519 echo "configure: failed program was:" >&5
10520 cat conftest.
$ac_ext >&5
10522 samba_cv_HAVE_IFACE_IFCONF
=no
10529 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10530 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10531 iface
=yes;cat >> confdefs.h
<<\EOF
10532 #define HAVE_IFACE_IFCONF 1
10538 if test $iface = no
; then
10539 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10540 echo "configure:10541: checking for iface ifreq" >&5
10541 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10545 if test "$cross_compiling" = yes; then
10546 samba_cv_HAVE_IFACE_IFREQ
=cross
10548 cat > conftest.
$ac_ext <<EOF
10549 #line 10550 "configure"
10550 #include "confdefs.h"
10552 #define HAVE_IFACE_IFREQ 1
10553 #define AUTOCONF_TEST 1
10554 #include "confdefs.h"
10555 #include "${srcdir-.}/lib/interfaces.c"
10557 if { (eval echo configure
:10558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10559 samba_cv_HAVE_IFACE_IFREQ
=yes
10561 echo "configure: failed program was:" >&5
10562 cat conftest.
$ac_ext >&5
10564 samba_cv_HAVE_IFACE_IFREQ
=no
10571 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10572 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10573 iface
=yes;cat >> confdefs.h
<<\EOF
10574 #define HAVE_IFACE_IFREQ 1
10581 ################################################
10582 # look for a method of setting the effective uid
10584 if test $seteuid = no
; then
10585 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10586 echo "configure:10587: checking for setresuid" >&5
10587 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10588 echo $ac_n "(cached) $ac_c" 1>&6
10591 if test "$cross_compiling" = yes; then
10592 samba_cv_USE_SETRESUID
=cross
10594 cat > conftest.
$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10598 #define AUTOCONF_TEST 1
10599 #define USE_SETRESUID 1
10600 #include "confdefs.h"
10601 #include "${srcdir-.}/lib/util_sec.c"
10603 if { (eval echo configure
:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10605 samba_cv_USE_SETRESUID
=yes
10607 echo "configure: failed program was:" >&5
10608 cat conftest.
$ac_ext >&5
10610 samba_cv_USE_SETRESUID
=no
10617 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10618 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10619 seteuid
=yes;cat >> confdefs.h
<<\EOF
10620 #define USE_SETRESUID 1
10627 if test $seteuid = no
; then
10628 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10629 echo "configure:10630: checking for setreuid" >&5
10630 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10631 echo $ac_n "(cached) $ac_c" 1>&6
10634 if test "$cross_compiling" = yes; then
10635 samba_cv_USE_SETREUID
=cross
10637 cat > conftest.
$ac_ext <<EOF
10638 #line 10639 "configure"
10639 #include "confdefs.h"
10641 #define AUTOCONF_TEST 1
10642 #define USE_SETREUID 1
10643 #include "confdefs.h"
10644 #include "${srcdir-.}/lib/util_sec.c"
10646 if { (eval echo configure
:10647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10648 samba_cv_USE_SETREUID
=yes
10650 echo "configure: failed program was:" >&5
10651 cat conftest.
$ac_ext >&5
10653 samba_cv_USE_SETREUID
=no
10660 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10661 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10662 seteuid
=yes;cat >> confdefs.h
<<\EOF
10663 #define USE_SETREUID 1
10669 if test $seteuid = no
; then
10670 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10671 echo "configure:10672: checking for seteuid" >&5
10672 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10676 if test "$cross_compiling" = yes; then
10677 samba_cv_USE_SETEUID
=cross
10679 cat > conftest.
$ac_ext <<EOF
10680 #line 10681 "configure"
10681 #include "confdefs.h"
10683 #define AUTOCONF_TEST 1
10684 #define USE_SETEUID 1
10685 #include "confdefs.h"
10686 #include "${srcdir-.}/lib/util_sec.c"
10688 if { (eval echo configure
:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10690 samba_cv_USE_SETEUID
=yes
10692 echo "configure: failed program was:" >&5
10693 cat conftest.
$ac_ext >&5
10695 samba_cv_USE_SETEUID
=no
10702 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10703 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10704 seteuid
=yes;cat >> confdefs.h
<<\EOF
10705 #define USE_SETEUID 1
10711 if test $seteuid = no
; then
10712 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10713 echo "configure:10714: checking for setuidx" >&5
10714 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10718 if test "$cross_compiling" = yes; then
10719 samba_cv_USE_SETUIDX
=cross
10721 cat > conftest.
$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10725 #define AUTOCONF_TEST 1
10726 #define USE_SETUIDX 1
10727 #include "confdefs.h"
10728 #include "${srcdir-.}/lib/util_sec.c"
10730 if { (eval echo configure
:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10732 samba_cv_USE_SETUIDX
=yes
10734 echo "configure: failed program was:" >&5
10735 cat conftest.
$ac_ext >&5
10737 samba_cv_USE_SETUIDX
=no
10744 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10745 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10746 seteuid
=yes;cat >> confdefs.h
<<\EOF
10747 #define USE_SETUIDX 1
10754 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10755 echo "configure:10756: checking for working mmap" >&5
10756 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10757 echo $ac_n "(cached) $ac_c" 1>&6
10760 if test "$cross_compiling" = yes; then
10761 samba_cv_HAVE_MMAP
=cross
10763 cat > conftest.
$ac_ext <<EOF
10764 #line 10765 "configure"
10765 #include "confdefs.h"
10766 #include "${srcdir-.}/tests/shared_mmap.c"
10768 if { (eval echo configure
:10769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10770 samba_cv_HAVE_MMAP
=yes
10772 echo "configure: failed program was:" >&5
10773 cat conftest.
$ac_ext >&5
10775 samba_cv_HAVE_MMAP
=no
10782 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10783 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10784 cat >> confdefs.h
<<\EOF
10785 #define HAVE_MMAP 1
10790 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10791 echo "configure:10792: checking for ftruncate needs root" >&5
10792 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10793 echo $ac_n "(cached) $ac_c" 1>&6
10796 if test "$cross_compiling" = yes; then
10797 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10799 cat > conftest.
$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 #include "${srcdir-.}/tests/ftruncroot.c"
10804 if { (eval echo configure
:10805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10806 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10808 echo "configure: failed program was:" >&5
10809 cat conftest.
$ac_ext >&5
10811 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10818 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10819 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10820 cat >> confdefs.h
<<\EOF
10821 #define FTRUNCATE_NEEDS_ROOT 1
10826 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10827 echo "configure:10828: checking for fcntl locking" >&5
10828 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10832 if test "$cross_compiling" = yes; then
10833 samba_cv_HAVE_FCNTL_LOCK
=cross
10835 cat > conftest.
$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838 #include "${srcdir-.}/tests/fcntl_lock.c"
10840 if { (eval echo configure
:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10842 samba_cv_HAVE_FCNTL_LOCK
=yes
10844 echo "configure: failed program was:" >&5
10845 cat conftest.
$ac_ext >&5
10847 samba_cv_HAVE_FCNTL_LOCK
=no
10854 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10855 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10856 cat >> confdefs.h
<<\EOF
10857 #define HAVE_FCNTL_LOCK 1
10862 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10863 echo "configure:10864: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10864 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10868 if test "$cross_compiling" = yes; then
10869 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10871 cat > conftest.
$ac_ext <<EOF
10872 #line 10873 "configure"
10873 #include "confdefs.h"
10874 #include "${srcdir-.}/tests/fcntl_lock64.c"
10876 if { (eval echo configure
:10877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10878 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10880 echo "configure: failed program was:" >&5
10881 cat conftest.
$ac_ext >&5
10883 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10890 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10891 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10892 cat >> confdefs.h
<<\EOF
10893 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10900 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10901 echo "configure:10902: checking for 64 bit fcntl locking" >&5
10902 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10903 echo $ac_n "(cached) $ac_c" 1>&6
10906 if test "$cross_compiling" = yes; then
10907 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10909 cat > conftest.
$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10913 #if defined(HAVE_UNISTD_H)
10914 #include <unistd.h>
10917 #include <stdlib.h>
10919 #ifdef HAVE_FCNTL_H
10923 #ifdef HAVE_SYS_FCNTL_H
10924 #include <sys/fcntl.h>
10926 main() { struct flock64 fl64;
10927 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10934 if { (eval echo configure
:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10936 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10938 echo "configure: failed program was:" >&5
10939 cat conftest.
$ac_ext >&5
10941 samba_cv_HAVE_STRUCT_FLOCK64
=no
10948 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10950 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10951 cat >> confdefs.h
<<\EOF
10952 #define HAVE_STRUCT_FLOCK64 1
10958 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10959 echo "configure:10960: checking for broken nisplus include files" >&5
10960 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10964 cat > conftest.
$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 #include <sys/acl.h>
10968 #if defined(HAVE_RPCSVC_NIS_H)
10969 #include <rpcsvc/nis.h>
10975 if { (eval echo configure
:10976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10977 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10979 echo "configure: failed program was:" >&5
10980 cat conftest.
$ac_ext >&5
10982 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10987 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10988 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10989 cat >> confdefs.h
<<\EOF
10990 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10996 #################################################
10997 # check for smbwrapper support
10998 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10999 echo "configure:11000: checking whether to use smbwrapper" >&5
11000 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11001 if test "${with_smbwrapper+set}" = set; then
11002 withval
="$with_smbwrapper"
11005 echo "$ac_t""yes" 1>&6
11006 cat >> confdefs.h
<<\EOF
11007 #define WITH_SMBWRAPPER 1
11010 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11012 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11015 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11018 # Conditions under which smbwrapper should not be built.
11020 if test x
$PICFLAG = x
; then
11021 echo No support
for PIC code
- disabling smbwrapper and smbsh
11024 elif test x
$ac_cv_func_syscall = xno
; then
11025 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11031 echo "$ac_t""no" 1>&6
11035 echo "$ac_t""no" 1>&6
11040 #################################################
11041 # check for the AFS filesystem
11042 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11043 echo "configure:11044: checking whether to use AFS" >&5
11044 # Check whether --with-afs or --without-afs was given.
11045 if test "${with_afs+set}" = set; then
11046 withval
="$with_afs"
11049 echo "$ac_t""yes" 1>&6
11050 cat >> confdefs.h
<<\EOF
11056 echo "$ac_t""no" 1>&6
11060 echo "$ac_t""no" 1>&6
11066 #################################################
11067 # check for the DFS auth system
11068 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11069 echo "configure:11070: checking whether to use DFS auth" >&5
11070 # Check whether --with-dfs or --without-dfs was given.
11071 if test "${with_dfs+set}" = set; then
11072 withval
="$with_dfs"
11075 echo "$ac_t""yes" 1>&6
11076 cat >> confdefs.h
<<\EOF
11082 echo "$ac_t""no" 1>&6
11086 echo "$ac_t""no" 1>&6
11091 #################################################
11092 # check for Kerberos IV auth system
11093 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11094 echo "configure:11095: checking whether to use Kerberos IV" >&5
11095 # Check whether --with-krb4 or --without-krb4 was given.
11096 if test "${with_krb4+set}" = set; then
11097 withval
="$with_krb4"
11100 echo "$ac_t""yes" 1>&6
11101 cat >> confdefs.h
<<\EOF
11102 #define KRB4_AUTH 1
11105 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11106 echo "configure:11107: checking for dn_expand in -lresolv" >&5
11107 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11109 echo $ac_n "(cached) $ac_c" 1>&6
11111 ac_save_LIBS
="$LIBS"
11112 LIBS
="-lresolv $LIBS"
11113 cat > conftest.
$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11116 /* Override any gcc2 internal prototype to avoid an error. */
11117 /* We use char because int might match the return type of a gcc2
11118 builtin and then its argument prototype would still apply. */
11125 if { (eval echo configure
:11126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11127 eval "ac_cv_lib_$ac_lib_var=yes"
11129 echo "configure: failed program was:" >&5
11130 cat conftest.
$ac_ext >&5
11132 eval "ac_cv_lib_$ac_lib_var=no"
11135 LIBS
="$ac_save_LIBS"
11138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11139 echo "$ac_t""yes" 1>&6
11140 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11142 cat >> confdefs.h
<<EOF
11143 #define $ac_tr_lib 1
11146 LIBS
="-lresolv $LIBS"
11149 echo "$ac_t""no" 1>&6
11152 LIBS
="$LIBS -lkrb -ldes"
11153 CFLAGS
="$CFLAGS -I$withval/include"
11154 LDFLAGS
="$LDFLAGS -L$withval/lib"
11157 echo "$ac_t""no" 1>&6
11161 echo "$ac_t""no" 1>&6
11166 #################################################
11167 # check for Kerberos 5 auth system
11168 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11169 echo "configure:11170: checking whether to use Kerberos 5" >&5
11170 # Check whether --with-krb5 or --without-krb5 was given.
11171 if test "${with_krb5+set}" = set; then
11172 withval
="$with_krb5"
11175 echo "$ac_t""yes" 1>&6
11176 cat >> confdefs.h
<<\EOF
11177 #define KRB5_AUTH 1
11180 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11181 CFLAGS
="$CFLAGS -I$withval/include"
11182 LDFLAGS
="$LDFLAGS -L$withval/lib"
11185 echo "$ac_t""no" 1>&6
11189 echo "$ac_t""no" 1>&6
11194 #################################################
11195 # check for automount support
11196 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11197 echo "configure:11198: checking whether to use AUTOMOUNT" >&5
11198 # Check whether --with-automount or --without-automount was given.
11199 if test "${with_automount+set}" = set; then
11200 withval
="$with_automount"
11203 echo "$ac_t""yes" 1>&6
11204 cat >> confdefs.h
<<\EOF
11205 #define WITH_AUTOMOUNT 1
11210 echo "$ac_t""no" 1>&6
11214 echo "$ac_t""no" 1>&6
11219 #################################################
11220 # check for smbmount support
11221 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11222 echo "configure:11223: checking whether to use SMBMOUNT" >&5
11223 # Check whether --with-smbmount or --without-smbmount was given.
11224 if test "${with_smbmount+set}" = set; then
11225 withval
="$with_smbmount"
11228 echo "$ac_t""yes" 1>&6
11229 cat >> confdefs.h
<<\EOF
11230 #define WITH_SMBMOUNT 1
11233 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11236 echo "$ac_t""no" 1>&6
11241 echo "$ac_t""no" 1>&6
11248 #################################################
11249 # check for a PAM password database
11250 with_pam_for_crypt
=no
11251 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11252 echo "configure:11253: checking whether to use PAM password database" >&5
11253 # Check whether --with-pam or --without-pam was given.
11254 if test "${with_pam+set}" = set; then
11255 withval
="$with_pam"
11258 echo "$ac_t""yes" 1>&6
11259 cat >> confdefs.h
<<\EOF
11264 with_pam_for_crypt
=yes
11267 echo "$ac_t""no" 1>&6
11271 echo "$ac_t""no" 1>&6
11276 # we can't build a pam module if we don't have pam.
11277 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11278 echo "configure:11279: checking for pam_get_data in -lpam" >&5
11279 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11281 echo $ac_n "(cached) $ac_c" 1>&6
11283 ac_save_LIBS
="$LIBS"
11285 cat > conftest.
$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 /* Override any gcc2 internal prototype to avoid an error. */
11289 /* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11291 char pam_get_data();
11297 if { (eval echo configure
:11298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11299 eval "ac_cv_lib_$ac_lib_var=yes"
11301 echo "configure: failed program was:" >&5
11302 cat conftest.
$ac_ext >&5
11304 eval "ac_cv_lib_$ac_lib_var=no"
11307 LIBS
="$ac_save_LIBS"
11310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11311 echo "$ac_t""yes" 1>&6
11312 cat >> confdefs.h
<<\EOF
11313 #define HAVE_LIBPAM 1
11317 echo "$ac_t""no" 1>&6
11321 #################################################
11322 # check for pam_smbpass support
11323 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11324 echo "configure:11325: checking whether to use pam_smbpass" >&5
11325 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11326 if test "${with_pam_smbpass+set}" = set; then
11327 withval
="$with_pam_smbpass"
11330 echo "$ac_t""yes" 1>&6
11332 # Conditions under which pam_smbpass should not be built.
11334 if test x
$PICFLAG = x
; then
11335 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11337 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11338 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11341 cat >> confdefs.h
<<\EOF
11342 #define WITH_PAM_SMBPASS 1
11345 PAM_MOD
="bin/pam_smbpass.so"
11349 echo "$ac_t""no" 1>&6
11353 echo "$ac_t""no" 1>&6
11359 ###############################################
11360 # test for where we get crypt() from, but only
11362 if test $with_pam_for_crypt = no
; then
11363 for ac_func
in crypt
11365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11366 echo "configure:11367: checking for $ac_func" >&5
11367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11368 echo $ac_n "(cached) $ac_c" 1>&6
11370 cat > conftest.
$ac_ext <<EOF
11371 #line 11372 "configure"
11372 #include "confdefs.h"
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char $ac_func(); below. */
11375 #include <assert.h>
11376 /* Override any gcc2 internal prototype to avoid an error. */
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11383 /* The GNU C library defines this for functions which it implements
11384 to always fail with ENOSYS. Some functions are actually named
11385 something starting with __ and the normal name is an alias. */
11386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11394 if { (eval echo configure
:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11396 eval "ac_cv_func_$ac_func=yes"
11398 echo "configure: failed program was:" >&5
11399 cat conftest.
$ac_ext >&5
11401 eval "ac_cv_func_$ac_func=no"
11406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11407 echo "$ac_t""yes" 1>&6
11408 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11409 cat >> confdefs.h
<<EOF
11410 #define $ac_tr_func 1
11414 echo "$ac_t""no" 1>&6
11418 if test x
"$ac_cv_func_crypt" = x
"no"; then
11419 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11420 echo "configure:11421: checking for crypt in -lcrypt" >&5
11421 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11425 ac_save_LIBS
="$LIBS"
11426 LIBS
="-lcrypt $LIBS"
11427 cat > conftest.
$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 /* Override any gcc2 internal prototype to avoid an error. */
11431 /* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11439 if { (eval echo configure
:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11441 eval "ac_cv_lib_$ac_lib_var=yes"
11443 echo "configure: failed program was:" >&5
11444 cat conftest.
$ac_ext >&5
11446 eval "ac_cv_lib_$ac_lib_var=no"
11449 LIBS
="$ac_save_LIBS"
11452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11453 echo "$ac_t""yes" 1>&6
11454 LIBS
="$LIBS -lcrypt";
11455 cat >> confdefs.h
<<\EOF
11456 #define HAVE_CRYPT 1
11460 echo "$ac_t""no" 1>&6
11467 ## moved after the check for -lcrypt in order to
11468 ## ensure that the necessary libraries are included
11469 ## check checking for truncated salt. Wrapped by the
11470 ## $with_pam_for_crypt variable as above --jerry
11472 if test $with_pam_for_crypt = no
; then
11473 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11474 echo "configure:11475: checking for a crypt that needs truncated salt" >&5
11475 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11479 if test "$cross_compiling" = yes; then
11480 samba_cv_HAVE_TRUNCATED_SALT
=cross
11482 cat > conftest.
$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11485 #include "${srcdir-.}/tests/crypttest.c"
11487 if { (eval echo configure
:11488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11489 samba_cv_HAVE_TRUNCATED_SALT
=no
11491 echo "configure: failed program was:" >&5
11492 cat conftest.
$ac_ext >&5
11494 samba_cv_HAVE_TRUNCATED_SALT
=yes
11501 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11502 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11503 cat >> confdefs.h
<<\EOF
11504 #define HAVE_TRUNCATED_SALT 1
11511 #################################################
11512 # check for a TDB password database
11513 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11514 echo "configure:11515: checking whether to use TDB password database" >&5
11515 # Check whether --with-tdbsam or --without-tdbsam was given.
11516 if test "${with_tdbsam+set}" = set; then
11517 withval
="$with_tdbsam"
11520 echo "$ac_t""yes" 1>&6
11521 cat >> confdefs.h
<<\EOF
11522 #define WITH_TDBPWD 1
11525 # AC_MSG_ERROR([TDB password database not supported in this version.])
11528 echo "$ac_t""no" 1>&6
11532 echo "$ac_t""no" 1>&6
11537 #################################################
11538 # check for a LDAP password database
11539 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11540 echo "configure:11541: checking whether to use LDAP password database" >&5
11541 # Check whether --with-ldap or --without-ldap was given.
11542 if test "${with_ldap+set}" = set; then
11543 withval
="$with_ldap"
11546 echo "$ac_t""yes" 1>&6
11547 cat >> confdefs.h
<<\EOF
11548 #define WITH_LDAP 1
11551 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11554 echo "$ac_t""no" 1>&6
11558 echo "$ac_t""no" 1>&6
11563 #################################################
11564 # commented out by --jerry
11565 # check for a NISPLUS password database
11566 #AC_MSG_CHECKING(whether to use NISPLUS password database)
11567 #AC_ARG_WITH(nisplus,
11568 #[ --with-nisplus Include NISPLUS password database support
11569 #[ case "$withval" in
11571 # AC_MSG_RESULT(yes)
11572 # AC_DEFINE(WITH_NISPLUS)
11575 # AC_MSG_RESULT(no)
11578 # AC_MSG_RESULT(no)
11581 #################################################
11582 # check for a NISPLUS_HOME support
11583 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11584 echo "configure:11585: checking whether to use NISPLUS_HOME" >&5
11585 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11586 if test "${with_nisplus_home+set}" = set; then
11587 withval
="$with_nisplus_home"
11590 echo "$ac_t""yes" 1>&6
11591 cat >> confdefs.h
<<\EOF
11592 #define WITH_NISPLUS_HOME 1
11597 echo "$ac_t""no" 1>&6
11601 echo "$ac_t""no" 1>&6
11606 #################################################
11607 # check for the secure socket layer
11608 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11609 echo "configure:11610: checking whether to use SSL" >&5
11610 # Check whether --with-ssl or --without-ssl was given.
11611 if test "${with_ssl+set}" = set; then
11612 withval
="$with_ssl"
11613 --with-sslinc=DIR Where the SSL includes are
(defaults to
/usr
/local
/ssl
)]
11617 echo "$ac_t""yes" 1>&6
11618 cat >> confdefs.h
<<\EOF
11622 withval
="/usr/local/ssl" # default
11624 if test "${with_sslinc+set}" = set; then
11626 withval
="$with_sslinc"
11629 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11630 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11631 LIBS
="-lssl -lcrypto $LIBS"
11632 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11635 CFLAGS
="-I${withval} $CFLAGS"
11636 LIBS
="-lssl -lcrypto $LIBS"
11637 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11643 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11644 LIBS
="-lssl -lcrypto $LIBS"
11645 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11649 if test ! -d ${withval}; then
11650 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11654 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11658 echo "$ac_t""no" 1>&6
11664 #################################################
11665 # check for syslog logging
11666 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11667 echo "configure:11668: checking whether to use syslog logging" >&5
11668 # Check whether --with-syslog or --without-syslog was given.
11669 if test "${with_syslog+set}" = set; then
11670 withval
="$with_syslog"
11673 echo "$ac_t""yes" 1>&6
11674 cat >> confdefs.h
<<\EOF
11675 #define WITH_SYSLOG 1
11680 echo "$ac_t""no" 1>&6
11684 echo "$ac_t""no" 1>&6
11689 #################################################
11690 # check for a shared memory profiling support
11691 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11692 echo "configure:11693: checking whether to use profiling" >&5
11693 # Check whether --with-profile or --without-profile was given.
11694 if test "${with_profile+set}" = set; then
11695 withval
="$with_profile"
11698 echo "$ac_t""yes" 1>&6
11699 cat >> confdefs.h
<<\EOF
11700 #define WITH_PROFILE 1
11705 echo "$ac_t""no" 1>&6
11709 echo "$ac_t""no" 1>&6
11715 #################################################
11716 # check for experimental disk-quotas support
11717 QUOTAOBJS
=smbd
/noquotas.o
11719 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11720 echo "configure:11721: checking whether to support disk-quotas" >&5
11721 # Check whether --with-quotas or --without-quotas was given.
11722 if test "${with_quotas+set}" = set; then
11723 withval
="$with_quotas"
11726 echo "$ac_t""yes" 1>&6
11727 QUOTAOBJS
=smbd
/quotas.o
11730 echo "$ac_t""no" 1>&6
11734 echo "$ac_t""no" 1>&6
11740 #################################################
11741 # check for experimental utmp accounting
11743 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11744 echo "configure:11745: checking whether to support utmp accounting" >&5
11745 # Check whether --with-utmp or --without-utmp was given.
11746 if test "${with_utmp+set}" = set; then
11747 withval
="$with_utmp"
11750 echo "$ac_t""yes" 1>&6
11751 cat >> confdefs.h
<<\EOF
11752 #define WITH_UTMP 1
11757 echo "$ac_t""no" 1>&6
11761 echo "$ac_t""no" 1>&6
11766 #################################################
11767 # check for MS Dfs support
11769 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11770 echo "configure:11771: checking whether to support Microsoft Dfs" >&5
11771 # Check whether --with-msdfs or --without-msdfs was given.
11772 if test "${with_msdfs+set}" = set; then
11773 withval
="$with_msdfs"
11776 echo "$ac_t""yes" 1>&6
11777 cat >> confdefs.h
<<\EOF
11778 #define WITH_MSDFS 1
11783 echo "$ac_t""no" 1>&6
11787 echo "$ac_t""no" 1>&6
11792 #################################################
11793 # set private directory location
11794 # Check whether --with-privatedir or --without-privatedir was given.
11795 if test "${with_privatedir+set}" = set; then
11796 withval
="$with_privatedir"
11800 # Just in case anybody calls it without argument
11802 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11803 privatedir
='${prefix}/private'
11806 privatedir
="$withval"
11811 privatedir
='${prefix}/private'
11817 #################################################
11818 # set lock directory location
11819 # Check whether --with-lockdir or --without-lockdir was given.
11820 if test "${with_lockdir+set}" = set; then
11821 withval
="$with_lockdir"
11825 # Just in case anybody calls it without argument
11827 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11828 lockdir
='$(VARDIR)/locks'
11836 lockdir
='$(VARDIR)/locks'
11842 #################################################
11843 # set SWAT directory location
11844 # Check whether --with-swatdir or --without-swatdir was given.
11845 if test "${with_swatdir+set}" = set; then
11846 withval
="$with_swatdir"
11850 # Just in case anybody does it
11852 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11853 swatdir
='${prefix}/swat'
11861 swatdir
='${prefix}/swat'
11867 #################################################
11868 # these tests are taken from the GNU fileutils package
11869 echo "checking how to get filesystem space usage" 1>&6
11870 echo "configure:11871: checking how to get filesystem space usage" >&5
11873 # Test for statvfs64.
11874 if test $space = no
; then
11876 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11877 echo "configure:11878: checking statvfs64 function (SVR4)" >&5
11878 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11879 echo $ac_n "(cached) $ac_c" 1>&6
11881 if test "$cross_compiling" = yes; then
11882 fu_cv_sys_stat_statvfs64
=cross
11884 cat > conftest.
$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11888 #if defined(HAVE_UNISTD_H)
11889 #include <unistd.h>
11891 #include <sys/types.h>
11892 #include <sys/statvfs.h>
11895 struct statvfs64 fsd;
11896 exit (statvfs64 (".", &fsd));
11899 if { (eval echo configure
:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11901 fu_cv_sys_stat_statvfs64
=yes
11903 echo "configure: failed program was:" >&5
11904 cat conftest.
$ac_ext >&5
11906 fu_cv_sys_stat_statvfs64
=no
11913 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11914 if test $fu_cv_sys_stat_statvfs64 = yes; then
11916 cat >> confdefs.h
<<\EOF
11917 #define STAT_STATVFS64 1
11923 # Perform only the link test since it seems there are no variants of the
11924 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11925 # because that got a false positive on SCO OSR5. Adding the declaration
11926 # of a `struct statvfs' causes this test to fail (as it should) on such
11927 # systems. That system is reported to work fine with STAT_STATFS4 which
11928 # is what it gets when this test fails.
11929 if test $space = no
; then
11931 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11932 echo "configure:11933: checking statvfs function (SVR4)" >&5
11933 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11934 echo $ac_n "(cached) $ac_c" 1>&6
11936 cat > conftest.
$ac_ext <<EOF
11937 #line 11938 "configure"
11938 #include "confdefs.h"
11939 #include <sys/types.h>
11940 #include <sys/statvfs.h>
11942 struct statvfs fsd; statvfs (0, &fsd);
11945 if { (eval echo configure
:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11947 fu_cv_sys_stat_statvfs
=yes
11949 echo "configure: failed program was:" >&5
11950 cat conftest.
$ac_ext >&5
11952 fu_cv_sys_stat_statvfs
=no
11957 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11958 if test $fu_cv_sys_stat_statvfs = yes; then
11960 cat >> confdefs.h
<<\EOF
11961 #define STAT_STATVFS 1
11967 if test $space = no
; then
11968 # DEC Alpha running OSF/1
11969 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11970 echo "configure:11971: checking for 3-argument statfs function (DEC OSF/1)" >&5
11971 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11972 echo $ac_n "(cached) $ac_c" 1>&6
11974 if test "$cross_compiling" = yes; then
11975 fu_cv_sys_stat_statfs3_osf1
=no
11977 cat > conftest.
$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11981 #include <sys/param.h>
11982 #include <sys/types.h>
11983 #include <sys/mount.h>
11988 exit (statfs (".", &fsd, sizeof (struct statfs)));
11991 if { (eval echo configure
:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11993 fu_cv_sys_stat_statfs3_osf1
=yes
11995 echo "configure: failed program was:" >&5
11996 cat conftest.
$ac_ext >&5
11998 fu_cv_sys_stat_statfs3_osf1
=no
12005 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12006 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12008 cat >> confdefs.h
<<\EOF
12009 #define STAT_STATFS3_OSF1 1
12015 if test $space = no
; then
12017 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12018 echo "configure:12019: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12019 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12022 if test "$cross_compiling" = yes; then
12023 fu_cv_sys_stat_statfs2_bsize
=no
12025 cat > conftest.
$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12029 #ifdef HAVE_SYS_PARAM_H
12030 #include <sys/param.h>
12032 #ifdef HAVE_SYS_MOUNT_H
12033 #include <sys/mount.h>
12035 #ifdef HAVE_SYS_VFS_H
12036 #include <sys/vfs.h>
12042 exit (statfs (".", &fsd));
12045 if { (eval echo configure
:12046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12047 fu_cv_sys_stat_statfs2_bsize
=yes
12049 echo "configure: failed program was:" >&5
12050 cat conftest.
$ac_ext >&5
12052 fu_cv_sys_stat_statfs2_bsize
=no
12059 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12060 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12062 cat >> confdefs.h
<<\EOF
12063 #define STAT_STATFS2_BSIZE 1
12069 if test $space = no
; then
12071 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12072 echo "configure:12073: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12073 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12074 echo $ac_n "(cached) $ac_c" 1>&6
12076 if test "$cross_compiling" = yes; then
12077 fu_cv_sys_stat_statfs4
=no
12079 cat > conftest.
$ac_ext <<EOF
12080 #line 12081 "configure"
12081 #include "confdefs.h"
12082 #include <sys/types.h>
12083 #include <sys/statfs.h>
12087 exit (statfs (".", &fsd, sizeof fsd, 0));
12090 if { (eval echo configure
:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12092 fu_cv_sys_stat_statfs4
=yes
12094 echo "configure: failed program was:" >&5
12095 cat conftest.
$ac_ext >&5
12097 fu_cv_sys_stat_statfs4
=no
12104 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12105 if test $fu_cv_sys_stat_statfs4 = yes; then
12107 cat >> confdefs.h
<<\EOF
12108 #define STAT_STATFS4 1
12114 if test $space = no
; then
12115 # 4.4BSD and NetBSD
12116 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12117 echo "configure:12118: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12118 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12121 if test "$cross_compiling" = yes; then
12122 fu_cv_sys_stat_statfs2_fsize
=no
12124 cat > conftest.
$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12127 #include <sys/types.h>
12128 #ifdef HAVE_SYS_PARAM_H
12129 #include <sys/param.h>
12131 #ifdef HAVE_SYS_MOUNT_H
12132 #include <sys/mount.h>
12138 exit (statfs (".", &fsd));
12141 if { (eval echo configure
:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12143 fu_cv_sys_stat_statfs2_fsize
=yes
12145 echo "configure: failed program was:" >&5
12146 cat conftest.
$ac_ext >&5
12148 fu_cv_sys_stat_statfs2_fsize
=no
12155 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12156 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12158 cat >> confdefs.h
<<\EOF
12159 #define STAT_STATFS2_FSIZE 1
12165 if test $space = no
; then
12167 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12168 echo "configure:12169: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12169 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12170 echo $ac_n "(cached) $ac_c" 1>&6
12172 if test "$cross_compiling" = yes; then
12173 fu_cv_sys_stat_fs_data
=no
12175 cat > conftest.
$ac_ext <<EOF
12176 #line 12177 "configure"
12177 #include "confdefs.h"
12178 #include <sys/types.h>
12179 #ifdef HAVE_SYS_PARAM_H
12180 #include <sys/param.h>
12182 #ifdef HAVE_SYS_MOUNT_H
12183 #include <sys/mount.h>
12185 #ifdef HAVE_SYS_FS_TYPES_H
12186 #include <sys/fs_types.h>
12190 struct fs_data fsd;
12191 /* Ultrix's statfs returns 1 for success,
12192 0 for not mounted, -1 for failure. */
12193 exit (statfs (".", &fsd) != 1);
12196 if { (eval echo configure
:12197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12198 fu_cv_sys_stat_fs_data
=yes
12200 echo "configure: failed program was:" >&5
12201 cat conftest.
$ac_ext >&5
12203 fu_cv_sys_stat_fs_data
=no
12210 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12211 if test $fu_cv_sys_stat_fs_data = yes; then
12213 cat >> confdefs.h
<<\EOF
12214 #define STAT_STATFS2_FS_DATA 1
12221 # As a gating factor for large file support, in order to
12222 # use <4GB files we must have the following minimal support
12224 # long long, and a 64 bit off_t or off64_t.
12225 # If we don't have all of these then disable large
12228 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12229 echo "configure:12230: checking if large file support can be enabled" >&5
12230 cat > conftest.
$ac_ext <<EOF
12231 #line 12232 "configure"
12232 #include "confdefs.h"
12234 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12235 #include <sys/types.h>
12244 if { (eval echo configure
:12245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12246 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12248 echo "configure: failed program was:" >&5
12249 cat conftest.
$ac_ext >&5
12251 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12254 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12255 cat >> confdefs.h
<<\EOF
12256 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12260 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12262 # Check whether --with-spinlocks or --without-spinlocks was given.
12263 if test "${with_spinlocks+set}" = set; then
12264 withval
="$with_spinlocks"
12268 if test "x$with_spinlocks" = "xyes"; then
12269 cat >> confdefs.h
<<\EOF
12270 #define USE_SPINLOCKS 1
12274 case "$host_cpu" in
12276 cat >> confdefs.h
<<\EOF
12277 #define SPARC_SPINLOCKS 1
12282 i386|i486|i586|i686
)
12283 cat >> confdefs.h
<<\EOF
12284 #define INTEL_SPINLOCKS 1
12290 cat >> confdefs.h
<<\EOF
12291 #define MIPS_SPINLOCKS 1
12297 cat >> confdefs.h
<<\EOF
12298 #define POWERPC_SPINLOCKS 1
12305 #################################################
12306 # check for ACL support
12308 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12309 echo "configure:12310: checking whether to support ACLs" >&5
12310 # Check whether --with-acl-support or --without-acl-support was given.
12311 if test "${with_acl_support+set}" = set; then
12312 withval
="$with_acl_support"
12318 echo "$ac_t""Using UnixWare ACLs" 1>&6
12319 cat >> confdefs.h
<<\EOF
12320 #define HAVE_UNIXWARE_ACLS 1
12325 echo "$ac_t""Using solaris ACLs" 1>&6
12326 cat >> confdefs.h
<<\EOF
12327 #define HAVE_SOLARIS_ACLS 1
12332 echo "$ac_t""Using IRIX ACLs" 1>&6
12333 cat >> confdefs.h
<<\EOF
12334 #define HAVE_IRIX_ACLS 1
12339 echo "$ac_t""Using AIX ACLs" 1>&6
12340 cat >> confdefs.h
<<\EOF
12341 #define HAVE_AIX_ACLS 1
12346 echo "$ac_t""Using Tru64 ACLs" 1>&6
12347 cat >> confdefs.h
<<\EOF
12348 #define HAVE_TRU64_ACLS 1
12351 LIBS
="$LIBS -lpacl"
12354 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12355 echo "configure:12356: checking for acl_get_file in -lacl" >&5
12356 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12358 echo $ac_n "(cached) $ac_c" 1>&6
12360 ac_save_LIBS
="$LIBS"
12362 cat > conftest.
$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12365 /* Override any gcc2 internal prototype to avoid an error. */
12366 /* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12368 char acl_get_file();
12374 if { (eval echo configure
:12375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12376 eval "ac_cv_lib_$ac_lib_var=yes"
12378 echo "configure: failed program was:" >&5
12379 cat conftest.
$ac_ext >&5
12381 eval "ac_cv_lib_$ac_lib_var=no"
12384 LIBS
="$ac_save_LIBS"
12387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12388 echo "$ac_t""yes" 1>&6
12389 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12391 cat >> confdefs.h
<<EOF
12392 #define $ac_tr_lib 1
12398 echo "$ac_t""no" 1>&6
12401 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12402 echo "configure:12403: checking for ACL support" >&5
12403 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12407 cat > conftest.
$ac_ext <<EOF
12408 #line 12409 "configure"
12409 #include "confdefs.h"
12410 #include <sys/types.h>
12411 #include <sys/acl.h>
12413 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12416 if { (eval echo configure
:12417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12418 samba_cv_HAVE_POSIX_ACLS
=yes
12420 echo "configure: failed program was:" >&5
12421 cat conftest.
$ac_ext >&5
12423 samba_cv_HAVE_POSIX_ACLS
=no
12428 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12429 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12430 echo "$ac_t""Using posix ACLs" 1>&6
12431 cat >> confdefs.h
<<\EOF
12432 #define HAVE_POSIX_ACLS 1
12435 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12436 echo "configure:12437: checking for acl_get_perm_np" >&5
12437 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
12441 cat > conftest.
$ac_ext <<EOF
12442 #line 12443 "configure"
12443 #include "confdefs.h"
12444 #include <sys/types.h>
12445 #include <sys/acl.h>
12447 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12450 if { (eval echo configure
:12451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12452 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12454 echo "configure: failed program was:" >&5
12455 cat conftest.
$ac_ext >&5
12457 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12462 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12463 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12464 cat >> confdefs.h
<<\EOF
12465 #define HAVE_ACL_GET_PERM_NP 1
12474 echo "$ac_t""no" 1>&6
12475 cat >> confdefs.h
<<\EOF
12476 #define HAVE_NO_ACLS 1
12482 cat >> confdefs.h
<<\EOF
12483 #define HAVE_NO_ACLS 1
12486 echo "$ac_t""no" 1>&6
12491 #################################################
12492 # Check whether winbind is supported on this platform. If so we need to
12493 # build and install client programs (WINBIND_TARGETS), sbin programs
12494 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12496 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12497 echo "configure:12498: checking whether to build winbind" >&5
12499 # Initially, the value of $host_os decides whether winbind is supported
12507 winbind_no_reason
=", unsupported on $host_os"
12511 # Check the setting of --with-winbindd
12513 # Check whether --with-winbind or --without-winbind was given.
12514 if test "${with_winbind+set}" = set; then
12515 withval
="$with_winbind"
12529 # We need unix domain sockets for winbind
12531 if test x
"$HAVE_WINBIND" = x
"yes"; then
12532 if test x
"$samba_cv_unixsocket" = x
"no"; then
12533 winbind_no_reason
=", no unix domain socket support on $host_os"
12538 # Display test results
12540 if test x
"$HAVE_WINBIND" = x
"yes"; then
12542 echo "$ac_t""yes" 1>&6
12544 WINBIND_TARGETS
="\$(WINBIND_PROGS)"
12545 WINBIND_STARGETS
="\$(WINBIND_SPROGS)"
12546 WINBIND_LTARGETS
="\$(WINBIND_LPROGS)"
12548 case "$with_pam" in
12550 WINBIND_PAM_PROGS
="\$(WINBIND_PAM_PROGS)"
12554 echo "$ac_t""no$winbind_no_reason" 1>&6
12557 WINBIND_STARGETS
=""
12558 WINBIND_LTARGETS
=""
12559 WINBIND_PAM_PROGS
=""
12562 # Substitution time!
12569 #################################################
12570 # final configure stuff
12572 echo "checking configure summary"
12573 if test "$cross_compiling" = yes; then
12576 cat > conftest.
$ac_ext <<EOF
12577 #line 12578 "configure"
12578 #include "confdefs.h"
12579 #include "${srcdir-.}/tests/summary.c"
12581 if { (eval echo configure
:12582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12583 echo "configure OK";
12585 echo "configure: failed program was:" >&5
12586 cat conftest.
$ac_ext >&5
12588 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12598 cat > confcache
<<\EOF
12599 # This file is a shell script that caches the results of configure
12600 # tests run on this system so they can be shared between configure
12601 # scripts and configure runs. It is not useful on other systems.
12602 # If it contains results you don't want to keep, you may remove or edit it.
12604 # By default, configure uses ./config.cache as the cache file,
12605 # creating it if it does not exist already. You can give configure
12606 # the --cache-file=FILE option to use a different cache file; that is
12607 # what configure does when it calls configure scripts in
12608 # subdirectories, so they share the cache.
12609 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12610 # config.status only pays attention to the cache file if you give it the
12611 # --recheck option to rerun configure.
12614 # The following way of writing the cache mishandles newlines in values,
12615 # but we know of no workaround that is simple, portable, and efficient.
12616 # So, don't put newlines in cache variables' values.
12617 # Ultrix sh set writes to stderr and can't be redirected directly,
12618 # and sets the high bit in the cache file unless we assign to the vars.
12620 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12622 # `set' does not quote correctly, so add quotes (double-quote substitution
12623 # turns \\\\ into \\, and sed turns \\ into \).
12625 -e "s/'/'\\\\''/g" \
12626 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12629 # `set' quotes correctly as required by POSIX, so do not add quotes.
12630 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12633 if cmp -s $cache_file confcache
; then
12636 if test -w $cache_file; then
12637 echo "updating cache $cache_file"
12638 cat confcache
> $cache_file
12640 echo "not updating unwritable cache $cache_file"
12645 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12647 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12648 # Let make expand exec_prefix.
12649 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12651 # Any assignment to VPATH causes Sun make to only execute
12652 # the first set of double-colon rules, so remove it if not needed.
12653 # If there is a colon in the path, we need to keep it.
12654 if test "x$srcdir" = x.
; then
12655 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12658 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12660 DEFS
=-DHAVE_CONFIG_H
12662 # Without the "./", some shells look in PATH for config.status.
12663 : ${CONFIG_STATUS=./config.status}
12665 echo creating
$CONFIG_STATUS
12666 rm -f $CONFIG_STATUS
12667 cat > $CONFIG_STATUS <<EOF
12669 # Generated automatically by configure.
12670 # Run this file to recreate the current configuration.
12671 # This directory was configured as follows,
12672 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12674 # $0 $ac_configure_args
12676 # Compiler output produced by configure, useful for debugging
12677 # configure, is in ./config.log if it exists.
12679 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12682 case "\$ac_option" in
12683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12684 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12685 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12686 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12687 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12689 -help | --help | --hel | --he | --h)
12690 echo "\$ac_cs_usage"; exit 0 ;;
12691 *) echo "\$ac_cs_usage"; exit 1 ;;
12695 ac_given_srcdir=$srcdir
12696 ac_given_INSTALL="$INSTALL"
12698 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12700 cat >> $CONFIG_STATUS <<EOF
12702 # Protect against being on the right side of a sed subst in config.status.
12703 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12704 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12708 s%@CFLAGS@%$CFLAGS%g
12709 s%@CPPFLAGS@%$CPPFLAGS%g
12710 s%@CXXFLAGS@%$CXXFLAGS%g
12711 s%@FFLAGS@%$FFLAGS%g
12713 s%@LDFLAGS@%$LDFLAGS%g
12715 s%@exec_prefix@%$exec_prefix%g
12716 s%@prefix@%$prefix%g
12717 s%@program_transform_name@%$program_transform_name%g
12718 s%@bindir@%$bindir%g
12719 s%@sbindir@%$sbindir%g
12720 s%@libexecdir@%$libexecdir%g
12721 s%@datadir@%$datadir%g
12722 s%@sysconfdir@%$sysconfdir%g
12723 s%@sharedstatedir@%$sharedstatedir%g
12724 s%@localstatedir@%$localstatedir%g
12725 s%@libdir@%$libdir%g
12726 s%@includedir@%$includedir%g
12727 s%@oldincludedir@%$oldincludedir%g
12728 s%@infodir@%$infodir%g
12729 s%@mandir@%$mandir%g
12730 s%@RUNPROG@%$RUNPROG%g
12731 s%@MPROGS@%$MPROGS%g
12732 s%@LDSHFLAGS@%$LDSHFLAGS%g
12734 s%@HOST_OS@%$HOST_OS%g
12735 s%@PAM_MOD@%$PAM_MOD%g
12737 s%@WRAP32@%$WRAP32%g
12738 s%@PICFLAG@%$PICFLAG%g
12739 s%@PICSUFFIX@%$PICSUFFIX%g
12740 s%@POBAD_CC@%$POBAD_CC%g
12741 s%@SHLIBEXT@%$SHLIBEXT%g
12742 s%@BLDSHARED@%$BLDSHARED%g
12744 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12745 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12746 s%@INSTALL_DATA@%$INSTALL_DATA%g
12748 s%@BROKEN_CC@%$BROKEN_CC%g
12750 s%@host_alias@%$host_alias%g
12751 s%@host_cpu@%$host_cpu%g
12752 s%@host_vendor@%$host_vendor%g
12753 s%@host_os@%$host_os%g
12754 s%@target@%$target%g
12755 s%@target_alias@%$target_alias%g
12756 s%@target_cpu@%$target_cpu%g
12757 s%@target_vendor@%$target_vendor%g
12758 s%@target_os@%$target_os%g
12760 s%@build_alias@%$build_alias%g
12761 s%@build_cpu@%$build_cpu%g
12762 s%@build_vendor@%$build_vendor%g
12763 s%@build_os@%$build_os%g
12765 s%@LIBOBJS@%$LIBOBJS%g
12766 s%@TERMLIBS@%$TERMLIBS%g
12767 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12769 s%@QUOTAOBJS@%$QUOTAOBJS%g
12770 s%@privatedir@%$privatedir%g
12771 s%@lockdir@%$lockdir%g
12772 s%@swatdir@%$swatdir%g
12773 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12774 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12775 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12776 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12777 s%@builddir@%$builddir%g
12782 cat >> $CONFIG_STATUS <<\EOF
12784 # Split the substitutions into bite-sized pieces for seds with
12785 # small command number limits, like on Digital OSF/1 and HP-UX.
12786 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12787 ac_file
=1 # Number of current file.
12788 ac_beg
=1 # First line for current file.
12789 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12792 while $ac_more_lines; do
12793 if test $ac_beg -gt 1; then
12794 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12796 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12798 if test ! -s conftest.s
$ac_file; then
12799 ac_more_lines
=false
12800 rm -f conftest.s
$ac_file
12802 if test -z "$ac_sed_cmds"; then
12803 ac_sed_cmds
="sed -f conftest.s$ac_file"
12805 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12807 ac_file
=`expr $ac_file + 1`
12809 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12812 if test -z "$ac_sed_cmds"; then
12817 cat >> $CONFIG_STATUS <<EOF
12819 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12821 cat >> $CONFIG_STATUS <<\EOF
12822 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12825 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12826 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12827 *) ac_file_in
="${ac_file}.in" ;;
12830 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12832 # Remove last slash and all that follows it. Not all systems have dirname.
12833 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12834 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12835 # The file is in a subdirectory.
12836 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12837 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12838 # A "../" for each directory in $ac_dir_suffix.
12839 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12841 ac_dir_suffix
= ac_dots
=
12844 case "$ac_given_srcdir" in
12846 if test -z "$ac_dots"; then top_srcdir
=.
12847 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12848 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12849 *) # Relative path.
12850 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12851 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12854 case "$ac_given_INSTALL" in
12855 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12856 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12859 echo creating
"$ac_file"
12861 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12863 *Makefile
*) ac_comsub
="1i\\
12864 # $configure_input" ;;
12868 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12870 s%@configure_input@%$configure_input%g
12871 s%@srcdir@%$srcdir%g
12872 s%@top_srcdir@%$top_srcdir%g
12873 s%@INSTALL@%$INSTALL%g
12874 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12878 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12879 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12881 # ac_d sets the value in "#define NAME VALUE" lines.
12882 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12883 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12886 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12887 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12888 ac_uB
='\([ ]\)%\1#\2define\3'
12891 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12892 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12893 ac_eB
='$%\1#\2define\3'
12897 if test "${CONFIG_HEADERS+set}" != set; then
12899 cat >> $CONFIG_STATUS <<EOF
12900 CONFIG_HEADERS="include/config.h"
12902 cat >> $CONFIG_STATUS <<\EOF
12904 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12905 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12907 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12908 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12909 *) ac_file_in
="${ac_file}.in" ;;
12912 echo creating
$ac_file
12914 rm -f conftest.frag conftest.
in conftest.out
12915 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12916 cat $ac_file_inputs > conftest.
in
12920 # Transform confdefs.h into a sed script conftest.vals that substitutes
12921 # the proper values into config.h.in to produce config.h. And first:
12922 # Protect against being on the right side of a sed subst in config.status.
12923 # Protect against being in an unquoted here document in config.status.
12924 rm -f conftest.vals
12925 cat > conftest.hdr
<<\EOF
12928 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12932 sed -n -f conftest.hdr confdefs.h > conftest.vals
12935 # This sed command replaces #undef with comments. This is necessary, for
12936 # example, in the case of _POSIX_SOURCE, which is predefined and required
12937 # on some systems where configure will not decide to define it.
12938 cat >> conftest.vals <<\EOF
12939 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12942 # Break up conftest.vals because some shells have a limit on
12943 # the size of here documents, and old seds have small limits too.
12945 rm -f conftest.tail
12948 ac_lines=`grep -c . conftest.vals
`
12949 # grep -c gives empty output for an empty file on some AIX systems.
12950 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12951 # Write a limited-size here document to conftest.frag.
12952 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12953 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12955 sed -f conftest.frag conftest.in > conftest.out
12957 mv conftest.out conftest.in
12958 ' >> $CONFIG_STATUS
12959 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12960 rm -f conftest.vals
12961 mv conftest.tail conftest.vals
12963 rm -f conftest.vals
12965 cat >> $CONFIG_STATUS <<\EOF
12966 rm -f conftest.frag conftest.h
12967 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12968 cat conftest.in >> conftest.h
12970 if cmp -s $ac_file conftest.h 2>/dev/null; then
12971 echo "$ac_file is unchanged"
12974 # Remove last slash and all that follows it. Not all systems have dirname.
12975 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12976 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12977 # The file is in a subdirectory.
12978 test ! -d "$ac_dir" && mkdir "$ac_dir"
12981 mv conftest.h $ac_file
12986 cat >> $CONFIG_STATUS <<EOF
12989 cat >> $CONFIG_STATUS <<\EOF
12993 chmod +x $CONFIG_STATUS
12994 rm -fr confdefs* $ac_clean_files
12995 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1