This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[jra/samba/.git] / source3 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="include/includes.h"
271 ac_default_prefix=/usr/local/samba
272 # Factoring default headers for most tests.
273 ac_includes_default="\
274 #include <stdio.h>
275 #if HAVE_SYS_TYPES_H
276 # include <sys/types.h>
277 #endif
278 #if HAVE_SYS_STAT_H
279 # include <sys/stat.h>
280 #endif
281 #if STDC_HEADERS
282 # include <stdlib.h>
283 # include <stddef.h>
284 #else
285 # if HAVE_STDLIB_H
286 #  include <stdlib.h>
287 # endif
288 #endif
289 #if HAVE_STRING_H
290 # if !STDC_HEADERS && HAVE_MEMORY_H
291 #  include <memory.h>
292 # endif
293 # include <string.h>
294 #endif
295 #if HAVE_STRINGS_H
296 # include <strings.h>
297 #endif
298 #if HAVE_INTTYPES_H
299 # include <inttypes.h>
300 #else
301 # if HAVE_STDINT_H
302 #  include <stdint.h>
303 # endif
304 #endif
305 #if HAVE_UNISTD_H
306 # include <unistd.h>
307 #endif"
308
309 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configdir lockdir piddir logfilebase privatedir swatdir RUNPROG MPROGS LDSHFLAGS SONAMEFLAG SHLD HOST_OS PAM_MOD WRAP WRAP32 WRAPPROG PICFLAG PICSUFFIX POBAD_CC SHLIBEXT LIBSMBCLIENT_SHARED LIBSMBCLIENT PRINTLIBS AUTHLIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS ROFF DYNEXP MYSQL_CONFIG MYSQL_CFLAGS MYSQL_LIBS XML2_CONFIG XML_CFLAGS XML_LIBS QUOTAOBJS manlangs WINBIND_TARGETS WINBIND_STARGETS WINBIND_LTARGETS WINBIND_PAM_TARGETS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS BUILD_POPT FLAGS1 PYTHON builddir LTLIBOBJS'
310 ac_subst_files=''
311
312 # Initialize some variables set by options.
313 ac_init_help=
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
317 cache_file=/dev/null
318 exec_prefix=NONE
319 no_create=
320 no_recursion=
321 prefix=NONE
322 program_prefix=NONE
323 program_suffix=NONE
324 program_transform_name=s,x,x,
325 silent=
326 site=
327 srcdir=
328 verbose=
329 x_includes=NONE
330 x_libraries=NONE
331
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
349
350 ac_prev=
351 for ac_option
352 do
353   # If the previous option needs an argument, assign it.
354   if test -n "$ac_prev"; then
355     eval "$ac_prev=\$ac_option"
356     ac_prev=
357     continue
358   fi
359
360   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361
362   # Accept the important Cygnus configure options, so we can diagnose typos.
363
364   case $ac_option in
365
366   -bindir | --bindir | --bindi | --bind | --bin | --bi)
367     ac_prev=bindir ;;
368   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369     bindir=$ac_optarg ;;
370
371   -build | --build | --buil | --bui | --bu)
372     ac_prev=build_alias ;;
373   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374     build_alias=$ac_optarg ;;
375
376   -cache-file | --cache-file | --cache-fil | --cache-fi \
377   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378     ac_prev=cache_file ;;
379   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381     cache_file=$ac_optarg ;;
382
383   --config-cache | -C)
384     cache_file=config.cache ;;
385
386   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387     ac_prev=datadir ;;
388   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389   | --da=*)
390     datadir=$ac_optarg ;;
391
392   -disable-* | --disable-*)
393     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394     # Reject names that are not valid shell variable names.
395     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397    { (exit 1); exit 1; }; }
398     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399     eval "enable_$ac_feature=no" ;;
400
401   -enable-* | --enable-*)
402     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403     # Reject names that are not valid shell variable names.
404     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406    { (exit 1); exit 1; }; }
407     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408     case $ac_option in
409       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
410       *) ac_optarg=yes ;;
411     esac
412     eval "enable_$ac_feature='$ac_optarg'" ;;
413
414   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416   | --exec | --exe | --ex)
417     ac_prev=exec_prefix ;;
418   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420   | --exec=* | --exe=* | --ex=*)
421     exec_prefix=$ac_optarg ;;
422
423   -gas | --gas | --ga | --g)
424     # Obsolete; use --with-gas.
425     with_gas=yes ;;
426
427   -help | --help | --hel | --he | -h)
428     ac_init_help=long ;;
429   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430     ac_init_help=recursive ;;
431   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432     ac_init_help=short ;;
433
434   -host | --host | --hos | --ho)
435     ac_prev=host_alias ;;
436   -host=* | --host=* | --hos=* | --ho=*)
437     host_alias=$ac_optarg ;;
438
439   -includedir | --includedir | --includedi | --included | --include \
440   | --includ | --inclu | --incl | --inc)
441     ac_prev=includedir ;;
442   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443   | --includ=* | --inclu=* | --incl=* | --inc=*)
444     includedir=$ac_optarg ;;
445
446   -infodir | --infodir | --infodi | --infod | --info | --inf)
447     ac_prev=infodir ;;
448   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449     infodir=$ac_optarg ;;
450
451   -libdir | --libdir | --libdi | --libd)
452     ac_prev=libdir ;;
453   -libdir=* | --libdir=* | --libdi=* | --libd=*)
454     libdir=$ac_optarg ;;
455
456   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457   | --libexe | --libex | --libe)
458     ac_prev=libexecdir ;;
459   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460   | --libexe=* | --libex=* | --libe=*)
461     libexecdir=$ac_optarg ;;
462
463   -localstatedir | --localstatedir | --localstatedi | --localstated \
464   | --localstate | --localstat | --localsta | --localst \
465   | --locals | --local | --loca | --loc | --lo)
466     ac_prev=localstatedir ;;
467   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470     localstatedir=$ac_optarg ;;
471
472   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473     ac_prev=mandir ;;
474   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
475     mandir=$ac_optarg ;;
476
477   -nfp | --nfp | --nf)
478     # Obsolete; use --without-fp.
479     with_fp=no ;;
480
481   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482   | --no-cr | --no-c | -n)
483     no_create=yes ;;
484
485   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
487     no_recursion=yes ;;
488
489   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491   | --oldin | --oldi | --old | --ol | --o)
492     ac_prev=oldincludedir ;;
493   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496     oldincludedir=$ac_optarg ;;
497
498   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499     ac_prev=prefix ;;
500   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
501     prefix=$ac_optarg ;;
502
503   -program-prefix | --program-prefix | --program-prefi | --program-pref \
504   | --program-pre | --program-pr | --program-p)
505     ac_prev=program_prefix ;;
506   -program-prefix=* | --program-prefix=* | --program-prefi=* \
507   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508     program_prefix=$ac_optarg ;;
509
510   -program-suffix | --program-suffix | --program-suffi | --program-suff \
511   | --program-suf | --program-su | --program-s)
512     ac_prev=program_suffix ;;
513   -program-suffix=* | --program-suffix=* | --program-suffi=* \
514   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515     program_suffix=$ac_optarg ;;
516
517   -program-transform-name | --program-transform-name \
518   | --program-transform-nam | --program-transform-na \
519   | --program-transform-n | --program-transform- \
520   | --program-transform | --program-transfor \
521   | --program-transfo | --program-transf \
522   | --program-trans | --program-tran \
523   | --progr-tra | --program-tr | --program-t)
524     ac_prev=program_transform_name ;;
525   -program-transform-name=* | --program-transform-name=* \
526   | --program-transform-nam=* | --program-transform-na=* \
527   | --program-transform-n=* | --program-transform-=* \
528   | --program-transform=* | --program-transfor=* \
529   | --program-transfo=* | --program-transf=* \
530   | --program-trans=* | --program-tran=* \
531   | --progr-tra=* | --program-tr=* | --program-t=*)
532     program_transform_name=$ac_optarg ;;
533
534   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535   | -silent | --silent | --silen | --sile | --sil)
536     silent=yes ;;
537
538   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539     ac_prev=sbindir ;;
540   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541   | --sbi=* | --sb=*)
542     sbindir=$ac_optarg ;;
543
544   -sharedstatedir | --sharedstatedir | --sharedstatedi \
545   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546   | --sharedst | --shareds | --shared | --share | --shar \
547   | --sha | --sh)
548     ac_prev=sharedstatedir ;;
549   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552   | --sha=* | --sh=*)
553     sharedstatedir=$ac_optarg ;;
554
555   -site | --site | --sit)
556     ac_prev=site ;;
557   -site=* | --site=* | --sit=*)
558     site=$ac_optarg ;;
559
560   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561     ac_prev=srcdir ;;
562   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
563     srcdir=$ac_optarg ;;
564
565   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566   | --syscon | --sysco | --sysc | --sys | --sy)
567     ac_prev=sysconfdir ;;
568   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570     sysconfdir=$ac_optarg ;;
571
572   -target | --target | --targe | --targ | --tar | --ta | --t)
573     ac_prev=target_alias ;;
574   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575     target_alias=$ac_optarg ;;
576
577   -v | -verbose | --verbose | --verbos | --verbo | --verb)
578     verbose=yes ;;
579
580   -version | --version | --versio | --versi | --vers | -V)
581     ac_init_version=: ;;
582
583   -with-* | --with-*)
584     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585     # Reject names that are not valid shell variable names.
586     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587       { echo "$as_me: error: invalid package name: $ac_package" >&2
588    { (exit 1); exit 1; }; }
589     ac_package=`echo $ac_package| sed 's/-/_/g'`
590     case $ac_option in
591       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592       *) ac_optarg=yes ;;
593     esac
594     eval "with_$ac_package='$ac_optarg'" ;;
595
596   -without-* | --without-*)
597     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598     # Reject names that are not valid shell variable names.
599     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600       { echo "$as_me: error: invalid package name: $ac_package" >&2
601    { (exit 1); exit 1; }; }
602     ac_package=`echo $ac_package | sed 's/-/_/g'`
603     eval "with_$ac_package=no" ;;
604
605   --x)
606     # Obsolete; use --with-x.
607     with_x=yes ;;
608
609   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610   | --x-incl | --x-inc | --x-in | --x-i)
611     ac_prev=x_includes ;;
612   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614     x_includes=$ac_optarg ;;
615
616   -x-libraries | --x-libraries | --x-librarie | --x-librari \
617   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618     ac_prev=x_libraries ;;
619   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621     x_libraries=$ac_optarg ;;
622
623   -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625    { (exit 1); exit 1; }; }
626     ;;
627
628   *=*)
629     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630     # Reject names that are not valid shell variable names.
631     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633    { (exit 1); exit 1; }; }
634     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635     eval "$ac_envvar='$ac_optarg'"
636     export $ac_envvar ;;
637
638   *)
639     # FIXME: should be removed in autoconf 3.0.
640     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
644     ;;
645
646   esac
647 done
648
649 if test -n "$ac_prev"; then
650   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651   { echo "$as_me: error: missing argument to $ac_option" >&2
652    { (exit 1); exit 1; }; }
653 fi
654
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668               localstatedir libdir includedir oldincludedir infodir mandir
669 do
670   eval ac_val=$`echo $ac_var`
671   case $ac_val in
672     [\\/$]* | ?:[\\/]* ) ;;
673     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674    { (exit 1); exit 1; }; };;
675   esac
676 done
677
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
681 build=$build_alias
682 host=$host_alias
683 target=$target_alias
684
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687   if test "x$build_alias" = x; then
688     cross_compiling=maybe
689     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690     If a cross compiler is detected then cross compile mode will be used." >&2
691   elif test "x$build_alias" != "x$host_alias"; then
692     cross_compiling=yes
693   fi
694 fi
695
696 ac_tool_prefix=
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698
699 test "$silent" = yes && exec 6>/dev/null
700
701
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704   ac_srcdir_defaulted=yes
705   # Try the directory containing this script, then its parent.
706   ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708          X"$0" : 'X\(//\)[^/]' \| \
709          X"$0" : 'X\(//\)$' \| \
710          X"$0" : 'X\(/\)' \| \
711          .     : '\(.\)' 2>/dev/null ||
712 echo X"$0" |
713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715           /^X\(\/\/\)$/{ s//\1/; q; }
716           /^X\(\/\).*/{ s//\1/; q; }
717           s/.*/./; q'`
718   srcdir=$ac_confdir
719   if test ! -r $srcdir/$ac_unique_file; then
720     srcdir=..
721   fi
722 else
723   ac_srcdir_defaulted=no
724 fi
725 if test ! -r $srcdir/$ac_unique_file; then
726   if test "$ac_srcdir_defaulted" = yes; then
727     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728    { (exit 1); exit 1; }; }
729   else
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731    { (exit 1); exit 1; }; }
732   fi
733 fi
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736    { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
751 ac_env_CC_value=$CC
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775   # Omit some internal or obsolete options to make the list less imposing.
776   # This message is too long to be a string in the A/UX 3.1 sh.
777   cat <<_ACEOF
778 \`configure' configures this package to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE.  See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788   -h, --help              display this help and exit
789       --help=short        display options specific to this package
790       --help=recursive    display the short help of all the included packages
791   -V, --version           display version information and exit
792   -q, --quiet, --silent   do not print \`checking...' messages
793       --cache-file=FILE   cache test results in FILE [disabled]
794   -C, --config-cache      alias for \`--cache-file=config.cache'
795   -n, --no-create         do not create output files
796       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800   cat <<_ACEOF
801 Installation directories:
802   --prefix=PREFIX         install architecture-independent files in PREFIX
803                           [$ac_default_prefix]
804   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
805                           [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815   --bindir=DIR           user executables [EPREFIX/bin]
816   --sbindir=DIR          system admin executables [EPREFIX/sbin]
817   --libexecdir=DIR       program executables [EPREFIX/libexec]
818   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
819   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
820   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
821   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
822   --libdir=DIR           object code libraries [EPREFIX/lib]
823   --includedir=DIR       C header files [PREFIX/include]
824   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
825   --infodir=DIR          info documentation [PREFIX/info]
826   --mandir=DIR           man documentation [PREFIX/man]
827 _ACEOF
828
829   cat <<\_ACEOF
830
831 System types:
832   --build=BUILD     configure for building on BUILD [guessed]
833   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
834   --target=TARGET   configure for building compilers for TARGET [HOST]
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839
840   cat <<\_ACEOF
841
842 Optional Features:
843   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
844   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
845   --enable-debug          Turn on compiler debugging information (default=no)
846   --enable-developer      Turn on developer warnings and debugging (default=no)
847   --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
848   --enable-dmalloc        Enable heap debugging default=no
849   --enable-cups           Turn on CUPS support (default=auto)
850   --disable-mysqltest       Do not try to compile and run a test MYSQL program
851   --disable-xmltest       Do not try to compile and run a test LIBXML program
852
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --with-fhs              Use FHS-compliant paths (default=no)
857   --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
858   --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
859   --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
860   --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
861   --with-configdir=DIR    Where to put configuration files (\$libdir)
862   --with-logfilebase=DIR  Where to put log files (\$(VARDIR))
863   --with-readline=DIR   Look for readline include/libs in DIR (default=auto)
864   --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
865   --with-smbwrapper       Include SMB wrapper support (default=no)
866   --with-afs              Include AFS clear-text auth support (default=no)
867   --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
868    --with-ads  Active Directory support (default yes)
869   --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
870    --with-ldap  LDAP support (default yes)
871   --with-mysql-prefix=PFX   Prefix where MYSQL is installed (optional)
872   --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
873   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
874   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
875   --with-automount        Include AUTOMOUNT support (default=no)
876   --with-smbmount         Include SMBMOUNT (Linux only) support (default=no)
877   --with-pam              Include PAM support (default=no)
878   --with-pam_smbpass      Build a PAM module to allow other applications to use our smbpasswd file (default=no)
879   --with-ldapsam           Include LDAP SAM 2.2 compatible configuration (default=no)
880   --with-tdbsam           Include experimental TDB SAM support (default=no)
881   --with-nisplussam       Include NISPLUS SAM support (default=no)
882   --with-nisplus-home     Include NISPLUS_HOME support (default=no)
883   --with-syslog           Include experimental SYSLOG support (default=no)
884   --with-profiling-data   Include gathering source code profile information (default=no)
885   --with-quotas           Include experimental disk-quota support (default=no)
886   --with-utmp             Include experimental utmp accounting (default=no)
887   --with-manpages-langs={en,ja,pl}  Choose man pages' language(s). (en)
888   --with-libsmbclient     Build the libsmbclient shared library (default=yes)
889   --with-spinlocks        Use spin locks instead of fcntl locks (default=no)
890   --with-acl-support      Include ACL support (default=no)
891   --with-sendfile-support      Check for sendfile support (default=yes)
892   --with-winbind          Build winbind (default, if supported by OS)
893   --with-included-popt    use bundled popt library, not from system
894   --with-python=PYTHONNAME  build Python libraries
895
896 Some influential environment variables:
897   CC          C compiler command
898   CFLAGS      C compiler flags
899   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
900               nonstandard directory <lib dir>
901   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
902               headers in a nonstandard directory <include dir>
903   CPP         C preprocessor
904
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
907
908 _ACEOF
909 fi
910
911 if test "$ac_init_help" = "recursive"; then
912   # If there are subdirs, report their specific --help.
913   ac_popdir=`pwd`
914   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915     test -d $ac_dir || continue
916     ac_builddir=.
917
918 if test "$ac_dir" != .; then
919   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920   # A "../" for each directory in $ac_dir_suffix.
921   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 else
923   ac_dir_suffix= ac_top_builddir=
924 fi
925
926 case $srcdir in
927   .)  # No --srcdir option.  We are building in place.
928     ac_srcdir=.
929     if test -z "$ac_top_builddir"; then
930        ac_top_srcdir=.
931     else
932        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933     fi ;;
934   [\\/]* | ?:[\\/]* )  # Absolute path.
935     ac_srcdir=$srcdir$ac_dir_suffix;
936     ac_top_srcdir=$srcdir ;;
937   *) # Relative path.
938     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939     ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 esac
941 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
942 # absolute.
943 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
944 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
945 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
946 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
947
948     cd $ac_dir
949     # Check for guested configure; otherwise get Cygnus style configure.
950     if test -f $ac_srcdir/configure.gnu; then
951       echo
952       $SHELL $ac_srcdir/configure.gnu  --help=recursive
953     elif test -f $ac_srcdir/configure; then
954       echo
955       $SHELL $ac_srcdir/configure  --help=recursive
956     elif test -f $ac_srcdir/configure.ac ||
957            test -f $ac_srcdir/configure.in; then
958       echo
959       $ac_configure --help
960     else
961       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962     fi
963     cd $ac_popdir
964   done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969   cat <<\_ACEOF
970
971 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
972 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
975 _ACEOF
976   exit 0
977 fi
978 exec 5>config.log
979 cat >&5 <<_ACEOF
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
982
983 It was created by $as_me, which was
984 generated by GNU Autoconf 2.54.  Invocation command line was
985
986   $ $0 $@
987
988 _ACEOF
989 {
990 cat <<_ASUNAME
991 ## --------- ##
992 ## Platform. ##
993 ## --------- ##
994
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1003
1004 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1005 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1008 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1009 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1010 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1011
1012 _ASUNAME
1013
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 for as_dir in $PATH
1016 do
1017   IFS=$as_save_IFS
1018   test -z "$as_dir" && as_dir=.
1019   echo "PATH: $as_dir"
1020 done
1021
1022 } >&5
1023
1024 cat >&5 <<_ACEOF
1025
1026
1027 ## ----------- ##
1028 ## Core tests. ##
1029 ## ----------- ##
1030
1031 _ACEOF
1032
1033
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Also quote any args containing shell meta-characters.
1037 ac_configure_args=
1038 ac_sep=
1039 for ac_arg
1040 do
1041   case $ac_arg in
1042   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043   | --no-cr | --no-c | -n ) continue ;;
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     continue ;;
1047   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049   esac
1050   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1051   # Get rid of the leading space.
1052   ac_sep=" "
1053 done
1054
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log.  We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061   # Save into config.log some information that might help in debugging.
1062   {
1063     echo
1064
1065     cat <<\_ASBOX
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1069 _ASBOX
1070     echo
1071     # The following way of writing the cache mishandles newlines in values,
1072 {
1073   (set) 2>&1 |
1074     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075     *ac_space=\ *)
1076       sed -n \
1077         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079       ;;
1080     *)
1081       sed -n \
1082         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083       ;;
1084     esac;
1085 }
1086     echo
1087
1088     cat <<\_ASBOX
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1092 _ASBOX
1093     echo
1094     for ac_var in $ac_subst_vars
1095     do
1096       eval ac_val=$`echo $ac_var`
1097       echo "$ac_var='"'"'$ac_val'"'"'"
1098     done | sort
1099     echo
1100
1101     if test -n "$ac_subst_files"; then
1102       cat <<\_ASBOX
1103 ## ------------- ##
1104 ## Output files. ##
1105 ## ------------- ##
1106 _ASBOX
1107       echo
1108       for ac_var in $ac_subst_files
1109       do
1110         eval ac_val=$`echo $ac_var`
1111         echo "$ac_var='"'"'$ac_val'"'"'"
1112       done | sort
1113       echo
1114     fi
1115
1116     if test -s confdefs.h; then
1117       cat <<\_ASBOX
1118 ## ----------- ##
1119 ## confdefs.h. ##
1120 ## ----------- ##
1121 _ASBOX
1122       echo
1123       sed "/^$/d" confdefs.h | sort
1124       echo
1125     fi
1126     test "$ac_signal" != 0 &&
1127       echo "$as_me: caught signal $ac_signal"
1128     echo "$as_me: exit $exit_status"
1129   } >&5
1130   rm -f core core.* *.core &&
1131   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132     exit $exit_status
1133      ' 0
1134 for ac_signal in 1 2 13 15; do
1135   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136 done
1137 ac_signal=0
1138
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 echo >confdefs.h
1143
1144 # Predefined preprocessor variables.
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1148 _ACEOF
1149
1150
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153 _ACEOF
1154
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1163 _ACEOF
1164
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168 _ACEOF
1169
1170
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174   if test "x$prefix" != xNONE; then
1175     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176   else
1177     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178   fi
1179 fi
1180 for ac_site_file in $CONFIG_SITE; do
1181   if test -r "$ac_site_file"; then
1182     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184     sed 's/^/| /' "$ac_site_file" >&5
1185     . "$ac_site_file"
1186   fi
1187 done
1188
1189 if test -r "$cache_file"; then
1190   # Some versions of bash will fail to source /dev/null (special
1191   # files actually), so we avoid doing that.
1192   if test -f "$cache_file"; then
1193     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1195     case $cache_file in
1196       [\\/]* | ?:[\\/]* ) . $cache_file;;
1197       *)                      . ./$cache_file;;
1198     esac
1199   fi
1200 else
1201   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1203   >$cache_file
1204 fi
1205
1206 # Check that the precious variables saved in the cache have kept the same
1207 # value.
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212   eval ac_new_set=\$ac_env_${ac_var}_set
1213   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214   eval ac_new_val="\$ac_env_${ac_var}_value"
1215   case $ac_old_set,$ac_new_set in
1216     set,)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,set)
1221       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223       ac_cache_corrupted=: ;;
1224     ,);;
1225     *)
1226       if test "x$ac_old_val" != "x$ac_new_val"; then
1227         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1230 echo "$as_me:   former value:  $ac_old_val" >&2;}
1231         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1232 echo "$as_me:   current value: $ac_new_val" >&2;}
1233         ac_cache_corrupted=:
1234       fi;;
1235   esac
1236   # Pass precious variables to config.status.
1237   if test "$ac_new_set" = set; then
1238     case $ac_new_val in
1239     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241     *) ac_arg=$ac_var=$ac_new_val ;;
1242     esac
1243     case " $ac_configure_args " in
1244       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1245       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246     esac
1247   fi
1248 done
1249 if $ac_cache_corrupted; then
1250   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254    { (exit 1); exit 1; }; }
1255 fi
1256
1257 ac_ext=c
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281           ac_config_headers="$ac_config_headers include/config.h"
1282
1283
1284 #################################################
1285 # Directory handling stuff to support both the
1286 # legacy SAMBA directories and FHS compliant
1287 # ones...
1288
1289
1290
1291 # Check whether --with-fhs or --without-fhs was given.
1292 if test "${with_fhs+set}" = set; then
1293   withval="$with_fhs"
1294   configdir="${sysconfdir}/samba"
1295     lockdir="\${VARDIR}/cache/samba"
1296     piddir="\$(VARDIR)/run/samba"
1297     logfilebase="\${VARDIR}/log/samba"
1298     privatedir="\${CONFIGDIR}/private"
1299     swatdir="\${DATADIR}/samba/swat"
1300 else
1301   configdir="\$(LIBDIR)"
1302     logfilebase="\$(VARDIR)"
1303     lockdir="\${VARDIR}/locks"
1304     piddir="\$(VARDIR)/locks"
1305     privatedir="\${prefix}/private"
1306     swatdir="\${prefix}/swat"
1307 fi;
1308
1309 #################################################
1310 # set private directory location
1311
1312 # Check whether --with-privatedir or --without-privatedir was given.
1313 if test "${with_privatedir+set}" = set; then
1314   withval="$with_privatedir"
1315    case "$withval" in
1316   yes|no)
1317   #
1318   # Just in case anybody calls it without argument
1319   #
1320     { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1321 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1322   ;;
1323   * )
1324     privatedir="$withval"
1325     ;;
1326   esac
1327 fi;
1328
1329 #################################################
1330 # set lock directory location
1331
1332 # Check whether --with-lockdir or --without-lockdir was given.
1333 if test "${with_lockdir+set}" = set; then
1334   withval="$with_lockdir"
1335    case "$withval" in
1336   yes|no)
1337   #
1338   # Just in case anybody calls it without argument
1339   #
1340     { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1341 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1342   ;;
1343   * )
1344     lockdir="$withval"
1345     ;;
1346   esac
1347 fi;
1348
1349 #################################################
1350 # set pid directory location
1351
1352 # Check whether --with-piddir or --without-piddir was given.
1353 if test "${with_piddir+set}" = set; then
1354   withval="$with_piddir"
1355    case "$withval" in
1356   yes|no)
1357   #
1358   # Just in case anybody calls it without argument
1359   #
1360     { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1361 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1362   ;;
1363   * )
1364     piddir="$withval"
1365     ;;
1366   esac
1367 fi;
1368
1369 #################################################
1370 # set SWAT directory location
1371
1372 # Check whether --with-swatdir or --without-swatdir was given.
1373 if test "${with_swatdir+set}" = set; then
1374   withval="$with_swatdir"
1375    case "$withval" in
1376   yes|no)
1377   #
1378   # Just in case anybody does it
1379   #
1380     { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1381 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1382   ;;
1383   * )
1384     swatdir="$withval"
1385     ;;
1386   esac
1387 fi;
1388
1389 #################################################
1390 # set configuration directory location
1391
1392 # Check whether --with-configdir or --without-configdir was given.
1393 if test "${with_configdir+set}" = set; then
1394   withval="$with_configdir"
1395    case "$withval" in
1396   yes|no)
1397   #
1398   # Just in case anybody does it
1399   #
1400     { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1401 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1402   ;;
1403   * )
1404     configdir="$withval"
1405     ;;
1406   esac
1407 fi;
1408
1409 #################################################
1410 # set log directory location
1411
1412 # Check whether --with-logfilebase or --without-logfilebase was given.
1413 if test "${with_logfilebase+set}" = set; then
1414   withval="$with_logfilebase"
1415    case "$withval" in
1416   yes|no)
1417   #
1418   # Just in case anybody does it
1419   #
1420     { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1421 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1422   ;;
1423   * )
1424     logfilebase="$withval"
1425     ;;
1426   esac
1427 fi;
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458 # compile with optimization and without debugging by default
1459 CFLAGS="-O ${CFLAGS}"
1460
1461 # Check whether --enable-debug or --disable-debug was given.
1462 if test "${enable_debug+set}" = set; then
1463   enableval="$enable_debug"
1464   if eval "test x$enable_debug = xyes"; then
1465         CFLAGS="${CFLAGS} -g"
1466     fi
1467 fi;
1468
1469 # Check whether --enable-developer or --disable-developer was given.
1470 if test "${enable_developer+set}" = set; then
1471   enableval="$enable_developer"
1472   if eval "test x$enable_developer = xyes"; then
1473         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1474     fi
1475 fi;
1476
1477 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1478 if test "${enable_krb5developer+set}" = set; then
1479   enableval="$enable_krb5developer"
1480   if eval "test x$enable_krb5developer = xyes"; then
1481         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1482     fi
1483 fi;
1484
1485 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1486 if test "${enable_dmalloc+set}" = set; then
1487   enableval="$enable_dmalloc"
1488
1489 fi;
1490
1491 if test "x$enable_dmalloc" = xyes
1492 then
1493
1494 cat >>confdefs.h <<\_ACEOF
1495 #define ENABLE_DMALLOC 1
1496 _ACEOF
1497
1498
1499 cat >>confdefs.h <<\_ACEOF
1500 #define DMALLOC_FUNC_CHECK 1
1501 _ACEOF
1502
1503         LIBS="$LIBS -ldmalloc"
1504 fi
1505
1506 ac_ext=c
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 if test -n "$ac_tool_prefix"; then
1512   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$CC"; then
1520   ac_cv_prog_CC="$CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 CC=$ac_cv_prog_CC
1539 if test -n "$CC"; then
1540   echo "$as_me:$LINENO: result: $CC" >&5
1541 echo "${ECHO_T}$CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547 fi
1548 if test -z "$ac_cv_prog_CC"; then
1549   ac_ct_CC=$CC
1550   # Extract the first word of "gcc", so it can be a program name with args.
1551 set dummy gcc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1555   echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557   if test -n "$ac_ct_CC"; then
1558   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1559 else
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1562 do
1563   IFS=$as_save_IFS
1564   test -z "$as_dir" && as_dir=.
1565   for ac_exec_ext in '' $ac_executable_extensions; do
1566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567     ac_cv_prog_ac_ct_CC="gcc"
1568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569     break 2
1570   fi
1571 done
1572 done
1573
1574 fi
1575 fi
1576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1577 if test -n "$ac_ct_CC"; then
1578   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1579 echo "${ECHO_T}$ac_ct_CC" >&6
1580 else
1581   echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1583 fi
1584
1585   CC=$ac_ct_CC
1586 else
1587   CC="$ac_cv_prog_CC"
1588 fi
1589
1590 if test -z "$CC"; then
1591   if test -n "$ac_tool_prefix"; then
1592   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1593 set dummy ${ac_tool_prefix}cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$CC"; then
1600   ac_cv_prog_CC="$CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_CC="${ac_tool_prefix}cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 CC=$ac_cv_prog_CC
1619 if test -n "$CC"; then
1620   echo "$as_me:$LINENO: result: $CC" >&5
1621 echo "${ECHO_T}$CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627 fi
1628 if test -z "$ac_cv_prog_CC"; then
1629   ac_ct_CC=$CC
1630   # Extract the first word of "cc", so it can be a program name with args.
1631 set dummy cc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   if test -n "$ac_ct_CC"; then
1638   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1639 else
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1642 do
1643   IFS=$as_save_IFS
1644   test -z "$as_dir" && as_dir=.
1645   for ac_exec_ext in '' $ac_executable_extensions; do
1646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647     ac_cv_prog_ac_ct_CC="cc"
1648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649     break 2
1650   fi
1651 done
1652 done
1653
1654 fi
1655 fi
1656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1657 if test -n "$ac_ct_CC"; then
1658   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1659 echo "${ECHO_T}$ac_ct_CC" >&6
1660 else
1661   echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1663 fi
1664
1665   CC=$ac_ct_CC
1666 else
1667   CC="$ac_cv_prog_CC"
1668 fi
1669
1670 fi
1671 if test -z "$CC"; then
1672   # Extract the first word of "cc", so it can be a program name with args.
1673 set dummy cc; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_CC+set}" = set; then
1677   echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679   if test -n "$CC"; then
1680   ac_cv_prog_CC="$CC" # Let the user override the test.
1681 else
1682   ac_prog_rejected=no
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686   IFS=$as_save_IFS
1687   test -z "$as_dir" && as_dir=.
1688   for ac_exec_ext in '' $ac_executable_extensions; do
1689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1691        ac_prog_rejected=yes
1692        continue
1693      fi
1694     ac_cv_prog_CC="cc"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1700
1701 if test $ac_prog_rejected = yes; then
1702   # We found a bogon in the path, so make sure we never use it.
1703   set dummy $ac_cv_prog_CC
1704   shift
1705   if test $# != 0; then
1706     # We chose a different compiler from the bogus one.
1707     # However, it has the same basename, so the bogon will be chosen
1708     # first if we set CC to just the basename; use the full file name.
1709     shift
1710     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1711   fi
1712 fi
1713 fi
1714 fi
1715 CC=$ac_cv_prog_CC
1716 if test -n "$CC"; then
1717   echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1719 else
1720   echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 fi
1725 if test -z "$CC"; then
1726   if test -n "$ac_tool_prefix"; then
1727   for ac_prog in cl
1728   do
1729     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_CC+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$CC"; then
1737   ac_cv_prog_CC="$CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1752
1753 fi
1754 fi
1755 CC=$ac_cv_prog_CC
1756 if test -n "$CC"; then
1757   echo "$as_me:$LINENO: result: $CC" >&5
1758 echo "${ECHO_T}$CC" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1762 fi
1763
1764     test -n "$CC" && break
1765   done
1766 fi
1767 if test -z "$CC"; then
1768   ac_ct_CC=$CC
1769   for ac_prog in cl
1770 do
1771   # Extract the first word of "$ac_prog", so it can be a program name with args.
1772 set dummy $ac_prog; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1776   echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778   if test -n "$ac_ct_CC"; then
1779   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1780 else
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1783 do
1784   IFS=$as_save_IFS
1785   test -z "$as_dir" && as_dir=.
1786   for ac_exec_ext in '' $ac_executable_extensions; do
1787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788     ac_cv_prog_ac_ct_CC="$ac_prog"
1789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790     break 2
1791   fi
1792 done
1793 done
1794
1795 fi
1796 fi
1797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1798 if test -n "$ac_ct_CC"; then
1799   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1800 echo "${ECHO_T}$ac_ct_CC" >&6
1801 else
1802   echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1804 fi
1805
1806   test -n "$ac_ct_CC" && break
1807 done
1808
1809   CC=$ac_ct_CC
1810 fi
1811
1812 fi
1813
1814
1815 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1816 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1817    { (exit 1); exit 1; }; }
1818
1819 # Provide some information about the compiler.
1820 echo "$as_me:$LINENO:" \
1821      "checking for C compiler version" >&5
1822 ac_compiler=`set X $ac_compile; echo $2`
1823 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1824   (eval $ac_compiler --version </dev/null >&5) 2>&5
1825   ac_status=$?
1826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827   (exit $ac_status); }
1828 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1829   (eval $ac_compiler -v </dev/null >&5) 2>&5
1830   ac_status=$?
1831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832   (exit $ac_status); }
1833 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1834   (eval $ac_compiler -V </dev/null >&5) 2>&5
1835   ac_status=$?
1836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837   (exit $ac_status); }
1838
1839 cat >conftest.$ac_ext <<_ACEOF
1840 #line $LINENO "configure"
1841 #include "confdefs.h"
1842
1843 int
1844 main ()
1845 {
1846
1847   ;
1848   return 0;
1849 }
1850 _ACEOF
1851 ac_clean_files_save=$ac_clean_files
1852 ac_clean_files="$ac_clean_files a.out a.exe"
1853 # Try to create an executable without -o first, disregard a.out.
1854 # It will help us diagnose broken compilers, and finding out an intuition
1855 # of exeext.
1856 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1857 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1858 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1859 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1860   (eval $ac_link_default) 2>&5
1861   ac_status=$?
1862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863   (exit $ac_status); }; then
1864   # Find the output, starting from the most likely.  This scheme is
1865 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1866 # resort.
1867
1868 # Be careful to initialize this variable, since it used to be cached.
1869 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1870 ac_cv_exeext=
1871 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1872   test -f "$ac_file" || continue
1873   case $ac_file in
1874     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1875     a.out ) # We found the default executable, but exeext='' is most
1876             # certainly right.
1877             break;;
1878     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1879           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1880           export ac_cv_exeext
1881           break;;
1882     * ) break;;
1883   esac
1884 done
1885 else
1886   echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1888 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1889 check \`config.log' for details." >&5
1890 echo "$as_me: error: C compiler cannot create executables
1891 check \`config.log' for details." >&2;}
1892    { (exit 77); exit 77; }; }
1893 fi
1894
1895 ac_exeext=$ac_cv_exeext
1896 echo "$as_me:$LINENO: result: $ac_file" >&5
1897 echo "${ECHO_T}$ac_file" >&6
1898
1899 # Check the compiler produces executables we can run.  If not, either
1900 # the compiler is broken, or we cross compile.
1901 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1902 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1904 # If not cross compiling, check that we can run a simple program.
1905 if test "$cross_compiling" != yes; then
1906   if { ac_try='./$ac_file'
1907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1908   (eval $ac_try) 2>&5
1909   ac_status=$?
1910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911   (exit $ac_status); }; }; then
1912     cross_compiling=no
1913   else
1914     if test "$cross_compiling" = maybe; then
1915         cross_compiling=yes
1916     else
1917         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1918 If you meant to cross compile, use \`--host'." >&5
1919 echo "$as_me: error: cannot run C compiled programs.
1920 If you meant to cross compile, use \`--host'." >&2;}
1921    { (exit 1); exit 1; }; }
1922     fi
1923   fi
1924 fi
1925 echo "$as_me:$LINENO: result: yes" >&5
1926 echo "${ECHO_T}yes" >&6
1927
1928 rm -f a.out a.exe conftest$ac_cv_exeext
1929 ac_clean_files=$ac_clean_files_save
1930 # Check the compiler produces executables we can run.  If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1933 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1934 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1935 echo "${ECHO_T}$cross_compiling" >&6
1936
1937 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1938 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1940   (eval $ac_link) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; then
1944   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1945 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1946 # work properly (i.e., refer to `conftest.exe'), while it won't with
1947 # `rm'.
1948 for ac_file in conftest.exe conftest conftest.*; do
1949   test -f "$ac_file" || continue
1950   case $ac_file in
1951     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1952     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1953           export ac_cv_exeext
1954           break;;
1955     * ) break;;
1956   esac
1957 done
1958 else
1959   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1960 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1961    { (exit 1); exit 1; }; }
1962 fi
1963
1964 rm -f conftest$ac_cv_exeext
1965 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1966 echo "${ECHO_T}$ac_cv_exeext" >&6
1967
1968 rm -f conftest.$ac_ext
1969 EXEEXT=$ac_cv_exeext
1970 ac_exeext=$EXEEXT
1971 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1972 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1973 if test "${ac_cv_objext+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   cat >conftest.$ac_ext <<_ACEOF
1977 #line $LINENO "configure"
1978 #include "confdefs.h"
1979
1980 int
1981 main ()
1982 {
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.o conftest.obj
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990   (eval $ac_compile) 2>&5
1991   ac_status=$?
1992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993   (exit $ac_status); }; then
1994   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1995   case $ac_file in
1996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1997     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1998        break;;
1999   esac
2000 done
2001 else
2002   echo "$as_me: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2005 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2006    { (exit 1); exit 1; }; }
2007 fi
2008
2009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2010 fi
2011 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2012 echo "${ECHO_T}$ac_cv_objext" >&6
2013 OBJEXT=$ac_cv_objext
2014 ac_objext=$OBJEXT
2015 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   cat >conftest.$ac_ext <<_ACEOF
2021 #line $LINENO "configure"
2022 #include "confdefs.h"
2023
2024 int
2025 main ()
2026 {
2027 #ifndef __GNUC__
2028        choke me
2029 #endif
2030
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037   (eval $ac_compile) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); } &&
2041          { ac_try='test -s conftest.$ac_objext'
2042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043   (eval $ac_try) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }; }; then
2047   ac_compiler_gnu=yes
2048 else
2049   echo "$as_me: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2051 ac_compiler_gnu=no
2052 fi
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055
2056 fi
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2062 CFLAGS="-g"
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 #include "confdefs.h"
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2096 ac_cv_prog_cc_g=no
2097 fi
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2102 if test "$ac_test_CFLAGS" = set; then
2103   CFLAGS=$ac_save_CFLAGS
2104 elif test $ac_cv_prog_cc_g = yes; then
2105   if test "$GCC" = yes; then
2106     CFLAGS="-g -O2"
2107   else
2108     CFLAGS="-g"
2109   fi
2110 else
2111   if test "$GCC" = yes; then
2112     CFLAGS="-O2"
2113   else
2114     CFLAGS=
2115   fi
2116 fi
2117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   ac_cv_prog_cc_stdc=no
2123 ac_save_CC=$CC
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2126 #include "confdefs.h"
2127 #include <stdarg.h>
2128 #include <stdio.h>
2129 #include <sys/types.h>
2130 #include <sys/stat.h>
2131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2132 struct buf { int x; };
2133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2134 static char *e (p, i)
2135      char **p;
2136      int i;
2137 {
2138   return p[i];
2139 }
2140 static char *f (char * (*g) (char **, int), char **p, ...)
2141 {
2142   char *s;
2143   va_list v;
2144   va_start (v,p);
2145   s = g (p, va_arg (v,int));
2146   va_end (v);
2147   return s;
2148 }
2149 int test (int i, double x);
2150 struct s1 {int (*f) (int a);};
2151 struct s2 {int (*f) (double a);};
2152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2153 int argc;
2154 char **argv;
2155 int
2156 main ()
2157 {
2158 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2159   ;
2160   return 0;
2161 }
2162 _ACEOF
2163 # Don't try gcc -ansi; that turns off useful extensions and
2164 # breaks some systems' header files.
2165 # AIX                   -qlanglvl=ansi
2166 # Ultrix and OSF/1      -std1
2167 # HP-UX 10.20 and later -Ae
2168 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2169 # SVR4                  -Xc -D__EXTENSIONS__
2170 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2171 do
2172   CC="$ac_save_CC $ac_arg"
2173   rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175   (eval $ac_compile) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); } &&
2179          { ac_try='test -s conftest.$ac_objext'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185   ac_cv_prog_cc_stdc=$ac_arg
2186 break
2187 else
2188   echo "$as_me: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2190 fi
2191 rm -f conftest.$ac_objext
2192 done
2193 rm -f conftest.$ac_ext conftest.$ac_objext
2194 CC=$ac_save_CC
2195
2196 fi
2197
2198 case "x$ac_cv_prog_cc_stdc" in
2199   x|xno)
2200     echo "$as_me:$LINENO: result: none needed" >&5
2201 echo "${ECHO_T}none needed" >&6 ;;
2202   *)
2203     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2204 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2205     CC="$CC $ac_cv_prog_cc_stdc" ;;
2206 esac
2207
2208 # Some people use a C++ compiler to compile C.  Since we use `exit',
2209 # in C++ we need to declare it.  In case someone uses the same compiler
2210 # for both compiling C and C++ we need to have the C++ compiler decide
2211 # the declaration of exit, since it's the most demanding environment.
2212 cat >conftest.$ac_ext <<_ACEOF
2213 #ifndef __cplusplus
2214   choke me
2215 #endif
2216 _ACEOF
2217 rm -f conftest.$ac_objext
2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219   (eval $ac_compile) 2>&5
2220   ac_status=$?
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); } &&
2223          { ac_try='test -s conftest.$ac_objext'
2224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225   (eval $ac_try) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }; }; then
2229   for ac_declaration in \
2230    ''\
2231    '#include <stdlib.h>' \
2232    'extern "C" void std::exit (int) throw (); using std::exit;' \
2233    'extern "C" void std::exit (int); using std::exit;' \
2234    'extern "C" void exit (int) throw ();' \
2235    'extern "C" void exit (int);' \
2236    'void exit (int);'
2237 do
2238   cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 #include "confdefs.h"
2241 #include <stdlib.h>
2242 $ac_declaration
2243 int
2244 main ()
2245 {
2246 exit (42);
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253   (eval $ac_compile) 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); } &&
2257          { ac_try='test -s conftest.$ac_objext'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; }; then
2263   :
2264 else
2265   echo "$as_me: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 continue
2268 fi
2269 rm -f conftest.$ac_objext conftest.$ac_ext
2270   cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 #include "confdefs.h"
2273 $ac_declaration
2274 int
2275 main ()
2276 {
2277 exit (42);
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284   (eval $ac_compile) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); } &&
2288          { ac_try='test -s conftest.$ac_objext'
2289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290   (eval $ac_try) 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }; }; then
2294   break
2295 else
2296   echo "$as_me: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 fi
2299 rm -f conftest.$ac_objext conftest.$ac_ext
2300 done
2301 rm -f conftest*
2302 if test -n "$ac_declaration"; then
2303   echo '#ifdef __cplusplus' >>confdefs.h
2304   echo $ac_declaration      >>confdefs.h
2305   echo '#endif'             >>confdefs.h
2306 fi
2307
2308 else
2309   echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 fi
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 ac_ext=c
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318
2319 ac_aux_dir=
2320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2321   if test -f $ac_dir/install-sh; then
2322     ac_aux_dir=$ac_dir
2323     ac_install_sh="$ac_aux_dir/install-sh -c"
2324     break
2325   elif test -f $ac_dir/install.sh; then
2326     ac_aux_dir=$ac_dir
2327     ac_install_sh="$ac_aux_dir/install.sh -c"
2328     break
2329   elif test -f $ac_dir/shtool; then
2330     ac_aux_dir=$ac_dir
2331     ac_install_sh="$ac_aux_dir/shtool install -c"
2332     break
2333   fi
2334 done
2335 if test -z "$ac_aux_dir"; then
2336   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2343
2344 # Find a good install program.  We prefer a C program (faster),
2345 # so one script is as good as another.  But avoid the broken or
2346 # incompatible versions:
2347 # SysV /etc/install, /usr/sbin/install
2348 # SunOS /usr/etc/install
2349 # IRIX /sbin/install
2350 # AIX /bin/install
2351 # AmigaOS /C/install, which installs bootblocks on floppy discs
2352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2355 # ./install, which can be erroneously created by make from ./install.sh.
2356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2358 if test -z "$INSTALL"; then
2359 if test "${ac_cv_path_install+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   # Account for people who put trailing slashes in PATH elements.
2368 case $as_dir/ in
2369   ./ | .// | /cC/* | \
2370   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2371   /usr/ucb/* ) ;;
2372   *)
2373     # OSF1 and SCO ODT 3.0 have their own names for install.
2374     # Don't use installbsd from OSF since it installs stuff as root
2375     # by default.
2376     for ac_prog in ginstall scoinst install; do
2377       for ac_exec_ext in '' $ac_executable_extensions; do
2378         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2379           if test $ac_prog = install &&
2380             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381             # AIX install.  It has an incompatible calling convention.
2382             :
2383           elif test $ac_prog = install &&
2384             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385             # program-specific install script used by HP pwplus--don't use.
2386             :
2387           else
2388             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2389             break 3
2390           fi
2391         fi
2392       done
2393     done
2394     ;;
2395 esac
2396 done
2397
2398
2399 fi
2400   if test "${ac_cv_path_install+set}" = set; then
2401     INSTALL=$ac_cv_path_install
2402   else
2403     # As a last resort, use the slow shell script.  We don't cache a
2404     # path for INSTALL within a source directory, because that will
2405     # break other packages using the cache if that directory is
2406     # removed, or if the path is relative.
2407     INSTALL=$ac_install_sh
2408   fi
2409 fi
2410 echo "$as_me:$LINENO: result: $INSTALL" >&5
2411 echo "${ECHO_T}$INSTALL" >&6
2412
2413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414 # It thinks the first close brace ends the variable substitution.
2415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2416
2417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2418
2419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2420
2421 for ac_prog in gawk mawk nawk awk
2422 do
2423   # Extract the first word of "$ac_prog", so it can be a program name with args.
2424 set dummy $ac_prog; ac_word=$2
2425 echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2427 if test "${ac_cv_prog_AWK+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   if test -n "$AWK"; then
2431   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436   IFS=$as_save_IFS
2437   test -z "$as_dir" && as_dir=.
2438   for ac_exec_ext in '' $ac_executable_extensions; do
2439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2440     ac_cv_prog_AWK="$ac_prog"
2441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442     break 2
2443   fi
2444 done
2445 done
2446
2447 fi
2448 fi
2449 AWK=$ac_cv_prog_AWK
2450 if test -n "$AWK"; then
2451   echo "$as_me:$LINENO: result: $AWK" >&5
2452 echo "${ECHO_T}$AWK" >&6
2453 else
2454   echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6
2456 fi
2457
2458   test -n "$AWK" && break
2459 done
2460
2461
2462 LD=ld
2463 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2464 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2465 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2469 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2470   ac_cv_prog_gnu_ld=yes
2471 else
2472   ac_cv_prog_gnu_ld=no
2473 fi
2474 fi
2475 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2476 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2477
2478
2479
2480 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2481 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2482 if test "${ac_cv_search_strerror+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   ac_func_search_save_LIBS=$LIBS
2486 ac_cv_search_strerror=no
2487 cat >conftest.$ac_ext <<_ACEOF
2488 #line $LINENO "configure"
2489 #include "confdefs.h"
2490
2491 /* Override any gcc2 internal prototype to avoid an error.  */
2492 #ifdef __cplusplus
2493 extern "C"
2494 #endif
2495 /* We use char because int might match the return type of a gcc2
2496    builtin and then its argument prototype would still apply.  */
2497 char strerror ();
2498 int
2499 main ()
2500 {
2501 strerror ();
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 rm -f conftest.$ac_objext conftest$ac_exeext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2508   (eval $ac_link) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -s conftest$ac_exeext'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   ac_cv_search_strerror="none required"
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 fi
2523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2524 if test "$ac_cv_search_strerror" = no; then
2525   for ac_lib in cposix; do
2526     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2527     cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 #include "confdefs.h"
2530
2531 /* Override any gcc2 internal prototype to avoid an error.  */
2532 #ifdef __cplusplus
2533 extern "C"
2534 #endif
2535 /* We use char because int might match the return type of a gcc2
2536    builtin and then its argument prototype would still apply.  */
2537 char strerror ();
2538 int
2539 main ()
2540 {
2541 strerror ();
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 rm -f conftest.$ac_objext conftest$ac_exeext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2548   (eval $ac_link) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); } &&
2552          { ac_try='test -s conftest$ac_exeext'
2553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554   (eval $ac_try) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; }; then
2558   ac_cv_search_strerror="-l$ac_lib"
2559 break
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 fi
2564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2565   done
2566 fi
2567 LIBS=$ac_func_search_save_LIBS
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2570 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2571 if test "$ac_cv_search_strerror" != no; then
2572   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2573
2574 fi
2575
2576
2577 if test "x$CC" != xcc; then
2578   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2579 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2580 else
2581   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2582 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2583 fi
2584 set dummy $CC; ac_cc=`echo $2 |
2585                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2586 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   cat >conftest.$ac_ext <<_ACEOF
2590 #line $LINENO "configure"
2591 #include "confdefs.h"
2592
2593 int
2594 main ()
2595 {
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 # Make sure it works both with $CC and with simple cc.
2602 # We do the test twice because some compilers refuse to overwrite an
2603 # existing .o file with -o, though they will create one.
2604 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2605 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606   (eval $ac_try) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } &&
2610    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); };
2615 then
2616   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2617   if test "x$CC" != xcc; then
2618     # Test first that cc exists at all.
2619     if { ac_try='cc -c conftest.$ac_ext >&5'
2620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621   (eval $ac_try) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2626       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } &&
2631          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); };
2636       then
2637         # cc works too.
2638         :
2639       else
2640         # cc exists but doesn't like -o.
2641         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2642       fi
2643     fi
2644   fi
2645 else
2646   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2647 fi
2648 rm -f conftest*
2649
2650 fi
2651 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2652   echo "$as_me:$LINENO: result: yes" >&5
2653 echo "${ECHO_T}yes" >&6
2654 else
2655   echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657
2658 cat >>confdefs.h <<\_ACEOF
2659 #define NO_MINUS_C_MINUS_O 1
2660 _ACEOF
2661
2662 fi
2663
2664 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2665       BROKEN_CC=
2666 else
2667       BROKEN_CC=#
2668 fi
2669
2670
2671 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2672 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2673 if test "${samba_cv_volatile+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676
2677     cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2681 int
2682 main ()
2683 {
2684 volatile int i = 0
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691   (eval $ac_compile) 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); } &&
2695          { ac_try='test -s conftest.$ac_objext'
2696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697   (eval $ac_try) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; }; then
2701   samba_cv_volatile=yes
2702 else
2703   echo "$as_me: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2705 samba_cv_volatile=no
2706 fi
2707 rm -f conftest.$ac_objext conftest.$ac_ext
2708 fi
2709 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2710 echo "${ECHO_T}$samba_cv_volatile" >&6
2711 if test x"$samba_cv_volatile" = x"yes"; then
2712
2713 cat >>confdefs.h <<\_ACEOF
2714 #define HAVE_VOLATILE 1
2715 _ACEOF
2716
2717 fi
2718
2719
2720 # Make sure we can run config.sub.
2721 $ac_config_sub sun4 >/dev/null 2>&1 ||
2722   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2723 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2724    { (exit 1); exit 1; }; }
2725
2726 echo "$as_me:$LINENO: checking build system type" >&5
2727 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2728 if test "${ac_cv_build+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   ac_cv_build_alias=$build_alias
2732 test -z "$ac_cv_build_alias" &&
2733   ac_cv_build_alias=`$ac_config_guess`
2734 test -z "$ac_cv_build_alias" &&
2735   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2736 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2737    { (exit 1); exit 1; }; }
2738 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2739   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2740 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2741    { (exit 1); exit 1; }; }
2742
2743 fi
2744 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2745 echo "${ECHO_T}$ac_cv_build" >&6
2746 build=$ac_cv_build
2747 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2748 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2749 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2750
2751
2752 echo "$as_me:$LINENO: checking host system type" >&5
2753 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2754 if test "${ac_cv_host+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   ac_cv_host_alias=$host_alias
2758 test -z "$ac_cv_host_alias" &&
2759   ac_cv_host_alias=$ac_cv_build_alias
2760 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2761   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2762 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2763    { (exit 1); exit 1; }; }
2764
2765 fi
2766 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2767 echo "${ECHO_T}$ac_cv_host" >&6
2768 host=$ac_cv_host
2769 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2770 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2771 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2772
2773
2774 echo "$as_me:$LINENO: checking target system type" >&5
2775 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2776 if test "${ac_cv_target+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   ac_cv_target_alias=$target_alias
2780 test "x$ac_cv_target_alias" = "x" &&
2781   ac_cv_target_alias=$ac_cv_host_alias
2782 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2783   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2784 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2785    { (exit 1); exit 1; }; }
2786
2787 fi
2788 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2789 echo "${ECHO_T}$ac_cv_target" >&6
2790 target=$ac_cv_target
2791 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2792 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2793 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2794
2795
2796 # The aliases save the names the user supplied, while $host etc.
2797 # will get canonicalized.
2798 test -n "$target_alias" &&
2799   test "$program_prefix$program_suffix$program_transform_name" = \
2800     NONENONEs,x,x, &&
2801   program_prefix=${target_alias}-
2802
2803   case "$host_os" in
2804         *irix6*) cat >> confdefs.h <<\EOF
2805 #include <standards.h>
2806 EOF
2807
2808         ;;
2809 esac
2810
2811
2812
2813     echo "$as_me:$LINENO: checking config.cache system type" >&5
2814 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2815     if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2816          test x"$ac_cv_host_system_type" != x"$host"; } ||
2817        { test x"${ac_cv_build_system_type+set}" = x"set" &&
2818          test x"$ac_cv_build_system_type" != x"$build"; } ||
2819        { test x"${ac_cv_target_system_type+set}" = x"set" &&
2820          test x"$ac_cv_target_system_type" != x"$target"; }; then
2821         echo "$as_me:$LINENO: result: different" >&5
2822 echo "${ECHO_T}different" >&6
2823         { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2824 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2825    { (exit 1); exit 1; }; }
2826     else
2827         echo "$as_me:$LINENO: result: same" >&5
2828 echo "${ECHO_T}same" >&6
2829     fi
2830     ac_cv_host_system_type="$host"
2831     ac_cv_build_system_type="$build"
2832     ac_cv_target_system_type="$target"
2833
2834
2835 DYNEXP=
2836
2837 #
2838 # Config CPPFLAG settings for strange OS's that must be set
2839 # before other tests.
2840 #
2841 case "$host_os" in
2842 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2843     *hpux*)
2844
2845       echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2846 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2847 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2848   echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850   echo 'void f(){}' > conftest.c
2851 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2852   ac_cv_prog_cc_Ae=yes
2853 else
2854   ac_cv_prog_cc_Ae=no
2855 fi
2856 rm -f conftest*
2857
2858 fi
2859 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2860 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2861       # mmap on HPUX is completely broken...
2862
2863 cat >>confdefs.h <<\_ACEOF
2864 #define MMAP_BLACKLIST 1
2865 _ACEOF
2866
2867       if test $ac_cv_prog_cc_Ae = yes; then
2868         CPPFLAGS="$CPPFLAGS -Ae"
2869       fi
2870 #
2871 # Defines needed for HPUX support.
2872 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2873 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2874 #
2875       case `uname -r` in
2876                         *9*|*10*)
2877                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2878
2879 cat >>confdefs.h <<\_ACEOF
2880 #define USE_BOTH_CRYPT_CALLS 1
2881 _ACEOF
2882
2883
2884 cat >>confdefs.h <<\_ACEOF
2885 #define _HPUX_SOURCE 1
2886 _ACEOF
2887
2888
2889 cat >>confdefs.h <<\_ACEOF
2890 #define _POSIX_SOURCE 1
2891 _ACEOF
2892
2893
2894 cat >>confdefs.h <<\_ACEOF
2895 #define _ALIGNMENT_REQUIRED 1
2896 _ACEOF
2897
2898
2899 cat >>confdefs.h <<\_ACEOF
2900 #define _MAX_ALIGNMENT 4
2901 _ACEOF
2902
2903                                 ;;
2904                         *11*)
2905                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2906
2907 cat >>confdefs.h <<\_ACEOF
2908 #define USE_BOTH_CRYPT_CALLS 1
2909 _ACEOF
2910
2911
2912 cat >>confdefs.h <<\_ACEOF
2913 #define _HPUX_SOURCE 1
2914 _ACEOF
2915
2916
2917 cat >>confdefs.h <<\_ACEOF
2918 #define _POSIX_SOURCE 1
2919 _ACEOF
2920
2921
2922 cat >>confdefs.h <<\_ACEOF
2923 #define _LARGEFILE64_SOURCE 1
2924 _ACEOF
2925
2926
2927 cat >>confdefs.h <<\_ACEOF
2928 #define _ALIGNMENT_REQUIRED 1
2929 _ACEOF
2930
2931
2932 cat >>confdefs.h <<\_ACEOF
2933 #define _MAX_ALIGNMENT 4
2934 _ACEOF
2935
2936                                 ;;
2937       esac
2938       DYNEXP="-Wl,-E"
2939       ;;
2940
2941 #
2942 # CRAY Unicos has broken const handling
2943        *unicos*)
2944           echo "$as_me:$LINENO: result: disabling const" >&5
2945 echo "${ECHO_T}disabling const" >&6
2946           CPPFLAGS="$CPPFLAGS -Dconst="
2947           ;;
2948
2949 #
2950 # AIX4.x doesn't even admit to having large
2951 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2952 #
2953     *aix4*)
2954           echo "$as_me:$LINENO: result: enabling large file support" >&5
2955 echo "${ECHO_T}enabling large file support" >&6
2956       CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2957
2958 cat >>confdefs.h <<\_ACEOF
2959 #define _LARGE_FILES 1
2960 _ACEOF
2961
2962       ;;
2963 #
2964 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2965 # to the existance of large files..
2966 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2967 # recommendations on large file support, however it makes the
2968 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2969 # recommendation makes the compile fail on gcc2.7. JRA.
2970 #
2971         *solaris*)
2972                 case `uname -r` in
2973                         5.0*|5.1*|5.2*|5.3*|5.5*)
2974                                 echo "$as_me:$LINENO: result: no large file support" >&5
2975 echo "${ECHO_T}no large file support" >&6
2976                                 ;;
2977                         5.*)
2978                         echo "$as_me:$LINENO: result: enabling large file support" >&5
2979 echo "${ECHO_T}enabling large file support" >&6
2980                         if test "$ac_cv_c_compiler_gnu" = yes; then
2981                                 ${CC-cc} -v >conftest.c 2>&1
2982                                 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2983                                 rm -fr conftest.c
2984                                 case "$ac_cv_gcc_compiler_version_number" in
2985                                         *"gcc version 2.6"*|*"gcc version 2.7"*)
2986                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2987
2988 cat >>confdefs.h <<\_ACEOF
2989 #define _LARGEFILE64_SOURCE 1
2990 _ACEOF
2991
2992                                                 ;;
2993                                         *)
2994                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2995
2996 cat >>confdefs.h <<\_ACEOF
2997 #define _LARGEFILE64_SOURCE 1
2998 _ACEOF
2999
3000
3001 cat >>confdefs.h <<\_ACEOF
3002 #define _FILE_OFFSET_BITS 64
3003 _ACEOF
3004
3005                                                 ;;
3006                                 esac
3007                         else
3008                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3009
3010 cat >>confdefs.h <<\_ACEOF
3011 #define _LARGEFILE64_SOURCE 1
3012 _ACEOF
3013
3014
3015 cat >>confdefs.h <<\_ACEOF
3016 #define _FILE_OFFSET_BITS 64
3017 _ACEOF
3018
3019                         fi
3020                         ;;
3021                 esac
3022                 ;;
3023 #
3024 # Tests needed for SINIX large file support.
3025 #
3026     *sysv4*)
3027       if test $host = mips-sni-sysv4 ; then
3028         echo "$as_me:$LINENO: checking for LFS support" >&5
3029 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3030         old_CPPFLAGS="$CPPFLAGS"
3031         CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3032         if test "$cross_compiling" = yes; then
3033   SINIX_LFS_SUPPORT=cross
3034 else
3035   cat >conftest.$ac_ext <<_ACEOF
3036 #line $LINENO "configure"
3037 #include "confdefs.h"
3038
3039 #include <unistd.h>
3040 main () {
3041 #if _LFS64_LARGEFILE == 1
3042 exit(0);
3043 #else
3044 exit(1);
3045 #endif
3046 }
3047 _ACEOF
3048 rm -f conftest$ac_exeext
3049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3050   (eval $ac_link) 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   SINIX_LFS_SUPPORT=yes
3060 else
3061   echo "$as_me: program exited with status $ac_status" >&5
3062 echo "$as_me: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3064 ( exit $ac_status )
3065 SINIX_LFS_SUPPORT=no
3066 fi
3067 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3068 fi
3069         CPPFLAGS="$old_CPPFLAGS"
3070         if test x$SINIX_LFS_SUPPORT = xyes ; then
3071           CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3072
3073 cat >>confdefs.h <<\_ACEOF
3074 #define _LARGEFILE64_SOURCE 1
3075 _ACEOF
3076
3077           CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3078           LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3079           LIBS="`getconf LFS64_LIBS` $LIBS"
3080         fi
3081       echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3082 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3083       fi
3084     ;;
3085
3086 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3087 #
3088     *linux*)
3089         echo "$as_me:$LINENO: checking for LFS support" >&5
3090 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3091         old_CPPFLAGS="$CPPFLAGS"
3092         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3093        if test "$cross_compiling" = yes; then
3094   LINUX_LFS_SUPPORT=cross
3095 else
3096   cat >conftest.$ac_ext <<_ACEOF
3097 #line $LINENO "configure"
3098 #include "confdefs.h"
3099
3100 #include <unistd.h>
3101 #include <sys/utsname.h>
3102 main() {
3103 #if _LFS64_LARGEFILE == 1
3104        struct utsname uts;
3105        char *release;
3106        int major, minor;
3107
3108        /* Ensure this is glibc 2.2 or higher */
3109 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3110        int libc_major = __GLIBC__;
3111        int libc_minor = __GLIBC_MINOR__;
3112
3113        if (libc_major < 2)
3114               exit(1);
3115        if (libc_minor < 2)
3116               exit(1);
3117 #endif
3118
3119        /* Ensure this is kernel 2.4 or higher */
3120
3121        uname(&uts);
3122        release = uts.release;
3123        major = atoi(strsep(&release, "."));
3124        minor = atoi(strsep(&release, "."));
3125
3126        if (major > 2 || (major == 2 && minor > 3))
3127                exit(0);
3128        exit(1);
3129 #else
3130        exit(1);
3131 #endif
3132 }
3133
3134 _ACEOF
3135 rm -f conftest$ac_exeext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3137   (eval $ac_link) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142   (eval $ac_try) 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; }; then
3146   LINUX_LFS_SUPPORT=yes
3147 else
3148   echo "$as_me: program exited with status $ac_status" >&5
3149 echo "$as_me: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3151 ( exit $ac_status )
3152 LINUX_LFS_SUPPORT=no
3153 fi
3154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3155 fi
3156         CPPFLAGS="$old_CPPFLAGS"
3157         if test x$LINUX_LFS_SUPPORT = xyes ; then
3158           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3159
3160 cat >>confdefs.h <<\_ACEOF
3161 #define _LARGEFILE64_SOURCE 1
3162 _ACEOF
3163
3164
3165 cat >>confdefs.h <<\_ACEOF
3166 #define _FILE_OFFSET_BITS 64
3167 _ACEOF
3168
3169
3170 cat >>confdefs.h <<\_ACEOF
3171 #define _GNU_SOURCE 1
3172 _ACEOF
3173
3174         fi
3175        echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3176 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3177                 ;;
3178
3179     *hurd*)
3180         echo "$as_me:$LINENO: checking for LFS support" >&5
3181 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3182         old_CPPFLAGS="$CPPFLAGS"
3183         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3184         if test "$cross_compiling" = yes; then
3185   GLIBC_LFS_SUPPORT=cross
3186 else
3187   cat >conftest.$ac_ext <<_ACEOF
3188 #line $LINENO "configure"
3189 #include "confdefs.h"
3190
3191 #include <unistd.h>
3192 main () {
3193 #if _LFS64_LARGEFILE == 1
3194 exit(0);
3195 #else
3196 exit(1);
3197 #endif
3198 }
3199 _ACEOF
3200 rm -f conftest$ac_exeext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3202   (eval $ac_link) 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207   (eval $ac_try) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   GLIBC_LFS_SUPPORT=yes
3212 else
3213   echo "$as_me: program exited with status $ac_status" >&5
3214 echo "$as_me: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3216 ( exit $ac_status )
3217 GLIBC_LFS_SUPPORT=no
3218 fi
3219 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3220 fi
3221         CPPFLAGS="$old_CPPFLAGS"
3222         if test x$GLIBC_LFS_SUPPORT = xyes ; then
3223           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3224
3225 cat >>confdefs.h <<\_ACEOF
3226 #define _LARGEFILE64_SOURCE 1
3227 _ACEOF
3228
3229
3230 cat >>confdefs.h <<\_ACEOF
3231 #define _GNU_SOURCE 1
3232 _ACEOF
3233
3234         fi
3235       echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3236 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3237     ;;
3238
3239 esac
3240
3241 echo "$as_me:$LINENO: checking for inline" >&5
3242 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3243 if test "${ac_cv_c_inline+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246   ac_cv_c_inline=no
3247 for ac_kw in inline __inline__ __inline; do
3248   cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 #ifndef __cplusplus
3252 typedef int foo_t;
3253 static $ac_kw foo_t static_foo () {return 0; }
3254 $ac_kw foo_t foo () {return 0; }
3255 #endif
3256
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260   (eval $ac_compile) 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); } &&
3264          { ac_try='test -s conftest.$ac_objext'
3265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266   (eval $ac_try) 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; }; then
3270   ac_cv_c_inline=$ac_kw; break
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3274 fi
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3276 done
3277
3278 fi
3279 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3280 echo "${ECHO_T}$ac_cv_c_inline" >&6
3281 case $ac_cv_c_inline in
3282   inline | yes) ;;
3283   no)
3284 cat >>confdefs.h <<\_ACEOF
3285 #define inline
3286 _ACEOF
3287  ;;
3288   *)  cat >>confdefs.h <<_ACEOF
3289 #define inline $ac_cv_c_inline
3290 _ACEOF
3291  ;;
3292 esac
3293
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3300 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3301 # On Suns, sometimes $CPP names a directory.
3302 if test -n "$CPP" && test -d "$CPP"; then
3303   CPP=
3304 fi
3305 if test -z "$CPP"; then
3306   if test "${ac_cv_prog_CPP+set}" = set; then
3307   echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309       # Double quotes because CPP needs to be expanded
3310     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3311     do
3312       ac_preproc_ok=false
3313 for ac_c_preproc_warn_flag in '' yes
3314 do
3315   # Use a header file that comes with gcc, so configuring glibc
3316   # with a fresh cross-compiler works.
3317   # On the NeXT, cc -E runs the code through the compiler's parser,
3318   # not just through cpp. "Syntax error" is here to catch this case.
3319   cat >conftest.$ac_ext <<_ACEOF
3320 #line $LINENO "configure"
3321 #include "confdefs.h"
3322 #include <assert.h>
3323                      Syntax error
3324 _ACEOF
3325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3327   ac_status=$?
3328   grep -v '^ *+' conftest.er1 >conftest.err
3329   rm -f conftest.er1
3330   cat conftest.err >&5
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } >/dev/null; then
3333   if test -s conftest.err; then
3334     ac_cpp_err=$ac_c_preproc_warn_flag
3335   else
3336     ac_cpp_err=
3337   fi
3338 else
3339   ac_cpp_err=yes
3340 fi
3341 if test -z "$ac_cpp_err"; then
3342   :
3343 else
3344   echo "$as_me: failed program was:" >&5
3345   cat conftest.$ac_ext >&5
3346   # Broken: fails on valid input.
3347 continue
3348 fi
3349 rm -f conftest.err conftest.$ac_ext
3350
3351   # OK, works on sane cases.  Now check whether non-existent headers
3352   # can be detected and how.
3353   cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 #include "confdefs.h"
3356 #include <ac_nonexistent.h>
3357 _ACEOF
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } >/dev/null; then
3366   if test -s conftest.err; then
3367     ac_cpp_err=$ac_c_preproc_warn_flag
3368   else
3369     ac_cpp_err=
3370   fi
3371 else
3372   ac_cpp_err=yes
3373 fi
3374 if test -z "$ac_cpp_err"; then
3375   # Broken: success on invalid input.
3376 continue
3377 else
3378   echo "$as_me: failed program was:" >&5
3379   cat conftest.$ac_ext >&5
3380   # Passes both tests.
3381 ac_preproc_ok=:
3382 break
3383 fi
3384 rm -f conftest.err conftest.$ac_ext
3385
3386 done
3387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3388 rm -f conftest.err conftest.$ac_ext
3389 if $ac_preproc_ok; then
3390   break
3391 fi
3392
3393     done
3394     ac_cv_prog_CPP=$CPP
3395
3396 fi
3397   CPP=$ac_cv_prog_CPP
3398 else
3399   ac_cv_prog_CPP=$CPP
3400 fi
3401 echo "$as_me:$LINENO: result: $CPP" >&5
3402 echo "${ECHO_T}$CPP" >&6
3403 ac_preproc_ok=false
3404 for ac_c_preproc_warn_flag in '' yes
3405 do
3406   # Use a header file that comes with gcc, so configuring glibc
3407   # with a fresh cross-compiler works.
3408   # On the NeXT, cc -E runs the code through the compiler's parser,
3409   # not just through cpp. "Syntax error" is here to catch this case.
3410   cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3413 #include <assert.h>
3414                      Syntax error
3415 _ACEOF
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } >/dev/null; then
3424   if test -s conftest.err; then
3425     ac_cpp_err=$ac_c_preproc_warn_flag
3426   else
3427     ac_cpp_err=
3428   fi
3429 else
3430   ac_cpp_err=yes
3431 fi
3432 if test -z "$ac_cpp_err"; then
3433   :
3434 else
3435   echo "$as_me: failed program was:" >&5
3436   cat conftest.$ac_ext >&5
3437   # Broken: fails on valid input.
3438 continue
3439 fi
3440 rm -f conftest.err conftest.$ac_ext
3441
3442   # OK, works on sane cases.  Now check whether non-existent headers
3443   # can be detected and how.
3444   cat >conftest.$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3446 #include "confdefs.h"
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459   else
3460     ac_cpp_err=
3461   fi
3462 else
3463   ac_cpp_err=yes
3464 fi
3465 if test -z "$ac_cpp_err"; then
3466   # Broken: success on invalid input.
3467 continue
3468 else
3469   echo "$as_me: failed program was:" >&5
3470   cat conftest.$ac_ext >&5
3471   # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3474 fi
3475 rm -f conftest.err conftest.$ac_ext
3476
3477 done
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3481   :
3482 else
3483   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3484 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3485    { (exit 1); exit 1; }; }
3486 fi
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495 echo "$as_me:$LINENO: checking for egrep" >&5
3496 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3497 if test "${ac_cv_prog_egrep+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3501     then ac_cv_prog_egrep='grep -E'
3502     else ac_cv_prog_egrep='egrep'
3503     fi
3504 fi
3505 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3506 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3507  EGREP=$ac_cv_prog_egrep
3508
3509
3510 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3512 if test "${ac_cv_header_stdc+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   cat >conftest.$ac_ext <<_ACEOF
3516 #line $LINENO "configure"
3517 #include "confdefs.h"
3518 #include <stdlib.h>
3519 #include <stdarg.h>
3520 #include <string.h>
3521 #include <float.h>
3522
3523 _ACEOF
3524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } >/dev/null; then
3532   if test -s conftest.err; then
3533     ac_cpp_err=$ac_c_preproc_warn_flag
3534   else
3535     ac_cpp_err=
3536   fi
3537 else
3538   ac_cpp_err=yes
3539 fi
3540 if test -z "$ac_cpp_err"; then
3541   ac_cv_header_stdc=yes
3542 else
3543   echo "$as_me: failed program was:" >&5
3544   cat conftest.$ac_ext >&5
3545   ac_cv_header_stdc=no
3546 fi
3547 rm -f conftest.err conftest.$ac_ext
3548
3549 if test $ac_cv_header_stdc = yes; then
3550   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3551   cat >conftest.$ac_ext <<_ACEOF
3552 #line $LINENO "configure"
3553 #include "confdefs.h"
3554 #include <string.h>
3555
3556 _ACEOF
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558   $EGREP "memchr" >/dev/null 2>&1; then
3559   :
3560 else
3561   ac_cv_header_stdc=no
3562 fi
3563 rm -f conftest*
3564
3565 fi
3566
3567 if test $ac_cv_header_stdc = yes; then
3568   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3569   cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 #include "confdefs.h"
3572 #include <stdlib.h>
3573
3574 _ACEOF
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576   $EGREP "free" >/dev/null 2>&1; then
3577   :
3578 else
3579   ac_cv_header_stdc=no
3580 fi
3581 rm -f conftest*
3582
3583 fi
3584
3585 if test $ac_cv_header_stdc = yes; then
3586   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3587   if test "$cross_compiling" = yes; then
3588   :
3589 else
3590   cat >conftest.$ac_ext <<_ACEOF
3591 #line $LINENO "configure"
3592 #include "confdefs.h"
3593 #include <ctype.h>
3594 #if ((' ' & 0x0FF) == 0x020)
3595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3597 #else
3598 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3599                      || ('j' <= (c) && (c) <= 'r') \
3600                      || ('s' <= (c) && (c) <= 'z'))
3601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3602 #endif
3603
3604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3605 int
3606 main ()
3607 {
3608   int i;
3609   for (i = 0; i < 256; i++)
3610     if (XOR (islower (i), ISLOWER (i))
3611         || toupper (i) != TOUPPER (i))
3612       exit(2);
3613   exit (0);
3614 }
3615 _ACEOF
3616 rm -f conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618   (eval $ac_link) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   :
3628 else
3629   echo "$as_me: program exited with status $ac_status" >&5
3630 echo "$as_me: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 ( exit $ac_status )
3633 ac_cv_header_stdc=no
3634 fi
3635 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3636 fi
3637 fi
3638 fi
3639 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3640 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3641 if test $ac_cv_header_stdc = yes; then
3642
3643 cat >>confdefs.h <<\_ACEOF
3644 #define STDC_HEADERS 1
3645 _ACEOF
3646
3647 fi
3648
3649
3650
3651
3652
3653
3654 ac_header_dirent=no
3655 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3656   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3657 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3658 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 #include "confdefs.h"
3665 #include <sys/types.h>
3666 #include <$ac_hdr>
3667
3668 int
3669 main ()
3670 {
3671 if ((DIR *) 0)
3672 return 0;
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3679   (eval $ac_compile) 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } &&
3683          { ac_try='test -s conftest.$ac_objext'
3684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685   (eval $ac_try) 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); }; }; then
3689   eval "$as_ac_Header=yes"
3690 else
3691   echo "$as_me: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3693 eval "$as_ac_Header=no"
3694 fi
3695 rm -f conftest.$ac_objext conftest.$ac_ext
3696 fi
3697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3700   cat >>confdefs.h <<_ACEOF
3701 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3702 _ACEOF
3703
3704 ac_header_dirent=$ac_hdr; break
3705 fi
3706
3707 done
3708 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3709 if test $ac_header_dirent = dirent.h; then
3710   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3711 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3712 if test "${ac_cv_search_opendir+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   ac_func_search_save_LIBS=$LIBS
3716 ac_cv_search_opendir=no
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line $LINENO "configure"
3719 #include "confdefs.h"
3720
3721 /* Override any gcc2 internal prototype to avoid an error.  */
3722 #ifdef __cplusplus
3723 extern "C"
3724 #endif
3725 /* We use char because int might match the return type of a gcc2
3726    builtin and then its argument prototype would still apply.  */
3727 char opendir ();
3728 int
3729 main ()
3730 {
3731 opendir ();
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 rm -f conftest.$ac_objext conftest$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738   (eval $ac_link) 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); } &&
3742          { ac_try='test -s conftest$ac_exeext'
3743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744   (eval $ac_try) 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); }; }; then
3748   ac_cv_search_opendir="none required"
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3752 fi
3753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3754 if test "$ac_cv_search_opendir" = no; then
3755   for ac_lib in dir; do
3756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3757     cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 #include "confdefs.h"
3760
3761 /* Override any gcc2 internal prototype to avoid an error.  */
3762 #ifdef __cplusplus
3763 extern "C"
3764 #endif
3765 /* We use char because int might match the return type of a gcc2
3766    builtin and then its argument prototype would still apply.  */
3767 char opendir ();
3768 int
3769 main ()
3770 {
3771 opendir ();
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778   (eval $ac_link) 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } &&
3782          { ac_try='test -s conftest$ac_exeext'
3783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784   (eval $ac_try) 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); }; }; then
3788   ac_cv_search_opendir="-l$ac_lib"
3789 break
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 fi
3794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3795   done
3796 fi
3797 LIBS=$ac_func_search_save_LIBS
3798 fi
3799 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3800 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3801 if test "$ac_cv_search_opendir" != no; then
3802   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3803
3804 fi
3805
3806 else
3807   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3809 if test "${ac_cv_search_opendir+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   ac_func_search_save_LIBS=$LIBS
3813 ac_cv_search_opendir=no
3814 cat >conftest.$ac_ext <<_ACEOF
3815 #line $LINENO "configure"
3816 #include "confdefs.h"
3817
3818 /* Override any gcc2 internal prototype to avoid an error.  */
3819 #ifdef __cplusplus
3820 extern "C"
3821 #endif
3822 /* We use char because int might match the return type of a gcc2
3823    builtin and then its argument prototype would still apply.  */
3824 char opendir ();
3825 int
3826 main ()
3827 {
3828 opendir ();
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 rm -f conftest.$ac_objext conftest$ac_exeext
3834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3835   (eval $ac_link) 2>&5
3836   ac_status=$?
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } &&
3839          { ac_try='test -s conftest$ac_exeext'
3840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841   (eval $ac_try) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; }; then
3845   ac_cv_search_opendir="none required"
3846 else
3847   echo "$as_me: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 fi
3850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3851 if test "$ac_cv_search_opendir" = no; then
3852   for ac_lib in x; do
3853     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3854     cat >conftest.$ac_ext <<_ACEOF
3855 #line $LINENO "configure"
3856 #include "confdefs.h"
3857
3858 /* Override any gcc2 internal prototype to avoid an error.  */
3859 #ifdef __cplusplus
3860 extern "C"
3861 #endif
3862 /* We use char because int might match the return type of a gcc2
3863    builtin and then its argument prototype would still apply.  */
3864 char opendir ();
3865 int
3866 main ()
3867 {
3868 opendir ();
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875   (eval $ac_link) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); } &&
3879          { ac_try='test -s conftest$ac_exeext'
3880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881   (eval $ac_try) 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; }; then
3885   ac_cv_search_opendir="-l$ac_lib"
3886 break
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 fi
3891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3892   done
3893 fi
3894 LIBS=$ac_func_search_save_LIBS
3895 fi
3896 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3897 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3898 if test "$ac_cv_search_opendir" != no; then
3899   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3900
3901 fi
3902
3903 fi
3904
3905 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3906 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3907 if test "${ac_cv_header_time+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   cat >conftest.$ac_ext <<_ACEOF
3911 #line $LINENO "configure"
3912 #include "confdefs.h"
3913 #include <sys/types.h>
3914 #include <sys/time.h>
3915 #include <time.h>
3916
3917 int
3918 main ()
3919 {
3920 if ((struct tm *) 0)
3921 return 0;
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 rm -f conftest.$ac_objext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928   (eval $ac_compile) 2>&5
3929   ac_status=$?
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } &&
3932          { ac_try='test -s conftest.$ac_objext'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; }; then
3938   ac_cv_header_time=yes
3939 else
3940   echo "$as_me: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 ac_cv_header_time=no
3943 fi
3944 rm -f conftest.$ac_objext conftest.$ac_ext
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3947 echo "${ECHO_T}$ac_cv_header_time" >&6
3948 if test $ac_cv_header_time = yes; then
3949
3950 cat >>confdefs.h <<\_ACEOF
3951 #define TIME_WITH_SYS_TIME 1
3952 _ACEOF
3953
3954 fi
3955
3956 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3957 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3958 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   cat >conftest.$ac_ext <<_ACEOF
3962 #line $LINENO "configure"
3963 #include "confdefs.h"
3964 #include <sys/types.h>
3965 #include <sys/wait.h>
3966 #ifndef WEXITSTATUS
3967 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3968 #endif
3969 #ifndef WIFEXITED
3970 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3971 #endif
3972
3973 int
3974 main ()
3975 {
3976   int s;
3977   wait (&s);
3978   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3979   ;
3980   return 0;
3981 }
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985   (eval $ac_compile) 2>&5
3986   ac_status=$?
3987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); } &&
3989          { ac_try='test -s conftest.$ac_objext'
3990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991   (eval $ac_try) 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); }; }; then
3995   ac_cv_header_sys_wait_h=yes
3996 else
3997   echo "$as_me: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
3999 ac_cv_header_sys_wait_h=no
4000 fi
4001 rm -f conftest.$ac_objext conftest.$ac_ext
4002 fi
4003 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4004 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4005 if test $ac_cv_header_sys_wait_h = yes; then
4006
4007 cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_SYS_WAIT_H 1
4009 _ACEOF
4010
4011 fi
4012
4013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4024                   inttypes.h stdint.h unistd.h
4025 do
4026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4027 echo "$as_me:$LINENO: checking for $ac_header" >&5
4028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   cat >conftest.$ac_ext <<_ACEOF
4033 #line $LINENO "configure"
4034 #include "confdefs.h"
4035 $ac_includes_default
4036
4037 #include <$ac_header>
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041   (eval $ac_compile) 2>&5
4042   ac_status=$?
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } &&
4045          { ac_try='test -s conftest.$ac_objext'
4046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047   (eval $ac_try) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); }; }; then
4051   eval "$as_ac_Header=yes"
4052 else
4053   echo "$as_me: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4055 eval "$as_ac_Header=no"
4056 fi
4057 rm -f conftest.$ac_objext conftest.$ac_ext
4058 fi
4059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4062   cat >>confdefs.h <<_ACEOF
4063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4064 _ACEOF
4065
4066 fi
4067
4068 done
4069
4070
4071
4072
4073
4074
4075
4076
4077 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4078 do
4079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081   echo "$as_me:$LINENO: checking for $ac_header" >&5
4082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 fi
4086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4088 else
4089   # Is the header compilable?
4090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4094 #include "confdefs.h"
4095 $ac_includes_default
4096 #include <$ac_header>
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100   (eval $ac_compile) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } &&
4104          { ac_try='test -s conftest.$ac_objext'
4105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106   (eval $ac_try) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; }; then
4110   ac_header_compiler=yes
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4114 ac_header_compiler=no
4115 fi
4116 rm -f conftest.$ac_objext conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4118 echo "${ECHO_T}$ac_header_compiler" >&6
4119
4120 # Is the header present?
4121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4123 cat >conftest.$ac_ext <<_ACEOF
4124 #line $LINENO "configure"
4125 #include "confdefs.h"
4126 #include <$ac_header>
4127 _ACEOF
4128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } >/dev/null; then
4136   if test -s conftest.err; then
4137     ac_cpp_err=$ac_c_preproc_warn_flag
4138   else
4139     ac_cpp_err=
4140   fi
4141 else
4142   ac_cpp_err=yes
4143 fi
4144 if test -z "$ac_cpp_err"; then
4145   ac_header_preproc=yes
4146 else
4147   echo "$as_me: failed program was:" >&5
4148   cat conftest.$ac_ext >&5
4149   ac_header_preproc=no
4150 fi
4151 rm -f conftest.err conftest.$ac_ext
4152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4153 echo "${ECHO_T}$ac_header_preproc" >&6
4154
4155 # So?  What about this header?
4156 case $ac_header_compiler:$ac_header_preproc in
4157   yes:no )
4158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4162   no:yes )
4163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4165     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4169 esac
4170 echo "$as_me:$LINENO: checking for $ac_header" >&5
4171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175   eval "$as_ac_Header=$ac_header_preproc"
4176 fi
4177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4179
4180 fi
4181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4182   cat >>confdefs.h <<_ACEOF
4183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4184 _ACEOF
4185
4186 fi
4187
4188 done
4189
4190
4191
4192
4193
4194
4195
4196
4197 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4198 do
4199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201   echo "$as_me:$LINENO: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 fi
4206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4208 else
4209   # Is the header compilable?
4210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line $LINENO "configure"
4214 #include "confdefs.h"
4215 $ac_includes_default
4216 #include <$ac_header>
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220   (eval $ac_compile) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -s conftest.$ac_objext'
4225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226   (eval $ac_try) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; }; then
4230   ac_header_compiler=yes
4231 else
4232   echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 ac_header_compiler=no
4235 fi
4236 rm -f conftest.$ac_objext conftest.$ac_ext
4237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4238 echo "${ECHO_T}$ac_header_compiler" >&6
4239
4240 # Is the header present?
4241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4243 cat >conftest.$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4245 #include "confdefs.h"
4246 #include <$ac_header>
4247 _ACEOF
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } >/dev/null; then
4256   if test -s conftest.err; then
4257     ac_cpp_err=$ac_c_preproc_warn_flag
4258   else
4259     ac_cpp_err=
4260   fi
4261 else
4262   ac_cpp_err=yes
4263 fi
4264 if test -z "$ac_cpp_err"; then
4265   ac_header_preproc=yes
4266 else
4267   echo "$as_me: failed program was:" >&5
4268   cat conftest.$ac_ext >&5
4269   ac_header_preproc=no
4270 fi
4271 rm -f conftest.err conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4273 echo "${ECHO_T}$ac_header_preproc" >&6
4274
4275 # So?  What about this header?
4276 case $ac_header_compiler:$ac_header_preproc in
4277   yes:no )
4278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4282   no:yes )
4283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4285     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4289 esac
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   eval "$as_ac_Header=$ac_header_preproc"
4296 fi
4297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4299
4300 fi
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302   cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4305
4306 fi
4307
4308 done
4309
4310
4311
4312
4313
4314
4315 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4316 do
4317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319   echo "$as_me:$LINENO: checking for $ac_header" >&5
4320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 fi
4324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4326 else
4327   # Is the header compilable?
4328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4331 #line $LINENO "configure"
4332 #include "confdefs.h"
4333 $ac_includes_default
4334 #include <$ac_header>
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338   (eval $ac_compile) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); } &&
4342          { ac_try='test -s conftest.$ac_objext'
4343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344   (eval $ac_try) 2>&5
4345   ac_status=$?
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); }; }; then
4348   ac_header_compiler=yes
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 ac_header_compiler=no
4353 fi
4354 rm -f conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4356 echo "${ECHO_T}$ac_header_compiler" >&6
4357
4358 # Is the header present?
4359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4362 #line $LINENO "configure"
4363 #include "confdefs.h"
4364 #include <$ac_header>
4365 _ACEOF
4366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } >/dev/null; then
4374   if test -s conftest.err; then
4375     ac_cpp_err=$ac_c_preproc_warn_flag
4376   else
4377     ac_cpp_err=
4378   fi
4379 else
4380   ac_cpp_err=yes
4381 fi
4382 if test -z "$ac_cpp_err"; then
4383   ac_header_preproc=yes
4384 else
4385   echo "$as_me: failed program was:" >&5
4386   cat conftest.$ac_ext >&5
4387   ac_header_preproc=no
4388 fi
4389 rm -f conftest.err conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4391 echo "${ECHO_T}$ac_header_preproc" >&6
4392
4393 # So?  What about this header?
4394 case $ac_header_compiler:$ac_header_preproc in
4395   yes:no )
4396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4400   no:yes )
4401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4403     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4407 esac
4408 echo "$as_me:$LINENO: checking for $ac_header" >&5
4409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   eval "$as_ac_Header=$ac_header_preproc"
4414 fi
4415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4417
4418 fi
4419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4420   cat >>confdefs.h <<_ACEOF
4421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422 _ACEOF
4423
4424 fi
4425
4426 done
4427
4428
4429
4430
4431
4432
4433
4434
4435 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4436 do
4437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439   echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 fi
4444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4446 else
4447   # Is the header compilable?
4448 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4450 cat >conftest.$ac_ext <<_ACEOF
4451 #line $LINENO "configure"
4452 #include "confdefs.h"
4453 $ac_includes_default
4454 #include <$ac_header>
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458   (eval $ac_compile) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   ac_header_compiler=yes
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 ac_header_compiler=no
4473 fi
4474 rm -f conftest.$ac_objext conftest.$ac_ext
4475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4476 echo "${ECHO_T}$ac_header_compiler" >&6
4477
4478 # Is the header present?
4479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4484 #include <$ac_header>
4485 _ACEOF
4486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4488   ac_status=$?
4489   grep -v '^ *+' conftest.er1 >conftest.err
4490   rm -f conftest.er1
4491   cat conftest.err >&5
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); } >/dev/null; then
4494   if test -s conftest.err; then
4495     ac_cpp_err=$ac_c_preproc_warn_flag
4496   else
4497     ac_cpp_err=
4498   fi
4499 else
4500   ac_cpp_err=yes
4501 fi
4502 if test -z "$ac_cpp_err"; then
4503   ac_header_preproc=yes
4504 else
4505   echo "$as_me: failed program was:" >&5
4506   cat conftest.$ac_ext >&5
4507   ac_header_preproc=no
4508 fi
4509 rm -f conftest.err conftest.$ac_ext
4510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4511 echo "${ECHO_T}$ac_header_preproc" >&6
4512
4513 # So?  What about this header?
4514 case $ac_header_compiler:$ac_header_preproc in
4515   yes:no )
4516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4520   no:yes )
4521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4523     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4527 esac
4528 echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   eval "$as_ac_Header=$ac_header_preproc"
4534 fi
4535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4537
4538 fi
4539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4540   cat >>confdefs.h <<_ACEOF
4541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4542 _ACEOF
4543
4544 fi
4545
4546 done
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
4557 do
4558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560   echo "$as_me:$LINENO: checking for $ac_header" >&5
4561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 fi
4565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4567 else
4568   # Is the header compilable?
4569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 #include "confdefs.h"
4574 $ac_includes_default
4575 #include <$ac_header>
4576 _ACEOF
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579   (eval $ac_compile) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } &&
4583          { ac_try='test -s conftest.$ac_objext'
4584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585   (eval $ac_try) 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); }; }; then
4589   ac_header_compiler=yes
4590 else
4591   echo "$as_me: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 ac_header_compiler=no
4594 fi
4595 rm -f conftest.$ac_objext conftest.$ac_ext
4596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4597 echo "${ECHO_T}$ac_header_compiler" >&6
4598
4599 # Is the header present?
4600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4602 cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 #include "confdefs.h"
4605 #include <$ac_header>
4606 _ACEOF
4607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } >/dev/null; then
4615   if test -s conftest.err; then
4616     ac_cpp_err=$ac_c_preproc_warn_flag
4617   else
4618     ac_cpp_err=
4619   fi
4620 else
4621   ac_cpp_err=yes
4622 fi
4623 if test -z "$ac_cpp_err"; then
4624   ac_header_preproc=yes
4625 else
4626   echo "$as_me: failed program was:" >&5
4627   cat conftest.$ac_ext >&5
4628   ac_header_preproc=no
4629 fi
4630 rm -f conftest.err conftest.$ac_ext
4631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4632 echo "${ECHO_T}$ac_header_preproc" >&6
4633
4634 # So?  What about this header?
4635 case $ac_header_compiler:$ac_header_preproc in
4636   yes:no )
4637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4641   no:yes )
4642     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4644     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4648 esac
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   eval "$as_ac_Header=$ac_header_preproc"
4655 fi
4656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4658
4659 fi
4660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4661   cat >>confdefs.h <<_ACEOF
4662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4663 _ACEOF
4664
4665 fi
4666
4667 done
4668
4669
4670
4671
4672
4673
4674
4675 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4676 do
4677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4679   echo "$as_me:$LINENO: checking for $ac_header" >&5
4680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 fi
4684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4686 else
4687   # Is the header compilable?
4688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4691 #line $LINENO "configure"
4692 #include "confdefs.h"
4693 $ac_includes_default
4694 #include <$ac_header>
4695 _ACEOF
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698   (eval $ac_compile) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -s conftest.$ac_objext'
4703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704   (eval $ac_try) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; }; then
4708   ac_header_compiler=yes
4709 else
4710   echo "$as_me: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4712 ac_header_compiler=no
4713 fi
4714 rm -f conftest.$ac_objext conftest.$ac_ext
4715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4716 echo "${ECHO_T}$ac_header_compiler" >&6
4717
4718 # Is the header present?
4719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4721 cat >conftest.$ac_ext <<_ACEOF
4722 #line $LINENO "configure"
4723 #include "confdefs.h"
4724 #include <$ac_header>
4725 _ACEOF
4726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } >/dev/null; then
4734   if test -s conftest.err; then
4735     ac_cpp_err=$ac_c_preproc_warn_flag
4736   else
4737     ac_cpp_err=
4738   fi
4739 else
4740   ac_cpp_err=yes
4741 fi
4742 if test -z "$ac_cpp_err"; then
4743   ac_header_preproc=yes
4744 else
4745   echo "$as_me: failed program was:" >&5
4746   cat conftest.$ac_ext >&5
4747   ac_header_preproc=no
4748 fi
4749 rm -f conftest.err conftest.$ac_ext
4750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4751 echo "${ECHO_T}$ac_header_preproc" >&6
4752
4753 # So?  What about this header?
4754 case $ac_header_compiler:$ac_header_preproc in
4755   yes:no )
4756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4760   no:yes )
4761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4763     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4767 esac
4768 echo "$as_me:$LINENO: checking for $ac_header" >&5
4769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   eval "$as_ac_Header=$ac_header_preproc"
4774 fi
4775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4777
4778 fi
4779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4780   cat >>confdefs.h <<_ACEOF
4781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782 _ACEOF
4783
4784 fi
4785
4786 done
4787
4788
4789
4790
4791
4792
4793
4794 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4795 do
4796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4798   echo "$as_me:$LINENO: checking for $ac_header" >&5
4799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 fi
4803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4805 else
4806   # Is the header compilable?
4807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4811 #include "confdefs.h"
4812 $ac_includes_default
4813 #include <$ac_header>
4814 _ACEOF
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817   (eval $ac_compile) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } &&
4821          { ac_try='test -s conftest.$ac_objext'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; }; then
4827   ac_header_compiler=yes
4828 else
4829   echo "$as_me: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4831 ac_header_compiler=no
4832 fi
4833 rm -f conftest.$ac_objext conftest.$ac_ext
4834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4835 echo "${ECHO_T}$ac_header_compiler" >&6
4836
4837 # Is the header present?
4838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4840 cat >conftest.$ac_ext <<_ACEOF
4841 #line $LINENO "configure"
4842 #include "confdefs.h"
4843 #include <$ac_header>
4844 _ACEOF
4845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } >/dev/null; then
4853   if test -s conftest.err; then
4854     ac_cpp_err=$ac_c_preproc_warn_flag
4855   else
4856     ac_cpp_err=
4857   fi
4858 else
4859   ac_cpp_err=yes
4860 fi
4861 if test -z "$ac_cpp_err"; then
4862   ac_header_preproc=yes
4863 else
4864   echo "$as_me: failed program was:" >&5
4865   cat conftest.$ac_ext >&5
4866   ac_header_preproc=no
4867 fi
4868 rm -f conftest.err conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4871
4872 # So?  What about this header?
4873 case $ac_header_compiler:$ac_header_preproc in
4874   yes:no )
4875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4879   no:yes )
4880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4882     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4886 esac
4887 echo "$as_me:$LINENO: checking for $ac_header" >&5
4888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   eval "$as_ac_Header=$ac_header_preproc"
4893 fi
4894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4896
4897 fi
4898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4899   cat >>confdefs.h <<_ACEOF
4900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4901 _ACEOF
4902
4903 fi
4904
4905 done
4906
4907
4908
4909
4910
4911
4912 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4913 do
4914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4916   echo "$as_me:$LINENO: checking for $ac_header" >&5
4917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 fi
4921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4923 else
4924   # Is the header compilable?
4925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4927 cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 #include "confdefs.h"
4930 $ac_includes_default
4931 #include <$ac_header>
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935   (eval $ac_compile) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } &&
4939          { ac_try='test -s conftest.$ac_objext'
4940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941   (eval $ac_try) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; }; then
4945   ac_header_compiler=yes
4946 else
4947   echo "$as_me: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4949 ac_header_compiler=no
4950 fi
4951 rm -f conftest.$ac_objext conftest.$ac_ext
4952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4953 echo "${ECHO_T}$ac_header_compiler" >&6
4954
4955 # Is the header present?
4956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4958 cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 #include "confdefs.h"
4961 #include <$ac_header>
4962 _ACEOF
4963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4965   ac_status=$?
4966   grep -v '^ *+' conftest.er1 >conftest.err
4967   rm -f conftest.er1
4968   cat conftest.err >&5
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } >/dev/null; then
4971   if test -s conftest.err; then
4972     ac_cpp_err=$ac_c_preproc_warn_flag
4973   else
4974     ac_cpp_err=
4975   fi
4976 else
4977   ac_cpp_err=yes
4978 fi
4979 if test -z "$ac_cpp_err"; then
4980   ac_header_preproc=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983   cat conftest.$ac_ext >&5
4984   ac_header_preproc=no
4985 fi
4986 rm -f conftest.err conftest.$ac_ext
4987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4988 echo "${ECHO_T}$ac_header_preproc" >&6
4989
4990 # So?  What about this header?
4991 case $ac_header_compiler:$ac_header_preproc in
4992   yes:no )
4993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4997   no:yes )
4998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5000     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5004 esac
5005 echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   eval "$as_ac_Header=$ac_header_preproc"
5011 fi
5012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5014
5015 fi
5016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5017   cat >>confdefs.h <<_ACEOF
5018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5019 _ACEOF
5020
5021 fi
5022
5023 done
5024
5025
5026
5027 for ac_header in sys/syslog.h syslog.h
5028 do
5029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5031   echo "$as_me:$LINENO: checking for $ac_header" >&5
5032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 fi
5036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5038 else
5039   # Is the header compilable?
5040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 #include "confdefs.h"
5045 $ac_includes_default
5046 #include <$ac_header>
5047 _ACEOF
5048 rm -f conftest.$ac_objext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5050   (eval $ac_compile) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } &&
5054          { ac_try='test -s conftest.$ac_objext'
5055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056   (eval $ac_try) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); }; }; then
5060   ac_header_compiler=yes
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5064 ac_header_compiler=no
5065 fi
5066 rm -f conftest.$ac_objext conftest.$ac_ext
5067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068 echo "${ECHO_T}$ac_header_compiler" >&6
5069
5070 # Is the header present?
5071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5073 cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5075 #include "confdefs.h"
5076 #include <$ac_header>
5077 _ACEOF
5078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5080   ac_status=$?
5081   grep -v '^ *+' conftest.er1 >conftest.err
5082   rm -f conftest.er1
5083   cat conftest.err >&5
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } >/dev/null; then
5086   if test -s conftest.err; then
5087     ac_cpp_err=$ac_c_preproc_warn_flag
5088   else
5089     ac_cpp_err=
5090   fi
5091 else
5092   ac_cpp_err=yes
5093 fi
5094 if test -z "$ac_cpp_err"; then
5095   ac_header_preproc=yes
5096 else
5097   echo "$as_me: failed program was:" >&5
5098   cat conftest.$ac_ext >&5
5099   ac_header_preproc=no
5100 fi
5101 rm -f conftest.err conftest.$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 echo "${ECHO_T}$ac_header_preproc" >&6
5104
5105 # So?  What about this header?
5106 case $ac_header_compiler:$ac_header_preproc in
5107   yes:no )
5108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5112   no:yes )
5113     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5115     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5119 esac
5120 echo "$as_me:$LINENO: checking for $ac_header" >&5
5121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125   eval "$as_ac_Header=$ac_header_preproc"
5126 fi
5127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5129
5130 fi
5131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5132   cat >>confdefs.h <<_ACEOF
5133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5134 _ACEOF
5135
5136 fi
5137
5138 done
5139
5140
5141 #
5142 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5143 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5144 #
5145 case "$host_os" in
5146     *hpux*)
5147                 cat >conftest.$ac_ext <<_ACEOF
5148 #line $LINENO "configure"
5149 #include "confdefs.h"
5150 #include <shadow.h>
5151 int
5152 main ()
5153 {
5154 struct spwd testme
5155   ;
5156   return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161   (eval $ac_compile) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } &&
5165          { ac_try='test -s conftest.$ac_objext'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; }; then
5171   ac_cv_header_shadow_h=yes
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 ac_cv_header_shadow_h=no
5176 fi
5177 rm -f conftest.$ac_objext conftest.$ac_ext
5178                 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5179
5180 cat >>confdefs.h <<\_ACEOF
5181 #define HAVE_SHADOW_H 1
5182 _ACEOF
5183
5184                 fi
5185         ;;
5186 esac
5187
5188
5189
5190
5191
5192 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5193 do
5194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196   echo "$as_me:$LINENO: checking for $ac_header" >&5
5197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 fi
5201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5203 else
5204   # Is the header compilable?
5205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5209 #include "confdefs.h"
5210 $ac_includes_default
5211 #include <$ac_header>
5212 _ACEOF
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215   (eval $ac_compile) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); } &&
5219          { ac_try='test -s conftest.$ac_objext'
5220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221   (eval $ac_try) 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); }; }; then
5225   ac_header_compiler=yes
5226 else
5227   echo "$as_me: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5229 ac_header_compiler=no
5230 fi
5231 rm -f conftest.$ac_objext conftest.$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233 echo "${ECHO_T}$ac_header_compiler" >&6
5234
5235 # Is the header present?
5236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5239 #line $LINENO "configure"
5240 #include "confdefs.h"
5241 #include <$ac_header>
5242 _ACEOF
5243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245   ac_status=$?
5246   grep -v '^ *+' conftest.er1 >conftest.err
5247   rm -f conftest.er1
5248   cat conftest.err >&5
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } >/dev/null; then
5251   if test -s conftest.err; then
5252     ac_cpp_err=$ac_c_preproc_warn_flag
5253   else
5254     ac_cpp_err=
5255   fi
5256 else
5257   ac_cpp_err=yes
5258 fi
5259 if test -z "$ac_cpp_err"; then
5260   ac_header_preproc=yes
5261 else
5262   echo "$as_me: failed program was:" >&5
5263   cat conftest.$ac_ext >&5
5264   ac_header_preproc=no
5265 fi
5266 rm -f conftest.err conftest.$ac_ext
5267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5268 echo "${ECHO_T}$ac_header_preproc" >&6
5269
5270 # So?  What about this header?
5271 case $ac_header_compiler:$ac_header_preproc in
5272   yes:no )
5273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5277   no:yes )
5278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5280     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5284 esac
5285 echo "$as_me:$LINENO: checking for $ac_header" >&5
5286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288   echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290   eval "$as_ac_Header=$ac_header_preproc"
5291 fi
5292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5294
5295 fi
5296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5297   cat >>confdefs.h <<_ACEOF
5298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5299 _ACEOF
5300
5301 fi
5302
5303 done
5304
5305
5306
5307
5308
5309
5310
5311 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5312 do
5313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5315   echo "$as_me:$LINENO: checking for $ac_header" >&5
5316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 fi
5320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5322 else
5323   # Is the header compilable?
5324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 #include "confdefs.h"
5329 $ac_includes_default
5330 #include <$ac_header>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334   (eval $ac_compile) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_header_compiler=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 ac_header_compiler=no
5349 fi
5350 rm -f conftest.$ac_objext conftest.$ac_ext
5351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5352 echo "${ECHO_T}$ac_header_compiler" >&6
5353
5354 # Is the header present?
5355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5359 #include "confdefs.h"
5360 #include <$ac_header>
5361 _ACEOF
5362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5364   ac_status=$?
5365   grep -v '^ *+' conftest.er1 >conftest.err
5366   rm -f conftest.er1
5367   cat conftest.err >&5
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } >/dev/null; then
5370   if test -s conftest.err; then
5371     ac_cpp_err=$ac_c_preproc_warn_flag
5372   else
5373     ac_cpp_err=
5374   fi
5375 else
5376   ac_cpp_err=yes
5377 fi
5378 if test -z "$ac_cpp_err"; then
5379   ac_header_preproc=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382   cat conftest.$ac_ext >&5
5383   ac_header_preproc=no
5384 fi
5385 rm -f conftest.err conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5388
5389 # So?  What about this header?
5390 case $ac_header_compiler:$ac_header_preproc in
5391   yes:no )
5392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5396   no:yes )
5397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5399     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5403 esac
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   eval "$as_ac_Header=$ac_header_preproc"
5410 fi
5411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5413
5414 fi
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416   cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418 _ACEOF
5419
5420 fi
5421
5422 done
5423
5424
5425
5426 for ac_header in stropts.h poll.h
5427 do
5428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430   echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 fi
5435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5437 else
5438   # Is the header compilable?
5439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5441 cat >conftest.$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5443 #include "confdefs.h"
5444 $ac_includes_default
5445 #include <$ac_header>
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449   (eval $ac_compile) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } &&
5453          { ac_try='test -s conftest.$ac_objext'
5454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); }; }; then
5459   ac_header_compiler=yes
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5463 ac_header_compiler=no
5464 fi
5465 rm -f conftest.$ac_objext conftest.$ac_ext
5466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5467 echo "${ECHO_T}$ac_header_compiler" >&6
5468
5469 # Is the header present?
5470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5472 cat >conftest.$ac_ext <<_ACEOF
5473 #line $LINENO "configure"
5474 #include "confdefs.h"
5475 #include <$ac_header>
5476 _ACEOF
5477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479   ac_status=$?
5480   grep -v '^ *+' conftest.er1 >conftest.err
5481   rm -f conftest.er1
5482   cat conftest.err >&5
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } >/dev/null; then
5485   if test -s conftest.err; then
5486     ac_cpp_err=$ac_c_preproc_warn_flag
5487   else
5488     ac_cpp_err=
5489   fi
5490 else
5491   ac_cpp_err=yes
5492 fi
5493 if test -z "$ac_cpp_err"; then
5494   ac_header_preproc=yes
5495 else
5496   echo "$as_me: failed program was:" >&5
5497   cat conftest.$ac_ext >&5
5498   ac_header_preproc=no
5499 fi
5500 rm -f conftest.err conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5502 echo "${ECHO_T}$ac_header_preproc" >&6
5503
5504 # So?  What about this header?
5505 case $ac_header_compiler:$ac_header_preproc in
5506   yes:no )
5507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5511   no:yes )
5512     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5514     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5518 esac
5519 echo "$as_me:$LINENO: checking for $ac_header" >&5
5520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   eval "$as_ac_Header=$ac_header_preproc"
5525 fi
5526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5528
5529 fi
5530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5531   cat >>confdefs.h <<_ACEOF
5532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5533 _ACEOF
5534
5535 fi
5536
5537 done
5538
5539
5540
5541
5542 for ac_header in sys/capability.h syscall.h sys/syscall.h
5543 do
5544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5546   echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 fi
5551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5553 else
5554   # Is the header compilable?
5555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5557 cat >conftest.$ac_ext <<_ACEOF
5558 #line $LINENO "configure"
5559 #include "confdefs.h"
5560 $ac_includes_default
5561 #include <$ac_header>
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565   (eval $ac_compile) 2>&5
5566   ac_status=$?
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); } &&
5569          { ac_try='test -s conftest.$ac_objext'
5570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571   (eval $ac_try) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; }; then
5575   ac_header_compiler=yes
5576 else
5577   echo "$as_me: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5579 ac_header_compiler=no
5580 fi
5581 rm -f conftest.$ac_objext conftest.$ac_ext
5582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5583 echo "${ECHO_T}$ac_header_compiler" >&6
5584
5585 # Is the header present?
5586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5588 cat >conftest.$ac_ext <<_ACEOF
5589 #line $LINENO "configure"
5590 #include "confdefs.h"
5591 #include <$ac_header>
5592 _ACEOF
5593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } >/dev/null; then
5601   if test -s conftest.err; then
5602     ac_cpp_err=$ac_c_preproc_warn_flag
5603   else
5604     ac_cpp_err=
5605   fi
5606 else
5607   ac_cpp_err=yes
5608 fi
5609 if test -z "$ac_cpp_err"; then
5610   ac_header_preproc=yes
5611 else
5612   echo "$as_me: failed program was:" >&5
5613   cat conftest.$ac_ext >&5
5614   ac_header_preproc=no
5615 fi
5616 rm -f conftest.err conftest.$ac_ext
5617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5618 echo "${ECHO_T}$ac_header_preproc" >&6
5619
5620 # So?  What about this header?
5621 case $ac_header_compiler:$ac_header_preproc in
5622   yes:no )
5623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5627   no:yes )
5628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5630     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5634 esac
5635 echo "$as_me:$LINENO: checking for $ac_header" >&5
5636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   eval "$as_ac_Header=$ac_header_preproc"
5641 fi
5642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5644
5645 fi
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647   cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649 _ACEOF
5650
5651 fi
5652
5653 done
5654
5655
5656
5657
5658 for ac_header in sys/acl.h sys/cdefs.h glob.h
5659 do
5660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5662   echo "$as_me:$LINENO: checking for $ac_header" >&5
5663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 fi
5667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5669 else
5670   # Is the header compilable?
5671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5673 cat >conftest.$ac_ext <<_ACEOF
5674 #line $LINENO "configure"
5675 #include "confdefs.h"
5676 $ac_includes_default
5677 #include <$ac_header>
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681   (eval $ac_compile) 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } &&
5685          { ac_try='test -s conftest.$ac_objext'
5686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687   (eval $ac_try) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; }; then
5691   ac_header_compiler=yes
5692 else
5693   echo "$as_me: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5695 ac_header_compiler=no
5696 fi
5697 rm -f conftest.$ac_objext conftest.$ac_ext
5698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5699 echo "${ECHO_T}$ac_header_compiler" >&6
5700
5701 # Is the header present?
5702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5706 #include "confdefs.h"
5707 #include <$ac_header>
5708 _ACEOF
5709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5711   ac_status=$?
5712   grep -v '^ *+' conftest.er1 >conftest.err
5713   rm -f conftest.er1
5714   cat conftest.err >&5
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); } >/dev/null; then
5717   if test -s conftest.err; then
5718     ac_cpp_err=$ac_c_preproc_warn_flag
5719   else
5720     ac_cpp_err=
5721   fi
5722 else
5723   ac_cpp_err=yes
5724 fi
5725 if test -z "$ac_cpp_err"; then
5726   ac_header_preproc=yes
5727 else
5728   echo "$as_me: failed program was:" >&5
5729   cat conftest.$ac_ext >&5
5730   ac_header_preproc=no
5731 fi
5732 rm -f conftest.err conftest.$ac_ext
5733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5734 echo "${ECHO_T}$ac_header_preproc" >&6
5735
5736 # So?  What about this header?
5737 case $ac_header_compiler:$ac_header_preproc in
5738   yes:no )
5739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5743   no:yes )
5744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5746     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5750 esac
5751 echo "$as_me:$LINENO: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   eval "$as_ac_Header=$ac_header_preproc"
5757 fi
5758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5760
5761 fi
5762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5763   cat >>confdefs.h <<_ACEOF
5764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5765 _ACEOF
5766
5767 fi
5768
5769 done
5770
5771
5772 # For experimental utmp support (lastlog on some BSD-like systems)
5773
5774
5775
5776 for ac_header in utmp.h utmpx.h lastlog.h
5777 do
5778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780   echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 fi
5785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5787 else
5788   # Is the header compilable?
5789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 #include "confdefs.h"
5794 $ac_includes_default
5795 #include <$ac_header>
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799   (eval $ac_compile) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -s conftest.$ac_objext'
5804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805   (eval $ac_try) 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }; }; then
5809   ac_header_compiler=yes
5810 else
5811   echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 ac_header_compiler=no
5814 fi
5815 rm -f conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5817 echo "${ECHO_T}$ac_header_compiler" >&6
5818
5819 # Is the header present?
5820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5822 cat >conftest.$ac_ext <<_ACEOF
5823 #line $LINENO "configure"
5824 #include "confdefs.h"
5825 #include <$ac_header>
5826 _ACEOF
5827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5829   ac_status=$?
5830   grep -v '^ *+' conftest.er1 >conftest.err
5831   rm -f conftest.er1
5832   cat conftest.err >&5
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } >/dev/null; then
5835   if test -s conftest.err; then
5836     ac_cpp_err=$ac_c_preproc_warn_flag
5837   else
5838     ac_cpp_err=
5839   fi
5840 else
5841   ac_cpp_err=yes
5842 fi
5843 if test -z "$ac_cpp_err"; then
5844   ac_header_preproc=yes
5845 else
5846   echo "$as_me: failed program was:" >&5
5847   cat conftest.$ac_ext >&5
5848   ac_header_preproc=no
5849 fi
5850 rm -f conftest.err conftest.$ac_ext
5851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5852 echo "${ECHO_T}$ac_header_preproc" >&6
5853
5854 # So?  What about this header?
5855 case $ac_header_compiler:$ac_header_preproc in
5856   yes:no )
5857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5861   no:yes )
5862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5864     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5868 esac
5869 echo "$as_me:$LINENO: checking for $ac_header" >&5
5870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   eval "$as_ac_Header=$ac_header_preproc"
5875 fi
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5878
5879 fi
5880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5881   cat >>confdefs.h <<_ACEOF
5882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5883 _ACEOF
5884
5885 fi
5886
5887 done
5888
5889
5890 # For quotas on Veritas VxFS filesystems
5891
5892 for ac_header in sys/fs/vx_quota.h
5893 do
5894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5896   echo "$as_me:$LINENO: checking for $ac_header" >&5
5897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 fi
5901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5903 else
5904   # Is the header compilable?
5905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5907 cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5909 #include "confdefs.h"
5910 $ac_includes_default
5911 #include <$ac_header>
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915   (eval $ac_compile) 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -s conftest.$ac_objext'
5920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921   (eval $ac_try) 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }; }; then
5925   ac_header_compiler=yes
5926 else
5927   echo "$as_me: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5929 ac_header_compiler=no
5930 fi
5931 rm -f conftest.$ac_objext conftest.$ac_ext
5932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5933 echo "${ECHO_T}$ac_header_compiler" >&6
5934
5935 # Is the header present?
5936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 #include "confdefs.h"
5941 #include <$ac_header>
5942 _ACEOF
5943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5945   ac_status=$?
5946   grep -v '^ *+' conftest.er1 >conftest.err
5947   rm -f conftest.er1
5948   cat conftest.err >&5
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } >/dev/null; then
5951   if test -s conftest.err; then
5952     ac_cpp_err=$ac_c_preproc_warn_flag
5953   else
5954     ac_cpp_err=
5955   fi
5956 else
5957   ac_cpp_err=yes
5958 fi
5959 if test -z "$ac_cpp_err"; then
5960   ac_header_preproc=yes
5961 else
5962   echo "$as_me: failed program was:" >&5
5963   cat conftest.$ac_ext >&5
5964   ac_header_preproc=no
5965 fi
5966 rm -f conftest.err conftest.$ac_ext
5967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5968 echo "${ECHO_T}$ac_header_preproc" >&6
5969
5970 # So?  What about this header?
5971 case $ac_header_compiler:$ac_header_preproc in
5972   yes:no )
5973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5977   no:yes )
5978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5980     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5984 esac
5985 echo "$as_me:$LINENO: checking for $ac_header" >&5
5986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   eval "$as_ac_Header=$ac_header_preproc"
5991 fi
5992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5994
5995 fi
5996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5997   cat >>confdefs.h <<_ACEOF
5998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5999 _ACEOF
6000
6001 fi
6002
6003 done
6004
6005
6006 # For quotas on Linux XFS filesystems
6007
6008 for ac_header in linux/xqm.h
6009 do
6010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012   echo "$as_me:$LINENO: checking for $ac_header" >&5
6013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 fi
6017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019 else
6020   # Is the header compilable?
6021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6023 cat >conftest.$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6025 #include "confdefs.h"
6026 $ac_includes_default
6027 #include <$ac_header>
6028 _ACEOF
6029 rm -f conftest.$ac_objext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031   (eval $ac_compile) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); } &&
6035          { ac_try='test -s conftest.$ac_objext'
6036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037   (eval $ac_try) 2>&5
6038   ac_status=$?
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); }; }; then
6041   ac_header_compiler=yes
6042 else
6043   echo "$as_me: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6045 ac_header_compiler=no
6046 fi
6047 rm -f conftest.$ac_objext conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6049 echo "${ECHO_T}$ac_header_compiler" >&6
6050
6051 # Is the header present?
6052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6056 #include "confdefs.h"
6057 #include <$ac_header>
6058 _ACEOF
6059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6061   ac_status=$?
6062   grep -v '^ *+' conftest.er1 >conftest.err
6063   rm -f conftest.er1
6064   cat conftest.err >&5
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } >/dev/null; then
6067   if test -s conftest.err; then
6068     ac_cpp_err=$ac_c_preproc_warn_flag
6069   else
6070     ac_cpp_err=
6071   fi
6072 else
6073   ac_cpp_err=yes
6074 fi
6075 if test -z "$ac_cpp_err"; then
6076   ac_header_preproc=yes
6077 else
6078   echo "$as_me: failed program was:" >&5
6079   cat conftest.$ac_ext >&5
6080   ac_header_preproc=no
6081 fi
6082 rm -f conftest.err conftest.$ac_ext
6083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6084 echo "${ECHO_T}$ac_header_preproc" >&6
6085
6086 # So?  What about this header?
6087 case $ac_header_compiler:$ac_header_preproc in
6088   yes:no )
6089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6093   no:yes )
6094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6096     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6100 esac
6101 echo "$as_me:$LINENO: checking for $ac_header" >&5
6102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   eval "$as_ac_Header=$ac_header_preproc"
6107 fi
6108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6110
6111 fi
6112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6113   cat >>confdefs.h <<_ACEOF
6114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6115 _ACEOF
6116
6117 fi
6118
6119 done
6120
6121
6122 echo "$as_me:$LINENO: checking for int" >&5
6123 echo $ECHO_N "checking for int... $ECHO_C" >&6
6124 if test "${ac_cv_type_int+set}" = set; then
6125   echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127   cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 #include "confdefs.h"
6130 $ac_includes_default
6131 int
6132 main ()
6133 {
6134 if ((int *) 0)
6135   return 0;
6136 if (sizeof (int))
6137   return 0;
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144   (eval $ac_compile) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } &&
6148          { ac_try='test -s conftest.$ac_objext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_cv_type_int=yes
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6158 ac_cv_type_int=no
6159 fi
6160 rm -f conftest.$ac_objext conftest.$ac_ext
6161 fi
6162 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6163 echo "${ECHO_T}$ac_cv_type_int" >&6
6164
6165 echo "$as_me:$LINENO: checking size of int" >&5
6166 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6167 if test "${ac_cv_sizeof_int+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   if test "$ac_cv_type_int" = yes; then
6171   # The cast to unsigned long works around a bug in the HP C Compiler
6172   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6173   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6174   # This bug is HP SR number 8606223364.
6175   if test "$cross_compiling" = yes; then
6176   # Depending upon the size, compute the lo and hi bounds.
6177 cat >conftest.$ac_ext <<_ACEOF
6178 #line $LINENO "configure"
6179 #include "confdefs.h"
6180 $ac_includes_default
6181 int
6182 main ()
6183 {
6184 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6185 test_array [0] = 0
6186
6187   ;
6188   return 0;
6189 }
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193   (eval $ac_compile) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } &&
6197          { ac_try='test -s conftest.$ac_objext'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; }; then
6203   ac_lo=0 ac_mid=0
6204   while :; do
6205     cat >conftest.$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6207 #include "confdefs.h"
6208 $ac_includes_default
6209 int
6210 main ()
6211 {
6212 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6213 test_array [0] = 0
6214
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221   (eval $ac_compile) 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); } &&
6225          { ac_try='test -s conftest.$ac_objext'
6226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227   (eval $ac_try) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; }; then
6231   ac_hi=$ac_mid; break
6232 else
6233   echo "$as_me: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6235 ac_lo=`expr $ac_mid + 1`
6236                     if test $ac_lo -le $ac_mid; then
6237                       ac_lo= ac_hi=
6238                       break
6239                     fi
6240                     ac_mid=`expr 2 '*' $ac_mid + 1`
6241 fi
6242 rm -f conftest.$ac_objext conftest.$ac_ext
6243   done
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6247 cat >conftest.$ac_ext <<_ACEOF
6248 #line $LINENO "configure"
6249 #include "confdefs.h"
6250 $ac_includes_default
6251 int
6252 main ()
6253 {
6254 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6255 test_array [0] = 0
6256
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263   (eval $ac_compile) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -s conftest.$ac_objext'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; }; then
6273   ac_hi=-1 ac_mid=-1
6274   while :; do
6275     cat >conftest.$ac_ext <<_ACEOF
6276 #line $LINENO "configure"
6277 #include "confdefs.h"
6278 $ac_includes_default
6279 int
6280 main ()
6281 {
6282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6283 test_array [0] = 0
6284
6285   ;
6286   return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291   (eval $ac_compile) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -s conftest.$ac_objext'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; }; then
6301   ac_lo=$ac_mid; break
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6305 ac_hi=`expr '(' $ac_mid ')' - 1`
6306                        if test $ac_mid -le $ac_hi; then
6307                          ac_lo= ac_hi=
6308                          break
6309                        fi
6310                        ac_mid=`expr 2 '*' $ac_mid`
6311 fi
6312 rm -f conftest.$ac_objext conftest.$ac_ext
6313   done
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6317 ac_lo= ac_hi=
6318 fi
6319 rm -f conftest.$ac_objext conftest.$ac_ext
6320 fi
6321 rm -f conftest.$ac_objext conftest.$ac_ext
6322 # Binary search between lo and hi bounds.
6323 while test "x$ac_lo" != "x$ac_hi"; do
6324   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6325   cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 #include "confdefs.h"
6328 $ac_includes_default
6329 int
6330 main ()
6331 {
6332 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6333 test_array [0] = 0
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341   (eval $ac_compile) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } &&
6345          { ac_try='test -s conftest.$ac_objext'
6346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347   (eval $ac_try) 2>&5
6348   ac_status=$?
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); }; }; then
6351   ac_hi=$ac_mid
6352 else
6353   echo "$as_me: failed program was:" >&5
6354 cat conftest.$ac_ext >&5
6355 ac_lo=`expr '(' $ac_mid ')' + 1`
6356 fi
6357 rm -f conftest.$ac_objext conftest.$ac_ext
6358 done
6359 case $ac_lo in
6360 ?*) ac_cv_sizeof_int=$ac_lo;;
6361 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6362 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6363    { (exit 1); exit 1; }; } ;;
6364 esac
6365 else
6366   if test "$cross_compiling" = yes; then
6367   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6368 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6369    { (exit 1); exit 1; }; }
6370 else
6371   cat >conftest.$ac_ext <<_ACEOF
6372 #line $LINENO "configure"
6373 #include "confdefs.h"
6374 $ac_includes_default
6375 long longval () { return (long) (sizeof (int)); }
6376 unsigned long ulongval () { return (long) (sizeof (int)); }
6377 #include <stdio.h>
6378 #include <stdlib.h>
6379 int
6380 main ()
6381 {
6382
6383   FILE *f = fopen ("conftest.val", "w");
6384   if (! f)
6385     exit (1);
6386   if (((long) (sizeof (int))) < 0)
6387     {
6388       long i = longval ();
6389       if (i != ((long) (sizeof (int))))
6390         exit (1);
6391       fprintf (f, "%ld\n", i);
6392     }
6393   else
6394     {
6395       unsigned long i = ulongval ();
6396       if (i != ((long) (sizeof (int))))
6397         exit (1);
6398       fprintf (f, "%lu\n", i);
6399     }
6400   exit (ferror (f) || fclose (f) != 0);
6401
6402   ;
6403   return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest$ac_exeext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408   (eval $ac_link) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; }; then
6417   ac_cv_sizeof_int=`cat conftest.val`
6418 else
6419   echo "$as_me: program exited with status $ac_status" >&5
6420 echo "$as_me: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6422 ( exit $ac_status )
6423 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6424 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6425    { (exit 1); exit 1; }; }
6426 fi
6427 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 fi
6430 rm -f conftest.val
6431 else
6432   ac_cv_sizeof_int=0
6433 fi
6434 fi
6435 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6436 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6437 cat >>confdefs.h <<_ACEOF
6438 #define SIZEOF_INT $ac_cv_sizeof_int
6439 _ACEOF
6440
6441
6442 echo "$as_me:$LINENO: checking for long" >&5
6443 echo $ECHO_N "checking for long... $ECHO_C" >&6
6444 if test "${ac_cv_type_long+set}" = set; then
6445   echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447   cat >conftest.$ac_ext <<_ACEOF
6448 #line $LINENO "configure"
6449 #include "confdefs.h"
6450 $ac_includes_default
6451 int
6452 main ()
6453 {
6454 if ((long *) 0)
6455   return 0;
6456 if (sizeof (long))
6457   return 0;
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 rm -f conftest.$ac_objext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6464   (eval $ac_compile) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } &&
6468          { ac_try='test -s conftest.$ac_objext'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; }; then
6474   ac_cv_type_long=yes
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6478 ac_cv_type_long=no
6479 fi
6480 rm -f conftest.$ac_objext conftest.$ac_ext
6481 fi
6482 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6483 echo "${ECHO_T}$ac_cv_type_long" >&6
6484
6485 echo "$as_me:$LINENO: checking size of long" >&5
6486 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6487 if test "${ac_cv_sizeof_long+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   if test "$ac_cv_type_long" = yes; then
6491   # The cast to unsigned long works around a bug in the HP C Compiler
6492   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6493   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6494   # This bug is HP SR number 8606223364.
6495   if test "$cross_compiling" = yes; then
6496   # Depending upon the size, compute the lo and hi bounds.
6497 cat >conftest.$ac_ext <<_ACEOF
6498 #line $LINENO "configure"
6499 #include "confdefs.h"
6500 $ac_includes_default
6501 int
6502 main ()
6503 {
6504 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6505 test_array [0] = 0
6506
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513   (eval $ac_compile) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } &&
6517          { ac_try='test -s conftest.$ac_objext'
6518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519   (eval $ac_try) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); }; }; then
6523   ac_lo=0 ac_mid=0
6524   while :; do
6525     cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 #include "confdefs.h"
6528 $ac_includes_default
6529 int
6530 main ()
6531 {
6532 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6533 test_array [0] = 0
6534
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } &&
6545          { ac_try='test -s conftest.$ac_objext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   ac_hi=$ac_mid; break
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 ac_lo=`expr $ac_mid + 1`
6556                     if test $ac_lo -le $ac_mid; then
6557                       ac_lo= ac_hi=
6558                       break
6559                     fi
6560                     ac_mid=`expr 2 '*' $ac_mid + 1`
6561 fi
6562 rm -f conftest.$ac_objext conftest.$ac_ext
6563   done
6564 else
6565   echo "$as_me: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6571 int
6572 main ()
6573 {
6574 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6575 test_array [0] = 0
6576
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583   (eval $ac_compile) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -s conftest.$ac_objext'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; }; then
6593   ac_hi=-1 ac_mid=-1
6594   while :; do
6595     cat >conftest.$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 #include "confdefs.h"
6598 $ac_includes_default
6599 int
6600 main ()
6601 {
6602 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6603 test_array [0] = 0
6604
6605   ;
6606   return 0;
6607 }
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611   (eval $ac_compile) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } &&
6615          { ac_try='test -s conftest.$ac_objext'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; }; then
6621   ac_lo=$ac_mid; break
6622 else
6623   echo "$as_me: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6625 ac_hi=`expr '(' $ac_mid ')' - 1`
6626                        if test $ac_mid -le $ac_hi; then
6627                          ac_lo= ac_hi=
6628                          break
6629                        fi
6630                        ac_mid=`expr 2 '*' $ac_mid`
6631 fi
6632 rm -f conftest.$ac_objext conftest.$ac_ext
6633   done
6634 else
6635   echo "$as_me: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6637 ac_lo= ac_hi=
6638 fi
6639 rm -f conftest.$ac_objext conftest.$ac_ext
6640 fi
6641 rm -f conftest.$ac_objext conftest.$ac_ext
6642 # Binary search between lo and hi bounds.
6643 while test "x$ac_lo" != "x$ac_hi"; do
6644   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6645   cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6647 #include "confdefs.h"
6648 $ac_includes_default
6649 int
6650 main ()
6651 {
6652 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6653 test_array [0] = 0
6654
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661   (eval $ac_compile) 2>&5
6662   ac_status=$?
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); } &&
6665          { ac_try='test -s conftest.$ac_objext'
6666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667   (eval $ac_try) 2>&5
6668   ac_status=$?
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); }; }; then
6671   ac_hi=$ac_mid
6672 else
6673   echo "$as_me: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 ac_lo=`expr '(' $ac_mid ')' + 1`
6676 fi
6677 rm -f conftest.$ac_objext conftest.$ac_ext
6678 done
6679 case $ac_lo in
6680 ?*) ac_cv_sizeof_long=$ac_lo;;
6681 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6682 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6683    { (exit 1); exit 1; }; } ;;
6684 esac
6685 else
6686   if test "$cross_compiling" = yes; then
6687   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6688 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6689    { (exit 1); exit 1; }; }
6690 else
6691   cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6693 #include "confdefs.h"
6694 $ac_includes_default
6695 long longval () { return (long) (sizeof (long)); }
6696 unsigned long ulongval () { return (long) (sizeof (long)); }
6697 #include <stdio.h>
6698 #include <stdlib.h>
6699 int
6700 main ()
6701 {
6702
6703   FILE *f = fopen ("conftest.val", "w");
6704   if (! f)
6705     exit (1);
6706   if (((long) (sizeof (long))) < 0)
6707     {
6708       long i = longval ();
6709       if (i != ((long) (sizeof (long))))
6710         exit (1);
6711       fprintf (f, "%ld\n", i);
6712     }
6713   else
6714     {
6715       unsigned long i = ulongval ();
6716       if (i != ((long) (sizeof (long))))
6717         exit (1);
6718       fprintf (f, "%lu\n", i);
6719     }
6720   exit (ferror (f) || fclose (f) != 0);
6721
6722   ;
6723   return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728   (eval $ac_link) 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733   (eval $ac_try) 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); }; }; then
6737   ac_cv_sizeof_long=`cat conftest.val`
6738 else
6739   echo "$as_me: program exited with status $ac_status" >&5
6740 echo "$as_me: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6742 ( exit $ac_status )
6743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6744 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6745    { (exit 1); exit 1; }; }
6746 fi
6747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6748 fi
6749 fi
6750 rm -f conftest.val
6751 else
6752   ac_cv_sizeof_long=0
6753 fi
6754 fi
6755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6756 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6757 cat >>confdefs.h <<_ACEOF
6758 #define SIZEOF_LONG $ac_cv_sizeof_long
6759 _ACEOF
6760
6761
6762 echo "$as_me:$LINENO: checking for short" >&5
6763 echo $ECHO_N "checking for short... $ECHO_C" >&6
6764 if test "${ac_cv_type_short+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   cat >conftest.$ac_ext <<_ACEOF
6768 #line $LINENO "configure"
6769 #include "confdefs.h"
6770 $ac_includes_default
6771 int
6772 main ()
6773 {
6774 if ((short *) 0)
6775   return 0;
6776 if (sizeof (short))
6777   return 0;
6778   ;
6779   return 0;
6780 }
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784   (eval $ac_compile) 2>&5
6785   ac_status=$?
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); } &&
6788          { ac_try='test -s conftest.$ac_objext'
6789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790   (eval $ac_try) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); }; }; then
6794   ac_cv_type_short=yes
6795 else
6796   echo "$as_me: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6798 ac_cv_type_short=no
6799 fi
6800 rm -f conftest.$ac_objext conftest.$ac_ext
6801 fi
6802 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6803 echo "${ECHO_T}$ac_cv_type_short" >&6
6804
6805 echo "$as_me:$LINENO: checking size of short" >&5
6806 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6807 if test "${ac_cv_sizeof_short+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   if test "$ac_cv_type_short" = yes; then
6811   # The cast to unsigned long works around a bug in the HP C Compiler
6812   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6813   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6814   # This bug is HP SR number 8606223364.
6815   if test "$cross_compiling" = yes; then
6816   # Depending upon the size, compute the lo and hi bounds.
6817 cat >conftest.$ac_ext <<_ACEOF
6818 #line $LINENO "configure"
6819 #include "confdefs.h"
6820 $ac_includes_default
6821 int
6822 main ()
6823 {
6824 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6825 test_array [0] = 0
6826
6827   ;
6828   return 0;
6829 }
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833   (eval $ac_compile) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); } &&
6837          { ac_try='test -s conftest.$ac_objext'
6838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839   (eval $ac_try) 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); }; }; then
6843   ac_lo=0 ac_mid=0
6844   while :; do
6845     cat >conftest.$ac_ext <<_ACEOF
6846 #line $LINENO "configure"
6847 #include "confdefs.h"
6848 $ac_includes_default
6849 int
6850 main ()
6851 {
6852 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6853 test_array [0] = 0
6854
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861   (eval $ac_compile) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } &&
6865          { ac_try='test -s conftest.$ac_objext'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; }; then
6871   ac_hi=$ac_mid; break
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 ac_lo=`expr $ac_mid + 1`
6876                     if test $ac_lo -le $ac_mid; then
6877                       ac_lo= ac_hi=
6878                       break
6879                     fi
6880                     ac_mid=`expr 2 '*' $ac_mid + 1`
6881 fi
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6883   done
6884 else
6885   echo "$as_me: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6889 #include "confdefs.h"
6890 $ac_includes_default
6891 int
6892 main ()
6893 {
6894 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6895 test_array [0] = 0
6896
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903   (eval $ac_compile) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } &&
6907          { ac_try='test -s conftest.$ac_objext'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; }; then
6913   ac_hi=-1 ac_mid=-1
6914   while :; do
6915     cat >conftest.$ac_ext <<_ACEOF
6916 #line $LINENO "configure"
6917 #include "confdefs.h"
6918 $ac_includes_default
6919 int
6920 main ()
6921 {
6922 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6923 test_array [0] = 0
6924
6925   ;
6926   return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931   (eval $ac_compile) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); } &&
6935          { ac_try='test -s conftest.$ac_objext'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; }; then
6941   ac_lo=$ac_mid; break
6942 else
6943   echo "$as_me: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6945 ac_hi=`expr '(' $ac_mid ')' - 1`
6946                        if test $ac_mid -le $ac_hi; then
6947                          ac_lo= ac_hi=
6948                          break
6949                        fi
6950                        ac_mid=`expr 2 '*' $ac_mid`
6951 fi
6952 rm -f conftest.$ac_objext conftest.$ac_ext
6953   done
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6957 ac_lo= ac_hi=
6958 fi
6959 rm -f conftest.$ac_objext conftest.$ac_ext
6960 fi
6961 rm -f conftest.$ac_objext conftest.$ac_ext
6962 # Binary search between lo and hi bounds.
6963 while test "x$ac_lo" != "x$ac_hi"; do
6964   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6965   cat >conftest.$ac_ext <<_ACEOF
6966 #line $LINENO "configure"
6967 #include "confdefs.h"
6968 $ac_includes_default
6969 int
6970 main ()
6971 {
6972 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6973 test_array [0] = 0
6974
6975   ;
6976   return 0;
6977 }
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981   (eval $ac_compile) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } &&
6985          { ac_try='test -s conftest.$ac_objext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   ac_hi=$ac_mid
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 ac_lo=`expr '(' $ac_mid ')' + 1`
6996 fi
6997 rm -f conftest.$ac_objext conftest.$ac_ext
6998 done
6999 case $ac_lo in
7000 ?*) ac_cv_sizeof_short=$ac_lo;;
7001 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7002 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7003    { (exit 1); exit 1; }; } ;;
7004 esac
7005 else
7006   if test "$cross_compiling" = yes; then
7007   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7008 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7009    { (exit 1); exit 1; }; }
7010 else
7011   cat >conftest.$ac_ext <<_ACEOF
7012 #line $LINENO "configure"
7013 #include "confdefs.h"
7014 $ac_includes_default
7015 long longval () { return (long) (sizeof (short)); }
7016 unsigned long ulongval () { return (long) (sizeof (short)); }
7017 #include <stdio.h>
7018 #include <stdlib.h>
7019 int
7020 main ()
7021 {
7022
7023   FILE *f = fopen ("conftest.val", "w");
7024   if (! f)
7025     exit (1);
7026   if (((long) (sizeof (short))) < 0)
7027     {
7028       long i = longval ();
7029       if (i != ((long) (sizeof (short))))
7030         exit (1);
7031       fprintf (f, "%ld\n", i);
7032     }
7033   else
7034     {
7035       unsigned long i = ulongval ();
7036       if (i != ((long) (sizeof (short))))
7037         exit (1);
7038       fprintf (f, "%lu\n", i);
7039     }
7040   exit (ferror (f) || fclose (f) != 0);
7041
7042   ;
7043   return 0;
7044 }
7045 _ACEOF
7046 rm -f conftest$ac_exeext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7048   (eval $ac_link) 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053   (eval $ac_try) 2>&5
7054   ac_status=$?
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); }; }; then
7057   ac_cv_sizeof_short=`cat conftest.val`
7058 else
7059   echo "$as_me: program exited with status $ac_status" >&5
7060 echo "$as_me: failed program was:" >&5
7061 cat conftest.$ac_ext >&5
7062 ( exit $ac_status )
7063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7064 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7065    { (exit 1); exit 1; }; }
7066 fi
7067 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7068 fi
7069 fi
7070 rm -f conftest.val
7071 else
7072   ac_cv_sizeof_short=0
7073 fi
7074 fi
7075 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7076 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7077 cat >>confdefs.h <<_ACEOF
7078 #define SIZEOF_SHORT $ac_cv_sizeof_short
7079 _ACEOF
7080
7081
7082
7083 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7084 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7085 if test "${ac_cv_c_const+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   cat >conftest.$ac_ext <<_ACEOF
7089 #line $LINENO "configure"
7090 #include "confdefs.h"
7091
7092 int
7093 main ()
7094 {
7095 /* FIXME: Include the comments suggested by Paul. */
7096 #ifndef __cplusplus
7097   /* Ultrix mips cc rejects this.  */
7098   typedef int charset[2];
7099   const charset x;
7100   /* SunOS 4.1.1 cc rejects this.  */
7101   char const *const *ccp;
7102   char **p;
7103   /* NEC SVR4.0.2 mips cc rejects this.  */
7104   struct point {int x, y;};
7105   static struct point const zero = {0,0};
7106   /* AIX XL C 1.02.0.0 rejects this.
7107      It does not let you subtract one const X* pointer from another in
7108      an arm of an if-expression whose if-part is not a constant
7109      expression */
7110   const char *g = "string";
7111   ccp = &g + (g ? g-g : 0);
7112   /* HPUX 7.0 cc rejects these. */
7113   ++ccp;
7114   p = (char**) ccp;
7115   ccp = (char const *const *) p;
7116   { /* SCO 3.2v4 cc rejects this.  */
7117     char *t;
7118     char const *s = 0 ? (char *) 0 : (char const *) 0;
7119
7120     *t++ = 0;
7121   }
7122   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7123     int x[] = {25, 17};
7124     const int *foo = &x[0];
7125     ++foo;
7126   }
7127   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7128     typedef const int *iptr;
7129     iptr p = 0;
7130     ++p;
7131   }
7132   { /* AIX XL C 1.02.0.0 rejects this saying
7133        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7134     struct s { int j; const int *ap[3]; };
7135     struct s *b; b->j = 5;
7136   }
7137   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7138     const int foo = 10;
7139   }
7140 #endif
7141
7142   ;
7143   return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest.$ac_objext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148   (eval $ac_compile) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); } &&
7152          { ac_try='test -s conftest.$ac_objext'
7153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154   (eval $ac_try) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; }; then
7158   ac_cv_c_const=yes
7159 else
7160   echo "$as_me: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 ac_cv_c_const=no
7163 fi
7164 rm -f conftest.$ac_objext conftest.$ac_ext
7165 fi
7166 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7167 echo "${ECHO_T}$ac_cv_c_const" >&6
7168 if test $ac_cv_c_const = no; then
7169
7170 cat >>confdefs.h <<\_ACEOF
7171 #define const
7172 _ACEOF
7173
7174 fi
7175
7176 echo "$as_me:$LINENO: checking for inline" >&5
7177 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7178 if test "${ac_cv_c_inline+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   ac_cv_c_inline=no
7182 for ac_kw in inline __inline__ __inline; do
7183   cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 #ifndef __cplusplus
7187 typedef int foo_t;
7188 static $ac_kw foo_t static_foo () {return 0; }
7189 $ac_kw foo_t foo () {return 0; }
7190 #endif
7191
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195   (eval $ac_compile) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } &&
7199          { ac_try='test -s conftest.$ac_objext'
7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201   (eval $ac_try) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; }; then
7205   ac_cv_c_inline=$ac_kw; break
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7209 fi
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7211 done
7212
7213 fi
7214 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7215 echo "${ECHO_T}$ac_cv_c_inline" >&6
7216 case $ac_cv_c_inline in
7217   inline | yes) ;;
7218   no)
7219 cat >>confdefs.h <<\_ACEOF
7220 #define inline
7221 _ACEOF
7222  ;;
7223   *)  cat >>confdefs.h <<_ACEOF
7224 #define inline $ac_cv_c_inline
7225 _ACEOF
7226  ;;
7227 esac
7228
7229 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7230 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7231 if test "${ac_cv_c_bigendian+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   # See if sys/param.h defines the BYTE_ORDER macro.
7235 cat >conftest.$ac_ext <<_ACEOF
7236 #line $LINENO "configure"
7237 #include "confdefs.h"
7238 #include <sys/types.h>
7239 #include <sys/param.h>
7240
7241 int
7242 main ()
7243 {
7244 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7245  bogus endian macros
7246 #endif
7247
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254   (eval $ac_compile) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } &&
7258          { ac_try='test -s conftest.$ac_objext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   # It does; now see whether it defined to BIG_ENDIAN or not.
7265 cat >conftest.$ac_ext <<_ACEOF
7266 #line $LINENO "configure"
7267 #include "confdefs.h"
7268 #include <sys/types.h>
7269 #include <sys/param.h>
7270
7271 int
7272 main ()
7273 {
7274 #if BYTE_ORDER != BIG_ENDIAN
7275  not big endian
7276 #endif
7277
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284   (eval $ac_compile) 2>&5
7285   ac_status=$?
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); } &&
7288          { ac_try='test -s conftest.$ac_objext'
7289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290   (eval $ac_try) 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; }; then
7294   ac_cv_c_bigendian=yes
7295 else
7296   echo "$as_me: failed program was:" >&5
7297 cat conftest.$ac_ext >&5
7298 ac_cv_c_bigendian=no
7299 fi
7300 rm -f conftest.$ac_objext conftest.$ac_ext
7301 else
7302   echo "$as_me: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7304 # It does not; compile a test program.
7305 if test "$cross_compiling" = yes; then
7306   # try to guess the endianness by grepping values into an object file
7307   ac_cv_c_bigendian=unknown
7308   cat >conftest.$ac_ext <<_ACEOF
7309 #line $LINENO "configure"
7310 #include "confdefs.h"
7311 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7312 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7313 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7314 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7315 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7316 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7317 int
7318 main ()
7319 {
7320  _ascii (); _ebcdic ();
7321   ;
7322   return 0;
7323 }
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327   (eval $ac_compile) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); } &&
7331          { ac_try='test -s conftest.$ac_objext'
7332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333   (eval $ac_try) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; }; then
7337   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7338   ac_cv_c_bigendian=yes
7339 fi
7340 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7341   if test "$ac_cv_c_bigendian" = unknown; then
7342     ac_cv_c_bigendian=no
7343   else
7344     # finding both strings is unlikely to happen, but who knows?
7345     ac_cv_c_bigendian=unknown
7346   fi
7347 fi
7348 else
7349   echo "$as_me: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7351 fi
7352 rm -f conftest.$ac_objext conftest.$ac_ext
7353 else
7354   cat >conftest.$ac_ext <<_ACEOF
7355 #line $LINENO "configure"
7356 #include "confdefs.h"
7357 int
7358 main ()
7359 {
7360   /* Are we little or big endian?  From Harbison&Steele.  */
7361   union
7362   {
7363     long l;
7364     char c[sizeof (long)];
7365   } u;
7366   u.l = 1;
7367   exit (u.c[sizeof (long) - 1] == 1);
7368 }
7369 _ACEOF
7370 rm -f conftest$ac_exeext
7371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7372   (eval $ac_link) 2>&5
7373   ac_status=$?
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377   (eval $ac_try) 2>&5
7378   ac_status=$?
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); }; }; then
7381   ac_cv_c_bigendian=no
7382 else
7383   echo "$as_me: program exited with status $ac_status" >&5
7384 echo "$as_me: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7386 ( exit $ac_status )
7387 ac_cv_c_bigendian=yes
7388 fi
7389 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7390 fi
7391 fi
7392 rm -f conftest.$ac_objext conftest.$ac_ext
7393 fi
7394 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7395 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7396 case $ac_cv_c_bigendian in
7397   yes)
7398
7399 cat >>confdefs.h <<\_ACEOF
7400 #define WORDS_BIGENDIAN 1
7401 _ACEOF
7402  ;;
7403   no)
7404      ;;
7405   *)
7406     { { echo "$as_me:$LINENO: error: unknown endianness
7407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7408 echo "$as_me: error: unknown endianness
7409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7410    { (exit 1); exit 1; }; } ;;
7411 esac
7412
7413
7414 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7415 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7416 if test "${ac_cv_c_char_unsigned+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   cat >conftest.$ac_ext <<_ACEOF
7420 #line $LINENO "configure"
7421 #include "confdefs.h"
7422 $ac_includes_default
7423 int
7424 main ()
7425 {
7426 static int test_array [1 - 2 * !(((char) -1) < 0)];
7427 test_array [0] = 0
7428
7429   ;
7430   return 0;
7431 }
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435   (eval $ac_compile) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); } &&
7439          { ac_try='test -s conftest.$ac_objext'
7440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441   (eval $ac_try) 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); }; }; then
7445   ac_cv_c_char_unsigned=no
7446 else
7447   echo "$as_me: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7449 ac_cv_c_char_unsigned=yes
7450 fi
7451 rm -f conftest.$ac_objext conftest.$ac_ext
7452 fi
7453 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7454 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7455 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7456   cat >>confdefs.h <<\_ACEOF
7457 #define __CHAR_UNSIGNED__ 1
7458 _ACEOF
7459
7460 fi
7461
7462
7463 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7464 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7465 if test "${ac_cv_type_signal+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   cat >conftest.$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7470 #include "confdefs.h"
7471 #include <sys/types.h>
7472 #include <signal.h>
7473 #ifdef signal
7474 # undef signal
7475 #endif
7476 #ifdef __cplusplus
7477 extern "C" void (*signal (int, void (*)(int)))(int);
7478 #else
7479 void (*signal ()) ();
7480 #endif
7481
7482 int
7483 main ()
7484 {
7485 int i;
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492   (eval $ac_compile) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); } &&
7496          { ac_try='test -s conftest.$ac_objext'
7497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498   (eval $ac_try) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); }; }; then
7502   ac_cv_type_signal=void
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 ac_cv_type_signal=int
7507 fi
7508 rm -f conftest.$ac_objext conftest.$ac_ext
7509 fi
7510 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7511 echo "${ECHO_T}$ac_cv_type_signal" >&6
7512
7513 cat >>confdefs.h <<_ACEOF
7514 #define RETSIGTYPE $ac_cv_type_signal
7515 _ACEOF
7516
7517
7518 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7519 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7520 if test "${ac_cv_type_uid_t+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   cat >conftest.$ac_ext <<_ACEOF
7524 #line $LINENO "configure"
7525 #include "confdefs.h"
7526 #include <sys/types.h>
7527
7528 _ACEOF
7529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7530   $EGREP "uid_t" >/dev/null 2>&1; then
7531   ac_cv_type_uid_t=yes
7532 else
7533   ac_cv_type_uid_t=no
7534 fi
7535 rm -f conftest*
7536
7537 fi
7538 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7539 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7540 if test $ac_cv_type_uid_t = no; then
7541
7542 cat >>confdefs.h <<\_ACEOF
7543 #define uid_t int
7544 _ACEOF
7545
7546
7547 cat >>confdefs.h <<\_ACEOF
7548 #define gid_t int
7549 _ACEOF
7550
7551 fi
7552
7553 echo "$as_me:$LINENO: checking for mode_t" >&5
7554 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7555 if test "${ac_cv_type_mode_t+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   cat >conftest.$ac_ext <<_ACEOF
7559 #line $LINENO "configure"
7560 #include "confdefs.h"
7561 $ac_includes_default
7562 int
7563 main ()
7564 {
7565 if ((mode_t *) 0)
7566   return 0;
7567 if (sizeof (mode_t))
7568   return 0;
7569   ;
7570   return 0;
7571 }
7572 _ACEOF
7573 rm -f conftest.$ac_objext
7574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7575   (eval $ac_compile) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } &&
7579          { ac_try='test -s conftest.$ac_objext'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; }; then
7585   ac_cv_type_mode_t=yes
7586 else
7587   echo "$as_me: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7589 ac_cv_type_mode_t=no
7590 fi
7591 rm -f conftest.$ac_objext conftest.$ac_ext
7592 fi
7593 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7594 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7595 if test $ac_cv_type_mode_t = yes; then
7596   :
7597 else
7598
7599 cat >>confdefs.h <<_ACEOF
7600 #define mode_t int
7601 _ACEOF
7602
7603 fi
7604
7605 echo "$as_me:$LINENO: checking for off_t" >&5
7606 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7607 if test "${ac_cv_type_off_t+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   cat >conftest.$ac_ext <<_ACEOF
7611 #line $LINENO "configure"
7612 #include "confdefs.h"
7613 $ac_includes_default
7614 int
7615 main ()
7616 {
7617 if ((off_t *) 0)
7618   return 0;
7619 if (sizeof (off_t))
7620   return 0;
7621   ;
7622   return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627   (eval $ac_compile) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } &&
7631          { ac_try='test -s conftest.$ac_objext'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   ac_cv_type_off_t=yes
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7641 ac_cv_type_off_t=no
7642 fi
7643 rm -f conftest.$ac_objext conftest.$ac_ext
7644 fi
7645 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7646 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7647 if test $ac_cv_type_off_t = yes; then
7648   :
7649 else
7650
7651 cat >>confdefs.h <<_ACEOF
7652 #define off_t long
7653 _ACEOF
7654
7655 fi
7656
7657 echo "$as_me:$LINENO: checking for size_t" >&5
7658 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7659 if test "${ac_cv_type_size_t+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   cat >conftest.$ac_ext <<_ACEOF
7663 #line $LINENO "configure"
7664 #include "confdefs.h"
7665 $ac_includes_default
7666 int
7667 main ()
7668 {
7669 if ((size_t *) 0)
7670   return 0;
7671 if (sizeof (size_t))
7672   return 0;
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7679   (eval $ac_compile) 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } &&
7683          { ac_try='test -s conftest.$ac_objext'
7684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685   (eval $ac_try) 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); }; }; then
7689   ac_cv_type_size_t=yes
7690 else
7691   echo "$as_me: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 ac_cv_type_size_t=no
7694 fi
7695 rm -f conftest.$ac_objext conftest.$ac_ext
7696 fi
7697 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7698 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7699 if test $ac_cv_type_size_t = yes; then
7700   :
7701 else
7702
7703 cat >>confdefs.h <<_ACEOF
7704 #define size_t unsigned
7705 _ACEOF
7706
7707 fi
7708
7709 echo "$as_me:$LINENO: checking for pid_t" >&5
7710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7711 if test "${ac_cv_type_pid_t+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   cat >conftest.$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7716 #include "confdefs.h"
7717 $ac_includes_default
7718 int
7719 main ()
7720 {
7721 if ((pid_t *) 0)
7722   return 0;
7723 if (sizeof (pid_t))
7724   return 0;
7725   ;
7726   return 0;
7727 }
7728 _ACEOF
7729 rm -f conftest.$ac_objext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731   (eval $ac_compile) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); } &&
7735          { ac_try='test -s conftest.$ac_objext'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; }; then
7741   ac_cv_type_pid_t=yes
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7745 ac_cv_type_pid_t=no
7746 fi
7747 rm -f conftest.$ac_objext conftest.$ac_ext
7748 fi
7749 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7750 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7751 if test $ac_cv_type_pid_t = yes; then
7752   :
7753 else
7754
7755 cat >>confdefs.h <<_ACEOF
7756 #define pid_t int
7757 _ACEOF
7758
7759 fi
7760
7761
7762 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7763 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7764 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7770 $ac_includes_default
7771 int
7772 main ()
7773 {
7774 static struct stat ac_aggr;
7775 if (ac_aggr.st_rdev)
7776 return 0;
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783   (eval $ac_compile) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } &&
7787          { ac_try='test -s conftest.$ac_objext'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; }; then
7793   ac_cv_member_struct_stat_st_rdev=yes
7794 else
7795   echo "$as_me: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 cat >conftest.$ac_ext <<_ACEOF
7798 #line $LINENO "configure"
7799 #include "confdefs.h"
7800 $ac_includes_default
7801 int
7802 main ()
7803 {
7804 static struct stat ac_aggr;
7805 if (sizeof ac_aggr.st_rdev)
7806 return 0;
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813   (eval $ac_compile) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } &&
7817          { ac_try='test -s conftest.$ac_objext'
7818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819   (eval $ac_try) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; }; then
7823   ac_cv_member_struct_stat_st_rdev=yes
7824 else
7825   echo "$as_me: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 ac_cv_member_struct_stat_st_rdev=no
7828 fi
7829 rm -f conftest.$ac_objext conftest.$ac_ext
7830 fi
7831 rm -f conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7834 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7835 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define HAVE_STRUCT_STAT_ST_RDEV 1
7839 _ACEOF
7840
7841
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_ST_RDEV 1
7844 _ACEOF
7845
7846 fi
7847
7848
7849 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
7850 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
7851 if test "${ac_cv_dirent_d_off+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   cat >conftest.$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 #include "confdefs.h"
7857
7858 #include <unistd.h>
7859 #include <sys/types.h>
7860 #include <dirent.h>
7861 int
7862 main ()
7863 {
7864 struct dirent d; d.d_off;
7865   ;
7866   return 0;
7867 }
7868 _ACEOF
7869 rm -f conftest.$ac_objext
7870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7871   (eval $ac_compile) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); } &&
7875          { ac_try='test -s conftest.$ac_objext'
7876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; }; then
7881   ac_cv_dirent_d_off=yes
7882 else
7883   echo "$as_me: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7885 ac_cv_dirent_d_off=no
7886 fi
7887 rm -f conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
7890 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
7891 if test $ac_cv_dirent_d_off = yes; then
7892
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_DIRENT_D_OFF 1
7895 _ACEOF
7896
7897 fi
7898
7899 echo "$as_me:$LINENO: checking for ino_t" >&5
7900 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
7901 if test "${ac_cv_type_ino_t+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   cat >conftest.$ac_ext <<_ACEOF
7905 #line $LINENO "configure"
7906 #include "confdefs.h"
7907 $ac_includes_default
7908 int
7909 main ()
7910 {
7911 if ((ino_t *) 0)
7912   return 0;
7913 if (sizeof (ino_t))
7914   return 0;
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7921   (eval $ac_compile) 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); } &&
7925          { ac_try='test -s conftest.$ac_objext'
7926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927   (eval $ac_try) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; }; then
7931   ac_cv_type_ino_t=yes
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7935 ac_cv_type_ino_t=no
7936 fi
7937 rm -f conftest.$ac_objext conftest.$ac_ext
7938 fi
7939 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
7940 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
7941 if test $ac_cv_type_ino_t = yes; then
7942   :
7943 else
7944
7945 cat >>confdefs.h <<_ACEOF
7946 #define ino_t unsigned
7947 _ACEOF
7948
7949 fi
7950
7951 echo "$as_me:$LINENO: checking for loff_t" >&5
7952 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
7953 if test "${ac_cv_type_loff_t+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 $ac_includes_default
7960 int
7961 main ()
7962 {
7963 if ((loff_t *) 0)
7964   return 0;
7965 if (sizeof (loff_t))
7966   return 0;
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973   (eval $ac_compile) 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } &&
7977          { ac_try='test -s conftest.$ac_objext'
7978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979   (eval $ac_try) 2>&5
7980   ac_status=$?
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); }; }; then
7983   ac_cv_type_loff_t=yes
7984 else
7985   echo "$as_me: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7987 ac_cv_type_loff_t=no
7988 fi
7989 rm -f conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
7992 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
7993 if test $ac_cv_type_loff_t = yes; then
7994   :
7995 else
7996
7997 cat >>confdefs.h <<_ACEOF
7998 #define loff_t off_t
7999 _ACEOF
8000
8001 fi
8002
8003 echo "$as_me:$LINENO: checking for offset_t" >&5
8004 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8005 if test "${ac_cv_type_offset_t+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008   cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8012 int
8013 main ()
8014 {
8015 if ((offset_t *) 0)
8016   return 0;
8017 if (sizeof (offset_t))
8018   return 0;
8019   ;
8020   return 0;
8021 }
8022 _ACEOF
8023 rm -f conftest.$ac_objext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8025   (eval $ac_compile) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); } &&
8029          { ac_try='test -s conftest.$ac_objext'
8030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031   (eval $ac_try) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; }; then
8035   ac_cv_type_offset_t=yes
8036 else
8037   echo "$as_me: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8039 ac_cv_type_offset_t=no
8040 fi
8041 rm -f conftest.$ac_objext conftest.$ac_ext
8042 fi
8043 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8044 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8045 if test $ac_cv_type_offset_t = yes; then
8046   :
8047 else
8048
8049 cat >>confdefs.h <<_ACEOF
8050 #define offset_t loff_t
8051 _ACEOF
8052
8053 fi
8054
8055 echo "$as_me:$LINENO: checking for ssize_t" >&5
8056 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8057 if test "${ac_cv_type_ssize_t+set}" = set; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060   cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 #include "confdefs.h"
8063 $ac_includes_default
8064 int
8065 main ()
8066 {
8067 if ((ssize_t *) 0)
8068   return 0;
8069 if (sizeof (ssize_t))
8070   return 0;
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8077   (eval $ac_compile) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } &&
8081          { ac_try='test -s conftest.$ac_objext'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; }; then
8087   ac_cv_type_ssize_t=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 ac_cv_type_ssize_t=no
8092 fi
8093 rm -f conftest.$ac_objext conftest.$ac_ext
8094 fi
8095 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8096 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8097 if test $ac_cv_type_ssize_t = yes; then
8098   :
8099 else
8100
8101 cat >>confdefs.h <<_ACEOF
8102 #define ssize_t int
8103 _ACEOF
8104
8105 fi
8106
8107 echo "$as_me:$LINENO: checking for wchar_t" >&5
8108 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8109 if test "${ac_cv_type_wchar_t+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8114 #include "confdefs.h"
8115 $ac_includes_default
8116 int
8117 main ()
8118 {
8119 if ((wchar_t *) 0)
8120   return 0;
8121 if (sizeof (wchar_t))
8122   return 0;
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129   (eval $ac_compile) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -s conftest.$ac_objext'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_type_wchar_t=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143 ac_cv_type_wchar_t=no
8144 fi
8145 rm -f conftest.$ac_objext conftest.$ac_ext
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8148 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8149 if test $ac_cv_type_wchar_t = yes; then
8150   :
8151 else
8152
8153 cat >>confdefs.h <<_ACEOF
8154 #define wchar_t unsigned short
8155 _ACEOF
8156
8157 fi
8158
8159
8160 ############################################
8161 # for cups support we need libcups, and a handful of header files
8162
8163 # Check whether --enable-cups or --disable-cups was given.
8164 if test "${enable_cups+set}" = set; then
8165   enableval="$enable_cups"
8166
8167 fi;
8168
8169 if test x$enable_cups != xno; then
8170         # Extract the first word of "cups-config", so it can be a program name with args.
8171 set dummy cups-config; ac_word=$2
8172 echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   case $CUPS_CONFIG in
8178   [\\/]* | ?:[\\/]*)
8179   ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8180   ;;
8181   *)
8182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185   IFS=$as_save_IFS
8186   test -z "$as_dir" && as_dir=.
8187   for ac_exec_ext in '' $ac_executable_extensions; do
8188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189     ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191     break 2
8192   fi
8193 done
8194 done
8195
8196   ;;
8197 esac
8198 fi
8199 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8200
8201 if test -n "$CUPS_CONFIG"; then
8202   echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8203 echo "${ECHO_T}$CUPS_CONFIG" >&6
8204 else
8205   echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207 fi
8208
8209
8210         if test "x$CUPS_CONFIG" != x; then
8211
8212 cat >>confdefs.h <<\_ACEOF
8213 #define HAVE_CUPS 1
8214 _ACEOF
8215
8216                 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8217                 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8218                 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8219         fi
8220 fi
8221
8222 ############################################
8223 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8224
8225 for ac_func in dlopen
8226 do
8227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8228 echo "$as_me:$LINENO: checking for $ac_func" >&5
8229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8230 if eval "test \"\${$as_ac_var+set}\" = set"; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   cat >conftest.$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8235 #include "confdefs.h"
8236 /* System header to define __stub macros and hopefully few prototypes,
8237     which can conflict with char $ac_func (); below.  */
8238 #include <assert.h>
8239 /* Override any gcc2 internal prototype to avoid an error.  */
8240 #ifdef __cplusplus
8241 extern "C"
8242 #endif
8243 /* We use char because int might match the return type of a gcc2
8244    builtin and then its argument prototype would still apply.  */
8245 char $ac_func ();
8246 char (*f) ();
8247
8248 int
8249 main ()
8250 {
8251 /* The GNU C library defines this for functions which it implements
8252     to always fail with ENOSYS.  Some functions are actually named
8253     something starting with __ and the normal name is an alias.  */
8254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8255 choke me
8256 #else
8257 f = $ac_func;
8258 #endif
8259
8260   ;
8261   return 0;
8262 }
8263 _ACEOF
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266   (eval $ac_link) 2>&5
8267   ac_status=$?
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } &&
8270          { ac_try='test -s conftest$ac_exeext'
8271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272   (eval $ac_try) 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); }; }; then
8276   eval "$as_ac_var=yes"
8277 else
8278   echo "$as_me: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 eval "$as_ac_var=no"
8281 fi
8282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8283 fi
8284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8286 if test `eval echo '${'$as_ac_var'}'` = yes; then
8287   cat >>confdefs.h <<_ACEOF
8288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8289 _ACEOF
8290
8291 fi
8292 done
8293
8294 if test x"$ac_cv_func_dlopen" = x"no"; then
8295     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8296 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8297 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   ac_check_lib_save_LIBS=$LIBS
8301 LIBS="-ldl  $LIBS"
8302 cat >conftest.$ac_ext <<_ACEOF
8303 #line $LINENO "configure"
8304 #include "confdefs.h"
8305
8306 /* Override any gcc2 internal prototype to avoid an error.  */
8307 #ifdef __cplusplus
8308 extern "C"
8309 #endif
8310 /* We use char because int might match the return type of a gcc2
8311    builtin and then its argument prototype would still apply.  */
8312 char dlopen ();
8313 int
8314 main ()
8315 {
8316 dlopen ();
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext conftest$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323   (eval $ac_link) 2>&5
8324   ac_status=$?
8325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); } &&
8327          { ac_try='test -s conftest$ac_exeext'
8328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329   (eval $ac_try) 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; }; then
8333   ac_cv_lib_dl_dlopen=yes
8334 else
8335   echo "$as_me: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8337 ac_cv_lib_dl_dlopen=no
8338 fi
8339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8340 LIBS=$ac_check_lib_save_LIBS
8341 fi
8342 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8343 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8344 if test $ac_cv_lib_dl_dlopen = yes; then
8345   LIBS="$LIBS -ldl";
8346
8347 cat >>confdefs.h <<\_ACEOF
8348 #define HAVE_DLOPEN 1
8349 _ACEOF
8350
8351 fi
8352
8353 fi
8354 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8355
8356 ############################################
8357 # check if the compiler can do immediate structures
8358 echo "$as_me:$LINENO: checking for immediate structures" >&5
8359 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8360 if test "${samba_cv_immediate_structures+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363
8364     cat >conftest.$ac_ext <<_ACEOF
8365 #line $LINENO "configure"
8366 #include "confdefs.h"
8367
8368 #include <stdio.h>
8369 int
8370 main ()
8371 {
8372
8373    typedef struct {unsigned x;} FOOBAR;
8374    #define X_FOOBAR(x) ((FOOBAR) { x })
8375    #define FOO_ONE X_FOOBAR(1)
8376    FOOBAR f = FOO_ONE;
8377    static struct {
8378         FOOBAR y;
8379         } f2[] = {
8380                 {FOO_ONE}
8381         };
8382
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest.$ac_objext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8389   (eval $ac_compile) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } &&
8393          { ac_try='test -s conftest.$ac_objext'
8394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395   (eval $ac_try) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; }; then
8399   samba_cv_immediate_structures=yes
8400 else
8401   echo "$as_me: failed program was:" >&5
8402 cat conftest.$ac_ext >&5
8403 samba_cv_immediate_structures=no
8404 fi
8405 rm -f conftest.$ac_objext conftest.$ac_ext
8406 fi
8407 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8408 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8409 if test x"$samba_cv_immediate_structures" = x"yes"; then
8410
8411 cat >>confdefs.h <<\_ACEOF
8412 #define HAVE_IMMEDIATE_STRUCTURES 1
8413 _ACEOF
8414
8415 fi
8416
8417 ############################################
8418 # check for unix domain sockets
8419 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8420 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8421 if test "${samba_cv_unixsocket+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424
8425     cat >conftest.$ac_ext <<_ACEOF
8426 #line $LINENO "configure"
8427 #include "confdefs.h"
8428
8429 #include <sys/types.h>
8430 #include <stdlib.h>
8431 #include <stddef.h>
8432 #include <sys/socket.h>
8433 #include <sys/un.h>
8434 int
8435 main ()
8436 {
8437
8438   struct sockaddr_un sunaddr;
8439   sunaddr.sun_family = AF_UNIX;
8440
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447   (eval $ac_compile) 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -s conftest.$ac_objext'
8452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453   (eval $ac_try) 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; }; then
8457   samba_cv_unixsocket=yes
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8461 samba_cv_unixsocket=no
8462 fi
8463 rm -f conftest.$ac_objext conftest.$ac_ext
8464 fi
8465 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8466 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8467 if test x"$samba_cv_unixsocket" = x"yes"; then
8468
8469 cat >>confdefs.h <<\_ACEOF
8470 #define HAVE_UNIXSOCKET 1
8471 _ACEOF
8472
8473 fi
8474
8475
8476 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8477 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8478 if test "${samba_cv_socklen_t+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481
8482     cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8484 #include "confdefs.h"
8485
8486 #include <sys/types.h>
8487 #if STDC_HEADERS
8488 #include <stdlib.h>
8489 #include <stddef.h>
8490 #endif
8491 #include <sys/socket.h>
8492 int
8493 main ()
8494 {
8495 socklen_t i = 0
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502   (eval $ac_compile) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -s conftest.$ac_objext'
8507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508   (eval $ac_try) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; }; then
8512   samba_cv_socklen_t=yes
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8516 samba_cv_socklen_t=no
8517 fi
8518 rm -f conftest.$ac_objext conftest.$ac_ext
8519 fi
8520 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8521 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8522 if test x"$samba_cv_socklen_t" = x"yes"; then
8523
8524 cat >>confdefs.h <<\_ACEOF
8525 #define HAVE_SOCKLEN_T_TYPE 1
8526 _ACEOF
8527
8528 fi
8529
8530 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8531 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8532 if test "${samba_cv_sig_atomic_t+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535
8536     cat >conftest.$ac_ext <<_ACEOF
8537 #line $LINENO "configure"
8538 #include "confdefs.h"
8539
8540 #include <sys/types.h>
8541 #if STDC_HEADERS
8542 #include <stdlib.h>
8543 #include <stddef.h>
8544 #endif
8545 #include <signal.h>
8546 int
8547 main ()
8548 {
8549 sig_atomic_t i = 0
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8556   (eval $ac_compile) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } &&
8560          { ac_try='test -s conftest.$ac_objext'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   samba_cv_sig_atomic_t=yes
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 samba_cv_sig_atomic_t=no
8571 fi
8572 rm -f conftest.$ac_objext conftest.$ac_ext
8573 fi
8574 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8575 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8576 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8577
8578 cat >>confdefs.h <<\_ACEOF
8579 #define HAVE_SIG_ATOMIC_T_TYPE 1
8580 _ACEOF
8581
8582 fi
8583
8584 # stupid headers have the functions but no declaration. grrrr.
8585
8586  echo "$as_me:$LINENO: checking for errno declaration" >&5
8587 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8588 if test "${ac_cv_have_errno_decl+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591
8592     cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 #include "confdefs.h"
8595 #include <errno.h>
8596 int
8597 main ()
8598 {
8599 int i = (int)errno
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606   (eval $ac_compile) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -s conftest.$ac_objext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_cv_have_errno_decl=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 cat conftest.$ac_ext >&5
8620 ac_cv_have_errno_decl=no
8621 fi
8622 rm -f conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
8625 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
8626  if test x"$ac_cv_have_errno_decl" = x"yes"; then
8627
8628 cat >>confdefs.h <<\_ACEOF
8629 #define HAVE_ERRNO_DECL 1
8630 _ACEOF
8631
8632  fi
8633
8634
8635  echo "$as_me:$LINENO: checking for setresuid declaration" >&5
8636 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
8637 if test "${ac_cv_have_setresuid_decl+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640
8641     cat >conftest.$ac_ext <<_ACEOF
8642 #line $LINENO "configure"
8643 #include "confdefs.h"
8644 #include <unistd.h>
8645 int
8646 main ()
8647 {
8648 int i = (int)setresuid
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655   (eval $ac_compile) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } &&
8659          { ac_try='test -s conftest.$ac_objext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_cv_have_setresuid_decl=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 ac_cv_have_setresuid_decl=no
8670 fi
8671 rm -f conftest.$ac_objext conftest.$ac_ext
8672 fi
8673 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
8674 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
8675  if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
8676
8677 cat >>confdefs.h <<\_ACEOF
8678 #define HAVE_SETRESUID_DECL 1
8679 _ACEOF
8680
8681  fi
8682
8683
8684  echo "$as_me:$LINENO: checking for setresgid declaration" >&5
8685 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
8686 if test "${ac_cv_have_setresgid_decl+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689
8690     cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 #include "confdefs.h"
8693 #include <unistd.h>
8694 int
8695 main ()
8696 {
8697 int i = (int)setresgid
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704   (eval $ac_compile) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } &&
8708          { ac_try='test -s conftest.$ac_objext'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; }; then
8714   ac_cv_have_setresgid_decl=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 ac_cv_have_setresgid_decl=no
8719 fi
8720 rm -f conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
8723 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
8724  if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
8725
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_SETRESGID_DECL 1
8728 _ACEOF
8729
8730  fi
8731
8732
8733  echo "$as_me:$LINENO: checking for asprintf declaration" >&5
8734 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
8735 if test "${ac_cv_have_asprintf_decl+set}" = set; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738
8739     cat >conftest.$ac_ext <<_ACEOF
8740 #line $LINENO "configure"
8741 #include "confdefs.h"
8742 #include <stdio.h>
8743 int
8744 main ()
8745 {
8746 int i = (int)asprintf
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753   (eval $ac_compile) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } &&
8757          { ac_try='test -s conftest.$ac_objext'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; }; then
8763   ac_cv_have_asprintf_decl=yes
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8767 ac_cv_have_asprintf_decl=no
8768 fi
8769 rm -f conftest.$ac_objext conftest.$ac_ext
8770 fi
8771 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
8772 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
8773  if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
8774
8775 cat >>confdefs.h <<\_ACEOF
8776 #define HAVE_ASPRINTF_DECL 1
8777 _ACEOF
8778
8779  fi
8780
8781
8782  echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
8783 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
8784 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787
8788     cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8791 #include <stdio.h>
8792 int
8793 main ()
8794 {
8795 int i = (int)vasprintf
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 rm -f conftest.$ac_objext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8802   (eval $ac_compile) 2>&5
8803   ac_status=$?
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } &&
8806          { ac_try='test -s conftest.$ac_objext'
8807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808   (eval $ac_try) 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); }; }; then
8812   ac_cv_have_vasprintf_decl=yes
8813 else
8814   echo "$as_me: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8816 ac_cv_have_vasprintf_decl=no
8817 fi
8818 rm -f conftest.$ac_objext conftest.$ac_ext
8819 fi
8820 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
8821 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
8822  if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
8823
8824 cat >>confdefs.h <<\_ACEOF
8825 #define HAVE_VASPRINTF_DECL 1
8826 _ACEOF
8827
8828  fi
8829
8830
8831  echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
8832 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
8833 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
8834   echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836
8837     cat >conftest.$ac_ext <<_ACEOF
8838 #line $LINENO "configure"
8839 #include "confdefs.h"
8840 #include <stdio.h>
8841 int
8842 main ()
8843 {
8844 int i = (int)vsnprintf
8845   ;
8846   return 0;
8847 }
8848 _ACEOF
8849 rm -f conftest.$ac_objext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8851   (eval $ac_compile) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } &&
8855          { ac_try='test -s conftest.$ac_objext'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; }; then
8861   ac_cv_have_vsnprintf_decl=yes
8862 else
8863   echo "$as_me: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 ac_cv_have_vsnprintf_decl=no
8866 fi
8867 rm -f conftest.$ac_objext conftest.$ac_ext
8868 fi
8869 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
8870 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
8871  if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_VSNPRINTF_DECL 1
8875 _ACEOF
8876
8877  fi
8878
8879
8880  echo "$as_me:$LINENO: checking for snprintf declaration" >&5
8881 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
8882 if test "${ac_cv_have_snprintf_decl+set}" = set; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885
8886     cat >conftest.$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8888 #include "confdefs.h"
8889 #include <stdio.h>
8890 int
8891 main ()
8892 {
8893 int i = (int)snprintf
8894   ;
8895   return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900   (eval $ac_compile) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } &&
8904          { ac_try='test -s conftest.$ac_objext'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; }; then
8910   ac_cv_have_snprintf_decl=yes
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 ac_cv_have_snprintf_decl=no
8915 fi
8916 rm -f conftest.$ac_objext conftest.$ac_ext
8917 fi
8918 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
8919 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
8920  if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
8921
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_SNPRINTF_DECL 1
8924 _ACEOF
8925
8926  fi
8927
8928
8929 # and glibc has setresuid under linux but the function does
8930 # nothing until kernel 2.1.44! very dumb.
8931 echo "$as_me:$LINENO: checking for real setresuid" >&5
8932 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
8933 if test "${samba_cv_have_setresuid+set}" = set; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936
8937     if test "$cross_compiling" = yes; then
8938   samba_cv_have_setresuid=cross
8939 else
8940   cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 #include "confdefs.h"
8943 #include <errno.h>
8944 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
8945 _ACEOF
8946 rm -f conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948   (eval $ac_link) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953   (eval $ac_try) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   samba_cv_have_setresuid=yes
8958 else
8959   echo "$as_me: program exited with status $ac_status" >&5
8960 echo "$as_me: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8962 ( exit $ac_status )
8963 samba_cv_have_setresuid=no
8964 fi
8965 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8966 fi
8967 fi
8968 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
8969 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
8970 if test x"$samba_cv_have_setresuid" = x"yes"; then
8971
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_SETRESUID 1
8974 _ACEOF
8975
8976 fi
8977
8978 # Do the same check for setresguid...
8979 #
8980 echo "$as_me:$LINENO: checking for real setresgid" >&5
8981 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
8982 if test "${samba_cv_have_setresgid+set}" = set; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985
8986     if test "$cross_compiling" = yes; then
8987   samba_cv_have_setresgid=cross
8988 else
8989   cat >conftest.$ac_ext <<_ACEOF
8990 #line $LINENO "configure"
8991 #include "confdefs.h"
8992 #include <unistd.h>
8993 #include <errno.h>
8994 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
8995 _ACEOF
8996 rm -f conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998   (eval $ac_link) 2>&5
8999   ac_status=$?
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003   (eval $ac_try) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; }; then
9007   samba_cv_have_setresgid=yes
9008 else
9009   echo "$as_me: program exited with status $ac_status" >&5
9010 echo "$as_me: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9012 ( exit $ac_status )
9013 samba_cv_have_setresgid=no
9014 fi
9015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9016 fi
9017 fi
9018 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9019 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9020 if test x"$samba_cv_have_setresgid" = x"yes"; then
9021
9022 cat >>confdefs.h <<\_ACEOF
9023 #define HAVE_SETRESGID 1
9024 _ACEOF
9025
9026 fi
9027
9028 echo "$as_me:$LINENO: checking for working memcmp" >&5
9029 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9030 if test "${ac_cv_func_memcmp_working+set}" = set; then
9031   echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033   if test "$cross_compiling" = yes; then
9034   ac_cv_func_memcmp_working=no
9035 else
9036   cat >conftest.$ac_ext <<_ACEOF
9037 #line $LINENO "configure"
9038 #include "confdefs.h"
9039
9040 int
9041 main ()
9042 {
9043
9044   /* Some versions of memcmp are not 8-bit clean.  */
9045   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9046   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9047     exit (1);
9048
9049   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9050      or more and with at least one buffer not starting on a 4-byte boundary.
9051      William Lewis provided this test program.   */
9052   {
9053     char foo[21];
9054     char bar[21];
9055     int i;
9056     for (i = 0; i < 4; i++)
9057       {
9058         char *a = foo + i;
9059         char *b = bar + i;
9060         strcpy (a, "--------01111111");
9061         strcpy (b, "--------10000000");
9062         if (memcmp (a, b, 16) >= 0)
9063           exit (1);
9064       }
9065     exit (0);
9066   }
9067
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074   (eval $ac_link) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; }; then
9083   ac_cv_func_memcmp_working=yes
9084 else
9085   echo "$as_me: program exited with status $ac_status" >&5
9086 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9088 ( exit $ac_status )
9089 ac_cv_func_memcmp_working=no
9090 fi
9091 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9092 fi
9093 fi
9094 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9095 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9096 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9097
9098
9099 ###############################################
9100 # test for where we get crypt() from
9101
9102 for ac_func in crypt
9103 do
9104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9105 echo "$as_me:$LINENO: checking for $ac_func" >&5
9106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9107 if eval "test \"\${$as_ac_var+set}\" = set"; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   cat >conftest.$ac_ext <<_ACEOF
9111 #line $LINENO "configure"
9112 #include "confdefs.h"
9113 /* System header to define __stub macros and hopefully few prototypes,
9114     which can conflict with char $ac_func (); below.  */
9115 #include <assert.h>
9116 /* Override any gcc2 internal prototype to avoid an error.  */
9117 #ifdef __cplusplus
9118 extern "C"
9119 #endif
9120 /* We use char because int might match the return type of a gcc2
9121    builtin and then its argument prototype would still apply.  */
9122 char $ac_func ();
9123 char (*f) ();
9124
9125 int
9126 main ()
9127 {
9128 /* The GNU C library defines this for functions which it implements
9129     to always fail with ENOSYS.  Some functions are actually named
9130     something starting with __ and the normal name is an alias.  */
9131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9132 choke me
9133 #else
9134 f = $ac_func;
9135 #endif
9136
9137   ;
9138   return 0;
9139 }
9140 _ACEOF
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143   (eval $ac_link) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); } &&
9147          { ac_try='test -s conftest$ac_exeext'
9148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149   (eval $ac_try) 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); }; }; then
9153   eval "$as_ac_var=yes"
9154 else
9155   echo "$as_me: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 eval "$as_ac_var=no"
9158 fi
9159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9160 fi
9161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9163 if test `eval echo '${'$as_ac_var'}'` = yes; then
9164   cat >>confdefs.h <<_ACEOF
9165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9166 _ACEOF
9167
9168 fi
9169 done
9170
9171 if test x"$ac_cv_func_crypt" = x"no"; then
9172     echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9173 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9174 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177   ac_check_lib_save_LIBS=$LIBS
9178 LIBS="-lcrypt  $LIBS"
9179 cat >conftest.$ac_ext <<_ACEOF
9180 #line $LINENO "configure"
9181 #include "confdefs.h"
9182
9183 /* Override any gcc2 internal prototype to avoid an error.  */
9184 #ifdef __cplusplus
9185 extern "C"
9186 #endif
9187 /* We use char because int might match the return type of a gcc2
9188    builtin and then its argument prototype would still apply.  */
9189 char crypt ();
9190 int
9191 main ()
9192 {
9193 crypt ();
9194   ;
9195   return 0;
9196 }
9197 _ACEOF
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200   (eval $ac_link) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } &&
9204          { ac_try='test -s conftest$ac_exeext'
9205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206   (eval $ac_try) 2>&5
9207   ac_status=$?
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); }; }; then
9210   ac_cv_lib_crypt_crypt=yes
9211 else
9212   echo "$as_me: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 ac_cv_lib_crypt_crypt=no
9215 fi
9216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_lib_save_LIBS
9218 fi
9219 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9220 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9221 if test $ac_cv_lib_crypt_crypt = yes; then
9222   AUTHLIBS="$AUTHLIBS -lcrypt";
9223
9224 cat >>confdefs.h <<\_ACEOF
9225 #define HAVE_CRYPT 1
9226 _ACEOF
9227
9228 fi
9229
9230 fi
9231
9232
9233 ###############################################
9234 # Readline included by default unless explicitly asked not to
9235 test "${with_readline+set}" != "set" && with_readline=yes
9236
9237 # test for where we get readline() from
9238 echo "$as_me:$LINENO: checking whether to use readline" >&5
9239 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9240
9241 # Check whether --with-readline or --without-readline was given.
9242 if test "${with_readline+set}" = set; then
9243   withval="$with_readline"
9244     case "$with_readline" in
9245   yes)
9246     echo "$as_me:$LINENO: result: yes" >&5
9247 echo "${ECHO_T}yes" >&6
9248
9249
9250
9251
9252 for ac_header in readline.h history.h readline/readline.h
9253 do
9254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9256   echo "$as_me:$LINENO: checking for $ac_header" >&5
9257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 fi
9261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9263 else
9264   # Is the header compilable?
9265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9268 #line $LINENO "configure"
9269 #include "confdefs.h"
9270 $ac_includes_default
9271 #include <$ac_header>
9272 _ACEOF
9273 rm -f conftest.$ac_objext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9275   (eval $ac_compile) 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); } &&
9279          { ac_try='test -s conftest.$ac_objext'
9280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281   (eval $ac_try) 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; }; then
9285   ac_header_compiler=yes
9286 else
9287   echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 ac_header_compiler=no
9290 fi
9291 rm -f conftest.$ac_objext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9293 echo "${ECHO_T}$ac_header_compiler" >&6
9294
9295 # Is the header present?
9296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9299 #line $LINENO "configure"
9300 #include "confdefs.h"
9301 #include <$ac_header>
9302 _ACEOF
9303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } >/dev/null; then
9311   if test -s conftest.err; then
9312     ac_cpp_err=$ac_c_preproc_warn_flag
9313   else
9314     ac_cpp_err=
9315   fi
9316 else
9317   ac_cpp_err=yes
9318 fi
9319 if test -z "$ac_cpp_err"; then
9320   ac_header_preproc=yes
9321 else
9322   echo "$as_me: failed program was:" >&5
9323   cat conftest.$ac_ext >&5
9324   ac_header_preproc=no
9325 fi
9326 rm -f conftest.err conftest.$ac_ext
9327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328 echo "${ECHO_T}$ac_header_preproc" >&6
9329
9330 # So?  What about this header?
9331 case $ac_header_compiler:$ac_header_preproc in
9332   yes:no )
9333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9337   no:yes )
9338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9340     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9344 esac
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   eval "$as_ac_Header=$ac_header_preproc"
9351 fi
9352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9354
9355 fi
9356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9357   cat >>confdefs.h <<_ACEOF
9358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9359 _ACEOF
9360
9361 fi
9362
9363 done
9364
9365
9366 for ac_header in readline/history.h
9367 do
9368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370   echo "$as_me:$LINENO: checking for $ac_header" >&5
9371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 fi
9375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9377 else
9378   # Is the header compilable?
9379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9381 cat >conftest.$ac_ext <<_ACEOF
9382 #line $LINENO "configure"
9383 #include "confdefs.h"
9384 $ac_includes_default
9385 #include <$ac_header>
9386 _ACEOF
9387 rm -f conftest.$ac_objext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9389   (eval $ac_compile) 2>&5
9390   ac_status=$?
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); } &&
9393          { ac_try='test -s conftest.$ac_objext'
9394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395   (eval $ac_try) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); }; }; then
9399   ac_header_compiler=yes
9400 else
9401   echo "$as_me: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9403 ac_header_compiler=no
9404 fi
9405 rm -f conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6
9408
9409 # Is the header present?
9410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9412 cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9415 #include <$ac_header>
9416 _ACEOF
9417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } >/dev/null; then
9425   if test -s conftest.err; then
9426     ac_cpp_err=$ac_c_preproc_warn_flag
9427   else
9428     ac_cpp_err=
9429   fi
9430 else
9431   ac_cpp_err=yes
9432 fi
9433 if test -z "$ac_cpp_err"; then
9434   ac_header_preproc=yes
9435 else
9436   echo "$as_me: failed program was:" >&5
9437   cat conftest.$ac_ext >&5
9438   ac_header_preproc=no
9439 fi
9440 rm -f conftest.err conftest.$ac_ext
9441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9442 echo "${ECHO_T}$ac_header_preproc" >&6
9443
9444 # So?  What about this header?
9445 case $ac_header_compiler:$ac_header_preproc in
9446   yes:no )
9447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9451   no:yes )
9452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9454     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9458 esac
9459 echo "$as_me:$LINENO: checking for $ac_header" >&5
9460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   eval "$as_ac_Header=$ac_header_preproc"
9465 fi
9466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9468
9469 fi
9470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9471   cat >>confdefs.h <<_ACEOF
9472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9473 _ACEOF
9474
9475 fi
9476
9477 done
9478
9479
9480
9481
9482 for ac_header in readline.h readline/readline.h
9483 do
9484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486   echo "$as_me:$LINENO: checking for $ac_header" >&5
9487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 fi
9491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9493 else
9494   # Is the header compilable?
9495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9498 #line $LINENO "configure"
9499 #include "confdefs.h"
9500 $ac_includes_default
9501 #include <$ac_header>
9502 _ACEOF
9503 rm -f conftest.$ac_objext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505   (eval $ac_compile) 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } &&
9509          { ac_try='test -s conftest.$ac_objext'
9510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511   (eval $ac_try) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); }; }; then
9515   ac_header_compiler=yes
9516 else
9517   echo "$as_me: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 ac_header_compiler=no
9520 fi
9521 rm -f conftest.$ac_objext conftest.$ac_ext
9522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9523 echo "${ECHO_T}$ac_header_compiler" >&6
9524
9525 # Is the header present?
9526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9528 cat >conftest.$ac_ext <<_ACEOF
9529 #line $LINENO "configure"
9530 #include "confdefs.h"
9531 #include <$ac_header>
9532 _ACEOF
9533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9535   ac_status=$?
9536   grep -v '^ *+' conftest.er1 >conftest.err
9537   rm -f conftest.er1
9538   cat conftest.err >&5
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } >/dev/null; then
9541   if test -s conftest.err; then
9542     ac_cpp_err=$ac_c_preproc_warn_flag
9543   else
9544     ac_cpp_err=
9545   fi
9546 else
9547   ac_cpp_err=yes
9548 fi
9549 if test -z "$ac_cpp_err"; then
9550   ac_header_preproc=yes
9551 else
9552   echo "$as_me: failed program was:" >&5
9553   cat conftest.$ac_ext >&5
9554   ac_header_preproc=no
9555 fi
9556 rm -f conftest.err conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9558 echo "${ECHO_T}$ac_header_preproc" >&6
9559
9560 # So?  What about this header?
9561 case $ac_header_compiler:$ac_header_preproc in
9562   yes:no )
9563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9567   no:yes )
9568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9570     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9574 esac
9575 echo "$as_me:$LINENO: checking for $ac_header" >&5
9576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   eval "$as_ac_Header=$ac_header_preproc"
9581 fi
9582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9584
9585 fi
9586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9587   cat >>confdefs.h <<_ACEOF
9588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9589 _ACEOF
9590
9591       for termlib in ncurses curses termcap terminfo termlib; do
9592        as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
9593 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
9594 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   ac_check_lib_save_LIBS=$LIBS
9599 LIBS="-l${termlib}  $LIBS"
9600 cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9603
9604 /* Override any gcc2 internal prototype to avoid an error.  */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609    builtin and then its argument prototype would still apply.  */
9610 char tgetent ();
9611 int
9612 main ()
9613 {
9614 tgetent ();
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621   (eval $ac_link) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } &&
9625          { ac_try='test -s conftest$ac_exeext'
9626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627   (eval $ac_try) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631   eval "$as_ac_Lib=yes"
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 eval "$as_ac_Lib=no"
9636 fi
9637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9639 fi
9640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9641 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9642 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9643   TERMLIBS="-l${termlib}"; break
9644 fi
9645
9646       done
9647       echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
9648 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
9649 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-lreadline $TERMLIBS $LIBS"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9656 #include "confdefs.h"
9657
9658 /* Override any gcc2 internal prototype to avoid an error.  */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 /* We use char because int might match the return type of a gcc2
9663    builtin and then its argument prototype would still apply.  */
9664 char rl_callback_handler_install ();
9665 int
9666 main ()
9667 {
9668 rl_callback_handler_install ();
9669   ;
9670   return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675   (eval $ac_link) 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); } &&
9679          { ac_try='test -s conftest$ac_exeext'
9680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681   (eval $ac_try) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; }; then
9685   ac_cv_lib_readline_rl_callback_handler_install=yes
9686 else
9687   echo "$as_me: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9689 ac_cv_lib_readline_rl_callback_handler_install=no
9690 fi
9691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9693 fi
9694 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
9695 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
9696 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
9697   TERMLIBS="-lreadline $TERMLIBS"
9698
9699 cat >>confdefs.h <<\_ACEOF
9700 #define HAVE_LIBREADLINE 1
9701 _ACEOF
9702
9703        break
9704 else
9705   TERMLIBS=
9706 fi
9707
9708 fi
9709
9710 done
9711
9712     ;;
9713   no)
9714     echo "$as_me:$LINENO: result: no" >&5
9715 echo "${ECHO_T}no" >&6
9716     ;;
9717   *)
9718     echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6
9720
9721     # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
9722     # alternate readline path
9723     _ldflags=${LDFLAGS}
9724     _cppflags=${CPPFLAGS}
9725
9726     # Add additional search path
9727     LDFLAGS="-L$with_readline/lib $LDFLAGS"
9728     CPPFLAGS="-I$with_readline/include $CPPFLAGS"
9729
9730
9731
9732
9733 for ac_header in readline.h history.h readline/readline.h
9734 do
9735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9737   echo "$as_me:$LINENO: checking for $ac_header" >&5
9738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9740   echo $ECHO_N "(cached) $ECHO_C" >&6
9741 fi
9742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9744 else
9745   # Is the header compilable?
9746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9748 cat >conftest.$ac_ext <<_ACEOF
9749 #line $LINENO "configure"
9750 #include "confdefs.h"
9751 $ac_includes_default
9752 #include <$ac_header>
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756   (eval $ac_compile) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -s conftest.$ac_objext'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; }; then
9766   ac_header_compiler=yes
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 ac_header_compiler=no
9771 fi
9772 rm -f conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9775
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 #include "confdefs.h"
9782 #include <$ac_header>
9783 _ACEOF
9784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9785   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9786   ac_status=$?
9787   grep -v '^ *+' conftest.er1 >conftest.err
9788   rm -f conftest.er1
9789   cat conftest.err >&5
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } >/dev/null; then
9792   if test -s conftest.err; then
9793     ac_cpp_err=$ac_c_preproc_warn_flag
9794   else
9795     ac_cpp_err=
9796   fi
9797 else
9798   ac_cpp_err=yes
9799 fi
9800 if test -z "$ac_cpp_err"; then
9801   ac_header_preproc=yes
9802 else
9803   echo "$as_me: failed program was:" >&5
9804   cat conftest.$ac_ext >&5
9805   ac_header_preproc=no
9806 fi
9807 rm -f conftest.err conftest.$ac_ext
9808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9809 echo "${ECHO_T}$ac_header_preproc" >&6
9810
9811 # So?  What about this header?
9812 case $ac_header_compiler:$ac_header_preproc in
9813   yes:no )
9814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9818   no:yes )
9819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9821     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9825 esac
9826 echo "$as_me:$LINENO: checking for $ac_header" >&5
9827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   eval "$as_ac_Header=$ac_header_preproc"
9832 fi
9833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9835
9836 fi
9837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9838   cat >>confdefs.h <<_ACEOF
9839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9840 _ACEOF
9841
9842 fi
9843
9844 done
9845
9846
9847 for ac_header in readline/history.h
9848 do
9849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9851   echo "$as_me:$LINENO: checking for $ac_header" >&5
9852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 fi
9856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9858 else
9859   # Is the header compilable?
9860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9862 cat >conftest.$ac_ext <<_ACEOF
9863 #line $LINENO "configure"
9864 #include "confdefs.h"
9865 $ac_includes_default
9866 #include <$ac_header>
9867 _ACEOF
9868 rm -f conftest.$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870   (eval $ac_compile) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -s conftest.$ac_objext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_header_compiler=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 ac_header_compiler=no
9885 fi
9886 rm -f conftest.$ac_objext conftest.$ac_ext
9887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9888 echo "${ECHO_T}$ac_header_compiler" >&6
9889
9890 # Is the header present?
9891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9893 cat >conftest.$ac_ext <<_ACEOF
9894 #line $LINENO "configure"
9895 #include "confdefs.h"
9896 #include <$ac_header>
9897 _ACEOF
9898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } >/dev/null; then
9906   if test -s conftest.err; then
9907     ac_cpp_err=$ac_c_preproc_warn_flag
9908   else
9909     ac_cpp_err=
9910   fi
9911 else
9912   ac_cpp_err=yes
9913 fi
9914 if test -z "$ac_cpp_err"; then
9915   ac_header_preproc=yes
9916 else
9917   echo "$as_me: failed program was:" >&5
9918   cat conftest.$ac_ext >&5
9919   ac_header_preproc=no
9920 fi
9921 rm -f conftest.err conftest.$ac_ext
9922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9923 echo "${ECHO_T}$ac_header_preproc" >&6
9924
9925 # So?  What about this header?
9926 case $ac_header_compiler:$ac_header_preproc in
9927   yes:no )
9928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9932   no:yes )
9933     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9935     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9939 esac
9940 echo "$as_me:$LINENO: checking for $ac_header" >&5
9941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   eval "$as_ac_Header=$ac_header_preproc"
9946 fi
9947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9949
9950 fi
9951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952   cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9954 _ACEOF
9955
9956 fi
9957
9958 done
9959
9960
9961
9962
9963 for ac_header in readline.h readline/readline.h
9964 do
9965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9967   echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 fi
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9974 else
9975   # Is the header compilable?
9976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9979 #line $LINENO "configure"
9980 #include "confdefs.h"
9981 $ac_includes_default
9982 #include <$ac_header>
9983 _ACEOF
9984 rm -f conftest.$ac_objext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9986   (eval $ac_compile) 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } &&
9990          { ac_try='test -s conftest.$ac_objext'
9991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992   (eval $ac_try) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; }; then
9996   ac_header_compiler=yes
9997 else
9998   echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 ac_header_compiler=no
10001 fi
10002 rm -f conftest.$ac_objext conftest.$ac_ext
10003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10004 echo "${ECHO_T}$ac_header_compiler" >&6
10005
10006 # Is the header present?
10007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10009 cat >conftest.$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10011 #include "confdefs.h"
10012 #include <$ac_header>
10013 _ACEOF
10014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10016   ac_status=$?
10017   grep -v '^ *+' conftest.er1 >conftest.err
10018   rm -f conftest.er1
10019   cat conftest.err >&5
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } >/dev/null; then
10022   if test -s conftest.err; then
10023     ac_cpp_err=$ac_c_preproc_warn_flag
10024   else
10025     ac_cpp_err=
10026   fi
10027 else
10028   ac_cpp_err=yes
10029 fi
10030 if test -z "$ac_cpp_err"; then
10031   ac_header_preproc=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034   cat conftest.$ac_ext >&5
10035   ac_header_preproc=no
10036 fi
10037 rm -f conftest.err conftest.$ac_ext
10038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10039 echo "${ECHO_T}$ac_header_preproc" >&6
10040
10041 # So?  What about this header?
10042 case $ac_header_compiler:$ac_header_preproc in
10043   yes:no )
10044     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10048   no:yes )
10049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10051     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10055 esac
10056 echo "$as_me:$LINENO: checking for $ac_header" >&5
10057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   eval "$as_ac_Header=$ac_header_preproc"
10062 fi
10063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10065
10066 fi
10067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10068   cat >>confdefs.h <<_ACEOF
10069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10070 _ACEOF
10071
10072       for termlib in ncurses curses termcap terminfo termlib; do
10073        as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10074 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10075 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10076 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-l${termlib}  $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 #include "confdefs.h"
10084
10085 /* Override any gcc2 internal prototype to avoid an error.  */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 /* We use char because int might match the return type of a gcc2
10090    builtin and then its argument prototype would still apply.  */
10091 char tgetent ();
10092 int
10093 main ()
10094 {
10095 tgetent ();
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10102   (eval $ac_link) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -s conftest$ac_exeext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   eval "$as_ac_Lib=yes"
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10116 eval "$as_ac_Lib=no"
10117 fi
10118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10120 fi
10121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10122 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10123 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10124   TERMLIBS="-l${termlib}"; break
10125 fi
10126
10127       done
10128       echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10129 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10130 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133   ac_check_lib_save_LIBS=$LIBS
10134 LIBS="-lreadline $TERMLIBS $LIBS"
10135 cat >conftest.$ac_ext <<_ACEOF
10136 #line $LINENO "configure"
10137 #include "confdefs.h"
10138
10139 /* Override any gcc2 internal prototype to avoid an error.  */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 /* We use char because int might match the return type of a gcc2
10144    builtin and then its argument prototype would still apply.  */
10145 char rl_callback_handler_install ();
10146 int
10147 main ()
10148 {
10149 rl_callback_handler_install ();
10150   ;
10151   return 0;
10152 }
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156   (eval $ac_link) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } &&
10160          { ac_try='test -s conftest$ac_exeext'
10161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162   (eval $ac_try) 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; }; then
10166   ac_cv_lib_readline_rl_callback_handler_install=yes
10167 else
10168   echo "$as_me: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10170 ac_cv_lib_readline_rl_callback_handler_install=no
10171 fi
10172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10174 fi
10175 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10176 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10177 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10178   TERMLDFLAGS="-L$with_readline/lib"
10179        TERMCPPFLAGS="-I$with_readline/include"
10180        CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10181        TERMLIBS="-lreadline $TERMLIBS"
10182
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_LIBREADLINE 1
10185 _ACEOF
10186
10187        break
10188 else
10189   TERMLIBS= CPPFLAGS=$_cppflags
10190 fi
10191
10192 fi
10193
10194 done
10195
10196
10197     LDFLAGS=$_ldflags
10198     ;;
10199   esac
10200 else
10201   echo "$as_me:$LINENO: result: no" >&5
10202 echo "${ECHO_T}no" >&6
10203
10204 fi;
10205
10206
10207
10208 # The readline API changed slightly from readline3 to readline4, so
10209 # code will generate warnings on one of them unless we have a few
10210 # special cases.
10211 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10212 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10213 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lreadline $TERMLIBS $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 #line $LINENO "configure"
10220 #include "confdefs.h"
10221
10222 /* Override any gcc2 internal prototype to avoid an error.  */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 /* We use char because int might match the return type of a gcc2
10227    builtin and then its argument prototype would still apply.  */
10228 char rl_completion_matches ();
10229 int
10230 main ()
10231 {
10232 rl_completion_matches ();
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239   (eval $ac_link) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } &&
10243          { ac_try='test -s conftest$ac_exeext'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; }; then
10249   ac_cv_lib_readline_rl_completion_matches=yes
10250 else
10251   echo "$as_me: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10253 ac_cv_lib_readline_rl_completion_matches=no
10254 fi
10255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10257 fi
10258 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10259 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10260 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10261
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_NEW_LIBREADLINE 1
10264 _ACEOF
10265
10266 fi
10267
10268
10269 # The following test taken from the cvs sources
10270 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10271 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10272 # libsocket.so which has a bad implementation of gethostbyname (it
10273 # only looks in /etc/hosts), so we only look for -lsocket if we need
10274 # it.
10275
10276 for ac_func in connect
10277 do
10278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 echo "$as_me:$LINENO: checking for $ac_func" >&5
10280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10281 if eval "test \"\${$as_ac_var+set}\" = set"; then
10282   echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284   cat >conftest.$ac_ext <<_ACEOF
10285 #line $LINENO "configure"
10286 #include "confdefs.h"
10287 /* System header to define __stub macros and hopefully few prototypes,
10288     which can conflict with char $ac_func (); below.  */
10289 #include <assert.h>
10290 /* Override any gcc2 internal prototype to avoid an error.  */
10291 #ifdef __cplusplus
10292 extern "C"
10293 #endif
10294 /* We use char because int might match the return type of a gcc2
10295    builtin and then its argument prototype would still apply.  */
10296 char $ac_func ();
10297 char (*f) ();
10298
10299 int
10300 main ()
10301 {
10302 /* The GNU C library defines this for functions which it implements
10303     to always fail with ENOSYS.  Some functions are actually named
10304     something starting with __ and the normal name is an alias.  */
10305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10306 choke me
10307 #else
10308 f = $ac_func;
10309 #endif
10310
10311   ;
10312   return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317   (eval $ac_link) 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); } &&
10321          { ac_try='test -s conftest$ac_exeext'
10322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323   (eval $ac_try) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); }; }; then
10327   eval "$as_ac_var=yes"
10328 else
10329   echo "$as_me: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 eval "$as_ac_var=no"
10332 fi
10333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10334 fi
10335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10337 if test `eval echo '${'$as_ac_var'}'` = yes; then
10338   cat >>confdefs.h <<_ACEOF
10339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10340 _ACEOF
10341
10342 fi
10343 done
10344
10345 if test x"$ac_cv_func_connect" = x"no"; then
10346     case "$LIBS" in
10347     *-lnsl*) ;;
10348     *)
10349 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10350 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10351 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354   ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-lnsl_s  $LIBS"
10356 cat >conftest.$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10358 #include "confdefs.h"
10359
10360 /* Override any gcc2 internal prototype to avoid an error.  */
10361 #ifdef __cplusplus
10362 extern "C"
10363 #endif
10364 /* We use char because int might match the return type of a gcc2
10365    builtin and then its argument prototype would still apply.  */
10366 char printf ();
10367 int
10368 main ()
10369 {
10370 printf ();
10371   ;
10372   return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377   (eval $ac_link) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } &&
10381          { ac_try='test -s conftest$ac_exeext'
10382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383   (eval $ac_try) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }; }; then
10387   ac_cv_lib_nsl_s_printf=yes
10388 else
10389   echo "$as_me: failed program was:" >&5
10390 cat conftest.$ac_ext >&5
10391 ac_cv_lib_nsl_s_printf=no
10392 fi
10393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10395 fi
10396 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10397 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10398 if test $ac_cv_lib_nsl_s_printf = yes; then
10399   cat >>confdefs.h <<_ACEOF
10400 #define HAVE_LIBNSL_S 1
10401 _ACEOF
10402
10403   LIBS="-lnsl_s $LIBS"
10404
10405 fi
10406  ;;
10407     esac
10408     case "$LIBS" in
10409     *-lnsl*) ;;
10410     *)
10411 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10412 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10413 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10414   echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416   ac_check_lib_save_LIBS=$LIBS
10417 LIBS="-lnsl  $LIBS"
10418 cat >conftest.$ac_ext <<_ACEOF
10419 #line $LINENO "configure"
10420 #include "confdefs.h"
10421
10422 /* Override any gcc2 internal prototype to avoid an error.  */
10423 #ifdef __cplusplus
10424 extern "C"
10425 #endif
10426 /* We use char because int might match the return type of a gcc2
10427    builtin and then its argument prototype would still apply.  */
10428 char printf ();
10429 int
10430 main ()
10431 {
10432 printf ();
10433   ;
10434   return 0;
10435 }
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439   (eval $ac_link) 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } &&
10443          { ac_try='test -s conftest$ac_exeext'
10444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445   (eval $ac_try) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; }; then
10449   ac_cv_lib_nsl_printf=yes
10450 else
10451   echo "$as_me: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10453 ac_cv_lib_nsl_printf=no
10454 fi
10455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10456 LIBS=$ac_check_lib_save_LIBS
10457 fi
10458 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10459 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10460 if test $ac_cv_lib_nsl_printf = yes; then
10461   cat >>confdefs.h <<_ACEOF
10462 #define HAVE_LIBNSL 1
10463 _ACEOF
10464
10465   LIBS="-lnsl $LIBS"
10466
10467 fi
10468  ;;
10469     esac
10470     case "$LIBS" in
10471     *-lsocket*) ;;
10472     *)
10473 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10474 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10475 if test "${ac_cv_lib_socket_connect+set}" = set; then
10476   echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478   ac_check_lib_save_LIBS=$LIBS
10479 LIBS="-lsocket  $LIBS"
10480 cat >conftest.$ac_ext <<_ACEOF
10481 #line $LINENO "configure"
10482 #include "confdefs.h"
10483
10484 /* Override any gcc2 internal prototype to avoid an error.  */
10485 #ifdef __cplusplus
10486 extern "C"
10487 #endif
10488 /* We use char because int might match the return type of a gcc2
10489    builtin and then its argument prototype would still apply.  */
10490 char connect ();
10491 int
10492 main ()
10493 {
10494 connect ();
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501   (eval $ac_link) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); } &&
10505          { ac_try='test -s conftest$ac_exeext'
10506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507   (eval $ac_try) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; }; then
10511   ac_cv_lib_socket_connect=yes
10512 else
10513   echo "$as_me: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10515 ac_cv_lib_socket_connect=no
10516 fi
10517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10519 fi
10520 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10521 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10522 if test $ac_cv_lib_socket_connect = yes; then
10523   cat >>confdefs.h <<_ACEOF
10524 #define HAVE_LIBSOCKET 1
10525 _ACEOF
10526
10527   LIBS="-lsocket $LIBS"
10528
10529 fi
10530  ;;
10531     esac
10532     case "$LIBS" in
10533     *-linet*) ;;
10534     *)
10535 echo "$as_me:$LINENO: checking for connect in -linet" >&5
10536 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
10537 if test "${ac_cv_lib_inet_connect+set}" = set; then
10538   echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540   ac_check_lib_save_LIBS=$LIBS
10541 LIBS="-linet  $LIBS"
10542 cat >conftest.$ac_ext <<_ACEOF
10543 #line $LINENO "configure"
10544 #include "confdefs.h"
10545
10546 /* Override any gcc2 internal prototype to avoid an error.  */
10547 #ifdef __cplusplus
10548 extern "C"
10549 #endif
10550 /* We use char because int might match the return type of a gcc2
10551    builtin and then its argument prototype would still apply.  */
10552 char connect ();
10553 int
10554 main ()
10555 {
10556 connect ();
10557   ;
10558   return 0;
10559 }
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563   (eval $ac_link) 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } &&
10567          { ac_try='test -s conftest$ac_exeext'
10568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569   (eval $ac_try) 2>&5
10570   ac_status=$?
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); }; }; then
10573   ac_cv_lib_inet_connect=yes
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 ac_cv_lib_inet_connect=no
10578 fi
10579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10581 fi
10582 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
10583 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
10584 if test $ac_cv_lib_inet_connect = yes; then
10585   cat >>confdefs.h <<_ACEOF
10586 #define HAVE_LIBINET 1
10587 _ACEOF
10588
10589   LIBS="-linet $LIBS"
10590
10591 fi
10592  ;;
10593     esac
10594             if test x"$ac_cv_lib_socket_connect" = x"yes" ||
10595        test x"$ac_cv_lib_inet_connect" = x"yes"; then
10596         # ac_cv_func_connect=yes
10597         # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run
10598
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_CONNECT 1
10601 _ACEOF
10602
10603     fi
10604 fi
10605
10606 ###############################################
10607 # test for where we get get_yp_default_domain() from
10608
10609 for ac_func in yp_get_default_domain
10610 do
10611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10612 echo "$as_me:$LINENO: checking for $ac_func" >&5
10613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10614 if eval "test \"\${$as_ac_var+set}\" = set"; then
10615   echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617   cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10619 #include "confdefs.h"
10620 /* System header to define __stub macros and hopefully few prototypes,
10621     which can conflict with char $ac_func (); below.  */
10622 #include <assert.h>
10623 /* Override any gcc2 internal prototype to avoid an error.  */
10624 #ifdef __cplusplus
10625 extern "C"
10626 #endif
10627 /* We use char because int might match the return type of a gcc2
10628    builtin and then its argument prototype would still apply.  */
10629 char $ac_func ();
10630 char (*f) ();
10631
10632 int
10633 main ()
10634 {
10635 /* The GNU C library defines this for functions which it implements
10636     to always fail with ENOSYS.  Some functions are actually named
10637     something starting with __ and the normal name is an alias.  */
10638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10639 choke me
10640 #else
10641 f = $ac_func;
10642 #endif
10643
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650   (eval $ac_link) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } &&
10654          { ac_try='test -s conftest$ac_exeext'
10655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656   (eval $ac_try) 2>&5
10657   ac_status=$?
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); }; }; then
10660   eval "$as_ac_var=yes"
10661 else
10662   echo "$as_me: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 eval "$as_ac_var=no"
10665 fi
10666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10667 fi
10668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10670 if test `eval echo '${'$as_ac_var'}'` = yes; then
10671   cat >>confdefs.h <<_ACEOF
10672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10673 _ACEOF
10674
10675 fi
10676 done
10677
10678 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
10679         echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
10680 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
10681 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684   ac_check_lib_save_LIBS=$LIBS
10685 LIBS="-lnsl  $LIBS"
10686 cat >conftest.$ac_ext <<_ACEOF
10687 #line $LINENO "configure"
10688 #include "confdefs.h"
10689
10690 /* Override any gcc2 internal prototype to avoid an error.  */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 /* We use char because int might match the return type of a gcc2
10695    builtin and then its argument prototype would still apply.  */
10696 char yp_get_default_domain ();
10697 int
10698 main ()
10699 {
10700 yp_get_default_domain ();
10701   ;
10702   return 0;
10703 }
10704 _ACEOF
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10707   (eval $ac_link) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); } &&
10711          { ac_try='test -s conftest$ac_exeext'
10712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713   (eval $ac_try) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; }; then
10717   ac_cv_lib_nsl_yp_get_default_domain=yes
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 ac_cv_lib_nsl_yp_get_default_domain=no
10722 fi
10723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10724 LIBS=$ac_check_lib_save_LIBS
10725 fi
10726 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
10727 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
10728 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
10729   LIBS="$LIBS -lnsl";
10730
10731 cat >>confdefs.h <<\_ACEOF
10732 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
10733 _ACEOF
10734
10735 fi
10736
10737 fi
10738
10739 # Check if we have execl, if not we need to compile smbrun.
10740
10741 for ac_func in execl
10742 do
10743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 echo "$as_me:$LINENO: checking for $ac_func" >&5
10745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10746 if eval "test \"\${$as_ac_var+set}\" = set"; then
10747   echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749   cat >conftest.$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10751 #include "confdefs.h"
10752 /* System header to define __stub macros and hopefully few prototypes,
10753     which can conflict with char $ac_func (); below.  */
10754 #include <assert.h>
10755 /* Override any gcc2 internal prototype to avoid an error.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 /* We use char because int might match the return type of a gcc2
10760    builtin and then its argument prototype would still apply.  */
10761 char $ac_func ();
10762 char (*f) ();
10763
10764 int
10765 main ()
10766 {
10767 /* The GNU C library defines this for functions which it implements
10768     to always fail with ENOSYS.  Some functions are actually named
10769     something starting with __ and the normal name is an alias.  */
10770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10771 choke me
10772 #else
10773 f = $ac_func;
10774 #endif
10775
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782   (eval $ac_link) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -s conftest$ac_exeext'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; }; then
10792   eval "$as_ac_var=yes"
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 eval "$as_ac_var=no"
10797 fi
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10799 fi
10800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10802 if test `eval echo '${'$as_ac_var'}'` = yes; then
10803   cat >>confdefs.h <<_ACEOF
10804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10805 _ACEOF
10806
10807 fi
10808 done
10809
10810 if test x"$ac_cv_func_execl" = x"no"; then
10811     RUNPROG="bin/smbrun"
10812 else
10813     RUNPROG=""
10814 fi
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
10836 do
10837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10838 echo "$as_me:$LINENO: checking for $ac_func" >&5
10839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10840 if eval "test \"\${$as_ac_var+set}\" = set"; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10845 #include "confdefs.h"
10846 /* System header to define __stub macros and hopefully few prototypes,
10847     which can conflict with char $ac_func (); below.  */
10848 #include <assert.h>
10849 /* Override any gcc2 internal prototype to avoid an error.  */
10850 #ifdef __cplusplus
10851 extern "C"
10852 #endif
10853 /* We use char because int might match the return type of a gcc2
10854    builtin and then its argument prototype would still apply.  */
10855 char $ac_func ();
10856 char (*f) ();
10857
10858 int
10859 main ()
10860 {
10861 /* The GNU C library defines this for functions which it implements
10862     to always fail with ENOSYS.  Some functions are actually named
10863     something starting with __ and the normal name is an alias.  */
10864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10865 choke me
10866 #else
10867 f = $ac_func;
10868 #endif
10869
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876   (eval $ac_link) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); } &&
10880          { ac_try='test -s conftest$ac_exeext'
10881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882   (eval $ac_try) 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; }; then
10886   eval "$as_ac_var=yes"
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10890 eval "$as_ac_var=no"
10891 fi
10892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10893 fi
10894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10896 if test `eval echo '${'$as_ac_var'}'` = yes; then
10897   cat >>confdefs.h <<_ACEOF
10898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10899 _ACEOF
10900
10901 fi
10902 done
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
10916 do
10917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918 echo "$as_me:$LINENO: checking for $ac_func" >&5
10919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10920 if eval "test \"\${$as_ac_var+set}\" = set"; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   cat >conftest.$ac_ext <<_ACEOF
10924 #line $LINENO "configure"
10925 #include "confdefs.h"
10926 /* System header to define __stub macros and hopefully few prototypes,
10927     which can conflict with char $ac_func (); below.  */
10928 #include <assert.h>
10929 /* Override any gcc2 internal prototype to avoid an error.  */
10930 #ifdef __cplusplus
10931 extern "C"
10932 #endif
10933 /* We use char because int might match the return type of a gcc2
10934    builtin and then its argument prototype would still apply.  */
10935 char $ac_func ();
10936 char (*f) ();
10937
10938 int
10939 main ()
10940 {
10941 /* The GNU C library defines this for functions which it implements
10942     to always fail with ENOSYS.  Some functions are actually named
10943     something starting with __ and the normal name is an alias.  */
10944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10945 choke me
10946 #else
10947 f = $ac_func;
10948 #endif
10949
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956   (eval $ac_link) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } &&
10960          { ac_try='test -s conftest$ac_exeext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   eval "$as_ac_var=yes"
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 cat conftest.$ac_ext >&5
10970 eval "$as_ac_var=no"
10971 fi
10972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10973 fi
10974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10976 if test `eval echo '${'$as_ac_var'}'` = yes; then
10977   cat >>confdefs.h <<_ACEOF
10978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10979 _ACEOF
10980
10981 fi
10982 done
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
10996 do
10997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10998 echo "$as_me:$LINENO: checking for $ac_func" >&5
10999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11000 if eval "test \"\${$as_ac_var+set}\" = set"; then
11001   echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003   cat >conftest.$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11005 #include "confdefs.h"
11006 /* System header to define __stub macros and hopefully few prototypes,
11007     which can conflict with char $ac_func (); below.  */
11008 #include <assert.h>
11009 /* Override any gcc2 internal prototype to avoid an error.  */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 /* We use char because int might match the return type of a gcc2
11014    builtin and then its argument prototype would still apply.  */
11015 char $ac_func ();
11016 char (*f) ();
11017
11018 int
11019 main ()
11020 {
11021 /* The GNU C library defines this for functions which it implements
11022     to always fail with ENOSYS.  Some functions are actually named
11023     something starting with __ and the normal name is an alias.  */
11024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11025 choke me
11026 #else
11027 f = $ac_func;
11028 #endif
11029
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 rm -f conftest.$ac_objext conftest$ac_exeext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036   (eval $ac_link) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } &&
11040          { ac_try='test -s conftest$ac_exeext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   eval "$as_ac_var=yes"
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11050 eval "$as_ac_var=no"
11051 fi
11052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11053 fi
11054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11056 if test `eval echo '${'$as_ac_var'}'` = yes; then
11057   cat >>confdefs.h <<_ACEOF
11058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11059 _ACEOF
11060
11061 fi
11062 done
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11074 do
11075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11076 echo "$as_me:$LINENO: checking for $ac_func" >&5
11077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_var+set}\" = set"; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085     which can conflict with char $ac_func (); below.  */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error.  */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 /* We use char because int might match the return type of a gcc2
11092    builtin and then its argument prototype would still apply.  */
11093 char $ac_func ();
11094 char (*f) ();
11095
11096 int
11097 main ()
11098 {
11099 /* The GNU C library defines this for functions which it implements
11100     to always fail with ENOSYS.  Some functions are actually named
11101     something starting with __ and the normal name is an alias.  */
11102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11103 choke me
11104 #else
11105 f = $ac_func;
11106 #endif
11107
11108   ;
11109   return 0;
11110 }
11111 _ACEOF
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114   (eval $ac_link) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } &&
11118          { ac_try='test -s conftest$ac_exeext'
11119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120   (eval $ac_try) 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); }; }; then
11124   eval "$as_ac_var=yes"
11125 else
11126   echo "$as_me: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11128 eval "$as_ac_var=no"
11129 fi
11130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11131 fi
11132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11134 if test `eval echo '${'$as_ac_var'}'` = yes; then
11135   cat >>confdefs.h <<_ACEOF
11136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11137 _ACEOF
11138
11139 fi
11140 done
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11151 do
11152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11153 echo "$as_me:$LINENO: checking for $ac_func" >&5
11154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_var+set}\" = set"; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11161 /* System header to define __stub macros and hopefully few prototypes,
11162     which can conflict with char $ac_func (); below.  */
11163 #include <assert.h>
11164 /* Override any gcc2 internal prototype to avoid an error.  */
11165 #ifdef __cplusplus
11166 extern "C"
11167 #endif
11168 /* We use char because int might match the return type of a gcc2
11169    builtin and then its argument prototype would still apply.  */
11170 char $ac_func ();
11171 char (*f) ();
11172
11173 int
11174 main ()
11175 {
11176 /* The GNU C library defines this for functions which it implements
11177     to always fail with ENOSYS.  Some functions are actually named
11178     something starting with __ and the normal name is an alias.  */
11179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11180 choke me
11181 #else
11182 f = $ac_func;
11183 #endif
11184
11185   ;
11186   return 0;
11187 }
11188 _ACEOF
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191   (eval $ac_link) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } &&
11195          { ac_try='test -s conftest$ac_exeext'
11196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197   (eval $ac_try) 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; }; then
11201   eval "$as_ac_var=yes"
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 eval "$as_ac_var=no"
11206 fi
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11208 fi
11209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11211 if test `eval echo '${'$as_ac_var'}'` = yes; then
11212   cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11214 _ACEOF
11215
11216 fi
11217 done
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11230 do
11231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11232 echo "$as_me:$LINENO: checking for $ac_func" >&5
11233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11234 if eval "test \"\${$as_ac_var+set}\" = set"; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11239 #include "confdefs.h"
11240 /* System header to define __stub macros and hopefully few prototypes,
11241     which can conflict with char $ac_func (); below.  */
11242 #include <assert.h>
11243 /* Override any gcc2 internal prototype to avoid an error.  */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 /* We use char because int might match the return type of a gcc2
11248    builtin and then its argument prototype would still apply.  */
11249 char $ac_func ();
11250 char (*f) ();
11251
11252 int
11253 main ()
11254 {
11255 /* The GNU C library defines this for functions which it implements
11256     to always fail with ENOSYS.  Some functions are actually named
11257     something starting with __ and the normal name is an alias.  */
11258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11259 choke me
11260 #else
11261 f = $ac_func;
11262 #endif
11263
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270   (eval $ac_link) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -s conftest$ac_exeext'
11275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276   (eval $ac_try) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; }; then
11280   eval "$as_ac_var=yes"
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 eval "$as_ac_var=no"
11285 fi
11286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11287 fi
11288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11290 if test `eval echo '${'$as_ac_var'}'` = yes; then
11291   cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11293 _ACEOF
11294
11295 fi
11296 done
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11307 do
11308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309 echo "$as_me:$LINENO: checking for $ac_func" >&5
11310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11311 if eval "test \"\${$as_ac_var+set}\" = set"; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 #include "confdefs.h"
11317 /* System header to define __stub macros and hopefully few prototypes,
11318     which can conflict with char $ac_func (); below.  */
11319 #include <assert.h>
11320 /* Override any gcc2 internal prototype to avoid an error.  */
11321 #ifdef __cplusplus
11322 extern "C"
11323 #endif
11324 /* We use char because int might match the return type of a gcc2
11325    builtin and then its argument prototype would still apply.  */
11326 char $ac_func ();
11327 char (*f) ();
11328
11329 int
11330 main ()
11331 {
11332 /* The GNU C library defines this for functions which it implements
11333     to always fail with ENOSYS.  Some functions are actually named
11334     something starting with __ and the normal name is an alias.  */
11335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11336 choke me
11337 #else
11338 f = $ac_func;
11339 #endif
11340
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347   (eval $ac_link) 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } &&
11351          { ac_try='test -s conftest$ac_exeext'
11352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353   (eval $ac_try) 2>&5
11354   ac_status=$?
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); }; }; then
11357   eval "$as_ac_var=yes"
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 eval "$as_ac_var=no"
11362 fi
11363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11364 fi
11365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11367 if test `eval echo '${'$as_ac_var'}'` = yes; then
11368   cat >>confdefs.h <<_ACEOF
11369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11370 _ACEOF
11371
11372 fi
11373 done
11374
11375
11376
11377
11378
11379
11380
11381
11382 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11383 do
11384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11387 if eval "test \"\${$as_ac_var+set}\" = set"; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11392 #include "confdefs.h"
11393 /* System header to define __stub macros and hopefully few prototypes,
11394     which can conflict with char $ac_func (); below.  */
11395 #include <assert.h>
11396 /* Override any gcc2 internal prototype to avoid an error.  */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 /* We use char because int might match the return type of a gcc2
11401    builtin and then its argument prototype would still apply.  */
11402 char $ac_func ();
11403 char (*f) ();
11404
11405 int
11406 main ()
11407 {
11408 /* The GNU C library defines this for functions which it implements
11409     to always fail with ENOSYS.  Some functions are actually named
11410     something starting with __ and the normal name is an alias.  */
11411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11412 choke me
11413 #else
11414 f = $ac_func;
11415 #endif
11416
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423   (eval $ac_link) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); } &&
11427          { ac_try='test -s conftest$ac_exeext'
11428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429   (eval $ac_try) 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); }; }; then
11433   eval "$as_ac_var=yes"
11434 else
11435   echo "$as_me: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11437 eval "$as_ac_var=no"
11438 fi
11439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440 fi
11441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11443 if test `eval echo '${'$as_ac_var'}'` = yes; then
11444   cat >>confdefs.h <<_ACEOF
11445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11446 _ACEOF
11447
11448 fi
11449 done
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
11463 do
11464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11465 echo "$as_me:$LINENO: checking for $ac_func" >&5
11466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11467 if eval "test \"\${$as_ac_var+set}\" = set"; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   cat >conftest.$ac_ext <<_ACEOF
11471 #line $LINENO "configure"
11472 #include "confdefs.h"
11473 /* System header to define __stub macros and hopefully few prototypes,
11474     which can conflict with char $ac_func (); below.  */
11475 #include <assert.h>
11476 /* Override any gcc2 internal prototype to avoid an error.  */
11477 #ifdef __cplusplus
11478 extern "C"
11479 #endif
11480 /* We use char because int might match the return type of a gcc2
11481    builtin and then its argument prototype would still apply.  */
11482 char $ac_func ();
11483 char (*f) ();
11484
11485 int
11486 main ()
11487 {
11488 /* The GNU C library defines this for functions which it implements
11489     to always fail with ENOSYS.  Some functions are actually named
11490     something starting with __ and the normal name is an alias.  */
11491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11492 choke me
11493 #else
11494 f = $ac_func;
11495 #endif
11496
11497   ;
11498   return 0;
11499 }
11500 _ACEOF
11501 rm -f conftest.$ac_objext conftest$ac_exeext
11502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11503   (eval $ac_link) 2>&5
11504   ac_status=$?
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } &&
11507          { ac_try='test -s conftest$ac_exeext'
11508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509   (eval $ac_try) 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); }; }; then
11513   eval "$as_ac_var=yes"
11514 else
11515   echo "$as_me: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11517 eval "$as_ac_var=no"
11518 fi
11519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11520 fi
11521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11523 if test `eval echo '${'$as_ac_var'}'` = yes; then
11524   cat >>confdefs.h <<_ACEOF
11525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11526 _ACEOF
11527
11528 fi
11529 done
11530
11531
11532
11533
11534
11535 for ac_func in syslog vsyslog getgrouplist timegm
11536 do
11537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11540 if eval "test \"\${$as_ac_var+set}\" = set"; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes,
11547     which can conflict with char $ac_func (); below.  */
11548 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error.  */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 /* We use char because int might match the return type of a gcc2
11554    builtin and then its argument prototype would still apply.  */
11555 char $ac_func ();
11556 char (*f) ();
11557
11558 int
11559 main ()
11560 {
11561 /* The GNU C library defines this for functions which it implements
11562     to always fail with ENOSYS.  Some functions are actually named
11563     something starting with __ and the normal name is an alias.  */
11564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11565 choke me
11566 #else
11567 f = $ac_func;
11568 #endif
11569
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576   (eval $ac_link) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } &&
11580          { ac_try='test -s conftest$ac_exeext'
11581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582   (eval $ac_try) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; }; then
11586   eval "$as_ac_var=yes"
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 eval "$as_ac_var=no"
11591 fi
11592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11593 fi
11594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11596 if test `eval echo '${'$as_ac_var'}'` = yes; then
11597   cat >>confdefs.h <<_ACEOF
11598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 _ACEOF
11600
11601 fi
11602 done
11603
11604 # setbuffer is needed for smbtorture
11605
11606 for ac_func in setbuffer
11607 do
11608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11609 echo "$as_me:$LINENO: checking for $ac_func" >&5
11610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11611 if eval "test \"\${$as_ac_var+set}\" = set"; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   cat >conftest.$ac_ext <<_ACEOF
11615 #line $LINENO "configure"
11616 #include "confdefs.h"
11617 /* System header to define __stub macros and hopefully few prototypes,
11618     which can conflict with char $ac_func (); below.  */
11619 #include <assert.h>
11620 /* Override any gcc2 internal prototype to avoid an error.  */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 /* We use char because int might match the return type of a gcc2
11625    builtin and then its argument prototype would still apply.  */
11626 char $ac_func ();
11627 char (*f) ();
11628
11629 int
11630 main ()
11631 {
11632 /* The GNU C library defines this for functions which it implements
11633     to always fail with ENOSYS.  Some functions are actually named
11634     something starting with __ and the normal name is an alias.  */
11635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11636 choke me
11637 #else
11638 f = $ac_func;
11639 #endif
11640
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647   (eval $ac_link) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); } &&
11651          { ac_try='test -s conftest$ac_exeext'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; }; then
11657   eval "$as_ac_var=yes"
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 cat conftest.$ac_ext >&5
11661 eval "$as_ac_var=no"
11662 fi
11663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11664 fi
11665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11667 if test `eval echo '${'$as_ac_var'}'` = yes; then
11668   cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11670 _ACEOF
11671
11672 fi
11673 done
11674
11675
11676 # syscall() is needed for smbwrapper.
11677
11678 for ac_func in syscall
11679 do
11680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681 echo "$as_me:$LINENO: checking for $ac_func" >&5
11682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11683 if eval "test \"\${$as_ac_var+set}\" = set"; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686   cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 #include "confdefs.h"
11689 /* System header to define __stub macros and hopefully few prototypes,
11690     which can conflict with char $ac_func (); below.  */
11691 #include <assert.h>
11692 /* Override any gcc2 internal prototype to avoid an error.  */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697    builtin and then its argument prototype would still apply.  */
11698 char $ac_func ();
11699 char (*f) ();
11700
11701 int
11702 main ()
11703 {
11704 /* The GNU C library defines this for functions which it implements
11705     to always fail with ENOSYS.  Some functions are actually named
11706     something starting with __ and the normal name is an alias.  */
11707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11708 choke me
11709 #else
11710 f = $ac_func;
11711 #endif
11712
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719   (eval $ac_link) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } &&
11723          { ac_try='test -s conftest$ac_exeext'
11724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725   (eval $ac_try) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   eval "$as_ac_var=yes"
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 eval "$as_ac_var=no"
11734 fi
11735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11736 fi
11737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740   cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 _ACEOF
11743
11744 fi
11745 done
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
11756 do
11757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11758 echo "$as_me:$LINENO: checking for $ac_func" >&5
11759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11760 if eval "test \"\${$as_ac_var+set}\" = set"; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763   cat >conftest.$ac_ext <<_ACEOF
11764 #line $LINENO "configure"
11765 #include "confdefs.h"
11766 /* System header to define __stub macros and hopefully few prototypes,
11767     which can conflict with char $ac_func (); below.  */
11768 #include <assert.h>
11769 /* Override any gcc2 internal prototype to avoid an error.  */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 /* We use char because int might match the return type of a gcc2
11774    builtin and then its argument prototype would still apply.  */
11775 char $ac_func ();
11776 char (*f) ();
11777
11778 int
11779 main ()
11780 {
11781 /* The GNU C library defines this for functions which it implements
11782     to always fail with ENOSYS.  Some functions are actually named
11783     something starting with __ and the normal name is an alias.  */
11784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11785 choke me
11786 #else
11787 f = $ac_func;
11788 #endif
11789
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796   (eval $ac_link) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } &&
11800          { ac_try='test -s conftest$ac_exeext'
11801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802   (eval $ac_try) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; }; then
11806   eval "$as_ac_var=yes"
11807 else
11808   echo "$as_me: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11810 eval "$as_ac_var=no"
11811 fi
11812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11813 fi
11814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817   cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11819 _ACEOF
11820
11821 fi
11822 done
11823
11824
11825
11826
11827
11828
11829
11830
11831 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
11832 do
11833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11834 echo "$as_me:$LINENO: checking for $ac_func" >&5
11835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11836 if eval "test \"\${$as_ac_var+set}\" = set"; then
11837   echo $ECHO_N "(cached) $ECHO_C" >&6
11838 else
11839   cat >conftest.$ac_ext <<_ACEOF
11840 #line $LINENO "configure"
11841 #include "confdefs.h"
11842 /* System header to define __stub macros and hopefully few prototypes,
11843     which can conflict with char $ac_func (); below.  */
11844 #include <assert.h>
11845 /* Override any gcc2 internal prototype to avoid an error.  */
11846 #ifdef __cplusplus
11847 extern "C"
11848 #endif
11849 /* We use char because int might match the return type of a gcc2
11850    builtin and then its argument prototype would still apply.  */
11851 char $ac_func ();
11852 char (*f) ();
11853
11854 int
11855 main ()
11856 {
11857 /* The GNU C library defines this for functions which it implements
11858     to always fail with ENOSYS.  Some functions are actually named
11859     something starting with __ and the normal name is an alias.  */
11860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11861 choke me
11862 #else
11863 f = $ac_func;
11864 #endif
11865
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872   (eval $ac_link) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); } &&
11876          { ac_try='test -s conftest$ac_exeext'
11877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878   (eval $ac_try) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; }; then
11882   eval "$as_ac_var=yes"
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11886 eval "$as_ac_var=no"
11887 fi
11888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11889 fi
11890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11892 if test `eval echo '${'$as_ac_var'}'` = yes; then
11893   cat >>confdefs.h <<_ACEOF
11894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11895 _ACEOF
11896
11897 fi
11898 done
11899
11900
11901
11902 for ac_func in __getcwd _getcwd
11903 do
11904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11905 echo "$as_me:$LINENO: checking for $ac_func" >&5
11906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11907 if eval "test \"\${$as_ac_var+set}\" = set"; then
11908   echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910   cat >conftest.$ac_ext <<_ACEOF
11911 #line $LINENO "configure"
11912 #include "confdefs.h"
11913 /* System header to define __stub macros and hopefully few prototypes,
11914     which can conflict with char $ac_func (); below.  */
11915 #include <assert.h>
11916 /* Override any gcc2 internal prototype to avoid an error.  */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 /* We use char because int might match the return type of a gcc2
11921    builtin and then its argument prototype would still apply.  */
11922 char $ac_func ();
11923 char (*f) ();
11924
11925 int
11926 main ()
11927 {
11928 /* The GNU C library defines this for functions which it implements
11929     to always fail with ENOSYS.  Some functions are actually named
11930     something starting with __ and the normal name is an alias.  */
11931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11932 choke me
11933 #else
11934 f = $ac_func;
11935 #endif
11936
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943   (eval $ac_link) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); } &&
11947          { ac_try='test -s conftest$ac_exeext'
11948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949   (eval $ac_try) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; }; then
11953   eval "$as_ac_var=yes"
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11957 eval "$as_ac_var=no"
11958 fi
11959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960 fi
11961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11963 if test `eval echo '${'$as_ac_var'}'` = yes; then
11964   cat >>confdefs.h <<_ACEOF
11965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11966 _ACEOF
11967
11968 fi
11969 done
11970
11971
11972
11973
11974 for ac_func in __xstat __fxstat __lxstat
11975 do
11976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11977 echo "$as_me:$LINENO: checking for $ac_func" >&5
11978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11979 if eval "test \"\${$as_ac_var+set}\" = set"; then
11980   echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982   cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11984 #include "confdefs.h"
11985 /* System header to define __stub macros and hopefully few prototypes,
11986     which can conflict with char $ac_func (); below.  */
11987 #include <assert.h>
11988 /* Override any gcc2 internal prototype to avoid an error.  */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 /* We use char because int might match the return type of a gcc2
11993    builtin and then its argument prototype would still apply.  */
11994 char $ac_func ();
11995 char (*f) ();
11996
11997 int
11998 main ()
11999 {
12000 /* The GNU C library defines this for functions which it implements
12001     to always fail with ENOSYS.  Some functions are actually named
12002     something starting with __ and the normal name is an alias.  */
12003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12004 choke me
12005 #else
12006 f = $ac_func;
12007 #endif
12008
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12015   (eval $ac_link) 2>&5
12016   ac_status=$?
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); } &&
12019          { ac_try='test -s conftest$ac_exeext'
12020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021   (eval $ac_try) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   eval "$as_ac_var=yes"
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 cat conftest.$ac_ext >&5
12029 eval "$as_ac_var=no"
12030 fi
12031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12032 fi
12033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036   cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12038 _ACEOF
12039
12040 fi
12041 done
12042
12043
12044
12045
12046
12047
12048
12049 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12050 do
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_var+set}\" = set"; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   cat >conftest.$ac_ext <<_ACEOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12060 /* System header to define __stub macros and hopefully few prototypes,
12061     which can conflict with char $ac_func (); below.  */
12062 #include <assert.h>
12063 /* Override any gcc2 internal prototype to avoid an error.  */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 /* We use char because int might match the return type of a gcc2
12068    builtin and then its argument prototype would still apply.  */
12069 char $ac_func ();
12070 char (*f) ();
12071
12072 int
12073 main ()
12074 {
12075 /* The GNU C library defines this for functions which it implements
12076     to always fail with ENOSYS.  Some functions are actually named
12077     something starting with __ and the normal name is an alias.  */
12078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12079 choke me
12080 #else
12081 f = $ac_func;
12082 #endif
12083
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090   (eval $ac_link) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -s conftest$ac_exeext'
12095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096   (eval $ac_try) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); }; }; then
12100   eval "$as_ac_var=yes"
12101 else
12102   echo "$as_me: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12105 fi
12106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12107 fi
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111   cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 _ACEOF
12114
12115 fi
12116 done
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12127 do
12128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129 echo "$as_me:$LINENO: checking for $ac_func" >&5
12130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_var+set}\" = set"; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134   cat >conftest.$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12136 #include "confdefs.h"
12137 /* System header to define __stub macros and hopefully few prototypes,
12138     which can conflict with char $ac_func (); below.  */
12139 #include <assert.h>
12140 /* Override any gcc2 internal prototype to avoid an error.  */
12141 #ifdef __cplusplus
12142 extern "C"
12143 #endif
12144 /* We use char because int might match the return type of a gcc2
12145    builtin and then its argument prototype would still apply.  */
12146 char $ac_func ();
12147 char (*f) ();
12148
12149 int
12150 main ()
12151 {
12152 /* The GNU C library defines this for functions which it implements
12153     to always fail with ENOSYS.  Some functions are actually named
12154     something starting with __ and the normal name is an alias.  */
12155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12156 choke me
12157 #else
12158 f = $ac_func;
12159 #endif
12160
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167   (eval $ac_link) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } &&
12171          { ac_try='test -s conftest$ac_exeext'
12172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173   (eval $ac_try) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   eval "$as_ac_var=yes"
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 cat conftest.$ac_ext >&5
12181 eval "$as_ac_var=no"
12182 fi
12183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12184 fi
12185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12187 if test `eval echo '${'$as_ac_var'}'` = yes; then
12188   cat >>confdefs.h <<_ACEOF
12189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12190 _ACEOF
12191
12192 fi
12193 done
12194
12195
12196
12197
12198
12199
12200
12201 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12202 do
12203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12204 echo "$as_me:$LINENO: checking for $ac_func" >&5
12205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12206 if eval "test \"\${$as_ac_var+set}\" = set"; then
12207   echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209   cat >conftest.$ac_ext <<_ACEOF
12210 #line $LINENO "configure"
12211 #include "confdefs.h"
12212 /* System header to define __stub macros and hopefully few prototypes,
12213     which can conflict with char $ac_func (); below.  */
12214 #include <assert.h>
12215 /* Override any gcc2 internal prototype to avoid an error.  */
12216 #ifdef __cplusplus
12217 extern "C"
12218 #endif
12219 /* We use char because int might match the return type of a gcc2
12220    builtin and then its argument prototype would still apply.  */
12221 char $ac_func ();
12222 char (*f) ();
12223
12224 int
12225 main ()
12226 {
12227 /* The GNU C library defines this for functions which it implements
12228     to always fail with ENOSYS.  Some functions are actually named
12229     something starting with __ and the normal name is an alias.  */
12230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12231 choke me
12232 #else
12233 f = $ac_func;
12234 #endif
12235
12236   ;
12237   return 0;
12238 }
12239 _ACEOF
12240 rm -f conftest.$ac_objext conftest$ac_exeext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12242   (eval $ac_link) 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); } &&
12246          { ac_try='test -s conftest$ac_exeext'
12247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248   (eval $ac_try) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; }; then
12252   eval "$as_ac_var=yes"
12253 else
12254   echo "$as_me: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12256 eval "$as_ac_var=no"
12257 fi
12258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12259 fi
12260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12262 if test `eval echo '${'$as_ac_var'}'` = yes; then
12263   cat >>confdefs.h <<_ACEOF
12264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265 _ACEOF
12266
12267 fi
12268 done
12269
12270
12271
12272
12273
12274
12275
12276
12277 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12278 do
12279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12280 echo "$as_me:$LINENO: checking for $ac_func" >&5
12281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12282 if eval "test \"\${$as_ac_var+set}\" = set"; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   cat >conftest.$ac_ext <<_ACEOF
12286 #line $LINENO "configure"
12287 #include "confdefs.h"
12288 /* System header to define __stub macros and hopefully few prototypes,
12289     which can conflict with char $ac_func (); below.  */
12290 #include <assert.h>
12291 /* Override any gcc2 internal prototype to avoid an error.  */
12292 #ifdef __cplusplus
12293 extern "C"
12294 #endif
12295 /* We use char because int might match the return type of a gcc2
12296    builtin and then its argument prototype would still apply.  */
12297 char $ac_func ();
12298 char (*f) ();
12299
12300 int
12301 main ()
12302 {
12303 /* The GNU C library defines this for functions which it implements
12304     to always fail with ENOSYS.  Some functions are actually named
12305     something starting with __ and the normal name is an alias.  */
12306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12307 choke me
12308 #else
12309 f = $ac_func;
12310 #endif
12311
12312   ;
12313   return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318   (eval $ac_link) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } &&
12322          { ac_try='test -s conftest$ac_exeext'
12323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324   (eval $ac_try) 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }; }; then
12328   eval "$as_ac_var=yes"
12329 else
12330   echo "$as_me: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 eval "$as_ac_var=no"
12333 fi
12334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12335 fi
12336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12338 if test `eval echo '${'$as_ac_var'}'` = yes; then
12339   cat >>confdefs.h <<_ACEOF
12340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12341 _ACEOF
12342
12343 fi
12344 done
12345
12346
12347
12348
12349
12350 for ac_func in _write __write _fork __fork
12351 do
12352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353 echo "$as_me:$LINENO: checking for $ac_func" >&5
12354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12355 if eval "test \"\${$as_ac_var+set}\" = set"; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   cat >conftest.$ac_ext <<_ACEOF
12359 #line $LINENO "configure"
12360 #include "confdefs.h"
12361 /* System header to define __stub macros and hopefully few prototypes,
12362     which can conflict with char $ac_func (); below.  */
12363 #include <assert.h>
12364 /* Override any gcc2 internal prototype to avoid an error.  */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 /* We use char because int might match the return type of a gcc2
12369    builtin and then its argument prototype would still apply.  */
12370 char $ac_func ();
12371 char (*f) ();
12372
12373 int
12374 main ()
12375 {
12376 /* The GNU C library defines this for functions which it implements
12377     to always fail with ENOSYS.  Some functions are actually named
12378     something starting with __ and the normal name is an alias.  */
12379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12380 choke me
12381 #else
12382 f = $ac_func;
12383 #endif
12384
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391   (eval $ac_link) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -s conftest$ac_exeext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   eval "$as_ac_var=yes"
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 eval "$as_ac_var=no"
12406 fi
12407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12408 fi
12409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12411 if test `eval echo '${'$as_ac_var'}'` = yes; then
12412   cat >>confdefs.h <<_ACEOF
12413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12414 _ACEOF
12415
12416 fi
12417 done
12418
12419
12420
12421
12422
12423
12424
12425 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
12426 do
12427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12428 echo "$as_me:$LINENO: checking for $ac_func" >&5
12429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12430 if eval "test \"\${$as_ac_var+set}\" = set"; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433   cat >conftest.$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12435 #include "confdefs.h"
12436 /* System header to define __stub macros and hopefully few prototypes,
12437     which can conflict with char $ac_func (); below.  */
12438 #include <assert.h>
12439 /* Override any gcc2 internal prototype to avoid an error.  */
12440 #ifdef __cplusplus
12441 extern "C"
12442 #endif
12443 /* We use char because int might match the return type of a gcc2
12444    builtin and then its argument prototype would still apply.  */
12445 char $ac_func ();
12446 char (*f) ();
12447
12448 int
12449 main ()
12450 {
12451 /* The GNU C library defines this for functions which it implements
12452     to always fail with ENOSYS.  Some functions are actually named
12453     something starting with __ and the normal name is an alias.  */
12454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12455 choke me
12456 #else
12457 f = $ac_func;
12458 #endif
12459
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466   (eval $ac_link) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); } &&
12470          { ac_try='test -s conftest$ac_exeext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   eval "$as_ac_var=yes"
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12480 eval "$as_ac_var=no"
12481 fi
12482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12483 fi
12484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12486 if test `eval echo '${'$as_ac_var'}'` = yes; then
12487   cat >>confdefs.h <<_ACEOF
12488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12489 _ACEOF
12490
12491 fi
12492 done
12493
12494
12495
12496
12497
12498
12499
12500
12501 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
12502 do
12503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504 echo "$as_me:$LINENO: checking for $ac_func" >&5
12505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12506 if eval "test \"\${$as_ac_var+set}\" = set"; then
12507   echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509   cat >conftest.$ac_ext <<_ACEOF
12510 #line $LINENO "configure"
12511 #include "confdefs.h"
12512 /* System header to define __stub macros and hopefully few prototypes,
12513     which can conflict with char $ac_func (); below.  */
12514 #include <assert.h>
12515 /* Override any gcc2 internal prototype to avoid an error.  */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 /* We use char because int might match the return type of a gcc2
12520    builtin and then its argument prototype would still apply.  */
12521 char $ac_func ();
12522 char (*f) ();
12523
12524 int
12525 main ()
12526 {
12527 /* The GNU C library defines this for functions which it implements
12528     to always fail with ENOSYS.  Some functions are actually named
12529     something starting with __ and the normal name is an alias.  */
12530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12531 choke me
12532 #else
12533 f = $ac_func;
12534 #endif
12535
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542   (eval $ac_link) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -s conftest$ac_exeext'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   eval "$as_ac_var=yes"
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12556 eval "$as_ac_var=no"
12557 fi
12558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12559 fi
12560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12562 if test `eval echo '${'$as_ac_var'}'` = yes; then
12563   cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12565 _ACEOF
12566
12567 fi
12568 done
12569
12570
12571
12572
12573
12574
12575
12576 for ac_func in pread _pread __pread pread64 _pread64 __pread64
12577 do
12578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579 echo "$as_me:$LINENO: checking for $ac_func" >&5
12580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12581 if eval "test \"\${$as_ac_var+set}\" = set"; then
12582   echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584   cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 #include "confdefs.h"
12587 /* System header to define __stub macros and hopefully few prototypes,
12588     which can conflict with char $ac_func (); below.  */
12589 #include <assert.h>
12590 /* Override any gcc2 internal prototype to avoid an error.  */
12591 #ifdef __cplusplus
12592 extern "C"
12593 #endif
12594 /* We use char because int might match the return type of a gcc2
12595    builtin and then its argument prototype would still apply.  */
12596 char $ac_func ();
12597 char (*f) ();
12598
12599 int
12600 main ()
12601 {
12602 /* The GNU C library defines this for functions which it implements
12603     to always fail with ENOSYS.  Some functions are actually named
12604     something starting with __ and the normal name is an alias.  */
12605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12606 choke me
12607 #else
12608 f = $ac_func;
12609 #endif
12610
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617   (eval $ac_link) 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); } &&
12621          { ac_try='test -s conftest$ac_exeext'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; }; then
12627   eval "$as_ac_var=yes"
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 eval "$as_ac_var=no"
12632 fi
12633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12634 fi
12635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12637 if test `eval echo '${'$as_ac_var'}'` = yes; then
12638   cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12640 _ACEOF
12641
12642 fi
12643 done
12644
12645
12646
12647
12648
12649
12650
12651 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
12652 do
12653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12654 echo "$as_me:$LINENO: checking for $ac_func" >&5
12655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12656 if eval "test \"\${$as_ac_var+set}\" = set"; then
12657   echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659   cat >conftest.$ac_ext <<_ACEOF
12660 #line $LINENO "configure"
12661 #include "confdefs.h"
12662 /* System header to define __stub macros and hopefully few prototypes,
12663     which can conflict with char $ac_func (); below.  */
12664 #include <assert.h>
12665 /* Override any gcc2 internal prototype to avoid an error.  */
12666 #ifdef __cplusplus
12667 extern "C"
12668 #endif
12669 /* We use char because int might match the return type of a gcc2
12670    builtin and then its argument prototype would still apply.  */
12671 char $ac_func ();
12672 char (*f) ();
12673
12674 int
12675 main ()
12676 {
12677 /* The GNU C library defines this for functions which it implements
12678     to always fail with ENOSYS.  Some functions are actually named
12679     something starting with __ and the normal name is an alias.  */
12680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12681 choke me
12682 #else
12683 f = $ac_func;
12684 #endif
12685
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12692   (eval $ac_link) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); } &&
12696          { ac_try='test -s conftest$ac_exeext'
12697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698   (eval $ac_try) 2>&5
12699   ac_status=$?
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); }; }; then
12702   eval "$as_ac_var=yes"
12703 else
12704   echo "$as_me: failed program was:" >&5
12705 cat conftest.$ac_ext >&5
12706 eval "$as_ac_var=no"
12707 fi
12708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12709 fi
12710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12712 if test `eval echo '${'$as_ac_var'}'` = yes; then
12713   cat >>confdefs.h <<_ACEOF
12714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12715 _ACEOF
12716
12717 fi
12718 done
12719
12720
12721
12722
12723
12724 for ac_func in open64 _open64 __open64 creat64
12725 do
12726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12727 echo "$as_me:$LINENO: checking for $ac_func" >&5
12728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12729 if eval "test \"\${$as_ac_var+set}\" = set"; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732   cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12734 #include "confdefs.h"
12735 /* System header to define __stub macros and hopefully few prototypes,
12736     which can conflict with char $ac_func (); below.  */
12737 #include <assert.h>
12738 /* Override any gcc2 internal prototype to avoid an error.  */
12739 #ifdef __cplusplus
12740 extern "C"
12741 #endif
12742 /* We use char because int might match the return type of a gcc2
12743    builtin and then its argument prototype would still apply.  */
12744 char $ac_func ();
12745 char (*f) ();
12746
12747 int
12748 main ()
12749 {
12750 /* The GNU C library defines this for functions which it implements
12751     to always fail with ENOSYS.  Some functions are actually named
12752     something starting with __ and the normal name is an alias.  */
12753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12754 choke me
12755 #else
12756 f = $ac_func;
12757 #endif
12758
12759   ;
12760   return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext conftest$ac_exeext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765   (eval $ac_link) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); } &&
12769          { ac_try='test -s conftest$ac_exeext'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   eval "$as_ac_var=yes"
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12779 eval "$as_ac_var=no"
12780 fi
12781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12782 fi
12783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12785 if test `eval echo '${'$as_ac_var'}'` = yes; then
12786   cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12788 _ACEOF
12789
12790 fi
12791 done
12792
12793
12794 #
12795 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
12796 #
12797
12798 if test x$ac_cv_func_stat64 = xno ; then
12799   echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
12800 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
12801   cat >conftest.$ac_ext <<_ACEOF
12802 #line $LINENO "configure"
12803 #include "confdefs.h"
12804
12805 #if defined(HAVE_UNISTD_H)
12806 #include <unistd.h>
12807 #endif
12808 #include <sys/stat.h>
12809
12810 int
12811 main ()
12812 {
12813 struct stat64 st64; exit(stat64(".",&st64));
12814   ;
12815   return 0;
12816 }
12817 _ACEOF
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12820   (eval $ac_link) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } &&
12824          { ac_try='test -s conftest$ac_exeext'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; }; then
12830   ac_cv_func_stat64=yes
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 cat conftest.$ac_ext >&5
12834 fi
12835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12836   echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
12837 echo "${ECHO_T}$ac_cv_func_stat64" >&6
12838   if test x$ac_cv_func_stat64 = xyes ; then
12839
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_STAT64 1
12842 _ACEOF
12843
12844   fi
12845 fi
12846
12847 if test x$ac_cv_func_lstat64 = xno ; then
12848   echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
12849 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
12850   cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12852 #include "confdefs.h"
12853
12854 #if defined(HAVE_UNISTD_H)
12855 #include <unistd.h>
12856 #endif
12857 #include <sys/stat.h>
12858
12859 int
12860 main ()
12861 {
12862 struct stat64 st64; exit(lstat64(".",&st64));
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869   (eval $ac_link) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -s conftest$ac_exeext'
12874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875   (eval $ac_try) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; }; then
12879   ac_cv_func_lstat64=yes
12880 else
12881   echo "$as_me: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12883 fi
12884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12885   echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
12886 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
12887   if test x$ac_cv_func_lstat64 = xyes ; then
12888     cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_LSTAT64 Whether lstat64() is available
12890 _ACEOF
12891
12892   fi
12893 fi
12894
12895 if test x$ac_cv_func_fstat64 = xno ; then
12896   echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
12897 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
12898   cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12900 #include "confdefs.h"
12901
12902 #if defined(HAVE_UNISTD_H)
12903 #include <unistd.h>
12904 #endif
12905 #include <sys/stat.h>
12906
12907 int
12908 main ()
12909 {
12910 struct stat64 st64; exit(fstat64(0,&st64));
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917   (eval $ac_link) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } &&
12921          { ac_try='test -s conftest$ac_exeext'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; }; then
12927   ac_cv_func_fstat64=yes
12928 else
12929   echo "$as_me: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
12931 fi
12932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12933   echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
12934 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
12935   if test x$ac_cv_func_fstat64 = xyes ; then
12936
12937 cat >>confdefs.h <<\_ACEOF
12938 #define HAVE_FSTAT64 1
12939 _ACEOF
12940
12941   fi
12942 fi
12943
12944 #####################################
12945 # we might need the resolv library on some systems
12946
12947 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
12948 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
12949 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
12950   echo $ECHO_N "(cached) $ECHO_C" >&6
12951 else
12952   ac_check_lib_save_LIBS=$LIBS
12953 LIBS="-lresolv  $LIBS"
12954 cat >conftest.$ac_ext <<_ACEOF
12955 #line $LINENO "configure"
12956 #include "confdefs.h"
12957
12958 /* Override any gcc2 internal prototype to avoid an error.  */
12959 #ifdef __cplusplus
12960 extern "C"
12961 #endif
12962 /* We use char because int might match the return type of a gcc2
12963    builtin and then its argument prototype would still apply.  */
12964 char dn_expand ();
12965 int
12966 main ()
12967 {
12968 dn_expand ();
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975   (eval $ac_link) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); } &&
12979          { ac_try='test -s conftest$ac_exeext'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   ac_cv_lib_resolv_dn_expand=yes
12986 else
12987   echo "$as_me: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 ac_cv_lib_resolv_dn_expand=no
12990 fi
12991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12992 LIBS=$ac_check_lib_save_LIBS
12993 fi
12994 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
12995 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
12996 if test $ac_cv_lib_resolv_dn_expand = yes; then
12997   cat >>confdefs.h <<_ACEOF
12998 #define HAVE_LIBRESOLV 1
12999 _ACEOF
13000
13001   LIBS="-lresolv $LIBS"
13002
13003 fi
13004
13005
13006 #
13007 # Check for the functions putprpwnam, set_auth_parameters,
13008 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13009 # Needed for OSF1 and HPUX.
13010 #
13011
13012 case "$LIBS" in
13013   *-lsecurity*)
13014 for ac_func in putprpwnam
13015 do
13016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13017 echo "$as_me:$LINENO: checking for $ac_func" >&5
13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13019 if eval "test \"\${$as_ac_var+set}\" = set"; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13025 /* System header to define __stub macros and hopefully few prototypes,
13026     which can conflict with char $ac_func (); below.  */
13027 #include <assert.h>
13028 /* Override any gcc2 internal prototype to avoid an error.  */
13029 #ifdef __cplusplus
13030 extern "C"
13031 #endif
13032 /* We use char because int might match the return type of a gcc2
13033    builtin and then its argument prototype would still apply.  */
13034 char $ac_func ();
13035 char (*f) ();
13036
13037 int
13038 main ()
13039 {
13040 /* The GNU C library defines this for functions which it implements
13041     to always fail with ENOSYS.  Some functions are actually named
13042     something starting with __ and the normal name is an alias.  */
13043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13044 choke me
13045 #else
13046 f = $ac_func;
13047 #endif
13048
13049   ;
13050   return 0;
13051 }
13052 _ACEOF
13053 rm -f conftest.$ac_objext conftest$ac_exeext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13055   (eval $ac_link) 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } &&
13059          { ac_try='test -s conftest$ac_exeext'
13060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; }; then
13065   eval "$as_ac_var=yes"
13066 else
13067   echo "$as_me: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 eval "$as_ac_var=no"
13070 fi
13071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13072 fi
13073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13075 if test `eval echo '${'$as_ac_var'}'` = yes; then
13076   cat >>confdefs.h <<_ACEOF
13077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13078 _ACEOF
13079
13080 fi
13081 done
13082  ;;
13083   *)
13084 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13085 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13086 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13087   echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089   ac_check_lib_save_LIBS=$LIBS
13090 LIBS="-lsecurity  $LIBS"
13091 cat >conftest.$ac_ext <<_ACEOF
13092 #line $LINENO "configure"
13093 #include "confdefs.h"
13094
13095 /* Override any gcc2 internal prototype to avoid an error.  */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 /* We use char because int might match the return type of a gcc2
13100    builtin and then its argument prototype would still apply.  */
13101 char putprpwnam ();
13102 int
13103 main ()
13104 {
13105 putprpwnam ();
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13112   (eval $ac_link) 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); } &&
13116          { ac_try='test -s conftest$ac_exeext'
13117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118   (eval $ac_try) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); }; }; then
13122   ac_cv_lib_security_putprpwnam=yes
13123 else
13124   echo "$as_me: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 ac_cv_lib_security_putprpwnam=no
13127 fi
13128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13130 fi
13131 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13132 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13133 if test $ac_cv_lib_security_putprpwnam = yes; then
13134   cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBSECURITY 1
13136 _ACEOF
13137
13138   LIBS="-lsecurity $LIBS"
13139
13140 fi
13141
13142
13143 for ac_func in putprpwnam
13144 do
13145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13146 echo "$as_me:$LINENO: checking for $ac_func" >&5
13147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13148 if eval "test \"\${$as_ac_var+set}\" = set"; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   cat >conftest.$ac_ext <<_ACEOF
13152 #line $LINENO "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155     which can conflict with char $ac_func (); below.  */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error.  */
13158 #ifdef __cplusplus
13159 extern "C"
13160 #endif
13161 /* We use char because int might match the return type of a gcc2
13162    builtin and then its argument prototype would still apply.  */
13163 char $ac_func ();
13164 char (*f) ();
13165
13166 int
13167 main ()
13168 {
13169 /* The GNU C library defines this for functions which it implements
13170     to always fail with ENOSYS.  Some functions are actually named
13171     something starting with __ and the normal name is an alias.  */
13172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13173 choke me
13174 #else
13175 f = $ac_func;
13176 #endif
13177
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13184   (eval $ac_link) 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -s conftest$ac_exeext'
13189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190   (eval $ac_try) 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; }; then
13194   eval "$as_ac_var=yes"
13195 else
13196   echo "$as_me: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13198 eval "$as_ac_var=no"
13199 fi
13200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13201 fi
13202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13204 if test `eval echo '${'$as_ac_var'}'` = yes; then
13205   cat >>confdefs.h <<_ACEOF
13206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13207 _ACEOF
13208
13209 fi
13210 done
13211
13212   ;;
13213   esac
13214
13215 case "$LIBS" in
13216   *-lsec*)
13217 for ac_func in putprpwnam
13218 do
13219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13220 echo "$as_me:$LINENO: checking for $ac_func" >&5
13221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13222 if eval "test \"\${$as_ac_var+set}\" = set"; then
13223   echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225   cat >conftest.$ac_ext <<_ACEOF
13226 #line $LINENO "configure"
13227 #include "confdefs.h"
13228 /* System header to define __stub macros and hopefully few prototypes,
13229     which can conflict with char $ac_func (); below.  */
13230 #include <assert.h>
13231 /* Override any gcc2 internal prototype to avoid an error.  */
13232 #ifdef __cplusplus
13233 extern "C"
13234 #endif
13235 /* We use char because int might match the return type of a gcc2
13236    builtin and then its argument prototype would still apply.  */
13237 char $ac_func ();
13238 char (*f) ();
13239
13240 int
13241 main ()
13242 {
13243 /* The GNU C library defines this for functions which it implements
13244     to always fail with ENOSYS.  Some functions are actually named
13245     something starting with __ and the normal name is an alias.  */
13246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13247 choke me
13248 #else
13249 f = $ac_func;
13250 #endif
13251
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 rm -f conftest.$ac_objext conftest$ac_exeext
13257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13258   (eval $ac_link) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); } &&
13262          { ac_try='test -s conftest$ac_exeext'
13263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264   (eval $ac_try) 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); }; }; then
13268   eval "$as_ac_var=yes"
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 eval "$as_ac_var=no"
13273 fi
13274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13275 fi
13276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13278 if test `eval echo '${'$as_ac_var'}'` = yes; then
13279   cat >>confdefs.h <<_ACEOF
13280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13281 _ACEOF
13282
13283 fi
13284 done
13285  ;;
13286   *)
13287 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
13288 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
13289 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292   ac_check_lib_save_LIBS=$LIBS
13293 LIBS="-lsec  $LIBS"
13294 cat >conftest.$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13296 #include "confdefs.h"
13297
13298 /* Override any gcc2 internal prototype to avoid an error.  */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 /* We use char because int might match the return type of a gcc2
13303    builtin and then its argument prototype would still apply.  */
13304 char putprpwnam ();
13305 int
13306 main ()
13307 {
13308 putprpwnam ();
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315   (eval $ac_link) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } &&
13319          { ac_try='test -s conftest$ac_exeext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_cv_lib_sec_putprpwnam=yes
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13329 ac_cv_lib_sec_putprpwnam=no
13330 fi
13331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS
13333 fi
13334 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
13335 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
13336 if test $ac_cv_lib_sec_putprpwnam = yes; then
13337   cat >>confdefs.h <<_ACEOF
13338 #define HAVE_LIBSEC 1
13339 _ACEOF
13340
13341   LIBS="-lsec $LIBS"
13342
13343 fi
13344
13345
13346 for ac_func in putprpwnam
13347 do
13348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13349 echo "$as_me:$LINENO: checking for $ac_func" >&5
13350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13351 if eval "test \"\${$as_ac_var+set}\" = set"; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354   cat >conftest.$ac_ext <<_ACEOF
13355 #line $LINENO "configure"
13356 #include "confdefs.h"
13357 /* System header to define __stub macros and hopefully few prototypes,
13358     which can conflict with char $ac_func (); below.  */
13359 #include <assert.h>
13360 /* Override any gcc2 internal prototype to avoid an error.  */
13361 #ifdef __cplusplus
13362 extern "C"
13363 #endif
13364 /* We use char because int might match the return type of a gcc2
13365    builtin and then its argument prototype would still apply.  */
13366 char $ac_func ();
13367 char (*f) ();
13368
13369 int
13370 main ()
13371 {
13372 /* The GNU C library defines this for functions which it implements
13373     to always fail with ENOSYS.  Some functions are actually named
13374     something starting with __ and the normal name is an alias.  */
13375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13376 choke me
13377 #else
13378 f = $ac_func;
13379 #endif
13380
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387   (eval $ac_link) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } &&
13391          { ac_try='test -s conftest$ac_exeext'
13392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393   (eval $ac_try) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; }; then
13397   eval "$as_ac_var=yes"
13398 else
13399   echo "$as_me: failed program was:" >&5
13400 cat conftest.$ac_ext >&5
13401 eval "$as_ac_var=no"
13402 fi
13403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13404 fi
13405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13407 if test `eval echo '${'$as_ac_var'}'` = yes; then
13408   cat >>confdefs.h <<_ACEOF
13409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13410 _ACEOF
13411
13412 fi
13413 done
13414
13415   ;;
13416   esac
13417
13418
13419 case "$LIBS" in
13420   *-lsecurity*)
13421 for ac_func in set_auth_parameters
13422 do
13423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13424 echo "$as_me:$LINENO: checking for $ac_func" >&5
13425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13426 if eval "test \"\${$as_ac_var+set}\" = set"; then
13427   echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429   cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13431 #include "confdefs.h"
13432 /* System header to define __stub macros and hopefully few prototypes,
13433     which can conflict with char $ac_func (); below.  */
13434 #include <assert.h>
13435 /* Override any gcc2 internal prototype to avoid an error.  */
13436 #ifdef __cplusplus
13437 extern "C"
13438 #endif
13439 /* We use char because int might match the return type of a gcc2
13440    builtin and then its argument prototype would still apply.  */
13441 char $ac_func ();
13442 char (*f) ();
13443
13444 int
13445 main ()
13446 {
13447 /* The GNU C library defines this for functions which it implements
13448     to always fail with ENOSYS.  Some functions are actually named
13449     something starting with __ and the normal name is an alias.  */
13450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13451 choke me
13452 #else
13453 f = $ac_func;
13454 #endif
13455
13456   ;
13457   return 0;
13458 }
13459 _ACEOF
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462   (eval $ac_link) 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } &&
13466          { ac_try='test -s conftest$ac_exeext'
13467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468   (eval $ac_try) 2>&5
13469   ac_status=$?
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); }; }; then
13472   eval "$as_ac_var=yes"
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13476 eval "$as_ac_var=no"
13477 fi
13478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13479 fi
13480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13482 if test `eval echo '${'$as_ac_var'}'` = yes; then
13483   cat >>confdefs.h <<_ACEOF
13484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13485 _ACEOF
13486
13487 fi
13488 done
13489  ;;
13490   *)
13491 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
13492 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
13493 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
13494   echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496   ac_check_lib_save_LIBS=$LIBS
13497 LIBS="-lsecurity  $LIBS"
13498 cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13501
13502 /* Override any gcc2 internal prototype to avoid an error.  */
13503 #ifdef __cplusplus
13504 extern "C"
13505 #endif
13506 /* We use char because int might match the return type of a gcc2
13507    builtin and then its argument prototype would still apply.  */
13508 char set_auth_parameters ();
13509 int
13510 main ()
13511 {
13512 set_auth_parameters ();
13513   ;
13514   return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest.$ac_objext conftest$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519   (eval $ac_link) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } &&
13523          { ac_try='test -s conftest$ac_exeext'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; }; then
13529   ac_cv_lib_security_set_auth_parameters=yes
13530 else
13531   echo "$as_me: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13533 ac_cv_lib_security_set_auth_parameters=no
13534 fi
13535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13536 LIBS=$ac_check_lib_save_LIBS
13537 fi
13538 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
13539 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
13540 if test $ac_cv_lib_security_set_auth_parameters = yes; then
13541   cat >>confdefs.h <<_ACEOF
13542 #define HAVE_LIBSECURITY 1
13543 _ACEOF
13544
13545   LIBS="-lsecurity $LIBS"
13546
13547 fi
13548
13549
13550 for ac_func in set_auth_parameters
13551 do
13552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13553 echo "$as_me:$LINENO: checking for $ac_func" >&5
13554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13555 if eval "test \"\${$as_ac_var+set}\" = set"; then
13556   echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558   cat >conftest.$ac_ext <<_ACEOF
13559 #line $LINENO "configure"
13560 #include "confdefs.h"
13561 /* System header to define __stub macros and hopefully few prototypes,
13562     which can conflict with char $ac_func (); below.  */
13563 #include <assert.h>
13564 /* Override any gcc2 internal prototype to avoid an error.  */
13565 #ifdef __cplusplus
13566 extern "C"
13567 #endif
13568 /* We use char because int might match the return type of a gcc2
13569    builtin and then its argument prototype would still apply.  */
13570 char $ac_func ();
13571 char (*f) ();
13572
13573 int
13574 main ()
13575 {
13576 /* The GNU C library defines this for functions which it implements
13577     to always fail with ENOSYS.  Some functions are actually named
13578     something starting with __ and the normal name is an alias.  */
13579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13580 choke me
13581 #else
13582 f = $ac_func;
13583 #endif
13584
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13591   (eval $ac_link) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } &&
13595          { ac_try='test -s conftest$ac_exeext'
13596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597   (eval $ac_try) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }; }; then
13601   eval "$as_ac_var=yes"
13602 else
13603   echo "$as_me: failed program was:" >&5
13604 cat conftest.$ac_ext >&5
13605 eval "$as_ac_var=no"
13606 fi
13607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13608 fi
13609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13611 if test `eval echo '${'$as_ac_var'}'` = yes; then
13612   cat >>confdefs.h <<_ACEOF
13613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13614 _ACEOF
13615
13616 fi
13617 done
13618
13619   ;;
13620   esac
13621
13622 case "$LIBS" in
13623   *-lsec*)
13624 for ac_func in set_auth_parameters
13625 do
13626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13627 echo "$as_me:$LINENO: checking for $ac_func" >&5
13628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13629 if eval "test \"\${$as_ac_var+set}\" = set"; then
13630   echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632   cat >conftest.$ac_ext <<_ACEOF
13633 #line $LINENO "configure"
13634 #include "confdefs.h"
13635 /* System header to define __stub macros and hopefully few prototypes,
13636     which can conflict with char $ac_func (); below.  */
13637 #include <assert.h>
13638 /* Override any gcc2 internal prototype to avoid an error.  */
13639 #ifdef __cplusplus
13640 extern "C"
13641 #endif
13642 /* We use char because int might match the return type of a gcc2
13643    builtin and then its argument prototype would still apply.  */
13644 char $ac_func ();
13645 char (*f) ();
13646
13647 int
13648 main ()
13649 {
13650 /* The GNU C library defines this for functions which it implements
13651     to always fail with ENOSYS.  Some functions are actually named
13652     something starting with __ and the normal name is an alias.  */
13653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13654 choke me
13655 #else
13656 f = $ac_func;
13657 #endif
13658
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13665   (eval $ac_link) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -s conftest$ac_exeext'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   eval "$as_ac_var=yes"
13676 else
13677   echo "$as_me: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13679 eval "$as_ac_var=no"
13680 fi
13681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13682 fi
13683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13685 if test `eval echo '${'$as_ac_var'}'` = yes; then
13686   cat >>confdefs.h <<_ACEOF
13687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13688 _ACEOF
13689
13690 fi
13691 done
13692  ;;
13693   *)
13694 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
13695 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
13696 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699   ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lsec  $LIBS"
13701 cat >conftest.$ac_ext <<_ACEOF
13702 #line $LINENO "configure"
13703 #include "confdefs.h"
13704
13705 /* Override any gcc2 internal prototype to avoid an error.  */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 /* We use char because int might match the return type of a gcc2
13710    builtin and then its argument prototype would still apply.  */
13711 char set_auth_parameters ();
13712 int
13713 main ()
13714 {
13715 set_auth_parameters ();
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722   (eval $ac_link) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } &&
13726          { ac_try='test -s conftest$ac_exeext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   ac_cv_lib_sec_set_auth_parameters=yes
13733 else
13734   echo "$as_me: failed program was:" >&5
13735 cat conftest.$ac_ext >&5
13736 ac_cv_lib_sec_set_auth_parameters=no
13737 fi
13738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13739 LIBS=$ac_check_lib_save_LIBS
13740 fi
13741 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
13742 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
13743 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
13744   cat >>confdefs.h <<_ACEOF
13745 #define HAVE_LIBSEC 1
13746 _ACEOF
13747
13748   LIBS="-lsec $LIBS"
13749
13750 fi
13751
13752
13753 for ac_func in set_auth_parameters
13754 do
13755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13756 echo "$as_me:$LINENO: checking for $ac_func" >&5
13757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13758 if eval "test \"\${$as_ac_var+set}\" = set"; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   cat >conftest.$ac_ext <<_ACEOF
13762 #line $LINENO "configure"
13763 #include "confdefs.h"
13764 /* System header to define __stub macros and hopefully few prototypes,
13765     which can conflict with char $ac_func (); below.  */
13766 #include <assert.h>
13767 /* Override any gcc2 internal prototype to avoid an error.  */
13768 #ifdef __cplusplus
13769 extern "C"
13770 #endif
13771 /* We use char because int might match the return type of a gcc2
13772    builtin and then its argument prototype would still apply.  */
13773 char $ac_func ();
13774 char (*f) ();
13775
13776 int
13777 main ()
13778 {
13779 /* The GNU C library defines this for functions which it implements
13780     to always fail with ENOSYS.  Some functions are actually named
13781     something starting with __ and the normal name is an alias.  */
13782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13783 choke me
13784 #else
13785 f = $ac_func;
13786 #endif
13787
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13794   (eval $ac_link) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } &&
13798          { ac_try='test -s conftest$ac_exeext'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; }; then
13804   eval "$as_ac_var=yes"
13805 else
13806   echo "$as_me: failed program was:" >&5
13807 cat conftest.$ac_ext >&5
13808 eval "$as_ac_var=no"
13809 fi
13810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13811 fi
13812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13814 if test `eval echo '${'$as_ac_var'}'` = yes; then
13815   cat >>confdefs.h <<_ACEOF
13816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13817 _ACEOF
13818
13819 fi
13820 done
13821
13822   ;;
13823   esac
13824
13825
13826 # UnixWare 7.x has its getspnam in -lgen
13827 case "$LIBS" in
13828   *-lgen*)
13829 for ac_func in getspnam
13830 do
13831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13832 echo "$as_me:$LINENO: checking for $ac_func" >&5
13833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13834 if eval "test \"\${$as_ac_var+set}\" = set"; then
13835   echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837   cat >conftest.$ac_ext <<_ACEOF
13838 #line $LINENO "configure"
13839 #include "confdefs.h"
13840 /* System header to define __stub macros and hopefully few prototypes,
13841     which can conflict with char $ac_func (); below.  */
13842 #include <assert.h>
13843 /* Override any gcc2 internal prototype to avoid an error.  */
13844 #ifdef __cplusplus
13845 extern "C"
13846 #endif
13847 /* We use char because int might match the return type of a gcc2
13848    builtin and then its argument prototype would still apply.  */
13849 char $ac_func ();
13850 char (*f) ();
13851
13852 int
13853 main ()
13854 {
13855 /* The GNU C library defines this for functions which it implements
13856     to always fail with ENOSYS.  Some functions are actually named
13857     something starting with __ and the normal name is an alias.  */
13858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13859 choke me
13860 #else
13861 f = $ac_func;
13862 #endif
13863
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870   (eval $ac_link) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -s conftest$ac_exeext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   eval "$as_ac_var=yes"
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13884 eval "$as_ac_var=no"
13885 fi
13886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13887 fi
13888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13890 if test `eval echo '${'$as_ac_var'}'` = yes; then
13891   cat >>confdefs.h <<_ACEOF
13892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13893 _ACEOF
13894
13895 fi
13896 done
13897  ;;
13898   *)
13899 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
13900 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
13901 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-lgen  $LIBS"
13906 cat >conftest.$ac_ext <<_ACEOF
13907 #line $LINENO "configure"
13908 #include "confdefs.h"
13909
13910 /* Override any gcc2 internal prototype to avoid an error.  */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 /* We use char because int might match the return type of a gcc2
13915    builtin and then its argument prototype would still apply.  */
13916 char getspnam ();
13917 int
13918 main ()
13919 {
13920 getspnam ();
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext conftest$ac_exeext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13927   (eval $ac_link) 2>&5
13928   ac_status=$?
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); } &&
13931          { ac_try='test -s conftest$ac_exeext'
13932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933   (eval $ac_try) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; }; then
13937   ac_cv_lib_gen_getspnam=yes
13938 else
13939   echo "$as_me: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13941 ac_cv_lib_gen_getspnam=no
13942 fi
13943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13944 LIBS=$ac_check_lib_save_LIBS
13945 fi
13946 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
13947 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
13948 if test $ac_cv_lib_gen_getspnam = yes; then
13949   cat >>confdefs.h <<_ACEOF
13950 #define HAVE_LIBGEN 1
13951 _ACEOF
13952
13953   LIBS="-lgen $LIBS"
13954
13955 fi
13956
13957
13958 for ac_func in getspnam
13959 do
13960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13961 echo "$as_me:$LINENO: checking for $ac_func" >&5
13962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13963 if eval "test \"\${$as_ac_var+set}\" = set"; then
13964   echo $ECHO_N "(cached) $ECHO_C" >&6
13965 else
13966   cat >conftest.$ac_ext <<_ACEOF
13967 #line $LINENO "configure"
13968 #include "confdefs.h"
13969 /* System header to define __stub macros and hopefully few prototypes,
13970     which can conflict with char $ac_func (); below.  */
13971 #include <assert.h>
13972 /* Override any gcc2 internal prototype to avoid an error.  */
13973 #ifdef __cplusplus
13974 extern "C"
13975 #endif
13976 /* We use char because int might match the return type of a gcc2
13977    builtin and then its argument prototype would still apply.  */
13978 char $ac_func ();
13979 char (*f) ();
13980
13981 int
13982 main ()
13983 {
13984 /* The GNU C library defines this for functions which it implements
13985     to always fail with ENOSYS.  Some functions are actually named
13986     something starting with __ and the normal name is an alias.  */
13987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13988 choke me
13989 #else
13990 f = $ac_func;
13991 #endif
13992
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 rm -f conftest.$ac_objext conftest$ac_exeext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13999   (eval $ac_link) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } &&
14003          { ac_try='test -s conftest$ac_exeext'
14004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005   (eval $ac_try) 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; }; then
14009   eval "$as_ac_var=yes"
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
14013 eval "$as_ac_var=no"
14014 fi
14015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14016 fi
14017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14019 if test `eval echo '${'$as_ac_var'}'` = yes; then
14020   cat >>confdefs.h <<_ACEOF
14021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14022 _ACEOF
14023
14024 fi
14025 done
14026
14027   ;;
14028   esac
14029
14030
14031 case "$LIBS" in
14032   *-lsecurity*)
14033 for ac_func in getspnam
14034 do
14035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14036 echo "$as_me:$LINENO: checking for $ac_func" >&5
14037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14038 if eval "test \"\${$as_ac_var+set}\" = set"; then
14039   echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041   cat >conftest.$ac_ext <<_ACEOF
14042 #line $LINENO "configure"
14043 #include "confdefs.h"
14044 /* System header to define __stub macros and hopefully few prototypes,
14045     which can conflict with char $ac_func (); below.  */
14046 #include <assert.h>
14047 /* Override any gcc2 internal prototype to avoid an error.  */
14048 #ifdef __cplusplus
14049 extern "C"
14050 #endif
14051 /* We use char because int might match the return type of a gcc2
14052    builtin and then its argument prototype would still apply.  */
14053 char $ac_func ();
14054 char (*f) ();
14055
14056 int
14057 main ()
14058 {
14059 /* The GNU C library defines this for functions which it implements
14060     to always fail with ENOSYS.  Some functions are actually named
14061     something starting with __ and the normal name is an alias.  */
14062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14063 choke me
14064 #else
14065 f = $ac_func;
14066 #endif
14067
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074   (eval $ac_link) 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); } &&
14078          { ac_try='test -s conftest$ac_exeext'
14079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080   (eval $ac_try) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; }; then
14084   eval "$as_ac_var=yes"
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 cat conftest.$ac_ext >&5
14088 eval "$as_ac_var=no"
14089 fi
14090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14091 fi
14092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14094 if test `eval echo '${'$as_ac_var'}'` = yes; then
14095   cat >>confdefs.h <<_ACEOF
14096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14097 _ACEOF
14098
14099 fi
14100 done
14101  ;;
14102   *)
14103 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14104 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14105 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   ac_check_lib_save_LIBS=$LIBS
14109 LIBS="-lsecurity  $LIBS"
14110 cat >conftest.$ac_ext <<_ACEOF
14111 #line $LINENO "configure"
14112 #include "confdefs.h"
14113
14114 /* Override any gcc2 internal prototype to avoid an error.  */
14115 #ifdef __cplusplus
14116 extern "C"
14117 #endif
14118 /* We use char because int might match the return type of a gcc2
14119    builtin and then its argument prototype would still apply.  */
14120 char getspnam ();
14121 int
14122 main ()
14123 {
14124 getspnam ();
14125   ;
14126   return 0;
14127 }
14128 _ACEOF
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131   (eval $ac_link) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } &&
14135          { ac_try='test -s conftest$ac_exeext'
14136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137   (eval $ac_try) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; }; then
14141   ac_cv_lib_security_getspnam=yes
14142 else
14143   echo "$as_me: failed program was:" >&5
14144 cat conftest.$ac_ext >&5
14145 ac_cv_lib_security_getspnam=no
14146 fi
14147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14148 LIBS=$ac_check_lib_save_LIBS
14149 fi
14150 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14151 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14152 if test $ac_cv_lib_security_getspnam = yes; then
14153   cat >>confdefs.h <<_ACEOF
14154 #define HAVE_LIBSECURITY 1
14155 _ACEOF
14156
14157   LIBS="-lsecurity $LIBS"
14158
14159 fi
14160
14161
14162 for ac_func in getspnam
14163 do
14164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14165 echo "$as_me:$LINENO: checking for $ac_func" >&5
14166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14167 if eval "test \"\${$as_ac_var+set}\" = set"; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   cat >conftest.$ac_ext <<_ACEOF
14171 #line $LINENO "configure"
14172 #include "confdefs.h"
14173 /* System header to define __stub macros and hopefully few prototypes,
14174     which can conflict with char $ac_func (); below.  */
14175 #include <assert.h>
14176 /* Override any gcc2 internal prototype to avoid an error.  */
14177 #ifdef __cplusplus
14178 extern "C"
14179 #endif
14180 /* We use char because int might match the return type of a gcc2
14181    builtin and then its argument prototype would still apply.  */
14182 char $ac_func ();
14183 char (*f) ();
14184
14185 int
14186 main ()
14187 {
14188 /* The GNU C library defines this for functions which it implements
14189     to always fail with ENOSYS.  Some functions are actually named
14190     something starting with __ and the normal name is an alias.  */
14191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14192 choke me
14193 #else
14194 f = $ac_func;
14195 #endif
14196
14197   ;
14198   return 0;
14199 }
14200 _ACEOF
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203   (eval $ac_link) 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } &&
14207          { ac_try='test -s conftest$ac_exeext'
14208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209   (eval $ac_try) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; }; then
14213   eval "$as_ac_var=yes"
14214 else
14215   echo "$as_me: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14217 eval "$as_ac_var=no"
14218 fi
14219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14220 fi
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14223 if test `eval echo '${'$as_ac_var'}'` = yes; then
14224   cat >>confdefs.h <<_ACEOF
14225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14226 _ACEOF
14227
14228 fi
14229 done
14230
14231   ;;
14232   esac
14233
14234 case "$LIBS" in
14235   *-lsec*)
14236 for ac_func in getspnam
14237 do
14238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14239 echo "$as_me:$LINENO: checking for $ac_func" >&5
14240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14241 if eval "test \"\${$as_ac_var+set}\" = set"; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   cat >conftest.$ac_ext <<_ACEOF
14245 #line $LINENO "configure"
14246 #include "confdefs.h"
14247 /* System header to define __stub macros and hopefully few prototypes,
14248     which can conflict with char $ac_func (); below.  */
14249 #include <assert.h>
14250 /* Override any gcc2 internal prototype to avoid an error.  */
14251 #ifdef __cplusplus
14252 extern "C"
14253 #endif
14254 /* We use char because int might match the return type of a gcc2
14255    builtin and then its argument prototype would still apply.  */
14256 char $ac_func ();
14257 char (*f) ();
14258
14259 int
14260 main ()
14261 {
14262 /* The GNU C library defines this for functions which it implements
14263     to always fail with ENOSYS.  Some functions are actually named
14264     something starting with __ and the normal name is an alias.  */
14265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14266 choke me
14267 #else
14268 f = $ac_func;
14269 #endif
14270
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14277   (eval $ac_link) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); } &&
14281          { ac_try='test -s conftest$ac_exeext'
14282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283   (eval $ac_try) 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); }; }; then
14287   eval "$as_ac_var=yes"
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14291 eval "$as_ac_var=no"
14292 fi
14293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14294 fi
14295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14297 if test `eval echo '${'$as_ac_var'}'` = yes; then
14298   cat >>confdefs.h <<_ACEOF
14299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14300 _ACEOF
14301
14302 fi
14303 done
14304  ;;
14305   *)
14306 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
14307 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
14308 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311   ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-lsec  $LIBS"
14313 cat >conftest.$ac_ext <<_ACEOF
14314 #line $LINENO "configure"
14315 #include "confdefs.h"
14316
14317 /* Override any gcc2 internal prototype to avoid an error.  */
14318 #ifdef __cplusplus
14319 extern "C"
14320 #endif
14321 /* We use char because int might match the return type of a gcc2
14322    builtin and then its argument prototype would still apply.  */
14323 char getspnam ();
14324 int
14325 main ()
14326 {
14327 getspnam ();
14328   ;
14329   return 0;
14330 }
14331 _ACEOF
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334   (eval $ac_link) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); } &&
14338          { ac_try='test -s conftest$ac_exeext'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; }; then
14344   ac_cv_lib_sec_getspnam=yes
14345 else
14346   echo "$as_me: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14348 ac_cv_lib_sec_getspnam=no
14349 fi
14350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14351 LIBS=$ac_check_lib_save_LIBS
14352 fi
14353 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
14354 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
14355 if test $ac_cv_lib_sec_getspnam = yes; then
14356   cat >>confdefs.h <<_ACEOF
14357 #define HAVE_LIBSEC 1
14358 _ACEOF
14359
14360   LIBS="-lsec $LIBS"
14361
14362 fi
14363
14364
14365 for ac_func in getspnam
14366 do
14367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14368 echo "$as_me:$LINENO: checking for $ac_func" >&5
14369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14370 if eval "test \"\${$as_ac_var+set}\" = set"; then
14371   echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373   cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 #include "confdefs.h"
14376 /* System header to define __stub macros and hopefully few prototypes,
14377     which can conflict with char $ac_func (); below.  */
14378 #include <assert.h>
14379 /* Override any gcc2 internal prototype to avoid an error.  */
14380 #ifdef __cplusplus
14381 extern "C"
14382 #endif
14383 /* We use char because int might match the return type of a gcc2
14384    builtin and then its argument prototype would still apply.  */
14385 char $ac_func ();
14386 char (*f) ();
14387
14388 int
14389 main ()
14390 {
14391 /* The GNU C library defines this for functions which it implements
14392     to always fail with ENOSYS.  Some functions are actually named
14393     something starting with __ and the normal name is an alias.  */
14394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14395 choke me
14396 #else
14397 f = $ac_func;
14398 #endif
14399
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14406   (eval $ac_link) 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); } &&
14410          { ac_try='test -s conftest$ac_exeext'
14411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412   (eval $ac_try) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; }; then
14416   eval "$as_ac_var=yes"
14417 else
14418   echo "$as_me: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14420 eval "$as_ac_var=no"
14421 fi
14422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14423 fi
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14426 if test `eval echo '${'$as_ac_var'}'` = yes; then
14427   cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14429 _ACEOF
14430
14431 fi
14432 done
14433
14434   ;;
14435   esac
14436
14437
14438 case "$LIBS" in
14439   *-lsecurity*)
14440 for ac_func in bigcrypt
14441 do
14442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14443 echo "$as_me:$LINENO: checking for $ac_func" >&5
14444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14445 if eval "test \"\${$as_ac_var+set}\" = set"; then
14446   echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448   cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 /* System header to define __stub macros and hopefully few prototypes,
14452     which can conflict with char $ac_func (); below.  */
14453 #include <assert.h>
14454 /* Override any gcc2 internal prototype to avoid an error.  */
14455 #ifdef __cplusplus
14456 extern "C"
14457 #endif
14458 /* We use char because int might match the return type of a gcc2
14459    builtin and then its argument prototype would still apply.  */
14460 char $ac_func ();
14461 char (*f) ();
14462
14463 int
14464 main ()
14465 {
14466 /* The GNU C library defines this for functions which it implements
14467     to always fail with ENOSYS.  Some functions are actually named
14468     something starting with __ and the normal name is an alias.  */
14469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14470 choke me
14471 #else
14472 f = $ac_func;
14473 #endif
14474
14475   ;
14476   return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14481   (eval $ac_link) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } &&
14485          { ac_try='test -s conftest$ac_exeext'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; }; then
14491   eval "$as_ac_var=yes"
14492 else
14493   echo "$as_me: failed program was:" >&5
14494 cat conftest.$ac_ext >&5
14495 eval "$as_ac_var=no"
14496 fi
14497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14498 fi
14499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14501 if test `eval echo '${'$as_ac_var'}'` = yes; then
14502   cat >>confdefs.h <<_ACEOF
14503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14504 _ACEOF
14505
14506 fi
14507 done
14508  ;;
14509   *)
14510 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
14511 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
14512 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515   ac_check_lib_save_LIBS=$LIBS
14516 LIBS="-lsecurity  $LIBS"
14517 cat >conftest.$ac_ext <<_ACEOF
14518 #line $LINENO "configure"
14519 #include "confdefs.h"
14520
14521 /* Override any gcc2 internal prototype to avoid an error.  */
14522 #ifdef __cplusplus
14523 extern "C"
14524 #endif
14525 /* We use char because int might match the return type of a gcc2
14526    builtin and then its argument prototype would still apply.  */
14527 char bigcrypt ();
14528 int
14529 main ()
14530 {
14531 bigcrypt ();
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14538   (eval $ac_link) 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -s conftest$ac_exeext'
14543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544   (eval $ac_try) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; }; then
14548   ac_cv_lib_security_bigcrypt=yes
14549 else
14550   echo "$as_me: failed program was:" >&5
14551 cat conftest.$ac_ext >&5
14552 ac_cv_lib_security_bigcrypt=no
14553 fi
14554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14555 LIBS=$ac_check_lib_save_LIBS
14556 fi
14557 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
14558 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
14559 if test $ac_cv_lib_security_bigcrypt = yes; then
14560   cat >>confdefs.h <<_ACEOF
14561 #define HAVE_LIBSECURITY 1
14562 _ACEOF
14563
14564   LIBS="-lsecurity $LIBS"
14565
14566 fi
14567
14568
14569 for ac_func in bigcrypt
14570 do
14571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14572 echo "$as_me:$LINENO: checking for $ac_func" >&5
14573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14574 if eval "test \"\${$as_ac_var+set}\" = set"; then
14575   echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577   cat >conftest.$ac_ext <<_ACEOF
14578 #line $LINENO "configure"
14579 #include "confdefs.h"
14580 /* System header to define __stub macros and hopefully few prototypes,
14581     which can conflict with char $ac_func (); below.  */
14582 #include <assert.h>
14583 /* Override any gcc2 internal prototype to avoid an error.  */
14584 #ifdef __cplusplus
14585 extern "C"
14586 #endif
14587 /* We use char because int might match the return type of a gcc2
14588    builtin and then its argument prototype would still apply.  */
14589 char $ac_func ();
14590 char (*f) ();
14591
14592 int
14593 main ()
14594 {
14595 /* The GNU C library defines this for functions which it implements
14596     to always fail with ENOSYS.  Some functions are actually named
14597     something starting with __ and the normal name is an alias.  */
14598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14599 choke me
14600 #else
14601 f = $ac_func;
14602 #endif
14603
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14610   (eval $ac_link) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); } &&
14614          { ac_try='test -s conftest$ac_exeext'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620   eval "$as_ac_var=yes"
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14624 eval "$as_ac_var=no"
14625 fi
14626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14627 fi
14628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14630 if test `eval echo '${'$as_ac_var'}'` = yes; then
14631   cat >>confdefs.h <<_ACEOF
14632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14633 _ACEOF
14634
14635 fi
14636 done
14637
14638   ;;
14639   esac
14640
14641 case "$LIBS" in
14642   *-lsec*)
14643 for ac_func in bigcrypt
14644 do
14645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14646 echo "$as_me:$LINENO: checking for $ac_func" >&5
14647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14648 if eval "test \"\${$as_ac_var+set}\" = set"; then
14649   echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651   cat >conftest.$ac_ext <<_ACEOF
14652 #line $LINENO "configure"
14653 #include "confdefs.h"
14654 /* System header to define __stub macros and hopefully few prototypes,
14655     which can conflict with char $ac_func (); below.  */
14656 #include <assert.h>
14657 /* Override any gcc2 internal prototype to avoid an error.  */
14658 #ifdef __cplusplus
14659 extern "C"
14660 #endif
14661 /* We use char because int might match the return type of a gcc2
14662    builtin and then its argument prototype would still apply.  */
14663 char $ac_func ();
14664 char (*f) ();
14665
14666 int
14667 main ()
14668 {
14669 /* The GNU C library defines this for functions which it implements
14670     to always fail with ENOSYS.  Some functions are actually named
14671     something starting with __ and the normal name is an alias.  */
14672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14673 choke me
14674 #else
14675 f = $ac_func;
14676 #endif
14677
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14684   (eval $ac_link) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); } &&
14688          { ac_try='test -s conftest$ac_exeext'
14689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690   (eval $ac_try) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }; then
14694   eval "$as_ac_var=yes"
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14698 eval "$as_ac_var=no"
14699 fi
14700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14701 fi
14702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14704 if test `eval echo '${'$as_ac_var'}'` = yes; then
14705   cat >>confdefs.h <<_ACEOF
14706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14707 _ACEOF
14708
14709 fi
14710 done
14711  ;;
14712   *)
14713 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14714 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
14715 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   ac_check_lib_save_LIBS=$LIBS
14719 LIBS="-lsec  $LIBS"
14720 cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 #include "confdefs.h"
14723
14724 /* Override any gcc2 internal prototype to avoid an error.  */
14725 #ifdef __cplusplus
14726 extern "C"
14727 #endif
14728 /* We use char because int might match the return type of a gcc2
14729    builtin and then its argument prototype would still apply.  */
14730 char bigcrypt ();
14731 int
14732 main ()
14733 {
14734 bigcrypt ();
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741   (eval $ac_link) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -s conftest$ac_exeext'
14746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747   (eval $ac_try) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; }; then
14751   ac_cv_lib_sec_bigcrypt=yes
14752 else
14753   echo "$as_me: failed program was:" >&5
14754 cat conftest.$ac_ext >&5
14755 ac_cv_lib_sec_bigcrypt=no
14756 fi
14757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS
14759 fi
14760 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14761 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
14762 if test $ac_cv_lib_sec_bigcrypt = yes; then
14763   cat >>confdefs.h <<_ACEOF
14764 #define HAVE_LIBSEC 1
14765 _ACEOF
14766
14767   LIBS="-lsec $LIBS"
14768
14769 fi
14770
14771
14772 for ac_func in bigcrypt
14773 do
14774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14775 echo "$as_me:$LINENO: checking for $ac_func" >&5
14776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14777 if eval "test \"\${$as_ac_var+set}\" = set"; then
14778   echo $ECHO_N "(cached) $ECHO_C" >&6
14779 else
14780   cat >conftest.$ac_ext <<_ACEOF
14781 #line $LINENO "configure"
14782 #include "confdefs.h"
14783 /* System header to define __stub macros and hopefully few prototypes,
14784     which can conflict with char $ac_func (); below.  */
14785 #include <assert.h>
14786 /* Override any gcc2 internal prototype to avoid an error.  */
14787 #ifdef __cplusplus
14788 extern "C"
14789 #endif
14790 /* We use char because int might match the return type of a gcc2
14791    builtin and then its argument prototype would still apply.  */
14792 char $ac_func ();
14793 char (*f) ();
14794
14795 int
14796 main ()
14797 {
14798 /* The GNU C library defines this for functions which it implements
14799     to always fail with ENOSYS.  Some functions are actually named
14800     something starting with __ and the normal name is an alias.  */
14801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14802 choke me
14803 #else
14804 f = $ac_func;
14805 #endif
14806
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813   (eval $ac_link) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); } &&
14817          { ac_try='test -s conftest$ac_exeext'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; }; then
14823   eval "$as_ac_var=yes"
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14827 eval "$as_ac_var=no"
14828 fi
14829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14830 fi
14831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14833 if test `eval echo '${'$as_ac_var'}'` = yes; then
14834   cat >>confdefs.h <<_ACEOF
14835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14836 _ACEOF
14837
14838 fi
14839 done
14840
14841   ;;
14842   esac
14843
14844
14845 case "$LIBS" in
14846   *-lsecurity*)
14847 for ac_func in getprpwnam
14848 do
14849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14850 echo "$as_me:$LINENO: checking for $ac_func" >&5
14851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14852 if eval "test \"\${$as_ac_var+set}\" = set"; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855   cat >conftest.$ac_ext <<_ACEOF
14856 #line $LINENO "configure"
14857 #include "confdefs.h"
14858 /* System header to define __stub macros and hopefully few prototypes,
14859     which can conflict with char $ac_func (); below.  */
14860 #include <assert.h>
14861 /* Override any gcc2 internal prototype to avoid an error.  */
14862 #ifdef __cplusplus
14863 extern "C"
14864 #endif
14865 /* We use char because int might match the return type of a gcc2
14866    builtin and then its argument prototype would still apply.  */
14867 char $ac_func ();
14868 char (*f) ();
14869
14870 int
14871 main ()
14872 {
14873 /* The GNU C library defines this for functions which it implements
14874     to always fail with ENOSYS.  Some functions are actually named
14875     something starting with __ and the normal name is an alias.  */
14876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14877 choke me
14878 #else
14879 f = $ac_func;
14880 #endif
14881
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888   (eval $ac_link) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } &&
14892          { ac_try='test -s conftest$ac_exeext'
14893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894   (eval $ac_try) 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); }; }; then
14898   eval "$as_ac_var=yes"
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14902 eval "$as_ac_var=no"
14903 fi
14904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14905 fi
14906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14908 if test `eval echo '${'$as_ac_var'}'` = yes; then
14909   cat >>confdefs.h <<_ACEOF
14910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14911 _ACEOF
14912
14913 fi
14914 done
14915  ;;
14916   *)
14917 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14918 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
14919 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922   ac_check_lib_save_LIBS=$LIBS
14923 LIBS="-lsecurity  $LIBS"
14924 cat >conftest.$ac_ext <<_ACEOF
14925 #line $LINENO "configure"
14926 #include "confdefs.h"
14927
14928 /* Override any gcc2 internal prototype to avoid an error.  */
14929 #ifdef __cplusplus
14930 extern "C"
14931 #endif
14932 /* We use char because int might match the return type of a gcc2
14933    builtin and then its argument prototype would still apply.  */
14934 char getprpwnam ();
14935 int
14936 main ()
14937 {
14938 getprpwnam ();
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14945   (eval $ac_link) 2>&5
14946   ac_status=$?
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); } &&
14949          { ac_try='test -s conftest$ac_exeext'
14950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951   (eval $ac_try) 2>&5
14952   ac_status=$?
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); }; }; then
14955   ac_cv_lib_security_getprpwnam=yes
14956 else
14957   echo "$as_me: failed program was:" >&5
14958 cat conftest.$ac_ext >&5
14959 ac_cv_lib_security_getprpwnam=no
14960 fi
14961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14962 LIBS=$ac_check_lib_save_LIBS
14963 fi
14964 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14965 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
14966 if test $ac_cv_lib_security_getprpwnam = yes; then
14967   cat >>confdefs.h <<_ACEOF
14968 #define HAVE_LIBSECURITY 1
14969 _ACEOF
14970
14971   LIBS="-lsecurity $LIBS"
14972
14973 fi
14974
14975
14976 for ac_func in getprpwnam
14977 do
14978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14979 echo "$as_me:$LINENO: checking for $ac_func" >&5
14980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14981 if eval "test \"\${$as_ac_var+set}\" = set"; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14986 #include "confdefs.h"
14987 /* System header to define __stub macros and hopefully few prototypes,
14988     which can conflict with char $ac_func (); below.  */
14989 #include <assert.h>
14990 /* Override any gcc2 internal prototype to avoid an error.  */
14991 #ifdef __cplusplus
14992 extern "C"
14993 #endif
14994 /* We use char because int might match the return type of a gcc2
14995    builtin and then its argument prototype would still apply.  */
14996 char $ac_func ();
14997 char (*f) ();
14998
14999 int
15000 main ()
15001 {
15002 /* The GNU C library defines this for functions which it implements
15003     to always fail with ENOSYS.  Some functions are actually named
15004     something starting with __ and the normal name is an alias.  */
15005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15006 choke me
15007 #else
15008 f = $ac_func;
15009 #endif
15010
15011   ;
15012   return 0;
15013 }
15014 _ACEOF
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017   (eval $ac_link) 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); } &&
15021          { ac_try='test -s conftest$ac_exeext'
15022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023   (eval $ac_try) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; }; then
15027   eval "$as_ac_var=yes"
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 cat conftest.$ac_ext >&5
15031 eval "$as_ac_var=no"
15032 fi
15033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15034 fi
15035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15037 if test `eval echo '${'$as_ac_var'}'` = yes; then
15038   cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15040 _ACEOF
15041
15042 fi
15043 done
15044
15045   ;;
15046   esac
15047
15048 case "$LIBS" in
15049   *-lsec*)
15050 for ac_func in getprpwnam
15051 do
15052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15053 echo "$as_me:$LINENO: checking for $ac_func" >&5
15054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15055 if eval "test \"\${$as_ac_var+set}\" = set"; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 #include "confdefs.h"
15061 /* System header to define __stub macros and hopefully few prototypes,
15062     which can conflict with char $ac_func (); below.  */
15063 #include <assert.h>
15064 /* Override any gcc2 internal prototype to avoid an error.  */
15065 #ifdef __cplusplus
15066 extern "C"
15067 #endif
15068 /* We use char because int might match the return type of a gcc2
15069    builtin and then its argument prototype would still apply.  */
15070 char $ac_func ();
15071 char (*f) ();
15072
15073 int
15074 main ()
15075 {
15076 /* The GNU C library defines this for functions which it implements
15077     to always fail with ENOSYS.  Some functions are actually named
15078     something starting with __ and the normal name is an alias.  */
15079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15080 choke me
15081 #else
15082 f = $ac_func;
15083 #endif
15084
15085   ;
15086   return 0;
15087 }
15088 _ACEOF
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15091   (eval $ac_link) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); } &&
15095          { ac_try='test -s conftest$ac_exeext'
15096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097   (eval $ac_try) 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); }; }; then
15101   eval "$as_ac_var=yes"
15102 else
15103   echo "$as_me: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15105 eval "$as_ac_var=no"
15106 fi
15107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15108 fi
15109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15111 if test `eval echo '${'$as_ac_var'}'` = yes; then
15112   cat >>confdefs.h <<_ACEOF
15113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15114 _ACEOF
15115
15116 fi
15117 done
15118  ;;
15119   *)
15120 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
15121 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
15122 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
15123   echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125   ac_check_lib_save_LIBS=$LIBS
15126 LIBS="-lsec  $LIBS"
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 #include "confdefs.h"
15130
15131 /* Override any gcc2 internal prototype to avoid an error.  */
15132 #ifdef __cplusplus
15133 extern "C"
15134 #endif
15135 /* We use char because int might match the return type of a gcc2
15136    builtin and then its argument prototype would still apply.  */
15137 char getprpwnam ();
15138 int
15139 main ()
15140 {
15141 getprpwnam ();
15142   ;
15143   return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148   (eval $ac_link) 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } &&
15152          { ac_try='test -s conftest$ac_exeext'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }; then
15158   ac_cv_lib_sec_getprpwnam=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15162 ac_cv_lib_sec_getprpwnam=no
15163 fi
15164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15165 LIBS=$ac_check_lib_save_LIBS
15166 fi
15167 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
15168 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
15169 if test $ac_cv_lib_sec_getprpwnam = yes; then
15170   cat >>confdefs.h <<_ACEOF
15171 #define HAVE_LIBSEC 1
15172 _ACEOF
15173
15174   LIBS="-lsec $LIBS"
15175
15176 fi
15177
15178
15179 for ac_func in getprpwnam
15180 do
15181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15182 echo "$as_me:$LINENO: checking for $ac_func" >&5
15183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15184 if eval "test \"\${$as_ac_var+set}\" = set"; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   cat >conftest.$ac_ext <<_ACEOF
15188 #line $LINENO "configure"
15189 #include "confdefs.h"
15190 /* System header to define __stub macros and hopefully few prototypes,
15191     which can conflict with char $ac_func (); below.  */
15192 #include <assert.h>
15193 /* Override any gcc2 internal prototype to avoid an error.  */
15194 #ifdef __cplusplus
15195 extern "C"
15196 #endif
15197 /* We use char because int might match the return type of a gcc2
15198    builtin and then its argument prototype would still apply.  */
15199 char $ac_func ();
15200 char (*f) ();
15201
15202 int
15203 main ()
15204 {
15205 /* The GNU C library defines this for functions which it implements
15206     to always fail with ENOSYS.  Some functions are actually named
15207     something starting with __ and the normal name is an alias.  */
15208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15209 choke me
15210 #else
15211 f = $ac_func;
15212 #endif
15213
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220   (eval $ac_link) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -s conftest$ac_exeext'
15225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226   (eval $ac_try) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); }; }; then
15230   eval "$as_ac_var=yes"
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 eval "$as_ac_var=no"
15235 fi
15236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15237 fi
15238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15240 if test `eval echo '${'$as_ac_var'}'` = yes; then
15241   cat >>confdefs.h <<_ACEOF
15242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15243 _ACEOF
15244
15245 fi
15246 done
15247
15248   ;;
15249   esac
15250
15251
15252 # this bit needs to be modified for each OS that is suported by
15253 # smbwrapper. You need to specify how to created a shared library and
15254 # how to compile C code to produce PIC object files
15255
15256 # these are the defaults, good for lots of systems
15257 HOST_OS="$host_os"
15258 LDSHFLAGS="-shared"
15259 SONAMEFLAG="#"
15260 SHLD="\${CC}"
15261 PICFLAG=""
15262 PICSUFFIX="po"
15263 POBAD_CC="#"
15264 SHLIBEXT="so"
15265 # Assume non-shared by default and override below
15266 BLDSHARED="false"
15267 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
15268 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
15269
15270 # and these are for particular systems
15271 case "$host_os" in
15272                 *linux*)
15273 cat >>confdefs.h <<\_ACEOF
15274 #define LINUX 1
15275 _ACEOF
15276
15277                         BLDSHARED="true"
15278                         LDSHFLAGS="-shared"
15279                         DYNEXP="-Wl,--export-dynamic"
15280                         PICFLAG="-fPIC"
15281                         SONAMEFLAG="-Wl,-soname="
15282                         cat >>confdefs.h <<\_ACEOF
15283 #define STAT_ST_BLOCKSIZE 512
15284 _ACEOF
15285
15286                 ;;
15287                 *solaris*)
15288 cat >>confdefs.h <<\_ACEOF
15289 #define SUNOS5 1
15290 _ACEOF
15291
15292                         BLDSHARED="true"
15293                         LDSHFLAGS="-G"
15294                         SONAMEFLAG="-h "
15295                         if test "${GCC}" = "yes"; then
15296                                 PICFLAG="-fPIC"
15297                                 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
15298                                         DYNEXP="-Wl,-E"
15299                                 fi
15300                         else
15301                                 PICFLAG="-KPIC"
15302                                 ## ${CFLAGS} added for building 64-bit shared
15303                                 ## libs using Sun's Compiler
15304                                 LDSHFLAGS="-G \${CFLAGS}"
15305                                 POBAD_CC=""
15306                                 PICSUFFIX="po.o"
15307                         fi
15308
15309 cat >>confdefs.h <<\_ACEOF
15310 #define STAT_ST_BLOCKSIZE 512
15311 _ACEOF
15312
15313                 ;;
15314                 *sunos*)
15315 cat >>confdefs.h <<\_ACEOF
15316 #define SUNOS4 1
15317 _ACEOF
15318
15319                         BLDSHARED="true"
15320                         LDSHFLAGS="-G"
15321                         SONAMEFLAG="-Wl,-h,"
15322                         PICFLAG="-KPIC"   # Is this correct for SunOS
15323                 ;;
15324                 *freebsd*)  BLDSHARED="true"
15325                         LDSHFLAGS="-shared"
15326                         DYNEXP="-Wl,--export-dynamic"
15327                         SONAMEFLAG="-Wl,-soname,"
15328                         PICFLAG="-fPIC -DPIC"
15329
15330 cat >>confdefs.h <<\_ACEOF
15331 #define STAT_ST_BLOCKSIZE 512
15332 _ACEOF
15333
15334                 ;;
15335                 *openbsd*)  BLDSHARED="true"
15336                         LDSHFLAGS="-shared"
15337                         DYNEXP="-Wl,-Bdynamic"
15338                         SONAMEFLAG="-Wl,-soname,"
15339                         PICFLAG="-fPIC"
15340
15341 cat >>confdefs.h <<\_ACEOF
15342 #define STAT_ST_BLOCKSIZE 512
15343 _ACEOF
15344
15345                 ;;
15346                 *irix*)
15347 cat >>confdefs.h <<\_ACEOF
15348 #define IRIX 1
15349 _ACEOF
15350
15351                         case "$host_os" in
15352                         *irix6*)
15353 cat >>confdefs.h <<\_ACEOF
15354 #define IRIX6 1
15355 _ACEOF
15356
15357                         ;;
15358                         esac
15359                         ATTEMPT_WRAP32_BUILD=yes
15360                         BLDSHARED="true"
15361                         LDSHFLAGS="-set_version sgi1.0 -shared"
15362                         SONAMEFLAG="-soname "
15363                         SHLD="\${LD}"
15364                         if test "${GCC}" = "yes"; then
15365                                 PICFLAG="-fPIC"
15366                         else
15367                                 PICFLAG="-KPIC"
15368                         fi
15369
15370 cat >>confdefs.h <<\_ACEOF
15371 #define STAT_ST_BLOCKSIZE 512
15372 _ACEOF
15373
15374                 ;;
15375                 *aix*)
15376 cat >>confdefs.h <<\_ACEOF
15377 #define AIX 1
15378 _ACEOF
15379
15380                         BLDSHARED="true"
15381                         LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
15382                         DYNEXP="-Wl,-brtl,-bexpall"
15383                         PICFLAG="-O2"
15384                         if test "${GCC}" != "yes"; then
15385                                 ## for funky AIX compiler using strncpy()
15386                                 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
15387                         fi
15388
15389
15390 cat >>confdefs.h <<\_ACEOF
15391 #define STAT_ST_BLOCKSIZE DEV_BSIZE
15392 _ACEOF
15393
15394                 ;;
15395                 *hpux*)
15396 cat >>confdefs.h <<\_ACEOF
15397 #define HPUX 1
15398 _ACEOF
15399
15400                         SHLIBEXT="sl"
15401                         # Use special PIC flags for the native HP-UX compiler.
15402                         if test $ac_cv_prog_cc_Ae = yes; then
15403                                 BLDSHARED="true"
15404                                 SHLD="/usr/bin/ld"
15405                                 LDSHFLAGS="-B symbolic -b -z"
15406                                 SONAMEFLAG="+h "
15407                                 PICFLAG="+z"
15408                         fi
15409                         DYNEXP="-Wl,-E"
15410
15411 cat >>confdefs.h <<\_ACEOF
15412 #define STAT_ST_BLOCKSIZE 8192
15413 _ACEOF
15414
15415                 ;;
15416                 *qnx*)
15417 cat >>confdefs.h <<\_ACEOF
15418 #define QNX 1
15419 _ACEOF
15420 ;;
15421                 *osf*)
15422 cat >>confdefs.h <<\_ACEOF
15423 #define OSF1 1
15424 _ACEOF
15425
15426                         BLDSHARED="true"
15427                         LDSHFLAGS="-shared"
15428                         SONAMEFLAG="-Wl,-soname,"
15429                         PICFLAG="-fPIC"
15430                 ;;
15431                 *sco*)
15432 cat >>confdefs.h <<\_ACEOF
15433 #define SCO 1
15434 _ACEOF
15435 ;;
15436                 *unixware*)
15437 cat >>confdefs.h <<\_ACEOF
15438 #define UNIXWARE 1
15439 _ACEOF
15440
15441                         BLDSHARED="true"
15442                         LDSHFLAGS="-shared"
15443                         SONAMEFLAG="-Wl,-soname,"
15444                         PICFLAG="-KPIC"
15445                 ;;
15446                 *next2*)
15447 cat >>confdefs.h <<\_ACEOF
15448 #define NEXT2 1
15449 _ACEOF
15450 ;;
15451                 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
15452 set dummy groff; ac_word=$2
15453 echo "$as_me:$LINENO: checking for $ac_word" >&5
15454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15455 if test "${ac_cv_prog_ROFF+set}" = set; then
15456   echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458   if test -n "$ROFF"; then
15459   ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
15460 else
15461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH
15463 do
15464   IFS=$as_save_IFS
15465   test -z "$as_dir" && as_dir=.
15466   for ac_exec_ext in '' $ac_executable_extensions; do
15467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15468     ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
15469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15470     break 2
15471   fi
15472 done
15473 done
15474
15475 fi
15476 fi
15477 ROFF=$ac_cv_prog_ROFF
15478 if test -n "$ROFF"; then
15479   echo "$as_me:$LINENO: result: $ROFF" >&5
15480 echo "${ECHO_T}$ROFF" >&6
15481 else
15482   echo "$as_me:$LINENO: result: no" >&5
15483 echo "${ECHO_T}no" >&6
15484 fi
15485 ;;
15486                 *sysv4*)
15487 cat >>confdefs.h <<\_ACEOF
15488 #define SYSV 1
15489 _ACEOF
15490
15491                         case "$host" in
15492                                 *-univel-*)     if  test "$GCC" != yes ; then
15493
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_MEMSET 1
15496 _ACEOF
15497
15498                                         fi
15499                                         LDSHFLAGS="-G"
15500                                         DYNEXP="-Bexport"
15501                                 ;;
15502                                 *mips-sni-sysv4*)
15503 cat >>confdefs.h <<\_ACEOF
15504 #define RELIANTUNIX 1
15505 _ACEOF
15506 ;;
15507                         esac
15508                 ;;
15509
15510                 *sysv5*)
15511 cat >>confdefs.h <<\_ACEOF
15512 #define SYSV 1
15513 _ACEOF
15514
15515                         if  test "$GCC" != yes ; then
15516
15517 cat >>confdefs.h <<\_ACEOF
15518 #define HAVE_MEMSET 1
15519 _ACEOF
15520
15521                         fi
15522                         LDSHFLAGS="-G"
15523                 ;;
15524 esac
15525
15526 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
15527 echo "${ECHO_T}$BLDSHARED" >&6
15528 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
15529 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
15530 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
15531 echo "${ECHO_T}$LDSHFLAGS" >&6
15532 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
15533 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
15534 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
15535 echo "${ECHO_T}$PICFLAGS" >&6
15536
15537 #######################################################
15538 # test whether building a shared library actually works
15539 if test $BLDSHARED = true; then
15540 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
15541 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
15542 if test "${ac_cv_shlib_works+set}" = set; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545
15546    ac_cv_shlib_works=no
15547    # try building a trivial shared library
15548    $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
15549      $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
15550      ac_cv_shlib_works=yes
15551    rm -f shlib.so shlib.po
15552
15553 fi
15554 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
15555 echo "${ECHO_T}$ac_cv_shlib_works" >&6
15556 if test $ac_cv_shlib_works = no; then
15557    BLDSHARED=false
15558 fi
15559 fi
15560
15561
15562 # this updates our target list if we can build shared libs
15563 if test $BLDSHARED = true; then
15564    LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
15565 else
15566    LIBSMBCLIENT_SHARED=
15567 fi
15568
15569 ################
15570
15571 echo "$as_me:$LINENO: checking for long long" >&5
15572 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15573 if test "${samba_cv_have_longlong+set}" = set; then
15574   echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576
15577 if test "$cross_compiling" = yes; then
15578   samba_cv_have_longlong=cross
15579 else
15580   cat >conftest.$ac_ext <<_ACEOF
15581 #line $LINENO "configure"
15582 #include "confdefs.h"
15583 #include <stdio.h>
15584 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
15585 _ACEOF
15586 rm -f conftest$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588   (eval $ac_link) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   samba_cv_have_longlong=yes
15598 else
15599   echo "$as_me: program exited with status $ac_status" >&5
15600 echo "$as_me: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15602 ( exit $ac_status )
15603 samba_cv_have_longlong=no
15604 fi
15605 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15606 fi
15607 fi
15608 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
15609 echo "${ECHO_T}$samba_cv_have_longlong" >&6
15610 if test x"$samba_cv_have_longlong" = x"yes"; then
15611
15612 cat >>confdefs.h <<\_ACEOF
15613 #define HAVE_LONGLONG 1
15614 _ACEOF
15615
15616 fi
15617
15618 #
15619 # Check if the compiler supports the LL prefix on long long integers.
15620 # AIX needs this.
15621
15622 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
15623 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
15624 if test "${samba_cv_compiler_supports_ll+set}" = set; then
15625   echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627
15628     cat >conftest.$ac_ext <<_ACEOF
15629 #line $LINENO "configure"
15630 #include "confdefs.h"
15631 #include <stdio.h>
15632 int
15633 main ()
15634 {
15635 long long i = 0x8000000000LL
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642   (eval $ac_compile) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); } &&
15646          { ac_try='test -s conftest.$ac_objext'
15647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648   (eval $ac_try) 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); }; }; then
15652   samba_cv_compiler_supports_ll=yes
15653 else
15654   echo "$as_me: failed program was:" >&5
15655 cat conftest.$ac_ext >&5
15656 samba_cv_compiler_supports_ll=no
15657 fi
15658 rm -f conftest.$ac_objext conftest.$ac_ext
15659 fi
15660 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
15661 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
15662 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
15663
15664 cat >>confdefs.h <<\_ACEOF
15665 #define COMPILER_SUPPORTS_LL 1
15666 _ACEOF
15667
15668 fi
15669
15670
15671 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
15672 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
15673 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
15674   echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676
15677 if test "$cross_compiling" = yes; then
15678   samba_cv_SIZEOF_OFF_T=cross
15679 else
15680   cat >conftest.$ac_ext <<_ACEOF
15681 #line $LINENO "configure"
15682 #include "confdefs.h"
15683 #include <stdio.h>
15684 #include <sys/stat.h>
15685 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
15686 _ACEOF
15687 rm -f conftest$ac_exeext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15689   (eval $ac_link) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   samba_cv_SIZEOF_OFF_T=yes
15699 else
15700   echo "$as_me: program exited with status $ac_status" >&5
15701 echo "$as_me: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15703 ( exit $ac_status )
15704 samba_cv_SIZEOF_OFF_T=no
15705 fi
15706 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15707 fi
15708 fi
15709 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
15710 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
15711 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
15712
15713 cat >>confdefs.h <<\_ACEOF
15714 #define SIZEOF_OFF_T 8
15715 _ACEOF
15716
15717 fi
15718
15719 echo "$as_me:$LINENO: checking for off64_t" >&5
15720 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
15721 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
15722   echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724
15725 if test "$cross_compiling" = yes; then
15726   samba_cv_HAVE_OFF64_T=cross
15727 else
15728   cat >conftest.$ac_ext <<_ACEOF
15729 #line $LINENO "configure"
15730 #include "confdefs.h"
15731
15732 #if defined(HAVE_UNISTD_H)
15733 #include <unistd.h>
15734 #endif
15735 #include <stdio.h>
15736 #include <sys/stat.h>
15737 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15738 _ACEOF
15739 rm -f conftest$ac_exeext
15740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15741   (eval $ac_link) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746   (eval $ac_try) 2>&5
15747   ac_status=$?
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); }; }; then
15750   samba_cv_HAVE_OFF64_T=yes
15751 else
15752   echo "$as_me: program exited with status $ac_status" >&5
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15755 ( exit $ac_status )
15756 samba_cv_HAVE_OFF64_T=no
15757 fi
15758 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15759 fi
15760 fi
15761 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
15762 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
15763 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
15764
15765 cat >>confdefs.h <<\_ACEOF
15766 #define HAVE_OFF64_T 1
15767 _ACEOF
15768
15769 fi
15770
15771 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
15772 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
15773 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
15774   echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776
15777 if test "$cross_compiling" = yes; then
15778   samba_cv_SIZEOF_INO_T=cross
15779 else
15780   cat >conftest.$ac_ext <<_ACEOF
15781 #line $LINENO "configure"
15782 #include "confdefs.h"
15783 #include <stdio.h>
15784 #include <sys/stat.h>
15785 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
15786 _ACEOF
15787 rm -f conftest$ac_exeext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789   (eval $ac_link) 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794   (eval $ac_try) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; }; then
15798   samba_cv_SIZEOF_INO_T=yes
15799 else
15800   echo "$as_me: program exited with status $ac_status" >&5
15801 echo "$as_me: failed program was:" >&5
15802 cat conftest.$ac_ext >&5
15803 ( exit $ac_status )
15804 samba_cv_SIZEOF_INO_T=no
15805 fi
15806 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15807 fi
15808 fi
15809 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
15810 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
15811 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
15812
15813 cat >>confdefs.h <<\_ACEOF
15814 #define SIZEOF_INO_T 8
15815 _ACEOF
15816
15817 fi
15818
15819 echo "$as_me:$LINENO: checking for ino64_t" >&5
15820 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
15821 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824
15825 if test "$cross_compiling" = yes; then
15826   samba_cv_HAVE_INO64_T=cross
15827 else
15828   cat >conftest.$ac_ext <<_ACEOF
15829 #line $LINENO "configure"
15830 #include "confdefs.h"
15831
15832 #if defined(HAVE_UNISTD_H)
15833 #include <unistd.h>
15834 #endif
15835 #include <stdio.h>
15836 #include <sys/stat.h>
15837 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15838 _ACEOF
15839 rm -f conftest$ac_exeext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15841   (eval $ac_link) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846   (eval $ac_try) 2>&5
15847   ac_status=$?
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); }; }; then
15850   samba_cv_HAVE_INO64_T=yes
15851 else
15852   echo "$as_me: program exited with status $ac_status" >&5
15853 echo "$as_me: failed program was:" >&5
15854 cat conftest.$ac_ext >&5
15855 ( exit $ac_status )
15856 samba_cv_HAVE_INO64_T=no
15857 fi
15858 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15859 fi
15860 fi
15861 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
15862 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
15863 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
15864
15865 cat >>confdefs.h <<\_ACEOF
15866 #define HAVE_INO64_T 1
15867 _ACEOF
15868
15869 fi
15870
15871 echo "$as_me:$LINENO: checking for dev64_t" >&5
15872 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
15873 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
15874   echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876
15877 if test "$cross_compiling" = yes; then
15878   samba_cv_HAVE_DEV64_T=cross
15879 else
15880   cat >conftest.$ac_ext <<_ACEOF
15881 #line $LINENO "configure"
15882 #include "confdefs.h"
15883
15884 #if defined(HAVE_UNISTD_H)
15885 #include <unistd.h>
15886 #endif
15887 #include <stdio.h>
15888 #include <sys/stat.h>
15889 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15890 _ACEOF
15891 rm -f conftest$ac_exeext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15893   (eval $ac_link) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898   (eval $ac_try) 2>&5
15899   ac_status=$?
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); }; }; then
15902   samba_cv_HAVE_DEV64_T=yes
15903 else
15904   echo "$as_me: program exited with status $ac_status" >&5
15905 echo "$as_me: failed program was:" >&5
15906 cat conftest.$ac_ext >&5
15907 ( exit $ac_status )
15908 samba_cv_HAVE_DEV64_T=no
15909 fi
15910 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15911 fi
15912 fi
15913 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
15914 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
15915 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
15916
15917 cat >>confdefs.h <<\_ACEOF
15918 #define HAVE_DEV64_T 1
15919 _ACEOF
15920
15921 fi
15922
15923 echo "$as_me:$LINENO: checking for struct dirent64" >&5
15924 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
15925 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928
15929 cat >conftest.$ac_ext <<_ACEOF
15930 #line $LINENO "configure"
15931 #include "confdefs.h"
15932
15933 #if defined(HAVE_UNISTD_H)
15934 #include <unistd.h>
15935 #endif
15936 #include <sys/types.h>
15937 #include <dirent.h>
15938 int
15939 main ()
15940 {
15941 struct dirent64 de;
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948   (eval $ac_compile) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); } &&
15952          { ac_try='test -s conftest.$ac_objext'
15953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954   (eval $ac_try) 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; }; then
15958   samba_cv_HAVE_STRUCT_DIRENT64=yes
15959 else
15960   echo "$as_me: failed program was:" >&5
15961 cat conftest.$ac_ext >&5
15962 samba_cv_HAVE_STRUCT_DIRENT64=no
15963 fi
15964 rm -f conftest.$ac_objext conftest.$ac_ext
15965 fi
15966 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
15967 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
15968 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
15969
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_STRUCT_DIRENT64 1
15972 _ACEOF
15973
15974 fi
15975
15976 echo "$as_me:$LINENO: checking for major macro" >&5
15977 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
15978 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
15979   echo $ECHO_N "(cached) $ECHO_C" >&6
15980 else
15981
15982 if test "$cross_compiling" = yes; then
15983   samba_cv_HAVE_DEVICE_MAJOR_FN=cross
15984 else
15985   cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15987 #include "confdefs.h"
15988
15989 #if defined(HAVE_UNISTD_H)
15990 #include <unistd.h>
15991 #endif
15992 #include <sys/types.h>
15993 main() { dev_t dev; int i = major(dev); return 0; }
15994 _ACEOF
15995 rm -f conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997   (eval $ac_link) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002   (eval $ac_try) 2>&5
16003   ac_status=$?
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); }; }; then
16006   samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16007 else
16008   echo "$as_me: program exited with status $ac_status" >&5
16009 echo "$as_me: failed program was:" >&5
16010 cat conftest.$ac_ext >&5
16011 ( exit $ac_status )
16012 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16013 fi
16014 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16015 fi
16016 fi
16017 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
16018 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
16019 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
16020
16021 cat >>confdefs.h <<\_ACEOF
16022 #define HAVE_DEVICE_MAJOR_FN 1
16023 _ACEOF
16024
16025 fi
16026
16027 echo "$as_me:$LINENO: checking for minor macro" >&5
16028 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
16029 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032
16033 if test "$cross_compiling" = yes; then
16034   samba_cv_HAVE_DEVICE_MINOR_FN=cross
16035 else
16036   cat >conftest.$ac_ext <<_ACEOF
16037 #line $LINENO "configure"
16038 #include "confdefs.h"
16039
16040 #if defined(HAVE_UNISTD_H)
16041 #include <unistd.h>
16042 #endif
16043 #include <sys/types.h>
16044 main() { dev_t dev; int i = minor(dev); return 0; }
16045 _ACEOF
16046 rm -f conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048   (eval $ac_link) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053   (eval $ac_try) 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; }; then
16057   samba_cv_HAVE_DEVICE_MINOR_FN=yes
16058 else
16059   echo "$as_me: program exited with status $ac_status" >&5
16060 echo "$as_me: failed program was:" >&5
16061 cat conftest.$ac_ext >&5
16062 ( exit $ac_status )
16063 samba_cv_HAVE_DEVICE_MINOR_FN=no
16064 fi
16065 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16066 fi
16067 fi
16068 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
16069 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
16070 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
16071
16072 cat >>confdefs.h <<\_ACEOF
16073 #define HAVE_DEVICE_MINOR_FN 1
16074 _ACEOF
16075
16076 fi
16077
16078 echo "$as_me:$LINENO: checking for unsigned char" >&5
16079 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
16080 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083
16084 if test "$cross_compiling" = yes; then
16085   samba_cv_HAVE_UNSIGNED_CHAR=cross
16086 else
16087   cat >conftest.$ac_ext <<_ACEOF
16088 #line $LINENO "configure"
16089 #include "confdefs.h"
16090 #include <stdio.h>
16091 main() { char c; c=250; exit((c > 0)?0:1); }
16092 _ACEOF
16093 rm -f conftest$ac_exeext
16094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16095   (eval $ac_link) 2>&5
16096   ac_status=$?
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100   (eval $ac_try) 2>&5
16101   ac_status=$?
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); }; }; then
16104   samba_cv_HAVE_UNSIGNED_CHAR=yes
16105 else
16106   echo "$as_me: program exited with status $ac_status" >&5
16107 echo "$as_me: failed program was:" >&5
16108 cat conftest.$ac_ext >&5
16109 ( exit $ac_status )
16110 samba_cv_HAVE_UNSIGNED_CHAR=no
16111 fi
16112 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16113 fi
16114 fi
16115 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
16116 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
16117 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
16118
16119 cat >>confdefs.h <<\_ACEOF
16120 #define HAVE_UNSIGNED_CHAR 1
16121 _ACEOF
16122
16123 fi
16124
16125 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
16126 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
16127 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130
16131 cat >conftest.$ac_ext <<_ACEOF
16132 #line $LINENO "configure"
16133 #include "confdefs.h"
16134 #include <sys/types.h>
16135 #include <sys/socket.h>
16136 #include <netinet/in.h>
16137 int
16138 main ()
16139 {
16140 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147   (eval $ac_compile) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } &&
16151          { ac_try='test -s conftest.$ac_objext'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157   samba_cv_HAVE_SOCK_SIN_LEN=yes
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 samba_cv_HAVE_SOCK_SIN_LEN=no
16162 fi
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16164 fi
16165 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
16166 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
16167 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
16168
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_SOCK_SIN_LEN 1
16171 _ACEOF
16172
16173 fi
16174
16175 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
16176 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
16177 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180
16181 cat >conftest.$ac_ext <<_ACEOF
16182 #line $LINENO "configure"
16183 #include "confdefs.h"
16184 #include <sys/types.h>
16185 #include <dirent.h>
16186 void seekdir(DIR *d, long loc) { return; }
16187 int
16188 main ()
16189 {
16190 return 0;
16191   ;
16192   return 0;
16193 }
16194 _ACEOF
16195 rm -f conftest.$ac_objext
16196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197   (eval $ac_compile) 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); } &&
16201          { ac_try='test -s conftest.$ac_objext'
16202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203   (eval $ac_try) 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); }; }; then
16207   samba_cv_SEEKDIR_RETURNS_VOID=yes
16208 else
16209   echo "$as_me: failed program was:" >&5
16210 cat conftest.$ac_ext >&5
16211 samba_cv_SEEKDIR_RETURNS_VOID=no
16212 fi
16213 rm -f conftest.$ac_objext conftest.$ac_ext
16214 fi
16215 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
16216 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
16217 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
16218
16219 cat >>confdefs.h <<\_ACEOF
16220 #define SEEKDIR_RETURNS_VOID 1
16221 _ACEOF
16222
16223 fi
16224
16225 echo "$as_me:$LINENO: checking for __FILE__ macro" >&5
16226 echo $ECHO_N "checking for __FILE__ macro... $ECHO_C" >&6
16227 if test "${samba_cv_HAVE_FILE_MACRO+set}" = set; then
16228   echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230
16231 cat >conftest.$ac_ext <<_ACEOF
16232 #line $LINENO "configure"
16233 #include "confdefs.h"
16234 #include <stdio.h>
16235 int
16236 main ()
16237 {
16238 printf("%s\n", __FILE__);
16239   ;
16240   return 0;
16241 }
16242 _ACEOF
16243 rm -f conftest.$ac_objext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16245   (eval $ac_compile) 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); } &&
16249          { ac_try='test -s conftest.$ac_objext'
16250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251   (eval $ac_try) 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); }; }; then
16255   samba_cv_HAVE_FILE_MACRO=yes
16256 else
16257   echo "$as_me: failed program was:" >&5
16258 cat conftest.$ac_ext >&5
16259 samba_cv_HAVE_FILE_MACRO=no
16260 fi
16261 rm -f conftest.$ac_objext conftest.$ac_ext
16262 fi
16263 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FILE_MACRO" >&5
16264 echo "${ECHO_T}$samba_cv_HAVE_FILE_MACRO" >&6
16265 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
16266
16267 cat >>confdefs.h <<\_ACEOF
16268 #define HAVE_FILE_MACRO 1
16269 _ACEOF
16270
16271 fi
16272
16273 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
16274 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
16275 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
16276   echo $ECHO_N "(cached) $ECHO_C" >&6
16277 else
16278
16279 cat >conftest.$ac_ext <<_ACEOF
16280 #line $LINENO "configure"
16281 #include "confdefs.h"
16282 #include <stdio.h>
16283 int
16284 main ()
16285 {
16286 printf("%s\n", __FUNCTION__);
16287   ;
16288   return 0;
16289 }
16290 _ACEOF
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293   (eval $ac_compile) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); } &&
16297          { ac_try='test -s conftest.$ac_objext'
16298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299   (eval $ac_try) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; }; then
16303   samba_cv_HAVE_FUNCTION_MACRO=yes
16304 else
16305   echo "$as_me: failed program was:" >&5
16306 cat conftest.$ac_ext >&5
16307 samba_cv_HAVE_FUNCTION_MACRO=no
16308 fi
16309 rm -f conftest.$ac_objext conftest.$ac_ext
16310 fi
16311 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
16312 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
16313 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
16314
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_FUNCTION_MACRO 1
16317 _ACEOF
16318
16319 fi
16320
16321 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
16322 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
16323 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
16324   echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326
16327 if test "$cross_compiling" = yes; then
16328   samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
16329 else
16330   cat >conftest.$ac_ext <<_ACEOF
16331 #line $LINENO "configure"
16332 #include "confdefs.h"
16333
16334 #include <sys/time.h>
16335 #include <unistd.h>
16336 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
16337 _ACEOF
16338 rm -f conftest$ac_exeext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16340   (eval $ac_link) 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345   (eval $ac_try) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; }; then
16349   samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
16350 else
16351   echo "$as_me: program exited with status $ac_status" >&5
16352 echo "$as_me: failed program was:" >&5
16353 cat conftest.$ac_ext >&5
16354 ( exit $ac_status )
16355 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
16356 fi
16357 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16358 fi
16359 fi
16360 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
16361 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
16362 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
16363
16364 cat >>confdefs.h <<\_ACEOF
16365 #define HAVE_GETTIMEOFDAY_TZ 1
16366 _ACEOF
16367
16368 fi
16369
16370 echo "$as_me:$LINENO: checking for __va_copy" >&5
16371 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16372 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
16373   echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375
16376 cat >conftest.$ac_ext <<_ACEOF
16377 #line $LINENO "configure"
16378 #include "confdefs.h"
16379 #include <stdarg.h>
16380 va_list ap1,ap2;
16381 int
16382 main ()
16383 {
16384 __va_copy(ap1,ap2);
16385   ;
16386   return 0;
16387 }
16388 _ACEOF
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16391   (eval $ac_link) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); } &&
16395          { ac_try='test -s conftest$ac_exeext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   samba_cv_HAVE_VA_COPY=yes
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 samba_cv_HAVE_VA_COPY=no
16406 fi
16407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16408 fi
16409 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
16410 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
16411 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
16412
16413 cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_VA_COPY 1
16415 _ACEOF
16416
16417 fi
16418
16419 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
16420 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
16421 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424
16425 if test "$cross_compiling" = yes; then
16426   samba_cv_HAVE_C99_VSNPRINTF=cross
16427 else
16428   cat >conftest.$ac_ext <<_ACEOF
16429 #line $LINENO "configure"
16430 #include "confdefs.h"
16431
16432 #include <sys/types.h>
16433 #include <stdarg.h>
16434 void foo(const char *format, ...) {
16435        va_list ap;
16436        int len;
16437        char buf[5];
16438
16439        va_start(ap, format);
16440        len = vsnprintf(buf, 0, format, ap);
16441        va_end(ap);
16442        if (len != 5) exit(1);
16443
16444        va_start(ap, format);
16445        len = vsnprintf(0, 0, format, ap);
16446        va_end(ap);
16447        if (len != 5) exit(1);
16448
16449        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
16450
16451        exit(0);
16452 }
16453 main() { foo("hello"); }
16454
16455 _ACEOF
16456 rm -f conftest$ac_exeext
16457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16458   (eval $ac_link) 2>&5
16459   ac_status=$?
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463   (eval $ac_try) 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; }; then
16467   samba_cv_HAVE_C99_VSNPRINTF=yes
16468 else
16469   echo "$as_me: program exited with status $ac_status" >&5
16470 echo "$as_me: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 ( exit $ac_status )
16473 samba_cv_HAVE_C99_VSNPRINTF=no
16474 fi
16475 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16476 fi
16477 fi
16478 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
16479 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
16480 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
16481
16482 cat >>confdefs.h <<\_ACEOF
16483 #define HAVE_C99_VSNPRINTF 1
16484 _ACEOF
16485
16486 fi
16487
16488 echo "$as_me:$LINENO: checking for broken readdir" >&5
16489 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
16490 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
16491   echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493
16494 if test "$cross_compiling" = yes; then
16495   samba_cv_HAVE_BROKEN_READDIR=cross
16496 else
16497   cat >conftest.$ac_ext <<_ACEOF
16498 #line $LINENO "configure"
16499 #include "confdefs.h"
16500 #include <sys/types.h>
16501 #include <dirent.h>
16502 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
16503 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
16504 di->d_name[0] == 0) exit(0); exit(1);}
16505 _ACEOF
16506 rm -f conftest$ac_exeext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508   (eval $ac_link) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513   (eval $ac_try) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; }; then
16517   samba_cv_HAVE_BROKEN_READDIR=yes
16518 else
16519   echo "$as_me: program exited with status $ac_status" >&5
16520 echo "$as_me: failed program was:" >&5
16521 cat conftest.$ac_ext >&5
16522 ( exit $ac_status )
16523 samba_cv_HAVE_BROKEN_READDIR=no
16524 fi
16525 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16526 fi
16527 fi
16528 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
16529 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
16530 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
16531
16532 cat >>confdefs.h <<\_ACEOF
16533 #define HAVE_BROKEN_READDIR 1
16534 _ACEOF
16535
16536 fi
16537
16538 echo "$as_me:$LINENO: checking for utimbuf" >&5
16539 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
16540 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
16541   echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543
16544 cat >conftest.$ac_ext <<_ACEOF
16545 #line $LINENO "configure"
16546 #include "confdefs.h"
16547 #include <sys/types.h>
16548 #include <utime.h>
16549 int
16550 main ()
16551 {
16552 struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
16553   ;
16554   return 0;
16555 }
16556 _ACEOF
16557 rm -f conftest.$ac_objext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16559   (eval $ac_compile) 2>&5
16560   ac_status=$?
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } &&
16563          { ac_try='test -s conftest.$ac_objext'
16564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565   (eval $ac_try) 2>&5
16566   ac_status=$?
16567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); }; }; then
16569   samba_cv_HAVE_UTIMBUF=yes
16570 else
16571   echo "$as_me: failed program was:" >&5
16572 cat conftest.$ac_ext >&5
16573 samba_cv_HAVE_UTIMBUF=no
16574 fi
16575 rm -f conftest.$ac_objext conftest.$ac_ext
16576 fi
16577 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
16578 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
16579 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
16580
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE_UTIMBUF 1
16583 _ACEOF
16584
16585 fi
16586
16587
16588
16589
16590
16591
16592
16593 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
16594 do
16595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16596 echo "$as_me:$LINENO: checking for $ac_func" >&5
16597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16598 if eval "test \"\${$as_ac_var+set}\" = set"; then
16599   echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601   cat >conftest.$ac_ext <<_ACEOF
16602 #line $LINENO "configure"
16603 #include "confdefs.h"
16604 /* System header to define __stub macros and hopefully few prototypes,
16605     which can conflict with char $ac_func (); below.  */
16606 #include <assert.h>
16607 /* Override any gcc2 internal prototype to avoid an error.  */
16608 #ifdef __cplusplus
16609 extern "C"
16610 #endif
16611 /* We use char because int might match the return type of a gcc2
16612    builtin and then its argument prototype would still apply.  */
16613 char $ac_func ();
16614 char (*f) ();
16615
16616 int
16617 main ()
16618 {
16619 /* The GNU C library defines this for functions which it implements
16620     to always fail with ENOSYS.  Some functions are actually named
16621     something starting with __ and the normal name is an alias.  */
16622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16623 choke me
16624 #else
16625 f = $ac_func;
16626 #endif
16627
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634   (eval $ac_link) 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); } &&
16638          { ac_try='test -s conftest$ac_exeext'
16639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640   (eval $ac_try) 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; }; then
16644   eval "$as_ac_var=yes"
16645 else
16646   echo "$as_me: failed program was:" >&5
16647 cat conftest.$ac_ext >&5
16648 eval "$as_ac_var=no"
16649 fi
16650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16651 fi
16652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16654 if test `eval echo '${'$as_ac_var'}'` = yes; then
16655   cat >>confdefs.h <<_ACEOF
16656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16657 _ACEOF
16658
16659 fi
16660 done
16661
16662
16663 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
16664 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
16665 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
16666   echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668
16669 cat >conftest.$ac_ext <<_ACEOF
16670 #line $LINENO "configure"
16671 #include "confdefs.h"
16672 #include <sys/types.h>
16673 #include <utmp.h>
16674 int
16675 main ()
16676 {
16677 struct utmp ut;  ut.ut_name[0] = 'a';
16678   ;
16679   return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest.$ac_objext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16684   (eval $ac_compile) 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); } &&
16688          { ac_try='test -s conftest.$ac_objext'
16689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690   (eval $ac_try) 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }; }; then
16694   samba_cv_HAVE_UT_UT_NAME=yes
16695 else
16696   echo "$as_me: failed program was:" >&5
16697 cat conftest.$ac_ext >&5
16698 samba_cv_HAVE_UT_UT_NAME=no
16699 fi
16700 rm -f conftest.$ac_objext conftest.$ac_ext
16701 fi
16702 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
16703 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
16704 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
16705
16706 cat >>confdefs.h <<\_ACEOF
16707 #define HAVE_UT_UT_NAME 1
16708 _ACEOF
16709
16710 fi
16711
16712 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
16713 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
16714 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
16715   echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717
16718 cat >conftest.$ac_ext <<_ACEOF
16719 #line $LINENO "configure"
16720 #include "confdefs.h"
16721 #include <sys/types.h>
16722 #include <utmp.h>
16723 int
16724 main ()
16725 {
16726 struct utmp ut;  ut.ut_user[0] = 'a';
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16733   (eval $ac_compile) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); } &&
16737          { ac_try='test -s conftest.$ac_objext'
16738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739   (eval $ac_try) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; }; then
16743   samba_cv_HAVE_UT_UT_USER=yes
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 cat conftest.$ac_ext >&5
16747 samba_cv_HAVE_UT_UT_USER=no
16748 fi
16749 rm -f conftest.$ac_objext conftest.$ac_ext
16750 fi
16751 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
16752 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
16753 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
16754
16755 cat >>confdefs.h <<\_ACEOF
16756 #define HAVE_UT_UT_USER 1
16757 _ACEOF
16758
16759 fi
16760
16761 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
16762 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
16763 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
16764   echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766
16767 cat >conftest.$ac_ext <<_ACEOF
16768 #line $LINENO "configure"
16769 #include "confdefs.h"
16770 #include <sys/types.h>
16771 #include <utmp.h>
16772 int
16773 main ()
16774 {
16775 struct utmp ut;  ut.ut_id[0] = 'a';
16776   ;
16777   return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782   (eval $ac_compile) 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } &&
16786          { ac_try='test -s conftest.$ac_objext'
16787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788   (eval $ac_try) 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792   samba_cv_HAVE_UT_UT_ID=yes
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 cat conftest.$ac_ext >&5
16796 samba_cv_HAVE_UT_UT_ID=no
16797 fi
16798 rm -f conftest.$ac_objext conftest.$ac_ext
16799 fi
16800 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
16801 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
16802 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
16803
16804 cat >>confdefs.h <<\_ACEOF
16805 #define HAVE_UT_UT_ID 1
16806 _ACEOF
16807
16808 fi
16809
16810 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
16811 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
16812 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
16813   echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16815
16816 cat >conftest.$ac_ext <<_ACEOF
16817 #line $LINENO "configure"
16818 #include "confdefs.h"
16819 #include <sys/types.h>
16820 #include <utmp.h>
16821 int
16822 main ()
16823 {
16824 struct utmp ut;  ut.ut_host[0] = 'a';
16825   ;
16826   return 0;
16827 }
16828 _ACEOF
16829 rm -f conftest.$ac_objext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831   (eval $ac_compile) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } &&
16835          { ac_try='test -s conftest.$ac_objext'
16836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837   (eval $ac_try) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   samba_cv_HAVE_UT_UT_HOST=yes
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 samba_cv_HAVE_UT_UT_HOST=no
16846 fi
16847 rm -f conftest.$ac_objext conftest.$ac_ext
16848 fi
16849 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
16850 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
16851 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
16852
16853 cat >>confdefs.h <<\_ACEOF
16854 #define HAVE_UT_UT_HOST 1
16855 _ACEOF
16856
16857 fi
16858
16859 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
16860 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
16861 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864
16865 cat >conftest.$ac_ext <<_ACEOF
16866 #line $LINENO "configure"
16867 #include "confdefs.h"
16868 #include <sys/types.h>
16869 #include <utmp.h>
16870 int
16871 main ()
16872 {
16873 struct utmp ut;  time_t t; ut.ut_time = t;
16874   ;
16875   return 0;
16876 }
16877 _ACEOF
16878 rm -f conftest.$ac_objext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880   (eval $ac_compile) 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } &&
16884          { ac_try='test -s conftest.$ac_objext'
16885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886   (eval $ac_try) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; }; then
16890   samba_cv_HAVE_UT_UT_TIME=yes
16891 else
16892   echo "$as_me: failed program was:" >&5
16893 cat conftest.$ac_ext >&5
16894 samba_cv_HAVE_UT_UT_TIME=no
16895 fi
16896 rm -f conftest.$ac_objext conftest.$ac_ext
16897 fi
16898 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
16899 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
16900 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
16901
16902 cat >>confdefs.h <<\_ACEOF
16903 #define HAVE_UT_UT_TIME 1
16904 _ACEOF
16905
16906 fi
16907
16908 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
16909 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
16910 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913
16914 cat >conftest.$ac_ext <<_ACEOF
16915 #line $LINENO "configure"
16916 #include "confdefs.h"
16917 #include <sys/types.h>
16918 #include <utmp.h>
16919 int
16920 main ()
16921 {
16922 struct utmp ut;  struct timeval tv; ut.ut_tv = tv;
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929   (eval $ac_compile) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); } &&
16933          { ac_try='test -s conftest.$ac_objext'
16934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935   (eval $ac_try) 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; }; then
16939   samba_cv_HAVE_UT_UT_TV=yes
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16943 samba_cv_HAVE_UT_UT_TV=no
16944 fi
16945 rm -f conftest.$ac_objext conftest.$ac_ext
16946 fi
16947 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
16948 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
16949 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
16950
16951 cat >>confdefs.h <<\_ACEOF
16952 #define HAVE_UT_UT_TV 1
16953 _ACEOF
16954
16955 fi
16956
16957 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
16958 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
16959 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
16960   echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16962
16963 cat >conftest.$ac_ext <<_ACEOF
16964 #line $LINENO "configure"
16965 #include "confdefs.h"
16966 #include <sys/types.h>
16967 #include <utmp.h>
16968 int
16969 main ()
16970 {
16971 struct utmp ut;  ut.ut_type = 0;
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16978   (eval $ac_compile) 2>&5
16979   ac_status=$?
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } &&
16982          { ac_try='test -s conftest.$ac_objext'
16983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984   (eval $ac_try) 2>&5
16985   ac_status=$?
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); }; }; then
16988   samba_cv_HAVE_UT_UT_TYPE=yes
16989 else
16990   echo "$as_me: failed program was:" >&5
16991 cat conftest.$ac_ext >&5
16992 samba_cv_HAVE_UT_UT_TYPE=no
16993 fi
16994 rm -f conftest.$ac_objext conftest.$ac_ext
16995 fi
16996 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
16997 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
16998 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
16999
17000 cat >>confdefs.h <<\_ACEOF
17001 #define HAVE_UT_UT_TYPE 1
17002 _ACEOF
17003
17004 fi
17005
17006 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
17007 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
17008 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
17009   echo $ECHO_N "(cached) $ECHO_C" >&6
17010 else
17011
17012 cat >conftest.$ac_ext <<_ACEOF
17013 #line $LINENO "configure"
17014 #include "confdefs.h"
17015 #include <sys/types.h>
17016 #include <utmp.h>
17017 int
17018 main ()
17019 {
17020 struct utmp ut;  ut.ut_pid = 0;
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 rm -f conftest.$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027   (eval $ac_compile) 2>&5
17028   ac_status=$?
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); } &&
17031          { ac_try='test -s conftest.$ac_objext'
17032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033   (eval $ac_try) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; }; then
17037   samba_cv_HAVE_UT_UT_PID=yes
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 cat conftest.$ac_ext >&5
17041 samba_cv_HAVE_UT_UT_PID=no
17042 fi
17043 rm -f conftest.$ac_objext conftest.$ac_ext
17044 fi
17045 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
17046 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
17047 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
17048
17049 cat >>confdefs.h <<\_ACEOF
17050 #define HAVE_UT_UT_PID 1
17051 _ACEOF
17052
17053 fi
17054
17055 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
17056 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
17057 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17063 #include "confdefs.h"
17064 #include <sys/types.h>
17065 #include <utmp.h>
17066 int
17067 main ()
17068 {
17069 struct utmp ut;  ut.ut_exit.e_exit = 0;
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 rm -f conftest.$ac_objext
17075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17076   (eval $ac_compile) 2>&5
17077   ac_status=$?
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } &&
17080          { ac_try='test -s conftest.$ac_objext'
17081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082   (eval $ac_try) 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); }; }; then
17086   samba_cv_HAVE_UT_UT_EXIT=yes
17087 else
17088   echo "$as_me: failed program was:" >&5
17089 cat conftest.$ac_ext >&5
17090 samba_cv_HAVE_UT_UT_EXIT=no
17091 fi
17092 rm -f conftest.$ac_objext conftest.$ac_ext
17093 fi
17094 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
17095 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
17096 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
17097
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_UT_UT_EXIT 1
17100 _ACEOF
17101
17102 fi
17103
17104 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
17105 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
17106 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
17107   echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109
17110 cat >conftest.$ac_ext <<_ACEOF
17111 #line $LINENO "configure"
17112 #include "confdefs.h"
17113 #include <sys/types.h>
17114 #include <utmp.h>
17115 int
17116 main ()
17117 {
17118 struct utmp ut;  ut.ut_addr = 0;
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125   (eval $ac_compile) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); } &&
17129          { ac_try='test -s conftest.$ac_objext'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135   samba_cv_HAVE_UT_UT_ADDR=yes
17136 else
17137   echo "$as_me: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 samba_cv_HAVE_UT_UT_ADDR=no
17140 fi
17141 rm -f conftest.$ac_objext conftest.$ac_ext
17142 fi
17143 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
17144 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
17145 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
17146
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_UT_UT_ADDR 1
17149 _ACEOF
17150
17151 fi
17152
17153 if test x$ac_cv_func_pututline = xyes ; then
17154   echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
17155 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
17156 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159
17160   cat >conftest.$ac_ext <<_ACEOF
17161 #line $LINENO "configure"
17162 #include "confdefs.h"
17163 #include <sys/types.h>
17164 #include <utmp.h>
17165 int
17166 main ()
17167 {
17168 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17175   (eval $ac_compile) 2>&5
17176   ac_status=$?
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); } &&
17179          { ac_try='test -s conftest.$ac_objext'
17180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181   (eval $ac_try) 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; }; then
17185   samba_cv_PUTUTLINE_RETURNS_UTMP=yes
17186 else
17187   echo "$as_me: failed program was:" >&5
17188 cat conftest.$ac_ext >&5
17189 samba_cv_PUTUTLINE_RETURNS_UTMP=no
17190 fi
17191 rm -f conftest.$ac_objext conftest.$ac_ext
17192 fi
17193 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
17194 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
17195   if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
17196
17197 cat >>confdefs.h <<\_ACEOF
17198 #define PUTUTLINE_RETURNS_UTMP 1
17199 _ACEOF
17200
17201   fi
17202 fi
17203
17204 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
17205 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
17206 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209
17210 cat >conftest.$ac_ext <<_ACEOF
17211 #line $LINENO "configure"
17212 #include "confdefs.h"
17213 #include <sys/types.h>
17214 #include <utmpx.h>
17215 int
17216 main ()
17217 {
17218 struct utmpx ux;  ux.ut_syslen = 0;
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest.$ac_objext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225   (eval $ac_compile) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -s conftest.$ac_objext'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; }; then
17235   samba_cv_HAVE_UX_UT_SYSLEN=yes
17236 else
17237   echo "$as_me: failed program was:" >&5
17238 cat conftest.$ac_ext >&5
17239 samba_cv_HAVE_UX_UT_SYSLEN=no
17240 fi
17241 rm -f conftest.$ac_objext conftest.$ac_ext
17242 fi
17243 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
17244 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
17245 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
17246
17247 cat >>confdefs.h <<\_ACEOF
17248 #define HAVE_UX_UT_SYSLEN 1
17249 _ACEOF
17250
17251 fi
17252
17253
17254 #################################################
17255 # check for libiconv support
17256 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
17257 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
17258
17259 # Check whether --with-libiconv or --without-libiconv was given.
17260 if test "${with_libiconv+set}" = set; then
17261   withval="$with_libiconv"
17262    case "$withval" in
17263   no)
17264     echo "$as_me:$LINENO: result: no" >&5
17265 echo "${ECHO_T}no" >&6
17266     ;;
17267   *)
17268     echo "$as_me:$LINENO: result: yes" >&5
17269 echo "${ECHO_T}yes" >&6
17270     CFLAGS="$CFLAGS -I$withval/include"
17271     LDFLAGS="$LDFLAGS -L$withval/lib"
17272
17273 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
17274 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
17275 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
17276   echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278   ac_check_lib_save_LIBS=$LIBS
17279 LIBS="-liconv  $LIBS"
17280 cat >conftest.$ac_ext <<_ACEOF
17281 #line $LINENO "configure"
17282 #include "confdefs.h"
17283
17284 /* Override any gcc2 internal prototype to avoid an error.  */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 /* We use char because int might match the return type of a gcc2
17289    builtin and then its argument prototype would still apply.  */
17290 char iconv_open ();
17291 int
17292 main ()
17293 {
17294 iconv_open ();
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301   (eval $ac_link) 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } &&
17305          { ac_try='test -s conftest$ac_exeext'
17306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307   (eval $ac_try) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; }; then
17311   ac_cv_lib_iconv_iconv_open=yes
17312 else
17313   echo "$as_me: failed program was:" >&5
17314 cat conftest.$ac_ext >&5
17315 ac_cv_lib_iconv_iconv_open=no
17316 fi
17317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17318 LIBS=$ac_check_lib_save_LIBS
17319 fi
17320 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
17321 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
17322 if test $ac_cv_lib_iconv_iconv_open = yes; then
17323   cat >>confdefs.h <<_ACEOF
17324 #define HAVE_LIBICONV 1
17325 _ACEOF
17326
17327   LIBS="-liconv $LIBS"
17328
17329 fi
17330
17331
17332 cat >>confdefs.h <<_ACEOF
17333 #define WITH_LIBICONV "${withval}"
17334 _ACEOF
17335
17336     ;;
17337   esac
17338 else
17339   echo "$as_me:$LINENO: result: no" >&5
17340 echo "${ECHO_T}no" >&6
17341
17342 fi;
17343
17344
17345 ############
17346 # check for iconv in libc
17347 echo "$as_me:$LINENO: checking for working iconv" >&5
17348 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
17349 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352
17353 if test "$cross_compiling" = yes; then
17354   samba_cv_HAVE_NATIVE_ICONV=cross
17355 else
17356   cat >conftest.$ac_ext <<_ACEOF
17357 #line $LINENO "configure"
17358 #include "confdefs.h"
17359
17360 #include <iconv.h>
17361 main() {
17362        iconv_t cd = iconv_open("ASCII", "UCS-2LE");
17363        if (cd == 0 || cd == (iconv_t)-1) return -1;
17364        return 0;
17365 }
17366
17367 _ACEOF
17368 rm -f conftest$ac_exeext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17370   (eval $ac_link) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375   (eval $ac_try) 2>&5
17376   ac_status=$?
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); }; }; then
17379   samba_cv_HAVE_NATIVE_ICONV=yes
17380 else
17381   echo "$as_me: program exited with status $ac_status" >&5
17382 echo "$as_me: failed program was:" >&5
17383 cat conftest.$ac_ext >&5
17384 ( exit $ac_status )
17385 samba_cv_HAVE_NATIVE_ICONV=no
17386 fi
17387 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17388 fi
17389 fi
17390 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
17391 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
17392 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
17393
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_NATIVE_ICONV 1
17396 _ACEOF
17397
17398 fi
17399
17400
17401 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
17402 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
17403 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
17404   echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406
17407 if test "$cross_compiling" = yes; then
17408   samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
17409 else
17410   cat >conftest.$ac_ext <<_ACEOF
17411 #line $LINENO "configure"
17412 #include "confdefs.h"
17413
17414 #include <sys/types.h>
17415 #include <fcntl.h>
17416 #ifndef F_GETLEASE
17417 #define F_GETLEASE      1025
17418 #endif
17419 main() {
17420        int fd = open("/dev/null", O_RDONLY);
17421        return fcntl(fd, F_GETLEASE, 0) == -1;
17422 }
17423
17424 _ACEOF
17425 rm -f conftest$ac_exeext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427   (eval $ac_link) 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432   (eval $ac_try) 2>&5
17433   ac_status=$?
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); }; }; then
17436   samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
17437 else
17438   echo "$as_me: program exited with status $ac_status" >&5
17439 echo "$as_me: failed program was:" >&5
17440 cat conftest.$ac_ext >&5
17441 ( exit $ac_status )
17442 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
17443 fi
17444 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17445 fi
17446 fi
17447 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
17448 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
17449 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
17450
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_KERNEL_OPLOCKS_LINUX 1
17453 _ACEOF
17454
17455 fi
17456
17457 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
17458 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
17459 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
17460   echo $ECHO_N "(cached) $ECHO_C" >&6
17461 else
17462
17463 if test "$cross_compiling" = yes; then
17464   samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
17465 else
17466   cat >conftest.$ac_ext <<_ACEOF
17467 #line $LINENO "configure"
17468 #include "confdefs.h"
17469
17470 #include <sys/types.h>
17471 #include <fcntl.h>
17472 #include <signal.h>
17473 #ifndef F_NOTIFY
17474 #define F_NOTIFY 1026
17475 #endif
17476 main() {
17477         exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ?  1 : 0);
17478 }
17479
17480 _ACEOF
17481 rm -f conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483   (eval $ac_link) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488   (eval $ac_try) 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; }; then
17492   samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
17493 else
17494   echo "$as_me: program exited with status $ac_status" >&5
17495 echo "$as_me: failed program was:" >&5
17496 cat conftest.$ac_ext >&5
17497 ( exit $ac_status )
17498 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
17499 fi
17500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17501 fi
17502 fi
17503 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
17504 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
17505 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
17506
17507 cat >>confdefs.h <<\_ACEOF
17508 #define HAVE_KERNEL_CHANGE_NOTIFY 1
17509 _ACEOF
17510
17511 fi
17512
17513 echo "$as_me:$LINENO: checking for kernel share modes" >&5
17514 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
17515 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
17516   echo $ECHO_N "(cached) $ECHO_C" >&6
17517 else
17518
17519 if test "$cross_compiling" = yes; then
17520   samba_cv_HAVE_KERNEL_SHARE_MODES=cross
17521 else
17522   cat >conftest.$ac_ext <<_ACEOF
17523 #line $LINENO "configure"
17524 #include "confdefs.h"
17525
17526 #include <sys/types.h>
17527 #include <fcntl.h>
17528 #include <signal.h>
17529 #include <sys/file.h>
17530 #ifndef LOCK_MAND
17531 #define LOCK_MAND       32
17532 #define LOCK_READ       64
17533 #endif
17534 main() {
17535         exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
17536 }
17537
17538 _ACEOF
17539 rm -f conftest$ac_exeext
17540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17541   (eval $ac_link) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546   (eval $ac_try) 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; }; then
17550   samba_cv_HAVE_KERNEL_SHARE_MODES=yes
17551 else
17552   echo "$as_me: program exited with status $ac_status" >&5
17553 echo "$as_me: failed program was:" >&5
17554 cat conftest.$ac_ext >&5
17555 ( exit $ac_status )
17556 samba_cv_HAVE_KERNEL_SHARE_MODES=no
17557 fi
17558 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17559 fi
17560 fi
17561 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
17562 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
17563 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
17564
17565 cat >>confdefs.h <<\_ACEOF
17566 #define HAVE_KERNEL_SHARE_MODES 1
17567 _ACEOF
17568
17569 fi
17570
17571
17572
17573
17574 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
17575 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
17576 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
17577   echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579
17580 cat >conftest.$ac_ext <<_ACEOF
17581 #line $LINENO "configure"
17582 #include "confdefs.h"
17583 #include <sys/types.h>
17584 #include <fcntl.h>
17585 int
17586 main ()
17587 {
17588 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595   (eval $ac_compile) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); } &&
17599          { ac_try='test -s conftest.$ac_objext'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; }; then
17605   samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 cat conftest.$ac_ext >&5
17609 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
17610 fi
17611 rm -f conftest.$ac_objext conftest.$ac_ext
17612 fi
17613 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
17614 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
17615 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
17616
17617 cat >>confdefs.h <<\_ACEOF
17618 #define HAVE_KERNEL_OPLOCKS_IRIX 1
17619 _ACEOF
17620
17621 fi
17622
17623 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
17624 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
17625 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
17626   echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628
17629 if test "$cross_compiling" = yes; then
17630   samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
17631 else
17632   cat >conftest.$ac_ext <<_ACEOF
17633 #line $LINENO "configure"
17634 #include "confdefs.h"
17635 #include <sys/types.h>
17636 #include <sys/capability.h>
17637 main() {
17638  cap_t cap;
17639  if ((cap = cap_get_proc()) == NULL)
17640    exit(1);
17641  cap->cap_effective |= CAP_NETWORK_MGT;
17642  cap->cap_inheritable |= CAP_NETWORK_MGT;
17643  cap_set_proc(cap);
17644  exit(0);
17645 }
17646
17647 _ACEOF
17648 rm -f conftest$ac_exeext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17650   (eval $ac_link) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; }; then
17659   samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
17660 else
17661   echo "$as_me: program exited with status $ac_status" >&5
17662 echo "$as_me: failed program was:" >&5
17663 cat conftest.$ac_ext >&5
17664 ( exit $ac_status )
17665 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
17666 fi
17667 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17668 fi
17669 fi
17670 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
17671 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
17672 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
17673
17674 cat >>confdefs.h <<\_ACEOF
17675 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
17676 _ACEOF
17677
17678 fi
17679
17680 #
17681 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
17682 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
17683 #
17684
17685 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
17686 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
17687 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690
17691 cat >conftest.$ac_ext <<_ACEOF
17692 #line $LINENO "configure"
17693 #include "confdefs.h"
17694 #include <sys/types.h>
17695 #if defined(HAVE_RPC_RPC_H)
17696 #include <rpc/rpc.h>
17697 #endif
17698 int
17699 main ()
17700 {
17701 int16 testvar;
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708   (eval $ac_compile) 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } &&
17712          { ac_try='test -s conftest.$ac_objext'
17713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714   (eval $ac_try) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); }; }; then
17718   samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
17719 else
17720   echo "$as_me: failed program was:" >&5
17721 cat conftest.$ac_ext >&5
17722 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
17723 fi
17724 rm -f conftest.$ac_objext conftest.$ac_ext
17725 fi
17726 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
17727 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
17728 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
17729
17730 cat >>confdefs.h <<\_ACEOF
17731 #define HAVE_INT16_FROM_RPC_RPC_H 1
17732 _ACEOF
17733
17734 fi
17735
17736 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
17737 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
17738 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
17739   echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741
17742 cat >conftest.$ac_ext <<_ACEOF
17743 #line $LINENO "configure"
17744 #include "confdefs.h"
17745 #include <sys/types.h>
17746 #if defined(HAVE_RPC_RPC_H)
17747 #include <rpc/rpc.h>
17748 #endif
17749 int
17750 main ()
17751 {
17752 uint16 testvar;
17753   ;
17754   return 0;
17755 }
17756 _ACEOF
17757 rm -f conftest.$ac_objext
17758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17759   (eval $ac_compile) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -s conftest.$ac_objext'
17764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765   (eval $ac_try) 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; }; then
17769   samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
17770 else
17771   echo "$as_me: failed program was:" >&5
17772 cat conftest.$ac_ext >&5
17773 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
17774 fi
17775 rm -f conftest.$ac_objext conftest.$ac_ext
17776 fi
17777 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
17778 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
17779 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
17780
17781 cat >>confdefs.h <<\_ACEOF
17782 #define HAVE_UINT16_FROM_RPC_RPC_H 1
17783 _ACEOF
17784
17785 fi
17786
17787 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
17788 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
17789 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
17790   echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792
17793 cat >conftest.$ac_ext <<_ACEOF
17794 #line $LINENO "configure"
17795 #include "confdefs.h"
17796 #include <sys/types.h>
17797 #if defined(HAVE_RPC_RPC_H)
17798 #include <rpc/rpc.h>
17799 #endif
17800 int
17801 main ()
17802 {
17803 int32 testvar;
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17810   (eval $ac_compile) 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); } &&
17814          { ac_try='test -s conftest.$ac_objext'
17815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816   (eval $ac_try) 2>&5
17817   ac_status=$?
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); }; }; then
17820   samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
17821 else
17822   echo "$as_me: failed program was:" >&5
17823 cat conftest.$ac_ext >&5
17824 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
17825 fi
17826 rm -f conftest.$ac_objext conftest.$ac_ext
17827 fi
17828 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
17829 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
17830 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
17831
17832 cat >>confdefs.h <<\_ACEOF
17833 #define HAVE_INT32_FROM_RPC_RPC_H 1
17834 _ACEOF
17835
17836 fi
17837
17838 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
17839 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
17840 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843
17844 cat >conftest.$ac_ext <<_ACEOF
17845 #line $LINENO "configure"
17846 #include "confdefs.h"
17847 #include <sys/types.h>
17848 #if defined(HAVE_RPC_RPC_H)
17849 #include <rpc/rpc.h>
17850 #endif
17851 int
17852 main ()
17853 {
17854 uint32 testvar;
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861   (eval $ac_compile) 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); } &&
17865          { ac_try='test -s conftest.$ac_objext'
17866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867   (eval $ac_try) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; }; then
17871   samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 cat conftest.$ac_ext >&5
17875 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
17876 fi
17877 rm -f conftest.$ac_objext conftest.$ac_ext
17878 fi
17879 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
17880 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
17881 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
17882
17883 cat >>confdefs.h <<\_ACEOF
17884 #define HAVE_UINT32_FROM_RPC_RPC_H 1
17885 _ACEOF
17886
17887 fi
17888
17889
17890 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
17891 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
17892 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
17893   echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895
17896 cat >conftest.$ac_ext <<_ACEOF
17897 #line $LINENO "configure"
17898 #include "confdefs.h"
17899 #include <sys/types.h>
17900 #ifdef HAVE_SYS_SECURITY_H
17901 #include <sys/security.h>
17902 #include <prot.h>
17903 #endif  /* HAVE_SYS_SECURITY_H */
17904 #if defined(HAVE_RPC_RPC_H)
17905 #include <rpc/rpc.h>
17906 #endif
17907 int
17908 main ()
17909 {
17910 int testvar;
17911   ;
17912   return 0;
17913 }
17914 _ACEOF
17915 rm -f conftest.$ac_objext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17917   (eval $ac_compile) 2>&5
17918   ac_status=$?
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); } &&
17921          { ac_try='test -s conftest.$ac_objext'
17922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923   (eval $ac_try) 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 cat conftest.$ac_ext >&5
17931 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
17932 fi
17933 rm -f conftest.$ac_objext conftest.$ac_ext
17934 fi
17935 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
17936 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
17937 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
17938
17939 cat >>confdefs.h <<\_ACEOF
17940 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
17941 _ACEOF
17942
17943 fi
17944
17945 echo "$as_me:$LINENO: checking for test routines" >&5
17946 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
17947 if test "$cross_compiling" = yes; then
17948   { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
17949 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
17950 else
17951   cat >conftest.$ac_ext <<_ACEOF
17952 #line $LINENO "configure"
17953 #include "confdefs.h"
17954 #include "${srcdir-.}/tests/trivial.c"
17955 _ACEOF
17956 rm -f conftest$ac_exeext
17957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17958   (eval $ac_link) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963   (eval $ac_try) 2>&5
17964   ac_status=$?
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); }; }; then
17967   echo "$as_me:$LINENO: result: yes" >&5
17968 echo "${ECHO_T}yes" >&6
17969 else
17970   echo "$as_me: program exited with status $ac_status" >&5
17971 echo "$as_me: failed program was:" >&5
17972 cat conftest.$ac_ext >&5
17973 ( exit $ac_status )
17974 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
17975 echo "$as_me: error: cant find test code. Aborting config" >&2;}
17976    { (exit 1); exit 1; }; }
17977 fi
17978 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17979 fi
17980
17981 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
17982 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
17983 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
17984   echo $ECHO_N "(cached) $ECHO_C" >&6
17985 else
17986
17987 if test "$cross_compiling" = yes; then
17988   samba_cv_HAVE_FTRUNCATE_EXTEND=cross
17989 else
17990   cat >conftest.$ac_ext <<_ACEOF
17991 #line $LINENO "configure"
17992 #include "confdefs.h"
17993 #include "${srcdir-.}/tests/ftruncate.c"
17994 _ACEOF
17995 rm -f conftest$ac_exeext
17996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17997   (eval $ac_link) 2>&5
17998   ac_status=$?
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002   (eval $ac_try) 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); }; }; then
18006   samba_cv_HAVE_FTRUNCATE_EXTEND=yes
18007 else
18008   echo "$as_me: program exited with status $ac_status" >&5
18009 echo "$as_me: failed program was:" >&5
18010 cat conftest.$ac_ext >&5
18011 ( exit $ac_status )
18012 samba_cv_HAVE_FTRUNCATE_EXTEND=no
18013 fi
18014 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18015 fi
18016 fi
18017 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
18018 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
18019 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
18020
18021 cat >>confdefs.h <<\_ACEOF
18022 #define HAVE_FTRUNCATE_EXTEND 1
18023 _ACEOF
18024
18025 fi
18026
18027 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
18028 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
18029 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
18030   echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032
18033 if test "$cross_compiling" = yes; then
18034   samba_cv_HAVE_WORKING_AF_LOCAL=cross
18035 else
18036   cat >conftest.$ac_ext <<_ACEOF
18037 #line $LINENO "configure"
18038 #include "confdefs.h"
18039 #include "${srcdir-.}/tests/unixsock.c"
18040 _ACEOF
18041 rm -f conftest$ac_exeext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18043   (eval $ac_link) 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048   (eval $ac_try) 2>&5
18049   ac_status=$?
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); }; }; then
18052   samba_cv_HAVE_WORKING_AF_LOCAL=yes
18053 else
18054   echo "$as_me: program exited with status $ac_status" >&5
18055 echo "$as_me: failed program was:" >&5
18056 cat conftest.$ac_ext >&5
18057 ( exit $ac_status )
18058 samba_cv_HAVE_WORKING_AF_LOCAL=no
18059 fi
18060 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18061 fi
18062 fi
18063 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
18064 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
18065 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
18066 then
18067
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE_WORKING_AF_LOCAL 1
18070 _ACEOF
18071
18072 fi
18073
18074 echo "$as_me:$LINENO: checking for broken getgroups" >&5
18075 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
18076 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079
18080 if test "$cross_compiling" = yes; then
18081   samba_cv_HAVE_BROKEN_GETGROUPS=cross
18082 else
18083   cat >conftest.$ac_ext <<_ACEOF
18084 #line $LINENO "configure"
18085 #include "confdefs.h"
18086 #include "${srcdir-.}/tests/getgroups.c"
18087 _ACEOF
18088 rm -f conftest$ac_exeext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18090   (eval $ac_link) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095   (eval $ac_try) 2>&5
18096   ac_status=$?
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); }; }; then
18099   samba_cv_HAVE_BROKEN_GETGROUPS=yes
18100 else
18101   echo "$as_me: program exited with status $ac_status" >&5
18102 echo "$as_me: failed program was:" >&5
18103 cat conftest.$ac_ext >&5
18104 ( exit $ac_status )
18105 samba_cv_HAVE_BROKEN_GETGROUPS=no
18106 fi
18107 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18108 fi
18109 fi
18110 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
18111 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
18112 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
18113
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_BROKEN_GETGROUPS 1
18116 _ACEOF
18117
18118 fi
18119
18120 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
18121 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
18122 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125
18126 SAVE_CPPFLAGS="$CPPFLAGS"
18127 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper"
18128 cat >conftest.$ac_ext <<_ACEOF
18129 #line $LINENO "configure"
18130 #include "confdefs.h"
18131
18132 #define REPLACE_GETPASS 1
18133 #define NO_CONFIG_H 1
18134 #define main dont_declare_main
18135 #include "${srcdir-.}/lib/getsmbpass.c"
18136 #undef main
18137
18138 int
18139 main ()
18140 {
18141
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18148   (eval $ac_compile) 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } &&
18152          { ac_try='test -s conftest.$ac_objext'
18153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154   (eval $ac_try) 2>&5
18155   ac_status=$?
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); }; }; then
18158   samba_cv_REPLACE_GETPASS=yes
18159 else
18160   echo "$as_me: failed program was:" >&5
18161 cat conftest.$ac_ext >&5
18162 samba_cv_REPLACE_GETPASS=no
18163 fi
18164 rm -f conftest.$ac_objext conftest.$ac_ext
18165 CPPFLAGS="$SAVE_CPPFLAGS"
18166
18167 fi
18168 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
18169 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
18170 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
18171
18172 cat >>confdefs.h <<\_ACEOF
18173 #define REPLACE_GETPASS 1
18174 _ACEOF
18175
18176 fi
18177
18178 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
18179 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
18180 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
18181   echo $ECHO_N "(cached) $ECHO_C" >&6
18182 else
18183
18184 if test "$cross_compiling" = yes; then
18185   samba_cv_REPLACE_INET_NTOA=cross
18186 else
18187   cat >conftest.$ac_ext <<_ACEOF
18188 #line $LINENO "configure"
18189 #include "confdefs.h"
18190
18191 #include <stdio.h>
18192 #include <sys/types.h>
18193 #include <netinet/in.h>
18194 #ifdef HAVE_ARPA_INET_H
18195 #include <arpa/inet.h>
18196 #endif
18197 main() { struct in_addr ip; ip.s_addr = 0x12345678;
18198 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
18199     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
18200 exit(1);}
18201 _ACEOF
18202 rm -f conftest$ac_exeext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204   (eval $ac_link) 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209   (eval $ac_try) 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }; }; then
18213   samba_cv_REPLACE_INET_NTOA=yes
18214 else
18215   echo "$as_me: program exited with status $ac_status" >&5
18216 echo "$as_me: failed program was:" >&5
18217 cat conftest.$ac_ext >&5
18218 ( exit $ac_status )
18219 samba_cv_REPLACE_INET_NTOA=no
18220 fi
18221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18222 fi
18223 fi
18224 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
18225 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
18226 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
18227
18228 cat >>confdefs.h <<\_ACEOF
18229 #define REPLACE_INET_NTOA 1
18230 _ACEOF
18231
18232 fi
18233
18234 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
18235 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
18236 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239
18240 if test "$cross_compiling" = yes; then
18241   samba_cv_HAVE_SECURE_MKSTEMP=cross
18242 else
18243   cat >conftest.$ac_ext <<_ACEOF
18244 #line $LINENO "configure"
18245 #include "confdefs.h"
18246 #include <stdlib.h>
18247 #include <sys/types.h>
18248 #include <sys/stat.h>
18249 #include <unistd.h>
18250 main() {
18251   struct stat st;
18252   char tpl[20]="/tmp/test.XXXXXX";
18253   int fd = mkstemp(tpl);
18254   if (fd == -1) exit(1);
18255   unlink(tpl);
18256   if (fstat(fd, &st) != 0) exit(1);
18257   if ((st.st_mode & 0777) != 0600) exit(1);
18258   exit(0);
18259 }
18260 _ACEOF
18261 rm -f conftest$ac_exeext
18262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263   (eval $ac_link) 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268   (eval $ac_try) 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272   samba_cv_HAVE_SECURE_MKSTEMP=yes
18273 else
18274   echo "$as_me: program exited with status $ac_status" >&5
18275 echo "$as_me: failed program was:" >&5
18276 cat conftest.$ac_ext >&5
18277 ( exit $ac_status )
18278 samba_cv_HAVE_SECURE_MKSTEMP=no
18279 fi
18280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18281 fi
18282 fi
18283 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
18284 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
18285 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
18286
18287 cat >>confdefs.h <<\_ACEOF
18288 #define HAVE_SECURE_MKSTEMP 1
18289 _ACEOF
18290
18291 fi
18292
18293 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
18294 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
18295 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
18296   echo $ECHO_N "(cached) $ECHO_C" >&6
18297 else
18298
18299 if test "$cross_compiling" = yes; then
18300   samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
18301 else
18302   cat >conftest.$ac_ext <<_ACEOF
18303 #line $LINENO "configure"
18304 #include "confdefs.h"
18305 #include <unistd.h>
18306 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
18307 _ACEOF
18308 rm -f conftest$ac_exeext
18309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18310   (eval $ac_link) 2>&5
18311   ac_status=$?
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315   (eval $ac_try) 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; }; then
18319   samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
18320 else
18321   echo "$as_me: program exited with status $ac_status" >&5
18322 echo "$as_me: failed program was:" >&5
18323 cat conftest.$ac_ext >&5
18324 ( exit $ac_status )
18325 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
18326 fi
18327 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18328 fi
18329 fi
18330 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
18331 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
18332 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
18333
18334 cat >>confdefs.h <<\_ACEOF
18335 #define SYSCONF_SC_NGROUPS_MAX 1
18336 _ACEOF
18337
18338 fi
18339
18340 echo "$as_me:$LINENO: checking for root" >&5
18341 echo $ECHO_N "checking for root... $ECHO_C" >&6
18342 if test "${samba_cv_HAVE_ROOT+set}" = set; then
18343   echo $ECHO_N "(cached) $ECHO_C" >&6
18344 else
18345
18346 if test "$cross_compiling" = yes; then
18347   samba_cv_HAVE_ROOT=cross
18348 else
18349   cat >conftest.$ac_ext <<_ACEOF
18350 #line $LINENO "configure"
18351 #include "confdefs.h"
18352 main() { exit(getuid() != 0); }
18353 _ACEOF
18354 rm -f conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356   (eval $ac_link) 2>&5
18357   ac_status=$?
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361   (eval $ac_try) 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); }; }; then
18365   samba_cv_HAVE_ROOT=yes
18366 else
18367   echo "$as_me: program exited with status $ac_status" >&5
18368 echo "$as_me: failed program was:" >&5
18369 cat conftest.$ac_ext >&5
18370 ( exit $ac_status )
18371 samba_cv_HAVE_ROOT=no
18372 fi
18373 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18374 fi
18375 fi
18376 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
18377 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
18378 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
18379
18380 cat >>confdefs.h <<\_ACEOF
18381 #define HAVE_ROOT 1
18382 _ACEOF
18383
18384 else
18385     { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
18386 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
18387 fi
18388
18389 ##################
18390 # look for a method of finding the list of network interfaces
18391 iface=no;
18392 echo "$as_me:$LINENO: checking for iface AIX" >&5
18393 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
18394 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
18395   echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397
18398 if test "$cross_compiling" = yes; then
18399   samba_cv_HAVE_IFACE_AIX=cross
18400 else
18401   cat >conftest.$ac_ext <<_ACEOF
18402 #line $LINENO "configure"
18403 #include "confdefs.h"
18404
18405 #define HAVE_IFACE_AIX 1
18406 #define AUTOCONF_TEST 1
18407 #include "confdefs.h"
18408 #include "${srcdir-.}/lib/interfaces.c"
18409 _ACEOF
18410 rm -f conftest$ac_exeext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18412   (eval $ac_link) 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417   (eval $ac_try) 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); }; }; then
18421   samba_cv_HAVE_IFACE_AIX=yes
18422 else
18423   echo "$as_me: program exited with status $ac_status" >&5
18424 echo "$as_me: failed program was:" >&5
18425 cat conftest.$ac_ext >&5
18426 ( exit $ac_status )
18427 samba_cv_HAVE_IFACE_AIX=no
18428 fi
18429 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18430 fi
18431 fi
18432 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
18433 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
18434 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
18435     iface=yes;
18436 cat >>confdefs.h <<\_ACEOF
18437 #define HAVE_IFACE_AIX 1
18438 _ACEOF
18439
18440 fi
18441
18442 if test $iface = no; then
18443 echo "$as_me:$LINENO: checking for iface ifconf" >&5
18444 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
18445 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
18446   echo $ECHO_N "(cached) $ECHO_C" >&6
18447 else
18448
18449 if test "$cross_compiling" = yes; then
18450   samba_cv_HAVE_IFACE_IFCONF=cross
18451 else
18452   cat >conftest.$ac_ext <<_ACEOF
18453 #line $LINENO "configure"
18454 #include "confdefs.h"
18455
18456 #define HAVE_IFACE_IFCONF 1
18457 #define AUTOCONF_TEST 1
18458 #include "confdefs.h"
18459 #include "${srcdir-.}/lib/interfaces.c"
18460 _ACEOF
18461 rm -f conftest$ac_exeext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18463   (eval $ac_link) 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472   samba_cv_HAVE_IFACE_IFCONF=yes
18473 else
18474   echo "$as_me: program exited with status $ac_status" >&5
18475 echo "$as_me: failed program was:" >&5
18476 cat conftest.$ac_ext >&5
18477 ( exit $ac_status )
18478 samba_cv_HAVE_IFACE_IFCONF=no
18479 fi
18480 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18481 fi
18482 fi
18483 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
18484 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
18485 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
18486     iface=yes;
18487 cat >>confdefs.h <<\_ACEOF
18488 #define HAVE_IFACE_IFCONF 1
18489 _ACEOF
18490
18491 fi
18492 fi
18493
18494 if test $iface = no; then
18495 echo "$as_me:$LINENO: checking for iface ifreq" >&5
18496 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
18497 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
18498   echo $ECHO_N "(cached) $ECHO_C" >&6
18499 else
18500
18501 if test "$cross_compiling" = yes; then
18502   samba_cv_HAVE_IFACE_IFREQ=cross
18503 else
18504   cat >conftest.$ac_ext <<_ACEOF
18505 #line $LINENO "configure"
18506 #include "confdefs.h"
18507
18508 #define HAVE_IFACE_IFREQ 1
18509 #define AUTOCONF_TEST 1
18510 #include "confdefs.h"
18511 #include "${srcdir-.}/lib/interfaces.c"
18512 _ACEOF
18513 rm -f conftest$ac_exeext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18515   (eval $ac_link) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520   (eval $ac_try) 2>&5
18521   ac_status=$?
18522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523   (exit $ac_status); }; }; then
18524   samba_cv_HAVE_IFACE_IFREQ=yes
18525 else
18526   echo "$as_me: program exited with status $ac_status" >&5
18527 echo "$as_me: failed program was:" >&5
18528 cat conftest.$ac_ext >&5
18529 ( exit $ac_status )
18530 samba_cv_HAVE_IFACE_IFREQ=no
18531 fi
18532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18533 fi
18534 fi
18535 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
18536 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
18537 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
18538     iface=yes;
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_IFACE_IFREQ 1
18541 _ACEOF
18542
18543 fi
18544 fi
18545
18546
18547 ################################################
18548 # look for a method of setting the effective uid
18549 seteuid=no;
18550 if test $seteuid = no; then
18551 echo "$as_me:$LINENO: checking for setresuid" >&5
18552 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
18553 if test "${samba_cv_USE_SETRESUID+set}" = set; then
18554   echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556
18557 if test "$cross_compiling" = yes; then
18558   samba_cv_USE_SETRESUID=cross
18559 else
18560   cat >conftest.$ac_ext <<_ACEOF
18561 #line $LINENO "configure"
18562 #include "confdefs.h"
18563
18564 #define AUTOCONF_TEST 1
18565 #define USE_SETRESUID 1
18566 #include "confdefs.h"
18567 #include "${srcdir-.}/lib/util_sec.c"
18568 _ACEOF
18569 rm -f conftest$ac_exeext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571   (eval $ac_link) 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576   (eval $ac_try) 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; }; then
18580   samba_cv_USE_SETRESUID=yes
18581 else
18582   echo "$as_me: program exited with status $ac_status" >&5
18583 echo "$as_me: failed program was:" >&5
18584 cat conftest.$ac_ext >&5
18585 ( exit $ac_status )
18586 samba_cv_USE_SETRESUID=no
18587 fi
18588 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18589 fi
18590 fi
18591 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
18592 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
18593 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
18594     seteuid=yes;
18595 cat >>confdefs.h <<\_ACEOF
18596 #define USE_SETRESUID 1
18597 _ACEOF
18598
18599 fi
18600 fi
18601
18602
18603 if test $seteuid = no; then
18604 echo "$as_me:$LINENO: checking for setreuid" >&5
18605 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
18606 if test "${samba_cv_USE_SETREUID+set}" = set; then
18607   echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609
18610 if test "$cross_compiling" = yes; then
18611   samba_cv_USE_SETREUID=cross
18612 else
18613   cat >conftest.$ac_ext <<_ACEOF
18614 #line $LINENO "configure"
18615 #include "confdefs.h"
18616
18617 #define AUTOCONF_TEST 1
18618 #define USE_SETREUID 1
18619 #include "confdefs.h"
18620 #include "${srcdir-.}/lib/util_sec.c"
18621 _ACEOF
18622 rm -f conftest$ac_exeext
18623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18624   (eval $ac_link) 2>&5
18625   ac_status=$?
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629   (eval $ac_try) 2>&5
18630   ac_status=$?
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); }; }; then
18633   samba_cv_USE_SETREUID=yes
18634 else
18635   echo "$as_me: program exited with status $ac_status" >&5
18636 echo "$as_me: failed program was:" >&5
18637 cat conftest.$ac_ext >&5
18638 ( exit $ac_status )
18639 samba_cv_USE_SETREUID=no
18640 fi
18641 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18642 fi
18643 fi
18644 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
18645 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
18646 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
18647     seteuid=yes;
18648 cat >>confdefs.h <<\_ACEOF
18649 #define USE_SETREUID 1
18650 _ACEOF
18651
18652 fi
18653 fi
18654
18655 if test $seteuid = no; then
18656 echo "$as_me:$LINENO: checking for seteuid" >&5
18657 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
18658 if test "${samba_cv_USE_SETEUID+set}" = set; then
18659   echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18661
18662 if test "$cross_compiling" = yes; then
18663   samba_cv_USE_SETEUID=cross
18664 else
18665   cat >conftest.$ac_ext <<_ACEOF
18666 #line $LINENO "configure"
18667 #include "confdefs.h"
18668
18669 #define AUTOCONF_TEST 1
18670 #define USE_SETEUID 1
18671 #include "confdefs.h"
18672 #include "${srcdir-.}/lib/util_sec.c"
18673 _ACEOF
18674 rm -f conftest$ac_exeext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676   (eval $ac_link) 2>&5
18677   ac_status=$?
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681   (eval $ac_try) 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; }; then
18685   samba_cv_USE_SETEUID=yes
18686 else
18687   echo "$as_me: program exited with status $ac_status" >&5
18688 echo "$as_me: failed program was:" >&5
18689 cat conftest.$ac_ext >&5
18690 ( exit $ac_status )
18691 samba_cv_USE_SETEUID=no
18692 fi
18693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18694 fi
18695 fi
18696 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
18697 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
18698 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
18699     seteuid=yes;
18700 cat >>confdefs.h <<\_ACEOF
18701 #define USE_SETEUID 1
18702 _ACEOF
18703
18704 fi
18705 fi
18706
18707 if test $seteuid = no; then
18708 echo "$as_me:$LINENO: checking for setuidx" >&5
18709 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
18710 if test "${samba_cv_USE_SETUIDX+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713
18714 if test "$cross_compiling" = yes; then
18715   samba_cv_USE_SETUIDX=cross
18716 else
18717   cat >conftest.$ac_ext <<_ACEOF
18718 #line $LINENO "configure"
18719 #include "confdefs.h"
18720
18721 #define AUTOCONF_TEST 1
18722 #define USE_SETUIDX 1
18723 #include "confdefs.h"
18724 #include "${srcdir-.}/lib/util_sec.c"
18725 _ACEOF
18726 rm -f conftest$ac_exeext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18728   (eval $ac_link) 2>&5
18729   ac_status=$?
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733   (eval $ac_try) 2>&5
18734   ac_status=$?
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); }; }; then
18737   samba_cv_USE_SETUIDX=yes
18738 else
18739   echo "$as_me: program exited with status $ac_status" >&5
18740 echo "$as_me: failed program was:" >&5
18741 cat conftest.$ac_ext >&5
18742 ( exit $ac_status )
18743 samba_cv_USE_SETUIDX=no
18744 fi
18745 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18746 fi
18747 fi
18748 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
18749 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
18750 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
18751     seteuid=yes;
18752 cat >>confdefs.h <<\_ACEOF
18753 #define USE_SETUIDX 1
18754 _ACEOF
18755
18756 fi
18757 fi
18758
18759
18760 echo "$as_me:$LINENO: checking for working mmap" >&5
18761 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18762 if test "${samba_cv_HAVE_MMAP+set}" = set; then
18763   echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765
18766 if test "$cross_compiling" = yes; then
18767   samba_cv_HAVE_MMAP=cross
18768 else
18769   cat >conftest.$ac_ext <<_ACEOF
18770 #line $LINENO "configure"
18771 #include "confdefs.h"
18772 #include "${srcdir-.}/tests/shared_mmap.c"
18773 _ACEOF
18774 rm -f conftest$ac_exeext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776   (eval $ac_link) 2>&5
18777   ac_status=$?
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781   (eval $ac_try) 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); }; }; then
18785   samba_cv_HAVE_MMAP=yes
18786 else
18787   echo "$as_me: program exited with status $ac_status" >&5
18788 echo "$as_me: failed program was:" >&5
18789 cat conftest.$ac_ext >&5
18790 ( exit $ac_status )
18791 samba_cv_HAVE_MMAP=no
18792 fi
18793 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18794 fi
18795 fi
18796 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
18797 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
18798 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
18799
18800 cat >>confdefs.h <<\_ACEOF
18801 #define HAVE_MMAP 1
18802 _ACEOF
18803
18804 fi
18805
18806 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
18807 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
18808 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
18809   echo $ECHO_N "(cached) $ECHO_C" >&6
18810 else
18811
18812 if test "$cross_compiling" = yes; then
18813   samba_cv_FTRUNCATE_NEEDS_ROOT=cross
18814 else
18815   cat >conftest.$ac_ext <<_ACEOF
18816 #line $LINENO "configure"
18817 #include "confdefs.h"
18818 #include "${srcdir-.}/tests/ftruncroot.c"
18819 _ACEOF
18820 rm -f conftest$ac_exeext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18822   (eval $ac_link) 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827   (eval $ac_try) 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); }; }; then
18831   samba_cv_FTRUNCATE_NEEDS_ROOT=yes
18832 else
18833   echo "$as_me: program exited with status $ac_status" >&5
18834 echo "$as_me: failed program was:" >&5
18835 cat conftest.$ac_ext >&5
18836 ( exit $ac_status )
18837 samba_cv_FTRUNCATE_NEEDS_ROOT=no
18838 fi
18839 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18840 fi
18841 fi
18842 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
18843 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
18844 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
18845
18846 cat >>confdefs.h <<\_ACEOF
18847 #define FTRUNCATE_NEEDS_ROOT 1
18848 _ACEOF
18849
18850 fi
18851
18852 echo "$as_me:$LINENO: checking for fcntl locking" >&5
18853 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
18854 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
18855   echo $ECHO_N "(cached) $ECHO_C" >&6
18856 else
18857
18858 if test "$cross_compiling" = yes; then
18859   samba_cv_HAVE_FCNTL_LOCK=cross
18860 else
18861   cat >conftest.$ac_ext <<_ACEOF
18862 #line $LINENO "configure"
18863 #include "confdefs.h"
18864 #include "${srcdir-.}/tests/fcntl_lock.c"
18865 _ACEOF
18866 rm -f conftest$ac_exeext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868   (eval $ac_link) 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873   (eval $ac_try) 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; }; then
18877   samba_cv_HAVE_FCNTL_LOCK=yes
18878 else
18879   echo "$as_me: program exited with status $ac_status" >&5
18880 echo "$as_me: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18882 ( exit $ac_status )
18883 samba_cv_HAVE_FCNTL_LOCK=no
18884 fi
18885 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18886 fi
18887 fi
18888 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
18889 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
18890 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
18891
18892 cat >>confdefs.h <<\_ACEOF
18893 #define HAVE_FCNTL_LOCK 1
18894 _ACEOF
18895
18896 fi
18897
18898 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
18899 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
18900 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
18901   echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903
18904 if test "$cross_compiling" = yes; then
18905   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
18906 else
18907   cat >conftest.$ac_ext <<_ACEOF
18908 #line $LINENO "configure"
18909 #include "confdefs.h"
18910 #include "${srcdir-.}/tests/fcntl_lock64.c"
18911 _ACEOF
18912 rm -f conftest$ac_exeext
18913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18914   (eval $ac_link) 2>&5
18915   ac_status=$?
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919   (eval $ac_try) 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
18924 else
18925   echo "$as_me: program exited with status $ac_status" >&5
18926 echo "$as_me: failed program was:" >&5
18927 cat conftest.$ac_ext >&5
18928 ( exit $ac_status )
18929 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
18930 fi
18931 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18932 fi
18933 fi
18934 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
18935 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
18936 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
18937
18938 cat >>confdefs.h <<\_ACEOF
18939 #define HAVE_BROKEN_FCNTL64_LOCKS 1
18940 _ACEOF
18941
18942
18943 else
18944
18945
18946   echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
18947 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
18948 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951
18952   if test "$cross_compiling" = yes; then
18953   samba_cv_HAVE_STRUCT_FLOCK64=cross
18954 else
18955   cat >conftest.$ac_ext <<_ACEOF
18956 #line $LINENO "configure"
18957 #include "confdefs.h"
18958
18959 #if defined(HAVE_UNISTD_H)
18960 #include <unistd.h>
18961 #endif
18962 #include <stdio.h>
18963 #include <stdlib.h>
18964
18965 #ifdef HAVE_FCNTL_H
18966 #include <fcntl.h>
18967 #endif
18968
18969 #ifdef HAVE_SYS_FCNTL_H
18970 #include <sys/fcntl.h>
18971 #endif
18972 main() { struct flock64 fl64;
18973 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
18974 exit(0);
18975 #else
18976 exit(1);
18977 #endif
18978 }
18979 _ACEOF
18980 rm -f conftest$ac_exeext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18982   (eval $ac_link) 2>&5
18983   ac_status=$?
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987   (eval $ac_try) 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; }; then
18991   samba_cv_HAVE_STRUCT_FLOCK64=yes
18992 else
18993   echo "$as_me: program exited with status $ac_status" >&5
18994 echo "$as_me: failed program was:" >&5
18995 cat conftest.$ac_ext >&5
18996 ( exit $ac_status )
18997 samba_cv_HAVE_STRUCT_FLOCK64=no
18998 fi
18999 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19000 fi
19001 fi
19002 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
19003 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
19004
19005   if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
19006
19007 cat >>confdefs.h <<\_ACEOF
19008 #define HAVE_STRUCT_FLOCK64 1
19009 _ACEOF
19010
19011   fi
19012 fi
19013
19014 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
19015 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
19016 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
19017   echo $ECHO_N "(cached) $ECHO_C" >&6
19018 else
19019
19020 cat >conftest.$ac_ext <<_ACEOF
19021 #line $LINENO "configure"
19022 #include "confdefs.h"
19023 #include <sys/types.h>
19024 #include <sys/stat.h>
19025 #include <unistd.h>
19026 int
19027 main ()
19028 {
19029 struct stat st;  st.st_blocks = 0;
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19036   (eval $ac_compile) 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); } &&
19040          { ac_try='test -s conftest.$ac_objext'
19041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042   (eval $ac_try) 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; }; then
19046   samba_cv_HAVE_STAT_ST_BLOCKS=yes
19047 else
19048   echo "$as_me: failed program was:" >&5
19049 cat conftest.$ac_ext >&5
19050 samba_cv_HAVE_STAT_ST_BLOCKS=no
19051 fi
19052 rm -f conftest.$ac_objext conftest.$ac_ext
19053 fi
19054 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
19055 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
19056 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
19057
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE_STAT_ST_BLOCKS 1
19060 _ACEOF
19061
19062 fi
19063
19064 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
19065 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
19066 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
19067   echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069
19070 cat >conftest.$ac_ext <<_ACEOF
19071 #line $LINENO "configure"
19072 #include "confdefs.h"
19073 #include <sys/types.h>
19074 #include <sys/stat.h>
19075 #include <unistd.h>
19076 int
19077 main ()
19078 {
19079 struct stat st;  st.st_blksize = 0;
19080   ;
19081   return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086   (eval $ac_compile) 2>&5
19087   ac_status=$?
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); } &&
19090          { ac_try='test -s conftest.$ac_objext'
19091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092   (eval $ac_try) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; }; then
19096   samba_cv_HAVE_STAT_ST_BLKSIZE=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 cat conftest.$ac_ext >&5
19100 samba_cv_HAVE_STAT_ST_BLKSIZE=no
19101 fi
19102 rm -f conftest.$ac_objext conftest.$ac_ext
19103 fi
19104 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
19105 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
19106 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
19107
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE_STAT_ST_BLKSIZE 1
19110 _ACEOF
19111
19112 fi
19113
19114 case "$host_os" in
19115 *linux*)
19116 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
19117 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
19118 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
19119   echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121
19122 cat >conftest.$ac_ext <<_ACEOF
19123 #line $LINENO "configure"
19124 #include "confdefs.h"
19125
19126 #ifdef HAVE_SYS_VFS_H
19127 #include <sys/vfs.h>
19128 #endif
19129 #ifdef HAVE_SYS_CAPABILITY_H
19130 #include <sys/capability.h>
19131 #endif
19132
19133 int
19134 main ()
19135 {
19136 int i;
19137   ;
19138   return 0;
19139 }
19140 _ACEOF
19141 rm -f conftest.$ac_objext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143   (eval $ac_compile) 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); } &&
19147          { ac_try='test -s conftest.$ac_objext'
19148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149   (eval $ac_try) 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; }; then
19153   samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 cat conftest.$ac_ext >&5
19157 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
19158 fi
19159 rm -f conftest.$ac_objext conftest.$ac_ext
19160 fi
19161 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
19162 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
19163 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
19164
19165 cat >>confdefs.h <<\_ACEOF
19166 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
19167 _ACEOF
19168
19169 fi
19170 ;;
19171 esac
19172
19173 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
19174 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
19175 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
19176   echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178
19179 cat >conftest.$ac_ext <<_ACEOF
19180 #line $LINENO "configure"
19181 #include "confdefs.h"
19182 #include <sys/acl.h>
19183 #if defined(HAVE_RPCSVC_NIS_H)
19184 #include <rpcsvc/nis.h>
19185 #endif
19186 int
19187 main ()
19188 {
19189 int i;
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19196   (eval $ac_compile) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } &&
19200          { ac_try='test -s conftest.$ac_objext'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; }; then
19206   samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 cat conftest.$ac_ext >&5
19210 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
19211 fi
19212 rm -f conftest.$ac_objext conftest.$ac_ext
19213 fi
19214 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
19215 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
19216 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
19217
19218 cat >>confdefs.h <<\_ACEOF
19219 #define BROKEN_NISPLUS_INCLUDE_FILES 1
19220 _ACEOF
19221
19222 fi
19223
19224
19225 #################################################
19226 # check for smbwrapper support
19227 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
19228 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
19229
19230 # Check whether --with-smbwrapper or --without-smbwrapper was given.
19231 if test "${with_smbwrapper+set}" = set; then
19232   withval="$with_smbwrapper"
19233    case "$withval" in
19234   yes)
19235     echo "$as_me:$LINENO: result: yes" >&5
19236 echo "${ECHO_T}yes" >&6
19237
19238 cat >>confdefs.h <<\_ACEOF
19239 #define WITH_SMBWRAPPER 1
19240 _ACEOF
19241
19242         WRAPPROG="bin/smbsh"
19243         WRAP="bin/smbwrapper.$SHLIBEXT"
19244
19245         if test x$ATTEMPT_WRAP32_BUILD = x; then
19246                 WRAP32=""
19247         else
19248                         WRAP32=bin/smbwrapper.32.$SHLIBEXT
19249         fi
19250
19251 # Conditions under which smbwrapper should not be built.
19252
19253         if test x$PICFLAG = x; then
19254            echo No support for PIC code - disabling smbwrapper and smbsh
19255            WRAPPROG=""
19256            WRAP=""
19257            WRAP32=""
19258         elif test x$ac_cv_func_syscall = xno; then
19259            echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
19260 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
19261            WRAPPROG=""
19262            WRAP=""
19263            WRAP32=""
19264         fi
19265     ;;
19266   *)
19267     echo "$as_me:$LINENO: result: no" >&5
19268 echo "${ECHO_T}no" >&6
19269     ;;
19270   esac
19271 else
19272   echo "$as_me:$LINENO: result: no" >&5
19273 echo "${ECHO_T}no" >&6
19274
19275 fi;
19276
19277 #################################################
19278 # check for AFS clear-text auth support
19279 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
19280 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
19281
19282 # Check whether --with-afs or --without-afs was given.
19283 if test "${with_afs+set}" = set; then
19284   withval="$with_afs"
19285    case "$withval" in
19286   yes)
19287     echo "$as_me:$LINENO: result: yes" >&5
19288 echo "${ECHO_T}yes" >&6
19289
19290 cat >>confdefs.h <<\_ACEOF
19291 #define WITH_AFS 1
19292 _ACEOF
19293
19294     ;;
19295   *)
19296     echo "$as_me:$LINENO: result: no" >&5
19297 echo "${ECHO_T}no" >&6
19298     ;;
19299   esac
19300 else
19301   echo "$as_me:$LINENO: result: no" >&5
19302 echo "${ECHO_T}no" >&6
19303
19304 fi;
19305
19306
19307 #################################################
19308 # check for the DFS clear-text auth system
19309 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
19310 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
19311
19312 # Check whether --with-dfs or --without-dfs was given.
19313 if test "${with_dfs+set}" = set; then
19314   withval="$with_dfs"
19315    case "$withval" in
19316   yes)
19317     echo "$as_me:$LINENO: result: yes" >&5
19318 echo "${ECHO_T}yes" >&6
19319
19320 cat >>confdefs.h <<\_ACEOF
19321 #define WITH_DFS 1
19322 _ACEOF
19323
19324     ;;
19325   *)
19326     echo "$as_me:$LINENO: result: no" >&5
19327 echo "${ECHO_T}no" >&6
19328     ;;
19329   esac
19330 else
19331   echo "$as_me:$LINENO: result: no" >&5
19332 echo "${ECHO_T}no" >&6
19333
19334 fi;
19335
19336 #################################################
19337 # active directory support
19338
19339 with_ads_support=yes
19340 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
19341 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
19342
19343
19344 # Check whether --with-ads or --without-ads was given.
19345 if test "${with_ads+set}" = set; then
19346   withval="$with_ads"
19347    case "$withval" in
19348     no)
19349         with_ads_support=no
19350         ;;
19351   esac
19352 fi;
19353
19354 if test x"$with_ads_support" = x"yes"; then
19355
19356 cat >>confdefs.h <<\_ACEOF
19357 #define WITH_ADS 1
19358 _ACEOF
19359
19360 fi
19361
19362 echo "$as_me:$LINENO: result: $with_ads_support" >&5
19363 echo "${ECHO_T}$with_ads_support" >&6
19364
19365 FOUND_KRB5=no
19366 if test x"$with_ads_support" = x"yes"; then
19367
19368   #################################################
19369   # check for location of Kerberos 5 install
19370   echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
19371 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
19372
19373 # Check whether --with-krb5 or --without-krb5 was given.
19374 if test "${with_krb5+set}" = set; then
19375   withval="$with_krb5"
19376    case "$withval" in
19377     no)
19378       echo "$as_me:$LINENO: result: no" >&5
19379 echo "${ECHO_T}no" >&6
19380       ;;
19381     *)
19382       echo "$as_me:$LINENO: result: yes" >&5
19383 echo "${ECHO_T}yes" >&6
19384       LIBS="$LIBS -lkrb5"
19385       CFLAGS="$CFLAGS -I$withval/include"
19386       CPPFLAGS="$CPPFLAGS -I$withval/include"
19387       LDFLAGS="$LDFLAGS -L$withval/lib"
19388       FOUND_KRB5=yes
19389       ;;
19390     esac
19391 else
19392   echo "$as_me:$LINENO: result: no" >&5
19393 echo "${ECHO_T}no" >&6
19394
19395 fi;
19396
19397
19398 if test x$FOUND_KRB5 = x"no"; then
19399 #################################################
19400 # see if this box has the RedHat location for kerberos
19401 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
19402 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
19403 if test -d /usr/kerberos; then
19404     LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
19405     CFLAGS="$CFLAGS -I/usr/kerberos/include"
19406     CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
19407     echo "$as_me:$LINENO: result: yes" >&5
19408 echo "${ECHO_T}yes" >&6
19409 else
19410     echo "$as_me:$LINENO: result: no" >&5
19411 echo "${ECHO_T}no" >&6
19412 fi
19413 fi
19414
19415
19416   # now check for krb5.h. Some systems have the libraries without the headers!
19417   # note that this check is done here to allow for different kerberos
19418   # include paths
19419
19420 for ac_header in krb5.h
19421 do
19422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19424   echo "$as_me:$LINENO: checking for $ac_header" >&5
19425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19427   echo $ECHO_N "(cached) $ECHO_C" >&6
19428 fi
19429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19431 else
19432   # Is the header compilable?
19433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19435 cat >conftest.$ac_ext <<_ACEOF
19436 #line $LINENO "configure"
19437 #include "confdefs.h"
19438 $ac_includes_default
19439 #include <$ac_header>
19440 _ACEOF
19441 rm -f conftest.$ac_objext
19442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19443   (eval $ac_compile) 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); } &&
19447          { ac_try='test -s conftest.$ac_objext'
19448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449   (eval $ac_try) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; }; then
19453   ac_header_compiler=yes
19454 else
19455   echo "$as_me: failed program was:" >&5
19456 cat conftest.$ac_ext >&5
19457 ac_header_compiler=no
19458 fi
19459 rm -f conftest.$ac_objext conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19461 echo "${ECHO_T}$ac_header_compiler" >&6
19462
19463 # Is the header present?
19464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19466 cat >conftest.$ac_ext <<_ACEOF
19467 #line $LINENO "configure"
19468 #include "confdefs.h"
19469 #include <$ac_header>
19470 _ACEOF
19471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19473   ac_status=$?
19474   grep -v '^ *+' conftest.er1 >conftest.err
19475   rm -f conftest.er1
19476   cat conftest.err >&5
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } >/dev/null; then
19479   if test -s conftest.err; then
19480     ac_cpp_err=$ac_c_preproc_warn_flag
19481   else
19482     ac_cpp_err=
19483   fi
19484 else
19485   ac_cpp_err=yes
19486 fi
19487 if test -z "$ac_cpp_err"; then
19488   ac_header_preproc=yes
19489 else
19490   echo "$as_me: failed program was:" >&5
19491   cat conftest.$ac_ext >&5
19492   ac_header_preproc=no
19493 fi
19494 rm -f conftest.err conftest.$ac_ext
19495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19496 echo "${ECHO_T}$ac_header_preproc" >&6
19497
19498 # So?  What about this header?
19499 case $ac_header_compiler:$ac_header_preproc in
19500   yes:no )
19501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19505   no:yes )
19506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19508     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19512 esac
19513 echo "$as_me:$LINENO: checking for $ac_header" >&5
19514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   eval "$as_ac_Header=$ac_header_preproc"
19519 fi
19520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19522
19523 fi
19524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19525   cat >>confdefs.h <<_ACEOF
19526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19527 _ACEOF
19528
19529 fi
19530
19531 done
19532
19533
19534   # now check for gssapi headers.  This is also done here to allow for
19535   # different kerberos include paths
19536
19537
19538 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
19539 do
19540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19542   echo "$as_me:$LINENO: checking for $ac_header" >&5
19543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 fi
19547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19549 else
19550   # Is the header compilable?
19551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19553 cat >conftest.$ac_ext <<_ACEOF
19554 #line $LINENO "configure"
19555 #include "confdefs.h"
19556 $ac_includes_default
19557 #include <$ac_header>
19558 _ACEOF
19559 rm -f conftest.$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561   (eval $ac_compile) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); } &&
19565          { ac_try='test -s conftest.$ac_objext'
19566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567   (eval $ac_try) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   ac_header_compiler=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 cat conftest.$ac_ext >&5
19575 ac_header_compiler=no
19576 fi
19577 rm -f conftest.$ac_objext conftest.$ac_ext
19578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19579 echo "${ECHO_T}$ac_header_compiler" >&6
19580
19581 # Is the header present?
19582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19584 cat >conftest.$ac_ext <<_ACEOF
19585 #line $LINENO "configure"
19586 #include "confdefs.h"
19587 #include <$ac_header>
19588 _ACEOF
19589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19591   ac_status=$?
19592   grep -v '^ *+' conftest.er1 >conftest.err
19593   rm -f conftest.er1
19594   cat conftest.err >&5
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); } >/dev/null; then
19597   if test -s conftest.err; then
19598     ac_cpp_err=$ac_c_preproc_warn_flag
19599   else
19600     ac_cpp_err=
19601   fi
19602 else
19603   ac_cpp_err=yes
19604 fi
19605 if test -z "$ac_cpp_err"; then
19606   ac_header_preproc=yes
19607 else
19608   echo "$as_me: failed program was:" >&5
19609   cat conftest.$ac_ext >&5
19610   ac_header_preproc=no
19611 fi
19612 rm -f conftest.err conftest.$ac_ext
19613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614 echo "${ECHO_T}$ac_header_preproc" >&6
19615
19616 # So?  What about this header?
19617 case $ac_header_compiler:$ac_header_preproc in
19618   yes:no )
19619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19623   no:yes )
19624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19626     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19630 esac
19631 echo "$as_me:$LINENO: checking for $ac_header" >&5
19632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19634   echo $ECHO_N "(cached) $ECHO_C" >&6
19635 else
19636   eval "$as_ac_Header=$ac_header_preproc"
19637 fi
19638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19640
19641 fi
19642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19643   cat >>confdefs.h <<_ACEOF
19644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19645 _ACEOF
19646
19647 fi
19648
19649 done
19650
19651
19652   ##################################################################
19653   # we might need the k5crypto and com_err libraries on some systems
19654   echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
19655 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
19656 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
19657   echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659   ac_check_lib_save_LIBS=$LIBS
19660 LIBS="-lcom_err  $LIBS"
19661 cat >conftest.$ac_ext <<_ACEOF
19662 #line $LINENO "configure"
19663 #include "confdefs.h"
19664
19665 /* Override any gcc2 internal prototype to avoid an error.  */
19666 #ifdef __cplusplus
19667 extern "C"
19668 #endif
19669 /* We use char because int might match the return type of a gcc2
19670    builtin and then its argument prototype would still apply.  */
19671 char _et_list ();
19672 int
19673 main ()
19674 {
19675 _et_list ();
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682   (eval $ac_link) 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); } &&
19686          { ac_try='test -s conftest$ac_exeext'
19687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688   (eval $ac_try) 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; }; then
19692   ac_cv_lib_com_err__et_list=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 cat conftest.$ac_ext >&5
19696 ac_cv_lib_com_err__et_list=no
19697 fi
19698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19699 LIBS=$ac_check_lib_save_LIBS
19700 fi
19701 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
19702 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
19703 if test $ac_cv_lib_com_err__et_list = yes; then
19704   LIBS="$LIBS -lcom_err"
19705 fi
19706
19707   echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
19708 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
19709 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
19710   echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712   ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-lk5crypto  $LIBS"
19714 cat >conftest.$ac_ext <<_ACEOF
19715 #line $LINENO "configure"
19716 #include "confdefs.h"
19717
19718 /* Override any gcc2 internal prototype to avoid an error.  */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 /* We use char because int might match the return type of a gcc2
19723    builtin and then its argument prototype would still apply.  */
19724 char krb5_encrypt_data ();
19725 int
19726 main ()
19727 {
19728 krb5_encrypt_data ();
19729   ;
19730   return 0;
19731 }
19732 _ACEOF
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19735   (eval $ac_link) 2>&5
19736   ac_status=$?
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } &&
19739          { ac_try='test -s conftest$ac_exeext'
19740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741   (eval $ac_try) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; }; then
19745   ac_cv_lib_k5crypto_krb5_encrypt_data=yes
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 cat conftest.$ac_ext >&5
19749 ac_cv_lib_k5crypto_krb5_encrypt_data=no
19750 fi
19751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19753 fi
19754 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
19755 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
19756 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
19757   LIBS="$LIBS -lk5crypto"
19758 fi
19759
19760
19761   ########################################################
19762   # now see if we can find the krb5 libs in standard paths
19763   # or as specified above
19764   echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
19765 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
19766 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   ac_check_lib_save_LIBS=$LIBS
19770 LIBS="-lkrb5  $LIBS"
19771 cat >conftest.$ac_ext <<_ACEOF
19772 #line $LINENO "configure"
19773 #include "confdefs.h"
19774
19775 /* Override any gcc2 internal prototype to avoid an error.  */
19776 #ifdef __cplusplus
19777 extern "C"
19778 #endif
19779 /* We use char because int might match the return type of a gcc2
19780    builtin and then its argument prototype would still apply.  */
19781 char krb5_mk_req_extended ();
19782 int
19783 main ()
19784 {
19785 krb5_mk_req_extended ();
19786   ;
19787   return 0;
19788 }
19789 _ACEOF
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19792   (eval $ac_link) 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -s conftest$ac_exeext'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; }; then
19802   ac_cv_lib_krb5_krb5_mk_req_extended=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 cat conftest.$ac_ext >&5
19806 ac_cv_lib_krb5_krb5_mk_req_extended=no
19807 fi
19808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19810 fi
19811 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
19812 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
19813 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
19814   LIBS="$LIBS -lkrb5";
19815
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE_KRB5 1
19818 _ACEOF
19819
19820 fi
19821
19822
19823   ########################################################
19824   # now see if we can find the gssapi libs in standard paths
19825   echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
19826 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
19827 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
19828   echo $ECHO_N "(cached) $ECHO_C" >&6
19829 else
19830   ac_check_lib_save_LIBS=$LIBS
19831 LIBS="-lgssapi_krb5  $LIBS"
19832 cat >conftest.$ac_ext <<_ACEOF
19833 #line $LINENO "configure"
19834 #include "confdefs.h"
19835
19836 /* Override any gcc2 internal prototype to avoid an error.  */
19837 #ifdef __cplusplus
19838 extern "C"
19839 #endif
19840 /* We use char because int might match the return type of a gcc2
19841    builtin and then its argument prototype would still apply.  */
19842 char gss_display_status ();
19843 int
19844 main ()
19845 {
19846 gss_display_status ();
19847   ;
19848   return 0;
19849 }
19850 _ACEOF
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853   (eval $ac_link) 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } &&
19857          { ac_try='test -s conftest$ac_exeext'
19858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859   (eval $ac_try) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; }; then
19863   ac_cv_lib_gssapi_krb5_gss_display_status=yes
19864 else
19865   echo "$as_me: failed program was:" >&5
19866 cat conftest.$ac_ext >&5
19867 ac_cv_lib_gssapi_krb5_gss_display_status=no
19868 fi
19869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19871 fi
19872 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
19873 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
19874 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
19875   LIBS="$LIBS -lgssapi_krb5";
19876
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE_GSSAPI 1
19879 _ACEOF
19880
19881 fi
19882
19883 fi
19884
19885 ########################################################
19886 # Compile with LDAP support?
19887
19888 with_ldap_support=yes
19889 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
19890 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
19891
19892
19893 # Check whether --with-ldap or --without-ldap was given.
19894 if test "${with_ldap+set}" = set; then
19895   withval="$with_ldap"
19896    case "$withval" in
19897     no)
19898         with_ldap_support=no
19899         ;;
19900   esac
19901 fi;
19902
19903 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
19904 echo "${ECHO_T}$with_ldap_support" >&6
19905
19906 if test x"$with_ldap_support" = x"yes"; then
19907
19908   ##################################################################
19909   # we might need the lber lib on some systems. To avoid link errors
19910   # this test must be before the libldap test
19911   echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
19912 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
19913 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916   ac_check_lib_save_LIBS=$LIBS
19917 LIBS="-llber  $LIBS"
19918 cat >conftest.$ac_ext <<_ACEOF
19919 #line $LINENO "configure"
19920 #include "confdefs.h"
19921
19922 /* Override any gcc2 internal prototype to avoid an error.  */
19923 #ifdef __cplusplus
19924 extern "C"
19925 #endif
19926 /* We use char because int might match the return type of a gcc2
19927    builtin and then its argument prototype would still apply.  */
19928 char ber_scanf ();
19929 int
19930 main ()
19931 {
19932 ber_scanf ();
19933   ;
19934   return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19939   (eval $ac_link) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); } &&
19943          { ac_try='test -s conftest$ac_exeext'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; }; then
19949   ac_cv_lib_lber_ber_scanf=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 cat conftest.$ac_ext >&5
19953 ac_cv_lib_lber_ber_scanf=no
19954 fi
19955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19957 fi
19958 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
19959 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
19960 if test $ac_cv_lib_lber_ber_scanf = yes; then
19961   LIBS="$LIBS -llber"
19962 fi
19963
19964
19965   ########################################################
19966   # now see if we can find the ldap libs in standard paths
19967   if test x$have_ldap != xyes; then
19968   echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
19969 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
19970 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-lldap  $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19977 #include "confdefs.h"
19978
19979 /* Override any gcc2 internal prototype to avoid an error.  */
19980 #ifdef __cplusplus
19981 extern "C"
19982 #endif
19983 /* We use char because int might match the return type of a gcc2
19984    builtin and then its argument prototype would still apply.  */
19985 char ldap_domain2hostlist ();
19986 int
19987 main ()
19988 {
19989 ldap_domain2hostlist ();
19990   ;
19991   return 0;
19992 }
19993 _ACEOF
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19996   (eval $ac_link) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } &&
20000          { ac_try='test -s conftest$ac_exeext'
20001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002   (eval $ac_try) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; }; then
20006   ac_cv_lib_ldap_ldap_domain2hostlist=yes
20007 else
20008   echo "$as_me: failed program was:" >&5
20009 cat conftest.$ac_ext >&5
20010 ac_cv_lib_ldap_ldap_domain2hostlist=no
20011 fi
20012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20013 LIBS=$ac_check_lib_save_LIBS
20014 fi
20015 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
20016 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
20017 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
20018   LIBS="$LIBS -lldap";
20019
20020 cat >>confdefs.h <<\_ACEOF
20021 #define HAVE_LDAP 1
20022 _ACEOF
20023
20024 fi
20025
20026
20027         ########################################################
20028         # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
20029         # Check found in pam_ldap 145.
20030
20031 for ac_func in ldap_set_rebind_proc
20032 do
20033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20034 echo "$as_me:$LINENO: checking for $ac_func" >&5
20035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20036 if eval "test \"\${$as_ac_var+set}\" = set"; then
20037   echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039   cat >conftest.$ac_ext <<_ACEOF
20040 #line $LINENO "configure"
20041 #include "confdefs.h"
20042 /* System header to define __stub macros and hopefully few prototypes,
20043     which can conflict with char $ac_func (); below.  */
20044 #include <assert.h>
20045 /* Override any gcc2 internal prototype to avoid an error.  */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 /* We use char because int might match the return type of a gcc2
20050    builtin and then its argument prototype would still apply.  */
20051 char $ac_func ();
20052 char (*f) ();
20053
20054 int
20055 main ()
20056 {
20057 /* The GNU C library defines this for functions which it implements
20058     to always fail with ENOSYS.  Some functions are actually named
20059     something starting with __ and the normal name is an alias.  */
20060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20061 choke me
20062 #else
20063 f = $ac_func;
20064 #endif
20065
20066   ;
20067   return 0;
20068 }
20069 _ACEOF
20070 rm -f conftest.$ac_objext conftest$ac_exeext
20071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20072   (eval $ac_link) 2>&5
20073   ac_status=$?
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); } &&
20076          { ac_try='test -s conftest$ac_exeext'
20077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078   (eval $ac_try) 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; }; then
20082   eval "$as_ac_var=yes"
20083 else
20084   echo "$as_me: failed program was:" >&5
20085 cat conftest.$ac_ext >&5
20086 eval "$as_ac_var=no"
20087 fi
20088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20089 fi
20090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20092 if test `eval echo '${'$as_ac_var'}'` = yes; then
20093   cat >>confdefs.h <<_ACEOF
20094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20095 _ACEOF
20096
20097 fi
20098 done
20099
20100         echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
20101 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
20102 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105
20106         cat >conftest.$ac_ext <<_ACEOF
20107 #line $LINENO "configure"
20108 #include "confdefs.h"
20109
20110         #include <lber.h>
20111         #include <ldap.h>
20112 int
20113 main ()
20114 {
20115 ldap_set_rebind_proc(0, 0, 0);
20116   ;
20117   return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext
20121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20122   (eval $ac_compile) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); } &&
20126          { ac_try='test -s conftest.$ac_objext'
20127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128   (eval $ac_try) 2>&5
20129   ac_status=$?
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); }; }; then
20132   pam_ldap_cv_ldap_set_rebind_proc=3
20133 else
20134   echo "$as_me: failed program was:" >&5
20135 cat conftest.$ac_ext >&5
20136 pam_ldap_cv_ldap_set_rebind_proc=2
20137 fi
20138 rm -f conftest.$ac_objext conftest.$ac_ext
20139 fi
20140 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
20141 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
20142
20143 cat >>confdefs.h <<_ACEOF
20144 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
20145 _ACEOF
20146
20147   fi
20148 fi
20149
20150 ########################################################
20151 # Compile with MySQL support?
20152
20153 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
20154 if test "${with_mysql_prefix+set}" = set; then
20155   withval="$with_mysql_prefix"
20156   mysql_prefix="$withval"
20157 else
20158   mysql_prefix=""
20159 fi;
20160
20161 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
20162 if test "${with_mysql_exec_prefix+set}" = set; then
20163   withval="$with_mysql_exec_prefix"
20164   mysql_exec_prefix="$withval"
20165 else
20166   mysql_exec_prefix=""
20167 fi;
20168 # Check whether --enable-mysqltest or --disable-mysqltest was given.
20169 if test "${enable_mysqltest+set}" = set; then
20170   enableval="$enable_mysqltest"
20171
20172 else
20173   enable_mysqltest=yes
20174 fi;
20175
20176   if test x$mysql_exec_prefix != x ; then
20177      mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
20178      if test x${MYSQL_CONFIG+set} != xset ; then
20179         MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
20180      fi
20181   fi
20182   if test x$mysql_prefix != x ; then
20183      mysql_args="$mysql_args --prefix=$mysql_prefix"
20184      if test x${MYSQL_CONFIG+set} != xset ; then
20185         MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
20186      fi
20187   fi
20188
20189
20190   # Extract the first word of "mysql_config", so it can be a program name with args.
20191 set dummy mysql_config; ac_word=$2
20192 echo "$as_me:$LINENO: checking for $ac_word" >&5
20193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20194 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   case $MYSQL_CONFIG in
20198   [\\/]* | ?:[\\/]*)
20199   ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
20200   ;;
20201   *)
20202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20203 for as_dir in $PATH
20204 do
20205   IFS=$as_save_IFS
20206   test -z "$as_dir" && as_dir=.
20207   for ac_exec_ext in '' $ac_executable_extensions; do
20208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20209     ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20211     break 2
20212   fi
20213 done
20214 done
20215
20216   test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
20217   ;;
20218 esac
20219 fi
20220 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
20221
20222 if test -n "$MYSQL_CONFIG"; then
20223   echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
20224 echo "${ECHO_T}$MYSQL_CONFIG" >&6
20225 else
20226   echo "$as_me:$LINENO: result: no" >&5
20227 echo "${ECHO_T}no" >&6
20228 fi
20229
20230   min_mysql_version=0.11.0
20231   echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
20232 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
20233   no_mysql=""
20234   if test "$MYSQL_CONFIG" = "no" ; then
20235     no_mysql=yes
20236   else
20237     MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
20238     MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
20239
20240     mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
20241            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20242     mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
20243            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20244     mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
20245            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20246     if test "x$enable_mysqltest" = "xyes" ; then
20247       ac_save_CFLAGS="$CFLAGS"
20248       ac_save_LIBS="$LIBS"
20249       CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20250       LIBS="$LIBS $MYSQL_LIBS"
20251       rm -f conf.mysqltest
20252       if test "$cross_compiling" = yes; then
20253   echo $ac_n "cross compiling; assumed OK... $ac_c"
20254 else
20255   cat >conftest.$ac_ext <<_ACEOF
20256 #line $LINENO "configure"
20257 #include "confdefs.h"
20258
20259 #include <stdio.h>
20260 #include <stdlib.h>
20261 #include <string.h>
20262 #include <mysql.h>
20263
20264 char*
20265 my_strdup (char *str)
20266 {
20267   char *new_str;
20268
20269   if (str)
20270     {
20271       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20272       strcpy (new_str, str);
20273     }
20274   else
20275     new_str = NULL;
20276
20277   return new_str;
20278 }
20279
20280 int main (int argc, char *argv[])
20281 {
20282 int major, minor, micro;
20283   char *tmp_version;
20284
20285   /* This hangs on some systems (?)
20286   system ("touch conf.mysqltest");
20287   */
20288   { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
20289
20290   /* HP/UX 9 (%@#!) writes to sscanf strings */
20291   tmp_version = my_strdup("$min_mysql_version");
20292   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20293      printf("%s, bad version string\n", "$min_mysql_version");
20294      exit(1);
20295    }
20296
20297    if (($mysql_major_version > major) ||
20298       (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
20299       (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
20300     {
20301       return 0;
20302     }
20303   else
20304     {
20305       printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
20306       printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
20307       printf("*** best to upgrade to the required version.\n");
20308       printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
20309       printf("*** to point to the correct copy of mysql_config, and remove the file\n");
20310       printf("*** config.cache before re-running configure\n");
20311       return 1;
20312     }
20313 }
20314
20315
20316 _ACEOF
20317 rm -f conftest$ac_exeext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20319   (eval $ac_link) 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324   (eval $ac_try) 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); }; }; then
20328   :
20329 else
20330   echo "$as_me: program exited with status $ac_status" >&5
20331 echo "$as_me: failed program was:" >&5
20332 cat conftest.$ac_ext >&5
20333 ( exit $ac_status )
20334 no_mysql=yes
20335 fi
20336 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20337 fi
20338        CFLAGS="$ac_save_CFLAGS"
20339        LIBS="$ac_save_LIBS"
20340      fi
20341   fi
20342   if test "x$no_mysql" = x ; then
20343      echo "$as_me:$LINENO: result: yes" >&5
20344 echo "${ECHO_T}yes" >&6
20345      :
20346   else
20347      echo "$as_me:$LINENO: result: no" >&5
20348 echo "${ECHO_T}no" >&6
20349      if test "$MYSQL_CONFIG" = "no" ; then
20350        echo "*** The mysql_config script installed by MYSQL could not be found"
20351        echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
20352        echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
20353        echo "*** full path to mysql_config."
20354      else
20355        if test -f conf.mysqltest ; then
20356         :
20357        else
20358           echo "*** Could not run MYSQL test program, checking why..."
20359           CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20360           LIBS="$LIBS $MYSQL_LIBS"
20361           cat >conftest.$ac_ext <<_ACEOF
20362 #line $LINENO "configure"
20363 #include "confdefs.h"
20364
20365 #include <stdio.h>
20366 #include <mysql.h>
20367
20368 int main(int argc, char *argv[])
20369 { return 0; }
20370 #undef  main
20371 #define main K_and_R_C_main
20372
20373 int
20374 main ()
20375 {
20376  return 0;
20377   ;
20378   return 0;
20379 }
20380 _ACEOF
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383   (eval $ac_link) 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); } &&
20387          { ac_try='test -s conftest$ac_exeext'
20388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389   (eval $ac_try) 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; }; then
20393    echo "*** The test program compiled, but did not run. This usually means"
20394           echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
20395           echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
20396           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20397           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20398           echo "*** is required on your system"
20399     echo "***"
20400           echo "*** If you have an old version installed, it is best to remove it, although"
20401           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20402 else
20403   echo "$as_me: failed program was:" >&5
20404 cat conftest.$ac_ext >&5
20405  echo "*** The test program failed to compile or link. See the file config.log for the"
20406           echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
20407           echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
20408           echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
20409 fi
20410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20411           CFLAGS="$ac_save_CFLAGS"
20412           LIBS="$ac_save_LIBS"
20413        fi
20414      fi
20415      MYSQL_CFLAGS=""
20416      MYSQL_LIBS=""
20417      :
20418   fi
20419
20420
20421   rm -f conf.mysqltest
20422
20423 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20424
20425
20426 ########################################################
20427 # Compile with XML support?
20428
20429
20430 # Check whether --with-xml-prefix or --without-xml-prefix was given.
20431 if test "${with_xml_prefix+set}" = set; then
20432   withval="$with_xml_prefix"
20433   xml_config_prefix="$withval"
20434 else
20435   xml_config_prefix=""
20436 fi;
20437
20438 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
20439 if test "${with_xml_exec_prefix+set}" = set; then
20440   withval="$with_xml_exec_prefix"
20441   xml_config_exec_prefix="$withval"
20442 else
20443   xml_config_exec_prefix=""
20444 fi;
20445 # Check whether --enable-xmltest or --disable-xmltest was given.
20446 if test "${enable_xmltest+set}" = set; then
20447   enableval="$enable_xmltest"
20448
20449 else
20450   enable_xmltest=yes
20451 fi;
20452
20453   if test x$xml_config_exec_prefix != x ; then
20454      xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
20455      if test x${XML2_CONFIG+set} != xset ; then
20456         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
20457      fi
20458   fi
20459   if test x$xml_config_prefix != x ; then
20460      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
20461      if test x${XML2_CONFIG+set} != xset ; then
20462         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
20463      fi
20464   fi
20465
20466   # Extract the first word of "xml2-config", so it can be a program name with args.
20467 set dummy xml2-config; ac_word=$2
20468 echo "$as_me:$LINENO: checking for $ac_word" >&5
20469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20470 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   case $XML2_CONFIG in
20474   [\\/]* | ?:[\\/]*)
20475   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
20476   ;;
20477   *)
20478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479 for as_dir in $PATH
20480 do
20481   IFS=$as_save_IFS
20482   test -z "$as_dir" && as_dir=.
20483   for ac_exec_ext in '' $ac_executable_extensions; do
20484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20485     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20487     break 2
20488   fi
20489 done
20490 done
20491
20492   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
20493   ;;
20494 esac
20495 fi
20496 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
20497
20498 if test -n "$XML2_CONFIG"; then
20499   echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
20500 echo "${ECHO_T}$XML2_CONFIG" >&6
20501 else
20502   echo "$as_me:$LINENO: result: no" >&5
20503 echo "${ECHO_T}no" >&6
20504 fi
20505
20506   min_xml_version=2.0.0
20507   echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
20508 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
20509   no_xml=""
20510   if test "$XML2_CONFIG" = "no" ; then
20511     no_xml=yes
20512   else
20513     XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
20514     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
20515     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
20516            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20517     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
20518            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20519     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
20520            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20521     if test "x$enable_xmltest" = "xyes" ; then
20522       ac_save_CFLAGS="$CFLAGS"
20523       ac_save_LIBS="$LIBS"
20524       CFLAGS="$CFLAGS $XML_CFLAGS"
20525       LIBS="$XML_LIBS $LIBS"
20526       rm -f conf.xmltest
20527       if test "$cross_compiling" = yes; then
20528   echo $ac_n "cross compiling; assumed OK... $ac_c"
20529 else
20530   cat >conftest.$ac_ext <<_ACEOF
20531 #line $LINENO "configure"
20532 #include "confdefs.h"
20533
20534 #include <stdlib.h>
20535 #include <stdio.h>
20536 #include <string.h>
20537 #include <libxml/xmlversion.h>
20538
20539 int
20540 main()
20541 {
20542   int xml_major_version, xml_minor_version, xml_micro_version;
20543   int major, minor, micro;
20544   char *tmp_version;
20545
20546   system("touch conf.xmltest");
20547
20548   /* Capture xml2-config output via autoconf/configure variables */
20549   /* HP/UX 9 (%@#!) writes to sscanf strings */
20550   tmp_version = (char *)strdup("$min_xml_version");
20551   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20552      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
20553      exit(1);
20554    }
20555    free(tmp_version);
20556
20557    /* Capture the version information from the header files */
20558    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
20559    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
20560      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
20561      exit(1);
20562    }
20563    free(tmp_version);
20564
20565  /* Compare xml2-config output to the libxml headers */
20566   if ((xml_major_version != $xml_config_major_version) ||
20567       (xml_minor_version != $xml_config_minor_version) ||
20568       (xml_micro_version != $xml_config_micro_version))
20569     {
20570       printf("*** libxml header files (version %d.%d.%d) do not match\n",
20571          xml_major_version, xml_minor_version, xml_micro_version);
20572       printf("*** xml2-config (version %d.%d.%d)\n",
20573          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
20574       return 1;
20575     }
20576 /* Compare the headers to the library to make sure we match */
20577   /* Less than ideal -- doesn't provide us with return value feedback,
20578    * only exits if there's a serious mismatch between header and library.
20579    */
20580     LIBXML_TEST_VERSION;
20581
20582     /* Test that the library is greater than our minimum version */
20583     if ((xml_major_version > major) ||
20584         ((xml_major_version == major) && (xml_minor_version > minor)) ||
20585         ((xml_major_version == major) && (xml_minor_version == minor) &&
20586         (xml_micro_version >= micro)))
20587       {
20588         return 0;
20589        }
20590      else
20591       {
20592         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
20593                xml_major_version, xml_minor_version, xml_micro_version);
20594         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
20595            major, minor, micro);
20596         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
20597         printf("***\n");
20598         printf("*** If you have already installed a sufficiently new version, this error\n");
20599         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
20600         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20601         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
20602         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
20603         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20604         printf("*** so that the correct libraries are found at run-time))\n");
20605     }
20606   return 1;
20607 }
20608
20609 _ACEOF
20610 rm -f conftest$ac_exeext
20611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20612   (eval $ac_link) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617   (eval $ac_try) 2>&5
20618   ac_status=$?
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); }; }; then
20621   :
20622 else
20623   echo "$as_me: program exited with status $ac_status" >&5
20624 echo "$as_me: failed program was:" >&5
20625 cat conftest.$ac_ext >&5
20626 ( exit $ac_status )
20627 no_xml=yes
20628 fi
20629 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20630 fi
20631        CFLAGS="$ac_save_CFLAGS"
20632        LIBS="$ac_save_LIBS"
20633      fi
20634   fi
20635
20636   if test "x$no_xml" = x ; then
20637      echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
20638 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
20639      :
20640   else
20641      echo "$as_me:$LINENO: result: no" >&5
20642 echo "${ECHO_T}no" >&6
20643      if test "$XML2_CONFIG" = "no" ; then
20644        echo "*** The xml2-config script installed by LIBXML could not be found"
20645        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
20646        echo "*** your path, or set the XML2_CONFIG environment variable to the"
20647        echo "*** full path to xml2-config."
20648      else
20649        if test -f conf.xmltest ; then
20650         :
20651        else
20652           echo "*** Could not run libxml test program, checking why..."
20653           CFLAGS="$CFLAGS $XML_CFLAGS"
20654           LIBS="$LIBS $XML_LIBS"
20655           cat >conftest.$ac_ext <<_ACEOF
20656 #line $LINENO "configure"
20657 #include "confdefs.h"
20658
20659 #include <libxml/xmlversion.h>
20660 #include <stdio.h>
20661
20662 int
20663 main ()
20664 {
20665  LIBXML_TEST_VERSION; return 0;
20666   ;
20667   return 0;
20668 }
20669 _ACEOF
20670 rm -f conftest.$ac_objext conftest$ac_exeext
20671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20672   (eval $ac_link) 2>&5
20673   ac_status=$?
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); } &&
20676          { ac_try='test -s conftest$ac_exeext'
20677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678   (eval $ac_try) 2>&5
20679   ac_status=$?
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); }; }; then
20682    echo "*** The test program compiled, but did not run. This usually means"
20683           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
20684           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
20685           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20686           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20687           echo "*** is required on your system"
20688           echo "***"
20689           echo "*** If you have an old version installed, it is best to remove it, although"
20690           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 cat conftest.$ac_ext >&5
20694  echo "*** The test program failed to compile or link. See the file config.log for the"
20695           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
20696           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
20697           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
20698 fi
20699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20700           CFLAGS="$ac_save_CFLAGS"
20701           LIBS="$ac_save_LIBS"
20702        fi
20703      fi
20704
20705      XML_CFLAGS=""
20706      XML_LIBS=""
20707      :
20708   fi
20709
20710
20711   rm -f conf.xmltest
20712
20713 CFLAGS="$CFLAGS $XML_CFLAGS"
20714
20715 #################################################
20716 # check for automount support
20717 echo "$as_me:$LINENO: checking whether to use AUTOMOUNT" >&5
20718 echo $ECHO_N "checking whether to use AUTOMOUNT... $ECHO_C" >&6
20719
20720 # Check whether --with-automount or --without-automount was given.
20721 if test "${with_automount+set}" = set; then
20722   withval="$with_automount"
20723    case "$withval" in
20724   yes)
20725     echo "$as_me:$LINENO: result: yes" >&5
20726 echo "${ECHO_T}yes" >&6
20727
20728 cat >>confdefs.h <<\_ACEOF
20729 #define WITH_AUTOMOUNT 1
20730 _ACEOF
20731
20732     ;;
20733   *)
20734     echo "$as_me:$LINENO: result: no" >&5
20735 echo "${ECHO_T}no" >&6
20736     ;;
20737   esac
20738 else
20739   echo "$as_me:$LINENO: result: no" >&5
20740 echo "${ECHO_T}no" >&6
20741
20742 fi;
20743
20744 #################################################
20745 # check for smbmount support
20746 echo "$as_me:$LINENO: checking whether to use SMBMOUNT" >&5
20747 echo $ECHO_N "checking whether to use SMBMOUNT... $ECHO_C" >&6
20748
20749 # Check whether --with-smbmount or --without-smbmount was given.
20750 if test "${with_smbmount+set}" = set; then
20751   withval="$with_smbmount"
20752    case "$withval" in
20753   yes)
20754         case "$host_os" in
20755         *linux*)
20756                 echo "$as_me:$LINENO: result: yes" >&5
20757 echo "${ECHO_T}yes" >&6
20758
20759 cat >>confdefs.h <<\_ACEOF
20760 #define WITH_SMBMOUNT 1
20761 _ACEOF
20762
20763                 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
20764                 ;;
20765         *)
20766                 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
20767 echo "$as_me: error: not on a linux system!" >&2;}
20768    { (exit 1); exit 1; }; }
20769                 ;;
20770         esac
20771     ;;
20772   *)
20773     echo "$as_me:$LINENO: result: no" >&5
20774 echo "${ECHO_T}no" >&6
20775     MPROGS=
20776     ;;
20777   esac
20778 else
20779   echo "$as_me:$LINENO: result: no" >&5
20780 echo "${ECHO_T}no" >&6
20781   MPROGS=
20782
20783 fi;
20784
20785
20786 #################################################
20787 # check for a PAM clear-text auth, accounts, password and session support
20788 with_pam_for_crypt=no
20789 echo "$as_me:$LINENO: checking whether to use PAM" >&5
20790 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
20791
20792 # Check whether --with-pam or --without-pam was given.
20793 if test "${with_pam+set}" = set; then
20794   withval="$with_pam"
20795    case "$withval" in
20796   yes)
20797     echo "$as_me:$LINENO: result: yes" >&5
20798 echo "${ECHO_T}yes" >&6
20799
20800 cat >>confdefs.h <<\_ACEOF
20801 #define WITH_PAM 1
20802 _ACEOF
20803
20804     AUTHLIBS="$AUTHLIBS -lpam"
20805     with_pam_for_crypt=yes
20806     ;;
20807   *)
20808     echo "$as_me:$LINENO: result: no" >&5
20809 echo "${ECHO_T}no" >&6
20810     ;;
20811   esac
20812 else
20813   echo "$as_me:$LINENO: result: no" >&5
20814 echo "${ECHO_T}no" >&6
20815
20816 fi;
20817
20818 # we can't build a pam module if we don't have pam.
20819 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
20820 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
20821 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
20822   echo $ECHO_N "(cached) $ECHO_C" >&6
20823 else
20824   ac_check_lib_save_LIBS=$LIBS
20825 LIBS="-lpam  $LIBS"
20826 cat >conftest.$ac_ext <<_ACEOF
20827 #line $LINENO "configure"
20828 #include "confdefs.h"
20829
20830 /* Override any gcc2 internal prototype to avoid an error.  */
20831 #ifdef __cplusplus
20832 extern "C"
20833 #endif
20834 /* We use char because int might match the return type of a gcc2
20835    builtin and then its argument prototype would still apply.  */
20836 char pam_get_data ();
20837 int
20838 main ()
20839 {
20840 pam_get_data ();
20841   ;
20842   return 0;
20843 }
20844 _ACEOF
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20847   (eval $ac_link) 2>&5
20848   ac_status=$?
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); } &&
20851          { ac_try='test -s conftest$ac_exeext'
20852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853   (eval $ac_try) 2>&5
20854   ac_status=$?
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); }; }; then
20857   ac_cv_lib_pam_pam_get_data=yes
20858 else
20859   echo "$as_me: failed program was:" >&5
20860 cat conftest.$ac_ext >&5
20861 ac_cv_lib_pam_pam_get_data=no
20862 fi
20863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20864 LIBS=$ac_check_lib_save_LIBS
20865 fi
20866 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
20867 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
20868 if test $ac_cv_lib_pam_pam_get_data = yes; then
20869
20870 cat >>confdefs.h <<\_ACEOF
20871 #define HAVE_LIBPAM 1
20872 _ACEOF
20873
20874 fi
20875
20876
20877 #################################################
20878 # check for pam_smbpass support
20879 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
20880 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
20881
20882 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
20883 if test "${with_pam_smbpass+set}" = set; then
20884   withval="$with_pam_smbpass"
20885    case "$withval" in
20886   yes)
20887     echo "$as_me:$LINENO: result: yes" >&5
20888 echo "${ECHO_T}yes" >&6
20889
20890 # Conditions under which pam_smbpass should not be built.
20891
20892        if test x$PICFLAG = x; then
20893           echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
20894 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
20895           PAM_MOD=""
20896        elif test x$ac_cv_lib_pam_pam_get_data = xno; then
20897           echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
20898 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
20899           PAM_MOD=""
20900        else
20901           PAM_MOD="bin/pam_smbpass.so"
20902        fi
20903     ;;
20904   *)
20905     echo "$as_me:$LINENO: result: no" >&5
20906 echo "${ECHO_T}no" >&6
20907     ;;
20908   esac
20909 else
20910   echo "$as_me:$LINENO: result: no" >&5
20911 echo "${ECHO_T}no" >&6
20912
20913 fi;
20914
20915
20916 ###############################################
20917 # test for where we get crypt() from, but only
20918 # if not using PAM
20919 if test x"$with_pam_for_crypt" = x"no"; then
20920
20921 for ac_func in crypt
20922 do
20923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20924 echo "$as_me:$LINENO: checking for $ac_func" >&5
20925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20926 if eval "test \"\${$as_ac_var+set}\" = set"; then
20927   echo $ECHO_N "(cached) $ECHO_C" >&6
20928 else
20929   cat >conftest.$ac_ext <<_ACEOF
20930 #line $LINENO "configure"
20931 #include "confdefs.h"
20932 /* System header to define __stub macros and hopefully few prototypes,
20933     which can conflict with char $ac_func (); below.  */
20934 #include <assert.h>
20935 /* Override any gcc2 internal prototype to avoid an error.  */
20936 #ifdef __cplusplus
20937 extern "C"
20938 #endif
20939 /* We use char because int might match the return type of a gcc2
20940    builtin and then its argument prototype would still apply.  */
20941 char $ac_func ();
20942 char (*f) ();
20943
20944 int
20945 main ()
20946 {
20947 /* The GNU C library defines this for functions which it implements
20948     to always fail with ENOSYS.  Some functions are actually named
20949     something starting with __ and the normal name is an alias.  */
20950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20951 choke me
20952 #else
20953 f = $ac_func;
20954 #endif
20955
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext conftest$ac_exeext
20961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20962   (eval $ac_link) 2>&5
20963   ac_status=$?
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); } &&
20966          { ac_try='test -s conftest$ac_exeext'
20967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968   (eval $ac_try) 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; }; then
20972   eval "$as_ac_var=yes"
20973 else
20974   echo "$as_me: failed program was:" >&5
20975 cat conftest.$ac_ext >&5
20976 eval "$as_ac_var=no"
20977 fi
20978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20979 fi
20980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20982 if test `eval echo '${'$as_ac_var'}'` = yes; then
20983   cat >>confdefs.h <<_ACEOF
20984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20985 _ACEOF
20986
20987 fi
20988 done
20989
20990 if test x"$ac_cv_func_crypt" = x"no"; then
20991     echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20992 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20993 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996   ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lcrypt  $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
20999 #line $LINENO "configure"
21000 #include "confdefs.h"
21001
21002 /* Override any gcc2 internal prototype to avoid an error.  */
21003 #ifdef __cplusplus
21004 extern "C"
21005 #endif
21006 /* We use char because int might match the return type of a gcc2
21007    builtin and then its argument prototype would still apply.  */
21008 char crypt ();
21009 int
21010 main ()
21011 {
21012 crypt ();
21013   ;
21014   return 0;
21015 }
21016 _ACEOF
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21019   (eval $ac_link) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -s conftest$ac_exeext'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; }; then
21029   ac_cv_lib_crypt_crypt=yes
21030 else
21031   echo "$as_me: failed program was:" >&5
21032 cat conftest.$ac_ext >&5
21033 ac_cv_lib_crypt_crypt=no
21034 fi
21035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21036 LIBS=$ac_check_lib_save_LIBS
21037 fi
21038 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21039 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
21040 if test $ac_cv_lib_crypt_crypt = yes; then
21041   AUTHLIBS="$AUTHLIBS -lcrypt";
21042
21043 cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_CRYPT 1
21045 _ACEOF
21046
21047 fi
21048
21049 fi
21050 fi
21051
21052 ##
21053 ## moved after the check for -lcrypt in order to
21054 ## ensure that the necessary libraries are included
21055 ## check checking for truncated salt.  Wrapped by the
21056 ## $with_pam_for_crypt variable as above   --jerry
21057 ##
21058 if test $with_pam_for_crypt = no; then
21059 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
21060 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
21061 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
21062   echo $ECHO_N "(cached) $ECHO_C" >&6
21063 else
21064
21065 crypt_LIBS="$LIBS"
21066 LIBS="$AUTHLIBS $LIBS"
21067 if test "$cross_compiling" = yes; then
21068   samba_cv_HAVE_TRUNCATED_SALT=cross
21069 else
21070   cat >conftest.$ac_ext <<_ACEOF
21071 #line $LINENO "configure"
21072 #include "confdefs.h"
21073 #include "${srcdir-.}/tests/crypttest.c"
21074 _ACEOF
21075 rm -f conftest$ac_exeext
21076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21077   (eval $ac_link) 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082   (eval $ac_try) 2>&5
21083   ac_status=$?
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); }; }; then
21086   samba_cv_HAVE_TRUNCATED_SALT=no
21087 else
21088   echo "$as_me: program exited with status $ac_status" >&5
21089 echo "$as_me: failed program was:" >&5
21090 cat conftest.$ac_ext >&5
21091 ( exit $ac_status )
21092 samba_cv_HAVE_TRUNCATED_SALT=yes
21093 fi
21094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21095 fi
21096 LIBS="$crypt_LIBS"
21097 fi
21098 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
21099 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
21100 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
21101
21102 cat >>confdefs.h <<\_ACEOF
21103 #define HAVE_TRUNCATED_SALT 1
21104 _ACEOF
21105
21106 fi
21107 fi
21108
21109 ########################################################################################
21110 ##
21111 ## TESTS FOR SAM BACKENDS.  KEEP THESE GROUPED TOGETHER
21112 ##
21113 ########################################################################################
21114
21115 #################################################
21116 # check for a LDAP password database configuration backwards compatibility
21117 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
21118 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
21119
21120 # Check whether --with-ldapsam or --without-ldapsam was given.
21121 if test "${with_ldapsam+set}" = set; then
21122   withval="$with_ldapsam"
21123    case "$withval" in
21124   yes)
21125     echo "$as_me:$LINENO: result: yes" >&5
21126 echo "${ECHO_T}yes" >&6
21127
21128 cat >>confdefs.h <<\_ACEOF
21129 #define WITH_LDAP_SAMCONFIG 1
21130 _ACEOF
21131
21132     ;;
21133   *)
21134     echo "$as_me:$LINENO: result: no" >&5
21135 echo "${ECHO_T}no" >&6
21136     ;;
21137   esac
21138 else
21139   echo "$as_me:$LINENO: result: no" >&5
21140 echo "${ECHO_T}no" >&6
21141
21142 fi;
21143
21144 #################################################
21145 # check for a TDB password database
21146 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
21147 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
21148
21149 # Check whether --with-tdbsam or --without-tdbsam was given.
21150 if test "${with_tdbsam+set}" = set; then
21151   withval="$with_tdbsam"
21152    case "$withval" in
21153   yes)
21154     echo "$as_me:$LINENO: result: yes" >&5
21155 echo "${ECHO_T}yes" >&6
21156
21157 cat >>confdefs.h <<\_ACEOF
21158 #define WITH_TDB_SAM 1
21159 _ACEOF
21160
21161     ;;
21162   *)
21163     echo "$as_me:$LINENO: result: no" >&5
21164 echo "${ECHO_T}no" >&6
21165     ;;
21166   esac
21167 else
21168   echo "$as_me:$LINENO: result: no" >&5
21169 echo "${ECHO_T}no" >&6
21170
21171 fi;
21172
21173 #################################################
21174 # check for a NISPLUS password database
21175 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
21176 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
21177
21178 # Check whether --with-nisplussam or --without-nisplussam was given.
21179 if test "${with_nisplussam+set}" = set; then
21180   withval="$with_nisplussam"
21181    case "$withval" in
21182   yes)
21183     echo "$as_me:$LINENO: result: yes" >&5
21184 echo "${ECHO_T}yes" >&6
21185
21186 cat >>confdefs.h <<\_ACEOF
21187 #define WITH_NISPLUS_SAM 1
21188 _ACEOF
21189
21190     ;;
21191   *)
21192     echo "$as_me:$LINENO: result: no" >&5
21193 echo "${ECHO_T}no" >&6
21194     ;;
21195   esac
21196 else
21197   echo "$as_me:$LINENO: result: no" >&5
21198 echo "${ECHO_T}no" >&6
21199
21200 fi;
21201
21202 ########################################################################################
21203 ##
21204 ## END OF TESTS FOR SAM BACKENDS.
21205 ##
21206 ########################################################################################
21207
21208 #################################################
21209 # check for a NISPLUS_HOME support
21210 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
21211 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
21212
21213 # Check whether --with-nisplus-home or --without-nisplus-home was given.
21214 if test "${with_nisplus_home+set}" = set; then
21215   withval="$with_nisplus_home"
21216    case "$withval" in
21217   yes)
21218     echo "$as_me:$LINENO: result: yes" >&5
21219 echo "${ECHO_T}yes" >&6
21220
21221 cat >>confdefs.h <<\_ACEOF
21222 #define WITH_NISPLUS_HOME 1
21223 _ACEOF
21224
21225     ;;
21226   *)
21227     echo "$as_me:$LINENO: result: no" >&5
21228 echo "${ECHO_T}no" >&6
21229     ;;
21230   esac
21231 else
21232   echo "$as_me:$LINENO: result: no" >&5
21233 echo "${ECHO_T}no" >&6
21234
21235 fi;
21236
21237 #################################################
21238 # check for syslog logging
21239 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
21240 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
21241
21242 # Check whether --with-syslog or --without-syslog was given.
21243 if test "${with_syslog+set}" = set; then
21244   withval="$with_syslog"
21245    case "$withval" in
21246   yes)
21247     echo "$as_me:$LINENO: result: yes" >&5
21248 echo "${ECHO_T}yes" >&6
21249
21250 cat >>confdefs.h <<\_ACEOF
21251 #define WITH_SYSLOG 1
21252 _ACEOF
21253
21254     ;;
21255   *)
21256     echo "$as_me:$LINENO: result: no" >&5
21257 echo "${ECHO_T}no" >&6
21258     ;;
21259   esac
21260 else
21261   echo "$as_me:$LINENO: result: no" >&5
21262 echo "${ECHO_T}no" >&6
21263
21264 fi;
21265
21266 #################################################
21267 # check for a shared memory profiling support
21268 echo "$as_me:$LINENO: checking whether to use profiling" >&5
21269 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
21270
21271 # Check whether --with-profiling-data or --without-profiling-data was given.
21272 if test "${with_profiling_data+set}" = set; then
21273   withval="$with_profiling_data"
21274    case "$withval" in
21275   yes)
21276     echo "$as_me:$LINENO: result: yes" >&5
21277 echo "${ECHO_T}yes" >&6
21278
21279 cat >>confdefs.h <<\_ACEOF
21280 #define WITH_PROFILE 1
21281 _ACEOF
21282
21283     ;;
21284   *)
21285     echo "$as_me:$LINENO: result: no" >&5
21286 echo "${ECHO_T}no" >&6
21287     ;;
21288   esac
21289 else
21290   echo "$as_me:$LINENO: result: no" >&5
21291 echo "${ECHO_T}no" >&6
21292
21293 fi;
21294
21295
21296 #################################################
21297 # check for experimental disk-quotas support
21298 QUOTAOBJS=smbd/noquotas.o
21299
21300 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
21301 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
21302
21303 # Check whether --with-quotas or --without-quotas was given.
21304 if test "${with_quotas+set}" = set; then
21305   withval="$with_quotas"
21306    case "$withval" in
21307   yes)
21308     echo "$as_me:$LINENO: result: yes" >&5
21309 echo "${ECHO_T}yes" >&6
21310     case "$host_os" in
21311       *linux*)
21312         # Check for kernel 2.4.x quota braindamage...
21313         echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
21314 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
21315 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
21316   echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318
21319         cat >conftest.$ac_ext <<_ACEOF
21320 #line $LINENO "configure"
21321 #include "confdefs.h"
21322 #include <stdio.h>
21323 #include <sys/types.h>
21324 #include <asm/types.h>
21325 #include <linux/quota.h>
21326 #include <mntent.h>
21327 #include <linux/unistd.h>
21328 int
21329 main ()
21330 {
21331 struct mem_dqblk D;
21332   ;
21333   return 0;
21334 }
21335 _ACEOF
21336 rm -f conftest.$ac_objext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338   (eval $ac_compile) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } &&
21342          { ac_try='test -s conftest.$ac_objext'
21343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344   (eval $ac_try) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   samba_cv_linux_2_4_quota_braindamage=yes
21349 else
21350   echo "$as_me: failed program was:" >&5
21351 cat conftest.$ac_ext >&5
21352 samba_cv_linux_2_4_quota_braindamage=no
21353 fi
21354 rm -f conftest.$ac_objext conftest.$ac_ext
21355 fi
21356 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
21357 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
21358 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
21359
21360 cat >>confdefs.h <<\_ACEOF
21361 #define LINUX_QUOTAS_2 1
21362 _ACEOF
21363
21364 else
21365
21366 cat >>confdefs.h <<\_ACEOF
21367 #define LINUX_QUOTAS_1 1
21368 _ACEOF
21369
21370 fi
21371         ;;
21372       *)
21373         ;;
21374     esac
21375     QUOTAOBJS=smbd/quotas.o
21376
21377 cat >>confdefs.h <<\_ACEOF
21378 #define WITH_QUOTAS 1
21379 _ACEOF
21380
21381     ;;
21382   *)
21383     echo "$as_me:$LINENO: result: no" >&5
21384 echo "${ECHO_T}no" >&6
21385     ;;
21386   esac
21387 else
21388   echo "$as_me:$LINENO: result: no" >&5
21389 echo "${ECHO_T}no" >&6
21390
21391 fi;
21392
21393
21394 #################################################
21395 # check for experimental utmp accounting
21396
21397 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
21398 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
21399
21400 # Check whether --with-utmp or --without-utmp was given.
21401 if test "${with_utmp+set}" = set; then
21402   withval="$with_utmp"
21403    case "$withval" in
21404   yes)
21405     echo "$as_me:$LINENO: result: yes" >&5
21406 echo "${ECHO_T}yes" >&6
21407
21408 cat >>confdefs.h <<\_ACEOF
21409 #define WITH_UTMP 1
21410 _ACEOF
21411
21412     ;;
21413   *)
21414     echo "$as_me:$LINENO: result: no" >&5
21415 echo "${ECHO_T}no" >&6
21416     ;;
21417   esac
21418 else
21419   echo "$as_me:$LINENO: result: no" >&5
21420 echo "${ECHO_T}no" >&6
21421
21422 fi;
21423
21424 #################################################
21425 # choose native language(s) of man pages
21426 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
21427 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
21428
21429 # Check whether --with-manpages-langs or --without-manpages-langs was given.
21430 if test "${with_manpages_langs+set}" = set; then
21431   withval="$with_manpages_langs"
21432    case "$withval" in
21433   yes|no)
21434     { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
21435 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
21436     manlangs="en"
21437   ;;
21438   *)
21439     manlangs="$withval"
21440   ;;
21441   esac
21442
21443   echo "$as_me:$LINENO: result: $manlangs" >&5
21444 echo "${ECHO_T}$manlangs" >&6
21445   manlangs=`echo $manlangs | sed "s/,/ /g"`   # replacing commas with spaces to produce a list
21446
21447 else
21448   manlangs="en"
21449   echo "$as_me:$LINENO: result: $manlangs" >&5
21450 echo "${ECHO_T}$manlangs" >&6
21451
21452
21453 fi;
21454
21455 #################################################
21456 # should we build libsmbclient?
21457
21458 LIBSMBCLIENT_SHARED=
21459 LIBSMBCLIENT=
21460 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
21461 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
21462
21463 # Check whether --with-libsmbclient or --without-libsmbclient was given.
21464 if test "${with_libsmbclient+set}" = set; then
21465   withval="$with_libsmbclient"
21466    case "$withval" in
21467   no)
21468      echo "$as_me:$LINENO: result: no" >&5
21469 echo "${ECHO_T}no" >&6
21470      ;;
21471   *)
21472      if test $BLDSHARED = true; then
21473         LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
21474         LIBSMBCLIENT=libsmbclient
21475         echo "$as_me:$LINENO: result: yes" >&5
21476 echo "${ECHO_T}yes" >&6
21477      else
21478         echo "$as_me:$LINENO: result: no shared library support" >&5
21479 echo "${ECHO_T}no shared library support" >&6
21480      fi
21481      ;;
21482   esac
21483 else
21484   echo "$as_me:$LINENO: result: yes" >&5
21485 echo "${ECHO_T}yes" >&6
21486
21487 fi;
21488
21489
21490 #################################################
21491 # these tests are taken from the GNU fileutils package
21492 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
21493 echo "$as_me: checking how to get filesystem space usage..." >&6;}
21494 space=no
21495
21496 # Test for statvfs64.
21497 if test $space = no; then
21498   # SVR4
21499   echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
21500 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
21501 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
21502   echo $ECHO_N "(cached) $ECHO_C" >&6
21503 else
21504   if test "$cross_compiling" = yes; then
21505   fu_cv_sys_stat_statvfs64=cross
21506 else
21507   cat >conftest.$ac_ext <<_ACEOF
21508 #line $LINENO "configure"
21509 #include "confdefs.h"
21510
21511 #if defined(HAVE_UNISTD_H)
21512 #include <unistd.h>
21513 #endif
21514 #include <sys/types.h>
21515 #include <sys/statvfs.h>
21516   main ()
21517   {
21518     struct statvfs64 fsd;
21519     exit (statvfs64 (".", &fsd));
21520   }
21521 _ACEOF
21522 rm -f conftest$ac_exeext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21524   (eval $ac_link) 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529   (eval $ac_try) 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; }; then
21533   fu_cv_sys_stat_statvfs64=yes
21534 else
21535   echo "$as_me: program exited with status $ac_status" >&5
21536 echo "$as_me: failed program was:" >&5
21537 cat conftest.$ac_ext >&5
21538 ( exit $ac_status )
21539 fu_cv_sys_stat_statvfs64=no
21540 fi
21541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21542 fi
21543 fi
21544 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
21545 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
21546   if test $fu_cv_sys_stat_statvfs64 = yes; then
21547     space=yes
21548
21549 cat >>confdefs.h <<\_ACEOF
21550 #define STAT_STATVFS64 1
21551 _ACEOF
21552
21553   fi
21554 fi
21555
21556 # Perform only the link test since it seems there are no variants of the
21557 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
21558 # because that got a false positive on SCO OSR5.  Adding the declaration
21559 # of a `struct statvfs' causes this test to fail (as it should) on such
21560 # systems.  That system is reported to work fine with STAT_STATFS4 which
21561 # is what it gets when this test fails.
21562 if test $space = no; then
21563   # SVR4
21564   echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
21565 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
21566 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
21567   echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569   cat >conftest.$ac_ext <<_ACEOF
21570 #line $LINENO "configure"
21571 #include "confdefs.h"
21572 #include <sys/types.h>
21573 #include <sys/statvfs.h>
21574 int
21575 main ()
21576 {
21577 struct statvfs fsd; statvfs (0, &fsd);
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584   (eval $ac_link) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } &&
21588          { ac_try='test -s conftest$ac_exeext'
21589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590   (eval $ac_try) 2>&5
21591   ac_status=$?
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); }; }; then
21594   fu_cv_sys_stat_statvfs=yes
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 cat conftest.$ac_ext >&5
21598 fu_cv_sys_stat_statvfs=no
21599 fi
21600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21601 fi
21602 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
21603 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
21604   if test $fu_cv_sys_stat_statvfs = yes; then
21605     space=yes
21606
21607 cat >>confdefs.h <<\_ACEOF
21608 #define STAT_STATVFS 1
21609 _ACEOF
21610
21611   fi
21612 fi
21613
21614 if test $space = no; then
21615   # DEC Alpha running OSF/1
21616   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
21617 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
21618   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
21619   echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621   if test "$cross_compiling" = yes; then
21622   fu_cv_sys_stat_statfs3_osf1=no
21623 else
21624   cat >conftest.$ac_ext <<_ACEOF
21625 #line $LINENO "configure"
21626 #include "confdefs.h"
21627
21628 #include <sys/param.h>
21629 #include <sys/types.h>
21630 #include <sys/mount.h>
21631   main ()
21632   {
21633     struct statfs fsd;
21634     fsd.f_fsize = 0;
21635     exit (statfs (".", &fsd, sizeof (struct statfs)));
21636   }
21637 _ACEOF
21638 rm -f conftest$ac_exeext
21639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21640   (eval $ac_link) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645   (eval $ac_try) 2>&5
21646   ac_status=$?
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); }; }; then
21649   fu_cv_sys_stat_statfs3_osf1=yes
21650 else
21651   echo "$as_me: program exited with status $ac_status" >&5
21652 echo "$as_me: failed program was:" >&5
21653 cat conftest.$ac_ext >&5
21654 ( exit $ac_status )
21655 fu_cv_sys_stat_statfs3_osf1=no
21656 fi
21657 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21658 fi
21659 fi
21660
21661   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
21662 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
21663   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
21664     space=yes
21665
21666 cat >>confdefs.h <<\_ACEOF
21667 #define STAT_STATFS3_OSF1 1
21668 _ACEOF
21669
21670   fi
21671 fi
21672
21673 if test $space = no; then
21674 # AIX
21675   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
21676 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
21677   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
21678   echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680   if test "$cross_compiling" = yes; then
21681   fu_cv_sys_stat_statfs2_bsize=no
21682 else
21683   cat >conftest.$ac_ext <<_ACEOF
21684 #line $LINENO "configure"
21685 #include "confdefs.h"
21686
21687 #ifdef HAVE_SYS_PARAM_H
21688 #include <sys/param.h>
21689 #endif
21690 #ifdef HAVE_SYS_MOUNT_H
21691 #include <sys/mount.h>
21692 #endif
21693 #ifdef HAVE_SYS_VFS_H
21694 #include <sys/vfs.h>
21695 #endif
21696   main ()
21697   {
21698   struct statfs fsd;
21699   fsd.f_bsize = 0;
21700   exit (statfs (".", &fsd));
21701   }
21702 _ACEOF
21703 rm -f conftest$ac_exeext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21705   (eval $ac_link) 2>&5
21706   ac_status=$?
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710   (eval $ac_try) 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); }; }; then
21714   fu_cv_sys_stat_statfs2_bsize=yes
21715 else
21716   echo "$as_me: program exited with status $ac_status" >&5
21717 echo "$as_me: failed program was:" >&5
21718 cat conftest.$ac_ext >&5
21719 ( exit $ac_status )
21720 fu_cv_sys_stat_statfs2_bsize=no
21721 fi
21722 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21723 fi
21724 fi
21725
21726   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
21727 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
21728   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
21729     space=yes
21730
21731 cat >>confdefs.h <<\_ACEOF
21732 #define STAT_STATFS2_BSIZE 1
21733 _ACEOF
21734
21735   fi
21736 fi
21737
21738 if test $space = no; then
21739 # SVR3
21740   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
21741 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
21742   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745   if test "$cross_compiling" = yes; then
21746   fu_cv_sys_stat_statfs4=no
21747 else
21748   cat >conftest.$ac_ext <<_ACEOF
21749 #line $LINENO "configure"
21750 #include "confdefs.h"
21751 #include <sys/types.h>
21752 #include <sys/statfs.h>
21753   main ()
21754   {
21755   struct statfs fsd;
21756   exit (statfs (".", &fsd, sizeof fsd, 0));
21757   }
21758 _ACEOF
21759 rm -f conftest$ac_exeext
21760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21761   (eval $ac_link) 2>&5
21762   ac_status=$?
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766   (eval $ac_try) 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; }; then
21770   fu_cv_sys_stat_statfs4=yes
21771 else
21772   echo "$as_me: program exited with status $ac_status" >&5
21773 echo "$as_me: failed program was:" >&5
21774 cat conftest.$ac_ext >&5
21775 ( exit $ac_status )
21776 fu_cv_sys_stat_statfs4=no
21777 fi
21778 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21779 fi
21780 fi
21781
21782   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
21783 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
21784   if test $fu_cv_sys_stat_statfs4 = yes; then
21785     space=yes
21786
21787 cat >>confdefs.h <<\_ACEOF
21788 #define STAT_STATFS4 1
21789 _ACEOF
21790
21791   fi
21792 fi
21793
21794 if test $space = no; then
21795 # 4.4BSD and NetBSD
21796   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
21797 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
21798   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
21799   echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801   if test "$cross_compiling" = yes; then
21802   fu_cv_sys_stat_statfs2_fsize=no
21803 else
21804   cat >conftest.$ac_ext <<_ACEOF
21805 #line $LINENO "configure"
21806 #include "confdefs.h"
21807 #include <sys/types.h>
21808 #ifdef HAVE_SYS_PARAM_H
21809 #include <sys/param.h>
21810 #endif
21811 #ifdef HAVE_SYS_MOUNT_H
21812 #include <sys/mount.h>
21813 #endif
21814   main ()
21815   {
21816   struct statfs fsd;
21817   fsd.f_fsize = 0;
21818   exit (statfs (".", &fsd));
21819   }
21820 _ACEOF
21821 rm -f conftest$ac_exeext
21822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21823   (eval $ac_link) 2>&5
21824   ac_status=$?
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828   (eval $ac_try) 2>&5
21829   ac_status=$?
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); }; }; then
21832   fu_cv_sys_stat_statfs2_fsize=yes
21833 else
21834   echo "$as_me: program exited with status $ac_status" >&5
21835 echo "$as_me: failed program was:" >&5
21836 cat conftest.$ac_ext >&5
21837 ( exit $ac_status )
21838 fu_cv_sys_stat_statfs2_fsize=no
21839 fi
21840 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21841 fi
21842 fi
21843
21844   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
21845 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
21846   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
21847     space=yes
21848
21849 cat >>confdefs.h <<\_ACEOF
21850 #define STAT_STATFS2_FSIZE 1
21851 _ACEOF
21852
21853   fi
21854 fi
21855
21856 if test $space = no; then
21857   # Ultrix
21858   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
21859 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
21860   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863   if test "$cross_compiling" = yes; then
21864   fu_cv_sys_stat_fs_data=no
21865 else
21866   cat >conftest.$ac_ext <<_ACEOF
21867 #line $LINENO "configure"
21868 #include "confdefs.h"
21869 #include <sys/types.h>
21870 #ifdef HAVE_SYS_PARAM_H
21871 #include <sys/param.h>
21872 #endif
21873 #ifdef HAVE_SYS_MOUNT_H
21874 #include <sys/mount.h>
21875 #endif
21876 #ifdef HAVE_SYS_FS_TYPES_H
21877 #include <sys/fs_types.h>
21878 #endif
21879   main ()
21880   {
21881   struct fs_data fsd;
21882   /* Ultrix's statfs returns 1 for success,
21883      0 for not mounted, -1 for failure.  */
21884   exit (statfs (".", &fsd) != 1);
21885   }
21886 _ACEOF
21887 rm -f conftest$ac_exeext
21888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21889   (eval $ac_link) 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894   (eval $ac_try) 2>&5
21895   ac_status=$?
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); }; }; then
21898   fu_cv_sys_stat_fs_data=yes
21899 else
21900   echo "$as_me: program exited with status $ac_status" >&5
21901 echo "$as_me: failed program was:" >&5
21902 cat conftest.$ac_ext >&5
21903 ( exit $ac_status )
21904 fu_cv_sys_stat_fs_data=no
21905 fi
21906 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21907 fi
21908 fi
21909
21910   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
21911 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
21912   if test $fu_cv_sys_stat_fs_data = yes; then
21913     space=yes
21914
21915 cat >>confdefs.h <<\_ACEOF
21916 #define STAT_STATFS2_FS_DATA 1
21917 _ACEOF
21918
21919   fi
21920 fi
21921
21922 #
21923 # As a gating factor for large file support, in order to
21924 # use <4GB files we must have the following minimal support
21925 # available.
21926 # long long, and a 64 bit off_t or off64_t.
21927 # If we don't have all of these then disable large
21928 # file support.
21929 #
21930 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
21931 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
21932 cat >conftest.$ac_ext <<_ACEOF
21933 #line $LINENO "configure"
21934 #include "confdefs.h"
21935
21936 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
21937 #include <sys/types.h>
21938 #else
21939 __COMPILE_ERROR_
21940 #endif
21941
21942 int
21943 main ()
21944 {
21945 int i
21946   ;
21947   return 0;
21948 }
21949 _ACEOF
21950 rm -f conftest.$ac_objext
21951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21952   (eval $ac_compile) 2>&5
21953   ac_status=$?
21954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955   (exit $ac_status); } &&
21956          { ac_try='test -s conftest.$ac_objext'
21957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958   (eval $ac_try) 2>&5
21959   ac_status=$?
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); }; }; then
21962   samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
21963 else
21964   echo "$as_me: failed program was:" >&5
21965 cat conftest.$ac_ext >&5
21966 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
21967 fi
21968 rm -f conftest.$ac_objext conftest.$ac_ext
21969 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
21970
21971 cat >>confdefs.h <<\_ACEOF
21972 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
21973 _ACEOF
21974
21975 fi
21976 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
21977 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
21978
21979
21980 # Check whether --with-spinlocks or --without-spinlocks was given.
21981 if test "${with_spinlocks+set}" = set; then
21982   withval="$with_spinlocks"
21983
21984 fi;
21985 if test "x$with_spinlocks" = "xyes"; then
21986
21987 cat >>confdefs.h <<\_ACEOF
21988 #define USE_SPINLOCKS 1
21989 _ACEOF
21990
21991
21992     case "$host_cpu" in
21993         sparc)
21994
21995 cat >>confdefs.h <<\_ACEOF
21996 #define SPARC_SPINLOCKS 1
21997 _ACEOF
21998
21999             ;;
22000
22001         i386|i486|i586|i686)
22002
22003 cat >>confdefs.h <<\_ACEOF
22004 #define INTEL_SPINLOCKS 1
22005 _ACEOF
22006
22007             ;;
22008
22009         mips)
22010
22011 cat >>confdefs.h <<\_ACEOF
22012 #define MIPS_SPINLOCKS 1
22013 _ACEOF
22014
22015             ;;
22016
22017         powerpc)
22018
22019 cat >>confdefs.h <<\_ACEOF
22020 #define POWERPC_SPINLOCKS 1
22021 _ACEOF
22022
22023             ;;
22024     esac
22025 fi
22026
22027 #################################################
22028 # check for ACL support
22029
22030 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
22031 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
22032
22033 # Check whether --with-acl-support or --without-acl-support was given.
22034 if test "${with_acl_support+set}" = set; then
22035   withval="$with_acl_support"
22036    case "$withval" in
22037   yes)
22038
22039         case "$host_os" in
22040         *sysv5*)
22041                 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
22042 echo "${ECHO_T}Using UnixWare ACLs" >&6
22043
22044 cat >>confdefs.h <<\_ACEOF
22045 #define HAVE_UNIXWARE_ACLS 1
22046 _ACEOF
22047
22048                 ;;
22049         *solaris*)
22050                 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
22051 echo "${ECHO_T}Using solaris ACLs" >&6
22052
22053 cat >>confdefs.h <<\_ACEOF
22054 #define HAVE_SOLARIS_ACLS 1
22055 _ACEOF
22056
22057                 ;;
22058         *hpux*)
22059                 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
22060 echo "${ECHO_T}Using HPUX ACLs" >&6
22061
22062 cat >>confdefs.h <<\_ACEOF
22063 #define HAVE_HPUX_ACLS 1
22064 _ACEOF
22065
22066                 ;;
22067         *irix*)
22068                 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
22069 echo "${ECHO_T}Using IRIX ACLs" >&6
22070
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_IRIX_ACLS 1
22073 _ACEOF
22074
22075                 ;;
22076         *aix*)
22077                 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
22078 echo "${ECHO_T}Using AIX ACLs" >&6
22079
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_AIX_ACLS 1
22082 _ACEOF
22083
22084                 ;;
22085         *osf*)
22086                 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
22087 echo "${ECHO_T}Using Tru64 ACLs" >&6
22088
22089 cat >>confdefs.h <<\_ACEOF
22090 #define HAVE_TRU64_ACLS 1
22091 _ACEOF
22092
22093                 LIBS="$LIBS -lpacl"
22094                 ;;
22095         *)
22096
22097 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22098 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22099 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22100   echo $ECHO_N "(cached) $ECHO_C" >&6
22101 else
22102   ac_check_lib_save_LIBS=$LIBS
22103 LIBS="-lacl  $LIBS"
22104 cat >conftest.$ac_ext <<_ACEOF
22105 #line $LINENO "configure"
22106 #include "confdefs.h"
22107
22108 /* Override any gcc2 internal prototype to avoid an error.  */
22109 #ifdef __cplusplus
22110 extern "C"
22111 #endif
22112 /* We use char because int might match the return type of a gcc2
22113    builtin and then its argument prototype would still apply.  */
22114 char acl_get_file ();
22115 int
22116 main ()
22117 {
22118 acl_get_file ();
22119   ;
22120   return 0;
22121 }
22122 _ACEOF
22123 rm -f conftest.$ac_objext conftest$ac_exeext
22124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22125   (eval $ac_link) 2>&5
22126   ac_status=$?
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); } &&
22129          { ac_try='test -s conftest$ac_exeext'
22130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131   (eval $ac_try) 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); }; }; then
22135   ac_cv_lib_acl_acl_get_file=yes
22136 else
22137   echo "$as_me: failed program was:" >&5
22138 cat conftest.$ac_ext >&5
22139 ac_cv_lib_acl_acl_get_file=no
22140 fi
22141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22142 LIBS=$ac_check_lib_save_LIBS
22143 fi
22144 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22145 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22146 if test $ac_cv_lib_acl_acl_get_file = yes; then
22147   cat >>confdefs.h <<_ACEOF
22148 #define HAVE_LIBACL 1
22149 _ACEOF
22150
22151   LIBS="-lacl $LIBS"
22152
22153 fi
22154
22155                 echo "$as_me:$LINENO: checking for ACL support" >&5
22156 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
22157 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
22158   echo $ECHO_N "(cached) $ECHO_C" >&6
22159 else
22160
22161                 cat >conftest.$ac_ext <<_ACEOF
22162 #line $LINENO "configure"
22163 #include "confdefs.h"
22164 #include <sys/types.h>
22165 #include <sys/acl.h>
22166 int
22167 main ()
22168 {
22169  acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 rm -f conftest.$ac_objext conftest$ac_exeext
22175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22176   (eval $ac_link) 2>&5
22177   ac_status=$?
22178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179   (exit $ac_status); } &&
22180          { ac_try='test -s conftest$ac_exeext'
22181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182   (eval $ac_try) 2>&5
22183   ac_status=$?
22184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185   (exit $ac_status); }; }; then
22186   samba_cv_HAVE_POSIX_ACLS=yes
22187 else
22188   echo "$as_me: failed program was:" >&5
22189 cat conftest.$ac_ext >&5
22190 samba_cv_HAVE_POSIX_ACLS=no
22191 fi
22192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22193 fi
22194 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
22195 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
22196                         if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
22197                                 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
22198 echo "${ECHO_T}Using posix ACLs" >&6
22199
22200 cat >>confdefs.h <<\_ACEOF
22201 #define HAVE_POSIX_ACLS 1
22202 _ACEOF
22203
22204                                 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
22205 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
22206 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
22207   echo $ECHO_N "(cached) $ECHO_C" >&6
22208 else
22209
22210                                 cat >conftest.$ac_ext <<_ACEOF
22211 #line $LINENO "configure"
22212 #include "confdefs.h"
22213 #include <sys/types.h>
22214 #include <sys/acl.h>
22215 int
22216 main ()
22217 {
22218  acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
22219   ;
22220   return 0;
22221 }
22222 _ACEOF
22223 rm -f conftest.$ac_objext conftest$ac_exeext
22224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22225   (eval $ac_link) 2>&5
22226   ac_status=$?
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); } &&
22229          { ac_try='test -s conftest$ac_exeext'
22230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231   (eval $ac_try) 2>&5
22232   ac_status=$?
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); }; }; then
22235   samba_cv_HAVE_ACL_GET_PERM_NP=yes
22236 else
22237   echo "$as_me: failed program was:" >&5
22238 cat conftest.$ac_ext >&5
22239 samba_cv_HAVE_ACL_GET_PERM_NP=no
22240 fi
22241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22242 fi
22243 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
22244 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
22245                                 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
22246
22247 cat >>confdefs.h <<\_ACEOF
22248 #define HAVE_ACL_GET_PERM_NP 1
22249 _ACEOF
22250
22251                                 fi
22252                         fi
22253             ;;
22254         esac
22255         ;;
22256   *)
22257     echo "$as_me:$LINENO: result: no" >&5
22258 echo "${ECHO_T}no" >&6
22259
22260 cat >>confdefs.h <<\_ACEOF
22261 #define HAVE_NO_ACLS 1
22262 _ACEOF
22263
22264     ;;
22265   esac
22266 else
22267
22268 cat >>confdefs.h <<\_ACEOF
22269 #define HAVE_NO_ACLS 1
22270 _ACEOF
22271
22272   echo "$as_me:$LINENO: result: no" >&5
22273 echo "${ECHO_T}no" >&6
22274
22275 fi;
22276
22277 #################################################
22278 # check for sendfile support
22279
22280 with_sendfile_support=yes
22281 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
22282 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
22283
22284 # Check whether --with-sendfile-support or --without-sendfile-support was given.
22285 if test "${with_sendfile_support+set}" = set; then
22286   withval="$with_sendfile_support"
22287    case "$withval" in
22288   yes)
22289
22290         echo "$as_me:$LINENO: result: yes" >&5
22291 echo "${ECHO_T}yes" >&6;
22292
22293         case "$host_os" in
22294         *linux*)
22295                 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
22296 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
22297 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
22298   echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300
22301                 cat >conftest.$ac_ext <<_ACEOF
22302 #line $LINENO "configure"
22303 #include "confdefs.h"
22304 #include <sys/sendfile.h>
22305 int
22306 main ()
22307 {
22308 \
22309 int tofd, fromfd;
22310 off64_t offset;
22311 size_t total;
22312 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
22313
22314   ;
22315   return 0;
22316 }
22317 _ACEOF
22318 rm -f conftest.$ac_objext conftest$ac_exeext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320   (eval $ac_link) 2>&5
22321   ac_status=$?
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); } &&
22324          { ac_try='test -s conftest$ac_exeext'
22325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326   (eval $ac_try) 2>&5
22327   ac_status=$?
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); }; }; then
22330   samba_cv_HAVE_SENDFILE64=yes
22331 else
22332   echo "$as_me: failed program was:" >&5
22333 cat conftest.$ac_ext >&5
22334 samba_cv_HAVE_SENDFILE64=no
22335 fi
22336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22337 fi
22338 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
22339 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
22340
22341                 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
22342 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
22343 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346
22347                 cat >conftest.$ac_ext <<_ACEOF
22348 #line $LINENO "configure"
22349 #include "confdefs.h"
22350 #include <sys/sendfile.h>
22351 int
22352 main ()
22353 {
22354 \
22355 int tofd, fromfd;
22356 off_t offset;
22357 size_t total;
22358 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
22359
22360   ;
22361   return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22366   (eval $ac_link) 2>&5
22367   ac_status=$?
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); } &&
22370          { ac_try='test -s conftest$ac_exeext'
22371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372   (eval $ac_try) 2>&5
22373   ac_status=$?
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); }; }; then
22376   samba_cv_HAVE_SENDFILE=yes
22377 else
22378   echo "$as_me: failed program was:" >&5
22379 cat conftest.$ac_ext >&5
22380 samba_cv_HAVE_SENDFILE=no
22381 fi
22382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22383 fi
22384 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22385 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22386
22387 # Try and cope with broken Linux sendfile....
22388                 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
22389 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
22390 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
22391   echo $ECHO_N "(cached) $ECHO_C" >&6
22392 else
22393
22394                 cat >conftest.$ac_ext <<_ACEOF
22395 #line $LINENO "configure"
22396 #include "confdefs.h"
22397 \
22398 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
22399 #undef _FILE_OFFSET_BITS
22400 #endif
22401 #include <sys/sendfile.h>
22402 int
22403 main ()
22404 {
22405 \
22406 int tofd, fromfd;
22407 off_t offset;
22408 size_t total;
22409 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
22410
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext conftest$ac_exeext
22416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22417   (eval $ac_link) 2>&5
22418   ac_status=$?
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); } &&
22421          { ac_try='test -s conftest$ac_exeext'
22422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423   (eval $ac_try) 2>&5
22424   ac_status=$?
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); }; }; then
22427   samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
22428 else
22429   echo "$as_me: failed program was:" >&5
22430 cat conftest.$ac_ext >&5
22431 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
22432 fi
22433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22434 fi
22435 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
22436 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
22437
22438         if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
22439
22440 cat >>confdefs.h <<\_ACEOF
22441 #define HAVE_SENDFILE64 1
22442 _ACEOF
22443
22444
22445 cat >>confdefs.h <<\_ACEOF
22446 #define LINUX_SENDFILE_API 1
22447 _ACEOF
22448
22449
22450 cat >>confdefs.h <<\_ACEOF
22451 #define WITH_SENDFILE 1
22452 _ACEOF
22453
22454         elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22455
22456 cat >>confdefs.h <<\_ACEOF
22457 #define HAVE_SENDFILE 1
22458 _ACEOF
22459
22460
22461 cat >>confdefs.h <<\_ACEOF
22462 #define LINUX_SENDFILE_API 1
22463 _ACEOF
22464
22465
22466 cat >>confdefs.h <<\_ACEOF
22467 #define WITH_SENDFILE 1
22468 _ACEOF
22469
22470         elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
22471
22472 cat >>confdefs.h <<\_ACEOF
22473 #define LINUX_BROKEN_SENDFILE_API 1
22474 _ACEOF
22475
22476
22477 cat >>confdefs.h <<\_ACEOF
22478 #define WITH_SENDFILE 1
22479 _ACEOF
22480
22481         else
22482                 echo "$as_me:$LINENO: result: no" >&5
22483 echo "${ECHO_T}no" >&6;
22484         fi
22485
22486         ;;
22487         *freebsd*)
22488                 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
22489 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
22490 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22491   echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493
22494                 cat >conftest.$ac_ext <<_ACEOF
22495 #line $LINENO "configure"
22496 #include "confdefs.h"
22497 \
22498 #include <sys/types.h>
22499 #include <sys/socket.h>
22500 #include <sys/uio.h>
22501 int
22502 main ()
22503 {
22504 \
22505         int fromfd, tofd;
22506         off_t offset, nwritten;
22507         struct sf_hdtr hdr;
22508         struct iovec hdtrl;
22509         hdr->headers = &hdtrl;
22510         hdr->hdr_cnt = 1;
22511         hdr->trailers = NULL;
22512         hdr->trl_cnt = 0;
22513         hdtrl.iov_base = NULL;
22514         hdtrl.iov_len = 0;
22515         int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
22516
22517   ;
22518   return 0;
22519 }
22520 _ACEOF
22521 rm -f conftest.$ac_objext conftest$ac_exeext
22522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22523   (eval $ac_link) 2>&5
22524   ac_status=$?
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); } &&
22527          { ac_try='test -s conftest$ac_exeext'
22528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529   (eval $ac_try) 2>&5
22530   ac_status=$?
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); }; }; then
22533   samba_cv_HAVE_SENDFILE=yes
22534 else
22535   echo "$as_me: failed program was:" >&5
22536 cat conftest.$ac_ext >&5
22537 samba_cv_HAVE_SENDFILE=no
22538 fi
22539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22540 fi
22541 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22542 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22543
22544         if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22545
22546 cat >>confdefs.h <<\_ACEOF
22547 #define HAVE_SENDFILE 1
22548 _ACEOF
22549
22550
22551 cat >>confdefs.h <<\_ACEOF
22552 #define FREEBSD_SENDFILE_API 1
22553 _ACEOF
22554
22555
22556 cat >>confdefs.h <<\_ACEOF
22557 #define WITH_SENDFILE 1
22558 _ACEOF
22559
22560         else
22561                 echo "$as_me:$LINENO: result: no" >&5
22562 echo "${ECHO_T}no" >&6;
22563         fi
22564         ;;
22565
22566         *hpux*)
22567                 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
22568 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
22569 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
22570   echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572
22573                 cat >conftest.$ac_ext <<_ACEOF
22574 #line $LINENO "configure"
22575 #include "confdefs.h"
22576 \
22577 #include <sys/socket.h>
22578 #include <sys/uio.h>
22579 int
22580 main ()
22581 {
22582 \
22583         int fromfd, tofd;
22584         size_t total=0;
22585         struct iovec hdtrl[2];
22586         ssize_t nwritten;
22587         off64_t offset;
22588
22589         hdtrl[0].iov_base = 0;
22590         hdtrl[0].iov_len = 0;
22591
22592         nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
22593
22594   ;
22595   return 0;
22596 }
22597 _ACEOF
22598 rm -f conftest.$ac_objext conftest$ac_exeext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22600   (eval $ac_link) 2>&5
22601   ac_status=$?
22602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); } &&
22604          { ac_try='test -s conftest$ac_exeext'
22605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606   (eval $ac_try) 2>&5
22607   ac_status=$?
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); }; }; then
22610   samba_cv_HAVE_SENDFILE64=yes
22611 else
22612   echo "$as_me: failed program was:" >&5
22613 cat conftest.$ac_ext >&5
22614 samba_cv_HAVE_SENDFILE64=no
22615 fi
22616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22617 fi
22618 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
22619 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
22620         if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
22621
22622 cat >>confdefs.h <<\_ACEOF
22623 #define HAVE_SENDFILE64 1
22624 _ACEOF
22625
22626
22627 cat >>confdefs.h <<\_ACEOF
22628 #define HPUX_SENDFILE_API 1
22629 _ACEOF
22630
22631
22632 cat >>confdefs.h <<\_ACEOF
22633 #define WITH_SENDFILE 1
22634 _ACEOF
22635
22636         else
22637                 echo "$as_me:$LINENO: result: no" >&5
22638 echo "${ECHO_T}no" >&6;
22639         fi
22640
22641                 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
22642 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
22643 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22644   echo $ECHO_N "(cached) $ECHO_C" >&6
22645 else
22646
22647                 cat >conftest.$ac_ext <<_ACEOF
22648 #line $LINENO "configure"
22649 #include "confdefs.h"
22650 \
22651 #include <sys/socket.h>
22652 #include <sys/uio.h>
22653 int
22654 main ()
22655 {
22656 \
22657         int fromfd, tofd;
22658         size_t total=0;
22659         struct iovec hdtrl[2];
22660         ssize_t nwritten;
22661         off_t offset;
22662
22663         hdtrl[0].iov_base = 0;
22664         hdtrl[0].iov_len = 0;
22665
22666         nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
22667
22668   ;
22669   return 0;
22670 }
22671 _ACEOF
22672 rm -f conftest.$ac_objext conftest$ac_exeext
22673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22674   (eval $ac_link) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); } &&
22678          { ac_try='test -s conftest$ac_exeext'
22679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680   (eval $ac_try) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); }; }; then
22684   samba_cv_HAVE_SENDFILE=yes
22685 else
22686   echo "$as_me: failed program was:" >&5
22687 cat conftest.$ac_ext >&5
22688 samba_cv_HAVE_SENDFILE=no
22689 fi
22690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22691 fi
22692 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22693 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22694         if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22695
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_SENDFILE 1
22698 _ACEOF
22699
22700
22701 cat >>confdefs.h <<\_ACEOF
22702 #define HPUX_SENDFILE_API 1
22703 _ACEOF
22704
22705
22706 cat >>confdefs.h <<\_ACEOF
22707 #define WITH_SENDFILE 1
22708 _ACEOF
22709
22710         else
22711                 echo "$as_me:$LINENO: result: no" >&5
22712 echo "${ECHO_T}no" >&6;
22713         fi
22714         ;;
22715
22716         *solaris*)
22717                 LIBS="$LIBS -lsendfile"
22718                 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
22719 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
22720 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
22721   echo $ECHO_N "(cached) $ECHO_C" >&6
22722 else
22723
22724                 cat >conftest.$ac_ext <<_ACEOF
22725 #line $LINENO "configure"
22726 #include "confdefs.h"
22727 \
22728 #include <sys/sendfile.h>
22729 int
22730 main ()
22731 {
22732 \
22733         int sfvcnt;
22734         size_t xferred;
22735         struct sendfilevec vec[2];
22736         ssize_t nwritten;
22737         int tofd;
22738
22739         sfvcnt = 2;
22740
22741         vec[0].sfv_fd = SFV_FD_SELF;
22742         vec[0].sfv_flag = 0;
22743         vec[0].sfv_off = 0;
22744         vec[0].sfv_len = 0;
22745
22746         vec[1].sfv_fd = 0;
22747         vec[1].sfv_flag = 0;
22748         vec[1].sfv_off = 0;
22749         vec[1].sfv_len = 0;
22750         nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
22751
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758   (eval $ac_link) 2>&5
22759   ac_status=$?
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); } &&
22762          { ac_try='test -s conftest$ac_exeext'
22763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764   (eval $ac_try) 2>&5
22765   ac_status=$?
22766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767   (exit $ac_status); }; }; then
22768   samba_cv_HAVE_SENDFILEV64=yes
22769 else
22770   echo "$as_me: failed program was:" >&5
22771 cat conftest.$ac_ext >&5
22772 samba_cv_HAVE_SENDFILEV64=no
22773 fi
22774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22775 fi
22776 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
22777 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
22778
22779         if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
22780
22781 cat >>confdefs.h <<\_ACEOF
22782 #define HAVE_SENDFILEV64 1
22783 _ACEOF
22784
22785
22786 cat >>confdefs.h <<\_ACEOF
22787 #define SOLARIS_SENDFILE_API 1
22788 _ACEOF
22789
22790
22791 cat >>confdefs.h <<\_ACEOF
22792 #define WITH_SENDFILE 1
22793 _ACEOF
22794
22795         else
22796                 echo "$as_me:$LINENO: result: no" >&5
22797 echo "${ECHO_T}no" >&6;
22798         fi
22799
22800                 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
22801 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
22802 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
22803   echo $ECHO_N "(cached) $ECHO_C" >&6
22804 else
22805
22806                 cat >conftest.$ac_ext <<_ACEOF
22807 #line $LINENO "configure"
22808 #include "confdefs.h"
22809 \
22810 #include <sys/sendfile.h>
22811 int
22812 main ()
22813 {
22814 \
22815         int sfvcnt;
22816         size_t xferred;
22817         struct sendfilevec vec[2];
22818         ssize_t nwritten;
22819         int tofd;
22820
22821         sfvcnt = 2;
22822
22823         vec[0].sfv_fd = SFV_FD_SELF;
22824         vec[0].sfv_flag = 0;
22825         vec[0].sfv_off = 0;
22826         vec[0].sfv_len = 0;
22827
22828         vec[1].sfv_fd = 0;
22829         vec[1].sfv_flag = 0;
22830         vec[1].sfv_off = 0;
22831         vec[1].sfv_len = 0;
22832         nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
22833
22834   ;
22835   return 0;
22836 }
22837 _ACEOF
22838 rm -f conftest.$ac_objext conftest$ac_exeext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840   (eval $ac_link) 2>&5
22841   ac_status=$?
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); } &&
22844          { ac_try='test -s conftest$ac_exeext'
22845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846   (eval $ac_try) 2>&5
22847   ac_status=$?
22848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849   (exit $ac_status); }; }; then
22850   samba_cv_HAVE_SENDFILEV=yes
22851 else
22852   echo "$as_me: failed program was:" >&5
22853 cat conftest.$ac_ext >&5
22854 samba_cv_HAVE_SENDFILEV=no
22855 fi
22856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22857 fi
22858 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
22859 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
22860
22861         if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
22862
22863 cat >>confdefs.h <<\_ACEOF
22864 #define HAVE_SENDFILEV 1
22865 _ACEOF
22866
22867
22868 cat >>confdefs.h <<\_ACEOF
22869 #define SOLARIS_SENDFILE_API 1
22870 _ACEOF
22871
22872
22873 cat >>confdefs.h <<\_ACEOF
22874 #define WITH_SENDFILE 1
22875 _ACEOF
22876
22877         else
22878                 echo "$as_me:$LINENO: result: no" >&5
22879 echo "${ECHO_T}no" >&6;
22880         fi
22881         ;;
22882
22883         *)
22884         ;;
22885         esac
22886         ;;
22887   *)
22888     echo "$as_me:$LINENO: result: no" >&5
22889 echo "${ECHO_T}no" >&6
22890     ;;
22891   esac
22892 else
22893   echo "$as_me:$LINENO: result: yes" >&5
22894 echo "${ECHO_T}yes" >&6
22895
22896 fi;
22897
22898
22899 #################################################
22900 # Check whether winbind is supported on this platform.  If so we need to
22901 # build and install client programs (WINBIND_TARGETS), sbin programs
22902 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
22903
22904 echo "$as_me:$LINENO: checking whether to build winbind" >&5
22905 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
22906
22907 # Initially, the value of $host_os decides whether winbind is supported
22908
22909 case "$host_os" in
22910         *linux*|*irix*)
22911                 HAVE_WINBIND=yes
22912                 ;;
22913         *solaris*)
22914                 HAVE_WINBIND=yes
22915                 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
22916                 WINBIND_NSS_EXTRA_LIBS="-lsocket"
22917                 ;;
22918         *hpux11*)
22919                 HAVE_WINBIND=yes
22920                 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
22921                 ;;
22922         *)
22923                 HAVE_WINBIND=no
22924                 winbind_no_reason=", unsupported on $host_os"
22925                 ;;
22926 esac
22927
22928 # Check the setting of --with-winbindd
22929
22930
22931 # Check whether --with-winbind or --without-winbind was given.
22932 if test "${with_winbind+set}" = set; then
22933   withval="$with_winbind"
22934
22935   case "$withval" in
22936         yes)
22937                 HAVE_WINBIND=yes
22938                 ;;
22939         no)
22940                 HAVE_WINBIND=no
22941                 winbind_reason=""
22942                 ;;
22943   esac
22944 fi;
22945
22946 # We need unix domain sockets for winbind
22947
22948 if test x"$HAVE_WINBIND" = x"yes"; then
22949         if test x"$samba_cv_unixsocket" = x"no"; then
22950                 winbind_no_reason=", no unix domain socket support on $host_os"
22951                 HAVE_WINBIND=no
22952         fi
22953 fi
22954
22955 # Display test results
22956
22957 WINBIND_TARGETS=""
22958 WINBIND_STARGETS=""
22959 WINBIND_LTARGETS=""
22960 WINBIND_PAM_PROGS=""
22961
22962 if test x"$HAVE_WINBIND" = x"yes"; then
22963         echo "$as_me:$LINENO: result: yes" >&5
22964 echo "${ECHO_T}yes" >&6
22965
22966 cat >>confdefs.h <<\_ACEOF
22967 #define WITH_WINBIND 1
22968 _ACEOF
22969
22970
22971         WINBIND_TARGETS="bin/wbinfo"
22972         WINBIND_STARGETS="bin/winbindd"
22973         if test x"$BLDSHARED" = x"true"; then
22974                 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
22975                 if test x"$with_pam" = x"yes"; then
22976                         WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
22977                 fi
22978         fi
22979 else
22980         echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
22981 echo "${ECHO_T}no$winbind_no_reason" >&6
22982 fi
22983
22984
22985 # Substitution time!
22986
22987
22988
22989
22990
22991
22992
22993
22994 # Solaris has some extra fields in struct passwd that need to be
22995 # initialised otherwise nscd crashes.  Unfortunately autoconf < 2.50
22996 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
22997 # this.
22998
22999 #AC_CHECK_MEMBER(struct passwd.pw_comment,
23000 #               AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
23001 #               [#include <pwd.h>])
23002
23003 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
23004 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
23005 if test "${samba_cv_passwd_pw_comment+set}" = set; then
23006   echo $ECHO_N "(cached) $ECHO_C" >&6
23007 else
23008
23009     cat >conftest.$ac_ext <<_ACEOF
23010 #line $LINENO "configure"
23011 #include "confdefs.h"
23012 #include <pwd.h>
23013 int
23014 main ()
23015 {
23016 struct passwd p; p.pw_comment;
23017   ;
23018   return 0;
23019 }
23020 _ACEOF
23021 rm -f conftest.$ac_objext
23022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23023   (eval $ac_compile) 2>&5
23024   ac_status=$?
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); } &&
23027          { ac_try='test -s conftest.$ac_objext'
23028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029   (eval $ac_try) 2>&5
23030   ac_status=$?
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); }; }; then
23033   samba_cv_passwd_pw_comment=yes
23034 else
23035   echo "$as_me: failed program was:" >&5
23036 cat conftest.$ac_ext >&5
23037 samba_cv_passwd_pw_comment=no
23038 fi
23039 rm -f conftest.$ac_objext conftest.$ac_ext
23040 fi
23041 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
23042 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
23043 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
23044
23045 cat >>confdefs.h <<\_ACEOF
23046 #define HAVE_PASSWD_PW_COMMENT 1
23047 _ACEOF
23048
23049 fi
23050
23051 #AC_CHECK_MEMBER(struct passwd.pw_age,
23052 #               AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
23053 #               [#include <pwd.h>])
23054
23055 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
23056 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
23057 if test "${samba_cv_passwd_pw_age+set}" = set; then
23058   echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060
23061     cat >conftest.$ac_ext <<_ACEOF
23062 #line $LINENO "configure"
23063 #include "confdefs.h"
23064 #include <pwd.h>
23065 int
23066 main ()
23067 {
23068 struct passwd p; p.pw_age;
23069   ;
23070   return 0;
23071 }
23072 _ACEOF
23073 rm -f conftest.$ac_objext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23075   (eval $ac_compile) 2>&5
23076   ac_status=$?
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); } &&
23079          { ac_try='test -s conftest.$ac_objext'
23080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081   (eval $ac_try) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; }; then
23085   samba_cv_passwd_pw_age=yes
23086 else
23087   echo "$as_me: failed program was:" >&5
23088 cat conftest.$ac_ext >&5
23089 samba_cv_passwd_pw_age=no
23090 fi
23091 rm -f conftest.$ac_objext conftest.$ac_ext
23092 fi
23093 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
23094 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
23095 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
23096
23097 cat >>confdefs.h <<\_ACEOF
23098 #define HAVE_PASSWD_PW_AGE 1
23099 _ACEOF
23100
23101 fi
23102
23103 #################################################
23104 # Check to see if we should use the included popt
23105
23106
23107 # Check whether --with-included-popt or --without-included-popt was given.
23108 if test "${with_included_popt+set}" = set; then
23109   withval="$with_included_popt"
23110
23111   case "$withval" in
23112         yes)
23113                 INCLUDED_POPT=yes
23114                 ;;
23115         no)
23116                 INCLUDED_POPT=no
23117                 ;;
23118   esac
23119 fi;
23120 if test x"$INCLUDED_POPT" != x"yes"; then
23121     echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
23122 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
23123 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
23124   echo $ECHO_N "(cached) $ECHO_C" >&6
23125 else
23126   ac_check_lib_save_LIBS=$LIBS
23127 LIBS="-lpopt  $LIBS"
23128 cat >conftest.$ac_ext <<_ACEOF
23129 #line $LINENO "configure"
23130 #include "confdefs.h"
23131
23132 /* Override any gcc2 internal prototype to avoid an error.  */
23133 #ifdef __cplusplus
23134 extern "C"
23135 #endif
23136 /* We use char because int might match the return type of a gcc2
23137    builtin and then its argument prototype would still apply.  */
23138 char poptGetContext ();
23139 int
23140 main ()
23141 {
23142 poptGetContext ();
23143   ;
23144   return 0;
23145 }
23146 _ACEOF
23147 rm -f conftest.$ac_objext conftest$ac_exeext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23149   (eval $ac_link) 2>&5
23150   ac_status=$?
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } &&
23153          { ac_try='test -s conftest$ac_exeext'
23154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155   (eval $ac_try) 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; }; then
23159   ac_cv_lib_popt_poptGetContext=yes
23160 else
23161   echo "$as_me: failed program was:" >&5
23162 cat conftest.$ac_ext >&5
23163 ac_cv_lib_popt_poptGetContext=no
23164 fi
23165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23166 LIBS=$ac_check_lib_save_LIBS
23167 fi
23168 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
23169 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
23170 if test $ac_cv_lib_popt_poptGetContext = yes; then
23171   INCLUDED_POPT=no
23172 else
23173   INCLUDED_POPT=yes
23174 fi
23175
23176 fi
23177
23178 echo "$as_me:$LINENO: checking whether to use included popt" >&5
23179 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
23180 if test x"$INCLUDED_POPT" = x"yes"; then
23181     echo "$as_me:$LINENO: result: yes" >&5
23182 echo "${ECHO_T}yes" >&6
23183     BUILD_POPT='$(POPT_OBJS)'
23184     FLAGS1="-I$srcdir/popt"
23185 else
23186     echo "$as_me:$LINENO: result: no" >&5
23187 echo "${ECHO_T}no" >&6
23188     LIBS="$LIBS -lpopt"
23189 fi
23190
23191
23192
23193 #################################################
23194 # Check if the user wants Python
23195
23196 # At the moment, you can use this to set which Python binary to link
23197 # against.  (Libraries built for Python2.2 can't be used by 2.1,
23198 # though they can coexist in different directories.)  In the future
23199 # this might make the Python stuff be built by default.
23200
23201
23202 # Check whether --with-python or --without-python was given.
23203 if test "${with_python+set}" = set; then
23204   withval="$with_python"
23205    case "${withval-python}" in
23206   yes)
23207         PYTHON=python
23208         ;;
23209   *)
23210         PYTHON=${withval-python}
23211         ;;
23212   esac
23213 fi;
23214
23215
23216 #################################################
23217 # do extra things if we are running insure
23218
23219 if test "${ac_cv_prog_CC}" = "insure"; then
23220         CPPFLAGS="$CPPFLAGS -D__INSURE__"
23221 fi
23222
23223 #################################################
23224 # final configure stuff
23225
23226 echo "$as_me:$LINENO: checking configure summary" >&5
23227 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
23228 if test "$cross_compiling" = yes; then
23229   { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
23230 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
23231 else
23232   cat >conftest.$ac_ext <<_ACEOF
23233 #line $LINENO "configure"
23234 #include "confdefs.h"
23235 #include "${srcdir-.}/tests/summary.c"
23236 _ACEOF
23237 rm -f conftest$ac_exeext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239   (eval $ac_link) 2>&5
23240   ac_status=$?
23241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244   (eval $ac_try) 2>&5
23245   ac_status=$?
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); }; }; then
23248   echo "$as_me:$LINENO: result: yes" >&5
23249 echo "${ECHO_T}yes" >&6
23250 else
23251   echo "$as_me: program exited with status $ac_status" >&5
23252 echo "$as_me: failed program was:" >&5
23253 cat conftest.$ac_ext >&5
23254 ( exit $ac_status )
23255 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
23256 echo "$as_me: error: summary failure. Aborting config" >&2;}
23257    { (exit 1); exit 1; }; }; exit 1;
23258 fi
23259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23260 fi
23261
23262 builddir=`pwd`
23263
23264
23265 # I added make files that are outside /source directory.
23266 # I know this is not a good solution, will work out a better
23267 # solution soon.                        --simo
23268                                         ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile"
23269 cat >confcache <<\_ACEOF
23270 # This file is a shell script that caches the results of configure
23271 # tests run on this system so they can be shared between configure
23272 # scripts and configure runs, see configure's option --config-cache.
23273 # It is not useful on other systems.  If it contains results you don't
23274 # want to keep, you may remove or edit it.
23275 #
23276 # config.status only pays attention to the cache file if you give it
23277 # the --recheck option to rerun configure.
23278 #
23279 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23280 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23281 # following values.
23282
23283 _ACEOF
23284
23285 # The following way of writing the cache mishandles newlines in values,
23286 # but we know of no workaround that is simple, portable, and efficient.
23287 # So, don't put newlines in cache variables' values.
23288 # Ultrix sh set writes to stderr and can't be redirected directly,
23289 # and sets the high bit in the cache file unless we assign to the vars.
23290 {
23291   (set) 2>&1 |
23292     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23293     *ac_space=\ *)
23294       # `set' does not quote correctly, so add quotes (double-quote
23295       # substitution turns \\\\ into \\, and sed turns \\ into \).
23296       sed -n \
23297         "s/'/'\\\\''/g;
23298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23299       ;;
23300     *)
23301       # `set' quotes correctly as required by POSIX, so do not add quotes.
23302       sed -n \
23303         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23304       ;;
23305     esac;
23306 } |
23307   sed '
23308      t clear
23309      : clear
23310      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23311      t end
23312      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23313      : end' >>confcache
23314 if cmp -s $cache_file confcache; then :; else
23315   if test -w $cache_file; then
23316     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23317     cat confcache >$cache_file
23318   else
23319     echo "not updating unwritable cache $cache_file"
23320   fi
23321 fi
23322 rm -f confcache
23323
23324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23325 # Let make expand exec_prefix.
23326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23327
23328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23330 # trailing colons and then remove the whole line if VPATH becomes empty
23331 # (actually we leave an empty line to preserve line numbers).
23332 if test "x$srcdir" = x.; then
23333   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23334 s/:*\$(srcdir):*/:/;
23335 s/:*\${srcdir}:*/:/;
23336 s/:*@srcdir@:*/:/;
23337 s/^\([^=]*=[    ]*\):*/\1/;
23338 s/:*$//;
23339 s/^[^=]*=[      ]*$//;
23340 }'
23341 fi
23342
23343 DEFS=-DHAVE_CONFIG_H
23344
23345 ac_libobjs=
23346 ac_ltlibobjs=
23347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23348   # 1. Remove the extension, and $U if already installed.
23349   ac_i=`echo "$ac_i" |
23350          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23351   # 2. Add them.
23352   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23353   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23354 done
23355 LIBOBJS=$ac_libobjs
23356
23357 LTLIBOBJS=$ac_ltlibobjs
23358
23359
23360
23361 : ${CONFIG_STATUS=./config.status}
23362 ac_clean_files_save=$ac_clean_files
23363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23364 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23365 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23366 cat >$CONFIG_STATUS <<_ACEOF
23367 #! $SHELL
23368 # Generated by $as_me.
23369 # Run this file to recreate the current configuration.
23370 # Compiler output produced by configure, useful for debugging
23371 # configure, is in config.log if it exists.
23372
23373 debug=false
23374 SHELL=\${CONFIG_SHELL-$SHELL}
23375 _ACEOF
23376
23377 cat >>$CONFIG_STATUS <<\_ACEOF
23378 ## --------------------- ##
23379 ## M4sh Initialization.  ##
23380 ## --------------------- ##
23381
23382 # Be Bourne compatible
23383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23384   emulate sh
23385   NULLCMD=:
23386   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23387   # is contrary to our usage.  Disable this feature.
23388   alias -g '${1+"$@"}'='"$@"'
23389 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23390   set -o posix
23391 fi
23392
23393 # Support unset when possible.
23394 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23395   as_unset=unset
23396 else
23397   as_unset=false
23398 fi
23399
23400
23401 # Work around bugs in pre-3.0 UWIN ksh.
23402 $as_unset ENV MAIL MAILPATH
23403 PS1='$ '
23404 PS2='> '
23405 PS4='+ '
23406
23407 # NLS nuisances.
23408 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
23409 do
23410   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23411     eval $as_var=C; export $as_var
23412   else
23413     $as_unset $as_var
23414   fi
23415 done
23416
23417 # Required to use basename.
23418 if expr a : '\(a\)' >/dev/null 2>&1; then
23419   as_expr=expr
23420 else
23421   as_expr=false
23422 fi
23423
23424 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23425   as_basename=basename
23426 else
23427   as_basename=false
23428 fi
23429
23430
23431 # Name of the executable.
23432 as_me=`$as_basename "$0" ||
23433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23434          X"$0" : 'X\(//\)$' \| \
23435          X"$0" : 'X\(/\)$' \| \
23436          .     : '\(.\)' 2>/dev/null ||
23437 echo X/"$0" |
23438     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23439           /^X\/\(\/\/\)$/{ s//\1/; q; }
23440           /^X\/\(\/\).*/{ s//\1/; q; }
23441           s/.*/./; q'`
23442
23443
23444 # PATH needs CR, and LINENO needs CR and PATH.
23445 # Avoid depending upon Character Ranges.
23446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23449 as_cr_digits='0123456789'
23450 as_cr_alnum=$as_cr_Letters$as_cr_digits
23451
23452 # The user is always right.
23453 if test "${PATH_SEPARATOR+set}" != set; then
23454   echo "#! /bin/sh" >conftest.sh
23455   echo  "exit 0"   >>conftest.sh
23456   chmod +x conftest.sh
23457   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
23458     PATH_SEPARATOR=';'
23459   else
23460     PATH_SEPARATOR=:
23461   fi
23462   rm -f conftest.sh
23463 fi
23464
23465
23466   as_lineno_1=$LINENO
23467   as_lineno_2=$LINENO
23468   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23469   test "x$as_lineno_1" != "x$as_lineno_2" &&
23470   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23471   # Find who we are.  Look in the path if we contain no path at all
23472   # relative or not.
23473   case $0 in
23474     *[\\/]* ) as_myself=$0 ;;
23475     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23476 for as_dir in $PATH
23477 do
23478   IFS=$as_save_IFS
23479   test -z "$as_dir" && as_dir=.
23480   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23481 done
23482
23483        ;;
23484   esac
23485   # We did not find ourselves, most probably we were run as `sh COMMAND'
23486   # in which case we are not to be found in the path.
23487   if test "x$as_myself" = x; then
23488     as_myself=$0
23489   fi
23490   if test ! -f "$as_myself"; then
23491     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23492 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23493    { (exit 1); exit 1; }; }
23494   fi
23495   case $CONFIG_SHELL in
23496   '')
23497     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23498 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23499 do
23500   IFS=$as_save_IFS
23501   test -z "$as_dir" && as_dir=.
23502   for as_base in sh bash ksh sh5; do
23503          case $as_dir in
23504          /*)
23505            if ("$as_dir/$as_base" -c '
23506   as_lineno_1=$LINENO
23507   as_lineno_2=$LINENO
23508   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23509   test "x$as_lineno_1" != "x$as_lineno_2" &&
23510   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23511              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23512              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23513              CONFIG_SHELL=$as_dir/$as_base
23514              export CONFIG_SHELL
23515              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23516            fi;;
23517          esac
23518        done
23519 done
23520 ;;
23521   esac
23522
23523   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23524   # uniformly replaced by the line number.  The first 'sed' inserts a
23525   # line-number line before each line; the second 'sed' does the real
23526   # work.  The second script uses 'N' to pair each line-number line
23527   # with the numbered line, and appends trailing '-' during
23528   # substitution so that $LINENO is not a special case at line end.
23529   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23530   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23531   sed '=' <$as_myself |
23532     sed '
23533       N
23534       s,$,-,
23535       : loop
23536       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23537       t loop
23538       s,-$,,
23539       s,^['$as_cr_digits']*\n,,
23540     ' >$as_me.lineno &&
23541   chmod +x $as_me.lineno ||
23542     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23543 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23544    { (exit 1); exit 1; }; }
23545
23546   # Don't try to exec as it changes $[0], causing all sort of problems
23547   # (the dirname of $[0] is not the place where we might find the
23548   # original and so on.  Autoconf is especially sensible to this).
23549   . ./$as_me.lineno
23550   # Exit status is that of the last command.
23551   exit
23552 }
23553
23554
23555 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23556   *c*,-n*) ECHO_N= ECHO_C='
23557 ' ECHO_T='      ' ;;
23558   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23559   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23560 esac
23561
23562 if expr a : '\(a\)' >/dev/null 2>&1; then
23563   as_expr=expr
23564 else
23565   as_expr=false
23566 fi
23567
23568 rm -f conf$$ conf$$.exe conf$$.file
23569 echo >conf$$.file
23570 if ln -s conf$$.file conf$$ 2>/dev/null; then
23571   # We could just check for DJGPP; but this test a) works b) is more generic
23572   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23573   if test -f conf$$.exe; then
23574     # Don't use ln at all; we don't have any links
23575     as_ln_s='cp -p'
23576   else
23577     as_ln_s='ln -s'
23578   fi
23579 elif ln conf$$.file conf$$ 2>/dev/null; then
23580   as_ln_s=ln
23581 else
23582   as_ln_s='cp -p'
23583 fi
23584 rm -f conf$$ conf$$.exe conf$$.file
23585
23586 if mkdir -p . 2>/dev/null; then
23587   as_mkdir_p=:
23588 else
23589   as_mkdir_p=false
23590 fi
23591
23592 as_executable_p="test -f"
23593
23594 # Sed expression to map a string onto a valid CPP name.
23595 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23596
23597 # Sed expression to map a string onto a valid variable name.
23598 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23599
23600
23601 # IFS
23602 # We need space, tab and new line, in precisely that order.
23603 as_nl='
23604 '
23605 IFS="   $as_nl"
23606
23607 # CDPATH.
23608 $as_unset CDPATH
23609
23610 exec 6>&1
23611
23612 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23613 # report actual input values of CONFIG_FILES etc. instead of their
23614 # values after options handling.  Logging --version etc. is OK.
23615 exec 5>>config.log
23616 {
23617   echo
23618   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23619 ## Running $as_me. ##
23620 _ASBOX
23621 } >&5
23622 cat >&5 <<_CSEOF
23623
23624 This file was extended by $as_me, which was
23625 generated by GNU Autoconf 2.54.  Invocation command line was
23626
23627   CONFIG_FILES    = $CONFIG_FILES
23628   CONFIG_HEADERS  = $CONFIG_HEADERS
23629   CONFIG_LINKS    = $CONFIG_LINKS
23630   CONFIG_COMMANDS = $CONFIG_COMMANDS
23631   $ $0 $@
23632
23633 _CSEOF
23634 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23635 echo >&5
23636 _ACEOF
23637
23638 # Files that config.status was made for.
23639 if test -n "$ac_config_files"; then
23640   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23641 fi
23642
23643 if test -n "$ac_config_headers"; then
23644   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23645 fi
23646
23647 if test -n "$ac_config_links"; then
23648   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23649 fi
23650
23651 if test -n "$ac_config_commands"; then
23652   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23653 fi
23654
23655 cat >>$CONFIG_STATUS <<\_ACEOF
23656
23657 ac_cs_usage="\
23658 \`$as_me' instantiates files from templates according to the
23659 current configuration.
23660
23661 Usage: $0 [OPTIONS] [FILE]...
23662
23663   -h, --help       print this help, then exit
23664   -V, --version    print version number, then exit
23665   -d, --debug      don't remove temporary files
23666       --recheck    update $as_me by reconfiguring in the same conditions
23667   --file=FILE[:TEMPLATE]
23668                    instantiate the configuration file FILE
23669   --header=FILE[:TEMPLATE]
23670                    instantiate the configuration header FILE
23671
23672 Configuration files:
23673 $config_files
23674
23675 Configuration headers:
23676 $config_headers
23677
23678 Report bugs to <bug-autoconf@gnu.org>."
23679 _ACEOF
23680
23681 cat >>$CONFIG_STATUS <<_ACEOF
23682 ac_cs_version="\\
23683 config.status
23684 configured by $0, generated by GNU Autoconf 2.54,
23685   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23686
23687 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23688 Free Software Foundation, Inc.
23689 This config.status script is free software; the Free Software Foundation
23690 gives unlimited permission to copy, distribute and modify it."
23691 srcdir=$srcdir
23692 INSTALL="$INSTALL"
23693 _ACEOF
23694
23695 cat >>$CONFIG_STATUS <<\_ACEOF
23696 # If no file are specified by the user, then we need to provide default
23697 # value.  By we need to know if files were specified by the user.
23698 ac_need_defaults=:
23699 while test $# != 0
23700 do
23701   case $1 in
23702   --*=*)
23703     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23704     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23705     ac_shift=:
23706     ;;
23707   -*)
23708     ac_option=$1
23709     ac_optarg=$2
23710     ac_shift=shift
23711     ;;
23712   *) # This is not an option, so the user has probably given explicit
23713      # arguments.
23714      ac_option=$1
23715      ac_need_defaults=false;;
23716   esac
23717
23718   case $ac_option in
23719   # Handling of the options.
23720 _ACEOF
23721 cat >>$CONFIG_STATUS <<_ACEOF
23722   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23723     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23724     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23725 _ACEOF
23726 cat >>$CONFIG_STATUS <<\_ACEOF
23727   --version | --vers* | -V )
23728     echo "$ac_cs_version"; exit 0 ;;
23729   --he | --h)
23730     # Conflict between --help and --header
23731     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23732 Try \`$0 --help' for more information." >&5
23733 echo "$as_me: error: ambiguous option: $1
23734 Try \`$0 --help' for more information." >&2;}
23735    { (exit 1); exit 1; }; };;
23736   --help | --hel | -h )
23737     echo "$ac_cs_usage"; exit 0 ;;
23738   --debug | --d* | -d )
23739     debug=: ;;
23740   --file | --fil | --fi | --f )
23741     $ac_shift
23742     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23743     ac_need_defaults=false;;
23744   --header | --heade | --head | --hea )
23745     $ac_shift
23746     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23747     ac_need_defaults=false;;
23748
23749   # This is an error.
23750   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23751 Try \`$0 --help' for more information." >&5
23752 echo "$as_me: error: unrecognized option: $1
23753 Try \`$0 --help' for more information." >&2;}
23754    { (exit 1); exit 1; }; } ;;
23755
23756   *) ac_config_targets="$ac_config_targets $1" ;;
23757
23758   esac
23759   shift
23760 done
23761
23762 _ACEOF
23763
23764
23765
23766
23767
23768 cat >>$CONFIG_STATUS <<\_ACEOF
23769 for ac_config_target in $ac_config_targets
23770 do
23771   case "$ac_config_target" in
23772   # Handling of arguments.
23773   "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
23774   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23775   "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
23776   "../examples/VFS/Makefile" ) CONFIG_FILES="$CONFIG_FILES ../examples/VFS/Makefile" ;;
23777   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23778   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23779 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23780    { (exit 1); exit 1; }; };;
23781   esac
23782 done
23783
23784 # If the user did not use the arguments to specify the items to instantiate,
23785 # then the envvar interface is used.  Set only those that are not.
23786 # We use the long form for the default assignment because of an extremely
23787 # bizarre bug on SunOS 4.1.3.
23788 if $ac_need_defaults; then
23789   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23790   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23791 fi
23792
23793 # Create a temporary directory, and hook for its removal unless debugging.
23794 $debug ||
23795 {
23796   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23797   trap '{ (exit 1); exit 1; }' 1 2 13 15
23798 }
23799
23800 # Create a (secure) tmp directory for tmp files.
23801 : ${TMPDIR=/tmp}
23802 {
23803   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23804   test -n "$tmp" && test -d "$tmp"
23805 }  ||
23806 {
23807   tmp=$TMPDIR/cs$$-$RANDOM
23808   (umask 077 && mkdir $tmp)
23809 } ||
23810 {
23811    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23812    { (exit 1); exit 1; }
23813 }
23814
23815 _ACEOF
23816
23817 cat >>$CONFIG_STATUS <<_ACEOF
23818
23819 #
23820 # CONFIG_FILES section.
23821 #
23822
23823 # No need to generate the scripts if there are no CONFIG_FILES.
23824 # This happens for instance when ./config.status config.h
23825 if test -n "\$CONFIG_FILES"; then
23826   # Protect against being on the right side of a sed subst in config.status.
23827   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23828    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23829 s,@SHELL@,$SHELL,;t t
23830 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23831 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23832 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23833 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23834 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23835 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23836 s,@exec_prefix@,$exec_prefix,;t t
23837 s,@prefix@,$prefix,;t t
23838 s,@program_transform_name@,$program_transform_name,;t t
23839 s,@bindir@,$bindir,;t t
23840 s,@sbindir@,$sbindir,;t t
23841 s,@libexecdir@,$libexecdir,;t t
23842 s,@datadir@,$datadir,;t t
23843 s,@sysconfdir@,$sysconfdir,;t t
23844 s,@sharedstatedir@,$sharedstatedir,;t t
23845 s,@localstatedir@,$localstatedir,;t t
23846 s,@libdir@,$libdir,;t t
23847 s,@includedir@,$includedir,;t t
23848 s,@oldincludedir@,$oldincludedir,;t t
23849 s,@infodir@,$infodir,;t t
23850 s,@mandir@,$mandir,;t t
23851 s,@build_alias@,$build_alias,;t t
23852 s,@host_alias@,$host_alias,;t t
23853 s,@target_alias@,$target_alias,;t t
23854 s,@DEFS@,$DEFS,;t t
23855 s,@ECHO_C@,$ECHO_C,;t t
23856 s,@ECHO_N@,$ECHO_N,;t t
23857 s,@ECHO_T@,$ECHO_T,;t t
23858 s,@LIBS@,$LIBS,;t t
23859 s,@configdir@,$configdir,;t t
23860 s,@lockdir@,$lockdir,;t t
23861 s,@piddir@,$piddir,;t t
23862 s,@logfilebase@,$logfilebase,;t t
23863 s,@privatedir@,$privatedir,;t t
23864 s,@swatdir@,$swatdir,;t t
23865 s,@RUNPROG@,$RUNPROG,;t t
23866 s,@MPROGS@,$MPROGS,;t t
23867 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
23868 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
23869 s,@SHLD@,$SHLD,;t t
23870 s,@HOST_OS@,$HOST_OS,;t t
23871 s,@PAM_MOD@,$PAM_MOD,;t t
23872 s,@WRAP@,$WRAP,;t t
23873 s,@WRAP32@,$WRAP32,;t t
23874 s,@WRAPPROG@,$WRAPPROG,;t t
23875 s,@PICFLAG@,$PICFLAG,;t t
23876 s,@PICSUFFIX@,$PICSUFFIX,;t t
23877 s,@POBAD_CC@,$POBAD_CC,;t t
23878 s,@SHLIBEXT@,$SHLIBEXT,;t t
23879 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
23880 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
23881 s,@PRINTLIBS@,$PRINTLIBS,;t t
23882 s,@AUTHLIBS@,$AUTHLIBS,;t t
23883 s,@CC@,$CC,;t t
23884 s,@CFLAGS@,$CFLAGS,;t t
23885 s,@LDFLAGS@,$LDFLAGS,;t t
23886 s,@CPPFLAGS@,$CPPFLAGS,;t t
23887 s,@ac_ct_CC@,$ac_ct_CC,;t t
23888 s,@EXEEXT@,$EXEEXT,;t t
23889 s,@OBJEXT@,$OBJEXT,;t t
23890 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23891 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23892 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23893 s,@AWK@,$AWK,;t t
23894 s,@BROKEN_CC@,$BROKEN_CC,;t t
23895 s,@build@,$build,;t t
23896 s,@build_cpu@,$build_cpu,;t t
23897 s,@build_vendor@,$build_vendor,;t t
23898 s,@build_os@,$build_os,;t t
23899 s,@host@,$host,;t t
23900 s,@host_cpu@,$host_cpu,;t t
23901 s,@host_vendor@,$host_vendor,;t t
23902 s,@host_os@,$host_os,;t t
23903 s,@target@,$target,;t t
23904 s,@target_cpu@,$target_cpu,;t t
23905 s,@target_vendor@,$target_vendor,;t t
23906 s,@target_os@,$target_os,;t t
23907 s,@CPP@,$CPP,;t t
23908 s,@EGREP@,$EGREP,;t t
23909 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
23910 s,@LIBOBJS@,$LIBOBJS,;t t
23911 s,@TERMLIBS@,$TERMLIBS,;t t
23912 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
23913 s,@ROFF@,$ROFF,;t t
23914 s,@DYNEXP@,$DYNEXP,;t t
23915 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
23916 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
23917 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
23918 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
23919 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
23920 s,@XML_LIBS@,$XML_LIBS,;t t
23921 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
23922 s,@manlangs@,$manlangs,;t t
23923 s,@WINBIND_TARGETS@,$WINBIND_TARGETS,;t t
23924 s,@WINBIND_STARGETS@,$WINBIND_STARGETS,;t t
23925 s,@WINBIND_LTARGETS@,$WINBIND_LTARGETS,;t t
23926 s,@WINBIND_PAM_TARGETS@,$WINBIND_PAM_TARGETS,;t t
23927 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
23928 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
23929 s,@BUILD_POPT@,$BUILD_POPT,;t t
23930 s,@FLAGS1@,$FLAGS1,;t t
23931 s,@PYTHON@,$PYTHON,;t t
23932 s,@builddir@,$builddir,;t t
23933 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23934 CEOF
23935
23936 _ACEOF
23937
23938   cat >>$CONFIG_STATUS <<\_ACEOF
23939   # Split the substitutions into bite-sized pieces for seds with
23940   # small command number limits, like on Digital OSF/1 and HP-UX.
23941   ac_max_sed_lines=48
23942   ac_sed_frag=1 # Number of current file.
23943   ac_beg=1 # First line for current file.
23944   ac_end=$ac_max_sed_lines # Line after last line for current file.
23945   ac_more_lines=:
23946   ac_sed_cmds=
23947   while $ac_more_lines; do
23948     if test $ac_beg -gt 1; then
23949       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23950     else
23951       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23952     fi
23953     if test ! -s $tmp/subs.frag; then
23954       ac_more_lines=false
23955     else
23956       # The purpose of the label and of the branching condition is to
23957       # speed up the sed processing (if there are no `@' at all, there
23958       # is no need to browse any of the substitutions).
23959       # These are the two extra sed commands mentioned above.
23960       (echo ':t
23961   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23962       if test -z "$ac_sed_cmds"; then
23963         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23964       else
23965         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23966       fi
23967       ac_sed_frag=`expr $ac_sed_frag + 1`
23968       ac_beg=$ac_end
23969       ac_end=`expr $ac_end + $ac_max_sed_lines`
23970     fi
23971   done
23972   if test -z "$ac_sed_cmds"; then
23973     ac_sed_cmds=cat
23974   fi
23975 fi # test -n "$CONFIG_FILES"
23976
23977 _ACEOF
23978 cat >>$CONFIG_STATUS <<\_ACEOF
23979 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23980   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23981   case $ac_file in
23982   - | *:- | *:-:* ) # input from stdin
23983         cat >$tmp/stdin
23984         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23985         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23986   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23987         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23988   * )   ac_file_in=$ac_file.in ;;
23989   esac
23990
23991   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23992   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23994          X"$ac_file" : 'X\(//\)[^/]' \| \
23995          X"$ac_file" : 'X\(//\)$' \| \
23996          X"$ac_file" : 'X\(/\)' \| \
23997          .     : '\(.\)' 2>/dev/null ||
23998 echo X"$ac_file" |
23999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24000           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24001           /^X\(\/\/\)$/{ s//\1/; q; }
24002           /^X\(\/\).*/{ s//\1/; q; }
24003           s/.*/./; q'`
24004   { if $as_mkdir_p; then
24005     mkdir -p "$ac_dir"
24006   else
24007     as_dir="$ac_dir"
24008     as_dirs=
24009     while test ! -d "$as_dir"; do
24010       as_dirs="$as_dir $as_dirs"
24011       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24013          X"$as_dir" : 'X\(//\)[^/]' \| \
24014          X"$as_dir" : 'X\(//\)$' \| \
24015          X"$as_dir" : 'X\(/\)' \| \
24016          .     : '\(.\)' 2>/dev/null ||
24017 echo X"$as_dir" |
24018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24019           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24020           /^X\(\/\/\)$/{ s//\1/; q; }
24021           /^X\(\/\).*/{ s//\1/; q; }
24022           s/.*/./; q'`
24023     done
24024     test ! -n "$as_dirs" || mkdir $as_dirs
24025   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24027    { (exit 1); exit 1; }; }; }
24028
24029   ac_builddir=.
24030
24031 if test "$ac_dir" != .; then
24032   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24033   # A "../" for each directory in $ac_dir_suffix.
24034   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24035 else
24036   ac_dir_suffix= ac_top_builddir=
24037 fi
24038
24039 case $srcdir in
24040   .)  # No --srcdir option.  We are building in place.
24041     ac_srcdir=.
24042     if test -z "$ac_top_builddir"; then
24043        ac_top_srcdir=.
24044     else
24045        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24046     fi ;;
24047   [\\/]* | ?:[\\/]* )  # Absolute path.
24048     ac_srcdir=$srcdir$ac_dir_suffix;
24049     ac_top_srcdir=$srcdir ;;
24050   *) # Relative path.
24051     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24052     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24053 esac
24054 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24055 # absolute.
24056 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24057 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24058 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24059 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24060
24061
24062   case $INSTALL in
24063   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24064   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24065   esac
24066
24067   if test x"$ac_file" != x-; then
24068     { echo "$as_me:$LINENO: creating $ac_file" >&5
24069 echo "$as_me: creating $ac_file" >&6;}
24070     rm -f "$ac_file"
24071   fi
24072   # Let's still pretend it is `configure' which instantiates (i.e., don't
24073   # use $as_me), people would be surprised to read:
24074   #    /* config.h.  Generated by config.status.  */
24075   if test x"$ac_file" = x-; then
24076     configure_input=
24077   else
24078     configure_input="$ac_file.  "
24079   fi
24080   configure_input=$configure_input"Generated from `echo $ac_file_in |
24081                                      sed 's,.*/,,'` by configure."
24082
24083   # First look for the input files in the build tree, otherwise in the
24084   # src tree.
24085   ac_file_inputs=`IFS=:
24086     for f in $ac_file_in; do
24087       case $f in
24088       -) echo $tmp/stdin ;;
24089       [\\/$]*)
24090          # Absolute (can't be DOS-style, as IFS=:)
24091          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24092 echo "$as_me: error: cannot find input file: $f" >&2;}
24093    { (exit 1); exit 1; }; }
24094          echo $f;;
24095       *) # Relative
24096          if test -f "$f"; then
24097            # Build tree
24098            echo $f
24099          elif test -f "$srcdir/$f"; then
24100            # Source tree
24101            echo $srcdir/$f
24102          else
24103            # /dev/null tree
24104            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24105 echo "$as_me: error: cannot find input file: $f" >&2;}
24106    { (exit 1); exit 1; }; }
24107          fi;;
24108       esac
24109     done` || { (exit 1); exit 1; }
24110 _ACEOF
24111 cat >>$CONFIG_STATUS <<_ACEOF
24112   sed "$ac_vpsub
24113 $extrasub
24114 _ACEOF
24115 cat >>$CONFIG_STATUS <<\_ACEOF
24116 :t
24117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24118 s,@configure_input@,$configure_input,;t t
24119 s,@srcdir@,$ac_srcdir,;t t
24120 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24121 s,@top_srcdir@,$ac_top_srcdir,;t t
24122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24123 s,@builddir@,$ac_builddir,;t t
24124 s,@abs_builddir@,$ac_abs_builddir,;t t
24125 s,@top_builddir@,$ac_top_builddir,;t t
24126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24127 s,@INSTALL@,$ac_INSTALL,;t t
24128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24129   rm -f $tmp/stdin
24130   if test x"$ac_file" != x-; then
24131     mv $tmp/out $ac_file
24132   else
24133     cat $tmp/out
24134     rm -f $tmp/out
24135   fi
24136
24137 done
24138 _ACEOF
24139 cat >>$CONFIG_STATUS <<\_ACEOF
24140
24141 #
24142 # CONFIG_HEADER section.
24143 #
24144
24145 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24146 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24147 #
24148 # ac_d sets the value in "#define NAME VALUE" lines.
24149 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24150 ac_dB='[        ].*$,\1#\2'
24151 ac_dC=' '
24152 ac_dD=',;t'
24153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24154 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24155 ac_uB='$,\1#\2define\3'
24156 ac_uC=' '
24157 ac_uD=',;t'
24158
24159 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24160   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24161   case $ac_file in
24162   - | *:- | *:-:* ) # input from stdin
24163         cat >$tmp/stdin
24164         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24165         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24166   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24167         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24168   * )   ac_file_in=$ac_file.in ;;
24169   esac
24170
24171   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24172 echo "$as_me: creating $ac_file" >&6;}
24173
24174   # First look for the input files in the build tree, otherwise in the
24175   # src tree.
24176   ac_file_inputs=`IFS=:
24177     for f in $ac_file_in; do
24178       case $f in
24179       -) echo $tmp/stdin ;;
24180       [\\/$]*)
24181          # Absolute (can't be DOS-style, as IFS=:)
24182          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24183 echo "$as_me: error: cannot find input file: $f" >&2;}
24184    { (exit 1); exit 1; }; }
24185          echo $f;;
24186       *) # Relative
24187          if test -f "$f"; then
24188            # Build tree
24189            echo $f
24190          elif test -f "$srcdir/$f"; then
24191            # Source tree
24192            echo $srcdir/$f
24193          else
24194            # /dev/null tree
24195            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24196 echo "$as_me: error: cannot find input file: $f" >&2;}
24197    { (exit 1); exit 1; }; }
24198          fi;;
24199       esac
24200     done` || { (exit 1); exit 1; }
24201   # Remove the trailing spaces.
24202   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24203
24204 _ACEOF
24205
24206 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24207 # `conftest.undefs', that substitutes the proper values into
24208 # config.h.in to produce config.h.  The first handles `#define'
24209 # templates, and the second `#undef' templates.
24210 # And first: Protect against being on the right side of a sed subst in
24211 # config.status.  Protect against being in an unquoted here document
24212 # in config.status.
24213 rm -f conftest.defines conftest.undefs
24214 # Using a here document instead of a string reduces the quoting nightmare.
24215 # Putting comments in sed scripts is not portable.
24216 #
24217 # `end' is used to avoid that the second main sed command (meant for
24218 # 0-ary CPP macros) applies to n-ary macro definitions.
24219 # See the Autoconf documentation for `clear'.
24220 cat >confdef2sed.sed <<\_ACEOF
24221 s/[\\&,]/\\&/g
24222 s,[\\$`],\\&,g
24223 t clear
24224 : clear
24225 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24226 t end
24227 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24228 : end
24229 _ACEOF
24230 # If some macros were called several times there might be several times
24231 # the same #defines, which is useless.  Nevertheless, we may not want to
24232 # sort them, since we want the *last* AC-DEFINE to be honored.
24233 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24234 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24235 rm -f confdef2sed.sed
24236
24237 # This sed command replaces #undef with comments.  This is necessary, for
24238 # example, in the case of _POSIX_SOURCE, which is predefined and required
24239 # on some systems where configure will not decide to define it.
24240 cat >>conftest.undefs <<\_ACEOF
24241 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24242 _ACEOF
24243
24244 # Break up conftest.defines because some shells have a limit on the size
24245 # of here documents, and old seds have small limits too (100 cmds).
24246 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24247 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24248 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24249 echo '  :' >>$CONFIG_STATUS
24250 rm -f conftest.tail
24251 while grep . conftest.defines >/dev/null
24252 do
24253   # Write a limited-size here document to $tmp/defines.sed.
24254   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24255   # Speed up: don't consider the non `#define' lines.
24256   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24257   # Work around the forget-to-reset-the-flag bug.
24258   echo 't clr' >>$CONFIG_STATUS
24259   echo ': clr' >>$CONFIG_STATUS
24260   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24261   echo 'CEOF
24262   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24263   rm -f $tmp/in
24264   mv $tmp/out $tmp/in
24265 ' >>$CONFIG_STATUS
24266   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24267   rm -f conftest.defines
24268   mv conftest.tail conftest.defines
24269 done
24270 rm -f conftest.defines
24271 echo '  fi # grep' >>$CONFIG_STATUS
24272 echo >>$CONFIG_STATUS
24273
24274 # Break up conftest.undefs because some shells have a limit on the size
24275 # of here documents, and old seds have small limits too (100 cmds).
24276 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24277 rm -f conftest.tail
24278 while grep . conftest.undefs >/dev/null
24279 do
24280   # Write a limited-size here document to $tmp/undefs.sed.
24281   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24282   # Speed up: don't consider the non `#undef'
24283   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24284   # Work around the forget-to-reset-the-flag bug.
24285   echo 't clr' >>$CONFIG_STATUS
24286   echo ': clr' >>$CONFIG_STATUS
24287   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24288   echo 'CEOF
24289   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24290   rm -f $tmp/in
24291   mv $tmp/out $tmp/in
24292 ' >>$CONFIG_STATUS
24293   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24294   rm -f conftest.undefs
24295   mv conftest.tail conftest.undefs
24296 done
24297 rm -f conftest.undefs
24298
24299 cat >>$CONFIG_STATUS <<\_ACEOF
24300   # Let's still pretend it is `configure' which instantiates (i.e., don't
24301   # use $as_me), people would be surprised to read:
24302   #    /* config.h.  Generated by config.status.  */
24303   if test x"$ac_file" = x-; then
24304     echo "/* Generated by configure.  */" >$tmp/config.h
24305   else
24306     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24307   fi
24308   cat $tmp/in >>$tmp/config.h
24309   rm -f $tmp/in
24310   if test x"$ac_file" != x-; then
24311     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24312       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24313 echo "$as_me: $ac_file is unchanged" >&6;}
24314     else
24315       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24317          X"$ac_file" : 'X\(//\)[^/]' \| \
24318          X"$ac_file" : 'X\(//\)$' \| \
24319          X"$ac_file" : 'X\(/\)' \| \
24320          .     : '\(.\)' 2>/dev/null ||
24321 echo X"$ac_file" |
24322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24323           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24324           /^X\(\/\/\)$/{ s//\1/; q; }
24325           /^X\(\/\).*/{ s//\1/; q; }
24326           s/.*/./; q'`
24327       { if $as_mkdir_p; then
24328     mkdir -p "$ac_dir"
24329   else
24330     as_dir="$ac_dir"
24331     as_dirs=
24332     while test ! -d "$as_dir"; do
24333       as_dirs="$as_dir $as_dirs"
24334       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24336          X"$as_dir" : 'X\(//\)[^/]' \| \
24337          X"$as_dir" : 'X\(//\)$' \| \
24338          X"$as_dir" : 'X\(/\)' \| \
24339          .     : '\(.\)' 2>/dev/null ||
24340 echo X"$as_dir" |
24341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24342           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24343           /^X\(\/\/\)$/{ s//\1/; q; }
24344           /^X\(\/\).*/{ s//\1/; q; }
24345           s/.*/./; q'`
24346     done
24347     test ! -n "$as_dirs" || mkdir $as_dirs
24348   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24349 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24350    { (exit 1); exit 1; }; }; }
24351
24352       rm -f $ac_file
24353       mv $tmp/config.h $ac_file
24354     fi
24355   else
24356     cat $tmp/config.h
24357     rm -f $tmp/config.h
24358   fi
24359 done
24360 _ACEOF
24361
24362 cat >>$CONFIG_STATUS <<\_ACEOF
24363
24364 { (exit 0); exit 0; }
24365 _ACEOF
24366 chmod +x $CONFIG_STATUS
24367 ac_clean_files=$ac_clean_files_save
24368
24369
24370 # configure is writing to config.log, and then calls config.status.
24371 # config.status does its own redirection, appending to config.log.
24372 # Unfortunately, on DOS this fails, as config.log is still kept open
24373 # by configure, so config.status won't be able to write to it; its
24374 # output is simply discarded.  So we exec the FD to /dev/null,
24375 # effectively closing config.log, so it can be properly (re)opened and
24376 # appended to by config.status.  When coming back to configure, we
24377 # need to make the FD available again.
24378 if test "$no_create" != yes; then
24379   ac_cs_success=:
24380   exec 5>/dev/null
24381   $SHELL $CONFIG_STATUS || ac_cs_success=false
24382   exec 5>>config.log
24383   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24384   # would make configure fail if this is the last instruction.
24385   $ac_cs_success || { (exit 1); exit 1; }
24386 fi
24387
24388
24389 #################################################
24390 # Print very concise instructions on building/use
24391 if test "x$enable_dmalloc" = xyes
24392 then
24393         echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included.  To turn it on use" >&5
24394 echo "${ECHO_T}Note: The dmalloc debug library will be included.  To turn it on use" >&6
24395         echo "$as_me:$LINENO: result:       \$ eval \\`dmalloc samba\\`." >&5
24396 echo "${ECHO_T}      \$ eval \\`dmalloc samba\\`." >&6
24397 fi