3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-maintainer-mode enable some make rules for maintainers"
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
27 --with-krb4=base-dir Include Kerberos IV support
28 --without-krb4 Don't include Kerbers IV support (default)"
30 --with-krb5=base-dir Include Kerberos 5 support
31 --without-krb5 Don't include Kerbers 5 support (default)"
33 --with-automount Include AUTOMOUNT support
34 --without-automount Don't include AUTOMOUNT support (default)"
36 --with-smbmount Include SMBMOUNT (Linux only) support
37 --without-smbmount Don't include SMBMOUNT support (default)"
39 --with-pam Include PAM password database support
40 --without-pam Don't include PAM password database support (default)"
42 --with-ldap Include LDAP support
43 --without-ldap Don't include LDAP support (default)"
45 --with-nisplus Include NISPLUS password database support
46 --without-nisplus Don't include NISPLUS password database support (default)"
48 --with-nisplus-home Include NISPLUS_HOME support
49 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
51 --with-ssl Include SSL support
52 --without-ssl Don't include SSL support (default)
53 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
55 --with-syslog Include experimental SYSLOG support
56 --without-syslog Don't include SYSLOG support (default)"
58 --with-profile Include profile support
59 --without-profile Don't include profile support (default)"
61 --with-netatalk Include experimental Netatalk support
62 --without-netatalk Don't include experimental Netatalk support (default)"
64 --with-quotas Include experimental disk-quota support
65 --without-quotas Don't include experimental disk-quota support (default)"
67 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
69 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
71 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
77 cache_file=./config.cache
86 program_transform_name=s,x,x,
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
110 # Maximum number of lines to put in a shell here document.
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 # Accept the important Cygnus configure options, so we can diagnose typos.
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
246 -host | --host | --hos | --ho)
248 -host=* | --host=* | --hos=* | --ho=*)
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.12"
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=include/includes.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
567 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
575 ac_n= ac_c='\c' ac_t=
580 # we want to be compatibe with older versions of Samba
593 # compile with optimisation and without debugging by default
594 CFLAGS=${CFLAGS-"-O"}
596 # Extract the first word of "gcc", so it can be a program name with args.
597 set dummy gcc; ac_word=$2
598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
599 echo "configure:600: checking for $ac_word" >&5
600 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
603 if test -n "$CC"; then
604 ac_cv_prog_CC="$CC" # Let the user override the test.
606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
607 for ac_dir in $PATH; do
608 test -z "$ac_dir" && ac_dir=.
609 if test -f $ac_dir/$ac_word; then
618 if test -n "$CC"; then
619 echo "$ac_t""$CC" 1>&6
621 echo "$ac_t""no" 1>&6
624 if test -z "$CC"; then
625 # Extract the first word of "cc", so it can be a program name with args.
626 set dummy cc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
637 for ac_dir in $PATH; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
640 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
649 if test $ac_prog_rejected = yes; then
650 # We found a bogon in the path, so make sure we never use it.
651 set dummy $ac_cv_prog_CC
653 if test $# -gt 0; then
654 # We chose a different compiler from the bogus one.
655 # However, it has the same basename, so the bogon will be chosen
656 # first if we set CC to just the basename; use the full file name.
658 set dummy "$ac_dir/$ac_word" "$@"
666 if test -n "$CC"; then
667 echo "$ac_t""$CC" 1>&6
669 echo "$ac_t""no" 1>&6
672 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
675 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
676 echo "configure:677: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
680 ac_cpp='$CPP $CPPFLAGS'
681 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
682 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
683 cross_compiling=$ac_cv_prog_cc_cross
685 cat > conftest.$ac_ext <<EOF
686 #line 687 "configure"
687 #include "confdefs.h"
690 if { (eval echo configure:691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
691 ac_cv_prog_cc_works=yes
692 # If we can't run a trivial program, we are probably using a cross compiler.
693 if (./conftest; exit) 2>/dev/null; then
694 ac_cv_prog_cc_cross=no
696 ac_cv_prog_cc_cross=yes
699 echo "configure: failed program was:" >&5
700 cat conftest.$ac_ext >&5
701 ac_cv_prog_cc_works=no
705 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
706 if test $ac_cv_prog_cc_works = no; then
707 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
709 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
710 echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
711 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
712 cross_compiling=$ac_cv_prog_cc_cross
714 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
715 echo "configure:716: checking whether we are using GNU C" >&5
716 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
719 cat > conftest.c <<EOF
724 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
731 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
733 if test $ac_cv_prog_gcc = yes; then
735 ac_test_CFLAGS="${CFLAGS+set}"
736 ac_save_CFLAGS="$CFLAGS"
738 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
739 echo "configure:740: checking whether ${CC-cc} accepts -g" >&5
740 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 echo 'void f(){}' > conftest.c
744 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
753 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
754 if test "$ac_test_CFLAGS" = set; then
755 CFLAGS="$ac_save_CFLAGS"
756 elif test $ac_cv_prog_cc_g = yes; then
763 test "${CFLAGS+set}" = set || CFLAGS="-g"
767 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
768 if test -f $ac_dir/install-sh; then
770 ac_install_sh="$ac_aux_dir/install-sh -c"
772 elif test -f $ac_dir/install.sh; then
774 ac_install_sh="$ac_aux_dir/install.sh -c"
778 if test -z "$ac_aux_dir"; then
779 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
781 ac_config_guess=$ac_aux_dir/config.guess
782 ac_config_sub=$ac_aux_dir/config.sub
783 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
785 # Find a good install program. We prefer a C program (faster),
786 # so one script is as good as another. But avoid the broken or
787 # incompatible versions:
788 # SysV /etc/install, /usr/sbin/install
789 # SunOS /usr/etc/install
792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
794 # ./install, which can be erroneously created by make from ./install.sh.
795 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
796 echo "configure:797: checking for a BSD compatible install" >&5
797 if test -z "$INSTALL"; then
798 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
802 for ac_dir in $PATH; do
803 # Account for people who put trailing slashes in PATH elements.
805 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
807 # OSF1 and SCO ODT 3.0 have their own names for install.
808 for ac_prog in ginstall installbsd scoinst install; do
809 if test -f $ac_dir/$ac_prog; then
810 if test $ac_prog = install &&
811 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
812 # AIX install. It has an incompatible calling convention.
813 # OSF/1 installbsd also uses dspmsg, but is usable.
816 ac_cv_path_install="$ac_dir/$ac_prog -c"
827 if test "${ac_cv_path_install+set}" = set; then
828 INSTALL="$ac_cv_path_install"
830 # As a last resort, use the slow shell script. We don't cache a
831 # path for INSTALL within a source directory, because that will
832 # break other packages using the cache if that directory is
833 # removed, or if the path is relative.
834 INSTALL="$ac_install_sh"
837 echo "$ac_t""$INSTALL" 1>&6
839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
840 # It thinks the first close brace ends the variable substitution.
841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
843 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
845 for ac_prog in mawk gawk nawk awk
847 # Extract the first word of "$ac_prog", so it can be a program name with args.
848 set dummy $ac_prog; ac_word=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 echo "configure:851: checking for $ac_word" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 if test -n "$AWK"; then
855 ac_cv_prog_AWK="$AWK" # Let the user override the test.
857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
858 for ac_dir in $PATH; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 ac_cv_prog_AWK="$ac_prog"
868 AWK="$ac_cv_prog_AWK"
869 if test -n "$AWK"; then
870 echo "$ac_t""$AWK" 1>&6
872 echo "$ac_t""no" 1>&6
875 test -n "$AWK" && break
879 if test "x$CC" != xcc; then
880 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
881 echo "configure:882: checking whether $CC and cc understand -c and -o together" >&5
883 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
884 echo "configure:885: checking whether cc understands -c and -o together" >&5
886 set dummy $CC; ac_cc="`echo $2 |
887 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
888 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 echo 'foo(){}' > conftest.c
892 # Make sure it works both with $CC and with simple cc.
893 # We do the test twice because some compilers refuse to overwrite an
894 # existing .o file with -o, though they will create one.
895 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
896 if { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
897 test -f conftest.o && { (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
899 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
900 if test "x$CC" != xcc; then
901 # Test first that cc exists at all.
902 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
903 ac_try='cc -c conftest.c -o conftest.o 1>&5'
904 if { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
905 test -f conftest.o && { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
910 # cc exists but doesn't like -o.
911 eval ac_cv_prog_cc_${ac_cc}_c_o=no
916 eval ac_cv_prog_cc_${ac_cc}_c_o=no
921 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
922 echo "$ac_t""yes" 1>&6
924 echo "$ac_t""no" 1>&6
925 cat >> confdefs.h <<\EOF
926 #define NO_MINUS_C_MINUS_O 1
931 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
938 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
939 echo "configure:940: checking that the C compiler understands volatile" >&5
940 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
944 cat > conftest.$ac_ext <<EOF
945 #line 946 "configure"
946 #include "confdefs.h"
947 #include <sys/types.h>
952 if { (eval echo configure:953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
954 samba_cv_volatile=yes
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
964 echo "$ac_t""$samba_cv_volatile" 1>&6
965 if test x"$samba_cv_volatile" = x"yes"; then
966 cat >> confdefs.h <<\EOF
967 #define HAVE_VOLATILE 1
975 # Do some error checking and defaulting for the host and target type.
977 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
980 # 1. You are not allowed to specify --host, --target, and nonopt at the
982 # 2. Host defaults to nonopt.
983 # 3. If nonopt is not specified, then host defaults to the current host,
984 # as determined by config.guess.
985 # 4. Target and build default to nonopt.
986 # 5. If nonopt is not specified, then target and build default to host.
988 # The aliases save the names the user supplied, while $host etc.
989 # will get canonicalized.
990 case $host---$target---$nonopt in
991 NONE---*---* | *---NONE---* | *---*---NONE) ;;
992 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
996 # Make sure we can run config.sub.
997 if $ac_config_sub sun4 >/dev/null 2>&1; then :
998 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1001 echo $ac_n "checking host system type""... $ac_c" 1>&6
1002 echo "configure:1003: checking host system type" >&5
1005 case "$host_alias" in
1009 if host_alias=`$ac_config_guess`; then :
1010 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1012 *) host_alias=$nonopt ;;
1016 host=`$ac_config_sub $host_alias`
1017 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1018 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1019 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1020 echo "$ac_t""$host" 1>&6
1022 echo $ac_n "checking target system type""... $ac_c" 1>&6
1023 echo "configure:1024: checking target system type" >&5
1025 target_alias=$target
1026 case "$target_alias" in
1029 NONE) target_alias=$host_alias ;;
1030 *) target_alias=$nonopt ;;
1034 target=`$ac_config_sub $target_alias`
1035 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 echo "$ac_t""$target" 1>&6
1040 echo $ac_n "checking build system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking build system type" >&5
1044 case "$build_alias" in
1047 NONE) build_alias=$host_alias ;;
1048 *) build_alias=$nonopt ;;
1052 build=`$ac_config_sub $build_alias`
1053 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$ac_t""$build" 1>&6
1058 test "$host_alias" != "$target_alias" &&
1059 test "$program_prefix$program_suffix$program_transform_name" = \
1061 program_prefix=${target_alias}-
1065 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1066 echo "configure:1067: checking config.cache system type" >&5
1067 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1068 test x"$ac_cv_host_system_type" != x"$host"; } ||
1069 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1070 test x"$ac_cv_build_system_type" != x"$build"; } ||
1071 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1072 test x"$ac_cv_target_system_type" != x"$target"; }; then
1073 echo "$ac_t""different" 1>&6
1074 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1076 echo "$ac_t""same" 1>&6
1078 ac_cv_host_system_type="$host"
1079 ac_cv_build_system_type="$build"
1080 ac_cv_target_system_type="$target"
1083 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1084 if test "${enable_maintainer_mode+set}" = set; then
1085 enableval="$enable_maintainer_mode"
1086 maint_mode=$enableval
1091 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1093 # Extract the first word of "autoconf", so it can be a program name with args.
1094 set dummy autoconf; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1102 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1106 for ac_dir in $PATH; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1114 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1118 AUTOCONF="$ac_cv_path_AUTOCONF"
1119 if test -n "$AUTOCONF"; then
1120 echo "$ac_t""$AUTOCONF" 1>&6
1122 echo "$ac_t""no" 1>&6
1126 # Extract the first word of "autoheader", so it can be a program name with args.
1127 set dummy autoheader; ac_word=$2
1128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_word" >&5
1130 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 case "$AUTOHEADER" in
1135 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1139 for ac_dir in $PATH; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1142 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1147 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1151 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1152 if test -n "$AUTOHEADER"; then
1153 echo "$ac_t""$AUTOHEADER" 1>&6
1155 echo "$ac_t""no" 1>&6
1162 # Config CPPFLAG settings for strange OS's that must be set
1163 # before other tests.
1166 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1168 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -Ae" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1175 ac_cv_prog_cc_Ae=yes
1183 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1184 if test $ac_cv_prog_cc_Ae = yes; then
1185 CPPFLAGS="$CPPFLAGS -Ae"
1188 # Defines needed for HPUX support.
1189 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1190 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1194 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1195 cat >> confdefs.h <<\EOF
1196 #define USE_BOTH_CRYPT_CALLS 1
1201 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1202 cat >> confdefs.h <<\EOF
1203 #define USE_BOTH_CRYPT_CALLS 1
1210 # AIX4.x doesn't even admit to having large
1211 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1214 echo "$ac_t""enabling large file support" 1>&6
1215 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1218 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1219 # to the existance of large files..
1220 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1221 # recommendations on large file support, however it makes the
1222 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1223 # recommendation makes the compile fail on gcc2.7. JRA.
1228 echo "$ac_t""enabling large file support" 1>&6
1229 if test "$ac_cv_prog_gcc" = yes; then
1230 ${CC-cc} -v >conftest.c 2>&1
1231 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1233 case "$ac_cv_gcc_compiler_version_number" in
1234 *"gcc version 2.6"*|*"gcc version 2.7"*)
1235 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1238 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1242 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1248 # Tests needed for SINIX large file support.
1251 if test $host = mips-sni-sysv4 ; then
1252 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1253 echo "configure:1254: checking for LFS support" >&5
1254 old_CPPFLAGS="$CPPFLAGS"
1255 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1256 if test "$cross_compiling" = yes; then
1257 SINIX_LFS_SUPPORT=cross
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1265 #if _LFS64_LARGEFILE == 1
1272 if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1274 SINIX_LFS_SUPPORT=yes
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1279 SINIX_LFS_SUPPORT=no
1284 CPPFLAGS="$old_CPPFLAGS"
1285 if test x$SINIX_LFS_SUPPORT = xyes ; then
1286 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1287 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1288 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1289 LIBS="`getconf LFS64_LIBS` $LIBS"
1291 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1296 # Tests needed for glibc 2.1 large file support.
1299 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1302 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1303 echo "configure:1304: checking for LFS support" >&5
1304 old_CPPFLAGS="$CPPFLAGS"
1305 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1306 if test "$cross_compiling" = yes; then
1307 GLIBC_LFS_SUPPORT=cross
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1315 #if _LFS64_LARGEFILE == 1
1322 if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1324 GLIBC_LFS_SUPPORT=yes
1326 echo "configure: failed program was:" >&5
1327 cat conftest.$ac_ext >&5
1329 GLIBC_LFS_SUPPORT=no
1334 CPPFLAGS="$old_CPPFLAGS"
1335 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1336 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1338 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1343 echo $ac_n "checking for inline""... $ac_c" 1>&6
1344 echo "configure:1345: checking for inline" >&5
1345 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1349 for ac_kw in inline __inline__ __inline; do
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1358 if { (eval echo configure:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 ac_cv_c_inline=$ac_kw; break
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1370 echo "$ac_t""$ac_cv_c_inline" 1>&6
1371 case "$ac_cv_c_inline" in
1373 no) cat >> confdefs.h <<\EOF
1377 *) cat >> confdefs.h <<EOF
1378 #define inline $ac_cv_c_inline
1383 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1384 echo "configure:1385: checking how to run the C preprocessor" >&5
1385 # On Suns, sometimes $CPP names a directory.
1386 if test -n "$CPP" && test -d "$CPP"; then
1389 if test -z "$CPP"; then
1390 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 # This must be in double quotes, not single quotes, because CPP may get
1394 # substituted into the Makefile and "${CC-cc}" will confuse make.
1396 # On the NeXT, cc -E runs the code through the compiler's parser,
1397 # not just through cpp.
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1405 { (eval echo configure:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1406 ac_err=`grep -v '^ *+' conftest.out`
1407 if test -z "$ac_err"; then
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1414 CPP="${CC-cc} -E -traditional-cpp"
1415 cat > conftest.$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1422 { (eval echo configure:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1423 ac_err=`grep -v '^ *+' conftest.out`
1424 if test -z "$ac_err"; then
1428 echo "configure: failed program was:" >&5
1429 cat conftest.$ac_ext >&5
1436 ac_cv_prog_CPP="$CPP"
1438 CPP="$ac_cv_prog_CPP"
1440 ac_cv_prog_CPP="$CPP"
1442 echo "$ac_t""$CPP" 1>&6
1444 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1445 echo "configure:1446: checking for ANSI C header files" >&5
1446 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1458 { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1459 ac_err=`grep -v '^ *+' conftest.out`
1460 if test -z "$ac_err"; then
1462 ac_cv_header_stdc=yes
1465 echo "configure: failed program was:" >&5
1466 cat conftest.$ac_ext >&5
1468 ac_cv_header_stdc=no
1472 if test $ac_cv_header_stdc = yes; then
1473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1474 cat > conftest.$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1480 egrep "memchr" >/dev/null 2>&1; then
1484 ac_cv_header_stdc=no
1490 if test $ac_cv_header_stdc = yes; then
1491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1492 cat > conftest.$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1498 egrep "free" >/dev/null 2>&1; then
1502 ac_cv_header_stdc=no
1508 if test $ac_cv_header_stdc = yes; then
1509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1510 if test "$cross_compiling" = yes; then
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1517 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1518 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1520 int main () { int i; for (i = 0; i < 256; i++)
1521 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 ac_cv_header_stdc=no
1540 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1541 if test $ac_cv_header_stdc = yes; then
1542 cat >> confdefs.h <<\EOF
1543 #define STDC_HEADERS 1
1549 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1552 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_hdr that defines DIR" >&5
1554 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 #include <sys/types.h>
1566 if { (eval echo configure:1567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1568 eval "ac_cv_header_dirent_$ac_safe=yes"
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 eval "ac_cv_header_dirent_$ac_safe=no"
1577 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1578 echo "$ac_t""yes" 1>&6
1579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1580 cat >> confdefs.h <<EOF
1581 #define $ac_tr_hdr 1
1583 ac_header_dirent=$ac_hdr; break
1585 echo "$ac_t""no" 1>&6
1588 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1589 if test $ac_header_dirent = dirent.h; then
1590 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1591 echo "configure:1592: checking for opendir in -ldir" >&5
1592 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 ac_save_LIBS="$LIBS"
1598 cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1601 /* Override any gcc2 internal prototype to avoid an error. */
1602 /* We use char because int might match the return type of a gcc2
1603 builtin and then its argument prototype would still apply. */
1610 if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1612 eval "ac_cv_lib_$ac_lib_var=yes"
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1617 eval "ac_cv_lib_$ac_lib_var=no"
1620 LIBS="$ac_save_LIBS"
1623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1627 echo "$ac_t""no" 1>&6
1631 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1632 echo "configure:1633: checking for opendir in -lx" >&5
1633 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 ac_save_LIBS="$LIBS"
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1653 eval "ac_cv_lib_$ac_lib_var=yes"
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1658 eval "ac_cv_lib_$ac_lib_var=no"
1661 LIBS="$ac_save_LIBS"
1664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1668 echo "$ac_t""no" 1>&6
1673 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1674 echo "configure:1675: checking whether time.h and sys/time.h may both be included" >&5
1675 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1681 #include <sys/types.h>
1682 #include <sys/time.h>
1688 if { (eval echo configure:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1690 ac_cv_header_time=yes
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1695 ac_cv_header_time=no
1700 echo "$ac_t""$ac_cv_header_time" 1>&6
1701 if test $ac_cv_header_time = yes; then
1702 cat >> confdefs.h <<\EOF
1703 #define TIME_WITH_SYS_TIME 1
1708 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1709 echo "configure:1710: checking for sys/wait.h that is POSIX.1 compatible" >&5
1710 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 cat > conftest.$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1716 #include <sys/types.h>
1717 #include <sys/wait.h>
1719 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1722 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1730 if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1732 ac_cv_header_sys_wait_h=yes
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 ac_cv_header_sys_wait_h=no
1742 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1743 if test $ac_cv_header_sys_wait_h = yes; then
1744 cat >> confdefs.h <<\EOF
1745 #define HAVE_SYS_WAIT_H 1
1750 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1754 echo "configure:1755: checking for $ac_hdr" >&5
1755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 cat > conftest.$ac_ext <<EOF
1759 #line 1760 "configure"
1760 #include "confdefs.h"
1763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1764 { (eval echo configure:1765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1765 ac_err=`grep -v '^ *+' conftest.out`
1766 if test -z "$ac_err"; then
1768 eval "ac_cv_header_$ac_safe=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1774 eval "ac_cv_header_$ac_safe=no"
1778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1779 echo "$ac_t""yes" 1>&6
1780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1781 cat >> confdefs.h <<EOF
1782 #define $ac_tr_hdr 1
1786 echo "$ac_t""no" 1>&6
1790 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1794 echo "configure:1795: checking for $ac_hdr" >&5
1795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1804 { (eval echo configure:1805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1805 ac_err=`grep -v '^ *+' conftest.out`
1806 if test -z "$ac_err"; then
1808 eval "ac_cv_header_$ac_safe=yes"
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1814 eval "ac_cv_header_$ac_safe=no"
1818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1819 echo "$ac_t""yes" 1>&6
1820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1821 cat >> confdefs.h <<EOF
1822 #define $ac_tr_hdr 1
1826 echo "$ac_t""no" 1>&6
1830 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_hdr" >&5
1835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1844 { (eval echo configure:1845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1845 ac_err=`grep -v '^ *+' conftest.out`
1846 if test -z "$ac_err"; then
1848 eval "ac_cv_header_$ac_safe=yes"
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1854 eval "ac_cv_header_$ac_safe=no"
1858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1861 cat >> confdefs.h <<EOF
1862 #define $ac_tr_hdr 1
1866 echo "$ac_t""no" 1>&6
1870 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_hdr" >&5
1875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1884 { (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1885 ac_err=`grep -v '^ *+' conftest.out`
1886 if test -z "$ac_err"; then
1888 eval "ac_cv_header_$ac_safe=yes"
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1894 eval "ac_cv_header_$ac_safe=no"
1898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1899 echo "$ac_t""yes" 1>&6
1900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1901 cat >> confdefs.h <<EOF
1902 #define $ac_tr_hdr 1
1906 echo "$ac_t""no" 1>&6
1910 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
1912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1914 echo "configure:1915: checking for $ac_hdr" >&5
1915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 cat > conftest.$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924 { (eval echo configure:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925 ac_err=`grep -v '^ *+' conftest.out`
1926 if test -z "$ac_err"; then
1928 eval "ac_cv_header_$ac_safe=yes"
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1934 eval "ac_cv_header_$ac_safe=no"
1938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1939 echo "$ac_t""yes" 1>&6
1940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1941 cat >> confdefs.h <<EOF
1942 #define $ac_tr_hdr 1
1946 echo "$ac_t""no" 1>&6
1950 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
1952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1954 echo "configure:1955: checking for $ac_hdr" >&5
1955 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1964 { (eval echo configure:1965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1965 ac_err=`grep -v '^ *+' conftest.out`
1966 if test -z "$ac_err"; then
1968 eval "ac_cv_header_$ac_safe=yes"
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1974 eval "ac_cv_header_$ac_safe=no"
1978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1981 cat >> confdefs.h <<EOF
1982 #define $ac_tr_hdr 1
1986 echo "$ac_t""no" 1>&6
1990 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_hdr" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2004 { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2005 ac_err=`grep -v '^ *+' conftest.out`
2006 if test -z "$ac_err"; then
2008 eval "ac_cv_header_$ac_safe=yes"
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2014 eval "ac_cv_header_$ac_safe=no"
2018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2021 cat >> confdefs.h <<EOF
2022 #define $ac_tr_hdr 1
2026 echo "$ac_t""no" 1>&6
2031 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2032 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2044 if { (eval echo configure:2045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2046 ac_cv_header_shadow_h=yes
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2051 ac_cv_header_shadow_h=no
2054 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2055 cat >> confdefs.h <<\EOF
2056 #define HAVE_SHADOW_H 1
2062 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2066 echo "configure:2067: checking for $ac_hdr" >&5
2067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2070 cat > conftest.$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2076 { (eval echo configure:2077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2077 ac_err=`grep -v '^ *+' conftest.out`
2078 if test -z "$ac_err"; then
2080 eval "ac_cv_header_$ac_safe=yes"
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2086 eval "ac_cv_header_$ac_safe=no"
2090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2091 echo "$ac_t""yes" 1>&6
2092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2093 cat >> confdefs.h <<EOF
2094 #define $ac_tr_hdr 1
2098 echo "$ac_t""no" 1>&6
2102 for ac_hdr in sys/security.h security/pam_appl.h
2104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2106 echo "configure:2107: checking for $ac_hdr" >&5
2107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 cat > conftest.$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2116 { (eval echo configure:2117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2117 ac_err=`grep -v '^ *+' conftest.out`
2118 if test -z "$ac_err"; then
2120 eval "ac_cv_header_$ac_safe=yes"
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2126 eval "ac_cv_header_$ac_safe=no"
2130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2131 echo "$ac_t""yes" 1>&6
2132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2133 cat >> confdefs.h <<EOF
2134 #define $ac_tr_hdr 1
2138 echo "$ac_t""no" 1>&6
2142 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2146 echo "configure:2147: checking for $ac_hdr" >&5
2147 if eval "test \"`echo '$''{'ac_cv_header_$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"
2155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2156 { (eval echo configure:2157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2157 ac_err=`grep -v '^ *+' conftest.out`
2158 if test -z "$ac_err"; then
2160 eval "ac_cv_header_$ac_safe=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_header_$ac_safe=no"
2170 if eval "test \"`echo '$ac_cv_header_'$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
2178 echo "$ac_t""no" 1>&6
2182 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_hdr" >&5
2187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2196 { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2197 ac_err=`grep -v '^ *+' conftest.out`
2198 if test -z "$ac_err"; then
2200 eval "ac_cv_header_$ac_safe=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 eval "ac_cv_header_$ac_safe=no"
2210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2213 cat >> confdefs.h <<EOF
2214 #define $ac_tr_hdr 1
2218 echo "$ac_t""no" 1>&6
2222 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_hdr" >&5
2227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2236 { (eval echo configure:2237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2237 ac_err=`grep -v '^ *+' conftest.out`
2238 if test -z "$ac_err"; then
2240 eval "ac_cv_header_$ac_safe=yes"
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 eval "ac_cv_header_$ac_safe=no"
2250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2253 cat >> confdefs.h <<EOF
2254 #define $ac_tr_hdr 1
2258 echo "$ac_t""no" 1>&6
2263 echo $ac_n "checking size of int""... $ac_c" 1>&6
2264 echo "configure:2265: checking size of int" >&5
2265 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 if test "$cross_compiling" = yes; then
2269 ac_cv_sizeof_int=cross
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2277 FILE *f=fopen("conftestval", "w");
2279 fprintf(f, "%d\n", sizeof(int));
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2285 ac_cv_sizeof_int=`cat conftestval`
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2296 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2297 cat >> confdefs.h <<EOF
2298 #define SIZEOF_INT $ac_cv_sizeof_int
2302 echo $ac_n "checking size of long""... $ac_c" 1>&6
2303 echo "configure:2304: checking size of long" >&5
2304 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 if test "$cross_compiling" = yes; then
2308 ac_cv_sizeof_long=cross
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2316 FILE *f=fopen("conftestval", "w");
2318 fprintf(f, "%d\n", sizeof(long));
2322 if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2324 ac_cv_sizeof_long=`cat conftestval`
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2335 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2336 cat >> confdefs.h <<EOF
2337 #define SIZEOF_LONG $ac_cv_sizeof_long
2341 echo $ac_n "checking size of short""... $ac_c" 1>&6
2342 echo "configure:2343: checking size of short" >&5
2343 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 if test "$cross_compiling" = yes; then
2347 ac_cv_sizeof_short=cross
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2355 FILE *f=fopen("conftestval", "w");
2357 fprintf(f, "%d\n", sizeof(short));
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2363 ac_cv_sizeof_short=`cat conftestval`
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2368 ac_cv_sizeof_short=0
2374 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2375 cat >> confdefs.h <<EOF
2376 #define SIZEOF_SHORT $ac_cv_sizeof_short
2381 echo $ac_n "checking for working const""... $ac_c" 1>&6
2382 echo "configure:2383: checking for working const" >&5
2383 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2392 /* Ultrix mips cc rejects this. */
2393 typedef int charset[2]; const charset x;
2394 /* SunOS 4.1.1 cc rejects this. */
2395 char const *const *ccp;
2397 /* NEC SVR4.0.2 mips cc rejects this. */
2398 struct point {int x, y;};
2399 static struct point const zero = {0,0};
2400 /* AIX XL C 1.02.0.0 rejects this.
2401 It does not let you subtract one const X* pointer from another in an arm
2402 of an if-expression whose if-part is not a constant expression */
2403 const char *g = "string";
2404 ccp = &g + (g ? g-g : 0);
2405 /* HPUX 7.0 cc rejects these. */
2408 ccp = (char const *const *) p;
2409 { /* SCO 3.2v4 cc rejects this. */
2411 char const *s = 0 ? (char *) 0 : (char const *) 0;
2415 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2417 const int *foo = &x[0];
2420 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2421 typedef const int *iptr;
2425 { /* AIX XL C 1.02.0.0 rejects this saying
2426 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2427 struct s { int j; const int *ap[3]; };
2428 struct s *b; b->j = 5;
2430 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2436 if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440 echo "configure: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2448 echo "$ac_t""$ac_cv_c_const" 1>&6
2449 if test $ac_cv_c_const = no; then
2450 cat >> confdefs.h <<\EOF
2456 echo $ac_n "checking for inline""... $ac_c" 1>&6
2457 echo "configure:2458: checking for inline" >&5
2458 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2462 for ac_kw in inline __inline__ __inline; do
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2471 if { (eval echo configure:2472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2473 ac_cv_c_inline=$ac_kw; break
2475 echo "configure: failed program was:" >&5
2476 cat conftest.$ac_ext >&5
2483 echo "$ac_t""$ac_cv_c_inline" 1>&6
2484 case "$ac_cv_c_inline" in
2486 no) cat >> confdefs.h <<\EOF
2490 *) cat >> confdefs.h <<EOF
2491 #define inline $ac_cv_c_inline
2496 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2497 echo "configure:2498: checking whether byte ordering is bigendian" >&5
2498 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 ac_cv_c_bigendian=unknown
2502 # See if sys/param.h defines the BYTE_ORDER macro.
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 #include <sys/types.h>
2507 #include <sys/param.h>
2510 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2515 if { (eval echo configure:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2517 # It does; now see whether it defined to BIG_ENDIAN or not.
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 #include <sys/types.h>
2522 #include <sys/param.h>
2525 #if BYTE_ORDER != BIG_ENDIAN
2530 if { (eval echo configure:2531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2532 ac_cv_c_bigendian=yes
2534 echo "configure: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2537 ac_cv_c_bigendian=no
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2545 if test $ac_cv_c_bigendian = unknown; then
2546 if test "$cross_compiling" = yes; then
2547 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2549 cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2553 /* Are we little or big endian? From Harbison&Steele. */
2557 char c[sizeof (long)];
2560 exit (u.c[sizeof (long) - 1] == 1);
2563 if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2565 ac_cv_c_bigendian=no
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2570 ac_cv_c_bigendian=yes
2578 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2579 if test $ac_cv_c_bigendian = yes; then
2580 cat >> confdefs.h <<\EOF
2581 #define WORDS_BIGENDIAN 1
2586 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2587 echo "configure:2588: checking whether char is unsigned" >&5
2588 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 if test "$GCC" = yes; then
2592 # GCC predefines this symbol on systems where it applies.
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 #ifdef __CHAR_UNSIGNED__
2601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2602 egrep "yes" >/dev/null 2>&1; then
2604 ac_cv_c_char_unsigned=yes
2607 ac_cv_c_char_unsigned=no
2612 if test "$cross_compiling" = yes; then
2613 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2618 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2619 #if !defined(__STDC__) || __STDC__ != 1
2623 volatile char c = 255; exit(c < 0);
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2628 ac_cv_c_char_unsigned=yes
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 ac_cv_c_char_unsigned=no
2641 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2642 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2643 cat >> confdefs.h <<\EOF
2644 #define __CHAR_UNSIGNED__ 1
2650 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2651 echo "configure:2652: checking return type of signal handlers" >&5
2652 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <sys/types.h>
2664 extern "C" void (*signal (int, void (*)(int)))(int);
2666 void (*signal ()) ();
2673 if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2675 ac_cv_type_signal=void
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2680 ac_cv_type_signal=int
2685 echo "$ac_t""$ac_cv_type_signal" 1>&6
2686 cat >> confdefs.h <<EOF
2687 #define RETSIGTYPE $ac_cv_type_signal
2691 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2692 echo "configure:2693: checking for uid_t in sys/types.h" >&5
2693 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 #include <sys/types.h>
2701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2702 egrep "uid_t" >/dev/null 2>&1; then
2704 ac_cv_type_uid_t=yes
2713 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2714 if test $ac_cv_type_uid_t = no; then
2715 cat >> confdefs.h <<\EOF
2719 cat >> confdefs.h <<\EOF
2725 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2726 echo "configure:2727: checking for mode_t" >&5
2727 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 #include <sys/types.h>
2739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2740 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2742 ac_cv_type_mode_t=yes
2745 ac_cv_type_mode_t=no
2750 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2751 if test $ac_cv_type_mode_t = no; then
2752 cat >> confdefs.h <<\EOF
2758 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2759 echo "configure:2760: checking for off_t" >&5
2760 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2766 #include <sys/types.h>
2772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2773 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2775 ac_cv_type_off_t=yes
2783 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2784 if test $ac_cv_type_off_t = no; then
2785 cat >> confdefs.h <<\EOF
2791 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2792 echo "configure:2793: checking for size_t" >&5
2793 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 #include <sys/types.h>
2805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2806 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2808 ac_cv_type_size_t=yes
2811 ac_cv_type_size_t=no
2816 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2817 if test $ac_cv_type_size_t = no; then
2818 cat >> confdefs.h <<\EOF
2819 #define size_t unsigned
2824 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2825 echo "configure:2826: checking for pid_t" >&5
2826 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #include <sys/types.h>
2838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2839 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2841 ac_cv_type_pid_t=yes
2849 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2850 if test $ac_cv_type_pid_t = no; then
2851 cat >> confdefs.h <<\EOF
2857 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2858 echo "configure:2859: checking for st_rdev in struct stat" >&5
2859 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2865 #include <sys/types.h>
2866 #include <sys/stat.h>
2868 struct stat s; s.st_rdev;
2871 if { (eval echo configure:2872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2873 ac_cv_struct_st_rdev=yes
2875 echo "configure: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2878 ac_cv_struct_st_rdev=no
2883 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2884 if test $ac_cv_struct_st_rdev = yes; then
2885 cat >> confdefs.h <<\EOF
2886 #define HAVE_ST_RDEV 1
2891 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2892 echo "configure:2893: checking for d_off in dirent" >&5
2893 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2901 #include <sys/types.h>
2904 struct dirent d; d.d_off;
2907 if { (eval echo configure:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2909 ac_cv_dirent_d_off=yes
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2914 ac_cv_dirent_d_off=no
2919 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2920 if test $ac_cv_dirent_d_off = yes; then
2921 cat >> confdefs.h <<\EOF
2922 #define HAVE_DIRENT_D_OFF 1
2927 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2928 echo "configure:2929: checking for ino_t" >&5
2929 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935 #include <sys/types.h>
2941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2942 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2944 ac_cv_type_ino_t=yes
2952 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2953 if test $ac_cv_type_ino_t = no; then
2954 cat >> confdefs.h <<\EOF
2955 #define ino_t unsigned
2960 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2961 echo "configure:2962: checking for loff_t" >&5
2962 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 #include <sys/types.h>
2974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2977 ac_cv_type_loff_t=yes
2980 ac_cv_type_loff_t=no
2985 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2986 if test $ac_cv_type_loff_t = no; then
2987 cat >> confdefs.h <<\EOF
2988 #define loff_t off_t
2993 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2994 echo "configure:2995: checking for offset_t" >&5
2995 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 #include <sys/types.h>
3007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3008 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3010 ac_cv_type_offset_t=yes
3013 ac_cv_type_offset_t=no
3018 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3019 if test $ac_cv_type_offset_t = no; then
3020 cat >> confdefs.h <<\EOF
3021 #define offset_t loff_t
3026 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3027 echo "configure:3028: checking for ssize_t" >&5
3028 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3043 ac_cv_type_ssize_t=yes
3046 ac_cv_type_ssize_t=no
3051 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3052 if test $ac_cv_type_ssize_t = no; then
3053 cat >> confdefs.h <<\EOF
3060 # we need libcups for CUPS support...
3061 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3062 echo "configure:3063: checking for httpConnect in -lcups" >&5
3063 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 ac_save_LIBS="$LIBS"
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 /* Override any gcc2 internal prototype to avoid an error. */
3073 /* We use char because int might match the return type of a gcc2
3074 builtin and then its argument prototype would still apply. */
3081 if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3083 eval "ac_cv_lib_$ac_lib_var=yes"
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3088 eval "ac_cv_lib_$ac_lib_var=no"
3091 LIBS="$ac_save_LIBS"
3094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3097 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3098 cat >> confdefs.h <<EOF
3099 #define $ac_tr_lib 1
3105 echo "$ac_t""no" 1>&6
3109 # we need libdl for PAM and the new VFS code
3110 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3111 echo "configure:3112: checking for main in -ldl" >&5
3112 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 ac_save_LIBS="$LIBS"
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3126 if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3128 eval "ac_cv_lib_$ac_lib_var=yes"
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 eval "ac_cv_lib_$ac_lib_var=no"
3136 LIBS="$ac_save_LIBS"
3139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3140 echo "$ac_t""yes" 1>&6
3141 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3143 cat >> confdefs.h <<EOF
3144 #define $ac_tr_lib 1
3150 echo "$ac_t""no" 1>&6
3154 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3155 echo "configure:3156: checking for sig_atomic_t type" >&5
3156 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3164 #include <sys/types.h>
3174 if { (eval echo configure:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3176 samba_cv_sig_atomic_t=yes
3178 echo "configure: failed program was:" >&5
3179 cat conftest.$ac_ext >&5
3181 samba_cv_sig_atomic_t=no
3186 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3187 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3188 cat >> confdefs.h <<\EOF
3189 #define HAVE_SIG_ATOMIC_T_TYPE 1
3194 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3195 echo "configure:3196: checking for errno in errno.h" >&5
3196 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3208 if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3215 samba_cv_have_errno=no
3220 echo "$ac_t""$samba_cv_errno" 1>&6
3221 if test x"$samba_cv_errno" = x"yes"; then
3222 cat >> confdefs.h <<\EOF
3223 #define HAVE_ERRNO_DECL 1
3228 # stupid glibc has the functions but no declaration. grrrr.
3229 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3230 echo "configure:3231: checking for setresuid declaration" >&5
3231 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3240 int i = (int)setresuid
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245 samba_cv_have_setresuid_decl=yes
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 samba_cv_have_setresuid_decl=no
3255 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3256 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3257 cat >> confdefs.h <<\EOF
3258 #define HAVE_SETRESUID_DECL 1
3263 # stupid glibc has the functions but no declaration. grrrr.
3264 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3265 echo "configure:3266: checking for setresgid declaration" >&5
3266 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3275 int i = (int)setresgid
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3280 samba_cv_have_setresgid_decl=yes
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 samba_cv_have_setresgid_decl=no
3290 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3291 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3292 cat >> confdefs.h <<\EOF
3293 #define HAVE_SETRESGID_DECL 1
3298 # and glibc has setresuid under linux but the function does
3299 # nothing until kernel 2.1.44! very dumb.
3300 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3301 echo "configure:3302: checking for real setresuid" >&5
3302 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3306 if test "$cross_compiling" = yes; then
3307 samba_cv_have_setresuid=cross
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3313 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3315 if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3317 samba_cv_have_setresuid=yes
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3322 samba_cv_have_setresuid=no
3329 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3330 if test x"$samba_cv_have_setresuid" = x"yes"; then
3331 cat >> confdefs.h <<\EOF
3332 #define HAVE_SETRESUID 1
3337 # Do the same check for setresguid...
3339 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3340 echo "configure:3341: checking for real setresgid" >&5
3341 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3345 if test "$cross_compiling" = yes; then
3346 samba_cv_have_setresgid=cross
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3353 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3355 if { (eval echo configure:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3357 samba_cv_have_setresgid=yes
3359 echo "configure: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3362 samba_cv_have_setresgid=no
3369 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3370 if test x"$samba_cv_have_setresgid" = x"yes"; then
3371 cat >> confdefs.h <<\EOF
3372 #define HAVE_SETRESGID 1
3377 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3378 echo "configure:3379: checking for 8-bit clean memcmp" >&5
3379 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 if test "$cross_compiling" = yes; then
3383 ac_cv_func_memcmp_clean=no
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3391 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3392 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3398 ac_cv_func_memcmp_clean=yes
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 ac_cv_func_memcmp_clean=no
3410 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3411 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3414 ###############################################
3415 # test for where we get crypt() from
3416 for ac_func in crypt
3418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3419 echo "configure:3420: checking for $ac_func" >&5
3420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* System header to define __stub macros and hopefully few prototypes,
3427 which can conflict with char $ac_func(); below. */
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3436 /* The GNU C library defines this for functions which it implements
3437 to always fail with ENOSYS. Some functions are actually named
3438 something starting with __ and the normal name is an alias. */
3439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3449 eval "ac_cv_func_$ac_func=yes"
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3454 eval "ac_cv_func_$ac_func=no"
3459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3462 cat >> confdefs.h <<EOF
3463 #define $ac_tr_func 1
3467 echo "$ac_t""no" 1>&6
3471 if test x"$ac_cv_func_crypt" = x"no"; then
3472 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3473 echo "configure:3474: checking for crypt in -lcrypt" >&5
3474 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 ac_save_LIBS="$LIBS"
3479 LIBS="-lcrypt $LIBS"
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 /* Override any gcc2 internal prototype to avoid an error. */
3484 /* We use char because int might match the return type of a gcc2
3485 builtin and then its argument prototype would still apply. */
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3494 eval "ac_cv_lib_$ac_lib_var=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3499 eval "ac_cv_lib_$ac_lib_var=no"
3502 LIBS="$ac_save_LIBS"
3505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3506 echo "$ac_t""yes" 1>&6
3507 LIBS="$LIBS -lcrypt";
3508 cat >> confdefs.h <<\EOF
3509 #define HAVE_CRYPT 1
3513 echo "$ac_t""no" 1>&6
3519 ###############################################
3520 # test for where we get readline() from
3521 if test "$ac_cv_header_readline_h" = "yes" ||
3522 test "$ac_cv_header_readline_readline_h" = "yes"; then
3523 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3524 echo "configure:3525: checking for readline in -lreadline" >&5
3525 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 ac_save_LIBS="$LIBS"
3530 LIBS="-lreadline $LIBS"
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3545 eval "ac_cv_lib_$ac_lib_var=yes"
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 eval "ac_cv_lib_$ac_lib_var=no"
3553 LIBS="$ac_save_LIBS"
3556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3559 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3560 cat >> confdefs.h <<EOF
3561 #define $ac_tr_lib 1
3564 LIBS="-lreadline $LIBS"
3567 echo "$ac_t""no" 1>&6
3573 # The following test taken from the cvs sources
3574 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3575 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3576 # libsocket.so which has a bad implementation of gethostbyname (it
3577 # only looks in /etc/hosts), so we only look for -lsocket if we need
3579 for ac_func in connect
3581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3582 echo "configure:3583: checking for $ac_func" >&5
3583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 /* System header to define __stub macros and hopefully few prototypes,
3590 which can conflict with char $ac_func(); below. */
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3599 /* The GNU C library defines this for functions which it implements
3600 to always fail with ENOSYS. Some functions are actually named
3601 something starting with __ and the normal name is an alias. */
3602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3610 if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3612 eval "ac_cv_func_$ac_func=yes"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3617 eval "ac_cv_func_$ac_func=no"
3622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3625 cat >> confdefs.h <<EOF
3626 #define $ac_tr_func 1
3630 echo "$ac_t""no" 1>&6
3634 if test x"$ac_cv_func_connect" = x"no"; then
3637 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3638 echo "configure:3639: checking for printf in -lnsl_s" >&5
3639 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 ac_save_LIBS="$LIBS"
3644 LIBS="-lnsl_s $LIBS"
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 /* Override any gcc2 internal prototype to avoid an error. */
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3659 eval "ac_cv_lib_$ac_lib_var=yes"
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3664 eval "ac_cv_lib_$ac_lib_var=no"
3667 LIBS="$ac_save_LIBS"
3670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3671 echo "$ac_t""yes" 1>&6
3672 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3673 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3674 cat >> confdefs.h <<EOF
3675 #define $ac_tr_lib 1
3678 LIBS="-lnsl_s $LIBS"
3681 echo "$ac_t""no" 1>&6
3687 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3688 echo "configure:3689: checking for printf in -lnsl" >&5
3689 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 ac_save_LIBS="$LIBS"
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3698 /* Override any gcc2 internal prototype to avoid an error. */
3699 /* We use char because int might match the return type of a gcc2
3700 builtin and then its argument prototype would still apply. */
3707 if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3709 eval "ac_cv_lib_$ac_lib_var=yes"
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3714 eval "ac_cv_lib_$ac_lib_var=no"
3717 LIBS="$ac_save_LIBS"
3720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3722 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3724 cat >> confdefs.h <<EOF
3725 #define $ac_tr_lib 1
3731 echo "$ac_t""no" 1>&6
3737 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3738 echo "configure:3739: checking for connect in -lsocket" >&5
3739 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 ac_save_LIBS="$LIBS"
3744 LIBS="-lsocket $LIBS"
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* Override any gcc2 internal prototype to avoid an error. */
3749 /* We use char because int might match the return type of a gcc2
3750 builtin and then its argument prototype would still apply. */
3757 if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3759 eval "ac_cv_lib_$ac_lib_var=yes"
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3764 eval "ac_cv_lib_$ac_lib_var=no"
3767 LIBS="$ac_save_LIBS"
3770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3771 echo "$ac_t""yes" 1>&6
3772 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3774 cat >> confdefs.h <<EOF
3775 #define $ac_tr_lib 1
3778 LIBS="-lsocket $LIBS"
3781 echo "$ac_t""no" 1>&6
3787 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3788 echo "configure:3789: checking for connect in -linet" >&5
3789 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 ac_save_LIBS="$LIBS"
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* Override any gcc2 internal prototype to avoid an error. */
3799 /* We use char because int might match the return type of a gcc2
3800 builtin and then its argument prototype would still apply. */
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3809 eval "ac_cv_lib_$ac_lib_var=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_lib_$ac_lib_var=no"
3817 LIBS="$ac_save_LIBS"
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3822 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3823 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3824 cat >> confdefs.h <<EOF
3825 #define $ac_tr_lib 1
3831 echo "$ac_t""no" 1>&6
3835 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3836 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3837 # ac_cv_func_connect=yes
3838 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3839 cat >> confdefs.h <<\EOF
3840 #define HAVE_CONNECT 1
3846 # Check if we have execl, if not we need to compile smbrun.
3847 for ac_func in execl
3849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3850 echo "configure:3851: checking for $ac_func" >&5
3851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 /* System header to define __stub macros and hopefully few prototypes,
3858 which can conflict with char $ac_func(); below. */
3860 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3867 /* The GNU C library defines this for functions which it implements
3868 to always fail with ENOSYS. Some functions are actually named
3869 something starting with __ and the normal name is an alias. */
3870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3880 eval "ac_cv_func_$ac_func=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 eval "ac_cv_func_$ac_func=no"
3890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3891 echo "$ac_t""yes" 1>&6
3892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3893 cat >> confdefs.h <<EOF
3894 #define $ac_tr_func 1
3898 echo "$ac_t""no" 1>&6
3902 if test x"$ac_cv_func_execl" = x"no"; then
3903 RUNPROG="bin/smbrun"
3908 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
3910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3911 echo "configure:3912: checking for $ac_func" >&5
3912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* System header to define __stub macros and hopefully few prototypes,
3919 which can conflict with char $ac_func(); below. */
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3928 /* The GNU C library defines this for functions which it implements
3929 to always fail with ENOSYS. Some functions are actually named
3930 something starting with __ and the normal name is an alias. */
3931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3941 eval "ac_cv_func_$ac_func=yes"
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3946 eval "ac_cv_func_$ac_func=no"
3951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3954 cat >> confdefs.h <<EOF
3955 #define $ac_tr_func 1
3959 echo "$ac_t""no" 1>&6
3963 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
3965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3966 echo "configure:3967: checking for $ac_func" >&5
3967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* System header to define __stub macros and hopefully few prototypes,
3974 which can conflict with char $ac_func(); below. */
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3983 /* The GNU C library defines this for functions which it implements
3984 to always fail with ENOSYS. Some functions are actually named
3985 something starting with __ and the normal name is an alias. */
3986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3996 eval "ac_cv_func_$ac_func=yes"
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4001 eval "ac_cv_func_$ac_func=no"
4006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4007 echo "$ac_t""yes" 1>&6
4008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4009 cat >> confdefs.h <<EOF
4010 #define $ac_tr_func 1
4014 echo "$ac_t""no" 1>&6
4018 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4021 echo "configure:4022: checking for $ac_func" >&5
4022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char $ac_func(); below. */
4031 /* Override any gcc2 internal prototype to avoid an error. */
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4038 /* The GNU C library defines this for functions which it implements
4039 to always fail with ENOSYS. Some functions are actually named
4040 something starting with __ and the normal name is an alias. */
4041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4051 eval "ac_cv_func_$ac_func=yes"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 eval "ac_cv_func_$ac_func=no"
4061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4064 cat >> confdefs.h <<EOF
4065 #define $ac_tr_func 1
4069 echo "$ac_t""no" 1>&6
4073 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4076 echo "configure:4077: checking for $ac_func" >&5
4077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 /* System header to define __stub macros and hopefully few prototypes,
4084 which can conflict with char $ac_func(); below. */
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4093 /* The GNU C library defines this for functions which it implements
4094 to always fail with ENOSYS. Some functions are actually named
4095 something starting with __ and the normal name is an alias. */
4096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4104 if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4106 eval "ac_cv_func_$ac_func=yes"
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4111 eval "ac_cv_func_$ac_func=no"
4116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4119 cat >> confdefs.h <<EOF
4120 #define $ac_tr_func 1
4124 echo "$ac_t""no" 1>&6
4128 for ac_func in initgroups select rdchk getgrnam getgrent pathconf
4130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4131 echo "configure:4132: checking for $ac_func" >&5
4132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 /* System header to define __stub macros and hopefully few prototypes,
4139 which can conflict with char $ac_func(); below. */
4141 /* Override any gcc2 internal prototype to avoid an error. */
4142 /* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4148 /* The GNU C library defines this for functions which it implements
4149 to always fail with ENOSYS. Some functions are actually named
4150 something starting with __ and the normal name is an alias. */
4151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4159 if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4161 eval "ac_cv_func_$ac_func=yes"
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 eval "ac_cv_func_$ac_func=no"
4171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4172 echo "$ac_t""yes" 1>&6
4173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4174 cat >> confdefs.h <<EOF
4175 #define $ac_tr_func 1
4179 echo "$ac_t""no" 1>&6
4183 for ac_func in setpriv setgidx setuidx setgroups mktime rename ftruncate stat64 fstat64
4185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4186 echo "configure:4187: checking for $ac_func" >&5
4187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* System header to define __stub macros and hopefully few prototypes,
4194 which can conflict with char $ac_func(); below. */
4196 /* Override any gcc2 internal prototype to avoid an error. */
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4203 /* The GNU C library defines this for functions which it implements
4204 to always fail with ENOSYS. Some functions are actually named
4205 something starting with __ and the normal name is an alias. */
4206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4216 eval "ac_cv_func_$ac_func=yes"
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 eval "ac_cv_func_$ac_func=no"
4226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4229 cat >> confdefs.h <<EOF
4230 #define $ac_tr_func 1
4234 echo "$ac_t""no" 1>&6
4238 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4241 echo "configure:4242: checking for $ac_func" >&5
4242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* System header to define __stub macros and hopefully few prototypes,
4249 which can conflict with char $ac_func(); below. */
4251 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4258 /* The GNU C library defines this for functions which it implements
4259 to always fail with ENOSYS. Some functions are actually named
4260 something starting with __ and the normal name is an alias. */
4261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4271 eval "ac_cv_func_$ac_func=yes"
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4276 eval "ac_cv_func_$ac_func=no"
4281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4282 echo "$ac_t""yes" 1>&6
4283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4284 cat >> confdefs.h <<EOF
4285 #define $ac_tr_func 1
4289 echo "$ac_t""no" 1>&6
4293 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4296 echo "configure:4297: checking for $ac_func" >&5
4297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4303 /* System header to define __stub macros and hopefully few prototypes,
4304 which can conflict with char $ac_func(); below. */
4306 /* Override any gcc2 internal prototype to avoid an error. */
4307 /* We use char because int might match the return type of a gcc2
4308 builtin and then its argument prototype would still apply. */
4313 /* The GNU C library defines this for functions which it implements
4314 to always fail with ENOSYS. Some functions are actually named
4315 something starting with __ and the normal name is an alias. */
4316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4326 eval "ac_cv_func_$ac_func=yes"
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4331 eval "ac_cv_func_$ac_func=no"
4336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4339 cat >> confdefs.h <<EOF
4340 #define $ac_tr_func 1
4344 echo "$ac_t""no" 1>&6
4348 for ac_func in srandom random srand rand setenv usleep mmap64 strcasecmp fcvt fcvtl
4350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4351 echo "configure:4352: checking for $ac_func" >&5
4352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358 /* System header to define __stub macros and hopefully few prototypes,
4359 which can conflict with char $ac_func(); below. */
4361 /* Override any gcc2 internal prototype to avoid an error. */
4362 /* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4368 /* The GNU C library defines this for functions which it implements
4369 to always fail with ENOSYS. Some functions are actually named
4370 something starting with __ and the normal name is an alias. */
4371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4381 eval "ac_cv_func_$ac_func=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_func_$ac_func=no"
4391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4392 echo "$ac_t""yes" 1>&6
4393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4394 cat >> confdefs.h <<EOF
4395 #define $ac_tr_func 1
4399 echo "$ac_t""no" 1>&6
4404 # syscall() is needed for smbwrapper.
4405 for ac_func in syscall
4407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4408 echo "configure:4409: checking for $ac_func" >&5
4409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 /* System header to define __stub macros and hopefully few prototypes,
4416 which can conflict with char $ac_func(); below. */
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4425 /* The GNU C library defines this for functions which it implements
4426 to always fail with ENOSYS. Some functions are actually named
4427 something starting with __ and the normal name is an alias. */
4428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4438 eval "ac_cv_func_$ac_func=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 eval "ac_cv_func_$ac_func=no"
4448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4451 cat >> confdefs.h <<EOF
4452 #define $ac_tr_func 1
4456 echo "$ac_t""no" 1>&6
4461 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4464 echo "configure:4465: checking for $ac_func" >&5
4465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471 /* System header to define __stub macros and hopefully few prototypes,
4472 which can conflict with char $ac_func(); below. */
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4481 /* The GNU C library defines this for functions which it implements
4482 to always fail with ENOSYS. Some functions are actually named
4483 something starting with __ and the normal name is an alias. */
4484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4494 eval "ac_cv_func_$ac_func=yes"
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4499 eval "ac_cv_func_$ac_func=no"
4504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4505 echo "$ac_t""yes" 1>&6
4506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4507 cat >> confdefs.h <<EOF
4508 #define $ac_tr_func 1
4512 echo "$ac_t""no" 1>&6
4516 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4519 echo "configure:4520: checking for $ac_func" >&5
4520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 /* System header to define __stub macros and hopefully few prototypes,
4527 which can conflict with char $ac_func(); below. */
4529 /* Override any gcc2 internal prototype to avoid an error. */
4530 /* We use char because int might match the return type of a gcc2
4531 builtin and then its argument prototype would still apply. */
4536 /* The GNU C library defines this for functions which it implements
4537 to always fail with ENOSYS. Some functions are actually named
4538 something starting with __ and the normal name is an alias. */
4539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4549 eval "ac_cv_func_$ac_func=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_func_$ac_func=no"
4559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4562 cat >> confdefs.h <<EOF
4563 #define $ac_tr_func 1
4567 echo "$ac_t""no" 1>&6
4571 for ac_func in __getcwd _getcwd
4573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4574 echo "configure:4575: checking for $ac_func" >&5
4575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 /* System header to define __stub macros and hopefully few prototypes,
4582 which can conflict with char $ac_func(); below. */
4584 /* Override any gcc2 internal prototype to avoid an error. */
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4591 /* The GNU C library defines this for functions which it implements
4592 to always fail with ENOSYS. Some functions are actually named
4593 something starting with __ and the normal name is an alias. */
4594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4602 if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4604 eval "ac_cv_func_$ac_func=yes"
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4609 eval "ac_cv_func_$ac_func=no"
4614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4615 echo "$ac_t""yes" 1>&6
4616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4617 cat >> confdefs.h <<EOF
4618 #define $ac_tr_func 1
4622 echo "$ac_t""no" 1>&6
4626 for ac_func in __xstat __fxstat __lxstat
4628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4629 echo "configure:4630: checking for $ac_func" >&5
4630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* System header to define __stub macros and hopefully few prototypes,
4637 which can conflict with char $ac_func(); below. */
4639 /* Override any gcc2 internal prototype to avoid an error. */
4640 /* We use char because int might match the return type of a gcc2
4641 builtin and then its argument prototype would still apply. */
4646 /* The GNU C library defines this for functions which it implements
4647 to always fail with ENOSYS. Some functions are actually named
4648 something starting with __ and the normal name is an alias. */
4649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4659 eval "ac_cv_func_$ac_func=yes"
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4664 eval "ac_cv_func_$ac_func=no"
4669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4670 echo "$ac_t""yes" 1>&6
4671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4672 cat >> confdefs.h <<EOF
4673 #define $ac_tr_func 1
4677 echo "$ac_t""no" 1>&6
4681 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4684 echo "configure:4685: checking for $ac_func" >&5
4685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 /* System header to define __stub macros and hopefully few prototypes,
4692 which can conflict with char $ac_func(); below. */
4694 /* Override any gcc2 internal prototype to avoid an error. */
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4701 /* The GNU C library defines this for functions which it implements
4702 to always fail with ENOSYS. Some functions are actually named
4703 something starting with __ and the normal name is an alias. */
4704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4712 if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4714 eval "ac_cv_func_$ac_func=yes"
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4719 eval "ac_cv_func_$ac_func=no"
4724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4725 echo "$ac_t""yes" 1>&6
4726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4727 cat >> confdefs.h <<EOF
4728 #define $ac_tr_func 1
4732 echo "$ac_t""no" 1>&6
4736 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4739 echo "configure:4740: checking for $ac_func" >&5
4740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char $ac_func(); below. */
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4756 /* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4769 eval "ac_cv_func_$ac_func=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 eval "ac_cv_func_$ac_func=no"
4779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4782 cat >> confdefs.h <<EOF
4783 #define $ac_tr_func 1
4787 echo "$ac_t""no" 1>&6
4791 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4794 echo "configure:4795: checking for $ac_func" >&5
4795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 /* System header to define __stub macros and hopefully few prototypes,
4802 which can conflict with char $ac_func(); below. */
4804 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4811 /* The GNU C library defines this for functions which it implements
4812 to always fail with ENOSYS. Some functions are actually named
4813 something starting with __ and the normal name is an alias. */
4814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4822 if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4824 eval "ac_cv_func_$ac_func=yes"
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4829 eval "ac_cv_func_$ac_func=no"
4834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4837 cat >> confdefs.h <<EOF
4838 #define $ac_tr_func 1
4842 echo "$ac_t""no" 1>&6
4846 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4849 echo "configure:4850: checking for $ac_func" >&5
4850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4856 /* System header to define __stub macros and hopefully few prototypes,
4857 which can conflict with char $ac_func(); below. */
4859 /* Override any gcc2 internal prototype to avoid an error. */
4860 /* We use char because int might match the return type of a gcc2
4861 builtin and then its argument prototype would still apply. */
4866 /* The GNU C library defines this for functions which it implements
4867 to always fail with ENOSYS. Some functions are actually named
4868 something starting with __ and the normal name is an alias. */
4869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4879 eval "ac_cv_func_$ac_func=yes"
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4884 eval "ac_cv_func_$ac_func=no"
4889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4892 cat >> confdefs.h <<EOF
4893 #define $ac_tr_func 1
4897 echo "$ac_t""no" 1>&6
4901 for ac_func in _write __write _fork __fork
4903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4904 echo "configure:4905: checking for $ac_func" >&5
4905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 /* System header to define __stub macros and hopefully few prototypes,
4912 which can conflict with char $ac_func(); below. */
4914 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4921 /* The GNU C library defines this for functions which it implements
4922 to always fail with ENOSYS. Some functions are actually named
4923 something starting with __ and the normal name is an alias. */
4924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4932 if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4934 eval "ac_cv_func_$ac_func=yes"
4936 echo "configure: failed program was:" >&5
4937 cat conftest.$ac_ext >&5
4939 eval "ac_cv_func_$ac_func=no"
4944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4945 echo "$ac_t""yes" 1>&6
4946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4947 cat >> confdefs.h <<EOF
4948 #define $ac_tr_func 1
4952 echo "$ac_t""no" 1>&6
4956 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4959 echo "configure:4960: checking for $ac_func" >&5
4960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4966 /* System header to define __stub macros and hopefully few prototypes,
4967 which can conflict with char $ac_func(); below. */
4969 /* Override any gcc2 internal prototype to avoid an error. */
4970 /* We use char because int might match the return type of a gcc2
4971 builtin and then its argument prototype would still apply. */
4976 /* The GNU C library defines this for functions which it implements
4977 to always fail with ENOSYS. Some functions are actually named
4978 something starting with __ and the normal name is an alias. */
4979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4987 if { (eval echo configure:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4989 eval "ac_cv_func_$ac_func=yes"
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4994 eval "ac_cv_func_$ac_func=no"
4999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5000 echo "$ac_t""yes" 1>&6
5001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5002 cat >> confdefs.h <<EOF
5003 #define $ac_tr_func 1
5007 echo "$ac_t""no" 1>&6
5011 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5014 echo "configure:5015: checking for $ac_func" >&5
5015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 /* System header to define __stub macros and hopefully few prototypes,
5022 which can conflict with char $ac_func(); below. */
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5031 /* The GNU C library defines this for functions which it implements
5032 to always fail with ENOSYS. Some functions are actually named
5033 something starting with __ and the normal name is an alias. */
5034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5044 eval "ac_cv_func_$ac_func=yes"
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5049 eval "ac_cv_func_$ac_func=no"
5054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5057 cat >> confdefs.h <<EOF
5058 #define $ac_tr_func 1
5062 echo "$ac_t""no" 1>&6
5066 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5069 echo "configure:5070: checking for $ac_func" >&5
5070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5076 /* System header to define __stub macros and hopefully few prototypes,
5077 which can conflict with char $ac_func(); below. */
5079 /* Override any gcc2 internal prototype to avoid an error. */
5080 /* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */
5086 /* The GNU C library defines this for functions which it implements
5087 to always fail with ENOSYS. Some functions are actually named
5088 something starting with __ and the normal name is an alias. */
5089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5097 if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5099 eval "ac_cv_func_$ac_func=yes"
5101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5104 eval "ac_cv_func_$ac_func=no"
5109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5110 echo "$ac_t""yes" 1>&6
5111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5112 cat >> confdefs.h <<EOF
5113 #define $ac_tr_func 1
5117 echo "$ac_t""no" 1>&6
5121 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5124 echo "configure:5125: checking for $ac_func" >&5
5125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char $ac_func(); below. */
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5141 /* The GNU C library defines this for functions which it implements
5142 to always fail with ENOSYS. Some functions are actually named
5143 something starting with __ and the normal name is an alias. */
5144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5154 eval "ac_cv_func_$ac_func=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_func_$ac_func=no"
5164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_func 1
5172 echo "$ac_t""no" 1>&6
5176 for ac_func in open64 _open64 __open64 creat64
5178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5179 echo "configure:5180: checking for $ac_func" >&5
5180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186 /* System header to define __stub macros and hopefully few prototypes,
5187 which can conflict with char $ac_func(); below. */
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5196 /* The GNU C library defines this for functions which it implements
5197 to always fail with ENOSYS. Some functions are actually named
5198 something starting with __ and the normal name is an alias. */
5199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5209 eval "ac_cv_func_$ac_func=yes"
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5214 eval "ac_cv_func_$ac_func=no"
5219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5220 echo "$ac_t""yes" 1>&6
5221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5222 cat >> confdefs.h <<EOF
5223 #define $ac_tr_func 1
5227 echo "$ac_t""no" 1>&6
5233 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5236 if test x$ac_cv_func_stat64 = xno ; then
5237 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5238 echo "configure:5239: checking for stat64 in <sys/stat.h>" >&5
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5243 #if defined(HAVE_UNISTD_H)
5246 #include <sys/stat.h>
5249 struct stat64 st64; exit(stat64(".",&st64));
5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5254 ac_cv_func_stat64=yes
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5260 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5261 if test x$ac_cv_func_stat64 = xyes ; then
5262 cat >> confdefs.h <<\EOF
5263 #define HAVE_STAT64 1
5269 if test x$ac_cv_func_lstat64 = xno ; then
5270 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5271 echo "configure:5272: checking for lstat64 in <sys/stat.h>" >&5
5272 cat > conftest.$ac_ext <<EOF
5273 #line 5274 "configure"
5274 #include "confdefs.h"
5276 #if defined(HAVE_UNISTD_H)
5279 #include <sys/stat.h>
5282 struct stat64 st64; exit(lstat64(".",&st64));
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5287 ac_cv_func_lstat64=yes
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5293 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5294 if test x$ac_cv_func_lstat64 = xyes ; then
5295 cat >> confdefs.h <<\EOF
5296 #define HAVE_LSTAT64 1
5302 if test x$ac_cv_func_fstat64 = xno ; then
5303 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5304 echo "configure:5305: checking for fstat64 in <sys/stat.h>" >&5
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5309 #if defined(HAVE_UNISTD_H)
5312 #include <sys/stat.h>
5315 struct stat64 st64; exit(fstat64(0,&st64));
5318 if { (eval echo configure:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5320 ac_cv_func_fstat64=yes
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5326 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5327 if test x$ac_cv_func_fstat64 = xyes ; then
5328 cat >> confdefs.h <<\EOF
5329 #define HAVE_FSTAT64 1
5336 # If no strcasecmp, check for it in some known places
5337 # It is in -lresolv on ReliantUNIX and UnixWare
5338 # -lresolve *must* follow -lnsl for name resolution to work properly
5341 if test x$ac_cv_func_strcasecmp = xno ; then
5342 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5343 echo "configure:5344: checking for strcasecmp in -lresolv" >&5
5344 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 ac_save_LIBS="$LIBS"
5349 LIBS="-lresolv $LIBS"
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 /* Override any gcc2 internal prototype to avoid an error. */
5354 /* We use char because int might match the return type of a gcc2
5355 builtin and then its argument prototype would still apply. */
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5364 eval "ac_cv_lib_$ac_lib_var=yes"
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5369 eval "ac_cv_lib_$ac_lib_var=no"
5372 LIBS="$ac_save_LIBS"
5375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5377 LIBS="$LIBS -lresolv"
5378 cat >> confdefs.h <<\EOF
5379 #define HAVE_STRCASECMP 1
5383 echo "$ac_t""no" 1>&6
5389 # Check for the functions putprpwnam, set_auth_parameters,
5390 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5391 # Needed for OSF1 and HPUX.
5395 *-lsecurity*) for ac_func in putprpwnam
5397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5398 echo "configure:5399: checking for $ac_func" >&5
5399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 /* System header to define __stub macros and hopefully few prototypes,
5406 which can conflict with char $ac_func(); below. */
5408 /* Override any gcc2 internal prototype to avoid an error. */
5409 /* We use char because int might match the return type of a gcc2
5410 builtin and then its argument prototype would still apply. */
5415 /* The GNU C library defines this for functions which it implements
5416 to always fail with ENOSYS. Some functions are actually named
5417 something starting with __ and the normal name is an alias. */
5418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5426 if { (eval echo configure:5427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5428 eval "ac_cv_func_$ac_func=yes"
5430 echo "configure: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5433 eval "ac_cv_func_$ac_func=no"
5438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5439 echo "$ac_t""yes" 1>&6
5440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5441 cat >> confdefs.h <<EOF
5442 #define $ac_tr_func 1
5446 echo "$ac_t""no" 1>&6
5450 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5451 echo "configure:5452: checking for putprpwnam in -lsecurity" >&5
5452 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 ac_save_LIBS="$LIBS"
5457 LIBS="-lsecurity $LIBS"
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 /* Override any gcc2 internal prototype to avoid an error. */
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5470 if { (eval echo configure:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5472 eval "ac_cv_lib_$ac_lib_var=yes"
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5477 eval "ac_cv_lib_$ac_lib_var=no"
5480 LIBS="$ac_save_LIBS"
5483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5484 echo "$ac_t""yes" 1>&6
5485 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5487 cat >> confdefs.h <<EOF
5488 #define $ac_tr_lib 1
5491 LIBS="-lsecurity $LIBS"
5494 echo "$ac_t""no" 1>&6
5497 for ac_func in putprpwnam
5499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5500 echo "configure:5501: checking for $ac_func" >&5
5501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5504 cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5507 /* System header to define __stub macros and hopefully few prototypes,
5508 which can conflict with char $ac_func(); below. */
5510 /* Override any gcc2 internal prototype to avoid an error. */
5511 /* We use char because int might match the return type of a gcc2
5512 builtin and then its argument prototype would still apply. */
5517 /* The GNU C library defines this for functions which it implements
5518 to always fail with ENOSYS. Some functions are actually named
5519 something starting with __ and the normal name is an alias. */
5520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5530 eval "ac_cv_func_$ac_func=yes"
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5535 eval "ac_cv_func_$ac_func=no"
5540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5541 echo "$ac_t""yes" 1>&6
5542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5543 cat >> confdefs.h <<EOF
5544 #define $ac_tr_func 1
5548 echo "$ac_t""no" 1>&6
5556 *-lsec*) for ac_func in putprpwnam
5558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5559 echo "configure:5560: checking for $ac_func" >&5
5560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 /* System header to define __stub macros and hopefully few prototypes,
5567 which can conflict with char $ac_func(); below. */
5569 /* Override any gcc2 internal prototype to avoid an error. */
5570 /* We use char because int might match the return type of a gcc2
5571 builtin and then its argument prototype would still apply. */
5576 /* The GNU C library defines this for functions which it implements
5577 to always fail with ENOSYS. Some functions are actually named
5578 something starting with __ and the normal name is an alias. */
5579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5587 if { (eval echo configure:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5589 eval "ac_cv_func_$ac_func=yes"
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5594 eval "ac_cv_func_$ac_func=no"
5599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5600 echo "$ac_t""yes" 1>&6
5601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5602 cat >> confdefs.h <<EOF
5603 #define $ac_tr_func 1
5607 echo "$ac_t""no" 1>&6
5611 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5612 echo "configure:5613: checking for putprpwnam in -lsec" >&5
5613 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 ac_save_LIBS="$LIBS"
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622 /* Override any gcc2 internal prototype to avoid an error. */
5623 /* We use char because int might match the return type of a gcc2
5624 builtin and then its argument prototype would still apply. */
5631 if { (eval echo configure:5632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5633 eval "ac_cv_lib_$ac_lib_var=yes"
5635 echo "configure: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5638 eval "ac_cv_lib_$ac_lib_var=no"
5641 LIBS="$ac_save_LIBS"
5644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5648 cat >> confdefs.h <<EOF
5649 #define $ac_tr_lib 1
5655 echo "$ac_t""no" 1>&6
5658 for ac_func in putprpwnam
5660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_func" >&5
5662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* System header to define __stub macros and hopefully few prototypes,
5669 which can conflict with char $ac_func(); below. */
5671 /* Override any gcc2 internal prototype to avoid an error. */
5672 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5678 /* The GNU C library defines this for functions which it implements
5679 to always fail with ENOSYS. Some functions are actually named
5680 something starting with __ and the normal name is an alias. */
5681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5691 eval "ac_cv_func_$ac_func=yes"
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5696 eval "ac_cv_func_$ac_func=no"
5701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5702 echo "$ac_t""yes" 1>&6
5703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5704 cat >> confdefs.h <<EOF
5705 #define $ac_tr_func 1
5709 echo "$ac_t""no" 1>&6
5718 *-lsecurity*) for ac_func in set_auth_parameters
5720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_func" >&5
5722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func(); below. */
5731 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5738 /* The GNU C library defines this for functions which it implements
5739 to always fail with ENOSYS. Some functions are actually named
5740 something starting with __ and the normal name is an alias. */
5741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5751 eval "ac_cv_func_$ac_func=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5756 eval "ac_cv_func_$ac_func=no"
5761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5764 cat >> confdefs.h <<EOF
5765 #define $ac_tr_func 1
5769 echo "$ac_t""no" 1>&6
5773 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5774 echo "configure:5775: checking for set_auth_parameters in -lsecurity" >&5
5775 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 ac_save_LIBS="$LIBS"
5780 LIBS="-lsecurity $LIBS"
5781 cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 /* Override any gcc2 internal prototype to avoid an error. */
5785 /* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5787 char set_auth_parameters();
5790 set_auth_parameters()
5793 if { (eval echo configure:5794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5795 eval "ac_cv_lib_$ac_lib_var=yes"
5797 echo "configure: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5800 eval "ac_cv_lib_$ac_lib_var=no"
5803 LIBS="$ac_save_LIBS"
5806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5807 echo "$ac_t""yes" 1>&6
5808 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5810 cat >> confdefs.h <<EOF
5811 #define $ac_tr_lib 1
5814 LIBS="-lsecurity $LIBS"
5817 echo "$ac_t""no" 1>&6
5820 for ac_func in set_auth_parameters
5822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5823 echo "configure:5824: checking for $ac_func" >&5
5824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5825 echo $ac_n "(cached) $ac_c" 1>&6
5827 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5830 /* System header to define __stub macros and hopefully few prototypes,
5831 which can conflict with char $ac_func(); below. */
5833 /* Override any gcc2 internal prototype to avoid an error. */
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5840 /* The GNU C library defines this for functions which it implements
5841 to always fail with ENOSYS. Some functions are actually named
5842 something starting with __ and the normal name is an alias. */
5843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5851 if { (eval echo configure:5852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5853 eval "ac_cv_func_$ac_func=yes"
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5858 eval "ac_cv_func_$ac_func=no"
5863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5866 cat >> confdefs.h <<EOF
5867 #define $ac_tr_func 1
5871 echo "$ac_t""no" 1>&6
5879 *-lsec*) for ac_func in set_auth_parameters
5881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_func" >&5
5883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* System header to define __stub macros and hopefully few prototypes,
5890 which can conflict with char $ac_func(); below. */
5892 /* Override any gcc2 internal prototype to avoid an error. */
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5899 /* The GNU C library defines this for functions which it implements
5900 to always fail with ENOSYS. Some functions are actually named
5901 something starting with __ and the normal name is an alias. */
5902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5910 if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5912 eval "ac_cv_func_$ac_func=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5917 eval "ac_cv_func_$ac_func=no"
5922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5923 echo "$ac_t""yes" 1>&6
5924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5925 cat >> confdefs.h <<EOF
5926 #define $ac_tr_func 1
5930 echo "$ac_t""no" 1>&6
5934 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5935 echo "configure:5936: checking for set_auth_parameters in -lsec" >&5
5936 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5938 echo $ac_n "(cached) $ac_c" 1>&6
5940 ac_save_LIBS="$LIBS"
5942 cat > conftest.$ac_ext <<EOF
5943 #line 5944 "configure"
5944 #include "confdefs.h"
5945 /* Override any gcc2 internal prototype to avoid an error. */
5946 /* We use char because int might match the return type of a gcc2
5947 builtin and then its argument prototype would still apply. */
5948 char set_auth_parameters();
5951 set_auth_parameters()
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5956 eval "ac_cv_lib_$ac_lib_var=yes"
5958 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5961 eval "ac_cv_lib_$ac_lib_var=no"
5964 LIBS="$ac_save_LIBS"
5967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5968 echo "$ac_t""yes" 1>&6
5969 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5970 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5971 cat >> confdefs.h <<EOF
5972 #define $ac_tr_lib 1
5978 echo "$ac_t""no" 1>&6
5981 for ac_func in set_auth_parameters
5983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_func" >&5
5985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5988 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char $ac_func(); below. */
5994 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
6001 /* The GNU C library defines this for functions which it implements
6002 to always fail with ENOSYS. Some functions are actually named
6003 something starting with __ and the normal name is an alias. */
6004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6014 eval "ac_cv_func_$ac_func=yes"
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6019 eval "ac_cv_func_$ac_func=no"
6024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6027 cat >> confdefs.h <<EOF
6028 #define $ac_tr_func 1
6032 echo "$ac_t""no" 1>&6
6040 # UnixWare 7.x has its getspnam in -lgen
6042 *-lgen*) for ac_func in getspnam
6044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6045 echo "configure:6046: checking for $ac_func" >&5
6046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6049 cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6052 /* System header to define __stub macros and hopefully few prototypes,
6053 which can conflict with char $ac_func(); below. */
6055 /* Override any gcc2 internal prototype to avoid an error. */
6056 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */
6062 /* The GNU C library defines this for functions which it implements
6063 to always fail with ENOSYS. Some functions are actually named
6064 something starting with __ and the normal name is an alias. */
6065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6073 if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6075 eval "ac_cv_func_$ac_func=yes"
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6080 eval "ac_cv_func_$ac_func=no"
6085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6086 echo "$ac_t""yes" 1>&6
6087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6088 cat >> confdefs.h <<EOF
6089 #define $ac_tr_func 1
6093 echo "$ac_t""no" 1>&6
6097 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6098 echo "configure:6099: checking for getspnam in -lgen" >&5
6099 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 ac_save_LIBS="$LIBS"
6105 cat > conftest.$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6108 /* Override any gcc2 internal prototype to avoid an error. */
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6117 if { (eval echo configure:6118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6119 eval "ac_cv_lib_$ac_lib_var=yes"
6121 echo "configure: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6124 eval "ac_cv_lib_$ac_lib_var=no"
6127 LIBS="$ac_save_LIBS"
6130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6131 echo "$ac_t""yes" 1>&6
6132 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6134 cat >> confdefs.h <<EOF
6135 #define $ac_tr_lib 1
6141 echo "$ac_t""no" 1>&6
6144 for ac_func in getspnam
6146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6147 echo "configure:6148: checking for $ac_func" >&5
6148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6149 echo $ac_n "(cached) $ac_c" 1>&6
6151 cat > conftest.$ac_ext <<EOF
6152 #line 6153 "configure"
6153 #include "confdefs.h"
6154 /* System header to define __stub macros and hopefully few prototypes,
6155 which can conflict with char $ac_func(); below. */
6157 /* Override any gcc2 internal prototype to avoid an error. */
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6164 /* The GNU C library defines this for functions which it implements
6165 to always fail with ENOSYS. Some functions are actually named
6166 something starting with __ and the normal name is an alias. */
6167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6175 if { (eval echo configure:6176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6177 eval "ac_cv_func_$ac_func=yes"
6179 echo "configure: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6182 eval "ac_cv_func_$ac_func=no"
6187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6188 echo "$ac_t""yes" 1>&6
6189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6190 cat >> confdefs.h <<EOF
6191 #define $ac_tr_func 1
6195 echo "$ac_t""no" 1>&6
6204 *-lsecurity*) for ac_func in getspnam
6206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6207 echo "configure:6208: checking for $ac_func" >&5
6208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6209 echo $ac_n "(cached) $ac_c" 1>&6
6211 cat > conftest.$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.h"
6214 /* System header to define __stub macros and hopefully few prototypes,
6215 which can conflict with char $ac_func(); below. */
6217 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6224 /* The GNU C library defines this for functions which it implements
6225 to always fail with ENOSYS. Some functions are actually named
6226 something starting with __ and the normal name is an alias. */
6227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6235 if { (eval echo configure:6236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6237 eval "ac_cv_func_$ac_func=yes"
6239 echo "configure: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6242 eval "ac_cv_func_$ac_func=no"
6247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6248 echo "$ac_t""yes" 1>&6
6249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6250 cat >> confdefs.h <<EOF
6251 #define $ac_tr_func 1
6255 echo "$ac_t""no" 1>&6
6259 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6260 echo "configure:6261: checking for getspnam in -lsecurity" >&5
6261 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6263 echo $ac_n "(cached) $ac_c" 1>&6
6265 ac_save_LIBS="$LIBS"
6266 LIBS="-lsecurity $LIBS"
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 /* Override any gcc2 internal prototype to avoid an error. */
6271 /* We use char because int might match the return type of a gcc2
6272 builtin and then its argument prototype would still apply. */
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6281 eval "ac_cv_lib_$ac_lib_var=yes"
6283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6286 eval "ac_cv_lib_$ac_lib_var=no"
6289 LIBS="$ac_save_LIBS"
6292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6296 cat >> confdefs.h <<EOF
6297 #define $ac_tr_lib 1
6300 LIBS="-lsecurity $LIBS"
6303 echo "$ac_t""no" 1>&6
6306 for ac_func in getspnam
6308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6309 echo "configure:6310: checking for $ac_func" >&5
6310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 /* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func(); below. */
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6326 /* The GNU C library defines this for functions which it implements
6327 to always fail with ENOSYS. Some functions are actually named
6328 something starting with __ and the normal name is an alias. */
6329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6339 eval "ac_cv_func_$ac_func=yes"
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6344 eval "ac_cv_func_$ac_func=no"
6349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6350 echo "$ac_t""yes" 1>&6
6351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6352 cat >> confdefs.h <<EOF
6353 #define $ac_tr_func 1
6357 echo "$ac_t""no" 1>&6
6365 *-lsec*) for ac_func in getspnam
6367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6368 echo "configure:6369: checking for $ac_func" >&5
6369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 /* System header to define __stub macros and hopefully few prototypes,
6376 which can conflict with char $ac_func(); below. */
6378 /* Override any gcc2 internal prototype to avoid an error. */
6379 /* We use char because int might match the return type of a gcc2
6380 builtin and then its argument prototype would still apply. */
6385 /* The GNU C library defines this for functions which it implements
6386 to always fail with ENOSYS. Some functions are actually named
6387 something starting with __ and the normal name is an alias. */
6388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6396 if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6398 eval "ac_cv_func_$ac_func=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 eval "ac_cv_func_$ac_func=no"
6408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6409 echo "$ac_t""yes" 1>&6
6410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6411 cat >> confdefs.h <<EOF
6412 #define $ac_tr_func 1
6416 echo "$ac_t""no" 1>&6
6420 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6421 echo "configure:6422: checking for getspnam in -lsec" >&5
6422 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6426 ac_save_LIBS="$LIBS"
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6442 eval "ac_cv_lib_$ac_lib_var=yes"
6444 echo "configure: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6447 eval "ac_cv_lib_$ac_lib_var=no"
6450 LIBS="$ac_save_LIBS"
6453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6454 echo "$ac_t""yes" 1>&6
6455 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6457 cat >> confdefs.h <<EOF
6458 #define $ac_tr_lib 1
6464 echo "$ac_t""no" 1>&6
6467 for ac_func in getspnam
6469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6470 echo "configure:6471: checking for $ac_func" >&5
6471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6474 cat > conftest.$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 /* System header to define __stub macros and hopefully few prototypes,
6478 which can conflict with char $ac_func(); below. */
6480 /* Override any gcc2 internal prototype to avoid an error. */
6481 /* We use char because int might match the return type of a gcc2
6482 builtin and then its argument prototype would still apply. */
6487 /* The GNU C library defines this for functions which it implements
6488 to always fail with ENOSYS. Some functions are actually named
6489 something starting with __ and the normal name is an alias. */
6490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6498 if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6500 eval "ac_cv_func_$ac_func=yes"
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6505 eval "ac_cv_func_$ac_func=no"
6510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6511 echo "$ac_t""yes" 1>&6
6512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6513 cat >> confdefs.h <<EOF
6514 #define $ac_tr_func 1
6518 echo "$ac_t""no" 1>&6
6527 *-lsecurity*) for ac_func in bigcrypt
6529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_func" >&5
6531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char $ac_func(); below. */
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6547 /* The GNU C library defines this for functions which it implements
6548 to always fail with ENOSYS. Some functions are actually named
6549 something starting with __ and the normal name is an alias. */
6550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6558 if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6560 eval "ac_cv_func_$ac_func=yes"
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6565 eval "ac_cv_func_$ac_func=no"
6570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6573 cat >> confdefs.h <<EOF
6574 #define $ac_tr_func 1
6578 echo "$ac_t""no" 1>&6
6582 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6583 echo "configure:6584: checking for bigcrypt in -lsecurity" >&5
6584 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6588 ac_save_LIBS="$LIBS"
6589 LIBS="-lsecurity $LIBS"
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* Override any gcc2 internal prototype to avoid an error. */
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6604 eval "ac_cv_lib_$ac_lib_var=yes"
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 eval "ac_cv_lib_$ac_lib_var=no"
6612 LIBS="$ac_save_LIBS"
6615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6616 echo "$ac_t""yes" 1>&6
6617 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6619 cat >> confdefs.h <<EOF
6620 #define $ac_tr_lib 1
6623 LIBS="-lsecurity $LIBS"
6626 echo "$ac_t""no" 1>&6
6629 for ac_func in bigcrypt
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func(); below. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6662 eval "ac_cv_func_$ac_func=yes"
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6667 eval "ac_cv_func_$ac_func=no"
6672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_func 1
6680 echo "$ac_t""no" 1>&6
6688 *-lsec*) for ac_func in bigcrypt
6690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6691 echo "configure:6692: checking for $ac_func" >&5
6692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* System header to define __stub macros and hopefully few prototypes,
6699 which can conflict with char $ac_func(); below. */
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6721 eval "ac_cv_func_$ac_func=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 eval "ac_cv_func_$ac_func=no"
6731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6734 cat >> confdefs.h <<EOF
6735 #define $ac_tr_func 1
6739 echo "$ac_t""no" 1>&6
6743 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6744 echo "configure:6745: checking for bigcrypt in -lsec" >&5
6745 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6747 echo $ac_n "(cached) $ac_c" 1>&6
6749 ac_save_LIBS="$LIBS"
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6754 /* Override any gcc2 internal prototype to avoid an error. */
6755 /* We use char because int might match the return type of a gcc2
6756 builtin and then its argument prototype would still apply. */
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6765 eval "ac_cv_lib_$ac_lib_var=yes"
6767 echo "configure: failed program was:" >&5
6768 cat conftest.$ac_ext >&5
6770 eval "ac_cv_lib_$ac_lib_var=no"
6773 LIBS="$ac_save_LIBS"
6776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6777 echo "$ac_t""yes" 1>&6
6778 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6780 cat >> confdefs.h <<EOF
6781 #define $ac_tr_lib 1
6787 echo "$ac_t""no" 1>&6
6790 for ac_func in bigcrypt
6792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6793 echo "configure:6794: checking for $ac_func" >&5
6794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 /* System header to define __stub macros and hopefully few prototypes,
6801 which can conflict with char $ac_func(); below. */
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6821 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6823 eval "ac_cv_func_$ac_func=yes"
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6828 eval "ac_cv_func_$ac_func=no"
6833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6834 echo "$ac_t""yes" 1>&6
6835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6836 cat >> confdefs.h <<EOF
6837 #define $ac_tr_func 1
6841 echo "$ac_t""no" 1>&6
6850 *-lsecurity*) for ac_func in getprpwnam
6852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853 echo "configure:6854: checking for $ac_func" >&5
6854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char $ac_func(); below. */
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6883 eval "ac_cv_func_$ac_func=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 eval "ac_cv_func_$ac_func=no"
6893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6896 cat >> confdefs.h <<EOF
6897 #define $ac_tr_func 1
6901 echo "$ac_t""no" 1>&6
6905 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6906 echo "configure:6907: checking for getprpwnam in -lsecurity" >&5
6907 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 ac_save_LIBS="$LIBS"
6912 LIBS="-lsecurity $LIBS"
6913 cat > conftest.$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6927 eval "ac_cv_lib_$ac_lib_var=yes"
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 eval "ac_cv_lib_$ac_lib_var=no"
6935 LIBS="$ac_save_LIBS"
6938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6939 echo "$ac_t""yes" 1>&6
6940 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6942 cat >> confdefs.h <<EOF
6943 #define $ac_tr_lib 1
6946 LIBS="-lsecurity $LIBS"
6949 echo "$ac_t""no" 1>&6
6952 for ac_func in getprpwnam
6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_func" >&5
6956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 cat > conftest.$ac_ext <<EOF
6960 #line 6961 "configure"
6961 #include "confdefs.h"
6962 /* System header to define __stub macros and hopefully few prototypes,
6963 which can conflict with char $ac_func(); below. */
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6972 /* The GNU C library defines this for functions which it implements
6973 to always fail with ENOSYS. Some functions are actually named
6974 something starting with __ and the normal name is an alias. */
6975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6985 eval "ac_cv_func_$ac_func=yes"
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6990 eval "ac_cv_func_$ac_func=no"
6995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6998 cat >> confdefs.h <<EOF
6999 #define $ac_tr_func 1
7003 echo "$ac_t""no" 1>&6
7011 *-lsec*) for ac_func in getprpwnam
7013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7014 echo "configure:7015: checking for $ac_func" >&5
7015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7016 echo $ac_n "(cached) $ac_c" 1>&6
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7021 /* System header to define __stub macros and hopefully few prototypes,
7022 which can conflict with char $ac_func(); below. */
7024 /* Override any gcc2 internal prototype to avoid an error. */
7025 /* We use char because int might match the return type of a gcc2
7026 builtin and then its argument prototype would still apply. */
7031 /* The GNU C library defines this for functions which it implements
7032 to always fail with ENOSYS. Some functions are actually named
7033 something starting with __ and the normal name is an alias. */
7034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7042 if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7044 eval "ac_cv_func_$ac_func=yes"
7046 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7049 eval "ac_cv_func_$ac_func=no"
7054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7055 echo "$ac_t""yes" 1>&6
7056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7057 cat >> confdefs.h <<EOF
7058 #define $ac_tr_func 1
7062 echo "$ac_t""no" 1>&6
7066 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7067 echo "configure:7068: checking for getprpwnam in -lsec" >&5
7068 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7070 echo $ac_n "(cached) $ac_c" 1>&6
7072 ac_save_LIBS="$LIBS"
7074 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 /* Override any gcc2 internal prototype to avoid an error. */
7078 /* We use char because int might match the return type of a gcc2
7079 builtin and then its argument prototype would still apply. */
7086 if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7088 eval "ac_cv_lib_$ac_lib_var=yes"
7090 echo "configure: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7093 eval "ac_cv_lib_$ac_lib_var=no"
7096 LIBS="$ac_save_LIBS"
7099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7100 echo "$ac_t""yes" 1>&6
7101 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7103 cat >> confdefs.h <<EOF
7104 #define $ac_tr_lib 1
7110 echo "$ac_t""no" 1>&6
7113 for ac_func in getprpwnam
7115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7116 echo "configure:7117: checking for $ac_func" >&5
7117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 /* System header to define __stub macros and hopefully few prototypes,
7124 which can conflict with char $ac_func(); below. */
7126 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7133 /* The GNU C library defines this for functions which it implements
7134 to always fail with ENOSYS. Some functions are actually named
7135 something starting with __ and the normal name is an alias. */
7136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7146 eval "ac_cv_func_$ac_func=yes"
7148 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7151 eval "ac_cv_func_$ac_func=no"
7156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7159 cat >> confdefs.h <<EOF
7160 #define $ac_tr_func 1
7164 echo "$ac_t""no" 1>&6
7172 # this bit needs to be modified for each OS that is suported by
7173 # smbwrapper. You need to specify how to created a shared library and
7174 # how to compile C code to produce PIC object files
7176 # these are the defaults, good for lots of systems
7182 # and these are for particular systems
7184 *linux*) cat >> confdefs.h <<\EOF
7188 *solaris*) cat >> confdefs.h <<\EOF
7194 *sunos*) cat >> confdefs.h <<\EOF
7200 *bsd*) LDSHFLAGS="-shared -Bshareable"
7202 *irix*) cat >> confdefs.h <<\EOF
7207 *irix6*) cat >> confdefs.h <<\EOF
7213 ATTEMPT_WRAP32_BUILD=yes
7215 *aix*) cat >> confdefs.h <<\EOF
7219 *hpux*) cat >> confdefs.h <<\EOF
7224 # Use special PIC flags for the native HP-UX compiler.
7225 if test $ac_cv_prog_cc_Ae = yes; then
7230 *qnx*) cat >> confdefs.h <<\EOF
7234 *osf*) cat >> confdefs.h <<\EOF
7238 *sco*) cat >> confdefs.h <<\EOF
7242 *next2*) cat >> confdefs.h <<\EOF
7246 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7247 set dummy groff; ac_word=$2
7248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7249 echo "configure:7250: checking for $ac_word" >&5
7250 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7251 echo $ac_n "(cached) $ac_c" 1>&6
7253 if test -n "$ROFF"; then
7254 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7257 for ac_dir in $PATH; do
7258 test -z "$ac_dir" && ac_dir=.
7259 if test -f $ac_dir/$ac_word; then
7260 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7267 ROFF="$ac_cv_prog_ROFF"
7268 if test -n "$ROFF"; then
7269 echo "$ac_t""$ROFF" 1>&6
7271 echo "$ac_t""no" 1>&6
7276 *-univel-*) if test "$GCC" != yes ; then
7277 cat >> confdefs.h <<\EOF
7278 #define HAVE_MEMSET 1
7284 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
7285 #define RELIANTUNIX 1
7291 if test "$GCC" != yes ; then
7292 cat >> confdefs.h <<\EOF
7293 #define HAVE_MEMSET 1
7301 # try to work out how to produce pic code with this compiler
7302 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7303 echo "configure:7304: checking whether ${CC-cc} accepts -fpic" >&5
7304 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 echo 'void f(){}' > conftest.c
7308 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7309 ac_cv_prog_cc_fpic=yes
7311 ac_cv_prog_cc_fpic=no
7317 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7318 if test $ac_cv_prog_cc_fpic = yes; then
7321 if test x$PICFLAG = x; then
7322 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7323 echo "configure:7324: checking whether ${CC-cc} accepts -Kpic" >&5
7324 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7325 echo $ac_n "(cached) $ac_c" 1>&6
7327 echo 'void f(){}' > conftest.c
7328 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7329 ac_cv_prog_cc_Kpic=yes
7331 ac_cv_prog_cc_Kpic=no
7337 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7338 if test $ac_cv_prog_cc_Kpic = yes; then
7342 if test x$PICFLAG = x; then
7343 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7344 echo "configure:7345: checking whether ${CC-cc} accepts -KPIC" >&5
7345 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 echo 'void f(){}' > conftest.c
7349 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7350 ac_cv_prog_cc_KPIC=yes
7352 ac_cv_prog_cc_KPIC=no
7358 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7359 if test $ac_cv_prog_cc_KPIC = yes; then
7366 echo $ac_n "checking for long long""... $ac_c" 1>&6
7367 echo "configure:7368: checking for long long" >&5
7368 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7369 echo $ac_n "(cached) $ac_c" 1>&6
7372 if test "$cross_compiling" = yes; then
7373 samba_cv_have_longlong=cross
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7379 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7381 if { (eval echo configure:7382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7383 samba_cv_have_longlong=yes
7385 echo "configure: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7388 samba_cv_have_longlong=no
7395 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7396 if test x"$samba_cv_have_longlong" = x"yes"; then
7397 cat >> confdefs.h <<\EOF
7398 #define HAVE_LONGLONG 1
7403 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7404 echo "configure:7405: checking for 64 bit off_t" >&5
7405 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7409 if test "$cross_compiling" = yes; then
7410 samba_cv_SIZEOF_OFF_T=cross
7412 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7416 #include <sys/stat.h>
7417 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7421 samba_cv_SIZEOF_OFF_T=yes
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7426 samba_cv_SIZEOF_OFF_T=no
7433 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
7434 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
7435 cat >> confdefs.h <<\EOF
7436 #define SIZEOF_OFF_T 8
7441 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7442 echo "configure:7443: checking for off64_t" >&5
7443 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7444 echo $ac_n "(cached) $ac_c" 1>&6
7447 if test "$cross_compiling" = yes; then
7448 samba_cv_HAVE_OFF64_T=cross
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7454 #if defined(HAVE_UNISTD_H)
7458 #include <sys/stat.h>
7459 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7461 if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7463 samba_cv_HAVE_OFF64_T=yes
7465 echo "configure: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7468 samba_cv_HAVE_OFF64_T=no
7475 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7476 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
7477 cat >> confdefs.h <<\EOF
7478 #define HAVE_OFF64_T 1
7483 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7484 echo "configure:7485: checking for 64 bit ino_t" >&5
7485 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7486 echo $ac_n "(cached) $ac_c" 1>&6
7489 if test "$cross_compiling" = yes; then
7490 samba_cv_SIZEOF_INO_T=cross
7492 cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7496 #include <sys/stat.h>
7497 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7499 if { (eval echo configure:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7501 samba_cv_SIZEOF_INO_T=yes
7503 echo "configure: failed program was:" >&5
7504 cat conftest.$ac_ext >&5
7506 samba_cv_SIZEOF_INO_T=no
7513 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7514 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
7515 cat >> confdefs.h <<\EOF
7516 #define SIZEOF_INO_T 8
7521 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7522 echo "configure:7523: checking for ino64_t" >&5
7523 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7527 if test "$cross_compiling" = yes; then
7528 samba_cv_HAVE_INO64_T=cross
7530 cat > conftest.$ac_ext <<EOF
7531 #line 7532 "configure"
7532 #include "confdefs.h"
7534 #if defined(HAVE_UNISTD_H)
7538 #include <sys/stat.h>
7539 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7541 if { (eval echo configure:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7543 samba_cv_HAVE_INO64_T=yes
7545 echo "configure: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7548 samba_cv_HAVE_INO64_T=no
7555 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7556 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
7557 cat >> confdefs.h <<\EOF
7558 #define HAVE_INO64_T 1
7563 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
7564 echo "configure:7565: checking for struct dirent64" >&5
7565 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7573 #if defined(HAVE_UNISTD_H)
7576 #include <sys/types.h>
7582 if { (eval echo configure:7583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7584 samba_cv_HAVE_STRUCT_DIRENT64=yes
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7589 samba_cv_HAVE_STRUCT_DIRENT64=no
7594 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
7595 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
7596 cat >> confdefs.h <<\EOF
7597 #define HAVE_STRUCT_DIRENT64 1
7602 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7603 echo "configure:7604: checking for union semun" >&5
7604 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7608 if test "$cross_compiling" = yes; then
7609 samba_cv_HAVE_UNION_SEMUN=cross
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7615 #include <sys/types.h>
7616 #include <sys/ipc.h>
7617 #include <sys/sem.h>
7618 main() { union semun ss; exit(0); }
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7622 samba_cv_HAVE_UNION_SEMUN=yes
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7627 samba_cv_HAVE_UNION_SEMUN=no
7634 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7635 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
7636 cat >> confdefs.h <<\EOF
7637 #define HAVE_UNION_SEMUN 1
7642 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7643 echo "configure:7644: checking for unsigned char" >&5
7644 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7648 if test "$cross_compiling" = yes; then
7649 samba_cv_HAVE_UNSIGNED_CHAR=cross
7651 cat > conftest.$ac_ext <<EOF
7652 #line 7653 "configure"
7653 #include "confdefs.h"
7655 main() { char c; c=250; exit((c > 0)?0:1); }
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7659 samba_cv_HAVE_UNSIGNED_CHAR=yes
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 samba_cv_HAVE_UNSIGNED_CHAR=no
7671 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7672 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
7673 cat >> confdefs.h <<\EOF
7674 #define HAVE_UNSIGNED_CHAR 1
7679 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7680 echo "configure:7681: checking for sin_len in sock" >&5
7681 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7688 #include <sys/types.h>
7689 #include <sys/socket.h>
7690 #include <netinet/in.h>
7692 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7695 if { (eval echo configure:7696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7697 samba_cv_HAVE_SOCK_SIN_LEN=yes
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7702 samba_cv_HAVE_SOCK_SIN_LEN=no
7707 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7708 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
7709 cat >> confdefs.h <<\EOF
7710 #define HAVE_SOCK_SIN_LEN 1
7715 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7716 echo "configure:7717: checking whether seekdir returns void" >&5
7717 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 #include <sys/types.h>
7726 void seekdir(DIR *d, long loc) { return; }
7731 if { (eval echo configure:7732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7733 samba_cv_SEEKDIR_RETURNS_VOID=yes
7735 echo "configure: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7738 samba_cv_SEEKDIR_RETURNS_VOID=no
7743 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7744 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7745 cat >> confdefs.h <<\EOF
7746 #define SEEKDIR_RETURNS_VOID 1
7751 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7752 echo "configure:7753: checking for __FILE__ macro" >&5
7753 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7762 printf("%s\n", __FILE__);
7765 if { (eval echo configure:7766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7767 samba_cv_HAVE_FILE_MACRO=yes
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7772 samba_cv_HAVE_FILE_MACRO=no
7777 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7778 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7779 cat >> confdefs.h <<\EOF
7780 #define HAVE_FILE_MACRO 1
7785 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7786 echo "configure:7787: checking for __FUNCTION__ macro" >&5
7787 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7791 cat > conftest.$ac_ext <<EOF
7792 #line 7793 "configure"
7793 #include "confdefs.h"
7796 printf("%s\n", __FUNCTION__);
7799 if { (eval echo configure:7800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7801 samba_cv_HAVE_FUNCTION_MACRO=yes
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7806 samba_cv_HAVE_FUNCTION_MACRO=no
7811 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7812 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7813 cat >> confdefs.h <<\EOF
7814 #define HAVE_FUNCTION_MACRO 1
7819 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7820 echo "configure:7821: checking if gettimeofday takes tz argument" >&5
7821 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7825 if test "$cross_compiling" = yes; then
7826 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7832 #include <sys/time.h>
7834 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7836 if { (eval echo configure:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7838 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
7840 echo "configure: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7843 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
7850 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7851 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
7852 cat >> confdefs.h <<\EOF
7853 #define HAVE_GETTIMEOFDAY_TZ 1
7859 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7860 echo "configure:7861: checking for broken readdir" >&5
7861 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7865 if test "$cross_compiling" = yes; then
7866 samba_cv_HAVE_BROKEN_READDIR=cross
7868 cat > conftest.$ac_ext <<EOF
7869 #line 7870 "configure"
7870 #include "confdefs.h"
7871 #include <sys/types.h>
7873 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7874 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7875 di->d_name[0] == 0) exit(0); exit(1);}
7877 if { (eval echo configure:7878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7879 samba_cv_HAVE_BROKEN_READDIR=yes
7881 echo "configure: failed program was:" >&5
7882 cat conftest.$ac_ext >&5
7884 samba_cv_HAVE_BROKEN_READDIR=no
7891 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7892 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7893 cat >> confdefs.h <<\EOF
7894 #define HAVE_BROKEN_READDIR 1
7899 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7900 echo "configure:7901: checking for utimbuf" >&5
7901 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7908 #include <sys/types.h>
7911 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7914 if { (eval echo configure:7915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7916 samba_cv_HAVE_UTIMBUF=yes
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7921 samba_cv_HAVE_UTIMBUF=no
7926 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7927 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
7928 cat >> confdefs.h <<\EOF
7929 #define HAVE_UTIMBUF 1
7934 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7935 echo "configure:7936: checking for kernel oplock type definitions" >&5
7936 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7940 cat > conftest.$ac_ext <<EOF
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7943 #include <sys/types.h>
7946 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7949 if { (eval echo configure:7950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7951 samba_cv_HAVE_KERNEL_OPLOCKS=yes
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7956 samba_cv_HAVE_KERNEL_OPLOCKS=no
7961 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7962 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
7963 cat >> confdefs.h <<\EOF
7964 #define HAVE_KERNEL_OPLOCKS 1
7969 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7970 echo "configure:7971: checking for irix specific capabilities" >&5
7971 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7975 if test "$cross_compiling" = yes; then
7976 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
7978 cat > conftest.$ac_ext <<EOF
7979 #line 7980 "configure"
7980 #include "confdefs.h"
7981 #include <sys/types.h>
7982 #include <sys/capability.h>
7985 if ((cap = cap_get_proc()) == NULL)
7987 cap->cap_effective |= CAP_NETWORK_MGT;
7988 cap->cap_inheritable |= CAP_NETWORK_MGT;
7994 if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7996 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8001 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
8008 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
8009 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
8010 cat >> confdefs.h <<\EOF
8011 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
8017 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
8018 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
8021 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8022 echo "configure:8023: checking for int16 typedef included by rpc/rpc.h" >&5
8023 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8024 echo $ac_n "(cached) $ac_c" 1>&6
8027 cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8030 #include <sys/types.h>
8031 #if defined(HAVE_RPC_RPC_H)
8032 #include <rpc/rpc.h>
8038 if { (eval echo configure:8039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8040 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
8042 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8045 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
8050 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8051 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
8052 cat >> confdefs.h <<\EOF
8053 #define HAVE_INT16_FROM_RPC_RPC_H 1
8058 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8059 echo "configure:8060: checking for uint16 typedef included by rpc/rpc.h" >&5
8060 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8064 cat > conftest.$ac_ext <<EOF
8065 #line 8066 "configure"
8066 #include "confdefs.h"
8067 #include <sys/types.h>
8068 #if defined(HAVE_RPC_RPC_H)
8069 #include <rpc/rpc.h>
8075 if { (eval echo configure:8076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8077 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
8079 echo "configure: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8082 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
8087 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8088 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
8089 cat >> confdefs.h <<\EOF
8090 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8095 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8096 echo "configure:8097: checking for int32 typedef included by rpc/rpc.h" >&5
8097 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8101 cat > conftest.$ac_ext <<EOF
8102 #line 8103 "configure"
8103 #include "confdefs.h"
8104 #include <sys/types.h>
8105 #if defined(HAVE_RPC_RPC_H)
8106 #include <rpc/rpc.h>
8112 if { (eval echo configure:8113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8114 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
8116 echo "configure: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8119 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
8124 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8125 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
8126 cat >> confdefs.h <<\EOF
8127 #define HAVE_INT32_FROM_RPC_RPC_H 1
8132 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8133 echo "configure:8134: checking for uint32 typedef included by rpc/rpc.h" >&5
8134 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6
8138 cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 #include <sys/types.h>
8142 #if defined(HAVE_RPC_RPC_H)
8143 #include <rpc/rpc.h>
8149 if { (eval echo configure:8150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8151 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
8153 echo "configure: failed program was:" >&5
8154 cat conftest.$ac_ext >&5
8156 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
8161 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8162 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
8163 cat >> confdefs.h <<\EOF
8164 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8170 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8171 echo "configure:8172: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8172 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8176 cat > conftest.$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8179 #include <sys/types.h>
8180 #ifdef HAVE_SYS_SECURITY_H
8181 #include <sys/security.h>
8183 #endif /* HAVE_SYS_SECURITY_H */
8184 #if defined(HAVE_RPC_RPC_H)
8185 #include <rpc/rpc.h>
8191 if { (eval echo configure:8192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8193 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
8195 echo "configure: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8198 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
8203 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
8204 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
8205 cat >> confdefs.h <<\EOF
8206 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
8211 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8212 echo "configure:8213: checking for test routines" >&5
8213 if test "$cross_compiling" = yes; then
8214 echo "configure: warning: cannot run when cross-compiling" 1>&2
8216 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 #include "${srcdir-.}/tests/trivial.c"
8221 if { (eval echo configure:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8223 echo "$ac_t""yes" 1>&6
8225 echo "configure: failed program was:" >&5
8226 cat conftest.$ac_ext >&5
8228 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8234 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8235 echo "configure:8236: checking for ftruncate extend" >&5
8236 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8237 echo $ac_n "(cached) $ac_c" 1>&6
8240 if test "$cross_compiling" = yes; then
8241 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
8243 cat > conftest.$ac_ext <<EOF
8244 #line 8245 "configure"
8245 #include "confdefs.h"
8246 #include "${srcdir-.}/tests/ftruncate.c"
8248 if { (eval echo configure:8249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8250 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8255 samba_cv_HAVE_FTRUNCATE_EXTEND=no
8262 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8263 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
8264 cat >> confdefs.h <<\EOF
8265 #define HAVE_FTRUNCATE_EXTEND 1
8270 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
8271 echo "configure:8272: checking for broken getgroups" >&5
8272 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8276 if test "$cross_compiling" = yes; then
8277 samba_cv_HAVE_BROKEN_GETGROUPS=cross
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8282 #include "${srcdir-.}/tests/getgroups.c"
8284 if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8286 samba_cv_HAVE_BROKEN_GETGROUPS=yes
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8291 samba_cv_HAVE_BROKEN_GETGROUPS=no
8298 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
8299 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
8300 cat >> confdefs.h <<\EOF
8301 #define HAVE_BROKEN_GETGROUPS 1
8306 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
8307 echo "configure:8308: checking whether getpass should be replaced" >&5
8308 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6
8312 SAVE_CPPFLAGS="$CPPFLAGS"
8313 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8318 #define REPLACE_GETPASS 1
8319 #define NO_CONFIG_H 1
8320 #define main dont_declare_main
8321 #include "${srcdir-.}/lib/getsmbpass.c"
8328 if { (eval echo configure:8329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8330 samba_cv_REPLACE_GETPASS=yes
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 samba_cv_REPLACE_GETPASS=no
8338 CPPFLAGS="$SAVE_CPPFLAGS"
8342 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
8343 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
8344 cat >> confdefs.h <<\EOF
8345 #define REPLACE_GETPASS 1
8350 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8351 echo "configure:8352: checking for working fnmatch" >&5
8352 if eval "test \"`echo '$''{'samba_cv_HAVE_FNMATCH'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8356 if test "$cross_compiling" = yes; then
8357 samba_cv_HAVE_FNMATCH=cross
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8362 #include <fnmatch.h>
8363 main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }
8365 if { (eval echo configure:8366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8367 samba_cv_HAVE_FNMATCH=yes
8369 echo "configure: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8372 samba_cv_HAVE_FNMATCH=no
8379 echo "$ac_t""$samba_cv_HAVE_FNMATCH" 1>&6
8380 if test x"$samba_cv_HAVE_FNMATCH" = x"yes"; then
8381 cat >> confdefs.h <<\EOF
8382 #define HAVE_FNMATCH 1
8387 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
8388 echo "configure:8389: checking for broken inet_ntoa" >&5
8389 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8393 if test "$cross_compiling" = yes; then
8394 samba_cv_REPLACE_INET_NTOA=cross
8396 cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8401 #include <sys/types.h>
8402 #include <netinet/in.h>
8403 #ifdef HAVE_ARPA_INET_H
8404 #include <arpa/inet.h>
8406 main() { struct in_addr ip; ip.s_addr = 0x12345678;
8407 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
8408 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8413 samba_cv_REPLACE_INET_NTOA=yes
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8418 samba_cv_REPLACE_INET_NTOA=no
8425 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
8426 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
8427 cat >> confdefs.h <<\EOF
8428 #define REPLACE_INET_NTOA 1
8433 echo $ac_n "checking for root""... $ac_c" 1>&6
8434 echo "configure:8435: checking for root" >&5
8435 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
8436 echo $ac_n "(cached) $ac_c" 1>&6
8439 if test "$cross_compiling" = yes; then
8440 samba_cv_HAVE_ROOT=cross
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 main() { exit(getuid() != 0); }
8447 if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8449 samba_cv_HAVE_ROOT=yes
8451 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8454 samba_cv_HAVE_ROOT=no
8461 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
8462 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
8463 cat >> confdefs.h <<\EOF
8468 echo "configure: warning: running as non-root will disable some tests" 1>&2
8472 # look for a method of finding the list of network interfaces
8474 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
8475 echo "configure:8476: checking for iface AIX" >&5
8476 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8480 if test "$cross_compiling" = yes; then
8481 samba_cv_HAVE_IFACE_AIX=cross
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8487 #define HAVE_IFACE_AIX 1
8488 #define AUTOCONF_TEST 1
8489 #include "confdefs.h"
8490 #include "${srcdir-.}/lib/interfaces.c"
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8494 samba_cv_HAVE_IFACE_AIX=yes
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 samba_cv_HAVE_IFACE_AIX=no
8506 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
8507 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
8508 iface=yes;cat >> confdefs.h <<\EOF
8509 #define HAVE_IFACE_AIX 1
8514 if test $iface = no; then
8515 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
8516 echo "configure:8517: checking for iface ifconf" >&5
8517 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8521 if test "$cross_compiling" = yes; then
8522 samba_cv_HAVE_IFACE_IFCONF=cross
8524 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8528 #define HAVE_IFACE_IFCONF 1
8529 #define AUTOCONF_TEST 1
8530 #include "confdefs.h"
8531 #include "${srcdir-.}/lib/interfaces.c"
8533 if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8535 samba_cv_HAVE_IFACE_IFCONF=yes
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8540 samba_cv_HAVE_IFACE_IFCONF=no
8547 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
8548 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
8549 iface=yes;cat >> confdefs.h <<\EOF
8550 #define HAVE_IFACE_IFCONF 1
8556 if test $iface = no; then
8557 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
8558 echo "configure:8559: checking for iface ifreq" >&5
8559 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8563 if test "$cross_compiling" = yes; then
8564 samba_cv_HAVE_IFACE_IFREQ=cross
8566 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8570 #define HAVE_IFACE_IFREQ 1
8571 #define AUTOCONF_TEST 1
8572 #include "confdefs.h"
8573 #include "${srcdir-.}/lib/interfaces.c"
8575 if { (eval echo configure:8576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8577 samba_cv_HAVE_IFACE_IFREQ=yes
8579 echo "configure: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8582 samba_cv_HAVE_IFACE_IFREQ=no
8589 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
8590 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
8591 iface=yes;cat >> confdefs.h <<\EOF
8592 #define HAVE_IFACE_IFREQ 1
8599 ################################################
8600 # look for a method of setting the effective uid
8602 if test $seteuid = no; then
8603 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
8604 echo "configure:8605: checking for setresuid" >&5
8605 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8609 if test "$cross_compiling" = yes; then
8610 samba_cv_USE_SETRESUID=cross
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8616 #define AUTOCONF_TEST 1
8617 #define USE_SETRESUID 1
8618 #include "confdefs.h"
8619 #include "${srcdir-.}/lib/util_sec.c"
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8623 samba_cv_USE_SETRESUID=yes
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8628 samba_cv_USE_SETRESUID=no
8635 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
8636 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
8637 seteuid=yes;cat >> confdefs.h <<\EOF
8638 #define USE_SETRESUID 1
8645 if test $seteuid = no; then
8646 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
8647 echo "configure:8648: checking for setreuid" >&5
8648 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8652 if test "$cross_compiling" = yes; then
8653 samba_cv_USE_SETREUID=cross
8655 cat > conftest.$ac_ext <<EOF
8656 #line 8657 "configure"
8657 #include "confdefs.h"
8659 #define AUTOCONF_TEST 1
8660 #define USE_SETREUID 1
8661 #include "confdefs.h"
8662 #include "${srcdir-.}/lib/util_sec.c"
8664 if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8666 samba_cv_USE_SETREUID=yes
8668 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8671 samba_cv_USE_SETREUID=no
8678 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
8679 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
8680 seteuid=yes;cat >> confdefs.h <<\EOF
8681 #define USE_SETREUID 1
8687 if test $seteuid = no; then
8688 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
8689 echo "configure:8690: checking for seteuid" >&5
8690 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8694 if test "$cross_compiling" = yes; then
8695 samba_cv_USE_SETEUID=cross
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8701 #define AUTOCONF_TEST 1
8702 #define USE_SETEUID 1
8703 #include "confdefs.h"
8704 #include "${srcdir-.}/lib/util_sec.c"
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8708 samba_cv_USE_SETEUID=yes
8710 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8713 samba_cv_USE_SETEUID=no
8720 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
8721 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
8722 seteuid=yes;cat >> confdefs.h <<\EOF
8723 #define USE_SETEUID 1
8729 if test $seteuid = no; then
8730 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
8731 echo "configure:8732: checking for setuidx" >&5
8732 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8736 if test "$cross_compiling" = yes; then
8737 samba_cv_USE_SETUIDX=cross
8739 cat > conftest.$ac_ext <<EOF
8740 #line 8741 "configure"
8741 #include "confdefs.h"
8743 #define AUTOCONF_TEST 1
8744 #define USE_SETUIDX 1
8745 #include "confdefs.h"
8746 #include "${srcdir-.}/lib/util_sec.c"
8748 if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8750 samba_cv_USE_SETUIDX=yes
8752 echo "configure: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8755 samba_cv_USE_SETUIDX=no
8762 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
8763 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
8764 seteuid=yes;cat >> confdefs.h <<\EOF
8765 #define USE_SETUIDX 1
8772 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8773 echo "configure:8774: checking for shared mmap" >&5
8774 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8775 echo $ac_n "(cached) $ac_c" 1>&6
8778 if test "$cross_compiling" = yes; then
8779 samba_cv_HAVE_SHARED_MMAP=cross
8781 cat > conftest.$ac_ext <<EOF
8782 #line 8783 "configure"
8783 #include "confdefs.h"
8784 #include "${srcdir-.}/tests/shared_mmap.c"
8786 if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8788 samba_cv_HAVE_SHARED_MMAP=yes
8790 echo "configure: failed program was:" >&5
8791 cat conftest.$ac_ext >&5
8793 samba_cv_HAVE_SHARED_MMAP=no
8800 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
8801 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
8802 cat >> confdefs.h <<\EOF
8803 #define HAVE_SHARED_MMAP 1
8806 cat >> confdefs.h <<\EOF
8812 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
8813 echo "configure:8814: checking for ftruncate needs root" >&5
8814 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
8815 echo $ac_n "(cached) $ac_c" 1>&6
8818 if test "$cross_compiling" = yes; then
8819 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
8821 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8824 #include "${srcdir-.}/tests/ftruncroot.c"
8826 if { (eval echo configure:8827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8828 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
8830 echo "configure: failed program was:" >&5
8831 cat conftest.$ac_ext >&5
8833 samba_cv_FTRUNCATE_NEEDS_ROOT=no
8840 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
8841 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
8842 cat >> confdefs.h <<\EOF
8843 #define FTRUNCATE_NEEDS_ROOT 1
8848 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
8849 echo "configure:8850: checking for fcntl locking" >&5
8850 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8854 if test "$cross_compiling" = yes; then
8855 samba_cv_HAVE_FCNTL_LOCK=cross
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8860 #include "${srcdir-.}/tests/fcntl_lock.c"
8862 if { (eval echo configure:8863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8864 samba_cv_HAVE_FCNTL_LOCK=yes
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8869 samba_cv_HAVE_FCNTL_LOCK=no
8876 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8877 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
8878 cat >> confdefs.h <<\EOF
8879 #define HAVE_FCNTL_LOCK 1
8884 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
8885 echo "configure:8886: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
8886 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
8887 echo $ac_n "(cached) $ac_c" 1>&6
8890 if test "$cross_compiling" = yes; then
8891 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 #include "${srcdir-.}/tests/fcntl_lock64.c"
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8900 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8905 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
8912 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
8913 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
8914 cat >> confdefs.h <<\EOF
8915 #define HAVE_BROKEN_FCNTL64_LOCKS 1
8922 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8923 echo "configure:8924: checking for 64 bit fcntl locking" >&5
8924 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8928 if test "$cross_compiling" = yes; then
8929 samba_cv_HAVE_STRUCT_FLOCK64=cross
8931 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8935 #if defined(HAVE_UNISTD_H)
8945 #ifdef HAVE_SYS_FCNTL_H
8946 #include <sys/fcntl.h>
8948 main() { struct flock64 fl64;
8949 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8956 if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8958 samba_cv_HAVE_STRUCT_FLOCK64=yes
8960 echo "configure: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8963 samba_cv_HAVE_STRUCT_FLOCK64=no
8970 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8972 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
8973 cat >> confdefs.h <<\EOF
8974 #define HAVE_STRUCT_FLOCK64 1
8980 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8981 echo "configure:8982: checking for sysv ipc" >&5
8982 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8983 echo $ac_n "(cached) $ac_c" 1>&6
8986 if test "$cross_compiling" = yes; then
8987 samba_cv_HAVE_SYSV_IPC=cross
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 #include "${srcdir-.}/tests/sysv_ipc.c"
8994 if { (eval echo configure:8995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8996 samba_cv_HAVE_SYSV_IPC=yes
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9001 samba_cv_HAVE_SYSV_IPC=no
9008 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
9009 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
9010 cat >> confdefs.h <<\EOF
9011 #define HAVE_SYSV_IPC 1
9016 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
9017 echo "configure:9018: checking for a crypt that needs truncated salt" >&5
9018 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
9019 echo $ac_n "(cached) $ac_c" 1>&6
9022 if test "$cross_compiling" = yes; then
9023 samba_cv_HAVE_TRUNCATED_SALT=cross
9025 cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 #include "${srcdir-.}/tests/crypttest.c"
9030 if { (eval echo configure:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9032 samba_cv_HAVE_TRUNCATED_SALT=no
9034 echo "configure: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9037 samba_cv_HAVE_TRUNCATED_SALT=yes
9044 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
9045 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
9046 cat >> confdefs.h <<\EOF
9047 #define HAVE_TRUNCATED_SALT 1
9052 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
9053 echo "configure:9054: checking for broken nisplus include files" >&5
9054 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 #include <sys/acl.h>
9062 #if defined(HAVE_RPCSVC_NIS_H)
9063 #include <rpcsvc/nis.h>
9069 if { (eval echo configure:9070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
9081 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
9082 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
9083 cat >> confdefs.h <<\EOF
9084 #define BROKEN_NISPLUS_INCLUDE_FILES 1
9090 #################################################
9091 # check for smbwrapper support
9092 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
9093 echo "configure:9094: checking whether to use smbwrapper" >&5
9094 # Check whether --with-smbwrapper or --without-smbwrapper was given.
9095 if test "${with_smbwrapper+set}" = set; then
9096 withval="$with_smbwrapper"
9099 echo "$ac_t""yes" 1>&6
9100 cat >> confdefs.h <<\EOF
9101 #define WITH_SMBWRAPPER 1
9104 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
9106 if test x$ATTEMPT_WRAP32_BUILD = x; then
9109 WRAP32=bin/smbwrapper.32.$SHLIBEXT
9112 # Conditions under which smbwrapper should not be built.
9114 if test x$PICFLAG = x; then
9115 echo No support for PIC code - disabling smbwrapper and smbsh
9118 elif test x$ac_cv_func_syscall = xno; then
9119 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
9125 echo "$ac_t""no" 1>&6
9129 echo "$ac_t""no" 1>&6
9134 #################################################
9135 # check for the AFS filesystem
9136 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
9137 echo "configure:9138: checking whether to use AFS" >&5
9138 # Check whether --with-afs or --without-afs was given.
9139 if test "${with_afs+set}" = set; then
9143 echo "$ac_t""yes" 1>&6
9144 cat >> confdefs.h <<\EOF
9150 echo "$ac_t""no" 1>&6
9154 echo "$ac_t""no" 1>&6
9160 #################################################
9161 # check for the DFS auth system
9162 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
9163 echo "configure:9164: checking whether to use DFS auth" >&5
9164 # Check whether --with-dfs or --without-dfs was given.
9165 if test "${with_dfs+set}" = set; then
9169 echo "$ac_t""yes" 1>&6
9170 cat >> confdefs.h <<\EOF
9176 echo "$ac_t""no" 1>&6
9180 echo "$ac_t""no" 1>&6
9185 #################################################
9186 # check for Kerberos IV auth system
9187 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
9188 echo "configure:9189: checking whether to use Kerberos IV" >&5
9189 # Check whether --with-krb4 or --without-krb4 was given.
9190 if test "${with_krb4+set}" = set; then
9191 withval="$with_krb4"
9192 echo "$ac_t""yes" 1>&6
9193 cat >> confdefs.h <<\EOF
9197 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
9198 echo "configure:9199: checking for dn_expand in -lresolv" >&5
9199 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
9200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9203 ac_save_LIBS="$LIBS"
9204 LIBS="-lresolv $LIBS"
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 /* Override any gcc2 internal prototype to avoid an error. */
9209 /* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9217 if { (eval echo configure:9218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9219 eval "ac_cv_lib_$ac_lib_var=yes"
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9224 eval "ac_cv_lib_$ac_lib_var=no"
9227 LIBS="$ac_save_LIBS"
9230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9231 echo "$ac_t""yes" 1>&6
9232 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9234 cat >> confdefs.h <<EOF
9235 #define $ac_tr_lib 1
9238 LIBS="-lresolv $LIBS"
9241 echo "$ac_t""no" 1>&6
9244 LIBS="$LIBS -lkrb -ldes"
9245 CFLAGS="$CFLAGS -I$withval/include"
9246 LDFLAGS="$LDFLAGS -L$withval/lib"
9248 echo "$ac_t""no" 1>&6
9253 #################################################
9254 # check for Kerberos 5 auth system
9255 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
9256 echo "configure:9257: checking whether to use Kerberos 5" >&5
9257 # Check whether --with-krb5 or --without-krb5 was given.
9258 if test "${with_krb5+set}" = set; then
9259 withval="$with_krb5"
9260 echo "$ac_t""yes" 1>&6
9261 cat >> confdefs.h <<\EOF
9265 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
9266 CFLAGS="$CFLAGS -I$withval/include"
9267 LDFLAGS="$LDFLAGS -L$withval/lib"
9269 echo "$ac_t""no" 1>&6
9274 #################################################
9275 # check for automount support
9276 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
9277 echo "configure:9278: checking whether to use AUTOMOUNT" >&5
9278 # Check whether --with-automount or --without-automount was given.
9279 if test "${with_automount+set}" = set; then
9280 withval="$with_automount"
9283 echo "$ac_t""yes" 1>&6
9284 cat >> confdefs.h <<\EOF
9285 #define WITH_AUTOMOUNT 1
9290 echo "$ac_t""no" 1>&6
9294 echo "$ac_t""no" 1>&6
9299 #################################################
9300 # check for smbmount support
9301 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
9302 echo "configure:9303: checking whether to use SMBMOUNT" >&5
9303 # Check whether --with-smbmount or --without-smbmount was given.
9304 if test "${with_smbmount+set}" = set; then
9305 withval="$with_smbmount"
9308 echo "$ac_t""yes" 1>&6
9309 cat >> confdefs.h <<\EOF
9310 #define WITH_SMBMOUNT 1
9313 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
9316 echo "$ac_t""no" 1>&6
9321 echo "$ac_t""no" 1>&6
9328 #################################################
9329 # check for a PAM password database
9330 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
9331 echo "configure:9332: checking whether to use PAM password database" >&5
9332 # Check whether --with-pam or --without-pam was given.
9333 if test "${with_pam+set}" = set; then
9337 echo "$ac_t""yes" 1>&6
9338 cat >> confdefs.h <<\EOF
9345 echo "$ac_t""no" 1>&6
9349 echo "$ac_t""no" 1>&6
9355 #################################################
9356 # check for a LDAP password database
9357 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
9358 echo "configure:9359: checking whether to use LDAP password database" >&5
9359 # Check whether --with-ldap or --without-ldap was given.
9360 if test "${with_ldap+set}" = set; then
9361 withval="$with_ldap"
9364 echo "$ac_t""yes" 1>&6
9365 cat >> confdefs.h <<\EOF
9369 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
9372 echo "$ac_t""no" 1>&6
9376 echo "$ac_t""no" 1>&6
9381 #################################################
9382 # check for a NISPLUS password database
9383 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
9384 echo "configure:9385: checking whether to use NISPLUS password database" >&5
9385 # Check whether --with-nisplus or --without-nisplus was given.
9386 if test "${with_nisplus+set}" = set; then
9387 withval="$with_nisplus"
9390 echo "$ac_t""yes" 1>&6
9391 cat >> confdefs.h <<\EOF
9392 #define WITH_NISPLUS 1
9397 echo "$ac_t""no" 1>&6
9401 echo "$ac_t""no" 1>&6
9406 #################################################
9407 # check for a NISPLUS_HOME support
9408 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
9409 echo "configure:9410: checking whether to use NISPLUS_HOME" >&5
9410 # Check whether --with-nisplus-home or --without-nisplus-home was given.
9411 if test "${with_nisplus_home+set}" = set; then
9412 withval="$with_nisplus_home"
9415 echo "$ac_t""yes" 1>&6
9416 cat >> confdefs.h <<\EOF
9417 #define WITH_NISPLUS_HOME 1
9422 echo "$ac_t""no" 1>&6
9426 echo "$ac_t""no" 1>&6
9431 #################################################
9432 # check for the secure socket layer
9433 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
9434 echo "configure:9435: checking whether to use SSL" >&5
9435 # Check whether --with-ssl or --without-ssl was given.
9436 if test "${with_ssl+set}" = set; then
9440 echo "$ac_t""yes" 1>&6
9441 cat >> confdefs.h <<\EOF
9445 withval="/usr/local/ssl" # default
9447 if test "${with_sslinc+set}" = set; then
9449 withval="$with_sslinc"
9452 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
9453 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
9454 LIBS="-lssl -lcrypto $LIBS"
9455 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
9458 CFLAGS="-I${withval}/include $CFLAGS"
9459 LIBS="-lssl -lcrypto $LIBS"
9460 LDFLAGS="-L${withval}/lib $LDFLAGS"
9466 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
9467 LIBS="-lssl -lcrypto $LIBS"
9468 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
9472 if test ! -d ${withval}; then
9473 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
9477 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
9481 echo "$ac_t""no" 1>&6
9485 echo "$ac_t""no" 1>&6
9490 #################################################
9491 # check for syslog logging
9492 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
9493 echo "configure:9494: checking whether to use syslog logging" >&5
9494 # Check whether --with-syslog or --without-syslog was given.
9495 if test "${with_syslog+set}" = set; then
9496 withval="$with_syslog"
9499 echo "$ac_t""yes" 1>&6
9500 cat >> confdefs.h <<\EOF
9501 #define WITH_SYSLOG 1
9506 echo "$ac_t""no" 1>&6
9510 echo "$ac_t""no" 1>&6
9515 #################################################
9516 # check for a shared memory profiling support
9517 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
9518 echo "configure:9519: checking whether to use profiling" >&5
9519 # Check whether --with-profile or --without-profile was given.
9520 if test "${with_profile+set}" = set; then
9521 withval="$with_profile"
9524 echo "$ac_t""yes" 1>&6
9525 cat >> confdefs.h <<\EOF
9526 #define WITH_PROFILE 1
9531 echo "$ac_t""no" 1>&6
9535 echo "$ac_t""no" 1>&6
9541 #################################################
9542 # check for experimental netatalk resource fork support
9543 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
9544 echo "configure:9545: checking whether to support netatalk" >&5
9545 # Check whether --with-netatalk or --without-netatalk was given.
9546 if test "${with_netatalk+set}" = set; then
9547 withval="$with_netatalk"
9550 echo "$ac_t""yes" 1>&6
9551 cat >> confdefs.h <<\EOF
9552 #define WITH_NETATALK 1
9557 echo "$ac_t""no" 1>&6
9561 echo "$ac_t""no" 1>&6
9566 #################################################
9567 # check for experimental disk-quotas support
9568 QUOTAOBJS=noquotas.o
9570 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
9571 echo "configure:9572: checking whether to support disk-quotas" >&5
9572 # Check whether --with-quotas or --without-quotas was given.
9573 if test "${with_quotas+set}" = set; then
9574 withval="$with_quotas"
9577 echo "$ac_t""yes" 1>&6
9581 echo "$ac_t""no" 1>&6
9585 echo "$ac_t""no" 1>&6
9591 #################################################
9592 # set private directory location
9593 # Check whether --with-privatedir or --without-privatedir was given.
9594 if test "${with_privatedir+set}" = set; then
9595 withval="$with_privatedir"
9599 # Just in case anybody calls it without argument
9601 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
9602 privatedir='${prefix}/private'
9605 privatedir="$withval"
9610 privatedir='${prefix}/private'
9616 #################################################
9617 # set lock directory location
9618 # Check whether --with-lockdir or --without-lockdir was given.
9619 if test "${with_lockdir+set}" = set; then
9620 withval="$with_lockdir"
9624 # Just in case anybody calls it without argument
9626 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
9627 lockdir='$(VARDIR)/locks'
9635 lockdir='$(VARDIR)/locks'
9641 #################################################
9642 # set SWAT directory location
9643 # Check whether --with-swatdir or --without-swatdir was given.
9644 if test "${with_swatdir+set}" = set; then
9645 withval="$with_swatdir"
9649 # Just in case anybody does it
9651 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
9652 swatdir='${prefix}/swat'
9660 swatdir='${prefix}/swat'
9666 #################################################
9667 # these tests are taken from the GNU fileutils package
9668 echo "checking how to get filesystem space usage" 1>&6
9669 echo "configure:9670: checking how to get filesystem space usage" >&5
9672 # Test for statvfs64.
9673 if test $space = no; then
9675 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
9676 echo "configure:9677: checking statvfs64 function (SVR4)" >&5
9677 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
9678 echo $ac_n "(cached) $ac_c" 1>&6
9680 if test "$cross_compiling" = yes; then
9681 fu_cv_sys_stat_statvfs64=cross
9683 cat > conftest.$ac_ext <<EOF
9684 #line 9685 "configure"
9685 #include "confdefs.h"
9687 #if defined(HAVE_UNISTD_H)
9690 #include <sys/types.h>
9691 #include <sys/statvfs.h>
9694 struct statvfs64 fsd;
9695 exit (statvfs64 (".", &fsd));
9698 if { (eval echo configure:9699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9700 fu_cv_sys_stat_statvfs64=yes
9702 echo "configure: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9705 fu_cv_sys_stat_statvfs64=no
9712 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
9713 if test $fu_cv_sys_stat_statvfs64 = yes; then
9715 cat >> confdefs.h <<\EOF
9716 #define STAT_STATVFS64 1
9722 # Perform only the link test since it seems there are no variants of the
9723 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
9724 # because that got a false positive on SCO OSR5. Adding the declaration
9725 # of a `struct statvfs' causes this test to fail (as it should) on such
9726 # systems. That system is reported to work fine with STAT_STATFS4 which
9727 # is what it gets when this test fails.
9728 if test $space = no; then
9730 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
9731 echo "configure:9732: checking statvfs function (SVR4)" >&5
9732 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9735 cat > conftest.$ac_ext <<EOF
9736 #line 9737 "configure"
9737 #include "confdefs.h"
9738 #include <sys/types.h>
9739 #include <sys/statvfs.h>
9741 struct statvfs fsd; statvfs (0, &fsd);
9744 if { (eval echo configure:9745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9746 fu_cv_sys_stat_statvfs=yes
9748 echo "configure: failed program was:" >&5
9749 cat conftest.$ac_ext >&5
9751 fu_cv_sys_stat_statvfs=no
9756 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
9757 if test $fu_cv_sys_stat_statvfs = yes; then
9759 cat >> confdefs.h <<\EOF
9760 #define STAT_STATVFS 1
9766 if test $space = no; then
9767 # DEC Alpha running OSF/1
9768 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
9769 echo "configure:9770: checking for 3-argument statfs function (DEC OSF/1)" >&5
9770 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
9773 if test "$cross_compiling" = yes; then
9774 fu_cv_sys_stat_statfs3_osf1=no
9776 cat > conftest.$ac_ext <<EOF
9777 #line 9778 "configure"
9778 #include "confdefs.h"
9780 #include <sys/param.h>
9781 #include <sys/types.h>
9782 #include <sys/mount.h>
9787 exit (statfs (".", &fsd, sizeof (struct statfs)));
9790 if { (eval echo configure:9791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9792 fu_cv_sys_stat_statfs3_osf1=yes
9794 echo "configure: failed program was:" >&5
9795 cat conftest.$ac_ext >&5
9797 fu_cv_sys_stat_statfs3_osf1=no
9804 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
9805 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9807 cat >> confdefs.h <<\EOF
9808 #define STAT_STATFS3_OSF1 1
9814 if test $space = no; then
9816 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
9817 echo "configure:9818: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9818 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
9819 echo $ac_n "(cached) $ac_c" 1>&6
9821 if test "$cross_compiling" = yes; then
9822 fu_cv_sys_stat_statfs2_bsize=no
9824 cat > conftest.$ac_ext <<EOF
9825 #line 9826 "configure"
9826 #include "confdefs.h"
9828 #ifdef HAVE_SYS_PARAM_H
9829 #include <sys/param.h>
9831 #ifdef HAVE_SYS_MOUNT_H
9832 #include <sys/mount.h>
9834 #ifdef HAVE_SYS_VFS_H
9835 #include <sys/vfs.h>
9841 exit (statfs (".", &fsd));
9844 if { (eval echo configure:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9846 fu_cv_sys_stat_statfs2_bsize=yes
9848 echo "configure: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9851 fu_cv_sys_stat_statfs2_bsize=no
9858 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
9859 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9861 cat >> confdefs.h <<\EOF
9862 #define STAT_STATFS2_BSIZE 1
9868 if test $space = no; then
9870 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
9871 echo "configure:9872: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9872 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9875 if test "$cross_compiling" = yes; then
9876 fu_cv_sys_stat_statfs4=no
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include <sys/types.h>
9882 #include <sys/statfs.h>
9886 exit (statfs (".", &fsd, sizeof fsd, 0));
9889 if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9891 fu_cv_sys_stat_statfs4=yes
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9896 fu_cv_sys_stat_statfs4=no
9903 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
9904 if test $fu_cv_sys_stat_statfs4 = yes; then
9906 cat >> confdefs.h <<\EOF
9907 #define STAT_STATFS4 1
9913 if test $space = no; then
9915 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
9916 echo "configure:9917: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9917 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
9918 echo $ac_n "(cached) $ac_c" 1>&6
9920 if test "$cross_compiling" = yes; then
9921 fu_cv_sys_stat_statfs2_fsize=no
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 #include <sys/types.h>
9927 #ifdef HAVE_SYS_PARAM_H
9928 #include <sys/param.h>
9930 #ifdef HAVE_SYS_MOUNT_H
9931 #include <sys/mount.h>
9937 exit (statfs (".", &fsd));
9940 if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9942 fu_cv_sys_stat_statfs2_fsize=yes
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9947 fu_cv_sys_stat_statfs2_fsize=no
9954 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
9955 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9957 cat >> confdefs.h <<\EOF
9958 #define STAT_STATFS2_FSIZE 1
9964 if test $space = no; then
9966 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
9967 echo "configure:9968: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9968 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9971 if test "$cross_compiling" = yes; then
9972 fu_cv_sys_stat_fs_data=no
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 #include <sys/types.h>
9978 #ifdef HAVE_SYS_PARAM_H
9979 #include <sys/param.h>
9981 #ifdef HAVE_SYS_MOUNT_H
9982 #include <sys/mount.h>
9984 #ifdef HAVE_SYS_FS_TYPES_H
9985 #include <sys/fs_types.h>
9990 /* Ultrix's statfs returns 1 for success,
9991 0 for not mounted, -1 for failure. */
9992 exit (statfs (".", &fsd) != 1);
9995 if { (eval echo configure:9996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9997 fu_cv_sys_stat_fs_data=yes
9999 echo "configure: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10002 fu_cv_sys_stat_fs_data=no
10009 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
10010 if test $fu_cv_sys_stat_fs_data = yes; then
10012 cat >> confdefs.h <<\EOF
10013 #define STAT_STATFS2_FS_DATA 1
10020 # As a gating factor for large file support, in order to
10021 # use <4GB files we must have the following minimal support
10023 # long long, and a 64 bit off_t or off64_t.
10024 # If we don't have all of these then disable large
10027 echo "checking if large file support can be enabled"
10028 cat > conftest.$ac_ext <<EOF
10029 #line 10030 "configure"
10030 #include "confdefs.h"
10032 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
10033 #include <sys/types.h>
10042 if { (eval echo configure:10043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10044 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10049 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
10052 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
10054 cat >> confdefs.h <<\EOF
10055 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
10062 echo "checking configure summary"
10063 if test "$cross_compiling" = yes; then
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 #include "${srcdir-.}/tests/summary.c"
10071 if { (eval echo configure:10072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10073 echo "configure OK";
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10078 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
10088 cat > confcache <<\EOF
10089 # This file is a shell script that caches the results of configure
10090 # tests run on this system so they can be shared between configure
10091 # scripts and configure runs. It is not useful on other systems.
10092 # If it contains results you don't want to keep, you may remove or edit it.
10094 # By default, configure uses ./config.cache as the cache file,
10095 # creating it if it does not exist already. You can give configure
10096 # the --cache-file=FILE option to use a different cache file; that is
10097 # what configure does when it calls configure scripts in
10098 # subdirectories, so they share the cache.
10099 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10100 # config.status only pays attention to the cache file if you give it the
10101 # --recheck option to rerun configure.
10104 # The following way of writing the cache mishandles newlines in values,
10105 # but we know of no workaround that is simple, portable, and efficient.
10106 # So, don't put newlines in cache variables' values.
10107 # Ultrix sh set writes to stderr and can't be redirected directly,
10108 # and sets the high bit in the cache file unless we assign to the vars.
10110 case `(ac_space=' '; set) 2>&1` in
10112 # `set' does not quote correctly, so add quotes (double-quote substitution
10113 # turns \\\\ into \\, and sed turns \\ into \).
10115 -e "s/'/'\\\\''/g" \
10116 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10119 # `set' quotes correctly as required by POSIX, so do not add quotes.
10120 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10123 if cmp -s $cache_file confcache; then
10126 if test -w $cache_file; then
10127 echo "updating cache $cache_file"
10128 cat confcache > $cache_file
10130 echo "not updating unwritable cache $cache_file"
10135 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10137 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10138 # Let make expand exec_prefix.
10139 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10141 # Any assignment to VPATH causes Sun make to only execute
10142 # the first set of double-colon rules, so remove it if not needed.
10143 # If there is a colon in the path, we need to keep it.
10144 if test "x$srcdir" = x.; then
10145 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10148 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10150 DEFS=-DHAVE_CONFIG_H
10152 # Without the "./", some shells look in PATH for config.status.
10153 : ${CONFIG_STATUS=./config.status}
10155 echo creating $CONFIG_STATUS
10156 rm -f $CONFIG_STATUS
10157 cat > $CONFIG_STATUS <<EOF
10159 # Generated automatically by configure.
10160 # Run this file to recreate the current configuration.
10161 # This directory was configured as follows,
10162 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10164 # $0 $ac_configure_args
10166 # Compiler output produced by configure, useful for debugging
10167 # configure, is in ./config.log if it exists.
10169 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10172 case "\$ac_option" in
10173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10174 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10175 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10176 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10177 echo "$CONFIG_STATUS generated by autoconf version 2.12"
10179 -help | --help | --hel | --he | --h)
10180 echo "\$ac_cs_usage"; exit 0 ;;
10181 *) echo "\$ac_cs_usage"; exit 1 ;;
10185 ac_given_srcdir=$srcdir
10186 ac_given_INSTALL="$INSTALL"
10188 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10190 cat >> $CONFIG_STATUS <<EOF
10192 # Protect against being on the right side of a sed subst in config.status.
10193 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10194 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10197 s%@CFLAGS@%$CFLAGS%g
10198 s%@CPPFLAGS@%$CPPFLAGS%g
10199 s%@CXXFLAGS@%$CXXFLAGS%g
10201 s%@LDFLAGS@%$LDFLAGS%g
10203 s%@exec_prefix@%$exec_prefix%g
10204 s%@prefix@%$prefix%g
10205 s%@program_transform_name@%$program_transform_name%g
10206 s%@bindir@%$bindir%g
10207 s%@sbindir@%$sbindir%g
10208 s%@libexecdir@%$libexecdir%g
10209 s%@datadir@%$datadir%g
10210 s%@sysconfdir@%$sysconfdir%g
10211 s%@sharedstatedir@%$sharedstatedir%g
10212 s%@localstatedir@%$localstatedir%g
10213 s%@libdir@%$libdir%g
10214 s%@includedir@%$includedir%g
10215 s%@oldincludedir@%$oldincludedir%g
10216 s%@infodir@%$infodir%g
10217 s%@mandir@%$mandir%g
10219 s%@RUNPROG@%$RUNPROG%g
10220 s%@MPROGS@%$MPROGS%g
10221 s%@LDSHFLAGS@%$LDSHFLAGS%g
10222 s%@HOST_OS@%$HOST_OS%g
10224 s%@WRAP32@%$WRAP32%g
10225 s%@PICFLAG@%$PICFLAG%g
10226 s%@SHLIBEXT@%$SHLIBEXT%g
10228 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10229 s%@INSTALL_DATA@%$INSTALL_DATA%g
10231 s%@BROKEN_CC@%$BROKEN_CC%g
10233 s%@host_alias@%$host_alias%g
10234 s%@host_cpu@%$host_cpu%g
10235 s%@host_vendor@%$host_vendor%g
10236 s%@host_os@%$host_os%g
10237 s%@target@%$target%g
10238 s%@target_alias@%$target_alias%g
10239 s%@target_cpu@%$target_cpu%g
10240 s%@target_vendor@%$target_vendor%g
10241 s%@target_os@%$target_os%g
10243 s%@build_alias@%$build_alias%g
10244 s%@build_cpu@%$build_cpu%g
10245 s%@build_vendor@%$build_vendor%g
10246 s%@build_os@%$build_os%g
10248 s%@AUTOCONF@%$AUTOCONF%g
10249 s%@AUTOHEADER@%$AUTOHEADER%g
10251 s%@LIBOBJS@%$LIBOBJS%g
10253 s%@QUOTAOBJS@%$QUOTAOBJS%g
10254 s%@privatedir@%$privatedir%g
10255 s%@lockdir@%$lockdir%g
10256 s%@swatdir@%$swatdir%g
10257 s%@builddir@%$builddir%g
10262 cat >> $CONFIG_STATUS <<\EOF
10264 # Split the substitutions into bite-sized pieces for seds with
10265 # small command number limits, like on Digital OSF/1 and HP-UX.
10266 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10267 ac_file=1 # Number of current file.
10268 ac_beg=1 # First line for current file.
10269 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10272 while $ac_more_lines; do
10273 if test $ac_beg -gt 1; then
10274 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10276 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10278 if test ! -s conftest.s$ac_file; then
10279 ac_more_lines=false
10280 rm -f conftest.s$ac_file
10282 if test -z "$ac_sed_cmds"; then
10283 ac_sed_cmds="sed -f conftest.s$ac_file"
10285 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10287 ac_file=`expr $ac_file + 1`
10289 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10292 if test -z "$ac_sed_cmds"; then
10297 cat >> $CONFIG_STATUS <<EOF
10299 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
10301 cat >> $CONFIG_STATUS <<\EOF
10302 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10303 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10305 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10306 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10307 *) ac_file_in="${ac_file}.in" ;;
10310 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10312 # Remove last slash and all that follows it. Not all systems have dirname.
10313 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10314 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10315 # The file is in a subdirectory.
10316 test ! -d "$ac_dir" && mkdir "$ac_dir"
10317 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10318 # A "../" for each directory in $ac_dir_suffix.
10319 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10321 ac_dir_suffix= ac_dots=
10324 case "$ac_given_srcdir" in
10326 if test -z "$ac_dots"; then top_srcdir=.
10327 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10328 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10329 *) # Relative path.
10330 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10331 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10334 case "$ac_given_INSTALL" in
10335 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10336 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10339 echo creating "$ac_file"
10341 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10343 *Makefile*) ac_comsub="1i\\
10344 # $configure_input" ;;
10348 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10350 s%@configure_input@%$configure_input%g
10351 s%@srcdir@%$srcdir%g
10352 s%@top_srcdir@%$top_srcdir%g
10353 s%@INSTALL@%$INSTALL%g
10354 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10358 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10359 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10361 # ac_d sets the value in "#define NAME VALUE" lines.
10362 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10363 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10366 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10367 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10368 ac_uB='\([ ]\)%\1#\2define\3'
10371 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10372 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10373 ac_eB='$%\1#\2define\3'
10377 if test "${CONFIG_HEADERS+set}" != set; then
10379 cat >> $CONFIG_STATUS <<EOF
10380 CONFIG_HEADERS="include/config.h"
10382 cat >> $CONFIG_STATUS <<\EOF
10384 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10387 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10388 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10389 *) ac_file_in="${ac_file}.in" ;;
10392 echo creating $ac_file
10394 rm -f conftest.frag conftest.in conftest.out
10395 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10396 cat $ac_file_inputs > conftest.in
10400 # Transform confdefs.h into a sed script conftest.vals that substitutes
10401 # the proper values into config.h.in to produce config.h. And first:
10402 # Protect against being on the right side of a sed subst in config.status.
10403 # Protect against being in an unquoted here document in config.status.
10404 rm -f conftest.vals
10405 cat > conftest.hdr <<\EOF
10408 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10412 sed -n -f conftest.hdr confdefs.h > conftest.vals
10415 # This sed command replaces #undef with comments. This is necessary, for
10416 # example, in the case of _POSIX_SOURCE, which is predefined and required
10417 # on some systems where configure will not decide to define it.
10418 cat >> conftest.vals <<\EOF
10419 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10422 # Break up conftest.vals because some shells have a limit on
10423 # the size of here documents, and old seds have small limits too.
10425 rm -f conftest.tail
10428 ac_lines=`grep -c . conftest.vals`
10429 # grep -c gives empty output for an empty file on some AIX systems.
10430 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10431 # Write a limited-size here document to conftest.frag.
10432 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10433 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10435 sed -f conftest.frag conftest.in > conftest.out
10437 mv conftest.out conftest.in
10438 ' >> $CONFIG_STATUS
10439 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10440 rm -f conftest.vals
10441 mv conftest.tail conftest.vals
10443 rm -f conftest.vals
10445 cat >> $CONFIG_STATUS <<\EOF
10446 rm -f conftest.frag conftest.h
10447 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10448 cat conftest.in >> conftest.h
10450 if cmp -s $ac_file conftest.h 2>/dev/null; then
10451 echo "$ac_file is unchanged"
10454 # Remove last slash and all that follows it. Not all systems have dirname.
10455 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10456 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10457 # The file is in a subdirectory.
10458 test ! -d "$ac_dir" && mkdir "$ac_dir"
10461 mv conftest.h $ac_file
10466 cat >> $CONFIG_STATUS <<EOF
10469 cat >> $CONFIG_STATUS <<\EOF
10473 chmod +x $CONFIG_STATUS
10474 rm -fr confdefs* $ac_clean_files
10475 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1