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 --enable-developer turn on developer warnings and debugging [default=no]"
20 --enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
22 --enable-dmalloc enable heap debugging [default=no]"
24 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
26 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
28 --with-smbwrapper Include SMB wrapper support (default=no) "
30 --with-afs Include AFS clear-text auth support (default=no) "
32 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
34 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
36 --with-automount Include AUTOMOUNT support (default=no)"
38 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
40 --with-pam Include PAM support (default=no)"
42 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
44 --with-tdbsam Include experimental TDB SAM support (default=no)"
46 --with-ldapsam Include experimental LDAP SAM support (default=no)"
48 --with-nisplussam Include NISPLUS SAM support (default=no)"
50 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
52 --with-ssl Include SSL support (default=no)
53 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
54 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
56 --with-syslog Include experimental SYSLOG support (default=no)"
58 --with-profiling-data Include gathering source code profile information (default=no)"
60 --with-quotas Include experimental disk-quota support (default=no)"
62 --with-utmp Include experimental utmp accounting (default=no)"
64 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
66 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
68 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
70 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
72 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
74 --with-acl-support Include ACL support (default=no)"
76 --with-winbind Build winbind (default, if supported by OS)"
78 --with-included-popt use bundled popt library, not from system"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
84 cache_file=./config.cache
93 program_transform_name=s,x,x,
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 infodir='${prefix}/info'
112 mandir='${prefix}/man'
114 # Initialize some other variables.
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
146 -build | --build | --buil | --bui | --bu)
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 datadir="$ac_optarg" ;;
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host | --host | --hos | --ho)
256 -host=* | --host=* | --hos=* | --ho=*)
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
266 -infodir | --infodir | --infodi | --infod | --info | --inf)
268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269 infodir="$ac_optarg" ;;
271 -libdir | --libdir | --libdi | --libd)
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 sbindir="$ac_optarg" ;;
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 sharedstatedir="$ac_optarg" ;;
375 -site | --site | --sit)
377 -site=* | --site=* | --sit=*)
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=include/includes.h
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
585 ac_n= ac_c='\c' ac_t=
590 # we want to be compatible with older versions of Samba
608 # compile with optimisation and without debugging by default
609 CFLAGS="-O ${CFLAGS}"
611 # Check whether --enable-debug or --disable-debug was given.
612 if test "${enable_debug+set}" = set; then
613 enableval="$enable_debug"
614 if eval "test x$enable_debug = xyes"; then
615 CFLAGS="${CFLAGS} -g"
620 # Check whether --enable-developer or --disable-developer was given.
621 if test "${enable_developer+set}" = set; then
622 enableval="$enable_developer"
623 if eval "test x$enable_developer = xyes"; then
624 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
629 # Check whether --enable-krb5developer or --disable-krb5developer was given.
630 if test "${enable_krb5developer+set}" = set; then
631 enableval="$enable_krb5developer"
632 if eval "test x$enable_krb5developer = xyes"; then
633 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
638 # Check whether --enable-dmalloc or --disable-dmalloc was given.
639 if test "${enable_dmalloc+set}" = set; then
640 enableval="$enable_dmalloc"
645 if test "x$enable_dmalloc" = xyes
647 cat >> confdefs.h <<\EOF
648 #define ENABLE_DMALLOC 1
651 cat >> confdefs.h <<\EOF
652 #define DMALLOC_FUNC_CHECK 1
655 LIBS="$LIBS -ldmalloc"
658 # Extract the first word of "gcc", so it can be a program name with args.
659 set dummy gcc; ac_word=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 if test -n "$CC"; then
666 ac_cv_prog_CC="$CC" # Let the user override the test.
668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 for ac_dir in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir=.
672 if test -f $ac_dir/$ac_word; then
681 if test -n "$CC"; then
682 echo "$ac_t""$CC" 1>&6
684 echo "$ac_t""no" 1>&6
687 if test -z "$CC"; then
688 # Extract the first word of "cc", so it can be a program name with args.
689 set dummy cc; ac_word=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 if test -n "$CC"; then
696 ac_cv_prog_CC="$CC" # Let the user override the test.
698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
701 for ac_dir in $ac_dummy; do
702 test -z "$ac_dir" && ac_dir=.
703 if test -f $ac_dir/$ac_word; then
704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
713 if test $ac_prog_rejected = yes; then
714 # We found a bogon in the path, so make sure we never use it.
715 set dummy $ac_cv_prog_CC
717 if test $# -gt 0; then
718 # We chose a different compiler from the bogus one.
719 # However, it has the same basename, so the bogon will be chosen
720 # first if we set CC to just the basename; use the full file name.
722 set dummy "$ac_dir/$ac_word" "$@"
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
733 echo "$ac_t""no" 1>&6
736 if test -z "$CC"; then
739 # Extract the first word of "cl", so it can be a program name with args.
740 set dummy cl; ac_word=$2
741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742 echo "configure:743: checking for $ac_word" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 if test -n "$CC"; then
747 ac_cv_prog_CC="$CC" # Let the user override the test.
749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 for ac_dir in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir=.
753 if test -f $ac_dir/$ac_word; then
762 if test -n "$CC"; then
763 echo "$ac_t""$CC" 1>&6
765 echo "$ac_t""no" 1>&6
770 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
774 echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778 ac_cpp='$CPP $CPPFLAGS'
779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781 cross_compiling=$ac_cv_prog_cc_cross
783 cat > conftest.$ac_ext << EOF
785 #line 786 "configure"
786 #include "confdefs.h"
790 if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
791 ac_cv_prog_cc_works=yes
792 # If we can't run a trivial program, we are probably using a cross compiler.
793 if (./conftest; exit) 2>/dev/null; then
794 ac_cv_prog_cc_cross=no
796 ac_cv_prog_cc_cross=yes
799 echo "configure: failed program was:" >&5
800 cat conftest.$ac_ext >&5
801 ac_cv_prog_cc_works=no
805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806 ac_cpp='$CPP $CPPFLAGS'
807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809 cross_compiling=$ac_cv_prog_cc_cross
811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812 if test $ac_cv_prog_cc_works = no; then
813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821 echo "configure:822: checking whether we are using GNU C" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftest.c <<EOF
830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839 if test $ac_cv_prog_gcc = yes; then
845 ac_test_CFLAGS="${CFLAGS+set}"
846 ac_save_CFLAGS="$CFLAGS"
848 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${CC-cc} accepts -g" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 echo 'void f(){}' > conftest.c
854 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
864 if test "$ac_test_CFLAGS" = set; then
865 CFLAGS="$ac_save_CFLAGS"
866 elif test $ac_cv_prog_cc_g = yes; then
867 if test "$GCC" = yes; then
873 if test "$GCC" = yes; then
881 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
882 if test -f $ac_dir/install-sh; then
884 ac_install_sh="$ac_aux_dir/install-sh -c"
886 elif test -f $ac_dir/install.sh; then
888 ac_install_sh="$ac_aux_dir/install.sh -c"
892 if test -z "$ac_aux_dir"; then
893 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
895 ac_config_guess=$ac_aux_dir/config.guess
896 ac_config_sub=$ac_aux_dir/config.sub
897 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
899 # Find a good install program. We prefer a C program (faster),
900 # so one script is as good as another. But avoid the broken or
901 # incompatible versions:
902 # SysV /etc/install, /usr/sbin/install
903 # SunOS /usr/etc/install
906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
909 # ./install, which can be erroneously created by make from ./install.sh.
910 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
911 echo "configure:912: checking for a BSD compatible install" >&5
912 if test -z "$INSTALL"; then
913 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
917 for ac_dir in $PATH; do
918 # Account for people who put trailing slashes in PATH elements.
920 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
922 # OSF1 and SCO ODT 3.0 have their own names for install.
923 # Don't use installbsd from OSF since it installs stuff as root
925 for ac_prog in ginstall scoinst install; do
926 if test -f $ac_dir/$ac_prog; then
927 if test $ac_prog = install &&
928 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
929 # AIX install. It has an incompatible calling convention.
932 ac_cv_path_install="$ac_dir/$ac_prog -c"
943 if test "${ac_cv_path_install+set}" = set; then
944 INSTALL="$ac_cv_path_install"
946 # As a last resort, use the slow shell script. We don't cache a
947 # path for INSTALL within a source directory, because that will
948 # break other packages using the cache if that directory is
949 # removed, or if the path is relative.
950 INSTALL="$ac_install_sh"
953 echo "$ac_t""$INSTALL" 1>&6
955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
956 # It thinks the first close brace ends the variable substitution.
957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
963 for ac_prog in gawk mawk nawk awk
965 # Extract the first word of "$ac_prog", so it can be a program name with args.
966 set dummy $ac_prog; ac_word=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$AWK"; then
973 ac_cv_prog_AWK="$AWK" # Let the user override the test.
975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word; then
980 ac_cv_prog_AWK="$ac_prog"
987 AWK="$ac_cv_prog_AWK"
988 if test -n "$AWK"; then
989 echo "$ac_t""$AWK" 1>&6
991 echo "$ac_t""no" 1>&6
994 test -n "$AWK" && break
998 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
999 echo "configure:1000: checking for POSIXized ISC" >&5
1000 if test -d /etc/conf/kconfig.d &&
1001 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1003 echo "$ac_t""yes" 1>&6
1004 ISC=yes # If later tests want to check for ISC.
1005 cat >> confdefs.h <<\EOF
1006 #define _POSIX_SOURCE 1
1009 if test "$GCC" = yes; then
1015 echo "$ac_t""no" 1>&6
1020 if test "x$CC" != xcc; then
1021 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether $CC and cc understand -c and -o together" >&5
1024 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether cc understands -c and -o together" >&5
1027 set dummy $CC; ac_cc="`echo $2 |
1028 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1029 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 echo 'foo(){}' > conftest.c
1033 # Make sure it works both with $CC and with simple cc.
1034 # We do the test twice because some compilers refuse to overwrite an
1035 # existing .o file with -o, though they will create one.
1036 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1037 if { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1038 test -f conftest.o && { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1040 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1041 if test "x$CC" != xcc; then
1042 # Test first that cc exists at all.
1043 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1044 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1045 if { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1046 test -f conftest.o && { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1051 # cc exists but doesn't like -o.
1052 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1062 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1063 echo "$ac_t""yes" 1>&6
1065 echo "$ac_t""no" 1>&6
1066 cat >> confdefs.h <<\EOF
1067 #define NO_MINUS_C_MINUS_O 1
1072 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1079 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1080 echo "configure:1081: checking that the C compiler understands volatile" >&5
1081 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1085 cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1088 #include <sys/types.h>
1093 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1095 samba_cv_volatile=yes
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1100 samba_cv_volatile=no
1105 echo "$ac_t""$samba_cv_volatile" 1>&6
1106 if test x"$samba_cv_volatile" = x"yes"; then
1107 cat >> confdefs.h <<\EOF
1108 #define HAVE_VOLATILE 1
1115 # Do some error checking and defaulting for the host and target type.
1117 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1120 # 1. You are not allowed to specify --host, --target, and nonopt at the
1122 # 2. Host defaults to nonopt.
1123 # 3. If nonopt is not specified, then host defaults to the current host,
1124 # as determined by config.guess.
1125 # 4. Target and build default to nonopt.
1126 # 5. If nonopt is not specified, then target and build default to host.
1128 # The aliases save the names the user supplied, while $host etc.
1129 # will get canonicalized.
1130 case $host---$target---$nonopt in
1131 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1132 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1136 # Make sure we can run config.sub.
1137 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1138 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1141 echo $ac_n "checking host system type""... $ac_c" 1>&6
1142 echo "configure:1143: checking host system type" >&5
1145 case "$host_alias" in
1149 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1150 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1152 *) host_alias=$nonopt ;;
1156 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1157 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1158 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1159 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1160 echo "$ac_t""$host" 1>&6
1162 echo $ac_n "checking target system type""... $ac_c" 1>&6
1163 echo "configure:1164: checking target system type" >&5
1165 target_alias=$target
1166 case "$target_alias" in
1169 NONE) target_alias=$host_alias ;;
1170 *) target_alias=$nonopt ;;
1174 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1175 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1176 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1177 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1178 echo "$ac_t""$target" 1>&6
1180 echo $ac_n "checking build system type""... $ac_c" 1>&6
1181 echo "configure:1182: checking build system type" >&5
1184 case "$build_alias" in
1187 NONE) build_alias=$host_alias ;;
1188 *) build_alias=$nonopt ;;
1192 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1193 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1194 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1195 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1196 echo "$ac_t""$build" 1>&6
1198 test "$host_alias" != "$target_alias" &&
1199 test "$program_prefix$program_suffix$program_transform_name" = \
1201 program_prefix=${target_alias}-
1205 *irix6*) cat >> confdefs.h <<\EOF
1206 #include <standards.h>
1214 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1215 echo "configure:1216: checking config.cache system type" >&5
1216 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1217 test x"$ac_cv_host_system_type" != x"$host"; } ||
1218 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1219 test x"$ac_cv_build_system_type" != x"$build"; } ||
1220 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1221 test x"$ac_cv_target_system_type" != x"$target"; }; then
1222 echo "$ac_t""different" 1>&6
1223 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1225 echo "$ac_t""same" 1>&6
1227 ac_cv_host_system_type="$host"
1228 ac_cv_build_system_type="$build"
1229 ac_cv_target_system_type="$target"
1233 # Config CPPFLAG settings for strange OS's that must be set
1234 # before other tests.
1237 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1239 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${CC-cc} accepts -Ae" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 echo 'void f(){}' > conftest.c
1245 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1246 ac_cv_prog_cc_Ae=yes
1254 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1255 # mmap on HPUX is completely broken...
1256 cat >> confdefs.h <<\EOF
1257 #define MMAP_BLACKLIST 1
1260 if test $ac_cv_prog_cc_Ae = yes; then
1261 CPPFLAGS="$CPPFLAGS -Ae"
1264 # Defines needed for HPUX support.
1265 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1266 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1270 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1271 cat >> confdefs.h <<\EOF
1272 #define USE_BOTH_CRYPT_CALLS 1
1277 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1278 cat >> confdefs.h <<\EOF
1279 #define USE_BOTH_CRYPT_CALLS 1
1287 # CRAY Unicos has broken const handling
1289 echo "$ac_t""disabling const" 1>&6
1290 CPPFLAGS="$CPPFLAGS -Dconst="
1294 # AIX4.x doesn't even admit to having large
1295 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1298 echo "$ac_t""enabling large file support" 1>&6
1299 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1302 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1303 # to the existance of large files..
1304 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1305 # recommendations on large file support, however it makes the
1306 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1307 # recommendation makes the compile fail on gcc2.7. JRA.
1311 5.0*|5.1*|5.2*|5.3*|5.5*)
1312 echo "$ac_t""no large file support" 1>&6
1315 echo "$ac_t""enabling large file support" 1>&6
1316 if test "$ac_cv_prog_gcc" = yes; then
1317 ${CC-cc} -v >conftest.c 2>&1
1318 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1320 case "$ac_cv_gcc_compiler_version_number" in
1321 *"gcc version 2.6"*|*"gcc version 2.7"*)
1322 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1325 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1329 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1335 # Tests needed for SINIX large file support.
1338 if test $host = mips-sni-sysv4 ; then
1339 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1340 echo "configure:1341: checking for LFS support" >&5
1341 old_CPPFLAGS="$CPPFLAGS"
1342 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1343 if test "$cross_compiling" = yes; then
1344 SINIX_LFS_SUPPORT=cross
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1352 #if _LFS64_LARGEFILE == 1
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1361 SINIX_LFS_SUPPORT=yes
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1366 SINIX_LFS_SUPPORT=no
1371 CPPFLAGS="$old_CPPFLAGS"
1372 if test x$SINIX_LFS_SUPPORT = xyes ; then
1373 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1374 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1375 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1376 LIBS="`getconf LFS64_LIBS` $LIBS"
1378 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1382 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1385 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1386 echo "configure:1387: checking for LFS support" >&5
1387 old_CPPFLAGS="$CPPFLAGS"
1388 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1389 if test "$cross_compiling" = yes; then
1390 LINUX_LFS_SUPPORT=cross
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1397 #include <sys/utsname.h>
1399 #if _LFS64_LARGEFILE == 1
1404 /* Ensure this is glibc 2.2 or higher */
1405 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1406 int libc_major = __GLIBC__;
1407 int libc_minor = __GLIBC_MINOR__;
1415 /* Ensure this is kernel 2.4 or higher */
1418 release = uts.release;
1419 major = atoi(strsep(&release, "."));
1420 minor = atoi(strsep(&release, "."));
1422 if (major > 2 || (major == 2 && minor > 3))
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1433 LINUX_LFS_SUPPORT=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1438 LINUX_LFS_SUPPORT=no
1443 CPPFLAGS="$old_CPPFLAGS"
1444 if test x$LINUX_LFS_SUPPORT = xyes ; then
1445 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1447 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1451 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1452 echo "configure:1453: checking for LFS support" >&5
1453 old_CPPFLAGS="$CPPFLAGS"
1454 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1455 if test "$cross_compiling" = yes; then
1456 GLIBC_LFS_SUPPORT=cross
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1464 #if _LFS64_LARGEFILE == 1
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1473 GLIBC_LFS_SUPPORT=yes
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 GLIBC_LFS_SUPPORT=no
1483 CPPFLAGS="$old_CPPFLAGS"
1484 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1485 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1487 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1492 echo $ac_n "checking for inline""... $ac_c" 1>&6
1493 echo "configure:1494: checking for inline" >&5
1494 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1498 for ac_kw in inline __inline__ __inline; do
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1507 if { (eval echo configure:1508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1509 ac_cv_c_inline=$ac_kw; break
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1519 echo "$ac_t""$ac_cv_c_inline" 1>&6
1520 case "$ac_cv_c_inline" in
1522 no) cat >> confdefs.h <<\EOF
1526 *) cat >> confdefs.h <<EOF
1527 #define inline $ac_cv_c_inline
1532 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1533 echo "configure:1534: checking how to run the C preprocessor" >&5
1534 # On Suns, sometimes $CPP names a directory.
1535 if test -n "$CPP" && test -d "$CPP"; then
1538 if test -z "$CPP"; then
1539 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 # This must be in double quotes, not single quotes, because CPP may get
1543 # substituted into the Makefile and "${CC-cc}" will confuse make.
1545 # On the NeXT, cc -E runs the code through the compiler's parser,
1546 # not just through cpp.
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1563 CPP="${CC-cc} -E -traditional-cpp"
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1571 { (eval echo configure:1572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1573 if test -z "$ac_err"; then
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1580 CPP="${CC-cc} -nologo -E"
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588 { (eval echo configure:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1590 if test -z "$ac_err"; then
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1604 ac_cv_prog_CPP="$CPP"
1606 CPP="$ac_cv_prog_CPP"
1608 ac_cv_prog_CPP="$CPP"
1610 echo "$ac_t""$CPP" 1>&6
1612 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1613 echo "configure:1614: checking for ANSI C header files" >&5
1614 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1626 { (eval echo configure:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1628 if test -z "$ac_err"; then
1630 ac_cv_header_stdc=yes
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1636 ac_cv_header_stdc=no
1640 if test $ac_cv_header_stdc = yes; then
1641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "memchr" >/dev/null 2>&1; then
1652 ac_cv_header_stdc=no
1658 if test $ac_cv_header_stdc = yes; then
1659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1666 egrep "free" >/dev/null 2>&1; then
1670 ac_cv_header_stdc=no
1676 if test $ac_cv_header_stdc = yes; then
1677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1678 if test "$cross_compiling" = yes; then
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1685 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1686 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1688 int main () { int i; for (i = 0; i < 256; i++)
1689 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 ac_cv_header_stdc=no
1708 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1709 if test $ac_cv_header_stdc = yes; then
1710 cat >> confdefs.h <<\EOF
1711 #define STDC_HEADERS 1
1717 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1720 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1721 echo "configure:1722: checking for $ac_hdr that defines DIR" >&5
1722 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 #include <sys/types.h>
1734 if { (eval echo configure:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1736 eval "ac_cv_header_dirent_$ac_safe=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1741 eval "ac_cv_header_dirent_$ac_safe=no"
1745 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1746 echo "$ac_t""yes" 1>&6
1747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1748 cat >> confdefs.h <<EOF
1749 #define $ac_tr_hdr 1
1751 ac_header_dirent=$ac_hdr; break
1753 echo "$ac_t""no" 1>&6
1756 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1757 if test $ac_header_dirent = dirent.h; then
1758 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1759 echo "configure:1760: checking for opendir in -ldir" >&5
1760 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS="$LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1795 echo "$ac_t""no" 1>&6
1799 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1800 echo "configure:1801: checking for opendir in -lx" >&5
1801 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 ac_save_LIBS="$LIBS"
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 /* Override any gcc2 internal prototype to avoid an error. */
1811 /* We use char because int might match the return type of a gcc2
1812 builtin and then its argument prototype would still apply. */
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1821 eval "ac_cv_lib_$ac_lib_var=yes"
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 eval "ac_cv_lib_$ac_lib_var=no"
1829 LIBS="$ac_save_LIBS"
1832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1833 echo "$ac_t""yes" 1>&6
1836 echo "$ac_t""no" 1>&6
1841 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether time.h and sys/time.h may both be included" >&5
1843 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 #include <sys/types.h>
1850 #include <sys/time.h>
1856 if { (eval echo configure:1857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1858 ac_cv_header_time=yes
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 ac_cv_header_time=no
1868 echo "$ac_t""$ac_cv_header_time" 1>&6
1869 if test $ac_cv_header_time = yes; then
1870 cat >> confdefs.h <<\EOF
1871 #define TIME_WITH_SYS_TIME 1
1876 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1877 echo "configure:1878: checking for sys/wait.h that is POSIX.1 compatible" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <sys/types.h>
1885 #include <sys/wait.h>
1887 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1890 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1895 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1898 if { (eval echo configure:1899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1900 ac_cv_header_sys_wait_h=yes
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 ac_cv_header_sys_wait_h=no
1910 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1911 if test $ac_cv_header_sys_wait_h = yes; then
1912 cat >> confdefs.h <<\EOF
1913 #define HAVE_SYS_WAIT_H 1
1918 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1922 echo "configure:1923: checking for $ac_hdr" >&5
1923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 cat > conftest.$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1936 eval "ac_cv_header_$ac_safe=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 eval "ac_cv_header_$ac_safe=no"
1946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1949 cat >> confdefs.h <<EOF
1950 #define $ac_tr_hdr 1
1954 echo "$ac_t""no" 1>&6
1958 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_hdr" >&5
1963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1972 { (eval echo configure:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1974 if test -z "$ac_err"; then
1976 eval "ac_cv_header_$ac_safe=yes"
1979 echo "configure: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1982 eval "ac_cv_header_$ac_safe=no"
1986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1989 cat >> confdefs.h <<EOF
1990 #define $ac_tr_hdr 1
1994 echo "$ac_t""no" 1>&6
1998 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002 echo "configure:2003: checking for $ac_hdr" >&5
2003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2012 { (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2014 if test -z "$ac_err"; then
2016 eval "ac_cv_header_$ac_safe=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2022 eval "ac_cv_header_$ac_safe=no"
2026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2029 cat >> confdefs.h <<EOF
2030 #define $ac_tr_hdr 1
2034 echo "$ac_t""no" 1>&6
2038 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_hdr" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054 if test -z "$ac_err"; then
2056 eval "ac_cv_header_$ac_safe=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 eval "ac_cv_header_$ac_safe=no"
2066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069 cat >> confdefs.h <<EOF
2070 #define $ac_tr_hdr 1
2074 echo "$ac_t""no" 1>&6
2078 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
2080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2082 echo "configure:2083: checking for $ac_hdr" >&5
2083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2092 { (eval echo configure:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2094 if test -z "$ac_err"; then
2096 eval "ac_cv_header_$ac_safe=yes"
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2102 eval "ac_cv_header_$ac_safe=no"
2106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2109 cat >> confdefs.h <<EOF
2110 #define $ac_tr_hdr 1
2114 echo "$ac_t""no" 1>&6
2118 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2122 echo "configure:2123: checking for $ac_hdr" >&5
2123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2132 { (eval echo configure:2133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2134 if test -z "$ac_err"; then
2136 eval "ac_cv_header_$ac_safe=yes"
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 eval "ac_cv_header_$ac_safe=no"
2146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2149 cat >> confdefs.h <<EOF
2150 #define $ac_tr_hdr 1
2154 echo "$ac_t""no" 1>&6
2158 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_hdr" >&5
2163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2172 { (eval echo configure:2173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2174 if test -z "$ac_err"; then
2176 eval "ac_cv_header_$ac_safe=yes"
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2182 eval "ac_cv_header_$ac_safe=no"
2186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2189 cat >> confdefs.h <<EOF
2190 #define $ac_tr_hdr 1
2194 echo "$ac_t""no" 1>&6
2198 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h
2200 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2202 echo "configure:2203: checking for $ac_hdr" >&5
2203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2212 { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2214 if test -z "$ac_err"; then
2216 eval "ac_cv_header_$ac_safe=yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 eval "ac_cv_header_$ac_safe=no"
2226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2229 cat >> confdefs.h <<EOF
2230 #define $ac_tr_hdr 1
2234 echo "$ac_t""no" 1>&6
2240 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2241 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2253 if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2255 ac_cv_header_shadow_h=yes
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2260 ac_cv_header_shadow_h=no
2263 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2264 cat >> confdefs.h <<\EOF
2265 #define HAVE_SHADOW_H 1
2271 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_hdr" >&5
2276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285 { (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287 if test -z "$ac_err"; then
2289 eval "ac_cv_header_$ac_safe=yes"
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 eval "ac_cv_header_$ac_safe=no"
2299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2302 cat >> confdefs.h <<EOF
2303 #define $ac_tr_hdr 1
2307 echo "$ac_t""no" 1>&6
2311 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_hdr" >&5
2316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2325 { (eval echo configure:2326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2327 if test -z "$ac_err"; then
2329 eval "ac_cv_header_$ac_safe=yes"
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 eval "ac_cv_header_$ac_safe=no"
2339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2342 cat >> confdefs.h <<EOF
2343 #define $ac_tr_hdr 1
2347 echo "$ac_t""no" 1>&6
2351 for ac_hdr in stropts.h poll.h
2353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_hdr" >&5
2356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2365 { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2367 if test -z "$ac_err"; then
2369 eval "ac_cv_header_$ac_safe=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 eval "ac_cv_header_$ac_safe=no"
2379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2382 cat >> confdefs.h <<EOF
2383 #define $ac_tr_hdr 1
2387 echo "$ac_t""no" 1>&6
2391 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_hdr" >&5
2396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2405 { (eval echo configure:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2407 if test -z "$ac_err"; then
2409 eval "ac_cv_header_$ac_safe=yes"
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2415 eval "ac_cv_header_$ac_safe=no"
2419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2422 cat >> confdefs.h <<EOF
2423 #define $ac_tr_hdr 1
2427 echo "$ac_t""no" 1>&6
2431 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_hdr" >&5
2436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2445 { (eval echo configure:2446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2447 if test -z "$ac_err"; then
2449 eval "ac_cv_header_$ac_safe=yes"
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 eval "ac_cv_header_$ac_safe=no"
2459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2462 cat >> confdefs.h <<EOF
2463 #define $ac_tr_hdr 1
2467 echo "$ac_t""no" 1>&6
2472 # For experimental utmp support (lastlog on some BSD-like systems)
2473 for ac_hdr in utmp.h utmpx.h lastlog.h
2475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_hdr" >&5
2478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2487 { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2489 if test -z "$ac_err"; then
2491 eval "ac_cv_header_$ac_safe=yes"
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 eval "ac_cv_header_$ac_safe=no"
2501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2503 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2504 cat >> confdefs.h <<EOF
2505 #define $ac_tr_hdr 1
2509 echo "$ac_t""no" 1>&6
2514 # For quotas on Veritas VxFS filesystems
2515 for ac_hdr in sys/fs/vx_quota.h
2517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_hdr" >&5
2520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2529 { (eval echo configure:2530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2531 if test -z "$ac_err"; then
2533 eval "ac_cv_header_$ac_safe=yes"
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2539 eval "ac_cv_header_$ac_safe=no"
2543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2544 echo "$ac_t""yes" 1>&6
2545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2546 cat >> confdefs.h <<EOF
2547 #define $ac_tr_hdr 1
2551 echo "$ac_t""no" 1>&6
2556 # For quotas on Linux XFS filesystems
2557 for ac_hdr in linux/xqm.h
2559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_hdr" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2571 { (eval echo configure:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2573 if test -z "$ac_err"; then
2575 eval "ac_cv_header_$ac_safe=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2581 eval "ac_cv_header_$ac_safe=no"
2585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2588 cat >> confdefs.h <<EOF
2589 #define $ac_tr_hdr 1
2593 echo "$ac_t""no" 1>&6
2598 echo $ac_n "checking size of int""... $ac_c" 1>&6
2599 echo "configure:2600: checking size of int" >&5
2600 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 if test "$cross_compiling" = yes; then
2604 ac_cv_sizeof_int=cross
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2612 FILE *f=fopen("conftestval", "w");
2614 fprintf(f, "%d\n", sizeof(int));
2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2620 ac_cv_sizeof_int=`cat conftestval`
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2631 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2632 cat >> confdefs.h <<EOF
2633 #define SIZEOF_INT $ac_cv_sizeof_int
2637 echo $ac_n "checking size of long""... $ac_c" 1>&6
2638 echo "configure:2639: checking size of long" >&5
2639 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 if test "$cross_compiling" = yes; then
2643 ac_cv_sizeof_long=cross
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2651 FILE *f=fopen("conftestval", "w");
2653 fprintf(f, "%d\n", sizeof(long));
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2659 ac_cv_sizeof_long=`cat conftestval`
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2670 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2671 cat >> confdefs.h <<EOF
2672 #define SIZEOF_LONG $ac_cv_sizeof_long
2676 echo $ac_n "checking size of short""... $ac_c" 1>&6
2677 echo "configure:2678: checking size of short" >&5
2678 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 if test "$cross_compiling" = yes; then
2682 ac_cv_sizeof_short=cross
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2690 FILE *f=fopen("conftestval", "w");
2692 fprintf(f, "%d\n", sizeof(short));
2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2698 ac_cv_sizeof_short=`cat conftestval`
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2703 ac_cv_sizeof_short=0
2709 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2710 cat >> confdefs.h <<EOF
2711 #define SIZEOF_SHORT $ac_cv_sizeof_short
2716 echo $ac_n "checking for working const""... $ac_c" 1>&6
2717 echo "configure:2718: checking for working const" >&5
2718 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2727 /* Ultrix mips cc rejects this. */
2728 typedef int charset[2]; const charset x;
2729 /* SunOS 4.1.1 cc rejects this. */
2730 char const *const *ccp;
2732 /* NEC SVR4.0.2 mips cc rejects this. */
2733 struct point {int x, y;};
2734 static struct point const zero = {0,0};
2735 /* AIX XL C 1.02.0.0 rejects this.
2736 It does not let you subtract one const X* pointer from another in an arm
2737 of an if-expression whose if-part is not a constant expression */
2738 const char *g = "string";
2739 ccp = &g + (g ? g-g : 0);
2740 /* HPUX 7.0 cc rejects these. */
2743 ccp = (char const *const *) p;
2744 { /* SCO 3.2v4 cc rejects this. */
2746 char const *s = 0 ? (char *) 0 : (char const *) 0;
2750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2752 const int *foo = &x[0];
2755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2756 typedef const int *iptr;
2760 { /* AIX XL C 1.02.0.0 rejects this saying
2761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2762 struct s { int j; const int *ap[3]; };
2763 struct s *b; b->j = 5;
2765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2771 if { (eval echo configure:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2783 echo "$ac_t""$ac_cv_c_const" 1>&6
2784 if test $ac_cv_c_const = no; then
2785 cat >> confdefs.h <<\EOF
2791 echo $ac_n "checking for inline""... $ac_c" 1>&6
2792 echo "configure:2793: checking for inline" >&5
2793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2797 for ac_kw in inline __inline__ __inline; do
2798 cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2806 if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2808 ac_cv_c_inline=$ac_kw; break
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2818 echo "$ac_t""$ac_cv_c_inline" 1>&6
2819 case "$ac_cv_c_inline" in
2821 no) cat >> confdefs.h <<\EOF
2825 *) cat >> confdefs.h <<EOF
2826 #define inline $ac_cv_c_inline
2831 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2832 echo "configure:2833: checking whether byte ordering is bigendian" >&5
2833 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 ac_cv_c_bigendian=unknown
2837 # See if sys/param.h defines the BYTE_ORDER macro.
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2842 #include <sys/param.h>
2845 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2850 if { (eval echo configure:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2852 # It does; now see whether it defined to BIG_ENDIAN or not.
2853 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 #include <sys/types.h>
2857 #include <sys/param.h>
2860 #if BYTE_ORDER != BIG_ENDIAN
2865 if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2867 ac_cv_c_bigendian=yes
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2872 ac_cv_c_bigendian=no
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2880 if test $ac_cv_c_bigendian = unknown; then
2881 if test "$cross_compiling" = yes; then
2882 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2888 /* Are we little or big endian? From Harbison&Steele. */
2892 char c[sizeof (long)];
2895 exit (u.c[sizeof (long) - 1] == 1);
2898 if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2900 ac_cv_c_bigendian=no
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2905 ac_cv_c_bigendian=yes
2913 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2914 if test $ac_cv_c_bigendian = yes; then
2915 cat >> confdefs.h <<\EOF
2916 #define WORDS_BIGENDIAN 1
2921 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2922 echo "configure:2923: checking whether char is unsigned" >&5
2923 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 if test "$GCC" = yes; then
2927 # GCC predefines this symbol on systems where it applies.
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 #ifdef __CHAR_UNSIGNED__
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "yes" >/dev/null 2>&1; then
2939 ac_cv_c_char_unsigned=yes
2942 ac_cv_c_char_unsigned=no
2947 if test "$cross_compiling" = yes; then
2948 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2954 #if !defined(__STDC__) || __STDC__ != 1
2958 volatile char c = 255; exit(c < 0);
2961 if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2963 ac_cv_c_char_unsigned=yes
2965 echo "configure: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2968 ac_cv_c_char_unsigned=no
2976 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2977 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2978 cat >> confdefs.h <<\EOF
2979 #define __CHAR_UNSIGNED__ 1
2985 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2986 echo "configure:2987: checking return type of signal handlers" >&5
2987 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2999 extern "C" void (*signal (int, void (*)(int)))(int);
3001 void (*signal ()) ();
3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3010 ac_cv_type_signal=void
3012 echo "configure: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3015 ac_cv_type_signal=int
3020 echo "$ac_t""$ac_cv_type_signal" 1>&6
3021 cat >> confdefs.h <<EOF
3022 #define RETSIGTYPE $ac_cv_type_signal
3026 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3027 echo "configure:3028: checking for uid_t in sys/types.h" >&5
3028 if eval "test \"`echo '$''{'ac_cv_type_uid_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>
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 egrep "uid_t" >/dev/null 2>&1; then
3039 ac_cv_type_uid_t=yes
3048 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3049 if test $ac_cv_type_uid_t = no; then
3050 cat >> confdefs.h <<\EOF
3054 cat >> confdefs.h <<\EOF
3060 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3061 echo "configure:3062: checking for mode_t" >&5
3062 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 #include <sys/types.h>
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3077 ac_cv_type_mode_t=yes
3080 ac_cv_type_mode_t=no
3085 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3086 if test $ac_cv_type_mode_t = no; then
3087 cat >> confdefs.h <<\EOF
3093 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3094 echo "configure:3095: checking for off_t" >&5
3095 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <sys/types.h>
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3110 ac_cv_type_off_t=yes
3118 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3119 if test $ac_cv_type_off_t = no; then
3120 cat >> confdefs.h <<\EOF
3126 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3127 echo "configure:3128: checking for size_t" >&5
3128 if eval "test \"`echo '$''{'ac_cv_type_size_t'+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"
3134 #include <sys/types.h>
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3143 ac_cv_type_size_t=yes
3146 ac_cv_type_size_t=no
3151 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3152 if test $ac_cv_type_size_t = no; then
3153 cat >> confdefs.h <<\EOF
3154 #define size_t unsigned
3159 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3160 echo "configure:3161: checking for pid_t" >&5
3161 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 #include <sys/types.h>
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3176 ac_cv_type_pid_t=yes
3184 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3185 if test $ac_cv_type_pid_t = no; then
3186 cat >> confdefs.h <<\EOF
3192 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3193 echo "configure:3194: checking for st_rdev in struct stat" >&5
3194 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3203 struct stat s; s.st_rdev;
3206 if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3208 ac_cv_struct_st_rdev=yes
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 ac_cv_struct_st_rdev=no
3218 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3219 if test $ac_cv_struct_st_rdev = yes; then
3220 cat >> confdefs.h <<\EOF
3221 #define HAVE_ST_RDEV 1
3226 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3227 echo "configure:3228: checking for d_off in dirent" >&5
3228 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3236 #include <sys/types.h>
3239 struct dirent d; d.d_off;
3242 if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3244 ac_cv_dirent_d_off=yes
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 ac_cv_dirent_d_off=no
3254 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3255 if test $ac_cv_dirent_d_off = yes; then
3256 cat >> confdefs.h <<\EOF
3257 #define HAVE_DIRENT_D_OFF 1
3262 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3263 echo "configure:3264: checking for ino_t" >&5
3264 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <sys/types.h>
3276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3277 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3279 ac_cv_type_ino_t=yes
3287 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3288 if test $ac_cv_type_ino_t = no; then
3289 cat >> confdefs.h <<\EOF
3290 #define ino_t unsigned
3295 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3296 echo "configure:3297: checking for loff_t" >&5
3297 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3310 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3312 ac_cv_type_loff_t=yes
3315 ac_cv_type_loff_t=no
3320 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3321 if test $ac_cv_type_loff_t = no; then
3322 cat >> confdefs.h <<\EOF
3323 #define loff_t off_t
3328 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3329 echo "configure:3330: checking for offset_t" >&5
3330 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 #include <sys/types.h>
3342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3343 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3345 ac_cv_type_offset_t=yes
3348 ac_cv_type_offset_t=no
3353 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3354 if test $ac_cv_type_offset_t = no; then
3355 cat >> confdefs.h <<\EOF
3356 #define offset_t loff_t
3361 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3362 echo "configure:3363: checking for ssize_t" >&5
3363 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <sys/types.h>
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3378 ac_cv_type_ssize_t=yes
3381 ac_cv_type_ssize_t=no
3386 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3387 if test $ac_cv_type_ssize_t = no; then
3388 cat >> confdefs.h <<\EOF
3394 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3395 echo "configure:3396: checking for wchar_t" >&5
3396 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3411 ac_cv_type_wchar_t=yes
3414 ac_cv_type_wchar_t=no
3419 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3420 if test $ac_cv_type_wchar_t = no; then
3421 cat >> confdefs.h <<\EOF
3422 #define wchar_t unsigned short
3428 ############################################
3429 # for cups support we need libcups, and a handful of header files
3431 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3432 echo "configure:3433: checking for httpConnect in -lcups" >&5
3433 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 ac_save_LIBS="$LIBS"
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* Override any gcc2 internal prototype to avoid an error. */
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3451 if { (eval echo configure:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3453 eval "ac_cv_lib_$ac_lib_var=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3458 eval "ac_cv_lib_$ac_lib_var=no"
3461 LIBS="$ac_save_LIBS"
3464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3466 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3467 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3468 cat >> confdefs.h <<EOF
3469 #define $ac_tr_lib 1
3475 echo "$ac_t""no" 1>&6
3479 # I wonder if there is a nicer way of doing this?
3481 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3482 for ac_hdr in cups/cups.h cups/language.h
3484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_hdr" >&5
3487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3496 { (eval echo configure:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3498 if test -z "$ac_err"; then
3500 eval "ac_cv_header_$ac_safe=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 eval "ac_cv_header_$ac_safe=no"
3510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3513 cat >> confdefs.h <<EOF
3514 #define $ac_tr_hdr 1
3518 echo "$ac_t""no" 1>&6
3522 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3523 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3524 cat >> confdefs.h <<\EOF
3532 ############################################
3533 # we need libdl for PAM and the new VFS code
3534 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3535 echo "configure:3536: checking for dlopen in -ldl" >&5
3536 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 ac_save_LIBS="$LIBS"
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 /* Override any gcc2 internal prototype to avoid an error. */
3546 /* We use char because int might match the return type of a gcc2
3547 builtin and then its argument prototype would still apply. */
3554 if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556 eval "ac_cv_lib_$ac_lib_var=yes"
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3561 eval "ac_cv_lib_$ac_lib_var=no"
3564 LIBS="$ac_save_LIBS"
3567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_LIBDL 1
3575 echo "$ac_t""no" 1>&6
3579 ############################################
3580 # check if the compiler can do immediate structures
3581 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3582 echo "configure:3583: checking for immediate structures" >&5
3583 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3594 typedef struct {unsigned x;} FOOBAR;
3595 #define X_FOOBAR(x) ((FOOBAR) { x })
3596 #define FOO_ONE X_FOOBAR(1)
3606 if { (eval echo configure:3607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3608 samba_cv_immediate_structures=yes
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3613 samba_cv_immediate_structures=no
3618 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3619 if test x"$samba_cv_immediate_structures" = x"yes"; then
3620 cat >> confdefs.h <<\EOF
3621 #define HAVE_IMMEDIATE_STRUCTURES 1
3626 ############################################
3627 # check for unix domain sockets
3628 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3629 echo "configure:3630: checking for unix domain sockets" >&5
3630 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3638 #include <sys/types.h>
3641 #include <sys/socket.h>
3645 struct sockaddr_un sunaddr;
3646 sunaddr.sun_family = AF_UNIX;
3650 if { (eval echo configure:3651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652 samba_cv_unixsocket=yes
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 samba_cv_unixsocket=no
3662 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3663 if test x"$samba_cv_unixsocket" = x"yes"; then
3664 cat >> confdefs.h <<\EOF
3665 #define HAVE_UNIXSOCKET 1
3671 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3672 echo "configure:3673: checking for socklen_t type" >&5
3673 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3681 #include <sys/types.h>
3686 #include <sys/socket.h>
3691 if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3693 samba_cv_socklen_t=yes
3695 echo "configure: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3698 samba_cv_socklen_t=no
3703 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3704 if test x"$samba_cv_socklen_t" = x"yes"; then
3705 cat >> confdefs.h <<\EOF
3706 #define HAVE_SOCKLEN_T_TYPE 1
3711 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3712 echo "configure:3713: checking for sig_atomic_t type" >&5
3713 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+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"
3721 #include <sys/types.h>
3731 if { (eval echo configure:3732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 samba_cv_sig_atomic_t=yes
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3738 samba_cv_sig_atomic_t=no
3743 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3744 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3745 cat >> confdefs.h <<\EOF
3746 #define HAVE_SIG_ATOMIC_T_TYPE 1
3751 # stupid headers have the functions but no declaration. grrrr.
3753 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3754 echo "configure:3755: checking for errno declaration" >&5
3755 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3767 if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3769 ac_cv_have_errno_decl=yes
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3774 ac_cv_have_errno_decl=no
3779 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3780 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3781 cat >> confdefs.h <<\EOF
3782 #define HAVE_ERRNO_DECL 1
3788 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3789 echo "configure:3790: checking for setresuid declaration" >&5
3790 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3799 int i = (int)setresuid
3802 if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 ac_cv_have_setresuid_decl=yes
3806 echo "configure: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3809 ac_cv_have_setresuid_decl=no
3814 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3815 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3816 cat >> confdefs.h <<\EOF
3817 #define HAVE_SETRESUID_DECL 1
3823 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3824 echo "configure:3825: checking for setresgid declaration" >&5
3825 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3834 int i = (int)setresgid
3837 if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3839 ac_cv_have_setresgid_decl=yes
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3844 ac_cv_have_setresgid_decl=no
3849 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3850 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3851 cat >> confdefs.h <<\EOF
3852 #define HAVE_SETRESGID_DECL 1
3858 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3859 echo "configure:3860: checking for asprintf declaration" >&5
3860 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3869 int i = (int)asprintf
3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3874 ac_cv_have_asprintf_decl=yes
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3879 ac_cv_have_asprintf_decl=no
3884 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3885 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3886 cat >> confdefs.h <<\EOF
3887 #define HAVE_ASPRINTF_DECL 1
3893 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3894 echo "configure:3895: checking for vasprintf declaration" >&5
3895 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3904 int i = (int)vasprintf
3907 if { (eval echo configure:3908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 ac_cv_have_vasprintf_decl=yes
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3914 ac_cv_have_vasprintf_decl=no
3919 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3920 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3921 cat >> confdefs.h <<\EOF
3922 #define HAVE_VASPRINTF_DECL 1
3928 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3929 echo "configure:3930: checking for vsnprintf declaration" >&5
3930 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3934 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3939 int i = (int)vsnprintf
3942 if { (eval echo configure:3943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3944 ac_cv_have_vsnprintf_decl=yes
3946 echo "configure: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3949 ac_cv_have_vsnprintf_decl=no
3954 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3955 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3956 cat >> confdefs.h <<\EOF
3957 #define HAVE_VSNPRINTF_DECL 1
3963 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3964 echo "configure:3965: checking for snprintf declaration" >&5
3965 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3974 int i = (int)snprintf
3977 if { (eval echo configure:3978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3979 ac_cv_have_snprintf_decl=yes
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3984 ac_cv_have_snprintf_decl=no
3989 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3990 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3991 cat >> confdefs.h <<\EOF
3992 #define HAVE_SNPRINTF_DECL 1
3998 # and glibc has setresuid under linux but the function does
3999 # nothing until kernel 2.1.44! very dumb.
4000 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4001 echo "configure:4002: checking for real setresuid" >&5
4002 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4006 if test "$cross_compiling" = yes; then
4007 samba_cv_have_setresuid=cross
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4013 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4017 samba_cv_have_setresuid=yes
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4022 samba_cv_have_setresuid=no
4029 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4030 if test x"$samba_cv_have_setresuid" = x"yes"; then
4031 cat >> confdefs.h <<\EOF
4032 #define HAVE_SETRESUID 1
4037 # Do the same check for setresguid...
4039 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4040 echo "configure:4041: checking for real setresgid" >&5
4041 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4045 if test "$cross_compiling" = yes; then
4046 samba_cv_have_setresgid=cross
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4053 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4057 samba_cv_have_setresgid=yes
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4062 samba_cv_have_setresgid=no
4069 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4070 if test x"$samba_cv_have_setresgid" = x"yes"; then
4071 cat >> confdefs.h <<\EOF
4072 #define HAVE_SETRESGID 1
4077 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4078 echo "configure:4079: checking for 8-bit clean memcmp" >&5
4079 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 if test "$cross_compiling" = yes; then
4083 ac_cv_func_memcmp_clean=no
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4091 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4092 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4096 if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4098 ac_cv_func_memcmp_clean=yes
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 ac_cv_func_memcmp_clean=no
4110 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4111 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4114 ###############################################
4115 # test for where we get crypt() from
4116 for ac_func in crypt
4118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4119 echo "configure:4120: checking for $ac_func" >&5
4120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 /* System header to define __stub macros and hopefully few prototypes,
4127 which can conflict with char $ac_func(); below. */
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 /* We use char because int might match the return type of a gcc2
4131 builtin and then its argument prototype would still apply. */
4136 /* The GNU C library defines this for functions which it implements
4137 to always fail with ENOSYS. Some functions are actually named
4138 something starting with __ and the normal name is an alias. */
4139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4149 eval "ac_cv_func_$ac_func=yes"
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 eval "ac_cv_func_$ac_func=no"
4159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4162 cat >> confdefs.h <<EOF
4163 #define $ac_tr_func 1
4167 echo "$ac_t""no" 1>&6
4171 if test x"$ac_cv_func_crypt" = x"no"; then
4172 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4173 echo "configure:4174: checking for crypt in -lcrypt" >&5
4174 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4178 ac_save_LIBS="$LIBS"
4179 LIBS="-lcrypt $LIBS"
4180 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 /* Override any gcc2 internal prototype to avoid an error. */
4184 /* We use char because int might match the return type of a gcc2
4185 builtin and then its argument prototype would still apply. */
4192 if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4194 eval "ac_cv_lib_$ac_lib_var=yes"
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4199 eval "ac_cv_lib_$ac_lib_var=no"
4202 LIBS="$ac_save_LIBS"
4205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 LIBS="$LIBS -lcrypt";
4208 cat >> confdefs.h <<\EOF
4209 #define HAVE_CRYPT 1
4213 echo "$ac_t""no" 1>&6
4219 ###############################################
4220 # Readline included by default unless explicitly asked not to
4221 test "${with_readline+set}" != "set" && with_readline=yes
4223 # test for where we get readline() from
4224 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4225 echo "configure:4226: checking whether to use readline" >&5
4226 # Check whether --with-readline or --without-readline was given.
4227 if test "${with_readline+set}" = set; then
4228 withval="$with_readline"
4229 case "$with_readline" in
4231 echo "$ac_t""yes" 1>&6
4233 for ac_hdr in readline.h history.h readline/readline.h
4235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4237 echo "configure:4238: checking for $ac_hdr" >&5
4238 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4241 cat > conftest.$ac_ext <<EOF
4242 #line 4243 "configure"
4243 #include "confdefs.h"
4246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4247 { (eval echo configure:4248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4249 if test -z "$ac_err"; then
4251 eval "ac_cv_header_$ac_safe=yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4257 eval "ac_cv_header_$ac_safe=no"
4261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4264 cat >> confdefs.h <<EOF
4265 #define $ac_tr_hdr 1
4269 echo "$ac_t""no" 1>&6
4273 for ac_hdr in readline/history.h
4275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4277 echo "configure:4278: checking for $ac_hdr" >&5
4278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4281 cat > conftest.$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4287 { (eval echo configure:4288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4289 if test -z "$ac_err"; then
4291 eval "ac_cv_header_$ac_safe=yes"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 eval "ac_cv_header_$ac_safe=no"
4301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4302 echo "$ac_t""yes" 1>&6
4303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4304 cat >> confdefs.h <<EOF
4305 #define $ac_tr_hdr 1
4309 echo "$ac_t""no" 1>&6
4314 for ac_hdr in readline.h readline/readline.h
4316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4318 echo "configure:4319: checking for $ac_hdr" >&5
4319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4328 { (eval echo configure:4329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4330 if test -z "$ac_err"; then
4332 eval "ac_cv_header_$ac_safe=yes"
4335 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5
4338 eval "ac_cv_header_$ac_safe=no"
4342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4343 echo "$ac_t""yes" 1>&6
4344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4345 cat >> confdefs.h <<EOF
4346 #define $ac_tr_hdr 1
4349 for termlib in ncurses curses termcap terminfo termlib; do
4350 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4351 echo "configure:4352: checking for tgetent in -l${termlib}" >&5
4352 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4354 echo $ac_n "(cached) $ac_c" 1>&6
4356 ac_save_LIBS="$LIBS"
4357 LIBS="-l${termlib} $LIBS"
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4361 /* Override any gcc2 internal prototype to avoid an error. */
4362 /* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4372 eval "ac_cv_lib_$ac_lib_var=yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 eval "ac_cv_lib_$ac_lib_var=no"
4380 LIBS="$ac_save_LIBS"
4383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4384 echo "$ac_t""yes" 1>&6
4385 TERMLIBS="-l${termlib}"; break
4387 echo "$ac_t""no" 1>&6
4391 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4392 echo "configure:4393: checking for rl_callback_handler_install in -lreadline" >&5
4393 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 ac_save_LIBS="$LIBS"
4398 LIBS="-lreadline $TERMLIBS $LIBS"
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4402 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4405 char rl_callback_handler_install();
4408 rl_callback_handler_install()
4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4413 eval "ac_cv_lib_$ac_lib_var=yes"
4415 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4418 eval "ac_cv_lib_$ac_lib_var=no"
4421 LIBS="$ac_save_LIBS"
4424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4426 TERMLIBS="-lreadline $TERMLIBS"
4427 cat >> confdefs.h <<\EOF
4428 #define HAVE_LIBREADLINE 1
4433 echo "$ac_t""no" 1>&6
4438 echo "$ac_t""no" 1>&6
4444 echo "$ac_t""no" 1>&6
4447 echo "$ac_t""yes" 1>&6
4449 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4450 # alternate readline path
4452 _cppflags=${CPPFLAGS}
4454 # Add additional search path
4455 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4456 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4458 for ac_hdr in readline.h history.h readline/readline.h
4460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4462 echo "configure:4463: checking for $ac_hdr" >&5
4463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4472 { (eval echo configure:4473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4474 if test -z "$ac_err"; then
4476 eval "ac_cv_header_$ac_safe=yes"
4479 echo "configure: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4482 eval "ac_cv_header_$ac_safe=no"
4486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4489 cat >> confdefs.h <<EOF
4490 #define $ac_tr_hdr 1
4494 echo "$ac_t""no" 1>&6
4498 for ac_hdr in readline/history.h
4500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4502 echo "configure:4503: checking for $ac_hdr" >&5
4503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4512 { (eval echo configure:4513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4514 if test -z "$ac_err"; then
4516 eval "ac_cv_header_$ac_safe=yes"
4519 echo "configure: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4522 eval "ac_cv_header_$ac_safe=no"
4526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4527 echo "$ac_t""yes" 1>&6
4528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4529 cat >> confdefs.h <<EOF
4530 #define $ac_tr_hdr 1
4534 echo "$ac_t""no" 1>&6
4539 for ac_hdr in readline.h readline/readline.h
4541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_hdr" >&5
4544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4553 { (eval echo configure:4554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4555 if test -z "$ac_err"; then
4557 eval "ac_cv_header_$ac_safe=yes"
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4563 eval "ac_cv_header_$ac_safe=no"
4567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4570 cat >> confdefs.h <<EOF
4571 #define $ac_tr_hdr 1
4574 for termlib in ncurses curses termcap terminfo termlib; do
4575 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4576 echo "configure:4577: checking for tgetent in -l${termlib}" >&5
4577 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 ac_save_LIBS="$LIBS"
4582 LIBS="-l${termlib} $LIBS"
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_lib_$ac_lib_var=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_lib_$ac_lib_var=no"
4605 LIBS="$ac_save_LIBS"
4608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 TERMLIBS="-l${termlib}"; break
4612 echo "$ac_t""no" 1>&6
4616 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4617 echo "configure:4618: checking for rl_callback_handler_install in -lreadline" >&5
4618 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4622 ac_save_LIBS="$LIBS"
4623 LIBS="-lreadline $TERMLIBS $LIBS"
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 /* Override any gcc2 internal prototype to avoid an error. */
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
4630 char rl_callback_handler_install();
4633 rl_callback_handler_install()
4636 if { (eval echo configure:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638 eval "ac_cv_lib_$ac_lib_var=yes"
4640 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4643 eval "ac_cv_lib_$ac_lib_var=no"
4646 LIBS="$ac_save_LIBS"
4649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 TERMLDFLAGS="-L$with_readline/lib"
4652 TERMCPPFLAGS="-I$with_readline/include"
4653 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4654 TERMLIBS="-lreadline $TERMLIBS"
4655 cat >> confdefs.h <<\EOF
4656 #define HAVE_LIBREADLINE 1
4661 echo "$ac_t""no" 1>&6
4662 TERMLIBS= CPPFLAGS=$_cppflags
4666 echo "$ac_t""no" 1>&6
4675 echo "$ac_t""no" 1>&6
4682 # The readline API changed slightly from readline3 to readline4, so
4683 # code will generate warnings on one of them unless we have a few
4685 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4686 echo "configure:4687: checking for rl_completion_matches in -lreadline" >&5
4687 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 ac_save_LIBS="$LIBS"
4692 LIBS="-lreadline $TERMLIBS $LIBS"
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699 char rl_completion_matches();
4702 rl_completion_matches()
4705 if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4707 eval "ac_cv_lib_$ac_lib_var=yes"
4709 echo "configure: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4712 eval "ac_cv_lib_$ac_lib_var=no"
4715 LIBS="$ac_save_LIBS"
4718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 cat >> confdefs.h <<\EOF
4721 #define HAVE_NEW_LIBREADLINE 1
4725 echo "$ac_t""no" 1>&6
4729 # The following test taken from the cvs sources
4730 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4731 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4732 # libsocket.so which has a bad implementation of gethostbyname (it
4733 # only looks in /etc/hosts), so we only look for -lsocket if we need
4735 for ac_func in connect
4737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4738 echo "configure:4739: checking for $ac_func" >&5
4739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4745 /* System header to define __stub macros and hopefully few prototypes,
4746 which can conflict with char $ac_func(); below. */
4748 /* Override any gcc2 internal prototype to avoid an error. */
4749 /* We use char because int might match the return type of a gcc2
4750 builtin and then its argument prototype would still apply. */
4755 /* The GNU C library defines this for functions which it implements
4756 to always fail with ENOSYS. Some functions are actually named
4757 something starting with __ and the normal name is an alias. */
4758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 eval "ac_cv_func_$ac_func=yes"
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4773 eval "ac_cv_func_$ac_func=no"
4778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4779 echo "$ac_t""yes" 1>&6
4780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4781 cat >> confdefs.h <<EOF
4782 #define $ac_tr_func 1
4786 echo "$ac_t""no" 1>&6
4790 if test x"$ac_cv_func_connect" = x"no"; then
4793 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4794 echo "configure:4795: checking for printf in -lnsl_s" >&5
4795 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 ac_save_LIBS="$LIBS"
4800 LIBS="-lnsl_s $LIBS"
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 eval "ac_cv_lib_$ac_lib_var=yes"
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4820 eval "ac_cv_lib_$ac_lib_var=no"
4823 LIBS="$ac_save_LIBS"
4826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4828 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4829 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4830 cat >> confdefs.h <<EOF
4831 #define $ac_tr_lib 1
4834 LIBS="-lnsl_s $LIBS"
4837 echo "$ac_t""no" 1>&6
4843 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4844 echo "configure:4845: checking for printf in -lnsl" >&5
4845 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 ac_save_LIBS="$LIBS"
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4863 if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4865 eval "ac_cv_lib_$ac_lib_var=yes"
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4870 eval "ac_cv_lib_$ac_lib_var=no"
4873 LIBS="$ac_save_LIBS"
4876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4877 echo "$ac_t""yes" 1>&6
4878 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4879 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4880 cat >> confdefs.h <<EOF
4881 #define $ac_tr_lib 1
4887 echo "$ac_t""no" 1>&6
4893 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4894 echo "configure:4895: checking for connect in -lsocket" >&5
4895 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 ac_save_LIBS="$LIBS"
4900 LIBS="-lsocket $LIBS"
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4915 eval "ac_cv_lib_$ac_lib_var=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4920 eval "ac_cv_lib_$ac_lib_var=no"
4923 LIBS="$ac_save_LIBS"
4926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4928 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4929 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4930 cat >> confdefs.h <<EOF
4931 #define $ac_tr_lib 1
4934 LIBS="-lsocket $LIBS"
4937 echo "$ac_t""no" 1>&6
4943 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4944 echo "configure:4945: checking for connect in -linet" >&5
4945 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 ac_save_LIBS="$LIBS"
4951 cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 /* Override any gcc2 internal prototype to avoid an error. */
4955 /* We use char because int might match the return type of a gcc2
4956 builtin and then its argument prototype would still apply. */
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4965 eval "ac_cv_lib_$ac_lib_var=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4970 eval "ac_cv_lib_$ac_lib_var=no"
4973 LIBS="$ac_save_LIBS"
4976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4978 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4979 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4980 cat >> confdefs.h <<EOF
4981 #define $ac_tr_lib 1
4987 echo "$ac_t""no" 1>&6
4991 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4992 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4993 # ac_cv_func_connect=yes
4994 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4995 cat >> confdefs.h <<\EOF
4996 #define HAVE_CONNECT 1
5002 ###############################################
5003 # test for where we get get_yp_default_domain() from
5004 for ac_func in yp_get_default_domain
5006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5007 echo "configure:5008: checking for $ac_func" >&5
5008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5009 echo $ac_n "(cached) $ac_c" 1>&6
5011 cat > conftest.$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5014 /* System header to define __stub macros and hopefully few prototypes,
5015 which can conflict with char $ac_func(); below. */
5017 /* Override any gcc2 internal prototype to avoid an error. */
5018 /* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
5024 /* The GNU C library defines this for functions which it implements
5025 to always fail with ENOSYS. Some functions are actually named
5026 something starting with __ and the normal name is an alias. */
5027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5035 if { (eval echo configure:5036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5037 eval "ac_cv_func_$ac_func=yes"
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5042 eval "ac_cv_func_$ac_func=no"
5047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5048 echo "$ac_t""yes" 1>&6
5049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5050 cat >> confdefs.h <<EOF
5051 #define $ac_tr_func 1
5055 echo "$ac_t""no" 1>&6
5059 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5060 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5061 echo "configure:5062: checking for yp_get_default_domain in -lnsl" >&5
5062 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
5066 ac_save_LIBS="$LIBS"
5068 cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5071 /* Override any gcc2 internal prototype to avoid an error. */
5072 /* We use char because int might match the return type of a gcc2
5073 builtin and then its argument prototype would still apply. */
5074 char yp_get_default_domain();
5077 yp_get_default_domain()
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5082 eval "ac_cv_lib_$ac_lib_var=yes"
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5087 eval "ac_cv_lib_$ac_lib_var=no"
5090 LIBS="$ac_save_LIBS"
5093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5094 echo "$ac_t""yes" 1>&6
5096 cat >> confdefs.h <<\EOF
5097 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5101 echo "$ac_t""no" 1>&6
5106 # Check if we have execl, if not we need to compile smbrun.
5107 for ac_func in execl
5109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5110 echo "configure:5111: checking for $ac_func" >&5
5111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5112 echo $ac_n "(cached) $ac_c" 1>&6
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117 /* System header to define __stub macros and hopefully few prototypes,
5118 which can conflict with char $ac_func(); below. */
5120 /* Override any gcc2 internal prototype to avoid an error. */
5121 /* We use char because int might match the return type of a gcc2
5122 builtin and then its argument prototype would still apply. */
5127 /* The GNU C library defines this for functions which it implements
5128 to always fail with ENOSYS. Some functions are actually named
5129 something starting with __ and the normal name is an alias. */
5130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5140 eval "ac_cv_func_$ac_func=yes"
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5145 eval "ac_cv_func_$ac_func=no"
5150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5151 echo "$ac_t""yes" 1>&6
5152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5153 cat >> confdefs.h <<EOF
5154 #define $ac_tr_func 1
5158 echo "$ac_t""no" 1>&6
5162 if test x"$ac_cv_func_execl" = x"no"; then
5163 RUNPROG="bin/smbrun"
5168 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5171 echo "configure:5172: checking for $ac_func" >&5
5172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* System header to define __stub macros and hopefully few prototypes,
5179 which can conflict with char $ac_func(); below. */
5181 /* Override any gcc2 internal prototype to avoid an error. */
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5188 /* The GNU C library defines this for functions which it implements
5189 to always fail with ENOSYS. Some functions are actually named
5190 something starting with __ and the normal name is an alias. */
5191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5199 if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5201 eval "ac_cv_func_$ac_func=yes"
5203 echo "configure: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5206 eval "ac_cv_func_$ac_func=no"
5211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5212 echo "$ac_t""yes" 1>&6
5213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5214 cat >> confdefs.h <<EOF
5215 #define $ac_tr_func 1
5219 echo "$ac_t""no" 1>&6
5223 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5226 echo "configure:5227: checking for $ac_func" >&5
5227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5233 /* System header to define __stub macros and hopefully few prototypes,
5234 which can conflict with char $ac_func(); below. */
5236 /* Override any gcc2 internal prototype to avoid an error. */
5237 /* We use char because int might match the return type of a gcc2
5238 builtin and then its argument prototype would still apply. */
5243 /* The GNU C library defines this for functions which it implements
5244 to always fail with ENOSYS. Some functions are actually named
5245 something starting with __ and the normal name is an alias. */
5246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5254 if { (eval echo configure:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 eval "ac_cv_func_$ac_func=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 eval "ac_cv_func_$ac_func=no"
5266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5267 echo "$ac_t""yes" 1>&6
5268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5269 cat >> confdefs.h <<EOF
5270 #define $ac_tr_func 1
5274 echo "$ac_t""no" 1>&6
5278 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5281 echo "configure:5282: checking for $ac_func" >&5
5282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5288 /* System header to define __stub macros and hopefully few prototypes,
5289 which can conflict with char $ac_func(); below. */
5291 /* Override any gcc2 internal prototype to avoid an error. */
5292 /* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5298 /* The GNU C library defines this for functions which it implements
5299 to always fail with ENOSYS. Some functions are actually named
5300 something starting with __ and the normal name is an alias. */
5301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5311 eval "ac_cv_func_$ac_func=yes"
5313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5316 eval "ac_cv_func_$ac_func=no"
5321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5322 echo "$ac_t""yes" 1>&6
5323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5324 cat >> confdefs.h <<EOF
5325 #define $ac_tr_func 1
5329 echo "$ac_t""no" 1>&6
5333 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_func" >&5
5337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 /* System header to define __stub macros and hopefully few prototypes,
5344 which can conflict with char $ac_func(); below. */
5346 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5353 /* The GNU C library defines this for functions which it implements
5354 to always fail with ENOSYS. Some functions are actually named
5355 something starting with __ and the normal name is an alias. */
5356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5364 if { (eval echo configure:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5366 eval "ac_cv_func_$ac_func=yes"
5368 echo "configure: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5371 eval "ac_cv_func_$ac_func=no"
5376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5377 echo "$ac_t""yes" 1>&6
5378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5379 cat >> confdefs.h <<EOF
5380 #define $ac_tr_func 1
5384 echo "$ac_t""no" 1>&6
5388 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5391 echo "configure:5392: checking for $ac_func" >&5
5392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 /* System header to define __stub macros and hopefully few prototypes,
5399 which can conflict with char $ac_func(); below. */
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5408 /* The GNU C library defines this for functions which it implements
5409 to always fail with ENOSYS. Some functions are actually named
5410 something starting with __ and the normal name is an alias. */
5411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421 eval "ac_cv_func_$ac_func=yes"
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 eval "ac_cv_func_$ac_func=no"
5431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5432 echo "$ac_t""yes" 1>&6
5433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5434 cat >> confdefs.h <<EOF
5435 #define $ac_tr_func 1
5439 echo "$ac_t""no" 1>&6
5443 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5446 echo "configure:5447: checking for $ac_func" >&5
5447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453 /* System header to define __stub macros and hopefully few prototypes,
5454 which can conflict with char $ac_func(); below. */
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5463 /* The GNU C library defines this for functions which it implements
5464 to always fail with ENOSYS. Some functions are actually named
5465 something starting with __ and the normal name is an alias. */
5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5476 eval "ac_cv_func_$ac_func=yes"
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5481 eval "ac_cv_func_$ac_func=no"
5486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5487 echo "$ac_t""yes" 1>&6
5488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5489 cat >> confdefs.h <<EOF
5490 #define $ac_tr_func 1
5494 echo "$ac_t""no" 1>&6
5498 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5501 echo "configure:5502: checking for $ac_func" >&5
5502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char $ac_func(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5518 /* The GNU C library defines this for functions which it implements
5519 to always fail with ENOSYS. Some functions are actually named
5520 something starting with __ and the normal name is an alias. */
5521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5529 if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5531 eval "ac_cv_func_$ac_func=yes"
5533 echo "configure: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5536 eval "ac_cv_func_$ac_func=no"
5541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5544 cat >> confdefs.h <<EOF
5545 #define $ac_tr_func 1
5549 echo "$ac_t""no" 1>&6
5553 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char $ac_func(); below. */
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 eval "ac_cv_func_$ac_func=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5591 eval "ac_cv_func_$ac_func=no"
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5599 cat >> confdefs.h <<EOF
5600 #define $ac_tr_func 1
5604 echo "$ac_t""no" 1>&6
5608 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5611 echo "configure:5612: checking for $ac_func" >&5
5612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 /* System header to define __stub macros and hopefully few prototypes,
5619 which can conflict with char $ac_func(); below. */
5621 /* Override any gcc2 internal prototype to avoid an error. */
5622 /* We use char because int might match the return type of a gcc2
5623 builtin and then its argument prototype would still apply. */
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 eval "ac_cv_func_$ac_func=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 eval "ac_cv_func_$ac_func=no"
5651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5654 cat >> confdefs.h <<EOF
5655 #define $ac_tr_func 1
5659 echo "$ac_t""no" 1>&6
5663 for ac_func in syslog vsyslog
5665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5666 echo "configure:5667: checking for $ac_func" >&5
5667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 /* System header to define __stub macros and hopefully few prototypes,
5674 which can conflict with char $ac_func(); below. */
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5683 /* The GNU C library defines this for functions which it implements
5684 to always fail with ENOSYS. Some functions are actually named
5685 something starting with __ and the normal name is an alias. */
5686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5694 if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5696 eval "ac_cv_func_$ac_func=yes"
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5701 eval "ac_cv_func_$ac_func=no"
5706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5709 cat >> confdefs.h <<EOF
5710 #define $ac_tr_func 1
5714 echo "$ac_t""no" 1>&6
5718 # setbuffer is needed for smbtorture
5719 for ac_func in setbuffer
5721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5722 echo "configure:5723: checking for $ac_func" >&5
5723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5729 /* System header to define __stub macros and hopefully few prototypes,
5730 which can conflict with char $ac_func(); below. */
5732 /* Override any gcc2 internal prototype to avoid an error. */
5733 /* We use char because int might match the return type of a gcc2
5734 builtin and then its argument prototype would still apply. */
5739 /* The GNU C library defines this for functions which it implements
5740 to always fail with ENOSYS. Some functions are actually named
5741 something starting with __ and the normal name is an alias. */
5742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 eval "ac_cv_func_$ac_func=yes"
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5757 eval "ac_cv_func_$ac_func=no"
5762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5763 echo "$ac_t""yes" 1>&6
5764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5765 cat >> confdefs.h <<EOF
5766 #define $ac_tr_func 1
5770 echo "$ac_t""no" 1>&6
5775 # syscall() is needed for smbwrapper.
5776 for ac_func in syscall
5778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5779 echo "configure:5780: checking for $ac_func" >&5
5780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 /* System header to define __stub macros and hopefully few prototypes,
5787 which can conflict with char $ac_func(); below. */
5789 /* Override any gcc2 internal prototype to avoid an error. */
5790 /* We use char because int might match the return type of a gcc2
5791 builtin and then its argument prototype would still apply. */
5796 /* The GNU C library defines this for functions which it implements
5797 to always fail with ENOSYS. Some functions are actually named
5798 something starting with __ and the normal name is an alias. */
5799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5807 if { (eval echo configure:5808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809 eval "ac_cv_func_$ac_func=yes"
5811 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5814 eval "ac_cv_func_$ac_func=no"
5819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5820 echo "$ac_t""yes" 1>&6
5821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5822 cat >> confdefs.h <<EOF
5823 #define $ac_tr_func 1
5827 echo "$ac_t""no" 1>&6
5832 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5835 echo "configure:5836: checking for $ac_func" >&5
5836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func(); below. */
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5865 eval "ac_cv_func_$ac_func=yes"
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5870 eval "ac_cv_func_$ac_func=no"
5875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h <<EOF
5879 #define $ac_tr_func 1
5883 echo "$ac_t""no" 1>&6
5887 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5890 echo "configure:5891: checking for $ac_func" >&5
5891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5894 cat > conftest.$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5897 /* System header to define __stub macros and hopefully few prototypes,
5898 which can conflict with char $ac_func(); below. */
5900 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5907 /* The GNU C library defines this for functions which it implements
5908 to always fail with ENOSYS. Some functions are actually named
5909 something starting with __ and the normal name is an alias. */
5910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5918 if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5920 eval "ac_cv_func_$ac_func=yes"
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5925 eval "ac_cv_func_$ac_func=no"
5930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5933 cat >> confdefs.h <<EOF
5934 #define $ac_tr_func 1
5938 echo "$ac_t""no" 1>&6
5942 for ac_func in __getcwd _getcwd
5944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5945 echo "configure:5946: checking for $ac_func" >&5
5946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 /* System header to define __stub macros and hopefully few prototypes,
5953 which can conflict with char $ac_func(); below. */
5955 /* Override any gcc2 internal prototype to avoid an error. */
5956 /* We use char because int might match the return type of a gcc2
5957 builtin and then its argument prototype would still apply. */
5962 /* The GNU C library defines this for functions which it implements
5963 to always fail with ENOSYS. Some functions are actually named
5964 something starting with __ and the normal name is an alias. */
5965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5973 if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5975 eval "ac_cv_func_$ac_func=yes"
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5980 eval "ac_cv_func_$ac_func=no"
5985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5988 cat >> confdefs.h <<EOF
5989 #define $ac_tr_func 1
5993 echo "$ac_t""no" 1>&6
5997 for ac_func in __xstat __fxstat __lxstat
5999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_func" >&5
6001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6007 /* System header to define __stub macros and hopefully few prototypes,
6008 which can conflict with char $ac_func(); below. */
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */
6017 /* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
6020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6028 if { (eval echo configure:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6030 eval "ac_cv_func_$ac_func=yes"
6032 echo "configure: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6035 eval "ac_cv_func_$ac_func=no"
6040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6041 echo "$ac_t""yes" 1>&6
6042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6043 cat >> confdefs.h <<EOF
6044 #define $ac_tr_func 1
6048 echo "$ac_t""no" 1>&6
6052 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_func" >&5
6056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char $ac_func(); below. */
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6072 /* The GNU C library defines this for functions which it implements
6073 to always fail with ENOSYS. Some functions are actually named
6074 something starting with __ and the normal name is an alias. */
6075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6083 if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6085 eval "ac_cv_func_$ac_func=yes"
6087 echo "configure: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6090 eval "ac_cv_func_$ac_func=no"
6095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6096 echo "$ac_t""yes" 1>&6
6097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6098 cat >> confdefs.h <<EOF
6099 #define $ac_tr_func 1
6103 echo "$ac_t""no" 1>&6
6107 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_func" >&5
6111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140 eval "ac_cv_func_$ac_func=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 eval "ac_cv_func_$ac_func=no"
6150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6153 cat >> confdefs.h <<EOF
6154 #define $ac_tr_func 1
6158 echo "$ac_t""no" 1>&6
6162 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6165 echo "configure:6166: checking for $ac_func" >&5
6166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* System header to define __stub macros and hopefully few prototypes,
6173 which can conflict with char $ac_func(); below. */
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6182 /* The GNU C library defines this for functions which it implements
6183 to always fail with ENOSYS. Some functions are actually named
6184 something starting with __ and the normal name is an alias. */
6185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 eval "ac_cv_func_$ac_func=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_func_$ac_func=no"
6205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6208 cat >> confdefs.h <<EOF
6209 #define $ac_tr_func 1
6213 echo "$ac_t""no" 1>&6
6217 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6220 echo "configure:6221: checking for $ac_func" >&5
6221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6224 cat > conftest.$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6227 /* System header to define __stub macros and hopefully few prototypes,
6228 which can conflict with char $ac_func(); below. */
6230 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6237 /* The GNU C library defines this for functions which it implements
6238 to always fail with ENOSYS. Some functions are actually named
6239 something starting with __ and the normal name is an alias. */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6248 if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6250 eval "ac_cv_func_$ac_func=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 eval "ac_cv_func_$ac_func=no"
6260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6261 echo "$ac_t""yes" 1>&6
6262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6263 cat >> confdefs.h <<EOF
6264 #define $ac_tr_func 1
6268 echo "$ac_t""no" 1>&6
6272 for ac_func in _write __write _fork __fork
6274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6275 echo "configure:6276: checking for $ac_func" >&5
6276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6277 echo $ac_n "(cached) $ac_c" 1>&6
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 /* System header to define __stub macros and hopefully few prototypes,
6283 which can conflict with char $ac_func(); below. */
6285 /* Override any gcc2 internal prototype to avoid an error. */
6286 /* We use char because int might match the return type of a gcc2
6287 builtin and then its argument prototype would still apply. */
6292 /* The GNU C library defines this for functions which it implements
6293 to always fail with ENOSYS. Some functions are actually named
6294 something starting with __ and the normal name is an alias. */
6295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 eval "ac_cv_func_$ac_func=yes"
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6310 eval "ac_cv_func_$ac_func=no"
6315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6318 cat >> confdefs.h <<EOF
6319 #define $ac_tr_func 1
6323 echo "$ac_t""no" 1>&6
6327 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6330 echo "configure:6331: checking for $ac_func" >&5
6331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char $ac_func(); below. */
6340 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6347 /* The GNU C library defines this for functions which it implements
6348 to always fail with ENOSYS. Some functions are actually named
6349 something starting with __ and the normal name is an alias. */
6350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6360 eval "ac_cv_func_$ac_func=yes"
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 eval "ac_cv_func_$ac_func=no"
6370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6373 cat >> confdefs.h <<EOF
6374 #define $ac_tr_func 1
6378 echo "$ac_t""no" 1>&6
6382 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_func" >&5
6386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6402 /* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6415 eval "ac_cv_func_$ac_func=yes"
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6420 eval "ac_cv_func_$ac_func=no"
6425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6428 cat >> confdefs.h <<EOF
6429 #define $ac_tr_func 1
6433 echo "$ac_t""no" 1>&6
6437 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_func" >&5
6441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func(); below. */
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6470 eval "ac_cv_func_$ac_func=yes"
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6475 eval "ac_cv_func_$ac_func=no"
6480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6483 cat >> confdefs.h <<EOF
6484 #define $ac_tr_func 1
6488 echo "$ac_t""no" 1>&6
6492 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_func" >&5
6496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6499 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6502 /* System header to define __stub macros and hopefully few prototypes,
6503 which can conflict with char $ac_func(); below. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6525 eval "ac_cv_func_$ac_func=yes"
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6530 eval "ac_cv_func_$ac_func=no"
6535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6538 cat >> confdefs.h <<EOF
6539 #define $ac_tr_func 1
6543 echo "$ac_t""no" 1>&6
6547 for ac_func in open64 _open64 __open64 creat64
6549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_func" >&5
6551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* System header to define __stub macros and hopefully few prototypes,
6558 which can conflict with char $ac_func(); below. */
6560 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6567 /* The GNU C library defines this for functions which it implements
6568 to always fail with ENOSYS. Some functions are actually named
6569 something starting with __ and the normal name is an alias. */
6570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6580 eval "ac_cv_func_$ac_func=yes"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6585 eval "ac_cv_func_$ac_func=no"
6590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6591 echo "$ac_t""yes" 1>&6
6592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6593 cat >> confdefs.h <<EOF
6594 #define $ac_tr_func 1
6598 echo "$ac_t""no" 1>&6
6604 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6607 if test x$ac_cv_func_stat64 = xno ; then
6608 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6609 echo "configure:6610: checking for stat64 in <sys/stat.h>" >&5
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6614 #if defined(HAVE_UNISTD_H)
6617 #include <sys/stat.h>
6620 struct stat64 st64; exit(stat64(".",&st64));
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6625 ac_cv_func_stat64=yes
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6631 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6632 if test x$ac_cv_func_stat64 = xyes ; then
6633 cat >> confdefs.h <<\EOF
6634 #define HAVE_STAT64 1
6640 if test x$ac_cv_func_lstat64 = xno ; then
6641 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6642 echo "configure:6643: checking for lstat64 in <sys/stat.h>" >&5
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6647 #if defined(HAVE_UNISTD_H)
6650 #include <sys/stat.h>
6653 struct stat64 st64; exit(lstat64(".",&st64));
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6658 ac_cv_func_lstat64=yes
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6664 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6665 if test x$ac_cv_func_lstat64 = xyes ; then
6666 cat >> confdefs.h <<\EOF
6667 #define HAVE_LSTAT64 1
6673 if test x$ac_cv_func_fstat64 = xno ; then
6674 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6675 echo "configure:6676: checking for fstat64 in <sys/stat.h>" >&5
6676 cat > conftest.$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6680 #if defined(HAVE_UNISTD_H)
6683 #include <sys/stat.h>
6686 struct stat64 st64; exit(fstat64(0,&st64));
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 ac_cv_func_fstat64=yes
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6697 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6698 if test x$ac_cv_func_fstat64 = xyes ; then
6699 cat >> confdefs.h <<\EOF
6700 #define HAVE_FSTAT64 1
6706 #####################################
6707 # we might need the resolv library on some systems
6708 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6709 echo "configure:6710: checking for dn_expand in -lresolv" >&5
6710 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6712 echo $ac_n "(cached) $ac_c" 1>&6
6714 ac_save_LIBS="$LIBS"
6715 LIBS="-lresolv $LIBS"
6716 cat > conftest.$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6719 /* Override any gcc2 internal prototype to avoid an error. */
6720 /* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */
6728 if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6730 eval "ac_cv_lib_$ac_lib_var=yes"
6732 echo "configure: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6735 eval "ac_cv_lib_$ac_lib_var=no"
6738 LIBS="$ac_save_LIBS"
6741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6742 echo "$ac_t""yes" 1>&6
6743 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6745 cat >> confdefs.h <<EOF
6746 #define $ac_tr_lib 1
6749 LIBS="-lresolv $LIBS"
6752 echo "$ac_t""no" 1>&6
6757 # Check for the functions putprpwnam, set_auth_parameters,
6758 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6759 # Needed for OSF1 and HPUX.
6763 *-lsecurity*) for ac_func in putprpwnam
6765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6766 echo "configure:6767: checking for $ac_func" >&5
6767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* System header to define __stub macros and hopefully few prototypes,
6774 which can conflict with char $ac_func(); below. */
6776 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6783 /* The GNU C library defines this for functions which it implements
6784 to always fail with ENOSYS. Some functions are actually named
6785 something starting with __ and the normal name is an alias. */
6786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6794 if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6796 eval "ac_cv_func_$ac_func=yes"
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6801 eval "ac_cv_func_$ac_func=no"
6806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6809 cat >> confdefs.h <<EOF
6810 #define $ac_tr_func 1
6814 echo "$ac_t""no" 1>&6
6818 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6819 echo "configure:6820: checking for putprpwnam in -lsecurity" >&5
6820 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6824 ac_save_LIBS="$LIBS"
6825 LIBS="-lsecurity $LIBS"
6826 cat > conftest.$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 /* Override any gcc2 internal prototype to avoid an error. */
6830 /* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6838 if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6840 eval "ac_cv_lib_$ac_lib_var=yes"
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 eval "ac_cv_lib_$ac_lib_var=no"
6848 LIBS="$ac_save_LIBS"
6851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6854 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6855 cat >> confdefs.h <<EOF
6856 #define $ac_tr_lib 1
6859 LIBS="-lsecurity $LIBS"
6862 echo "$ac_t""no" 1>&6
6865 for ac_func in putprpwnam
6867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6868 echo "configure:6869: checking for $ac_func" >&5
6869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* System header to define __stub macros and hopefully few prototypes,
6876 which can conflict with char $ac_func(); below. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6885 /* The GNU C library defines this for functions which it implements
6886 to always fail with ENOSYS. Some functions are actually named
6887 something starting with __ and the normal name is an alias. */
6888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6896 if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6898 eval "ac_cv_func_$ac_func=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 eval "ac_cv_func_$ac_func=no"
6908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6909 echo "$ac_t""yes" 1>&6
6910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6911 cat >> confdefs.h <<EOF
6912 #define $ac_tr_func 1
6916 echo "$ac_t""no" 1>&6
6924 *-lsec*) for ac_func in putprpwnam
6926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_func" >&5
6928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6931 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6934 /* System header to define __stub macros and hopefully few prototypes,
6935 which can conflict with char $ac_func(); below. */
6937 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6944 /* The GNU C library defines this for functions which it implements
6945 to always fail with ENOSYS. Some functions are actually named
6946 something starting with __ and the normal name is an alias. */
6947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6957 eval "ac_cv_func_$ac_func=yes"
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 eval "ac_cv_func_$ac_func=no"
6967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6970 cat >> confdefs.h <<EOF
6971 #define $ac_tr_func 1
6975 echo "$ac_t""no" 1>&6
6979 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6980 echo "configure:6981: checking for putprpwnam in -lsec" >&5
6981 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6985 ac_save_LIBS="$LIBS"
6987 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7001 eval "ac_cv_lib_$ac_lib_var=yes"
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 eval "ac_cv_lib_$ac_lib_var=no"
7009 LIBS="$ac_save_LIBS"
7012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7013 echo "$ac_t""yes" 1>&6
7014 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7016 cat >> confdefs.h <<EOF
7017 #define $ac_tr_lib 1
7023 echo "$ac_t""no" 1>&6
7026 for ac_func in putprpwnam
7028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7029 echo "configure:7030: checking for $ac_func" >&5
7030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7036 /* System header to define __stub macros and hopefully few prototypes,
7037 which can conflict with char $ac_func(); below. */
7039 /* Override any gcc2 internal prototype to avoid an error. */
7040 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */
7046 /* The GNU C library defines this for functions which it implements
7047 to always fail with ENOSYS. Some functions are actually named
7048 something starting with __ and the normal name is an alias. */
7049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7057 if { (eval echo configure:7058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7059 eval "ac_cv_func_$ac_func=yes"
7061 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7064 eval "ac_cv_func_$ac_func=no"
7069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7070 echo "$ac_t""yes" 1>&6
7071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7072 cat >> confdefs.h <<EOF
7073 #define $ac_tr_func 1
7077 echo "$ac_t""no" 1>&6
7086 *-lsecurity*) for ac_func in set_auth_parameters
7088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7089 echo "configure:7090: checking for $ac_func" >&5
7090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7091 echo $ac_n "(cached) $ac_c" 1>&6
7093 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7096 /* System header to define __stub macros and hopefully few prototypes,
7097 which can conflict with char $ac_func(); below. */
7099 /* Override any gcc2 internal prototype to avoid an error. */
7100 /* We use char because int might match the return type of a gcc2
7101 builtin and then its argument prototype would still apply. */
7106 /* The GNU C library defines this for functions which it implements
7107 to always fail with ENOSYS. Some functions are actually named
7108 something starting with __ and the normal name is an alias. */
7109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7119 eval "ac_cv_func_$ac_func=yes"
7121 echo "configure: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7124 eval "ac_cv_func_$ac_func=no"
7129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7130 echo "$ac_t""yes" 1>&6
7131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7132 cat >> confdefs.h <<EOF
7133 #define $ac_tr_func 1
7137 echo "$ac_t""no" 1>&6
7141 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7142 echo "configure:7143: checking for set_auth_parameters in -lsecurity" >&5
7143 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 ac_save_LIBS="$LIBS"
7148 LIBS="-lsecurity $LIBS"
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 /* Override any gcc2 internal prototype to avoid an error. */
7153 /* We use char because int might match the return type of a gcc2
7154 builtin and then its argument prototype would still apply. */
7155 char set_auth_parameters();
7158 set_auth_parameters()
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7163 eval "ac_cv_lib_$ac_lib_var=yes"
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7168 eval "ac_cv_lib_$ac_lib_var=no"
7171 LIBS="$ac_save_LIBS"
7174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7175 echo "$ac_t""yes" 1>&6
7176 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7177 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7178 cat >> confdefs.h <<EOF
7179 #define $ac_tr_lib 1
7182 LIBS="-lsecurity $LIBS"
7185 echo "$ac_t""no" 1>&6
7188 for ac_func in set_auth_parameters
7190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7191 echo "configure:7192: checking for $ac_func" >&5
7192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 /* System header to define __stub macros and hopefully few prototypes,
7199 which can conflict with char $ac_func(); below. */
7201 /* Override any gcc2 internal prototype to avoid an error. */
7202 /* We use char because int might match the return type of a gcc2
7203 builtin and then its argument prototype would still apply. */
7208 /* The GNU C library defines this for functions which it implements
7209 to always fail with ENOSYS. Some functions are actually named
7210 something starting with __ and the normal name is an alias. */
7211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7221 eval "ac_cv_func_$ac_func=yes"
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 eval "ac_cv_func_$ac_func=no"
7231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7232 echo "$ac_t""yes" 1>&6
7233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7234 cat >> confdefs.h <<EOF
7235 #define $ac_tr_func 1
7239 echo "$ac_t""no" 1>&6
7247 *-lsec*) for ac_func in set_auth_parameters
7249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7250 echo "configure:7251: checking for $ac_func" >&5
7251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7252 echo $ac_n "(cached) $ac_c" 1>&6
7254 cat > conftest.$ac_ext <<EOF
7255 #line 7256 "configure"
7256 #include "confdefs.h"
7257 /* System header to define __stub macros and hopefully few prototypes,
7258 which can conflict with char $ac_func(); below. */
7260 /* Override any gcc2 internal prototype to avoid an error. */
7261 /* We use char because int might match the return type of a gcc2
7262 builtin and then its argument prototype would still apply. */
7267 /* The GNU C library defines this for functions which it implements
7268 to always fail with ENOSYS. Some functions are actually named
7269 something starting with __ and the normal name is an alias. */
7270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7280 eval "ac_cv_func_$ac_func=yes"
7282 echo "configure: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7285 eval "ac_cv_func_$ac_func=no"
7290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7291 echo "$ac_t""yes" 1>&6
7292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7293 cat >> confdefs.h <<EOF
7294 #define $ac_tr_func 1
7298 echo "$ac_t""no" 1>&6
7302 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7303 echo "configure:7304: checking for set_auth_parameters in -lsec" >&5
7304 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7306 echo $ac_n "(cached) $ac_c" 1>&6
7308 ac_save_LIBS="$LIBS"
7310 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 /* Override any gcc2 internal prototype to avoid an error. */
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7316 char set_auth_parameters();
7319 set_auth_parameters()
7322 if { (eval echo configure:7323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7324 eval "ac_cv_lib_$ac_lib_var=yes"
7326 echo "configure: failed program was:" >&5
7327 cat conftest.$ac_ext >&5
7329 eval "ac_cv_lib_$ac_lib_var=no"
7332 LIBS="$ac_save_LIBS"
7335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7336 echo "$ac_t""yes" 1>&6
7337 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7338 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7339 cat >> confdefs.h <<EOF
7340 #define $ac_tr_lib 1
7346 echo "$ac_t""no" 1>&6
7349 for ac_func in set_auth_parameters
7351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7352 echo "configure:7353: checking for $ac_func" >&5
7353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7359 /* System header to define __stub macros and hopefully few prototypes,
7360 which can conflict with char $ac_func(); below. */
7362 /* Override any gcc2 internal prototype to avoid an error. */
7363 /* We use char because int might match the return type of a gcc2
7364 builtin and then its argument prototype would still apply. */
7369 /* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7380 if { (eval echo configure:7381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7382 eval "ac_cv_func_$ac_func=yes"
7384 echo "configure: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7387 eval "ac_cv_func_$ac_func=no"
7392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7393 echo "$ac_t""yes" 1>&6
7394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7395 cat >> confdefs.h <<EOF
7396 #define $ac_tr_func 1
7400 echo "$ac_t""no" 1>&6
7408 # UnixWare 7.x has its getspnam in -lgen
7410 *-lgen*) for ac_func in getspnam
7412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7413 echo "configure:7414: checking for $ac_func" >&5
7414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420 /* System header to define __stub macros and hopefully few prototypes,
7421 which can conflict with char $ac_func(); below. */
7423 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7430 /* The GNU C library defines this for functions which it implements
7431 to always fail with ENOSYS. Some functions are actually named
7432 something starting with __ and the normal name is an alias. */
7433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7441 if { (eval echo configure:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7443 eval "ac_cv_func_$ac_func=yes"
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7448 eval "ac_cv_func_$ac_func=no"
7453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7454 echo "$ac_t""yes" 1>&6
7455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7456 cat >> confdefs.h <<EOF
7457 #define $ac_tr_func 1
7461 echo "$ac_t""no" 1>&6
7465 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7466 echo "configure:7467: checking for getspnam in -lgen" >&5
7467 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7471 ac_save_LIBS="$LIBS"
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7487 eval "ac_cv_lib_$ac_lib_var=yes"
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7492 eval "ac_cv_lib_$ac_lib_var=no"
7495 LIBS="$ac_save_LIBS"
7498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7502 cat >> confdefs.h <<EOF
7503 #define $ac_tr_lib 1
7509 echo "$ac_t""no" 1>&6
7512 for ac_func in getspnam
7514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7515 echo "configure:7516: checking for $ac_func" >&5
7516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 /* System header to define __stub macros and hopefully few prototypes,
7523 which can conflict with char $ac_func(); below. */
7525 /* Override any gcc2 internal prototype to avoid an error. */
7526 /* We use char because int might match the return type of a gcc2
7527 builtin and then its argument prototype would still apply. */
7532 /* The GNU C library defines this for functions which it implements
7533 to always fail with ENOSYS. Some functions are actually named
7534 something starting with __ and the normal name is an alias. */
7535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7543 if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7545 eval "ac_cv_func_$ac_func=yes"
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7550 eval "ac_cv_func_$ac_func=no"
7555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7558 cat >> confdefs.h <<EOF
7559 #define $ac_tr_func 1
7563 echo "$ac_t""no" 1>&6
7572 *-lsecurity*) for ac_func in getspnam
7574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7575 echo "configure:7576: checking for $ac_func" >&5
7576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582 /* System header to define __stub macros and hopefully few prototypes,
7583 which can conflict with char $ac_func(); below. */
7585 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7592 /* The GNU C library defines this for functions which it implements
7593 to always fail with ENOSYS. Some functions are actually named
7594 something starting with __ and the normal name is an alias. */
7595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7605 eval "ac_cv_func_$ac_func=yes"
7607 echo "configure: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7610 eval "ac_cv_func_$ac_func=no"
7615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7616 echo "$ac_t""yes" 1>&6
7617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7618 cat >> confdefs.h <<EOF
7619 #define $ac_tr_func 1
7623 echo "$ac_t""no" 1>&6
7627 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7628 echo "configure:7629: checking for getspnam in -lsecurity" >&5
7629 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7633 ac_save_LIBS="$LIBS"
7634 LIBS="-lsecurity $LIBS"
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* Override any gcc2 internal prototype to avoid an error. */
7639 /* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7647 if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7649 eval "ac_cv_lib_$ac_lib_var=yes"
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7654 eval "ac_cv_lib_$ac_lib_var=no"
7657 LIBS="$ac_save_LIBS"
7660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7661 echo "$ac_t""yes" 1>&6
7662 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7663 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7664 cat >> confdefs.h <<EOF
7665 #define $ac_tr_lib 1
7668 LIBS="-lsecurity $LIBS"
7671 echo "$ac_t""no" 1>&6
7674 for ac_func in getspnam
7676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7677 echo "configure:7678: checking for $ac_func" >&5
7678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* System header to define __stub macros and hopefully few prototypes,
7685 which can conflict with char $ac_func(); below. */
7687 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7694 /* The GNU C library defines this for functions which it implements
7695 to always fail with ENOSYS. Some functions are actually named
7696 something starting with __ and the normal name is an alias. */
7697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7705 if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7707 eval "ac_cv_func_$ac_func=yes"
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7712 eval "ac_cv_func_$ac_func=no"
7717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7718 echo "$ac_t""yes" 1>&6
7719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7720 cat >> confdefs.h <<EOF
7721 #define $ac_tr_func 1
7725 echo "$ac_t""no" 1>&6
7733 *-lsec*) for ac_func in getspnam
7735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7736 echo "configure:7737: checking for $ac_func" >&5
7737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 /* System header to define __stub macros and hopefully few prototypes,
7744 which can conflict with char $ac_func(); below. */
7746 /* Override any gcc2 internal prototype to avoid an error. */
7747 /* We use char because int might match the return type of a gcc2
7748 builtin and then its argument prototype would still apply. */
7753 /* The GNU C library defines this for functions which it implements
7754 to always fail with ENOSYS. Some functions are actually named
7755 something starting with __ and the normal name is an alias. */
7756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7766 eval "ac_cv_func_$ac_func=yes"
7768 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 eval "ac_cv_func_$ac_func=no"
7776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7777 echo "$ac_t""yes" 1>&6
7778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7779 cat >> confdefs.h <<EOF
7780 #define $ac_tr_func 1
7784 echo "$ac_t""no" 1>&6
7788 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7789 echo "configure:7790: checking for getspnam in -lsec" >&5
7790 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7794 ac_save_LIBS="$LIBS"
7796 cat > conftest.$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810 eval "ac_cv_lib_$ac_lib_var=yes"
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7815 eval "ac_cv_lib_$ac_lib_var=no"
7818 LIBS="$ac_save_LIBS"
7821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7822 echo "$ac_t""yes" 1>&6
7823 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7824 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7825 cat >> confdefs.h <<EOF
7826 #define $ac_tr_lib 1
7832 echo "$ac_t""no" 1>&6
7835 for ac_func in getspnam
7837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7838 echo "configure:7839: checking for $ac_func" >&5
7839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 /* System header to define __stub macros and hopefully few prototypes,
7846 which can conflict with char $ac_func(); below. */
7848 /* Override any gcc2 internal prototype to avoid an error. */
7849 /* We use char because int might match the return type of a gcc2
7850 builtin and then its argument prototype would still apply. */
7855 /* The GNU C library defines this for functions which it implements
7856 to always fail with ENOSYS. Some functions are actually named
7857 something starting with __ and the normal name is an alias. */
7858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7868 eval "ac_cv_func_$ac_func=yes"
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 eval "ac_cv_func_$ac_func=no"
7878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7879 echo "$ac_t""yes" 1>&6
7880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7881 cat >> confdefs.h <<EOF
7882 #define $ac_tr_func 1
7886 echo "$ac_t""no" 1>&6
7895 *-lsecurity*) for ac_func in bigcrypt
7897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_func" >&5
7899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 /* System header to define __stub macros and hopefully few prototypes,
7906 which can conflict with char $ac_func(); below. */
7908 /* Override any gcc2 internal prototype to avoid an error. */
7909 /* We use char because int might match the return type of a gcc2
7910 builtin and then its argument prototype would still apply. */
7915 /* The GNU C library defines this for functions which it implements
7916 to always fail with ENOSYS. Some functions are actually named
7917 something starting with __ and the normal name is an alias. */
7918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7926 if { (eval echo configure:7927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928 eval "ac_cv_func_$ac_func=yes"
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7933 eval "ac_cv_func_$ac_func=no"
7938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7939 echo "$ac_t""yes" 1>&6
7940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7941 cat >> confdefs.h <<EOF
7942 #define $ac_tr_func 1
7946 echo "$ac_t""no" 1>&6
7950 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7951 echo "configure:7952: checking for bigcrypt in -lsecurity" >&5
7952 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7956 ac_save_LIBS="$LIBS"
7957 LIBS="-lsecurity $LIBS"
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 /* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7970 if { (eval echo configure:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7972 eval "ac_cv_lib_$ac_lib_var=yes"
7974 echo "configure: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7977 eval "ac_cv_lib_$ac_lib_var=no"
7980 LIBS="$ac_save_LIBS"
7983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7984 echo "$ac_t""yes" 1>&6
7985 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7986 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7987 cat >> confdefs.h <<EOF
7988 #define $ac_tr_lib 1
7991 LIBS="-lsecurity $LIBS"
7994 echo "$ac_t""no" 1>&6
7997 for ac_func in bigcrypt
7999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8000 echo "configure:8001: checking for $ac_func" >&5
8001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8002 echo $ac_n "(cached) $ac_c" 1>&6
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* System header to define __stub macros and hopefully few prototypes,
8008 which can conflict with char $ac_func(); below. */
8010 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8017 /* The GNU C library defines this for functions which it implements
8018 to always fail with ENOSYS. Some functions are actually named
8019 something starting with __ and the normal name is an alias. */
8020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8028 if { (eval echo configure:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8030 eval "ac_cv_func_$ac_func=yes"
8032 echo "configure: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8035 eval "ac_cv_func_$ac_func=no"
8040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8043 cat >> confdefs.h <<EOF
8044 #define $ac_tr_func 1
8048 echo "$ac_t""no" 1>&6
8056 *-lsec*) for ac_func in bigcrypt
8058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8059 echo "configure:8060: checking for $ac_func" >&5
8060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char $ac_func(); below. */
8069 /* Override any gcc2 internal prototype to avoid an error. */
8070 /* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8076 /* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8089 eval "ac_cv_func_$ac_func=yes"
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8094 eval "ac_cv_func_$ac_func=no"
8099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8102 cat >> confdefs.h <<EOF
8103 #define $ac_tr_func 1
8107 echo "$ac_t""no" 1>&6
8111 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8112 echo "configure:8113: checking for bigcrypt in -lsec" >&5
8113 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8117 ac_save_LIBS="$LIBS"
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8122 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8131 if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8133 eval "ac_cv_lib_$ac_lib_var=yes"
8135 echo "configure: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8138 eval "ac_cv_lib_$ac_lib_var=no"
8141 LIBS="$ac_save_LIBS"
8144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8145 echo "$ac_t""yes" 1>&6
8146 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8147 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8148 cat >> confdefs.h <<EOF
8149 #define $ac_tr_lib 1
8155 echo "$ac_t""no" 1>&6
8158 for ac_func in bigcrypt
8160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8161 echo "configure:8162: checking for $ac_func" >&5
8162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
8165 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8168 /* System header to define __stub macros and hopefully few prototypes,
8169 which can conflict with char $ac_func(); below. */
8171 /* Override any gcc2 internal prototype to avoid an error. */
8172 /* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8178 /* The GNU C library defines this for functions which it implements
8179 to always fail with ENOSYS. Some functions are actually named
8180 something starting with __ and the normal name is an alias. */
8181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8189 if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8191 eval "ac_cv_func_$ac_func=yes"
8193 echo "configure: failed program was:" >&5
8194 cat conftest.$ac_ext >&5
8196 eval "ac_cv_func_$ac_func=no"
8201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8202 echo "$ac_t""yes" 1>&6
8203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8204 cat >> confdefs.h <<EOF
8205 #define $ac_tr_func 1
8209 echo "$ac_t""no" 1>&6
8218 *-lsecurity*) for ac_func in getprpwnam
8220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8221 echo "configure:8222: checking for $ac_func" >&5
8222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8225 cat > conftest.$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8228 /* System header to define __stub macros and hopefully few prototypes,
8229 which can conflict with char $ac_func(); below. */
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8238 /* The GNU C library defines this for functions which it implements
8239 to always fail with ENOSYS. Some functions are actually named
8240 something starting with __ and the normal name is an alias. */
8241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8249 if { (eval echo configure:8250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 eval "ac_cv_func_$ac_func=yes"
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8256 eval "ac_cv_func_$ac_func=no"
8261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8262 echo "$ac_t""yes" 1>&6
8263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8264 cat >> confdefs.h <<EOF
8265 #define $ac_tr_func 1
8269 echo "$ac_t""no" 1>&6
8273 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8274 echo "configure:8275: checking for getprpwnam in -lsecurity" >&5
8275 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8279 ac_save_LIBS="$LIBS"
8280 LIBS="-lsecurity $LIBS"
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 /* Override any gcc2 internal prototype to avoid an error. */
8285 /* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8293 if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8295 eval "ac_cv_lib_$ac_lib_var=yes"
8297 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8300 eval "ac_cv_lib_$ac_lib_var=no"
8303 LIBS="$ac_save_LIBS"
8306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8307 echo "$ac_t""yes" 1>&6
8308 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8310 cat >> confdefs.h <<EOF
8311 #define $ac_tr_lib 1
8314 LIBS="-lsecurity $LIBS"
8317 echo "$ac_t""no" 1>&6
8320 for ac_func in getprpwnam
8322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8323 echo "configure:8324: checking for $ac_func" >&5
8324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8327 cat > conftest.$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 /* System header to define __stub macros and hopefully few prototypes,
8331 which can conflict with char $ac_func(); below. */
8333 /* Override any gcc2 internal prototype to avoid an error. */
8334 /* We use char because int might match the return type of a gcc2
8335 builtin and then its argument prototype would still apply. */
8340 /* The GNU C library defines this for functions which it implements
8341 to always fail with ENOSYS. Some functions are actually named
8342 something starting with __ and the normal name is an alias. */
8343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8351 if { (eval echo configure:8352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353 eval "ac_cv_func_$ac_func=yes"
8355 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8358 eval "ac_cv_func_$ac_func=no"
8363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8364 echo "$ac_t""yes" 1>&6
8365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8366 cat >> confdefs.h <<EOF
8367 #define $ac_tr_func 1
8371 echo "$ac_t""no" 1>&6
8379 *-lsec*) for ac_func in getprpwnam
8381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8382 echo "configure:8383: checking for $ac_func" >&5
8383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 /* System header to define __stub macros and hopefully few prototypes,
8390 which can conflict with char $ac_func(); below. */
8392 /* Override any gcc2 internal prototype to avoid an error. */
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8399 /* The GNU C library defines this for functions which it implements
8400 to always fail with ENOSYS. Some functions are actually named
8401 something starting with __ and the normal name is an alias. */
8402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8410 if { (eval echo configure:8411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8412 eval "ac_cv_func_$ac_func=yes"
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 eval "ac_cv_func_$ac_func=no"
8422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8423 echo "$ac_t""yes" 1>&6
8424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8425 cat >> confdefs.h <<EOF
8426 #define $ac_tr_func 1
8430 echo "$ac_t""no" 1>&6
8434 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8435 echo "configure:8436: checking for getprpwnam in -lsec" >&5
8436 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8440 ac_save_LIBS="$LIBS"
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 /* Override any gcc2 internal prototype to avoid an error. */
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8454 if { (eval echo configure:8455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8456 eval "ac_cv_lib_$ac_lib_var=yes"
8458 echo "configure: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8461 eval "ac_cv_lib_$ac_lib_var=no"
8464 LIBS="$ac_save_LIBS"
8467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8468 echo "$ac_t""yes" 1>&6
8469 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8470 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8471 cat >> confdefs.h <<EOF
8472 #define $ac_tr_lib 1
8478 echo "$ac_t""no" 1>&6
8481 for ac_func in getprpwnam
8483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8484 echo "configure:8485: checking for $ac_func" >&5
8485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8486 echo $ac_n "(cached) $ac_c" 1>&6
8488 cat > conftest.$ac_ext <<EOF
8489 #line 8490 "configure"
8490 #include "confdefs.h"
8491 /* System header to define __stub macros and hopefully few prototypes,
8492 which can conflict with char $ac_func(); below. */
8494 /* Override any gcc2 internal prototype to avoid an error. */
8495 /* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8501 /* The GNU C library defines this for functions which it implements
8502 to always fail with ENOSYS. Some functions are actually named
8503 something starting with __ and the normal name is an alias. */
8504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8512 if { (eval echo configure:8513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8514 eval "ac_cv_func_$ac_func=yes"
8516 echo "configure: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8519 eval "ac_cv_func_$ac_func=no"
8524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8525 echo "$ac_t""yes" 1>&6
8526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8527 cat >> confdefs.h <<EOF
8528 #define $ac_tr_func 1
8532 echo "$ac_t""no" 1>&6
8540 # this bit needs to be modified for each OS that is suported by
8541 # smbwrapper. You need to specify how to created a shared library and
8542 # how to compile C code to produce PIC object files
8544 # these are the defaults, good for lots of systems
8552 # Assume non-shared by default and override below
8554 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8555 echo "configure:8556: checking ability to build shared libraries" >&5
8557 # and these are for particular systems
8559 *linux*) cat >> confdefs.h <<\EOF
8566 cat >> confdefs.h <<\EOF
8567 #define STAT_ST_BLOCKSIZE 512
8571 *solaris*) cat >> confdefs.h <<\EOF
8576 LDSHFLAGS="-h \$@ -G"
8577 if test "${ac_cv_prog_CC}" = "gcc"; then
8584 cat >> confdefs.h <<\EOF
8585 #define STAT_ST_BLOCKSIZE 512
8589 *sunos*) cat >> confdefs.h <<\EOF
8594 LDSHFLAGS="-Wl,-h,\$@ -G"
8595 PICFLAG="-KPIC" # Is this correct for SunOS
8597 *bsd*) BLDSHARED="true"
8598 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8600 cat >> confdefs.h <<\EOF
8601 #define STAT_ST_BLOCKSIZE 512
8605 *irix*) cat >> confdefs.h <<\EOF
8610 *irix6*) cat >> confdefs.h <<\EOF
8616 ATTEMPT_WRAP32_BUILD=yes
8618 LDSHFLAGS="-soname \$@ -shared"
8620 if test "${ac_cv_prog_CC}" = "gcc"; then
8625 cat >> confdefs.h <<\EOF
8626 #define STAT_ST_BLOCKSIZE 512
8630 *aix*) cat >> confdefs.h <<\EOF
8635 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8636 PICFLAG="-O2 -qmaxmem=6000"
8637 cat >> confdefs.h <<\EOF
8638 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8642 *hpux*) cat >> confdefs.h <<\EOF
8647 # Use special PIC flags for the native HP-UX compiler.
8648 if test $ac_cv_prog_cc_Ae = yes; then
8650 LDSHFLAGS="-b -z +h \$@"
8653 cat >> confdefs.h <<\EOF
8654 #define STAT_ST_BLOCKSIZE 8192
8658 *qnx*) cat >> confdefs.h <<\EOF
8662 *osf*) cat >> confdefs.h <<\EOF
8667 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8670 *sco*) cat >> confdefs.h <<\EOF
8674 *unixware*) cat >> confdefs.h <<\EOF
8679 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8682 *next2*) cat >> confdefs.h <<\EOF
8686 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8687 set dummy groff; ac_word=$2
8688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8689 echo "configure:8690: checking for $ac_word" >&5
8690 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8693 if test -n "$ROFF"; then
8694 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8698 for ac_dir in $ac_dummy; do
8699 test -z "$ac_dir" && ac_dir=.
8700 if test -f $ac_dir/$ac_word; then
8701 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8708 ROFF="$ac_cv_prog_ROFF"
8709 if test -n "$ROFF"; then
8710 echo "$ac_t""$ROFF" 1>&6
8712 echo "$ac_t""no" 1>&6
8717 *-univel-*) if test "$GCC" != yes ; then
8718 cat >> confdefs.h <<\EOF
8719 #define HAVE_MEMSET 1
8725 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8726 #define RELIANTUNIX 1
8732 if test "$GCC" != yes ; then
8733 cat >> confdefs.h <<\EOF
8734 #define HAVE_MEMSET 1
8741 echo "$ac_t""$BLDSHARED" 1>&6
8742 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8743 echo "configure:8744: checking linker flags for shared libraries" >&5
8744 echo "$ac_t""$LDSHFLAGS" 1>&6
8745 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8746 echo "configure:8747: checking compiler flags for position-independent code" >&5
8747 echo "$ac_t""$PICFLAGS" 1>&6
8749 #######################################################
8750 # test whether building a shared library actually works
8751 if test $BLDSHARED = true; then
8752 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
8753 echo "configure:8754: checking whether building shared libraries actually works" >&5
8754 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
8755 echo $ac_n "(cached) $ac_c" 1>&6
8758 ac_cv_shlib_works=no
8759 # try building a trivial shared library
8760 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
8761 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
8762 ac_cv_shlib_works=yes
8763 rm -f shlib.so shlib.po
8767 echo "$ac_t""$ac_cv_shlib_works" 1>&6
8768 if test $ac_cv_shlib_works = no; then
8774 # this updates our target list if we can build shared libs
8775 if test $BLDSHARED = true; then
8776 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8778 LIBSMBCLIENT_SHARED=
8783 echo $ac_n "checking for long long""... $ac_c" 1>&6
8784 echo "configure:8785: checking for long long" >&5
8785 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8789 if test "$cross_compiling" = yes; then
8790 samba_cv_have_longlong=cross
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8796 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8798 if { (eval echo configure:8799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8800 samba_cv_have_longlong=yes
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8805 samba_cv_have_longlong=no
8812 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8813 if test x"$samba_cv_have_longlong" = x"yes"; then
8814 cat >> confdefs.h <<\EOF
8815 #define HAVE_LONGLONG 1
8821 # Check if the compiler supports the LL prefix on long long integers.
8824 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8825 echo "configure:8826: checking for LL suffix on long long integers" >&5
8826 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8830 cat > conftest.$ac_ext <<EOF
8831 #line 8832 "configure"
8832 #include "confdefs.h"
8835 long long i = 0x8000000000LL
8838 if { (eval echo configure:8839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8840 samba_cv_compiler_supports_ll=yes
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8845 samba_cv_compiler_supports_ll=no
8850 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8851 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8852 cat >> confdefs.h <<\EOF
8853 #define COMPILER_SUPPORTS_LL 1
8859 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8860 echo "configure:8861: checking for 64 bit off_t" >&5
8861 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8862 echo $ac_n "(cached) $ac_c" 1>&6
8865 if test "$cross_compiling" = yes; then
8866 samba_cv_SIZEOF_OFF_T=cross
8868 cat > conftest.$ac_ext <<EOF
8869 #line 8870 "configure"
8870 #include "confdefs.h"
8872 #include <sys/stat.h>
8873 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8875 if { (eval echo configure:8876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8877 samba_cv_SIZEOF_OFF_T=yes
8879 echo "configure: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8882 samba_cv_SIZEOF_OFF_T=no
8889 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8890 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8891 cat >> confdefs.h <<\EOF
8892 #define SIZEOF_OFF_T 8
8897 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8898 echo "configure:8899: checking for off64_t" >&5
8899 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8903 if test "$cross_compiling" = yes; then
8904 samba_cv_HAVE_OFF64_T=cross
8906 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure"
8908 #include "confdefs.h"
8910 #if defined(HAVE_UNISTD_H)
8914 #include <sys/stat.h>
8915 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8917 if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8919 samba_cv_HAVE_OFF64_T=yes
8921 echo "configure: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8924 samba_cv_HAVE_OFF64_T=no
8931 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8932 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8933 cat >> confdefs.h <<\EOF
8934 #define HAVE_OFF64_T 1
8939 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8940 echo "configure:8941: checking for 64 bit ino_t" >&5
8941 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
8945 if test "$cross_compiling" = yes; then
8946 samba_cv_SIZEOF_INO_T=cross
8948 cat > conftest.$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8952 #include <sys/stat.h>
8953 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8957 samba_cv_SIZEOF_INO_T=yes
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8962 samba_cv_SIZEOF_INO_T=no
8969 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8970 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8971 cat >> confdefs.h <<\EOF
8972 #define SIZEOF_INO_T 8
8977 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8978 echo "configure:8979: checking for ino64_t" >&5
8979 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8983 if test "$cross_compiling" = yes; then
8984 samba_cv_HAVE_INO64_T=cross
8986 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8990 #if defined(HAVE_UNISTD_H)
8994 #include <sys/stat.h>
8995 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8999 samba_cv_HAVE_INO64_T=yes
9001 echo "configure: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9004 samba_cv_HAVE_INO64_T=no
9011 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9012 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9013 cat >> confdefs.h <<\EOF
9014 #define HAVE_INO64_T 1
9019 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9020 echo "configure:9021: checking for dev64_t" >&5
9021 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9022 echo $ac_n "(cached) $ac_c" 1>&6
9025 if test "$cross_compiling" = yes; then
9026 samba_cv_HAVE_DEV64_T=cross
9028 cat > conftest.$ac_ext <<EOF
9029 #line 9030 "configure"
9030 #include "confdefs.h"
9032 #if defined(HAVE_UNISTD_H)
9036 #include <sys/stat.h>
9037 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9039 if { (eval echo configure:9040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9041 samba_cv_HAVE_DEV64_T=yes
9043 echo "configure: failed program was:" >&5
9044 cat conftest.$ac_ext >&5
9046 samba_cv_HAVE_DEV64_T=no
9053 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9054 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9055 cat >> confdefs.h <<\EOF
9056 #define HAVE_DEV64_T 1
9061 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9062 echo "configure:9063: checking for struct dirent64" >&5
9063 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9067 cat > conftest.$ac_ext <<EOF
9068 #line 9069 "configure"
9069 #include "confdefs.h"
9071 #if defined(HAVE_UNISTD_H)
9074 #include <sys/types.h>
9080 if { (eval echo configure:9081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9082 samba_cv_HAVE_STRUCT_DIRENT64=yes
9084 echo "configure: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9087 samba_cv_HAVE_STRUCT_DIRENT64=no
9092 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9093 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9094 cat >> confdefs.h <<\EOF
9095 #define HAVE_STRUCT_DIRENT64 1
9100 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9101 echo "configure:9102: checking for major macro" >&5
9102 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9103 echo $ac_n "(cached) $ac_c" 1>&6
9106 if test "$cross_compiling" = yes; then
9107 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9113 #if defined(HAVE_UNISTD_H)
9116 #include <sys/types.h>
9117 main() { dev_t dev; int i = major(dev); return 0; }
9119 if { (eval echo configure:9120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9121 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9123 echo "configure: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9126 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9133 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9134 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9135 cat >> confdefs.h <<\EOF
9136 #define HAVE_DEVICE_MAJOR_FN 1
9141 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9142 echo "configure:9143: checking for minor macro" >&5
9143 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9144 echo $ac_n "(cached) $ac_c" 1>&6
9147 if test "$cross_compiling" = yes; then
9148 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9150 cat > conftest.$ac_ext <<EOF
9151 #line 9152 "configure"
9152 #include "confdefs.h"
9154 #if defined(HAVE_UNISTD_H)
9157 #include <sys/types.h>
9158 main() { dev_t dev; int i = minor(dev); return 0; }
9160 if { (eval echo configure:9161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9162 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9164 echo "configure: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9167 samba_cv_HAVE_DEVICE_MINOR_FN=no
9174 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9175 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9176 cat >> confdefs.h <<\EOF
9177 #define HAVE_DEVICE_MINOR_FN 1
9182 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9183 echo "configure:9184: checking for unsigned char" >&5
9184 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9185 echo $ac_n "(cached) $ac_c" 1>&6
9188 if test "$cross_compiling" = yes; then
9189 samba_cv_HAVE_UNSIGNED_CHAR=cross
9191 cat > conftest.$ac_ext <<EOF
9192 #line 9193 "configure"
9193 #include "confdefs.h"
9195 main() { char c; c=250; exit((c > 0)?0:1); }
9197 if { (eval echo configure:9198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9199 samba_cv_HAVE_UNSIGNED_CHAR=yes
9201 echo "configure: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9204 samba_cv_HAVE_UNSIGNED_CHAR=no
9211 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9212 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9213 cat >> confdefs.h <<\EOF
9214 #define HAVE_UNSIGNED_CHAR 1
9219 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9220 echo "configure:9221: checking for sin_len in sock" >&5
9221 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9222 echo $ac_n "(cached) $ac_c" 1>&6
9225 cat > conftest.$ac_ext <<EOF
9226 #line 9227 "configure"
9227 #include "confdefs.h"
9228 #include <sys/types.h>
9229 #include <sys/socket.h>
9230 #include <netinet/in.h>
9232 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9235 if { (eval echo configure:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9237 samba_cv_HAVE_SOCK_SIN_LEN=yes
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9242 samba_cv_HAVE_SOCK_SIN_LEN=no
9247 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9248 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9249 cat >> confdefs.h <<\EOF
9250 #define HAVE_SOCK_SIN_LEN 1
9255 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9256 echo "configure:9257: checking whether seekdir returns void" >&5
9257 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9261 cat > conftest.$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9264 #include <sys/types.h>
9266 void seekdir(DIR *d, long loc) { return; }
9271 if { (eval echo configure:9272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9273 samba_cv_SEEKDIR_RETURNS_VOID=yes
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9278 samba_cv_SEEKDIR_RETURNS_VOID=no
9283 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9284 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9285 cat >> confdefs.h <<\EOF
9286 #define SEEKDIR_RETURNS_VOID 1
9291 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9292 echo "configure:9293: checking for __FILE__ macro" >&5
9293 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9294 echo $ac_n "(cached) $ac_c" 1>&6
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9302 printf("%s\n", __FILE__);
9305 if { (eval echo configure:9306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9307 samba_cv_HAVE_FILE_MACRO=yes
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9312 samba_cv_HAVE_FILE_MACRO=no
9317 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9318 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9319 cat >> confdefs.h <<\EOF
9320 #define HAVE_FILE_MACRO 1
9325 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9326 echo "configure:9327: checking for __FUNCTION__ macro" >&5
9327 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9336 printf("%s\n", __FUNCTION__);
9339 if { (eval echo configure:9340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9341 samba_cv_HAVE_FUNCTION_MACRO=yes
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 samba_cv_HAVE_FUNCTION_MACRO=no
9351 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9352 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9353 cat >> confdefs.h <<\EOF
9354 #define HAVE_FUNCTION_MACRO 1
9359 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9360 echo "configure:9361: checking if gettimeofday takes tz argument" >&5
9361 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9365 if test "$cross_compiling" = yes; then
9366 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9372 #include <sys/time.h>
9374 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9376 if { (eval echo configure:9377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9378 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9380 echo "configure: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9383 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9390 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9391 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9392 cat >> confdefs.h <<\EOF
9393 #define HAVE_GETTIMEOFDAY_TZ 1
9398 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9399 echo "configure:9400: checking for C99 vsnprintf" >&5
9400 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9401 echo $ac_n "(cached) $ac_c" 1>&6
9404 if test "$cross_compiling" = yes; then
9405 samba_cv_HAVE_C99_VSNPRINTF=cross
9407 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9411 #include <sys/types.h>
9413 void foo(const char *format, ...) {
9418 va_start(ap, format);
9419 len = vsnprintf(buf, 0, format, ap);
9421 if (len != 5) exit(1);
9423 va_start(ap, format);
9424 len = vsnprintf(0, 0, format, ap);
9426 if (len != 5) exit(1);
9428 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9432 main() { foo("hello"); }
9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9437 samba_cv_HAVE_C99_VSNPRINTF=yes
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9442 samba_cv_HAVE_C99_VSNPRINTF=no
9449 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9450 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9451 cat >> confdefs.h <<\EOF
9452 #define HAVE_C99_VSNPRINTF 1
9457 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9458 echo "configure:9459: checking for broken readdir" >&5
9459 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9460 echo $ac_n "(cached) $ac_c" 1>&6
9463 if test "$cross_compiling" = yes; then
9464 samba_cv_HAVE_BROKEN_READDIR=cross
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9469 #include <sys/types.h>
9471 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9472 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9473 di->d_name[0] == 0) exit(0); exit(1);}
9475 if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9477 samba_cv_HAVE_BROKEN_READDIR=yes
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9482 samba_cv_HAVE_BROKEN_READDIR=no
9489 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9490 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9491 cat >> confdefs.h <<\EOF
9492 #define HAVE_BROKEN_READDIR 1
9497 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9498 echo "configure:9499: checking for utimbuf" >&5
9499 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9506 #include <sys/types.h>
9509 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9512 if { (eval echo configure:9513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9514 samba_cv_HAVE_UTIMBUF=yes
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9519 samba_cv_HAVE_UTIMBUF=no
9524 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9525 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9526 cat >> confdefs.h <<\EOF
9527 #define HAVE_UTIMBUF 1
9533 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9536 echo "configure:9537: checking for $ac_func" >&5
9537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 /* System header to define __stub macros and hopefully few prototypes,
9544 which can conflict with char $ac_func(); below. */
9546 /* Override any gcc2 internal prototype to avoid an error. */
9547 /* We use char because int might match the return type of a gcc2
9548 builtin and then its argument prototype would still apply. */
9553 /* The GNU C library defines this for functions which it implements
9554 to always fail with ENOSYS. Some functions are actually named
9555 something starting with __ and the normal name is an alias. */
9556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9564 if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9566 eval "ac_cv_func_$ac_func=yes"
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9571 eval "ac_cv_func_$ac_func=no"
9576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9577 echo "$ac_t""yes" 1>&6
9578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9579 cat >> confdefs.h <<EOF
9580 #define $ac_tr_func 1
9584 echo "$ac_t""no" 1>&6
9589 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9590 echo "configure:9591: checking for ut_name in utmp" >&5
9591 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 #include <sys/types.h>
9601 struct utmp ut; ut.ut_name[0] = 'a';
9604 if { (eval echo configure:9605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9606 samba_cv_HAVE_UT_UT_NAME=yes
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9611 samba_cv_HAVE_UT_UT_NAME=no
9616 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9617 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9618 cat >> confdefs.h <<\EOF
9619 #define HAVE_UT_UT_NAME 1
9624 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9625 echo "configure:9626: checking for ut_user in utmp" >&5
9626 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9630 cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 #include <sys/types.h>
9636 struct utmp ut; ut.ut_user[0] = 'a';
9639 if { (eval echo configure:9640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9641 samba_cv_HAVE_UT_UT_USER=yes
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9646 samba_cv_HAVE_UT_UT_USER=no
9651 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9652 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9653 cat >> confdefs.h <<\EOF
9654 #define HAVE_UT_UT_USER 1
9659 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9660 echo "configure:9661: checking for ut_id in utmp" >&5
9661 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 #include <sys/types.h>
9671 struct utmp ut; ut.ut_id[0] = 'a';
9674 if { (eval echo configure:9675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9676 samba_cv_HAVE_UT_UT_ID=yes
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 samba_cv_HAVE_UT_UT_ID=no
9686 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9687 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9688 cat >> confdefs.h <<\EOF
9689 #define HAVE_UT_UT_ID 1
9694 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9695 echo "configure:9696: checking for ut_host in utmp" >&5
9696 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9700 cat > conftest.$ac_ext <<EOF
9701 #line 9702 "configure"
9702 #include "confdefs.h"
9703 #include <sys/types.h>
9706 struct utmp ut; ut.ut_host[0] = 'a';
9709 if { (eval echo configure:9710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9711 samba_cv_HAVE_UT_UT_HOST=yes
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9716 samba_cv_HAVE_UT_UT_HOST=no
9721 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9722 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9723 cat >> confdefs.h <<\EOF
9724 #define HAVE_UT_UT_HOST 1
9729 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9730 echo "configure:9731: checking for ut_time in utmp" >&5
9731 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9735 cat > conftest.$ac_ext <<EOF
9736 #line 9737 "configure"
9737 #include "confdefs.h"
9738 #include <sys/types.h>
9741 struct utmp ut; time_t t; ut.ut_time = t;
9744 if { (eval echo configure:9745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9746 samba_cv_HAVE_UT_UT_TIME=yes
9748 echo "configure: failed program was:" >&5
9749 cat conftest.$ac_ext >&5
9751 samba_cv_HAVE_UT_UT_TIME=no
9756 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9757 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9758 cat >> confdefs.h <<\EOF
9759 #define HAVE_UT_UT_TIME 1
9764 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9765 echo "configure:9766: checking for ut_tv in utmp" >&5
9766 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9767 echo $ac_n "(cached) $ac_c" 1>&6
9770 cat > conftest.$ac_ext <<EOF
9771 #line 9772 "configure"
9772 #include "confdefs.h"
9773 #include <sys/types.h>
9776 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9779 if { (eval echo configure:9780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9781 samba_cv_HAVE_UT_UT_TV=yes
9783 echo "configure: failed program was:" >&5
9784 cat conftest.$ac_ext >&5
9786 samba_cv_HAVE_UT_UT_TV=no
9791 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9792 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9793 cat >> confdefs.h <<\EOF
9794 #define HAVE_UT_UT_TV 1
9799 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9800 echo "configure:9801: checking for ut_type in utmp" >&5
9801 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 #include <sys/types.h>
9811 struct utmp ut; ut.ut_type = 0;
9814 if { (eval echo configure:9815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9816 samba_cv_HAVE_UT_UT_TYPE=yes
9818 echo "configure: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9821 samba_cv_HAVE_UT_UT_TYPE=no
9826 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9827 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9828 cat >> confdefs.h <<\EOF
9829 #define HAVE_UT_UT_TYPE 1
9834 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9835 echo "configure:9836: checking for ut_pid in utmp" >&5
9836 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9840 cat > conftest.$ac_ext <<EOF
9841 #line 9842 "configure"
9842 #include "confdefs.h"
9843 #include <sys/types.h>
9846 struct utmp ut; ut.ut_pid = 0;
9849 if { (eval echo configure:9850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9851 samba_cv_HAVE_UT_UT_PID=yes
9853 echo "configure: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9856 samba_cv_HAVE_UT_UT_PID=no
9861 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9862 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9863 cat >> confdefs.h <<\EOF
9864 #define HAVE_UT_UT_PID 1
9869 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9870 echo "configure:9871: checking for ut_exit in utmp" >&5
9871 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9875 cat > conftest.$ac_ext <<EOF
9876 #line 9877 "configure"
9877 #include "confdefs.h"
9878 #include <sys/types.h>
9881 struct utmp ut; ut.ut_exit.e_exit = 0;
9884 if { (eval echo configure:9885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9886 samba_cv_HAVE_UT_UT_EXIT=yes
9888 echo "configure: failed program was:" >&5
9889 cat conftest.$ac_ext >&5
9891 samba_cv_HAVE_UT_UT_EXIT=no
9896 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9897 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9898 cat >> confdefs.h <<\EOF
9899 #define HAVE_UT_UT_EXIT 1
9904 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9905 echo "configure:9906: checking for ut_addr in utmp" >&5
9906 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9910 cat > conftest.$ac_ext <<EOF
9911 #line 9912 "configure"
9912 #include "confdefs.h"
9913 #include <sys/types.h>
9916 struct utmp ut; ut.ut_addr = 0;
9919 if { (eval echo configure:9920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9921 samba_cv_HAVE_UT_UT_ADDR=yes
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9926 samba_cv_HAVE_UT_UT_ADDR=no
9931 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9932 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9933 cat >> confdefs.h <<\EOF
9934 #define HAVE_UT_UT_ADDR 1
9939 if test x$ac_cv_func_pututline = xyes ; then
9940 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9941 echo "configure:9942: checking whether pututline returns pointer" >&5
9942 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9943 echo $ac_n "(cached) $ac_c" 1>&6
9946 cat > conftest.$ac_ext <<EOF
9947 #line 9948 "configure"
9948 #include "confdefs.h"
9949 #include <sys/types.h>
9952 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9955 if { (eval echo configure:9956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9957 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9962 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9967 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9968 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9969 cat >> confdefs.h <<\EOF
9970 #define PUTUTLINE_RETURNS_UTMP 1
9976 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9977 echo "configure:9978: checking for ut_syslen in utmpx" >&5
9978 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9979 echo $ac_n "(cached) $ac_c" 1>&6
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9985 #include <sys/types.h>
9988 struct utmpx ux; ux.ut_syslen = 0;
9991 if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9993 samba_cv_HAVE_UX_UT_SYSLEN=yes
9995 echo "configure: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9998 samba_cv_HAVE_UX_UT_SYSLEN=no
10003 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10004 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10005 cat >> confdefs.h <<\EOF
10006 #define HAVE_UX_UT_SYSLEN 1
10012 #################################################
10013 # check for libiconv support
10014 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10015 echo "configure:10016: checking whether to use libiconv" >&5
10016 # Check whether --with-libiconv or --without-libiconv was given.
10017 if test "${with_libiconv+set}" = set; then
10018 withval="$with_libiconv"
10021 echo "$ac_t""no" 1>&6
10024 echo "$ac_t""yes" 1>&6
10025 CFLAGS="$CFLAGS -I$withval/include"
10026 LDFLAGS="$LDFLAGS -L$withval/lib"
10027 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10028 echo "configure:10029: checking for iconv_open in -liconv" >&5
10029 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10033 ac_save_LIBS="$LIBS"
10034 LIBS="-liconv $LIBS"
10035 cat > conftest.$ac_ext <<EOF
10036 #line 10037 "configure"
10037 #include "confdefs.h"
10038 /* Override any gcc2 internal prototype to avoid an error. */
10039 /* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10047 if { (eval echo configure:10048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10049 eval "ac_cv_lib_$ac_lib_var=yes"
10051 echo "configure: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10054 eval "ac_cv_lib_$ac_lib_var=no"
10057 LIBS="$ac_save_LIBS"
10060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10061 echo "$ac_t""yes" 1>&6
10062 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10063 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10064 cat >> confdefs.h <<EOF
10065 #define $ac_tr_lib 1
10068 LIBS="-liconv $LIBS"
10071 echo "$ac_t""no" 1>&6
10074 cat >> confdefs.h <<EOF
10075 #define WITH_LIBICONV "${withval}"
10081 echo "$ac_t""no" 1>&6
10088 # check for iconv in libc
10089 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10090 echo "configure:10091: checking for working iconv" >&5
10091 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10095 if test "$cross_compiling" = yes; then
10096 samba_cv_HAVE_NATIVE_ICONV=cross
10098 cat > conftest.$ac_ext <<EOF
10099 #line 10100 "configure"
10100 #include "confdefs.h"
10104 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10105 if (cd == 0 || cd == (iconv_t)-1) return -1;
10110 if { (eval echo configure:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10112 samba_cv_HAVE_NATIVE_ICONV=yes
10114 echo "configure: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10117 samba_cv_HAVE_NATIVE_ICONV=no
10124 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10125 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_NATIVE_ICONV 1
10133 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10134 echo "configure:10135: checking for Linux kernel oplocks" >&5
10135 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10139 if test "$cross_compiling" = yes; then
10140 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10142 cat > conftest.$ac_ext <<EOF
10143 #line 10144 "configure"
10144 #include "confdefs.h"
10146 #include <sys/types.h>
10149 #define F_GETLEASE 1025
10152 int fd = open("/dev/null", O_RDONLY);
10153 return fcntl(fd, F_GETLEASE, 0) == -1;
10157 if { (eval echo configure:10158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10159 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10161 echo "configure: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10164 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10171 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10172 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10179 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10180 echo "configure:10181: checking for kernel change notify support" >&5
10181 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10182 echo $ac_n "(cached) $ac_c" 1>&6
10185 if test "$cross_compiling" = yes; then
10186 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10190 "configure"
10190 #include "confdefs.h"
10192 #include <sys/types.h>
10194 #include <signal.h>
10196 #define F_NOTIFY 1026
10199 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10203 if { (eval echo configure:10204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10205 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10210 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10217 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10218 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10219 cat >> confdefs.h <<\EOF
10220 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10225 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10226 echo "configure:10227: checking for kernel share modes" >&5
10227 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10228 echo $ac_n "(cached) $ac_c" 1>&6
10231 if test "$cross_compiling" = yes; then
10232 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10234 cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10238 #include <sys/types.h>
10240 #include <signal.h>
10241 #include <sys/file.h>
10243 #define LOCK_MAND 32
10244 #define LOCK_READ 64
10247 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10251 if { (eval echo configure:10252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10253 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10255 echo "configure: failed program was:" >&5
10256 cat conftest.$ac_ext >&5
10258 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10265 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10266 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10267 cat >> confdefs.h <<\EOF
10268 #define HAVE_KERNEL_SHARE_MODES 1
10276 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10277 echo "configure:10278: checking for IRIX kernel oplock type definitions" >&5
10278 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10279 echo $ac_n "(cached) $ac_c" 1>&6
10282 cat > conftest.$ac_ext <<EOF
10283 #line 10284 "configure"
10284 #include "confdefs.h"
10285 #include <sys/types.h>
10288 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10291 if { (eval echo configure:10292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10293 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10295 echo "configure: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10298 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10303 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10304 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10305 cat >> confdefs.h <<\EOF
10306 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10311 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10312 echo "configure:10313: checking for irix specific capabilities" >&5
10313 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10314 echo $ac_n "(cached) $ac_c" 1>&6
10317 if test "$cross_compiling" = yes; then
10318 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10323 #include <sys/types.h>
10324 #include <sys/capability.h>
10327 if ((cap = cap_get_proc()) == NULL)
10329 cap->cap_effective |= CAP_NETWORK_MGT;
10330 cap->cap_inheritable |= CAP_NETWORK_MGT;
10336 if { (eval echo configure:10337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10338 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10340 echo "configure: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10343 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10350 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10351 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10352 cat >> confdefs.h <<\EOF
10353 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10359 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10360 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10363 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10364 echo "configure:10365: checking for int16 typedef included by rpc/rpc.h" >&5
10365 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 #include <sys/types.h>
10373 #if defined(HAVE_RPC_RPC_H)
10374 #include <rpc/rpc.h>
10380 if { (eval echo configure:10381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10382 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10384 echo "configure: failed program was:" >&5
10385 cat conftest.$ac_ext >&5
10387 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10392 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10393 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10394 cat >> confdefs.h <<\EOF
10395 #define HAVE_INT16_FROM_RPC_RPC_H 1
10400 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10401 echo "configure:10402: checking for uint16 typedef included by rpc/rpc.h" >&5
10402 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10403 echo $ac_n "(cached) $ac_c" 1>&6
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409 #include <sys/types.h>
10410 #if defined(HAVE_RPC_RPC_H)
10411 #include <rpc/rpc.h>
10417 if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10419 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10424 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10429 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10430 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10437 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10438 echo "configure:10439: checking for int32 typedef included by rpc/rpc.h" >&5
10439 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 #include <sys/types.h>
10447 #if defined(HAVE_RPC_RPC_H)
10448 #include <rpc/rpc.h>
10454 if { (eval echo configure:10455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10456 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10458 echo "configure: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10461 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10466 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10467 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10468 cat >> confdefs.h <<\EOF
10469 #define HAVE_INT32_FROM_RPC_RPC_H 1
10474 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10475 echo "configure:10476: checking for uint32 typedef included by rpc/rpc.h" >&5
10476 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10480 cat > conftest.$ac_ext <<EOF
10481 #line 10482 "configure"
10482 #include "confdefs.h"
10483 #include <sys/types.h>
10484 #if defined(HAVE_RPC_RPC_H)
10485 #include <rpc/rpc.h>
10491 if { (eval echo configure:10492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10493 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10495 echo "configure: failed program was:" >&5
10496 cat conftest.$ac_ext >&5
10498 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10503 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10504 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10505 cat >> confdefs.h <<\EOF
10506 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10512 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10513 echo "configure:10514: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10514 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521 #include <sys/types.h>
10522 #ifdef HAVE_SYS_SECURITY_H
10523 #include <sys/security.h>
10525 #endif /* HAVE_SYS_SECURITY_H */
10526 #if defined(HAVE_RPC_RPC_H)
10527 #include <rpc/rpc.h>
10533 if { (eval echo configure:10534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10535 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10537 echo "configure: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10540 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10545 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10546 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10547 cat >> confdefs.h <<\EOF
10548 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10553 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10554 echo "configure:10555: checking for test routines" >&5
10555 if test "$cross_compiling" = yes; then
10556 echo "configure: warning: cannot run when cross-compiling" 1>&2
10558 cat > conftest.$ac_ext <<EOF
10559 #line 10560 "configure"
10560 #include "confdefs.h"
10561 #include "${srcdir-.}/tests/trivial.c"
10563 if { (eval echo configure:10564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10565 echo "$ac_t""yes" 1>&6
10567 echo "configure: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10570 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10576 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10577 echo "configure:10578: checking for ftruncate extend" >&5
10578 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10582 if test "$cross_compiling" = yes; then
10583 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10585 cat > conftest.$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10588 #include "${srcdir-.}/tests/ftruncate.c"
10590 if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10592 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10597 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10604 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10605 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10606 cat >> confdefs.h <<\EOF
10607 #define HAVE_FTRUNCATE_EXTEND 1
10612 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10613 echo "configure:10614: checking for AF_LOCAL socket support" >&5
10614 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10615 echo $ac_n "(cached) $ac_c" 1>&6
10618 if test "$cross_compiling" = yes; then
10619 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10624 #include "${srcdir-.}/tests/unixsock.c"
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10628 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10633 samba_cv_HAVE_WORKING_AF_LOCAL=no
10640 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10641 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10643 cat >> confdefs.h <<\EOF
10644 #define HAVE_WORKING_AF_LOCAL 1
10649 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10650 echo "configure:10651: checking for broken getgroups" >&5
10651 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10655 if test "$cross_compiling" = yes; then
10656 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10658 cat > conftest.$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10661 #include "${srcdir-.}/tests/getgroups.c"
10663 if { (eval echo configure:10664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10665 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10667 echo "configure: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10670 samba_cv_HAVE_BROKEN_GETGROUPS=no
10677 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10678 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10679 cat >> confdefs.h <<\EOF
10680 #define HAVE_BROKEN_GETGROUPS 1
10685 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10686 echo "configure:10687: checking whether getpass should be replaced" >&5
10687 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10691 SAVE_CPPFLAGS="$CPPFLAGS"
10692 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10693 cat > conftest.$ac_ext <<EOF
10694 #line 10695 "configure"
10695 #include "confdefs.h"
10697 #define REPLACE_GETPASS 1
10698 #define NO_CONFIG_H 1
10699 #define main dont_declare_main
10700 #include "${srcdir-.}/lib/getsmbpass.c"
10707 if { (eval echo configure:10708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10709 samba_cv_REPLACE_GETPASS=yes
10711 echo "configure: failed program was:" >&5
10712 cat conftest.$ac_ext >&5
10714 samba_cv_REPLACE_GETPASS=no
10717 CPPFLAGS="$SAVE_CPPFLAGS"
10721 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10722 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10723 cat >> confdefs.h <<\EOF
10724 #define REPLACE_GETPASS 1
10729 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10730 echo "configure:10731: checking for broken inet_ntoa" >&5
10731 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10732 echo $ac_n "(cached) $ac_c" 1>&6
10735 if test "$cross_compiling" = yes; then
10736 samba_cv_REPLACE_INET_NTOA=cross
10738 cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10743 #include <sys/types.h>
10744 #include <netinet/in.h>
10745 #ifdef HAVE_ARPA_INET_H
10746 #include <arpa/inet.h>
10748 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10749 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10750 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10753 if { (eval echo configure:10754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10755 samba_cv_REPLACE_INET_NTOA=yes
10757 echo "configure: failed program was:" >&5
10758 cat conftest.$ac_ext >&5
10760 samba_cv_REPLACE_INET_NTOA=no
10767 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10768 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10769 cat >> confdefs.h <<\EOF
10770 #define REPLACE_INET_NTOA 1
10775 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10776 echo "configure:10777: checking for secure mkstemp" >&5
10777 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10778 echo $ac_n "(cached) $ac_c" 1>&6
10781 if test "$cross_compiling" = yes; then
10782 samba_cv_HAVE_SECURE_MKSTEMP=cross
10784 cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 #include <stdlib.h>
10788 #include <sys/types.h>
10789 #include <sys/stat.h>
10790 #include <unistd.h>
10793 char tpl[20]="/tmp/test.XXXXXX";
10794 int fd = mkstemp(tpl);
10795 if (fd == -1) exit(1);
10797 if (fstat(fd, &st) != 0) exit(1);
10798 if ((st.st_mode & 0777) != 0600) exit(1);
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10804 samba_cv_HAVE_SECURE_MKSTEMP=yes
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10809 samba_cv_HAVE_SECURE_MKSTEMP=no
10816 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10817 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10818 cat >> confdefs.h <<\EOF
10819 #define HAVE_SECURE_MKSTEMP 1
10824 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10825 echo "configure:10826: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10826 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10830 if test "$cross_compiling" = yes; then
10831 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10833 cat > conftest.$ac_ext <<EOF
10834 #line 10835 "configure"
10835 #include "confdefs.h"
10836 #include <unistd.h>
10837 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10839 if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10841 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10843 echo "configure: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10846 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10853 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10854 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10855 cat >> confdefs.h <<\EOF
10856 #define SYSCONF_SC_NGROUPS_MAX 1
10861 echo $ac_n "checking for root""... $ac_c" 1>&6
10862 echo "configure:10863: checking for root" >&5
10863 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10867 if test "$cross_compiling" = yes; then
10868 samba_cv_HAVE_ROOT=cross
10870 cat > conftest.$ac_ext <<EOF
10871 #line 10872 "configure"
10872 #include "confdefs.h"
10873 main() { exit(getuid() != 0); }
10875 if { (eval echo configure:10876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10877 samba_cv_HAVE_ROOT=yes
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10882 samba_cv_HAVE_ROOT=no
10889 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10890 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10891 cat >> confdefs.h <<\EOF
10892 #define HAVE_ROOT 1
10896 echo "configure: warning: running as non-root will disable some tests" 1>&2
10900 # look for a method of finding the list of network interfaces
10902 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10903 echo "configure:10904: checking for iface AIX" >&5
10904 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10905 echo $ac_n "(cached) $ac_c" 1>&6
10908 if test "$cross_compiling" = yes; then
10909 samba_cv_HAVE_IFACE_AIX=cross
10911 cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10915 #define HAVE_IFACE_AIX 1
10916 #define AUTOCONF_TEST 1
10917 #include "confdefs.h"
10918 #include "${srcdir-.}/lib/interfaces.c"
10920 if { (eval echo configure:10921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10922 samba_cv_HAVE_IFACE_AIX=yes
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10927 samba_cv_HAVE_IFACE_AIX=no
10934 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10935 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10936 iface=yes;cat >> confdefs.h <<\EOF
10937 #define HAVE_IFACE_AIX 1
10942 if test $iface = no; then
10943 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10944 echo "configure:10945: checking for iface ifconf" >&5
10945 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10949 if test "$cross_compiling" = yes; then
10950 samba_cv_HAVE_IFACE_IFCONF=cross
10952 cat > conftest.$ac_ext <<EOF
10953 #line 10954 "configure"
10954 #include "confdefs.h"
10956 #define HAVE_IFACE_IFCONF 1
10957 #define AUTOCONF_TEST 1
10958 #include "confdefs.h"
10959 #include "${srcdir-.}/lib/interfaces.c"
10961 if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10963 samba_cv_HAVE_IFACE_IFCONF=yes
10965 echo "configure: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10968 samba_cv_HAVE_IFACE_IFCONF=no
10975 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10976 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10977 iface=yes;cat >> confdefs.h <<\EOF
10978 #define HAVE_IFACE_IFCONF 1
10984 if test $iface = no; then
10985 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10986 echo "configure:10987: checking for iface ifreq" >&5
10987 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10991 if test "$cross_compiling" = yes; then
10992 samba_cv_HAVE_IFACE_IFREQ=cross
10994 cat > conftest.$ac_ext <<EOF
10995 #line 10996 "configure"
10996 #include "confdefs.h"
10998 #define HAVE_IFACE_IFREQ 1
10999 #define AUTOCONF_TEST 1
11000 #include "confdefs.h"
11001 #include "${srcdir-.}/lib/interfaces.c"
11003 if { (eval echo configure:11004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11005 samba_cv_HAVE_IFACE_IFREQ=yes
11007 echo "configure: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11010 samba_cv_HAVE_IFACE_IFREQ=no
11017 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11018 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11019 iface=yes;cat >> confdefs.h <<\EOF
11020 #define HAVE_IFACE_IFREQ 1
11027 ################################################
11028 # look for a method of setting the effective uid
11030 if test $seteuid = no; then
11031 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11032 echo "configure:11033: checking for setresuid" >&5
11033 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11037 if test "$cross_compiling" = yes; then
11038 samba_cv_USE_SETRESUID=cross
11040 cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11044 #define AUTOCONF_TEST 1
11045 #define USE_SETRESUID 1
11046 #include "confdefs.h"
11047 #include "${srcdir-.}/lib/util_sec.c"
11049 if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11051 samba_cv_USE_SETRESUID=yes
11053 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11056 samba_cv_USE_SETRESUID=no
11063 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11064 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11065 seteuid=yes;cat >> confdefs.h <<\EOF
11066 #define USE_SETRESUID 1
11073 if test $seteuid = no; then
11074 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11075 echo "configure:11076: checking for setreuid" >&5
11076 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11077 echo $ac_n "(cached) $ac_c" 1>&6
11080 if test "$cross_compiling" = yes; then
11081 samba_cv_USE_SETREUID=cross
11083 cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure"
11085 #include "confdefs.h"
11087 #define AUTOCONF_TEST 1
11088 #define USE_SETREUID 1
11089 #include "confdefs.h"
11090 #include "${srcdir-.}/lib/util_sec.c"
11092 if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11094 samba_cv_USE_SETREUID=yes
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11099 samba_cv_USE_SETREUID=no
11106 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11107 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11108 seteuid=yes;cat >> confdefs.h <<\EOF
11109 #define USE_SETREUID 1
11115 if test $seteuid = no; then
11116 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11117 echo "configure:11118: checking for seteuid" >&5
11118 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11122 if test "$cross_compiling" = yes; then
11123 samba_cv_USE_SETEUID=cross
11125 cat > conftest.$ac_ext <<EOF
11126 #line 11127 "configure"
11127 #include "confdefs.h"
11129 #define AUTOCONF_TEST 1
11130 #define USE_SETEUID 1
11131 #include "confdefs.h"
11132 #include "${srcdir-.}/lib/util_sec.c"
11134 if { (eval echo configure:11135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11136 samba_cv_USE_SETEUID=yes
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11141 samba_cv_USE_SETEUID=no
11148 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11149 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11150 seteuid=yes;cat >> confdefs.h <<\EOF
11151 #define USE_SETEUID 1
11157 if test $seteuid = no; then
11158 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11159 echo "configure:11160: checking for setuidx" >&5
11160 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11164 if test "$cross_compiling" = yes; then
11165 samba_cv_USE_SETUIDX=cross
11167 cat > conftest.$ac_ext <<EOF
11168 #line 11169 "configure"
11169 #include "confdefs.h"
11171 #define AUTOCONF_TEST 1
11172 #define USE_SETUIDX 1
11173 #include "confdefs.h"
11174 #include "${srcdir-.}/lib/util_sec.c"
11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11178 samba_cv_USE_SETUIDX=yes
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11183 samba_cv_USE_SETUIDX=no
11190 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11191 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11192 seteuid=yes;cat >> confdefs.h <<\EOF
11193 #define USE_SETUIDX 1
11200 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11201 echo "configure:11202: checking for working mmap" >&5
11202 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11203 echo $ac_n "(cached) $ac_c" 1>&6
11206 if test "$cross_compiling" = yes; then
11207 samba_cv_HAVE_MMAP=cross
11209 cat > conftest.$ac_ext <<EOF
11210 #line 11211 "configure"
11211 #include "confdefs.h"
11212 #include "${srcdir-.}/tests/shared_mmap.c"
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11216 samba_cv_HAVE_MMAP=yes
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11221 samba_cv_HAVE_MMAP=no
11228 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11229 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11230 cat >> confdefs.h <<\EOF
11231 #define HAVE_MMAP 1
11236 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11237 echo "configure:11238: checking for ftruncate needs root" >&5
11238 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11242 if test "$cross_compiling" = yes; then
11243 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11245 cat > conftest.$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11248 #include "${srcdir-.}/tests/ftruncroot.c"
11250 if { (eval echo configure:11251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11252 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11254 echo "configure: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11257 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11264 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11265 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11266 cat >> confdefs.h <<\EOF
11267 #define FTRUNCATE_NEEDS_ROOT 1
11272 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11273 echo "configure:11274: checking for fcntl locking" >&5
11274 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11275 echo $ac_n "(cached) $ac_c" 1>&6
11278 if test "$cross_compiling" = yes; then
11279 samba_cv_HAVE_FCNTL_LOCK=cross
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 #include "${srcdir-.}/tests/fcntl_lock.c"
11286 if { (eval echo configure:11287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11288 samba_cv_HAVE_FCNTL_LOCK=yes
11290 echo "configure: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11293 samba_cv_HAVE_FCNTL_LOCK=no
11300 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11301 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11302 cat >> confdefs.h <<\EOF
11303 #define HAVE_FCNTL_LOCK 1
11308 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11309 echo "configure:11310: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11310 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11311 echo $ac_n "(cached) $ac_c" 1>&6
11314 if test "$cross_compiling" = yes; then
11315 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11317 cat > conftest.$ac_ext <<EOF
11318 #line 11319 "configure"
11319 #include "confdefs.h"
11320 #include "${srcdir-.}/tests/fcntl_lock64.c"
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11324 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11329 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11336 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11337 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11338 cat >> confdefs.h <<\EOF
11339 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11346 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11347 echo "configure:11348: checking for 64 bit fcntl locking" >&5
11348 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11349 echo $ac_n "(cached) $ac_c" 1>&6
11352 if test "$cross_compiling" = yes; then
11353 samba_cv_HAVE_STRUCT_FLOCK64=cross
11355 cat > conftest.$ac_ext <<EOF
11356 #line 11357 "configure"
11357 #include "confdefs.h"
11359 #if defined(HAVE_UNISTD_H)
11360 #include <unistd.h>
11363 #include <stdlib.h>
11365 #ifdef HAVE_FCNTL_H
11369 #ifdef HAVE_SYS_FCNTL_H
11370 #include <sys/fcntl.h>
11372 main() { struct flock64 fl64;
11373 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11382 samba_cv_HAVE_STRUCT_FLOCK64=yes
11384 echo "configure: failed program was:" >&5
11385 cat conftest.$ac_ext >&5
11387 samba_cv_HAVE_STRUCT_FLOCK64=no
11394 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11396 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11397 cat >> confdefs.h <<\EOF
11398 #define HAVE_STRUCT_FLOCK64 1
11404 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11405 echo "configure:11406: checking for st_blocks in struct stat" >&5
11406 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11407 echo $ac_n "(cached) $ac_c" 1>&6
11410 cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure"
11412 #include "confdefs.h"
11413 #include <sys/types.h>
11414 #include <sys/stat.h>
11415 #include <unistd.h>
11417 struct stat st; st.st_blocks = 0;
11420 if { (eval echo configure:11421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11422 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11427 samba_cv_HAVE_STAT_ST_BLOCKS=no
11432 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11433 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11434 cat >> confdefs.h <<\EOF
11435 #define HAVE_STAT_ST_BLOCKS 1
11442 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11443 echo "configure:11444: checking for broken RedHat 7.2 system header files" >&5
11444 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11445 echo $ac_n "(cached) $ac_c" 1>&6
11448 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure"
11450 #include "confdefs.h"
11452 #ifdef HAVE_SYS_VFS_H
11453 #include <sys/vfs.h>
11455 #ifdef HAVE_SYS_CAPABILITY_H
11456 #include <sys/capability.h>
11463 if { (eval echo configure:11464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11465 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11470 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11475 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11476 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11477 cat >> confdefs.h <<\EOF
11478 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11485 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11486 echo "configure:11487: checking for broken nisplus include files" >&5
11487 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11488 echo $ac_n "(cached) $ac_c" 1>&6
11491 cat > conftest.$ac_ext <<EOF
11492 #line 11493 "configure"
11493 #include "confdefs.h"
11494 #include <sys/acl.h>
11495 #if defined(HAVE_RPCSVC_NIS_H)
11496 #include <rpcsvc/nis.h>
11502 if { (eval echo configure:11503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11504 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11506 echo "configure: failed program was:" >&5
11507 cat conftest.$ac_ext >&5
11509 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11514 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11515 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11516 cat >> confdefs.h <<\EOF
11517 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11523 #################################################
11524 # check for smbwrapper support
11525 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11526 echo "configure:11527: checking whether to use smbwrapper" >&5
11527 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11528 if test "${with_smbwrapper+set}" = set; then
11529 withval="$with_smbwrapper"
11532 echo "$ac_t""yes" 1>&6
11533 cat >> confdefs.h <<\EOF
11534 #define WITH_SMBWRAPPER 1
11537 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11539 if test x$ATTEMPT_WRAP32_BUILD = x; then
11542 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11545 # Conditions under which smbwrapper should not be built.
11547 if test x$PICFLAG = x; then
11548 echo No support for PIC code - disabling smbwrapper and smbsh
11551 elif test x$ac_cv_func_syscall = xno; then
11552 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11558 echo "$ac_t""no" 1>&6
11562 echo "$ac_t""no" 1>&6
11567 #################################################
11568 # check for AFS clear-text auth support
11569 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11570 echo "configure:11571: checking whether to use AFS clear-text auth" >&5
11571 # Check whether --with-afs or --without-afs was given.
11572 if test "${with_afs+set}" = set; then
11573 withval="$with_afs"
11576 echo "$ac_t""yes" 1>&6
11577 cat >> confdefs.h <<\EOF
11583 echo "$ac_t""no" 1>&6
11587 echo "$ac_t""no" 1>&6
11593 #################################################
11594 # check for the DFS clear-text auth system
11595 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11596 echo "configure:11597: checking whether to use DFS clear-text auth" >&5
11597 # Check whether --with-dfs or --without-dfs was given.
11598 if test "${with_dfs+set}" = set; then
11599 withval="$with_dfs"
11602 echo "$ac_t""yes" 1>&6
11603 cat >> confdefs.h <<\EOF
11609 echo "$ac_t""no" 1>&6
11613 echo "$ac_t""no" 1>&6
11619 #################################################
11620 # see if this box has the RedHat location for kerberos
11621 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11622 echo "configure:11623: checking for /usr/kerberos" >&5
11623 if test -d /usr/kerberos; then
11624 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11625 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11626 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11627 echo "$ac_t""yes" 1>&6
11629 echo "$ac_t""no" 1>&6
11632 #################################################
11633 # check for location of Kerberos 5 install
11634 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11635 echo "configure:11636: checking for kerberos 5 install path" >&5
11636 # Check whether --with-krb5 or --without-krb5 was given.
11637 if test "${with_krb5+set}" = set; then
11638 withval="$with_krb5"
11641 echo "$ac_t""no" 1>&6
11644 echo "$ac_t""yes" 1>&6
11645 LIBS="$LIBS -lkrb5"
11646 CFLAGS="$CFLAGS -I$withval/include"
11647 CPPFLAGS="$CPPFLAGS -I$withval/include"
11648 LDFLAGS="$LDFLAGS -L$withval/lib"
11652 echo "$ac_t""no" 1>&6
11657 # now check for krb5.h. Some systems have the libraries without the headers!
11658 # note that this check is done here to allow for different kerberos
11660 for ac_hdr in krb5.h
11662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11664 echo "configure:11665: checking for $ac_hdr" >&5
11665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11666 echo $ac_n "(cached) $ac_c" 1>&6
11668 cat > conftest.$ac_ext <<EOF
11669 #line 11670 "configure"
11670 #include "confdefs.h"
11673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11674 { (eval echo configure:11675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11676 if test -z "$ac_err"; then
11678 eval "ac_cv_header_$ac_safe=yes"
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11684 eval "ac_cv_header_$ac_safe=no"
11688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11689 echo "$ac_t""yes" 1>&6
11690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11691 cat >> confdefs.h <<EOF
11692 #define $ac_tr_hdr 1
11696 echo "$ac_t""no" 1>&6
11701 # now check for gssapi headers. This is also done here to allow for
11702 # different kerberos include paths
11703 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
11705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11707 echo "configure:11708: checking for $ac_hdr" >&5
11708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11709 echo $ac_n "(cached) $ac_c" 1>&6
11711 cat > conftest.$ac_ext <<EOF
11712 #line 11713 "configure"
11713 #include "confdefs.h"
11716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11717 { (eval echo configure:11718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11719 if test -z "$ac_err"; then
11721 eval "ac_cv_header_$ac_safe=yes"
11724 echo "configure: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11727 eval "ac_cv_header_$ac_safe=no"
11731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11732 echo "$ac_t""yes" 1>&6
11733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11734 cat >> confdefs.h <<EOF
11735 #define $ac_tr_hdr 1
11739 echo "$ac_t""no" 1>&6
11744 ##################################################################
11745 # we might need the k5crypto and com_err libraries on some systems
11746 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11747 echo "configure:11748: checking for _et_list in -lcom_err" >&5
11748 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11750 echo $ac_n "(cached) $ac_c" 1>&6
11752 ac_save_LIBS="$LIBS"
11753 LIBS="-lcom_err $LIBS"
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 /* Override any gcc2 internal prototype to avoid an error. */
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11766 if { (eval echo configure:11767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11768 eval "ac_cv_lib_$ac_lib_var=yes"
11770 echo "configure: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11773 eval "ac_cv_lib_$ac_lib_var=no"
11776 LIBS="$ac_save_LIBS"
11779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11780 echo "$ac_t""yes" 1>&6
11781 LIBS="$LIBS -lcom_err"
11783 echo "$ac_t""no" 1>&6
11786 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11787 echo "configure:11788: checking for krb5_encrypt_data in -lk5crypto" >&5
11788 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11792 ac_save_LIBS="$LIBS"
11793 LIBS="-lk5crypto $LIBS"
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 /* Override any gcc2 internal prototype to avoid an error. */
11798 /* We use char because int might match the return type of a gcc2
11799 builtin and then its argument prototype would still apply. */
11800 char krb5_encrypt_data();
11803 krb5_encrypt_data()
11806 if { (eval echo configure:11807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11808 eval "ac_cv_lib_$ac_lib_var=yes"
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11813 eval "ac_cv_lib_$ac_lib_var=no"
11816 LIBS="$ac_save_LIBS"
11819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11820 echo "$ac_t""yes" 1>&6
11821 LIBS="$LIBS -lk5crypto"
11823 echo "$ac_t""no" 1>&6
11827 ########################################################
11828 # now see if we can find the krb5 libs in standard paths
11829 # or as specified above
11830 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11831 echo "configure:11832: checking for krb5_mk_req_extended in -lkrb5" >&5
11832 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11834 echo $ac_n "(cached) $ac_c" 1>&6
11836 ac_save_LIBS="$LIBS"
11837 LIBS="-lkrb5 $LIBS"
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 /* Override any gcc2 internal prototype to avoid an error. */
11842 /* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11844 char krb5_mk_req_extended();
11847 krb5_mk_req_extended()
11850 if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11852 eval "ac_cv_lib_$ac_lib_var=yes"
11854 echo "configure: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11857 eval "ac_cv_lib_$ac_lib_var=no"
11860 LIBS="$ac_save_LIBS"
11863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11864 echo "$ac_t""yes" 1>&6
11865 LIBS="$LIBS -lkrb5";
11866 cat >> confdefs.h <<\EOF
11867 #define HAVE_KRB5 1
11871 echo "$ac_t""no" 1>&6
11875 ########################################################
11876 # now see if we can find the gssapi libs in standard paths
11877 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11878 echo "configure:11879: checking for gss_display_status in -lgssapi_krb5" >&5
11879 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11881 echo $ac_n "(cached) $ac_c" 1>&6
11883 ac_save_LIBS="$LIBS"
11884 LIBS="-lgssapi_krb5 $LIBS"
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11891 char gss_display_status();
11894 gss_display_status()
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11899 eval "ac_cv_lib_$ac_lib_var=yes"
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11904 eval "ac_cv_lib_$ac_lib_var=no"
11907 LIBS="$ac_save_LIBS"
11910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11911 echo "$ac_t""yes" 1>&6
11912 LIBS="$LIBS -lgssapi_krb5";
11913 cat >> confdefs.h <<\EOF
11914 #define HAVE_GSSAPI 1
11918 echo "$ac_t""no" 1>&6
11922 ##################################################################
11923 # we might need the lber lib on some systems. To avoid link errors
11924 # this test must be before the libldap test
11925 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11926 echo "configure:11927: checking for ber_scanf in -llber" >&5
11927 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11929 echo $ac_n "(cached) $ac_c" 1>&6
11931 ac_save_LIBS="$LIBS"
11932 LIBS="-llber $LIBS"
11933 cat > conftest.$ac_ext <<EOF
11934 #line 11935 "configure"
11935 #include "confdefs.h"
11936 /* Override any gcc2 internal prototype to avoid an error. */
11937 /* We use char because int might match the return type of a gcc2
11938 builtin and then its argument prototype would still apply. */
11945 if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11947 eval "ac_cv_lib_$ac_lib_var=yes"
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11952 eval "ac_cv_lib_$ac_lib_var=no"
11955 LIBS="$ac_save_LIBS"
11958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11959 echo "$ac_t""yes" 1>&6
11960 LIBS="$LIBS -llber"
11962 echo "$ac_t""no" 1>&6
11966 ########################################################
11967 # now see if we can find the ldap libs in standard paths
11968 if test x$have_ldap != xyes; then
11969 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
11970 echo "configure:11971: checking for ldap_domain2hostlist in -lldap" >&5
11971 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
11972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11973 echo $ac_n "(cached) $ac_c" 1>&6
11975 ac_save_LIBS="$LIBS"
11976 LIBS="-lldap $LIBS"
11977 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11980 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11983 char ldap_domain2hostlist();
11986 ldap_domain2hostlist()
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11991 eval "ac_cv_lib_$ac_lib_var=yes"
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11996 eval "ac_cv_lib_$ac_lib_var=no"
11999 LIBS="$ac_save_LIBS"
12002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12003 echo "$ac_t""yes" 1>&6
12004 LIBS="$LIBS -lldap";
12005 cat >> confdefs.h <<\EOF
12006 #define HAVE_LDAP 1
12010 echo "$ac_t""no" 1>&6
12015 #################################################
12016 # check for automount support
12017 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12018 echo "configure:12019: checking whether to use AUTOMOUNT" >&5
12019 # Check whether --with-automount or --without-automount was given.
12020 if test "${with_automount+set}" = set; then
12021 withval="$with_automount"
12024 echo "$ac_t""yes" 1>&6
12025 cat >> confdefs.h <<\EOF
12026 #define WITH_AUTOMOUNT 1
12031 echo "$ac_t""no" 1>&6
12035 echo "$ac_t""no" 1>&6
12040 #################################################
12041 # check for smbmount support
12042 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12043 echo "configure:12044: checking whether to use SMBMOUNT" >&5
12044 # Check whether --with-smbmount or --without-smbmount was given.
12045 if test "${with_smbmount+set}" = set; then
12046 withval="$with_smbmount"
12051 echo "$ac_t""yes" 1>&6
12052 cat >> confdefs.h <<\EOF
12053 #define WITH_SMBMOUNT 1
12056 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12059 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12064 echo "$ac_t""no" 1>&6
12069 echo "$ac_t""no" 1>&6
12076 #################################################
12077 # check for a PAM clear-text auth, accounts, password and session support
12078 with_pam_for_crypt=no
12079 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12080 echo "configure:12081: checking whether to use PAM" >&5
12081 # Check whether --with-pam or --without-pam was given.
12082 if test "${with_pam+set}" = set; then
12083 withval="$with_pam"
12086 echo "$ac_t""yes" 1>&6
12087 cat >> confdefs.h <<\EOF
12092 with_pam_for_crypt=yes
12095 echo "$ac_t""no" 1>&6
12099 echo "$ac_t""no" 1>&6
12104 # we can't build a pam module if we don't have pam.
12105 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12106 echo "configure:12107: checking for pam_get_data in -lpam" >&5
12107 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12109 echo $ac_n "(cached) $ac_c" 1>&6
12111 ac_save_LIBS="$LIBS"
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116 /* Override any gcc2 internal prototype to avoid an error. */
12117 /* We use char because int might match the return type of a gcc2
12118 builtin and then its argument prototype would still apply. */
12119 char pam_get_data();
12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12127 eval "ac_cv_lib_$ac_lib_var=yes"
12129 echo "configure: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12132 eval "ac_cv_lib_$ac_lib_var=no"
12135 LIBS="$ac_save_LIBS"
12138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12139 echo "$ac_t""yes" 1>&6
12140 cat >> confdefs.h <<\EOF
12141 #define HAVE_LIBPAM 1
12145 echo "$ac_t""no" 1>&6
12149 #################################################
12150 # check for pam_smbpass support
12151 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12152 echo "configure:12153: checking whether to use pam_smbpass" >&5
12153 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12154 if test "${with_pam_smbpass+set}" = set; then
12155 withval="$with_pam_smbpass"
12158 echo "$ac_t""yes" 1>&6
12160 # Conditions under which pam_smbpass should not be built.
12162 if test x$PICFLAG = x; then
12163 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12165 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12166 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12169 PAM_MOD="bin/pam_smbpass.so"
12173 echo "$ac_t""no" 1>&6
12177 echo "$ac_t""no" 1>&6
12183 ###############################################
12184 # test for where we get crypt() from, but only
12186 if test $with_pam_for_crypt = no; then
12187 for ac_func in crypt
12189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12190 echo "configure:12191: checking for $ac_func" >&5
12191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12192 echo $ac_n "(cached) $ac_c" 1>&6
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 /* System header to define __stub macros and hopefully few prototypes,
12198 which can conflict with char $ac_func(); below. */
12199 #include <assert.h>
12200 /* Override any gcc2 internal prototype to avoid an error. */
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12207 /* The GNU C library defines this for functions which it implements
12208 to always fail with ENOSYS. Some functions are actually named
12209 something starting with __ and the normal name is an alias. */
12210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12218 if { (eval echo configure:12219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12220 eval "ac_cv_func_$ac_func=yes"
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12225 eval "ac_cv_func_$ac_func=no"
12230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12231 echo "$ac_t""yes" 1>&6
12232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12233 cat >> confdefs.h <<EOF
12234 #define $ac_tr_func 1
12238 echo "$ac_t""no" 1>&6
12242 if test x"$ac_cv_func_crypt" = x"no"; then
12243 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12244 echo "configure:12245: checking for crypt in -lcrypt" >&5
12245 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12249 ac_save_LIBS="$LIBS"
12250 LIBS="-lcrypt $LIBS"
12251 cat > conftest.$ac_ext <<EOF
12252 #line 12253 "configure"
12253 #include "confdefs.h"
12254 /* Override any gcc2 internal prototype to avoid an error. */
12255 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */
12263 if { (eval echo configure:12264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12265 eval "ac_cv_lib_$ac_lib_var=yes"
12267 echo "configure: failed program was:" >&5
12268 cat conftest.$ac_ext >&5
12270 eval "ac_cv_lib_$ac_lib_var=no"
12273 LIBS="$ac_save_LIBS"
12276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12277 echo "$ac_t""yes" 1>&6
12278 LIBS="$LIBS -lcrypt";
12279 cat >> confdefs.h <<\EOF
12280 #define HAVE_CRYPT 1
12284 echo "$ac_t""no" 1>&6
12291 ## moved after the check for -lcrypt in order to
12292 ## ensure that the necessary libraries are included
12293 ## check checking for truncated salt. Wrapped by the
12294 ## $with_pam_for_crypt variable as above --jerry
12296 if test $with_pam_for_crypt = no; then
12297 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12298 echo "configure:12299: checking for a crypt that needs truncated salt" >&5
12299 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12300 echo $ac_n "(cached) $ac_c" 1>&6
12303 if test "$cross_compiling" = yes; then
12304 samba_cv_HAVE_TRUNCATED_SALT=cross
12306 cat > conftest.$ac_ext <<EOF
12307 #line 12308 "configure"
12308 #include "confdefs.h"
12309 #include "${srcdir-.}/tests/crypttest.c"
12311 if { (eval echo configure:12312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12313 samba_cv_HAVE_TRUNCATED_SALT=no
12315 echo "configure: failed program was:" >&5
12316 cat conftest.$ac_ext >&5
12318 samba_cv_HAVE_TRUNCATED_SALT=yes
12325 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12326 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12327 cat >> confdefs.h <<\EOF
12328 #define HAVE_TRUNCATED_SALT 1
12336 ########################################################################################
12338 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12340 ########################################################################################
12342 #################################################
12343 # check for a TDB password database
12344 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12345 echo "configure:12346: checking whether to use TDB SAM database" >&5
12346 # Check whether --with-tdbsam or --without-tdbsam was given.
12347 if test "${with_tdbsam+set}" = set; then
12348 withval="$with_tdbsam"
12351 echo "$ac_t""yes" 1>&6
12352 cat >> confdefs.h <<\EOF
12353 #define WITH_TDB_SAM 1
12358 echo "$ac_t""no" 1>&6
12362 echo "$ac_t""no" 1>&6
12367 #################################################
12368 # check for a LDAP password database
12369 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12370 echo "configure:12371: checking whether to use LDAP SAM database" >&5
12371 # Check whether --with-ldapsam or --without-ldapsam was given.
12372 if test "${with_ldapsam+set}" = set; then
12373 withval="$with_ldapsam"
12376 echo "$ac_t""yes" 1>&6
12377 cat >> confdefs.h <<\EOF
12378 #define WITH_LDAP_SAM 1
12381 LIBS="-lldap -llber $LIBS"
12384 echo "$ac_t""no" 1>&6
12388 echo "$ac_t""no" 1>&6
12393 #################################################
12394 # check for a NISPLUS password database
12395 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12396 echo "configure:12397: checking whether to use NISPLUS SAM database" >&5
12397 # Check whether --with-nisplussam or --without-nisplussam was given.
12398 if test "${with_nisplussam+set}" = set; then
12399 withval="$with_nisplussam"
12402 echo "$ac_t""yes" 1>&6
12403 cat >> confdefs.h <<\EOF
12404 #define WITH_NISPLUS_SAM 1
12409 echo "$ac_t""no" 1>&6
12413 echo "$ac_t""no" 1>&6
12418 ########################################################################################
12420 ## END OF TESTS FOR SAM BACKENDS.
12422 ########################################################################################
12424 #################################################
12425 # check for a NISPLUS_HOME support
12426 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12427 echo "configure:12428: checking whether to use NISPLUS_HOME" >&5
12428 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12429 if test "${with_nisplus_home+set}" = set; then
12430 withval="$with_nisplus_home"
12433 echo "$ac_t""yes" 1>&6
12434 cat >> confdefs.h <<\EOF
12435 #define WITH_NISPLUS_HOME 1
12440 echo "$ac_t""no" 1>&6
12444 echo "$ac_t""no" 1>&6
12449 #################################################
12450 # check for the secure socket layer
12451 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12452 echo "configure:12453: checking whether to use SSL" >&5
12453 # Check whether --with-ssl or --without-ssl was given.
12454 if test "${with_ssl+set}" = set; then
12455 withval="$with_ssl"
12458 echo "$ac_t""yes" 1>&6
12459 cat >> confdefs.h <<\EOF
12463 withval="/usr/local/ssl" # default
12465 if test "${with_sslinc+set}" = set; then
12467 withval="$with_sslinc"
12470 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12471 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12474 CFLAGS="-I${withval} $CFLAGS"
12480 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12484 if test "${with_ssllib+set}" = set; then
12486 withval="$with_ssllib"
12489 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12490 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12493 LDFLAGS="-L${withval}/lib $LDFLAGS"
12499 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12503 LIBS="-lssl -lcrypto $LIBS"
12505 # if test ! -d ${withval}; then
12506 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12510 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12514 echo "$ac_t""no" 1>&6
12518 echo "$ac_t""no" 1>&6
12523 #################################################
12524 # check for syslog logging
12525 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12526 echo "configure:12527: checking whether to use syslog logging" >&5
12527 # Check whether --with-syslog or --without-syslog was given.
12528 if test "${with_syslog+set}" = set; then
12529 withval="$with_syslog"
12532 echo "$ac_t""yes" 1>&6
12533 cat >> confdefs.h <<\EOF
12534 #define WITH_SYSLOG 1
12539 echo "$ac_t""no" 1>&6
12543 echo "$ac_t""no" 1>&6
12548 #################################################
12549 # check for a shared memory profiling support
12550 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12551 echo "configure:12552: checking whether to use profiling" >&5
12552 # Check whether --with-profiling-data or --without-profiling-data was given.
12553 if test "${with_profiling_data+set}" = set; then
12554 withval="$with_profiling_data"
12557 echo "$ac_t""yes" 1>&6
12558 cat >> confdefs.h <<\EOF
12559 #define WITH_PROFILE 1
12564 echo "$ac_t""no" 1>&6
12568 echo "$ac_t""no" 1>&6
12574 #################################################
12575 # check for experimental disk-quotas support
12576 QUOTAOBJS=smbd/noquotas.o
12578 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12579 echo "configure:12580: checking whether to support disk-quotas" >&5
12580 # Check whether --with-quotas or --without-quotas was given.
12581 if test "${with_quotas+set}" = set; then
12582 withval="$with_quotas"
12585 echo "$ac_t""yes" 1>&6
12588 # Check for kernel 2.4.x quota braindamage...
12589 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12590 echo "configure:12591: checking for linux 2.4.x quota braindamage.." >&5
12591 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12592 echo $ac_n "(cached) $ac_c" 1>&6
12595 cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12599 #include <sys/types.h>
12600 #include <asm/types.h>
12601 #include <linux/quota.h>
12602 #include <mntent.h>
12603 #include <linux/unistd.h>
12605 struct mem_dqblk D;
12608 if { (eval echo configure:12609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12610 samba_cv_linux_2_4_quota_braindamage=yes
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12615 samba_cv_linux_2_4_quota_braindamage=no
12620 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12621 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12622 cat >> confdefs.h <<\EOF
12623 #define LINUX_QUOTAS_2 1
12627 cat >> confdefs.h <<\EOF
12628 #define LINUX_QUOTAS_1 1
12636 QUOTAOBJS=smbd/quotas.o
12637 cat >> confdefs.h <<\EOF
12638 #define WITH_QUOTAS 1
12643 echo "$ac_t""no" 1>&6
12647 echo "$ac_t""no" 1>&6
12653 #################################################
12654 # check for experimental utmp accounting
12656 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12657 echo "configure:12658: checking whether to support utmp accounting" >&5
12658 # Check whether --with-utmp or --without-utmp was given.
12659 if test "${with_utmp+set}" = set; then
12660 withval="$with_utmp"
12663 echo "$ac_t""yes" 1>&6
12664 cat >> confdefs.h <<\EOF
12665 #define WITH_UTMP 1
12670 echo "$ac_t""no" 1>&6
12674 echo "$ac_t""no" 1>&6
12679 #################################################
12680 # set private directory location
12681 # Check whether --with-privatedir or --without-privatedir was given.
12682 if test "${with_privatedir+set}" = set; then
12683 withval="$with_privatedir"
12687 # Just in case anybody calls it without argument
12689 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12690 privatedir='${prefix}/private'
12693 privatedir="$withval"
12698 privatedir='${prefix}/private'
12704 #################################################
12705 # set lock directory location
12706 # Check whether --with-lockdir or --without-lockdir was given.
12707 if test "${with_lockdir+set}" = set; then
12708 withval="$with_lockdir"
12712 # Just in case anybody calls it without argument
12714 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12715 lockdir='$(VARDIR)/locks'
12723 lockdir='$(VARDIR)/locks'
12729 #################################################
12730 # set SWAT directory location
12731 # Check whether --with-swatdir or --without-swatdir was given.
12732 if test "${with_swatdir+set}" = set; then
12733 withval="$with_swatdir"
12737 # Just in case anybody does it
12739 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12740 swatdir='${prefix}/swat'
12748 swatdir='${prefix}/swat'
12754 #################################################
12755 # choose native language(s) of man pages
12756 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12757 echo "configure:12758: checking chosen man pages' language(s)" >&5
12758 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12759 if test "${with_manpages_langs+set}" = set; then
12760 withval="$with_manpages_langs"
12763 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12767 manlangs="$withval"
12771 echo "$ac_t""$manlangs" 1>&6
12772 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12776 echo "$ac_t""$manlangs" 1>&6
12782 #################################################
12783 # these tests are taken from the GNU fileutils package
12784 echo "checking how to get filesystem space usage" 1>&6
12785 echo "configure:12786: checking how to get filesystem space usage" >&5
12788 # Test for statvfs64.
12789 if test $space = no; then
12791 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12792 echo "configure:12793: checking statvfs64 function (SVR4)" >&5
12793 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12794 echo $ac_n "(cached) $ac_c" 1>&6
12796 if test "$cross_compiling" = yes; then
12797 fu_cv_sys_stat_statvfs64=cross
12799 cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12803 #if defined(HAVE_UNISTD_H)
12804 #include <unistd.h>
12806 #include <sys/types.h>
12807 #include <sys/statvfs.h>
12810 struct statvfs64 fsd;
12811 exit (statvfs64 (".", &fsd));
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12816 fu_cv_sys_stat_statvfs64=yes
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12821 fu_cv_sys_stat_statvfs64=no
12828 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12829 if test $fu_cv_sys_stat_statvfs64 = yes; then
12831 cat >> confdefs.h <<\EOF
12832 #define STAT_STATVFS64 1
12838 # Perform only the link test since it seems there are no variants of the
12839 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12840 # because that got a false positive on SCO OSR5. Adding the declaration
12841 # of a `struct statvfs' causes this test to fail (as it should) on such
12842 # systems. That system is reported to work fine with STAT_STATFS4 which
12843 # is what it gets when this test fails.
12844 if test $space = no; then
12846 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12847 echo "configure:12848: checking statvfs function (SVR4)" >&5
12848 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12849 echo $ac_n "(cached) $ac_c" 1>&6
12851 cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 #include <sys/types.h>
12855 #include <sys/statvfs.h>
12857 struct statvfs fsd; statvfs (0, &fsd);
12860 if { (eval echo configure:12861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12862 fu_cv_sys_stat_statvfs=yes
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12867 fu_cv_sys_stat_statvfs=no
12872 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12873 if test $fu_cv_sys_stat_statvfs = yes; then
12875 cat >> confdefs.h <<\EOF
12876 #define STAT_STATVFS 1
12882 if test $space = no; then
12883 # DEC Alpha running OSF/1
12884 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12885 echo "configure:12886: checking for 3-argument statfs function (DEC OSF/1)" >&5
12886 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12887 echo $ac_n "(cached) $ac_c" 1>&6
12889 if test "$cross_compiling" = yes; then
12890 fu_cv_sys_stat_statfs3_osf1=no
12892 cat > conftest.$ac_ext <<EOF
12893 #line 12894 "configure"
12894 #include "confdefs.h"
12896 #include <sys/param.h>
12897 #include <sys/types.h>
12898 #include <sys/mount.h>
12903 exit (statfs (".", &fsd, sizeof (struct statfs)));
12906 if { (eval echo configure:12907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12908 fu_cv_sys_stat_statfs3_osf1=yes
12910 echo "configure: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12913 fu_cv_sys_stat_statfs3_osf1=no
12920 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12921 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12923 cat >> confdefs.h <<\EOF
12924 #define STAT_STATFS3_OSF1 1
12930 if test $space = no; then
12932 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12933 echo "configure:12934: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12934 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12935 echo $ac_n "(cached) $ac_c" 1>&6
12937 if test "$cross_compiling" = yes; then
12938 fu_cv_sys_stat_statfs2_bsize=no
12940 cat > conftest.$ac_ext <<EOF
12941 #line 12942 "configure"
12942 #include "confdefs.h"
12944 #ifdef HAVE_SYS_PARAM_H
12945 #include <sys/param.h>
12947 #ifdef HAVE_SYS_MOUNT_H
12948 #include <sys/mount.h>
12950 #ifdef HAVE_SYS_VFS_H
12951 #include <sys/vfs.h>
12957 exit (statfs (".", &fsd));
12960 if { (eval echo configure:12961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12962 fu_cv_sys_stat_statfs2_bsize=yes
12964 echo "configure: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12967 fu_cv_sys_stat_statfs2_bsize=no
12974 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12975 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12977 cat >> confdefs.h <<\EOF
12978 #define STAT_STATFS2_BSIZE 1
12984 if test $space = no; then
12986 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12987 echo "configure:12988: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12988 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12989 echo $ac_n "(cached) $ac_c" 1>&6
12991 if test "$cross_compiling" = yes; then
12992 fu_cv_sys_stat_statfs4=no
12994 cat > conftest.$ac_ext <<EOF
12995 #line 12996 "configure"
12996 #include "confdefs.h"
12997 #include <sys/types.h>
12998 #include <sys/statfs.h>
13002 exit (statfs (".", &fsd, sizeof fsd, 0));
13005 if { (eval echo configure:13006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13007 fu_cv_sys_stat_statfs4=yes
13009 echo "configure: failed program was:" >&5
13010 cat conftest.$ac_ext >&5
13012 fu_cv_sys_stat_statfs4=no
13019 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13020 if test $fu_cv_sys_stat_statfs4 = yes; then
13022 cat >> confdefs.h <<\EOF
13023 #define STAT_STATFS4 1
13029 if test $space = no; then
13030 # 4.4BSD and NetBSD
13031 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13032 echo "configure:13033: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13033 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13036 if test "$cross_compiling" = yes; then
13037 fu_cv_sys_stat_statfs2_fsize=no
13039 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13042 #include <sys/types.h>
13043 #ifdef HAVE_SYS_PARAM_H
13044 #include <sys/param.h>
13046 #ifdef HAVE_SYS_MOUNT_H
13047 #include <sys/mount.h>
13053 exit (statfs (".", &fsd));
13056 if { (eval echo configure:13057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13058 fu_cv_sys_stat_statfs2_fsize=yes
13060 echo "configure: failed program was:" >&5
13061 cat conftest.$ac_ext >&5
13063 fu_cv_sys_stat_statfs2_fsize=no
13070 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13071 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13073 cat >> confdefs.h <<\EOF
13074 #define STAT_STATFS2_FSIZE 1
13080 if test $space = no; then
13082 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13083 echo "configure:13084: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13084 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13085 echo $ac_n "(cached) $ac_c" 1>&6
13087 if test "$cross_compiling" = yes; then
13088 fu_cv_sys_stat_fs_data=no
13090 cat > conftest.$ac_ext <<EOF
13091 #line 13092 "configure"
13092 #include "confdefs.h"
13093 #include <sys/types.h>
13094 #ifdef HAVE_SYS_PARAM_H
13095 #include <sys/param.h>
13097 #ifdef HAVE_SYS_MOUNT_H
13098 #include <sys/mount.h>
13100 #ifdef HAVE_SYS_FS_TYPES_H
13101 #include <sys/fs_types.h>
13105 struct fs_data fsd;
13106 /* Ultrix's statfs returns 1 for success,
13107 0 for not mounted, -1 for failure. */
13108 exit (statfs (".", &fsd) != 1);
13111 if { (eval echo configure:13112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13113 fu_cv_sys_stat_fs_data=yes
13115 echo "configure: failed program was:" >&5
13116 cat conftest.$ac_ext >&5
13118 fu_cv_sys_stat_fs_data=no
13125 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13126 if test $fu_cv_sys_stat_fs_data = yes; then
13128 cat >> confdefs.h <<\EOF
13129 #define STAT_STATFS2_FS_DATA 1
13136 # As a gating factor for large file support, in order to
13137 # use <4GB files we must have the following minimal support
13139 # long long, and a 64 bit off_t or off64_t.
13140 # If we don't have all of these then disable large
13143 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13144 echo "configure:13145: checking if large file support can be enabled" >&5
13145 cat > conftest.$ac_ext <<EOF
13146 #line 13147 "configure"
13147 #include "confdefs.h"
13149 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13150 #include <sys/types.h>
13159 if { (eval echo configure:13160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13161 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13163 echo "configure: failed program was:" >&5
13164 cat conftest.$ac_ext >&5
13166 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13169 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13170 cat >> confdefs.h <<\EOF
13171 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13175 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13177 # Check whether --with-spinlocks or --without-spinlocks was given.
13178 if test "${with_spinlocks+set}" = set; then
13179 withval="$with_spinlocks"
13183 if test "x$with_spinlocks" = "xyes"; then
13184 cat >> confdefs.h <<\EOF
13185 #define USE_SPINLOCKS 1
13189 case "$host_cpu" in
13191 cat >> confdefs.h <<\EOF
13192 #define SPARC_SPINLOCKS 1
13197 i386|i486|i586|i686)
13198 cat >> confdefs.h <<\EOF
13199 #define INTEL_SPINLOCKS 1
13205 cat >> confdefs.h <<\EOF
13206 #define MIPS_SPINLOCKS 1
13212 cat >> confdefs.h <<\EOF
13213 #define POWERPC_SPINLOCKS 1
13220 #################################################
13221 # check for ACL support
13223 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13224 echo "configure:13225: checking whether to support ACLs" >&5
13225 # Check whether --with-acl-support or --without-acl-support was given.
13226 if test "${with_acl_support+set}" = set; then
13227 withval="$with_acl_support"
13233 echo "$ac_t""Using UnixWare ACLs" 1>&6
13234 cat >> confdefs.h <<\EOF
13235 #define HAVE_UNIXWARE_ACLS 1
13240 echo "$ac_t""Using solaris ACLs" 1>&6
13241 cat >> confdefs.h <<\EOF
13242 #define HAVE_SOLARIS_ACLS 1
13247 echo "$ac_t""Using HPUX ACLs" 1>&6
13248 cat >> confdefs.h <<\EOF
13249 #define HAVE_HPUX_ACLS 1
13254 echo "$ac_t""Using IRIX ACLs" 1>&6
13255 cat >> confdefs.h <<\EOF
13256 #define HAVE_IRIX_ACLS 1
13261 echo "$ac_t""Using AIX ACLs" 1>&6
13262 cat >> confdefs.h <<\EOF
13263 #define HAVE_AIX_ACLS 1
13268 echo "$ac_t""Using Tru64 ACLs" 1>&6
13269 cat >> confdefs.h <<\EOF
13270 #define HAVE_TRU64_ACLS 1
13273 LIBS="$LIBS -lpacl"
13276 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13277 echo "configure:13278: checking for acl_get_file in -lacl" >&5
13278 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13280 echo $ac_n "(cached) $ac_c" 1>&6
13282 ac_save_LIBS="$LIBS"
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13287 /* Override any gcc2 internal prototype to avoid an error. */
13288 /* We use char because int might match the return type of a gcc2
13289 builtin and then its argument prototype would still apply. */
13290 char acl_get_file();
13296 if { (eval echo configure:13297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13298 eval "ac_cv_lib_$ac_lib_var=yes"
13300 echo "configure: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13303 eval "ac_cv_lib_$ac_lib_var=no"
13306 LIBS="$ac_save_LIBS"
13309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13310 echo "$ac_t""yes" 1>&6
13311 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13313 cat >> confdefs.h <<EOF
13314 #define $ac_tr_lib 1
13320 echo "$ac_t""no" 1>&6
13323 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13324 echo "configure:13325: checking for ACL support" >&5
13325 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13326 echo $ac_n "(cached) $ac_c" 1>&6
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 #include <sys/types.h>
13333 #include <sys/acl.h>
13335 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13338 if { (eval echo configure:13339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13340 samba_cv_HAVE_POSIX_ACLS=yes
13342 echo "configure: failed program was:" >&5
13343 cat conftest.$ac_ext >&5
13345 samba_cv_HAVE_POSIX_ACLS=no
13350 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13351 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13352 echo "$ac_t""Using posix ACLs" 1>&6
13353 cat >> confdefs.h <<\EOF
13354 #define HAVE_POSIX_ACLS 1
13357 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13358 echo "configure:13359: checking for acl_get_perm_np" >&5
13359 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13360 echo $ac_n "(cached) $ac_c" 1>&6
13363 cat > conftest.$ac_ext <<EOF
13364 #line 13365 "configure"
13365 #include "confdefs.h"
13366 #include <sys/types.h>
13367 #include <sys/acl.h>
13369 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13372 if { (eval echo configure:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13374 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13379 samba_cv_HAVE_ACL_GET_PERM_NP=no
13384 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13385 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13386 cat >> confdefs.h <<\EOF
13387 #define HAVE_ACL_GET_PERM_NP 1
13396 echo "$ac_t""no" 1>&6
13397 cat >> confdefs.h <<\EOF
13398 #define HAVE_NO_ACLS 1
13404 cat >> confdefs.h <<\EOF
13405 #define HAVE_NO_ACLS 1
13408 echo "$ac_t""no" 1>&6
13413 #################################################
13414 # Check whether winbind is supported on this platform. If so we need to
13415 # build and install client programs (WINBIND_TARGETS), sbin programs
13416 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13418 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13419 echo "configure:13420: checking whether to build winbind" >&5
13421 # Initially, the value of $host_os decides whether winbind is supported
13424 *linux*|*solaris*|*irix*)
13429 winbind_no_reason=", unsupported on $host_os"
13433 # Check the setting of --with-winbindd
13435 # Check whether --with-winbind or --without-winbind was given.
13436 if test "${with_winbind+set}" = set; then
13437 withval="$with_winbind"
13451 # We need unix domain sockets for winbind
13453 if test x"$HAVE_WINBIND" = x"yes"; then
13454 if test x"$samba_cv_unixsocket" = x"no"; then
13455 winbind_no_reason=", no unix domain socket support on $host_os"
13460 # Display test results
13463 WINBIND_STARGETS=""
13464 WINBIND_LTARGETS=""
13465 WINBIND_PAM_PROGS=""
13467 if test x"$HAVE_WINBIND" = x"yes"; then
13468 echo "$ac_t""yes" 1>&6
13470 WINBIND_TARGETS="bin/wbinfo"
13471 WINBIND_STARGETS="bin/winbindd"
13472 if test x"$BLDSHARED" = x"true"; then
13473 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13474 if test x"$with_pam" = x"yes"; then
13475 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13479 echo "$ac_t""no$winbind_no_reason" 1>&6
13482 # Substitution time!
13489 #################################################
13490 # Check to see if we should use the included popt
13492 # Check whether --with-included-popt or --without-included-popt was given.
13493 if test "${with_included_popt+set}" = set; then
13494 withval="$with_included_popt"
13506 if test x"$INCLUDED_POPT" != x"yes"; then
13507 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13508 echo "configure:13509: checking for poptGetContext in -lpopt" >&5
13509 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13511 echo $ac_n "(cached) $ac_c" 1>&6
13513 ac_save_LIBS="$LIBS"
13514 LIBS="-lpopt $LIBS"
13515 cat > conftest.$ac_ext <<EOF
13516 #line 13517 "configure"
13517 #include "confdefs.h"
13518 /* Override any gcc2 internal prototype to avoid an error. */
13519 /* We use char because int might match the return type of a gcc2
13520 builtin and then its argument prototype would still apply. */
13521 char poptGetContext();
13527 if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13529 eval "ac_cv_lib_$ac_lib_var=yes"
13531 echo "configure: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13534 eval "ac_cv_lib_$ac_lib_var=no"
13537 LIBS="$ac_save_LIBS"
13540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13541 echo "$ac_t""yes" 1>&6
13544 echo "$ac_t""no" 1>&6
13550 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13551 echo "configure:13552: checking whether to use included popt" >&5
13552 if test x"$INCLUDED_POPT" = x"yes"; then
13553 echo "$ac_t""$srcdir/popt" 1>&6
13554 BUILD_POPT='$(POPT_OBJS)'
13555 FLAGS1="-I$srcdir/popt"
13557 echo "$ac_t""no" 1>&6
13558 LIBS="$LIBS -lpopt"
13563 #################################################
13564 # final configure stuff
13566 echo "checking configure summary"
13567 if test "$cross_compiling" = yes; then
13570 cat > conftest.$ac_ext <<EOF
13571 #line 13572 "configure"
13572 #include "confdefs.h"
13573 #include "${srcdir-.}/tests/summary.c"
13575 if { (eval echo configure:13576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13577 echo "configure OK";
13579 echo "configure: failed program was:" >&5
13580 cat conftest.$ac_ext >&5
13582 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13592 cat > confcache <<\EOF
13593 # This file is a shell script that caches the results of configure
13594 # tests run on this system so they can be shared between configure
13595 # scripts and configure runs. It is not useful on other systems.
13596 # If it contains results you don't want to keep, you may remove or edit it.
13598 # By default, configure uses ./config.cache as the cache file,
13599 # creating it if it does not exist already. You can give configure
13600 # the --cache-file=FILE option to use a different cache file; that is
13601 # what configure does when it calls configure scripts in
13602 # subdirectories, so they share the cache.
13603 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13604 # config.status only pays attention to the cache file if you give it the
13605 # --recheck option to rerun configure.
13608 # The following way of writing the cache mishandles newlines in values,
13609 # but we know of no workaround that is simple, portable, and efficient.
13610 # So, don't put newlines in cache variables' values.
13611 # Ultrix sh set writes to stderr and can't be redirected directly,
13612 # and sets the high bit in the cache file unless we assign to the vars.
13614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13616 # `set' does not quote correctly, so add quotes (double-quote substitution
13617 # turns \\\\ into \\, and sed turns \\ into \).
13619 -e "s/'/'\\\\''/g" \
13620 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13623 # `set' quotes correctly as required by POSIX, so do not add quotes.
13624 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13627 if cmp -s $cache_file confcache; then
13630 if test -w $cache_file; then
13631 echo "updating cache $cache_file"
13632 cat confcache > $cache_file
13634 echo "not updating unwritable cache $cache_file"
13639 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13642 # Let make expand exec_prefix.
13643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13645 # Any assignment to VPATH causes Sun make to only execute
13646 # the first set of double-colon rules, so remove it if not needed.
13647 # If there is a colon in the path, we need to keep it.
13648 if test "x$srcdir" = x.; then
13649 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13652 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13654 DEFS=-DHAVE_CONFIG_H
13656 # Without the "./", some shells look in PATH for config.status.
13657 : ${CONFIG_STATUS=./config.status}
13659 echo creating $CONFIG_STATUS
13660 rm -f $CONFIG_STATUS
13661 cat > $CONFIG_STATUS <<EOF
13663 # Generated automatically by configure.
13664 # Run this file to recreate the current configuration.
13665 # This directory was configured as follows,
13666 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13668 # $0 $ac_configure_args
13670 # Compiler output produced by configure, useful for debugging
13671 # configure, is in ./config.log if it exists.
13673 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13676 case "\$ac_option" in
13677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13678 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13679 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13680 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13681 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13683 -help | --help | --hel | --he | --h)
13684 echo "\$ac_cs_usage"; exit 0 ;;
13685 *) echo "\$ac_cs_usage"; exit 1 ;;
13689 ac_given_srcdir=$srcdir
13690 ac_given_INSTALL="$INSTALL"
13692 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13694 cat >> $CONFIG_STATUS <<EOF
13696 # Protect against being on the right side of a sed subst in config.status.
13697 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13698 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13702 s%@CFLAGS@%$CFLAGS%g
13703 s%@CPPFLAGS@%$CPPFLAGS%g
13704 s%@CXXFLAGS@%$CXXFLAGS%g
13705 s%@FFLAGS@%$FFLAGS%g
13707 s%@LDFLAGS@%$LDFLAGS%g
13709 s%@exec_prefix@%$exec_prefix%g
13710 s%@prefix@%$prefix%g
13711 s%@program_transform_name@%$program_transform_name%g
13712 s%@bindir@%$bindir%g
13713 s%@sbindir@%$sbindir%g
13714 s%@libexecdir@%$libexecdir%g
13715 s%@datadir@%$datadir%g
13716 s%@sysconfdir@%$sysconfdir%g
13717 s%@sharedstatedir@%$sharedstatedir%g
13718 s%@localstatedir@%$localstatedir%g
13719 s%@libdir@%$libdir%g
13720 s%@includedir@%$includedir%g
13721 s%@oldincludedir@%$oldincludedir%g
13722 s%@infodir@%$infodir%g
13723 s%@mandir@%$mandir%g
13724 s%@RUNPROG@%$RUNPROG%g
13725 s%@MPROGS@%$MPROGS%g
13726 s%@LDSHFLAGS@%$LDSHFLAGS%g
13728 s%@HOST_OS@%$HOST_OS%g
13729 s%@PAM_MOD@%$PAM_MOD%g
13731 s%@WRAP32@%$WRAP32%g
13732 s%@PICFLAG@%$PICFLAG%g
13733 s%@PICSUFFIX@%$PICSUFFIX%g
13734 s%@POBAD_CC@%$POBAD_CC%g
13735 s%@SHLIBEXT@%$SHLIBEXT%g
13736 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13738 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13739 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13740 s%@INSTALL_DATA@%$INSTALL_DATA%g
13742 s%@BROKEN_CC@%$BROKEN_CC%g
13744 s%@host_alias@%$host_alias%g
13745 s%@host_cpu@%$host_cpu%g
13746 s%@host_vendor@%$host_vendor%g
13747 s%@host_os@%$host_os%g
13748 s%@target@%$target%g
13749 s%@target_alias@%$target_alias%g
13750 s%@target_cpu@%$target_cpu%g
13751 s%@target_vendor@%$target_vendor%g
13752 s%@target_os@%$target_os%g
13754 s%@build_alias@%$build_alias%g
13755 s%@build_cpu@%$build_cpu%g
13756 s%@build_vendor@%$build_vendor%g
13757 s%@build_os@%$build_os%g
13759 s%@LIBOBJS@%$LIBOBJS%g
13760 s%@TERMLIBS@%$TERMLIBS%g
13761 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13763 s%@QUOTAOBJS@%$QUOTAOBJS%g
13764 s%@privatedir@%$privatedir%g
13765 s%@lockdir@%$lockdir%g
13766 s%@swatdir@%$swatdir%g
13767 s%@manlangs@%$manlangs%g
13768 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13769 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13770 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13771 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13772 s%@BUILD_POPT@%$BUILD_POPT%g
13773 s%@FLAGS1@%$FLAGS1%g
13774 s%@builddir@%$builddir%g
13779 cat >> $CONFIG_STATUS <<\EOF
13781 # Split the substitutions into bite-sized pieces for seds with
13782 # small command number limits, like on Digital OSF/1 and HP-UX.
13783 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13784 ac_file=1 # Number of current file.
13785 ac_beg=1 # First line for current file.
13786 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13789 while $ac_more_lines; do
13790 if test $ac_beg -gt 1; then
13791 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13793 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13795 if test ! -s conftest.s$ac_file; then
13796 ac_more_lines=false
13797 rm -f conftest.s$ac_file
13799 if test -z "$ac_sed_cmds"; then
13800 ac_sed_cmds="sed -f conftest.s$ac_file"
13802 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13804 ac_file=`expr $ac_file + 1`
13806 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13809 if test -z "$ac_sed_cmds"; then
13814 cat >> $CONFIG_STATUS <<EOF
13816 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13818 cat >> $CONFIG_STATUS <<\EOF
13819 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13822 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13823 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13824 *) ac_file_in="${ac_file}.in" ;;
13827 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13829 # Remove last slash and all that follows it. Not all systems have dirname.
13830 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13832 # The file is in a subdirectory.
13833 test ! -d "$ac_dir" && mkdir "$ac_dir"
13834 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13835 # A "../" for each directory in $ac_dir_suffix.
13836 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13838 ac_dir_suffix= ac_dots=
13841 case "$ac_given_srcdir" in
13843 if test -z "$ac_dots"; then top_srcdir=.
13844 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13845 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13846 *) # Relative path.
13847 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13848 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13851 case "$ac_given_INSTALL" in
13852 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13853 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13856 echo creating "$ac_file"
13858 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13860 *Makefile*) ac_comsub="1i\\
13861 # $configure_input" ;;
13865 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13867 s%@configure_input@%$configure_input%g
13868 s%@srcdir@%$srcdir%g
13869 s%@top_srcdir@%$top_srcdir%g
13870 s%@INSTALL@%$INSTALL%g
13871 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13875 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13876 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13878 # ac_d sets the value in "#define NAME VALUE" lines.
13879 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13880 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13883 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13884 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13885 ac_uB='\([ ]\)%\1#\2define\3'
13888 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13889 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13890 ac_eB='$%\1#\2define\3'
13894 if test "${CONFIG_HEADERS+set}" != set; then
13896 cat >> $CONFIG_STATUS <<EOF
13897 CONFIG_HEADERS="include/config.h"
13899 cat >> $CONFIG_STATUS <<\EOF
13901 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13904 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13905 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13906 *) ac_file_in="${ac_file}.in" ;;
13909 echo creating $ac_file
13911 rm -f conftest.frag conftest.in conftest.out
13912 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13913 cat $ac_file_inputs > conftest.in
13917 # Transform confdefs.h into a sed script conftest.vals that substitutes
13918 # the proper values into config.h.in to produce config.h. And first:
13919 # Protect against being on the right side of a sed subst in config.status.
13920 # Protect against being in an unquoted here document in config.status.
13921 rm -f conftest.vals
13922 cat > conftest.hdr <<\EOF
13925 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13929 sed -n -f conftest.hdr confdefs.h > conftest.vals
13932 # This sed command replaces #undef with comments. This is necessary, for
13933 # example, in the case of _POSIX_SOURCE, which is predefined and required
13934 # on some systems where configure will not decide to define it.
13935 cat >> conftest.vals <<\EOF
13936 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13939 # Break up conftest.vals because some shells have a limit on
13940 # the size of here documents, and old seds have small limits too.
13942 rm -f conftest.tail
13945 ac_lines=`grep -c . conftest.vals`
13946 # grep -c gives empty output for an empty file on some AIX systems.
13947 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13948 # Write a limited-size here document to conftest.frag.
13949 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13950 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13952 sed -f conftest.frag conftest.in > conftest.out
13954 mv conftest.out conftest.in
13955 ' >> $CONFIG_STATUS
13956 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13957 rm -f conftest.vals
13958 mv conftest.tail conftest.vals
13960 rm -f conftest.vals
13962 cat >> $CONFIG_STATUS <<\EOF
13963 rm -f conftest.frag conftest.h
13964 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13965 cat conftest.in >> conftest.h
13967 if cmp -s $ac_file conftest.h 2>/dev/null; then
13968 echo "$ac_file is unchanged"
13971 # Remove last slash and all that follows it. Not all systems have dirname.
13972 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13973 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13974 # The file is in a subdirectory.
13975 test ! -d "$ac_dir" && mkdir "$ac_dir"
13978 mv conftest.h $ac_file
13983 cat >> $CONFIG_STATUS <<EOF
13986 cat >> $CONFIG_STATUS <<\EOF
13990 chmod +x $CONFIG_STATUS
13991 rm -fr confdefs* $ac_clean_files
13992 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13995 #################################################
13996 # Print very concise instructions on building/use
13997 if test "x$enable_dmalloc" = xyes
13999 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14000 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6