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-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-readline[=DIR] Look for readline include/libs in DIR
31 --without-readline Don't include readline support"
33 --with-smbwrapper Include SMB wrapper support
34 --without-smbwrapper Don't include SMB wrapper support (default)"
36 --with-afs Include AFS support
37 --without-afs Don't include AFS support (default)"
39 --with-dfs Include DFS support
40 --without-dfs Don't include DFS support (default)"
42 --with-krb4=base-dir Include Kerberos IV support
43 --without-krb4 Don't include Kerberos IV support (default)"
45 --with-krb5=base-dir Include Kerberos 5 support
46 --without-krb5 Don't include Kerberos 5 support (default)"
48 --with-automount Include AUTOMOUNT support
49 --without-automount Don't include AUTOMOUNT support (default)"
51 --with-smbmount Include SMBMOUNT (Linux only) support
52 --without-smbmount Don't include SMBMOUNT support (default)"
54 --with-pam Include PAM password database support
55 --without-pam Don't include PAM password database support (default)"
57 --with-pam_smbpass Include the smbpass PAM module
58 --without-pam_smbpass Don't include the smbpass PAM module (default)"
60 --with-tdbsam Include experimental TDB password database
61 --without-tdbsam Don't include experimental TDB password database (default)"
63 --with-ldap Include LDAP support
64 --without-ldap Don't include LDAP support (default)"
66 --with-nisplus Include NISPLUS password database support
67 --without-nisplus Don't include NISPLUS password database support (default)"
69 --with-nisplus-home Include NISPLUS_HOME support
70 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
72 --with-ssl Include SSL support
73 --without-ssl Don't include SSL support (default)
74 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
76 --with-syslog Include experimental SYSLOG support
77 --without-syslog Don't include SYSLOG support (default)"
79 --with-profile Include profile support
80 --without-profile Don't include profile support (default)"
82 --with-netatalk Include experimental Netatalk support
83 --without-netatalk Don't include experimental Netatalk support (default)"
85 --with-quotas Include experimental disk-quota support
86 --without-quotas Don't include experimental disk-quota support (default)"
88 --with-utmp Include experimental utmp accounting
89 --without-utmp Don't include experimental utmp accounting (default)"
91 --with-msdfs Include MS Dfs support
92 --without-msdfs Don't include MS Dfs support (default)"
94 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
96 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
98 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
100 --with-spinlocks use spin locks instead of fcntl locks "
102 --with-acl-support Include ACL support
103 --without-acl-support Don't include ACL support (default)"
105 --with-winbind Build winbind library (default, if supported by OS)
106 --without-winbind Don't build winbind library"
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
112 cache_file=./config.cache
121 program_transform_name=s,x,x,
129 bindir='${exec_prefix}/bin'
130 sbindir='${exec_prefix}/sbin'
131 libexecdir='${exec_prefix}/libexec'
132 datadir='${prefix}/share'
133 sysconfdir='${prefix}/etc'
134 sharedstatedir='${prefix}/com'
135 localstatedir='${prefix}/var'
136 libdir='${exec_prefix}/lib'
137 includedir='${prefix}/include'
138 oldincludedir='/usr/include'
139 infodir='${prefix}/info'
140 mandir='${prefix}/man'
142 # Initialize some other variables.
145 SHELL=${CONFIG_SHELL-/bin/sh}
146 # Maximum number of lines to put in a shell here document.
153 # If the previous option needs an argument, assign it.
154 if test -n "$ac_prev"; then
155 eval "$ac_prev=\$ac_option"
161 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
165 # Accept the important Cygnus configure options, so we can diagnose typos.
169 -bindir | --bindir | --bindi | --bind | --bin | --bi)
171 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
172 bindir="$ac_optarg" ;;
174 -build | --build | --buil | --bui | --bu)
176 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
177 build="$ac_optarg" ;;
179 -cache-file | --cache-file | --cache-fil | --cache-fi \
180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
181 ac_prev=cache_file ;;
182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
184 cache_file="$ac_optarg" ;;
186 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
188 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
190 datadir="$ac_optarg" ;;
192 -disable-* | --disable-*)
193 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
199 eval "enable_${ac_feature}=no" ;;
201 -enable-* | --enable-*)
202 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
203 # Reject names that are not valid shell variable names.
204 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
205 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
207 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
212 eval "enable_${ac_feature}='$ac_optarg'" ;;
214 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
215 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
216 | --exec | --exe | --ex)
217 ac_prev=exec_prefix ;;
218 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
219 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
220 | --exec=* | --exe=* | --ex=*)
221 exec_prefix="$ac_optarg" ;;
223 -gas | --gas | --ga | --g)
224 # Obsolete; use --with-gas.
227 -help | --help | --hel | --he)
228 # Omit some internal or obsolete options to make the list less imposing.
229 # This message is too long to be a string in the A/UX 3.1 sh.
231 Usage: configure [options] [host]
232 Options: [defaults in brackets after descriptions]
234 --cache-file=FILE cache test results in FILE
235 --help print this message
236 --no-create do not create output files
237 --quiet, --silent do not print \`checking...' messages
238 --version print the version of autoconf that created configure
239 Directory and file names:
240 --prefix=PREFIX install architecture-independent files in PREFIX
242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
244 --bindir=DIR user executables in DIR [EPREFIX/bin]
245 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
246 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
247 --datadir=DIR read-only architecture-independent data in DIR
249 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
250 --sharedstatedir=DIR modifiable architecture-independent data in DIR
252 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
253 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
254 --includedir=DIR C header files in DIR [PREFIX/include]
255 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
256 --infodir=DIR info documentation in DIR [PREFIX/info]
257 --mandir=DIR man documentation in DIR [PREFIX/man]
258 --srcdir=DIR find the sources in DIR [configure dir or ..]
259 --program-prefix=PREFIX prepend PREFIX to installed program names
260 --program-suffix=SUFFIX append SUFFIX to installed program names
261 --program-transform-name=PROGRAM
262 run sed PROGRAM on installed program names
266 --build=BUILD configure for building on BUILD [BUILD=HOST]
267 --host=HOST configure for HOST [guessed]
268 --target=TARGET configure for TARGET [TARGET=HOST]
269 Features and packages:
270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
272 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
273 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
274 --x-includes=DIR X include files are in DIR
275 --x-libraries=DIR X library files are in DIR
277 if test -n "$ac_help"; then
278 echo "--enable and --with options recognized:$ac_help"
282 -host | --host | --hos | --ho)
284 -host=* | --host=* | --hos=* | --ho=*)
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir="$ac_optarg" ;;
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir="$ac_optarg" ;;
299 -libdir | --libdir | --libdi | --libd)
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
302 libdir="$ac_optarg" ;;
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir="$ac_optarg" ;;
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir="$ac_optarg" ;;
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323 mandir="$ac_optarg" ;;
326 # Obsolete; use --without-fp.
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir="$ac_optarg" ;;
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349 prefix="$ac_optarg" ;;
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix="$ac_optarg" ;;
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix="$ac_optarg" ;;
365 -program-transform-name | --program-transform-name \
366 | --program-transform-nam | --program-transform-na \
367 | --program-transform-n | --program-transform- \
368 | --program-transform | --program-transfor \
369 | --program-transfo | --program-transf \
370 | --program-trans | --program-tran \
371 | --progr-tra | --program-tr | --program-t)
372 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name="$ac_optarg" ;;
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
390 sbindir="$ac_optarg" ;;
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
401 sharedstatedir="$ac_optarg" ;;
403 -site | --site | --sit)
405 -site=* | --site=* | --sit=*)
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411 srcdir="$ac_optarg" ;;
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir="$ac_optarg" ;;
420 -target | --target | --targe | --targ | --tar | --ta | --t)
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target="$ac_optarg" ;;
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
428 -version | --version | --versio | --versi | --vers)
429 echo "configure generated by autoconf version 2.13"
433 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_${ac_package}='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
447 # Reject names that are not valid shell variable names.
448 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
451 ac_package=`echo $ac_package| sed 's/-/_/g'`
452 eval "with_${ac_package}=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes="$ac_optarg" ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries="$ac_optarg" ;;
472 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
476 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
477 echo "configure: warning: $ac_option: invalid host type" 1>&2
479 if test "x$nonopt" != xNONE; then
480 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
488 if test -n "$ac_prev"; then
489 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
494 # File descriptor usage:
497 # 2 errors and warnings
498 # 3 some systems may open it to /dev/tty
499 # 4 used on the Kubota Titan
500 # 6 checking for... messages and results
501 # 5 compiler messages saved in config.log
502 if test "$silent" = yes; then
510 This file contains any messages produced by compilers while
511 running configure, to aid debugging if configure makes a mistake.
514 # Strip out --no-create and --no-recursion so they do not pile up.
515 # Also quote any args containing shell metacharacters.
520 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
521 | --no-cr | --no-c) ;;
522 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
523 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
524 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
525 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
526 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
531 # Only set these to C if already set. These must not be set unconditionally
532 # because not all systems understand e.g. LANG=C (notably SCO).
533 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
534 # Non-C LC_CTYPE values break the ctype check.
535 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
536 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
537 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
541 rm -rf conftest* confdefs.h
542 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
545 # A filename unique to this package, relative to the directory that
546 # configure is in, which we can look for to find out if srcdir is correct.
547 ac_unique_file=include/includes.h
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
567 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
570 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
572 # Prefer explicitly selected file to automatically selected ones.
573 if test -z "$CONFIG_SITE"; then
574 if test "x$prefix" != xNONE; then
575 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
577 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
580 for ac_site_file in $CONFIG_SITE; do
581 if test -r "$ac_site_file"; then
582 echo "loading site script $ac_site_file"
587 if test -r "$cache_file"; then
588 echo "loading cache $cache_file"
591 echo "creating cache $cache_file"
596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
597 ac_cpp='$CPP $CPPFLAGS'
598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
600 cross_compiling=$ac_cv_prog_cc_cross
604 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
605 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
613 ac_n= ac_c='\c' ac_t=
618 # we want to be compatibe with older versions of Samba
633 # compile with optimisation and without debugging by default
634 CFLAGS="-O ${CFLAGS}"
636 # Check whether --enable-debug or --disable-debug was given.
637 if test "${enable_debug+set}" = set; then
638 enableval="$enable_debug"
639 if eval "test x$enable_debug = xyes"; then
640 CFLAGS="${CFLAGS} -g"
646 # Extract the first word of "gcc", so it can be a program name with args.
647 set dummy gcc; ac_word=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
669 if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
672 echo "$ac_t""no" 1>&6
675 if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677 set dummy cc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701 if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy $ac_cv_prog_CC
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
710 set dummy "$ac_dir/$ac_word" "$@"
718 if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
721 echo "$ac_t""no" 1>&6
724 if test -z "$CC"; then
727 # Extract the first word of "cl", so it can be a program name with args.
728 set dummy cl; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 cat > conftest.$ac_ext << EOF
773 #line 774 "configure"
774 #include "confdefs.h"
778 if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779 ac_cv_prog_cc_works=yes
780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (./conftest; exit) 2>/dev/null; then
782 ac_cv_prog_cc_cross=no
784 ac_cv_prog_cc_cross=yes
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 ac_cv_prog_cc_works=no
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800 if test $ac_cv_prog_cc_works = no; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809 echo "configure:810: checking whether we are using GNU C" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.c <<EOF
818 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827 if test $ac_cv_prog_gcc = yes; then
833 ac_test_CFLAGS="${CFLAGS+set}"
834 ac_save_CFLAGS="$CFLAGS"
836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837 echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 echo 'void f(){}' > conftest.c
842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852 if test "$ac_test_CFLAGS" = set; then
853 CFLAGS="$ac_save_CFLAGS"
854 elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
861 if test "$GCC" = yes; then
869 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
870 if test -f $ac_dir/install-sh; then
872 ac_install_sh="$ac_aux_dir/install-sh -c"
874 elif test -f $ac_dir/install.sh; then
876 ac_install_sh="$ac_aux_dir/install.sh -c"
880 if test -z "$ac_aux_dir"; then
881 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
883 ac_config_guess=$ac_aux_dir/config.guess
884 ac_config_sub=$ac_aux_dir/config.sub
885 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
887 # Find a good install program. We prefer a C program (faster),
888 # so one script is as good as another. But avoid the broken or
889 # incompatible versions:
890 # SysV /etc/install, /usr/sbin/install
891 # SunOS /usr/etc/install
894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
897 # ./install, which can be erroneously created by make from ./install.sh.
898 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
899 echo "configure:900: checking for a BSD compatible install" >&5
900 if test -z "$INSTALL"; then
901 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
905 for ac_dir in $PATH; do
906 # Account for people who put trailing slashes in PATH elements.
908 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
910 # OSF1 and SCO ODT 3.0 have their own names for install.
911 # Don't use installbsd from OSF since it installs stuff as root
913 for ac_prog in ginstall scoinst install; do
914 if test -f $ac_dir/$ac_prog; then
915 if test $ac_prog = install &&
916 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
917 # AIX install. It has an incompatible calling convention.
920 ac_cv_path_install="$ac_dir/$ac_prog -c"
931 if test "${ac_cv_path_install+set}" = set; then
932 INSTALL="$ac_cv_path_install"
934 # As a last resort, use the slow shell script. We don't cache a
935 # path for INSTALL within a source directory, because that will
936 # break other packages using the cache if that directory is
937 # removed, or if the path is relative.
938 INSTALL="$ac_install_sh"
941 echo "$ac_t""$INSTALL" 1>&6
943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
944 # It thinks the first close brace ends the variable substitution.
945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
947 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
949 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
951 for ac_prog in mawk gawk nawk awk
953 # Extract the first word of "$ac_prog", so it can be a program name with args.
954 set dummy $ac_prog; ac_word=$2
955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
956 echo "configure:957: checking for $ac_word" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 if test -n "$AWK"; then
961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
965 for ac_dir in $ac_dummy; do
966 test -z "$ac_dir" && ac_dir=.
967 if test -f $ac_dir/$ac_word; then
968 ac_cv_prog_AWK="$ac_prog"
975 AWK="$ac_cv_prog_AWK"
976 if test -n "$AWK"; then
977 echo "$ac_t""$AWK" 1>&6
979 echo "$ac_t""no" 1>&6
982 test -n "$AWK" && break
985 # Check whether --enable-shared or --disable-shared was given.
986 if test "${enable_shared+set}" = set; then
987 enableval="$enable_shared"
990 yes) enable_shared=yes ;;
991 no) enable_shared=no ;;
994 # Look at the argument we got. We use all the common list separators.
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
996 for pkg in $enableval; do
997 if test "X$pkg" = "X$p"; then
1008 # Check whether --enable-static or --disable-static was given.
1009 if test "${enable_static+set}" = set; then
1010 enableval="$enable_static"
1011 p=${PACKAGE-default}
1012 case "$enableval" in
1013 yes) enable_static=yes ;;
1014 no) enable_static=no ;;
1017 # Look at the argument we got. We use all the common list separators.
1018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1019 for pkg in $enableval; do
1020 if test "X$pkg" = "X$p"; then
1031 # Check whether --enable-fast-install or --disable-fast-install was given.
1032 if test "${enable_fast_install+set}" = set; then
1033 enableval="$enable_fast_install"
1034 p=${PACKAGE-default}
1035 case "$enableval" in
1036 yes) enable_fast_install=yes ;;
1037 no) enable_fast_install=no ;;
1039 enable_fast_install=no
1040 # Look at the argument we got. We use all the common list separators.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1042 for pkg in $enableval; do
1043 if test "X$pkg" = "X$p"; then
1044 enable_fast_install=yes
1051 enable_fast_install=yes
1055 # Make sure we can run config.sub.
1056 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1057 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1060 echo $ac_n "checking host system type""... $ac_c" 1>&6
1061 echo "configure:1062: checking host system type" >&5
1064 case "$host_alias" in
1068 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1069 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1071 *) host_alias=$nonopt ;;
1075 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1076 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1077 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1078 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1079 echo "$ac_t""$host" 1>&6
1081 echo $ac_n "checking build system type""... $ac_c" 1>&6
1082 echo "configure:1083: checking build system type" >&5
1085 case "$build_alias" in
1088 NONE) build_alias=$host_alias ;;
1089 *) build_alias=$nonopt ;;
1093 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1094 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1095 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1096 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1097 echo "$ac_t""$build" 1>&6
1099 # Extract the first word of "ranlib", so it can be a program name with args.
1100 set dummy ranlib; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 if test -n "$RANLIB"; then
1107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 for ac_dir in $ac_dummy; do
1112 test -z "$ac_dir" && ac_dir=.
1113 if test -f $ac_dir/$ac_word; then
1114 ac_cv_prog_RANLIB="ranlib"
1119 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1122 RANLIB="$ac_cv_prog_RANLIB"
1123 if test -n "$RANLIB"; then
1124 echo "$ac_t""$RANLIB" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1130 if test "${with_gnu_ld+set}" = set; then
1131 withval="$with_gnu_ld"
1132 test "$withval" = no || with_gnu_ld=yes
1138 if test "$ac_cv_prog_gcc" = yes; then
1139 # Check if gcc -print-prog-name=ld gives a path.
1140 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1141 echo "configure:1142: checking for ld used by GCC" >&5
1142 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1144 # Accept absolute paths.
1145 [\\/]* | [A-Za-z]:[\\/]*)
1146 re_direlt='/[^/][^/]*/\.\./'
1147 # Canonicalize the path of ld
1148 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1150 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1152 test -z "$LD" && LD="$ac_prog"
1155 # If it fails, then pretend we aren't using GCC.
1159 # If it is relative, then search for the first ld in PATH.
1163 elif test "$with_gnu_ld" = yes; then
1164 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1165 echo "configure:1166: checking for GNU ld" >&5
1167 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1168 echo "configure:1169: checking for non-GNU ld" >&5
1170 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -z "$LD"; then
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1175 for ac_dir in $PATH; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1178 ac_cv_path_LD="$ac_dir/$ac_prog"
1179 # Check to see if the program is GNU ld. I'd rather use --version,
1180 # but apparently some GNU ld's only accept -v.
1181 # Break only if it was the GNU/non-GNU ld that we prefer.
1182 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1183 test "$with_gnu_ld" != no && break
1185 test "$with_gnu_ld" != yes && break
1191 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1196 if test -n "$LD"; then
1197 echo "$ac_t""$LD" 1>&6
1199 echo "$ac_t""no" 1>&6
1201 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1202 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1203 echo "configure:1204: checking if the linker ($LD) is GNU ld" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1208 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1209 ac_cv_prog_gnu_ld=yes
1211 ac_cv_prog_gnu_ld=no
1215 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1218 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1219 echo "configure:1220: checking for BSD-compatible nm" >&5
1220 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$NM"; then
1224 # Let the user override the test.
1227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1228 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1231 # Check to see if the nm accepts a BSD-compat flag.
1232 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1233 # nm: unknown option "B" ignored
1234 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1235 ac_cv_path_NM="$ac_dir/nm -B"
1237 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1238 ac_cv_path_NM="$ac_dir/nm -p"
1241 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1242 continue # so that we can try to find one that supports BSD flags
1247 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1252 echo "$ac_t""$NM" 1>&6
1254 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ln -s works" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1260 if ln -s X conftestdata 2>/dev/null
1263 ac_cv_prog_LN_S="ln -s"
1268 LN_S="$ac_cv_prog_LN_S"
1269 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1270 echo "$ac_t""yes" 1>&6
1272 echo "$ac_t""no" 1>&6
1277 NONE) lt_target="$host" ;;
1278 *) lt_target="$target" ;;
1281 # Check for any special flags to pass to ltconfig.
1282 libtool_flags="--cache-file=$cache_file"
1283 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1284 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1285 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1286 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1287 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1290 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1291 if test "${enable_libtool_lock+set}" = set; then
1292 enableval="$enable_libtool_lock"
1296 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1297 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1299 # Some flags need to be propagated to the compiler or linker for good
1301 case "$lt_target" in
1303 # Find out which ABI we are using.
1304 echo '#line 1305 "configure"' > conftest.$ac_ext
1305 if { (eval echo configure:1306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1306 case "`/usr/bin/file conftest.o`" in
1322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1323 SAVE_CFLAGS="$CFLAGS"
1324 CFLAGS="$CFLAGS -belf"
1325 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1326 echo "configure:1327: checking whether the C compiler needs -belf" >&5
1327 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1338 if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1340 lt_cv_cc_needs_belf=yes
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1345 lt_cv_cc_needs_belf=no
1350 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1351 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1352 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1353 CFLAGS="$SAVE_CFLAGS"
1361 # Save cache, so that ltconfig can load it
1362 cat > confcache <<\EOF
1363 # This file is a shell script that caches the results of configure
1364 # tests run on this system so they can be shared between configure
1365 # scripts and configure runs. It is not useful on other systems.
1366 # If it contains results you don't want to keep, you may remove or edit it.
1368 # By default, configure uses ./config.cache as the cache file,
1369 # creating it if it does not exist already. You can give configure
1370 # the --cache-file=FILE option to use a different cache file; that is
1371 # what configure does when it calls configure scripts in
1372 # subdirectories, so they share the cache.
1373 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1374 # config.status only pays attention to the cache file if you give it the
1375 # --recheck option to rerun configure.
1378 # The following way of writing the cache mishandles newlines in values,
1379 # but we know of no workaround that is simple, portable, and efficient.
1380 # So, don't put newlines in cache variables' values.
1381 # Ultrix sh set writes to stderr and can't be redirected directly,
1382 # and sets the high bit in the cache file unless we assign to the vars.
1384 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1386 # `set' does not quote correctly, so add quotes (double-quote substitution
1387 # turns \\\\ into \\, and sed turns \\ into \).
1389 -e "s/'/'\\\\''/g" \
1390 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1393 # `set' quotes correctly as required by POSIX, so do not add quotes.
1394 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1397 if cmp -s $cache_file confcache; then
1400 if test -w $cache_file; then
1401 echo "updating cache $cache_file"
1402 cat confcache > $cache_file
1404 echo "not updating unwritable cache $cache_file"
1410 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1411 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1412 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1413 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1414 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1415 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1416 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1417 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1419 # Reload cache, that may have been modified by ltconfig
1420 if test -r "$cache_file"; then
1421 echo "loading cache $cache_file"
1424 echo "creating cache $cache_file"
1429 # This can be used to rebuild libtool when needed
1430 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1432 # Always use our own libtool.
1433 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1435 # Redirect the config.log output again, so that the ltconfig log is not
1436 # clobbered by the next message.
1437 exec 5>>./config.log
1441 if test "x$CC" != xcc; then
1442 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1443 echo "configure:1444: checking whether $CC and cc understand -c and -o together" >&5
1445 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1446 echo "configure:1447: checking whether cc understands -c and -o together" >&5
1448 set dummy $CC; ac_cc="`echo $2 |
1449 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1450 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 echo 'foo(){}' > conftest.c
1454 # Make sure it works both with $CC and with simple cc.
1455 # We do the test twice because some compilers refuse to overwrite an
1456 # existing .o file with -o, though they will create one.
1457 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1458 if { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1459 test -f conftest.o && { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1461 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1462 if test "x$CC" != xcc; then
1463 # Test first that cc exists at all.
1464 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1465 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1466 if { (eval echo configure:1467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1467 test -f conftest.o && { (eval echo configure:1468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1472 # cc exists but doesn't like -o.
1473 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1478 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1483 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1484 echo "$ac_t""yes" 1>&6
1486 echo "$ac_t""no" 1>&6
1487 cat >> confdefs.h <<\EOF
1488 #define NO_MINUS_C_MINUS_O 1
1493 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1500 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1501 echo "configure:1502: checking that the C compiler understands volatile" >&5
1502 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1509 #include <sys/types.h>
1514 if { (eval echo configure:1515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1516 samba_cv_volatile=yes
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 samba_cv_volatile=no
1526 echo "$ac_t""$samba_cv_volatile" 1>&6
1527 if test x"$samba_cv_volatile" = x"yes"; then
1528 cat >> confdefs.h <<\EOF
1529 #define HAVE_VOLATILE 1
1535 #################################################
1536 # set codepage directory location
1537 # Check whether --with-codepagedir or --without-codepagedir was given.
1538 if test "${with_codepagedir+set}" = set; then
1539 withval="$with_codepagedir"
1543 # Just in case anybody does it
1545 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1548 codepagedir="$withval"
1556 # Do some error checking and defaulting for the host and target type.
1558 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1561 # 1. You are not allowed to specify --host, --target, and nonopt at the
1563 # 2. Host defaults to nonopt.
1564 # 3. If nonopt is not specified, then host defaults to the current host,
1565 # as determined by config.guess.
1566 # 4. Target and build default to nonopt.
1567 # 5. If nonopt is not specified, then target and build default to host.
1569 # The aliases save the names the user supplied, while $host etc.
1570 # will get canonicalized.
1571 case $host---$target---$nonopt in
1572 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1573 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1577 # Make sure we can run config.sub.
1578 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1579 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1582 echo $ac_n "checking host system type""... $ac_c" 1>&6
1583 echo "configure:1584: checking host system type" >&5
1586 case "$host_alias" in
1590 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1593 *) host_alias=$nonopt ;;
1597 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1598 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$ac_t""$host" 1>&6
1603 echo $ac_n "checking target system type""... $ac_c" 1>&6
1604 echo "configure:1605: checking target system type" >&5
1606 target_alias=$target
1607 case "$target_alias" in
1610 NONE) target_alias=$host_alias ;;
1611 *) target_alias=$nonopt ;;
1615 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1616 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1617 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1618 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1619 echo "$ac_t""$target" 1>&6
1621 echo $ac_n "checking build system type""... $ac_c" 1>&6
1622 echo "configure:1623: checking build system type" >&5
1625 case "$build_alias" in
1628 NONE) build_alias=$host_alias ;;
1629 *) build_alias=$nonopt ;;
1633 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1634 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 echo "$ac_t""$build" 1>&6
1639 test "$host_alias" != "$target_alias" &&
1640 test "$program_prefix$program_suffix$program_transform_name" = \
1642 program_prefix=${target_alias}-
1646 *irix6*) cat >> confdefs.h <<\EOF
1647 #include <standards.h>
1655 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1656 echo "configure:1657: checking config.cache system type" >&5
1657 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1658 test x"$ac_cv_host_system_type" != x"$host"; } ||
1659 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1660 test x"$ac_cv_build_system_type" != x"$build"; } ||
1661 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1662 test x"$ac_cv_target_system_type" != x"$target"; }; then
1663 echo "$ac_t""different" 1>&6
1664 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1666 echo "$ac_t""same" 1>&6
1668 ac_cv_host_system_type="$host"
1669 ac_cv_build_system_type="$build"
1670 ac_cv_target_system_type="$target"
1674 # Config CPPFLAG settings for strange OS's that must be set
1675 # before other tests.
1678 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1680 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether ${CC-cc} accepts -Ae" >&5
1682 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 echo 'void f(){}' > conftest.c
1686 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1687 ac_cv_prog_cc_Ae=yes
1695 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1696 if test $ac_cv_prog_cc_Ae = yes; then
1697 CPPFLAGS="$CPPFLAGS -Ae"
1700 # Defines needed for HPUX support.
1701 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1702 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1706 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1707 cat >> confdefs.h <<\EOF
1708 #define USE_BOTH_CRYPT_CALLS 1
1713 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1714 cat >> confdefs.h <<\EOF
1715 #define USE_BOTH_CRYPT_CALLS 1
1722 # AIX4.x doesn't even admit to having large
1723 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1726 echo "$ac_t""enabling large file support" 1>&6
1727 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1730 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1731 # to the existance of large files..
1732 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1733 # recommendations on large file support, however it makes the
1734 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1735 # recommendation makes the compile fail on gcc2.7. JRA.
1740 echo "$ac_t""enabling large file support" 1>&6
1741 if test "$ac_cv_prog_gcc" = yes; then
1742 ${CC-cc} -v >conftest.c 2>&1
1743 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1745 case "$ac_cv_gcc_compiler_version_number" in
1746 *"gcc version 2.6"*|*"gcc version 2.7"*)
1747 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1750 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1754 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1760 # Tests needed for SINIX large file support.
1763 if test $host = mips-sni-sysv4 ; then
1764 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1765 echo "configure:1766: checking for LFS support" >&5
1766 old_CPPFLAGS="$CPPFLAGS"
1767 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1768 if test "$cross_compiling" = yes; then
1769 SINIX_LFS_SUPPORT=cross
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1777 #if _LFS64_LARGEFILE == 1
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1786 SINIX_LFS_SUPPORT=yes
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 SINIX_LFS_SUPPORT=no
1796 CPPFLAGS="$old_CPPFLAGS"
1797 if test x$SINIX_LFS_SUPPORT = xyes ; then
1798 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1799 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1800 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1801 LIBS="`getconf LFS64_LIBS` $LIBS"
1803 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1807 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1810 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1811 echo "configure:1812: checking for LFS support" >&5
1812 old_CPPFLAGS="$CPPFLAGS"
1813 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1814 if test "$cross_compiling" = yes; then
1815 LINUX_LFS_SUPPORT=cross
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1822 #include <sys/utsname.h>
1824 #if _LFS64_LARGEFILE == 1
1829 /* Ensure this is glibc 2.2 or higher */
1830 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1831 int libc_major = __GLIBC__;
1832 int libc_minor = __GLIBC_MINOR__;
1840 /* Ensure this is kernel 2.4 or higher */
1843 release = uts.release;
1844 major = atoi(strsep(&release, "."));
1845 minor = atoi(strsep(&release, "."));
1847 if (major > 2 || (major == 2 && minor > 3))
1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1858 LINUX_LFS_SUPPORT=yes
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 LINUX_LFS_SUPPORT=no
1868 CPPFLAGS="$old_CPPFLAGS"
1869 if test x$LINUX_LFS_SUPPORT = xyes ; then
1870 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1872 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1876 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1877 echo "configure:1878: checking for LFS support" >&5
1878 old_CPPFLAGS="$CPPFLAGS"
1879 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1880 if test "$cross_compiling" = yes; then
1881 GLIBC_LFS_SUPPORT=cross
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1889 #if _LFS64_LARGEFILE == 1
1896 if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1898 GLIBC_LFS_SUPPORT=yes
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1903 GLIBC_LFS_SUPPORT=no
1908 CPPFLAGS="$old_CPPFLAGS"
1909 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1910 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1912 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1917 echo $ac_n "checking for inline""... $ac_c" 1>&6
1918 echo "configure:1919: checking for inline" >&5
1919 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1923 for ac_kw in inline __inline__ __inline; do
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1934 ac_cv_c_inline=$ac_kw; break
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1944 echo "$ac_t""$ac_cv_c_inline" 1>&6
1945 case "$ac_cv_c_inline" in
1947 no) cat >> confdefs.h <<\EOF
1951 *) cat >> confdefs.h <<EOF
1952 #define inline $ac_cv_c_inline
1957 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1958 echo "configure:1959: checking how to run the C preprocessor" >&5
1959 # On Suns, sometimes $CPP names a directory.
1960 if test -n "$CPP" && test -d "$CPP"; then
1963 if test -z "$CPP"; then
1964 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 # This must be in double quotes, not single quotes, because CPP may get
1968 # substituted into the Makefile and "${CC-cc}" will confuse make.
1970 # On the NeXT, cc -E runs the code through the compiler's parser,
1971 # not just through cpp.
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979 { (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1981 if test -z "$ac_err"; then
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 CPP="${CC-cc} -E -traditional-cpp"
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1996 { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998 if test -z "$ac_err"; then
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2005 CPP="${CC-cc} -nologo -E"
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2013 { (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2015 if test -z "$ac_err"; then
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2029 ac_cv_prog_CPP="$CPP"
2031 CPP="$ac_cv_prog_CPP"
2033 ac_cv_prog_CPP="$CPP"
2035 echo "$ac_t""$CPP" 1>&6
2037 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2038 echo "configure:2039: checking for ANSI C header files" >&5
2039 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then
2055 ac_cv_header_stdc=yes
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 ac_cv_header_stdc=no
2065 if test $ac_cv_header_stdc = yes; then
2066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2073 egrep "memchr" >/dev/null 2>&1; then
2077 ac_cv_header_stdc=no
2083 if test $ac_cv_header_stdc = yes; then
2084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2091 egrep "free" >/dev/null 2>&1; then
2095 ac_cv_header_stdc=no
2101 if test $ac_cv_header_stdc = yes; then
2102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2103 if test "$cross_compiling" = yes; then
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2110 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2111 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2113 int main () { int i; for (i = 0; i < 256; i++)
2114 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2118 if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2122 echo "configure: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2125 ac_cv_header_stdc=no
2133 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2134 if test $ac_cv_header_stdc = yes; then
2135 cat >> confdefs.h <<\EOF
2136 #define STDC_HEADERS 1
2142 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2145 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2146 echo "configure:2147: checking for $ac_hdr that defines DIR" >&5
2147 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2153 #include <sys/types.h>
2159 if { (eval echo configure:2160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2161 eval "ac_cv_header_dirent_$ac_safe=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_header_dirent_$ac_safe=no"
2170 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2173 cat >> confdefs.h <<EOF
2174 #define $ac_tr_hdr 1
2176 ac_header_dirent=$ac_hdr; break
2178 echo "$ac_t""no" 1>&6
2181 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2182 if test $ac_header_dirent = dirent.h; then
2183 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2184 echo "configure:2185: checking for opendir in -ldir" >&5
2185 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 ac_save_LIBS="$LIBS"
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* Override any gcc2 internal prototype to avoid an error. */
2195 /* We use char because int might match the return type of a gcc2
2196 builtin and then its argument prototype would still apply. */
2203 if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2205 eval "ac_cv_lib_$ac_lib_var=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2210 eval "ac_cv_lib_$ac_lib_var=no"
2213 LIBS="$ac_save_LIBS"
2216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2220 echo "$ac_t""no" 1>&6
2224 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2225 echo "configure:2226: checking for opendir in -lx" >&5
2226 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 ac_save_LIBS="$LIBS"
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* Override any gcc2 internal prototype to avoid an error. */
2236 /* We use char because int might match the return type of a gcc2
2237 builtin and then its argument prototype would still apply. */
2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2246 eval "ac_cv_lib_$ac_lib_var=yes"
2248 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2251 eval "ac_cv_lib_$ac_lib_var=no"
2254 LIBS="$ac_save_LIBS"
2257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2261 echo "$ac_t""no" 1>&6
2266 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2267 echo "configure:2268: checking whether time.h and sys/time.h may both be included" >&5
2268 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 #include <sys/types.h>
2275 #include <sys/time.h>
2281 if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2283 ac_cv_header_time=yes
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2288 ac_cv_header_time=no
2293 echo "$ac_t""$ac_cv_header_time" 1>&6
2294 if test $ac_cv_header_time = yes; then
2295 cat >> confdefs.h <<\EOF
2296 #define TIME_WITH_SYS_TIME 1
2301 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2302 echo "configure:2303: checking for sys/wait.h that is POSIX.1 compatible" >&5
2303 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <sys/types.h>
2310 #include <sys/wait.h>
2312 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2315 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2320 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2323 if { (eval echo configure:2324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2325 ac_cv_header_sys_wait_h=yes
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2330 ac_cv_header_sys_wait_h=no
2335 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2336 if test $ac_cv_header_sys_wait_h = yes; then
2337 cat >> confdefs.h <<\EOF
2338 #define HAVE_SYS_WAIT_H 1
2343 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_hdr" >&5
2348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357 { (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359 if test -z "$ac_err"; then
2361 eval "ac_cv_header_$ac_safe=yes"
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2367 eval "ac_cv_header_$ac_safe=no"
2371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2374 cat >> confdefs.h <<EOF
2375 #define $ac_tr_hdr 1
2379 echo "$ac_t""no" 1>&6
2383 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_hdr" >&5
2388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2397 { (eval echo configure:2398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2399 if test -z "$ac_err"; then
2401 eval "ac_cv_header_$ac_safe=yes"
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2407 eval "ac_cv_header_$ac_safe=no"
2411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2412 echo "$ac_t""yes" 1>&6
2413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2414 cat >> confdefs.h <<EOF
2415 #define $ac_tr_hdr 1
2419 echo "$ac_t""no" 1>&6
2423 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2427 echo "configure:2428: checking for $ac_hdr" >&5
2428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2437 { (eval echo configure:2438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2439 if test -z "$ac_err"; then
2441 eval "ac_cv_header_$ac_safe=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 eval "ac_cv_header_$ac_safe=no"
2451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2454 cat >> confdefs.h <<EOF
2455 #define $ac_tr_hdr 1
2459 echo "$ac_t""no" 1>&6
2463 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2467 echo "configure:2468: checking for $ac_hdr" >&5
2468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2477 { (eval echo configure:2478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2479 if test -z "$ac_err"; then
2481 eval "ac_cv_header_$ac_safe=yes"
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 eval "ac_cv_header_$ac_safe=no"
2491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2492 echo "$ac_t""yes" 1>&6
2493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2494 cat >> confdefs.h <<EOF
2495 #define $ac_tr_hdr 1
2499 echo "$ac_t""no" 1>&6
2503 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
2505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2507 echo "configure:2508: checking for $ac_hdr" >&5
2508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2517 { (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2519 if test -z "$ac_err"; then
2521 eval "ac_cv_header_$ac_safe=yes"
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2527 eval "ac_cv_header_$ac_safe=no"
2531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2532 echo "$ac_t""yes" 1>&6
2533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2534 cat >> confdefs.h <<EOF
2535 #define $ac_tr_hdr 1
2539 echo "$ac_t""no" 1>&6
2543 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2547 echo "configure:2548: checking for $ac_hdr" >&5
2548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2557 { (eval echo configure:2558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2559 if test -z "$ac_err"; then
2561 eval "ac_cv_header_$ac_safe=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 eval "ac_cv_header_$ac_safe=no"
2571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2572 echo "$ac_t""yes" 1>&6
2573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2574 cat >> confdefs.h <<EOF
2575 #define $ac_tr_hdr 1
2579 echo "$ac_t""no" 1>&6
2583 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_hdr" >&5
2588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2597 { (eval echo configure:2598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2599 if test -z "$ac_err"; then
2601 eval "ac_cv_header_$ac_safe=yes"
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2607 eval "ac_cv_header_$ac_safe=no"
2611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2614 cat >> confdefs.h <<EOF
2615 #define $ac_tr_hdr 1
2619 echo "$ac_t""no" 1>&6
2623 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_hdr" >&5
2628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2637 { (eval echo configure:2638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2639 if test -z "$ac_err"; then
2641 eval "ac_cv_header_$ac_safe=yes"
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 eval "ac_cv_header_$ac_safe=no"
2651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2652 echo "$ac_t""yes" 1>&6
2653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2654 cat >> confdefs.h <<EOF
2655 #define $ac_tr_hdr 1
2659 echo "$ac_t""no" 1>&6
2665 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2666 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2678 if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2680 ac_cv_header_shadow_h=yes
2682 echo "configure: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2685 ac_cv_header_shadow_h=no
2688 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2689 cat >> confdefs.h <<\EOF
2690 #define HAVE_SHADOW_H 1
2696 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_hdr" >&5
2701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2710 { (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2712 if test -z "$ac_err"; then
2714 eval "ac_cv_header_$ac_safe=yes"
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2720 eval "ac_cv_header_$ac_safe=no"
2724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2725 echo "$ac_t""yes" 1>&6
2726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2727 cat >> confdefs.h <<EOF
2728 #define $ac_tr_hdr 1
2732 echo "$ac_t""no" 1>&6
2736 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_hdr" >&5
2741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2750 { (eval echo configure:2751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2752 if test -z "$ac_err"; then
2754 eval "ac_cv_header_$ac_safe=yes"
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2760 eval "ac_cv_header_$ac_safe=no"
2764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2767 cat >> confdefs.h <<EOF
2768 #define $ac_tr_hdr 1
2772 echo "$ac_t""no" 1>&6
2776 for ac_hdr in stropts.h poll.h
2778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_hdr" >&5
2781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2794 eval "ac_cv_header_$ac_safe=yes"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 eval "ac_cv_header_$ac_safe=no"
2804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2805 echo "$ac_t""yes" 1>&6
2806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2807 cat >> confdefs.h <<EOF
2808 #define $ac_tr_hdr 1
2812 echo "$ac_t""no" 1>&6
2816 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_hdr" >&5
2821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830 { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2832 if test -z "$ac_err"; then
2834 eval "ac_cv_header_$ac_safe=yes"
2837 echo "configure: failed program was:" >&5
2838 cat conftest.$ac_ext >&5
2840 eval "ac_cv_header_$ac_safe=no"
2844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2847 cat >> confdefs.h <<EOF
2848 #define $ac_tr_hdr 1
2852 echo "$ac_t""no" 1>&6
2856 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_hdr" >&5
2861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2870 { (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2872 if test -z "$ac_err"; then
2874 eval "ac_cv_header_$ac_safe=yes"
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 eval "ac_cv_header_$ac_safe=no"
2884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2887 cat >> confdefs.h <<EOF
2888 #define $ac_tr_hdr 1
2892 echo "$ac_t""no" 1>&6
2897 # For experimental utmp support (lastlog on some BSD-like systems)
2898 for ac_hdr in utmp.h utmpx.h lastlog.h
2900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2902 echo "configure:2903: checking for $ac_hdr" >&5
2903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2912 { (eval echo configure:2913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2914 if test -z "$ac_err"; then
2916 eval "ac_cv_header_$ac_safe=yes"
2919 echo "configure: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 eval "ac_cv_header_$ac_safe=no"
2926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2929 cat >> confdefs.h <<EOF
2930 #define $ac_tr_hdr 1
2934 echo "$ac_t""no" 1>&6
2939 # For quotas on Veritas VxFS filesystems
2940 for ac_hdr in sys/fs/vx_quota.h
2942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_hdr" >&5
2945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2954 { (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2956 if test -z "$ac_err"; then
2958 eval "ac_cv_header_$ac_safe=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2964 eval "ac_cv_header_$ac_safe=no"
2968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2969 echo "$ac_t""yes" 1>&6
2970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2971 cat >> confdefs.h <<EOF
2972 #define $ac_tr_hdr 1
2976 echo "$ac_t""no" 1>&6
2981 echo $ac_n "checking size of int""... $ac_c" 1>&6
2982 echo "configure:2983: checking size of int" >&5
2983 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 if test "$cross_compiling" = yes; then
2987 ac_cv_sizeof_int=cross
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2993 #include <sys/types.h>
2996 FILE *f=fopen("conftestval", "w");
2998 fprintf(f, "%d\n", sizeof(int));
3002 if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3004 ac_cv_sizeof_int=`cat conftestval`
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3015 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3016 cat >> confdefs.h <<EOF
3017 #define SIZEOF_INT $ac_cv_sizeof_int
3021 echo $ac_n "checking size of long""... $ac_c" 1>&6
3022 echo "configure:3023: checking size of long" >&5
3023 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 if test "$cross_compiling" = yes; then
3027 ac_cv_sizeof_long=cross
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3033 #include <sys/types.h>
3036 FILE *f=fopen("conftestval", "w");
3038 fprintf(f, "%d\n", sizeof(long));
3042 if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3044 ac_cv_sizeof_long=`cat conftestval`
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3055 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3056 cat >> confdefs.h <<EOF
3057 #define SIZEOF_LONG $ac_cv_sizeof_long
3061 echo $ac_n "checking size of short""... $ac_c" 1>&6
3062 echo "configure:3063: checking size of short" >&5
3063 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 if test "$cross_compiling" = yes; then
3067 ac_cv_sizeof_short=cross
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3073 #include <sys/types.h>
3076 FILE *f=fopen("conftestval", "w");
3078 fprintf(f, "%d\n", sizeof(short));
3082 if { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3084 ac_cv_sizeof_short=`cat conftestval`
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3089 ac_cv_sizeof_short=0
3095 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3096 cat >> confdefs.h <<EOF
3097 #define SIZEOF_SHORT $ac_cv_sizeof_short
3102 echo $ac_n "checking for working const""... $ac_c" 1>&6
3103 echo "configure:3104: checking for working const" >&5
3104 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3113 /* Ultrix mips cc rejects this. */
3114 typedef int charset[2]; const charset x;
3115 /* SunOS 4.1.1 cc rejects this. */
3116 char const *const *ccp;
3118 /* NEC SVR4.0.2 mips cc rejects this. */
3119 struct point {int x, y;};
3120 static struct point const zero = {0,0};
3121 /* AIX XL C 1.02.0.0 rejects this.
3122 It does not let you subtract one const X* pointer from another in an arm
3123 of an if-expression whose if-part is not a constant expression */
3124 const char *g = "string";
3125 ccp = &g + (g ? g-g : 0);
3126 /* HPUX 7.0 cc rejects these. */
3129 ccp = (char const *const *) p;
3130 { /* SCO 3.2v4 cc rejects this. */
3132 char const *s = 0 ? (char *) 0 : (char const *) 0;
3136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3138 const int *foo = &x[0];
3141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3142 typedef const int *iptr;
3146 { /* AIX XL C 1.02.0.0 rejects this saying
3147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3148 struct s { int j; const int *ap[3]; };
3149 struct s *b; b->j = 5;
3151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3157 if { (eval echo configure:3158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 echo "configure: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3169 echo "$ac_t""$ac_cv_c_const" 1>&6
3170 if test $ac_cv_c_const = no; then
3171 cat >> confdefs.h <<\EOF
3177 echo $ac_n "checking for inline""... $ac_c" 1>&6
3178 echo "configure:3179: checking for inline" >&5
3179 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3183 for ac_kw in inline __inline__ __inline; do
3184 cat > conftest.$ac_ext <<EOF
3185 #line 3186 "configure"
3186 #include "confdefs.h"
3192 if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3194 ac_cv_c_inline=$ac_kw; break
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3204 echo "$ac_t""$ac_cv_c_inline" 1>&6
3205 case "$ac_cv_c_inline" in
3207 no) cat >> confdefs.h <<\EOF
3211 *) cat >> confdefs.h <<EOF
3212 #define inline $ac_cv_c_inline
3217 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3218 echo "configure:3219: checking whether byte ordering is bigendian" >&5
3219 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 ac_cv_c_bigendian=unknown
3223 # See if sys/param.h defines the BYTE_ORDER macro.
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 #include <sys/types.h>
3228 #include <sys/param.h>
3231 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3236 if { (eval echo configure:3237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3238 # It does; now see whether it defined to BIG_ENDIAN or not.
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 #include <sys/types.h>
3243 #include <sys/param.h>
3246 #if BYTE_ORDER != BIG_ENDIAN
3251 if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3253 ac_cv_c_bigendian=yes
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 ac_cv_c_bigendian=no
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3266 if test $ac_cv_c_bigendian = unknown; then
3267 if test "$cross_compiling" = yes; then
3268 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3274 /* Are we little or big endian? From Harbison&Steele. */
3278 char c[sizeof (long)];
3281 exit (u.c[sizeof (long) - 1] == 1);
3284 if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3286 ac_cv_c_bigendian=no
3288 echo "configure: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3291 ac_cv_c_bigendian=yes
3299 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3300 if test $ac_cv_c_bigendian = yes; then
3301 cat >> confdefs.h <<\EOF
3302 #define WORDS_BIGENDIAN 1
3307 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3308 echo "configure:3309: checking whether char is unsigned" >&5
3309 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 if test "$GCC" = yes; then
3313 # GCC predefines this symbol on systems where it applies.
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #ifdef __CHAR_UNSIGNED__
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 egrep "yes" >/dev/null 2>&1; then
3325 ac_cv_c_char_unsigned=yes
3328 ac_cv_c_char_unsigned=no
3333 if test "$cross_compiling" = yes; then
3334 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3340 #if !defined(__STDC__) || __STDC__ != 1
3344 volatile char c = 255; exit(c < 0);
3347 if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3349 ac_cv_c_char_unsigned=yes
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3354 ac_cv_c_char_unsigned=no
3362 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3363 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3364 cat >> confdefs.h <<\EOF
3365 #define __CHAR_UNSIGNED__ 1
3371 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3372 echo "configure:3373: checking return type of signal handlers" >&5
3373 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 #include <sys/types.h>
3385 extern "C" void (*signal (int, void (*)(int)))(int);
3387 void (*signal ()) ();
3394 if { (eval echo configure:3395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3396 ac_cv_type_signal=void
3398 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3401 ac_cv_type_signal=int
3406 echo "$ac_t""$ac_cv_type_signal" 1>&6
3407 cat >> confdefs.h <<EOF
3408 #define RETSIGTYPE $ac_cv_type_signal
3412 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3413 echo "configure:3414: checking for uid_t in sys/types.h" >&5
3414 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 #include <sys/types.h>
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423 egrep "uid_t" >/dev/null 2>&1; then
3425 ac_cv_type_uid_t=yes
3434 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3435 if test $ac_cv_type_uid_t = no; then
3436 cat >> confdefs.h <<\EOF
3440 cat >> confdefs.h <<\EOF
3446 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3447 echo "configure:3448: checking for mode_t" >&5
3448 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 #include <sys/types.h>
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3463 ac_cv_type_mode_t=yes
3466 ac_cv_type_mode_t=no
3471 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3472 if test $ac_cv_type_mode_t = no; then
3473 cat >> confdefs.h <<\EOF
3479 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3480 echo "configure:3481: checking for off_t" >&5
3481 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3496 ac_cv_type_off_t=yes
3504 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3505 if test $ac_cv_type_off_t = no; then
3506 cat >> confdefs.h <<\EOF
3512 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3513 echo "configure:3514: checking for size_t" >&5
3514 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 #include <sys/types.h>
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3529 ac_cv_type_size_t=yes
3532 ac_cv_type_size_t=no
3537 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3538 if test $ac_cv_type_size_t = no; then
3539 cat >> confdefs.h <<\EOF
3540 #define size_t unsigned
3545 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3546 echo "configure:3547: checking for pid_t" >&5
3547 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3553 #include <sys/types.h>
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3562 ac_cv_type_pid_t=yes
3570 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3571 if test $ac_cv_type_pid_t = no; then
3572 cat >> confdefs.h <<\EOF
3578 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3579 echo "configure:3580: checking for st_rdev in struct stat" >&5
3580 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <sys/types.h>
3587 #include <sys/stat.h>
3589 struct stat s; s.st_rdev;
3592 if { (eval echo configure:3593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594 ac_cv_struct_st_rdev=yes
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3599 ac_cv_struct_st_rdev=no
3604 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3605 if test $ac_cv_struct_st_rdev = yes; then
3606 cat >> confdefs.h <<\EOF
3607 #define HAVE_ST_RDEV 1
3612 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3613 echo "configure:3614: checking for d_off in dirent" >&5
3614 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3622 #include <sys/types.h>
3625 struct dirent d; d.d_off;
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3630 ac_cv_dirent_d_off=yes
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 ac_cv_dirent_d_off=no
3640 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3641 if test $ac_cv_dirent_d_off = yes; then
3642 cat >> confdefs.h <<\EOF
3643 #define HAVE_DIRENT_D_OFF 1
3648 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3649 echo "configure:3650: checking for ino_t" >&5
3650 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <sys/types.h>
3662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3663 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3665 ac_cv_type_ino_t=yes
3673 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3674 if test $ac_cv_type_ino_t = no; then
3675 cat >> confdefs.h <<\EOF
3676 #define ino_t unsigned
3681 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3682 echo "configure:3683: checking for loff_t" >&5
3683 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3689 #include <sys/types.h>
3695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3696 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3698 ac_cv_type_loff_t=yes
3701 ac_cv_type_loff_t=no
3706 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3707 if test $ac_cv_type_loff_t = no; then
3708 cat >> confdefs.h <<\EOF
3709 #define loff_t off_t
3714 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3715 echo "configure:3716: checking for offset_t" >&5
3716 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 #include <sys/types.h>
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3731 ac_cv_type_offset_t=yes
3734 ac_cv_type_offset_t=no
3739 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3740 if test $ac_cv_type_offset_t = no; then
3741 cat >> confdefs.h <<\EOF
3742 #define offset_t loff_t
3747 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3748 echo "configure:3749: checking for ssize_t" >&5
3749 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <sys/types.h>
3761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3762 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3764 ac_cv_type_ssize_t=yes
3767 ac_cv_type_ssize_t=no
3772 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3773 if test $ac_cv_type_ssize_t = no; then
3774 cat >> confdefs.h <<\EOF
3780 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3781 echo "configure:3782: checking for wchar_t" >&5
3782 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 #include <sys/types.h>
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3797 ac_cv_type_wchar_t=yes
3800 ac_cv_type_wchar_t=no
3805 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3806 if test $ac_cv_type_wchar_t = no; then
3807 cat >> confdefs.h <<\EOF
3808 #define wchar_t unsigned short
3814 # we need libcups for CUPS support...
3815 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3816 echo "configure:3817: checking for httpConnect in -lcups" >&5
3817 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 ac_save_LIBS="$LIBS"
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3837 eval "ac_cv_lib_$ac_lib_var=yes"
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3842 eval "ac_cv_lib_$ac_lib_var=no"
3845 LIBS="$ac_save_LIBS"
3848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3851 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3852 cat >> confdefs.h <<EOF
3853 #define $ac_tr_lib 1
3859 echo "$ac_t""no" 1>&6
3863 # we need libdl for PAM and the new VFS code
3864 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3865 echo "configure:3866: checking for dlopen in -ldl" >&5
3866 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 ac_save_LIBS="$LIBS"
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_lib_$ac_lib_var=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_lib_$ac_lib_var=no"
3894 LIBS="$ac_save_LIBS"
3897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3900 cat >> confdefs.h <<\EOF
3901 #define HAVE_LIBDL 1
3905 echo "$ac_t""no" 1>&6
3909 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3910 echo "configure:3911: checking for socklen_t type" >&5
3911 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3919 #include <sys/types.h>
3924 #include <sys/socket.h>
3929 if { (eval echo configure:3930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3931 samba_cv_socklen_t=yes
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 samba_cv_socklen_t=no
3941 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3942 if test x"$samba_cv_socklen_t" = x"yes"; then
3943 cat >> confdefs.h <<\EOF
3944 #define HAVE_SOCKLEN_T_TYPE 1
3949 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3950 echo "configure:3951: checking for sig_atomic_t type" >&5
3951 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3959 #include <sys/types.h>
3969 if { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3971 samba_cv_sig_atomic_t=yes
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3976 samba_cv_sig_atomic_t=no
3981 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3982 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3983 cat >> confdefs.h <<\EOF
3984 #define HAVE_SIG_ATOMIC_T_TYPE 1
3989 # stupid headers have the functions but no declaration. grrrr.
3991 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3992 echo "configure:3993: checking for errno declaration" >&5
3993 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4005 if { (eval echo configure:4006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4007 ac_cv_have_errno_decl=yes
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4012 ac_cv_have_errno_decl=no
4017 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4018 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_ERRNO_DECL 1
4026 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4027 echo "configure:4028: checking for setresuid declaration" >&5
4028 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4037 int i = (int)setresuid
4040 if { (eval echo configure:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4042 ac_cv_have_setresuid_decl=yes
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 ac_cv_have_setresuid_decl=no
4052 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4053 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4054 cat >> confdefs.h <<\EOF
4055 #define HAVE_SETRESUID_DECL 1
4061 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4062 echo "configure:4063: checking for setresgid declaration" >&5
4063 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4072 int i = (int)setresgid
4075 if { (eval echo configure:4076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4077 ac_cv_have_setresgid_decl=yes
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 ac_cv_have_setresgid_decl=no
4087 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4088 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4089 cat >> confdefs.h <<\EOF
4090 #define HAVE_SETRESGID_DECL 1
4096 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4097 echo "configure:4098: checking for asprintf declaration" >&5
4098 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4107 int i = (int)asprintf
4110 if { (eval echo configure:4111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4112 ac_cv_have_asprintf_decl=yes
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4117 ac_cv_have_asprintf_decl=no
4122 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4123 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4124 cat >> confdefs.h <<\EOF
4125 #define HAVE_ASPRINTF_DECL 1
4131 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4132 echo "configure:4133: checking for vasprintf declaration" >&5
4133 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4142 int i = (int)vasprintf
4145 if { (eval echo configure:4146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4147 ac_cv_have_vasprintf_decl=yes
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 ac_cv_have_vasprintf_decl=no
4157 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4158 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4159 cat >> confdefs.h <<\EOF
4160 #define HAVE_VASPRINTF_DECL 1
4166 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4167 echo "configure:4168: checking for vsnprintf declaration" >&5
4168 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4172 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4177 int i = (int)vsnprintf
4180 if { (eval echo configure:4181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4182 ac_cv_have_vsnprintf_decl=yes
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4187 ac_cv_have_vsnprintf_decl=no
4192 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4193 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4194 cat >> confdefs.h <<\EOF
4195 #define HAVE_VSNPRINTF_DECL 1
4201 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4202 echo "configure:4203: checking for snprintf declaration" >&5
4203 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4212 int i = (int)snprintf
4215 if { (eval echo configure:4216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4217 ac_cv_have_snprintf_decl=yes
4219 echo "configure: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4222 ac_cv_have_snprintf_decl=no
4227 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4228 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4229 cat >> confdefs.h <<\EOF
4230 #define HAVE_SNPRINTF_DECL 1
4236 # and glibc has setresuid under linux but the function does
4237 # nothing until kernel 2.1.44! very dumb.
4238 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4239 echo "configure:4240: checking for real setresuid" >&5
4240 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4244 if test "$cross_compiling" = yes; then
4245 samba_cv_have_setresuid=cross
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4251 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4255 samba_cv_have_setresuid=yes
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4260 samba_cv_have_setresuid=no
4267 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4268 if test x"$samba_cv_have_setresuid" = x"yes"; then
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_SETRESUID 1
4275 # Do the same check for setresguid...
4277 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4278 echo "configure:4279: checking for real setresgid" >&5
4279 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4283 if test "$cross_compiling" = yes; then
4284 samba_cv_have_setresgid=cross
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4291 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4295 samba_cv_have_setresgid=yes
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 samba_cv_have_setresgid=no
4307 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4308 if test x"$samba_cv_have_setresgid" = x"yes"; then
4309 cat >> confdefs.h <<\EOF
4310 #define HAVE_SETRESGID 1
4315 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4316 echo "configure:4317: checking for 8-bit clean memcmp" >&5
4317 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 if test "$cross_compiling" = yes; then
4321 ac_cv_func_memcmp_clean=no
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4329 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4330 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4334 if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4336 ac_cv_func_memcmp_clean=yes
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4341 ac_cv_func_memcmp_clean=no
4348 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4349 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4352 ###############################################
4353 # test for where we get crypt() from
4354 for ac_func in crypt
4356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4357 echo "configure:4358: checking for $ac_func" >&5
4358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4364 /* System header to define __stub macros and hopefully few prototypes,
4365 which can conflict with char $ac_func(); below. */
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 /* We use char because int might match the return type of a gcc2
4369 builtin and then its argument prototype would still apply. */
4374 /* The GNU C library defines this for functions which it implements
4375 to always fail with ENOSYS. Some functions are actually named
4376 something starting with __ and the normal name is an alias. */
4377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4387 eval "ac_cv_func_$ac_func=yes"
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4392 eval "ac_cv_func_$ac_func=no"
4397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4398 echo "$ac_t""yes" 1>&6
4399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4400 cat >> confdefs.h <<EOF
4401 #define $ac_tr_func 1
4405 echo "$ac_t""no" 1>&6
4409 if test x"$ac_cv_func_crypt" = x"no"; then
4410 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4411 echo "configure:4412: checking for crypt in -lcrypt" >&5
4412 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 ac_save_LIBS="$LIBS"
4417 LIBS="-lcrypt $LIBS"
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4432 eval "ac_cv_lib_$ac_lib_var=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 eval "ac_cv_lib_$ac_lib_var=no"
4440 LIBS="$ac_save_LIBS"
4443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 LIBS="$LIBS -lcrypt";
4446 cat >> confdefs.h <<\EOF
4447 #define HAVE_CRYPT 1
4451 echo "$ac_t""no" 1>&6
4457 ###############################################
4458 # Readline included by default unless explicitly asked not to
4459 test "${with_readline+set}" != "set" && with_readline=yes
4461 # test for where we get readline() from
4462 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4463 echo "configure:4464: checking whether to use readline" >&5
4464 # Check whether --with-readline or --without-readline was given.
4465 if test "${with_readline+set}" = set; then
4466 withval="$with_readline"
4467 case "$with_readline" in
4469 echo "$ac_t""yes" 1>&6
4471 for ac_hdr in readline.h history.h readline/readline.h
4473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_hdr" >&5
4476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4485 { (eval echo configure:4486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4487 if test -z "$ac_err"; then
4489 eval "ac_cv_header_$ac_safe=yes"
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4495 eval "ac_cv_header_$ac_safe=no"
4499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_hdr 1
4507 echo "$ac_t""no" 1>&6
4511 for ac_hdr in readline/history.h
4513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_hdr" >&5
4516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4525 { (eval echo configure:4526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4527 if test -z "$ac_err"; then
4529 eval "ac_cv_header_$ac_safe=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 eval "ac_cv_header_$ac_safe=no"
4539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_hdr 1
4547 echo "$ac_t""no" 1>&6
4552 for ac_hdr in readline.h readline/readline.h
4554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_hdr" >&5
4557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4566 { (eval echo configure:4567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4568 if test -z "$ac_err"; then
4570 eval "ac_cv_header_$ac_safe=yes"
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4576 eval "ac_cv_header_$ac_safe=no"
4580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4583 cat >> confdefs.h <<EOF
4584 #define $ac_tr_hdr 1
4587 for termlib in ncurses curses termcap terminfo termlib; do
4588 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4589 echo "configure:4590: checking for tgetent in -l${termlib}" >&5
4590 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 ac_save_LIBS="$LIBS"
4595 LIBS="-l${termlib} $LIBS"
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4608 if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4610 eval "ac_cv_lib_$ac_lib_var=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 eval "ac_cv_lib_$ac_lib_var=no"
4618 LIBS="$ac_save_LIBS"
4621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4622 echo "$ac_t""yes" 1>&6
4623 TERMLIBS="-l${termlib}"; break
4625 echo "$ac_t""no" 1>&6
4629 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4630 echo "configure:4631: checking for rl_callback_handler_install in -lreadline" >&5
4631 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4635 ac_save_LIBS="$LIBS"
4636 LIBS="-lreadline $TERMLIBS $LIBS"
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 /* Override any gcc2 internal prototype to avoid an error. */
4641 /* We use char because int might match the return type of a gcc2
4642 builtin and then its argument prototype would still apply. */
4643 char rl_callback_handler_install();
4646 rl_callback_handler_install()
4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4651 eval "ac_cv_lib_$ac_lib_var=yes"
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4656 eval "ac_cv_lib_$ac_lib_var=no"
4659 LIBS="$ac_save_LIBS"
4662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4664 TERMLIBS="-lreadline $TERMLIBS"
4665 cat >> confdefs.h <<\EOF
4666 #define HAVE_LIBREADLINE 1
4671 echo "$ac_t""no" 1>&6
4676 echo "$ac_t""no" 1>&6
4682 echo "$ac_t""no" 1>&6
4685 echo "$ac_t""yes" 1>&6
4687 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4688 # alternate readline path
4690 _cppflags=${CPPFLAGS}
4692 # Add additional search path
4693 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4694 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4696 for ac_hdr in readline.h history.h readline/readline.h
4698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4700 echo "configure:4701: checking for $ac_hdr" >&5
4701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4704 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4710 { (eval echo configure:4711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4712 if test -z "$ac_err"; then
4714 eval "ac_cv_header_$ac_safe=yes"
4717 echo "configure: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
4720 eval "ac_cv_header_$ac_safe=no"
4724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4725 echo "$ac_t""yes" 1>&6
4726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4727 cat >> confdefs.h <<EOF
4728 #define $ac_tr_hdr 1
4732 echo "$ac_t""no" 1>&6
4736 for ac_hdr in readline/history.h
4738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4740 echo "configure:4741: checking for $ac_hdr" >&5
4741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 cat > conftest.$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4750 { (eval echo configure:4751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4752 if test -z "$ac_err"; then
4754 eval "ac_cv_header_$ac_safe=yes"
4757 echo "configure: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4760 eval "ac_cv_header_$ac_safe=no"
4764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4767 cat >> confdefs.h <<EOF
4768 #define $ac_tr_hdr 1
4772 echo "$ac_t""no" 1>&6
4777 for ac_hdr in readline.h readline/readline.h
4779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4781 echo "configure:4782: checking for $ac_hdr" >&5
4782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4791 { (eval echo configure:4792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4793 if test -z "$ac_err"; then
4795 eval "ac_cv_header_$ac_safe=yes"
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4801 eval "ac_cv_header_$ac_safe=no"
4805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4808 cat >> confdefs.h <<EOF
4809 #define $ac_tr_hdr 1
4812 for termlib in ncurses curses termcap terminfo termlib; do
4813 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4814 echo "configure:4815: checking for tgetent in -l${termlib}" >&5
4815 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 ac_save_LIBS="$LIBS"
4820 LIBS="-l${termlib} $LIBS"
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 /* Override any gcc2 internal prototype to avoid an error. */
4825 /* We use char because int might match the return type of a gcc2
4826 builtin and then its argument prototype would still apply. */
4833 if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4835 eval "ac_cv_lib_$ac_lib_var=yes"
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 eval "ac_cv_lib_$ac_lib_var=no"
4843 LIBS="$ac_save_LIBS"
4846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4847 echo "$ac_t""yes" 1>&6
4848 TERMLIBS="-l${termlib}"; break
4850 echo "$ac_t""no" 1>&6
4854 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4855 echo "configure:4856: checking for rl_callback_handler_install in -lreadline" >&5
4856 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4860 ac_save_LIBS="$LIBS"
4861 LIBS="-lreadline $TERMLIBS $LIBS"
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4865 /* Override any gcc2 internal prototype to avoid an error. */
4866 /* We use char because int might match the return type of a gcc2
4867 builtin and then its argument prototype would still apply. */
4868 char rl_callback_handler_install();
4871 rl_callback_handler_install()
4874 if { (eval echo configure:4875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4876 eval "ac_cv_lib_$ac_lib_var=yes"
4878 echo "configure: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4881 eval "ac_cv_lib_$ac_lib_var=no"
4884 LIBS="$ac_save_LIBS"
4887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4888 echo "$ac_t""yes" 1>&6
4889 TERMLDFLAGS="-L$with_readline/lib"
4890 TERMCPPFLAGS="-I$with_readline/include"
4891 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4892 TERMLIBS="-lreadline $TERMLIBS"
4893 cat >> confdefs.h <<\EOF
4894 #define HAVE_LIBREADLINE 1
4899 echo "$ac_t""no" 1>&6
4900 TERMLIBS= CPPFLAGS=$_cppflags
4904 echo "$ac_t""no" 1>&6
4913 echo "$ac_t""no" 1>&6
4920 # The following test taken from the cvs sources
4921 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4922 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4923 # libsocket.so which has a bad implementation of gethostbyname (it
4924 # only looks in /etc/hosts), so we only look for -lsocket if we need
4926 for ac_func in connect
4928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4929 echo "configure:4930: checking for $ac_func" >&5
4930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4936 /* System header to define __stub macros and hopefully few prototypes,
4937 which can conflict with char $ac_func(); below. */
4939 /* Override any gcc2 internal prototype to avoid an error. */
4940 /* We use char because int might match the return type of a gcc2
4941 builtin and then its argument prototype would still apply. */
4946 /* The GNU C library defines this for functions which it implements
4947 to always fail with ENOSYS. Some functions are actually named
4948 something starting with __ and the normal name is an alias. */
4949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4959 eval "ac_cv_func_$ac_func=yes"
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 eval "ac_cv_func_$ac_func=no"
4969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4972 cat >> confdefs.h <<EOF
4973 #define $ac_tr_func 1
4977 echo "$ac_t""no" 1>&6
4981 if test x"$ac_cv_func_connect" = x"no"; then
4984 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4985 echo "configure:4986: checking for printf in -lnsl_s" >&5
4986 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 ac_save_LIBS="$LIBS"
4991 LIBS="-lnsl_s $LIBS"
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4995 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5006 eval "ac_cv_lib_$ac_lib_var=yes"
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5011 eval "ac_cv_lib_$ac_lib_var=no"
5014 LIBS="$ac_save_LIBS"
5017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5021 cat >> confdefs.h <<EOF
5022 #define $ac_tr_lib 1
5025 LIBS="-lnsl_s $LIBS"
5028 echo "$ac_t""no" 1>&6
5034 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5035 echo "configure:5036: checking for printf in -lnsl" >&5
5036 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 ac_save_LIBS="$LIBS"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 eval "ac_cv_lib_$ac_lib_var=yes"
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5061 eval "ac_cv_lib_$ac_lib_var=no"
5064 LIBS="$ac_save_LIBS"
5067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5068 echo "$ac_t""yes" 1>&6
5069 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5071 cat >> confdefs.h <<EOF
5072 #define $ac_tr_lib 1
5078 echo "$ac_t""no" 1>&6
5084 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5085 echo "configure:5086: checking for connect in -lsocket" >&5
5086 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 ac_save_LIBS="$LIBS"
5091 LIBS="-lsocket $LIBS"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 eval "ac_cv_lib_$ac_lib_var=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 eval "ac_cv_lib_$ac_lib_var=no"
5114 LIBS="$ac_save_LIBS"
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_lib 1
5125 LIBS="-lsocket $LIBS"
5128 echo "$ac_t""no" 1>&6
5134 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5135 echo "configure:5136: checking for connect in -linet" >&5
5136 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 ac_save_LIBS="$LIBS"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156 eval "ac_cv_lib_$ac_lib_var=yes"
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5161 eval "ac_cv_lib_$ac_lib_var=no"
5164 LIBS="$ac_save_LIBS"
5167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5171 cat >> confdefs.h <<EOF
5172 #define $ac_tr_lib 1
5178 echo "$ac_t""no" 1>&6
5182 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5183 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5184 # ac_cv_func_connect=yes
5185 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5186 cat >> confdefs.h <<\EOF
5187 #define HAVE_CONNECT 1
5193 ###############################################
5194 # test for where we get get_yp_default_domain() from
5195 for ac_func in yp_get_default_domain
5197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5198 echo "configure:5199: checking for $ac_func" >&5
5199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5205 /* System header to define __stub macros and hopefully few prototypes,
5206 which can conflict with char $ac_func(); below. */
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5215 /* The GNU C library defines this for functions which it implements
5216 to always fail with ENOSYS. Some functions are actually named
5217 something starting with __ and the normal name is an alias. */
5218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5226 if { (eval echo configure:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5228 eval "ac_cv_func_$ac_func=yes"
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5233 eval "ac_cv_func_$ac_func=no"
5238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5239 echo "$ac_t""yes" 1>&6
5240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5241 cat >> confdefs.h <<EOF
5242 #define $ac_tr_func 1
5246 echo "$ac_t""no" 1>&6
5250 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5251 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5252 echo "configure:5253: checking for yp_get_default_domain in -lnsl" >&5
5253 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5257 ac_save_LIBS="$LIBS"
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5262 /* Override any gcc2 internal prototype to avoid an error. */
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5265 char yp_get_default_domain();
5268 yp_get_default_domain()
5271 if { (eval echo configure:5272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5273 eval "ac_cv_lib_$ac_lib_var=yes"
5275 echo "configure: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5278 eval "ac_cv_lib_$ac_lib_var=no"
5281 LIBS="$ac_save_LIBS"
5284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5287 cat >> confdefs.h <<\EOF
5288 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5292 echo "$ac_t""no" 1>&6
5297 # Check if we have execl, if not we need to compile smbrun.
5298 for ac_func in execl
5300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5301 echo "configure:5302: checking for $ac_func" >&5
5302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5308 /* System header to define __stub macros and hopefully few prototypes,
5309 which can conflict with char $ac_func(); below. */
5311 /* Override any gcc2 internal prototype to avoid an error. */
5312 /* We use char because int might match the return type of a gcc2
5313 builtin and then its argument prototype would still apply. */
5318 /* The GNU C library defines this for functions which it implements
5319 to always fail with ENOSYS. Some functions are actually named
5320 something starting with __ and the normal name is an alias. */
5321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5329 if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5331 eval "ac_cv_func_$ac_func=yes"
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5336 eval "ac_cv_func_$ac_func=no"
5341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5342 echo "$ac_t""yes" 1>&6
5343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5344 cat >> confdefs.h <<EOF
5345 #define $ac_tr_func 1
5349 echo "$ac_t""no" 1>&6
5353 if test x"$ac_cv_func_execl" = x"no"; then
5354 RUNPROG="bin/smbrun"
5359 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5362 echo "configure:5363: checking for $ac_func" >&5
5363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 /* System header to define __stub macros and hopefully few prototypes,
5370 which can conflict with char $ac_func(); below. */
5372 /* Override any gcc2 internal prototype to avoid an error. */
5373 /* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5379 /* The GNU C library defines this for functions which it implements
5380 to always fail with ENOSYS. Some functions are actually named
5381 something starting with __ and the normal name is an alias. */
5382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392 eval "ac_cv_func_$ac_func=yes"
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5397 eval "ac_cv_func_$ac_func=no"
5402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5405 cat >> confdefs.h <<EOF
5406 #define $ac_tr_func 1
5410 echo "$ac_t""no" 1>&6
5414 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5417 echo "configure:5418: checking for $ac_func" >&5
5418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 /* System header to define __stub macros and hopefully few prototypes,
5425 which can conflict with char $ac_func(); below. */
5427 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5434 /* The GNU C library defines this for functions which it implements
5435 to always fail with ENOSYS. Some functions are actually named
5436 something starting with __ and the normal name is an alias. */
5437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5447 eval "ac_cv_func_$ac_func=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 eval "ac_cv_func_$ac_func=no"
5457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5458 echo "$ac_t""yes" 1>&6
5459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5460 cat >> confdefs.h <<EOF
5461 #define $ac_tr_func 1
5465 echo "$ac_t""no" 1>&6
5469 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5472 echo "configure:5473: checking for $ac_func" >&5
5473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5479 /* System header to define __stub macros and hopefully few prototypes,
5480 which can conflict with char $ac_func(); below. */
5482 /* Override any gcc2 internal prototype to avoid an error. */
5483 /* We use char because int might match the return type of a gcc2
5484 builtin and then its argument prototype would still apply. */
5489 /* The GNU C library defines this for functions which it implements
5490 to always fail with ENOSYS. Some functions are actually named
5491 something starting with __ and the normal name is an alias. */
5492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5500 if { (eval echo configure:5501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5502 eval "ac_cv_func_$ac_func=yes"
5504 echo "configure: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5507 eval "ac_cv_func_$ac_func=no"
5512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5513 echo "$ac_t""yes" 1>&6
5514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5515 cat >> confdefs.h <<EOF
5516 #define $ac_tr_func 1
5520 echo "$ac_t""no" 1>&6
5524 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5527 echo "configure:5528: checking for $ac_func" >&5
5528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 /* System header to define __stub macros and hopefully few prototypes,
5535 which can conflict with char $ac_func(); below. */
5537 /* Override any gcc2 internal prototype to avoid an error. */
5538 /* We use char because int might match the return type of a gcc2
5539 builtin and then its argument prototype would still apply. */
5544 /* The GNU C library defines this for functions which it implements
5545 to always fail with ENOSYS. Some functions are actually named
5546 something starting with __ and the normal name is an alias. */
5547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5555 if { (eval echo configure:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557 eval "ac_cv_func_$ac_func=yes"
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 eval "ac_cv_func_$ac_func=no"
5567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5568 echo "$ac_t""yes" 1>&6
5569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5570 cat >> confdefs.h <<EOF
5571 #define $ac_tr_func 1
5575 echo "$ac_t""no" 1>&6
5579 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_func" >&5
5583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 /* System header to define __stub macros and hopefully few prototypes,
5590 which can conflict with char $ac_func(); below. */
5592 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5599 /* The GNU C library defines this for functions which it implements
5600 to always fail with ENOSYS. Some functions are actually named
5601 something starting with __ and the normal name is an alias. */
5602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5612 eval "ac_cv_func_$ac_func=yes"
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5617 eval "ac_cv_func_$ac_func=no"
5622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5623 echo "$ac_t""yes" 1>&6
5624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5625 cat >> confdefs.h <<EOF
5626 #define $ac_tr_func 1
5630 echo "$ac_t""no" 1>&6
5634 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5637 echo "configure:5638: checking for $ac_func" >&5
5638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 /* System header to define __stub macros and hopefully few prototypes,
5645 which can conflict with char $ac_func(); below. */
5647 /* Override any gcc2 internal prototype to avoid an error. */
5648 /* We use char because int might match the return type of a gcc2
5649 builtin and then its argument prototype would still apply. */
5654 /* The GNU C library defines this for functions which it implements
5655 to always fail with ENOSYS. Some functions are actually named
5656 something starting with __ and the normal name is an alias. */
5657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5665 if { (eval echo configure:5666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5667 eval "ac_cv_func_$ac_func=yes"
5669 echo "configure: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 eval "ac_cv_func_$ac_func=no"
5677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5678 echo "$ac_t""yes" 1>&6
5679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5680 cat >> confdefs.h <<EOF
5681 #define $ac_tr_func 1
5685 echo "$ac_t""no" 1>&6
5689 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5692 echo "configure:5693: checking for $ac_func" >&5
5693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5696 cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5699 /* System header to define __stub macros and hopefully few prototypes,
5700 which can conflict with char $ac_func(); below. */
5702 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5709 /* The GNU C library defines this for functions which it implements
5710 to always fail with ENOSYS. Some functions are actually named
5711 something starting with __ and the normal name is an alias. */
5712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5722 eval "ac_cv_func_$ac_func=yes"
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5727 eval "ac_cv_func_$ac_func=no"
5732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5735 cat >> confdefs.h <<EOF
5736 #define $ac_tr_func 1
5740 echo "$ac_t""no" 1>&6
5744 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5747 echo "configure:5748: checking for $ac_func" >&5
5748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 /* System header to define __stub macros and hopefully few prototypes,
5755 which can conflict with char $ac_func(); below. */
5757 /* Override any gcc2 internal prototype to avoid an error. */
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5764 /* The GNU C library defines this for functions which it implements
5765 to always fail with ENOSYS. Some functions are actually named
5766 something starting with __ and the normal name is an alias. */
5767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5777 eval "ac_cv_func_$ac_func=yes"
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5782 eval "ac_cv_func_$ac_func=no"
5787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5788 echo "$ac_t""yes" 1>&6
5789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5790 cat >> confdefs.h <<EOF
5791 #define $ac_tr_func 1
5795 echo "$ac_t""no" 1>&6
5799 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5802 echo "configure:5803: checking for $ac_func" >&5
5803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 cat > conftest.$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5809 /* System header to define __stub macros and hopefully few prototypes,
5810 which can conflict with char $ac_func(); below. */
5812 /* Override any gcc2 internal prototype to avoid an error. */
5813 /* We use char because int might match the return type of a gcc2
5814 builtin and then its argument prototype would still apply. */
5819 /* The GNU C library defines this for functions which it implements
5820 to always fail with ENOSYS. Some functions are actually named
5821 something starting with __ and the normal name is an alias. */
5822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5830 if { (eval echo configure:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5832 eval "ac_cv_func_$ac_func=yes"
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5837 eval "ac_cv_func_$ac_func=no"
5842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5843 echo "$ac_t""yes" 1>&6
5844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5845 cat >> confdefs.h <<EOF
5846 #define $ac_tr_func 1
5850 echo "$ac_t""no" 1>&6
5854 # setbuffer is needed for smbtorture
5855 for ac_func in setbuffer
5857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5858 echo "configure:5859: checking for $ac_func" >&5
5859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5862 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 /* System header to define __stub macros and hopefully few prototypes,
5866 which can conflict with char $ac_func(); below. */
5868 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5888 eval "ac_cv_func_$ac_func=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5893 eval "ac_cv_func_$ac_func=no"
5898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5901 cat >> confdefs.h <<EOF
5902 #define $ac_tr_func 1
5906 echo "$ac_t""no" 1>&6
5911 # syscall() is needed for smbwrapper.
5912 for ac_func in syscall
5914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5915 echo "configure:5916: checking for $ac_func" >&5
5916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 /* System header to define __stub macros and hopefully few prototypes,
5923 which can conflict with char $ac_func(); below. */
5925 /* Override any gcc2 internal prototype to avoid an error. */
5926 /* We use char because int might match the return type of a gcc2
5927 builtin and then its argument prototype would still apply. */
5932 /* The GNU C library defines this for functions which it implements
5933 to always fail with ENOSYS. Some functions are actually named
5934 something starting with __ and the normal name is an alias. */
5935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5943 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 eval "ac_cv_func_$ac_func=yes"
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 eval "ac_cv_func_$ac_func=no"
5955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5956 echo "$ac_t""yes" 1>&6
5957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5958 cat >> confdefs.h <<EOF
5959 #define $ac_tr_func 1
5963 echo "$ac_t""no" 1>&6
5968 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5971 echo "configure:5972: checking for $ac_func" >&5
5972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 /* System header to define __stub macros and hopefully few prototypes,
5979 which can conflict with char $ac_func(); below. */
5981 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5988 /* The GNU C library defines this for functions which it implements
5989 to always fail with ENOSYS. Some functions are actually named
5990 something starting with __ and the normal name is an alias. */
5991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5999 if { (eval echo configure:6000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6001 eval "ac_cv_func_$ac_func=yes"
6003 echo "configure: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6006 eval "ac_cv_func_$ac_func=no"
6011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6012 echo "$ac_t""yes" 1>&6
6013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6014 cat >> confdefs.h <<EOF
6015 #define $ac_tr_func 1
6019 echo "$ac_t""no" 1>&6
6023 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_func" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func(); below. */
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6056 eval "ac_cv_func_$ac_func=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 eval "ac_cv_func_$ac_func=no"
6066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h <<EOF
6070 #define $ac_tr_func 1
6074 echo "$ac_t""no" 1>&6
6078 for ac_func in __getcwd _getcwd
6080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6081 echo "configure:6082: checking for $ac_func" >&5
6082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 /* System header to define __stub macros and hopefully few prototypes,
6089 which can conflict with char $ac_func(); below. */
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6098 /* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 eval "ac_cv_func_$ac_func=yes"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6116 eval "ac_cv_func_$ac_func=no"
6121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6122 echo "$ac_t""yes" 1>&6
6123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6124 cat >> confdefs.h <<EOF
6125 #define $ac_tr_func 1
6129 echo "$ac_t""no" 1>&6
6133 for ac_func in __xstat __fxstat __lxstat
6135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6136 echo "configure:6137: checking for $ac_func" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* System header to define __stub macros and hopefully few prototypes,
6144 which can conflict with char $ac_func(); below. */
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6166 eval "ac_cv_func_$ac_func=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 eval "ac_cv_func_$ac_func=no"
6176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6179 cat >> confdefs.h <<EOF
6180 #define $ac_tr_func 1
6184 echo "$ac_t""no" 1>&6
6188 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6191 echo "configure:6192: checking for $ac_func" >&5
6192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6195 cat > conftest.$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6198 /* System header to define __stub macros and hopefully few prototypes,
6199 which can conflict with char $ac_func(); below. */
6201 /* Override any gcc2 internal prototype to avoid an error. */
6202 /* We use char because int might match the return type of a gcc2
6203 builtin and then its argument prototype would still apply. */
6208 /* The GNU C library defines this for functions which it implements
6209 to always fail with ENOSYS. Some functions are actually named
6210 something starting with __ and the normal name is an alias. */
6211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6219 if { (eval echo configure:6220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6221 eval "ac_cv_func_$ac_func=yes"
6223 echo "configure: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6226 eval "ac_cv_func_$ac_func=no"
6231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6234 cat >> confdefs.h <<EOF
6235 #define $ac_tr_func 1
6239 echo "$ac_t""no" 1>&6
6243 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6246 echo "configure:6247: checking for $ac_func" >&5
6247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 /* System header to define __stub macros and hopefully few prototypes,
6254 which can conflict with char $ac_func(); below. */
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6276 eval "ac_cv_func_$ac_func=yes"
6278 echo "configure: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 eval "ac_cv_func_$ac_func=no"
6286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6289 cat >> confdefs.h <<EOF
6290 #define $ac_tr_func 1
6294 echo "$ac_t""no" 1>&6
6298 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_func" >&5
6302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* System header to define __stub macros and hopefully few prototypes,
6309 which can conflict with char $ac_func(); below. */
6311 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6318 /* The GNU C library defines this for functions which it implements
6319 to always fail with ENOSYS. Some functions are actually named
6320 something starting with __ and the normal name is an alias. */
6321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6331 eval "ac_cv_func_$ac_func=yes"
6333 echo "configure: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6336 eval "ac_cv_func_$ac_func=no"
6341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6344 cat >> confdefs.h <<EOF
6345 #define $ac_tr_func 1
6349 echo "$ac_t""no" 1>&6
6353 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6356 echo "configure:6357: checking for $ac_func" >&5
6357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6363 /* System header to define __stub macros and hopefully few prototypes,
6364 which can conflict with char $ac_func(); below. */
6366 /* Override any gcc2 internal prototype to avoid an error. */
6367 /* We use char because int might match the return type of a gcc2
6368 builtin and then its argument prototype would still apply. */
6373 /* The GNU C library defines this for functions which it implements
6374 to always fail with ENOSYS. Some functions are actually named
6375 something starting with __ and the normal name is an alias. */
6376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386 eval "ac_cv_func_$ac_func=yes"
6388 echo "configure: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6391 eval "ac_cv_func_$ac_func=no"
6396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6397 echo "$ac_t""yes" 1>&6
6398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6399 cat >> confdefs.h <<EOF
6400 #define $ac_tr_func 1
6404 echo "$ac_t""no" 1>&6
6408 for ac_func in _write __write _fork __fork
6410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6411 echo "configure:6412: checking for $ac_func" >&5
6412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6415 cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char $ac_func(); below. */
6421 /* Override any gcc2 internal prototype to avoid an error. */
6422 /* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */
6428 /* The GNU C library defines this for functions which it implements
6429 to always fail with ENOSYS. Some functions are actually named
6430 something starting with __ and the normal name is an alias. */
6431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 eval "ac_cv_func_$ac_func=yes"
6443 echo "configure: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6446 eval "ac_cv_func_$ac_func=no"
6451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6452 echo "$ac_t""yes" 1>&6
6453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6454 cat >> confdefs.h <<EOF
6455 #define $ac_tr_func 1
6459 echo "$ac_t""no" 1>&6
6463 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6466 echo "configure:6467: checking for $ac_func" >&5
6467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char $ac_func(); below. */
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 eval "ac_cv_func_$ac_func=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_func_$ac_func=no"
6506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6509 cat >> confdefs.h <<EOF
6510 #define $ac_tr_func 1
6514 echo "$ac_t""no" 1>&6
6518 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6521 echo "configure:6522: checking for $ac_func" >&5
6522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6525 cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529 which can conflict with char $ac_func(); below. */
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6538 /* The GNU C library defines this for functions which it implements
6539 to always fail with ENOSYS. Some functions are actually named
6540 something starting with __ and the normal name is an alias. */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6551 eval "ac_cv_func_$ac_func=yes"
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6556 eval "ac_cv_func_$ac_func=no"
6561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6564 cat >> confdefs.h <<EOF
6565 #define $ac_tr_func 1
6569 echo "$ac_t""no" 1>&6
6573 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6576 echo "configure:6577: checking for $ac_func" >&5
6577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6578 echo $ac_n "(cached) $ac_c" 1>&6
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char $ac_func(); below. */
6586 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6593 /* The GNU C library defines this for functions which it implements
6594 to always fail with ENOSYS. Some functions are actually named
6595 something starting with __ and the normal name is an alias. */
6596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6604 if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606 eval "ac_cv_func_$ac_func=yes"
6608 echo "configure: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6611 eval "ac_cv_func_$ac_func=no"
6616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6617 echo "$ac_t""yes" 1>&6
6618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6619 cat >> confdefs.h <<EOF
6620 #define $ac_tr_func 1
6624 echo "$ac_t""no" 1>&6
6628 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6631 echo "configure:6632: checking for $ac_func" >&5
6632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 /* System header to define __stub macros and hopefully few prototypes,
6639 which can conflict with char $ac_func(); below. */
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6648 /* The GNU C library defines this for functions which it implements
6649 to always fail with ENOSYS. Some functions are actually named
6650 something starting with __ and the normal name is an alias. */
6651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 eval "ac_cv_func_$ac_func=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 eval "ac_cv_func_$ac_func=no"
6671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6674 cat >> confdefs.h <<EOF
6675 #define $ac_tr_func 1
6679 echo "$ac_t""no" 1>&6
6683 for ac_func in open64 _open64 __open64 creat64
6685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6686 echo "configure:6687: checking for $ac_func" >&5
6687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* System header to define __stub macros and hopefully few prototypes,
6694 which can conflict with char $ac_func(); below. */
6696 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6703 /* The GNU C library defines this for functions which it implements
6704 to always fail with ENOSYS. Some functions are actually named
6705 something starting with __ and the normal name is an alias. */
6706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6714 if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6716 eval "ac_cv_func_$ac_func=yes"
6718 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 eval "ac_cv_func_$ac_func=no"
6726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6729 cat >> confdefs.h <<EOF
6730 #define $ac_tr_func 1
6734 echo "$ac_t""no" 1>&6
6740 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6743 if test x$ac_cv_func_stat64 = xno ; then
6744 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6745 echo "configure:6746: checking for stat64 in <sys/stat.h>" >&5
6746 cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6750 #if defined(HAVE_UNISTD_H)
6753 #include <sys/stat.h>
6756 struct stat64 st64; exit(stat64(".",&st64));
6759 if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 ac_cv_func_stat64=yes
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6767 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6768 if test x$ac_cv_func_stat64 = xyes ; then
6769 cat >> confdefs.h <<\EOF
6770 #define HAVE_STAT64 1
6776 if test x$ac_cv_func_lstat64 = xno ; then
6777 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6778 echo "configure:6779: checking for lstat64 in <sys/stat.h>" >&5
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6783 #if defined(HAVE_UNISTD_H)
6786 #include <sys/stat.h>
6789 struct stat64 st64; exit(lstat64(".",&st64));
6792 if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6794 ac_cv_func_lstat64=yes
6796 echo "configure: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6800 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6801 if test x$ac_cv_func_lstat64 = xyes ; then
6802 cat >> confdefs.h <<\EOF
6803 #define HAVE_LSTAT64 1
6809 if test x$ac_cv_func_fstat64 = xno ; then
6810 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6811 echo "configure:6812: checking for fstat64 in <sys/stat.h>" >&5
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6816 #if defined(HAVE_UNISTD_H)
6819 #include <sys/stat.h>
6822 struct stat64 st64; exit(fstat64(0,&st64));
6825 if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6827 ac_cv_func_fstat64=yes
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6833 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6834 if test x$ac_cv_func_fstat64 = xyes ; then
6835 cat >> confdefs.h <<\EOF
6836 #define HAVE_FSTAT64 1
6843 # If no strcasecmp, check for it in some known places
6844 # It is in -lresolv on ReliantUNIX and UnixWare
6845 # -lresolve *must* follow -lnsl for name resolution to work properly
6848 if test x$ac_cv_func_strcasecmp = xno ; then
6849 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6850 echo "configure:6851: checking for strcasecmp in -lresolv" >&5
6851 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6855 ac_save_LIBS="$LIBS"
6856 LIBS="-lresolv $LIBS"
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 eval "ac_cv_lib_$ac_lib_var=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_lib_$ac_lib_var=no"
6879 LIBS="$ac_save_LIBS"
6882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6884 LIBS="$LIBS -lresolv"
6885 cat >> confdefs.h <<\EOF
6886 #define HAVE_STRCASECMP 1
6890 echo "$ac_t""no" 1>&6
6896 # Check for the functions putprpwnam, set_auth_parameters,
6897 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6898 # Needed for OSF1 and HPUX.
6902 *-lsecurity*) for ac_func in putprpwnam
6904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6905 echo "configure:6906: checking for $ac_func" >&5
6906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 cat > conftest.$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6912 /* System header to define __stub macros and hopefully few prototypes,
6913 which can conflict with char $ac_func(); below. */
6915 /* Override any gcc2 internal prototype to avoid an error. */
6916 /* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */
6922 /* The GNU C library defines this for functions which it implements
6923 to always fail with ENOSYS. Some functions are actually named
6924 something starting with __ and the normal name is an alias. */
6925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6935 eval "ac_cv_func_$ac_func=yes"
6937 echo "configure: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6940 eval "ac_cv_func_$ac_func=no"
6945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6948 cat >> confdefs.h <<EOF
6949 #define $ac_tr_func 1
6953 echo "$ac_t""no" 1>&6
6957 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6958 echo "configure:6959: checking for putprpwnam in -lsecurity" >&5
6959 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6963 ac_save_LIBS="$LIBS"
6964 LIBS="-lsecurity $LIBS"
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 /* Override any gcc2 internal prototype to avoid an error. */
6969 /* We use char because int might match the return type of a gcc2
6970 builtin and then its argument prototype would still apply. */
6977 if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6979 eval "ac_cv_lib_$ac_lib_var=yes"
6981 echo "configure: failed program was:" >&5
6982 cat conftest.$ac_ext >&5
6984 eval "ac_cv_lib_$ac_lib_var=no"
6987 LIBS="$ac_save_LIBS"
6990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6991 echo "$ac_t""yes" 1>&6
6992 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6993 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6994 cat >> confdefs.h <<EOF
6995 #define $ac_tr_lib 1
6998 LIBS="-lsecurity $LIBS"
7001 echo "$ac_t""no" 1>&6
7004 for ac_func in putprpwnam
7006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7007 echo "configure:7008: checking for $ac_func" >&5
7008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 /* System header to define __stub macros and hopefully few prototypes,
7015 which can conflict with char $ac_func(); below. */
7017 /* Override any gcc2 internal prototype to avoid an error. */
7018 /* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */
7024 /* The GNU C library defines this for functions which it implements
7025 to always fail with ENOSYS. Some functions are actually named
7026 something starting with __ and the normal name is an alias. */
7027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7037 eval "ac_cv_func_$ac_func=yes"
7039 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7042 eval "ac_cv_func_$ac_func=no"
7047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7048 echo "$ac_t""yes" 1>&6
7049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7050 cat >> confdefs.h <<EOF
7051 #define $ac_tr_func 1
7055 echo "$ac_t""no" 1>&6
7063 *-lsec*) for ac_func in putprpwnam
7065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7066 echo "configure:7067: checking for $ac_func" >&5
7067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7070 cat > conftest.$ac_ext <<EOF
7071 #line 7072 "configure"
7072 #include "confdefs.h"
7073 /* System header to define __stub macros and hopefully few prototypes,
7074 which can conflict with char $ac_func(); below. */
7076 /* Override any gcc2 internal prototype to avoid an error. */
7077 /* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7083 /* The GNU C library defines this for functions which it implements
7084 to always fail with ENOSYS. Some functions are actually named
7085 something starting with __ and the normal name is an alias. */
7086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7094 if { (eval echo configure:7095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7096 eval "ac_cv_func_$ac_func=yes"
7098 echo "configure: failed program was:" >&5
7099 cat conftest.$ac_ext >&5
7101 eval "ac_cv_func_$ac_func=no"
7106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7107 echo "$ac_t""yes" 1>&6
7108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7109 cat >> confdefs.h <<EOF
7110 #define $ac_tr_func 1
7114 echo "$ac_t""no" 1>&6
7118 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7119 echo "configure:7120: checking for putprpwnam in -lsec" >&5
7120 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7124 ac_save_LIBS="$LIBS"
7126 cat > conftest.$ac_ext <<EOF
7127 #line 7128 "configure"
7128 #include "confdefs.h"
7129 /* Override any gcc2 internal prototype to avoid an error. */
7130 /* We use char because int might match the return type of a gcc2
7131 builtin and then its argument prototype would still apply. */
7138 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7140 eval "ac_cv_lib_$ac_lib_var=yes"
7142 echo "configure: failed program was:" >&5
7143 cat conftest.$ac_ext >&5
7145 eval "ac_cv_lib_$ac_lib_var=no"
7148 LIBS="$ac_save_LIBS"
7151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7152 echo "$ac_t""yes" 1>&6
7153 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7154 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7155 cat >> confdefs.h <<EOF
7156 #define $ac_tr_lib 1
7162 echo "$ac_t""no" 1>&6
7165 for ac_func in putprpwnam
7167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7168 echo "configure:7169: checking for $ac_func" >&5
7169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7172 cat > conftest.$ac_ext <<EOF
7173 #line 7174 "configure"
7174 #include "confdefs.h"
7175 /* System header to define __stub macros and hopefully few prototypes,
7176 which can conflict with char $ac_func(); below. */
7178 /* Override any gcc2 internal prototype to avoid an error. */
7179 /* We use char because int might match the return type of a gcc2
7180 builtin and then its argument prototype would still apply. */
7185 /* The GNU C library defines this for functions which it implements
7186 to always fail with ENOSYS. Some functions are actually named
7187 something starting with __ and the normal name is an alias. */
7188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7196 if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198 eval "ac_cv_func_$ac_func=yes"
7200 echo "configure: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7203 eval "ac_cv_func_$ac_func=no"
7208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7209 echo "$ac_t""yes" 1>&6
7210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7211 cat >> confdefs.h <<EOF
7212 #define $ac_tr_func 1
7216 echo "$ac_t""no" 1>&6
7225 *-lsecurity*) for ac_func in set_auth_parameters
7227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7228 echo "configure:7229: checking for $ac_func" >&5
7229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7232 cat > conftest.$ac_ext <<EOF
7233 #line 7234 "configure"
7234 #include "confdefs.h"
7235 /* System header to define __stub macros and hopefully few prototypes,
7236 which can conflict with char $ac_func(); below. */
7238 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7245 /* The GNU C library defines this for functions which it implements
7246 to always fail with ENOSYS. Some functions are actually named
7247 something starting with __ and the normal name is an alias. */
7248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7256 if { (eval echo configure:7257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7258 eval "ac_cv_func_$ac_func=yes"
7260 echo "configure: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7263 eval "ac_cv_func_$ac_func=no"
7268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7269 echo "$ac_t""yes" 1>&6
7270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7271 cat >> confdefs.h <<EOF
7272 #define $ac_tr_func 1
7276 echo "$ac_t""no" 1>&6
7280 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7281 echo "configure:7282: checking for set_auth_parameters in -lsecurity" >&5
7282 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7286 ac_save_LIBS="$LIBS"
7287 LIBS="-lsecurity $LIBS"
7288 cat > conftest.$ac_ext <<EOF
7289 #line 7290 "configure"
7290 #include "confdefs.h"
7291 /* Override any gcc2 internal prototype to avoid an error. */
7292 /* We use char because int might match the return type of a gcc2
7293 builtin and then its argument prototype would still apply. */
7294 char set_auth_parameters();
7297 set_auth_parameters()
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7302 eval "ac_cv_lib_$ac_lib_var=yes"
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 eval "ac_cv_lib_$ac_lib_var=no"
7310 LIBS="$ac_save_LIBS"
7313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7314 echo "$ac_t""yes" 1>&6
7315 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7316 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7317 cat >> confdefs.h <<EOF
7318 #define $ac_tr_lib 1
7321 LIBS="-lsecurity $LIBS"
7324 echo "$ac_t""no" 1>&6
7327 for ac_func in set_auth_parameters
7329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7330 echo "configure:7331: checking for $ac_func" >&5
7331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7334 cat > conftest.$ac_ext <<EOF
7335 #line 7336 "configure"
7336 #include "confdefs.h"
7337 /* System header to define __stub macros and hopefully few prototypes,
7338 which can conflict with char $ac_func(); below. */
7340 /* Override any gcc2 internal prototype to avoid an error. */
7341 /* We use char because int might match the return type of a gcc2
7342 builtin and then its argument prototype would still apply. */
7347 /* The GNU C library defines this for functions which it implements
7348 to always fail with ENOSYS. Some functions are actually named
7349 something starting with __ and the normal name is an alias. */
7350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7358 if { (eval echo configure:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7360 eval "ac_cv_func_$ac_func=yes"
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 eval "ac_cv_func_$ac_func=no"
7370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7371 echo "$ac_t""yes" 1>&6
7372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7373 cat >> confdefs.h <<EOF
7374 #define $ac_tr_func 1
7378 echo "$ac_t""no" 1>&6
7386 *-lsec*) for ac_func in set_auth_parameters
7388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7389 echo "configure:7390: checking for $ac_func" >&5
7390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7391 echo $ac_n "(cached) $ac_c" 1>&6
7393 cat > conftest.$ac_ext <<EOF
7394 #line 7395 "configure"
7395 #include "confdefs.h"
7396 /* System header to define __stub macros and hopefully few prototypes,
7397 which can conflict with char $ac_func(); below. */
7399 /* Override any gcc2 internal prototype to avoid an error. */
7400 /* We use char because int might match the return type of a gcc2
7401 builtin and then its argument prototype would still apply. */
7406 /* The GNU C library defines this for functions which it implements
7407 to always fail with ENOSYS. Some functions are actually named
7408 something starting with __ and the normal name is an alias. */
7409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7417 if { (eval echo configure:7418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7419 eval "ac_cv_func_$ac_func=yes"
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7424 eval "ac_cv_func_$ac_func=no"
7429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7430 echo "$ac_t""yes" 1>&6
7431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7432 cat >> confdefs.h <<EOF
7433 #define $ac_tr_func 1
7437 echo "$ac_t""no" 1>&6
7441 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7442 echo "configure:7443: checking for set_auth_parameters in -lsec" >&5
7443 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7445 echo $ac_n "(cached) $ac_c" 1>&6
7447 ac_save_LIBS="$LIBS"
7449 cat > conftest.$ac_ext <<EOF
7450 #line 7451 "configure"
7451 #include "confdefs.h"
7452 /* Override any gcc2 internal prototype to avoid an error. */
7453 /* We use char because int might match the return type of a gcc2
7454 builtin and then its argument prototype would still apply. */
7455 char set_auth_parameters();
7458 set_auth_parameters()
7461 if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7463 eval "ac_cv_lib_$ac_lib_var=yes"
7465 echo "configure: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7468 eval "ac_cv_lib_$ac_lib_var=no"
7471 LIBS="$ac_save_LIBS"
7474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7476 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7478 cat >> confdefs.h <<EOF
7479 #define $ac_tr_lib 1
7485 echo "$ac_t""no" 1>&6
7488 for ac_func in set_auth_parameters
7490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7491 echo "configure:7492: checking for $ac_func" >&5
7492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7495 cat > conftest.$ac_ext <<EOF
7496 #line 7497 "configure"
7497 #include "confdefs.h"
7498 /* System header to define __stub macros and hopefully few prototypes,
7499 which can conflict with char $ac_func(); below. */
7501 /* Override any gcc2 internal prototype to avoid an error. */
7502 /* We use char because int might match the return type of a gcc2
7503 builtin and then its argument prototype would still apply. */
7508 /* The GNU C library defines this for functions which it implements
7509 to always fail with ENOSYS. Some functions are actually named
7510 something starting with __ and the normal name is an alias. */
7511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7519 if { (eval echo configure:7520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7521 eval "ac_cv_func_$ac_func=yes"
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7526 eval "ac_cv_func_$ac_func=no"
7531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7532 echo "$ac_t""yes" 1>&6
7533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7534 cat >> confdefs.h <<EOF
7535 #define $ac_tr_func 1
7539 echo "$ac_t""no" 1>&6
7547 # UnixWare 7.x has its getspnam in -lgen
7549 *-lgen*) for ac_func in getspnam
7551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7552 echo "configure:7553: checking for $ac_func" >&5
7553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7554 echo $ac_n "(cached) $ac_c" 1>&6
7556 cat > conftest.$ac_ext <<EOF
7557 #line 7558 "configure"
7558 #include "confdefs.h"
7559 /* System header to define __stub macros and hopefully few prototypes,
7560 which can conflict with char $ac_func(); below. */
7562 /* Override any gcc2 internal prototype to avoid an error. */
7563 /* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7569 /* The GNU C library defines this for functions which it implements
7570 to always fail with ENOSYS. Some functions are actually named
7571 something starting with __ and the normal name is an alias. */
7572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7582 eval "ac_cv_func_$ac_func=yes"
7584 echo "configure: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7587 eval "ac_cv_func_$ac_func=no"
7592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7595 cat >> confdefs.h <<EOF
7596 #define $ac_tr_func 1
7600 echo "$ac_t""no" 1>&6
7604 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7605 echo "configure:7606: checking for getspnam in -lgen" >&5
7606 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7608 echo $ac_n "(cached) $ac_c" 1>&6
7610 ac_save_LIBS="$LIBS"
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 /* Override any gcc2 internal prototype to avoid an error. */
7616 /* We use char because int might match the return type of a gcc2
7617 builtin and then its argument prototype would still apply. */
7624 if { (eval echo configure:7625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7626 eval "ac_cv_lib_$ac_lib_var=yes"
7628 echo "configure: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7631 eval "ac_cv_lib_$ac_lib_var=no"
7634 LIBS="$ac_save_LIBS"
7637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7638 echo "$ac_t""yes" 1>&6
7639 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7641 cat >> confdefs.h <<EOF
7642 #define $ac_tr_lib 1
7648 echo "$ac_t""no" 1>&6
7651 for ac_func in getspnam
7653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7654 echo "configure:7655: checking for $ac_func" >&5
7655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7656 echo $ac_n "(cached) $ac_c" 1>&6
7658 cat > conftest.$ac_ext <<EOF
7659 #line 7660 "configure"
7660 #include "confdefs.h"
7661 /* System header to define __stub macros and hopefully few prototypes,
7662 which can conflict with char $ac_func(); below. */
7664 /* Override any gcc2 internal prototype to avoid an error. */
7665 /* We use char because int might match the return type of a gcc2
7666 builtin and then its argument prototype would still apply. */
7671 /* The GNU C library defines this for functions which it implements
7672 to always fail with ENOSYS. Some functions are actually named
7673 something starting with __ and the normal name is an alias. */
7674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7682 if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7684 eval "ac_cv_func_$ac_func=yes"
7686 echo "configure: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7689 eval "ac_cv_func_$ac_func=no"
7694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7695 echo "$ac_t""yes" 1>&6
7696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7697 cat >> confdefs.h <<EOF
7698 #define $ac_tr_func 1
7702 echo "$ac_t""no" 1>&6
7711 *-lsecurity*) for ac_func in getspnam
7713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7714 echo "configure:7715: checking for $ac_func" >&5
7715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7718 cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7721 /* System header to define __stub macros and hopefully few prototypes,
7722 which can conflict with char $ac_func(); below. */
7724 /* Override any gcc2 internal prototype to avoid an error. */
7725 /* We use char because int might match the return type of a gcc2
7726 builtin and then its argument prototype would still apply. */
7731 /* The GNU C library defines this for functions which it implements
7732 to always fail with ENOSYS. Some functions are actually named
7733 something starting with __ and the normal name is an alias. */
7734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7742 if { (eval echo configure:7743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 eval "ac_cv_func_$ac_func=yes"
7746 echo "configure: failed program was:" >&5
7747 cat conftest.$ac_ext >&5
7749 eval "ac_cv_func_$ac_func=no"
7754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7755 echo "$ac_t""yes" 1>&6
7756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7757 cat >> confdefs.h <<EOF
7758 #define $ac_tr_func 1
7762 echo "$ac_t""no" 1>&6
7766 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7767 echo "configure:7768: checking for getspnam in -lsecurity" >&5
7768 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7772 ac_save_LIBS="$LIBS"
7773 LIBS="-lsecurity $LIBS"
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 /* Override any gcc2 internal prototype to avoid an error. */
7778 /* We use char because int might match the return type of a gcc2
7779 builtin and then its argument prototype would still apply. */
7786 if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7788 eval "ac_cv_lib_$ac_lib_var=yes"
7790 echo "configure: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7793 eval "ac_cv_lib_$ac_lib_var=no"
7796 LIBS="$ac_save_LIBS"
7799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7800 echo "$ac_t""yes" 1>&6
7801 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7802 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7803 cat >> confdefs.h <<EOF
7804 #define $ac_tr_lib 1
7807 LIBS="-lsecurity $LIBS"
7810 echo "$ac_t""no" 1>&6
7813 for ac_func in getspnam
7815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7816 echo "configure:7817: checking for $ac_func" >&5
7817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7820 cat > conftest.$ac_ext <<EOF
7821 #line 7822 "configure"
7822 #include "confdefs.h"
7823 /* System header to define __stub macros and hopefully few prototypes,
7824 which can conflict with char $ac_func(); below. */
7826 /* Override any gcc2 internal prototype to avoid an error. */
7827 /* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7833 /* The GNU C library defines this for functions which it implements
7834 to always fail with ENOSYS. Some functions are actually named
7835 something starting with __ and the normal name is an alias. */
7836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7844 if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7846 eval "ac_cv_func_$ac_func=yes"
7848 echo "configure: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7851 eval "ac_cv_func_$ac_func=no"
7856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7857 echo "$ac_t""yes" 1>&6
7858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7859 cat >> confdefs.h <<EOF
7860 #define $ac_tr_func 1
7864 echo "$ac_t""no" 1>&6
7872 *-lsec*) for ac_func in getspnam
7874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7875 echo "configure:7876: checking for $ac_func" >&5
7876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7879 cat > conftest.$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7882 /* System header to define __stub macros and hopefully few prototypes,
7883 which can conflict with char $ac_func(); below. */
7885 /* Override any gcc2 internal prototype to avoid an error. */
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7892 /* The GNU C library defines this for functions which it implements
7893 to always fail with ENOSYS. Some functions are actually named
7894 something starting with __ and the normal name is an alias. */
7895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7903 if { (eval echo configure:7904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7905 eval "ac_cv_func_$ac_func=yes"
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7910 eval "ac_cv_func_$ac_func=no"
7915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7918 cat >> confdefs.h <<EOF
7919 #define $ac_tr_func 1
7923 echo "$ac_t""no" 1>&6
7927 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7928 echo "configure:7929: checking for getspnam in -lsec" >&5
7929 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7931 echo $ac_n "(cached) $ac_c" 1>&6
7933 ac_save_LIBS="$LIBS"
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7938 /* Override any gcc2 internal prototype to avoid an error. */
7939 /* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7947 if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7949 eval "ac_cv_lib_$ac_lib_var=yes"
7951 echo "configure: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7954 eval "ac_cv_lib_$ac_lib_var=no"
7957 LIBS="$ac_save_LIBS"
7960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7961 echo "$ac_t""yes" 1>&6
7962 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7964 cat >> confdefs.h <<EOF
7965 #define $ac_tr_lib 1
7971 echo "$ac_t""no" 1>&6
7974 for ac_func in getspnam
7976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7977 echo "configure:7978: checking for $ac_func" >&5
7978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7981 cat > conftest.$ac_ext <<EOF
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7984 /* System header to define __stub macros and hopefully few prototypes,
7985 which can conflict with char $ac_func(); below. */
7987 /* Override any gcc2 internal prototype to avoid an error. */
7988 /* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7994 /* The GNU C library defines this for functions which it implements
7995 to always fail with ENOSYS. Some functions are actually named
7996 something starting with __ and the normal name is an alias. */
7997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8005 if { (eval echo configure:8006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8007 eval "ac_cv_func_$ac_func=yes"
8009 echo "configure: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8012 eval "ac_cv_func_$ac_func=no"
8017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8018 echo "$ac_t""yes" 1>&6
8019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8020 cat >> confdefs.h <<EOF
8021 #define $ac_tr_func 1
8025 echo "$ac_t""no" 1>&6
8034 *-lsecurity*) for ac_func in bigcrypt
8036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8037 echo "configure:8038: checking for $ac_func" >&5
8038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8039 echo $ac_n "(cached) $ac_c" 1>&6
8041 cat > conftest.$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8044 /* System header to define __stub macros and hopefully few prototypes,
8045 which can conflict with char $ac_func(); below. */
8047 /* Override any gcc2 internal prototype to avoid an error. */
8048 /* We use char because int might match the return type of a gcc2
8049 builtin and then its argument prototype would still apply. */
8054 /* The GNU C library defines this for functions which it implements
8055 to always fail with ENOSYS. Some functions are actually named
8056 something starting with __ and the normal name is an alias. */
8057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8065 if { (eval echo configure:8066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8067 eval "ac_cv_func_$ac_func=yes"
8069 echo "configure: failed program was:" >&5
8070 cat conftest.$ac_ext >&5
8072 eval "ac_cv_func_$ac_func=no"
8077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8078 echo "$ac_t""yes" 1>&6
8079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8080 cat >> confdefs.h <<EOF
8081 #define $ac_tr_func 1
8085 echo "$ac_t""no" 1>&6
8089 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8090 echo "configure:8091: checking for bigcrypt in -lsecurity" >&5
8091 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8095 ac_save_LIBS="$LIBS"
8096 LIBS="-lsecurity $LIBS"
8097 cat > conftest.$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100 /* Override any gcc2 internal prototype to avoid an error. */
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8109 if { (eval echo configure:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8111 eval "ac_cv_lib_$ac_lib_var=yes"
8113 echo "configure: failed program was:" >&5
8114 cat conftest.$ac_ext >&5
8116 eval "ac_cv_lib_$ac_lib_var=no"
8119 LIBS="$ac_save_LIBS"
8122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8123 echo "$ac_t""yes" 1>&6
8124 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8126 cat >> confdefs.h <<EOF
8127 #define $ac_tr_lib 1
8130 LIBS="-lsecurity $LIBS"
8133 echo "$ac_t""no" 1>&6
8136 for ac_func in bigcrypt
8138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8139 echo "configure:8140: checking for $ac_func" >&5
8140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146 /* System header to define __stub macros and hopefully few prototypes,
8147 which can conflict with char $ac_func(); below. */
8149 /* Override any gcc2 internal prototype to avoid an error. */
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8156 /* The GNU C library defines this for functions which it implements
8157 to always fail with ENOSYS. Some functions are actually named
8158 something starting with __ and the normal name is an alias. */
8159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8169 eval "ac_cv_func_$ac_func=yes"
8171 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8174 eval "ac_cv_func_$ac_func=no"
8179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8180 echo "$ac_t""yes" 1>&6
8181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8182 cat >> confdefs.h <<EOF
8183 #define $ac_tr_func 1
8187 echo "$ac_t""no" 1>&6
8195 *-lsec*) for ac_func in bigcrypt
8197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8198 echo "configure:8199: checking for $ac_func" >&5
8199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* System header to define __stub macros and hopefully few prototypes,
8206 which can conflict with char $ac_func(); below. */
8208 /* Override any gcc2 internal prototype to avoid an error. */
8209 /* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8215 /* The GNU C library defines this for functions which it implements
8216 to always fail with ENOSYS. Some functions are actually named
8217 something starting with __ and the normal name is an alias. */
8218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8226 if { (eval echo configure:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8228 eval "ac_cv_func_$ac_func=yes"
8230 echo "configure: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8233 eval "ac_cv_func_$ac_func=no"
8238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8239 echo "$ac_t""yes" 1>&6
8240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8241 cat >> confdefs.h <<EOF
8242 #define $ac_tr_func 1
8246 echo "$ac_t""no" 1>&6
8250 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8251 echo "configure:8252: checking for bigcrypt in -lsec" >&5
8252 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8254 echo $ac_n "(cached) $ac_c" 1>&6
8256 ac_save_LIBS="$LIBS"
8258 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure"
8260 #include "confdefs.h"
8261 /* Override any gcc2 internal prototype to avoid an error. */
8262 /* We use char because int might match the return type of a gcc2
8263 builtin and then its argument prototype would still apply. */
8270 if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8272 eval "ac_cv_lib_$ac_lib_var=yes"
8274 echo "configure: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8277 eval "ac_cv_lib_$ac_lib_var=no"
8280 LIBS="$ac_save_LIBS"
8283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8284 echo "$ac_t""yes" 1>&6
8285 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8287 cat >> confdefs.h <<EOF
8288 #define $ac_tr_lib 1
8294 echo "$ac_t""no" 1>&6
8297 for ac_func in bigcrypt
8299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8300 echo "configure:8301: checking for $ac_func" >&5
8301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8304 cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307 /* System header to define __stub macros and hopefully few prototypes,
8308 which can conflict with char $ac_func(); below. */
8310 /* Override any gcc2 internal prototype to avoid an error. */
8311 /* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8317 /* The GNU C library defines this for functions which it implements
8318 to always fail with ENOSYS. Some functions are actually named
8319 something starting with __ and the normal name is an alias. */
8320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8330 eval "ac_cv_func_$ac_func=yes"
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 eval "ac_cv_func_$ac_func=no"
8340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8341 echo "$ac_t""yes" 1>&6
8342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8343 cat >> confdefs.h <<EOF
8344 #define $ac_tr_func 1
8348 echo "$ac_t""no" 1>&6
8357 *-lsecurity*) for ac_func in getprpwnam
8359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8360 echo "configure:8361: checking for $ac_func" >&5
8361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8362 echo $ac_n "(cached) $ac_c" 1>&6
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8367 /* System header to define __stub macros and hopefully few prototypes,
8368 which can conflict with char $ac_func(); below. */
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8377 /* The GNU C library defines this for functions which it implements
8378 to always fail with ENOSYS. Some functions are actually named
8379 something starting with __ and the normal name is an alias. */
8380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8390 eval "ac_cv_func_$ac_func=yes"
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8395 eval "ac_cv_func_$ac_func=no"
8400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8401 echo "$ac_t""yes" 1>&6
8402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8403 cat >> confdefs.h <<EOF
8404 #define $ac_tr_func 1
8408 echo "$ac_t""no" 1>&6
8412 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8413 echo "configure:8414: checking for getprpwnam in -lsecurity" >&5
8414 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 ac_save_LIBS="$LIBS"
8419 LIBS="-lsecurity $LIBS"
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8423 /* Override any gcc2 internal prototype to avoid an error. */
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8432 if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8434 eval "ac_cv_lib_$ac_lib_var=yes"
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8439 eval "ac_cv_lib_$ac_lib_var=no"
8442 LIBS="$ac_save_LIBS"
8445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8446 echo "$ac_t""yes" 1>&6
8447 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8449 cat >> confdefs.h <<EOF
8450 #define $ac_tr_lib 1
8453 LIBS="-lsecurity $LIBS"
8456 echo "$ac_t""no" 1>&6
8459 for ac_func in getprpwnam
8461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8462 echo "configure:8463: checking for $ac_func" >&5
8463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8464 echo $ac_n "(cached) $ac_c" 1>&6
8466 cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8469 /* System header to define __stub macros and hopefully few prototypes,
8470 which can conflict with char $ac_func(); below. */
8472 /* Override any gcc2 internal prototype to avoid an error. */
8473 /* We use char because int might match the return type of a gcc2
8474 builtin and then its argument prototype would still apply. */
8479 /* The GNU C library defines this for functions which it implements
8480 to always fail with ENOSYS. Some functions are actually named
8481 something starting with __ and the normal name is an alias. */
8482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8490 if { (eval echo configure:8491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8492 eval "ac_cv_func_$ac_func=yes"
8494 echo "configure: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8497 eval "ac_cv_func_$ac_func=no"
8502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8503 echo "$ac_t""yes" 1>&6
8504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8505 cat >> confdefs.h <<EOF
8506 #define $ac_tr_func 1
8510 echo "$ac_t""no" 1>&6
8518 *-lsec*) for ac_func in getprpwnam
8520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8521 echo "configure:8522: checking for $ac_func" >&5
8522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8525 cat > conftest.$ac_ext <<EOF
8526 #line 8527 "configure"
8527 #include "confdefs.h"
8528 /* System header to define __stub macros and hopefully few prototypes,
8529 which can conflict with char $ac_func(); below. */
8531 /* Override any gcc2 internal prototype to avoid an error. */
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8538 /* The GNU C library defines this for functions which it implements
8539 to always fail with ENOSYS. Some functions are actually named
8540 something starting with __ and the normal name is an alias. */
8541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8551 eval "ac_cv_func_$ac_func=yes"
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8556 eval "ac_cv_func_$ac_func=no"
8561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8562 echo "$ac_t""yes" 1>&6
8563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8564 cat >> confdefs.h <<EOF
8565 #define $ac_tr_func 1
8569 echo "$ac_t""no" 1>&6
8573 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8574 echo "configure:8575: checking for getprpwnam in -lsec" >&5
8575 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8579 ac_save_LIBS="$LIBS"
8581 cat > conftest.$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8584 /* Override any gcc2 internal prototype to avoid an error. */
8585 /* We use char because int might match the return type of a gcc2
8586 builtin and then its argument prototype would still apply. */
8593 if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8595 eval "ac_cv_lib_$ac_lib_var=yes"
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8600 eval "ac_cv_lib_$ac_lib_var=no"
8603 LIBS="$ac_save_LIBS"
8606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8607 echo "$ac_t""yes" 1>&6
8608 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8610 cat >> confdefs.h <<EOF
8611 #define $ac_tr_lib 1
8617 echo "$ac_t""no" 1>&6
8620 for ac_func in getprpwnam
8622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8623 echo "configure:8624: checking for $ac_func" >&5
8624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* System header to define __stub macros and hopefully few prototypes,
8631 which can conflict with char $ac_func(); below. */
8633 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8640 /* The GNU C library defines this for functions which it implements
8641 to always fail with ENOSYS. Some functions are actually named
8642 something starting with __ and the normal name is an alias. */
8643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8651 if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8653 eval "ac_cv_func_$ac_func=yes"
8655 echo "configure: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8658 eval "ac_cv_func_$ac_func=no"
8663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8664 echo "$ac_t""yes" 1>&6
8665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8666 cat >> confdefs.h <<EOF
8667 #define $ac_tr_func 1
8671 echo "$ac_t""no" 1>&6
8679 # this bit needs to be modified for each OS that is suported by
8680 # smbwrapper. You need to specify how to created a shared library and
8681 # how to compile C code to produce PIC object files
8683 # these are the defaults, good for lots of systems
8690 # and these are for particular systems
8692 *linux*) cat >> confdefs.h <<\EOF
8698 *solaris*) cat >> confdefs.h <<\EOF
8705 *sunos*) cat >> confdefs.h <<\EOF
8711 *bsd*) LDSHFLAGS="-shared -Bshareable"
8714 *irix*) cat >> confdefs.h <<\EOF
8719 *irix6*) cat >> confdefs.h <<\EOF
8725 ATTEMPT_WRAP32_BUILD=yes
8727 *aix*) cat >> confdefs.h <<\EOF
8731 *hpux*) cat >> confdefs.h <<\EOF
8736 # Use special PIC flags for the native HP-UX compiler.
8737 if test $ac_cv_prog_cc_Ae = yes; then
8742 *qnx*) cat >> confdefs.h <<\EOF
8746 *osf*) cat >> confdefs.h <<\EOF
8750 *sco*) cat >> confdefs.h <<\EOF
8754 *next2*) cat >> confdefs.h <<\EOF
8758 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8759 set dummy groff; ac_word=$2
8760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8761 echo "configure:8762: checking for $ac_word" >&5
8762 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8765 if test -n "$ROFF"; then
8766 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8770 for ac_dir in $ac_dummy; do
8771 test -z "$ac_dir" && ac_dir=.
8772 if test -f $ac_dir/$ac_word; then
8773 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8780 ROFF="$ac_cv_prog_ROFF"
8781 if test -n "$ROFF"; then
8782 echo "$ac_t""$ROFF" 1>&6
8784 echo "$ac_t""no" 1>&6
8789 *-univel-*) if test "$GCC" != yes ; then
8790 cat >> confdefs.h <<\EOF
8791 #define HAVE_MEMSET 1
8797 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8798 #define RELIANTUNIX 1
8804 if test "$GCC" != yes ; then
8805 cat >> confdefs.h <<\EOF
8806 #define HAVE_MEMSET 1
8814 # try to work out how to produce PIC code with this compiler
8815 echo $ac_n "checking whether ${CC-cc} accepts -fPIC""... $ac_c" 1>&6
8816 echo "configure:8817: checking whether ${CC-cc} accepts -fPIC" >&5
8817 if eval "test \"`echo '$''{'ac_cv_prog_cc_fPIC'+set}'`\" = set"; then
8818 echo $ac_n "(cached) $ac_c" 1>&6
8820 echo 'void f(){}' > conftest.c
8821 if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then
8822 ac_cv_prog_cc_fPIC=yes
8824 ac_cv_prog_cc_fPIC=no
8830 echo "$ac_t""$ac_cv_prog_cc_fPIC" 1>&6
8831 if test $ac_cv_prog_cc_fPIC = yes; then
8834 if test x$PICFLAG = x; then
8835 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8836 echo "configure:8837: checking whether ${CC-cc} accepts -KPIC" >&5
8837 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8838 echo $ac_n "(cached) $ac_c" 1>&6
8840 echo 'void f(){}' > conftest.c
8841 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8842 ac_cv_prog_cc_KPIC=yes
8844 ac_cv_prog_cc_KPIC=no
8850 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8851 if test $ac_cv_prog_cc_KPIC = yes; then
8855 if test x$PICFLAG = x; then
8856 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8857 echo "configure:8858: checking whether ${CC-cc} accepts -Kpic" >&5
8858 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8861 echo 'void f(){}' > conftest.c
8862 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8863 ac_cv_prog_cc_Kpic=yes
8865 ac_cv_prog_cc_Kpic=no
8871 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8872 if test $ac_cv_prog_cc_Kpic = yes; then
8879 echo $ac_n "checking for long long""... $ac_c" 1>&6
8880 echo "configure:8881: checking for long long" >&5
8881 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8882 echo $ac_n "(cached) $ac_c" 1>&6
8885 if test "$cross_compiling" = yes; then
8886 samba_cv_have_longlong=cross
8888 cat > conftest.$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8892 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8894 if { (eval echo configure:8895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8896 samba_cv_have_longlong=yes
8898 echo "configure: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8901 samba_cv_have_longlong=no
8908 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8909 if test x"$samba_cv_have_longlong" = x"yes"; then
8910 cat >> confdefs.h <<\EOF
8911 #define HAVE_LONGLONG 1
8917 # Check if the compiler supports the LL prefix on long long integers.
8920 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8921 echo "configure:8922: checking for LL suffix on long long integers" >&5
8922 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8923 echo $ac_n "(cached) $ac_c" 1>&6
8926 cat > conftest.$ac_ext <<EOF
8927 #line 8928 "configure"
8928 #include "confdefs.h"
8931 long long i = 0x8000000000LL
8934 if { (eval echo configure:8935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8936 samba_cv_compiler_supports_ll=yes
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8941 samba_cv_compiler_supports_ll=no
8946 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8947 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8948 cat >> confdefs.h <<\EOF
8949 #define COMPILER_SUPPORTS_LL 1
8955 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8956 echo "configure:8957: checking for 64 bit off_t" >&5
8957 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8961 if test "$cross_compiling" = yes; then
8962 samba_cv_SIZEOF_OFF_T=cross
8964 cat > conftest.$ac_ext <<EOF
8965 #line 8966 "configure"
8966 #include "confdefs.h"
8968 #include <sys/stat.h>
8969 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8971 if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8973 samba_cv_SIZEOF_OFF_T=yes
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8978 samba_cv_SIZEOF_OFF_T=no
8985 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8986 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8987 cat >> confdefs.h <<\EOF
8988 #define SIZEOF_OFF_T 8
8993 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8994 echo "configure:8995: checking for off64_t" >&5
8995 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8996 echo $ac_n "(cached) $ac_c" 1>&6
8999 if test "$cross_compiling" = yes; then
9000 samba_cv_HAVE_OFF64_T=cross
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9006 #if defined(HAVE_UNISTD_H)
9010 #include <sys/stat.h>
9011 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9013 if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9015 samba_cv_HAVE_OFF64_T=yes
9017 echo "configure: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9020 samba_cv_HAVE_OFF64_T=no
9027 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9028 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9029 cat >> confdefs.h <<\EOF
9030 #define HAVE_OFF64_T 1
9035 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9036 echo "configure:9037: checking for 64 bit ino_t" >&5
9037 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9041 if test "$cross_compiling" = yes; then
9042 samba_cv_SIZEOF_INO_T=cross
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9048 #include <sys/stat.h>
9049 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9053 samba_cv_SIZEOF_INO_T=yes
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9058 samba_cv_SIZEOF_INO_T=no
9065 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9066 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9067 cat >> confdefs.h <<\EOF
9068 #define SIZEOF_INO_T 8
9073 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9074 echo "configure:9075: checking for ino64_t" >&5
9075 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9076 echo $ac_n "(cached) $ac_c" 1>&6
9079 if test "$cross_compiling" = yes; then
9080 samba_cv_HAVE_INO64_T=cross
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9086 #if defined(HAVE_UNISTD_H)
9090 #include <sys/stat.h>
9091 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9095 samba_cv_HAVE_INO64_T=yes
9097 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9100 samba_cv_HAVE_INO64_T=no
9107 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9108 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9109 cat >> confdefs.h <<\EOF
9110 #define HAVE_INO64_T 1
9115 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9116 echo "configure:9117: checking for struct dirent64" >&5
9117 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9125 #if defined(HAVE_UNISTD_H)
9128 #include <sys/types.h>
9134 if { (eval echo configure:9135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9136 samba_cv_HAVE_STRUCT_DIRENT64=yes
9138 echo "configure: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9141 samba_cv_HAVE_STRUCT_DIRENT64=no
9146 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9147 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9148 cat >> confdefs.h <<\EOF
9149 #define HAVE_STRUCT_DIRENT64 1
9154 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9155 echo "configure:9156: checking for unsigned char" >&5
9156 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9157 echo $ac_n "(cached) $ac_c" 1>&6
9160 if test "$cross_compiling" = yes; then
9161 samba_cv_HAVE_UNSIGNED_CHAR=cross
9163 cat > conftest.$ac_ext <<EOF
9164 #line 9165 "configure"
9165 #include "confdefs.h"
9167 main() { char c; c=250; exit((c > 0)?0:1); }
9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9171 samba_cv_HAVE_UNSIGNED_CHAR=yes
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 samba_cv_HAVE_UNSIGNED_CHAR=no
9183 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9184 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9185 cat >> confdefs.h <<\EOF
9186 #define HAVE_UNSIGNED_CHAR 1
9191 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9192 echo "configure:9193: checking for sin_len in sock" >&5
9193 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure"
9199 #include "confdefs.h"
9200 #include <sys/types.h>
9201 #include <sys/socket.h>
9202 #include <netinet/in.h>
9204 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9207 if { (eval echo configure:9208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9209 samba_cv_HAVE_SOCK_SIN_LEN=yes
9211 echo "configure: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9214 samba_cv_HAVE_SOCK_SIN_LEN=no
9219 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9220 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9221 cat >> confdefs.h <<\EOF
9222 #define HAVE_SOCK_SIN_LEN 1
9227 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9228 echo "configure:9229: checking whether seekdir returns void" >&5
9229 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9230 echo $ac_n "(cached) $ac_c" 1>&6
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9236 #include <sys/types.h>
9238 void seekdir(DIR *d, long loc) { return; }
9243 if { (eval echo configure:9244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9245 samba_cv_SEEKDIR_RETURNS_VOID=yes
9247 echo "configure: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9250 samba_cv_SEEKDIR_RETURNS_VOID=no
9255 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9256 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9257 cat >> confdefs.h <<\EOF
9258 #define SEEKDIR_RETURNS_VOID 1
9263 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9264 echo "configure:9265: checking for __FILE__ macro" >&5
9265 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9266 echo $ac_n "(cached) $ac_c" 1>&6
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9274 printf("%s\n", __FILE__);
9277 if { (eval echo configure:9278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9279 samba_cv_HAVE_FILE_MACRO=yes
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9284 samba_cv_HAVE_FILE_MACRO=no
9289 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9290 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9291 cat >> confdefs.h <<\EOF
9292 #define HAVE_FILE_MACRO 1
9297 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9298 echo "configure:9299: checking for __FUNCTION__ macro" >&5
9299 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9300 echo $ac_n "(cached) $ac_c" 1>&6
9303 cat > conftest.$ac_ext <<EOF
9304 #line 9305 "configure"
9305 #include "confdefs.h"
9308 printf("%s\n", __FUNCTION__);
9311 if { (eval echo configure:9312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9313 samba_cv_HAVE_FUNCTION_MACRO=yes
9315 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9318 samba_cv_HAVE_FUNCTION_MACRO=no
9323 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9324 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9325 cat >> confdefs.h <<\EOF
9326 #define HAVE_FUNCTION_MACRO 1
9331 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9332 echo "configure:9333: checking if gettimeofday takes tz argument" >&5
9333 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9337 if test "$cross_compiling" = yes; then
9338 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9340 cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9344 #include <sys/time.h>
9346 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9348 if { (eval echo configure:9349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9350 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9352 echo "configure: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9355 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9362 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9363 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9364 cat >> confdefs.h <<\EOF
9365 #define HAVE_GETTIMEOFDAY_TZ 1
9370 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9371 echo "configure:9372: checking for C99 vsnprintf" >&5
9372 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9376 if test "$cross_compiling" = yes; then
9377 samba_cv_HAVE_C99_VSNPRINTF=cross
9379 cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9383 #include <sys/types.h>
9385 void foo(const char *format, ...) {
9390 va_start(ap, format);
9391 len = vsnprintf(0, 0, format, ap);
9393 if (len != 5) exit(1);
9395 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9399 main() { foo("hello"); }
9402 if { (eval echo configure:9403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9404 samba_cv_HAVE_C99_VSNPRINTF=yes
9406 echo "configure: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9409 samba_cv_HAVE_C99_VSNPRINTF=no
9416 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9417 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9418 cat >> confdefs.h <<\EOF
9419 #define HAVE_C99_VSNPRINTF 1
9424 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9425 echo "configure:9426: checking for broken readdir" >&5
9426 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9427 echo $ac_n "(cached) $ac_c" 1>&6
9430 if test "$cross_compiling" = yes; then
9431 samba_cv_HAVE_BROKEN_READDIR=cross
9433 cat > conftest.$ac_ext <<EOF
9434 #line 9435 "configure"
9435 #include "confdefs.h"
9436 #include <sys/types.h>
9438 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9439 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9440 di->d_name[0] == 0) exit(0); exit(1);}
9442 if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9444 samba_cv_HAVE_BROKEN_READDIR=yes
9446 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9449 samba_cv_HAVE_BROKEN_READDIR=no
9456 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9457 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9458 cat >> confdefs.h <<\EOF
9459 #define HAVE_BROKEN_READDIR 1
9464 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9465 echo "configure:9466: checking for utimbuf" >&5
9466 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 #include <sys/types.h>
9476 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9479 if { (eval echo configure:9480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9481 samba_cv_HAVE_UTIMBUF=yes
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9486 samba_cv_HAVE_UTIMBUF=no
9491 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9492 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9493 cat >> confdefs.h <<\EOF
9494 #define HAVE_UTIMBUF 1
9500 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9503 echo "configure:9504: checking for $ac_func" >&5
9504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9507 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9510 /* System header to define __stub macros and hopefully few prototypes,
9511 which can conflict with char $ac_func(); below. */
9513 /* Override any gcc2 internal prototype to avoid an error. */
9514 /* We use char because int might match the return type of a gcc2
9515 builtin and then its argument prototype would still apply. */
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9531 if { (eval echo configure:9532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9533 eval "ac_cv_func_$ac_func=yes"
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9538 eval "ac_cv_func_$ac_func=no"
9543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9544 echo "$ac_t""yes" 1>&6
9545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9546 cat >> confdefs.h <<EOF
9547 #define $ac_tr_func 1
9551 echo "$ac_t""no" 1>&6
9556 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9557 echo "configure:9558: checking for ut_name in utmp" >&5
9558 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9559 echo $ac_n "(cached) $ac_c" 1>&6
9562 cat > conftest.$ac_ext <<EOF
9563 #line 9564 "configure"
9564 #include "confdefs.h"
9565 #include <sys/types.h>
9568 struct utmp ut; ut.ut_name[0] = 'a';
9571 if { (eval echo configure:9572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9573 samba_cv_HAVE_UT_UT_NAME=yes
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9578 samba_cv_HAVE_UT_UT_NAME=no
9583 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9584 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9585 cat >> confdefs.h <<\EOF
9586 #define HAVE_UT_UT_NAME 1
9591 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9592 echo "configure:9593: checking for ut_user in utmp" >&5
9593 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9594 echo $ac_n "(cached) $ac_c" 1>&6
9597 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9600 #include <sys/types.h>
9603 struct utmp ut; ut.ut_user[0] = 'a';
9606 if { (eval echo configure:9607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9608 samba_cv_HAVE_UT_UT_USER=yes
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9613 samba_cv_HAVE_UT_UT_USER=no
9618 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9619 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9620 cat >> confdefs.h <<\EOF
9621 #define HAVE_UT_UT_USER 1
9626 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9627 echo "configure:9628: checking for ut_id in utmp" >&5
9628 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9635 #include <sys/types.h>
9638 struct utmp ut; ut.ut_id[0] = 'a';
9641 if { (eval echo configure:9642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9643 samba_cv_HAVE_UT_UT_ID=yes
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9648 samba_cv_HAVE_UT_UT_ID=no
9653 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9654 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9655 cat >> confdefs.h <<\EOF
9656 #define HAVE_UT_UT_ID 1
9661 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9662 echo "configure:9663: checking for ut_host in utmp" >&5
9663 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 #include <sys/types.h>
9673 struct utmp ut; ut.ut_host[0] = 'a';
9676 if { (eval echo configure:9677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9678 samba_cv_HAVE_UT_UT_HOST=yes
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 samba_cv_HAVE_UT_UT_HOST=no
9688 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9689 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9690 cat >> confdefs.h <<\EOF
9691 #define HAVE_UT_UT_HOST 1
9696 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9697 echo "configure:9698: checking for ut_time in utmp" >&5
9698 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9702 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9705 #include <sys/types.h>
9708 struct utmp ut; time_t t; ut.ut_time = t;
9711 if { (eval echo configure:9712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9713 samba_cv_HAVE_UT_UT_TIME=yes
9715 echo "configure: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9718 samba_cv_HAVE_UT_UT_TIME=no
9723 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9724 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9725 cat >> confdefs.h <<\EOF
9726 #define HAVE_UT_UT_TIME 1
9731 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9732 echo "configure:9733: checking for ut_tv in utmp" >&5
9733 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9734 echo $ac_n "(cached) $ac_c" 1>&6
9737 cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 #include <sys/types.h>
9743 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9746 if { (eval echo configure:9747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9748 samba_cv_HAVE_UT_UT_TV=yes
9750 echo "configure: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9753 samba_cv_HAVE_UT_UT_TV=no
9758 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9759 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9760 cat >> confdefs.h <<\EOF
9761 #define HAVE_UT_UT_TV 1
9766 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9767 echo "configure:9768: checking for ut_type in utmp" >&5
9768 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9772 cat > conftest.$ac_ext <<EOF
9773 #line 9774 "configure"
9774 #include "confdefs.h"
9775 #include <sys/types.h>
9778 struct utmp ut; ut.ut_type = 0;
9781 if { (eval echo configure:9782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9783 samba_cv_HAVE_UT_UT_TYPE=yes
9785 echo "configure: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9788 samba_cv_HAVE_UT_UT_TYPE=no
9793 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9794 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9795 cat >> confdefs.h <<\EOF
9796 #define HAVE_UT_UT_TYPE 1
9801 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9802 echo "configure:9803: checking for ut_pid in utmp" >&5
9803 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9810 #include <sys/types.h>
9813 struct utmp ut; ut.ut_pid = 0;
9816 if { (eval echo configure:9817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9818 samba_cv_HAVE_UT_UT_PID=yes
9820 echo "configure: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9823 samba_cv_HAVE_UT_UT_PID=no
9828 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9829 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9830 cat >> confdefs.h <<\EOF
9831 #define HAVE_UT_UT_PID 1
9836 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9837 echo "configure:9838: checking for ut_exit in utmp" >&5
9838 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9842 cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 #include <sys/types.h>
9848 struct utmp ut; ut.ut_exit.e_exit = 0;
9851 if { (eval echo configure:9852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9853 samba_cv_HAVE_UT_UT_EXIT=yes
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9858 samba_cv_HAVE_UT_UT_EXIT=no
9863 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9864 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9865 cat >> confdefs.h <<\EOF
9866 #define HAVE_UT_UT_EXIT 1
9871 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9872 echo "configure:9873: checking for ut_addr in utmp" >&5
9873 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9877 cat > conftest.$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 #include <sys/types.h>
9883 struct utmp ut; ut.ut_addr = 0;
9886 if { (eval echo configure:9887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9888 samba_cv_HAVE_UT_UT_ADDR=yes
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9893 samba_cv_HAVE_UT_UT_ADDR=no
9898 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9899 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9900 cat >> confdefs.h <<\EOF
9901 #define HAVE_UT_UT_ADDR 1
9906 if test x$ac_cv_func_pututline = xyes ; then
9907 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9908 echo "configure:9909: checking whether pututline returns pointer" >&5
9909 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9913 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 #include <sys/types.h>
9919 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9922 if { (eval echo configure:9923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9924 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9926 echo "configure: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9929 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9934 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9935 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9936 cat >> confdefs.h <<\EOF
9937 #define PUTUTLINE_RETURNS_UTMP 1
9943 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9944 echo "configure:9945: checking for ut_syslen in utmpx" >&5
9945 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9946 echo $ac_n "(cached) $ac_c" 1>&6
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 #include <sys/types.h>
9955 struct utmpx ux; ux.ut_syslen = 0;
9958 if { (eval echo configure:9959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9960 samba_cv_HAVE_UX_UT_SYSLEN=yes
9962 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9965 samba_cv_HAVE_UX_UT_SYSLEN=no
9970 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9971 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9972 cat >> confdefs.h <<\EOF
9973 #define HAVE_UX_UT_SYSLEN 1
9979 # check for iconv in libc, and if not then we build our own
9980 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9981 echo "configure:9982: checking for working iconv" >&5
9982 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9986 if test "$cross_compiling" = yes; then
9987 samba_cv_HAVE_NATIVE_ICONV=cross
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9995 iconv_t cd = iconv_open("ASCII", "UCS2");
9996 if (cd == 0 || cd == (iconv_t)-1) return -1;
10001 if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10003 samba_cv_HAVE_NATIVE_ICONV=yes
10005 echo "configure: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10008 samba_cv_HAVE_NATIVE_ICONV=no
10015 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10016 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10017 cat >> confdefs.h <<\EOF
10018 #define HAVE_NATIVE_ICONV 1
10023 ICONV_OBJS="iconv/iconv.o"
10028 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10029 echo "configure:10030: checking for Linux kernel oplocks" >&5
10030 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10034 if test "$cross_compiling" = yes; then
10035 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10037 cat > conftest.$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10041 #include <sys/types.h>
10044 #define F_GETLEASE 1025
10047 int fd = open("/dev/null", O_RDONLY);
10048 return fcntl(fd, F_GETLEASE, 0) == -1;
10052 if { (eval echo configure:10053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10054 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10059 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10066 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10067 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10068 cat >> confdefs.h <<\EOF
10069 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10074 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10075 echo "configure:10076: checking for kernel change notify support" >&5
10076 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10080 if test "$cross_compiling" = yes; then
10081 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10083 cat > conftest.$ac_ext <<EOF
10084 #line 10085 "configure"
10085 #include "confdefs.h"
10087 #include <sys/types.h>
10089 #include <signal.h>
10091 #define F_NOTIFY 1026
10094 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10098 if { (eval echo configure:10099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10100 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10105 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10112 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10113 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10120 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10121 echo "configure:10122: checking for kernel share modes" >&5
10122 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10123 echo $ac_n "(cached) $ac_c" 1>&6
10126 if test "$cross_compiling" = yes; then
10127 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10133 #include <sys/types.h>
10135 #include <signal.h>
10136 #include <sys/file.h>
10138 #define LOCK_MAND 32
10139 #define LOCK_READ 64
10142 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10146 if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10148 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10150 echo "configure: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10153 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10160 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10161 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10162 cat >> confdefs.h <<\EOF
10163 #define HAVE_KERNEL_SHARE_MODES 1
10171 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10172 echo "configure:10173: checking for IRIX kernel oplock type definitions" >&5
10173 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 #include <sys/types.h>
10183 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10186 if { (eval echo configure:10187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10188 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10193 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10198 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10199 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10200 cat >> confdefs.h <<\EOF
10201 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10206 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10207 echo "configure:10208: checking for irix specific capabilities" >&5
10208 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10212 if test "$cross_compiling" = yes; then
10213 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include <sys/types.h>
10219 #include <sys/capability.h>
10222 if ((cap = cap_get_proc()) == NULL)
10224 cap->cap_effective |= CAP_NETWORK_MGT;
10225 cap->cap_inheritable |= CAP_NETWORK_MGT;
10231 if { (eval echo configure:10232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10233 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10238 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10245 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10246 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10247 cat >> confdefs.h <<\EOF
10248 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10254 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10255 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10258 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10259 echo "configure:10260: checking for int16 typedef included by rpc/rpc.h" >&5
10260 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10264 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure"
10266 #include "confdefs.h"
10267 #include <sys/types.h>
10268 #if defined(HAVE_RPC_RPC_H)
10269 #include <rpc/rpc.h>
10275 if { (eval echo configure:10276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10277 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10279 echo "configure: failed program was:" >&5
10280 cat conftest.$ac_ext >&5
10282 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10287 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10288 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10289 cat >> confdefs.h <<\EOF
10290 #define HAVE_INT16_FROM_RPC_RPC_H 1
10295 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10296 echo "configure:10297: checking for uint16 typedef included by rpc/rpc.h" >&5
10297 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10304 #include <sys/types.h>
10305 #if defined(HAVE_RPC_RPC_H)
10306 #include <rpc/rpc.h>
10312 if { (eval echo configure:10313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10314 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10316 echo "configure: failed program was:" >&5
10317 cat conftest.$ac_ext >&5
10319 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10324 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10325 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10332 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10333 echo "configure:10334: checking for int32 typedef included by rpc/rpc.h" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10341 #include <sys/types.h>
10342 #if defined(HAVE_RPC_RPC_H)
10343 #include <rpc/rpc.h>
10349 if { (eval echo configure:10350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10351 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10353 echo "configure: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10356 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10361 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10362 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10363 cat >> confdefs.h <<\EOF
10364 #define HAVE_INT32_FROM_RPC_RPC_H 1
10369 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10370 echo "configure:10371: checking for uint32 typedef included by rpc/rpc.h" >&5
10371 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10372 echo $ac_n "(cached) $ac_c" 1>&6
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 #include <sys/types.h>
10379 #if defined(HAVE_RPC_RPC_H)
10380 #include <rpc/rpc.h>
10386 if { (eval echo configure:10387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10388 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10390 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10393 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10398 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10399 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10400 cat >> confdefs.h <<\EOF
10401 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10407 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10408 echo "configure:10409: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10409 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10413 cat > conftest.$ac_ext <<EOF
10414 #line 10415 "configure"
10415 #include "confdefs.h"
10416 #include <sys/types.h>
10417 #ifdef HAVE_SYS_SECURITY_H
10418 #include <sys/security.h>
10420 #endif /* HAVE_SYS_SECURITY_H */
10421 #if defined(HAVE_RPC_RPC_H)
10422 #include <rpc/rpc.h>
10428 if { (eval echo configure:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10430 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10432 echo "configure: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10435 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10440 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10441 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10442 cat >> confdefs.h <<\EOF
10443 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10448 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10449 echo "configure:10450: checking for test routines" >&5
10450 if test "$cross_compiling" = yes; then
10451 echo "configure: warning: cannot run when cross-compiling" 1>&2
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456 #include "${srcdir-.}/tests/trivial.c"
10458 if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10460 echo "$ac_t""yes" 1>&6
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10465 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10471 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10472 echo "configure:10473: checking for ftruncate extend" >&5
10473 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10474 echo $ac_n "(cached) $ac_c" 1>&6
10477 if test "$cross_compiling" = yes; then
10478 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10480 cat > conftest.$ac_ext <<EOF
10481 #line 10482 "configure"
10482 #include "confdefs.h"
10483 #include "${srcdir-.}/tests/ftruncate.c"
10485 if { (eval echo configure:10486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10487 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10489 echo "configure: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10492 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10499 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10500 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10501 cat >> confdefs.h <<\EOF
10502 #define HAVE_FTRUNCATE_EXTEND 1
10507 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10508 echo "configure:10509: checking for AF_LOCAL socket support" >&5
10509 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10513 if test "$cross_compiling" = yes; then
10514 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 #include "${srcdir-.}/tests/unixsock.c"
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10523 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 samba_cv_HAVE_WORKING_AF_LOCAL=no
10535 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10536 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10538 cat >> confdefs.h <<\EOF
10539 #define HAVE_WORKING_AF_LOCAL 1
10544 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10545 echo "configure:10546: checking for broken getgroups" >&5
10546 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10550 if test "$cross_compiling" = yes; then
10551 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10556 #include "${srcdir-.}/tests/getgroups.c"
10558 if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10560 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10565 samba_cv_HAVE_BROKEN_GETGROUPS=no
10572 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10573 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10574 cat >> confdefs.h <<\EOF
10575 #define HAVE_BROKEN_GETGROUPS 1
10580 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10581 echo "configure:10582: checking whether getpass should be replaced" >&5
10582 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10583 echo $ac_n "(cached) $ac_c" 1>&6
10586 SAVE_CPPFLAGS="$CPPFLAGS"
10587 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10592 #define REPLACE_GETPASS 1
10593 #define NO_CONFIG_H 1
10594 #define main dont_declare_main
10595 #include "${srcdir-.}/lib/getsmbpass.c"
10602 if { (eval echo configure:10603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10604 samba_cv_REPLACE_GETPASS=yes
10606 echo "configure: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10609 samba_cv_REPLACE_GETPASS=no
10612 CPPFLAGS="$SAVE_CPPFLAGS"
10616 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10617 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10618 cat >> confdefs.h <<\EOF
10619 #define REPLACE_GETPASS 1
10624 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10625 echo "configure:10626: checking for broken inet_ntoa" >&5
10626 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10627 echo $ac_n "(cached) $ac_c" 1>&6
10630 if test "$cross_compiling" = yes; then
10631 samba_cv_REPLACE_INET_NTOA=cross
10633 cat > conftest.$ac_ext <<EOF
10634 #line 10635 "configure"
10635 #include "confdefs.h"
10638 #include <sys/types.h>
10639 #include <netinet/in.h>
10640 #ifdef HAVE_ARPA_INET_H
10641 #include <arpa/inet.h>
10643 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10644 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10645 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10648 if { (eval echo configure:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10650 samba_cv_REPLACE_INET_NTOA=yes
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10655 samba_cv_REPLACE_INET_NTOA=no
10662 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10663 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10664 cat >> confdefs.h <<\EOF
10665 #define REPLACE_INET_NTOA 1
10670 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10671 echo "configure:10672: checking for secure mkstemp" >&5
10672 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10676 if test "$cross_compiling" = yes; then
10677 samba_cv_HAVE_SECURE_MKSTEMP=cross
10679 cat > conftest.$ac_ext <<EOF
10680 #line 10681 "configure"
10681 #include "confdefs.h"
10682 #include <stdlib.h>
10683 #include <sys/types.h>
10684 #include <sys/stat.h>
10685 #include <unistd.h>
10688 char tpl[20]="/tmp/test.XXXXXX";
10689 int fd = mkstemp(tpl);
10690 if (fd == -1) exit(1);
10692 if (fstat(fd, &st) != 0) exit(1);
10693 if ((st.st_mode & 0777) != 0600) exit(1);
10697 if { (eval echo configure:10698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10699 samba_cv_HAVE_SECURE_MKSTEMP=yes
10701 echo "configure: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10704 samba_cv_HAVE_SECURE_MKSTEMP=no
10711 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10712 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10713 cat >> confdefs.h <<\EOF
10714 #define HAVE_SECURE_MKSTEMP 1
10719 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10720 echo "configure:10721: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10721 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10722 echo $ac_n "(cached) $ac_c" 1>&6
10725 if test "$cross_compiling" = yes; then
10726 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 #include <unistd.h>
10732 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10734 if { (eval echo configure:10735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10736 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10738 echo "configure: failed program was:" >&5
10739 cat conftest.$ac_ext >&5
10741 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10748 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10749 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10750 cat >> confdefs.h <<\EOF
10751 #define SYSCONF_SC_NGROUPS_MAX 1
10756 echo $ac_n "checking for root""... $ac_c" 1>&6
10757 echo "configure:10758: checking for root" >&5
10758 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10762 if test "$cross_compiling" = yes; then
10763 samba_cv_HAVE_ROOT=cross
10765 cat > conftest.$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10768 main() { exit(getuid() != 0); }
10770 if { (eval echo configure:10771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10772 samba_cv_HAVE_ROOT=yes
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10777 samba_cv_HAVE_ROOT=no
10784 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10785 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10786 cat >> confdefs.h <<\EOF
10787 #define HAVE_ROOT 1
10791 echo "configure: warning: running as non-root will disable some tests" 1>&2
10795 # look for a method of finding the list of network interfaces
10797 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10798 echo "configure:10799: checking for iface AIX" >&5
10799 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10800 echo $ac_n "(cached) $ac_c" 1>&6
10803 if test "$cross_compiling" = yes; then
10804 samba_cv_HAVE_IFACE_AIX=cross
10806 cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10810 #define HAVE_IFACE_AIX 1
10811 #define AUTOCONF_TEST 1
10812 #include "confdefs.h"
10813 #include "${srcdir-.}/lib/interfaces.c"
10815 if { (eval echo configure:10816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10817 samba_cv_HAVE_IFACE_AIX=yes
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10822 samba_cv_HAVE_IFACE_AIX=no
10829 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10830 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10831 iface=yes;cat >> confdefs.h <<\EOF
10832 #define HAVE_IFACE_AIX 1
10837 if test $iface = no; then
10838 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10839 echo "configure:10840: checking for iface ifconf" >&5
10840 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10841 echo $ac_n "(cached) $ac_c" 1>&6
10844 if test "$cross_compiling" = yes; then
10845 samba_cv_HAVE_IFACE_IFCONF=cross
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10851 #define HAVE_IFACE_IFCONF 1
10852 #define AUTOCONF_TEST 1
10853 #include "confdefs.h"
10854 #include "${srcdir-.}/lib/interfaces.c"
10856 if { (eval echo configure:10857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10858 samba_cv_HAVE_IFACE_IFCONF=yes
10860 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10863 samba_cv_HAVE_IFACE_IFCONF=no
10870 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10871 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10872 iface=yes;cat >> confdefs.h <<\EOF
10873 #define HAVE_IFACE_IFCONF 1
10879 if test $iface = no; then
10880 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10881 echo "configure:10882: checking for iface ifreq" >&5
10882 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10886 if test "$cross_compiling" = yes; then
10887 samba_cv_HAVE_IFACE_IFREQ=cross
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10893 #define HAVE_IFACE_IFREQ 1
10894 #define AUTOCONF_TEST 1
10895 #include "confdefs.h"
10896 #include "${srcdir-.}/lib/interfaces.c"
10898 if { (eval echo configure:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10900 samba_cv_HAVE_IFACE_IFREQ=yes
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10905 samba_cv_HAVE_IFACE_IFREQ=no
10912 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10913 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10914 iface=yes;cat >> confdefs.h <<\EOF
10915 #define HAVE_IFACE_IFREQ 1
10922 ################################################
10923 # look for a method of setting the effective uid
10925 if test $seteuid = no; then
10926 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10927 echo "configure:10928: checking for setresuid" >&5
10928 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10929 echo $ac_n "(cached) $ac_c" 1>&6
10932 if test "$cross_compiling" = yes; then
10933 samba_cv_USE_SETRESUID=cross
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10939 #define AUTOCONF_TEST 1
10940 #define USE_SETRESUID 1
10941 #include "confdefs.h"
10942 #include "${srcdir-.}/lib/util_sec.c"
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10946 samba_cv_USE_SETRESUID=yes
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 samba_cv_USE_SETRESUID=no
10958 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10959 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10960 seteuid=yes;cat >> confdefs.h <<\EOF
10961 #define USE_SETRESUID 1
10968 if test $seteuid = no; then
10969 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10970 echo "configure:10971: checking for setreuid" >&5
10971 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10972 echo $ac_n "(cached) $ac_c" 1>&6
10975 if test "$cross_compiling" = yes; then
10976 samba_cv_USE_SETREUID=cross
10978 cat > conftest.$ac_ext <<EOF
10979 #line 10980 "configure"
10980 #include "confdefs.h"
10982 #define AUTOCONF_TEST 1
10983 #define USE_SETREUID 1
10984 #include "confdefs.h"
10985 #include "${srcdir-.}/lib/util_sec.c"
10987 if { (eval echo configure:10988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10989 samba_cv_USE_SETREUID=yes
10991 echo "configure: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10994 samba_cv_USE_SETREUID=no
11001 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11002 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11003 seteuid=yes;cat >> confdefs.h <<\EOF
11004 #define USE_SETREUID 1
11010 if test $seteuid = no; then
11011 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11012 echo "configure:11013: checking for seteuid" >&5
11013 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11017 if test "$cross_compiling" = yes; then
11018 samba_cv_USE_SETEUID=cross
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11024 #define AUTOCONF_TEST 1
11025 #define USE_SETEUID 1
11026 #include "confdefs.h"
11027 #include "${srcdir-.}/lib/util_sec.c"
11029 if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11031 samba_cv_USE_SETEUID=yes
11033 echo "configure: failed program was:" >&5
11034 cat conftest.$ac_ext >&5
11036 samba_cv_USE_SETEUID=no
11043 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11044 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11045 seteuid=yes;cat >> confdefs.h <<\EOF
11046 #define USE_SETEUID 1
11052 if test $seteuid = no; then
11053 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11054 echo "configure:11055: checking for setuidx" >&5
11055 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11059 if test "$cross_compiling" = yes; then
11060 samba_cv_USE_SETUIDX=cross
11062 cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11066 #define AUTOCONF_TEST 1
11067 #define USE_SETUIDX 1
11068 #include "confdefs.h"
11069 #include "${srcdir-.}/lib/util_sec.c"
11071 if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11073 samba_cv_USE_SETUIDX=yes
11075 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11078 samba_cv_USE_SETUIDX=no
11085 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11086 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11087 seteuid=yes;cat >> confdefs.h <<\EOF
11088 #define USE_SETUIDX 1
11095 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11096 echo "configure:11097: checking for working mmap" >&5
11097 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
11101 if test "$cross_compiling" = yes; then
11102 samba_cv_HAVE_MMAP=cross
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 #include "${srcdir-.}/tests/shared_mmap.c"
11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11111 samba_cv_HAVE_MMAP=yes
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11116 samba_cv_HAVE_MMAP=no
11123 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11124 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11125 cat >> confdefs.h <<\EOF
11126 #define HAVE_MMAP 1
11131 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11132 echo "configure:11133: checking for ftruncate needs root" >&5
11133 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11134 echo $ac_n "(cached) $ac_c" 1>&6
11137 if test "$cross_compiling" = yes; then
11138 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11143 #include "${srcdir-.}/tests/ftruncroot.c"
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11147 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11152 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11159 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11160 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11161 cat >> confdefs.h <<\EOF
11162 #define FTRUNCATE_NEEDS_ROOT 1
11167 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11168 echo "configure:11169: checking for fcntl locking" >&5
11169 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11170 echo $ac_n "(cached) $ac_c" 1>&6
11173 if test "$cross_compiling" = yes; then
11174 samba_cv_HAVE_FCNTL_LOCK=cross
11176 cat > conftest.$ac_ext <<EOF
11177 #line 11178 "configure"
11178 #include "confdefs.h"
11179 #include "${srcdir-.}/tests/fcntl_lock.c"
11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11183 samba_cv_HAVE_FCNTL_LOCK=yes
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11188 samba_cv_HAVE_FCNTL_LOCK=no
11195 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11196 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11197 cat >> confdefs.h <<\EOF
11198 #define HAVE_FCNTL_LOCK 1
11203 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11204 echo "configure:11205: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11205 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11206 echo $ac_n "(cached) $ac_c" 1>&6
11209 if test "$cross_compiling" = yes; then
11210 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 #include "${srcdir-.}/tests/fcntl_lock64.c"
11217 if { (eval echo configure:11218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11219 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11221 echo "configure: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11224 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11231 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11232 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11233 cat >> confdefs.h <<\EOF
11234 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11241 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11242 echo "configure:11243: checking for 64 bit fcntl locking" >&5
11243 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11247 if test "$cross_compiling" = yes; then
11248 samba_cv_HAVE_STRUCT_FLOCK64=cross
11250 cat > conftest.$ac_ext <<EOF
11251 #line 11252 "configure"
11252 #include "confdefs.h"
11254 #if defined(HAVE_UNISTD_H)
11255 #include <unistd.h>
11258 #include <stdlib.h>
11260 #ifdef HAVE_FCNTL_H
11264 #ifdef HAVE_SYS_FCNTL_H
11265 #include <sys/fcntl.h>
11267 main() { struct flock64 fl64;
11268 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11275 if { (eval echo configure:11276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11277 samba_cv_HAVE_STRUCT_FLOCK64=yes
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11282 samba_cv_HAVE_STRUCT_FLOCK64=no
11289 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11291 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11292 cat >> confdefs.h <<\EOF
11293 #define HAVE_STRUCT_FLOCK64 1
11299 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11300 echo "configure:11301: checking for a crypt that needs truncated salt" >&5
11301 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11305 if test "$cross_compiling" = yes; then
11306 samba_cv_HAVE_TRUNCATED_SALT=cross
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11311 #include "${srcdir-.}/tests/crypttest.c"
11313 if { (eval echo configure:11314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11315 samba_cv_HAVE_TRUNCATED_SALT=no
11317 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11320 samba_cv_HAVE_TRUNCATED_SALT=yes
11327 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11328 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11329 cat >> confdefs.h <<\EOF
11330 #define HAVE_TRUNCATED_SALT 1
11335 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11336 echo "configure:11337: checking for broken nisplus include files" >&5
11337 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11338 echo $ac_n "(cached) $ac_c" 1>&6
11341 cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11344 #include <sys/acl.h>
11345 #if defined(HAVE_RPCSVC_NIS_H)
11346 #include <rpcsvc/nis.h>
11352 if { (eval echo configure:11353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11354 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11356 echo "configure: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11359 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11364 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11365 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11366 cat >> confdefs.h <<\EOF
11367 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11373 #################################################
11374 # check for smbwrapper support
11375 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11376 echo "configure:11377: checking whether to use smbwrapper" >&5
11377 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11378 if test "${with_smbwrapper+set}" = set; then
11379 withval="$with_smbwrapper"
11382 echo "$ac_t""yes" 1>&6
11383 cat >> confdefs.h <<\EOF
11384 #define WITH_SMBWRAPPER 1
11387 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11389 if test x$ATTEMPT_WRAP32_BUILD = x; then
11392 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11395 # Conditions under which smbwrapper should not be built.
11397 if test x$PICFLAG = x; then
11398 echo No support for PIC code - disabling smbwrapper and smbsh
11401 elif test x$ac_cv_func_syscall = xno; then
11402 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11408 echo "$ac_t""no" 1>&6
11412 echo "$ac_t""no" 1>&6
11417 #################################################
11418 # check for the AFS filesystem
11419 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11420 echo "configure:11421: checking whether to use AFS" >&5
11421 # Check whether --with-afs or --without-afs was given.
11422 if test "${with_afs+set}" = set; then
11423 withval="$with_afs"
11426 echo "$ac_t""yes" 1>&6
11427 cat >> confdefs.h <<\EOF
11433 echo "$ac_t""no" 1>&6
11437 echo "$ac_t""no" 1>&6
11443 #################################################
11444 # check for the DFS auth system
11445 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11446 echo "configure:11447: checking whether to use DFS auth" >&5
11447 # Check whether --with-dfs or --without-dfs was given.
11448 if test "${with_dfs+set}" = set; then
11449 withval="$with_dfs"
11452 echo "$ac_t""yes" 1>&6
11453 cat >> confdefs.h <<\EOF
11459 echo "$ac_t""no" 1>&6
11463 echo "$ac_t""no" 1>&6
11468 #################################################
11469 # check for Kerberos IV auth system
11470 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11471 echo "configure:11472: checking whether to use Kerberos IV" >&5
11472 # Check whether --with-krb4 or --without-krb4 was given.
11473 if test "${with_krb4+set}" = set; then
11474 withval="$with_krb4"
11475 echo "$ac_t""yes" 1>&6
11476 cat >> confdefs.h <<\EOF
11477 #define KRB4_AUTH 1
11480 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11481 echo "configure:11482: checking for dn_expand in -lresolv" >&5
11482 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11484 echo $ac_n "(cached) $ac_c" 1>&6
11486 ac_save_LIBS="$LIBS"
11487 LIBS="-lresolv $LIBS"
11488 cat > conftest.$ac_ext <<EOF
11489 #line 11490 "configure"
11490 #include "confdefs.h"
11491 /* Override any gcc2 internal prototype to avoid an error. */
11492 /* We use char because int might match the return type of a gcc2
11493 builtin and then its argument prototype would still apply. */
11500 if { (eval echo configure:11501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11502 eval "ac_cv_lib_$ac_lib_var=yes"
11504 echo "configure: failed program was:" >&5
11505 cat conftest.$ac_ext >&5
11507 eval "ac_cv_lib_$ac_lib_var=no"
11510 LIBS="$ac_save_LIBS"
11513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11514 echo "$ac_t""yes" 1>&6
11515 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11516 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11517 cat >> confdefs.h <<EOF
11518 #define $ac_tr_lib 1
11521 LIBS="-lresolv $LIBS"
11524 echo "$ac_t""no" 1>&6
11527 LIBS="$LIBS -lkrb -ldes"
11528 CFLAGS="$CFLAGS -I$withval/include"
11529 LDFLAGS="$LDFLAGS -L$withval/lib"
11531 echo "$ac_t""no" 1>&6
11536 #################################################
11537 # check for Kerberos 5 auth system
11538 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11539 echo "configure:11540: checking whether to use Kerberos 5" >&5
11540 # Check whether --with-krb5 or --without-krb5 was given.
11541 if test "${with_krb5+set}" = set; then
11542 withval="$with_krb5"
11543 echo "$ac_t""yes" 1>&6
11544 cat >> confdefs.h <<\EOF
11545 #define KRB5_AUTH 1
11548 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11549 CFLAGS="$CFLAGS -I$withval/include"
11550 LDFLAGS="$LDFLAGS -L$withval/lib"
11552 echo "$ac_t""no" 1>&6
11557 #################################################
11558 # check for automount support
11559 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11560 echo "configure:11561: checking whether to use AUTOMOUNT" >&5
11561 # Check whether --with-automount or --without-automount was given.
11562 if test "${with_automount+set}" = set; then
11563 withval="$with_automount"
11566 echo "$ac_t""yes" 1>&6
11567 cat >> confdefs.h <<\EOF
11568 #define WITH_AUTOMOUNT 1
11573 echo "$ac_t""no" 1>&6
11577 echo "$ac_t""no" 1>&6
11582 #################################################
11583 # check for smbmount support
11584 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11585 echo "configure:11586: checking whether to use SMBMOUNT" >&5
11586 # Check whether --with-smbmount or --without-smbmount was given.
11587 if test "${with_smbmount+set}" = set; then
11588 withval="$with_smbmount"
11591 echo "$ac_t""yes" 1>&6
11592 cat >> confdefs.h <<\EOF
11593 #define WITH_SMBMOUNT 1
11596 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11599 echo "$ac_t""no" 1>&6
11604 echo "$ac_t""no" 1>&6
11611 #################################################
11612 # check for a PAM password database
11614 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11615 echo "configure:11616: checking whether to use PAM password database" >&5
11616 # Check whether --with-pam or --without-pam was given.
11617 if test "${with_pam+set}" = set; then
11618 withval="$with_pam"
11621 echo "$ac_t""yes" 1>&6
11622 cat >> confdefs.h <<\EOF
11629 echo "$ac_t""no" 1>&6
11633 echo "$ac_t""no" 1>&6
11638 # we can't build a pam module if we don't have pam.
11639 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11640 echo "configure:11641: checking for pam_get_data in -lpam" >&5
11641 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11643 echo $ac_n "(cached) $ac_c" 1>&6
11645 ac_save_LIBS="$LIBS"
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 /* Override any gcc2 internal prototype to avoid an error. */
11651 /* We use char because int might match the return type of a gcc2
11652 builtin and then its argument prototype would still apply. */
11653 char pam_get_data();
11659 if { (eval echo configure:11660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11661 eval "ac_cv_lib_$ac_lib_var=yes"
11663 echo "configure: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11666 eval "ac_cv_lib_$ac_lib_var=no"
11669 LIBS="$ac_save_LIBS"
11672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11673 echo "$ac_t""yes" 1>&6
11674 cat >> confdefs.h <<\EOF
11675 #define HAVE_LIBPAM 1
11679 echo "$ac_t""no" 1>&6
11683 #################################################
11684 # check for pam_smbpass support
11685 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11686 echo "configure:11687: checking whether to use pam_smbpass" >&5
11687 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11688 if test "${with_pam_smbpass+set}" = set; then
11689 withval="$with_pam_smbpass"
11692 echo "$ac_t""yes" 1>&6
11694 # Conditions under which pam_smbpass should not be built.
11696 if test x$PICFLAG = x; then
11697 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11699 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11700 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11703 cat >> confdefs.h <<\EOF
11704 #define WITH_PAM_SMBPASS 1
11707 PAM_MOD="bin/pam_smbpass.so"
11711 echo "$ac_t""no" 1>&6
11715 echo "$ac_t""no" 1>&6
11721 ###############################################
11722 # test for where we get crypt() from, but only
11724 if test "$with_pam" != yes; then
11725 for ac_func in crypt
11727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11728 echo "configure:11729: checking for $ac_func" >&5
11729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11732 cat > conftest.$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11735 /* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func(); below. */
11737 #include <assert.h>
11738 /* Override any gcc2 internal prototype to avoid an error. */
11739 /* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11756 if { (eval echo configure:11757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11758 eval "ac_cv_func_$ac_func=yes"
11760 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5
11763 eval "ac_cv_func_$ac_func=no"
11768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11769 echo "$ac_t""yes" 1>&6
11770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11771 cat >> confdefs.h <<EOF
11772 #define $ac_tr_func 1
11776 echo "$ac_t""no" 1>&6
11780 if test x"$ac_cv_func_crypt" = x"no"; then
11781 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11782 echo "configure:11783: checking for crypt in -lcrypt" >&5
11783 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11787 ac_save_LIBS="$LIBS"
11788 LIBS="-lcrypt $LIBS"
11789 cat > conftest.$ac_ext <<EOF
11790 #line 11791 "configure"
11791 #include "confdefs.h"
11792 /* Override any gcc2 internal prototype to avoid an error. */
11793 /* We use char because int might match the return type of a gcc2
11794 builtin and then its argument prototype would still apply. */
11801 if { (eval echo configure:11802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11803 eval "ac_cv_lib_$ac_lib_var=yes"
11805 echo "configure: failed program was:" >&5
11806 cat conftest.$ac_ext >&5
11808 eval "ac_cv_lib_$ac_lib_var=no"
11811 LIBS="$ac_save_LIBS"
11814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816 LIBS="$LIBS -lcrypt";
11817 cat >> confdefs.h <<\EOF
11818 #define HAVE_CRYPT 1
11822 echo "$ac_t""no" 1>&6
11829 #################################################
11830 # check for a TDB password database
11831 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11832 echo "configure:11833: checking whether to use TDB password database" >&5
11833 # Check whether --with-tdbsam or --without-tdbsam was given.
11834 if test "${with_tdbsam+set}" = set; then
11835 withval="$with_tdbsam"
11838 echo "$ac_t""yes" 1>&6
11839 cat >> confdefs.h <<\EOF
11840 #define WITH_TDBPWD 1
11843 # AC_MSG_ERROR([TDB password database not supported in this version.])
11846 echo "$ac_t""no" 1>&6
11850 echo "$ac_t""no" 1>&6
11855 #################################################
11856 # check for a LDAP password database
11857 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11858 echo "configure:11859: checking whether to use LDAP password database" >&5
11859 # Check whether --with-ldap or --without-ldap was given.
11860 if test "${with_ldap+set}" = set; then
11861 withval="$with_ldap"
11864 echo "$ac_t""yes" 1>&6
11865 cat >> confdefs.h <<\EOF
11866 #define WITH_LDAP 1
11869 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11872 echo "$ac_t""no" 1>&6
11876 echo "$ac_t""no" 1>&6
11881 #################################################
11882 # check for a NISPLUS password database
11883 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11884 echo "configure:11885: checking whether to use NISPLUS password database" >&5
11885 # Check whether --with-nisplus or --without-nisplus was given.
11886 if test "${with_nisplus+set}" = set; then
11887 withval="$with_nisplus"
11890 echo "$ac_t""yes" 1>&6
11891 cat >> confdefs.h <<\EOF
11892 #define WITH_NISPLUS 1
11897 echo "$ac_t""no" 1>&6
11901 echo "$ac_t""no" 1>&6
11906 #################################################
11907 # check for a NISPLUS_HOME support
11908 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11909 echo "configure:11910: checking whether to use NISPLUS_HOME" >&5
11910 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11911 if test "${with_nisplus_home+set}" = set; then
11912 withval="$with_nisplus_home"
11915 echo "$ac_t""yes" 1>&6
11916 cat >> confdefs.h <<\EOF
11917 #define WITH_NISPLUS_HOME 1
11922 echo "$ac_t""no" 1>&6
11926 echo "$ac_t""no" 1>&6
11931 #################################################
11932 # check for the secure socket layer
11933 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11934 echo "configure:11935: checking whether to use SSL" >&5
11935 # Check whether --with-ssl or --without-ssl was given.
11936 if test "${with_ssl+set}" = set; then
11937 withval="$with_ssl"
11940 echo "$ac_t""yes" 1>&6
11941 cat >> confdefs.h <<\EOF
11945 withval="/usr/local/ssl" # default
11947 if test "${with_sslinc+set}" = set; then
11949 withval="$with_sslinc"
11952 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11953 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11954 LIBS="-lssl -lcrypto $LIBS"
11955 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11958 CFLAGS="-I${withval} $CFLAGS"
11959 LIBS="-lssl -lcrypto $LIBS"
11960 LDFLAGS="-L${withval}/lib $LDFLAGS"
11966 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11967 LIBS="-lssl -lcrypto $LIBS"
11968 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11972 if test ! -d ${withval}; then
11973 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11977 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11981 echo "$ac_t""no" 1>&6
11985 echo "$ac_t""no" 1>&6
11990 #################################################
11991 # check for syslog logging
11992 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11993 echo "configure:11994: checking whether to use syslog logging" >&5
11994 # Check whether --with-syslog or --without-syslog was given.
11995 if test "${with_syslog+set}" = set; then
11996 withval="$with_syslog"
11999 echo "$ac_t""yes" 1>&6
12000 cat >> confdefs.h <<\EOF
12001 #define WITH_SYSLOG 1
12006 echo "$ac_t""no" 1>&6
12010 echo "$ac_t""no" 1>&6
12015 #################################################
12016 # check for a shared memory profiling support
12017 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12018 echo "configure:12019: checking whether to use profiling" >&5
12019 # Check whether --with-profile or --without-profile was given.
12020 if test "${with_profile+set}" = set; then
12021 withval="$with_profile"
12024 echo "$ac_t""yes" 1>&6
12025 cat >> confdefs.h <<\EOF
12026 #define WITH_PROFILE 1
12031 echo "$ac_t""no" 1>&6
12035 echo "$ac_t""no" 1>&6
12041 #################################################
12042 # check for experimental netatalk resource fork support
12043 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
12044 echo "configure:12045: checking whether to support netatalk" >&5
12045 # Check whether --with-netatalk or --without-netatalk was given.
12046 if test "${with_netatalk+set}" = set; then
12047 withval="$with_netatalk"
12050 echo "$ac_t""yes" 1>&6
12051 cat >> confdefs.h <<\EOF
12052 #define WITH_NETATALK 1
12057 echo "$ac_t""no" 1>&6
12061 echo "$ac_t""no" 1>&6
12066 #################################################
12067 # check for experimental disk-quotas support
12068 QUOTAOBJS=smbd/noquotas.o
12070 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12071 echo "configure:12072: checking whether to support disk-quotas" >&5
12072 # Check whether --with-quotas or --without-quotas was given.
12073 if test "${with_quotas+set}" = set; then
12074 withval="$with_quotas"
12077 echo "$ac_t""yes" 1>&6
12078 QUOTAOBJS=smbd/quotas.o
12081 echo "$ac_t""no" 1>&6
12085 echo "$ac_t""no" 1>&6
12091 #################################################
12092 # check for experimental utmp accounting
12094 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12095 echo "configure:12096: checking whether to support utmp accounting" >&5
12096 # Check whether --with-utmp or --without-utmp was given.
12097 if test "${with_utmp+set}" = set; then
12098 withval="$with_utmp"
12101 echo "$ac_t""yes" 1>&6
12102 cat >> confdefs.h <<\EOF
12103 #define WITH_UTMP 1
12108 echo "$ac_t""no" 1>&6
12112 echo "$ac_t""no" 1>&6
12117 #################################################
12118 # check for MS Dfs support
12120 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12121 echo "configure:12122: checking whether to support Microsoft Dfs" >&5
12122 # Check whether --with-msdfs or --without-msdfs was given.
12123 if test "${with_msdfs+set}" = set; then
12124 withval="$with_msdfs"
12127 echo "$ac_t""yes" 1>&6
12128 cat >> confdefs.h <<\EOF
12129 #define WITH_MSDFS 1
12134 echo "$ac_t""no" 1>&6
12138 echo "$ac_t""no" 1>&6
12143 #################################################
12144 # set private directory location
12145 # Check whether --with-privatedir or --without-privatedir was given.
12146 if test "${with_privatedir+set}" = set; then
12147 withval="$with_privatedir"
12151 # Just in case anybody calls it without argument
12153 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12154 privatedir='${prefix}/private'
12157 privatedir="$withval"
12162 privatedir='${prefix}/private'
12168 #################################################
12169 # set lock directory location
12170 # Check whether --with-lockdir or --without-lockdir was given.
12171 if test "${with_lockdir+set}" = set; then
12172 withval="$with_lockdir"
12176 # Just in case anybody calls it without argument
12178 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12179 lockdir='$(VARDIR)/locks'
12187 lockdir='$(VARDIR)/locks'
12193 #################################################
12194 # set SWAT directory location
12195 # Check whether --with-swatdir or --without-swatdir was given.
12196 if test "${with_swatdir+set}" = set; then
12197 withval="$with_swatdir"
12201 # Just in case anybody does it
12203 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12204 swatdir='${prefix}/swat'
12212 swatdir='${prefix}/swat'
12218 #################################################
12219 # these tests are taken from the GNU fileutils package
12220 echo "checking how to get filesystem space usage" 1>&6
12221 echo "configure:12222: checking how to get filesystem space usage" >&5
12224 # Test for statvfs64.
12225 if test $space = no; then
12227 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12228 echo "configure:12229: checking statvfs64 function (SVR4)" >&5
12229 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12230 echo $ac_n "(cached) $ac_c" 1>&6
12232 if test "$cross_compiling" = yes; then
12233 fu_cv_sys_stat_statvfs64=cross
12235 cat > conftest.$ac_ext <<EOF
12236 #line 12237 "configure"
12237 #include "confdefs.h"
12239 #if defined(HAVE_UNISTD_H)
12240 #include <unistd.h>
12242 #include <sys/types.h>
12243 #include <sys/statvfs.h>
12246 struct statvfs64 fsd;
12247 exit (statvfs64 (".", &fsd));
12250 if { (eval echo configure:12251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12252 fu_cv_sys_stat_statvfs64=yes
12254 echo "configure: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12257 fu_cv_sys_stat_statvfs64=no
12264 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12265 if test $fu_cv_sys_stat_statvfs64 = yes; then
12267 cat >> confdefs.h <<\EOF
12268 #define STAT_STATVFS64 1
12274 # Perform only the link test since it seems there are no variants of the
12275 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12276 # because that got a false positive on SCO OSR5. Adding the declaration
12277 # of a `struct statvfs' causes this test to fail (as it should) on such
12278 # systems. That system is reported to work fine with STAT_STATFS4 which
12279 # is what it gets when this test fails.
12280 if test $space = no; then
12282 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12283 echo "configure:12284: checking statvfs function (SVR4)" >&5
12284 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12285 echo $ac_n "(cached) $ac_c" 1>&6
12287 cat > conftest.$ac_ext <<EOF
12288 #line 12289 "configure"
12289 #include "confdefs.h"
12290 #include <sys/types.h>
12291 #include <sys/statvfs.h>
12293 struct statvfs fsd; statvfs (0, &fsd);
12296 if { (eval echo configure:12297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12298 fu_cv_sys_stat_statvfs=yes
12300 echo "configure: failed program was:" >&5
12301 cat conftest.$ac_ext >&5
12303 fu_cv_sys_stat_statvfs=no
12308 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12309 if test $fu_cv_sys_stat_statvfs = yes; then
12311 cat >> confdefs.h <<\EOF
12312 #define STAT_STATVFS 1
12318 if test $space = no; then
12319 # DEC Alpha running OSF/1
12320 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12321 echo "configure:12322: checking for 3-argument statfs function (DEC OSF/1)" >&5
12322 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12325 if test "$cross_compiling" = yes; then
12326 fu_cv_sys_stat_statfs3_osf1=no
12328 cat > conftest.$ac_ext <<EOF
12329 #line 12330 "configure"
12330 #include "confdefs.h"
12332 #include <sys/param.h>
12333 #include <sys/types.h>
12334 #include <sys/mount.h>
12339 exit (statfs (".", &fsd, sizeof (struct statfs)));
12342 if { (eval echo configure:12343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12344 fu_cv_sys_stat_statfs3_osf1=yes
12346 echo "configure: failed program was:" >&5
12347 cat conftest.$ac_ext >&5
12349 fu_cv_sys_stat_statfs3_osf1=no
12356 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12357 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12359 cat >> confdefs.h <<\EOF
12360 #define STAT_STATFS3_OSF1 1
12366 if test $space = no; then
12368 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12369 echo "configure:12370: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12370 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12371 echo $ac_n "(cached) $ac_c" 1>&6
12373 if test "$cross_compiling" = yes; then
12374 fu_cv_sys_stat_statfs2_bsize=no
12376 cat > conftest.$ac_ext <<EOF
12377 #line 12378 "configure"
12378 #include "confdefs.h"
12380 #ifdef HAVE_SYS_PARAM_H
12381 #include <sys/param.h>
12383 #ifdef HAVE_SYS_MOUNT_H
12384 #include <sys/mount.h>
12386 #ifdef HAVE_SYS_VFS_H
12387 #include <sys/vfs.h>
12393 exit (statfs (".", &fsd));
12396 if { (eval echo configure:12397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12398 fu_cv_sys_stat_statfs2_bsize=yes
12400 echo "configure: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12403 fu_cv_sys_stat_statfs2_bsize=no
12410 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12411 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12413 cat >> confdefs.h <<\EOF
12414 #define STAT_STATFS2_BSIZE 1
12420 if test $space = no; then
12422 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12423 echo "configure:12424: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12424 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12425 echo $ac_n "(cached) $ac_c" 1>&6
12427 if test "$cross_compiling" = yes; then
12428 fu_cv_sys_stat_statfs4=no
12430 cat > conftest.$ac_ext <<EOF
12431 #line 12432 "configure"
12432 #include "confdefs.h"
12433 #include <sys/types.h>
12434 #include <sys/statfs.h>
12438 exit (statfs (".", &fsd, sizeof fsd, 0));
12441 if { (eval echo configure:12442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12443 fu_cv_sys_stat_statfs4=yes
12445 echo "configure: failed program was:" >&5
12446 cat conftest.$ac_ext >&5
12448 fu_cv_sys_stat_statfs4=no
12455 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12456 if test $fu_cv_sys_stat_statfs4 = yes; then
12458 cat >> confdefs.h <<\EOF
12459 #define STAT_STATFS4 1
12465 if test $space = no; then
12466 # 4.4BSD and NetBSD
12467 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12468 echo "configure:12469: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12469 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12470 echo $ac_n "(cached) $ac_c" 1>&6
12472 if test "$cross_compiling" = yes; then
12473 fu_cv_sys_stat_statfs2_fsize=no
12475 cat > conftest.$ac_ext <<EOF
12476 #line 12477 "configure"
12477 #include "confdefs.h"
12478 #include <sys/types.h>
12479 #ifdef HAVE_SYS_PARAM_H
12480 #include <sys/param.h>
12482 #ifdef HAVE_SYS_MOUNT_H
12483 #include <sys/mount.h>
12489 exit (statfs (".", &fsd));
12492 if { (eval echo configure:12493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12494 fu_cv_sys_stat_statfs2_fsize=yes
12496 echo "configure: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12499 fu_cv_sys_stat_statfs2_fsize=no
12506 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12507 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12509 cat >> confdefs.h <<\EOF
12510 #define STAT_STATFS2_FSIZE 1
12516 if test $space = no; then
12518 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12519 echo "configure:12520: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12520 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12521 echo $ac_n "(cached) $ac_c" 1>&6
12523 if test "$cross_compiling" = yes; then
12524 fu_cv_sys_stat_fs_data=no
12526 cat > conftest.$ac_ext <<EOF
12527 #line 12528 "configure"
12528 #include "confdefs.h"
12529 #include <sys/types.h>
12530 #ifdef HAVE_SYS_PARAM_H
12531 #include <sys/param.h>
12533 #ifdef HAVE_SYS_MOUNT_H
12534 #include <sys/mount.h>
12536 #ifdef HAVE_SYS_FS_TYPES_H
12537 #include <sys/fs_types.h>
12541 struct fs_data fsd;
12542 /* Ultrix's statfs returns 1 for success,
12543 0 for not mounted, -1 for failure. */
12544 exit (statfs (".", &fsd) != 1);
12547 if { (eval echo configure:12548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12549 fu_cv_sys_stat_fs_data=yes
12551 echo "configure: failed program was:" >&5
12552 cat conftest.$ac_ext >&5
12554 fu_cv_sys_stat_fs_data=no
12561 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12562 if test $fu_cv_sys_stat_fs_data = yes; then
12564 cat >> confdefs.h <<\EOF
12565 #define STAT_STATFS2_FS_DATA 1
12572 # As a gating factor for large file support, in order to
12573 # use <4GB files we must have the following minimal support
12575 # long long, and a 64 bit off_t or off64_t.
12576 # If we don't have all of these then disable large
12579 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12580 echo "configure:12581: checking if large file support can be enabled" >&5
12581 cat > conftest.$ac_ext <<EOF
12582 #line 12583 "configure"
12583 #include "confdefs.h"
12585 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12586 #include <sys/types.h>
12595 if { (eval echo configure:12596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12597 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12599 echo "configure: failed program was:" >&5
12600 cat conftest.$ac_ext >&5
12602 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12605 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12606 cat >> confdefs.h <<\EOF
12607 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12611 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12613 # Check whether --with-spinlocks or --without-spinlocks was given.
12614 if test "${with_spinlocks+set}" = set; then
12615 withval="$with_spinlocks"
12619 if test "x$with_spinlocks" = "xyes"; then
12620 cat >> confdefs.h <<\EOF
12621 #define USE_SPINLOCKS 1
12625 case "$host_cpu" in
12627 cat >> confdefs.h <<\EOF
12628 #define SPARC_SPINLOCKS 1
12633 i386|i486|i586|i686)
12634 cat >> confdefs.h <<\EOF
12635 #define INTEL_SPINLOCKS 1
12641 cat >> confdefs.h <<\EOF
12642 #define MIPS_SPINLOCKS 1
12648 cat >> confdefs.h <<\EOF
12649 #define POWERPC_SPINLOCKS 1
12656 #################################################
12657 # check for ACL support
12659 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12660 echo "configure:12661: checking whether to support ACLs" >&5
12661 # Check whether --with-acl-support or --without-acl-support was given.
12662 if test "${with_acl_support+set}" = set; then
12663 withval="$with_acl_support"
12669 echo "$ac_t""Using UnixWare ACLs" 1>&6
12670 cat >> confdefs.h <<\EOF
12671 #define HAVE_UNIXWARE_ACLS 1
12676 echo "$ac_t""Using solaris ACLs" 1>&6
12677 cat >> confdefs.h <<\EOF
12678 #define HAVE_SOLARIS_ACLS 1
12683 echo "$ac_t""Using IRIX ACLs" 1>&6
12684 cat >> confdefs.h <<\EOF
12685 #define HAVE_IRIX_ACLS 1
12690 echo "$ac_t""Using AIX ACLs" 1>&6
12691 cat >> confdefs.h <<\EOF
12692 #define HAVE_AIX_ACLS 1
12697 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12698 echo "configure:12699: checking for acl_get_file in -lacl" >&5
12699 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12701 echo $ac_n "(cached) $ac_c" 1>&6
12703 ac_save_LIBS="$LIBS"
12705 cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 /* Override any gcc2 internal prototype to avoid an error. */
12709 /* We use char because int might match the return type of a gcc2
12710 builtin and then its argument prototype would still apply. */
12711 char acl_get_file();
12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12719 eval "ac_cv_lib_$ac_lib_var=yes"
12721 echo "configure: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12724 eval "ac_cv_lib_$ac_lib_var=no"
12727 LIBS="$ac_save_LIBS"
12730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12731 echo "$ac_t""yes" 1>&6
12732 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12733 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12734 cat >> confdefs.h <<EOF
12735 #define $ac_tr_lib 1
12741 echo "$ac_t""no" 1>&6
12744 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12745 echo "configure:12746: checking for ACL support" >&5
12746 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12747 echo $ac_n "(cached) $ac_c" 1>&6
12750 cat > conftest.$ac_ext <<EOF
12751 #line 12752 "configure"
12752 #include "confdefs.h"
12753 #include <sys/types.h>
12754 #include <sys/acl.h>
12756 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12759 if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12761 samba_cv_HAVE_POSIX_ACLS=yes
12763 echo "configure: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12766 samba_cv_HAVE_POSIX_ACLS=no
12771 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12772 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12773 echo "$ac_t""Using posix ACLs" 1>&6
12774 cat >> confdefs.h <<\EOF
12775 #define HAVE_POSIX_ACLS 1
12778 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12779 echo "configure:12780: checking for acl_get_perm_np" >&5
12780 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12781 echo $ac_n "(cached) $ac_c" 1>&6
12784 cat > conftest.$ac_ext <<EOF
12785 #line 12786 "configure"
12786 #include "confdefs.h"
12787 #include <sys/types.h>
12788 #include <sys/acl.h>
12790 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12793 if { (eval echo configure:12794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12795 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12797 echo "configure: failed program was:" >&5
12798 cat conftest.$ac_ext >&5
12800 samba_cv_HAVE_ACL_GET_PERM_NP=no
12805 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12806 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12807 cat >> confdefs.h <<\EOF
12808 #define HAVE_ACL_GET_PERM_NP 1
12817 echo "$ac_t""no" 1>&6
12818 cat >> confdefs.h <<\EOF
12819 #define HAVE_NO_ACLS 1
12825 cat >> confdefs.h <<\EOF
12826 #define HAVE_NO_ACLS 1
12829 echo "$ac_t""no" 1>&6
12834 #################################################
12835 # check whether winbind is supported on this platform
12837 echo $ac_n "checking whether to compile winbind""... $ac_c" 1>&6
12838 echo "configure:12839: checking whether to compile winbind" >&5
12842 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PROGS)"
12843 case "$with_pam" in
12845 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PAM_PROGS)"
12851 winbind_no_reason=", unsupported on $host_os"
12855 # Check whether --with-winbind or --without-winbind was given.
12856 if test "${with_winbind+set}" = set; then
12857 withval="$with_winbind"
12868 if test x"$WINBIND_TARGETS" = x; then
12869 echo "$ac_t""no$winbind_no_reason" 1>&6
12871 echo "$ac_t""yes" 1>&6
12876 #################################################
12877 # final configure stuff
12879 echo "checking configure summary"
12880 if test "$cross_compiling" = yes; then
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12886 #include "${srcdir-.}/tests/summary.c"
12888 if { (eval echo configure:12889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12890 echo "configure OK";
12892 echo "configure: failed program was:" >&5
12893 cat conftest.$ac_ext >&5
12895 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12905 cat > confcache <<\EOF
12906 # This file is a shell script that caches the results of configure
12907 # tests run on this system so they can be shared between configure
12908 # scripts and configure runs. It is not useful on other systems.
12909 # If it contains results you don't want to keep, you may remove or edit it.
12911 # By default, configure uses ./config.cache as the cache file,
12912 # creating it if it does not exist already. You can give configure
12913 # the --cache-file=FILE option to use a different cache file; that is
12914 # what configure does when it calls configure scripts in
12915 # subdirectories, so they share the cache.
12916 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12917 # config.status only pays attention to the cache file if you give it the
12918 # --recheck option to rerun configure.
12921 # The following way of writing the cache mishandles newlines in values,
12922 # but we know of no workaround that is simple, portable, and efficient.
12923 # So, don't put newlines in cache variables' values.
12924 # Ultrix sh set writes to stderr and can't be redirected directly,
12925 # and sets the high bit in the cache file unless we assign to the vars.
12927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12929 # `set' does not quote correctly, so add quotes (double-quote substitution
12930 # turns \\\\ into \\, and sed turns \\ into \).
12932 -e "s/'/'\\\\''/g" \
12933 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12936 # `set' quotes correctly as required by POSIX, so do not add quotes.
12937 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12940 if cmp -s $cache_file confcache; then
12943 if test -w $cache_file; then
12944 echo "updating cache $cache_file"
12945 cat confcache > $cache_file
12947 echo "not updating unwritable cache $cache_file"
12952 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12954 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12955 # Let make expand exec_prefix.
12956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12958 # Any assignment to VPATH causes Sun make to only execute
12959 # the first set of double-colon rules, so remove it if not needed.
12960 # If there is a colon in the path, we need to keep it.
12961 if test "x$srcdir" = x.; then
12962 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12965 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12967 DEFS=-DHAVE_CONFIG_H
12969 # Without the "./", some shells look in PATH for config.status.
12970 : ${CONFIG_STATUS=./config.status}
12972 echo creating $CONFIG_STATUS
12973 rm -f $CONFIG_STATUS
12974 cat > $CONFIG_STATUS <<EOF
12976 # Generated automatically by configure.
12977 # Run this file to recreate the current configuration.
12978 # This directory was configured as follows,
12979 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12981 # $0 $ac_configure_args
12983 # Compiler output produced by configure, useful for debugging
12984 # configure, is in ./config.log if it exists.
12986 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12989 case "\$ac_option" in
12990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12991 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12992 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12993 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12994 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12996 -help | --help | --hel | --he | --h)
12997 echo "\$ac_cs_usage"; exit 0 ;;
12998 *) echo "\$ac_cs_usage"; exit 1 ;;
13002 ac_given_srcdir=$srcdir
13003 ac_given_INSTALL="$INSTALL"
13005 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13007 cat >> $CONFIG_STATUS <<EOF
13009 # Protect against being on the right side of a sed subst in config.status.
13010 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13011 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13015 s%@CFLAGS@%$CFLAGS%g
13016 s%@CPPFLAGS@%$CPPFLAGS%g
13017 s%@CXXFLAGS@%$CXXFLAGS%g
13018 s%@FFLAGS@%$FFLAGS%g
13020 s%@LDFLAGS@%$LDFLAGS%g
13022 s%@exec_prefix@%$exec_prefix%g
13023 s%@prefix@%$prefix%g
13024 s%@program_transform_name@%$program_transform_name%g
13025 s%@bindir@%$bindir%g
13026 s%@sbindir@%$sbindir%g
13027 s%@libexecdir@%$libexecdir%g
13028 s%@datadir@%$datadir%g
13029 s%@sysconfdir@%$sysconfdir%g
13030 s%@sharedstatedir@%$sharedstatedir%g
13031 s%@localstatedir@%$localstatedir%g
13032 s%@libdir@%$libdir%g
13033 s%@includedir@%$includedir%g
13034 s%@oldincludedir@%$oldincludedir%g
13035 s%@infodir@%$infodir%g
13036 s%@mandir@%$mandir%g
13037 s%@RUNPROG@%$RUNPROG%g
13038 s%@MPROGS@%$MPROGS%g
13039 s%@LDSHFLAGS@%$LDSHFLAGS%g
13040 s%@HOST_OS@%$HOST_OS%g
13041 s%@PAM_MOD@%$PAM_MOD%g
13043 s%@WRAP32@%$WRAP32%g
13044 s%@PICFLAG@%$PICFLAG%g
13045 s%@SHLIBEXT@%$SHLIBEXT%g
13046 s%@BLDSHARED@%$BLDSHARED%g
13048 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13049 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13050 s%@INSTALL_DATA@%$INSTALL_DATA%g
13053 s%@host_alias@%$host_alias%g
13054 s%@host_cpu@%$host_cpu%g
13055 s%@host_vendor@%$host_vendor%g
13056 s%@host_os@%$host_os%g
13058 s%@build_alias@%$build_alias%g
13059 s%@build_cpu@%$build_cpu%g
13060 s%@build_vendor@%$build_vendor%g
13061 s%@build_os@%$build_os%g
13062 s%@RANLIB@%$RANLIB%g
13064 s%@LIBTOOL@%$LIBTOOL%g
13065 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
13066 s%@BROKEN_CC@%$BROKEN_CC%g
13067 s%@target@%$target%g
13068 s%@target_alias@%$target_alias%g
13069 s%@target_cpu@%$target_cpu%g
13070 s%@target_vendor@%$target_vendor%g
13071 s%@target_os@%$target_os%g
13073 s%@LIBOBJS@%$LIBOBJS%g
13074 s%@TERMLIBS@%$TERMLIBS%g
13075 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13077 s%@ICONV_OBJS@%$ICONV_OBJS%g
13078 s%@QUOTAOBJS@%$QUOTAOBJS%g
13079 s%@privatedir@%$privatedir%g
13080 s%@lockdir@%$lockdir%g
13081 s%@swatdir@%$swatdir%g
13082 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13083 s%@builddir@%$builddir%g
13088 cat >> $CONFIG_STATUS <<\EOF
13090 # Split the substitutions into bite-sized pieces for seds with
13091 # small command number limits, like on Digital OSF/1 and HP-UX.
13092 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13093 ac_file=1 # Number of current file.
13094 ac_beg=1 # First line for current file.
13095 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13098 while $ac_more_lines; do
13099 if test $ac_beg -gt 1; then
13100 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13102 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13104 if test ! -s conftest.s$ac_file; then
13105 ac_more_lines=false
13106 rm -f conftest.s$ac_file
13108 if test -z "$ac_sed_cmds"; then
13109 ac_sed_cmds="sed -f conftest.s$ac_file"
13111 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13113 ac_file=`expr $ac_file + 1`
13115 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13118 if test -z "$ac_sed_cmds"; then
13123 cat >> $CONFIG_STATUS <<EOF
13125 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13127 cat >> $CONFIG_STATUS <<\EOF
13128 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13131 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13132 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13133 *) ac_file_in="${ac_file}.in" ;;
13136 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13138 # Remove last slash and all that follows it. Not all systems have dirname.
13139 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13140 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13141 # The file is in a subdirectory.
13142 test ! -d "$ac_dir" && mkdir "$ac_dir"
13143 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13144 # A "../" for each directory in $ac_dir_suffix.
13145 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13147 ac_dir_suffix= ac_dots=
13150 case "$ac_given_srcdir" in
13152 if test -z "$ac_dots"; then top_srcdir=.
13153 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13154 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13155 *) # Relative path.
13156 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13157 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13160 case "$ac_given_INSTALL" in
13161 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13162 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13165 echo creating "$ac_file"
13167 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13169 *Makefile*) ac_comsub="1i\\
13170 # $configure_input" ;;
13174 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13176 s%@configure_input@%$configure_input%g
13177 s%@srcdir@%$srcdir%g
13178 s%@top_srcdir@%$top_srcdir%g
13179 s%@INSTALL@%$INSTALL%g
13180 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13184 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13185 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13187 # ac_d sets the value in "#define NAME VALUE" lines.
13188 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13189 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13192 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13193 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13194 ac_uB='\([ ]\)%\1#\2define\3'
13197 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13198 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13199 ac_eB='$%\1#\2define\3'
13203 if test "${CONFIG_HEADERS+set}" != set; then
13205 cat >> $CONFIG_STATUS <<EOF
13206 CONFIG_HEADERS="include/config.h"
13208 cat >> $CONFIG_STATUS <<\EOF
13210 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13213 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13214 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13215 *) ac_file_in="${ac_file}.in" ;;
13218 echo creating $ac_file
13220 rm -f conftest.frag conftest.in conftest.out
13221 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13222 cat $ac_file_inputs > conftest.in
13226 # Transform confdefs.h into a sed script conftest.vals that substitutes
13227 # the proper values into config.h.in to produce config.h. And first:
13228 # Protect against being on the right side of a sed subst in config.status.
13229 # Protect against being in an unquoted here document in config.status.
13230 rm -f conftest.vals
13231 cat > conftest.hdr <<\EOF
13234 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13238 sed -n -f conftest.hdr confdefs.h > conftest.vals
13241 # This sed command replaces #undef with comments. This is necessary, for
13242 # example, in the case of _POSIX_SOURCE, which is predefined and required
13243 # on some systems where configure will not decide to define it.
13244 cat >> conftest.vals <<\EOF
13245 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13248 # Break up conftest.vals because some shells have a limit on
13249 # the size of here documents, and old seds have small limits too.
13251 rm -f conftest.tail
13254 ac_lines=`grep -c . conftest.vals`
13255 # grep -c gives empty output for an empty file on some AIX systems.
13256 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13257 # Write a limited-size here document to conftest.frag.
13258 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13259 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13261 sed -f conftest.frag conftest.in > conftest.out
13263 mv conftest.out conftest.in
13264 ' >> $CONFIG_STATUS
13265 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13266 rm -f conftest.vals
13267 mv conftest.tail conftest.vals
13269 rm -f conftest.vals
13271 cat >> $CONFIG_STATUS <<\EOF
13272 rm -f conftest.frag conftest.h
13273 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13274 cat conftest.in >> conftest.h
13276 if cmp -s $ac_file conftest.h 2>/dev/null; then
13277 echo "$ac_file is unchanged"
13280 # Remove last slash and all that follows it. Not all systems have dirname.
13281 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13282 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13283 # The file is in a subdirectory.
13284 test ! -d "$ac_dir" && mkdir "$ac_dir"
13287 mv conftest.h $ac_file
13292 cat >> $CONFIG_STATUS <<EOF
13295 cat >> $CONFIG_STATUS <<\EOF
13299 chmod +x $CONFIG_STATUS
13300 rm -fr confdefs* $ac_clean_files
13301 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1