IRIX uses libns_winbind.so instead of libnss_winbind.so
[kai/samba.git] / source3 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
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=".;."; 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              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="include/includes.h"
262 ac_default_prefix=/usr/local/samba
263 # Factoring default headers for most tests.
264 ac_includes_default="\
265 #include <stdio.h>
266 #if HAVE_SYS_TYPES_H
267 # include <sys/types.h>
268 #endif
269 #if HAVE_SYS_STAT_H
270 # include <sys/stat.h>
271 #endif
272 #if STDC_HEADERS
273 # include <stdlib.h>
274 # include <stddef.h>
275 #else
276 # if HAVE_STDLIB_H
277 #  include <stdlib.h>
278 # endif
279 #endif
280 #if HAVE_STRING_H
281 # if !STDC_HEADERS && HAVE_MEMORY_H
282 #  include <memory.h>
283 # endif
284 # include <string.h>
285 #endif
286 #if HAVE_STRINGS_H
287 # include <strings.h>
288 #endif
289 #if HAVE_INTTYPES_H
290 # include <inttypes.h>
291 #else
292 # if HAVE_STDINT_H
293 #  include <stdint.h>
294 # endif
295 #endif
296 #if HAVE_UNISTD_H
297 # include <unistd.h>
298 #endif"
299
300
301 # Initialize some variables set by options.
302 ac_init_help=
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
306 cache_file=/dev/null
307 exec_prefix=NONE
308 no_create=
309 no_recursion=
310 prefix=NONE
311 program_prefix=NONE
312 program_suffix=NONE
313 program_transform_name=s,x,x,
314 silent=
315 site=
316 srcdir=
317 verbose=
318 x_includes=NONE
319 x_libraries=NONE
320
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
338
339 ac_prev=
340 for ac_option
341 do
342   # If the previous option needs an argument, assign it.
343   if test -n "$ac_prev"; then
344     eval "$ac_prev=\$ac_option"
345     ac_prev=
346     continue
347   fi
348
349   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350
351   # Accept the important Cygnus configure options, so we can diagnose typos.
352
353   case $ac_option in
354
355   -bindir | --bindir | --bindi | --bind | --bin | --bi)
356     ac_prev=bindir ;;
357   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358     bindir=$ac_optarg ;;
359
360   -build | --build | --buil | --bui | --bu)
361     ac_prev=build_alias ;;
362   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363     build_alias=$ac_optarg ;;
364
365   -cache-file | --cache-file | --cache-fil | --cache-fi \
366   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367     ac_prev=cache_file ;;
368   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370     cache_file=$ac_optarg ;;
371
372   --config-cache | -C)
373     cache_file=config.cache ;;
374
375   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376     ac_prev=datadir ;;
377   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378   | --da=*)
379     datadir=$ac_optarg ;;
380
381   -disable-* | --disable-*)
382     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383     # Reject names that are not valid shell variable names.
384     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386    { (exit 1); exit 1; }; }
387     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388     eval "enable_$ac_feature=no" ;;
389
390   -enable-* | --enable-*)
391     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392     # Reject names that are not valid shell variable names.
393     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395    { (exit 1); exit 1; }; }
396     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397     case $ac_option in
398       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399       *) ac_optarg=yes ;;
400     esac
401     eval "enable_$ac_feature='$ac_optarg'" ;;
402
403   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405   | --exec | --exe | --ex)
406     ac_prev=exec_prefix ;;
407   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409   | --exec=* | --exe=* | --ex=*)
410     exec_prefix=$ac_optarg ;;
411
412   -gas | --gas | --ga | --g)
413     # Obsolete; use --with-gas.
414     with_gas=yes ;;
415
416   -help | --help | --hel | --he | -h)
417     ac_init_help=long ;;
418   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419     ac_init_help=recursive ;;
420   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421     ac_init_help=short ;;
422
423   -host | --host | --hos | --ho)
424     ac_prev=host_alias ;;
425   -host=* | --host=* | --hos=* | --ho=*)
426     host_alias=$ac_optarg ;;
427
428   -includedir | --includedir | --includedi | --included | --include \
429   | --includ | --inclu | --incl | --inc)
430     ac_prev=includedir ;;
431   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432   | --includ=* | --inclu=* | --incl=* | --inc=*)
433     includedir=$ac_optarg ;;
434
435   -infodir | --infodir | --infodi | --infod | --info | --inf)
436     ac_prev=infodir ;;
437   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438     infodir=$ac_optarg ;;
439
440   -libdir | --libdir | --libdi | --libd)
441     ac_prev=libdir ;;
442   -libdir=* | --libdir=* | --libdi=* | --libd=*)
443     libdir=$ac_optarg ;;
444
445   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446   | --libexe | --libex | --libe)
447     ac_prev=libexecdir ;;
448   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449   | --libexe=* | --libex=* | --libe=*)
450     libexecdir=$ac_optarg ;;
451
452   -localstatedir | --localstatedir | --localstatedi | --localstated \
453   | --localstate | --localstat | --localsta | --localst \
454   | --locals | --local | --loca | --loc | --lo)
455     ac_prev=localstatedir ;;
456   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459     localstatedir=$ac_optarg ;;
460
461   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462     ac_prev=mandir ;;
463   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464     mandir=$ac_optarg ;;
465
466   -nfp | --nfp | --nf)
467     # Obsolete; use --without-fp.
468     with_fp=no ;;
469
470   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471   | --no-cr | --no-c | -n)
472     no_create=yes ;;
473
474   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476     no_recursion=yes ;;
477
478   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480   | --oldin | --oldi | --old | --ol | --o)
481     ac_prev=oldincludedir ;;
482   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485     oldincludedir=$ac_optarg ;;
486
487   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488     ac_prev=prefix ;;
489   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490     prefix=$ac_optarg ;;
491
492   -program-prefix | --program-prefix | --program-prefi | --program-pref \
493   | --program-pre | --program-pr | --program-p)
494     ac_prev=program_prefix ;;
495   -program-prefix=* | --program-prefix=* | --program-prefi=* \
496   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497     program_prefix=$ac_optarg ;;
498
499   -program-suffix | --program-suffix | --program-suffi | --program-suff \
500   | --program-suf | --program-su | --program-s)
501     ac_prev=program_suffix ;;
502   -program-suffix=* | --program-suffix=* | --program-suffi=* \
503   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504     program_suffix=$ac_optarg ;;
505
506   -program-transform-name | --program-transform-name \
507   | --program-transform-nam | --program-transform-na \
508   | --program-transform-n | --program-transform- \
509   | --program-transform | --program-transfor \
510   | --program-transfo | --program-transf \
511   | --program-trans | --program-tran \
512   | --progr-tra | --program-tr | --program-t)
513     ac_prev=program_transform_name ;;
514   -program-transform-name=* | --program-transform-name=* \
515   | --program-transform-nam=* | --program-transform-na=* \
516   | --program-transform-n=* | --program-transform-=* \
517   | --program-transform=* | --program-transfor=* \
518   | --program-transfo=* | --program-transf=* \
519   | --program-trans=* | --program-tran=* \
520   | --progr-tra=* | --program-tr=* | --program-t=*)
521     program_transform_name=$ac_optarg ;;
522
523   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524   | -silent | --silent | --silen | --sile | --sil)
525     silent=yes ;;
526
527   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528     ac_prev=sbindir ;;
529   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530   | --sbi=* | --sb=*)
531     sbindir=$ac_optarg ;;
532
533   -sharedstatedir | --sharedstatedir | --sharedstatedi \
534   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535   | --sharedst | --shareds | --shared | --share | --shar \
536   | --sha | --sh)
537     ac_prev=sharedstatedir ;;
538   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541   | --sha=* | --sh=*)
542     sharedstatedir=$ac_optarg ;;
543
544   -site | --site | --sit)
545     ac_prev=site ;;
546   -site=* | --site=* | --sit=*)
547     site=$ac_optarg ;;
548
549   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550     ac_prev=srcdir ;;
551   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552     srcdir=$ac_optarg ;;
553
554   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555   | --syscon | --sysco | --sysc | --sys | --sy)
556     ac_prev=sysconfdir ;;
557   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559     sysconfdir=$ac_optarg ;;
560
561   -target | --target | --targe | --targ | --tar | --ta | --t)
562     ac_prev=target_alias ;;
563   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564     target_alias=$ac_optarg ;;
565
566   -v | -verbose | --verbose | --verbos | --verbo | --verb)
567     verbose=yes ;;
568
569   -version | --version | --versio | --versi | --vers | -V)
570     ac_init_version=: ;;
571
572   -with-* | --with-*)
573     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574     # Reject names that are not valid shell variable names.
575     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576       { echo "$as_me: error: invalid package name: $ac_package" >&2
577    { (exit 1); exit 1; }; }
578     ac_package=`echo $ac_package| sed 's/-/_/g'`
579     case $ac_option in
580       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581       *) ac_optarg=yes ;;
582     esac
583     eval "with_$ac_package='$ac_optarg'" ;;
584
585   -without-* | --without-*)
586     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package | sed 's/-/_/g'`
592     eval "with_$ac_package=no" ;;
593
594   --x)
595     # Obsolete; use --with-x.
596     with_x=yes ;;
597
598   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599   | --x-incl | --x-inc | --x-in | --x-i)
600     ac_prev=x_includes ;;
601   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603     x_includes=$ac_optarg ;;
604
605   -x-libraries | --x-libraries | --x-librarie | --x-librari \
606   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607     ac_prev=x_libraries ;;
608   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610     x_libraries=$ac_optarg ;;
611
612   -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614    { (exit 1); exit 1; }; }
615     ;;
616
617   *=*)
618     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619     # Reject names that are not valid shell variable names.
620     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622    { (exit 1); exit 1; }; }
623     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624     eval "$ac_envvar='$ac_optarg'"
625     export $ac_envvar ;;
626
627   *)
628     # FIXME: should be removed in autoconf 3.0.
629     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
633     ;;
634
635   esac
636 done
637
638 if test -n "$ac_prev"; then
639   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640   { echo "$as_me: error: missing argument to $ac_option" >&2
641    { (exit 1); exit 1; }; }
642 fi
643
644 # Be sure to have absolute paths.
645 for ac_var in exec_prefix prefix
646 do
647   eval ac_val=$`echo $ac_var`
648   case $ac_val in
649     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651    { (exit 1); exit 1; }; };;
652   esac
653 done
654
655 # Be sure to have absolute paths.
656 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657               localstatedir libdir includedir oldincludedir infodir mandir
658 do
659   eval ac_val=$`echo $ac_var`
660   case $ac_val in
661     [\\/$]* | ?:[\\/]* ) ;;
662     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663    { (exit 1); exit 1; }; };;
664   esac
665 done
666
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
669 # FIXME: To remove some day.
670 build=$build_alias
671 host=$host_alias
672 target=$target_alias
673
674 # FIXME: To remove some day.
675 if test "x$host_alias" != x; then
676   if test "x$build_alias" = x; then
677     cross_compiling=maybe
678     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679     If a cross compiler is detected then cross compile mode will be used." >&2
680   elif test "x$build_alias" != "x$host_alias"; then
681     cross_compiling=yes
682   fi
683 fi
684
685 ac_tool_prefix=
686 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687
688 test "$silent" = yes && exec 6>/dev/null
689
690
691 # Find the source files, if location was not specified.
692 if test -z "$srcdir"; then
693   ac_srcdir_defaulted=yes
694   # Try the directory containing this script, then its parent.
695   ac_confdir=`(dirname "$0") 2>/dev/null ||
696 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697          X"$0" : 'X\(//\)[^/]' \| \
698          X"$0" : 'X\(//\)$' \| \
699          X"$0" : 'X\(/\)' \| \
700          .     : '\(.\)' 2>/dev/null ||
701 echo X"$0" |
702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704           /^X\(\/\/\)$/{ s//\1/; q; }
705           /^X\(\/\).*/{ s//\1/; q; }
706           s/.*/./; q'`
707   srcdir=$ac_confdir
708   if test ! -r $srcdir/$ac_unique_file; then
709     srcdir=..
710   fi
711 else
712   ac_srcdir_defaulted=no
713 fi
714 if test ! -r $srcdir/$ac_unique_file; then
715   if test "$ac_srcdir_defaulted" = yes; then
716     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717    { (exit 1); exit 1; }; }
718   else
719     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720    { (exit 1); exit 1; }; }
721   fi
722 fi
723 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724 ac_env_build_alias_set=${build_alias+set}
725 ac_env_build_alias_value=$build_alias
726 ac_cv_env_build_alias_set=${build_alias+set}
727 ac_cv_env_build_alias_value=$build_alias
728 ac_env_host_alias_set=${host_alias+set}
729 ac_env_host_alias_value=$host_alias
730 ac_cv_env_host_alias_set=${host_alias+set}
731 ac_cv_env_host_alias_value=$host_alias
732 ac_env_target_alias_set=${target_alias+set}
733 ac_env_target_alias_value=$target_alias
734 ac_cv_env_target_alias_set=${target_alias+set}
735 ac_cv_env_target_alias_value=$target_alias
736 ac_env_CC_set=${CC+set}
737 ac_env_CC_value=$CC
738 ac_cv_env_CC_set=${CC+set}
739 ac_cv_env_CC_value=$CC
740 ac_env_CFLAGS_set=${CFLAGS+set}
741 ac_env_CFLAGS_value=$CFLAGS
742 ac_cv_env_CFLAGS_set=${CFLAGS+set}
743 ac_cv_env_CFLAGS_value=$CFLAGS
744 ac_env_LDFLAGS_set=${LDFLAGS+set}
745 ac_env_LDFLAGS_value=$LDFLAGS
746 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747 ac_cv_env_LDFLAGS_value=$LDFLAGS
748 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749 ac_env_CPPFLAGS_value=$CPPFLAGS
750 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
756
757 #
758 # Report the --help message.
759 #
760 if test "$ac_init_help" = "long"; then
761   # Omit some internal or obsolete options to make the list less imposing.
762   # This message is too long to be a string in the A/UX 3.1 sh.
763   cat <<_ACEOF
764 \`configure' configures this package to adapt to many kinds of systems.
765
766 Usage: $0 [OPTION]... [VAR=VALUE]...
767
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE.  See below for descriptions of some of the useful variables.
770
771 Defaults for the options are specified in brackets.
772
773 Configuration:
774   -h, --help              display this help and exit
775       --help=short        display options specific to this package
776       --help=recursive    display the short help of all the included packages
777   -V, --version           display version information and exit
778   -q, --quiet, --silent   do not print \`checking...' messages
779       --cache-file=FILE   cache test results in FILE [disabled]
780   -C, --config-cache      alias for \`--cache-file=config.cache'
781   -n, --no-create         do not create output files
782       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
783
784 _ACEOF
785
786   cat <<_ACEOF
787 Installation directories:
788   --prefix=PREFIX         install architecture-independent files in PREFIX
789                           [$ac_default_prefix]
790   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
791                           [PREFIX]
792
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
797
798 For better control, use the options below.
799
800 Fine tuning of the installation directories:
801   --bindir=DIR           user executables [EPREFIX/bin]
802   --sbindir=DIR          system admin executables [EPREFIX/sbin]
803   --libexecdir=DIR       program executables [EPREFIX/libexec]
804   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
805   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
806   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
807   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
808   --libdir=DIR           object code libraries [EPREFIX/lib]
809   --includedir=DIR       C header files [PREFIX/include]
810   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
811   --infodir=DIR          info documentation [PREFIX/info]
812   --mandir=DIR           man documentation [PREFIX/man]
813 _ACEOF
814
815   cat <<\_ACEOF
816
817 System types:
818   --build=BUILD     configure for building on BUILD [guessed]
819   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
820   --target=TARGET   configure for building compilers for TARGET [HOST]
821 _ACEOF
822 fi
823
824 if test -n "$ac_init_help"; then
825
826   cat <<\_ACEOF
827
828 Optional Features:
829   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
830   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
831   --enable-debug          Turn on compiler debugging information (default=no)
832   --enable-developer      Turn on developer warnings and debugging (default=no)
833   --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
834   --enable-dmalloc        Enable heap debugging default=no
835   --enable-cups           Turn on CUPS support (default=auto)
836   --disable-mysqltest       Do not try to compile and run a test MYSQL program
837   --disable-xmltest       Do not try to compile and run a test LIBXML program
838
839 Optional Packages:
840   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
841   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
842   --with-fhs              Use FHS-compliant paths (default=no)
843   --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
844   --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
845   --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
846   --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
847   --with-configdir=DIR    Where to put configuration files (\$libdir)
848   --with-logfilebase=DIR  Where to put log files (\$(VARDIR))
849   --with-readline=DIR   Look for readline include/libs in DIR (default=auto)
850   --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
851   --with-smbwrapper       Include SMB wrapper support (default=no)
852   --with-afs              Include AFS clear-text auth support (default=no)
853   --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
854    --with-ads  Active Directory support (default yes)
855   --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
856    --with-ldap  LDAP support (default yes)
857   --with-mysql-prefix=PFX   Prefix where MYSQL is installed (optional)
858   --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
859   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
860   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
861   --with-automount        Include automount support (default=no)
862   --with-smbmount         Include smbmount (Linux only) support (default=no)
863   --with-pam              Include PAM support (default=no)
864   --with-pam_smbpass      Build a PAM module to allow other applications to use our smbpasswd file (default=no)
865   --with-ldapsam           Include LDAP SAM 2.2 compatible configuration (default=no)
866   --with-tdbsam           Include experimental TDB SAM support (default=no)
867   --with-nisplussam       Include NISPLUS SAM support (default=no)
868   --with-nisplus-home     Include NISPLUS_HOME support (default=no)
869   --with-syslog           Include experimental SYSLOG support (default=no)
870   --with-profiling-data   Include gathering source code profile information (default=no)
871   --with-quotas           Include experimental disk-quota support (default=no)
872   --with-utmp             Include experimental utmp accounting (default=no)
873   --with-manpages-langs={en,ja,pl}  Choose man pages' language(s). (en)
874   --with-libsmbclient     Build the libsmbclient shared library (default=yes)
875   --with-spinlocks        Use spin locks instead of fcntl locks (default=no)
876   --with-acl-support      Include ACL support (default=no)
877   --with-sendfile-support      Check for sendfile support (default=yes)
878   --with-winbind          Build winbind (default, if supported by OS)
879   --with-included-popt    use bundled popt library, not from system
880   --with-python=PYTHONNAME  build Python libraries
881
882 Some influential environment variables:
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   CPP         C preprocessor
890
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
893
894 _ACEOF
895 fi
896
897 if test "$ac_init_help" = "recursive"; then
898   # If there are subdirs, report their specific --help.
899   ac_popdir=`pwd`
900   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901     test -d $ac_dir || continue
902     ac_builddir=.
903
904 if test "$ac_dir" != .; then
905   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906   # A "../" for each directory in $ac_dir_suffix.
907   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909   ac_dir_suffix= ac_top_builddir=
910 fi
911
912 case $srcdir in
913   .)  # No --srcdir option.  We are building in place.
914     ac_srcdir=.
915     if test -z "$ac_top_builddir"; then
916        ac_top_srcdir=.
917     else
918        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919     fi ;;
920   [\\/]* | ?:[\\/]* )  # Absolute path.
921     ac_srcdir=$srcdir$ac_dir_suffix;
922     ac_top_srcdir=$srcdir ;;
923   *) # Relative path.
924     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925     ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 # absolute.
929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933
934     cd $ac_dir
935     # Check for guested configure; otherwise get Cygnus style configure.
936     if test -f $ac_srcdir/configure.gnu; then
937       echo
938       $SHELL $ac_srcdir/configure.gnu  --help=recursive
939     elif test -f $ac_srcdir/configure; then
940       echo
941       $SHELL $ac_srcdir/configure  --help=recursive
942     elif test -f $ac_srcdir/configure.ac ||
943            test -f $ac_srcdir/configure.in; then
944       echo
945       $ac_configure --help
946     else
947       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948     fi
949     cd $ac_popdir
950   done
951 fi
952
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
955   cat <<\_ACEOF
956
957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239 ac_config_headers="$ac_config_headers include/config.h"
1240
1241
1242 #################################################
1243 # Directory handling stuff to support both the
1244 # legacy SAMBA directories and FHS compliant
1245 # ones...
1246
1247
1248
1249 # Check whether --with-fhs or --without-fhs was given.
1250 if test "${with_fhs+set}" = set; then
1251   withval="$with_fhs"
1252   configdir="${sysconfdir}/samba"
1253     lockdir="\${VARDIR}/cache/samba"
1254     piddir="\${VARDIR}/run/samba"
1255     logfilebase="\${VARDIR}/log/samba"
1256     privatedir="\${CONFIGDIR}/private"
1257     libdir="\${prefix}/lib/samba"
1258     swatdir="\${DATADIR}/samba/swat"
1259 else
1260   configdir="\${LIBDIR}"
1261     logfilebase="\${VARDIR}"
1262     lockdir="\${VARDIR}/locks"
1263     piddir="\${VARDIR}/locks"
1264     privatedir="\${prefix}/private"
1265     swatdir="\${prefix}/swat"
1266 fi;
1267
1268 #################################################
1269 # set private directory location
1270
1271 # Check whether --with-privatedir or --without-privatedir was given.
1272 if test "${with_privatedir+set}" = set; then
1273   withval="$with_privatedir"
1274    case "$withval" in
1275   yes|no)
1276   #
1277   # Just in case anybody calls it without argument
1278   #
1279     { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1280 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1281   ;;
1282   * )
1283     privatedir="$withval"
1284     ;;
1285   esac
1286 fi;
1287
1288 #################################################
1289 # set lock directory location
1290
1291 # Check whether --with-lockdir or --without-lockdir was given.
1292 if test "${with_lockdir+set}" = set; then
1293   withval="$with_lockdir"
1294    case "$withval" in
1295   yes|no)
1296   #
1297   # Just in case anybody calls it without argument
1298   #
1299     { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1300 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1301   ;;
1302   * )
1303     lockdir="$withval"
1304     ;;
1305   esac
1306 fi;
1307
1308 #################################################
1309 # set pid directory location
1310
1311 # Check whether --with-piddir or --without-piddir was given.
1312 if test "${with_piddir+set}" = set; then
1313   withval="$with_piddir"
1314    case "$withval" in
1315   yes|no)
1316   #
1317   # Just in case anybody calls it without argument
1318   #
1319     { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1320 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1321   ;;
1322   * )
1323     piddir="$withval"
1324     ;;
1325   esac
1326 fi;
1327
1328 #################################################
1329 # set SWAT directory location
1330
1331 # Check whether --with-swatdir or --without-swatdir was given.
1332 if test "${with_swatdir+set}" = set; then
1333   withval="$with_swatdir"
1334    case "$withval" in
1335   yes|no)
1336   #
1337   # Just in case anybody does it
1338   #
1339     { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1340 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1341   ;;
1342   * )
1343     swatdir="$withval"
1344     ;;
1345   esac
1346 fi;
1347
1348 #################################################
1349 # set configuration directory location
1350
1351 # Check whether --with-configdir or --without-configdir was given.
1352 if test "${with_configdir+set}" = set; then
1353   withval="$with_configdir"
1354    case "$withval" in
1355   yes|no)
1356   #
1357   # Just in case anybody does it
1358   #
1359     { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1360 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1361   ;;
1362   * )
1363     configdir="$withval"
1364     ;;
1365   esac
1366 fi;
1367
1368 #################################################
1369 # set log directory location
1370
1371 # Check whether --with-logfilebase or --without-logfilebase was given.
1372 if test "${with_logfilebase+set}" = set; then
1373   withval="$with_logfilebase"
1374    case "$withval" in
1375   yes|no)
1376   #
1377   # Just in case anybody does it
1378   #
1379     { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1380 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1381   ;;
1382   * )
1383     logfilebase="$withval"
1384     ;;
1385   esac
1386 fi;
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416 # compile with optimization and without debugging by default
1417 CFLAGS="-O ${CFLAGS}"
1418
1419 # Check whether --enable-debug or --disable-debug was given.
1420 if test "${enable_debug+set}" = set; then
1421   enableval="$enable_debug"
1422   if eval "test x$enable_debug = xyes"; then
1423         CFLAGS="${CFLAGS} -g"
1424     fi
1425 fi;
1426
1427 # Check whether --enable-developer or --disable-developer was given.
1428 if test "${enable_developer+set}" = set; then
1429   enableval="$enable_developer"
1430   if eval "test x$enable_developer = xyes"; then
1431         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1432     fi
1433 fi;
1434
1435 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1436 if test "${enable_krb5developer+set}" = set; then
1437   enableval="$enable_krb5developer"
1438   if eval "test x$enable_krb5developer = xyes"; then
1439         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1440     fi
1441 fi;
1442
1443 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1444 if test "${enable_dmalloc+set}" = set; then
1445   enableval="$enable_dmalloc"
1446
1447 fi;
1448
1449 if test "x$enable_dmalloc" = xyes
1450 then
1451
1452 cat >>confdefs.h <<\_ACEOF
1453 #define ENABLE_DMALLOC 1
1454 _ACEOF
1455
1456
1457 cat >>confdefs.h <<\_ACEOF
1458 #define DMALLOC_FUNC_CHECK 1
1459 _ACEOF
1460
1461         LIBS="$LIBS -ldmalloc"
1462 fi
1463
1464 ac_ext=c
1465 ac_cpp='$CPP $CPPFLAGS'
1466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469 if test -n "$ac_tool_prefix"; then
1470   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   if test -n "$CC"; then
1478   ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1482 do
1483   IFS=$as_save_IFS
1484   test -z "$as_dir" && as_dir=.
1485   for ac_exec_ext in '' $ac_executable_extensions; do
1486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489     break 2
1490   fi
1491 done
1492 done
1493
1494 fi
1495 fi
1496 CC=$ac_cv_prog_CC
1497 if test -n "$CC"; then
1498   echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1500 else
1501   echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503 fi
1504
1505 fi
1506 if test -z "$ac_cv_prog_CC"; then
1507   ac_ct_CC=$CC
1508   # Extract the first word of "gcc", so it can be a program name with args.
1509 set dummy gcc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   if test -n "$ac_ct_CC"; then
1516   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1520 do
1521   IFS=$as_save_IFS
1522   test -z "$as_dir" && as_dir=.
1523   for ac_exec_ext in '' $ac_executable_extensions; do
1524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525     ac_cv_prog_ac_ct_CC="gcc"
1526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527     break 2
1528   fi
1529 done
1530 done
1531
1532 fi
1533 fi
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1538 else
1539   echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 fi
1542
1543   CC=$ac_ct_CC
1544 else
1545   CC="$ac_cv_prog_CC"
1546 fi
1547
1548 if test -z "$CC"; then
1549   if test -n "$ac_tool_prefix"; then
1550   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1551 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
1555   echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557   if test -n "$CC"; then
1558   ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
1577 if test -n "$CC"; then
1578   echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1580 else
1581   echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1583 fi
1584
1585 fi
1586 if test -z "$ac_cv_prog_CC"; then
1587   ac_ct_CC=$CC
1588   # Extract the first word of "cc", so it can be a program name with args.
1589 set dummy cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593   echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595   if test -n "$ac_ct_CC"; then
1596   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   for ac_exec_ext in '' $ac_executable_extensions; do
1604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605     ac_cv_prog_ac_ct_CC="cc"
1606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607     break 2
1608   fi
1609 done
1610 done
1611
1612 fi
1613 fi
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1618 else
1619   echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 fi
1622
1623   CC=$ac_ct_CC
1624 else
1625   CC="$ac_cv_prog_CC"
1626 fi
1627
1628 fi
1629 if test -z "$CC"; then
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_CC+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   if test -n "$CC"; then
1638   ac_cv_prog_CC="$CC" # Let the user override the test.
1639 else
1640   ac_prog_rejected=no
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   for ac_exec_ext in '' $ac_executable_extensions; do
1647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1649        ac_prog_rejected=yes
1650        continue
1651      fi
1652     ac_cv_prog_CC="cc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 if test $ac_prog_rejected = yes; then
1660   # We found a bogon in the path, so make sure we never use it.
1661   set dummy $ac_cv_prog_CC
1662   shift
1663   if test $# != 0; then
1664     # We chose a different compiler from the bogus one.
1665     # However, it has the same basename, so the bogon will be chosen
1666     # first if we set CC to just the basename; use the full file name.
1667     shift
1668     set dummy "$as_dir/$ac_word" ${1+"$@"}
1669     shift
1670     ac_cv_prog_CC="$@"
1671   fi
1672 fi
1673 fi
1674 fi
1675 CC=$ac_cv_prog_CC
1676 if test -n "$CC"; then
1677   echo "$as_me:$LINENO: result: $CC" >&5
1678 echo "${ECHO_T}$CC" >&6
1679 else
1680   echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1682 fi
1683
1684 fi
1685 if test -z "$CC"; then
1686   if test -n "$ac_tool_prefix"; then
1687   for ac_prog in cl
1688   do
1689     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   for ac_exec_ext in '' $ac_executable_extensions; do
1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
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     test -n "$CC" && break
1725   done
1726 fi
1727 if test -z "$CC"; then
1728   ac_ct_CC=$CC
1729   for ac_prog in cl
1730 do
1731   # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1736   echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738   if test -n "$ac_ct_CC"; then
1739   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1740 else
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744   IFS=$as_save_IFS
1745   test -z "$as_dir" && as_dir=.
1746   for ac_exec_ext in '' $ac_executable_extensions; do
1747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748     ac_cv_prog_ac_ct_CC="$ac_prog"
1749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750     break 2
1751   fi
1752 done
1753 done
1754
1755 fi
1756 fi
1757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1758 if test -n "$ac_ct_CC"; then
1759   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1760 echo "${ECHO_T}$ac_ct_CC" >&6
1761 else
1762   echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1764 fi
1765
1766   test -n "$ac_ct_CC" && break
1767 done
1768
1769   CC=$ac_ct_CC
1770 fi
1771
1772 fi
1773
1774
1775 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1777    { (exit 1); exit 1; }; }
1778
1779 # Provide some information about the compiler.
1780 echo "$as_me:$LINENO:" \
1781      "checking for C compiler version" >&5
1782 ac_compiler=`set X $ac_compile; echo $2`
1783 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1784   (eval $ac_compiler --version </dev/null >&5) 2>&5
1785   ac_status=$?
1786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787   (exit $ac_status); }
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1789   (eval $ac_compiler -v </dev/null >&5) 2>&5
1790   ac_status=$?
1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792   (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1794   (eval $ac_compiler -V </dev/null >&5) 2>&5
1795   ac_status=$?
1796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797   (exit $ac_status); }
1798
1799 cat >conftest.$ac_ext <<_ACEOF
1800 #line $LINENO "configure"
1801 #include "confdefs.h"
1802
1803 #ifdef F77_DUMMY_MAIN
1804 #  ifdef __cplusplus
1805      extern "C"
1806 #  endif
1807    int F77_DUMMY_MAIN() { return 1; }
1808 #endif
1809 int
1810 main ()
1811 {
1812
1813   ;
1814   return 0;
1815 }
1816 _ACEOF
1817 ac_clean_files_save=$ac_clean_files
1818 ac_clean_files="$ac_clean_files a.out a.exe"
1819 # Try to create an executable without -o first, disregard a.out.
1820 # It will help us diagnose broken compilers, and finding out an intuition
1821 # of exeext.
1822 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1823 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1824 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1826   (eval $ac_link_default) 2>&5
1827   ac_status=$?
1828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829   (exit $ac_status); }; then
1830   # Find the output, starting from the most likely.  This scheme is
1831 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832 # resort.
1833
1834 # Be careful to initialize this variable, since it used to be cached.
1835 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1836 ac_cv_exeext=
1837 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1838                 ls a.out conftest 2>/dev/null;
1839                 ls a.* conftest.* 2>/dev/null`; do
1840   case $ac_file in
1841     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1842     a.out ) # We found the default executable, but exeext='' is most
1843             # certainly right.
1844             break;;
1845     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1847           export ac_cv_exeext
1848           break;;
1849     * ) break;;
1850   esac
1851 done
1852 else
1853   echo "$as_me: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1856 echo "$as_me: error: C compiler cannot create executables" >&2;}
1857    { (exit 77); exit 77; }; }
1858 fi
1859
1860 ac_exeext=$ac_cv_exeext
1861 echo "$as_me:$LINENO: result: $ac_file" >&5
1862 echo "${ECHO_T}$ac_file" >&6
1863
1864 # Check the compiler produces executables we can run.  If not, either
1865 # the compiler is broken, or we cross compile.
1866 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1867 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1868 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1869 # If not cross compiling, check that we can run a simple program.
1870 if test "$cross_compiling" != yes; then
1871   if { ac_try='./$ac_file'
1872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1873   (eval $ac_try) 2>&5
1874   ac_status=$?
1875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876   (exit $ac_status); }; }; then
1877     cross_compiling=no
1878   else
1879     if test "$cross_compiling" = maybe; then
1880         cross_compiling=yes
1881     else
1882         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1883 If you meant to cross compile, use \`--host'." >&5
1884 echo "$as_me: error: cannot run C compiled programs.
1885 If you meant to cross compile, use \`--host'." >&2;}
1886    { (exit 1); exit 1; }; }
1887     fi
1888   fi
1889 fi
1890 echo "$as_me:$LINENO: result: yes" >&5
1891 echo "${ECHO_T}yes" >&6
1892
1893 rm -f a.out a.exe conftest$ac_cv_exeext
1894 ac_clean_files=$ac_clean_files_save
1895 # Check the compiler produces executables we can run.  If not, either
1896 # the compiler is broken, or we cross compile.
1897 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1898 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1899 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1900 echo "${ECHO_T}$cross_compiling" >&6
1901
1902 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1903 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1905   (eval $ac_link) 2>&5
1906   ac_status=$?
1907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908   (exit $ac_status); }; then
1909   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1910 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1911 # work properly (i.e., refer to `conftest.exe'), while it won't with
1912 # `rm'.
1913 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1914   case $ac_file in
1915     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1916     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1917           export ac_cv_exeext
1918           break;;
1919     * ) break;;
1920   esac
1921 done
1922 else
1923   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1924 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1925    { (exit 1); exit 1; }; }
1926 fi
1927
1928 rm -f conftest$ac_cv_exeext
1929 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1930 echo "${ECHO_T}$ac_cv_exeext" >&6
1931
1932 rm -f conftest.$ac_ext
1933 EXEEXT=$ac_cv_exeext
1934 ac_exeext=$EXEEXT
1935 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1936 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1937 if test "${ac_cv_objext+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   cat >conftest.$ac_ext <<_ACEOF
1941 #line $LINENO "configure"
1942 #include "confdefs.h"
1943
1944 #ifdef F77_DUMMY_MAIN
1945 #  ifdef __cplusplus
1946      extern "C"
1947 #  endif
1948    int F77_DUMMY_MAIN() { return 1; }
1949 #endif
1950 int
1951 main ()
1952 {
1953
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 rm -f conftest.o conftest.obj
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960   (eval $ac_compile) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }; then
1964   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1965   case $ac_file in
1966     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1967     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1968        break;;
1969   esac
1970 done
1971 else
1972   echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1975 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
1978
1979 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1980 fi
1981 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1982 echo "${ECHO_T}$ac_cv_objext" >&6
1983 OBJEXT=$ac_cv_objext
1984 ac_objext=$OBJEXT
1985 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1986 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1987 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   cat >conftest.$ac_ext <<_ACEOF
1991 #line $LINENO "configure"
1992 #include "confdefs.h"
1993
1994 #ifdef F77_DUMMY_MAIN
1995 #  ifdef __cplusplus
1996      extern "C"
1997 #  endif
1998    int F77_DUMMY_MAIN() { return 1; }
1999 #endif
2000 int
2001 main ()
2002 {
2003 #ifndef __GNUC__
2004        choke me
2005 #endif
2006
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 rm -f conftest.$ac_objext
2012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2013   (eval $ac_compile) 2>&5
2014   ac_status=$?
2015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016   (exit $ac_status); } &&
2017          { ac_try='test -s conftest.$ac_objext'
2018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019   (eval $ac_try) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); }; }; then
2023   ac_compiler_gnu=yes
2024 else
2025   echo "$as_me: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2027 ac_compiler_gnu=no
2028 fi
2029 rm -f conftest.$ac_objext conftest.$ac_ext
2030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2031
2032 fi
2033 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2035 GCC=`test $ac_compiler_gnu = yes && echo yes`
2036 ac_test_CFLAGS=${CFLAGS+set}
2037 ac_save_CFLAGS=$CFLAGS
2038 CFLAGS="-g"
2039 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2041 if test "${ac_cv_prog_cc_g+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   cat >conftest.$ac_ext <<_ACEOF
2045 #line $LINENO "configure"
2046 #include "confdefs.h"
2047
2048 #ifdef F77_DUMMY_MAIN
2049 #  ifdef __cplusplus
2050      extern "C"
2051 #  endif
2052    int F77_DUMMY_MAIN() { return 1; }
2053 #endif
2054 int
2055 main ()
2056 {
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064   (eval $ac_compile) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); } &&
2068          { ac_try='test -s conftest.$ac_objext'
2069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070   (eval $ac_try) 2>&5
2071   ac_status=$?
2072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073   (exit $ac_status); }; }; then
2074   ac_cv_prog_cc_g=yes
2075 else
2076   echo "$as_me: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 ac_cv_prog_cc_g=no
2079 fi
2080 rm -f conftest.$ac_objext conftest.$ac_ext
2081 fi
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084 if test "$ac_test_CFLAGS" = set; then
2085   CFLAGS=$ac_save_CFLAGS
2086 elif test $ac_cv_prog_cc_g = yes; then
2087   if test "$GCC" = yes; then
2088     CFLAGS="-g -O2"
2089   else
2090     CFLAGS="-g"
2091   fi
2092 else
2093   if test "$GCC" = yes; then
2094     CFLAGS="-O2"
2095   else
2096     CFLAGS=
2097   fi
2098 fi
2099 # Some people use a C++ compiler to compile C.  Since we use `exit',
2100 # in C++ we need to declare it.  In case someone uses the same compiler
2101 # for both compiling C and C++ we need to have the C++ compiler decide
2102 # the declaration of exit, since it's the most demanding environment.
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #ifndef __cplusplus
2105   choke me
2106 #endif
2107 _ACEOF
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110   (eval $ac_compile) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); } &&
2114          { ac_try='test -s conftest.$ac_objext'
2115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116   (eval $ac_try) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }; }; then
2120   for ac_declaration in \
2121    ''\
2122    '#include <stdlib.h>' \
2123    'extern "C" void std::exit (int) throw (); using std::exit;' \
2124    'extern "C" void std::exit (int); using std::exit;' \
2125    'extern "C" void exit (int) throw ();' \
2126    'extern "C" void exit (int);' \
2127    'void exit (int);'
2128 do
2129   cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 #include "confdefs.h"
2132 #include <stdlib.h>
2133 $ac_declaration
2134 #ifdef F77_DUMMY_MAIN
2135 #  ifdef __cplusplus
2136      extern "C"
2137 #  endif
2138    int F77_DUMMY_MAIN() { return 1; }
2139 #endif
2140 int
2141 main ()
2142 {
2143 exit (42);
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150   (eval $ac_compile) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); } &&
2154          { ac_try='test -s conftest.$ac_objext'
2155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156   (eval $ac_try) 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }; }; then
2160   :
2161 else
2162   echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 continue
2165 fi
2166 rm -f conftest.$ac_objext conftest.$ac_ext
2167   cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 #include "confdefs.h"
2170 $ac_declaration
2171 #ifdef F77_DUMMY_MAIN
2172 #  ifdef __cplusplus
2173      extern "C"
2174 #  endif
2175    int F77_DUMMY_MAIN() { return 1; }
2176 #endif
2177 int
2178 main ()
2179 {
2180 exit (42);
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187   (eval $ac_compile) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); } &&
2191          { ac_try='test -s conftest.$ac_objext'
2192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193   (eval $ac_try) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; }; then
2197   break
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 fi
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 done
2204 rm -f conftest*
2205 if test -n "$ac_declaration"; then
2206   echo '#ifdef __cplusplus' >>confdefs.h
2207   echo $ac_declaration      >>confdefs.h
2208   echo '#endif'             >>confdefs.h
2209 fi
2210
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2214 fi
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2216 ac_ext=c
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222 ac_aux_dir=
2223 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2224   if test -f $ac_dir/install-sh; then
2225     ac_aux_dir=$ac_dir
2226     ac_install_sh="$ac_aux_dir/install-sh -c"
2227     break
2228   elif test -f $ac_dir/install.sh; then
2229     ac_aux_dir=$ac_dir
2230     ac_install_sh="$ac_aux_dir/install.sh -c"
2231     break
2232   elif test -f $ac_dir/shtool; then
2233     ac_aux_dir=$ac_dir
2234     ac_install_sh="$ac_aux_dir/shtool install -c"
2235     break
2236   fi
2237 done
2238 if test -z "$ac_aux_dir"; then
2239   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2240 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2241    { (exit 1); exit 1; }; }
2242 fi
2243 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2244 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2245 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2246
2247 # Find a good install program.  We prefer a C program (faster),
2248 # so one script is as good as another.  But avoid the broken or
2249 # incompatible versions:
2250 # SysV /etc/install, /usr/sbin/install
2251 # SunOS /usr/etc/install
2252 # IRIX /sbin/install
2253 # AIX /bin/install
2254 # AmigaOS /C/install, which installs bootblocks on floppy discs
2255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2258 # ./install, which can be erroneously created by make from ./install.sh.
2259 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2260 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2261 if test -z "$INSTALL"; then
2262 if test "${ac_cv_path_install+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270   # Account for people who put trailing slashes in PATH elements.
2271 case $as_dir/ in
2272   ./ | .// | /cC/* | \
2273   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274   /usr/ucb/* ) ;;
2275   *)
2276     # OSF1 and SCO ODT 3.0 have their own names for install.
2277     # Don't use installbsd from OSF since it installs stuff as root
2278     # by default.
2279     for ac_prog in ginstall scoinst install; do
2280       for ac_exec_ext in '' $ac_executable_extensions; do
2281         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2282           if test $ac_prog = install &&
2283             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284             # AIX install.  It has an incompatible calling convention.
2285             :
2286           elif test $ac_prog = install &&
2287             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2288             # program-specific install script used by HP pwplus--don't use.
2289             :
2290           else
2291             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292             break 3
2293           fi
2294         fi
2295       done
2296     done
2297     ;;
2298 esac
2299 done
2300
2301
2302 fi
2303   if test "${ac_cv_path_install+set}" = set; then
2304     INSTALL=$ac_cv_path_install
2305   else
2306     # As a last resort, use the slow shell script.  We don't cache a
2307     # path for INSTALL within a source directory, because that will
2308     # break other packages using the cache if that directory is
2309     # removed, or if the path is relative.
2310     INSTALL=$ac_install_sh
2311   fi
2312 fi
2313 echo "$as_me:$LINENO: result: $INSTALL" >&5
2314 echo "${ECHO_T}$INSTALL" >&6
2315
2316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2317 # It thinks the first close brace ends the variable substitution.
2318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2319
2320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2321
2322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2323
2324 for ac_prog in gawk mawk nawk awk
2325 do
2326   # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_AWK+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   if test -n "$AWK"; then
2334   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339   IFS=$as_save_IFS
2340   test -z "$as_dir" && as_dir=.
2341   for ac_exec_ext in '' $ac_executable_extensions; do
2342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2343     ac_cv_prog_AWK="$ac_prog"
2344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345     break 2
2346   fi
2347 done
2348 done
2349
2350 fi
2351 fi
2352 AWK=$ac_cv_prog_AWK
2353 if test -n "$AWK"; then
2354   echo "$as_me:$LINENO: result: $AWK" >&5
2355 echo "${ECHO_T}$AWK" >&6
2356 else
2357   echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6
2359 fi
2360
2361   test -n "$AWK" && break
2362 done
2363
2364
2365 LD=ld
2366 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2367 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2368 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2372 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2373   ac_cv_prog_gnu_ld=yes
2374 else
2375   ac_cv_prog_gnu_ld=no
2376 fi
2377 fi
2378 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2379 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2380
2381
2382
2383 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2384 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2385 if test "${ac_cv_search_strerror+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   ac_func_search_save_LIBS=$LIBS
2389 ac_cv_search_strerror=no
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2393
2394 /* Override any gcc2 internal prototype to avoid an error.  */
2395 #ifdef __cplusplus
2396 extern "C"
2397 #endif
2398 /* We use char because int might match the return type of a gcc2
2399    builtin and then its argument prototype would still apply.  */
2400 char strerror ();
2401 #ifdef F77_DUMMY_MAIN
2402 #  ifdef __cplusplus
2403      extern "C"
2404 #  endif
2405    int F77_DUMMY_MAIN() { return 1; }
2406 #endif
2407 int
2408 main ()
2409 {
2410 strerror ();
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext conftest$ac_exeext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2417   (eval $ac_link) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); } &&
2421          { ac_try='test -s conftest$ac_exeext'
2422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423   (eval $ac_try) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; }; then
2427   ac_cv_search_strerror="none required"
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 fi
2432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2433 if test "$ac_cv_search_strerror" = no; then
2434   for ac_lib in cposix; do
2435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2436     cat >conftest.$ac_ext <<_ACEOF
2437 #line $LINENO "configure"
2438 #include "confdefs.h"
2439
2440 /* Override any gcc2 internal prototype to avoid an error.  */
2441 #ifdef __cplusplus
2442 extern "C"
2443 #endif
2444 /* We use char because int might match the return type of a gcc2
2445    builtin and then its argument prototype would still apply.  */
2446 char strerror ();
2447 #ifdef F77_DUMMY_MAIN
2448 #  ifdef __cplusplus
2449      extern "C"
2450 #  endif
2451    int F77_DUMMY_MAIN() { return 1; }
2452 #endif
2453 int
2454 main ()
2455 {
2456 strerror ();
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.$ac_objext conftest$ac_exeext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2463   (eval $ac_link) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); } &&
2467          { ac_try='test -s conftest$ac_exeext'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; }; then
2473   ac_cv_search_strerror="-l$ac_lib"
2474 break
2475 else
2476   echo "$as_me: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2478 fi
2479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2480   done
2481 fi
2482 LIBS=$ac_func_search_save_LIBS
2483 fi
2484 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486 if test "$ac_cv_search_strerror" != no; then
2487   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2488
2489 fi
2490
2491
2492
2493
2494 if test "x$CC" != xcc; then
2495   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2496 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2497 else
2498   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2499 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2500 fi
2501 set dummy $CC; ac_cc=`echo $2 |
2502                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2503 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 #include "confdefs.h"
2509
2510 #ifdef F77_DUMMY_MAIN
2511 #  ifdef __cplusplus
2512      extern "C"
2513 #  endif
2514    int F77_DUMMY_MAIN() { return 1; }
2515 #endif
2516 int
2517 main ()
2518 {
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 # Make sure it works both with $CC and with simple cc.
2525 # We do the test twice because some compilers refuse to overwrite an
2526 # existing .o file with -o, though they will create one.
2527 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2528 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534   (eval $ac_try) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); };
2538 then
2539   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2540   if test "x$CC" != xcc; then
2541     # Test first that cc exists at all.
2542     if { ac_try='cc -c conftest.$ac_ext >&5'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2549       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); };
2559       then
2560         # cc works too.
2561         :
2562       else
2563         # cc exists but doesn't like -o.
2564         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2565       fi
2566     fi
2567   fi
2568 else
2569   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2570 fi
2571 rm -f conftest*
2572
2573 fi
2574 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2575   echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2577 else
2578   echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580
2581 cat >>confdefs.h <<\_ACEOF
2582 #define NO_MINUS_C_MINUS_O 1
2583 _ACEOF
2584
2585 fi
2586
2587 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2588       BROKEN_CC=
2589 else
2590       BROKEN_CC=#
2591 fi
2592
2593
2594 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2595 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2596 if test "${samba_cv_volatile+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599
2600     cat >conftest.$ac_ext <<_ACEOF
2601 #line $LINENO "configure"
2602 #include "confdefs.h"
2603 #include <sys/types.h>
2604 #ifdef F77_DUMMY_MAIN
2605 #  ifdef __cplusplus
2606      extern "C"
2607 #  endif
2608    int F77_DUMMY_MAIN() { return 1; }
2609 #endif
2610 int
2611 main ()
2612 {
2613 volatile int i = 0
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -s conftest.$ac_objext'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630   samba_cv_volatile=yes
2631 else
2632   echo "$as_me: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 samba_cv_volatile=no
2635 fi
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2637 fi
2638 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2639 echo "${ECHO_T}$samba_cv_volatile" >&6
2640 if test x"$samba_cv_volatile" = x"yes"; then
2641
2642 cat >>confdefs.h <<\_ACEOF
2643 #define HAVE_VOLATILE 1
2644 _ACEOF
2645
2646 fi
2647
2648
2649 # Make sure we can run config.sub.
2650 $ac_config_sub sun4 >/dev/null 2>&1 ||
2651   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2652 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2653    { (exit 1); exit 1; }; }
2654
2655 echo "$as_me:$LINENO: checking build system type" >&5
2656 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2657 if test "${ac_cv_build+set}" = set; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   ac_cv_build_alias=$build_alias
2661 test -z "$ac_cv_build_alias" &&
2662   ac_cv_build_alias=`$ac_config_guess`
2663 test -z "$ac_cv_build_alias" &&
2664   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2665 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2666    { (exit 1); exit 1; }; }
2667 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2668   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2669 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2670    { (exit 1); exit 1; }; }
2671
2672 fi
2673 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2674 echo "${ECHO_T}$ac_cv_build" >&6
2675 build=$ac_cv_build
2676 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2677 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2678 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2679
2680
2681 echo "$as_me:$LINENO: checking host system type" >&5
2682 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2683 if test "${ac_cv_host+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   ac_cv_host_alias=$host_alias
2687 test -z "$ac_cv_host_alias" &&
2688   ac_cv_host_alias=$ac_cv_build_alias
2689 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2690   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2691 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2692    { (exit 1); exit 1; }; }
2693
2694 fi
2695 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2696 echo "${ECHO_T}$ac_cv_host" >&6
2697 host=$ac_cv_host
2698 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2699 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2700 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2701
2702
2703 echo "$as_me:$LINENO: checking target system type" >&5
2704 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2705 if test "${ac_cv_target+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   ac_cv_target_alias=$target_alias
2709 test "x$ac_cv_target_alias" = "x" &&
2710   ac_cv_target_alias=$ac_cv_host_alias
2711 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2712   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2713 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2714    { (exit 1); exit 1; }; }
2715
2716 fi
2717 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2718 echo "${ECHO_T}$ac_cv_target" >&6
2719 target=$ac_cv_target
2720 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2721 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2722 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2723
2724
2725 # The aliases save the names the user supplied, while $host etc.
2726 # will get canonicalized.
2727 test -n "$target_alias" &&
2728   test "$program_prefix$program_suffix$program_transform_name" = \
2729     NONENONEs,x,x, &&
2730   program_prefix=${target_alias}-
2731
2732   case "$host_os" in
2733         *irix6*) cat >> confdefs.h <<\EOF
2734 #include <standards.h>
2735 EOF
2736
2737         ;;
2738 esac
2739
2740
2741
2742     echo "$as_me:$LINENO: checking config.cache system type" >&5
2743 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2744     if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2745          test x"$ac_cv_host_system_type" != x"$host"; } ||
2746        { test x"${ac_cv_build_system_type+set}" = x"set" &&
2747          test x"$ac_cv_build_system_type" != x"$build"; } ||
2748        { test x"${ac_cv_target_system_type+set}" = x"set" &&
2749          test x"$ac_cv_target_system_type" != x"$target"; }; then
2750         echo "$as_me:$LINENO: result: different" >&5
2751 echo "${ECHO_T}different" >&6
2752         { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2753 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2754    { (exit 1); exit 1; }; }
2755     else
2756         echo "$as_me:$LINENO: result: same" >&5
2757 echo "${ECHO_T}same" >&6
2758     fi
2759     ac_cv_host_system_type="$host"
2760     ac_cv_build_system_type="$build"
2761     ac_cv_target_system_type="$target"
2762
2763
2764 DYNEXP=
2765
2766 #
2767 # Config CPPFLAG settings for strange OS's that must be set
2768 # before other tests.
2769 #
2770 case "$host_os" in
2771 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2772     *hpux*)
2773
2774       echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2775 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2776 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   echo 'void f(){}' > conftest.c
2780 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2781   ac_cv_prog_cc_Ae=yes
2782 else
2783   ac_cv_prog_cc_Ae=no
2784 fi
2785 rm -f conftest*
2786
2787 fi
2788 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2790       # mmap on HPUX is completely broken...
2791
2792 cat >>confdefs.h <<\_ACEOF
2793 #define MMAP_BLACKLIST 1
2794 _ACEOF
2795
2796       if test $ac_cv_prog_cc_Ae = yes; then
2797         CPPFLAGS="$CPPFLAGS -Ae"
2798       fi
2799 #
2800 # Defines needed for HPUX support.
2801 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2802 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2803 #
2804       case `uname -r` in
2805                         *9*|*10*)
2806                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2807
2808 cat >>confdefs.h <<\_ACEOF
2809 #define USE_BOTH_CRYPT_CALLS 1
2810 _ACEOF
2811
2812
2813 cat >>confdefs.h <<\_ACEOF
2814 #define _HPUX_SOURCE 1
2815 _ACEOF
2816
2817
2818 cat >>confdefs.h <<\_ACEOF
2819 #define _POSIX_SOURCE 1
2820 _ACEOF
2821
2822
2823 cat >>confdefs.h <<\_ACEOF
2824 #define _ALIGNMENT_REQUIRED 1
2825 _ACEOF
2826
2827
2828 cat >>confdefs.h <<\_ACEOF
2829 #define _MAX_ALIGNMENT 4
2830 _ACEOF
2831
2832                                 ;;
2833                         *11*)
2834                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2835
2836 cat >>confdefs.h <<\_ACEOF
2837 #define USE_BOTH_CRYPT_CALLS 1
2838 _ACEOF
2839
2840
2841 cat >>confdefs.h <<\_ACEOF
2842 #define _HPUX_SOURCE 1
2843 _ACEOF
2844
2845
2846 cat >>confdefs.h <<\_ACEOF
2847 #define _POSIX_SOURCE 1
2848 _ACEOF
2849
2850
2851 cat >>confdefs.h <<\_ACEOF
2852 #define _LARGEFILE64_SOURCE 1
2853 _ACEOF
2854
2855
2856 cat >>confdefs.h <<\_ACEOF
2857 #define _ALIGNMENT_REQUIRED 1
2858 _ACEOF
2859
2860
2861 cat >>confdefs.h <<\_ACEOF
2862 #define _MAX_ALIGNMENT 4
2863 _ACEOF
2864
2865                                 ;;
2866       esac
2867       DYNEXP="-Wl,-E"
2868       ;;
2869
2870 #
2871 # CRAY Unicos has broken const handling
2872        *unicos*)
2873           echo "$as_me:$LINENO: result: disabling const" >&5
2874 echo "${ECHO_T}disabling const" >&6
2875           CPPFLAGS="$CPPFLAGS -Dconst="
2876           ;;
2877
2878 #
2879 # AIX4.x doesn't even admit to having large
2880 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2881 #
2882     *aix4*)
2883           echo "$as_me:$LINENO: result: enabling large file support" >&5
2884 echo "${ECHO_T}enabling large file support" >&6
2885       CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2886
2887 cat >>confdefs.h <<\_ACEOF
2888 #define _LARGE_FILES 1
2889 _ACEOF
2890
2891       ;;
2892 #
2893 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2894 # to the existance of large files..
2895 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2896 # recommendations on large file support, however it makes the
2897 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2898 # recommendation makes the compile fail on gcc2.7. JRA.
2899 #
2900         *solaris*)
2901                 case `uname -r` in
2902                         5.0*|5.1*|5.2*|5.3*|5.5*)
2903                                 echo "$as_me:$LINENO: result: no large file support" >&5
2904 echo "${ECHO_T}no large file support" >&6
2905                                 ;;
2906                         5.*)
2907                         echo "$as_me:$LINENO: result: enabling large file support" >&5
2908 echo "${ECHO_T}enabling large file support" >&6
2909                         if test "$ac_cv_c_compiler_gnu" = yes; then
2910                                 ${CC-cc} -v >conftest.c 2>&1
2911                                 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2912                                 rm -fr conftest.c
2913                                 case "$ac_cv_gcc_compiler_version_number" in
2914                                         *"gcc version 2.6"*|*"gcc version 2.7"*)
2915                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2916
2917 cat >>confdefs.h <<\_ACEOF
2918 #define _LARGEFILE64_SOURCE 1
2919 _ACEOF
2920
2921                                                 ;;
2922                                         *)
2923                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2924
2925 cat >>confdefs.h <<\_ACEOF
2926 #define _LARGEFILE64_SOURCE 1
2927 _ACEOF
2928
2929
2930 cat >>confdefs.h <<\_ACEOF
2931 #define _FILE_OFFSET_BITS 64
2932 _ACEOF
2933
2934                                                 ;;
2935                                 esac
2936                         else
2937                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2938
2939 cat >>confdefs.h <<\_ACEOF
2940 #define _LARGEFILE64_SOURCE 1
2941 _ACEOF
2942
2943
2944 cat >>confdefs.h <<\_ACEOF
2945 #define _FILE_OFFSET_BITS 64
2946 _ACEOF
2947
2948                         fi
2949                         ;;
2950                 esac
2951                 ;;
2952 #
2953 # Tests needed for SINIX large file support.
2954 #
2955     *sysv4*)
2956       if test $host = mips-sni-sysv4 ; then
2957         echo "$as_me:$LINENO: checking for LFS support" >&5
2958 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
2959         old_CPPFLAGS="$CPPFLAGS"
2960         CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
2961         if test "$cross_compiling" = yes; then
2962   SINIX_LFS_SUPPORT=cross
2963 else
2964   cat >conftest.$ac_ext <<_ACEOF
2965 #line $LINENO "configure"
2966 #include "confdefs.h"
2967
2968 #include <unistd.h>
2969 main () {
2970 #if _LFS64_LARGEFILE == 1
2971 exit(0);
2972 #else
2973 exit(1);
2974 #endif
2975 }
2976 _ACEOF
2977 rm -f conftest$ac_exeext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2979   (eval $ac_link) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; }; then
2988   SINIX_LFS_SUPPORT=yes
2989 else
2990   echo "$as_me: program exited with status $ac_status" >&5
2991 echo "$as_me: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2993 ( exit $ac_status )
2994 SINIX_LFS_SUPPORT=no
2995 fi
2996 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2997 fi
2998         CPPFLAGS="$old_CPPFLAGS"
2999         if test x$SINIX_LFS_SUPPORT = xyes ; then
3000           CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3001
3002 cat >>confdefs.h <<\_ACEOF
3003 #define _LARGEFILE64_SOURCE 1
3004 _ACEOF
3005
3006           CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3007           LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3008           LIBS="`getconf LFS64_LIBS` $LIBS"
3009         fi
3010       echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3011 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3012       fi
3013     ;;
3014
3015 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3016 #
3017     *linux*)
3018         echo "$as_me:$LINENO: checking for LFS support" >&5
3019 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3020         old_CPPFLAGS="$CPPFLAGS"
3021         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3022        if test "$cross_compiling" = yes; then
3023   LINUX_LFS_SUPPORT=cross
3024 else
3025   cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 #include "confdefs.h"
3028
3029 #include <unistd.h>
3030 #include <sys/utsname.h>
3031 main() {
3032 #if _LFS64_LARGEFILE == 1
3033        struct utsname uts;
3034        char *release;
3035        int major, minor;
3036
3037        /* Ensure this is glibc 2.2 or higher */
3038 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3039        int libc_major = __GLIBC__;
3040        int libc_minor = __GLIBC_MINOR__;
3041
3042        if (libc_major < 2)
3043               exit(1);
3044        if (libc_minor < 2)
3045               exit(1);
3046 #endif
3047
3048        /* Ensure this is kernel 2.4 or higher */
3049
3050        uname(&uts);
3051        release = uts.release;
3052        major = atoi(strsep(&release, "."));
3053        minor = atoi(strsep(&release, "."));
3054
3055        if (major > 2 || (major == 2 && minor > 3))
3056                exit(0);
3057        exit(1);
3058 #else
3059        exit(1);
3060 #endif
3061 }
3062
3063 _ACEOF
3064 rm -f conftest$ac_exeext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3066   (eval $ac_link) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071   (eval $ac_try) 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; }; then
3075   LINUX_LFS_SUPPORT=yes
3076 else
3077   echo "$as_me: program exited with status $ac_status" >&5
3078 echo "$as_me: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3080 ( exit $ac_status )
3081 LINUX_LFS_SUPPORT=no
3082 fi
3083 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3084 fi
3085         CPPFLAGS="$old_CPPFLAGS"
3086         if test x$LINUX_LFS_SUPPORT = xyes ; then
3087           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3088
3089 cat >>confdefs.h <<\_ACEOF
3090 #define _LARGEFILE64_SOURCE 1
3091 _ACEOF
3092
3093
3094 cat >>confdefs.h <<\_ACEOF
3095 #define _FILE_OFFSET_BITS 64
3096 _ACEOF
3097
3098
3099 cat >>confdefs.h <<\_ACEOF
3100 #define _GNU_SOURCE 1
3101 _ACEOF
3102
3103         fi
3104        echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3105 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3106                 ;;
3107
3108     *hurd*)
3109         echo "$as_me:$LINENO: checking for LFS support" >&5
3110 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3111         old_CPPFLAGS="$CPPFLAGS"
3112         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3113         if test "$cross_compiling" = yes; then
3114   GLIBC_LFS_SUPPORT=cross
3115 else
3116   cat >conftest.$ac_ext <<_ACEOF
3117 #line $LINENO "configure"
3118 #include "confdefs.h"
3119
3120 #include <unistd.h>
3121 main () {
3122 #if _LFS64_LARGEFILE == 1
3123 exit(0);
3124 #else
3125 exit(1);
3126 #endif
3127 }
3128 _ACEOF
3129 rm -f conftest$ac_exeext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131   (eval $ac_link) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136   (eval $ac_try) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; }; then
3140   GLIBC_LFS_SUPPORT=yes
3141 else
3142   echo "$as_me: program exited with status $ac_status" >&5
3143 echo "$as_me: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3145 ( exit $ac_status )
3146 GLIBC_LFS_SUPPORT=no
3147 fi
3148 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3149 fi
3150         CPPFLAGS="$old_CPPFLAGS"
3151         if test x$GLIBC_LFS_SUPPORT = xyes ; then
3152           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3153
3154 cat >>confdefs.h <<\_ACEOF
3155 #define _LARGEFILE64_SOURCE 1
3156 _ACEOF
3157
3158
3159 cat >>confdefs.h <<\_ACEOF
3160 #define _GNU_SOURCE 1
3161 _ACEOF
3162
3163         fi
3164       echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3165 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3166     ;;
3167
3168 esac
3169
3170 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3171 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3172 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3173   echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175   ac_cv_prog_cc_stdc=no
3176 ac_save_CC=$CC
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 #include "confdefs.h"
3180 #include <stdarg.h>
3181 #include <stdio.h>
3182 #include <sys/types.h>
3183 #include <sys/stat.h>
3184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3185 struct buf { int x; };
3186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3187 static char *e (p, i)
3188      char **p;
3189      int i;
3190 {
3191   return p[i];
3192 }
3193 static char *f (char * (*g) (char **, int), char **p, ...)
3194 {
3195   char *s;
3196   va_list v;
3197   va_start (v,p);
3198   s = g (p, va_arg (v,int));
3199   va_end (v);
3200   return s;
3201 }
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206 int argc;
3207 char **argv;
3208 #ifdef F77_DUMMY_MAIN
3209 #  ifdef __cplusplus
3210      extern "C"
3211 #  endif
3212    int F77_DUMMY_MAIN() { return 1; }
3213 #endif
3214 int
3215 main ()
3216 {
3217 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 # Don't try gcc -ansi; that turns off useful extensions and
3223 # breaks some systems' header files.
3224 # AIX                   -qlanglvl=ansi
3225 # Ultrix and OSF/1      -std1
3226 # HP-UX 10.20 and later -Ae
3227 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3228 # SVR4                  -Xc -D__EXTENSIONS__
3229 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3230 do
3231   CC="$ac_save_CC $ac_arg"
3232   rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234   (eval $ac_compile) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } &&
3238          { ac_try='test -s conftest.$ac_objext'
3239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240   (eval $ac_try) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; }; then
3244   ac_cv_prog_cc_stdc=$ac_arg
3245 break
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 fi
3250 rm -f conftest.$ac_objext
3251 done
3252 rm -f conftest.$ac_ext conftest.$ac_objext
3253 CC=$ac_save_CC
3254
3255 fi
3256
3257 case "x$ac_cv_prog_cc_stdc" in
3258   x|xno)
3259     echo "$as_me:$LINENO: result: none needed" >&5
3260 echo "${ECHO_T}none needed" >&6 ;;
3261   *)
3262     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3263 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3264     CC="$CC $ac_cv_prog_cc_stdc" ;;
3265 esac
3266
3267 echo "$as_me:$LINENO: checking for inline" >&5
3268 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3269 if test "${ac_cv_c_inline+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   ac_cv_c_inline=no
3273 for ac_kw in inline __inline__ __inline; do
3274   cat >conftest.$ac_ext <<_ACEOF
3275 #line $LINENO "configure"
3276 #include "confdefs.h"
3277 #ifndef __cplusplus
3278 static $ac_kw int static_foo () {return 0; }
3279 $ac_kw int foo () {return 0; }
3280 #endif
3281
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285   (eval $ac_compile) 2>&5
3286   ac_status=$?
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } &&
3289          { ac_try='test -s conftest.$ac_objext'
3290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291   (eval $ac_try) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; }; then
3295   ac_cv_c_inline=$ac_kw; break
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3299 fi
3300 rm -f conftest.$ac_objext conftest.$ac_ext
3301 done
3302
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3305 echo "${ECHO_T}$ac_cv_c_inline" >&6
3306 case $ac_cv_c_inline in
3307   inline | yes) ;;
3308   no)
3309 cat >>confdefs.h <<\_ACEOF
3310 #define inline
3311 _ACEOF
3312  ;;
3313   *)  cat >>confdefs.h <<_ACEOF
3314 #define inline $ac_cv_c_inline
3315 _ACEOF
3316  ;;
3317 esac
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3325 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3326 # On Suns, sometimes $CPP names a directory.
3327 if test -n "$CPP" && test -d "$CPP"; then
3328   CPP=
3329 fi
3330 if test -z "$CPP"; then
3331   if test "${ac_cv_prog_CPP+set}" = set; then
3332   echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334       # Double quotes because CPP needs to be expanded
3335     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3336     do
3337       ac_preproc_ok=false
3338 for ac_c_preproc_warn_flag in '' yes
3339 do
3340   # Use a header file that comes with gcc, so configuring glibc
3341   # with a fresh cross-compiler works.
3342   # On the NeXT, cc -E runs the code through the compiler's parser,
3343   # not just through cpp. "Syntax error" is here to catch this case.
3344   cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3346 #include "confdefs.h"
3347 #include <assert.h>
3348                      Syntax error
3349 _ACEOF
3350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3352   ac_status=$?
3353   egrep -v '^ *\+' conftest.er1 >conftest.err
3354   rm -f conftest.er1
3355   cat conftest.err >&5
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } >/dev/null; then
3358   if test -s conftest.err; then
3359     ac_cpp_err=$ac_c_preproc_warn_flag
3360   else
3361     ac_cpp_err=
3362   fi
3363 else
3364   ac_cpp_err=yes
3365 fi
3366 if test -z "$ac_cpp_err"; then
3367   :
3368 else
3369   echo "$as_me: failed program was:" >&5
3370   cat conftest.$ac_ext >&5
3371   # Broken: fails on valid input.
3372 continue
3373 fi
3374 rm -f conftest.err conftest.$ac_ext
3375
3376   # OK, works on sane cases.  Now check whether non-existent headers
3377   # can be detected and how.
3378   cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 #include <ac_nonexistent.h>
3382 _ACEOF
3383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385   ac_status=$?
3386   egrep -v '^ *\+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } >/dev/null; then
3391   if test -s conftest.err; then
3392     ac_cpp_err=$ac_c_preproc_warn_flag
3393   else
3394     ac_cpp_err=
3395   fi
3396 else
3397   ac_cpp_err=yes
3398 fi
3399 if test -z "$ac_cpp_err"; then
3400   # Broken: success on invalid input.
3401 continue
3402 else
3403   echo "$as_me: failed program was:" >&5
3404   cat conftest.$ac_ext >&5
3405   # Passes both tests.
3406 ac_preproc_ok=:
3407 break
3408 fi
3409 rm -f conftest.err conftest.$ac_ext
3410
3411 done
3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413 rm -f conftest.err conftest.$ac_ext
3414 if $ac_preproc_ok; then
3415   break
3416 fi
3417
3418     done
3419     ac_cv_prog_CPP=$CPP
3420
3421 fi
3422   CPP=$ac_cv_prog_CPP
3423 else
3424   ac_cv_prog_CPP=$CPP
3425 fi
3426 echo "$as_me:$LINENO: result: $CPP" >&5
3427 echo "${ECHO_T}$CPP" >&6
3428 ac_preproc_ok=false
3429 for ac_c_preproc_warn_flag in '' yes
3430 do
3431   # Use a header file that comes with gcc, so configuring glibc
3432   # with a fresh cross-compiler works.
3433   # On the NeXT, cc -E runs the code through the compiler's parser,
3434   # not just through cpp. "Syntax error" is here to catch this case.
3435   cat >conftest.$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3437 #include "confdefs.h"
3438 #include <assert.h>
3439                      Syntax error
3440 _ACEOF
3441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3443   ac_status=$?
3444   egrep -v '^ *\+' conftest.er1 >conftest.err
3445   rm -f conftest.er1
3446   cat conftest.err >&5
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } >/dev/null; then
3449   if test -s conftest.err; then
3450     ac_cpp_err=$ac_c_preproc_warn_flag
3451   else
3452     ac_cpp_err=
3453   fi
3454 else
3455   ac_cpp_err=yes
3456 fi
3457 if test -z "$ac_cpp_err"; then
3458   :
3459 else
3460   echo "$as_me: failed program was:" >&5
3461   cat conftest.$ac_ext >&5
3462   # Broken: fails on valid input.
3463 continue
3464 fi
3465 rm -f conftest.err conftest.$ac_ext
3466
3467   # OK, works on sane cases.  Now check whether non-existent headers
3468   # can be detected and how.
3469   cat >conftest.$ac_ext <<_ACEOF
3470 #line $LINENO "configure"
3471 #include "confdefs.h"
3472 #include <ac_nonexistent.h>
3473 _ACEOF
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3476   ac_status=$?
3477   egrep -v '^ *\+' conftest.er1 >conftest.err
3478   rm -f conftest.er1
3479   cat conftest.err >&5
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } >/dev/null; then
3482   if test -s conftest.err; then
3483     ac_cpp_err=$ac_c_preproc_warn_flag
3484   else
3485     ac_cpp_err=
3486   fi
3487 else
3488   ac_cpp_err=yes
3489 fi
3490 if test -z "$ac_cpp_err"; then
3491   # Broken: success on invalid input.
3492 continue
3493 else
3494   echo "$as_me: failed program was:" >&5
3495   cat conftest.$ac_ext >&5
3496   # Passes both tests.
3497 ac_preproc_ok=:
3498 break
3499 fi
3500 rm -f conftest.err conftest.$ac_ext
3501
3502 done
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3506   :
3507 else
3508   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3509 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3510    { (exit 1); exit 1; }; }
3511 fi
3512
3513 ac_ext=c
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518
3519
3520 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3521 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3522 if test "${ac_cv_header_stdc+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   cat >conftest.$ac_ext <<_ACEOF
3526 #line $LINENO "configure"
3527 #include "confdefs.h"
3528 #include <stdlib.h>
3529 #include <stdarg.h>
3530 #include <string.h>
3531 #include <float.h>
3532
3533 _ACEOF
3534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3536   ac_status=$?
3537   egrep -v '^ *\+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } >/dev/null; then
3542   if test -s conftest.err; then
3543     ac_cpp_err=$ac_c_preproc_warn_flag
3544   else
3545     ac_cpp_err=
3546   fi
3547 else
3548   ac_cpp_err=yes
3549 fi
3550 if test -z "$ac_cpp_err"; then
3551   ac_cv_header_stdc=yes
3552 else
3553   echo "$as_me: failed program was:" >&5
3554   cat conftest.$ac_ext >&5
3555   ac_cv_header_stdc=no
3556 fi
3557 rm -f conftest.err conftest.$ac_ext
3558
3559 if test $ac_cv_header_stdc = yes; then
3560   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3561   cat >conftest.$ac_ext <<_ACEOF
3562 #line $LINENO "configure"
3563 #include "confdefs.h"
3564 #include <string.h>
3565
3566 _ACEOF
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568   egrep "memchr" >/dev/null 2>&1; then
3569   :
3570 else
3571   ac_cv_header_stdc=no
3572 fi
3573 rm -f conftest*
3574
3575 fi
3576
3577 if test $ac_cv_header_stdc = yes; then
3578   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3579   cat >conftest.$ac_ext <<_ACEOF
3580 #line $LINENO "configure"
3581 #include "confdefs.h"
3582 #include <stdlib.h>
3583
3584 _ACEOF
3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586   egrep "free" >/dev/null 2>&1; then
3587   :
3588 else
3589   ac_cv_header_stdc=no
3590 fi
3591 rm -f conftest*
3592
3593 fi
3594
3595 if test $ac_cv_header_stdc = yes; then
3596   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3597   if test "$cross_compiling" = yes; then
3598   :
3599 else
3600   cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3603 #include <ctype.h>
3604 #if ((' ' & 0x0FF) == 0x020)
3605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3607 #else
3608 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3609                      || ('j' <= (c) && (c) <= 'r') \
3610                      || ('s' <= (c) && (c) <= 'z'))
3611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3612 #endif
3613
3614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3615 int
3616 main ()
3617 {
3618   int i;
3619   for (i = 0; i < 256; i++)
3620     if (XOR (islower (i), ISLOWER (i))
3621         || toupper (i) != TOUPPER (i))
3622       exit(2);
3623   exit (0);
3624 }
3625 _ACEOF
3626 rm -f conftest$ac_exeext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628   (eval $ac_link) 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637   :
3638 else
3639   echo "$as_me: program exited with status $ac_status" >&5
3640 echo "$as_me: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3642 ( exit $ac_status )
3643 ac_cv_header_stdc=no
3644 fi
3645 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3646 fi
3647 fi
3648 fi
3649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3651 if test $ac_cv_header_stdc = yes; then
3652
3653 cat >>confdefs.h <<\_ACEOF
3654 #define STDC_HEADERS 1
3655 _ACEOF
3656
3657 fi
3658
3659
3660
3661
3662
3663
3664 ac_header_dirent=no
3665 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3666   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3667 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3668 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   cat >conftest.$ac_ext <<_ACEOF
3673 #line $LINENO "configure"
3674 #include "confdefs.h"
3675 #include <sys/types.h>
3676 #include <$ac_hdr>
3677
3678 #ifdef F77_DUMMY_MAIN
3679 #  ifdef __cplusplus
3680      extern "C"
3681 #  endif
3682    int F77_DUMMY_MAIN() { return 1; }
3683 #endif
3684 int
3685 main ()
3686 {
3687 if ((DIR *) 0)
3688 return 0;
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 rm -f conftest.$ac_objext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695   (eval $ac_compile) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } &&
3699          { ac_try='test -s conftest.$ac_objext'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; }; then
3705   eval "$as_ac_Header=yes"
3706 else
3707   echo "$as_me: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3709 eval "$as_ac_Header=no"
3710 fi
3711 rm -f conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716   cat >>confdefs.h <<_ACEOF
3717 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3718 _ACEOF
3719
3720 ac_header_dirent=$ac_hdr; break
3721 fi
3722
3723 done
3724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3725 if test $ac_header_dirent = dirent.h; then
3726   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3728 if test "${ac_cv_search_opendir+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   ac_func_search_save_LIBS=$LIBS
3732 ac_cv_search_opendir=no
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 #include "confdefs.h"
3736
3737 /* Override any gcc2 internal prototype to avoid an error.  */
3738 #ifdef __cplusplus
3739 extern "C"
3740 #endif
3741 /* We use char because int might match the return type of a gcc2
3742    builtin and then its argument prototype would still apply.  */
3743 char opendir ();
3744 #ifdef F77_DUMMY_MAIN
3745 #  ifdef __cplusplus
3746      extern "C"
3747 #  endif
3748    int F77_DUMMY_MAIN() { return 1; }
3749 #endif
3750 int
3751 main ()
3752 {
3753 opendir ();
3754   ;
3755   return 0;
3756 }
3757 _ACEOF
3758 rm -f conftest.$ac_objext conftest$ac_exeext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3760   (eval $ac_link) 2>&5
3761   ac_status=$?
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); } &&
3764          { ac_try='test -s conftest$ac_exeext'
3765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766   (eval $ac_try) 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); }; }; then
3770   ac_cv_search_opendir="none required"
3771 else
3772   echo "$as_me: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3774 fi
3775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3776 if test "$ac_cv_search_opendir" = no; then
3777   for ac_lib in dir; do
3778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3779     cat >conftest.$ac_ext <<_ACEOF
3780 #line $LINENO "configure"
3781 #include "confdefs.h"
3782
3783 /* Override any gcc2 internal prototype to avoid an error.  */
3784 #ifdef __cplusplus
3785 extern "C"
3786 #endif
3787 /* We use char because int might match the return type of a gcc2
3788    builtin and then its argument prototype would still apply.  */
3789 char opendir ();
3790 #ifdef F77_DUMMY_MAIN
3791 #  ifdef __cplusplus
3792      extern "C"
3793 #  endif
3794    int F77_DUMMY_MAIN() { return 1; }
3795 #endif
3796 int
3797 main ()
3798 {
3799 opendir ();
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806   (eval $ac_link) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); } &&
3810          { ac_try='test -s conftest$ac_exeext'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; }; then
3816   ac_cv_search_opendir="-l$ac_lib"
3817 break
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3821 fi
3822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823   done
3824 fi
3825 LIBS=$ac_func_search_save_LIBS
3826 fi
3827 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3828 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3829 if test "$ac_cv_search_opendir" != no; then
3830   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3831
3832 fi
3833
3834 else
3835   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3837 if test "${ac_cv_search_opendir+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   ac_func_search_save_LIBS=$LIBS
3841 ac_cv_search_opendir=no
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 #include "confdefs.h"
3845
3846 /* Override any gcc2 internal prototype to avoid an error.  */
3847 #ifdef __cplusplus
3848 extern "C"
3849 #endif
3850 /* We use char because int might match the return type of a gcc2
3851    builtin and then its argument prototype would still apply.  */
3852 char opendir ();
3853 #ifdef F77_DUMMY_MAIN
3854 #  ifdef __cplusplus
3855      extern "C"
3856 #  endif
3857    int F77_DUMMY_MAIN() { return 1; }
3858 #endif
3859 int
3860 main ()
3861 {
3862 opendir ();
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869   (eval $ac_link) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -s conftest$ac_exeext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_cv_search_opendir="none required"
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 fi
3884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3885 if test "$ac_cv_search_opendir" = no; then
3886   for ac_lib in x; do
3887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3888     cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3890 #include "confdefs.h"
3891
3892 /* Override any gcc2 internal prototype to avoid an error.  */
3893 #ifdef __cplusplus
3894 extern "C"
3895 #endif
3896 /* We use char because int might match the return type of a gcc2
3897    builtin and then its argument prototype would still apply.  */
3898 char opendir ();
3899 #ifdef F77_DUMMY_MAIN
3900 #  ifdef __cplusplus
3901      extern "C"
3902 #  endif
3903    int F77_DUMMY_MAIN() { return 1; }
3904 #endif
3905 int
3906 main ()
3907 {
3908 opendir ();
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915   (eval $ac_link) 2>&5
3916   ac_status=$?
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); } &&
3919          { ac_try='test -s conftest$ac_exeext'
3920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921   (eval $ac_try) 2>&5
3922   ac_status=$?
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); }; }; then
3925   ac_cv_search_opendir="-l$ac_lib"
3926 break
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 fi
3931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3932   done
3933 fi
3934 LIBS=$ac_func_search_save_LIBS
3935 fi
3936 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3937 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3938 if test "$ac_cv_search_opendir" != no; then
3939   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3940
3941 fi
3942
3943 fi
3944
3945 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3946 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3947 if test "${ac_cv_header_time+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3952 #include "confdefs.h"
3953 #include <sys/types.h>
3954 #include <sys/time.h>
3955 #include <time.h>
3956
3957 #ifdef F77_DUMMY_MAIN
3958 #  ifdef __cplusplus
3959      extern "C"
3960 #  endif
3961    int F77_DUMMY_MAIN() { return 1; }
3962 #endif
3963 int
3964 main ()
3965 {
3966 if ((struct tm *) 0)
3967 return 0;
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 rm -f conftest.$ac_objext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974   (eval $ac_compile) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); } &&
3978          { ac_try='test -s conftest.$ac_objext'
3979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980   (eval $ac_try) 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); }; }; then
3984   ac_cv_header_time=yes
3985 else
3986   echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 ac_cv_header_time=no
3989 fi
3990 rm -f conftest.$ac_objext conftest.$ac_ext
3991 fi
3992 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3993 echo "${ECHO_T}$ac_cv_header_time" >&6
3994 if test $ac_cv_header_time = yes; then
3995
3996 cat >>confdefs.h <<\_ACEOF
3997 #define TIME_WITH_SYS_TIME 1
3998 _ACEOF
3999
4000 fi
4001
4002 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4003 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4004 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   cat >conftest.$ac_ext <<_ACEOF
4008 #line $LINENO "configure"
4009 #include "confdefs.h"
4010 #include <sys/types.h>
4011 #include <sys/wait.h>
4012 #ifndef WEXITSTATUS
4013 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4014 #endif
4015 #ifndef WIFEXITED
4016 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4017 #endif
4018
4019 #ifdef F77_DUMMY_MAIN
4020 #  ifdef __cplusplus
4021      extern "C"
4022 #  endif
4023    int F77_DUMMY_MAIN() { return 1; }
4024 #endif
4025 int
4026 main ()
4027 {
4028   int s;
4029   wait (&s);
4030   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037   (eval $ac_compile) 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -s conftest.$ac_objext'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; }; then
4047   ac_cv_header_sys_wait_h=yes
4048 else
4049   echo "$as_me: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 ac_cv_header_sys_wait_h=no
4052 fi
4053 rm -f conftest.$ac_objext conftest.$ac_ext
4054 fi
4055 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4056 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4057 if test $ac_cv_header_sys_wait_h = yes; then
4058
4059 cat >>confdefs.h <<\_ACEOF
4060 #define HAVE_SYS_WAIT_H 1
4061 _ACEOF
4062
4063 fi
4064
4065 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4076                   inttypes.h stdint.h unistd.h
4077 do
4078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4079 echo "$as_me:$LINENO: checking for $ac_header" >&5
4080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   cat >conftest.$ac_ext <<_ACEOF
4085 #line $LINENO "configure"
4086 #include "confdefs.h"
4087 $ac_includes_default
4088
4089 #include <$ac_header>
4090 _ACEOF
4091 rm -f conftest.$ac_objext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093   (eval $ac_compile) 2>&5
4094   ac_status=$?
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } &&
4097          { ac_try='test -s conftest.$ac_objext'
4098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099   (eval $ac_try) 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; }; then
4103   eval "$as_ac_Header=yes"
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4107 eval "$as_ac_Header=no"
4108 fi
4109 rm -f conftest.$ac_objext conftest.$ac_ext
4110 fi
4111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4114   cat >>confdefs.h <<_ACEOF
4115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4116 _ACEOF
4117
4118 fi
4119
4120 done
4121
4122
4123
4124
4125
4126
4127
4128
4129 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4130 do
4131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4133   echo "$as_me:$LINENO: checking for $ac_header" >&5
4134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 fi
4138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4140 else
4141   # Is the header compilable?
4142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4144 cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4147 $ac_includes_default
4148 #include <$ac_header>
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152   (eval $ac_compile) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } &&
4156          { ac_try='test -s conftest.$ac_objext'
4157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158   (eval $ac_try) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; }; then
4162   ac_header_compiler=yes
4163 else
4164   echo "$as_me: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 ac_header_compiler=no
4167 fi
4168 rm -f conftest.$ac_objext conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4170 echo "${ECHO_T}$ac_header_compiler" >&6
4171
4172 # Is the header present?
4173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4175 cat >conftest.$ac_ext <<_ACEOF
4176 #line $LINENO "configure"
4177 #include "confdefs.h"
4178 #include <$ac_header>
4179 _ACEOF
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4182   ac_status=$?
4183   egrep -v '^ *\+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } >/dev/null; then
4188   if test -s conftest.err; then
4189     ac_cpp_err=$ac_c_preproc_warn_flag
4190   else
4191     ac_cpp_err=
4192   fi
4193 else
4194   ac_cpp_err=yes
4195 fi
4196 if test -z "$ac_cpp_err"; then
4197   ac_header_preproc=yes
4198 else
4199   echo "$as_me: failed program was:" >&5
4200   cat conftest.$ac_ext >&5
4201   ac_header_preproc=no
4202 fi
4203 rm -f conftest.err conftest.$ac_ext
4204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4205 echo "${ECHO_T}$ac_header_preproc" >&6
4206
4207 # So?  What about this header?
4208 case $ac_header_compiler:$ac_header_preproc in
4209   yes:no )
4210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4214   no:yes )
4215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4217     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4221 esac
4222 echo "$as_me:$LINENO: checking for $ac_header" >&5
4223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   eval "$as_ac_Header=$ac_header_preproc"
4228 fi
4229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4231
4232 fi
4233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4234   cat >>confdefs.h <<_ACEOF
4235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4236 _ACEOF
4237
4238 fi
4239
4240 done
4241
4242
4243
4244
4245
4246
4247
4248
4249 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4250 do
4251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4253   echo "$as_me:$LINENO: checking for $ac_header" >&5
4254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 fi
4258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4260 else
4261   # Is the header compilable?
4262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 #include "confdefs.h"
4267 $ac_includes_default
4268 #include <$ac_header>
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272   (eval $ac_compile) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } &&
4276          { ac_try='test -s conftest.$ac_objext'
4277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278   (eval $ac_try) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; }; then
4282   ac_header_compiler=yes
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 ac_header_compiler=no
4287 fi
4288 rm -f conftest.$ac_objext conftest.$ac_ext
4289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4290 echo "${ECHO_T}$ac_header_compiler" >&6
4291
4292 # Is the header present?
4293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4296 #line $LINENO "configure"
4297 #include "confdefs.h"
4298 #include <$ac_header>
4299 _ACEOF
4300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4302   ac_status=$?
4303   egrep -v '^ *\+' conftest.er1 >conftest.err
4304   rm -f conftest.er1
4305   cat conftest.err >&5
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); } >/dev/null; then
4308   if test -s conftest.err; then
4309     ac_cpp_err=$ac_c_preproc_warn_flag
4310   else
4311     ac_cpp_err=
4312   fi
4313 else
4314   ac_cpp_err=yes
4315 fi
4316 if test -z "$ac_cpp_err"; then
4317   ac_header_preproc=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320   cat conftest.$ac_ext >&5
4321   ac_header_preproc=no
4322 fi
4323 rm -f conftest.err conftest.$ac_ext
4324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4325 echo "${ECHO_T}$ac_header_preproc" >&6
4326
4327 # So?  What about this header?
4328 case $ac_header_compiler:$ac_header_preproc in
4329   yes:no )
4330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4334   no:yes )
4335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4337     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4341 esac
4342 echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   eval "$as_ac_Header=$ac_header_preproc"
4348 fi
4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4351
4352 fi
4353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4354   cat >>confdefs.h <<_ACEOF
4355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 _ACEOF
4357
4358 fi
4359
4360 done
4361
4362
4363
4364
4365
4366
4367 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4368 do
4369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4371   echo "$as_me:$LINENO: checking for $ac_header" >&5
4372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 fi
4376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4378 else
4379   # Is the header compilable?
4380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4383 #line $LINENO "configure"
4384 #include "confdefs.h"
4385 $ac_includes_default
4386 #include <$ac_header>
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390   (eval $ac_compile) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -s conftest.$ac_objext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   ac_header_compiler=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 ac_header_compiler=no
4405 fi
4406 rm -f conftest.$ac_objext conftest.$ac_ext
4407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4408 echo "${ECHO_T}$ac_header_compiler" >&6
4409
4410 # Is the header present?
4411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 #include "confdefs.h"
4416 #include <$ac_header>
4417 _ACEOF
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420   ac_status=$?
4421   egrep -v '^ *\+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } >/dev/null; then
4426   if test -s conftest.err; then
4427     ac_cpp_err=$ac_c_preproc_warn_flag
4428   else
4429     ac_cpp_err=
4430   fi
4431 else
4432   ac_cpp_err=yes
4433 fi
4434 if test -z "$ac_cpp_err"; then
4435   ac_header_preproc=yes
4436 else
4437   echo "$as_me: failed program was:" >&5
4438   cat conftest.$ac_ext >&5
4439   ac_header_preproc=no
4440 fi
4441 rm -f conftest.err conftest.$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4443 echo "${ECHO_T}$ac_header_preproc" >&6
4444
4445 # So?  What about this header?
4446 case $ac_header_compiler:$ac_header_preproc in
4447   yes:no )
4448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4452   no:yes )
4453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4455     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4459 esac
4460 echo "$as_me:$LINENO: checking for $ac_header" >&5
4461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   eval "$as_ac_Header=$ac_header_preproc"
4466 fi
4467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4469
4470 fi
4471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4472   cat >>confdefs.h <<_ACEOF
4473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4474 _ACEOF
4475
4476 fi
4477
4478 done
4479
4480
4481
4482
4483
4484
4485
4486
4487 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4488 do
4489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491   echo "$as_me:$LINENO: checking for $ac_header" >&5
4492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 fi
4496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4498 else
4499   # Is the header compilable?
4500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4502 cat >conftest.$ac_ext <<_ACEOF
4503 #line $LINENO "configure"
4504 #include "confdefs.h"
4505 $ac_includes_default
4506 #include <$ac_header>
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510   (eval $ac_compile) 2>&5
4511   ac_status=$?
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); } &&
4514          { ac_try='test -s conftest.$ac_objext'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; }; then
4520   ac_header_compiler=yes
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 ac_header_compiler=no
4525 fi
4526 rm -f conftest.$ac_objext conftest.$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4528 echo "${ECHO_T}$ac_header_compiler" >&6
4529
4530 # Is the header present?
4531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4533 cat >conftest.$ac_ext <<_ACEOF
4534 #line $LINENO "configure"
4535 #include "confdefs.h"
4536 #include <$ac_header>
4537 _ACEOF
4538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4540   ac_status=$?
4541   egrep -v '^ *\+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } >/dev/null; then
4546   if test -s conftest.err; then
4547     ac_cpp_err=$ac_c_preproc_warn_flag
4548   else
4549     ac_cpp_err=
4550   fi
4551 else
4552   ac_cpp_err=yes
4553 fi
4554 if test -z "$ac_cpp_err"; then
4555   ac_header_preproc=yes
4556 else
4557   echo "$as_me: failed program was:" >&5
4558   cat conftest.$ac_ext >&5
4559   ac_header_preproc=no
4560 fi
4561 rm -f conftest.err conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4563 echo "${ECHO_T}$ac_header_preproc" >&6
4564
4565 # So?  What about this header?
4566 case $ac_header_compiler:$ac_header_preproc in
4567   yes:no )
4568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4572   no:yes )
4573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4575     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4579 esac
4580 echo "$as_me:$LINENO: checking for $ac_header" >&5
4581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   eval "$as_ac_Header=$ac_header_preproc"
4586 fi
4587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4589
4590 fi
4591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4592   cat >>confdefs.h <<_ACEOF
4593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4594 _ACEOF
4595
4596 fi
4597
4598 done
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608 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
4609 do
4610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4612   echo "$as_me:$LINENO: checking for $ac_header" >&5
4613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 fi
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619 else
4620   # Is the header compilable?
4621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4623 cat >conftest.$ac_ext <<_ACEOF
4624 #line $LINENO "configure"
4625 #include "confdefs.h"
4626 $ac_includes_default
4627 #include <$ac_header>
4628 _ACEOF
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631   (eval $ac_compile) 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } &&
4635          { ac_try='test -s conftest.$ac_objext'
4636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637   (eval $ac_try) 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }; }; then
4641   ac_header_compiler=yes
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4645 ac_header_compiler=no
4646 fi
4647 rm -f conftest.$ac_objext conftest.$ac_ext
4648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4649 echo "${ECHO_T}$ac_header_compiler" >&6
4650
4651 # Is the header present?
4652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 #include "confdefs.h"
4657 #include <$ac_header>
4658 _ACEOF
4659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4661   ac_status=$?
4662   egrep -v '^ *\+' conftest.er1 >conftest.err
4663   rm -f conftest.er1
4664   cat conftest.err >&5
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); } >/dev/null; then
4667   if test -s conftest.err; then
4668     ac_cpp_err=$ac_c_preproc_warn_flag
4669   else
4670     ac_cpp_err=
4671   fi
4672 else
4673   ac_cpp_err=yes
4674 fi
4675 if test -z "$ac_cpp_err"; then
4676   ac_header_preproc=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679   cat conftest.$ac_ext >&5
4680   ac_header_preproc=no
4681 fi
4682 rm -f conftest.err conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4684 echo "${ECHO_T}$ac_header_preproc" >&6
4685
4686 # So?  What about this header?
4687 case $ac_header_compiler:$ac_header_preproc in
4688   yes:no )
4689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4693   no:yes )
4694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4696     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4700 esac
4701 echo "$as_me:$LINENO: checking for $ac_header" >&5
4702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704   echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706   eval "$as_ac_Header=$ac_header_preproc"
4707 fi
4708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4710
4711 fi
4712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4713   cat >>confdefs.h <<_ACEOF
4714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4715 _ACEOF
4716
4717 fi
4718
4719 done
4720
4721
4722
4723
4724
4725
4726
4727 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4728 do
4729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731   echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 fi
4736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738 else
4739   # Is the header compilable?
4740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4742 cat >conftest.$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4744 #include "confdefs.h"
4745 $ac_includes_default
4746 #include <$ac_header>
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750   (eval $ac_compile) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); } &&
4754          { ac_try='test -s conftest.$ac_objext'
4755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756   (eval $ac_try) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; }; then
4760   ac_header_compiler=yes
4761 else
4762   echo "$as_me: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 ac_header_compiler=no
4765 fi
4766 rm -f conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4768 echo "${ECHO_T}$ac_header_compiler" >&6
4769
4770 # Is the header present?
4771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4774 #line $LINENO "configure"
4775 #include "confdefs.h"
4776 #include <$ac_header>
4777 _ACEOF
4778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4780   ac_status=$?
4781   egrep -v '^ *\+' conftest.er1 >conftest.err
4782   rm -f conftest.er1
4783   cat conftest.err >&5
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); } >/dev/null; then
4786   if test -s conftest.err; then
4787     ac_cpp_err=$ac_c_preproc_warn_flag
4788   else
4789     ac_cpp_err=
4790   fi
4791 else
4792   ac_cpp_err=yes
4793 fi
4794 if test -z "$ac_cpp_err"; then
4795   ac_header_preproc=yes
4796 else
4797   echo "$as_me: failed program was:" >&5
4798   cat conftest.$ac_ext >&5
4799   ac_header_preproc=no
4800 fi
4801 rm -f conftest.err conftest.$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4803 echo "${ECHO_T}$ac_header_preproc" >&6
4804
4805 # So?  What about this header?
4806 case $ac_header_compiler:$ac_header_preproc in
4807   yes:no )
4808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4812   no:yes )
4813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4815     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4819 esac
4820 echo "$as_me:$LINENO: checking for $ac_header" >&5
4821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   eval "$as_ac_Header=$ac_header_preproc"
4826 fi
4827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4829
4830 fi
4831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4832   cat >>confdefs.h <<_ACEOF
4833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4834 _ACEOF
4835
4836 fi
4837
4838 done
4839
4840
4841
4842
4843
4844
4845
4846 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4847 do
4848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4850   echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 fi
4855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4857 else
4858   # Is the header compilable?
4859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #line $LINENO "configure"
4863 #include "confdefs.h"
4864 $ac_includes_default
4865 #include <$ac_header>
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869   (eval $ac_compile) 2>&5
4870   ac_status=$?
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); } &&
4873          { ac_try='test -s conftest.$ac_objext'
4874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875   (eval $ac_try) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }; }; then
4879   ac_header_compiler=yes
4880 else
4881   echo "$as_me: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 ac_header_compiler=no
4884 fi
4885 rm -f conftest.$ac_objext conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4887 echo "${ECHO_T}$ac_header_compiler" >&6
4888
4889 # Is the header present?
4890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4894 #include "confdefs.h"
4895 #include <$ac_header>
4896 _ACEOF
4897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4899   ac_status=$?
4900   egrep -v '^ *\+' conftest.er1 >conftest.err
4901   rm -f conftest.er1
4902   cat conftest.err >&5
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); } >/dev/null; then
4905   if test -s conftest.err; then
4906     ac_cpp_err=$ac_c_preproc_warn_flag
4907   else
4908     ac_cpp_err=
4909   fi
4910 else
4911   ac_cpp_err=yes
4912 fi
4913 if test -z "$ac_cpp_err"; then
4914   ac_header_preproc=yes
4915 else
4916   echo "$as_me: failed program was:" >&5
4917   cat conftest.$ac_ext >&5
4918   ac_header_preproc=no
4919 fi
4920 rm -f conftest.err conftest.$ac_ext
4921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4922 echo "${ECHO_T}$ac_header_preproc" >&6
4923
4924 # So?  What about this header?
4925 case $ac_header_compiler:$ac_header_preproc in
4926   yes:no )
4927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4931   no:yes )
4932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4934     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4938 esac
4939 echo "$as_me:$LINENO: checking for $ac_header" >&5
4940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   eval "$as_ac_Header=$ac_header_preproc"
4945 fi
4946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4948
4949 fi
4950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4951   cat >>confdefs.h <<_ACEOF
4952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4953 _ACEOF
4954
4955 fi
4956
4957 done
4958
4959
4960
4961
4962
4963
4964 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4965 do
4966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4968   echo "$as_me:$LINENO: checking for $ac_header" >&5
4969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 fi
4973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4975 else
4976   # Is the header compilable?
4977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 #include "confdefs.h"
4982 $ac_includes_default
4983 #include <$ac_header>
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987   (eval $ac_compile) 2>&5
4988   ac_status=$?
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } &&
4991          { ac_try='test -s conftest.$ac_objext'
4992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993   (eval $ac_try) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; }; then
4997   ac_header_compiler=yes
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5001 ac_header_compiler=no
5002 fi
5003 rm -f conftest.$ac_objext conftest.$ac_ext
5004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5005 echo "${ECHO_T}$ac_header_compiler" >&6
5006
5007 # Is the header present?
5008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5012 #include "confdefs.h"
5013 #include <$ac_header>
5014 _ACEOF
5015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5017   ac_status=$?
5018   egrep -v '^ *\+' conftest.er1 >conftest.err
5019   rm -f conftest.er1
5020   cat conftest.err >&5
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } >/dev/null; then
5023   if test -s conftest.err; then
5024     ac_cpp_err=$ac_c_preproc_warn_flag
5025   else
5026     ac_cpp_err=
5027   fi
5028 else
5029   ac_cpp_err=yes
5030 fi
5031 if test -z "$ac_cpp_err"; then
5032   ac_header_preproc=yes
5033 else
5034   echo "$as_me: failed program was:" >&5
5035   cat conftest.$ac_ext >&5
5036   ac_header_preproc=no
5037 fi
5038 rm -f conftest.err conftest.$ac_ext
5039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5040 echo "${ECHO_T}$ac_header_preproc" >&6
5041
5042 # So?  What about this header?
5043 case $ac_header_compiler:$ac_header_preproc in
5044   yes:no )
5045     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5049   no:yes )
5050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5052     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5056 esac
5057 echo "$as_me:$LINENO: checking for $ac_header" >&5
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   eval "$as_ac_Header=$ac_header_preproc"
5063 fi
5064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5066
5067 fi
5068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5069   cat >>confdefs.h <<_ACEOF
5070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5071 _ACEOF
5072
5073 fi
5074
5075 done
5076
5077
5078
5079 for ac_header in sys/syslog.h syslog.h
5080 do
5081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5083   echo "$as_me:$LINENO: checking for $ac_header" >&5
5084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 fi
5088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5090 else
5091   # Is the header compilable?
5092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 #include "confdefs.h"
5097 $ac_includes_default
5098 #include <$ac_header>
5099 _ACEOF
5100 rm -f conftest.$ac_objext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102   (eval $ac_compile) 2>&5
5103   ac_status=$?
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } &&
5106          { ac_try='test -s conftest.$ac_objext'
5107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108   (eval $ac_try) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); }; }; then
5112   ac_header_compiler=yes
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5116 ac_header_compiler=no
5117 fi
5118 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6
5121
5122 # Is the header present?
5123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 #include "confdefs.h"
5128 #include <$ac_header>
5129 _ACEOF
5130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5132   ac_status=$?
5133   egrep -v '^ *\+' conftest.er1 >conftest.err
5134   rm -f conftest.er1
5135   cat conftest.err >&5
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } >/dev/null; then
5138   if test -s conftest.err; then
5139     ac_cpp_err=$ac_c_preproc_warn_flag
5140   else
5141     ac_cpp_err=
5142   fi
5143 else
5144   ac_cpp_err=yes
5145 fi
5146 if test -z "$ac_cpp_err"; then
5147   ac_header_preproc=yes
5148 else
5149   echo "$as_me: failed program was:" >&5
5150   cat conftest.$ac_ext >&5
5151   ac_header_preproc=no
5152 fi
5153 rm -f conftest.err conftest.$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5155 echo "${ECHO_T}$ac_header_preproc" >&6
5156
5157 # So?  What about this header?
5158 case $ac_header_compiler:$ac_header_preproc in
5159   yes:no )
5160     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5164   no:yes )
5165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5167     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5171 esac
5172 echo "$as_me:$LINENO: checking for $ac_header" >&5
5173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   eval "$as_ac_Header=$ac_header_preproc"
5178 fi
5179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5181
5182 fi
5183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5184   cat >>confdefs.h <<_ACEOF
5185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5186 _ACEOF
5187
5188 fi
5189
5190 done
5191
5192
5193 #
5194 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5195 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5196 #
5197 case "$host_os" in
5198     *hpux*)
5199                 cat >conftest.$ac_ext <<_ACEOF
5200 #line $LINENO "configure"
5201 #include "confdefs.h"
5202 #include <shadow.h>
5203 #ifdef F77_DUMMY_MAIN
5204 #  ifdef __cplusplus
5205      extern "C"
5206 #  endif
5207    int F77_DUMMY_MAIN() { return 1; }
5208 #endif
5209 int
5210 main ()
5211 {
5212 struct spwd testme
5213   ;
5214   return 0;
5215 }
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219   (eval $ac_compile) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } &&
5223          { ac_try='test -s conftest.$ac_objext'
5224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225   (eval $ac_try) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }; }; then
5229   ac_cv_header_shadow_h=yes
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5233 ac_cv_header_shadow_h=no
5234 fi
5235 rm -f conftest.$ac_objext conftest.$ac_ext
5236                 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5237
5238 cat >>confdefs.h <<\_ACEOF
5239 #define HAVE_SHADOW_H 1
5240 _ACEOF
5241
5242                 fi
5243         ;;
5244 esac
5245
5246
5247
5248
5249
5250 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5251 do
5252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5254   echo "$as_me:$LINENO: checking for $ac_header" >&5
5255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 fi
5259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261 else
5262   # Is the header compilable?
5263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5267 #include "confdefs.h"
5268 $ac_includes_default
5269 #include <$ac_header>
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273   (eval $ac_compile) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } &&
5277          { ac_try='test -s conftest.$ac_objext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   ac_header_compiler=yes
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 ac_header_compiler=no
5288 fi
5289 rm -f conftest.$ac_objext conftest.$ac_ext
5290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291 echo "${ECHO_T}$ac_header_compiler" >&6
5292
5293 # Is the header present?
5294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 #include "confdefs.h"
5299 #include <$ac_header>
5300 _ACEOF
5301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5303   ac_status=$?
5304   egrep -v '^ *\+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } >/dev/null; then
5309   if test -s conftest.err; then
5310     ac_cpp_err=$ac_c_preproc_warn_flag
5311   else
5312     ac_cpp_err=
5313   fi
5314 else
5315   ac_cpp_err=yes
5316 fi
5317 if test -z "$ac_cpp_err"; then
5318   ac_header_preproc=yes
5319 else
5320   echo "$as_me: failed program was:" >&5
5321   cat conftest.$ac_ext >&5
5322   ac_header_preproc=no
5323 fi
5324 rm -f conftest.err conftest.$ac_ext
5325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5326 echo "${ECHO_T}$ac_header_preproc" >&6
5327
5328 # So?  What about this header?
5329 case $ac_header_compiler:$ac_header_preproc in
5330   yes:no )
5331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5335   no:yes )
5336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5338     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5342 esac
5343 echo "$as_me:$LINENO: checking for $ac_header" >&5
5344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   eval "$as_ac_Header=$ac_header_preproc"
5349 fi
5350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5352
5353 fi
5354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5355   cat >>confdefs.h <<_ACEOF
5356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5357 _ACEOF
5358
5359 fi
5360
5361 done
5362
5363
5364
5365
5366
5367
5368
5369 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5370 do
5371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373   echo "$as_me:$LINENO: checking for $ac_header" >&5
5374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 fi
5378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5380 else
5381   # Is the header compilable?
5382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 #include "confdefs.h"
5387 $ac_includes_default
5388 #include <$ac_header>
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392   (eval $ac_compile) 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); } &&
5396          { ac_try='test -s conftest.$ac_objext'
5397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398   (eval $ac_try) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }; }; then
5402   ac_header_compiler=yes
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5406 ac_header_compiler=no
5407 fi
5408 rm -f conftest.$ac_objext conftest.$ac_ext
5409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5410 echo "${ECHO_T}$ac_header_compiler" >&6
5411
5412 # Is the header present?
5413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5415 cat >conftest.$ac_ext <<_ACEOF
5416 #line $LINENO "configure"
5417 #include "confdefs.h"
5418 #include <$ac_header>
5419 _ACEOF
5420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5422   ac_status=$?
5423   egrep -v '^ *\+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } >/dev/null; then
5428   if test -s conftest.err; then
5429     ac_cpp_err=$ac_c_preproc_warn_flag
5430   else
5431     ac_cpp_err=
5432   fi
5433 else
5434   ac_cpp_err=yes
5435 fi
5436 if test -z "$ac_cpp_err"; then
5437   ac_header_preproc=yes
5438 else
5439   echo "$as_me: failed program was:" >&5
5440   cat conftest.$ac_ext >&5
5441   ac_header_preproc=no
5442 fi
5443 rm -f conftest.err conftest.$ac_ext
5444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5445 echo "${ECHO_T}$ac_header_preproc" >&6
5446
5447 # So?  What about this header?
5448 case $ac_header_compiler:$ac_header_preproc in
5449   yes:no )
5450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5454   no:yes )
5455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5457     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5461 esac
5462 echo "$as_me:$LINENO: checking for $ac_header" >&5
5463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   eval "$as_ac_Header=$ac_header_preproc"
5468 fi
5469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5471
5472 fi
5473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5474   cat >>confdefs.h <<_ACEOF
5475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5476 _ACEOF
5477
5478 fi
5479
5480 done
5481
5482
5483
5484 for ac_header in stropts.h poll.h
5485 do
5486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5488   echo "$as_me:$LINENO: checking for $ac_header" >&5
5489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5491   echo $ECHO_N "(cached) $ECHO_C" >&6
5492 fi
5493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5495 else
5496   # Is the header compilable?
5497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5501 #include "confdefs.h"
5502 $ac_includes_default
5503 #include <$ac_header>
5504 _ACEOF
5505 rm -f conftest.$ac_objext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507   (eval $ac_compile) 2>&5
5508   ac_status=$?
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); } &&
5511          { ac_try='test -s conftest.$ac_objext'
5512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513   (eval $ac_try) 2>&5
5514   ac_status=$?
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); }; }; then
5517   ac_header_compiler=yes
5518 else
5519   echo "$as_me: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5521 ac_header_compiler=no
5522 fi
5523 rm -f conftest.$ac_objext conftest.$ac_ext
5524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5525 echo "${ECHO_T}$ac_header_compiler" >&6
5526
5527 # Is the header present?
5528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5530 cat >conftest.$ac_ext <<_ACEOF
5531 #line $LINENO "configure"
5532 #include "confdefs.h"
5533 #include <$ac_header>
5534 _ACEOF
5535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5537   ac_status=$?
5538   egrep -v '^ *\+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } >/dev/null; then
5543   if test -s conftest.err; then
5544     ac_cpp_err=$ac_c_preproc_warn_flag
5545   else
5546     ac_cpp_err=
5547   fi
5548 else
5549   ac_cpp_err=yes
5550 fi
5551 if test -z "$ac_cpp_err"; then
5552   ac_header_preproc=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555   cat conftest.$ac_ext >&5
5556   ac_header_preproc=no
5557 fi
5558 rm -f conftest.err conftest.$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5560 echo "${ECHO_T}$ac_header_preproc" >&6
5561
5562 # So?  What about this header?
5563 case $ac_header_compiler:$ac_header_preproc in
5564   yes:no )
5565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5569   no:yes )
5570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5572     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5576 esac
5577 echo "$as_me:$LINENO: checking for $ac_header" >&5
5578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   eval "$as_ac_Header=$ac_header_preproc"
5583 fi
5584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586
5587 fi
5588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589   cat >>confdefs.h <<_ACEOF
5590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591 _ACEOF
5592
5593 fi
5594
5595 done
5596
5597
5598
5599
5600 for ac_header in sys/capability.h syscall.h sys/syscall.h
5601 do
5602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604   echo "$as_me:$LINENO: checking for $ac_header" >&5
5605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 fi
5609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5611 else
5612   # Is the header compilable?
5613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5617 #include "confdefs.h"
5618 $ac_includes_default
5619 #include <$ac_header>
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623   (eval $ac_compile) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } &&
5627          { ac_try='test -s conftest.$ac_objext'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   ac_header_compiler=yes
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5637 ac_header_compiler=no
5638 fi
5639 rm -f conftest.$ac_objext conftest.$ac_ext
5640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5641 echo "${ECHO_T}$ac_header_compiler" >&6
5642
5643 # Is the header present?
5644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 #include "confdefs.h"
5649 #include <$ac_header>
5650 _ACEOF
5651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5653   ac_status=$?
5654   egrep -v '^ *\+' conftest.er1 >conftest.err
5655   rm -f conftest.er1
5656   cat conftest.err >&5
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } >/dev/null; then
5659   if test -s conftest.err; then
5660     ac_cpp_err=$ac_c_preproc_warn_flag
5661   else
5662     ac_cpp_err=
5663   fi
5664 else
5665   ac_cpp_err=yes
5666 fi
5667 if test -z "$ac_cpp_err"; then
5668   ac_header_preproc=yes
5669 else
5670   echo "$as_me: failed program was:" >&5
5671   cat conftest.$ac_ext >&5
5672   ac_header_preproc=no
5673 fi
5674 rm -f conftest.err conftest.$ac_ext
5675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5676 echo "${ECHO_T}$ac_header_preproc" >&6
5677
5678 # So?  What about this header?
5679 case $ac_header_compiler:$ac_header_preproc in
5680   yes:no )
5681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5685   no:yes )
5686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5692 esac
5693 echo "$as_me:$LINENO: checking for $ac_header" >&5
5694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   eval "$as_ac_Header=$ac_header_preproc"
5699 fi
5700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5702
5703 fi
5704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5705   cat >>confdefs.h <<_ACEOF
5706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5707 _ACEOF
5708
5709 fi
5710
5711 done
5712
5713
5714
5715
5716 for ac_header in sys/acl.h sys/cdefs.h glob.h
5717 do
5718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720   echo "$as_me:$LINENO: checking for $ac_header" >&5
5721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 fi
5725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5727 else
5728   # Is the header compilable?
5729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5731 cat >conftest.$ac_ext <<_ACEOF
5732 #line $LINENO "configure"
5733 #include "confdefs.h"
5734 $ac_includes_default
5735 #include <$ac_header>
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739   (eval $ac_compile) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } &&
5743          { ac_try='test -s conftest.$ac_objext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_header_compiler=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5753 ac_header_compiler=no
5754 fi
5755 rm -f conftest.$ac_objext conftest.$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5757 echo "${ECHO_T}$ac_header_compiler" >&6
5758
5759 # Is the header present?
5760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 #include "confdefs.h"
5765 #include <$ac_header>
5766 _ACEOF
5767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5769   ac_status=$?
5770   egrep -v '^ *\+' conftest.er1 >conftest.err
5771   rm -f conftest.er1
5772   cat conftest.err >&5
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } >/dev/null; then
5775   if test -s conftest.err; then
5776     ac_cpp_err=$ac_c_preproc_warn_flag
5777   else
5778     ac_cpp_err=
5779   fi
5780 else
5781   ac_cpp_err=yes
5782 fi
5783 if test -z "$ac_cpp_err"; then
5784   ac_header_preproc=yes
5785 else
5786   echo "$as_me: failed program was:" >&5
5787   cat conftest.$ac_ext >&5
5788   ac_header_preproc=no
5789 fi
5790 rm -f conftest.err conftest.$ac_ext
5791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5792 echo "${ECHO_T}$ac_header_preproc" >&6
5793
5794 # So?  What about this header?
5795 case $ac_header_compiler:$ac_header_preproc in
5796   yes:no )
5797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5801   no:yes )
5802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5804     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5808 esac
5809 echo "$as_me:$LINENO: checking for $ac_header" >&5
5810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   eval "$as_ac_Header=$ac_header_preproc"
5815 fi
5816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5818
5819 fi
5820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821   cat >>confdefs.h <<_ACEOF
5822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5823 _ACEOF
5824
5825 fi
5826
5827 done
5828
5829
5830 # For experimental utmp support (lastlog on some BSD-like systems)
5831
5832
5833
5834 for ac_header in utmp.h utmpx.h lastlog.h
5835 do
5836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5838   echo "$as_me:$LINENO: checking for $ac_header" >&5
5839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 fi
5843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5845 else
5846   # Is the header compilable?
5847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5849 cat >conftest.$ac_ext <<_ACEOF
5850 #line $LINENO "configure"
5851 #include "confdefs.h"
5852 $ac_includes_default
5853 #include <$ac_header>
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857   (eval $ac_compile) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); } &&
5861          { ac_try='test -s conftest.$ac_objext'
5862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863   (eval $ac_try) 2>&5
5864   ac_status=$?
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); }; }; then
5867   ac_header_compiler=yes
5868 else
5869   echo "$as_me: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5871 ac_header_compiler=no
5872 fi
5873 rm -f conftest.$ac_objext conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5875 echo "${ECHO_T}$ac_header_compiler" >&6
5876
5877 # Is the header present?
5878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5882 #include "confdefs.h"
5883 #include <$ac_header>
5884 _ACEOF
5885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5887   ac_status=$?
5888   egrep -v '^ *\+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } >/dev/null; then
5893   if test -s conftest.err; then
5894     ac_cpp_err=$ac_c_preproc_warn_flag
5895   else
5896     ac_cpp_err=
5897   fi
5898 else
5899   ac_cpp_err=yes
5900 fi
5901 if test -z "$ac_cpp_err"; then
5902   ac_header_preproc=yes
5903 else
5904   echo "$as_me: failed program was:" >&5
5905   cat conftest.$ac_ext >&5
5906   ac_header_preproc=no
5907 fi
5908 rm -f conftest.err conftest.$ac_ext
5909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5910 echo "${ECHO_T}$ac_header_preproc" >&6
5911
5912 # So?  What about this header?
5913 case $ac_header_compiler:$ac_header_preproc in
5914   yes:no )
5915     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5919   no:yes )
5920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5922     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5926 esac
5927 echo "$as_me:$LINENO: checking for $ac_header" >&5
5928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   eval "$as_ac_Header=$ac_header_preproc"
5933 fi
5934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5936
5937 fi
5938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5939   cat >>confdefs.h <<_ACEOF
5940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5941 _ACEOF
5942
5943 fi
5944
5945 done
5946
5947
5948 # For quotas on Veritas VxFS filesystems
5949
5950 for ac_header in sys/fs/vx_quota.h
5951 do
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954   echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 fi
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961 else
5962   # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 #line $LINENO "configure"
5967 #include "confdefs.h"
5968 $ac_includes_default
5969 #include <$ac_header>
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973   (eval $ac_compile) 2>&5
5974   ac_status=$?
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); } &&
5977          { ac_try='test -s conftest.$ac_objext'
5978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979   (eval $ac_try) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; }; then
5983   ac_header_compiler=yes
5984 else
5985   echo "$as_me: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5987 ac_header_compiler=no
5988 fi
5989 rm -f conftest.$ac_objext conftest.$ac_ext
5990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5991 echo "${ECHO_T}$ac_header_compiler" >&6
5992
5993 # Is the header present?
5994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5996 cat >conftest.$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
5998 #include "confdefs.h"
5999 #include <$ac_header>
6000 _ACEOF
6001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6003   ac_status=$?
6004   egrep -v '^ *\+' conftest.er1 >conftest.err
6005   rm -f conftest.er1
6006   cat conftest.err >&5
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); } >/dev/null; then
6009   if test -s conftest.err; then
6010     ac_cpp_err=$ac_c_preproc_warn_flag
6011   else
6012     ac_cpp_err=
6013   fi
6014 else
6015   ac_cpp_err=yes
6016 fi
6017 if test -z "$ac_cpp_err"; then
6018   ac_header_preproc=yes
6019 else
6020   echo "$as_me: failed program was:" >&5
6021   cat conftest.$ac_ext >&5
6022   ac_header_preproc=no
6023 fi
6024 rm -f conftest.err conftest.$ac_ext
6025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6026 echo "${ECHO_T}$ac_header_preproc" >&6
6027
6028 # So?  What about this header?
6029 case $ac_header_compiler:$ac_header_preproc in
6030   yes:no )
6031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6035   no:yes )
6036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6038     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6042 esac
6043 echo "$as_me:$LINENO: checking for $ac_header" >&5
6044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048   eval "$as_ac_Header=$ac_header_preproc"
6049 fi
6050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6052
6053 fi
6054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6055   cat >>confdefs.h <<_ACEOF
6056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6057 _ACEOF
6058
6059 fi
6060
6061 done
6062
6063
6064 # For quotas on Linux XFS filesystems
6065
6066 for ac_header in linux/xqm.h
6067 do
6068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6070   echo "$as_me:$LINENO: checking for $ac_header" >&5
6071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 fi
6075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6077 else
6078   # Is the header compilable?
6079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 #include "confdefs.h"
6084 $ac_includes_default
6085 #include <$ac_header>
6086 _ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089   (eval $ac_compile) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); } &&
6093          { ac_try='test -s conftest.$ac_objext'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; }; then
6099   ac_header_compiler=yes
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 ac_header_compiler=no
6104 fi
6105 rm -f conftest.$ac_objext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6107 echo "${ECHO_T}$ac_header_compiler" >&6
6108
6109 # Is the header present?
6110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6112 cat >conftest.$ac_ext <<_ACEOF
6113 #line $LINENO "configure"
6114 #include "confdefs.h"
6115 #include <$ac_header>
6116 _ACEOF
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6119   ac_status=$?
6120   egrep -v '^ *\+' conftest.er1 >conftest.err
6121   rm -f conftest.er1
6122   cat conftest.err >&5
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } >/dev/null; then
6125   if test -s conftest.err; then
6126     ac_cpp_err=$ac_c_preproc_warn_flag
6127   else
6128     ac_cpp_err=
6129   fi
6130 else
6131   ac_cpp_err=yes
6132 fi
6133 if test -z "$ac_cpp_err"; then
6134   ac_header_preproc=yes
6135 else
6136   echo "$as_me: failed program was:" >&5
6137   cat conftest.$ac_ext >&5
6138   ac_header_preproc=no
6139 fi
6140 rm -f conftest.err conftest.$ac_ext
6141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6142 echo "${ECHO_T}$ac_header_preproc" >&6
6143
6144 # So?  What about this header?
6145 case $ac_header_compiler:$ac_header_preproc in
6146   yes:no )
6147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6151   no:yes )
6152     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6154     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6158 esac
6159 echo "$as_me:$LINENO: checking for $ac_header" >&5
6160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   eval "$as_ac_Header=$ac_header_preproc"
6165 fi
6166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6168
6169 fi
6170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6171   cat >>confdefs.h <<_ACEOF
6172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173 _ACEOF
6174
6175 fi
6176
6177 done
6178
6179
6180 for ac_header in xfs/xqm.h
6181 do
6182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184   echo "$as_me:$LINENO: checking for $ac_header" >&5
6185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 fi
6189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6191 else
6192   # Is the header compilable?
6193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6196 #line $LINENO "configure"
6197 #include "confdefs.h"
6198 $ac_includes_default
6199 #include <$ac_header>
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203   (eval $ac_compile) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } &&
6207          { ac_try='test -s conftest.$ac_objext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   ac_header_compiler=yes
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6217 ac_header_compiler=no
6218 fi
6219 rm -f conftest.$ac_objext conftest.$ac_ext
6220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 echo "${ECHO_T}$ac_header_compiler" >&6
6222
6223 # Is the header present?
6224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6226 cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 #include "confdefs.h"
6229 #include <$ac_header>
6230 _ACEOF
6231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6233   ac_status=$?
6234   egrep -v '^ *\+' conftest.er1 >conftest.err
6235   rm -f conftest.er1
6236   cat conftest.err >&5
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } >/dev/null; then
6239   if test -s conftest.err; then
6240     ac_cpp_err=$ac_c_preproc_warn_flag
6241   else
6242     ac_cpp_err=
6243   fi
6244 else
6245   ac_cpp_err=yes
6246 fi
6247 if test -z "$ac_cpp_err"; then
6248   ac_header_preproc=yes
6249 else
6250   echo "$as_me: failed program was:" >&5
6251   cat conftest.$ac_ext >&5
6252   ac_header_preproc=no
6253 fi
6254 rm -f conftest.err conftest.$ac_ext
6255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6256 echo "${ECHO_T}$ac_header_preproc" >&6
6257
6258 # So?  What about this header?
6259 case $ac_header_compiler:$ac_header_preproc in
6260   yes:no )
6261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6265   no:yes )
6266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6268     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6272 esac
6273 echo "$as_me:$LINENO: checking for $ac_header" >&5
6274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   eval "$as_ac_Header=$ac_header_preproc"
6279 fi
6280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6282
6283 fi
6284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6285   cat >>confdefs.h <<_ACEOF
6286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6287 _ACEOF
6288
6289 fi
6290
6291 done
6292
6293
6294 echo "$as_me:$LINENO: checking for int" >&5
6295 echo $ECHO_N "checking for int... $ECHO_C" >&6
6296 if test "${ac_cv_type_int+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6301 #include "confdefs.h"
6302 $ac_includes_default
6303 #ifdef F77_DUMMY_MAIN
6304 #  ifdef __cplusplus
6305      extern "C"
6306 #  endif
6307    int F77_DUMMY_MAIN() { return 1; }
6308 #endif
6309 int
6310 main ()
6311 {
6312 if ((int *) 0)
6313   return 0;
6314 if (sizeof (int))
6315   return 0;
6316   ;
6317   return 0;
6318 }
6319 _ACEOF
6320 rm -f conftest.$ac_objext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322   (eval $ac_compile) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); } &&
6326          { ac_try='test -s conftest.$ac_objext'
6327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328   (eval $ac_try) 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); }; }; then
6332   ac_cv_type_int=yes
6333 else
6334   echo "$as_me: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6336 ac_cv_type_int=no
6337 fi
6338 rm -f conftest.$ac_objext conftest.$ac_ext
6339 fi
6340 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6341 echo "${ECHO_T}$ac_cv_type_int" >&6
6342
6343 echo "$as_me:$LINENO: checking size of int" >&5
6344 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6345 if test "${ac_cv_sizeof_int+set}" = set; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   if test "$ac_cv_type_int" = yes; then
6349   # The cast to unsigned long works around a bug in the HP C Compiler
6350   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6351   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6352   # This bug is HP SR number 8606223364.
6353   if test "$cross_compiling" = yes; then
6354   # Depending upon the size, compute the lo and hi bounds.
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 #include "confdefs.h"
6358 $ac_includes_default
6359 #ifdef F77_DUMMY_MAIN
6360 #  ifdef __cplusplus
6361      extern "C"
6362 #  endif
6363    int F77_DUMMY_MAIN() { return 1; }
6364 #endif
6365 int
6366 main ()
6367 {
6368 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6369 test_array [0] = 0
6370
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377   (eval $ac_compile) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); } &&
6381          { ac_try='test -s conftest.$ac_objext'
6382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383   (eval $ac_try) 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; }; then
6387   ac_lo=0 ac_mid=0
6388   while :; do
6389     cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6391 #include "confdefs.h"
6392 $ac_includes_default
6393 #ifdef F77_DUMMY_MAIN
6394 #  ifdef __cplusplus
6395      extern "C"
6396 #  endif
6397    int F77_DUMMY_MAIN() { return 1; }
6398 #endif
6399 int
6400 main ()
6401 {
6402 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6403 test_array [0] = 0
6404
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411   (eval $ac_compile) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } &&
6415          { ac_try='test -s conftest.$ac_objext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_hi=$ac_mid; break
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 ac_lo=`expr $ac_mid + 1`
6426                     if test $ac_lo -le $ac_mid; then
6427                       ac_lo= ac_hi=
6428                       break
6429                     fi
6430                     ac_mid=`expr 2 '*' $ac_mid + 1`
6431 fi
6432 rm -f conftest.$ac_objext conftest.$ac_ext
6433   done
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6440 $ac_includes_default
6441 #ifdef F77_DUMMY_MAIN
6442 #  ifdef __cplusplus
6443      extern "C"
6444 #  endif
6445    int F77_DUMMY_MAIN() { return 1; }
6446 #endif
6447 int
6448 main ()
6449 {
6450 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6451 test_array [0] = 0
6452
6453   ;
6454   return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459   (eval $ac_compile) 2>&5
6460   ac_status=$?
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); } &&
6463          { ac_try='test -s conftest.$ac_objext'
6464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465   (eval $ac_try) 2>&5
6466   ac_status=$?
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); }; }; then
6469   ac_hi=-1 ac_mid=-1
6470   while :; do
6471     cat >conftest.$ac_ext <<_ACEOF
6472 #line $LINENO "configure"
6473 #include "confdefs.h"
6474 $ac_includes_default
6475 #ifdef F77_DUMMY_MAIN
6476 #  ifdef __cplusplus
6477      extern "C"
6478 #  endif
6479    int F77_DUMMY_MAIN() { return 1; }
6480 #endif
6481 int
6482 main ()
6483 {
6484 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6485 test_array [0] = 0
6486
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest.$ac_objext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6493   (eval $ac_compile) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } &&
6497          { ac_try='test -s conftest.$ac_objext'
6498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499   (eval $ac_try) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; }; then
6503   ac_lo=$ac_mid; break
6504 else
6505   echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 ac_hi=`expr '(' $ac_mid ')' - 1`
6508                        if test $ac_mid -le $ac_hi; then
6509                          ac_lo= ac_hi=
6510                          break
6511                        fi
6512                        ac_mid=`expr 2 '*' $ac_mid`
6513 fi
6514 rm -f conftest.$ac_objext conftest.$ac_ext
6515   done
6516 else
6517   echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6519 ac_lo= ac_hi=
6520 fi
6521 rm -f conftest.$ac_objext conftest.$ac_ext
6522 fi
6523 rm -f conftest.$ac_objext conftest.$ac_ext
6524 # Binary search between lo and hi bounds.
6525 while test "x$ac_lo" != "x$ac_hi"; do
6526   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6527   cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6529 #include "confdefs.h"
6530 $ac_includes_default
6531 #ifdef F77_DUMMY_MAIN
6532 #  ifdef __cplusplus
6533      extern "C"
6534 #  endif
6535    int F77_DUMMY_MAIN() { return 1; }
6536 #endif
6537 int
6538 main ()
6539 {
6540 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6541 test_array [0] = 0
6542
6543   ;
6544   return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549   (eval $ac_compile) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); } &&
6553          { ac_try='test -s conftest.$ac_objext'
6554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555   (eval $ac_try) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); }; }; then
6559   ac_hi=$ac_mid
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 ac_lo=`expr '(' $ac_mid ')' + 1`
6564 fi
6565 rm -f conftest.$ac_objext conftest.$ac_ext
6566 done
6567 case $ac_lo in
6568 ?*) ac_cv_sizeof_int=$ac_lo;;
6569 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6570 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6571    { (exit 1); exit 1; }; } ;;
6572 esac
6573 else
6574   if test "$cross_compiling" = yes; then
6575   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6576 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6577    { (exit 1); exit 1; }; }
6578 else
6579   cat >conftest.$ac_ext <<_ACEOF
6580 #line $LINENO "configure"
6581 #include "confdefs.h"
6582 $ac_includes_default
6583 long longval () { return (long) (sizeof (int)); }
6584 unsigned long ulongval () { return (long) (sizeof (int)); }
6585 #include <stdio.h>
6586 #include <stdlib.h>
6587 #ifdef F77_DUMMY_MAIN
6588 #  ifdef __cplusplus
6589      extern "C"
6590 #  endif
6591    int F77_DUMMY_MAIN() { return 1; }
6592 #endif
6593 int
6594 main ()
6595 {
6596
6597   FILE *f = fopen ("conftest.val", "w");
6598   if (! f)
6599     exit (1);
6600   if (((long) (sizeof (int))) < 0)
6601     {
6602       long i = longval ();
6603       if (i != ((long) (sizeof (int))))
6604         exit (1);
6605       fprintf (f, "%ld\n", i);
6606     }
6607   else
6608     {
6609       unsigned long i = ulongval ();
6610       if (i != ((long) (sizeof (int))))
6611         exit (1);
6612       fprintf (f, "%lu\n", i);
6613     }
6614   exit (ferror (f) || fclose (f) != 0);
6615
6616   ;
6617   return 0;
6618 }
6619 _ACEOF
6620 rm -f conftest$ac_exeext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6622   (eval $ac_link) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627   (eval $ac_try) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); }; }; then
6631   ac_cv_sizeof_int=`cat conftest.val`
6632 else
6633   echo "$as_me: program exited with status $ac_status" >&5
6634 echo "$as_me: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6636 ( exit $ac_status )
6637 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6638 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6639    { (exit 1); exit 1; }; }
6640 fi
6641 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6642 fi
6643 fi
6644 rm -f conftest.val
6645 else
6646   ac_cv_sizeof_int=0
6647 fi
6648 fi
6649 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6650 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6651 cat >>confdefs.h <<_ACEOF
6652 #define SIZEOF_INT $ac_cv_sizeof_int
6653 _ACEOF
6654
6655
6656 echo "$as_me:$LINENO: checking for long" >&5
6657 echo $ECHO_N "checking for long... $ECHO_C" >&6
6658 if test "${ac_cv_type_long+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   cat >conftest.$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6663 #include "confdefs.h"
6664 $ac_includes_default
6665 #ifdef F77_DUMMY_MAIN
6666 #  ifdef __cplusplus
6667      extern "C"
6668 #  endif
6669    int F77_DUMMY_MAIN() { return 1; }
6670 #endif
6671 int
6672 main ()
6673 {
6674 if ((long *) 0)
6675   return 0;
6676 if (sizeof (long))
6677   return 0;
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684   (eval $ac_compile) 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } &&
6688          { ac_try='test -s conftest.$ac_objext'
6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690   (eval $ac_try) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }; }; then
6694   ac_cv_type_long=yes
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 ac_cv_type_long=no
6699 fi
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6703 echo "${ECHO_T}$ac_cv_type_long" >&6
6704
6705 echo "$as_me:$LINENO: checking size of long" >&5
6706 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6707 if test "${ac_cv_sizeof_long+set}" = set; then
6708   echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710   if test "$ac_cv_type_long" = yes; then
6711   # The cast to unsigned long works around a bug in the HP C Compiler
6712   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6713   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6714   # This bug is HP SR number 8606223364.
6715   if test "$cross_compiling" = yes; then
6716   # Depending upon the size, compute the lo and hi bounds.
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6720 $ac_includes_default
6721 #ifdef F77_DUMMY_MAIN
6722 #  ifdef __cplusplus
6723      extern "C"
6724 #  endif
6725    int F77_DUMMY_MAIN() { return 1; }
6726 #endif
6727 int
6728 main ()
6729 {
6730 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6731 test_array [0] = 0
6732
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739   (eval $ac_compile) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -s conftest.$ac_objext'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749   ac_lo=0 ac_mid=0
6750   while :; do
6751     cat >conftest.$ac_ext <<_ACEOF
6752 #line $LINENO "configure"
6753 #include "confdefs.h"
6754 $ac_includes_default
6755 #ifdef F77_DUMMY_MAIN
6756 #  ifdef __cplusplus
6757      extern "C"
6758 #  endif
6759    int F77_DUMMY_MAIN() { return 1; }
6760 #endif
6761 int
6762 main ()
6763 {
6764 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6765 test_array [0] = 0
6766
6767   ;
6768   return 0;
6769 }
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773   (eval $ac_compile) 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } &&
6777          { ac_try='test -s conftest.$ac_objext'
6778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779   (eval $ac_try) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); }; }; then
6783   ac_hi=$ac_mid; break
6784 else
6785   echo "$as_me: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 ac_lo=`expr $ac_mid + 1`
6788                     if test $ac_lo -le $ac_mid; then
6789                       ac_lo= ac_hi=
6790                       break
6791                     fi
6792                     ac_mid=`expr 2 '*' $ac_mid + 1`
6793 fi
6794 rm -f conftest.$ac_objext conftest.$ac_ext
6795   done
6796 else
6797   echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 #include "confdefs.h"
6802 $ac_includes_default
6803 #ifdef F77_DUMMY_MAIN
6804 #  ifdef __cplusplus
6805      extern "C"
6806 #  endif
6807    int F77_DUMMY_MAIN() { return 1; }
6808 #endif
6809 int
6810 main ()
6811 {
6812 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6813 test_array [0] = 0
6814
6815   ;
6816   return 0;
6817 }
6818 _ACEOF
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821   (eval $ac_compile) 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } &&
6825          { ac_try='test -s conftest.$ac_objext'
6826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827   (eval $ac_try) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); }; }; then
6831   ac_hi=-1 ac_mid=-1
6832   while :; do
6833     cat >conftest.$ac_ext <<_ACEOF
6834 #line $LINENO "configure"
6835 #include "confdefs.h"
6836 $ac_includes_default
6837 #ifdef F77_DUMMY_MAIN
6838 #  ifdef __cplusplus
6839      extern "C"
6840 #  endif
6841    int F77_DUMMY_MAIN() { return 1; }
6842 #endif
6843 int
6844 main ()
6845 {
6846 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6847 test_array [0] = 0
6848
6849   ;
6850   return 0;
6851 }
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855   (eval $ac_compile) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); } &&
6859          { ac_try='test -s conftest.$ac_objext'
6860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861   (eval $ac_try) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); }; }; then
6865   ac_lo=$ac_mid; break
6866 else
6867   echo "$as_me: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6869 ac_hi=`expr '(' $ac_mid ')' - 1`
6870                        if test $ac_mid -le $ac_hi; then
6871                          ac_lo= ac_hi=
6872                          break
6873                        fi
6874                        ac_mid=`expr 2 '*' $ac_mid`
6875 fi
6876 rm -f conftest.$ac_objext conftest.$ac_ext
6877   done
6878 else
6879   echo "$as_me: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6881 ac_lo= ac_hi=
6882 fi
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6884 fi
6885 rm -f conftest.$ac_objext conftest.$ac_ext
6886 # Binary search between lo and hi bounds.
6887 while test "x$ac_lo" != "x$ac_hi"; do
6888   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6889   cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6892 $ac_includes_default
6893 #ifdef F77_DUMMY_MAIN
6894 #  ifdef __cplusplus
6895      extern "C"
6896 #  endif
6897    int F77_DUMMY_MAIN() { return 1; }
6898 #endif
6899 int
6900 main ()
6901 {
6902 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6903 test_array [0] = 0
6904
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911   (eval $ac_compile) 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } &&
6915          { ac_try='test -s conftest.$ac_objext'
6916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917   (eval $ac_try) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); }; }; then
6921   ac_hi=$ac_mid
6922 else
6923   echo "$as_me: failed program was:" >&5
6924 cat conftest.$ac_ext >&5
6925 ac_lo=`expr '(' $ac_mid ')' + 1`
6926 fi
6927 rm -f conftest.$ac_objext conftest.$ac_ext
6928 done
6929 case $ac_lo in
6930 ?*) ac_cv_sizeof_long=$ac_lo;;
6931 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6932 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6933    { (exit 1); exit 1; }; } ;;
6934 esac
6935 else
6936   if test "$cross_compiling" = yes; then
6937   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6938 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6939    { (exit 1); exit 1; }; }
6940 else
6941   cat >conftest.$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6943 #include "confdefs.h"
6944 $ac_includes_default
6945 long longval () { return (long) (sizeof (long)); }
6946 unsigned long ulongval () { return (long) (sizeof (long)); }
6947 #include <stdio.h>
6948 #include <stdlib.h>
6949 #ifdef F77_DUMMY_MAIN
6950 #  ifdef __cplusplus
6951      extern "C"
6952 #  endif
6953    int F77_DUMMY_MAIN() { return 1; }
6954 #endif
6955 int
6956 main ()
6957 {
6958
6959   FILE *f = fopen ("conftest.val", "w");
6960   if (! f)
6961     exit (1);
6962   if (((long) (sizeof (long))) < 0)
6963     {
6964       long i = longval ();
6965       if (i != ((long) (sizeof (long))))
6966         exit (1);
6967       fprintf (f, "%ld\n", i);
6968     }
6969   else
6970     {
6971       unsigned long i = ulongval ();
6972       if (i != ((long) (sizeof (long))))
6973         exit (1);
6974       fprintf (f, "%lu\n", i);
6975     }
6976   exit (ferror (f) || fclose (f) != 0);
6977
6978   ;
6979   return 0;
6980 }
6981 _ACEOF
6982 rm -f conftest$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984   (eval $ac_link) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; }; then
6993   ac_cv_sizeof_long=`cat conftest.val`
6994 else
6995   echo "$as_me: program exited with status $ac_status" >&5
6996 echo "$as_me: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6998 ( exit $ac_status )
6999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
7000 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7001    { (exit 1); exit 1; }; }
7002 fi
7003 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7004 fi
7005 fi
7006 rm -f conftest.val
7007 else
7008   ac_cv_sizeof_long=0
7009 fi
7010 fi
7011 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7012 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7013 cat >>confdefs.h <<_ACEOF
7014 #define SIZEOF_LONG $ac_cv_sizeof_long
7015 _ACEOF
7016
7017
7018 echo "$as_me:$LINENO: checking for short" >&5
7019 echo $ECHO_N "checking for short... $ECHO_C" >&6
7020 if test "${ac_cv_type_short+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   cat >conftest.$ac_ext <<_ACEOF
7024 #line $LINENO "configure"
7025 #include "confdefs.h"
7026 $ac_includes_default
7027 #ifdef F77_DUMMY_MAIN
7028 #  ifdef __cplusplus
7029      extern "C"
7030 #  endif
7031    int F77_DUMMY_MAIN() { return 1; }
7032 #endif
7033 int
7034 main ()
7035 {
7036 if ((short *) 0)
7037   return 0;
7038 if (sizeof (short))
7039   return 0;
7040   ;
7041   return 0;
7042 }
7043 _ACEOF
7044 rm -f conftest.$ac_objext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046   (eval $ac_compile) 2>&5
7047   ac_status=$?
7048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049   (exit $ac_status); } &&
7050          { ac_try='test -s conftest.$ac_objext'
7051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052   (eval $ac_try) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); }; }; then
7056   ac_cv_type_short=yes
7057 else
7058   echo "$as_me: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7060 ac_cv_type_short=no
7061 fi
7062 rm -f conftest.$ac_objext conftest.$ac_ext
7063 fi
7064 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7065 echo "${ECHO_T}$ac_cv_type_short" >&6
7066
7067 echo "$as_me:$LINENO: checking size of short" >&5
7068 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7069 if test "${ac_cv_sizeof_short+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   if test "$ac_cv_type_short" = yes; then
7073   # The cast to unsigned long works around a bug in the HP C Compiler
7074   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7075   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7076   # This bug is HP SR number 8606223364.
7077   if test "$cross_compiling" = yes; then
7078   # Depending upon the size, compute the lo and hi bounds.
7079 cat >conftest.$ac_ext <<_ACEOF
7080 #line $LINENO "configure"
7081 #include "confdefs.h"
7082 $ac_includes_default
7083 #ifdef F77_DUMMY_MAIN
7084 #  ifdef __cplusplus
7085      extern "C"
7086 #  endif
7087    int F77_DUMMY_MAIN() { return 1; }
7088 #endif
7089 int
7090 main ()
7091 {
7092 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7093 test_array [0] = 0
7094
7095   ;
7096   return 0;
7097 }
7098 _ACEOF
7099 rm -f conftest.$ac_objext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101   (eval $ac_compile) 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); } &&
7105          { ac_try='test -s conftest.$ac_objext'
7106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107   (eval $ac_try) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }; }; then
7111   ac_lo=0 ac_mid=0
7112   while :; do
7113     cat >conftest.$ac_ext <<_ACEOF
7114 #line $LINENO "configure"
7115 #include "confdefs.h"
7116 $ac_includes_default
7117 #ifdef F77_DUMMY_MAIN
7118 #  ifdef __cplusplus
7119      extern "C"
7120 #  endif
7121    int F77_DUMMY_MAIN() { return 1; }
7122 #endif
7123 int
7124 main ()
7125 {
7126 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7127 test_array [0] = 0
7128
7129   ;
7130   return 0;
7131 }
7132 _ACEOF
7133 rm -f conftest.$ac_objext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135   (eval $ac_compile) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); } &&
7139          { ac_try='test -s conftest.$ac_objext'
7140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; }; then
7145   ac_hi=$ac_mid; break
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 ac_lo=`expr $ac_mid + 1`
7150                     if test $ac_lo -le $ac_mid; then
7151                       ac_lo= ac_hi=
7152                       break
7153                     fi
7154                     ac_mid=`expr 2 '*' $ac_mid + 1`
7155 fi
7156 rm -f conftest.$ac_objext conftest.$ac_ext
7157   done
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line $LINENO "configure"
7163 #include "confdefs.h"
7164 $ac_includes_default
7165 #ifdef F77_DUMMY_MAIN
7166 #  ifdef __cplusplus
7167      extern "C"
7168 #  endif
7169    int F77_DUMMY_MAIN() { return 1; }
7170 #endif
7171 int
7172 main ()
7173 {
7174 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7175 test_array [0] = 0
7176
7177   ;
7178   return 0;
7179 }
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183   (eval $ac_compile) 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); } &&
7187          { ac_try='test -s conftest.$ac_objext'
7188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189   (eval $ac_try) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; }; then
7193   ac_hi=-1 ac_mid=-1
7194   while :; do
7195     cat >conftest.$ac_ext <<_ACEOF
7196 #line $LINENO "configure"
7197 #include "confdefs.h"
7198 $ac_includes_default
7199 #ifdef F77_DUMMY_MAIN
7200 #  ifdef __cplusplus
7201      extern "C"
7202 #  endif
7203    int F77_DUMMY_MAIN() { return 1; }
7204 #endif
7205 int
7206 main ()
7207 {
7208 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7209 test_array [0] = 0
7210
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217   (eval $ac_compile) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } &&
7221          { ac_try='test -s conftest.$ac_objext'
7222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223   (eval $ac_try) 2>&5
7224   ac_status=$?
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); }; }; then
7227   ac_lo=$ac_mid; break
7228 else
7229   echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7231 ac_hi=`expr '(' $ac_mid ')' - 1`
7232                        if test $ac_mid -le $ac_hi; then
7233                          ac_lo= ac_hi=
7234                          break
7235                        fi
7236                        ac_mid=`expr 2 '*' $ac_mid`
7237 fi
7238 rm -f conftest.$ac_objext conftest.$ac_ext
7239   done
7240 else
7241   echo "$as_me: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7243 ac_lo= ac_hi=
7244 fi
7245 rm -f conftest.$ac_objext conftest.$ac_ext
7246 fi
7247 rm -f conftest.$ac_objext conftest.$ac_ext
7248 # Binary search between lo and hi bounds.
7249 while test "x$ac_lo" != "x$ac_hi"; do
7250   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7251   cat >conftest.$ac_ext <<_ACEOF
7252 #line $LINENO "configure"
7253 #include "confdefs.h"
7254 $ac_includes_default
7255 #ifdef F77_DUMMY_MAIN
7256 #  ifdef __cplusplus
7257      extern "C"
7258 #  endif
7259    int F77_DUMMY_MAIN() { return 1; }
7260 #endif
7261 int
7262 main ()
7263 {
7264 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7265 test_array [0] = 0
7266
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273   (eval $ac_compile) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); } &&
7277          { ac_try='test -s conftest.$ac_objext'
7278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279   (eval $ac_try) 2>&5
7280   ac_status=$?
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); }; }; then
7283   ac_hi=$ac_mid
7284 else
7285   echo "$as_me: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7287 ac_lo=`expr '(' $ac_mid ')' + 1`
7288 fi
7289 rm -f conftest.$ac_objext conftest.$ac_ext
7290 done
7291 case $ac_lo in
7292 ?*) ac_cv_sizeof_short=$ac_lo;;
7293 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7294 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7295    { (exit 1); exit 1; }; } ;;
7296 esac
7297 else
7298   if test "$cross_compiling" = yes; then
7299   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7300 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7301    { (exit 1); exit 1; }; }
7302 else
7303   cat >conftest.$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7305 #include "confdefs.h"
7306 $ac_includes_default
7307 long longval () { return (long) (sizeof (short)); }
7308 unsigned long ulongval () { return (long) (sizeof (short)); }
7309 #include <stdio.h>
7310 #include <stdlib.h>
7311 #ifdef F77_DUMMY_MAIN
7312 #  ifdef __cplusplus
7313      extern "C"
7314 #  endif
7315    int F77_DUMMY_MAIN() { return 1; }
7316 #endif
7317 int
7318 main ()
7319 {
7320
7321   FILE *f = fopen ("conftest.val", "w");
7322   if (! f)
7323     exit (1);
7324   if (((long) (sizeof (short))) < 0)
7325     {
7326       long i = longval ();
7327       if (i != ((long) (sizeof (short))))
7328         exit (1);
7329       fprintf (f, "%ld\n", i);
7330     }
7331   else
7332     {
7333       unsigned long i = ulongval ();
7334       if (i != ((long) (sizeof (short))))
7335         exit (1);
7336       fprintf (f, "%lu\n", i);
7337     }
7338   exit (ferror (f) || fclose (f) != 0);
7339
7340   ;
7341   return 0;
7342 }
7343 _ACEOF
7344 rm -f conftest$ac_exeext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7346   (eval $ac_link) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351   (eval $ac_try) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; }; then
7355   ac_cv_sizeof_short=`cat conftest.val`
7356 else
7357   echo "$as_me: program exited with status $ac_status" >&5
7358 echo "$as_me: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 ( exit $ac_status )
7361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7362 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7363    { (exit 1); exit 1; }; }
7364 fi
7365 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7366 fi
7367 fi
7368 rm -f conftest.val
7369 else
7370   ac_cv_sizeof_short=0
7371 fi
7372 fi
7373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7374 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7375 cat >>confdefs.h <<_ACEOF
7376 #define SIZEOF_SHORT $ac_cv_sizeof_short
7377 _ACEOF
7378
7379
7380
7381 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7382 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7383 if test "${ac_cv_c_const+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7388 #include "confdefs.h"
7389
7390 #ifdef F77_DUMMY_MAIN
7391 #  ifdef __cplusplus
7392      extern "C"
7393 #  endif
7394    int F77_DUMMY_MAIN() { return 1; }
7395 #endif
7396 int
7397 main ()
7398 {
7399 /* FIXME: Include the comments suggested by Paul. */
7400 #ifndef __cplusplus
7401   /* Ultrix mips cc rejects this.  */
7402   typedef int charset[2];
7403   const charset x;
7404   /* SunOS 4.1.1 cc rejects this.  */
7405   char const *const *ccp;
7406   char **p;
7407   /* NEC SVR4.0.2 mips cc rejects this.  */
7408   struct point {int x, y;};
7409   static struct point const zero = {0,0};
7410   /* AIX XL C 1.02.0.0 rejects this.
7411      It does not let you subtract one const X* pointer from another in
7412      an arm of an if-expression whose if-part is not a constant
7413      expression */
7414   const char *g = "string";
7415   ccp = &g + (g ? g-g : 0);
7416   /* HPUX 7.0 cc rejects these. */
7417   ++ccp;
7418   p = (char**) ccp;
7419   ccp = (char const *const *) p;
7420   { /* SCO 3.2v4 cc rejects this.  */
7421     char *t;
7422     char const *s = 0 ? (char *) 0 : (char const *) 0;
7423
7424     *t++ = 0;
7425   }
7426   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7427     int x[] = {25, 17};
7428     const int *foo = &x[0];
7429     ++foo;
7430   }
7431   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7432     typedef const int *iptr;
7433     iptr p = 0;
7434     ++p;
7435   }
7436   { /* AIX XL C 1.02.0.0 rejects this saying
7437        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7438     struct s { int j; const int *ap[3]; };
7439     struct s *b; b->j = 5;
7440   }
7441   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7442     const int foo = 10;
7443   }
7444 #endif
7445
7446   ;
7447   return 0;
7448 }
7449 _ACEOF
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452   (eval $ac_compile) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); } &&
7456          { ac_try='test -s conftest.$ac_objext'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; }; then
7462   ac_cv_c_const=yes
7463 else
7464   echo "$as_me: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7466 ac_cv_c_const=no
7467 fi
7468 rm -f conftest.$ac_objext conftest.$ac_ext
7469 fi
7470 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7471 echo "${ECHO_T}$ac_cv_c_const" >&6
7472 if test $ac_cv_c_const = no; then
7473
7474 cat >>confdefs.h <<\_ACEOF
7475 #define const
7476 _ACEOF
7477
7478 fi
7479
7480 echo "$as_me:$LINENO: checking for inline" >&5
7481 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7482 if test "${ac_cv_c_inline+set}" = set; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485   ac_cv_c_inline=no
7486 for ac_kw in inline __inline__ __inline; do
7487   cat >conftest.$ac_ext <<_ACEOF
7488 #line $LINENO "configure"
7489 #include "confdefs.h"
7490 #ifndef __cplusplus
7491 static $ac_kw int static_foo () {return 0; }
7492 $ac_kw int foo () {return 0; }
7493 #endif
7494
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498   (eval $ac_compile) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); } &&
7502          { ac_try='test -s conftest.$ac_objext'
7503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504   (eval $ac_try) 2>&5
7505   ac_status=$?
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); }; }; then
7508   ac_cv_c_inline=$ac_kw; break
7509 else
7510   echo "$as_me: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7512 fi
7513 rm -f conftest.$ac_objext conftest.$ac_ext
7514 done
7515
7516 fi
7517 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7518 echo "${ECHO_T}$ac_cv_c_inline" >&6
7519 case $ac_cv_c_inline in
7520   inline | yes) ;;
7521   no)
7522 cat >>confdefs.h <<\_ACEOF
7523 #define inline
7524 _ACEOF
7525  ;;
7526   *)  cat >>confdefs.h <<_ACEOF
7527 #define inline $ac_cv_c_inline
7528 _ACEOF
7529  ;;
7530 esac
7531
7532 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7533 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7534 if test "${ac_cv_c_bigendian+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   # See if sys/param.h defines the BYTE_ORDER macro.
7538 cat >conftest.$ac_ext <<_ACEOF
7539 #line $LINENO "configure"
7540 #include "confdefs.h"
7541 #include <sys/types.h>
7542 #include <sys/param.h>
7543
7544 #ifdef F77_DUMMY_MAIN
7545 #  ifdef __cplusplus
7546      extern "C"
7547 #  endif
7548    int F77_DUMMY_MAIN() { return 1; }
7549 #endif
7550 int
7551 main ()
7552 {
7553 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7554  bogus endian macros
7555 #endif
7556
7557   ;
7558   return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563   (eval $ac_compile) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } &&
7567          { ac_try='test -s conftest.$ac_objext'
7568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569   (eval $ac_try) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; }; then
7573   # It does; now see whether it defined to BIG_ENDIAN or not.
7574 cat >conftest.$ac_ext <<_ACEOF
7575 #line $LINENO "configure"
7576 #include "confdefs.h"
7577 #include <sys/types.h>
7578 #include <sys/param.h>
7579
7580 #ifdef F77_DUMMY_MAIN
7581 #  ifdef __cplusplus
7582      extern "C"
7583 #  endif
7584    int F77_DUMMY_MAIN() { return 1; }
7585 #endif
7586 int
7587 main ()
7588 {
7589 #if BYTE_ORDER != BIG_ENDIAN
7590  not big endian
7591 #endif
7592
7593   ;
7594   return 0;
7595 }
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599   (eval $ac_compile) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); } &&
7603          { ac_try='test -s conftest.$ac_objext'
7604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605   (eval $ac_try) 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; }; then
7609   ac_cv_c_bigendian=yes
7610 else
7611   echo "$as_me: failed program was:" >&5
7612 cat conftest.$ac_ext >&5
7613 ac_cv_c_bigendian=no
7614 fi
7615 rm -f conftest.$ac_objext conftest.$ac_ext
7616 else
7617   echo "$as_me: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 # It does not; compile a test program.
7620 if test "$cross_compiling" = yes; then
7621   # try to guess the endianess by grep'ing values into an object file
7622   ac_cv_c_bigendian=unknown
7623   cat >conftest.$ac_ext <<_ACEOF
7624 #line $LINENO "configure"
7625 #include "confdefs.h"
7626 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7627 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7628 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7629 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7630 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7631 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7632 #ifdef F77_DUMMY_MAIN
7633 #  ifdef __cplusplus
7634      extern "C"
7635 #  endif
7636    int F77_DUMMY_MAIN() { return 1; }
7637 #endif
7638 int
7639 main ()
7640 {
7641  _ascii (); _ebcdic ();
7642   ;
7643   return 0;
7644 }
7645 _ACEOF
7646 rm -f conftest.$ac_objext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648   (eval $ac_compile) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); } &&
7652          { ac_try='test -s conftest.$ac_objext'
7653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654   (eval $ac_try) 2>&5
7655   ac_status=$?
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); }; }; then
7658   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7659   ac_cv_c_bigendian=yes
7660 fi
7661 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7662   if test "$ac_cv_c_bigendian" = unknown; then
7663     ac_cv_c_bigendian=no
7664   else
7665     # finding both strings is unlikely to happen, but who knows?
7666     ac_cv_c_bigendian=unknown
7667   fi
7668 fi
7669 else
7670   echo "$as_me: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7672 fi
7673 rm -f conftest.$ac_objext conftest.$ac_ext
7674 else
7675   cat >conftest.$ac_ext <<_ACEOF
7676 #line $LINENO "configure"
7677 #include "confdefs.h"
7678 int
7679 main ()
7680 {
7681   /* Are we little or big endian?  From Harbison&Steele.  */
7682   union
7683   {
7684     long l;
7685     char c[sizeof (long)];
7686   } u;
7687   u.l = 1;
7688   exit (u.c[sizeof (long) - 1] == 1);
7689 }
7690 _ACEOF
7691 rm -f conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693   (eval $ac_link) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; }; then
7702   ac_cv_c_bigendian=no
7703 else
7704   echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 ( exit $ac_status )
7708 ac_cv_c_bigendian=yes
7709 fi
7710 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7711 fi
7712 fi
7713 rm -f conftest.$ac_objext conftest.$ac_ext
7714 fi
7715 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7716 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7717 case $ac_cv_c_bigendian in
7718   yes)
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define WORDS_BIGENDIAN 1
7722 _ACEOF
7723  ;;
7724   no)
7725      ;;
7726   *)
7727     { { echo "$as_me:$LINENO: error: unknown endianess
7728 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7729 echo "$as_me: error: unknown endianess
7730 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7731    { (exit 1); exit 1; }; } ;;
7732 esac
7733
7734
7735 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7736 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7737 if test "${ac_cv_c_char_unsigned+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   cat >conftest.$ac_ext <<_ACEOF
7741 #line $LINENO "configure"
7742 #include "confdefs.h"
7743 $ac_includes_default
7744 #ifdef F77_DUMMY_MAIN
7745 #  ifdef __cplusplus
7746      extern "C"
7747 #  endif
7748    int F77_DUMMY_MAIN() { return 1; }
7749 #endif
7750 int
7751 main ()
7752 {
7753 static int test_array [1 - 2 * !(((char) -1) < 0)];
7754 test_array [0] = 0
7755
7756   ;
7757   return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762   (eval $ac_compile) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } &&
7766          { ac_try='test -s conftest.$ac_objext'
7767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768   (eval $ac_try) 2>&5
7769   ac_status=$?
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); }; }; then
7772   ac_cv_c_char_unsigned=no
7773 else
7774   echo "$as_me: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 ac_cv_c_char_unsigned=yes
7777 fi
7778 rm -f conftest.$ac_objext conftest.$ac_ext
7779 fi
7780 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7781 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7782 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7783   cat >>confdefs.h <<\_ACEOF
7784 #define __CHAR_UNSIGNED__ 1
7785 _ACEOF
7786
7787 fi
7788
7789
7790 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7791 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7792 if test "${ac_cv_type_signal+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   cat >conftest.$ac_ext <<_ACEOF
7796 #line $LINENO "configure"
7797 #include "confdefs.h"
7798 #include <sys/types.h>
7799 #include <signal.h>
7800 #ifdef signal
7801 # undef signal
7802 #endif
7803 #ifdef __cplusplus
7804 extern "C" void (*signal (int, void (*)(int)))(int);
7805 #else
7806 void (*signal ()) ();
7807 #endif
7808
7809 #ifdef F77_DUMMY_MAIN
7810 #  ifdef __cplusplus
7811      extern "C"
7812 #  endif
7813    int F77_DUMMY_MAIN() { return 1; }
7814 #endif
7815 int
7816 main ()
7817 {
7818 int i;
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825   (eval $ac_compile) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -s conftest.$ac_objext'
7830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }; }; then
7835   ac_cv_type_signal=void
7836 else
7837   echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_cv_type_signal=int
7840 fi
7841 rm -f conftest.$ac_objext conftest.$ac_ext
7842 fi
7843 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7844 echo "${ECHO_T}$ac_cv_type_signal" >&6
7845
7846 cat >>confdefs.h <<_ACEOF
7847 #define RETSIGTYPE $ac_cv_type_signal
7848 _ACEOF
7849
7850
7851 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7852 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7853 if test "${ac_cv_type_uid_t+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   cat >conftest.$ac_ext <<_ACEOF
7857 #line $LINENO "configure"
7858 #include "confdefs.h"
7859 #include <sys/types.h>
7860
7861 _ACEOF
7862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7863   egrep "uid_t" >/dev/null 2>&1; then
7864   ac_cv_type_uid_t=yes
7865 else
7866   ac_cv_type_uid_t=no
7867 fi
7868 rm -f conftest*
7869
7870 fi
7871 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7872 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7873 if test $ac_cv_type_uid_t = no; then
7874
7875 cat >>confdefs.h <<\_ACEOF
7876 #define uid_t int
7877 _ACEOF
7878
7879
7880 cat >>confdefs.h <<\_ACEOF
7881 #define gid_t int
7882 _ACEOF
7883
7884 fi
7885
7886 echo "$as_me:$LINENO: checking for mode_t" >&5
7887 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7888 if test "${ac_cv_type_mode_t+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891   cat >conftest.$ac_ext <<_ACEOF
7892 #line $LINENO "configure"
7893 #include "confdefs.h"
7894 $ac_includes_default
7895 #ifdef F77_DUMMY_MAIN
7896 #  ifdef __cplusplus
7897      extern "C"
7898 #  endif
7899    int F77_DUMMY_MAIN() { return 1; }
7900 #endif
7901 int
7902 main ()
7903 {
7904 if ((mode_t *) 0)
7905   return 0;
7906 if (sizeof (mode_t))
7907   return 0;
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7914   (eval $ac_compile) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } &&
7918          { ac_try='test -s conftest.$ac_objext'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; }; then
7924   ac_cv_type_mode_t=yes
7925 else
7926   echo "$as_me: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7928 ac_cv_type_mode_t=no
7929 fi
7930 rm -f conftest.$ac_objext conftest.$ac_ext
7931 fi
7932 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7933 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7934 if test $ac_cv_type_mode_t = yes; then
7935   :
7936 else
7937
7938 cat >>confdefs.h <<_ACEOF
7939 #define mode_t int
7940 _ACEOF
7941
7942 fi
7943
7944 echo "$as_me:$LINENO: checking for off_t" >&5
7945 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7946 if test "${ac_cv_type_off_t+set}" = set; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   cat >conftest.$ac_ext <<_ACEOF
7950 #line $LINENO "configure"
7951 #include "confdefs.h"
7952 $ac_includes_default
7953 #ifdef F77_DUMMY_MAIN
7954 #  ifdef __cplusplus
7955      extern "C"
7956 #  endif
7957    int F77_DUMMY_MAIN() { return 1; }
7958 #endif
7959 int
7960 main ()
7961 {
7962 if ((off_t *) 0)
7963   return 0;
7964 if (sizeof (off_t))
7965   return 0;
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972   (eval $ac_compile) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } &&
7976          { ac_try='test -s conftest.$ac_objext'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; }; then
7982   ac_cv_type_off_t=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 ac_cv_type_off_t=no
7987 fi
7988 rm -f conftest.$ac_objext conftest.$ac_ext
7989 fi
7990 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7991 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7992 if test $ac_cv_type_off_t = yes; then
7993   :
7994 else
7995
7996 cat >>confdefs.h <<_ACEOF
7997 #define off_t long
7998 _ACEOF
7999
8000 fi
8001
8002 echo "$as_me:$LINENO: checking for size_t" >&5
8003 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8004 if test "${ac_cv_type_size_t+set}" = set; then
8005   echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007   cat >conftest.$ac_ext <<_ACEOF
8008 #line $LINENO "configure"
8009 #include "confdefs.h"
8010 $ac_includes_default
8011 #ifdef F77_DUMMY_MAIN
8012 #  ifdef __cplusplus
8013      extern "C"
8014 #  endif
8015    int F77_DUMMY_MAIN() { return 1; }
8016 #endif
8017 int
8018 main ()
8019 {
8020 if ((size_t *) 0)
8021   return 0;
8022 if (sizeof (size_t))
8023   return 0;
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8030   (eval $ac_compile) 2>&5
8031   ac_status=$?
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -s conftest.$ac_objext'
8035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; }; then
8040   ac_cv_type_size_t=yes
8041 else
8042   echo "$as_me: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8044 ac_cv_type_size_t=no
8045 fi
8046 rm -f conftest.$ac_objext conftest.$ac_ext
8047 fi
8048 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8049 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8050 if test $ac_cv_type_size_t = yes; then
8051   :
8052 else
8053
8054 cat >>confdefs.h <<_ACEOF
8055 #define size_t unsigned
8056 _ACEOF
8057
8058 fi
8059
8060 echo "$as_me:$LINENO: checking for pid_t" >&5
8061 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8062 if test "${ac_cv_type_pid_t+set}" = set; then
8063   echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065   cat >conftest.$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8067 #include "confdefs.h"
8068 $ac_includes_default
8069 #ifdef F77_DUMMY_MAIN
8070 #  ifdef __cplusplus
8071      extern "C"
8072 #  endif
8073    int F77_DUMMY_MAIN() { return 1; }
8074 #endif
8075 int
8076 main ()
8077 {
8078 if ((pid_t *) 0)
8079   return 0;
8080 if (sizeof (pid_t))
8081   return 0;
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8088   (eval $ac_compile) 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } &&
8092          { ac_try='test -s conftest.$ac_objext'
8093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094   (eval $ac_try) 2>&5
8095   ac_status=$?
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); }; }; then
8098   ac_cv_type_pid_t=yes
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8102 ac_cv_type_pid_t=no
8103 fi
8104 rm -f conftest.$ac_objext conftest.$ac_ext
8105 fi
8106 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8107 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8108 if test $ac_cv_type_pid_t = yes; then
8109   :
8110 else
8111
8112 cat >>confdefs.h <<_ACEOF
8113 #define pid_t int
8114 _ACEOF
8115
8116 fi
8117
8118
8119 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8120 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
8121 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8122   echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124   cat >conftest.$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 #include "confdefs.h"
8127 $ac_includes_default
8128 #ifdef F77_DUMMY_MAIN
8129 #  ifdef __cplusplus
8130      extern "C"
8131 #  endif
8132    int F77_DUMMY_MAIN() { return 1; }
8133 #endif
8134 int
8135 main ()
8136 {
8137 static struct stat ac_aggr;
8138 if (ac_aggr.st_rdev)
8139 return 0;
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146   (eval $ac_compile) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); } &&
8150          { ac_try='test -s conftest.$ac_objext'
8151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152   (eval $ac_try) 2>&5
8153   ac_status=$?
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); }; }; then
8156   ac_cv_member_struct_stat_st_rdev=yes
8157 else
8158   echo "$as_me: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8160 ac_cv_member_struct_stat_st_rdev=no
8161 fi
8162 rm -f conftest.$ac_objext conftest.$ac_ext
8163 fi
8164 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8165 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
8166 if test $ac_cv_member_struct_stat_st_rdev = yes; then
8167
8168 cat >>confdefs.h <<_ACEOF
8169 #define HAVE_STRUCT_STAT_ST_RDEV 1
8170 _ACEOF
8171
8172
8173 cat >>confdefs.h <<\_ACEOF
8174 #define HAVE_ST_RDEV 1
8175 _ACEOF
8176
8177 fi
8178
8179
8180 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
8181 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
8182 if test "${ac_cv_dirent_d_off+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 #include "confdefs.h"
8188
8189 #include <unistd.h>
8190 #include <sys/types.h>
8191 #include <dirent.h>
8192 #ifdef F77_DUMMY_MAIN
8193 #  ifdef __cplusplus
8194      extern "C"
8195 #  endif
8196    int F77_DUMMY_MAIN() { return 1; }
8197 #endif
8198 int
8199 main ()
8200 {
8201 struct dirent d; d.d_off;
8202   ;
8203   return 0;
8204 }
8205 _ACEOF
8206 rm -f conftest.$ac_objext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208   (eval $ac_compile) 2>&5
8209   ac_status=$?
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } &&
8212          { ac_try='test -s conftest.$ac_objext'
8213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214   (eval $ac_try) 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; }; then
8218   ac_cv_dirent_d_off=yes
8219 else
8220   echo "$as_me: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8222 ac_cv_dirent_d_off=no
8223 fi
8224 rm -f conftest.$ac_objext conftest.$ac_ext
8225 fi
8226 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
8227 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
8228 if test $ac_cv_dirent_d_off = yes; then
8229
8230 cat >>confdefs.h <<\_ACEOF
8231 #define HAVE_DIRENT_D_OFF 1
8232 _ACEOF
8233
8234 fi
8235
8236 echo "$as_me:$LINENO: checking for ino_t" >&5
8237 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
8238 if test "${ac_cv_type_ino_t+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 #include "confdefs.h"
8244 $ac_includes_default
8245 #ifdef F77_DUMMY_MAIN
8246 #  ifdef __cplusplus
8247      extern "C"
8248 #  endif
8249    int F77_DUMMY_MAIN() { return 1; }
8250 #endif
8251 int
8252 main ()
8253 {
8254 if ((ino_t *) 0)
8255   return 0;
8256 if (sizeof (ino_t))
8257   return 0;
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8264   (eval $ac_compile) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } &&
8268          { ac_try='test -s conftest.$ac_objext'
8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270   (eval $ac_try) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; }; then
8274   ac_cv_type_ino_t=yes
8275 else
8276   echo "$as_me: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8278 ac_cv_type_ino_t=no
8279 fi
8280 rm -f conftest.$ac_objext conftest.$ac_ext
8281 fi
8282 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8283 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
8284 if test $ac_cv_type_ino_t = yes; then
8285   :
8286 else
8287
8288 cat >>confdefs.h <<_ACEOF
8289 #define ino_t unsigned
8290 _ACEOF
8291
8292 fi
8293
8294 echo "$as_me:$LINENO: checking for loff_t" >&5
8295 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8296 if test "${ac_cv_type_loff_t+set}" = set; then
8297   echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299   cat >conftest.$ac_ext <<_ACEOF
8300 #line $LINENO "configure"
8301 #include "confdefs.h"
8302 $ac_includes_default
8303 #ifdef F77_DUMMY_MAIN
8304 #  ifdef __cplusplus
8305      extern "C"
8306 #  endif
8307    int F77_DUMMY_MAIN() { return 1; }
8308 #endif
8309 int
8310 main ()
8311 {
8312 if ((loff_t *) 0)
8313   return 0;
8314 if (sizeof (loff_t))
8315   return 0;
8316   ;
8317   return 0;
8318 }
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322   (eval $ac_compile) 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } &&
8326          { ac_try='test -s conftest.$ac_objext'
8327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328   (eval $ac_try) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; }; then
8332   ac_cv_type_loff_t=yes
8333 else
8334   echo "$as_me: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 ac_cv_type_loff_t=no
8337 fi
8338 rm -f conftest.$ac_objext conftest.$ac_ext
8339 fi
8340 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8341 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8342 if test $ac_cv_type_loff_t = yes; then
8343   :
8344 else
8345
8346 cat >>confdefs.h <<_ACEOF
8347 #define loff_t off_t
8348 _ACEOF
8349
8350 fi
8351
8352 echo "$as_me:$LINENO: checking for offset_t" >&5
8353 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8354 if test "${ac_cv_type_offset_t+set}" = set; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8360 $ac_includes_default
8361 #ifdef F77_DUMMY_MAIN
8362 #  ifdef __cplusplus
8363      extern "C"
8364 #  endif
8365    int F77_DUMMY_MAIN() { return 1; }
8366 #endif
8367 int
8368 main ()
8369 {
8370 if ((offset_t *) 0)
8371   return 0;
8372 if (sizeof (offset_t))
8373   return 0;
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380   (eval $ac_compile) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } &&
8384          { ac_try='test -s conftest.$ac_objext'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; }; then
8390   ac_cv_type_offset_t=yes
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8394 ac_cv_type_offset_t=no
8395 fi
8396 rm -f conftest.$ac_objext conftest.$ac_ext
8397 fi
8398 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8399 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8400 if test $ac_cv_type_offset_t = yes; then
8401   :
8402 else
8403
8404 cat >>confdefs.h <<_ACEOF
8405 #define offset_t loff_t
8406 _ACEOF
8407
8408 fi
8409
8410 echo "$as_me:$LINENO: checking for ssize_t" >&5
8411 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8412 if test "${ac_cv_type_ssize_t+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   cat >conftest.$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8417 #include "confdefs.h"
8418 $ac_includes_default
8419 #ifdef F77_DUMMY_MAIN
8420 #  ifdef __cplusplus
8421      extern "C"
8422 #  endif
8423    int F77_DUMMY_MAIN() { return 1; }
8424 #endif
8425 int
8426 main ()
8427 {
8428 if ((ssize_t *) 0)
8429   return 0;
8430 if (sizeof (ssize_t))
8431   return 0;
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 rm -f conftest.$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438   (eval $ac_compile) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); } &&
8442          { ac_try='test -s conftest.$ac_objext'
8443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444   (eval $ac_try) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; }; then
8448   ac_cv_type_ssize_t=yes
8449 else
8450   echo "$as_me: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8452 ac_cv_type_ssize_t=no
8453 fi
8454 rm -f conftest.$ac_objext conftest.$ac_ext
8455 fi
8456 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8457 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8458 if test $ac_cv_type_ssize_t = yes; then
8459   :
8460 else
8461
8462 cat >>confdefs.h <<_ACEOF
8463 #define ssize_t int
8464 _ACEOF
8465
8466 fi
8467
8468 echo "$as_me:$LINENO: checking for wchar_t" >&5
8469 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8470 if test "${ac_cv_type_wchar_t+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   cat >conftest.$ac_ext <<_ACEOF
8474 #line $LINENO "configure"
8475 #include "confdefs.h"
8476 $ac_includes_default
8477 #ifdef F77_DUMMY_MAIN
8478 #  ifdef __cplusplus
8479      extern "C"
8480 #  endif
8481    int F77_DUMMY_MAIN() { return 1; }
8482 #endif
8483 int
8484 main ()
8485 {
8486 if ((wchar_t *) 0)
8487   return 0;
8488 if (sizeof (wchar_t))
8489   return 0;
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496   (eval $ac_compile) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -s conftest.$ac_objext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_cv_type_wchar_t=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8510 ac_cv_type_wchar_t=no
8511 fi
8512 rm -f conftest.$ac_objext conftest.$ac_ext
8513 fi
8514 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8515 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8516 if test $ac_cv_type_wchar_t = yes; then
8517   :
8518 else
8519
8520 cat >>confdefs.h <<_ACEOF
8521 #define wchar_t unsigned short
8522 _ACEOF
8523
8524 fi
8525
8526
8527 ############################################
8528 # for cups support we need libcups, and a handful of header files
8529
8530 # Check whether --enable-cups or --disable-cups was given.
8531 if test "${enable_cups+set}" = set; then
8532   enableval="$enable_cups"
8533
8534 fi;
8535
8536 if test x$enable_cups != xno; then
8537         # Extract the first word of "cups-config", so it can be a program name with args.
8538 set dummy cups-config; ac_word=$2
8539 echo "$as_me:$LINENO: checking for $ac_word" >&5
8540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8541 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   case $CUPS_CONFIG in
8545   [\\/]* | ?:[\\/]*)
8546   ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8547   ;;
8548   *)
8549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552   IFS=$as_save_IFS
8553   test -z "$as_dir" && as_dir=.
8554   for ac_exec_ext in '' $ac_executable_extensions; do
8555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556     ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558     break 2
8559   fi
8560 done
8561 done
8562
8563   ;;
8564 esac
8565 fi
8566 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8567
8568 if test -n "$CUPS_CONFIG"; then
8569   echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8570 echo "${ECHO_T}$CUPS_CONFIG" >&6
8571 else
8572   echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6
8574 fi
8575
8576
8577         if test "x$CUPS_CONFIG" != x; then
8578
8579 cat >>confdefs.h <<\_ACEOF
8580 #define HAVE_CUPS 1
8581 _ACEOF
8582
8583                 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8584                 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8585                 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8586         fi
8587 fi
8588
8589 ############################################
8590 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8591
8592 for ac_func in dlopen
8593 do
8594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8595 echo "$as_me:$LINENO: checking for $ac_func" >&5
8596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8597 if eval "test \"\${$as_ac_var+set}\" = set"; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600   cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8602 #include "confdefs.h"
8603 /* System header to define __stub macros and hopefully few prototypes,
8604     which can conflict with char $ac_func (); below.  */
8605 #include <assert.h>
8606 /* Override any gcc2 internal prototype to avoid an error.  */
8607 #ifdef __cplusplus
8608 extern "C"
8609 #endif
8610 /* We use char because int might match the return type of a gcc2
8611    builtin and then its argument prototype would still apply.  */
8612 char $ac_func ();
8613 char (*f) ();
8614
8615 #ifdef F77_DUMMY_MAIN
8616 #  ifdef __cplusplus
8617      extern "C"
8618 #  endif
8619    int F77_DUMMY_MAIN() { return 1; }
8620 #endif
8621 int
8622 main ()
8623 {
8624 /* The GNU C library defines this for functions which it implements
8625     to always fail with ENOSYS.  Some functions are actually named
8626     something starting with __ and the normal name is an alias.  */
8627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8628 choke me
8629 #else
8630 f = $ac_func;
8631 #endif
8632
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639   (eval $ac_link) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -s conftest$ac_exeext'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; }; then
8649   eval "$as_ac_var=yes"
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8653 eval "$as_ac_var=no"
8654 fi
8655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8656 fi
8657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8659 if test `eval echo '${'$as_ac_var'}'` = yes; then
8660   cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8662 _ACEOF
8663
8664 fi
8665 done
8666
8667 if test x"$ac_cv_func_dlopen" = x"no"; then
8668     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   ac_check_lib_save_LIBS=$LIBS
8674 LIBS="-ldl  $LIBS"
8675 cat >conftest.$ac_ext <<_ACEOF
8676 #line $LINENO "configure"
8677 #include "confdefs.h"
8678
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 /* We use char because int might match the return type of a gcc2
8684    builtin and then its argument prototype would still apply.  */
8685 char dlopen ();
8686 #ifdef F77_DUMMY_MAIN
8687 #  ifdef __cplusplus
8688      extern "C"
8689 #  endif
8690    int F77_DUMMY_MAIN() { return 1; }
8691 #endif
8692 int
8693 main ()
8694 {
8695 dlopen ();
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702   (eval $ac_link) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -s conftest$ac_exeext'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_cv_lib_dl_dlopen=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 ac_cv_lib_dl_dlopen=no
8717 fi
8718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8719 LIBS=$ac_check_lib_save_LIBS
8720 fi
8721 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8723 if test $ac_cv_lib_dl_dlopen = yes; then
8724   LIBS="$LIBS -ldl";
8725
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_DLOPEN 1
8728 _ACEOF
8729
8730 fi
8731
8732 fi
8733 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8734
8735 ############################################
8736 # check if the compiler can do immediate structures
8737 echo "$as_me:$LINENO: checking for immediate structures" >&5
8738 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8739 if test "${samba_cv_immediate_structures+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742
8743     cat >conftest.$ac_ext <<_ACEOF
8744 #line $LINENO "configure"
8745 #include "confdefs.h"
8746
8747 #include <stdio.h>
8748 #ifdef F77_DUMMY_MAIN
8749 #  ifdef __cplusplus
8750      extern "C"
8751 #  endif
8752    int F77_DUMMY_MAIN() { return 1; }
8753 #endif
8754 int
8755 main ()
8756 {
8757
8758    typedef struct {unsigned x;} FOOBAR;
8759    #define X_FOOBAR(x) ((FOOBAR) { x })
8760    #define FOO_ONE X_FOOBAR(1)
8761    FOOBAR f = FOO_ONE;
8762    static struct {
8763         FOOBAR y;
8764         } f2[] = {
8765                 {FOO_ONE}
8766         };
8767
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8774   (eval $ac_compile) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } &&
8778          { ac_try='test -s conftest.$ac_objext'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; }; then
8784   samba_cv_immediate_structures=yes
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8788 samba_cv_immediate_structures=no
8789 fi
8790 rm -f conftest.$ac_objext conftest.$ac_ext
8791 fi
8792 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8793 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8794 if test x"$samba_cv_immediate_structures" = x"yes"; then
8795
8796 cat >>confdefs.h <<\_ACEOF
8797 #define HAVE_IMMEDIATE_STRUCTURES 1
8798 _ACEOF
8799
8800 fi
8801
8802 ############################################
8803 # check for unix domain sockets
8804 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8805 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8806 if test "${samba_cv_unixsocket+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809
8810     cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8813
8814 #include <sys/types.h>
8815 #include <stdlib.h>
8816 #include <stddef.h>
8817 #include <sys/socket.h>
8818 #include <sys/un.h>
8819 #ifdef F77_DUMMY_MAIN
8820 #  ifdef __cplusplus
8821      extern "C"
8822 #  endif
8823    int F77_DUMMY_MAIN() { return 1; }
8824 #endif
8825 int
8826 main ()
8827 {
8828
8829   struct sockaddr_un sunaddr;
8830   sunaddr.sun_family = AF_UNIX;
8831
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 rm -f conftest.$ac_objext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838   (eval $ac_compile) 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); } &&
8842          { ac_try='test -s conftest.$ac_objext'
8843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844   (eval $ac_try) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; }; then
8848   samba_cv_unixsocket=yes
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8852 samba_cv_unixsocket=no
8853 fi
8854 rm -f conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8857 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8858 if test x"$samba_cv_unixsocket" = x"yes"; then
8859
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_UNIXSOCKET 1
8862 _ACEOF
8863
8864 fi
8865
8866
8867 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8868 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8869 if test "${samba_cv_socklen_t+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872
8873     cat >conftest.$ac_ext <<_ACEOF
8874 #line $LINENO "configure"
8875 #include "confdefs.h"
8876
8877 #include <sys/types.h>
8878 #if STDC_HEADERS
8879 #include <stdlib.h>
8880 #include <stddef.h>
8881 #endif
8882 #include <sys/socket.h>
8883 #ifdef F77_DUMMY_MAIN
8884 #  ifdef __cplusplus
8885      extern "C"
8886 #  endif
8887    int F77_DUMMY_MAIN() { return 1; }
8888 #endif
8889 int
8890 main ()
8891 {
8892 socklen_t i = 0
8893   ;
8894   return 0;
8895 }
8896 _ACEOF
8897 rm -f conftest.$ac_objext
8898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8899   (eval $ac_compile) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -s conftest.$ac_objext'
8904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905   (eval $ac_try) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; }; then
8909   samba_cv_socklen_t=yes
8910 else
8911   echo "$as_me: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 samba_cv_socklen_t=no
8914 fi
8915 rm -f conftest.$ac_objext conftest.$ac_ext
8916 fi
8917 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8918 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8919 if test x"$samba_cv_socklen_t" = x"yes"; then
8920
8921 cat >>confdefs.h <<\_ACEOF
8922 #define HAVE_SOCKLEN_T_TYPE 1
8923 _ACEOF
8924
8925 fi
8926
8927 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8928 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8929 if test "${samba_cv_sig_atomic_t+set}" = set; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932
8933     cat >conftest.$ac_ext <<_ACEOF
8934 #line $LINENO "configure"
8935 #include "confdefs.h"
8936
8937 #include <sys/types.h>
8938 #if STDC_HEADERS
8939 #include <stdlib.h>
8940 #include <stddef.h>
8941 #endif
8942 #include <signal.h>
8943 #ifdef F77_DUMMY_MAIN
8944 #  ifdef __cplusplus
8945      extern "C"
8946 #  endif
8947    int F77_DUMMY_MAIN() { return 1; }
8948 #endif
8949 int
8950 main ()
8951 {
8952 sig_atomic_t i = 0
8953   ;
8954   return 0;
8955 }
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959   (eval $ac_compile) 2>&5
8960   ac_status=$?
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } &&
8963          { ac_try='test -s conftest.$ac_objext'
8964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965   (eval $ac_try) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); }; }; then
8969   samba_cv_sig_atomic_t=yes
8970 else
8971   echo "$as_me: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 samba_cv_sig_atomic_t=no
8974 fi
8975 rm -f conftest.$ac_objext conftest.$ac_ext
8976 fi
8977 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8978 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8979 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8980
8981 cat >>confdefs.h <<\_ACEOF
8982 #define HAVE_SIG_ATOMIC_T_TYPE 1
8983 _ACEOF
8984
8985 fi
8986
8987 # stupid headers have the functions but no declaration. grrrr.
8988
8989  echo "$as_me:$LINENO: checking for errno declaration" >&5
8990 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8991 if test "${ac_cv_have_errno_decl+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994
8995     cat >conftest.$ac_ext <<_ACEOF
8996 #line $LINENO "configure"
8997 #include "confdefs.h"
8998 #include <errno.h>
8999 #ifdef F77_DUMMY_MAIN
9000 #  ifdef __cplusplus
9001      extern "C"
9002 #  endif
9003    int F77_DUMMY_MAIN() { return 1; }
9004 #endif
9005 int
9006 main ()
9007 {
9008 int i = (int)errno
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015   (eval $ac_compile) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); } &&
9019          { ac_try='test -s conftest.$ac_objext'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   ac_cv_have_errno_decl=yes
9026 else
9027   echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 ac_cv_have_errno_decl=no
9030 fi
9031 rm -f conftest.$ac_objext conftest.$ac_ext
9032 fi
9033 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
9034 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
9035  if test x"$ac_cv_have_errno_decl" = x"yes"; then
9036
9037 cat >>confdefs.h <<\_ACEOF
9038 #define HAVE_ERRNO_DECL 1
9039 _ACEOF
9040
9041  fi
9042
9043
9044  echo "$as_me:$LINENO: checking for setresuid declaration" >&5
9045 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
9046 if test "${ac_cv_have_setresuid_decl+set}" = set; then
9047   echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049
9050     cat >conftest.$ac_ext <<_ACEOF
9051 #line $LINENO "configure"
9052 #include "confdefs.h"
9053 #include <unistd.h>
9054 #ifdef F77_DUMMY_MAIN
9055 #  ifdef __cplusplus
9056      extern "C"
9057 #  endif
9058    int F77_DUMMY_MAIN() { return 1; }
9059 #endif
9060 int
9061 main ()
9062 {
9063 int i = (int)setresuid
9064   ;
9065   return 0;
9066 }
9067 _ACEOF
9068 rm -f conftest.$ac_objext
9069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070   (eval $ac_compile) 2>&5
9071   ac_status=$?
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); } &&
9074          { ac_try='test -s conftest.$ac_objext'
9075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076   (eval $ac_try) 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); }; }; then
9080   ac_cv_have_setresuid_decl=yes
9081 else
9082   echo "$as_me: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9084 ac_cv_have_setresuid_decl=no
9085 fi
9086 rm -f conftest.$ac_objext conftest.$ac_ext
9087 fi
9088 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
9089 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
9090  if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
9091
9092 cat >>confdefs.h <<\_ACEOF
9093 #define HAVE_SETRESUID_DECL 1
9094 _ACEOF
9095
9096  fi
9097
9098
9099  echo "$as_me:$LINENO: checking for setresgid declaration" >&5
9100 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
9101 if test "${ac_cv_have_setresgid_decl+set}" = set; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104
9105     cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 #include "confdefs.h"
9108 #include <unistd.h>
9109 #ifdef F77_DUMMY_MAIN
9110 #  ifdef __cplusplus
9111      extern "C"
9112 #  endif
9113    int F77_DUMMY_MAIN() { return 1; }
9114 #endif
9115 int
9116 main ()
9117 {
9118 int i = (int)setresgid
9119   ;
9120   return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125   (eval $ac_compile) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); } &&
9129          { ac_try='test -s conftest.$ac_objext'
9130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131   (eval $ac_try) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; }; then
9135   ac_cv_have_setresgid_decl=yes
9136 else
9137   echo "$as_me: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 ac_cv_have_setresgid_decl=no
9140 fi
9141 rm -f conftest.$ac_objext conftest.$ac_ext
9142 fi
9143 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
9144 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
9145  if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
9146
9147 cat >>confdefs.h <<\_ACEOF
9148 #define HAVE_SETRESGID_DECL 1
9149 _ACEOF
9150
9151  fi
9152
9153
9154  echo "$as_me:$LINENO: checking for asprintf declaration" >&5
9155 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
9156 if test "${ac_cv_have_asprintf_decl+set}" = set; then
9157   echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159
9160     cat >conftest.$ac_ext <<_ACEOF
9161 #line $LINENO "configure"
9162 #include "confdefs.h"
9163 #include <stdio.h>
9164 #ifdef F77_DUMMY_MAIN
9165 #  ifdef __cplusplus
9166      extern "C"
9167 #  endif
9168    int F77_DUMMY_MAIN() { return 1; }
9169 #endif
9170 int
9171 main ()
9172 {
9173 int i = (int)asprintf
9174   ;
9175   return 0;
9176 }
9177 _ACEOF
9178 rm -f conftest.$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180   (eval $ac_compile) 2>&5
9181   ac_status=$?
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); } &&
9184          { ac_try='test -s conftest.$ac_objext'
9185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186   (eval $ac_try) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); }; }; then
9190   ac_cv_have_asprintf_decl=yes
9191 else
9192   echo "$as_me: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9194 ac_cv_have_asprintf_decl=no
9195 fi
9196 rm -f conftest.$ac_objext conftest.$ac_ext
9197 fi
9198 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
9199 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
9200  if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
9201
9202 cat >>confdefs.h <<\_ACEOF
9203 #define HAVE_ASPRINTF_DECL 1
9204 _ACEOF
9205
9206  fi
9207
9208
9209  echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
9210 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
9211 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214
9215     cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9217 #include "confdefs.h"
9218 #include <stdio.h>
9219 #ifdef F77_DUMMY_MAIN
9220 #  ifdef __cplusplus
9221      extern "C"
9222 #  endif
9223    int F77_DUMMY_MAIN() { return 1; }
9224 #endif
9225 int
9226 main ()
9227 {
9228 int i = (int)vasprintf
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235   (eval $ac_compile) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); } &&
9239          { ac_try='test -s conftest.$ac_objext'
9240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241   (eval $ac_try) 2>&5
9242   ac_status=$?
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); }; }; then
9245   ac_cv_have_vasprintf_decl=yes
9246 else
9247   echo "$as_me: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9249 ac_cv_have_vasprintf_decl=no
9250 fi
9251 rm -f conftest.$ac_objext conftest.$ac_ext
9252 fi
9253 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
9254 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
9255  if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
9256
9257 cat >>confdefs.h <<\_ACEOF
9258 #define HAVE_VASPRINTF_DECL 1
9259 _ACEOF
9260
9261  fi
9262
9263
9264  echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
9265 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
9266 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
9267   echo $ECHO_N "(cached) $ECHO_C" >&6
9268 else
9269
9270     cat >conftest.$ac_ext <<_ACEOF
9271 #line $LINENO "configure"
9272 #include "confdefs.h"
9273 #include <stdio.h>
9274 #ifdef F77_DUMMY_MAIN
9275 #  ifdef __cplusplus
9276      extern "C"
9277 #  endif
9278    int F77_DUMMY_MAIN() { return 1; }
9279 #endif
9280 int
9281 main ()
9282 {
9283 int i = (int)vsnprintf
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290   (eval $ac_compile) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); } &&
9294          { ac_try='test -s conftest.$ac_objext'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; }; then
9300   ac_cv_have_vsnprintf_decl=yes
9301 else
9302   echo "$as_me: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9304 ac_cv_have_vsnprintf_decl=no
9305 fi
9306 rm -f conftest.$ac_objext conftest.$ac_ext
9307 fi
9308 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
9309 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
9310  if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
9311
9312 cat >>confdefs.h <<\_ACEOF
9313 #define HAVE_VSNPRINTF_DECL 1
9314 _ACEOF
9315
9316  fi
9317
9318
9319  echo "$as_me:$LINENO: checking for snprintf declaration" >&5
9320 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
9321 if test "${ac_cv_have_snprintf_decl+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324
9325     cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9328 #include <stdio.h>
9329 #ifdef F77_DUMMY_MAIN
9330 #  ifdef __cplusplus
9331      extern "C"
9332 #  endif
9333    int F77_DUMMY_MAIN() { return 1; }
9334 #endif
9335 int
9336 main ()
9337 {
9338 int i = (int)snprintf
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345   (eval $ac_compile) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } &&
9349          { ac_try='test -s conftest.$ac_objext'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; }; then
9355   ac_cv_have_snprintf_decl=yes
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 ac_cv_have_snprintf_decl=no
9360 fi
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9362 fi
9363 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
9364 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
9365  if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
9366
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_SNPRINTF_DECL 1
9369 _ACEOF
9370
9371  fi
9372
9373
9374 # and glibc has setresuid under linux but the function does
9375 # nothing until kernel 2.1.44! very dumb.
9376 echo "$as_me:$LINENO: checking for real setresuid" >&5
9377 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
9378 if test "${samba_cv_have_setresuid+set}" = set; then
9379   echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381
9382     if test "$cross_compiling" = yes; then
9383   samba_cv_have_setresuid=cross
9384 else
9385   cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9387 #include "confdefs.h"
9388 #include <errno.h>
9389 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
9390 _ACEOF
9391 rm -f conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   samba_cv_have_setresuid=yes
9403 else
9404   echo "$as_me: program exited with status $ac_status" >&5
9405 echo "$as_me: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 ( exit $ac_status )
9408 samba_cv_have_setresuid=no
9409 fi
9410 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9411 fi
9412 fi
9413 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
9414 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
9415 if test x"$samba_cv_have_setresuid" = x"yes"; then
9416
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_SETRESUID 1
9419 _ACEOF
9420
9421 fi
9422
9423 # Do the same check for setresguid...
9424 #
9425 echo "$as_me:$LINENO: checking for real setresgid" >&5
9426 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
9427 if test "${samba_cv_have_setresgid+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430
9431     if test "$cross_compiling" = yes; then
9432   samba_cv_have_setresgid=cross
9433 else
9434   cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9436 #include "confdefs.h"
9437 #include <unistd.h>
9438 #include <errno.h>
9439 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
9440 _ACEOF
9441 rm -f conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443   (eval $ac_link) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448   (eval $ac_try) 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); }; }; then
9452   samba_cv_have_setresgid=yes
9453 else
9454   echo "$as_me: program exited with status $ac_status" >&5
9455 echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 ( exit $ac_status )
9458 samba_cv_have_setresgid=no
9459 fi
9460 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 fi
9463 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9464 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9465 if test x"$samba_cv_have_setresgid" = x"yes"; then
9466
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_SETRESGID 1
9469 _ACEOF
9470
9471 fi
9472
9473 echo "$as_me:$LINENO: checking for working memcmp" >&5
9474 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9475 if test "${ac_cv_func_memcmp_working+set}" = set; then
9476   echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478   if test "$cross_compiling" = yes; then
9479   ac_cv_func_memcmp_working=no
9480 else
9481   cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9483 #include "confdefs.h"
9484
9485 #ifdef F77_DUMMY_MAIN
9486 #  ifdef __cplusplus
9487      extern "C"
9488 #  endif
9489    int F77_DUMMY_MAIN() { return 1; }
9490 #endif
9491 int
9492 main ()
9493 {
9494
9495   /* Some versions of memcmp are not 8-bit clean.  */
9496   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9497   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9498     exit (1);
9499
9500   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9501      or more and with at least one buffer not starting on a 4-byte boundary.
9502      William Lewis provided this test program.   */
9503   {
9504     char foo[21];
9505     char bar[21];
9506     int i;
9507     for (i = 0; i < 4; i++)
9508       {
9509         char *a = foo + i;
9510         char *b = bar + i;
9511         strcpy (a, "--------01111111");
9512         strcpy (b, "--------10000000");
9513         if (memcmp (a, b, 16) >= 0)
9514           exit (1);
9515       }
9516     exit (0);
9517   }
9518
9519   ;
9520   return 0;
9521 }
9522 _ACEOF
9523 rm -f conftest$ac_exeext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525   (eval $ac_link) 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530   (eval $ac_try) 2>&5
9531   ac_status=$?
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); }; }; then
9534   ac_cv_func_memcmp_working=yes
9535 else
9536   echo "$as_me: program exited with status $ac_status" >&5
9537 echo "$as_me: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9539 ( exit $ac_status )
9540 ac_cv_func_memcmp_working=no
9541 fi
9542 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9543 fi
9544 fi
9545 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9546 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9547 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9548
9549
9550 ###############################################
9551 # test for where we get crypt() from
9552
9553 for ac_func in crypt
9554 do
9555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9556 echo "$as_me:$LINENO: checking for $ac_func" >&5
9557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9558 if eval "test \"\${$as_ac_var+set}\" = set"; then
9559   echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561   cat >conftest.$ac_ext <<_ACEOF
9562 #line $LINENO "configure"
9563 #include "confdefs.h"
9564 /* System header to define __stub macros and hopefully few prototypes,
9565     which can conflict with char $ac_func (); below.  */
9566 #include <assert.h>
9567 /* Override any gcc2 internal prototype to avoid an error.  */
9568 #ifdef __cplusplus
9569 extern "C"
9570 #endif
9571 /* We use char because int might match the return type of a gcc2
9572    builtin and then its argument prototype would still apply.  */
9573 char $ac_func ();
9574 char (*f) ();
9575
9576 #ifdef F77_DUMMY_MAIN
9577 #  ifdef __cplusplus
9578      extern "C"
9579 #  endif
9580    int F77_DUMMY_MAIN() { return 1; }
9581 #endif
9582 int
9583 main ()
9584 {
9585 /* The GNU C library defines this for functions which it implements
9586     to always fail with ENOSYS.  Some functions are actually named
9587     something starting with __ and the normal name is an alias.  */
9588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9589 choke me
9590 #else
9591 f = $ac_func;
9592 #endif
9593
9594   ;
9595   return 0;
9596 }
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600   (eval $ac_link) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } &&
9604          { ac_try='test -s conftest$ac_exeext'
9605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606   (eval $ac_try) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }; }; then
9610   eval "$as_ac_var=yes"
9611 else
9612   echo "$as_me: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 eval "$as_ac_var=no"
9615 fi
9616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9617 fi
9618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9620 if test `eval echo '${'$as_ac_var'}'` = yes; then
9621   cat >>confdefs.h <<_ACEOF
9622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9623 _ACEOF
9624
9625 fi
9626 done
9627
9628 if test x"$ac_cv_func_crypt" = x"no"; then
9629     echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9630 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9631 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9632   echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634   ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-lcrypt  $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 #line $LINENO "configure"
9638 #include "confdefs.h"
9639
9640 /* Override any gcc2 internal prototype to avoid an error.  */
9641 #ifdef __cplusplus
9642 extern "C"
9643 #endif
9644 /* We use char because int might match the return type of a gcc2
9645    builtin and then its argument prototype would still apply.  */
9646 char crypt ();
9647 #ifdef F77_DUMMY_MAIN
9648 #  ifdef __cplusplus
9649      extern "C"
9650 #  endif
9651    int F77_DUMMY_MAIN() { return 1; }
9652 #endif
9653 int
9654 main ()
9655 {
9656 crypt ();
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663   (eval $ac_link) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } &&
9667          { ac_try='test -s conftest$ac_exeext'
9668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669   (eval $ac_try) 2>&5
9670   ac_status=$?
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); }; }; then
9673   ac_cv_lib_crypt_crypt=yes
9674 else
9675   echo "$as_me: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9677 ac_cv_lib_crypt_crypt=no
9678 fi
9679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9680 LIBS=$ac_check_lib_save_LIBS
9681 fi
9682 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9683 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9684 if test $ac_cv_lib_crypt_crypt = yes; then
9685   AUTHLIBS="$AUTHLIBS -lcrypt";
9686
9687 cat >>confdefs.h <<\_ACEOF
9688 #define HAVE_CRYPT 1
9689 _ACEOF
9690
9691 fi
9692
9693 fi
9694
9695
9696 ###############################################
9697 # Readline included by default unless explicitly asked not to
9698 test "${with_readline+set}" != "set" && with_readline=yes
9699
9700 # test for where we get readline() from
9701 echo "$as_me:$LINENO: checking whether to use readline" >&5
9702 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9703
9704 # Check whether --with-readline or --without-readline was given.
9705 if test "${with_readline+set}" = set; then
9706   withval="$with_readline"
9707     case "$with_readline" in
9708   yes)
9709     echo "$as_me:$LINENO: result: yes" >&5
9710 echo "${ECHO_T}yes" >&6
9711
9712
9713
9714
9715 for ac_header in readline.h history.h readline/readline.h
9716 do
9717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719   echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9722   echo $ECHO_N "(cached) $ECHO_C" >&6
9723 fi
9724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726 else
9727   # Is the header compilable?
9728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 #include "confdefs.h"
9733 $ac_includes_default
9734 #include <$ac_header>
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738   (eval $ac_compile) 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } &&
9742          { ac_try='test -s conftest.$ac_objext'
9743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744   (eval $ac_try) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; }; then
9748   ac_header_compiler=yes
9749 else
9750   echo "$as_me: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9752 ac_header_compiler=no
9753 fi
9754 rm -f conftest.$ac_objext conftest.$ac_ext
9755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9756 echo "${ECHO_T}$ac_header_compiler" >&6
9757
9758 # Is the header present?
9759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9762 #line $LINENO "configure"
9763 #include "confdefs.h"
9764 #include <$ac_header>
9765 _ACEOF
9766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9768   ac_status=$?
9769   egrep -v '^ *\+' conftest.er1 >conftest.err
9770   rm -f conftest.er1
9771   cat conftest.err >&5
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } >/dev/null; then
9774   if test -s conftest.err; then
9775     ac_cpp_err=$ac_c_preproc_warn_flag
9776   else
9777     ac_cpp_err=
9778   fi
9779 else
9780   ac_cpp_err=yes
9781 fi
9782 if test -z "$ac_cpp_err"; then
9783   ac_header_preproc=yes
9784 else
9785   echo "$as_me: failed program was:" >&5
9786   cat conftest.$ac_ext >&5
9787   ac_header_preproc=no
9788 fi
9789 rm -f conftest.err conftest.$ac_ext
9790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9791 echo "${ECHO_T}$ac_header_preproc" >&6
9792
9793 # So?  What about this header?
9794 case $ac_header_compiler:$ac_header_preproc in
9795   yes:no )
9796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9800   no:yes )
9801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9803     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9807 esac
9808 echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   eval "$as_ac_Header=$ac_header_preproc"
9814 fi
9815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9817
9818 fi
9819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9820   cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9822 _ACEOF
9823
9824 fi
9825
9826 done
9827
9828
9829 for ac_header in readline/history.h
9830 do
9831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9833   echo "$as_me:$LINENO: checking for $ac_header" >&5
9834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 fi
9838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9840 else
9841   # Is the header compilable?
9842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 #include "confdefs.h"
9847 $ac_includes_default
9848 #include <$ac_header>
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852   (eval $ac_compile) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -s conftest.$ac_objext'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; }; then
9862   ac_header_compiler=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 ac_header_compiler=no
9867 fi
9868 rm -f conftest.$ac_objext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9870 echo "${ECHO_T}$ac_header_compiler" >&6
9871
9872 # Is the header present?
9873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line $LINENO "configure"
9877 #include "confdefs.h"
9878 #include <$ac_header>
9879 _ACEOF
9880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9882   ac_status=$?
9883   egrep -v '^ *\+' conftest.er1 >conftest.err
9884   rm -f conftest.er1
9885   cat conftest.err >&5
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } >/dev/null; then
9888   if test -s conftest.err; then
9889     ac_cpp_err=$ac_c_preproc_warn_flag
9890   else
9891     ac_cpp_err=
9892   fi
9893 else
9894   ac_cpp_err=yes
9895 fi
9896 if test -z "$ac_cpp_err"; then
9897   ac_header_preproc=yes
9898 else
9899   echo "$as_me: failed program was:" >&5
9900   cat conftest.$ac_ext >&5
9901   ac_header_preproc=no
9902 fi
9903 rm -f conftest.err conftest.$ac_ext
9904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9905 echo "${ECHO_T}$ac_header_preproc" >&6
9906
9907 # So?  What about this header?
9908 case $ac_header_compiler:$ac_header_preproc in
9909   yes:no )
9910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9914   no:yes )
9915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9917     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9921 esac
9922 echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   eval "$as_ac_Header=$ac_header_preproc"
9928 fi
9929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9931
9932 fi
9933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934   cat >>confdefs.h <<_ACEOF
9935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9936 _ACEOF
9937
9938 fi
9939
9940 done
9941
9942
9943
9944
9945 for ac_header in readline.h readline/readline.h
9946 do
9947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949   echo "$as_me:$LINENO: checking for $ac_header" >&5
9950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 fi
9954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9956 else
9957   # Is the header compilable?
9958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9960 cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9962 #include "confdefs.h"
9963 $ac_includes_default
9964 #include <$ac_header>
9965 _ACEOF
9966 rm -f conftest.$ac_objext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9968   (eval $ac_compile) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } &&
9972          { ac_try='test -s conftest.$ac_objext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_header_compiler=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9982 ac_header_compiler=no
9983 fi
9984 rm -f conftest.$ac_objext conftest.$ac_ext
9985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9986 echo "${ECHO_T}$ac_header_compiler" >&6
9987
9988 # Is the header present?
9989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
9993 #include "confdefs.h"
9994 #include <$ac_header>
9995 _ACEOF
9996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9998   ac_status=$?
9999   egrep -v '^ *\+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } >/dev/null; then
10004   if test -s conftest.err; then
10005     ac_cpp_err=$ac_c_preproc_warn_flag
10006   else
10007     ac_cpp_err=
10008   fi
10009 else
10010   ac_cpp_err=yes
10011 fi
10012 if test -z "$ac_cpp_err"; then
10013   ac_header_preproc=yes
10014 else
10015   echo "$as_me: failed program was:" >&5
10016   cat conftest.$ac_ext >&5
10017   ac_header_preproc=no
10018 fi
10019 rm -f conftest.err conftest.$ac_ext
10020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10021 echo "${ECHO_T}$ac_header_preproc" >&6
10022
10023 # So?  What about this header?
10024 case $ac_header_compiler:$ac_header_preproc in
10025   yes:no )
10026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10030   no:yes )
10031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10033     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10037 esac
10038 echo "$as_me:$LINENO: checking for $ac_header" >&5
10039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10041   echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043   eval "$as_ac_Header=$ac_header_preproc"
10044 fi
10045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10047
10048 fi
10049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10050   cat >>confdefs.h <<_ACEOF
10051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10052 _ACEOF
10053
10054       for termlib in ncurses curses termcap terminfo termlib; do
10055        as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10056 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10057 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-l${termlib}  $LIBS"
10063 cat >conftest.$ac_ext <<_ACEOF
10064 #line $LINENO "configure"
10065 #include "confdefs.h"
10066
10067 /* Override any gcc2 internal prototype to avoid an error.  */
10068 #ifdef __cplusplus
10069 extern "C"
10070 #endif
10071 /* We use char because int might match the return type of a gcc2
10072    builtin and then its argument prototype would still apply.  */
10073 char tgetent ();
10074 #ifdef F77_DUMMY_MAIN
10075 #  ifdef __cplusplus
10076      extern "C"
10077 #  endif
10078    int F77_DUMMY_MAIN() { return 1; }
10079 #endif
10080 int
10081 main ()
10082 {
10083 tgetent ();
10084   ;
10085   return 0;
10086 }
10087 _ACEOF
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10090   (eval $ac_link) 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } &&
10094          { ac_try='test -s conftest$ac_exeext'
10095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096   (eval $ac_try) 2>&5
10097   ac_status=$?
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); }; }; then
10100   eval "$as_ac_Lib=yes"
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 eval "$as_ac_Lib=no"
10105 fi
10106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10108 fi
10109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10110 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10111 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10112   TERMLIBS="-l${termlib}"; break
10113 fi
10114
10115       done
10116       echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10117 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10118 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-lreadline $TERMLIBS $LIBS"
10123 cat >conftest.$ac_ext <<_ACEOF
10124 #line $LINENO "configure"
10125 #include "confdefs.h"
10126
10127 /* Override any gcc2 internal prototype to avoid an error.  */
10128 #ifdef __cplusplus
10129 extern "C"
10130 #endif
10131 /* We use char because int might match the return type of a gcc2
10132    builtin and then its argument prototype would still apply.  */
10133 char rl_callback_handler_install ();
10134 #ifdef F77_DUMMY_MAIN
10135 #  ifdef __cplusplus
10136      extern "C"
10137 #  endif
10138    int F77_DUMMY_MAIN() { return 1; }
10139 #endif
10140 int
10141 main ()
10142 {
10143 rl_callback_handler_install ();
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150   (eval $ac_link) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); } &&
10154          { ac_try='test -s conftest$ac_exeext'
10155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156   (eval $ac_try) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_cv_lib_readline_rl_callback_handler_install=yes
10161 else
10162   echo "$as_me: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10164 ac_cv_lib_readline_rl_callback_handler_install=no
10165 fi
10166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10168 fi
10169 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10170 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10171 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10172   TERMLIBS="-lreadline $TERMLIBS"
10173
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_LIBREADLINE 1
10176 _ACEOF
10177
10178        break
10179 else
10180   TERMLIBS=
10181 fi
10182
10183 fi
10184
10185 done
10186
10187     ;;
10188   no)
10189     echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6
10191     ;;
10192   *)
10193     echo "$as_me:$LINENO: result: yes" >&5
10194 echo "${ECHO_T}yes" >&6
10195
10196     # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
10197     # alternate readline path
10198     _ldflags=${LDFLAGS}
10199     _cppflags=${CPPFLAGS}
10200
10201     # Add additional search path
10202     LDFLAGS="-L$with_readline/lib $LDFLAGS"
10203     CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10204
10205
10206
10207
10208 for ac_header in readline.h history.h readline/readline.h
10209 do
10210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10212   echo "$as_me:$LINENO: checking for $ac_header" >&5
10213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10215   echo $ECHO_N "(cached) $ECHO_C" >&6
10216 fi
10217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10219 else
10220   # Is the header compilable?
10221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 #include "confdefs.h"
10226 $ac_includes_default
10227 #include <$ac_header>
10228 _ACEOF
10229 rm -f conftest.$ac_objext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231   (eval $ac_compile) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } &&
10235          { ac_try='test -s conftest.$ac_objext'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; }; then
10241   ac_header_compiler=yes
10242 else
10243   echo "$as_me: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 ac_header_compiler=no
10246 fi
10247 rm -f conftest.$ac_objext conftest.$ac_ext
10248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10249 echo "${ECHO_T}$ac_header_compiler" >&6
10250
10251 # Is the header present?
10252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line $LINENO "configure"
10256 #include "confdefs.h"
10257 #include <$ac_header>
10258 _ACEOF
10259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10261   ac_status=$?
10262   egrep -v '^ *\+' conftest.er1 >conftest.err
10263   rm -f conftest.er1
10264   cat conftest.err >&5
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); } >/dev/null; then
10267   if test -s conftest.err; then
10268     ac_cpp_err=$ac_c_preproc_warn_flag
10269   else
10270     ac_cpp_err=
10271   fi
10272 else
10273   ac_cpp_err=yes
10274 fi
10275 if test -z "$ac_cpp_err"; then
10276   ac_header_preproc=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279   cat conftest.$ac_ext >&5
10280   ac_header_preproc=no
10281 fi
10282 rm -f conftest.err conftest.$ac_ext
10283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10284 echo "${ECHO_T}$ac_header_preproc" >&6
10285
10286 # So?  What about this header?
10287 case $ac_header_compiler:$ac_header_preproc in
10288   yes:no )
10289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10293   no:yes )
10294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10296     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10300 esac
10301 echo "$as_me:$LINENO: checking for $ac_header" >&5
10302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   eval "$as_ac_Header=$ac_header_preproc"
10307 fi
10308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10310
10311 fi
10312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10313   cat >>confdefs.h <<_ACEOF
10314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10315 _ACEOF
10316
10317 fi
10318
10319 done
10320
10321
10322 for ac_header in readline/history.h
10323 do
10324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10326   echo "$as_me:$LINENO: checking for $ac_header" >&5
10327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10329   echo $ECHO_N "(cached) $ECHO_C" >&6
10330 fi
10331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10333 else
10334   # Is the header compilable?
10335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10339 #include "confdefs.h"
10340 $ac_includes_default
10341 #include <$ac_header>
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345   (eval $ac_compile) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } &&
10349          { ac_try='test -s conftest.$ac_objext'
10350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351   (eval $ac_try) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; }; then
10355   ac_header_compiler=yes
10356 else
10357   echo "$as_me: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10359 ac_header_compiler=no
10360 fi
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10363 echo "${ECHO_T}$ac_header_compiler" >&6
10364
10365 # Is the header present?
10366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10370 #include "confdefs.h"
10371 #include <$ac_header>
10372 _ACEOF
10373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10375   ac_status=$?
10376   egrep -v '^ *\+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } >/dev/null; then
10381   if test -s conftest.err; then
10382     ac_cpp_err=$ac_c_preproc_warn_flag
10383   else
10384     ac_cpp_err=
10385   fi
10386 else
10387   ac_cpp_err=yes
10388 fi
10389 if test -z "$ac_cpp_err"; then
10390   ac_header_preproc=yes
10391 else
10392   echo "$as_me: failed program was:" >&5
10393   cat conftest.$ac_ext >&5
10394   ac_header_preproc=no
10395 fi
10396 rm -f conftest.err conftest.$ac_ext
10397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10398 echo "${ECHO_T}$ac_header_preproc" >&6
10399
10400 # So?  What about this header?
10401 case $ac_header_compiler:$ac_header_preproc in
10402   yes:no )
10403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10407   no:yes )
10408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10410     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10414 esac
10415 echo "$as_me:$LINENO: checking for $ac_header" >&5
10416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420   eval "$as_ac_Header=$ac_header_preproc"
10421 fi
10422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10424
10425 fi
10426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10427   cat >>confdefs.h <<_ACEOF
10428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10429 _ACEOF
10430
10431 fi
10432
10433 done
10434
10435
10436
10437
10438 for ac_header in readline.h readline/readline.h
10439 do
10440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10442   echo "$as_me:$LINENO: checking for $ac_header" >&5
10443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10445   echo $ECHO_N "(cached) $ECHO_C" >&6
10446 fi
10447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10449 else
10450   # Is the header compilable?
10451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10453 cat >conftest.$ac_ext <<_ACEOF
10454 #line $LINENO "configure"
10455 #include "confdefs.h"
10456 $ac_includes_default
10457 #include <$ac_header>
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461   (eval $ac_compile) 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } &&
10465          { ac_try='test -s conftest.$ac_objext'
10466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467   (eval $ac_try) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; }; then
10471   ac_header_compiler=yes
10472 else
10473   echo "$as_me: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10475 ac_header_compiler=no
10476 fi
10477 rm -f conftest.$ac_objext conftest.$ac_ext
10478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10479 echo "${ECHO_T}$ac_header_compiler" >&6
10480
10481 # Is the header present?
10482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10484 cat >conftest.$ac_ext <<_ACEOF
10485 #line $LINENO "configure"
10486 #include "confdefs.h"
10487 #include <$ac_header>
10488 _ACEOF
10489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10491   ac_status=$?
10492   egrep -v '^ *\+' conftest.er1 >conftest.err
10493   rm -f conftest.er1
10494   cat conftest.err >&5
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); } >/dev/null; then
10497   if test -s conftest.err; then
10498     ac_cpp_err=$ac_c_preproc_warn_flag
10499   else
10500     ac_cpp_err=
10501   fi
10502 else
10503   ac_cpp_err=yes
10504 fi
10505 if test -z "$ac_cpp_err"; then
10506   ac_header_preproc=yes
10507 else
10508   echo "$as_me: failed program was:" >&5
10509   cat conftest.$ac_ext >&5
10510   ac_header_preproc=no
10511 fi
10512 rm -f conftest.err conftest.$ac_ext
10513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10514 echo "${ECHO_T}$ac_header_preproc" >&6
10515
10516 # So?  What about this header?
10517 case $ac_header_compiler:$ac_header_preproc in
10518   yes:no )
10519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10523   no:yes )
10524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10526     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10530 esac
10531 echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534   echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536   eval "$as_ac_Header=$ac_header_preproc"
10537 fi
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10540
10541 fi
10542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10543   cat >>confdefs.h <<_ACEOF
10544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10545 _ACEOF
10546
10547       for termlib in ncurses curses termcap terminfo termlib; do
10548        as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10549 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10550 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10551 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10552   echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554   ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-l${termlib}  $LIBS"
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10558 #include "confdefs.h"
10559
10560 /* Override any gcc2 internal prototype to avoid an error.  */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 /* We use char because int might match the return type of a gcc2
10565    builtin and then its argument prototype would still apply.  */
10566 char tgetent ();
10567 #ifdef F77_DUMMY_MAIN
10568 #  ifdef __cplusplus
10569      extern "C"
10570 #  endif
10571    int F77_DUMMY_MAIN() { return 1; }
10572 #endif
10573 int
10574 main ()
10575 {
10576 tgetent ();
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10583   (eval $ac_link) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); } &&
10587          { ac_try='test -s conftest$ac_exeext'
10588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589   (eval $ac_try) 2>&5
10590   ac_status=$?
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); }; }; then
10593   eval "$as_ac_Lib=yes"
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10597 eval "$as_ac_Lib=no"
10598 fi
10599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10601 fi
10602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10603 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10604 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10605   TERMLIBS="-l${termlib}"; break
10606 fi
10607
10608       done
10609       echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10610 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10611 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10612   echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614   ac_check_lib_save_LIBS=$LIBS
10615 LIBS="-lreadline $TERMLIBS $LIBS"
10616 cat >conftest.$ac_ext <<_ACEOF
10617 #line $LINENO "configure"
10618 #include "confdefs.h"
10619
10620 /* Override any gcc2 internal prototype to avoid an error.  */
10621 #ifdef __cplusplus
10622 extern "C"
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625    builtin and then its argument prototype would still apply.  */
10626 char rl_callback_handler_install ();
10627 #ifdef F77_DUMMY_MAIN
10628 #  ifdef __cplusplus
10629      extern "C"
10630 #  endif
10631    int F77_DUMMY_MAIN() { return 1; }
10632 #endif
10633 int
10634 main ()
10635 {
10636 rl_callback_handler_install ();
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643   (eval $ac_link) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } &&
10647          { ac_try='test -s conftest$ac_exeext'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; }; then
10653   ac_cv_lib_readline_rl_callback_handler_install=yes
10654 else
10655   echo "$as_me: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 ac_cv_lib_readline_rl_callback_handler_install=no
10658 fi
10659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660 LIBS=$ac_check_lib_save_LIBS
10661 fi
10662 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10663 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10664 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10665   TERMLDFLAGS="-L$with_readline/lib"
10666        TERMCPPFLAGS="-I$with_readline/include"
10667        CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10668        TERMLIBS="-lreadline $TERMLIBS"
10669
10670 cat >>confdefs.h <<\_ACEOF
10671 #define HAVE_LIBREADLINE 1
10672 _ACEOF
10673
10674        break
10675 else
10676   TERMLIBS= CPPFLAGS=$_cppflags
10677 fi
10678
10679 fi
10680
10681 done
10682
10683
10684     LDFLAGS=$_ldflags
10685     ;;
10686   esac
10687 else
10688   echo "$as_me:$LINENO: result: no" >&5
10689 echo "${ECHO_T}no" >&6
10690
10691 fi;
10692
10693
10694
10695 # The readline API changed slightly from readline3 to readline4, so
10696 # code will generate warnings on one of them unless we have a few
10697 # special cases.
10698 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10699 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10700 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   ac_check_lib_save_LIBS=$LIBS
10704 LIBS="-lreadline $TERMLIBS $LIBS"
10705 cat >conftest.$ac_ext <<_ACEOF
10706 #line $LINENO "configure"
10707 #include "confdefs.h"
10708
10709 /* Override any gcc2 internal prototype to avoid an error.  */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 /* We use char because int might match the return type of a gcc2
10714    builtin and then its argument prototype would still apply.  */
10715 char rl_completion_matches ();
10716 #ifdef F77_DUMMY_MAIN
10717 #  ifdef __cplusplus
10718      extern "C"
10719 #  endif
10720    int F77_DUMMY_MAIN() { return 1; }
10721 #endif
10722 int
10723 main ()
10724 {
10725 rl_completion_matches ();
10726   ;
10727   return 0;
10728 }
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732   (eval $ac_link) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); } &&
10736          { ac_try='test -s conftest$ac_exeext'
10737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738   (eval $ac_try) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; }; then
10742   ac_cv_lib_readline_rl_completion_matches=yes
10743 else
10744   echo "$as_me: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10746 ac_cv_lib_readline_rl_completion_matches=no
10747 fi
10748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10750 fi
10751 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10752 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10753 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10754
10755 cat >>confdefs.h <<\_ACEOF
10756 #define HAVE_NEW_LIBREADLINE 1
10757 _ACEOF
10758
10759 fi
10760
10761
10762 # The following test taken from the cvs sources
10763 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10764 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10765 # libsocket.so which has a bad implementation of gethostbyname (it
10766 # only looks in /etc/hosts), so we only look for -lsocket if we need
10767 # it.
10768
10769 for ac_func in connect
10770 do
10771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10772 echo "$as_me:$LINENO: checking for $ac_func" >&5
10773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10774 if eval "test \"\${$as_ac_var+set}\" = set"; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   cat >conftest.$ac_ext <<_ACEOF
10778 #line $LINENO "configure"
10779 #include "confdefs.h"
10780 /* System header to define __stub macros and hopefully few prototypes,
10781     which can conflict with char $ac_func (); below.  */
10782 #include <assert.h>
10783 /* Override any gcc2 internal prototype to avoid an error.  */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 /* We use char because int might match the return type of a gcc2
10788    builtin and then its argument prototype would still apply.  */
10789 char $ac_func ();
10790 char (*f) ();
10791
10792 #ifdef F77_DUMMY_MAIN
10793 #  ifdef __cplusplus
10794      extern "C"
10795 #  endif
10796    int F77_DUMMY_MAIN() { return 1; }
10797 #endif
10798 int
10799 main ()
10800 {
10801 /* The GNU C library defines this for functions which it implements
10802     to always fail with ENOSYS.  Some functions are actually named
10803     something starting with __ and the normal name is an alias.  */
10804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10805 choke me
10806 #else
10807 f = $ac_func;
10808 #endif
10809
10810   ;
10811   return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816   (eval $ac_link) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } &&
10820          { ac_try='test -s conftest$ac_exeext'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }; then
10826   eval "$as_ac_var=yes"
10827 else
10828   echo "$as_me: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 eval "$as_ac_var=no"
10831 fi
10832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10833 fi
10834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10836 if test `eval echo '${'$as_ac_var'}'` = yes; then
10837   cat >>confdefs.h <<_ACEOF
10838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10839 _ACEOF
10840
10841 fi
10842 done
10843
10844 if test x"$ac_cv_func_connect" = x"no"; then
10845     case "$LIBS" in
10846     *-lnsl*) ;;
10847     *)
10848 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10849 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10850 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   ac_check_lib_save_LIBS=$LIBS
10854 LIBS="-lnsl_s  $LIBS"
10855 cat >conftest.$ac_ext <<_ACEOF
10856 #line $LINENO "configure"
10857 #include "confdefs.h"
10858
10859 /* Override any gcc2 internal prototype to avoid an error.  */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 /* We use char because int might match the return type of a gcc2
10864    builtin and then its argument prototype would still apply.  */
10865 char printf ();
10866 #ifdef F77_DUMMY_MAIN
10867 #  ifdef __cplusplus
10868      extern "C"
10869 #  endif
10870    int F77_DUMMY_MAIN() { return 1; }
10871 #endif
10872 int
10873 main ()
10874 {
10875 printf ();
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10882   (eval $ac_link) 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } &&
10886          { ac_try='test -s conftest$ac_exeext'
10887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888   (eval $ac_try) 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; }; then
10892   ac_cv_lib_nsl_s_printf=yes
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 ac_cv_lib_nsl_s_printf=no
10897 fi
10898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10900 fi
10901 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10902 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10903 if test $ac_cv_lib_nsl_s_printf = yes; then
10904   cat >>confdefs.h <<_ACEOF
10905 #define HAVE_LIBNSL_S 1
10906 _ACEOF
10907
10908   LIBS="-lnsl_s $LIBS"
10909
10910 fi
10911  ;;
10912     esac
10913     case "$LIBS" in
10914     *-lnsl*) ;;
10915     *)
10916 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10917 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10918 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921   ac_check_lib_save_LIBS=$LIBS
10922 LIBS="-lnsl  $LIBS"
10923 cat >conftest.$ac_ext <<_ACEOF
10924 #line $LINENO "configure"
10925 #include "confdefs.h"
10926
10927 /* Override any gcc2 internal prototype to avoid an error.  */
10928 #ifdef __cplusplus
10929 extern "C"
10930 #endif
10931 /* We use char because int might match the return type of a gcc2
10932    builtin and then its argument prototype would still apply.  */
10933 char printf ();
10934 #ifdef F77_DUMMY_MAIN
10935 #  ifdef __cplusplus
10936      extern "C"
10937 #  endif
10938    int F77_DUMMY_MAIN() { return 1; }
10939 #endif
10940 int
10941 main ()
10942 {
10943 printf ();
10944   ;
10945   return 0;
10946 }
10947 _ACEOF
10948 rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10950   (eval $ac_link) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); } &&
10954          { ac_try='test -s conftest$ac_exeext'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   ac_cv_lib_nsl_printf=yes
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 ac_cv_lib_nsl_printf=no
10965 fi
10966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10968 fi
10969 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10970 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10971 if test $ac_cv_lib_nsl_printf = yes; then
10972   cat >>confdefs.h <<_ACEOF
10973 #define HAVE_LIBNSL 1
10974 _ACEOF
10975
10976   LIBS="-lnsl $LIBS"
10977
10978 fi
10979  ;;
10980     esac
10981     case "$LIBS" in
10982     *-lsocket*) ;;
10983     *)
10984 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10985 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10986 if test "${ac_cv_lib_socket_connect+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-lsocket  $LIBS"
10991 cat >conftest.$ac_ext <<_ACEOF
10992 #line $LINENO "configure"
10993 #include "confdefs.h"
10994
10995 /* Override any gcc2 internal prototype to avoid an error.  */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 /* We use char because int might match the return type of a gcc2
11000    builtin and then its argument prototype would still apply.  */
11001 char connect ();
11002 #ifdef F77_DUMMY_MAIN
11003 #  ifdef __cplusplus
11004      extern "C"
11005 #  endif
11006    int F77_DUMMY_MAIN() { return 1; }
11007 #endif
11008 int
11009 main ()
11010 {
11011 connect ();
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018   (eval $ac_link) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } &&
11022          { ac_try='test -s conftest$ac_exeext'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   ac_cv_lib_socket_connect=yes
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 ac_cv_lib_socket_connect=no
11033 fi
11034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11035 LIBS=$ac_check_lib_save_LIBS
11036 fi
11037 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11038 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11039 if test $ac_cv_lib_socket_connect = yes; then
11040   cat >>confdefs.h <<_ACEOF
11041 #define HAVE_LIBSOCKET 1
11042 _ACEOF
11043
11044   LIBS="-lsocket $LIBS"
11045
11046 fi
11047  ;;
11048     esac
11049     case "$LIBS" in
11050     *-linet*) ;;
11051     *)
11052 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11053 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11054 if test "${ac_cv_lib_inet_connect+set}" = set; then
11055   echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057   ac_check_lib_save_LIBS=$LIBS
11058 LIBS="-linet  $LIBS"
11059 cat >conftest.$ac_ext <<_ACEOF
11060 #line $LINENO "configure"
11061 #include "confdefs.h"
11062
11063 /* Override any gcc2 internal prototype to avoid an error.  */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 /* We use char because int might match the return type of a gcc2
11068    builtin and then its argument prototype would still apply.  */
11069 char connect ();
11070 #ifdef F77_DUMMY_MAIN
11071 #  ifdef __cplusplus
11072      extern "C"
11073 #  endif
11074    int F77_DUMMY_MAIN() { return 1; }
11075 #endif
11076 int
11077 main ()
11078 {
11079 connect ();
11080   ;
11081   return 0;
11082 }
11083 _ACEOF
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11086   (eval $ac_link) 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } &&
11090          { ac_try='test -s conftest$ac_exeext'
11091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092   (eval $ac_try) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; }; then
11096   ac_cv_lib_inet_connect=yes
11097 else
11098   echo "$as_me: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11100 ac_cv_lib_inet_connect=no
11101 fi
11102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11103 LIBS=$ac_check_lib_save_LIBS
11104 fi
11105 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
11106 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
11107 if test $ac_cv_lib_inet_connect = yes; then
11108   cat >>confdefs.h <<_ACEOF
11109 #define HAVE_LIBINET 1
11110 _ACEOF
11111
11112   LIBS="-linet $LIBS"
11113
11114 fi
11115  ;;
11116     esac
11117             if test x"$ac_cv_lib_socket_connect" = x"yes" ||
11118        test x"$ac_cv_lib_inet_connect" = x"yes"; then
11119         # ac_cv_func_connect=yes
11120         # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run
11121
11122 cat >>confdefs.h <<\_ACEOF
11123 #define HAVE_CONNECT 1
11124 _ACEOF
11125
11126     fi
11127 fi
11128
11129 ###############################################
11130 # test for where we get get_yp_default_domain() from
11131
11132 for ac_func in yp_get_default_domain
11133 do
11134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11135 echo "$as_me:$LINENO: checking for $ac_func" >&5
11136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11137 if eval "test \"\${$as_ac_var+set}\" = set"; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140   cat >conftest.$ac_ext <<_ACEOF
11141 #line $LINENO "configure"
11142 #include "confdefs.h"
11143 /* System header to define __stub macros and hopefully few prototypes,
11144     which can conflict with char $ac_func (); below.  */
11145 #include <assert.h>
11146 /* Override any gcc2 internal prototype to avoid an error.  */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 /* We use char because int might match the return type of a gcc2
11151    builtin and then its argument prototype would still apply.  */
11152 char $ac_func ();
11153 char (*f) ();
11154
11155 #ifdef F77_DUMMY_MAIN
11156 #  ifdef __cplusplus
11157      extern "C"
11158 #  endif
11159    int F77_DUMMY_MAIN() { return 1; }
11160 #endif
11161 int
11162 main ()
11163 {
11164 /* The GNU C library defines this for functions which it implements
11165     to always fail with ENOSYS.  Some functions are actually named
11166     something starting with __ and the normal name is an alias.  */
11167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11168 choke me
11169 #else
11170 f = $ac_func;
11171 #endif
11172
11173   ;
11174   return 0;
11175 }
11176 _ACEOF
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179   (eval $ac_link) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } &&
11183          { ac_try='test -s conftest$ac_exeext'
11184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185   (eval $ac_try) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }; then
11189   eval "$as_ac_var=yes"
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 cat conftest.$ac_ext >&5
11193 eval "$as_ac_var=no"
11194 fi
11195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11196 fi
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11199 if test `eval echo '${'$as_ac_var'}'` = yes; then
11200   cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11202 _ACEOF
11203
11204 fi
11205 done
11206
11207 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
11208         echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
11209 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
11210 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213   ac_check_lib_save_LIBS=$LIBS
11214 LIBS="-lnsl  $LIBS"
11215 cat >conftest.$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11217 #include "confdefs.h"
11218
11219 /* Override any gcc2 internal prototype to avoid an error.  */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 /* We use char because int might match the return type of a gcc2
11224    builtin and then its argument prototype would still apply.  */
11225 char yp_get_default_domain ();
11226 #ifdef F77_DUMMY_MAIN
11227 #  ifdef __cplusplus
11228      extern "C"
11229 #  endif
11230    int F77_DUMMY_MAIN() { return 1; }
11231 #endif
11232 int
11233 main ()
11234 {
11235 yp_get_default_domain ();
11236   ;
11237   return 0;
11238 }
11239 _ACEOF
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242   (eval $ac_link) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); } &&
11246          { ac_try='test -s conftest$ac_exeext'
11247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248   (eval $ac_try) 2>&5
11249   ac_status=$?
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); }; }; then
11252   ac_cv_lib_nsl_yp_get_default_domain=yes
11253 else
11254   echo "$as_me: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 ac_cv_lib_nsl_yp_get_default_domain=no
11257 fi
11258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11260 fi
11261 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
11262 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
11263 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
11264   LIBS="$LIBS -lnsl";
11265
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
11268 _ACEOF
11269
11270 fi
11271
11272 fi
11273
11274 # Check if we have execl, if not we need to compile smbrun.
11275
11276 for ac_func in execl
11277 do
11278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11279 echo "$as_me:$LINENO: checking for $ac_func" >&5
11280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11281 if eval "test \"\${$as_ac_var+set}\" = set"; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   cat >conftest.$ac_ext <<_ACEOF
11285 #line $LINENO "configure"
11286 #include "confdefs.h"
11287 /* System header to define __stub macros and hopefully few prototypes,
11288     which can conflict with char $ac_func (); below.  */
11289 #include <assert.h>
11290 /* Override any gcc2 internal prototype to avoid an error.  */
11291 #ifdef __cplusplus
11292 extern "C"
11293 #endif
11294 /* We use char because int might match the return type of a gcc2
11295    builtin and then its argument prototype would still apply.  */
11296 char $ac_func ();
11297 char (*f) ();
11298
11299 #ifdef F77_DUMMY_MAIN
11300 #  ifdef __cplusplus
11301      extern "C"
11302 #  endif
11303    int F77_DUMMY_MAIN() { return 1; }
11304 #endif
11305 int
11306 main ()
11307 {
11308 /* The GNU C library defines this for functions which it implements
11309     to always fail with ENOSYS.  Some functions are actually named
11310     something starting with __ and the normal name is an alias.  */
11311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11312 choke me
11313 #else
11314 f = $ac_func;
11315 #endif
11316
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323   (eval $ac_link) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); } &&
11327          { ac_try='test -s conftest$ac_exeext'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; }; then
11333   eval "$as_ac_var=yes"
11334 else
11335   echo "$as_me: failed program was:" >&5
11336 cat conftest.$ac_ext >&5
11337 eval "$as_ac_var=no"
11338 fi
11339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11340 fi
11341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11343 if test `eval echo '${'$as_ac_var'}'` = yes; then
11344   cat >>confdefs.h <<_ACEOF
11345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11346 _ACEOF
11347
11348 fi
11349 done
11350
11351 if test x"$ac_cv_func_execl" = x"no"; then
11352     EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
11353 fi
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
11375 do
11376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11377 echo "$as_me:$LINENO: checking for $ac_func" >&5
11378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11379 if eval "test \"\${$as_ac_var+set}\" = set"; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   cat >conftest.$ac_ext <<_ACEOF
11383 #line $LINENO "configure"
11384 #include "confdefs.h"
11385 /* System header to define __stub macros and hopefully few prototypes,
11386     which can conflict with char $ac_func (); below.  */
11387 #include <assert.h>
11388 /* Override any gcc2 internal prototype to avoid an error.  */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 /* We use char because int might match the return type of a gcc2
11393    builtin and then its argument prototype would still apply.  */
11394 char $ac_func ();
11395 char (*f) ();
11396
11397 #ifdef F77_DUMMY_MAIN
11398 #  ifdef __cplusplus
11399      extern "C"
11400 #  endif
11401    int F77_DUMMY_MAIN() { return 1; }
11402 #endif
11403 int
11404 main ()
11405 {
11406 /* The GNU C library defines this for functions which it implements
11407     to always fail with ENOSYS.  Some functions are actually named
11408     something starting with __ and the normal name is an alias.  */
11409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11410 choke me
11411 #else
11412 f = $ac_func;
11413 #endif
11414
11415   ;
11416   return 0;
11417 }
11418 _ACEOF
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11421   (eval $ac_link) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } &&
11425          { ac_try='test -s conftest$ac_exeext'
11426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427   (eval $ac_try) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); }; }; then
11431   eval "$as_ac_var=yes"
11432 else
11433   echo "$as_me: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11435 eval "$as_ac_var=no"
11436 fi
11437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11438 fi
11439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11441 if test `eval echo '${'$as_ac_var'}'` = yes; then
11442   cat >>confdefs.h <<_ACEOF
11443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11444 _ACEOF
11445
11446 fi
11447 done
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
11461 do
11462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11463 echo "$as_me:$LINENO: checking for $ac_func" >&5
11464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11465 if eval "test \"\${$as_ac_var+set}\" = set"; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468   cat >conftest.$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11470 #include "confdefs.h"
11471 /* System header to define __stub macros and hopefully few prototypes,
11472     which can conflict with char $ac_func (); below.  */
11473 #include <assert.h>
11474 /* Override any gcc2 internal prototype to avoid an error.  */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 /* We use char because int might match the return type of a gcc2
11479    builtin and then its argument prototype would still apply.  */
11480 char $ac_func ();
11481 char (*f) ();
11482
11483 #ifdef F77_DUMMY_MAIN
11484 #  ifdef __cplusplus
11485      extern "C"
11486 #  endif
11487    int F77_DUMMY_MAIN() { return 1; }
11488 #endif
11489 int
11490 main ()
11491 {
11492 /* The GNU C library defines this for functions which it implements
11493     to always fail with ENOSYS.  Some functions are actually named
11494     something starting with __ and the normal name is an alias.  */
11495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11496 choke me
11497 #else
11498 f = $ac_func;
11499 #endif
11500
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507   (eval $ac_link) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -s conftest$ac_exeext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   eval "$as_ac_var=yes"
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11521 eval "$as_ac_var=no"
11522 fi
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11524 fi
11525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11527 if test `eval echo '${'$as_ac_var'}'` = yes; then
11528   cat >>confdefs.h <<_ACEOF
11529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11530 _ACEOF
11531
11532 fi
11533 done
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
11547 do
11548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11549 echo "$as_me:$LINENO: checking for $ac_func" >&5
11550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11551 if eval "test \"\${$as_ac_var+set}\" = set"; then
11552   echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554   cat >conftest.$ac_ext <<_ACEOF
11555 #line $LINENO "configure"
11556 #include "confdefs.h"
11557 /* System header to define __stub macros and hopefully few prototypes,
11558     which can conflict with char $ac_func (); below.  */
11559 #include <assert.h>
11560 /* Override any gcc2 internal prototype to avoid an error.  */
11561 #ifdef __cplusplus
11562 extern "C"
11563 #endif
11564 /* We use char because int might match the return type of a gcc2
11565    builtin and then its argument prototype would still apply.  */
11566 char $ac_func ();
11567 char (*f) ();
11568
11569 #ifdef F77_DUMMY_MAIN
11570 #  ifdef __cplusplus
11571      extern "C"
11572 #  endif
11573    int F77_DUMMY_MAIN() { return 1; }
11574 #endif
11575 int
11576 main ()
11577 {
11578 /* The GNU C library defines this for functions which it implements
11579     to always fail with ENOSYS.  Some functions are actually named
11580     something starting with __ and the normal name is an alias.  */
11581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11582 choke me
11583 #else
11584 f = $ac_func;
11585 #endif
11586
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593   (eval $ac_link) 2>&5
11594   ac_status=$?
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); } &&
11597          { ac_try='test -s conftest$ac_exeext'
11598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599   (eval $ac_try) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; }; then
11603   eval "$as_ac_var=yes"
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11607 eval "$as_ac_var=no"
11608 fi
11609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11610 fi
11611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11613 if test `eval echo '${'$as_ac_var'}'` = yes; then
11614   cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11616 _ACEOF
11617
11618 fi
11619 done
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11631 do
11632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11633 echo "$as_me:$LINENO: checking for $ac_func" >&5
11634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11635 if eval "test \"\${$as_ac_var+set}\" = set"; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   cat >conftest.$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11640 #include "confdefs.h"
11641 /* System header to define __stub macros and hopefully few prototypes,
11642     which can conflict with char $ac_func (); below.  */
11643 #include <assert.h>
11644 /* Override any gcc2 internal prototype to avoid an error.  */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 /* We use char because int might match the return type of a gcc2
11649    builtin and then its argument prototype would still apply.  */
11650 char $ac_func ();
11651 char (*f) ();
11652
11653 #ifdef F77_DUMMY_MAIN
11654 #  ifdef __cplusplus
11655      extern "C"
11656 #  endif
11657    int F77_DUMMY_MAIN() { return 1; }
11658 #endif
11659 int
11660 main ()
11661 {
11662 /* The GNU C library defines this for functions which it implements
11663     to always fail with ENOSYS.  Some functions are actually named
11664     something starting with __ and the normal name is an alias.  */
11665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11666 choke me
11667 #else
11668 f = $ac_func;
11669 #endif
11670
11671   ;
11672   return 0;
11673 }
11674 _ACEOF
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677   (eval $ac_link) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } &&
11681          { ac_try='test -s conftest$ac_exeext'
11682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683   (eval $ac_try) 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   eval "$as_ac_var=yes"
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11691 eval "$as_ac_var=no"
11692 fi
11693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11694 fi
11695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11697 if test `eval echo '${'$as_ac_var'}'` = yes; then
11698   cat >>confdefs.h <<_ACEOF
11699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700 _ACEOF
11701
11702 fi
11703 done
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11714 do
11715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11716 echo "$as_me:$LINENO: checking for $ac_func" >&5
11717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11718 if eval "test \"\${$as_ac_var+set}\" = set"; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   cat >conftest.$ac_ext <<_ACEOF
11722 #line $LINENO "configure"
11723 #include "confdefs.h"
11724 /* System header to define __stub macros and hopefully few prototypes,
11725     which can conflict with char $ac_func (); below.  */
11726 #include <assert.h>
11727 /* Override any gcc2 internal prototype to avoid an error.  */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 /* We use char because int might match the return type of a gcc2
11732    builtin and then its argument prototype would still apply.  */
11733 char $ac_func ();
11734 char (*f) ();
11735
11736 #ifdef F77_DUMMY_MAIN
11737 #  ifdef __cplusplus
11738      extern "C"
11739 #  endif
11740    int F77_DUMMY_MAIN() { return 1; }
11741 #endif
11742 int
11743 main ()
11744 {
11745 /* The GNU C library defines this for functions which it implements
11746     to always fail with ENOSYS.  Some functions are actually named
11747     something starting with __ and the normal name is an alias.  */
11748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11749 choke me
11750 #else
11751 f = $ac_func;
11752 #endif
11753
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760   (eval $ac_link) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); } &&
11764          { ac_try='test -s conftest$ac_exeext'
11765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766   (eval $ac_try) 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); }; }; then
11770   eval "$as_ac_var=yes"
11771 else
11772   echo "$as_me: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11774 eval "$as_ac_var=no"
11775 fi
11776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11777 fi
11778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11780 if test `eval echo '${'$as_ac_var'}'` = yes; then
11781   cat >>confdefs.h <<_ACEOF
11782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783 _ACEOF
11784
11785 fi
11786 done
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11799 do
11800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11801 echo "$as_me:$LINENO: checking for $ac_func" >&5
11802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11803 if eval "test \"\${$as_ac_var+set}\" = set"; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806   cat >conftest.$ac_ext <<_ACEOF
11807 #line $LINENO "configure"
11808 #include "confdefs.h"
11809 /* System header to define __stub macros and hopefully few prototypes,
11810     which can conflict with char $ac_func (); below.  */
11811 #include <assert.h>
11812 /* Override any gcc2 internal prototype to avoid an error.  */
11813 #ifdef __cplusplus
11814 extern "C"
11815 #endif
11816 /* We use char because int might match the return type of a gcc2
11817    builtin and then its argument prototype would still apply.  */
11818 char $ac_func ();
11819 char (*f) ();
11820
11821 #ifdef F77_DUMMY_MAIN
11822 #  ifdef __cplusplus
11823      extern "C"
11824 #  endif
11825    int F77_DUMMY_MAIN() { return 1; }
11826 #endif
11827 int
11828 main ()
11829 {
11830 /* The GNU C library defines this for functions which it implements
11831     to always fail with ENOSYS.  Some functions are actually named
11832     something starting with __ and the normal name is an alias.  */
11833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11834 choke me
11835 #else
11836 f = $ac_func;
11837 #endif
11838
11839   ;
11840   return 0;
11841 }
11842 _ACEOF
11843 rm -f conftest.$ac_objext conftest$ac_exeext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845   (eval $ac_link) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } &&
11849          { ac_try='test -s conftest$ac_exeext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   eval "$as_ac_var=yes"
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 eval "$as_ac_var=no"
11860 fi
11861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11862 fi
11863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11865 if test `eval echo '${'$as_ac_var'}'` = yes; then
11866   cat >>confdefs.h <<_ACEOF
11867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11868 _ACEOF
11869
11870 fi
11871 done
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11882 do
11883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11884 echo "$as_me:$LINENO: checking for $ac_func" >&5
11885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11886 if eval "test \"\${$as_ac_var+set}\" = set"; then
11887   echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889   cat >conftest.$ac_ext <<_ACEOF
11890 #line $LINENO "configure"
11891 #include "confdefs.h"
11892 /* System header to define __stub macros and hopefully few prototypes,
11893     which can conflict with char $ac_func (); below.  */
11894 #include <assert.h>
11895 /* Override any gcc2 internal prototype to avoid an error.  */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 /* We use char because int might match the return type of a gcc2
11900    builtin and then its argument prototype would still apply.  */
11901 char $ac_func ();
11902 char (*f) ();
11903
11904 #ifdef F77_DUMMY_MAIN
11905 #  ifdef __cplusplus
11906      extern "C"
11907 #  endif
11908    int F77_DUMMY_MAIN() { return 1; }
11909 #endif
11910 int
11911 main ()
11912 {
11913 /* The GNU C library defines this for functions which it implements
11914     to always fail with ENOSYS.  Some functions are actually named
11915     something starting with __ and the normal name is an alias.  */
11916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11917 choke me
11918 #else
11919 f = $ac_func;
11920 #endif
11921
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928   (eval $ac_link) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -s conftest$ac_exeext'
11933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934   (eval $ac_try) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938   eval "$as_ac_var=yes"
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11942 eval "$as_ac_var=no"
11943 fi
11944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11945 fi
11946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11948 if test `eval echo '${'$as_ac_var'}'` = yes; then
11949   cat >>confdefs.h <<_ACEOF
11950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11951 _ACEOF
11952
11953 fi
11954 done
11955
11956
11957
11958
11959
11960
11961
11962
11963 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11964 do
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975     which can conflict with char $ac_func (); below.  */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error.  */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982    builtin and then its argument prototype would still apply.  */
11983 char $ac_func ();
11984 char (*f) ();
11985
11986 #ifdef F77_DUMMY_MAIN
11987 #  ifdef __cplusplus
11988      extern "C"
11989 #  endif
11990    int F77_DUMMY_MAIN() { return 1; }
11991 #endif
11992 int
11993 main ()
11994 {
11995 /* The GNU C library defines this for functions which it implements
11996     to always fail with ENOSYS.  Some functions are actually named
11997     something starting with __ and the normal name is an alias.  */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11999 choke me
12000 #else
12001 f = $ac_func;
12002 #endif
12003
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010   (eval $ac_link) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -s conftest$ac_exeext'
12015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   eval "$as_ac_var=yes"
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 eval "$as_ac_var=no"
12025 fi
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031   cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 _ACEOF
12034
12035 fi
12036 done
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
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 #ifdef F77_DUMMY_MAIN
12073 #  ifdef __cplusplus
12074      extern "C"
12075 #  endif
12076    int F77_DUMMY_MAIN() { return 1; }
12077 #endif
12078 int
12079 main ()
12080 {
12081 /* The GNU C library defines this for functions which it implements
12082     to always fail with ENOSYS.  Some functions are actually named
12083     something starting with __ and the normal name is an alias.  */
12084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12085 choke me
12086 #else
12087 f = $ac_func;
12088 #endif
12089
12090   ;
12091   return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096   (eval $ac_link) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } &&
12100          { ac_try='test -s conftest$ac_exeext'
12101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102   (eval $ac_try) 2>&5
12103   ac_status=$?
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); }; }; then
12106   eval "$as_ac_var=yes"
12107 else
12108   echo "$as_me: failed program was:" >&5
12109 cat conftest.$ac_ext >&5
12110 eval "$as_ac_var=no"
12111 fi
12112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12113 fi
12114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12116 if test `eval echo '${'$as_ac_var'}'` = yes; then
12117   cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12119 _ACEOF
12120
12121 fi
12122 done
12123
12124
12125
12126
12127
12128 for ac_func in syslog vsyslog getgrouplist timegm
12129 do
12130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12131 echo "$as_me:$LINENO: checking for $ac_func" >&5
12132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12133 if eval "test \"\${$as_ac_var+set}\" = set"; then
12134   echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136   cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12138 #include "confdefs.h"
12139 /* System header to define __stub macros and hopefully few prototypes,
12140     which can conflict with char $ac_func (); below.  */
12141 #include <assert.h>
12142 /* Override any gcc2 internal prototype to avoid an error.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 /* We use char because int might match the return type of a gcc2
12147    builtin and then its argument prototype would still apply.  */
12148 char $ac_func ();
12149 char (*f) ();
12150
12151 #ifdef F77_DUMMY_MAIN
12152 #  ifdef __cplusplus
12153      extern "C"
12154 #  endif
12155    int F77_DUMMY_MAIN() { return 1; }
12156 #endif
12157 int
12158 main ()
12159 {
12160 /* The GNU C library defines this for functions which it implements
12161     to always fail with ENOSYS.  Some functions are actually named
12162     something starting with __ and the normal name is an alias.  */
12163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12164 choke me
12165 #else
12166 f = $ac_func;
12167 #endif
12168
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175   (eval $ac_link) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } &&
12179          { ac_try='test -s conftest$ac_exeext'
12180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181   (eval $ac_try) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; }; then
12185   eval "$as_ac_var=yes"
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 eval "$as_ac_var=no"
12190 fi
12191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12192 fi
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12195 if test `eval echo '${'$as_ac_var'}'` = yes; then
12196   cat >>confdefs.h <<_ACEOF
12197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12198 _ACEOF
12199
12200 fi
12201 done
12202
12203 # setbuffer, shmget, shm_open are needed for smbtorture
12204
12205
12206
12207 for ac_func in setbuffer shmget shm_open
12208 do
12209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12210 echo "$as_me:$LINENO: checking for $ac_func" >&5
12211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12212 if eval "test \"\${$as_ac_var+set}\" = set"; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 #include "confdefs.h"
12218 /* System header to define __stub macros and hopefully few prototypes,
12219     which can conflict with char $ac_func (); below.  */
12220 #include <assert.h>
12221 /* Override any gcc2 internal prototype to avoid an error.  */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 /* We use char because int might match the return type of a gcc2
12226    builtin and then its argument prototype would still apply.  */
12227 char $ac_func ();
12228 char (*f) ();
12229
12230 #ifdef F77_DUMMY_MAIN
12231 #  ifdef __cplusplus
12232      extern "C"
12233 #  endif
12234    int F77_DUMMY_MAIN() { return 1; }
12235 #endif
12236 int
12237 main ()
12238 {
12239 /* The GNU C library defines this for functions which it implements
12240     to always fail with ENOSYS.  Some functions are actually named
12241     something starting with __ and the normal name is an alias.  */
12242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12243 choke me
12244 #else
12245 f = $ac_func;
12246 #endif
12247
12248   ;
12249   return 0;
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254   (eval $ac_link) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -s conftest$ac_exeext'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   eval "$as_ac_var=yes"
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 cat conftest.$ac_ext >&5
12268 eval "$as_ac_var=no"
12269 fi
12270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12271 fi
12272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12274 if test `eval echo '${'$as_ac_var'}'` = yes; then
12275   cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12277 _ACEOF
12278
12279 fi
12280 done
12281
12282
12283 # syscall() is needed for smbwrapper.
12284
12285 for ac_func in syscall
12286 do
12287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12288 echo "$as_me:$LINENO: checking for $ac_func" >&5
12289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12290 if eval "test \"\${$as_ac_var+set}\" = set"; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   cat >conftest.$ac_ext <<_ACEOF
12294 #line $LINENO "configure"
12295 #include "confdefs.h"
12296 /* System header to define __stub macros and hopefully few prototypes,
12297     which can conflict with char $ac_func (); below.  */
12298 #include <assert.h>
12299 /* Override any gcc2 internal prototype to avoid an error.  */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 /* We use char because int might match the return type of a gcc2
12304    builtin and then its argument prototype would still apply.  */
12305 char $ac_func ();
12306 char (*f) ();
12307
12308 #ifdef F77_DUMMY_MAIN
12309 #  ifdef __cplusplus
12310      extern "C"
12311 #  endif
12312    int F77_DUMMY_MAIN() { return 1; }
12313 #endif
12314 int
12315 main ()
12316 {
12317 /* The GNU C library defines this for functions which it implements
12318     to always fail with ENOSYS.  Some functions are actually named
12319     something starting with __ and the normal name is an alias.  */
12320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12321 choke me
12322 #else
12323 f = $ac_func;
12324 #endif
12325
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332   (eval $ac_link) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } &&
12336          { ac_try='test -s conftest$ac_exeext'
12337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338   (eval $ac_try) 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }; }; then
12342   eval "$as_ac_var=yes"
12343 else
12344   echo "$as_me: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 eval "$as_ac_var=no"
12347 fi
12348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12349 fi
12350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12352 if test `eval echo '${'$as_ac_var'}'` = yes; then
12353   cat >>confdefs.h <<_ACEOF
12354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12355 _ACEOF
12356
12357 fi
12358 done
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
12369 do
12370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12371 echo "$as_me:$LINENO: checking for $ac_func" >&5
12372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12373 if eval "test \"\${$as_ac_var+set}\" = set"; then
12374   echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376   cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12378 #include "confdefs.h"
12379 /* System header to define __stub macros and hopefully few prototypes,
12380     which can conflict with char $ac_func (); below.  */
12381 #include <assert.h>
12382 /* Override any gcc2 internal prototype to avoid an error.  */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 /* We use char because int might match the return type of a gcc2
12387    builtin and then its argument prototype would still apply.  */
12388 char $ac_func ();
12389 char (*f) ();
12390
12391 #ifdef F77_DUMMY_MAIN
12392 #  ifdef __cplusplus
12393      extern "C"
12394 #  endif
12395    int F77_DUMMY_MAIN() { return 1; }
12396 #endif
12397 int
12398 main ()
12399 {
12400 /* The GNU C library defines this for functions which it implements
12401     to always fail with ENOSYS.  Some functions are actually named
12402     something starting with __ and the normal name is an alias.  */
12403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12404 choke me
12405 #else
12406 f = $ac_func;
12407 #endif
12408
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415   (eval $ac_link) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -s conftest$ac_exeext'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; }; then
12425   eval "$as_ac_var=yes"
12426 else
12427   echo "$as_me: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 eval "$as_ac_var=no"
12430 fi
12431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12432 fi
12433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12435 if test `eval echo '${'$as_ac_var'}'` = yes; then
12436   cat >>confdefs.h <<_ACEOF
12437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12438 _ACEOF
12439
12440 fi
12441 done
12442
12443
12444
12445
12446
12447
12448
12449
12450 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
12451 do
12452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12453 echo "$as_me:$LINENO: checking for $ac_func" >&5
12454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12455 if eval "test \"\${$as_ac_var+set}\" = set"; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   cat >conftest.$ac_ext <<_ACEOF
12459 #line $LINENO "configure"
12460 #include "confdefs.h"
12461 /* System header to define __stub macros and hopefully few prototypes,
12462     which can conflict with char $ac_func (); below.  */
12463 #include <assert.h>
12464 /* Override any gcc2 internal prototype to avoid an error.  */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 /* We use char because int might match the return type of a gcc2
12469    builtin and then its argument prototype would still apply.  */
12470 char $ac_func ();
12471 char (*f) ();
12472
12473 #ifdef F77_DUMMY_MAIN
12474 #  ifdef __cplusplus
12475      extern "C"
12476 #  endif
12477    int F77_DUMMY_MAIN() { return 1; }
12478 #endif
12479 int
12480 main ()
12481 {
12482 /* The GNU C library defines this for functions which it implements
12483     to always fail with ENOSYS.  Some functions are actually named
12484     something starting with __ and the normal name is an alias.  */
12485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12486 choke me
12487 #else
12488 f = $ac_func;
12489 #endif
12490
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 rm -f conftest.$ac_objext conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497   (eval $ac_link) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } &&
12501          { ac_try='test -s conftest$ac_exeext'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; }; then
12507   eval "$as_ac_var=yes"
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 cat conftest.$ac_ext >&5
12511 eval "$as_ac_var=no"
12512 fi
12513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12514 fi
12515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12517 if test `eval echo '${'$as_ac_var'}'` = yes; then
12518   cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12520 _ACEOF
12521
12522 fi
12523 done
12524
12525
12526
12527 for ac_func in __getcwd _getcwd
12528 do
12529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12530 echo "$as_me:$LINENO: checking for $ac_func" >&5
12531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12532 if eval "test \"\${$as_ac_var+set}\" = set"; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   cat >conftest.$ac_ext <<_ACEOF
12536 #line $LINENO "configure"
12537 #include "confdefs.h"
12538 /* System header to define __stub macros and hopefully few prototypes,
12539     which can conflict with char $ac_func (); below.  */
12540 #include <assert.h>
12541 /* Override any gcc2 internal prototype to avoid an error.  */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 /* We use char because int might match the return type of a gcc2
12546    builtin and then its argument prototype would still apply.  */
12547 char $ac_func ();
12548 char (*f) ();
12549
12550 #ifdef F77_DUMMY_MAIN
12551 #  ifdef __cplusplus
12552      extern "C"
12553 #  endif
12554    int F77_DUMMY_MAIN() { return 1; }
12555 #endif
12556 int
12557 main ()
12558 {
12559 /* The GNU C library defines this for functions which it implements
12560     to always fail with ENOSYS.  Some functions are actually named
12561     something starting with __ and the normal name is an alias.  */
12562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12563 choke me
12564 #else
12565 f = $ac_func;
12566 #endif
12567
12568   ;
12569   return 0;
12570 }
12571 _ACEOF
12572 rm -f conftest.$ac_objext conftest$ac_exeext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12574   (eval $ac_link) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } &&
12578          { ac_try='test -s conftest$ac_exeext'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   eval "$as_ac_var=yes"
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12588 eval "$as_ac_var=no"
12589 fi
12590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12591 fi
12592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12594 if test `eval echo '${'$as_ac_var'}'` = yes; then
12595   cat >>confdefs.h <<_ACEOF
12596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12597 _ACEOF
12598
12599 fi
12600 done
12601
12602
12603
12604
12605 for ac_func in __xstat __fxstat __lxstat
12606 do
12607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608 echo "$as_me:$LINENO: checking for $ac_func" >&5
12609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12610 if eval "test \"\${$as_ac_var+set}\" = set"; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12615 #include "confdefs.h"
12616 /* System header to define __stub macros and hopefully few prototypes,
12617     which can conflict with char $ac_func (); below.  */
12618 #include <assert.h>
12619 /* Override any gcc2 internal prototype to avoid an error.  */
12620 #ifdef __cplusplus
12621 extern "C"
12622 #endif
12623 /* We use char because int might match the return type of a gcc2
12624    builtin and then its argument prototype would still apply.  */
12625 char $ac_func ();
12626 char (*f) ();
12627
12628 #ifdef F77_DUMMY_MAIN
12629 #  ifdef __cplusplus
12630      extern "C"
12631 #  endif
12632    int F77_DUMMY_MAIN() { return 1; }
12633 #endif
12634 int
12635 main ()
12636 {
12637 /* The GNU C library defines this for functions which it implements
12638     to always fail with ENOSYS.  Some functions are actually named
12639     something starting with __ and the normal name is an alias.  */
12640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12641 choke me
12642 #else
12643 f = $ac_func;
12644 #endif
12645
12646   ;
12647   return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652   (eval $ac_link) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } &&
12656          { ac_try='test -s conftest$ac_exeext'
12657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658   (eval $ac_try) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662   eval "$as_ac_var=yes"
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 eval "$as_ac_var=no"
12667 fi
12668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12669 fi
12670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12672 if test `eval echo '${'$as_ac_var'}'` = yes; then
12673   cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12675 _ACEOF
12676
12677 fi
12678 done
12679
12680
12681
12682
12683
12684
12685
12686 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12687 do
12688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12689 echo "$as_me:$LINENO: checking for $ac_func" >&5
12690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12691 if eval "test \"\${$as_ac_var+set}\" = set"; then
12692   echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694   cat >conftest.$ac_ext <<_ACEOF
12695 #line $LINENO "configure"
12696 #include "confdefs.h"
12697 /* System header to define __stub macros and hopefully few prototypes,
12698     which can conflict with char $ac_func (); below.  */
12699 #include <assert.h>
12700 /* Override any gcc2 internal prototype to avoid an error.  */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 /* We use char because int might match the return type of a gcc2
12705    builtin and then its argument prototype would still apply.  */
12706 char $ac_func ();
12707 char (*f) ();
12708
12709 #ifdef F77_DUMMY_MAIN
12710 #  ifdef __cplusplus
12711      extern "C"
12712 #  endif
12713    int F77_DUMMY_MAIN() { return 1; }
12714 #endif
12715 int
12716 main ()
12717 {
12718 /* The GNU C library defines this for functions which it implements
12719     to always fail with ENOSYS.  Some functions are actually named
12720     something starting with __ and the normal name is an alias.  */
12721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12722 choke me
12723 #else
12724 f = $ac_func;
12725 #endif
12726
12727   ;
12728   return 0;
12729 }
12730 _ACEOF
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12733   (eval $ac_link) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } &&
12737          { ac_try='test -s conftest$ac_exeext'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; }; then
12743   eval "$as_ac_var=yes"
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12747 eval "$as_ac_var=no"
12748 fi
12749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12750 fi
12751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12753 if test `eval echo '${'$as_ac_var'}'` = yes; then
12754   cat >>confdefs.h <<_ACEOF
12755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12756 _ACEOF
12757
12758 fi
12759 done
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12770 do
12771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12772 echo "$as_me:$LINENO: checking for $ac_func" >&5
12773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12774 if eval "test \"\${$as_ac_var+set}\" = set"; then
12775   echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777   cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12779 #include "confdefs.h"
12780 /* System header to define __stub macros and hopefully few prototypes,
12781     which can conflict with char $ac_func (); below.  */
12782 #include <assert.h>
12783 /* Override any gcc2 internal prototype to avoid an error.  */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
12787 /* We use char because int might match the return type of a gcc2
12788    builtin and then its argument prototype would still apply.  */
12789 char $ac_func ();
12790 char (*f) ();
12791
12792 #ifdef F77_DUMMY_MAIN
12793 #  ifdef __cplusplus
12794      extern "C"
12795 #  endif
12796    int F77_DUMMY_MAIN() { return 1; }
12797 #endif
12798 int
12799 main ()
12800 {
12801 /* The GNU C library defines this for functions which it implements
12802     to always fail with ENOSYS.  Some functions are actually named
12803     something starting with __ and the normal name is an alias.  */
12804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12805 choke me
12806 #else
12807 f = $ac_func;
12808 #endif
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12816   (eval $ac_link) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          { ac_try='test -s conftest$ac_exeext'
12821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822   (eval $ac_try) 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; }; then
12826   eval "$as_ac_var=yes"
12827 else
12828   echo "$as_me: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12830 eval "$as_ac_var=no"
12831 fi
12832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12833 fi
12834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12836 if test `eval echo '${'$as_ac_var'}'` = yes; then
12837   cat >>confdefs.h <<_ACEOF
12838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12839 _ACEOF
12840
12841 fi
12842 done
12843
12844
12845
12846
12847
12848
12849
12850 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12851 do
12852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12853 echo "$as_me:$LINENO: checking for $ac_func" >&5
12854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12855 if eval "test \"\${$as_ac_var+set}\" = set"; then
12856   echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858   cat >conftest.$ac_ext <<_ACEOF
12859 #line $LINENO "configure"
12860 #include "confdefs.h"
12861 /* System header to define __stub macros and hopefully few prototypes,
12862     which can conflict with char $ac_func (); below.  */
12863 #include <assert.h>
12864 /* Override any gcc2 internal prototype to avoid an error.  */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 /* We use char because int might match the return type of a gcc2
12869    builtin and then its argument prototype would still apply.  */
12870 char $ac_func ();
12871 char (*f) ();
12872
12873 #ifdef F77_DUMMY_MAIN
12874 #  ifdef __cplusplus
12875      extern "C"
12876 #  endif
12877    int F77_DUMMY_MAIN() { return 1; }
12878 #endif
12879 int
12880 main ()
12881 {
12882 /* The GNU C library defines this for functions which it implements
12883     to always fail with ENOSYS.  Some functions are actually named
12884     something starting with __ and the normal name is an alias.  */
12885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12886 choke me
12887 #else
12888 f = $ac_func;
12889 #endif
12890
12891   ;
12892   return 0;
12893 }
12894 _ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897   (eval $ac_link) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); } &&
12901          { ac_try='test -s conftest$ac_exeext'
12902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903   (eval $ac_try) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; }; then
12907   eval "$as_ac_var=yes"
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 cat conftest.$ac_ext >&5
12911 eval "$as_ac_var=no"
12912 fi
12913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12914 fi
12915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12917 if test `eval echo '${'$as_ac_var'}'` = yes; then
12918   cat >>confdefs.h <<_ACEOF
12919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12920 _ACEOF
12921
12922 fi
12923 done
12924
12925
12926
12927
12928
12929
12930
12931
12932 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12933 do
12934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935 echo "$as_me:$LINENO: checking for $ac_func" >&5
12936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12937 if eval "test \"\${$as_ac_var+set}\" = set"; then
12938   echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940   cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943 /* System header to define __stub macros and hopefully few prototypes,
12944     which can conflict with char $ac_func (); below.  */
12945 #include <assert.h>
12946 /* Override any gcc2 internal prototype to avoid an error.  */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 /* We use char because int might match the return type of a gcc2
12951    builtin and then its argument prototype would still apply.  */
12952 char $ac_func ();
12953 char (*f) ();
12954
12955 #ifdef F77_DUMMY_MAIN
12956 #  ifdef __cplusplus
12957      extern "C"
12958 #  endif
12959    int F77_DUMMY_MAIN() { return 1; }
12960 #endif
12961 int
12962 main ()
12963 {
12964 /* The GNU C library defines this for functions which it implements
12965     to always fail with ENOSYS.  Some functions are actually named
12966     something starting with __ and the normal name is an alias.  */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 choke me
12969 #else
12970 f = $ac_func;
12971 #endif
12972
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979   (eval $ac_link) 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } &&
12983          { ac_try='test -s conftest$ac_exeext'
12984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985   (eval $ac_try) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); }; }; then
12989   eval "$as_ac_var=yes"
12990 else
12991   echo "$as_me: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12993 eval "$as_ac_var=no"
12994 fi
12995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12996 fi
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12999 if test `eval echo '${'$as_ac_var'}'` = yes; then
13000   cat >>confdefs.h <<_ACEOF
13001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13002 _ACEOF
13003
13004 fi
13005 done
13006
13007
13008
13009
13010
13011 for ac_func in _write __write _fork __fork
13012 do
13013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13014 echo "$as_me:$LINENO: checking for $ac_func" >&5
13015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13016 if eval "test \"\${$as_ac_var+set}\" = set"; then
13017   echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019   cat >conftest.$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 #include "confdefs.h"
13022 /* System header to define __stub macros and hopefully few prototypes,
13023     which can conflict with char $ac_func (); below.  */
13024 #include <assert.h>
13025 /* Override any gcc2 internal prototype to avoid an error.  */
13026 #ifdef __cplusplus
13027 extern "C"
13028 #endif
13029 /* We use char because int might match the return type of a gcc2
13030    builtin and then its argument prototype would still apply.  */
13031 char $ac_func ();
13032 char (*f) ();
13033
13034 #ifdef F77_DUMMY_MAIN
13035 #  ifdef __cplusplus
13036      extern "C"
13037 #  endif
13038    int F77_DUMMY_MAIN() { return 1; }
13039 #endif
13040 int
13041 main ()
13042 {
13043 /* The GNU C library defines this for functions which it implements
13044     to always fail with ENOSYS.  Some functions are actually named
13045     something starting with __ and the normal name is an alias.  */
13046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13047 choke me
13048 #else
13049 f = $ac_func;
13050 #endif
13051
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058   (eval $ac_link) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } &&
13062          { ac_try='test -s conftest$ac_exeext'
13063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064   (eval $ac_try) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); }; }; then
13068   eval "$as_ac_var=yes"
13069 else
13070   echo "$as_me: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13072 eval "$as_ac_var=no"
13073 fi
13074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13075 fi
13076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13078 if test `eval echo '${'$as_ac_var'}'` = yes; then
13079   cat >>confdefs.h <<_ACEOF
13080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13081 _ACEOF
13082
13083 fi
13084 done
13085
13086
13087
13088
13089
13090
13091
13092 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
13093 do
13094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13095 echo "$as_me:$LINENO: checking for $ac_func" >&5
13096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13097 if eval "test \"\${$as_ac_var+set}\" = set"; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   cat >conftest.$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13102 #include "confdefs.h"
13103 /* System header to define __stub macros and hopefully few prototypes,
13104     which can conflict with char $ac_func (); below.  */
13105 #include <assert.h>
13106 /* Override any gcc2 internal prototype to avoid an error.  */
13107 #ifdef __cplusplus
13108 extern "C"
13109 #endif
13110 /* We use char because int might match the return type of a gcc2
13111    builtin and then its argument prototype would still apply.  */
13112 char $ac_func ();
13113 char (*f) ();
13114
13115 #ifdef F77_DUMMY_MAIN
13116 #  ifdef __cplusplus
13117      extern "C"
13118 #  endif
13119    int F77_DUMMY_MAIN() { return 1; }
13120 #endif
13121 int
13122 main ()
13123 {
13124 /* The GNU C library defines this for functions which it implements
13125     to always fail with ENOSYS.  Some functions are actually named
13126     something starting with __ and the normal name is an alias.  */
13127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13128 choke me
13129 #else
13130 f = $ac_func;
13131 #endif
13132
13133   ;
13134   return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139   (eval $ac_link) 2>&5
13140   ac_status=$?
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); } &&
13143          { ac_try='test -s conftest$ac_exeext'
13144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145   (eval $ac_try) 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); }; }; then
13149   eval "$as_ac_var=yes"
13150 else
13151   echo "$as_me: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13153 eval "$as_ac_var=no"
13154 fi
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13156 fi
13157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13159 if test `eval echo '${'$as_ac_var'}'` = yes; then
13160   cat >>confdefs.h <<_ACEOF
13161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13162 _ACEOF
13163
13164 fi
13165 done
13166
13167
13168
13169
13170
13171
13172
13173
13174 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
13175 do
13176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13177 echo "$as_me:$LINENO: checking for $ac_func" >&5
13178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13179 if eval "test \"\${$as_ac_var+set}\" = set"; then
13180   echo $ECHO_N "(cached) $ECHO_C" >&6
13181 else
13182   cat >conftest.$ac_ext <<_ACEOF
13183 #line $LINENO "configure"
13184 #include "confdefs.h"
13185 /* System header to define __stub macros and hopefully few prototypes,
13186     which can conflict with char $ac_func (); below.  */
13187 #include <assert.h>
13188 /* Override any gcc2 internal prototype to avoid an error.  */
13189 #ifdef __cplusplus
13190 extern "C"
13191 #endif
13192 /* We use char because int might match the return type of a gcc2
13193    builtin and then its argument prototype would still apply.  */
13194 char $ac_func ();
13195 char (*f) ();
13196
13197 #ifdef F77_DUMMY_MAIN
13198 #  ifdef __cplusplus
13199      extern "C"
13200 #  endif
13201    int F77_DUMMY_MAIN() { return 1; }
13202 #endif
13203 int
13204 main ()
13205 {
13206 /* The GNU C library defines this for functions which it implements
13207     to always fail with ENOSYS.  Some functions are actually named
13208     something starting with __ and the normal name is an alias.  */
13209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13210 choke me
13211 #else
13212 f = $ac_func;
13213 #endif
13214
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13221   (eval $ac_link) 2>&5
13222   ac_status=$?
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); } &&
13225          { ac_try='test -s conftest$ac_exeext'
13226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227   (eval $ac_try) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; }; then
13231   eval "$as_ac_var=yes"
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 cat conftest.$ac_ext >&5
13235 eval "$as_ac_var=no"
13236 fi
13237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13238 fi
13239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13241 if test `eval echo '${'$as_ac_var'}'` = yes; then
13242   cat >>confdefs.h <<_ACEOF
13243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13244 _ACEOF
13245
13246 fi
13247 done
13248
13249
13250
13251
13252
13253
13254
13255 for ac_func in pread _pread __pread pread64 _pread64 __pread64
13256 do
13257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13258 echo "$as_me:$LINENO: checking for $ac_func" >&5
13259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13260 if eval "test \"\${$as_ac_var+set}\" = set"; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263   cat >conftest.$ac_ext <<_ACEOF
13264 #line $LINENO "configure"
13265 #include "confdefs.h"
13266 /* System header to define __stub macros and hopefully few prototypes,
13267     which can conflict with char $ac_func (); below.  */
13268 #include <assert.h>
13269 /* Override any gcc2 internal prototype to avoid an error.  */
13270 #ifdef __cplusplus
13271 extern "C"
13272 #endif
13273 /* We use char because int might match the return type of a gcc2
13274    builtin and then its argument prototype would still apply.  */
13275 char $ac_func ();
13276 char (*f) ();
13277
13278 #ifdef F77_DUMMY_MAIN
13279 #  ifdef __cplusplus
13280      extern "C"
13281 #  endif
13282    int F77_DUMMY_MAIN() { return 1; }
13283 #endif
13284 int
13285 main ()
13286 {
13287 /* The GNU C library defines this for functions which it implements
13288     to always fail with ENOSYS.  Some functions are actually named
13289     something starting with __ and the normal name is an alias.  */
13290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13291 choke me
13292 #else
13293 f = $ac_func;
13294 #endif
13295
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302   (eval $ac_link) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } &&
13306          { ac_try='test -s conftest$ac_exeext'
13307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308   (eval $ac_try) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   eval "$as_ac_var=yes"
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13316 eval "$as_ac_var=no"
13317 fi
13318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13319 fi
13320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13322 if test `eval echo '${'$as_ac_var'}'` = yes; then
13323   cat >>confdefs.h <<_ACEOF
13324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13325 _ACEOF
13326
13327 fi
13328 done
13329
13330
13331
13332
13333
13334
13335
13336 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
13337 do
13338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13339 echo "$as_me:$LINENO: checking for $ac_func" >&5
13340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_var+set}\" = set"; then
13342   echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344   cat >conftest.$ac_ext <<_ACEOF
13345 #line $LINENO "configure"
13346 #include "confdefs.h"
13347 /* System header to define __stub macros and hopefully few prototypes,
13348     which can conflict with char $ac_func (); below.  */
13349 #include <assert.h>
13350 /* Override any gcc2 internal prototype to avoid an error.  */
13351 #ifdef __cplusplus
13352 extern "C"
13353 #endif
13354 /* We use char because int might match the return type of a gcc2
13355    builtin and then its argument prototype would still apply.  */
13356 char $ac_func ();
13357 char (*f) ();
13358
13359 #ifdef F77_DUMMY_MAIN
13360 #  ifdef __cplusplus
13361      extern "C"
13362 #  endif
13363    int F77_DUMMY_MAIN() { return 1; }
13364 #endif
13365 int
13366 main ()
13367 {
13368 /* The GNU C library defines this for functions which it implements
13369     to always fail with ENOSYS.  Some functions are actually named
13370     something starting with __ and the normal name is an alias.  */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13372 choke me
13373 #else
13374 f = $ac_func;
13375 #endif
13376
13377   ;
13378   return 0;
13379 }
13380 _ACEOF
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13383   (eval $ac_link) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); } &&
13387          { ac_try='test -s conftest$ac_exeext'
13388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389   (eval $ac_try) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; }; then
13393   eval "$as_ac_var=yes"
13394 else
13395   echo "$as_me: failed program was:" >&5
13396 cat conftest.$ac_ext >&5
13397 eval "$as_ac_var=no"
13398 fi
13399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13400 fi
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13403 if test `eval echo '${'$as_ac_var'}'` = yes; then
13404   cat >>confdefs.h <<_ACEOF
13405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13406 _ACEOF
13407
13408 fi
13409 done
13410
13411
13412
13413
13414
13415 for ac_func in open64 _open64 __open64 creat64
13416 do
13417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13418 echo "$as_me:$LINENO: checking for $ac_func" >&5
13419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13420 if eval "test \"\${$as_ac_var+set}\" = set"; then
13421   echo $ECHO_N "(cached) $ECHO_C" >&6
13422 else
13423   cat >conftest.$ac_ext <<_ACEOF
13424 #line $LINENO "configure"
13425 #include "confdefs.h"
13426 /* System header to define __stub macros and hopefully few prototypes,
13427     which can conflict with char $ac_func (); below.  */
13428 #include <assert.h>
13429 /* Override any gcc2 internal prototype to avoid an error.  */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 /* We use char because int might match the return type of a gcc2
13434    builtin and then its argument prototype would still apply.  */
13435 char $ac_func ();
13436 char (*f) ();
13437
13438 #ifdef F77_DUMMY_MAIN
13439 #  ifdef __cplusplus
13440      extern "C"
13441 #  endif
13442    int F77_DUMMY_MAIN() { return 1; }
13443 #endif
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 #
13492 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
13493 #
13494
13495 if test x$ac_cv_func_stat64 = xno ; then
13496   echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
13497 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
13498   cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13501
13502 #if defined(HAVE_UNISTD_H)
13503 #include <unistd.h>
13504 #endif
13505 #include <sys/stat.h>
13506
13507 #ifdef F77_DUMMY_MAIN
13508 #  ifdef __cplusplus
13509      extern "C"
13510 #  endif
13511    int F77_DUMMY_MAIN() { return 1; }
13512 #endif
13513 int
13514 main ()
13515 {
13516 struct stat64 st64; exit(stat64(".",&st64));
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523   (eval $ac_link) 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -s conftest$ac_exeext'
13528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529   (eval $ac_try) 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); }; }; then
13533   ac_cv_func_stat64=yes
13534 else
13535   echo "$as_me: failed program was:" >&5
13536 cat conftest.$ac_ext >&5
13537 fi
13538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13539   echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
13540 echo "${ECHO_T}$ac_cv_func_stat64" >&6
13541   if test x$ac_cv_func_stat64 = xyes ; then
13542
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_STAT64 1
13545 _ACEOF
13546
13547   fi
13548 fi
13549
13550 if test x$ac_cv_func_lstat64 = xno ; then
13551   echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
13552 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
13553   cat >conftest.$ac_ext <<_ACEOF
13554 #line $LINENO "configure"
13555 #include "confdefs.h"
13556
13557 #if defined(HAVE_UNISTD_H)
13558 #include <unistd.h>
13559 #endif
13560 #include <sys/stat.h>
13561
13562 #ifdef F77_DUMMY_MAIN
13563 #  ifdef __cplusplus
13564      extern "C"
13565 #  endif
13566    int F77_DUMMY_MAIN() { return 1; }
13567 #endif
13568 int
13569 main ()
13570 {
13571 struct stat64 st64; exit(lstat64(".",&st64));
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578   (eval $ac_link) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); } &&
13582          { ac_try='test -s conftest$ac_exeext'
13583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584   (eval $ac_try) 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; }; then
13588   ac_cv_func_lstat64=yes
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13592 fi
13593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13594   echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
13595 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
13596   if test x$ac_cv_func_lstat64 = xyes ; then
13597     cat >>confdefs.h <<\_ACEOF
13598 #define HAVE_LSTAT64 Whether lstat64() is available
13599 _ACEOF
13600
13601   fi
13602 fi
13603
13604 if test x$ac_cv_func_fstat64 = xno ; then
13605   echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
13606 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
13607   cat >conftest.$ac_ext <<_ACEOF
13608 #line $LINENO "configure"
13609 #include "confdefs.h"
13610
13611 #if defined(HAVE_UNISTD_H)
13612 #include <unistd.h>
13613 #endif
13614 #include <sys/stat.h>
13615
13616 #ifdef F77_DUMMY_MAIN
13617 #  ifdef __cplusplus
13618      extern "C"
13619 #  endif
13620    int F77_DUMMY_MAIN() { return 1; }
13621 #endif
13622 int
13623 main ()
13624 {
13625 struct stat64 st64; exit(fstat64(0,&st64));
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632   (eval $ac_link) 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); } &&
13636          { ac_try='test -s conftest$ac_exeext'
13637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638   (eval $ac_try) 2>&5
13639   ac_status=$?
13640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641   (exit $ac_status); }; }; then
13642   ac_cv_func_fstat64=yes
13643 else
13644   echo "$as_me: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13646 fi
13647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13648   echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
13649 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
13650   if test x$ac_cv_func_fstat64 = xyes ; then
13651
13652 cat >>confdefs.h <<\_ACEOF
13653 #define HAVE_FSTAT64 1
13654 _ACEOF
13655
13656   fi
13657 fi
13658
13659 #####################################
13660 # we might need the resolv library on some systems
13661
13662 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
13663 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
13664 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   ac_check_lib_save_LIBS=$LIBS
13668 LIBS="-lresolv  $LIBS"
13669 cat >conftest.$ac_ext <<_ACEOF
13670 #line $LINENO "configure"
13671 #include "confdefs.h"
13672
13673 /* Override any gcc2 internal prototype to avoid an error.  */
13674 #ifdef __cplusplus
13675 extern "C"
13676 #endif
13677 /* We use char because int might match the return type of a gcc2
13678    builtin and then its argument prototype would still apply.  */
13679 char dn_expand ();
13680 #ifdef F77_DUMMY_MAIN
13681 #  ifdef __cplusplus
13682      extern "C"
13683 #  endif
13684    int F77_DUMMY_MAIN() { return 1; }
13685 #endif
13686 int
13687 main ()
13688 {
13689 dn_expand ();
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696   (eval $ac_link) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } &&
13700          { ac_try='test -s conftest$ac_exeext'
13701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702   (eval $ac_try) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; }; then
13706   ac_cv_lib_resolv_dn_expand=yes
13707 else
13708   echo "$as_me: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 ac_cv_lib_resolv_dn_expand=no
13711 fi
13712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13714 fi
13715 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
13716 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
13717 if test $ac_cv_lib_resolv_dn_expand = yes; then
13718   cat >>confdefs.h <<_ACEOF
13719 #define HAVE_LIBRESOLV 1
13720 _ACEOF
13721
13722   LIBS="-lresolv $LIBS"
13723
13724 fi
13725
13726
13727 #
13728 # Check for the functions putprpwnam, set_auth_parameters,
13729 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13730 # Needed for OSF1 and HPUX.
13731 #
13732
13733 case "$LIBS" in
13734   *-lsecurity*)
13735 for ac_func in putprpwnam
13736 do
13737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13738 echo "$as_me:$LINENO: checking for $ac_func" >&5
13739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13740 if eval "test \"\${$as_ac_var+set}\" = set"; then
13741   echo $ECHO_N "(cached) $ECHO_C" >&6
13742 else
13743   cat >conftest.$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13745 #include "confdefs.h"
13746 /* System header to define __stub macros and hopefully few prototypes,
13747     which can conflict with char $ac_func (); below.  */
13748 #include <assert.h>
13749 /* Override any gcc2 internal prototype to avoid an error.  */
13750 #ifdef __cplusplus
13751 extern "C"
13752 #endif
13753 /* We use char because int might match the return type of a gcc2
13754    builtin and then its argument prototype would still apply.  */
13755 char $ac_func ();
13756 char (*f) ();
13757
13758 #ifdef F77_DUMMY_MAIN
13759 #  ifdef __cplusplus
13760      extern "C"
13761 #  endif
13762    int F77_DUMMY_MAIN() { return 1; }
13763 #endif
13764 int
13765 main ()
13766 {
13767 /* The GNU C library defines this for functions which it implements
13768     to always fail with ENOSYS.  Some functions are actually named
13769     something starting with __ and the normal name is an alias.  */
13770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13771 choke me
13772 #else
13773 f = $ac_func;
13774 #endif
13775
13776   ;
13777   return 0;
13778 }
13779 _ACEOF
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13782   (eval $ac_link) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } &&
13786          { ac_try='test -s conftest$ac_exeext'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; }; then
13792   eval "$as_ac_var=yes"
13793 else
13794   echo "$as_me: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 eval "$as_ac_var=no"
13797 fi
13798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13799 fi
13800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13802 if test `eval echo '${'$as_ac_var'}'` = yes; then
13803   cat >>confdefs.h <<_ACEOF
13804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13805 _ACEOF
13806
13807 fi
13808 done
13809  ;;
13810   *)
13811 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13812 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13813 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13814   echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816   ac_check_lib_save_LIBS=$LIBS
13817 LIBS="-lsecurity  $LIBS"
13818 cat >conftest.$ac_ext <<_ACEOF
13819 #line $LINENO "configure"
13820 #include "confdefs.h"
13821
13822 /* Override any gcc2 internal prototype to avoid an error.  */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 /* We use char because int might match the return type of a gcc2
13827    builtin and then its argument prototype would still apply.  */
13828 char putprpwnam ();
13829 #ifdef F77_DUMMY_MAIN
13830 #  ifdef __cplusplus
13831      extern "C"
13832 #  endif
13833    int F77_DUMMY_MAIN() { return 1; }
13834 #endif
13835 int
13836 main ()
13837 {
13838 putprpwnam ();
13839   ;
13840   return 0;
13841 }
13842 _ACEOF
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845   (eval $ac_link) 2>&5
13846   ac_status=$?
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } &&
13849          { ac_try='test -s conftest$ac_exeext'
13850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; }; then
13855   ac_cv_lib_security_putprpwnam=yes
13856 else
13857   echo "$as_me: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13859 ac_cv_lib_security_putprpwnam=no
13860 fi
13861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13863 fi
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13865 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13866 if test $ac_cv_lib_security_putprpwnam = yes; then
13867   cat >>confdefs.h <<_ACEOF
13868 #define HAVE_LIBSECURITY 1
13869 _ACEOF
13870
13871   LIBS="-lsecurity $LIBS"
13872
13873 fi
13874
13875
13876 for ac_func in putprpwnam
13877 do
13878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13879 echo "$as_me:$LINENO: checking for $ac_func" >&5
13880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13881 if eval "test \"\${$as_ac_var+set}\" = set"; then
13882   echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884   cat >conftest.$ac_ext <<_ACEOF
13885 #line $LINENO "configure"
13886 #include "confdefs.h"
13887 /* System header to define __stub macros and hopefully few prototypes,
13888     which can conflict with char $ac_func (); below.  */
13889 #include <assert.h>
13890 /* Override any gcc2 internal prototype to avoid an error.  */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 /* We use char because int might match the return type of a gcc2
13895    builtin and then its argument prototype would still apply.  */
13896 char $ac_func ();
13897 char (*f) ();
13898
13899 #ifdef F77_DUMMY_MAIN
13900 #  ifdef __cplusplus
13901      extern "C"
13902 #  endif
13903    int F77_DUMMY_MAIN() { return 1; }
13904 #endif
13905 int
13906 main ()
13907 {
13908 /* The GNU C library defines this for functions which it implements
13909     to always fail with ENOSYS.  Some functions are actually named
13910     something starting with __ and the normal name is an alias.  */
13911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13912 choke me
13913 #else
13914 f = $ac_func;
13915 #endif
13916
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923   (eval $ac_link) 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); } &&
13927          { ac_try='test -s conftest$ac_exeext'
13928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929   (eval $ac_try) 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); }; }; then
13933   eval "$as_ac_var=yes"
13934 else
13935   echo "$as_me: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 eval "$as_ac_var=no"
13938 fi
13939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13940 fi
13941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13943 if test `eval echo '${'$as_ac_var'}'` = yes; then
13944   cat >>confdefs.h <<_ACEOF
13945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13946 _ACEOF
13947
13948 fi
13949 done
13950
13951   ;;
13952   esac
13953
13954 case "$LIBS" in
13955   *-lsec*)
13956 for ac_func in putprpwnam
13957 do
13958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13959 echo "$as_me:$LINENO: checking for $ac_func" >&5
13960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13961 if eval "test \"\${$as_ac_var+set}\" = set"; then
13962   echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964   cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 #include "confdefs.h"
13967 /* System header to define __stub macros and hopefully few prototypes,
13968     which can conflict with char $ac_func (); below.  */
13969 #include <assert.h>
13970 /* Override any gcc2 internal prototype to avoid an error.  */
13971 #ifdef __cplusplus
13972 extern "C"
13973 #endif
13974 /* We use char because int might match the return type of a gcc2
13975    builtin and then its argument prototype would still apply.  */
13976 char $ac_func ();
13977 char (*f) ();
13978
13979 #ifdef F77_DUMMY_MAIN
13980 #  ifdef __cplusplus
13981      extern "C"
13982 #  endif
13983    int F77_DUMMY_MAIN() { return 1; }
13984 #endif
13985 int
13986 main ()
13987 {
13988 /* The GNU C library defines this for functions which it implements
13989     to always fail with ENOSYS.  Some functions are actually named
13990     something starting with __ and the normal name is an alias.  */
13991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13992 choke me
13993 #else
13994 f = $ac_func;
13995 #endif
13996
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003   (eval $ac_link) 2>&5
14004   ac_status=$?
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } &&
14007          { ac_try='test -s conftest$ac_exeext'
14008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009   (eval $ac_try) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }; then
14013   eval "$as_ac_var=yes"
14014 else
14015   echo "$as_me: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 eval "$as_ac_var=no"
14018 fi
14019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14020 fi
14021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14023 if test `eval echo '${'$as_ac_var'}'` = yes; then
14024   cat >>confdefs.h <<_ACEOF
14025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14026 _ACEOF
14027
14028 fi
14029 done
14030  ;;
14031   *)
14032 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
14033 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
14034 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lsec  $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 #line $LINENO "configure"
14041 #include "confdefs.h"
14042
14043 /* Override any gcc2 internal prototype to avoid an error.  */
14044 #ifdef __cplusplus
14045 extern "C"
14046 #endif
14047 /* We use char because int might match the return type of a gcc2
14048    builtin and then its argument prototype would still apply.  */
14049 char putprpwnam ();
14050 #ifdef F77_DUMMY_MAIN
14051 #  ifdef __cplusplus
14052      extern "C"
14053 #  endif
14054    int F77_DUMMY_MAIN() { return 1; }
14055 #endif
14056 int
14057 main ()
14058 {
14059 putprpwnam ();
14060   ;
14061   return 0;
14062 }
14063 _ACEOF
14064 rm -f conftest.$ac_objext conftest$ac_exeext
14065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14066   (eval $ac_link) 2>&5
14067   ac_status=$?
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } &&
14070          { ac_try='test -s conftest$ac_exeext'
14071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072   (eval $ac_try) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; }; then
14076   ac_cv_lib_sec_putprpwnam=yes
14077 else
14078   echo "$as_me: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 ac_cv_lib_sec_putprpwnam=no
14081 fi
14082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14084 fi
14085 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
14086 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
14087 if test $ac_cv_lib_sec_putprpwnam = yes; then
14088   cat >>confdefs.h <<_ACEOF
14089 #define HAVE_LIBSEC 1
14090 _ACEOF
14091
14092   LIBS="-lsec $LIBS"
14093
14094 fi
14095
14096
14097 for ac_func in putprpwnam
14098 do
14099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14100 echo "$as_me:$LINENO: checking for $ac_func" >&5
14101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14102 if eval "test \"\${$as_ac_var+set}\" = set"; then
14103   echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105   cat >conftest.$ac_ext <<_ACEOF
14106 #line $LINENO "configure"
14107 #include "confdefs.h"
14108 /* System header to define __stub macros and hopefully few prototypes,
14109     which can conflict with char $ac_func (); below.  */
14110 #include <assert.h>
14111 /* Override any gcc2 internal prototype to avoid an error.  */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 /* We use char because int might match the return type of a gcc2
14116    builtin and then its argument prototype would still apply.  */
14117 char $ac_func ();
14118 char (*f) ();
14119
14120 #ifdef F77_DUMMY_MAIN
14121 #  ifdef __cplusplus
14122      extern "C"
14123 #  endif
14124    int F77_DUMMY_MAIN() { return 1; }
14125 #endif
14126 int
14127 main ()
14128 {
14129 /* The GNU C library defines this for functions which it implements
14130     to always fail with ENOSYS.  Some functions are actually named
14131     something starting with __ and the normal name is an alias.  */
14132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14133 choke me
14134 #else
14135 f = $ac_func;
14136 #endif
14137
14138   ;
14139   return 0;
14140 }
14141 _ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144   (eval $ac_link) 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } &&
14148          { ac_try='test -s conftest$ac_exeext'
14149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150   (eval $ac_try) 2>&5
14151   ac_status=$?
14152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153   (exit $ac_status); }; }; then
14154   eval "$as_ac_var=yes"
14155 else
14156   echo "$as_me: failed program was:" >&5
14157 cat conftest.$ac_ext >&5
14158 eval "$as_ac_var=no"
14159 fi
14160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14161 fi
14162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14164 if test `eval echo '${'$as_ac_var'}'` = yes; then
14165   cat >>confdefs.h <<_ACEOF
14166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14167 _ACEOF
14168
14169 fi
14170 done
14171
14172   ;;
14173   esac
14174
14175
14176 case "$LIBS" in
14177   *-lsecurity*)
14178 for ac_func in set_auth_parameters
14179 do
14180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14181 echo "$as_me:$LINENO: checking for $ac_func" >&5
14182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14183 if eval "test \"\${$as_ac_var+set}\" = set"; then
14184   echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186   cat >conftest.$ac_ext <<_ACEOF
14187 #line $LINENO "configure"
14188 #include "confdefs.h"
14189 /* System header to define __stub macros and hopefully few prototypes,
14190     which can conflict with char $ac_func (); below.  */
14191 #include <assert.h>
14192 /* Override any gcc2 internal prototype to avoid an error.  */
14193 #ifdef __cplusplus
14194 extern "C"
14195 #endif
14196 /* We use char because int might match the return type of a gcc2
14197    builtin and then its argument prototype would still apply.  */
14198 char $ac_func ();
14199 char (*f) ();
14200
14201 #ifdef F77_DUMMY_MAIN
14202 #  ifdef __cplusplus
14203      extern "C"
14204 #  endif
14205    int F77_DUMMY_MAIN() { return 1; }
14206 #endif
14207 int
14208 main ()
14209 {
14210 /* The GNU C library defines this for functions which it implements
14211     to always fail with ENOSYS.  Some functions are actually named
14212     something starting with __ and the normal name is an alias.  */
14213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14214 choke me
14215 #else
14216 f = $ac_func;
14217 #endif
14218
14219   ;
14220   return 0;
14221 }
14222 _ACEOF
14223 rm -f conftest.$ac_objext conftest$ac_exeext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14225   (eval $ac_link) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -s conftest$ac_exeext'
14230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231   (eval $ac_try) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }; then
14235   eval "$as_ac_var=yes"
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 cat conftest.$ac_ext >&5
14239 eval "$as_ac_var=no"
14240 fi
14241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14242 fi
14243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14245 if test `eval echo '${'$as_ac_var'}'` = yes; then
14246   cat >>confdefs.h <<_ACEOF
14247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14248 _ACEOF
14249
14250 fi
14251 done
14252  ;;
14253   *)
14254 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
14255 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
14256 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
14257   echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259   ac_check_lib_save_LIBS=$LIBS
14260 LIBS="-lsecurity  $LIBS"
14261 cat >conftest.$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14263 #include "confdefs.h"
14264
14265 /* Override any gcc2 internal prototype to avoid an error.  */
14266 #ifdef __cplusplus
14267 extern "C"
14268 #endif
14269 /* We use char because int might match the return type of a gcc2
14270    builtin and then its argument prototype would still apply.  */
14271 char set_auth_parameters ();
14272 #ifdef F77_DUMMY_MAIN
14273 #  ifdef __cplusplus
14274      extern "C"
14275 #  endif
14276    int F77_DUMMY_MAIN() { return 1; }
14277 #endif
14278 int
14279 main ()
14280 {
14281 set_auth_parameters ();
14282   ;
14283   return 0;
14284 }
14285 _ACEOF
14286 rm -f conftest.$ac_objext conftest$ac_exeext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14288   (eval $ac_link) 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); } &&
14292          { ac_try='test -s conftest$ac_exeext'
14293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294   (eval $ac_try) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); }; }; then
14298   ac_cv_lib_security_set_auth_parameters=yes
14299 else
14300   echo "$as_me: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14302 ac_cv_lib_security_set_auth_parameters=no
14303 fi
14304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14306 fi
14307 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
14308 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
14309 if test $ac_cv_lib_security_set_auth_parameters = yes; then
14310   cat >>confdefs.h <<_ACEOF
14311 #define HAVE_LIBSECURITY 1
14312 _ACEOF
14313
14314   LIBS="-lsecurity $LIBS"
14315
14316 fi
14317
14318
14319 for ac_func in set_auth_parameters
14320 do
14321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14322 echo "$as_me:$LINENO: checking for $ac_func" >&5
14323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14324 if eval "test \"\${$as_ac_var+set}\" = set"; then
14325   echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327   cat >conftest.$ac_ext <<_ACEOF
14328 #line $LINENO "configure"
14329 #include "confdefs.h"
14330 /* System header to define __stub macros and hopefully few prototypes,
14331     which can conflict with char $ac_func (); below.  */
14332 #include <assert.h>
14333 /* Override any gcc2 internal prototype to avoid an error.  */
14334 #ifdef __cplusplus
14335 extern "C"
14336 #endif
14337 /* We use char because int might match the return type of a gcc2
14338    builtin and then its argument prototype would still apply.  */
14339 char $ac_func ();
14340 char (*f) ();
14341
14342 #ifdef F77_DUMMY_MAIN
14343 #  ifdef __cplusplus
14344      extern "C"
14345 #  endif
14346    int F77_DUMMY_MAIN() { return 1; }
14347 #endif
14348 int
14349 main ()
14350 {
14351 /* The GNU C library defines this for functions which it implements
14352     to always fail with ENOSYS.  Some functions are actually named
14353     something starting with __ and the normal name is an alias.  */
14354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14355 choke me
14356 #else
14357 f = $ac_func;
14358 #endif
14359
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 rm -f conftest.$ac_objext conftest$ac_exeext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14366   (eval $ac_link) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); } &&
14370          { ac_try='test -s conftest$ac_exeext'
14371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372   (eval $ac_try) 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); }; }; then
14376   eval "$as_ac_var=yes"
14377 else
14378   echo "$as_me: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14380 eval "$as_ac_var=no"
14381 fi
14382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14383 fi
14384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14386 if test `eval echo '${'$as_ac_var'}'` = yes; then
14387   cat >>confdefs.h <<_ACEOF
14388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14389 _ACEOF
14390
14391 fi
14392 done
14393
14394   ;;
14395   esac
14396
14397 case "$LIBS" in
14398   *-lsec*)
14399 for ac_func in set_auth_parameters
14400 do
14401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14402 echo "$as_me:$LINENO: checking for $ac_func" >&5
14403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14404 if eval "test \"\${$as_ac_var+set}\" = set"; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 #line $LINENO "configure"
14409 #include "confdefs.h"
14410 /* System header to define __stub macros and hopefully few prototypes,
14411     which can conflict with char $ac_func (); below.  */
14412 #include <assert.h>
14413 /* Override any gcc2 internal prototype to avoid an error.  */
14414 #ifdef __cplusplus
14415 extern "C"
14416 #endif
14417 /* We use char because int might match the return type of a gcc2
14418    builtin and then its argument prototype would still apply.  */
14419 char $ac_func ();
14420 char (*f) ();
14421
14422 #ifdef F77_DUMMY_MAIN
14423 #  ifdef __cplusplus
14424      extern "C"
14425 #  endif
14426    int F77_DUMMY_MAIN() { return 1; }
14427 #endif
14428 int
14429 main ()
14430 {
14431 /* The GNU C library defines this for functions which it implements
14432     to always fail with ENOSYS.  Some functions are actually named
14433     something starting with __ and the normal name is an alias.  */
14434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14435 choke me
14436 #else
14437 f = $ac_func;
14438 #endif
14439
14440   ;
14441   return 0;
14442 }
14443 _ACEOF
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14446   (eval $ac_link) 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); } &&
14450          { ac_try='test -s conftest$ac_exeext'
14451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452   (eval $ac_try) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; }; then
14456   eval "$as_ac_var=yes"
14457 else
14458   echo "$as_me: failed program was:" >&5
14459 cat conftest.$ac_ext >&5
14460 eval "$as_ac_var=no"
14461 fi
14462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14463 fi
14464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14466 if test `eval echo '${'$as_ac_var'}'` = yes; then
14467   cat >>confdefs.h <<_ACEOF
14468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14469 _ACEOF
14470
14471 fi
14472 done
14473  ;;
14474   *)
14475 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
14476 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
14477 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480   ac_check_lib_save_LIBS=$LIBS
14481 LIBS="-lsec  $LIBS"
14482 cat >conftest.$ac_ext <<_ACEOF
14483 #line $LINENO "configure"
14484 #include "confdefs.h"
14485
14486 /* Override any gcc2 internal prototype to avoid an error.  */
14487 #ifdef __cplusplus
14488 extern "C"
14489 #endif
14490 /* We use char because int might match the return type of a gcc2
14491    builtin and then its argument prototype would still apply.  */
14492 char set_auth_parameters ();
14493 #ifdef F77_DUMMY_MAIN
14494 #  ifdef __cplusplus
14495      extern "C"
14496 #  endif
14497    int F77_DUMMY_MAIN() { return 1; }
14498 #endif
14499 int
14500 main ()
14501 {
14502 set_auth_parameters ();
14503   ;
14504   return 0;
14505 }
14506 _ACEOF
14507 rm -f conftest.$ac_objext conftest$ac_exeext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509   (eval $ac_link) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -s conftest$ac_exeext'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; }; then
14519   ac_cv_lib_sec_set_auth_parameters=yes
14520 else
14521   echo "$as_me: failed program was:" >&5
14522 cat conftest.$ac_ext >&5
14523 ac_cv_lib_sec_set_auth_parameters=no
14524 fi
14525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14526 LIBS=$ac_check_lib_save_LIBS
14527 fi
14528 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
14529 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
14530 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
14531   cat >>confdefs.h <<_ACEOF
14532 #define HAVE_LIBSEC 1
14533 _ACEOF
14534
14535   LIBS="-lsec $LIBS"
14536
14537 fi
14538
14539
14540 for ac_func in set_auth_parameters
14541 do
14542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14543 echo "$as_me:$LINENO: checking for $ac_func" >&5
14544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14545 if eval "test \"\${$as_ac_var+set}\" = set"; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14550 #include "confdefs.h"
14551 /* System header to define __stub macros and hopefully few prototypes,
14552     which can conflict with char $ac_func (); below.  */
14553 #include <assert.h>
14554 /* Override any gcc2 internal prototype to avoid an error.  */
14555 #ifdef __cplusplus
14556 extern "C"
14557 #endif
14558 /* We use char because int might match the return type of a gcc2
14559    builtin and then its argument prototype would still apply.  */
14560 char $ac_func ();
14561 char (*f) ();
14562
14563 #ifdef F77_DUMMY_MAIN
14564 #  ifdef __cplusplus
14565      extern "C"
14566 #  endif
14567    int F77_DUMMY_MAIN() { return 1; }
14568 #endif
14569 int
14570 main ()
14571 {
14572 /* The GNU C library defines this for functions which it implements
14573     to always fail with ENOSYS.  Some functions are actually named
14574     something starting with __ and the normal name is an alias.  */
14575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14576 choke me
14577 #else
14578 f = $ac_func;
14579 #endif
14580
14581   ;
14582   return 0;
14583 }
14584 _ACEOF
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14587   (eval $ac_link) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } &&
14591          { ac_try='test -s conftest$ac_exeext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   eval "$as_ac_var=yes"
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 cat conftest.$ac_ext >&5
14601 eval "$as_ac_var=no"
14602 fi
14603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14604 fi
14605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608   cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14610 _ACEOF
14611
14612 fi
14613 done
14614
14615   ;;
14616   esac
14617
14618
14619 # UnixWare 7.x has its getspnam in -lgen
14620 case "$LIBS" in
14621   *-lgen*)
14622 for ac_func in getspnam
14623 do
14624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14625 echo "$as_me:$LINENO: checking for $ac_func" >&5
14626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14627 if eval "test \"\${$as_ac_var+set}\" = set"; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 #line $LINENO "configure"
14632 #include "confdefs.h"
14633 /* System header to define __stub macros and hopefully few prototypes,
14634     which can conflict with char $ac_func (); below.  */
14635 #include <assert.h>
14636 /* Override any gcc2 internal prototype to avoid an error.  */
14637 #ifdef __cplusplus
14638 extern "C"
14639 #endif
14640 /* We use char because int might match the return type of a gcc2
14641    builtin and then its argument prototype would still apply.  */
14642 char $ac_func ();
14643 char (*f) ();
14644
14645 #ifdef F77_DUMMY_MAIN
14646 #  ifdef __cplusplus
14647      extern "C"
14648 #  endif
14649    int F77_DUMMY_MAIN() { return 1; }
14650 #endif
14651 int
14652 main ()
14653 {
14654 /* The GNU C library defines this for functions which it implements
14655     to always fail with ENOSYS.  Some functions are actually named
14656     something starting with __ and the normal name is an alias.  */
14657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14658 choke me
14659 #else
14660 f = $ac_func;
14661 #endif
14662
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669   (eval $ac_link) 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); } &&
14673          { ac_try='test -s conftest$ac_exeext'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   eval "$as_ac_var=yes"
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 cat conftest.$ac_ext >&5
14683 eval "$as_ac_var=no"
14684 fi
14685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14686 fi
14687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14689 if test `eval echo '${'$as_ac_var'}'` = yes; then
14690   cat >>confdefs.h <<_ACEOF
14691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14692 _ACEOF
14693
14694 fi
14695 done
14696  ;;
14697   *)
14698 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14699 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14700 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14701   echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703   ac_check_lib_save_LIBS=$LIBS
14704 LIBS="-lgen  $LIBS"
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line $LINENO "configure"
14707 #include "confdefs.h"
14708
14709 /* Override any gcc2 internal prototype to avoid an error.  */
14710 #ifdef __cplusplus
14711 extern "C"
14712 #endif
14713 /* We use char because int might match the return type of a gcc2
14714    builtin and then its argument prototype would still apply.  */
14715 char getspnam ();
14716 #ifdef F77_DUMMY_MAIN
14717 #  ifdef __cplusplus
14718      extern "C"
14719 #  endif
14720    int F77_DUMMY_MAIN() { return 1; }
14721 #endif
14722 int
14723 main ()
14724 {
14725 getspnam ();
14726   ;
14727   return 0;
14728 }
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732   (eval $ac_link) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); } &&
14736          { ac_try='test -s conftest$ac_exeext'
14737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738   (eval $ac_try) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; }; then
14742   ac_cv_lib_gen_getspnam=yes
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 cat conftest.$ac_ext >&5
14746 ac_cv_lib_gen_getspnam=no
14747 fi
14748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14750 fi
14751 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14752 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14753 if test $ac_cv_lib_gen_getspnam = yes; then
14754   cat >>confdefs.h <<_ACEOF
14755 #define HAVE_LIBGEN 1
14756 _ACEOF
14757
14758   LIBS="-lgen $LIBS"
14759
14760 fi
14761
14762
14763 for ac_func in getspnam
14764 do
14765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14766 echo "$as_me:$LINENO: checking for $ac_func" >&5
14767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14768 if eval "test \"\${$as_ac_var+set}\" = set"; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771   cat >conftest.$ac_ext <<_ACEOF
14772 #line $LINENO "configure"
14773 #include "confdefs.h"
14774 /* System header to define __stub macros and hopefully few prototypes,
14775     which can conflict with char $ac_func (); below.  */
14776 #include <assert.h>
14777 /* Override any gcc2 internal prototype to avoid an error.  */
14778 #ifdef __cplusplus
14779 extern "C"
14780 #endif
14781 /* We use char because int might match the return type of a gcc2
14782    builtin and then its argument prototype would still apply.  */
14783 char $ac_func ();
14784 char (*f) ();
14785
14786 #ifdef F77_DUMMY_MAIN
14787 #  ifdef __cplusplus
14788      extern "C"
14789 #  endif
14790    int F77_DUMMY_MAIN() { return 1; }
14791 #endif
14792 int
14793 main ()
14794 {
14795 /* The GNU C library defines this for functions which it implements
14796     to always fail with ENOSYS.  Some functions are actually named
14797     something starting with __ and the normal name is an alias.  */
14798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14799 choke me
14800 #else
14801 f = $ac_func;
14802 #endif
14803
14804   ;
14805   return 0;
14806 }
14807 _ACEOF
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810   (eval $ac_link) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); } &&
14814          { ac_try='test -s conftest$ac_exeext'
14815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816   (eval $ac_try) 2>&5
14817   ac_status=$?
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); }; }; then
14820   eval "$as_ac_var=yes"
14821 else
14822   echo "$as_me: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14824 eval "$as_ac_var=no"
14825 fi
14826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14827 fi
14828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14830 if test `eval echo '${'$as_ac_var'}'` = yes; then
14831   cat >>confdefs.h <<_ACEOF
14832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14833 _ACEOF
14834
14835 fi
14836 done
14837
14838   ;;
14839   esac
14840
14841
14842 case "$LIBS" in
14843   *-lsecurity*)
14844 for ac_func in getspnam
14845 do
14846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14847 echo "$as_me:$LINENO: checking for $ac_func" >&5
14848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14849 if eval "test \"\${$as_ac_var+set}\" = set"; then
14850   echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852   cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14854 #include "confdefs.h"
14855 /* System header to define __stub macros and hopefully few prototypes,
14856     which can conflict with char $ac_func (); below.  */
14857 #include <assert.h>
14858 /* Override any gcc2 internal prototype to avoid an error.  */
14859 #ifdef __cplusplus
14860 extern "C"
14861 #endif
14862 /* We use char because int might match the return type of a gcc2
14863    builtin and then its argument prototype would still apply.  */
14864 char $ac_func ();
14865 char (*f) ();
14866
14867 #ifdef F77_DUMMY_MAIN
14868 #  ifdef __cplusplus
14869      extern "C"
14870 #  endif
14871    int F77_DUMMY_MAIN() { return 1; }
14872 #endif
14873 int
14874 main ()
14875 {
14876 /* The GNU C library defines this for functions which it implements
14877     to always fail with ENOSYS.  Some functions are actually named
14878     something starting with __ and the normal name is an alias.  */
14879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14880 choke me
14881 #else
14882 f = $ac_func;
14883 #endif
14884
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891   (eval $ac_link) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); } &&
14895          { ac_try='test -s conftest$ac_exeext'
14896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897   (eval $ac_try) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; }; then
14901   eval "$as_ac_var=yes"
14902 else
14903   echo "$as_me: failed program was:" >&5
14904 cat conftest.$ac_ext >&5
14905 eval "$as_ac_var=no"
14906 fi
14907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14908 fi
14909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14911 if test `eval echo '${'$as_ac_var'}'` = yes; then
14912   cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14914 _ACEOF
14915
14916 fi
14917 done
14918  ;;
14919   *)
14920 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14921 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14922 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14923   echo $ECHO_N "(cached) $ECHO_C" >&6
14924 else
14925   ac_check_lib_save_LIBS=$LIBS
14926 LIBS="-lsecurity  $LIBS"
14927 cat >conftest.$ac_ext <<_ACEOF
14928 #line $LINENO "configure"
14929 #include "confdefs.h"
14930
14931 /* Override any gcc2 internal prototype to avoid an error.  */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 /* We use char because int might match the return type of a gcc2
14936    builtin and then its argument prototype would still apply.  */
14937 char getspnam ();
14938 #ifdef F77_DUMMY_MAIN
14939 #  ifdef __cplusplus
14940      extern "C"
14941 #  endif
14942    int F77_DUMMY_MAIN() { return 1; }
14943 #endif
14944 int
14945 main ()
14946 {
14947 getspnam ();
14948   ;
14949   return 0;
14950 }
14951 _ACEOF
14952 rm -f conftest.$ac_objext conftest$ac_exeext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14954   (eval $ac_link) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } &&
14958          { ac_try='test -s conftest$ac_exeext'
14959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960   (eval $ac_try) 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; }; then
14964   ac_cv_lib_security_getspnam=yes
14965 else
14966   echo "$as_me: failed program was:" >&5
14967 cat conftest.$ac_ext >&5
14968 ac_cv_lib_security_getspnam=no
14969 fi
14970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14971 LIBS=$ac_check_lib_save_LIBS
14972 fi
14973 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14974 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14975 if test $ac_cv_lib_security_getspnam = yes; then
14976   cat >>confdefs.h <<_ACEOF
14977 #define HAVE_LIBSECURITY 1
14978 _ACEOF
14979
14980   LIBS="-lsecurity $LIBS"
14981
14982 fi
14983
14984
14985 for ac_func in getspnam
14986 do
14987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14988 echo "$as_me:$LINENO: checking for $ac_func" >&5
14989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14990 if eval "test \"\${$as_ac_var+set}\" = set"; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   cat >conftest.$ac_ext <<_ACEOF
14994 #line $LINENO "configure"
14995 #include "confdefs.h"
14996 /* System header to define __stub macros and hopefully few prototypes,
14997     which can conflict with char $ac_func (); below.  */
14998 #include <assert.h>
14999 /* Override any gcc2 internal prototype to avoid an error.  */
15000 #ifdef __cplusplus
15001 extern "C"
15002 #endif
15003 /* We use char because int might match the return type of a gcc2
15004    builtin and then its argument prototype would still apply.  */
15005 char $ac_func ();
15006 char (*f) ();
15007
15008 #ifdef F77_DUMMY_MAIN
15009 #  ifdef __cplusplus
15010      extern "C"
15011 #  endif
15012    int F77_DUMMY_MAIN() { return 1; }
15013 #endif
15014 int
15015 main ()
15016 {
15017 /* The GNU C library defines this for functions which it implements
15018     to always fail with ENOSYS.  Some functions are actually named
15019     something starting with __ and the normal name is an alias.  */
15020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15021 choke me
15022 #else
15023 f = $ac_func;
15024 #endif
15025
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15032   (eval $ac_link) 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } &&
15036          { ac_try='test -s conftest$ac_exeext'
15037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038   (eval $ac_try) 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); }; }; then
15042   eval "$as_ac_var=yes"
15043 else
15044   echo "$as_me: failed program was:" >&5
15045 cat conftest.$ac_ext >&5
15046 eval "$as_ac_var=no"
15047 fi
15048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15049 fi
15050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15052 if test `eval echo '${'$as_ac_var'}'` = yes; then
15053   cat >>confdefs.h <<_ACEOF
15054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15055 _ACEOF
15056
15057 fi
15058 done
15059
15060   ;;
15061   esac
15062
15063 case "$LIBS" in
15064   *-lsec*)
15065 for ac_func in getspnam
15066 do
15067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15068 echo "$as_me:$LINENO: checking for $ac_func" >&5
15069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15070 if eval "test \"\${$as_ac_var+set}\" = set"; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073   cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15075 #include "confdefs.h"
15076 /* System header to define __stub macros and hopefully few prototypes,
15077     which can conflict with char $ac_func (); below.  */
15078 #include <assert.h>
15079 /* Override any gcc2 internal prototype to avoid an error.  */
15080 #ifdef __cplusplus
15081 extern "C"
15082 #endif
15083 /* We use char because int might match the return type of a gcc2
15084    builtin and then its argument prototype would still apply.  */
15085 char $ac_func ();
15086 char (*f) ();
15087
15088 #ifdef F77_DUMMY_MAIN
15089 #  ifdef __cplusplus
15090      extern "C"
15091 #  endif
15092    int F77_DUMMY_MAIN() { return 1; }
15093 #endif
15094 int
15095 main ()
15096 {
15097 /* The GNU C library defines this for functions which it implements
15098     to always fail with ENOSYS.  Some functions are actually named
15099     something starting with __ and the normal name is an alias.  */
15100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15101 choke me
15102 #else
15103 f = $ac_func;
15104 #endif
15105
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112   (eval $ac_link) 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); } &&
15116          { ac_try='test -s conftest$ac_exeext'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; }; then
15122   eval "$as_ac_var=yes"
15123 else
15124   echo "$as_me: failed program was:" >&5
15125 cat conftest.$ac_ext >&5
15126 eval "$as_ac_var=no"
15127 fi
15128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15129 fi
15130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15132 if test `eval echo '${'$as_ac_var'}'` = yes; then
15133   cat >>confdefs.h <<_ACEOF
15134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15135 _ACEOF
15136
15137 fi
15138 done
15139  ;;
15140   *)
15141 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
15142 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
15143 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
15144   echo $ECHO_N "(cached) $ECHO_C" >&6
15145 else
15146   ac_check_lib_save_LIBS=$LIBS
15147 LIBS="-lsec  $LIBS"
15148 cat >conftest.$ac_ext <<_ACEOF
15149 #line $LINENO "configure"
15150 #include "confdefs.h"
15151
15152 /* Override any gcc2 internal prototype to avoid an error.  */
15153 #ifdef __cplusplus
15154 extern "C"
15155 #endif
15156 /* We use char because int might match the return type of a gcc2
15157    builtin and then its argument prototype would still apply.  */
15158 char getspnam ();
15159 #ifdef F77_DUMMY_MAIN
15160 #  ifdef __cplusplus
15161      extern "C"
15162 #  endif
15163    int F77_DUMMY_MAIN() { return 1; }
15164 #endif
15165 int
15166 main ()
15167 {
15168 getspnam ();
15169   ;
15170   return 0;
15171 }
15172 _ACEOF
15173 rm -f conftest.$ac_objext conftest$ac_exeext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15175   (eval $ac_link) 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); } &&
15179          { ac_try='test -s conftest$ac_exeext'
15180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181   (eval $ac_try) 2>&5
15182   ac_status=$?
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); }; }; then
15185   ac_cv_lib_sec_getspnam=yes
15186 else
15187   echo "$as_me: failed program was:" >&5
15188 cat conftest.$ac_ext >&5
15189 ac_cv_lib_sec_getspnam=no
15190 fi
15191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15193 fi
15194 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
15195 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
15196 if test $ac_cv_lib_sec_getspnam = yes; then
15197   cat >>confdefs.h <<_ACEOF
15198 #define HAVE_LIBSEC 1
15199 _ACEOF
15200
15201   LIBS="-lsec $LIBS"
15202
15203 fi
15204
15205
15206 for ac_func in getspnam
15207 do
15208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15209 echo "$as_me:$LINENO: checking for $ac_func" >&5
15210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15211 if eval "test \"\${$as_ac_var+set}\" = set"; then
15212   echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214   cat >conftest.$ac_ext <<_ACEOF
15215 #line $LINENO "configure"
15216 #include "confdefs.h"
15217 /* System header to define __stub macros and hopefully few prototypes,
15218     which can conflict with char $ac_func (); below.  */
15219 #include <assert.h>
15220 /* Override any gcc2 internal prototype to avoid an error.  */
15221 #ifdef __cplusplus
15222 extern "C"
15223 #endif
15224 /* We use char because int might match the return type of a gcc2
15225    builtin and then its argument prototype would still apply.  */
15226 char $ac_func ();
15227 char (*f) ();
15228
15229 #ifdef F77_DUMMY_MAIN
15230 #  ifdef __cplusplus
15231      extern "C"
15232 #  endif
15233    int F77_DUMMY_MAIN() { return 1; }
15234 #endif
15235 int
15236 main ()
15237 {
15238 /* The GNU C library defines this for functions which it implements
15239     to always fail with ENOSYS.  Some functions are actually named
15240     something starting with __ and the normal name is an alias.  */
15241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15242 choke me
15243 #else
15244 f = $ac_func;
15245 #endif
15246
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253   (eval $ac_link) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); } &&
15257          { ac_try='test -s conftest$ac_exeext'
15258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259   (eval $ac_try) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   eval "$as_ac_var=yes"
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 cat conftest.$ac_ext >&5
15267 eval "$as_ac_var=no"
15268 fi
15269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15270 fi
15271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15273 if test `eval echo '${'$as_ac_var'}'` = yes; then
15274   cat >>confdefs.h <<_ACEOF
15275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15276 _ACEOF
15277
15278 fi
15279 done
15280
15281   ;;
15282   esac
15283
15284
15285 case "$LIBS" in
15286   *-lsecurity*)
15287 for ac_func in bigcrypt
15288 do
15289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15290 echo "$as_me:$LINENO: checking for $ac_func" >&5
15291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15292 if eval "test \"\${$as_ac_var+set}\" = set"; then
15293   echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295   cat >conftest.$ac_ext <<_ACEOF
15296 #line $LINENO "configure"
15297 #include "confdefs.h"
15298 /* System header to define __stub macros and hopefully few prototypes,
15299     which can conflict with char $ac_func (); below.  */
15300 #include <assert.h>
15301 /* Override any gcc2 internal prototype to avoid an error.  */
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 /* We use char because int might match the return type of a gcc2
15306    builtin and then its argument prototype would still apply.  */
15307 char $ac_func ();
15308 char (*f) ();
15309
15310 #ifdef F77_DUMMY_MAIN
15311 #  ifdef __cplusplus
15312      extern "C"
15313 #  endif
15314    int F77_DUMMY_MAIN() { return 1; }
15315 #endif
15316 int
15317 main ()
15318 {
15319 /* The GNU C library defines this for functions which it implements
15320     to always fail with ENOSYS.  Some functions are actually named
15321     something starting with __ and the normal name is an alias.  */
15322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15323 choke me
15324 #else
15325 f = $ac_func;
15326 #endif
15327
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334   (eval $ac_link) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } &&
15338          { ac_try='test -s conftest$ac_exeext'
15339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340   (eval $ac_try) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; }; then
15344   eval "$as_ac_var=yes"
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 eval "$as_ac_var=no"
15349 fi
15350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15351 fi
15352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15354 if test `eval echo '${'$as_ac_var'}'` = yes; then
15355   cat >>confdefs.h <<_ACEOF
15356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15357 _ACEOF
15358
15359 fi
15360 done
15361  ;;
15362   *)
15363 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
15364 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
15365 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   ac_check_lib_save_LIBS=$LIBS
15369 LIBS="-lsecurity  $LIBS"
15370 cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 #include "confdefs.h"
15373
15374 /* Override any gcc2 internal prototype to avoid an error.  */
15375 #ifdef __cplusplus
15376 extern "C"
15377 #endif
15378 /* We use char because int might match the return type of a gcc2
15379    builtin and then its argument prototype would still apply.  */
15380 char bigcrypt ();
15381 #ifdef F77_DUMMY_MAIN
15382 #  ifdef __cplusplus
15383      extern "C"
15384 #  endif
15385    int F77_DUMMY_MAIN() { return 1; }
15386 #endif
15387 int
15388 main ()
15389 {
15390 bigcrypt ();
15391   ;
15392   return 0;
15393 }
15394 _ACEOF
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15397   (eval $ac_link) 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } &&
15401          { ac_try='test -s conftest$ac_exeext'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; }; then
15407   ac_cv_lib_security_bigcrypt=yes
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 cat conftest.$ac_ext >&5
15411 ac_cv_lib_security_bigcrypt=no
15412 fi
15413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15414 LIBS=$ac_check_lib_save_LIBS
15415 fi
15416 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
15417 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
15418 if test $ac_cv_lib_security_bigcrypt = yes; then
15419   cat >>confdefs.h <<_ACEOF
15420 #define HAVE_LIBSECURITY 1
15421 _ACEOF
15422
15423   LIBS="-lsecurity $LIBS"
15424
15425 fi
15426
15427
15428 for ac_func in bigcrypt
15429 do
15430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15431 echo "$as_me:$LINENO: checking for $ac_func" >&5
15432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15433 if eval "test \"\${$as_ac_var+set}\" = set"; then
15434   echo $ECHO_N "(cached) $ECHO_C" >&6
15435 else
15436   cat >conftest.$ac_ext <<_ACEOF
15437 #line $LINENO "configure"
15438 #include "confdefs.h"
15439 /* System header to define __stub macros and hopefully few prototypes,
15440     which can conflict with char $ac_func (); below.  */
15441 #include <assert.h>
15442 /* Override any gcc2 internal prototype to avoid an error.  */
15443 #ifdef __cplusplus
15444 extern "C"
15445 #endif
15446 /* We use char because int might match the return type of a gcc2
15447    builtin and then its argument prototype would still apply.  */
15448 char $ac_func ();
15449 char (*f) ();
15450
15451 #ifdef F77_DUMMY_MAIN
15452 #  ifdef __cplusplus
15453      extern "C"
15454 #  endif
15455    int F77_DUMMY_MAIN() { return 1; }
15456 #endif
15457 int
15458 main ()
15459 {
15460 /* The GNU C library defines this for functions which it implements
15461     to always fail with ENOSYS.  Some functions are actually named
15462     something starting with __ and the normal name is an alias.  */
15463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15464 choke me
15465 #else
15466 f = $ac_func;
15467 #endif
15468
15469   ;
15470   return 0;
15471 }
15472 _ACEOF
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475   (eval $ac_link) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } &&
15479          { ac_try='test -s conftest$ac_exeext'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; }; then
15485   eval "$as_ac_var=yes"
15486 else
15487   echo "$as_me: failed program was:" >&5
15488 cat conftest.$ac_ext >&5
15489 eval "$as_ac_var=no"
15490 fi
15491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15492 fi
15493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15495 if test `eval echo '${'$as_ac_var'}'` = yes; then
15496   cat >>confdefs.h <<_ACEOF
15497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15498 _ACEOF
15499
15500 fi
15501 done
15502
15503   ;;
15504   esac
15505
15506 case "$LIBS" in
15507   *-lsec*)
15508 for ac_func in bigcrypt
15509 do
15510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15511 echo "$as_me:$LINENO: checking for $ac_func" >&5
15512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15513 if eval "test \"\${$as_ac_var+set}\" = set"; then
15514   echo $ECHO_N "(cached) $ECHO_C" >&6
15515 else
15516   cat >conftest.$ac_ext <<_ACEOF
15517 #line $LINENO "configure"
15518 #include "confdefs.h"
15519 /* System header to define __stub macros and hopefully few prototypes,
15520     which can conflict with char $ac_func (); below.  */
15521 #include <assert.h>
15522 /* Override any gcc2 internal prototype to avoid an error.  */
15523 #ifdef __cplusplus
15524 extern "C"
15525 #endif
15526 /* We use char because int might match the return type of a gcc2
15527    builtin and then its argument prototype would still apply.  */
15528 char $ac_func ();
15529 char (*f) ();
15530
15531 #ifdef F77_DUMMY_MAIN
15532 #  ifdef __cplusplus
15533      extern "C"
15534 #  endif
15535    int F77_DUMMY_MAIN() { return 1; }
15536 #endif
15537 int
15538 main ()
15539 {
15540 /* The GNU C library defines this for functions which it implements
15541     to always fail with ENOSYS.  Some functions are actually named
15542     something starting with __ and the normal name is an alias.  */
15543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15544 choke me
15545 #else
15546 f = $ac_func;
15547 #endif
15548
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555   (eval $ac_link) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); } &&
15559          { ac_try='test -s conftest$ac_exeext'
15560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561   (eval $ac_try) 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); }; }; then
15565   eval "$as_ac_var=yes"
15566 else
15567   echo "$as_me: failed program was:" >&5
15568 cat conftest.$ac_ext >&5
15569 eval "$as_ac_var=no"
15570 fi
15571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15572 fi
15573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15575 if test `eval echo '${'$as_ac_var'}'` = yes; then
15576   cat >>confdefs.h <<_ACEOF
15577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15578 _ACEOF
15579
15580 fi
15581 done
15582  ;;
15583   *)
15584 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15585 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
15586 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15587   echo $ECHO_N "(cached) $ECHO_C" >&6
15588 else
15589   ac_check_lib_save_LIBS=$LIBS
15590 LIBS="-lsec  $LIBS"
15591 cat >conftest.$ac_ext <<_ACEOF
15592 #line $LINENO "configure"
15593 #include "confdefs.h"
15594
15595 /* Override any gcc2 internal prototype to avoid an error.  */
15596 #ifdef __cplusplus
15597 extern "C"
15598 #endif
15599 /* We use char because int might match the return type of a gcc2
15600    builtin and then its argument prototype would still apply.  */
15601 char bigcrypt ();
15602 #ifdef F77_DUMMY_MAIN
15603 #  ifdef __cplusplus
15604      extern "C"
15605 #  endif
15606    int F77_DUMMY_MAIN() { return 1; }
15607 #endif
15608 int
15609 main ()
15610 {
15611 bigcrypt ();
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext conftest$ac_exeext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15618   (eval $ac_link) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); } &&
15622          { ac_try='test -s conftest$ac_exeext'
15623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624   (eval $ac_try) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; }; then
15628   ac_cv_lib_sec_bigcrypt=yes
15629 else
15630   echo "$as_me: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15632 ac_cv_lib_sec_bigcrypt=no
15633 fi
15634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15635 LIBS=$ac_check_lib_save_LIBS
15636 fi
15637 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15638 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
15639 if test $ac_cv_lib_sec_bigcrypt = yes; then
15640   cat >>confdefs.h <<_ACEOF
15641 #define HAVE_LIBSEC 1
15642 _ACEOF
15643
15644   LIBS="-lsec $LIBS"
15645
15646 fi
15647
15648
15649 for ac_func in bigcrypt
15650 do
15651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15652 echo "$as_me:$LINENO: checking for $ac_func" >&5
15653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15654 if eval "test \"\${$as_ac_var+set}\" = set"; then
15655   echo $ECHO_N "(cached) $ECHO_C" >&6
15656 else
15657   cat >conftest.$ac_ext <<_ACEOF
15658 #line $LINENO "configure"
15659 #include "confdefs.h"
15660 /* System header to define __stub macros and hopefully few prototypes,
15661     which can conflict with char $ac_func (); below.  */
15662 #include <assert.h>
15663 /* Override any gcc2 internal prototype to avoid an error.  */
15664 #ifdef __cplusplus
15665 extern "C"
15666 #endif
15667 /* We use char because int might match the return type of a gcc2
15668    builtin and then its argument prototype would still apply.  */
15669 char $ac_func ();
15670 char (*f) ();
15671
15672 #ifdef F77_DUMMY_MAIN
15673 #  ifdef __cplusplus
15674      extern "C"
15675 #  endif
15676    int F77_DUMMY_MAIN() { return 1; }
15677 #endif
15678 int
15679 main ()
15680 {
15681 /* The GNU C library defines this for functions which it implements
15682     to always fail with ENOSYS.  Some functions are actually named
15683     something starting with __ and the normal name is an alias.  */
15684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15685 choke me
15686 #else
15687 f = $ac_func;
15688 #endif
15689
15690   ;
15691   return 0;
15692 }
15693 _ACEOF
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696   (eval $ac_link) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } &&
15700          { ac_try='test -s conftest$ac_exeext'
15701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702   (eval $ac_try) 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); }; }; then
15706   eval "$as_ac_var=yes"
15707 else
15708   echo "$as_me: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 eval "$as_ac_var=no"
15711 fi
15712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15713 fi
15714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15716 if test `eval echo '${'$as_ac_var'}'` = yes; then
15717   cat >>confdefs.h <<_ACEOF
15718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15719 _ACEOF
15720
15721 fi
15722 done
15723
15724   ;;
15725   esac
15726
15727
15728 case "$LIBS" in
15729   *-lsecurity*)
15730 for ac_func in getprpwnam
15731 do
15732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15733 echo "$as_me:$LINENO: checking for $ac_func" >&5
15734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15735 if eval "test \"\${$as_ac_var+set}\" = set"; then
15736   echo $ECHO_N "(cached) $ECHO_C" >&6
15737 else
15738   cat >conftest.$ac_ext <<_ACEOF
15739 #line $LINENO "configure"
15740 #include "confdefs.h"
15741 /* System header to define __stub macros and hopefully few prototypes,
15742     which can conflict with char $ac_func (); below.  */
15743 #include <assert.h>
15744 /* Override any gcc2 internal prototype to avoid an error.  */
15745 #ifdef __cplusplus
15746 extern "C"
15747 #endif
15748 /* We use char because int might match the return type of a gcc2
15749    builtin and then its argument prototype would still apply.  */
15750 char $ac_func ();
15751 char (*f) ();
15752
15753 #ifdef F77_DUMMY_MAIN
15754 #  ifdef __cplusplus
15755      extern "C"
15756 #  endif
15757    int F77_DUMMY_MAIN() { return 1; }
15758 #endif
15759 int
15760 main ()
15761 {
15762 /* The GNU C library defines this for functions which it implements
15763     to always fail with ENOSYS.  Some functions are actually named
15764     something starting with __ and the normal name is an alias.  */
15765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15766 choke me
15767 #else
15768 f = $ac_func;
15769 #endif
15770
15771   ;
15772   return 0;
15773 }
15774 _ACEOF
15775 rm -f conftest.$ac_objext conftest$ac_exeext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15777   (eval $ac_link) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); } &&
15781          { ac_try='test -s conftest$ac_exeext'
15782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783   (eval $ac_try) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); }; }; then
15787   eval "$as_ac_var=yes"
15788 else
15789   echo "$as_me: failed program was:" >&5
15790 cat conftest.$ac_ext >&5
15791 eval "$as_ac_var=no"
15792 fi
15793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15794 fi
15795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15797 if test `eval echo '${'$as_ac_var'}'` = yes; then
15798   cat >>confdefs.h <<_ACEOF
15799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15800 _ACEOF
15801
15802 fi
15803 done
15804  ;;
15805   *)
15806 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15807 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
15808 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811   ac_check_lib_save_LIBS=$LIBS
15812 LIBS="-lsecurity  $LIBS"
15813 cat >conftest.$ac_ext <<_ACEOF
15814 #line $LINENO "configure"
15815 #include "confdefs.h"
15816
15817 /* Override any gcc2 internal prototype to avoid an error.  */
15818 #ifdef __cplusplus
15819 extern "C"
15820 #endif
15821 /* We use char because int might match the return type of a gcc2
15822    builtin and then its argument prototype would still apply.  */
15823 char getprpwnam ();
15824 #ifdef F77_DUMMY_MAIN
15825 #  ifdef __cplusplus
15826      extern "C"
15827 #  endif
15828    int F77_DUMMY_MAIN() { return 1; }
15829 #endif
15830 int
15831 main ()
15832 {
15833 getprpwnam ();
15834   ;
15835   return 0;
15836 }
15837 _ACEOF
15838 rm -f conftest.$ac_objext conftest$ac_exeext
15839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15840   (eval $ac_link) 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); } &&
15844          { ac_try='test -s 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   ac_cv_lib_security_getprpwnam=yes
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 cat conftest.$ac_ext >&5
15854 ac_cv_lib_security_getprpwnam=no
15855 fi
15856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15858 fi
15859 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15860 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
15861 if test $ac_cv_lib_security_getprpwnam = yes; then
15862   cat >>confdefs.h <<_ACEOF
15863 #define HAVE_LIBSECURITY 1
15864 _ACEOF
15865
15866   LIBS="-lsecurity $LIBS"
15867
15868 fi
15869
15870
15871 for ac_func in getprpwnam
15872 do
15873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15874 echo "$as_me:$LINENO: checking for $ac_func" >&5
15875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15876 if eval "test \"\${$as_ac_var+set}\" = set"; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879   cat >conftest.$ac_ext <<_ACEOF
15880 #line $LINENO "configure"
15881 #include "confdefs.h"
15882 /* System header to define __stub macros and hopefully few prototypes,
15883     which can conflict with char $ac_func (); below.  */
15884 #include <assert.h>
15885 /* Override any gcc2 internal prototype to avoid an error.  */
15886 #ifdef __cplusplus
15887 extern "C"
15888 #endif
15889 /* We use char because int might match the return type of a gcc2
15890    builtin and then its argument prototype would still apply.  */
15891 char $ac_func ();
15892 char (*f) ();
15893
15894 #ifdef F77_DUMMY_MAIN
15895 #  ifdef __cplusplus
15896      extern "C"
15897 #  endif
15898    int F77_DUMMY_MAIN() { return 1; }
15899 #endif
15900 int
15901 main ()
15902 {
15903 /* The GNU C library defines this for functions which it implements
15904     to always fail with ENOSYS.  Some functions are actually named
15905     something starting with __ and the normal name is an alias.  */
15906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15907 choke me
15908 #else
15909 f = $ac_func;
15910 #endif
15911
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15918   (eval $ac_link) 2>&5
15919   ac_status=$?
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } &&
15922          { ac_try='test -s conftest$ac_exeext'
15923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; }; then
15928   eval "$as_ac_var=yes"
15929 else
15930   echo "$as_me: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15932 eval "$as_ac_var=no"
15933 fi
15934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15935 fi
15936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15938 if test `eval echo '${'$as_ac_var'}'` = yes; then
15939   cat >>confdefs.h <<_ACEOF
15940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15941 _ACEOF
15942
15943 fi
15944 done
15945
15946   ;;
15947   esac
15948
15949 case "$LIBS" in
15950   *-lsec*)
15951 for ac_func in getprpwnam
15952 do
15953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15954 echo "$as_me:$LINENO: checking for $ac_func" >&5
15955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15956 if eval "test \"\${$as_ac_var+set}\" = set"; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959   cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15961 #include "confdefs.h"
15962 /* System header to define __stub macros and hopefully few prototypes,
15963     which can conflict with char $ac_func (); below.  */
15964 #include <assert.h>
15965 /* Override any gcc2 internal prototype to avoid an error.  */
15966 #ifdef __cplusplus
15967 extern "C"
15968 #endif
15969 /* We use char because int might match the return type of a gcc2
15970    builtin and then its argument prototype would still apply.  */
15971 char $ac_func ();
15972 char (*f) ();
15973
15974 #ifdef F77_DUMMY_MAIN
15975 #  ifdef __cplusplus
15976      extern "C"
15977 #  endif
15978    int F77_DUMMY_MAIN() { return 1; }
15979 #endif
15980 int
15981 main ()
15982 {
15983 /* The GNU C library defines this for functions which it implements
15984     to always fail with ENOSYS.  Some functions are actually named
15985     something starting with __ and the normal name is an alias.  */
15986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15987 choke me
15988 #else
15989 f = $ac_func;
15990 #endif
15991
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15998   (eval $ac_link) 2>&5
15999   ac_status=$?
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } &&
16002          { ac_try='test -s conftest$ac_exeext'
16003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004   (eval $ac_try) 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; }; then
16008   eval "$as_ac_var=yes"
16009 else
16010   echo "$as_me: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 eval "$as_ac_var=no"
16013 fi
16014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16015 fi
16016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16018 if test `eval echo '${'$as_ac_var'}'` = yes; then
16019   cat >>confdefs.h <<_ACEOF
16020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16021 _ACEOF
16022
16023 fi
16024 done
16025  ;;
16026   *)
16027 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
16028 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
16029 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032   ac_check_lib_save_LIBS=$LIBS
16033 LIBS="-lsec  $LIBS"
16034 cat >conftest.$ac_ext <<_ACEOF
16035 #line $LINENO "configure"
16036 #include "confdefs.h"
16037
16038 /* Override any gcc2 internal prototype to avoid an error.  */
16039 #ifdef __cplusplus
16040 extern "C"
16041 #endif
16042 /* We use char because int might match the return type of a gcc2
16043    builtin and then its argument prototype would still apply.  */
16044 char getprpwnam ();
16045 #ifdef F77_DUMMY_MAIN
16046 #  ifdef __cplusplus
16047      extern "C"
16048 #  endif
16049    int F77_DUMMY_MAIN() { return 1; }
16050 #endif
16051 int
16052 main ()
16053 {
16054 getprpwnam ();
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16061   (eval $ac_link) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); } &&
16065          { ac_try='test -s conftest$ac_exeext'
16066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067   (eval $ac_try) 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }; then
16071   ac_cv_lib_sec_getprpwnam=yes
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 ac_cv_lib_sec_getprpwnam=no
16076 fi
16077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16078 LIBS=$ac_check_lib_save_LIBS
16079 fi
16080 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
16081 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
16082 if test $ac_cv_lib_sec_getprpwnam = yes; then
16083   cat >>confdefs.h <<_ACEOF
16084 #define HAVE_LIBSEC 1
16085 _ACEOF
16086
16087   LIBS="-lsec $LIBS"
16088
16089 fi
16090
16091
16092 for ac_func in getprpwnam
16093 do
16094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16095 echo "$as_me:$LINENO: checking for $ac_func" >&5
16096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16097 if eval "test \"\${$as_ac_var+set}\" = set"; then
16098   echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100   cat >conftest.$ac_ext <<_ACEOF
16101 #line $LINENO "configure"
16102 #include "confdefs.h"
16103 /* System header to define __stub macros and hopefully few prototypes,
16104     which can conflict with char $ac_func (); below.  */
16105 #include <assert.h>
16106 /* Override any gcc2 internal prototype to avoid an error.  */
16107 #ifdef __cplusplus
16108 extern "C"
16109 #endif
16110 /* We use char because int might match the return type of a gcc2
16111    builtin and then its argument prototype would still apply.  */
16112 char $ac_func ();
16113 char (*f) ();
16114
16115 #ifdef F77_DUMMY_MAIN
16116 #  ifdef __cplusplus
16117      extern "C"
16118 #  endif
16119    int F77_DUMMY_MAIN() { return 1; }
16120 #endif
16121 int
16122 main ()
16123 {
16124 /* The GNU C library defines this for functions which it implements
16125     to always fail with ENOSYS.  Some functions are actually named
16126     something starting with __ and the normal name is an alias.  */
16127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16128 choke me
16129 #else
16130 f = $ac_func;
16131 #endif
16132
16133   ;
16134   return 0;
16135 }
16136 _ACEOF
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139   (eval $ac_link) 2>&5
16140   ac_status=$?
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } &&
16143          { ac_try='test -s conftest$ac_exeext'
16144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145   (eval $ac_try) 2>&5
16146   ac_status=$?
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); }; }; then
16149   eval "$as_ac_var=yes"
16150 else
16151   echo "$as_me: failed program was:" >&5
16152 cat conftest.$ac_ext >&5
16153 eval "$as_ac_var=no"
16154 fi
16155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16156 fi
16157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16159 if test `eval echo '${'$as_ac_var'}'` = yes; then
16160   cat >>confdefs.h <<_ACEOF
16161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16162 _ACEOF
16163
16164 fi
16165 done
16166
16167   ;;
16168   esac
16169
16170
16171 # this bit needs to be modified for each OS that is suported by
16172 # smbwrapper. You need to specify how to created a shared library and
16173 # how to compile C code to produce PIC object files
16174
16175 # these are the defaults, good for lots of systems
16176 HOST_OS="$host_os"
16177 LDSHFLAGS="-shared"
16178 SONAMEFLAG="#"
16179 SHLD="\${CC}"
16180 PICFLAG=""
16181 PICSUFFIX="po"
16182 POBAD_CC="#"
16183 SHLIBEXT="so"
16184 # Assume non-shared by default and override below
16185 BLDSHARED="false"
16186 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
16187 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
16188
16189 # and these are for particular systems
16190 case "$host_os" in
16191                 *linux*)
16192 cat >>confdefs.h <<\_ACEOF
16193 #define LINUX 1
16194 _ACEOF
16195
16196                         BLDSHARED="true"
16197                         LDSHFLAGS="-shared"
16198                         DYNEXP="-Wl,--export-dynamic"
16199                         PICFLAG="-fPIC"
16200                         SONAMEFLAG="-Wl,-soname="
16201                         cat >>confdefs.h <<\_ACEOF
16202 #define STAT_ST_BLOCKSIZE 512
16203 _ACEOF
16204
16205                         ;;
16206                 *solaris*)
16207 cat >>confdefs.h <<\_ACEOF
16208 #define SUNOS5 1
16209 _ACEOF
16210
16211                         BLDSHARED="true"
16212                         LDSHFLAGS="-G"
16213                         SONAMEFLAG="-h "
16214                         if test "${GCC}" = "yes"; then
16215                                 PICFLAG="-fPIC"
16216                                 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
16217                                         DYNEXP="-Wl,-E"
16218                                 fi
16219                         else
16220                                 PICFLAG="-KPIC"
16221                                 ## ${CFLAGS} added for building 64-bit shared
16222                                 ## libs using Sun's Compiler
16223                                 LDSHFLAGS="-G \${CFLAGS}"
16224                                 POBAD_CC=""
16225                                 PICSUFFIX="po.o"
16226                         fi
16227
16228 cat >>confdefs.h <<\_ACEOF
16229 #define STAT_ST_BLOCKSIZE 512
16230 _ACEOF
16231
16232                         ;;
16233                 *sunos*)
16234 cat >>confdefs.h <<\_ACEOF
16235 #define SUNOS4 1
16236 _ACEOF
16237
16238                         BLDSHARED="true"
16239                         LDSHFLAGS="-G"
16240                         SONAMEFLAG="-Wl,-h,"
16241                         PICFLAG="-KPIC"   # Is this correct for SunOS
16242                         cat >>confdefs.h <<\_ACEOF
16243 #define STAT_ST_BLOCKSIZE 512
16244 _ACEOF
16245
16246                         ;;
16247                 *freebsd*)  BLDSHARED="true"
16248                         LDSHFLAGS="-shared"
16249                         DYNEXP="-Wl,--export-dynamic"
16250                         SONAMEFLAG="-Wl,-soname,"
16251                         PICFLAG="-fPIC -DPIC"
16252
16253 cat >>confdefs.h <<\_ACEOF
16254 #define STAT_ST_BLOCKSIZE 512
16255 _ACEOF
16256
16257                         ;;
16258                 *openbsd*)  BLDSHARED="true"
16259                         LDSHFLAGS="-shared"
16260                         DYNEXP="-Wl,-Bdynamic"
16261                         SONAMEFLAG="-Wl,-soname,"
16262                         PICFLAG="-fPIC"
16263
16264 cat >>confdefs.h <<\_ACEOF
16265 #define STAT_ST_BLOCKSIZE 512
16266 _ACEOF
16267
16268                         ;;
16269                 *irix*)
16270 cat >>confdefs.h <<\_ACEOF
16271 #define IRIX 1
16272 _ACEOF
16273
16274                         case "$host_os" in
16275                         *irix6*)
16276 cat >>confdefs.h <<\_ACEOF
16277 #define IRIX6 1
16278 _ACEOF
16279
16280                         ;;
16281                         esac
16282                         ATTEMPT_WRAP32_BUILD=yes
16283                         BLDSHARED="true"
16284                         LDSHFLAGS="-set_version sgi1.0 -shared"
16285                         SONAMEFLAG="-soname "
16286                         SHLD="\${LD}"
16287                         if test "${GCC}" = "yes"; then
16288                                 PICFLAG="-fPIC"
16289                         else
16290                                 PICFLAG="-KPIC"
16291                         fi
16292
16293 cat >>confdefs.h <<\_ACEOF
16294 #define STAT_ST_BLOCKSIZE 512
16295 _ACEOF
16296
16297                         ;;
16298                 *aix*)
16299 cat >>confdefs.h <<\_ACEOF
16300 #define AIX 1
16301 _ACEOF
16302
16303                         BLDSHARED="true"
16304                         LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
16305                         DYNEXP="-Wl,-brtl,-bexpall"
16306                         PICFLAG="-O2"
16307                         if test "${GCC}" != "yes"; then
16308                                 ## for funky AIX compiler using strncpy()
16309                                 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
16310                         fi
16311
16312
16313 cat >>confdefs.h <<\_ACEOF
16314 #define STAT_ST_BLOCKSIZE DEV_BSIZE
16315 _ACEOF
16316
16317                         ;;
16318                 *hpux*)
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HPUX 1
16321 _ACEOF
16322
16323                         SHLIBEXT="sl"
16324                         # Use special PIC flags for the native HP-UX compiler.
16325                         if test $ac_cv_prog_cc_Ae = yes; then
16326                                 BLDSHARED="true"
16327                                 SHLD="/usr/bin/ld"
16328                                 LDSHFLAGS="-B symbolic -b -z"
16329                                 SONAMEFLAG="+h "
16330                                 PICFLAG="+z"
16331                         fi
16332                         DYNEXP="-Wl,-E"
16333
16334 cat >>confdefs.h <<\_ACEOF
16335 #define STAT_ST_BLOCKSIZE 8192
16336 _ACEOF
16337
16338                         ;;
16339                 *qnx*)
16340 cat >>confdefs.h <<\_ACEOF
16341 #define QNX 1
16342 _ACEOF
16343
16344                         cat >>confdefs.h <<\_ACEOF
16345 #define STAT_ST_BLOCKSIZE 512
16346 _ACEOF
16347
16348                         ;;
16349                 *osf*)
16350 cat >>confdefs.h <<\_ACEOF
16351 #define OSF1 1
16352 _ACEOF
16353
16354                         BLDSHARED="true"
16355                         LDSHFLAGS="-shared"
16356                         SONAMEFLAG="-Wl,-soname,"
16357                         PICFLAG="-fPIC"
16358                         cat >>confdefs.h <<\_ACEOF
16359 #define STAT_ST_BLOCKSIZE 512
16360 _ACEOF
16361
16362                         ;;
16363                 *sco*)
16364 cat >>confdefs.h <<\_ACEOF
16365 #define SCO 1
16366 _ACEOF
16367
16368                         cat >>confdefs.h <<\_ACEOF
16369 #define STAT_ST_BLOCKSIZE 512
16370 _ACEOF
16371
16372                         ;;
16373                 *unixware*)
16374 cat >>confdefs.h <<\_ACEOF
16375 #define UNIXWARE 1
16376 _ACEOF
16377
16378                         BLDSHARED="true"
16379                         LDSHFLAGS="-shared"
16380                         SONAMEFLAG="-Wl,-soname,"
16381                         PICFLAG="-KPIC"
16382                         cat >>confdefs.h <<\_ACEOF
16383 #define STAT_ST_BLOCKSIZE 512
16384 _ACEOF
16385
16386                         ;;
16387                 *next2*)
16388 cat >>confdefs.h <<\_ACEOF
16389 #define NEXT2 1
16390 _ACEOF
16391
16392                         cat >>confdefs.h <<\_ACEOF
16393 #define STAT_ST_BLOCKSIZE 512
16394 _ACEOF
16395
16396                         ;;
16397                 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
16398 set dummy groff; ac_word=$2
16399 echo "$as_me:$LINENO: checking for $ac_word" >&5
16400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16401 if test "${ac_cv_prog_ROFF+set}" = set; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   if test -n "$ROFF"; then
16405   ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
16406 else
16407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16408 for as_dir in $PATH
16409 do
16410   IFS=$as_save_IFS
16411   test -z "$as_dir" && as_dir=.
16412   for ac_exec_ext in '' $ac_executable_extensions; do
16413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16414     ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
16415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16416     break 2
16417   fi
16418 done
16419 done
16420
16421 fi
16422 fi
16423 ROFF=$ac_cv_prog_ROFF
16424 if test -n "$ROFF"; then
16425   echo "$as_me:$LINENO: result: $ROFF" >&5
16426 echo "${ECHO_T}$ROFF" >&6
16427 else
16428   echo "$as_me:$LINENO: result: no" >&5
16429 echo "${ECHO_T}no" >&6
16430 fi
16431
16432                         cat >>confdefs.h <<\_ACEOF
16433 #define STAT_ST_BLOCKSIZE 512
16434 _ACEOF
16435
16436                         ;;
16437                 *sysv4*)
16438 cat >>confdefs.h <<\_ACEOF
16439 #define SYSV 1
16440 _ACEOF
16441
16442                         case "$host" in
16443                                 *-univel-*)     if  test "$GCC" != yes ; then
16444
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_MEMSET 1
16447 _ACEOF
16448
16449                                         fi
16450                                         LDSHFLAGS="-G"
16451                                         DYNEXP="-Bexport"
16452                                 ;;
16453                                 *mips-sni-sysv4*)
16454 cat >>confdefs.h <<\_ACEOF
16455 #define RELIANTUNIX 1
16456 _ACEOF
16457 ;;
16458                         esac
16459                         cat >>confdefs.h <<\_ACEOF
16460 #define STAT_ST_BLOCKSIZE 512
16461 _ACEOF
16462
16463                         ;;
16464
16465                 *sysv5*)
16466 cat >>confdefs.h <<\_ACEOF
16467 #define SYSV 1
16468 _ACEOF
16469
16470                         if  test "$GCC" != yes ; then
16471
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_MEMSET 1
16474 _ACEOF
16475
16476                         fi
16477                         LDSHFLAGS="-G"
16478                         cat >>confdefs.h <<\_ACEOF
16479 #define STAT_ST_BLOCKSIZE 512
16480 _ACEOF
16481
16482                         ;;
16483                 *)
16484                         cat >>confdefs.h <<\_ACEOF
16485 #define STAT_ST_BLOCKSIZE 512
16486 _ACEOF
16487
16488                         ;;
16489 esac
16490
16491 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
16492 echo "${ECHO_T}$BLDSHARED" >&6
16493 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
16494 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
16495 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
16496 echo "${ECHO_T}$LDSHFLAGS" >&6
16497 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
16498 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
16499 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
16500 echo "${ECHO_T}$PICFLAGS" >&6
16501
16502 #######################################################
16503 # test whether building a shared library actually works
16504 if test $BLDSHARED = true; then
16505 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
16506 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
16507 if test "${ac_cv_shlib_works+set}" = set; then
16508   echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510
16511    ac_cv_shlib_works=no
16512    # try building a trivial shared library
16513    if test "$PICSUFFIX" = "po"; then
16514      $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
16515        $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16516        ac_cv_shlib_works=yes
16517    else
16518      $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
16519        mv shlib.$PICSUFFIX shlib.po &&
16520        $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16521        ac_cv_shlib_works=yes
16522    fi
16523    rm -f shlib.so shlib.po
16524
16525 fi
16526 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
16527 echo "${ECHO_T}$ac_cv_shlib_works" >&6
16528 if test $ac_cv_shlib_works = no; then
16529    BLDSHARED=false
16530 fi
16531 fi
16532
16533
16534 # this updates our target list if we can build shared libs
16535 if test $BLDSHARED = true; then
16536    LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
16537 else
16538    LIBSMBCLIENT_SHARED=
16539 fi
16540
16541 ################
16542
16543 echo "$as_me:$LINENO: checking for long long" >&5
16544 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16545 if test "${samba_cv_have_longlong+set}" = set; then
16546   echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548
16549 if test "$cross_compiling" = yes; then
16550   samba_cv_have_longlong=cross
16551 else
16552   cat >conftest.$ac_ext <<_ACEOF
16553 #line $LINENO "configure"
16554 #include "confdefs.h"
16555 #include <stdio.h>
16556 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
16557 _ACEOF
16558 rm -f conftest$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560   (eval $ac_link) 2>&5
16561   ac_status=$?
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_longlong=yes
16570 else
16571   echo "$as_me: program exited with status $ac_status" >&5
16572 echo "$as_me: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 ( exit $ac_status )
16575 samba_cv_have_longlong=no
16576 fi
16577 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16578 fi
16579 fi
16580 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
16581 echo "${ECHO_T}$samba_cv_have_longlong" >&6
16582 if test x"$samba_cv_have_longlong" = x"yes"; then
16583
16584 cat >>confdefs.h <<\_ACEOF
16585 #define HAVE_LONGLONG 1
16586 _ACEOF
16587
16588 fi
16589
16590 #
16591 # Check if the compiler supports the LL prefix on long long integers.
16592 # AIX needs this.
16593
16594 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
16595 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
16596 if test "${samba_cv_compiler_supports_ll+set}" = set; then
16597   echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599
16600     cat >conftest.$ac_ext <<_ACEOF
16601 #line $LINENO "configure"
16602 #include "confdefs.h"
16603 #include <stdio.h>
16604 #ifdef F77_DUMMY_MAIN
16605 #  ifdef __cplusplus
16606      extern "C"
16607 #  endif
16608    int F77_DUMMY_MAIN() { return 1; }
16609 #endif
16610 int
16611 main ()
16612 {
16613 long long i = 0x8000000000LL
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620   (eval $ac_compile) 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } &&
16624          { ac_try='test -s conftest.$ac_objext'
16625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626   (eval $ac_try) 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; }; then
16630   samba_cv_compiler_supports_ll=yes
16631 else
16632   echo "$as_me: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16634 samba_cv_compiler_supports_ll=no
16635 fi
16636 rm -f conftest.$ac_objext conftest.$ac_ext
16637 fi
16638 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
16639 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
16640 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
16641
16642 cat >>confdefs.h <<\_ACEOF
16643 #define COMPILER_SUPPORTS_LL 1
16644 _ACEOF
16645
16646 fi
16647
16648
16649 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
16650 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
16651 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
16652   echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654
16655 if test "$cross_compiling" = yes; then
16656   samba_cv_SIZEOF_OFF_T=cross
16657 else
16658   cat >conftest.$ac_ext <<_ACEOF
16659 #line $LINENO "configure"
16660 #include "confdefs.h"
16661 #include <stdio.h>
16662 #include <sys/stat.h>
16663 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
16664 _ACEOF
16665 rm -f conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667   (eval $ac_link) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672   (eval $ac_try) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; }; then
16676   samba_cv_SIZEOF_OFF_T=yes
16677 else
16678   echo "$as_me: program exited with status $ac_status" >&5
16679 echo "$as_me: failed program was:" >&5
16680 cat conftest.$ac_ext >&5
16681 ( exit $ac_status )
16682 samba_cv_SIZEOF_OFF_T=no
16683 fi
16684 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16685 fi
16686 fi
16687 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
16688 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
16689 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
16690
16691 cat >>confdefs.h <<\_ACEOF
16692 #define SIZEOF_OFF_T 8
16693 _ACEOF
16694
16695 fi
16696
16697 echo "$as_me:$LINENO: checking for off64_t" >&5
16698 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
16699 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702
16703 if test "$cross_compiling" = yes; then
16704   samba_cv_HAVE_OFF64_T=cross
16705 else
16706   cat >conftest.$ac_ext <<_ACEOF
16707 #line $LINENO "configure"
16708 #include "confdefs.h"
16709
16710 #if defined(HAVE_UNISTD_H)
16711 #include <unistd.h>
16712 #endif
16713 #include <stdio.h>
16714 #include <sys/stat.h>
16715 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16716 _ACEOF
16717 rm -f conftest$ac_exeext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16719   (eval $ac_link) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724   (eval $ac_try) 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); }; }; then
16728   samba_cv_HAVE_OFF64_T=yes
16729 else
16730   echo "$as_me: program exited with status $ac_status" >&5
16731 echo "$as_me: failed program was:" >&5
16732 cat conftest.$ac_ext >&5
16733 ( exit $ac_status )
16734 samba_cv_HAVE_OFF64_T=no
16735 fi
16736 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16737 fi
16738 fi
16739 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
16740 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
16741 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
16742
16743 cat >>confdefs.h <<\_ACEOF
16744 #define HAVE_OFF64_T 1
16745 _ACEOF
16746
16747 fi
16748
16749 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
16750 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
16751 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
16752   echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754
16755 if test "$cross_compiling" = yes; then
16756   samba_cv_SIZEOF_INO_T=cross
16757 else
16758   cat >conftest.$ac_ext <<_ACEOF
16759 #line $LINENO "configure"
16760 #include "confdefs.h"
16761 #include <stdio.h>
16762 #include <sys/stat.h>
16763 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
16764 _ACEOF
16765 rm -f conftest$ac_exeext
16766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16767   (eval $ac_link) 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772   (eval $ac_try) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; }; then
16776   samba_cv_SIZEOF_INO_T=yes
16777 else
16778   echo "$as_me: program exited with status $ac_status" >&5
16779 echo "$as_me: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16781 ( exit $ac_status )
16782 samba_cv_SIZEOF_INO_T=no
16783 fi
16784 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16785 fi
16786 fi
16787 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
16788 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
16789 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
16790
16791 cat >>confdefs.h <<\_ACEOF
16792 #define SIZEOF_INO_T 8
16793 _ACEOF
16794
16795 fi
16796
16797 echo "$as_me:$LINENO: checking for ino64_t" >&5
16798 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
16799 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
16800   echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802
16803 if test "$cross_compiling" = yes; then
16804   samba_cv_HAVE_INO64_T=cross
16805 else
16806   cat >conftest.$ac_ext <<_ACEOF
16807 #line $LINENO "configure"
16808 #include "confdefs.h"
16809
16810 #if defined(HAVE_UNISTD_H)
16811 #include <unistd.h>
16812 #endif
16813 #include <stdio.h>
16814 #include <sys/stat.h>
16815 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16816 _ACEOF
16817 rm -f conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819   (eval $ac_link) 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824   (eval $ac_try) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); }; }; then
16828   samba_cv_HAVE_INO64_T=yes
16829 else
16830   echo "$as_me: program exited with status $ac_status" >&5
16831 echo "$as_me: failed program was:" >&5
16832 cat conftest.$ac_ext >&5
16833 ( exit $ac_status )
16834 samba_cv_HAVE_INO64_T=no
16835 fi
16836 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16837 fi
16838 fi
16839 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
16840 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
16841 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
16842
16843 cat >>confdefs.h <<\_ACEOF
16844 #define HAVE_INO64_T 1
16845 _ACEOF
16846
16847 fi
16848
16849 echo "$as_me:$LINENO: checking for dev64_t" >&5
16850 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
16851 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
16852   echo $ECHO_N "(cached) $ECHO_C" >&6
16853 else
16854
16855 if test "$cross_compiling" = yes; then
16856   samba_cv_HAVE_DEV64_T=cross
16857 else
16858   cat >conftest.$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16860 #include "confdefs.h"
16861
16862 #if defined(HAVE_UNISTD_H)
16863 #include <unistd.h>
16864 #endif
16865 #include <stdio.h>
16866 #include <sys/stat.h>
16867 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16868 _ACEOF
16869 rm -f conftest$ac_exeext
16870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16871   (eval $ac_link) 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876   (eval $ac_try) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; }; then
16880   samba_cv_HAVE_DEV64_T=yes
16881 else
16882   echo "$as_me: program exited with status $ac_status" >&5
16883 echo "$as_me: failed program was:" >&5
16884 cat conftest.$ac_ext >&5
16885 ( exit $ac_status )
16886 samba_cv_HAVE_DEV64_T=no
16887 fi
16888 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16889 fi
16890 fi
16891 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
16892 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
16893 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
16894
16895 cat >>confdefs.h <<\_ACEOF
16896 #define HAVE_DEV64_T 1
16897 _ACEOF
16898
16899 fi
16900
16901 echo "$as_me:$LINENO: checking for struct dirent64" >&5
16902 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
16903 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
16904   echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906
16907 cat >conftest.$ac_ext <<_ACEOF
16908 #line $LINENO "configure"
16909 #include "confdefs.h"
16910
16911 #if defined(HAVE_UNISTD_H)
16912 #include <unistd.h>
16913 #endif
16914 #include <sys/types.h>
16915 #include <dirent.h>
16916 #ifdef F77_DUMMY_MAIN
16917 #  ifdef __cplusplus
16918      extern "C"
16919 #  endif
16920    int F77_DUMMY_MAIN() { return 1; }
16921 #endif
16922 int
16923 main ()
16924 {
16925 struct dirent64 de;
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16932   (eval $ac_compile) 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -s conftest.$ac_objext'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; }; then
16942   samba_cv_HAVE_STRUCT_DIRENT64=yes
16943 else
16944   echo "$as_me: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16946 samba_cv_HAVE_STRUCT_DIRENT64=no
16947 fi
16948 rm -f conftest.$ac_objext conftest.$ac_ext
16949 fi
16950 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
16951 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
16952 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
16953
16954 cat >>confdefs.h <<\_ACEOF
16955 #define HAVE_STRUCT_DIRENT64 1
16956 _ACEOF
16957
16958 fi
16959
16960 echo "$as_me:$LINENO: checking for major macro" >&5
16961 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
16962 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
16963   echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965
16966 if test "$cross_compiling" = yes; then
16967   samba_cv_HAVE_DEVICE_MAJOR_FN=cross
16968 else
16969   cat >conftest.$ac_ext <<_ACEOF
16970 #line $LINENO "configure"
16971 #include "confdefs.h"
16972
16973 #if defined(HAVE_UNISTD_H)
16974 #include <unistd.h>
16975 #endif
16976 #include <sys/types.h>
16977 main() { dev_t dev; int i = major(dev); return 0; }
16978 _ACEOF
16979 rm -f conftest$ac_exeext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16981   (eval $ac_link) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990   samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16991 else
16992   echo "$as_me: program exited with status $ac_status" >&5
16993 echo "$as_me: failed program was:" >&5
16994 cat conftest.$ac_ext >&5
16995 ( exit $ac_status )
16996 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16997 fi
16998 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16999 fi
17000 fi
17001 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
17002 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
17003 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
17004
17005 cat >>confdefs.h <<\_ACEOF
17006 #define HAVE_DEVICE_MAJOR_FN 1
17007 _ACEOF
17008
17009 fi
17010
17011 echo "$as_me:$LINENO: checking for minor macro" >&5
17012 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
17013 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016
17017 if test "$cross_compiling" = yes; then
17018   samba_cv_HAVE_DEVICE_MINOR_FN=cross
17019 else
17020   cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17022 #include "confdefs.h"
17023
17024 #if defined(HAVE_UNISTD_H)
17025 #include <unistd.h>
17026 #endif
17027 #include <sys/types.h>
17028 main() { dev_t dev; int i = minor(dev); return 0; }
17029 _ACEOF
17030 rm -f conftest$ac_exeext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17032   (eval $ac_link) 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037   (eval $ac_try) 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); }; }; then
17041   samba_cv_HAVE_DEVICE_MINOR_FN=yes
17042 else
17043   echo "$as_me: program exited with status $ac_status" >&5
17044 echo "$as_me: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17046 ( exit $ac_status )
17047 samba_cv_HAVE_DEVICE_MINOR_FN=no
17048 fi
17049 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17050 fi
17051 fi
17052 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
17053 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
17054 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
17055
17056 cat >>confdefs.h <<\_ACEOF
17057 #define HAVE_DEVICE_MINOR_FN 1
17058 _ACEOF
17059
17060 fi
17061
17062 echo "$as_me:$LINENO: checking for unsigned char" >&5
17063 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
17064 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067
17068 if test "$cross_compiling" = yes; then
17069   samba_cv_HAVE_UNSIGNED_CHAR=cross
17070 else
17071   cat >conftest.$ac_ext <<_ACEOF
17072 #line $LINENO "configure"
17073 #include "confdefs.h"
17074 #include <stdio.h>
17075 main() { char c; c=250; exit((c > 0)?0:1); }
17076 _ACEOF
17077 rm -f conftest$ac_exeext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079   (eval $ac_link) 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; }; then
17088   samba_cv_HAVE_UNSIGNED_CHAR=yes
17089 else
17090   echo "$as_me: program exited with status $ac_status" >&5
17091 echo "$as_me: failed program was:" >&5
17092 cat conftest.$ac_ext >&5
17093 ( exit $ac_status )
17094 samba_cv_HAVE_UNSIGNED_CHAR=no
17095 fi
17096 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17097 fi
17098 fi
17099 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
17100 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
17101 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
17102
17103 cat >>confdefs.h <<\_ACEOF
17104 #define HAVE_UNSIGNED_CHAR 1
17105 _ACEOF
17106
17107 fi
17108
17109 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
17110 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
17111 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114
17115 cat >conftest.$ac_ext <<_ACEOF
17116 #line $LINENO "configure"
17117 #include "confdefs.h"
17118 #include <sys/types.h>
17119 #include <sys/socket.h>
17120 #include <netinet/in.h>
17121 #ifdef F77_DUMMY_MAIN
17122 #  ifdef __cplusplus
17123      extern "C"
17124 #  endif
17125    int F77_DUMMY_MAIN() { return 1; }
17126 #endif
17127 int
17128 main ()
17129 {
17130 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137   (eval $ac_compile) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } &&
17141          { ac_try='test -s conftest.$ac_objext'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   samba_cv_HAVE_SOCK_SIN_LEN=yes
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 cat conftest.$ac_ext >&5
17151 samba_cv_HAVE_SOCK_SIN_LEN=no
17152 fi
17153 rm -f conftest.$ac_objext conftest.$ac_ext
17154 fi
17155 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
17156 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
17157 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
17158
17159 cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_SOCK_SIN_LEN 1
17161 _ACEOF
17162
17163 fi
17164
17165 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
17166 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
17167 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170
17171 cat >conftest.$ac_ext <<_ACEOF
17172 #line $LINENO "configure"
17173 #include "confdefs.h"
17174 #include <sys/types.h>
17175 #include <dirent.h>
17176 void seekdir(DIR *d, long loc) { return; }
17177 #ifdef F77_DUMMY_MAIN
17178 #  ifdef __cplusplus
17179      extern "C"
17180 #  endif
17181    int F77_DUMMY_MAIN() { return 1; }
17182 #endif
17183 int
17184 main ()
17185 {
17186 return 0;
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17193   (eval $ac_compile) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); } &&
17197          { ac_try='test -s conftest.$ac_objext'
17198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199   (eval $ac_try) 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); }; }; then
17203   samba_cv_SEEKDIR_RETURNS_VOID=yes
17204 else
17205   echo "$as_me: failed program was:" >&5
17206 cat conftest.$ac_ext >&5
17207 samba_cv_SEEKDIR_RETURNS_VOID=no
17208 fi
17209 rm -f conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
17212 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
17213 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
17214
17215 cat >>confdefs.h <<\_ACEOF
17216 #define SEEKDIR_RETURNS_VOID 1
17217 _ACEOF
17218
17219 fi
17220
17221 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
17222 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
17223 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226
17227 cat >conftest.$ac_ext <<_ACEOF
17228 #line $LINENO "configure"
17229 #include "confdefs.h"
17230 #include <stdio.h>
17231 #ifdef F77_DUMMY_MAIN
17232 #  ifdef __cplusplus
17233      extern "C"
17234 #  endif
17235    int F77_DUMMY_MAIN() { return 1; }
17236 #endif
17237 int
17238 main ()
17239 {
17240 printf("%s\n", __FUNCTION__);
17241   ;
17242   return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247   (eval $ac_compile) 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); } &&
17251          { ac_try='test -s conftest.$ac_objext'
17252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253   (eval $ac_try) 2>&5
17254   ac_status=$?
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); }; }; then
17257   samba_cv_HAVE_FUNCTION_MACRO=yes
17258 else
17259   echo "$as_me: failed program was:" >&5
17260 cat conftest.$ac_ext >&5
17261 samba_cv_HAVE_FUNCTION_MACRO=no
17262 fi
17263 rm -f conftest.$ac_objext conftest.$ac_ext
17264 fi
17265 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
17266 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
17267 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
17268
17269 cat >>confdefs.h <<\_ACEOF
17270 #define HAVE_FUNCTION_MACRO 1
17271 _ACEOF
17272
17273 fi
17274
17275 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
17276 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
17277 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280
17281 if test "$cross_compiling" = yes; then
17282   samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
17283 else
17284   cat >conftest.$ac_ext <<_ACEOF
17285 #line $LINENO "configure"
17286 #include "confdefs.h"
17287
17288 #include <sys/time.h>
17289 #include <unistd.h>
17290 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
17291 _ACEOF
17292 rm -f conftest$ac_exeext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294   (eval $ac_link) 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299   (eval $ac_try) 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }; }; then
17303   samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
17304 else
17305   echo "$as_me: program exited with status $ac_status" >&5
17306 echo "$as_me: failed program was:" >&5
17307 cat conftest.$ac_ext >&5
17308 ( exit $ac_status )
17309 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
17310 fi
17311 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17312 fi
17313 fi
17314 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
17315 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
17316 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
17317
17318 cat >>confdefs.h <<\_ACEOF
17319 #define HAVE_GETTIMEOFDAY_TZ 1
17320 _ACEOF
17321
17322 fi
17323
17324 echo "$as_me:$LINENO: checking for __va_copy" >&5
17325 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17326 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
17327   echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329
17330 cat >conftest.$ac_ext <<_ACEOF
17331 #line $LINENO "configure"
17332 #include "confdefs.h"
17333 #include <stdarg.h>
17334 va_list ap1,ap2;
17335 #ifdef F77_DUMMY_MAIN
17336 #  ifdef __cplusplus
17337      extern "C"
17338 #  endif
17339    int F77_DUMMY_MAIN() { return 1; }
17340 #endif
17341 int
17342 main ()
17343 {
17344 __va_copy(ap1,ap2);
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349 rm -f conftest.$ac_objext conftest$ac_exeext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17351   (eval $ac_link) 2>&5
17352   ac_status=$?
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } &&
17355          { ac_try='test -s conftest$ac_exeext'
17356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357   (eval $ac_try) 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); }; }; then
17361   samba_cv_HAVE_VA_COPY=yes
17362 else
17363   echo "$as_me: failed program was:" >&5
17364 cat conftest.$ac_ext >&5
17365 samba_cv_HAVE_VA_COPY=no
17366 fi
17367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17368 fi
17369 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
17370 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
17371 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
17372
17373 cat >>confdefs.h <<\_ACEOF
17374 #define HAVE_VA_COPY 1
17375 _ACEOF
17376
17377 fi
17378
17379 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
17380 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
17381 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
17382   echo $ECHO_N "(cached) $ECHO_C" >&6
17383 else
17384
17385 if test "$cross_compiling" = yes; then
17386   samba_cv_HAVE_C99_VSNPRINTF=cross
17387 else
17388   cat >conftest.$ac_ext <<_ACEOF
17389 #line $LINENO "configure"
17390 #include "confdefs.h"
17391
17392 #include <sys/types.h>
17393 #include <stdarg.h>
17394 void foo(const char *format, ...) {
17395        va_list ap;
17396        int len;
17397        char buf[5];
17398
17399        va_start(ap, format);
17400        len = vsnprintf(buf, 0, format, ap);
17401        va_end(ap);
17402        if (len != 5) exit(1);
17403
17404        va_start(ap, format);
17405        len = vsnprintf(0, 0, format, ap);
17406        va_end(ap);
17407        if (len != 5) exit(1);
17408
17409        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
17410
17411        exit(0);
17412 }
17413 main() { foo("hello"); }
17414
17415 _ACEOF
17416 rm -f conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418   (eval $ac_link) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423   (eval $ac_try) 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; }; then
17427   samba_cv_HAVE_C99_VSNPRINTF=yes
17428 else
17429   echo "$as_me: program exited with status $ac_status" >&5
17430 echo "$as_me: failed program was:" >&5
17431 cat conftest.$ac_ext >&5
17432 ( exit $ac_status )
17433 samba_cv_HAVE_C99_VSNPRINTF=no
17434 fi
17435 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 fi
17438 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
17439 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
17440 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
17441
17442 cat >>confdefs.h <<\_ACEOF
17443 #define HAVE_C99_VSNPRINTF 1
17444 _ACEOF
17445
17446 fi
17447
17448 echo "$as_me:$LINENO: checking for broken readdir" >&5
17449 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
17450 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
17451   echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453
17454 if test "$cross_compiling" = yes; then
17455   samba_cv_HAVE_BROKEN_READDIR=cross
17456 else
17457   cat >conftest.$ac_ext <<_ACEOF
17458 #line $LINENO "configure"
17459 #include "confdefs.h"
17460 #include <sys/types.h>
17461 #include <dirent.h>
17462 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
17463 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
17464 di->d_name[0] == 0) exit(0); exit(1);}
17465 _ACEOF
17466 rm -f conftest$ac_exeext
17467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17468   (eval $ac_link) 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473   (eval $ac_try) 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; }; then
17477   samba_cv_HAVE_BROKEN_READDIR=yes
17478 else
17479   echo "$as_me: program exited with status $ac_status" >&5
17480 echo "$as_me: failed program was:" >&5
17481 cat conftest.$ac_ext >&5
17482 ( exit $ac_status )
17483 samba_cv_HAVE_BROKEN_READDIR=no
17484 fi
17485 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17486 fi
17487 fi
17488 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
17489 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
17490 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
17491
17492 cat >>confdefs.h <<\_ACEOF
17493 #define HAVE_BROKEN_READDIR 1
17494 _ACEOF
17495
17496 fi
17497
17498 echo "$as_me:$LINENO: checking for utimbuf" >&5
17499 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
17500 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503
17504 cat >conftest.$ac_ext <<_ACEOF
17505 #line $LINENO "configure"
17506 #include "confdefs.h"
17507 #include <sys/types.h>
17508 #include <utime.h>
17509 #ifdef F77_DUMMY_MAIN
17510 #  ifdef __cplusplus
17511      extern "C"
17512 #  endif
17513    int F77_DUMMY_MAIN() { return 1; }
17514 #endif
17515 int
17516 main ()
17517 {
17518 struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525   (eval $ac_compile) 2>&5
17526   ac_status=$?
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); } &&
17529          { ac_try='test -s conftest.$ac_objext'
17530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531   (eval $ac_try) 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); }; }; then
17535   samba_cv_HAVE_UTIMBUF=yes
17536 else
17537   echo "$as_me: failed program was:" >&5
17538 cat conftest.$ac_ext >&5
17539 samba_cv_HAVE_UTIMBUF=no
17540 fi
17541 rm -f conftest.$ac_objext conftest.$ac_ext
17542 fi
17543 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
17544 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
17545 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
17546
17547 cat >>confdefs.h <<\_ACEOF
17548 #define HAVE_UTIMBUF 1
17549 _ACEOF
17550
17551 fi
17552
17553
17554
17555
17556
17557
17558
17559 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
17560 do
17561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17562 echo "$as_me:$LINENO: checking for $ac_func" >&5
17563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17564 if eval "test \"\${$as_ac_var+set}\" = set"; then
17565   echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567   cat >conftest.$ac_ext <<_ACEOF
17568 #line $LINENO "configure"
17569 #include "confdefs.h"
17570 /* System header to define __stub macros and hopefully few prototypes,
17571     which can conflict with char $ac_func (); below.  */
17572 #include <assert.h>
17573 /* Override any gcc2 internal prototype to avoid an error.  */
17574 #ifdef __cplusplus
17575 extern "C"
17576 #endif
17577 /* We use char because int might match the return type of a gcc2
17578    builtin and then its argument prototype would still apply.  */
17579 char $ac_func ();
17580 char (*f) ();
17581
17582 #ifdef F77_DUMMY_MAIN
17583 #  ifdef __cplusplus
17584      extern "C"
17585 #  endif
17586    int F77_DUMMY_MAIN() { return 1; }
17587 #endif
17588 int
17589 main ()
17590 {
17591 /* The GNU C library defines this for functions which it implements
17592     to always fail with ENOSYS.  Some functions are actually named
17593     something starting with __ and the normal name is an alias.  */
17594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17595 choke me
17596 #else
17597 f = $ac_func;
17598 #endif
17599
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17606   (eval $ac_link) 2>&5
17607   ac_status=$?
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); } &&
17610          { ac_try='test -s conftest$ac_exeext'
17611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612   (eval $ac_try) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; }; then
17616   eval "$as_ac_var=yes"
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 cat conftest.$ac_ext >&5
17620 eval "$as_ac_var=no"
17621 fi
17622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17623 fi
17624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17626 if test `eval echo '${'$as_ac_var'}'` = yes; then
17627   cat >>confdefs.h <<_ACEOF
17628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17629 _ACEOF
17630
17631 fi
17632 done
17633
17634
17635 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
17636 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
17637 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
17638   echo $ECHO_N "(cached) $ECHO_C" >&6
17639 else
17640
17641 cat >conftest.$ac_ext <<_ACEOF
17642 #line $LINENO "configure"
17643 #include "confdefs.h"
17644 #include <sys/types.h>
17645 #include <utmp.h>
17646 #ifdef F77_DUMMY_MAIN
17647 #  ifdef __cplusplus
17648      extern "C"
17649 #  endif
17650    int F77_DUMMY_MAIN() { return 1; }
17651 #endif
17652 int
17653 main ()
17654 {
17655 struct utmp ut;  ut.ut_name[0] = 'a';
17656   ;
17657   return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest.$ac_objext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662   (eval $ac_compile) 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } &&
17666          { ac_try='test -s conftest.$ac_objext'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; }; then
17672   samba_cv_HAVE_UT_UT_NAME=yes
17673 else
17674   echo "$as_me: failed program was:" >&5
17675 cat conftest.$ac_ext >&5
17676 samba_cv_HAVE_UT_UT_NAME=no
17677 fi
17678 rm -f conftest.$ac_objext conftest.$ac_ext
17679 fi
17680 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
17681 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
17682 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
17683
17684 cat >>confdefs.h <<\_ACEOF
17685 #define HAVE_UT_UT_NAME 1
17686 _ACEOF
17687
17688 fi
17689
17690 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
17691 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
17692 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
17693   echo $ECHO_N "(cached) $ECHO_C" >&6
17694 else
17695
17696 cat >conftest.$ac_ext <<_ACEOF
17697 #line $LINENO "configure"
17698 #include "confdefs.h"
17699 #include <sys/types.h>
17700 #include <utmp.h>
17701 #ifdef F77_DUMMY_MAIN
17702 #  ifdef __cplusplus
17703      extern "C"
17704 #  endif
17705    int F77_DUMMY_MAIN() { return 1; }
17706 #endif
17707 int
17708 main ()
17709 {
17710 struct utmp ut;  ut.ut_user[0] = 'a';
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17717   (eval $ac_compile) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -s conftest.$ac_objext'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727   samba_cv_HAVE_UT_UT_USER=yes
17728 else
17729   echo "$as_me: failed program was:" >&5
17730 cat conftest.$ac_ext >&5
17731 samba_cv_HAVE_UT_UT_USER=no
17732 fi
17733 rm -f conftest.$ac_objext conftest.$ac_ext
17734 fi
17735 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
17736 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
17737 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
17738
17739 cat >>confdefs.h <<\_ACEOF
17740 #define HAVE_UT_UT_USER 1
17741 _ACEOF
17742
17743 fi
17744
17745 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
17746 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
17747 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
17748   echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750
17751 cat >conftest.$ac_ext <<_ACEOF
17752 #line $LINENO "configure"
17753 #include "confdefs.h"
17754 #include <sys/types.h>
17755 #include <utmp.h>
17756 #ifdef F77_DUMMY_MAIN
17757 #  ifdef __cplusplus
17758      extern "C"
17759 #  endif
17760    int F77_DUMMY_MAIN() { return 1; }
17761 #endif
17762 int
17763 main ()
17764 {
17765 struct utmp ut;  ut.ut_id[0] = 'a';
17766   ;
17767   return 0;
17768 }
17769 _ACEOF
17770 rm -f conftest.$ac_objext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17772   (eval $ac_compile) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); } &&
17776          { ac_try='test -s conftest.$ac_objext'
17777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778   (eval $ac_try) 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); }; }; then
17782   samba_cv_HAVE_UT_UT_ID=yes
17783 else
17784   echo "$as_me: failed program was:" >&5
17785 cat conftest.$ac_ext >&5
17786 samba_cv_HAVE_UT_UT_ID=no
17787 fi
17788 rm -f conftest.$ac_objext conftest.$ac_ext
17789 fi
17790 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
17791 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
17792 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
17793
17794 cat >>confdefs.h <<\_ACEOF
17795 #define HAVE_UT_UT_ID 1
17796 _ACEOF
17797
17798 fi
17799
17800 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
17801 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
17802 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
17803   echo $ECHO_N "(cached) $ECHO_C" >&6
17804 else
17805
17806 cat >conftest.$ac_ext <<_ACEOF
17807 #line $LINENO "configure"
17808 #include "confdefs.h"
17809 #include <sys/types.h>
17810 #include <utmp.h>
17811 #ifdef F77_DUMMY_MAIN
17812 #  ifdef __cplusplus
17813      extern "C"
17814 #  endif
17815    int F77_DUMMY_MAIN() { return 1; }
17816 #endif
17817 int
17818 main ()
17819 {
17820 struct utmp ut;  ut.ut_host[0] = 'a';
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext
17826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17827   (eval $ac_compile) 2>&5
17828   ac_status=$?
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); } &&
17831          { ac_try='test -s conftest.$ac_objext'
17832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833   (eval $ac_try) 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); }; }; then
17837   samba_cv_HAVE_UT_UT_HOST=yes
17838 else
17839   echo "$as_me: failed program was:" >&5
17840 cat conftest.$ac_ext >&5
17841 samba_cv_HAVE_UT_UT_HOST=no
17842 fi
17843 rm -f conftest.$ac_objext conftest.$ac_ext
17844 fi
17845 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
17846 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
17847 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
17848
17849 cat >>confdefs.h <<\_ACEOF
17850 #define HAVE_UT_UT_HOST 1
17851 _ACEOF
17852
17853 fi
17854
17855 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
17856 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
17857 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
17858   echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860
17861 cat >conftest.$ac_ext <<_ACEOF
17862 #line $LINENO "configure"
17863 #include "confdefs.h"
17864 #include <sys/types.h>
17865 #include <utmp.h>
17866 #ifdef F77_DUMMY_MAIN
17867 #  ifdef __cplusplus
17868      extern "C"
17869 #  endif
17870    int F77_DUMMY_MAIN() { return 1; }
17871 #endif
17872 int
17873 main ()
17874 {
17875 struct utmp ut;  time_t t; ut.ut_time = t;
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17882   (eval $ac_compile) 2>&5
17883   ac_status=$?
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } &&
17886          { ac_try='test -s conftest.$ac_objext'
17887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888   (eval $ac_try) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; }; then
17892   samba_cv_HAVE_UT_UT_TIME=yes
17893 else
17894   echo "$as_me: failed program was:" >&5
17895 cat conftest.$ac_ext >&5
17896 samba_cv_HAVE_UT_UT_TIME=no
17897 fi
17898 rm -f conftest.$ac_objext conftest.$ac_ext
17899 fi
17900 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
17901 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
17902 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
17903
17904 cat >>confdefs.h <<\_ACEOF
17905 #define HAVE_UT_UT_TIME 1
17906 _ACEOF
17907
17908 fi
17909
17910 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
17911 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
17912 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
17913   echo $ECHO_N "(cached) $ECHO_C" >&6
17914 else
17915
17916 cat >conftest.$ac_ext <<_ACEOF
17917 #line $LINENO "configure"
17918 #include "confdefs.h"
17919 #include <sys/types.h>
17920 #include <utmp.h>
17921 #ifdef F77_DUMMY_MAIN
17922 #  ifdef __cplusplus
17923      extern "C"
17924 #  endif
17925    int F77_DUMMY_MAIN() { return 1; }
17926 #endif
17927 int
17928 main ()
17929 {
17930 struct utmp ut;  struct timeval tv; ut.ut_tv = tv;
17931   ;
17932   return 0;
17933 }
17934 _ACEOF
17935 rm -f conftest.$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937   (eval $ac_compile) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } &&
17941          { ac_try='test -s conftest.$ac_objext'
17942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943   (eval $ac_try) 2>&5
17944   ac_status=$?
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); }; }; then
17947   samba_cv_HAVE_UT_UT_TV=yes
17948 else
17949   echo "$as_me: failed program was:" >&5
17950 cat conftest.$ac_ext >&5
17951 samba_cv_HAVE_UT_UT_TV=no
17952 fi
17953 rm -f conftest.$ac_objext conftest.$ac_ext
17954 fi
17955 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
17956 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
17957 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
17958
17959 cat >>confdefs.h <<\_ACEOF
17960 #define HAVE_UT_UT_TV 1
17961 _ACEOF
17962
17963 fi
17964
17965 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
17966 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
17967 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970
17971 cat >conftest.$ac_ext <<_ACEOF
17972 #line $LINENO "configure"
17973 #include "confdefs.h"
17974 #include <sys/types.h>
17975 #include <utmp.h>
17976 #ifdef F77_DUMMY_MAIN
17977 #  ifdef __cplusplus
17978      extern "C"
17979 #  endif
17980    int F77_DUMMY_MAIN() { return 1; }
17981 #endif
17982 int
17983 main ()
17984 {
17985 struct utmp ut;  ut.ut_type = 0;
17986   ;
17987   return 0;
17988 }
17989 _ACEOF
17990 rm -f conftest.$ac_objext
17991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17992   (eval $ac_compile) 2>&5
17993   ac_status=$?
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } &&
17996          { ac_try='test -s conftest.$ac_objext'
17997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998   (eval $ac_try) 2>&5
17999   ac_status=$?
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); }; }; then
18002   samba_cv_HAVE_UT_UT_TYPE=yes
18003 else
18004   echo "$as_me: failed program was:" >&5
18005 cat conftest.$ac_ext >&5
18006 samba_cv_HAVE_UT_UT_TYPE=no
18007 fi
18008 rm -f conftest.$ac_objext conftest.$ac_ext
18009 fi
18010 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
18011 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
18012 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
18013
18014 cat >>confdefs.h <<\_ACEOF
18015 #define HAVE_UT_UT_TYPE 1
18016 _ACEOF
18017
18018 fi
18019
18020 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
18021 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
18022 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
18023   echo $ECHO_N "(cached) $ECHO_C" >&6
18024 else
18025
18026 cat >conftest.$ac_ext <<_ACEOF
18027 #line $LINENO "configure"
18028 #include "confdefs.h"
18029 #include <sys/types.h>
18030 #include <utmp.h>
18031 #ifdef F77_DUMMY_MAIN
18032 #  ifdef __cplusplus
18033      extern "C"
18034 #  endif
18035    int F77_DUMMY_MAIN() { return 1; }
18036 #endif
18037 int
18038 main ()
18039 {
18040 struct utmp ut;  ut.ut_pid = 0;
18041   ;
18042   return 0;
18043 }
18044 _ACEOF
18045 rm -f conftest.$ac_objext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18047   (eval $ac_compile) 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); } &&
18051          { ac_try='test -s conftest.$ac_objext'
18052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053   (eval $ac_try) 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; }; then
18057   samba_cv_HAVE_UT_UT_PID=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 cat conftest.$ac_ext >&5
18061 samba_cv_HAVE_UT_UT_PID=no
18062 fi
18063 rm -f conftest.$ac_objext conftest.$ac_ext
18064 fi
18065 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
18066 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
18067 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
18068
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_UT_UT_PID 1
18071 _ACEOF
18072
18073 fi
18074
18075 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
18076 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
18077 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
18078   echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080
18081 cat >conftest.$ac_ext <<_ACEOF
18082 #line $LINENO "configure"
18083 #include "confdefs.h"
18084 #include <sys/types.h>
18085 #include <utmp.h>
18086 #ifdef F77_DUMMY_MAIN
18087 #  ifdef __cplusplus
18088      extern "C"
18089 #  endif
18090    int F77_DUMMY_MAIN() { return 1; }
18091 #endif
18092 int
18093 main ()
18094 {
18095 struct utmp ut;  ut.ut_exit.e_exit = 0;
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102   (eval $ac_compile) 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); } &&
18106          { ac_try='test -s conftest.$ac_objext'
18107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108   (eval $ac_try) 2>&5
18109   ac_status=$?
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); }; }; then
18112   samba_cv_HAVE_UT_UT_EXIT=yes
18113 else
18114   echo "$as_me: failed program was:" >&5
18115 cat conftest.$ac_ext >&5
18116 samba_cv_HAVE_UT_UT_EXIT=no
18117 fi
18118 rm -f conftest.$ac_objext conftest.$ac_ext
18119 fi
18120 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
18121 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
18122 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
18123
18124 cat >>confdefs.h <<\_ACEOF
18125 #define HAVE_UT_UT_EXIT 1
18126 _ACEOF
18127
18128 fi
18129
18130 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
18131 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
18132 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
18133   echo $ECHO_N "(cached) $ECHO_C" >&6
18134 else
18135
18136 cat >conftest.$ac_ext <<_ACEOF
18137 #line $LINENO "configure"
18138 #include "confdefs.h"
18139 #include <sys/types.h>
18140 #include <utmp.h>
18141 #ifdef F77_DUMMY_MAIN
18142 #  ifdef __cplusplus
18143      extern "C"
18144 #  endif
18145    int F77_DUMMY_MAIN() { return 1; }
18146 #endif
18147 int
18148 main ()
18149 {
18150 struct utmp ut;  ut.ut_addr = 0;
18151   ;
18152   return 0;
18153 }
18154 _ACEOF
18155 rm -f conftest.$ac_objext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157   (eval $ac_compile) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); } &&
18161          { ac_try='test -s conftest.$ac_objext'
18162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163   (eval $ac_try) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); }; }; then
18167   samba_cv_HAVE_UT_UT_ADDR=yes
18168 else
18169   echo "$as_me: failed program was:" >&5
18170 cat conftest.$ac_ext >&5
18171 samba_cv_HAVE_UT_UT_ADDR=no
18172 fi
18173 rm -f conftest.$ac_objext conftest.$ac_ext
18174 fi
18175 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
18176 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
18177 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
18178
18179 cat >>confdefs.h <<\_ACEOF
18180 #define HAVE_UT_UT_ADDR 1
18181 _ACEOF
18182
18183 fi
18184
18185 if test x$ac_cv_func_pututline = xyes ; then
18186   echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
18187 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
18188 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
18189   echo $ECHO_N "(cached) $ECHO_C" >&6
18190 else
18191
18192   cat >conftest.$ac_ext <<_ACEOF
18193 #line $LINENO "configure"
18194 #include "confdefs.h"
18195 #include <sys/types.h>
18196 #include <utmp.h>
18197 #ifdef F77_DUMMY_MAIN
18198 #  ifdef __cplusplus
18199      extern "C"
18200 #  endif
18201    int F77_DUMMY_MAIN() { return 1; }
18202 #endif
18203 int
18204 main ()
18205 {
18206 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
18207   ;
18208   return 0;
18209 }
18210 _ACEOF
18211 rm -f conftest.$ac_objext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213   (eval $ac_compile) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); } &&
18217          { ac_try='test -s conftest.$ac_objext'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223   samba_cv_PUTUTLINE_RETURNS_UTMP=yes
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 cat conftest.$ac_ext >&5
18227 samba_cv_PUTUTLINE_RETURNS_UTMP=no
18228 fi
18229 rm -f conftest.$ac_objext conftest.$ac_ext
18230 fi
18231 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
18232 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
18233   if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
18234
18235 cat >>confdefs.h <<\_ACEOF
18236 #define PUTUTLINE_RETURNS_UTMP 1
18237 _ACEOF
18238
18239   fi
18240 fi
18241
18242 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
18243 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
18244 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
18245   echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247
18248 cat >conftest.$ac_ext <<_ACEOF
18249 #line $LINENO "configure"
18250 #include "confdefs.h"
18251 #include <sys/types.h>
18252 #include <utmpx.h>
18253 #ifdef F77_DUMMY_MAIN
18254 #  ifdef __cplusplus
18255      extern "C"
18256 #  endif
18257    int F77_DUMMY_MAIN() { return 1; }
18258 #endif
18259 int
18260 main ()
18261 {
18262 struct utmpx ux;  ux.ut_syslen = 0;
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269   (eval $ac_compile) 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } &&
18273          { ac_try='test -s conftest.$ac_objext'
18274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275   (eval $ac_try) 2>&5
18276   ac_status=$?
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); }; }; then
18279   samba_cv_HAVE_UX_UT_SYSLEN=yes
18280 else
18281   echo "$as_me: failed program was:" >&5
18282 cat conftest.$ac_ext >&5
18283 samba_cv_HAVE_UX_UT_SYSLEN=no
18284 fi
18285 rm -f conftest.$ac_objext conftest.$ac_ext
18286 fi
18287 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
18288 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
18289 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
18290
18291 cat >>confdefs.h <<\_ACEOF
18292 #define HAVE_UX_UT_SYSLEN 1
18293 _ACEOF
18294
18295 fi
18296
18297
18298 #################################################
18299 # check for libiconv support
18300 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
18301 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
18302
18303 # Check whether --with-libiconv or --without-libiconv was given.
18304 if test "${with_libiconv+set}" = set; then
18305   withval="$with_libiconv"
18306    case "$withval" in
18307   no)
18308     echo "$as_me:$LINENO: result: no" >&5
18309 echo "${ECHO_T}no" >&6
18310     ;;
18311   *)
18312     echo "$as_me:$LINENO: result: yes" >&5
18313 echo "${ECHO_T}yes" >&6
18314     CFLAGS="$CFLAGS -I$withval/include"
18315     LDFLAGS="$LDFLAGS -L$withval/lib"
18316
18317 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18318 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18319 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18320   echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322   ac_check_lib_save_LIBS=$LIBS
18323 LIBS="-liconv  $LIBS"
18324 cat >conftest.$ac_ext <<_ACEOF
18325 #line $LINENO "configure"
18326 #include "confdefs.h"
18327
18328 /* Override any gcc2 internal prototype to avoid an error.  */
18329 #ifdef __cplusplus
18330 extern "C"
18331 #endif
18332 /* We use char because int might match the return type of a gcc2
18333    builtin and then its argument prototype would still apply.  */
18334 char iconv_open ();
18335 #ifdef F77_DUMMY_MAIN
18336 #  ifdef __cplusplus
18337      extern "C"
18338 #  endif
18339    int F77_DUMMY_MAIN() { return 1; }
18340 #endif
18341 int
18342 main ()
18343 {
18344 iconv_open ();
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18351   (eval $ac_link) 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); } &&
18355          { ac_try='test -s conftest$ac_exeext'
18356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357   (eval $ac_try) 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }; }; then
18361   ac_cv_lib_iconv_iconv_open=yes
18362 else
18363   echo "$as_me: failed program was:" >&5
18364 cat conftest.$ac_ext >&5
18365 ac_cv_lib_iconv_iconv_open=no
18366 fi
18367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18369 fi
18370 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18371 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18372 if test $ac_cv_lib_iconv_iconv_open = yes; then
18373   cat >>confdefs.h <<_ACEOF
18374 #define HAVE_LIBICONV 1
18375 _ACEOF
18376
18377   LIBS="-liconv $LIBS"
18378
18379 fi
18380
18381
18382 cat >>confdefs.h <<_ACEOF
18383 #define WITH_LIBICONV "${withval}"
18384 _ACEOF
18385
18386     ;;
18387   esac
18388 else
18389   echo "$as_me:$LINENO: result: no" >&5
18390 echo "${ECHO_T}no" >&6
18391
18392 fi;
18393
18394
18395 ############
18396 # check for iconv in libc
18397 echo "$as_me:$LINENO: checking for working iconv" >&5
18398 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
18399 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
18400   echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402
18403 if test "$cross_compiling" = yes; then
18404   samba_cv_HAVE_NATIVE_ICONV=cross
18405 else
18406   cat >conftest.$ac_ext <<_ACEOF
18407 #line $LINENO "configure"
18408 #include "confdefs.h"
18409
18410 #include <iconv.h>
18411 main() {
18412        iconv_t cd = iconv_open("ASCII", "UCS-2LE");
18413        if (cd == 0 || cd == (iconv_t)-1) return -1;
18414        return 0;
18415 }
18416
18417 _ACEOF
18418 rm -f conftest$ac_exeext
18419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420   (eval $ac_link) 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425   (eval $ac_try) 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); }; }; then
18429   samba_cv_HAVE_NATIVE_ICONV=yes
18430 else
18431   echo "$as_me: program exited with status $ac_status" >&5
18432 echo "$as_me: failed program was:" >&5
18433 cat conftest.$ac_ext >&5
18434 ( exit $ac_status )
18435 samba_cv_HAVE_NATIVE_ICONV=no
18436 fi
18437 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18438 fi
18439 fi
18440 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
18441 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
18442 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
18443
18444 cat >>confdefs.h <<\_ACEOF
18445 #define HAVE_NATIVE_ICONV 1
18446 _ACEOF
18447
18448 fi
18449
18450
18451 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
18452 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
18453 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
18454   echo $ECHO_N "(cached) $ECHO_C" >&6
18455 else
18456
18457 if test "$cross_compiling" = yes; then
18458   samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
18459 else
18460   cat >conftest.$ac_ext <<_ACEOF
18461 #line $LINENO "configure"
18462 #include "confdefs.h"
18463
18464 #include <sys/types.h>
18465 #include <fcntl.h>
18466 #ifndef F_GETLEASE
18467 #define F_GETLEASE      1025
18468 #endif
18469 main() {
18470        int fd = open("/dev/null", O_RDONLY);
18471        return fcntl(fd, F_GETLEASE, 0) == -1;
18472 }
18473
18474 _ACEOF
18475 rm -f conftest$ac_exeext
18476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18477   (eval $ac_link) 2>&5
18478   ac_status=$?
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482   (eval $ac_try) 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); }; }; then
18486   samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
18487 else
18488   echo "$as_me: program exited with status $ac_status" >&5
18489 echo "$as_me: failed program was:" >&5
18490 cat conftest.$ac_ext >&5
18491 ( exit $ac_status )
18492 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
18493 fi
18494 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18495 fi
18496 fi
18497 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
18498 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
18499 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
18500
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_KERNEL_OPLOCKS_LINUX 1
18503 _ACEOF
18504
18505 fi
18506
18507 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
18508 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
18509 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
18510   echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512
18513 if test "$cross_compiling" = yes; then
18514   samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
18515 else
18516   cat >conftest.$ac_ext <<_ACEOF
18517 #line $LINENO "configure"
18518 #include "confdefs.h"
18519
18520 #include <sys/types.h>
18521 #include <fcntl.h>
18522 #include <signal.h>
18523 #ifndef F_NOTIFY
18524 #define F_NOTIFY 1026
18525 #endif
18526 main() {
18527         exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ?  1 : 0);
18528 }
18529
18530 _ACEOF
18531 rm -f conftest$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533   (eval $ac_link) 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538   (eval $ac_try) 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }; }; then
18542   samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
18543 else
18544   echo "$as_me: program exited with status $ac_status" >&5
18545 echo "$as_me: failed program was:" >&5
18546 cat conftest.$ac_ext >&5
18547 ( exit $ac_status )
18548 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
18549 fi
18550 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18551 fi
18552 fi
18553 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
18554 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
18555 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_KERNEL_CHANGE_NOTIFY 1
18559 _ACEOF
18560
18561 fi
18562
18563 echo "$as_me:$LINENO: checking for kernel share modes" >&5
18564 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
18565 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
18566   echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568
18569 if test "$cross_compiling" = yes; then
18570   samba_cv_HAVE_KERNEL_SHARE_MODES=cross
18571 else
18572   cat >conftest.$ac_ext <<_ACEOF
18573 #line $LINENO "configure"
18574 #include "confdefs.h"
18575
18576 #include <sys/types.h>
18577 #include <fcntl.h>
18578 #include <signal.h>
18579 #include <sys/file.h>
18580 #ifndef LOCK_MAND
18581 #define LOCK_MAND       32
18582 #define LOCK_READ       64
18583 #endif
18584 main() {
18585         exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
18586 }
18587
18588 _ACEOF
18589 rm -f conftest$ac_exeext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18591   (eval $ac_link) 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596   (eval $ac_try) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; }; then
18600   samba_cv_HAVE_KERNEL_SHARE_MODES=yes
18601 else
18602   echo "$as_me: program exited with status $ac_status" >&5
18603 echo "$as_me: failed program was:" >&5
18604 cat conftest.$ac_ext >&5
18605 ( exit $ac_status )
18606 samba_cv_HAVE_KERNEL_SHARE_MODES=no
18607 fi
18608 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18609 fi
18610 fi
18611 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
18612 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
18613 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
18614
18615 cat >>confdefs.h <<\_ACEOF
18616 #define HAVE_KERNEL_SHARE_MODES 1
18617 _ACEOF
18618
18619 fi
18620
18621
18622
18623
18624 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
18625 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
18626 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
18627   echo $ECHO_N "(cached) $ECHO_C" >&6
18628 else
18629
18630 cat >conftest.$ac_ext <<_ACEOF
18631 #line $LINENO "configure"
18632 #include "confdefs.h"
18633 #include <sys/types.h>
18634 #include <fcntl.h>
18635 #ifdef F77_DUMMY_MAIN
18636 #  ifdef __cplusplus
18637      extern "C"
18638 #  endif
18639    int F77_DUMMY_MAIN() { return 1; }
18640 #endif
18641 int
18642 main ()
18643 {
18644 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
18645   ;
18646   return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18651   (eval $ac_compile) 2>&5
18652   ac_status=$?
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); } &&
18655          { ac_try='test -s conftest.$ac_objext'
18656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657   (eval $ac_try) 2>&5
18658   ac_status=$?
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); }; }; then
18661   samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
18662 else
18663   echo "$as_me: failed program was:" >&5
18664 cat conftest.$ac_ext >&5
18665 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
18666 fi
18667 rm -f conftest.$ac_objext conftest.$ac_ext
18668 fi
18669 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
18670 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
18671 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
18672
18673 cat >>confdefs.h <<\_ACEOF
18674 #define HAVE_KERNEL_OPLOCKS_IRIX 1
18675 _ACEOF
18676
18677 fi
18678
18679 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
18680 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
18681 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684
18685 if test "$cross_compiling" = yes; then
18686   samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
18687 else
18688   cat >conftest.$ac_ext <<_ACEOF
18689 #line $LINENO "configure"
18690 #include "confdefs.h"
18691 #include <sys/types.h>
18692 #include <sys/capability.h>
18693 main() {
18694  cap_t cap;
18695  if ((cap = cap_get_proc()) == NULL)
18696    exit(1);
18697  cap->cap_effective |= CAP_NETWORK_MGT;
18698  cap->cap_inheritable |= CAP_NETWORK_MGT;
18699  cap_set_proc(cap);
18700  exit(0);
18701 }
18702
18703 _ACEOF
18704 rm -f conftest$ac_exeext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18706   (eval $ac_link) 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711   (eval $ac_try) 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); }; }; then
18715   samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
18716 else
18717   echo "$as_me: program exited with status $ac_status" >&5
18718 echo "$as_me: failed program was:" >&5
18719 cat conftest.$ac_ext >&5
18720 ( exit $ac_status )
18721 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
18722 fi
18723 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18724 fi
18725 fi
18726 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
18727 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
18728 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
18729
18730 cat >>confdefs.h <<\_ACEOF
18731 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
18732 _ACEOF
18733
18734 fi
18735
18736 #
18737 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
18738 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
18739 #
18740
18741 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
18742 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18743 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
18744   echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746
18747 cat >conftest.$ac_ext <<_ACEOF
18748 #line $LINENO "configure"
18749 #include "confdefs.h"
18750 #include <sys/types.h>
18751 #if defined(HAVE_RPC_RPC_H)
18752 #include <rpc/rpc.h>
18753 #endif
18754 #ifdef F77_DUMMY_MAIN
18755 #  ifdef __cplusplus
18756      extern "C"
18757 #  endif
18758    int F77_DUMMY_MAIN() { return 1; }
18759 #endif
18760 int
18761 main ()
18762 {
18763 int16 testvar;
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18770   (eval $ac_compile) 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); } &&
18774          { ac_try='test -s conftest.$ac_objext'
18775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776   (eval $ac_try) 2>&5
18777   ac_status=$?
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); }; }; then
18780   samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 cat conftest.$ac_ext >&5
18784 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
18785 fi
18786 rm -f conftest.$ac_objext conftest.$ac_ext
18787 fi
18788 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
18789 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
18790 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
18791
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_INT16_FROM_RPC_RPC_H 1
18794 _ACEOF
18795
18796 fi
18797
18798 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
18799 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18800 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
18801   echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803
18804 cat >conftest.$ac_ext <<_ACEOF
18805 #line $LINENO "configure"
18806 #include "confdefs.h"
18807 #include <sys/types.h>
18808 #if defined(HAVE_RPC_RPC_H)
18809 #include <rpc/rpc.h>
18810 #endif
18811 #ifdef F77_DUMMY_MAIN
18812 #  ifdef __cplusplus
18813      extern "C"
18814 #  endif
18815    int F77_DUMMY_MAIN() { return 1; }
18816 #endif
18817 int
18818 main ()
18819 {
18820 uint16 testvar;
18821   ;
18822   return 0;
18823 }
18824 _ACEOF
18825 rm -f conftest.$ac_objext
18826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18827   (eval $ac_compile) 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); } &&
18831          { ac_try='test -s conftest.$ac_objext'
18832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833   (eval $ac_try) 2>&5
18834   ac_status=$?
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); }; }; then
18837   samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 cat conftest.$ac_ext >&5
18841 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
18842 fi
18843 rm -f conftest.$ac_objext conftest.$ac_ext
18844 fi
18845 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
18846 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
18847 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
18848
18849 cat >>confdefs.h <<\_ACEOF
18850 #define HAVE_UINT16_FROM_RPC_RPC_H 1
18851 _ACEOF
18852
18853 fi
18854
18855 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
18856 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18857 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860
18861 cat >conftest.$ac_ext <<_ACEOF
18862 #line $LINENO "configure"
18863 #include "confdefs.h"
18864 #include <sys/types.h>
18865 #if defined(HAVE_RPC_RPC_H)
18866 #include <rpc/rpc.h>
18867 #endif
18868 #ifdef F77_DUMMY_MAIN
18869 #  ifdef __cplusplus
18870      extern "C"
18871 #  endif
18872    int F77_DUMMY_MAIN() { return 1; }
18873 #endif
18874 int
18875 main ()
18876 {
18877 int32 testvar;
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 rm -f conftest.$ac_objext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18884   (eval $ac_compile) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); } &&
18888          { ac_try='test -s conftest.$ac_objext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 cat conftest.$ac_ext >&5
18898 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
18899 fi
18900 rm -f conftest.$ac_objext conftest.$ac_ext
18901 fi
18902 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
18903 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
18904 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
18905
18906 cat >>confdefs.h <<\_ACEOF
18907 #define HAVE_INT32_FROM_RPC_RPC_H 1
18908 _ACEOF
18909
18910 fi
18911
18912 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
18913 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18914 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917
18918 cat >conftest.$ac_ext <<_ACEOF
18919 #line $LINENO "configure"
18920 #include "confdefs.h"
18921 #include <sys/types.h>
18922 #if defined(HAVE_RPC_RPC_H)
18923 #include <rpc/rpc.h>
18924 #endif
18925 #ifdef F77_DUMMY_MAIN
18926 #  ifdef __cplusplus
18927      extern "C"
18928 #  endif
18929    int F77_DUMMY_MAIN() { return 1; }
18930 #endif
18931 int
18932 main ()
18933 {
18934 uint32 testvar;
18935   ;
18936   return 0;
18937 }
18938 _ACEOF
18939 rm -f conftest.$ac_objext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18941   (eval $ac_compile) 2>&5
18942   ac_status=$?
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); } &&
18945          { ac_try='test -s conftest.$ac_objext'
18946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947   (eval $ac_try) 2>&5
18948   ac_status=$?
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); }; }; then
18951   samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
18952 else
18953   echo "$as_me: failed program was:" >&5
18954 cat conftest.$ac_ext >&5
18955 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
18956 fi
18957 rm -f conftest.$ac_objext conftest.$ac_ext
18958 fi
18959 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
18960 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
18961 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
18962
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE_UINT32_FROM_RPC_RPC_H 1
18965 _ACEOF
18966
18967 fi
18968
18969
18970 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
18971 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
18972 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
18973   echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975
18976 cat >conftest.$ac_ext <<_ACEOF
18977 #line $LINENO "configure"
18978 #include "confdefs.h"
18979 #include <sys/types.h>
18980 #ifdef HAVE_SYS_SECURITY_H
18981 #include <sys/security.h>
18982 #include <prot.h>
18983 #endif  /* HAVE_SYS_SECURITY_H */
18984 #if defined(HAVE_RPC_RPC_H)
18985 #include <rpc/rpc.h>
18986 #endif
18987 #ifdef F77_DUMMY_MAIN
18988 #  ifdef __cplusplus
18989      extern "C"
18990 #  endif
18991    int F77_DUMMY_MAIN() { return 1; }
18992 #endif
18993 int
18994 main ()
18995 {
18996 int testvar;
18997   ;
18998   return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext
19002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19003   (eval $ac_compile) 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); } &&
19007          { ac_try='test -s conftest.$ac_objext'
19008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009   (eval $ac_try) 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); }; }; then
19013   samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 cat conftest.$ac_ext >&5
19017 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
19018 fi
19019 rm -f conftest.$ac_objext conftest.$ac_ext
19020 fi
19021 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
19022 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
19023 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
19024
19025 cat >>confdefs.h <<\_ACEOF
19026 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
19027 _ACEOF
19028
19029 fi
19030
19031 echo "$as_me:$LINENO: checking for test routines" >&5
19032 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
19033 if test "$cross_compiling" = yes; then
19034   { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
19035 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
19036 else
19037   cat >conftest.$ac_ext <<_ACEOF
19038 #line $LINENO "configure"
19039 #include "confdefs.h"
19040 #include "${srcdir-.}/tests/trivial.c"
19041 _ACEOF
19042 rm -f conftest$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044   (eval $ac_link) 2>&5
19045   ac_status=$?
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049   (eval $ac_try) 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); }; }; then
19053   echo "$as_me:$LINENO: result: yes" >&5
19054 echo "${ECHO_T}yes" >&6
19055 else
19056   echo "$as_me: program exited with status $ac_status" >&5
19057 echo "$as_me: failed program was:" >&5
19058 cat conftest.$ac_ext >&5
19059 ( exit $ac_status )
19060 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
19061 echo "$as_me: error: cant find test code. Aborting config" >&2;}
19062    { (exit 1); exit 1; }; }
19063 fi
19064 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19065 fi
19066
19067 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
19068 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
19069 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072
19073 if test "$cross_compiling" = yes; then
19074   samba_cv_HAVE_FTRUNCATE_EXTEND=cross
19075 else
19076   cat >conftest.$ac_ext <<_ACEOF
19077 #line $LINENO "configure"
19078 #include "confdefs.h"
19079 #include "${srcdir-.}/tests/ftruncate.c"
19080 _ACEOF
19081 rm -f conftest$ac_exeext
19082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19083   (eval $ac_link) 2>&5
19084   ac_status=$?
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088   (eval $ac_try) 2>&5
19089   ac_status=$?
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); }; }; then
19092   samba_cv_HAVE_FTRUNCATE_EXTEND=yes
19093 else
19094   echo "$as_me: program exited with status $ac_status" >&5
19095 echo "$as_me: failed program was:" >&5
19096 cat conftest.$ac_ext >&5
19097 ( exit $ac_status )
19098 samba_cv_HAVE_FTRUNCATE_EXTEND=no
19099 fi
19100 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19101 fi
19102 fi
19103 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
19104 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
19105 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
19106
19107 cat >>confdefs.h <<\_ACEOF
19108 #define HAVE_FTRUNCATE_EXTEND 1
19109 _ACEOF
19110
19111 fi
19112
19113 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
19114 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
19115 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
19116   echo $ECHO_N "(cached) $ECHO_C" >&6
19117 else
19118
19119 if test "$cross_compiling" = yes; then
19120   samba_cv_HAVE_WORKING_AF_LOCAL=cross
19121 else
19122   cat >conftest.$ac_ext <<_ACEOF
19123 #line $LINENO "configure"
19124 #include "confdefs.h"
19125 #include "${srcdir-.}/tests/unixsock.c"
19126 _ACEOF
19127 rm -f conftest$ac_exeext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19129   (eval $ac_link) 2>&5
19130   ac_status=$?
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134   (eval $ac_try) 2>&5
19135   ac_status=$?
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); }; }; then
19138   samba_cv_HAVE_WORKING_AF_LOCAL=yes
19139 else
19140   echo "$as_me: program exited with status $ac_status" >&5
19141 echo "$as_me: failed program was:" >&5
19142 cat conftest.$ac_ext >&5
19143 ( exit $ac_status )
19144 samba_cv_HAVE_WORKING_AF_LOCAL=no
19145 fi
19146 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19147 fi
19148 fi
19149 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
19150 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
19151 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
19152 then
19153
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE_WORKING_AF_LOCAL 1
19156 _ACEOF
19157
19158 fi
19159
19160 echo "$as_me:$LINENO: checking for broken getgroups" >&5
19161 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
19162 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165
19166 if test "$cross_compiling" = yes; then
19167   samba_cv_HAVE_BROKEN_GETGROUPS=cross
19168 else
19169   cat >conftest.$ac_ext <<_ACEOF
19170 #line $LINENO "configure"
19171 #include "confdefs.h"
19172 #include "${srcdir-.}/tests/getgroups.c"
19173 _ACEOF
19174 rm -f conftest$ac_exeext
19175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19176   (eval $ac_link) 2>&5
19177   ac_status=$?
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181   (eval $ac_try) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); }; }; then
19185   samba_cv_HAVE_BROKEN_GETGROUPS=yes
19186 else
19187   echo "$as_me: program exited with status $ac_status" >&5
19188 echo "$as_me: failed program was:" >&5
19189 cat conftest.$ac_ext >&5
19190 ( exit $ac_status )
19191 samba_cv_HAVE_BROKEN_GETGROUPS=no
19192 fi
19193 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19194 fi
19195 fi
19196 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
19197 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
19198 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
19199
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_BROKEN_GETGROUPS 1
19202 _ACEOF
19203
19204 fi
19205
19206 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19207 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
19208 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 else
19211
19212 SAVE_CPPFLAGS="$CPPFLAGS"
19213 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper"
19214 cat >conftest.$ac_ext <<_ACEOF
19215 #line $LINENO "configure"
19216 #include "confdefs.h"
19217
19218 #define REPLACE_GETPASS 1
19219 #define NO_CONFIG_H 1
19220 #define main dont_declare_main
19221 #include "${srcdir-.}/lib/getsmbpass.c"
19222 #undef main
19223
19224 #ifdef F77_DUMMY_MAIN
19225 #  ifdef __cplusplus
19226      extern "C"
19227 #  endif
19228    int F77_DUMMY_MAIN() { return 1; }
19229 #endif
19230 int
19231 main ()
19232 {
19233
19234   ;
19235   return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240   (eval $ac_compile) 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); } &&
19244          { ac_try='test -s conftest.$ac_objext'
19245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246   (eval $ac_try) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; }; then
19250   samba_cv_REPLACE_GETPASS=yes
19251 else
19252   echo "$as_me: failed program was:" >&5
19253 cat conftest.$ac_ext >&5
19254 samba_cv_REPLACE_GETPASS=no
19255 fi
19256 rm -f conftest.$ac_objext conftest.$ac_ext
19257 CPPFLAGS="$SAVE_CPPFLAGS"
19258
19259 fi
19260 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19261 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
19262 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define REPLACE_GETPASS 1
19266 _ACEOF
19267
19268 fi
19269
19270 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
19271 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
19272 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275
19276 if test "$cross_compiling" = yes; then
19277   samba_cv_REPLACE_INET_NTOA=cross
19278 else
19279   cat >conftest.$ac_ext <<_ACEOF
19280 #line $LINENO "configure"
19281 #include "confdefs.h"
19282
19283 #include <stdio.h>
19284 #include <sys/types.h>
19285 #include <netinet/in.h>
19286 #ifdef HAVE_ARPA_INET_H
19287 #include <arpa/inet.h>
19288 #endif
19289 main() { struct in_addr ip; ip.s_addr = 0x12345678;
19290 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
19291     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
19292 exit(1);}
19293 _ACEOF
19294 rm -f conftest$ac_exeext
19295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19296   (eval $ac_link) 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301   (eval $ac_try) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; }; then
19305   samba_cv_REPLACE_INET_NTOA=yes
19306 else
19307   echo "$as_me: program exited with status $ac_status" >&5
19308 echo "$as_me: failed program was:" >&5
19309 cat conftest.$ac_ext >&5
19310 ( exit $ac_status )
19311 samba_cv_REPLACE_INET_NTOA=no
19312 fi
19313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19314 fi
19315 fi
19316 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
19317 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
19318 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
19319
19320 cat >>confdefs.h <<\_ACEOF
19321 #define REPLACE_INET_NTOA 1
19322 _ACEOF
19323
19324 fi
19325
19326 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
19327 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
19328 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
19329   echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331
19332 if test "$cross_compiling" = yes; then
19333   samba_cv_HAVE_SECURE_MKSTEMP=cross
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 #line $LINENO "configure"
19337 #include "confdefs.h"
19338 #include <stdlib.h>
19339 #include <sys/types.h>
19340 #include <sys/stat.h>
19341 #include <unistd.h>
19342 main() {
19343   struct stat st;
19344   char tpl[20]="/tmp/test.XXXXXX";
19345   int fd = mkstemp(tpl);
19346   if (fd == -1) exit(1);
19347   unlink(tpl);
19348   if (fstat(fd, &st) != 0) exit(1);
19349   if ((st.st_mode & 0777) != 0600) exit(1);
19350   exit(0);
19351 }
19352 _ACEOF
19353 rm -f conftest$ac_exeext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19355   (eval $ac_link) 2>&5
19356   ac_status=$?
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360   (eval $ac_try) 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); }; }; then
19364   samba_cv_HAVE_SECURE_MKSTEMP=yes
19365 else
19366   echo "$as_me: program exited with status $ac_status" >&5
19367 echo "$as_me: failed program was:" >&5
19368 cat conftest.$ac_ext >&5
19369 ( exit $ac_status )
19370 samba_cv_HAVE_SECURE_MKSTEMP=no
19371 fi
19372 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19373 fi
19374 fi
19375 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
19376 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
19377 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
19378
19379 cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_SECURE_MKSTEMP 1
19381 _ACEOF
19382
19383 fi
19384
19385 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
19386 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
19387 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390
19391 if test "$cross_compiling" = yes; then
19392   samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
19393 else
19394   cat >conftest.$ac_ext <<_ACEOF
19395 #line $LINENO "configure"
19396 #include "confdefs.h"
19397 #include <unistd.h>
19398 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
19399 _ACEOF
19400 rm -f conftest$ac_exeext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19402   (eval $ac_link) 2>&5
19403   ac_status=$?
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407   (eval $ac_try) 2>&5
19408   ac_status=$?
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); }; }; then
19411   samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
19412 else
19413   echo "$as_me: program exited with status $ac_status" >&5
19414 echo "$as_me: failed program was:" >&5
19415 cat conftest.$ac_ext >&5
19416 ( exit $ac_status )
19417 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
19418 fi
19419 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19420 fi
19421 fi
19422 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
19423 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
19424 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
19425
19426 cat >>confdefs.h <<\_ACEOF
19427 #define SYSCONF_SC_NGROUPS_MAX 1
19428 _ACEOF
19429
19430 fi
19431
19432 echo "$as_me:$LINENO: checking for root" >&5
19433 echo $ECHO_N "checking for root... $ECHO_C" >&6
19434 if test "${samba_cv_HAVE_ROOT+set}" = set; then
19435   echo $ECHO_N "(cached) $ECHO_C" >&6
19436 else
19437
19438 if test "$cross_compiling" = yes; then
19439   samba_cv_HAVE_ROOT=cross
19440 else
19441   cat >conftest.$ac_ext <<_ACEOF
19442 #line $LINENO "configure"
19443 #include "confdefs.h"
19444 main() { exit(getuid() != 0); }
19445 _ACEOF
19446 rm -f conftest$ac_exeext
19447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19448   (eval $ac_link) 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453   (eval $ac_try) 2>&5
19454   ac_status=$?
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); }; }; then
19457   samba_cv_HAVE_ROOT=yes
19458 else
19459   echo "$as_me: program exited with status $ac_status" >&5
19460 echo "$as_me: failed program was:" >&5
19461 cat conftest.$ac_ext >&5
19462 ( exit $ac_status )
19463 samba_cv_HAVE_ROOT=no
19464 fi
19465 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19466 fi
19467 fi
19468 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
19469 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
19470 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
19471
19472 cat >>confdefs.h <<\_ACEOF
19473 #define HAVE_ROOT 1
19474 _ACEOF
19475
19476 else
19477     { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
19478 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
19479 fi
19480
19481 ##################
19482 # look for a method of finding the list of network interfaces
19483 iface=no;
19484 echo "$as_me:$LINENO: checking for iface AIX" >&5
19485 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
19486 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
19487   echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489
19490 if test "$cross_compiling" = yes; then
19491   samba_cv_HAVE_IFACE_AIX=cross
19492 else
19493   cat >conftest.$ac_ext <<_ACEOF
19494 #line $LINENO "configure"
19495 #include "confdefs.h"
19496
19497 #define HAVE_IFACE_AIX 1
19498 #define AUTOCONF_TEST 1
19499 #include "confdefs.h"
19500 #include "${srcdir-.}/lib/interfaces.c"
19501 _ACEOF
19502 rm -f conftest$ac_exeext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19504   (eval $ac_link) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509   (eval $ac_try) 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); }; }; then
19513   samba_cv_HAVE_IFACE_AIX=yes
19514 else
19515   echo "$as_me: program exited with status $ac_status" >&5
19516 echo "$as_me: failed program was:" >&5
19517 cat conftest.$ac_ext >&5
19518 ( exit $ac_status )
19519 samba_cv_HAVE_IFACE_AIX=no
19520 fi
19521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19522 fi
19523 fi
19524 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
19525 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
19526 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
19527     iface=yes;
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE_IFACE_AIX 1
19530 _ACEOF
19531
19532 fi
19533
19534 if test $iface = no; then
19535 echo "$as_me:$LINENO: checking for iface ifconf" >&5
19536 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
19537 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
19538   echo $ECHO_N "(cached) $ECHO_C" >&6
19539 else
19540
19541 if test "$cross_compiling" = yes; then
19542   samba_cv_HAVE_IFACE_IFCONF=cross
19543 else
19544   cat >conftest.$ac_ext <<_ACEOF
19545 #line $LINENO "configure"
19546 #include "confdefs.h"
19547
19548 #define HAVE_IFACE_IFCONF 1
19549 #define AUTOCONF_TEST 1
19550 #include "confdefs.h"
19551 #include "${srcdir-.}/lib/interfaces.c"
19552 _ACEOF
19553 rm -f conftest$ac_exeext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19555   (eval $ac_link) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; }; then
19564   samba_cv_HAVE_IFACE_IFCONF=yes
19565 else
19566   echo "$as_me: program exited with status $ac_status" >&5
19567 echo "$as_me: failed program was:" >&5
19568 cat conftest.$ac_ext >&5
19569 ( exit $ac_status )
19570 samba_cv_HAVE_IFACE_IFCONF=no
19571 fi
19572 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19573 fi
19574 fi
19575 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
19576 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
19577 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
19578     iface=yes;
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE_IFACE_IFCONF 1
19581 _ACEOF
19582
19583 fi
19584 fi
19585
19586 if test $iface = no; then
19587 echo "$as_me:$LINENO: checking for iface ifreq" >&5
19588 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
19589 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
19590   echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592
19593 if test "$cross_compiling" = yes; then
19594   samba_cv_HAVE_IFACE_IFREQ=cross
19595 else
19596   cat >conftest.$ac_ext <<_ACEOF
19597 #line $LINENO "configure"
19598 #include "confdefs.h"
19599
19600 #define HAVE_IFACE_IFREQ 1
19601 #define AUTOCONF_TEST 1
19602 #include "confdefs.h"
19603 #include "${srcdir-.}/lib/interfaces.c"
19604 _ACEOF
19605 rm -f conftest$ac_exeext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19607   (eval $ac_link) 2>&5
19608   ac_status=$?
19609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612   (eval $ac_try) 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; }; then
19616   samba_cv_HAVE_IFACE_IFREQ=yes
19617 else
19618   echo "$as_me: program exited with status $ac_status" >&5
19619 echo "$as_me: failed program was:" >&5
19620 cat conftest.$ac_ext >&5
19621 ( exit $ac_status )
19622 samba_cv_HAVE_IFACE_IFREQ=no
19623 fi
19624 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19625 fi
19626 fi
19627 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
19628 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
19629 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
19630     iface=yes;
19631 cat >>confdefs.h <<\_ACEOF
19632 #define HAVE_IFACE_IFREQ 1
19633 _ACEOF
19634
19635 fi
19636 fi
19637
19638
19639 ################################################
19640 # look for a method of setting the effective uid
19641 seteuid=no;
19642 if test $seteuid = no; then
19643 echo "$as_me:$LINENO: checking for setresuid" >&5
19644 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
19645 if test "${samba_cv_USE_SETRESUID+set}" = set; then
19646   echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648
19649 if test "$cross_compiling" = yes; then
19650   samba_cv_USE_SETRESUID=cross
19651 else
19652   cat >conftest.$ac_ext <<_ACEOF
19653 #line $LINENO "configure"
19654 #include "confdefs.h"
19655
19656 #define AUTOCONF_TEST 1
19657 #define USE_SETRESUID 1
19658 #include "confdefs.h"
19659 #include "${srcdir-.}/lib/util_sec.c"
19660 _ACEOF
19661 rm -f conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663   (eval $ac_link) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668   (eval $ac_try) 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }; }; then
19672   samba_cv_USE_SETRESUID=yes
19673 else
19674   echo "$as_me: program exited with status $ac_status" >&5
19675 echo "$as_me: failed program was:" >&5
19676 cat conftest.$ac_ext >&5
19677 ( exit $ac_status )
19678 samba_cv_USE_SETRESUID=no
19679 fi
19680 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19681 fi
19682 fi
19683 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
19684 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
19685 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
19686     seteuid=yes;
19687 cat >>confdefs.h <<\_ACEOF
19688 #define USE_SETRESUID 1
19689 _ACEOF
19690
19691 fi
19692 fi
19693
19694
19695 if test $seteuid = no; then
19696 echo "$as_me:$LINENO: checking for setreuid" >&5
19697 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
19698 if test "${samba_cv_USE_SETREUID+set}" = set; then
19699   echo $ECHO_N "(cached) $ECHO_C" >&6
19700 else
19701
19702 if test "$cross_compiling" = yes; then
19703   samba_cv_USE_SETREUID=cross
19704 else
19705   cat >conftest.$ac_ext <<_ACEOF
19706 #line $LINENO "configure"
19707 #include "confdefs.h"
19708
19709 #define AUTOCONF_TEST 1
19710 #define USE_SETREUID 1
19711 #include "confdefs.h"
19712 #include "${srcdir-.}/lib/util_sec.c"
19713 _ACEOF
19714 rm -f conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716   (eval $ac_link) 2>&5
19717   ac_status=$?
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721   (eval $ac_try) 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; }; then
19725   samba_cv_USE_SETREUID=yes
19726 else
19727   echo "$as_me: program exited with status $ac_status" >&5
19728 echo "$as_me: failed program was:" >&5
19729 cat conftest.$ac_ext >&5
19730 ( exit $ac_status )
19731 samba_cv_USE_SETREUID=no
19732 fi
19733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19734 fi
19735 fi
19736 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
19737 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
19738 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
19739     seteuid=yes;
19740 cat >>confdefs.h <<\_ACEOF
19741 #define USE_SETREUID 1
19742 _ACEOF
19743
19744 fi
19745 fi
19746
19747 if test $seteuid = no; then
19748 echo "$as_me:$LINENO: checking for seteuid" >&5
19749 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
19750 if test "${samba_cv_USE_SETEUID+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753
19754 if test "$cross_compiling" = yes; then
19755   samba_cv_USE_SETEUID=cross
19756 else
19757   cat >conftest.$ac_ext <<_ACEOF
19758 #line $LINENO "configure"
19759 #include "confdefs.h"
19760
19761 #define AUTOCONF_TEST 1
19762 #define USE_SETEUID 1
19763 #include "confdefs.h"
19764 #include "${srcdir-.}/lib/util_sec.c"
19765 _ACEOF
19766 rm -f conftest$ac_exeext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19768   (eval $ac_link) 2>&5
19769   ac_status=$?
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773   (eval $ac_try) 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); }; }; then
19777   samba_cv_USE_SETEUID=yes
19778 else
19779   echo "$as_me: program exited with status $ac_status" >&5
19780 echo "$as_me: failed program was:" >&5
19781 cat conftest.$ac_ext >&5
19782 ( exit $ac_status )
19783 samba_cv_USE_SETEUID=no
19784 fi
19785 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19786 fi
19787 fi
19788 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
19789 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
19790 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
19791     seteuid=yes;
19792 cat >>confdefs.h <<\_ACEOF
19793 #define USE_SETEUID 1
19794 _ACEOF
19795
19796 fi
19797 fi
19798
19799 if test $seteuid = no; then
19800 echo "$as_me:$LINENO: checking for setuidx" >&5
19801 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
19802 if test "${samba_cv_USE_SETUIDX+set}" = set; then
19803   echo $ECHO_N "(cached) $ECHO_C" >&6
19804 else
19805
19806 if test "$cross_compiling" = yes; then
19807   samba_cv_USE_SETUIDX=cross
19808 else
19809   cat >conftest.$ac_ext <<_ACEOF
19810 #line $LINENO "configure"
19811 #include "confdefs.h"
19812
19813 #define AUTOCONF_TEST 1
19814 #define USE_SETUIDX 1
19815 #include "confdefs.h"
19816 #include "${srcdir-.}/lib/util_sec.c"
19817 _ACEOF
19818 rm -f conftest$ac_exeext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19820   (eval $ac_link) 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825   (eval $ac_try) 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; }; then
19829   samba_cv_USE_SETUIDX=yes
19830 else
19831   echo "$as_me: program exited with status $ac_status" >&5
19832 echo "$as_me: failed program was:" >&5
19833 cat conftest.$ac_ext >&5
19834 ( exit $ac_status )
19835 samba_cv_USE_SETUIDX=no
19836 fi
19837 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19838 fi
19839 fi
19840 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
19841 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
19842 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
19843     seteuid=yes;
19844 cat >>confdefs.h <<\_ACEOF
19845 #define USE_SETUIDX 1
19846 _ACEOF
19847
19848 fi
19849 fi
19850
19851
19852 echo "$as_me:$LINENO: checking for working mmap" >&5
19853 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19854 if test "${samba_cv_HAVE_MMAP+set}" = set; then
19855   echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19857
19858 if test "$cross_compiling" = yes; then
19859   samba_cv_HAVE_MMAP=cross
19860 else
19861   cat >conftest.$ac_ext <<_ACEOF
19862 #line $LINENO "configure"
19863 #include "confdefs.h"
19864 #include "${srcdir-.}/tests/shared_mmap.c"
19865 _ACEOF
19866 rm -f conftest$ac_exeext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19868   (eval $ac_link) 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873   (eval $ac_try) 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; }; then
19877   samba_cv_HAVE_MMAP=yes
19878 else
19879   echo "$as_me: program exited with status $ac_status" >&5
19880 echo "$as_me: failed program was:" >&5
19881 cat conftest.$ac_ext >&5
19882 ( exit $ac_status )
19883 samba_cv_HAVE_MMAP=no
19884 fi
19885 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19886 fi
19887 fi
19888 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
19889 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
19890 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
19891
19892 cat >>confdefs.h <<\_ACEOF
19893 #define HAVE_MMAP 1
19894 _ACEOF
19895
19896 fi
19897
19898 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
19899 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
19900 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903
19904 if test "$cross_compiling" = yes; then
19905   samba_cv_FTRUNCATE_NEEDS_ROOT=cross
19906 else
19907   cat >conftest.$ac_ext <<_ACEOF
19908 #line $LINENO "configure"
19909 #include "confdefs.h"
19910 #include "${srcdir-.}/tests/ftruncroot.c"
19911 _ACEOF
19912 rm -f conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914   (eval $ac_link) 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919   (eval $ac_try) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); }; }; then
19923   samba_cv_FTRUNCATE_NEEDS_ROOT=yes
19924 else
19925   echo "$as_me: program exited with status $ac_status" >&5
19926 echo "$as_me: failed program was:" >&5
19927 cat conftest.$ac_ext >&5
19928 ( exit $ac_status )
19929 samba_cv_FTRUNCATE_NEEDS_ROOT=no
19930 fi
19931 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19932 fi
19933 fi
19934 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
19935 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
19936 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
19937
19938 cat >>confdefs.h <<\_ACEOF
19939 #define FTRUNCATE_NEEDS_ROOT 1
19940 _ACEOF
19941
19942 fi
19943
19944 echo "$as_me:$LINENO: checking for fcntl locking" >&5
19945 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
19946 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
19947   echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949
19950 if test "$cross_compiling" = yes; then
19951   samba_cv_HAVE_FCNTL_LOCK=cross
19952 else
19953   cat >conftest.$ac_ext <<_ACEOF
19954 #line $LINENO "configure"
19955 #include "confdefs.h"
19956 #include "${srcdir-.}/tests/fcntl_lock.c"
19957 _ACEOF
19958 rm -f conftest$ac_exeext
19959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19960   (eval $ac_link) 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965   (eval $ac_try) 2>&5
19966   ac_status=$?
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); }; }; then
19969   samba_cv_HAVE_FCNTL_LOCK=yes
19970 else
19971   echo "$as_me: program exited with status $ac_status" >&5
19972 echo "$as_me: failed program was:" >&5
19973 cat conftest.$ac_ext >&5
19974 ( exit $ac_status )
19975 samba_cv_HAVE_FCNTL_LOCK=no
19976 fi
19977 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19978 fi
19979 fi
19980 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
19981 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
19982 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
19983
19984 cat >>confdefs.h <<\_ACEOF
19985 #define HAVE_FCNTL_LOCK 1
19986 _ACEOF
19987
19988 fi
19989
19990 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
19991 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
19992 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995
19996 if test "$cross_compiling" = yes; then
19997   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
19998 else
19999   cat >conftest.$ac_ext <<_ACEOF
20000 #line $LINENO "configure"
20001 #include "confdefs.h"
20002 #include "${srcdir-.}/tests/fcntl_lock64.c"
20003 _ACEOF
20004 rm -f conftest$ac_exeext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006   (eval $ac_link) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011   (eval $ac_try) 2>&5
20012   ac_status=$?
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); }; }; then
20015   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
20016 else
20017   echo "$as_me: program exited with status $ac_status" >&5
20018 echo "$as_me: failed program was:" >&5
20019 cat conftest.$ac_ext >&5
20020 ( exit $ac_status )
20021 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
20022 fi
20023 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20024 fi
20025 fi
20026 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
20027 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
20028 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
20029
20030 cat >>confdefs.h <<\_ACEOF
20031 #define HAVE_BROKEN_FCNTL64_LOCKS 1
20032 _ACEOF
20033
20034
20035 else
20036
20037
20038   echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
20039 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
20040 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043
20044   if test "$cross_compiling" = yes; then
20045   samba_cv_HAVE_STRUCT_FLOCK64=cross
20046 else
20047   cat >conftest.$ac_ext <<_ACEOF
20048 #line $LINENO "configure"
20049 #include "confdefs.h"
20050
20051 #if defined(HAVE_UNISTD_H)
20052 #include <unistd.h>
20053 #endif
20054 #include <stdio.h>
20055 #include <stdlib.h>
20056
20057 #ifdef HAVE_FCNTL_H
20058 #include <fcntl.h>
20059 #endif
20060
20061 #ifdef HAVE_SYS_FCNTL_H
20062 #include <sys/fcntl.h>
20063 #endif
20064 main() { struct flock64 fl64;
20065 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
20066 exit(0);
20067 #else
20068 exit(1);
20069 #endif
20070 }
20071 _ACEOF
20072 rm -f conftest$ac_exeext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20074   (eval $ac_link) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; }; then
20083   samba_cv_HAVE_STRUCT_FLOCK64=yes
20084 else
20085   echo "$as_me: program exited with status $ac_status" >&5
20086 echo "$as_me: failed program was:" >&5
20087 cat conftest.$ac_ext >&5
20088 ( exit $ac_status )
20089 samba_cv_HAVE_STRUCT_FLOCK64=no
20090 fi
20091 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20092 fi
20093 fi
20094 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
20095 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
20096
20097   if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
20098
20099 cat >>confdefs.h <<\_ACEOF
20100 #define HAVE_STRUCT_FLOCK64 1
20101 _ACEOF
20102
20103   fi
20104 fi
20105
20106 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
20107 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
20108 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111
20112 cat >conftest.$ac_ext <<_ACEOF
20113 #line $LINENO "configure"
20114 #include "confdefs.h"
20115 #include <sys/types.h>
20116 #include <sys/stat.h>
20117 #include <unistd.h>
20118 #ifdef F77_DUMMY_MAIN
20119 #  ifdef __cplusplus
20120      extern "C"
20121 #  endif
20122    int F77_DUMMY_MAIN() { return 1; }
20123 #endif
20124 int
20125 main ()
20126 {
20127 struct stat st;  st.st_blocks = 0;
20128   ;
20129   return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest.$ac_objext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20134   (eval $ac_compile) 2>&5
20135   ac_status=$?
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); } &&
20138          { ac_try='test -s conftest.$ac_objext'
20139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140   (eval $ac_try) 2>&5
20141   ac_status=$?
20142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143   (exit $ac_status); }; }; then
20144   samba_cv_HAVE_STAT_ST_BLOCKS=yes
20145 else
20146   echo "$as_me: failed program was:" >&5
20147 cat conftest.$ac_ext >&5
20148 samba_cv_HAVE_STAT_ST_BLOCKS=no
20149 fi
20150 rm -f conftest.$ac_objext conftest.$ac_ext
20151 fi
20152 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
20153 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
20154 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
20155
20156 cat >>confdefs.h <<\_ACEOF
20157 #define HAVE_STAT_ST_BLOCKS 1
20158 _ACEOF
20159
20160 fi
20161
20162 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
20163 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
20164 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
20165   echo $ECHO_N "(cached) $ECHO_C" >&6
20166 else
20167
20168 cat >conftest.$ac_ext <<_ACEOF
20169 #line $LINENO "configure"
20170 #include "confdefs.h"
20171 #include <sys/types.h>
20172 #include <sys/stat.h>
20173 #include <unistd.h>
20174 #ifdef F77_DUMMY_MAIN
20175 #  ifdef __cplusplus
20176      extern "C"
20177 #  endif
20178    int F77_DUMMY_MAIN() { return 1; }
20179 #endif
20180 int
20181 main ()
20182 {
20183 struct stat st;  st.st_blksize = 0;
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
20188 rm -f conftest.$ac_objext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190   (eval $ac_compile) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); } &&
20194          { ac_try='test -s conftest.$ac_objext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   samba_cv_HAVE_STAT_ST_BLKSIZE=yes
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 cat conftest.$ac_ext >&5
20204 samba_cv_HAVE_STAT_ST_BLKSIZE=no
20205 fi
20206 rm -f conftest.$ac_objext conftest.$ac_ext
20207 fi
20208 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
20209 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
20210 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
20211
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_STAT_ST_BLKSIZE 1
20214 _ACEOF
20215
20216 fi
20217
20218 case "$host_os" in
20219 *linux*)
20220 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20221 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
20222 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20223   echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225
20226 cat >conftest.$ac_ext <<_ACEOF
20227 #line $LINENO "configure"
20228 #include "confdefs.h"
20229
20230 #ifdef HAVE_SYS_VFS_H
20231 #include <sys/vfs.h>
20232 #endif
20233 #ifdef HAVE_SYS_CAPABILITY_H
20234 #include <sys/capability.h>
20235 #endif
20236
20237 #ifdef F77_DUMMY_MAIN
20238 #  ifdef __cplusplus
20239      extern "C"
20240 #  endif
20241    int F77_DUMMY_MAIN() { return 1; }
20242 #endif
20243 int
20244 main ()
20245 {
20246 int i;
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253   (eval $ac_compile) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } &&
20257          { ac_try='test -s conftest.$ac_objext'
20258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259   (eval $ac_try) 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); }; }; then
20263   samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
20264 else
20265   echo "$as_me: failed program was:" >&5
20266 cat conftest.$ac_ext >&5
20267 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
20268 fi
20269 rm -f conftest.$ac_objext conftest.$ac_ext
20270 fi
20271 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20272 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
20273 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
20274
20275 cat >>confdefs.h <<\_ACEOF
20276 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20277 _ACEOF
20278
20279 fi
20280 ;;
20281 esac
20282
20283 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
20284 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
20285 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
20286   echo $ECHO_N "(cached) $ECHO_C" >&6
20287 else
20288
20289 cat >conftest.$ac_ext <<_ACEOF
20290 #line $LINENO "configure"
20291 #include "confdefs.h"
20292 #include <sys/acl.h>
20293 #if defined(HAVE_RPCSVC_NIS_H)
20294 #include <rpcsvc/nis.h>
20295 #endif
20296 #ifdef F77_DUMMY_MAIN
20297 #  ifdef __cplusplus
20298      extern "C"
20299 #  endif
20300    int F77_DUMMY_MAIN() { return 1; }
20301 #endif
20302 int
20303 main ()
20304 {
20305 int i;
20306   ;
20307   return 0;
20308 }
20309 _ACEOF
20310 rm -f conftest.$ac_objext
20311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20312   (eval $ac_compile) 2>&5
20313   ac_status=$?
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); } &&
20316          { ac_try='test -s conftest.$ac_objext'
20317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318   (eval $ac_try) 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; }; then
20322   samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
20323 else
20324   echo "$as_me: failed program was:" >&5
20325 cat conftest.$ac_ext >&5
20326 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
20327 fi
20328 rm -f conftest.$ac_objext conftest.$ac_ext
20329 fi
20330 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
20331 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
20332 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
20333
20334 cat >>confdefs.h <<\_ACEOF
20335 #define BROKEN_NISPLUS_INCLUDE_FILES 1
20336 _ACEOF
20337
20338 fi
20339
20340
20341 #################################################
20342 # check for smbwrapper support
20343 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
20344 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
20345
20346 # Check whether --with-smbwrapper or --without-smbwrapper was given.
20347 if test "${with_smbwrapper+set}" = set; then
20348   withval="$with_smbwrapper"
20349    case "$withval" in
20350   yes)
20351     echo "$as_me:$LINENO: result: yes" >&5
20352 echo "${ECHO_T}yes" >&6
20353
20354 cat >>confdefs.h <<\_ACEOF
20355 #define WITH_SMBWRAPPER 1
20356 _ACEOF
20357
20358         WRAPPROG="bin/smbsh\$(EXEEXT)"
20359         WRAP="bin/smbwrapper.$SHLIBEXT"
20360
20361         if test x$ATTEMPT_WRAP32_BUILD = x; then
20362                 WRAP32=""
20363         else
20364                         WRAP32=bin/smbwrapper.32.$SHLIBEXT
20365         fi
20366
20367 # Conditions under which smbwrapper should not be built.
20368
20369         if test x$PICFLAG = x; then
20370            echo No support for PIC code - disabling smbwrapper and smbsh
20371            WRAPPROG=""
20372            WRAP=""
20373            WRAP32=""
20374         elif test x$ac_cv_func_syscall = xno; then
20375            echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
20376 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
20377            WRAPPROG=""
20378            WRAP=""
20379            WRAP32=""
20380         fi
20381         EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
20382         SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
20383     ;;
20384   *)
20385     echo "$as_me:$LINENO: result: no" >&5
20386 echo "${ECHO_T}no" >&6
20387     ;;
20388   esac
20389 else
20390   echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6
20392
20393 fi;
20394
20395 #################################################
20396 # check for AFS clear-text auth support
20397 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
20398 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
20399
20400 # Check whether --with-afs or --without-afs was given.
20401 if test "${with_afs+set}" = set; then
20402   withval="$with_afs"
20403    case "$withval" in
20404   yes)
20405     echo "$as_me:$LINENO: result: yes" >&5
20406 echo "${ECHO_T}yes" >&6
20407
20408 cat >>confdefs.h <<\_ACEOF
20409 #define WITH_AFS 1
20410 _ACEOF
20411
20412     ;;
20413   *)
20414     echo "$as_me:$LINENO: result: no" >&5
20415 echo "${ECHO_T}no" >&6
20416     ;;
20417   esac
20418 else
20419   echo "$as_me:$LINENO: result: no" >&5
20420 echo "${ECHO_T}no" >&6
20421
20422 fi;
20423
20424
20425 #################################################
20426 # check for the DFS clear-text auth system
20427 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
20428 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
20429
20430 # Check whether --with-dfs or --without-dfs was given.
20431 if test "${with_dfs+set}" = set; then
20432   withval="$with_dfs"
20433    case "$withval" in
20434   yes)
20435     echo "$as_me:$LINENO: result: yes" >&5
20436 echo "${ECHO_T}yes" >&6
20437
20438 cat >>confdefs.h <<\_ACEOF
20439 #define WITH_DFS 1
20440 _ACEOF
20441
20442     ;;
20443   *)
20444     echo "$as_me:$LINENO: result: no" >&5
20445 echo "${ECHO_T}no" >&6
20446     ;;
20447   esac
20448 else
20449   echo "$as_me:$LINENO: result: no" >&5
20450 echo "${ECHO_T}no" >&6
20451
20452 fi;
20453
20454 #################################################
20455 # active directory support
20456
20457 with_ads_support=yes
20458 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
20459 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
20460
20461
20462 # Check whether --with-ads or --without-ads was given.
20463 if test "${with_ads+set}" = set; then
20464   withval="$with_ads"
20465    case "$withval" in
20466     no)
20467         with_ads_support=no
20468         ;;
20469   esac
20470 fi;
20471
20472 if test x"$with_ads_support" = x"yes"; then
20473
20474 cat >>confdefs.h <<\_ACEOF
20475 #define WITH_ADS 1
20476 _ACEOF
20477
20478 fi
20479
20480 echo "$as_me:$LINENO: result: $with_ads_support" >&5
20481 echo "${ECHO_T}$with_ads_support" >&6
20482
20483 FOUND_KRB5=no
20484 if test x"$with_ads_support" = x"yes"; then
20485
20486   #################################################
20487   # check for location of Kerberos 5 install
20488   echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
20489 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
20490
20491 # Check whether --with-krb5 or --without-krb5 was given.
20492 if test "${with_krb5+set}" = set; then
20493   withval="$with_krb5"
20494    case "$withval" in
20495     no)
20496       echo "$as_me:$LINENO: result: no" >&5
20497 echo "${ECHO_T}no" >&6
20498       ;;
20499     *)
20500       echo "$as_me:$LINENO: result: yes" >&5
20501 echo "${ECHO_T}yes" >&6
20502       LIBS="$LIBS -lkrb5"
20503       CFLAGS="$CFLAGS -I$withval/include"
20504       CPPFLAGS="$CPPFLAGS -I$withval/include"
20505       LDFLAGS="$LDFLAGS -L$withval/lib"
20506       FOUND_KRB5=yes
20507       ;;
20508     esac
20509 else
20510   echo "$as_me:$LINENO: result: no" >&5
20511 echo "${ECHO_T}no" >&6
20512
20513 fi;
20514
20515
20516 if test x$FOUND_KRB5 = x"no"; then
20517 #################################################
20518 # see if this box has the SuSE location for the heimdal kerberos implementation
20519 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
20520 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
20521 if test -d /usr/include/heimdal; then
20522     CFLAGS="$CFLAGS -I/usr/include/heimdal"
20523     CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
20524     echo "$as_me:$LINENO: result: yes" >&5
20525 echo "${ECHO_T}yes" >&6
20526 else
20527     echo "$as_me:$LINENO: result: no" >&5
20528 echo "${ECHO_T}no" >&6
20529 fi
20530 fi
20531
20532
20533 if test x$FOUND_KRB5 = x"no"; then
20534 #################################################
20535 # see if this box has the RedHat location for kerberos
20536 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
20537 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
20538 if test -d /usr/kerberos; then
20539     LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
20540     CFLAGS="$CFLAGS -I/usr/kerberos/include"
20541     CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
20542     echo "$as_me:$LINENO: result: yes" >&5
20543 echo "${ECHO_T}yes" >&6
20544 else
20545     echo "$as_me:$LINENO: result: no" >&5
20546 echo "${ECHO_T}no" >&6
20547 fi
20548 fi
20549
20550
20551   # now check for krb5.h. Some systems have the libraries without the headers!
20552   # note that this check is done here to allow for different kerberos
20553   # include paths
20554
20555 for ac_header in krb5.h
20556 do
20557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20559   echo "$as_me:$LINENO: checking for $ac_header" >&5
20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 fi
20564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20566 else
20567   # Is the header compilable?
20568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20570 cat >conftest.$ac_ext <<_ACEOF
20571 #line $LINENO "configure"
20572 #include "confdefs.h"
20573 $ac_includes_default
20574 #include <$ac_header>
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578   (eval $ac_compile) 2>&5
20579   ac_status=$?
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } &&
20582          { ac_try='test -s conftest.$ac_objext'
20583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584   (eval $ac_try) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; }; then
20588   ac_header_compiler=yes
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 cat conftest.$ac_ext >&5
20592 ac_header_compiler=no
20593 fi
20594 rm -f conftest.$ac_objext conftest.$ac_ext
20595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20596 echo "${ECHO_T}$ac_header_compiler" >&6
20597
20598 # Is the header present?
20599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20601 cat >conftest.$ac_ext <<_ACEOF
20602 #line $LINENO "configure"
20603 #include "confdefs.h"
20604 #include <$ac_header>
20605 _ACEOF
20606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20607   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20608   ac_status=$?
20609   egrep -v '^ *\+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } >/dev/null; then
20614   if test -s conftest.err; then
20615     ac_cpp_err=$ac_c_preproc_warn_flag
20616   else
20617     ac_cpp_err=
20618   fi
20619 else
20620   ac_cpp_err=yes
20621 fi
20622 if test -z "$ac_cpp_err"; then
20623   ac_header_preproc=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626   cat conftest.$ac_ext >&5
20627   ac_header_preproc=no
20628 fi
20629 rm -f conftest.err conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20631 echo "${ECHO_T}$ac_header_preproc" >&6
20632
20633 # So?  What about this header?
20634 case $ac_header_compiler:$ac_header_preproc in
20635   yes:no )
20636     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20640   no:yes )
20641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20643     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20647 esac
20648 echo "$as_me:$LINENO: checking for $ac_header" >&5
20649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20651   echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653   eval "$as_ac_Header=$ac_header_preproc"
20654 fi
20655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20657
20658 fi
20659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20660   cat >>confdefs.h <<_ACEOF
20661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20662 _ACEOF
20663
20664 fi
20665
20666 done
20667
20668
20669   # now check for gssapi headers.  This is also done here to allow for
20670   # different kerberos include paths
20671
20672
20673 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
20674 do
20675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20677   echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 fi
20682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20684 else
20685   # Is the header compilable?
20686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20689 #line $LINENO "configure"
20690 #include "confdefs.h"
20691 $ac_includes_default
20692 #include <$ac_header>
20693 _ACEOF
20694 rm -f conftest.$ac_objext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20696   (eval $ac_compile) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } &&
20700          { ac_try='test -s conftest.$ac_objext'
20701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702   (eval $ac_try) 2>&5
20703   ac_status=$?
20704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); }; }; then
20706   ac_header_compiler=yes
20707 else
20708   echo "$as_me: failed program was:" >&5
20709 cat conftest.$ac_ext >&5
20710 ac_header_compiler=no
20711 fi
20712 rm -f conftest.$ac_objext conftest.$ac_ext
20713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20714 echo "${ECHO_T}$ac_header_compiler" >&6
20715
20716 # Is the header present?
20717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20719 cat >conftest.$ac_ext <<_ACEOF
20720 #line $LINENO "configure"
20721 #include "confdefs.h"
20722 #include <$ac_header>
20723 _ACEOF
20724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20726   ac_status=$?
20727   egrep -v '^ *\+' conftest.er1 >conftest.err
20728   rm -f conftest.er1
20729   cat conftest.err >&5
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); } >/dev/null; then
20732   if test -s conftest.err; then
20733     ac_cpp_err=$ac_c_preproc_warn_flag
20734   else
20735     ac_cpp_err=
20736   fi
20737 else
20738   ac_cpp_err=yes
20739 fi
20740 if test -z "$ac_cpp_err"; then
20741   ac_header_preproc=yes
20742 else
20743   echo "$as_me: failed program was:" >&5
20744   cat conftest.$ac_ext >&5
20745   ac_header_preproc=no
20746 fi
20747 rm -f conftest.err conftest.$ac_ext
20748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20749 echo "${ECHO_T}$ac_header_preproc" >&6
20750
20751 # So?  What about this header?
20752 case $ac_header_compiler:$ac_header_preproc in
20753   yes:no )
20754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20758   no:yes )
20759     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20761     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20765 esac
20766 echo "$as_me:$LINENO: checking for $ac_header" >&5
20767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20769   echo $ECHO_N "(cached) $ECHO_C" >&6
20770 else
20771   eval "$as_ac_Header=$ac_header_preproc"
20772 fi
20773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20775
20776 fi
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778   cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20780 _ACEOF
20781
20782 fi
20783
20784 done
20785
20786
20787   ##################################################################
20788   # we might need the k5crypto and com_err libraries on some systems
20789   echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
20790 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
20791 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
20792   echo $ECHO_N "(cached) $ECHO_C" >&6
20793 else
20794   ac_check_lib_save_LIBS=$LIBS
20795 LIBS="-lcom_err  $LIBS"
20796 cat >conftest.$ac_ext <<_ACEOF
20797 #line $LINENO "configure"
20798 #include "confdefs.h"
20799
20800 /* Override any gcc2 internal prototype to avoid an error.  */
20801 #ifdef __cplusplus
20802 extern "C"
20803 #endif
20804 /* We use char because int might match the return type of a gcc2
20805    builtin and then its argument prototype would still apply.  */
20806 char _et_list ();
20807 #ifdef F77_DUMMY_MAIN
20808 #  ifdef __cplusplus
20809      extern "C"
20810 #  endif
20811    int F77_DUMMY_MAIN() { return 1; }
20812 #endif
20813 int
20814 main ()
20815 {
20816 _et_list ();
20817   ;
20818   return 0;
20819 }
20820 _ACEOF
20821 rm -f conftest.$ac_objext conftest$ac_exeext
20822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20823   (eval $ac_link) 2>&5
20824   ac_status=$?
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); } &&
20827          { ac_try='test -s conftest$ac_exeext'
20828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829   (eval $ac_try) 2>&5
20830   ac_status=$?
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); }; }; then
20833   ac_cv_lib_com_err__et_list=yes
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 cat conftest.$ac_ext >&5
20837 ac_cv_lib_com_err__et_list=no
20838 fi
20839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20841 fi
20842 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
20843 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
20844 if test $ac_cv_lib_com_err__et_list = yes; then
20845   LIBS="$LIBS -lcom_err"
20846 fi
20847
20848   echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
20849 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
20850 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
20851   echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853   ac_check_lib_save_LIBS=$LIBS
20854 LIBS="-lk5crypto  $LIBS"
20855 cat >conftest.$ac_ext <<_ACEOF
20856 #line $LINENO "configure"
20857 #include "confdefs.h"
20858
20859 /* Override any gcc2 internal prototype to avoid an error.  */
20860 #ifdef __cplusplus
20861 extern "C"
20862 #endif
20863 /* We use char because int might match the return type of a gcc2
20864    builtin and then its argument prototype would still apply.  */
20865 char krb5_encrypt_data ();
20866 #ifdef F77_DUMMY_MAIN
20867 #  ifdef __cplusplus
20868      extern "C"
20869 #  endif
20870    int F77_DUMMY_MAIN() { return 1; }
20871 #endif
20872 int
20873 main ()
20874 {
20875 krb5_encrypt_data ();
20876   ;
20877   return 0;
20878 }
20879 _ACEOF
20880 rm -f conftest.$ac_objext conftest$ac_exeext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20882   (eval $ac_link) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -s conftest$ac_exeext'
20887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888   (eval $ac_try) 2>&5
20889   ac_status=$?
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); }; }; then
20892   ac_cv_lib_k5crypto_krb5_encrypt_data=yes
20893 else
20894   echo "$as_me: failed program was:" >&5
20895 cat conftest.$ac_ext >&5
20896 ac_cv_lib_k5crypto_krb5_encrypt_data=no
20897 fi
20898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20900 fi
20901 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
20902 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
20903 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
20904   LIBS="$LIBS -lk5crypto"
20905 fi
20906
20907
20908   ########################################################
20909   # now see if we can find the krb5 libs in standard paths
20910   # or as specified above
20911   echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
20912 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
20913 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916   ac_check_lib_save_LIBS=$LIBS
20917 LIBS="-lkrb5  $LIBS"
20918 cat >conftest.$ac_ext <<_ACEOF
20919 #line $LINENO "configure"
20920 #include "confdefs.h"
20921
20922 /* Override any gcc2 internal prototype to avoid an error.  */
20923 #ifdef __cplusplus
20924 extern "C"
20925 #endif
20926 /* We use char because int might match the return type of a gcc2
20927    builtin and then its argument prototype would still apply.  */
20928 char krb5_mk_req_extended ();
20929 #ifdef F77_DUMMY_MAIN
20930 #  ifdef __cplusplus
20931      extern "C"
20932 #  endif
20933    int F77_DUMMY_MAIN() { return 1; }
20934 #endif
20935 int
20936 main ()
20937 {
20938 krb5_mk_req_extended ();
20939   ;
20940   return 0;
20941 }
20942 _ACEOF
20943 rm -f conftest.$ac_objext conftest$ac_exeext
20944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20945   (eval $ac_link) 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); } &&
20949          { ac_try='test -s conftest$ac_exeext'
20950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951   (eval $ac_try) 2>&5
20952   ac_status=$?
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); }; }; then
20955   ac_cv_lib_krb5_krb5_mk_req_extended=yes
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 cat conftest.$ac_ext >&5
20959 ac_cv_lib_krb5_krb5_mk_req_extended=no
20960 fi
20961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20963 fi
20964 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
20965 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
20966 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
20967   LIBS="$LIBS -lkrb5";
20968
20969 cat >>confdefs.h <<\_ACEOF
20970 #define HAVE_KRB5 1
20971 _ACEOF
20972
20973 fi
20974
20975
20976   ########################################################
20977   # now see if we can find the gssapi libs in standard paths
20978   echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
20979 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
20980 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 else
20983   ac_check_lib_save_LIBS=$LIBS
20984 LIBS="-lgssapi_krb5  $LIBS"
20985 cat >conftest.$ac_ext <<_ACEOF
20986 #line $LINENO "configure"
20987 #include "confdefs.h"
20988
20989 /* Override any gcc2 internal prototype to avoid an error.  */
20990 #ifdef __cplusplus
20991 extern "C"
20992 #endif
20993 /* We use char because int might match the return type of a gcc2
20994    builtin and then its argument prototype would still apply.  */
20995 char gss_display_status ();
20996 #ifdef F77_DUMMY_MAIN
20997 #  ifdef __cplusplus
20998      extern "C"
20999 #  endif
21000    int F77_DUMMY_MAIN() { return 1; }
21001 #endif
21002 int
21003 main ()
21004 {
21005 gss_display_status ();
21006   ;
21007   return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21012   (eval $ac_link) 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); } &&
21016          { ac_try='test -s conftest$ac_exeext'
21017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; }; then
21022   ac_cv_lib_gssapi_krb5_gss_display_status=yes
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 cat conftest.$ac_ext >&5
21026 ac_cv_lib_gssapi_krb5_gss_display_status=no
21027 fi
21028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21029 LIBS=$ac_check_lib_save_LIBS
21030 fi
21031 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
21032 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
21033 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
21034   LIBS="$LIBS -lgssapi_krb5";
21035
21036 cat >>confdefs.h <<\_ACEOF
21037 #define HAVE_GSSAPI 1
21038 _ACEOF
21039
21040 fi
21041
21042 fi
21043
21044 ########################################################
21045 # Compile with LDAP support?
21046
21047 with_ldap_support=yes
21048 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
21049 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
21050
21051
21052 # Check whether --with-ldap or --without-ldap was given.
21053 if test "${with_ldap+set}" = set; then
21054   withval="$with_ldap"
21055    case "$withval" in
21056     no)
21057         with_ldap_support=no
21058         ;;
21059   esac
21060 fi;
21061
21062 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
21063 echo "${ECHO_T}$with_ldap_support" >&6
21064
21065 if test x"$with_ldap_support" = x"yes"; then
21066
21067   ##################################################################
21068   # we might need the lber lib on some systems. To avoid link errors
21069   # this test must be before the libldap test
21070   echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
21071 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
21072 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
21073   echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075   ac_check_lib_save_LIBS=$LIBS
21076 LIBS="-llber  $LIBS"
21077 cat >conftest.$ac_ext <<_ACEOF
21078 #line $LINENO "configure"
21079 #include "confdefs.h"
21080
21081 /* Override any gcc2 internal prototype to avoid an error.  */
21082 #ifdef __cplusplus
21083 extern "C"
21084 #endif
21085 /* We use char because int might match the return type of a gcc2
21086    builtin and then its argument prototype would still apply.  */
21087 char ber_scanf ();
21088 #ifdef F77_DUMMY_MAIN
21089 #  ifdef __cplusplus
21090      extern "C"
21091 #  endif
21092    int F77_DUMMY_MAIN() { return 1; }
21093 #endif
21094 int
21095 main ()
21096 {
21097 ber_scanf ();
21098   ;
21099   return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest.$ac_objext conftest$ac_exeext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104   (eval $ac_link) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } &&
21108          { ac_try='test -s conftest$ac_exeext'
21109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110   (eval $ac_try) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); }; }; then
21114   ac_cv_lib_lber_ber_scanf=yes
21115 else
21116   echo "$as_me: failed program was:" >&5
21117 cat conftest.$ac_ext >&5
21118 ac_cv_lib_lber_ber_scanf=no
21119 fi
21120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21122 fi
21123 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
21124 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
21125 if test $ac_cv_lib_lber_ber_scanf = yes; then
21126   LIBS="$LIBS -llber"
21127 fi
21128
21129
21130   ########################################################
21131   # now see if we can find the ldap libs in standard paths
21132   if test x$have_ldap != xyes; then
21133   echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
21134 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
21135 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138   ac_check_lib_save_LIBS=$LIBS
21139 LIBS="-lldap  $LIBS"
21140 cat >conftest.$ac_ext <<_ACEOF
21141 #line $LINENO "configure"
21142 #include "confdefs.h"
21143
21144 /* Override any gcc2 internal prototype to avoid an error.  */
21145 #ifdef __cplusplus
21146 extern "C"
21147 #endif
21148 /* We use char because int might match the return type of a gcc2
21149    builtin and then its argument prototype would still apply.  */
21150 char ldap_domain2hostlist ();
21151 #ifdef F77_DUMMY_MAIN
21152 #  ifdef __cplusplus
21153      extern "C"
21154 #  endif
21155    int F77_DUMMY_MAIN() { return 1; }
21156 #endif
21157 int
21158 main ()
21159 {
21160 ldap_domain2hostlist ();
21161   ;
21162   return 0;
21163 }
21164 _ACEOF
21165 rm -f conftest.$ac_objext conftest$ac_exeext
21166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21167   (eval $ac_link) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } &&
21171          { ac_try='test -s conftest$ac_exeext'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_cv_lib_ldap_ldap_domain2hostlist=yes
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 cat conftest.$ac_ext >&5
21181 ac_cv_lib_ldap_ldap_domain2hostlist=no
21182 fi
21183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21184 LIBS=$ac_check_lib_save_LIBS
21185 fi
21186 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
21187 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
21188 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
21189   LIBS="$LIBS -lldap";
21190
21191 cat >>confdefs.h <<\_ACEOF
21192 #define HAVE_LDAP 1
21193 _ACEOF
21194
21195 fi
21196
21197
21198         ########################################################
21199         # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
21200         # Check found in pam_ldap 145.
21201
21202 for ac_func in ldap_set_rebind_proc
21203 do
21204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21205 echo "$as_me:$LINENO: checking for $ac_func" >&5
21206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21207 if eval "test \"\${$as_ac_var+set}\" = set"; then
21208   echo $ECHO_N "(cached) $ECHO_C" >&6
21209 else
21210   cat >conftest.$ac_ext <<_ACEOF
21211 #line $LINENO "configure"
21212 #include "confdefs.h"
21213 /* System header to define __stub macros and hopefully few prototypes,
21214     which can conflict with char $ac_func (); below.  */
21215 #include <assert.h>
21216 /* Override any gcc2 internal prototype to avoid an error.  */
21217 #ifdef __cplusplus
21218 extern "C"
21219 #endif
21220 /* We use char because int might match the return type of a gcc2
21221    builtin and then its argument prototype would still apply.  */
21222 char $ac_func ();
21223 char (*f) ();
21224
21225 #ifdef F77_DUMMY_MAIN
21226 #  ifdef __cplusplus
21227      extern "C"
21228 #  endif
21229    int F77_DUMMY_MAIN() { return 1; }
21230 #endif
21231 int
21232 main ()
21233 {
21234 /* The GNU C library defines this for functions which it implements
21235     to always fail with ENOSYS.  Some functions are actually named
21236     something starting with __ and the normal name is an alias.  */
21237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21238 choke me
21239 #else
21240 f = $ac_func;
21241 #endif
21242
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext conftest$ac_exeext
21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249   (eval $ac_link) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } &&
21253          { ac_try='test -s conftest$ac_exeext'
21254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255   (eval $ac_try) 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; }; then
21259   eval "$as_ac_var=yes"
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 cat conftest.$ac_ext >&5
21263 eval "$as_ac_var=no"
21264 fi
21265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21266 fi
21267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21269 if test `eval echo '${'$as_ac_var'}'` = yes; then
21270   cat >>confdefs.h <<_ACEOF
21271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21272 _ACEOF
21273
21274 fi
21275 done
21276
21277         echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
21278 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
21279 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
21280   echo $ECHO_N "(cached) $ECHO_C" >&6
21281 else
21282
21283         cat >conftest.$ac_ext <<_ACEOF
21284 #line $LINENO "configure"
21285 #include "confdefs.h"
21286
21287         #include <lber.h>
21288         #include <ldap.h>
21289 #ifdef F77_DUMMY_MAIN
21290 #  ifdef __cplusplus
21291      extern "C"
21292 #  endif
21293    int F77_DUMMY_MAIN() { return 1; }
21294 #endif
21295 int
21296 main ()
21297 {
21298 ldap_set_rebind_proc(0, 0, 0);
21299   ;
21300   return 0;
21301 }
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305   (eval $ac_compile) 2>&5
21306   ac_status=$?
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); } &&
21309          { ac_try='test -s conftest.$ac_objext'
21310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311   (eval $ac_try) 2>&5
21312   ac_status=$?
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); }; }; then
21315   pam_ldap_cv_ldap_set_rebind_proc=3
21316 else
21317   echo "$as_me: failed program was:" >&5
21318 cat conftest.$ac_ext >&5
21319 pam_ldap_cv_ldap_set_rebind_proc=2
21320 fi
21321 rm -f conftest.$ac_objext conftest.$ac_ext
21322 fi
21323 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
21324 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
21325
21326 cat >>confdefs.h <<_ACEOF
21327 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
21328 _ACEOF
21329
21330   fi
21331 fi
21332
21333 ########################################################
21334 # Compile with MySQL support?
21335
21336 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
21337 if test "${with_mysql_prefix+set}" = set; then
21338   withval="$with_mysql_prefix"
21339   mysql_prefix="$withval"
21340 else
21341   mysql_prefix=""
21342 fi;
21343
21344 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
21345 if test "${with_mysql_exec_prefix+set}" = set; then
21346   withval="$with_mysql_exec_prefix"
21347   mysql_exec_prefix="$withval"
21348 else
21349   mysql_exec_prefix=""
21350 fi;
21351 # Check whether --enable-mysqltest or --disable-mysqltest was given.
21352 if test "${enable_mysqltest+set}" = set; then
21353   enableval="$enable_mysqltest"
21354
21355 else
21356   enable_mysqltest=yes
21357 fi;
21358
21359   if test x$mysql_exec_prefix != x ; then
21360      mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
21361      if test x${MYSQL_CONFIG+set} != xset ; then
21362         MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
21363      fi
21364   fi
21365   if test x$mysql_prefix != x ; then
21366      mysql_args="$mysql_args --prefix=$mysql_prefix"
21367      if test x${MYSQL_CONFIG+set} != xset ; then
21368         MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
21369      fi
21370   fi
21371
21372
21373   # Extract the first word of "mysql_config", so it can be a program name with args.
21374 set dummy mysql_config; ac_word=$2
21375 echo "$as_me:$LINENO: checking for $ac_word" >&5
21376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21377 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380   case $MYSQL_CONFIG in
21381   [\\/]* | ?:[\\/]*)
21382   ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
21383   ;;
21384   *)
21385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21386 for as_dir in $PATH
21387 do
21388   IFS=$as_save_IFS
21389   test -z "$as_dir" && as_dir=.
21390   for ac_exec_ext in '' $ac_executable_extensions; do
21391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21392     ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21394     break 2
21395   fi
21396 done
21397 done
21398
21399   test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
21400   ;;
21401 esac
21402 fi
21403 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
21404
21405 if test -n "$MYSQL_CONFIG"; then
21406   echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
21407 echo "${ECHO_T}$MYSQL_CONFIG" >&6
21408 else
21409   echo "$as_me:$LINENO: result: no" >&5
21410 echo "${ECHO_T}no" >&6
21411 fi
21412
21413   min_mysql_version=0.11.0
21414   echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
21415 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
21416   no_mysql=""
21417   if test "$MYSQL_CONFIG" = "no" ; then
21418     no_mysql=yes
21419   else
21420     MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
21421     MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
21422
21423     mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
21424            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21425     mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
21426            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21427     mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
21428            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21429     if test "x$enable_mysqltest" = "xyes" ; then
21430       ac_save_CFLAGS="$CFLAGS"
21431       ac_save_LIBS="$LIBS"
21432       CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21433       LIBS="$LIBS $MYSQL_LIBS"
21434       rm -f conf.mysqltest
21435       if test "$cross_compiling" = yes; then
21436   echo $ac_n "cross compiling; assumed OK... $ac_c"
21437 else
21438   cat >conftest.$ac_ext <<_ACEOF
21439 #line $LINENO "configure"
21440 #include "confdefs.h"
21441
21442 #include <stdio.h>
21443 #include <stdlib.h>
21444 #include <string.h>
21445 #include <mysql.h>
21446
21447 char*
21448 my_strdup (char *str)
21449 {
21450   char *new_str;
21451
21452   if (str)
21453     {
21454       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21455       strcpy (new_str, str);
21456     }
21457   else
21458     new_str = NULL;
21459
21460   return new_str;
21461 }
21462
21463 int main (int argc, char *argv[])
21464 {
21465 int major, minor, micro;
21466   char *tmp_version;
21467
21468   /* This hangs on some systems (?)
21469   system ("touch conf.mysqltest");
21470   */
21471   { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
21472
21473   /* HP/UX 9 (%@#!) writes to sscanf strings */
21474   tmp_version = my_strdup("$min_mysql_version");
21475   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21476      printf("%s, bad version string\n", "$min_mysql_version");
21477      exit(1);
21478    }
21479
21480    if (($mysql_major_version > major) ||
21481       (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
21482       (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
21483     {
21484       return 0;
21485     }
21486   else
21487     {
21488       printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
21489       printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
21490       printf("*** best to upgrade to the required version.\n");
21491       printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
21492       printf("*** to point to the correct copy of mysql_config, and remove the file\n");
21493       printf("*** config.cache before re-running configure\n");
21494       return 1;
21495     }
21496 }
21497
21498
21499 _ACEOF
21500 rm -f conftest$ac_exeext
21501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21502   (eval $ac_link) 2>&5
21503   ac_status=$?
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507   (eval $ac_try) 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); }; }; then
21511   :
21512 else
21513   echo "$as_me: program exited with status $ac_status" >&5
21514 echo "$as_me: failed program was:" >&5
21515 cat conftest.$ac_ext >&5
21516 ( exit $ac_status )
21517 no_mysql=yes
21518 fi
21519 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21520 fi
21521        CFLAGS="$ac_save_CFLAGS"
21522        LIBS="$ac_save_LIBS"
21523      fi
21524   fi
21525   if test "x$no_mysql" = x ; then
21526      echo "$as_me:$LINENO: result: yes" >&5
21527 echo "${ECHO_T}yes" >&6
21528      MODULE_MYSQL=bin/pdb_mysql.so
21529   else
21530      echo "$as_me:$LINENO: result: no" >&5
21531 echo "${ECHO_T}no" >&6
21532      if test "$MYSQL_CONFIG" = "no" ; then
21533        echo "*** The mysql_config script installed by MYSQL could not be found"
21534        echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
21535        echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
21536        echo "*** full path to mysql_config."
21537      else
21538        if test -f conf.mysqltest ; then
21539         :
21540        else
21541           echo "*** Could not run MYSQL test program, checking why..."
21542           CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21543           LIBS="$LIBS $MYSQL_LIBS"
21544           cat >conftest.$ac_ext <<_ACEOF
21545 #line $LINENO "configure"
21546 #include "confdefs.h"
21547
21548 #include <stdio.h>
21549 #include <mysql.h>
21550
21551 int main(int argc, char *argv[])
21552 { return 0; }
21553 #undef  main
21554 #define main K_and_R_C_main
21555
21556 #ifdef F77_DUMMY_MAIN
21557 #  ifdef __cplusplus
21558      extern "C"
21559 #  endif
21560    int F77_DUMMY_MAIN() { return 1; }
21561 #endif
21562 int
21563 main ()
21564 {
21565  return 0;
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 rm -f conftest.$ac_objext conftest$ac_exeext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21572   (eval $ac_link) 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); } &&
21576          { ac_try='test -s conftest$ac_exeext'
21577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578   (eval $ac_try) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; }; then
21582    echo "*** The test program compiled, but did not run. This usually means"
21583           echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
21584           echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
21585           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21586           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21587           echo "*** is required on your system"
21588     echo "***"
21589           echo "*** If you have an old version installed, it is best to remove it, although"
21590           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21591 else
21592   echo "$as_me: failed program was:" >&5
21593 cat conftest.$ac_ext >&5
21594  echo "*** The test program failed to compile or link. See the file config.log for the"
21595           echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
21596           echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
21597           echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
21598 fi
21599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21600           CFLAGS="$ac_save_CFLAGS"
21601           LIBS="$ac_save_LIBS"
21602        fi
21603      fi
21604      MYSQL_CFLAGS=""
21605      MYSQL_LIBS=""
21606      MODULE_MYSQL=
21607   fi
21608
21609
21610   rm -f conf.mysqltest
21611
21612 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21613
21614
21615 ########################################################
21616 # Compile with XML support?
21617
21618
21619 # Check whether --with-xml-prefix or --without-xml-prefix was given.
21620 if test "${with_xml_prefix+set}" = set; then
21621   withval="$with_xml_prefix"
21622   xml_config_prefix="$withval"
21623 else
21624   xml_config_prefix=""
21625 fi;
21626
21627 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
21628 if test "${with_xml_exec_prefix+set}" = set; then
21629   withval="$with_xml_exec_prefix"
21630   xml_config_exec_prefix="$withval"
21631 else
21632   xml_config_exec_prefix=""
21633 fi;
21634 # Check whether --enable-xmltest or --disable-xmltest was given.
21635 if test "${enable_xmltest+set}" = set; then
21636   enableval="$enable_xmltest"
21637
21638 else
21639   enable_xmltest=yes
21640 fi;
21641
21642   if test x$xml_config_exec_prefix != x ; then
21643      xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
21644      if test x${XML2_CONFIG+set} != xset ; then
21645         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
21646      fi
21647   fi
21648   if test x$xml_config_prefix != x ; then
21649      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
21650      if test x${XML2_CONFIG+set} != xset ; then
21651         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
21652      fi
21653   fi
21654
21655   # Extract the first word of "xml2-config", so it can be a program name with args.
21656 set dummy xml2-config; ac_word=$2
21657 echo "$as_me:$LINENO: checking for $ac_word" >&5
21658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21659 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
21660   echo $ECHO_N "(cached) $ECHO_C" >&6
21661 else
21662   case $XML2_CONFIG in
21663   [\\/]* | ?:[\\/]*)
21664   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
21665   ;;
21666   *)
21667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21668 for as_dir in $PATH
21669 do
21670   IFS=$as_save_IFS
21671   test -z "$as_dir" && as_dir=.
21672   for ac_exec_ext in '' $ac_executable_extensions; do
21673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21674     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21676     break 2
21677   fi
21678 done
21679 done
21680
21681   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
21682   ;;
21683 esac
21684 fi
21685 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
21686
21687 if test -n "$XML2_CONFIG"; then
21688   echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
21689 echo "${ECHO_T}$XML2_CONFIG" >&6
21690 else
21691   echo "$as_me:$LINENO: result: no" >&5
21692 echo "${ECHO_T}no" >&6
21693 fi
21694
21695   min_xml_version=2.0.0
21696   echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
21697 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
21698   no_xml=""
21699   if test "$XML2_CONFIG" = "no" ; then
21700     no_xml=yes
21701   else
21702     XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
21703     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
21704     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
21705            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21706     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
21707            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21708     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
21709            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21710     if test "x$enable_xmltest" = "xyes" ; then
21711       ac_save_CFLAGS="$CFLAGS"
21712       ac_save_LIBS="$LIBS"
21713       CFLAGS="$CFLAGS $XML_CFLAGS"
21714       LIBS="$XML_LIBS $LIBS"
21715       rm -f conf.xmltest
21716       if test "$cross_compiling" = yes; then
21717   echo $ac_n "cross compiling; assumed OK... $ac_c"
21718 else
21719   cat >conftest.$ac_ext <<_ACEOF
21720 #line $LINENO "configure"
21721 #include "confdefs.h"
21722
21723 #include <stdlib.h>
21724 #include <stdio.h>
21725 #include <string.h>
21726 #include <libxml/xmlversion.h>
21727
21728 int
21729 main()
21730 {
21731   int xml_major_version, xml_minor_version, xml_micro_version;
21732   int major, minor, micro;
21733   char *tmp_version;
21734
21735   system("touch conf.xmltest");
21736
21737   /* Capture xml2-config output via autoconf/configure variables */
21738   /* HP/UX 9 (%@#!) writes to sscanf strings */
21739   tmp_version = (char *)strdup("$min_xml_version");
21740   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21741      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
21742      exit(1);
21743    }
21744    free(tmp_version);
21745
21746    /* Capture the version information from the header files */
21747    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
21748    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
21749      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
21750      exit(1);
21751    }
21752    free(tmp_version);
21753
21754  /* Compare xml2-config output to the libxml headers */
21755   if ((xml_major_version != $xml_config_major_version) ||
21756       (xml_minor_version != $xml_config_minor_version) ||
21757       (xml_micro_version != $xml_config_micro_version))
21758     {
21759       printf("*** libxml header files (version %d.%d.%d) do not match\n",
21760          xml_major_version, xml_minor_version, xml_micro_version);
21761       printf("*** xml2-config (version %d.%d.%d)\n",
21762          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
21763       return 1;
21764     }
21765 /* Compare the headers to the library to make sure we match */
21766   /* Less than ideal -- doesn't provide us with return value feedback,
21767    * only exits if there's a serious mismatch between header and library.
21768    */
21769     LIBXML_TEST_VERSION;
21770
21771     /* Test that the library is greater than our minimum version */
21772     if ((xml_major_version > major) ||
21773         ((xml_major_version == major) && (xml_minor_version > minor)) ||
21774         ((xml_major_version == major) && (xml_minor_version == minor) &&
21775         (xml_micro_version >= micro)))
21776       {
21777         return 0;
21778        }
21779      else
21780       {
21781         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
21782                xml_major_version, xml_minor_version, xml_micro_version);
21783         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
21784            major, minor, micro);
21785         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
21786         printf("***\n");
21787         printf("*** If you have already installed a sufficiently new version, this error\n");
21788         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
21789         printf("*** being found. The easiest way to fix this is to remove the old version\n");
21790         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
21791         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
21792         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21793         printf("*** so that the correct libraries are found at run-time))\n");
21794     }
21795   return 1;
21796 }
21797
21798 _ACEOF
21799 rm -f conftest$ac_exeext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21801   (eval $ac_link) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806   (eval $ac_try) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); }; }; then
21810   :
21811 else
21812   echo "$as_me: program exited with status $ac_status" >&5
21813 echo "$as_me: failed program was:" >&5
21814 cat conftest.$ac_ext >&5
21815 ( exit $ac_status )
21816 no_xml=yes
21817 fi
21818 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21819 fi
21820        CFLAGS="$ac_save_CFLAGS"
21821        LIBS="$ac_save_LIBS"
21822      fi
21823   fi
21824
21825   if test "x$no_xml" = x ; then
21826      echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
21827 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
21828      MODULE_XML=bin/pdb_xml.so
21829   else
21830      echo "$as_me:$LINENO: result: no" >&5
21831 echo "${ECHO_T}no" >&6
21832      if test "$XML2_CONFIG" = "no" ; then
21833        echo "*** The xml2-config script installed by LIBXML could not be found"
21834        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
21835        echo "*** your path, or set the XML2_CONFIG environment variable to the"
21836        echo "*** full path to xml2-config."
21837      else
21838        if test -f conf.xmltest ; then
21839         :
21840        else
21841           echo "*** Could not run libxml test program, checking why..."
21842           CFLAGS="$CFLAGS $XML_CFLAGS"
21843           LIBS="$LIBS $XML_LIBS"
21844           cat >conftest.$ac_ext <<_ACEOF
21845 #line $LINENO "configure"
21846 #include "confdefs.h"
21847
21848 #include <libxml/xmlversion.h>
21849 #include <stdio.h>
21850
21851 #ifdef F77_DUMMY_MAIN
21852 #  ifdef __cplusplus
21853      extern "C"
21854 #  endif
21855    int F77_DUMMY_MAIN() { return 1; }
21856 #endif
21857 int
21858 main ()
21859 {
21860  LIBXML_TEST_VERSION; return 0;
21861   ;
21862   return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867   (eval $ac_link) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } &&
21871          { ac_try='test -s conftest$ac_exeext'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; }; then
21877    echo "*** The test program compiled, but did not run. This usually means"
21878           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
21879           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
21880           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21881           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21882           echo "*** is required on your system"
21883           echo "***"
21884           echo "*** If you have an old version installed, it is best to remove it, although"
21885           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 cat conftest.$ac_ext >&5
21889  echo "*** The test program failed to compile or link. See the file config.log for the"
21890           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
21891           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
21892           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
21893 fi
21894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21895           CFLAGS="$ac_save_CFLAGS"
21896           LIBS="$ac_save_LIBS"
21897        fi
21898      fi
21899
21900      XML_CFLAGS=""
21901      XML_LIBS=""
21902      MODULE_XML=
21903   fi
21904
21905
21906   rm -f conf.xmltest
21907
21908 CFLAGS="$CFLAGS $XML_CFLAGS"
21909
21910
21911 #################################################
21912 # check for automount support
21913 echo "$as_me:$LINENO: checking whether to use automount" >&5
21914 echo $ECHO_N "checking whether to use automount... $ECHO_C" >&6
21915
21916 # Check whether --with-automount or --without-automount was given.
21917 if test "${with_automount+set}" = set; then
21918   withval="$with_automount"
21919    case "$withval" in
21920   yes)
21921     echo "$as_me:$LINENO: result: yes" >&5
21922 echo "${ECHO_T}yes" >&6
21923
21924 cat >>confdefs.h <<\_ACEOF
21925 #define WITH_AUTOMOUNT 1
21926 _ACEOF
21927
21928     ;;
21929   *)
21930     echo "$as_me:$LINENO: result: no" >&5
21931 echo "${ECHO_T}no" >&6
21932     ;;
21933   esac
21934 else
21935   echo "$as_me:$LINENO: result: no" >&5
21936 echo "${ECHO_T}no" >&6
21937
21938 fi;
21939
21940 #################################################
21941 # check for smbmount support
21942 echo "$as_me:$LINENO: checking whether to use smbmount" >&5
21943 echo $ECHO_N "checking whether to use smbmount... $ECHO_C" >&6
21944
21945 # Check whether --with-smbmount or --without-smbmount was given.
21946 if test "${with_smbmount+set}" = set; then
21947   withval="$with_smbmount"
21948    case "$withval" in
21949   yes)
21950         case "$host_os" in
21951         *linux*)
21952                 echo "$as_me:$LINENO: result: yes" >&5
21953 echo "${ECHO_T}yes" >&6
21954
21955 cat >>confdefs.h <<\_ACEOF
21956 #define WITH_SMBMOUNT 1
21957 _ACEOF
21958
21959                 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
21960                 ;;
21961         *)
21962                 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
21963 echo "$as_me: error: not on a linux system!" >&2;}
21964    { (exit 1); exit 1; }; }
21965                 ;;
21966         esac
21967     ;;
21968   *)
21969     echo "$as_me:$LINENO: result: no" >&5
21970 echo "${ECHO_T}no" >&6
21971     ;;
21972   esac
21973 else
21974   echo "$as_me:$LINENO: result: no" >&5
21975 echo "${ECHO_T}no" >&6
21976
21977 fi;
21978
21979
21980 #################################################
21981 # check for a PAM clear-text auth, accounts, password and session support
21982 with_pam_for_crypt=no
21983 echo "$as_me:$LINENO: checking whether to use PAM" >&5
21984 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
21985
21986 # Check whether --with-pam or --without-pam was given.
21987 if test "${with_pam+set}" = set; then
21988   withval="$with_pam"
21989    case "$withval" in
21990   yes)
21991     echo "$as_me:$LINENO: result: yes" >&5
21992 echo "${ECHO_T}yes" >&6
21993
21994 cat >>confdefs.h <<\_ACEOF
21995 #define WITH_PAM 1
21996 _ACEOF
21997
21998     AUTHLIBS="$AUTHLIBS -lpam"
21999     with_pam_for_crypt=yes
22000     ;;
22001   *)
22002     echo "$as_me:$LINENO: result: no" >&5
22003 echo "${ECHO_T}no" >&6
22004     ;;
22005   esac
22006 else
22007   echo "$as_me:$LINENO: result: no" >&5
22008 echo "${ECHO_T}no" >&6
22009
22010 fi;
22011
22012 # we can't build a pam module if we don't have pam.
22013 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
22014 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
22015 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   ac_check_lib_save_LIBS=$LIBS
22019 LIBS="-lpam  $LIBS"
22020 cat >conftest.$ac_ext <<_ACEOF
22021 #line $LINENO "configure"
22022 #include "confdefs.h"
22023
22024 /* Override any gcc2 internal prototype to avoid an error.  */
22025 #ifdef __cplusplus
22026 extern "C"
22027 #endif
22028 /* We use char because int might match the return type of a gcc2
22029    builtin and then its argument prototype would still apply.  */
22030 char pam_get_data ();
22031 #ifdef F77_DUMMY_MAIN
22032 #  ifdef __cplusplus
22033      extern "C"
22034 #  endif
22035    int F77_DUMMY_MAIN() { return 1; }
22036 #endif
22037 int
22038 main ()
22039 {
22040 pam_get_data ();
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22047   (eval $ac_link) 2>&5
22048   ac_status=$?
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); } &&
22051          { ac_try='test -s conftest$ac_exeext'
22052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053   (eval $ac_try) 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; }; then
22057   ac_cv_lib_pam_pam_get_data=yes
22058 else
22059   echo "$as_me: failed program was:" >&5
22060 cat conftest.$ac_ext >&5
22061 ac_cv_lib_pam_pam_get_data=no
22062 fi
22063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22064 LIBS=$ac_check_lib_save_LIBS
22065 fi
22066 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
22067 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
22068 if test $ac_cv_lib_pam_pam_get_data = yes; then
22069
22070 cat >>confdefs.h <<\_ACEOF
22071 #define HAVE_LIBPAM 1
22072 _ACEOF
22073
22074 fi
22075
22076
22077 #################################################
22078 # check for pam_smbpass support
22079 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
22080 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
22081
22082 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
22083 if test "${with_pam_smbpass+set}" = set; then
22084   withval="$with_pam_smbpass"
22085    case "$withval" in
22086   yes)
22087     echo "$as_me:$LINENO: result: yes" >&5
22088 echo "${ECHO_T}yes" >&6
22089
22090 # Conditions under which pam_smbpass should not be built.
22091
22092        if test x$PICFLAG = x; then
22093           echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
22094 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
22095        elif test x$ac_cv_lib_pam_pam_get_data = xno; then
22096           echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
22097 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
22098        else
22099           SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
22100        fi
22101     ;;
22102   *)
22103     echo "$as_me:$LINENO: result: no" >&5
22104 echo "${ECHO_T}no" >&6
22105     ;;
22106   esac
22107 else
22108   echo "$as_me:$LINENO: result: no" >&5
22109 echo "${ECHO_T}no" >&6
22110
22111 fi;
22112
22113
22114 ###############################################
22115 # test for where we get crypt() from, but only
22116 # if not using PAM
22117 if test x"$with_pam_for_crypt" = x"no"; then
22118
22119 for ac_func in crypt
22120 do
22121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22122 echo "$as_me:$LINENO: checking for $ac_func" >&5
22123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22124 if eval "test \"\${$as_ac_var+set}\" = set"; then
22125   echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127   cat >conftest.$ac_ext <<_ACEOF
22128 #line $LINENO "configure"
22129 #include "confdefs.h"
22130 /* System header to define __stub macros and hopefully few prototypes,
22131     which can conflict with char $ac_func (); below.  */
22132 #include <assert.h>
22133 /* Override any gcc2 internal prototype to avoid an error.  */
22134 #ifdef __cplusplus
22135 extern "C"
22136 #endif
22137 /* We use char because int might match the return type of a gcc2
22138    builtin and then its argument prototype would still apply.  */
22139 char $ac_func ();
22140 char (*f) ();
22141
22142 #ifdef F77_DUMMY_MAIN
22143 #  ifdef __cplusplus
22144      extern "C"
22145 #  endif
22146    int F77_DUMMY_MAIN() { return 1; }
22147 #endif
22148 int
22149 main ()
22150 {
22151 /* The GNU C library defines this for functions which it implements
22152     to always fail with ENOSYS.  Some functions are actually named
22153     something starting with __ and the normal name is an alias.  */
22154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22155 choke me
22156 #else
22157 f = $ac_func;
22158 #endif
22159
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166   (eval $ac_link) 2>&5
22167   ac_status=$?
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); } &&
22170          { ac_try='test -s conftest$ac_exeext'
22171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172   (eval $ac_try) 2>&5
22173   ac_status=$?
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); }; }; then
22176   eval "$as_ac_var=yes"
22177 else
22178   echo "$as_me: failed program was:" >&5
22179 cat conftest.$ac_ext >&5
22180 eval "$as_ac_var=no"
22181 fi
22182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22183 fi
22184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22186 if test `eval echo '${'$as_ac_var'}'` = yes; then
22187   cat >>confdefs.h <<_ACEOF
22188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22189 _ACEOF
22190
22191 fi
22192 done
22193
22194 if test x"$ac_cv_func_crypt" = x"no"; then
22195     echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22196 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22197 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22198   echo $ECHO_N "(cached) $ECHO_C" >&6
22199 else
22200   ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-lcrypt  $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF
22203 #line $LINENO "configure"
22204 #include "confdefs.h"
22205
22206 /* Override any gcc2 internal prototype to avoid an error.  */
22207 #ifdef __cplusplus
22208 extern "C"
22209 #endif
22210 /* We use char because int might match the return type of a gcc2
22211    builtin and then its argument prototype would still apply.  */
22212 char crypt ();
22213 #ifdef F77_DUMMY_MAIN
22214 #  ifdef __cplusplus
22215      extern "C"
22216 #  endif
22217    int F77_DUMMY_MAIN() { return 1; }
22218 #endif
22219 int
22220 main ()
22221 {
22222 crypt ();
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229   (eval $ac_link) 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); } &&
22233          { ac_try='test -s conftest$ac_exeext'
22234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235   (eval $ac_try) 2>&5
22236   ac_status=$?
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); }; }; then
22239   ac_cv_lib_crypt_crypt=yes
22240 else
22241   echo "$as_me: failed program was:" >&5
22242 cat conftest.$ac_ext >&5
22243 ac_cv_lib_crypt_crypt=no
22244 fi
22245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22246 LIBS=$ac_check_lib_save_LIBS
22247 fi
22248 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22249 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22250 if test $ac_cv_lib_crypt_crypt = yes; then
22251   AUTHLIBS="$AUTHLIBS -lcrypt";
22252
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_CRYPT 1
22255 _ACEOF
22256
22257 fi
22258
22259 fi
22260 fi
22261
22262 ##
22263 ## moved after the check for -lcrypt in order to
22264 ## ensure that the necessary libraries are included
22265 ## check checking for truncated salt.  Wrapped by the
22266 ## $with_pam_for_crypt variable as above   --jerry
22267 ##
22268 if test $with_pam_for_crypt = no; then
22269 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
22270 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
22271 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
22272   echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274
22275 crypt_LIBS="$LIBS"
22276 LIBS="$AUTHLIBS $LIBS"
22277 if test "$cross_compiling" = yes; then
22278   samba_cv_HAVE_TRUNCATED_SALT=cross
22279 else
22280   cat >conftest.$ac_ext <<_ACEOF
22281 #line $LINENO "configure"
22282 #include "confdefs.h"
22283 #include "${srcdir-.}/tests/crypttest.c"
22284 _ACEOF
22285 rm -f conftest$ac_exeext
22286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22287   (eval $ac_link) 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292   (eval $ac_try) 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; }; then
22296   samba_cv_HAVE_TRUNCATED_SALT=no
22297 else
22298   echo "$as_me: program exited with status $ac_status" >&5
22299 echo "$as_me: failed program was:" >&5
22300 cat conftest.$ac_ext >&5
22301 ( exit $ac_status )
22302 samba_cv_HAVE_TRUNCATED_SALT=yes
22303 fi
22304 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22305 fi
22306 LIBS="$crypt_LIBS"
22307 fi
22308 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
22309 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
22310 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
22311
22312 cat >>confdefs.h <<\_ACEOF
22313 #define HAVE_TRUNCATED_SALT 1
22314 _ACEOF
22315
22316 fi
22317 fi
22318
22319 ########################################################################################
22320 ##
22321 ## TESTS FOR SAM BACKENDS.  KEEP THESE GROUPED TOGETHER
22322 ##
22323 ########################################################################################
22324
22325 #################################################
22326 # check for a LDAP password database configuration backwards compatibility
22327 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
22328 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
22329
22330 # Check whether --with-ldapsam or --without-ldapsam was given.
22331 if test "${with_ldapsam+set}" = set; then
22332   withval="$with_ldapsam"
22333    case "$withval" in
22334   yes)
22335     echo "$as_me:$LINENO: result: yes" >&5
22336 echo "${ECHO_T}yes" >&6
22337
22338 cat >>confdefs.h <<\_ACEOF
22339 #define WITH_LDAP_SAMCONFIG 1
22340 _ACEOF
22341
22342     ;;
22343   *)
22344     echo "$as_me:$LINENO: result: no" >&5
22345 echo "${ECHO_T}no" >&6
22346     ;;
22347   esac
22348 else
22349   echo "$as_me:$LINENO: result: no" >&5
22350 echo "${ECHO_T}no" >&6
22351
22352 fi;
22353
22354 #################################################
22355 # check for a TDB password database
22356 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
22357 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
22358
22359 # Check whether --with-tdbsam or --without-tdbsam was given.
22360 if test "${with_tdbsam+set}" = set; then
22361   withval="$with_tdbsam"
22362    case "$withval" in
22363   yes)
22364     echo "$as_me:$LINENO: result: yes" >&5
22365 echo "${ECHO_T}yes" >&6
22366
22367 cat >>confdefs.h <<\_ACEOF
22368 #define WITH_TDB_SAM 1
22369 _ACEOF
22370
22371     ;;
22372   *)
22373     echo "$as_me:$LINENO: result: no" >&5
22374 echo "${ECHO_T}no" >&6
22375     ;;
22376   esac
22377 else
22378   echo "$as_me:$LINENO: result: no" >&5
22379 echo "${ECHO_T}no" >&6
22380
22381 fi;
22382
22383 #################################################
22384 # check for a NISPLUS password database
22385 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
22386 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
22387
22388 # Check whether --with-nisplussam or --without-nisplussam was given.
22389 if test "${with_nisplussam+set}" = set; then
22390   withval="$with_nisplussam"
22391    case "$withval" in
22392   yes)
22393     echo "$as_me:$LINENO: result: yes" >&5
22394 echo "${ECHO_T}yes" >&6
22395
22396 cat >>confdefs.h <<\_ACEOF
22397 #define WITH_NISPLUS_SAM 1
22398 _ACEOF
22399
22400     ;;
22401   *)
22402     echo "$as_me:$LINENO: result: no" >&5
22403 echo "${ECHO_T}no" >&6
22404     ;;
22405   esac
22406 else
22407   echo "$as_me:$LINENO: result: no" >&5
22408 echo "${ECHO_T}no" >&6
22409
22410 fi;
22411
22412 ########################################################################################
22413 ##
22414 ## END OF TESTS FOR SAM BACKENDS.
22415 ##
22416 ########################################################################################
22417
22418 #################################################
22419 # check for a NISPLUS_HOME support
22420 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
22421 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
22422
22423 # Check whether --with-nisplus-home or --without-nisplus-home was given.
22424 if test "${with_nisplus_home+set}" = set; then
22425   withval="$with_nisplus_home"
22426    case "$withval" in
22427   yes)
22428     echo "$as_me:$LINENO: result: yes" >&5
22429 echo "${ECHO_T}yes" >&6
22430
22431 cat >>confdefs.h <<\_ACEOF
22432 #define WITH_NISPLUS_HOME 1
22433 _ACEOF
22434
22435     ;;
22436   *)
22437     echo "$as_me:$LINENO: result: no" >&5
22438 echo "${ECHO_T}no" >&6
22439     ;;
22440   esac
22441 else
22442   echo "$as_me:$LINENO: result: no" >&5
22443 echo "${ECHO_T}no" >&6
22444
22445 fi;
22446
22447 #################################################
22448 # check for syslog logging
22449 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
22450 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
22451
22452 # Check whether --with-syslog or --without-syslog was given.
22453 if test "${with_syslog+set}" = set; then
22454   withval="$with_syslog"
22455    case "$withval" in
22456   yes)
22457     echo "$as_me:$LINENO: result: yes" >&5
22458 echo "${ECHO_T}yes" >&6
22459
22460 cat >>confdefs.h <<\_ACEOF
22461 #define WITH_SYSLOG 1
22462 _ACEOF
22463
22464     ;;
22465   *)
22466     echo "$as_me:$LINENO: result: no" >&5
22467 echo "${ECHO_T}no" >&6
22468     ;;
22469   esac
22470 else
22471   echo "$as_me:$LINENO: result: no" >&5
22472 echo "${ECHO_T}no" >&6
22473
22474 fi;
22475
22476 #################################################
22477 # check for a shared memory profiling support
22478 echo "$as_me:$LINENO: checking whether to use profiling" >&5
22479 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
22480
22481 # Check whether --with-profiling-data or --without-profiling-data was given.
22482 if test "${with_profiling_data+set}" = set; then
22483   withval="$with_profiling_data"
22484    case "$withval" in
22485   yes)
22486     echo "$as_me:$LINENO: result: yes" >&5
22487 echo "${ECHO_T}yes" >&6
22488
22489 cat >>confdefs.h <<\_ACEOF
22490 #define WITH_PROFILE 1
22491 _ACEOF
22492
22493     ;;
22494   *)
22495     echo "$as_me:$LINENO: result: no" >&5
22496 echo "${ECHO_T}no" >&6
22497     ;;
22498   esac
22499 else
22500   echo "$as_me:$LINENO: result: no" >&5
22501 echo "${ECHO_T}no" >&6
22502
22503 fi;
22504
22505
22506 #################################################
22507 # check for experimental disk-quotas support
22508 QUOTAOBJS=smbd/noquotas.o
22509
22510 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
22511 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
22512
22513 # Check whether --with-quotas or --without-quotas was given.
22514 if test "${with_quotas+set}" = set; then
22515   withval="$with_quotas"
22516    case "$withval" in
22517   yes)
22518     echo "$as_me:$LINENO: result: yes" >&5
22519 echo "${ECHO_T}yes" >&6
22520     case "$host_os" in
22521       *linux*)
22522         # Check for kernel 2.4.x quota braindamage...
22523         echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
22524 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
22525 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
22526   echo $ECHO_N "(cached) $ECHO_C" >&6
22527 else
22528
22529         cat >conftest.$ac_ext <<_ACEOF
22530 #line $LINENO "configure"
22531 #include "confdefs.h"
22532 #include <stdio.h>
22533 #include <sys/types.h>
22534 #include <asm/types.h>
22535 #include <linux/quota.h>
22536 #include <mntent.h>
22537 #include <linux/unistd.h>
22538 #ifdef F77_DUMMY_MAIN
22539 #  ifdef __cplusplus
22540      extern "C"
22541 #  endif
22542    int F77_DUMMY_MAIN() { return 1; }
22543 #endif
22544 int
22545 main ()
22546 {
22547 struct mem_dqblk D;
22548   ;
22549   return 0;
22550 }
22551 _ACEOF
22552 rm -f conftest.$ac_objext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554   (eval $ac_compile) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } &&
22558          { ac_try='test -s conftest.$ac_objext'
22559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560   (eval $ac_try) 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; }; then
22564   samba_cv_linux_2_4_quota_braindamage=yes
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 cat conftest.$ac_ext >&5
22568 samba_cv_linux_2_4_quota_braindamage=no
22569 fi
22570 rm -f conftest.$ac_objext conftest.$ac_ext
22571 fi
22572 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
22573 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
22574 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
22575
22576 cat >>confdefs.h <<\_ACEOF
22577 #define LINUX_QUOTAS_2 1
22578 _ACEOF
22579
22580 else
22581
22582 cat >>confdefs.h <<\_ACEOF
22583 #define LINUX_QUOTAS_1 1
22584 _ACEOF
22585
22586 fi
22587         ;;
22588       *)
22589         ;;
22590     esac
22591     QUOTAOBJS=smbd/quotas.o
22592
22593 cat >>confdefs.h <<\_ACEOF
22594 #define WITH_QUOTAS 1
22595 _ACEOF
22596
22597     ;;
22598   *)
22599     echo "$as_me:$LINENO: result: no" >&5
22600 echo "${ECHO_T}no" >&6
22601     ;;
22602   esac
22603 else
22604   echo "$as_me:$LINENO: result: no" >&5
22605 echo "${ECHO_T}no" >&6
22606
22607 fi;
22608
22609
22610 #################################################
22611 # check for experimental utmp accounting
22612
22613 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
22614 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
22615
22616 # Check whether --with-utmp or --without-utmp was given.
22617 if test "${with_utmp+set}" = set; then
22618   withval="$with_utmp"
22619    case "$withval" in
22620   yes)
22621     echo "$as_me:$LINENO: result: yes" >&5
22622 echo "${ECHO_T}yes" >&6
22623
22624 cat >>confdefs.h <<\_ACEOF
22625 #define WITH_UTMP 1
22626 _ACEOF
22627
22628     ;;
22629   *)
22630     echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6
22632     ;;
22633   esac
22634 else
22635   echo "$as_me:$LINENO: result: no" >&5
22636 echo "${ECHO_T}no" >&6
22637
22638 fi;
22639
22640 #################################################
22641 # choose native language(s) of man pages
22642 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
22643 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
22644
22645 # Check whether --with-manpages-langs or --without-manpages-langs was given.
22646 if test "${with_manpages_langs+set}" = set; then
22647   withval="$with_manpages_langs"
22648    case "$withval" in
22649   yes|no)
22650     { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
22651 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
22652     manlangs="en"
22653   ;;
22654   *)
22655     manlangs="$withval"
22656   ;;
22657   esac
22658
22659   echo "$as_me:$LINENO: result: $manlangs" >&5
22660 echo "${ECHO_T}$manlangs" >&6
22661   manlangs=`echo $manlangs | sed "s/,/ /g"`   # replacing commas with spaces to produce a list
22662
22663 else
22664   manlangs="en"
22665   echo "$as_me:$LINENO: result: $manlangs" >&5
22666 echo "${ECHO_T}$manlangs" >&6
22667
22668
22669 fi;
22670
22671 #################################################
22672 # should we build libsmbclient?
22673
22674 LIBSMBCLIENT_SHARED=
22675 LIBSMBCLIENT=
22676 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
22677 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
22678
22679 # Check whether --with-libsmbclient or --without-libsmbclient was given.
22680 if test "${with_libsmbclient+set}" = set; then
22681   withval="$with_libsmbclient"
22682    case "$withval" in
22683   no)
22684      echo "$as_me:$LINENO: result: no" >&5
22685 echo "${ECHO_T}no" >&6
22686      ;;
22687   *)
22688      if test $BLDSHARED = true; then
22689         LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
22690         LIBSMBCLIENT=libsmbclient
22691         echo "$as_me:$LINENO: result: yes" >&5
22692 echo "${ECHO_T}yes" >&6
22693      else
22694         echo "$as_me:$LINENO: result: no shared library support" >&5
22695 echo "${ECHO_T}no shared library support" >&6
22696      fi
22697      ;;
22698   esac
22699 else
22700   echo "$as_me:$LINENO: result: yes" >&5
22701 echo "${ECHO_T}yes" >&6
22702
22703 fi;
22704
22705
22706 #################################################
22707 # these tests are taken from the GNU fileutils package
22708 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
22709 echo "$as_me: checking how to get filesystem space usage..." >&6;}
22710 space=no
22711
22712 # Test for statvfs64.
22713 if test $space = no; then
22714   # SVR4
22715   echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
22716 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
22717 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
22718   echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720   if test "$cross_compiling" = yes; then
22721   fu_cv_sys_stat_statvfs64=cross
22722 else
22723   cat >conftest.$ac_ext <<_ACEOF
22724 #line $LINENO "configure"
22725 #include "confdefs.h"
22726
22727 #if defined(HAVE_UNISTD_H)
22728 #include <unistd.h>
22729 #endif
22730 #include <sys/types.h>
22731 #include <sys/statvfs.h>
22732   main ()
22733   {
22734     struct statvfs64 fsd;
22735     exit (statvfs64 (".", &fsd));
22736   }
22737 _ACEOF
22738 rm -f conftest$ac_exeext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740   (eval $ac_link) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745   (eval $ac_try) 2>&5
22746   ac_status=$?
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); }; }; then
22749   fu_cv_sys_stat_statvfs64=yes
22750 else
22751   echo "$as_me: program exited with status $ac_status" >&5
22752 echo "$as_me: failed program was:" >&5
22753 cat conftest.$ac_ext >&5
22754 ( exit $ac_status )
22755 fu_cv_sys_stat_statvfs64=no
22756 fi
22757 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22758 fi
22759 fi
22760 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
22761 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
22762   if test $fu_cv_sys_stat_statvfs64 = yes; then
22763     space=yes
22764
22765 cat >>confdefs.h <<\_ACEOF
22766 #define STAT_STATVFS64 1
22767 _ACEOF
22768
22769   fi
22770 fi
22771
22772 # Perform only the link test since it seems there are no variants of the
22773 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
22774 # because that got a false positive on SCO OSR5.  Adding the declaration
22775 # of a `struct statvfs' causes this test to fail (as it should) on such
22776 # systems.  That system is reported to work fine with STAT_STATFS4 which
22777 # is what it gets when this test fails.
22778 if test $space = no; then
22779   # SVR4
22780   echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
22781 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
22782 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
22783   echo $ECHO_N "(cached) $ECHO_C" >&6
22784 else
22785   cat >conftest.$ac_ext <<_ACEOF
22786 #line $LINENO "configure"
22787 #include "confdefs.h"
22788 #include <sys/types.h>
22789 #include <sys/statvfs.h>
22790 #ifdef F77_DUMMY_MAIN
22791 #  ifdef __cplusplus
22792      extern "C"
22793 #  endif
22794    int F77_DUMMY_MAIN() { return 1; }
22795 #endif
22796 int
22797 main ()
22798 {
22799 struct statvfs fsd; statvfs (0, &fsd);
22800   ;
22801   return 0;
22802 }
22803 _ACEOF
22804 rm -f conftest.$ac_objext conftest$ac_exeext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22806   (eval $ac_link) 2>&5
22807   ac_status=$?
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } &&
22810          { ac_try='test -s conftest$ac_exeext'
22811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812   (eval $ac_try) 2>&5
22813   ac_status=$?
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); }; }; then
22816   fu_cv_sys_stat_statvfs=yes
22817 else
22818   echo "$as_me: failed program was:" >&5
22819 cat conftest.$ac_ext >&5
22820 fu_cv_sys_stat_statvfs=no
22821 fi
22822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22823 fi
22824 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
22825 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
22826   if test $fu_cv_sys_stat_statvfs = yes; then
22827     space=yes
22828
22829 cat >>confdefs.h <<\_ACEOF
22830 #define STAT_STATVFS 1
22831 _ACEOF
22832
22833   fi
22834 fi
22835
22836 if test $space = no; then
22837   # DEC Alpha running OSF/1
22838   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
22839 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
22840   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
22841   echo $ECHO_N "(cached) $ECHO_C" >&6
22842 else
22843   if test "$cross_compiling" = yes; then
22844   fu_cv_sys_stat_statfs3_osf1=no
22845 else
22846   cat >conftest.$ac_ext <<_ACEOF
22847 #line $LINENO "configure"
22848 #include "confdefs.h"
22849
22850 #include <sys/param.h>
22851 #include <sys/types.h>
22852 #include <sys/mount.h>
22853   main ()
22854   {
22855     struct statfs fsd;
22856     fsd.f_fsize = 0;
22857     exit (statfs (".", &fsd, sizeof (struct statfs)));
22858   }
22859 _ACEOF
22860 rm -f conftest$ac_exeext
22861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22862   (eval $ac_link) 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867   (eval $ac_try) 2>&5
22868   ac_status=$?
22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870   (exit $ac_status); }; }; then
22871   fu_cv_sys_stat_statfs3_osf1=yes
22872 else
22873   echo "$as_me: program exited with status $ac_status" >&5
22874 echo "$as_me: failed program was:" >&5
22875 cat conftest.$ac_ext >&5
22876 ( exit $ac_status )
22877 fu_cv_sys_stat_statfs3_osf1=no
22878 fi
22879 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22880 fi
22881 fi
22882
22883   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
22884 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
22885   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
22886     space=yes
22887
22888 cat >>confdefs.h <<\_ACEOF
22889 #define STAT_STATFS3_OSF1 1
22890 _ACEOF
22891
22892   fi
22893 fi
22894
22895 if test $space = no; then
22896 # AIX
22897   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
22898 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
22899   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
22900   echo $ECHO_N "(cached) $ECHO_C" >&6
22901 else
22902   if test "$cross_compiling" = yes; then
22903   fu_cv_sys_stat_statfs2_bsize=no
22904 else
22905   cat >conftest.$ac_ext <<_ACEOF
22906 #line $LINENO "configure"
22907 #include "confdefs.h"
22908
22909 #ifdef HAVE_SYS_PARAM_H
22910 #include <sys/param.h>
22911 #endif
22912 #ifdef HAVE_SYS_MOUNT_H
22913 #include <sys/mount.h>
22914 #endif
22915 #ifdef HAVE_SYS_VFS_H
22916 #include <sys/vfs.h>
22917 #endif
22918   main ()
22919   {
22920   struct statfs fsd;
22921   fsd.f_bsize = 0;
22922   exit (statfs (".", &fsd));
22923   }
22924 _ACEOF
22925 rm -f conftest$ac_exeext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22927   (eval $ac_link) 2>&5
22928   ac_status=$?
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932   (eval $ac_try) 2>&5
22933   ac_status=$?
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); }; }; then
22936   fu_cv_sys_stat_statfs2_bsize=yes
22937 else
22938   echo "$as_me: program exited with status $ac_status" >&5
22939 echo "$as_me: failed program was:" >&5
22940 cat conftest.$ac_ext >&5
22941 ( exit $ac_status )
22942 fu_cv_sys_stat_statfs2_bsize=no
22943 fi
22944 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22945 fi
22946 fi
22947
22948   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
22949 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
22950   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
22951     space=yes
22952
22953 cat >>confdefs.h <<\_ACEOF
22954 #define STAT_STATFS2_BSIZE 1
22955 _ACEOF
22956
22957   fi
22958 fi
22959
22960 if test $space = no; then
22961 # SVR3
22962   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
22963 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
22964   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
22965   echo $ECHO_N "(cached) $ECHO_C" >&6
22966 else
22967   if test "$cross_compiling" = yes; then
22968   fu_cv_sys_stat_statfs4=no
22969 else
22970   cat >conftest.$ac_ext <<_ACEOF
22971 #line $LINENO "configure"
22972 #include "confdefs.h"
22973 #include <sys/types.h>
22974 #include <sys/statfs.h>
22975   main ()
22976   {
22977   struct statfs fsd;
22978   exit (statfs (".", &fsd, sizeof fsd, 0));
22979   }
22980 _ACEOF
22981 rm -f conftest$ac_exeext
22982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22983   (eval $ac_link) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988   (eval $ac_try) 2>&5
22989   ac_status=$?
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); }; }; then
22992   fu_cv_sys_stat_statfs4=yes
22993 else
22994   echo "$as_me: program exited with status $ac_status" >&5
22995 echo "$as_me: failed program was:" >&5
22996 cat conftest.$ac_ext >&5
22997 ( exit $ac_status )
22998 fu_cv_sys_stat_statfs4=no
22999 fi
23000 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23001 fi
23002 fi
23003
23004   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
23005 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
23006   if test $fu_cv_sys_stat_statfs4 = yes; then
23007     space=yes
23008
23009 cat >>confdefs.h <<\_ACEOF
23010 #define STAT_STATFS4 1
23011 _ACEOF
23012
23013   fi
23014 fi
23015
23016 if test $space = no; then
23017 # 4.4BSD and NetBSD
23018   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
23019 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
23020   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
23021   echo $ECHO_N "(cached) $ECHO_C" >&6
23022 else
23023   if test "$cross_compiling" = yes; then
23024   fu_cv_sys_stat_statfs2_fsize=no
23025 else
23026   cat >conftest.$ac_ext <<_ACEOF
23027 #line $LINENO "configure"
23028 #include "confdefs.h"
23029 #include <sys/types.h>
23030 #ifdef HAVE_SYS_PARAM_H
23031 #include <sys/param.h>
23032 #endif
23033 #ifdef HAVE_SYS_MOUNT_H
23034 #include <sys/mount.h>
23035 #endif
23036   main ()
23037   {
23038   struct statfs fsd;
23039   fsd.f_fsize = 0;
23040   exit (statfs (".", &fsd));
23041   }
23042 _ACEOF
23043 rm -f conftest$ac_exeext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23045   (eval $ac_link) 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050   (eval $ac_try) 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); }; }; then
23054   fu_cv_sys_stat_statfs2_fsize=yes
23055 else
23056   echo "$as_me: program exited with status $ac_status" >&5
23057 echo "$as_me: failed program was:" >&5
23058 cat conftest.$ac_ext >&5
23059 ( exit $ac_status )
23060 fu_cv_sys_stat_statfs2_fsize=no
23061 fi
23062 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23063 fi
23064 fi
23065
23066   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
23067 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
23068   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
23069     space=yes
23070
23071 cat >>confdefs.h <<\_ACEOF
23072 #define STAT_STATFS2_FSIZE 1
23073 _ACEOF
23074
23075   fi
23076 fi
23077
23078 if test $space = no; then
23079   # Ultrix
23080   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
23081 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
23082   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
23083   echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085   if test "$cross_compiling" = yes; then
23086   fu_cv_sys_stat_fs_data=no
23087 else
23088   cat >conftest.$ac_ext <<_ACEOF
23089 #line $LINENO "configure"
23090 #include "confdefs.h"
23091 #include <sys/types.h>
23092 #ifdef HAVE_SYS_PARAM_H
23093 #include <sys/param.h>
23094 #endif
23095 #ifdef HAVE_SYS_MOUNT_H
23096 #include <sys/mount.h>
23097 #endif
23098 #ifdef HAVE_SYS_FS_TYPES_H
23099 #include <sys/fs_types.h>
23100 #endif
23101   main ()
23102   {
23103   struct fs_data fsd;
23104   /* Ultrix's statfs returns 1 for success,
23105      0 for not mounted, -1 for failure.  */
23106   exit (statfs (".", &fsd) != 1);
23107   }
23108 _ACEOF
23109 rm -f conftest$ac_exeext
23110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23111   (eval $ac_link) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116   (eval $ac_try) 2>&5
23117   ac_status=$?
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); }; }; then
23120   fu_cv_sys_stat_fs_data=yes
23121 else
23122   echo "$as_me: program exited with status $ac_status" >&5
23123 echo "$as_me: failed program was:" >&5
23124 cat conftest.$ac_ext >&5
23125 ( exit $ac_status )
23126 fu_cv_sys_stat_fs_data=no
23127 fi
23128 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23129 fi
23130 fi
23131
23132   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
23133 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
23134   if test $fu_cv_sys_stat_fs_data = yes; then
23135     space=yes
23136
23137 cat >>confdefs.h <<\_ACEOF
23138 #define STAT_STATFS2_FS_DATA 1
23139 _ACEOF
23140
23141   fi
23142 fi
23143
23144 #
23145 # As a gating factor for large file support, in order to
23146 # use <4GB files we must have the following minimal support
23147 # available.
23148 # long long, and a 64 bit off_t or off64_t.
23149 # If we don't have all of these then disable large
23150 # file support.
23151 #
23152 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
23153 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
23154 cat >conftest.$ac_ext <<_ACEOF
23155 #line $LINENO "configure"
23156 #include "confdefs.h"
23157
23158 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
23159 #include <sys/types.h>
23160 #else
23161 __COMPILE_ERROR_
23162 #endif
23163
23164 #ifdef F77_DUMMY_MAIN
23165 #  ifdef __cplusplus
23166      extern "C"
23167 #  endif
23168    int F77_DUMMY_MAIN() { return 1; }
23169 #endif
23170 int
23171 main ()
23172 {
23173 int i
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext
23179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23180   (eval $ac_compile) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); } &&
23184          { ac_try='test -s conftest.$ac_objext'
23185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186   (eval $ac_try) 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); }; }; then
23190   samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
23191 else
23192   echo "$as_me: failed program was:" >&5
23193 cat conftest.$ac_ext >&5
23194 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
23195 fi
23196 rm -f conftest.$ac_objext conftest.$ac_ext
23197 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
23198
23199 cat >>confdefs.h <<\_ACEOF
23200 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
23201 _ACEOF
23202
23203 fi
23204 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
23205 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
23206
23207
23208 # Check whether --with-spinlocks or --without-spinlocks was given.
23209 if test "${with_spinlocks+set}" = set; then
23210   withval="$with_spinlocks"
23211
23212 fi;
23213 if test "x$with_spinlocks" = "xyes"; then
23214
23215 cat >>confdefs.h <<\_ACEOF
23216 #define USE_SPINLOCKS 1
23217 _ACEOF
23218
23219
23220     case "$host_cpu" in
23221         sparc)
23222
23223 cat >>confdefs.h <<\_ACEOF
23224 #define SPARC_SPINLOCKS 1
23225 _ACEOF
23226
23227             ;;
23228
23229         i386|i486|i586|i686)
23230
23231 cat >>confdefs.h <<\_ACEOF
23232 #define INTEL_SPINLOCKS 1
23233 _ACEOF
23234
23235             ;;
23236
23237         mips)
23238
23239 cat >>confdefs.h <<\_ACEOF
23240 #define MIPS_SPINLOCKS 1
23241 _ACEOF
23242
23243             ;;
23244
23245         powerpc)
23246
23247 cat >>confdefs.h <<\_ACEOF
23248 #define POWERPC_SPINLOCKS 1
23249 _ACEOF
23250
23251             ;;
23252     esac
23253 fi
23254
23255 #################################################
23256 # check for ACL support
23257
23258 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
23259 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
23260
23261 # Check whether --with-acl-support or --without-acl-support was given.
23262 if test "${with_acl_support+set}" = set; then
23263   withval="$with_acl_support"
23264    case "$withval" in
23265   yes)
23266
23267         case "$host_os" in
23268         *sysv5*)
23269                 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
23270 echo "${ECHO_T}Using UnixWare ACLs" >&6
23271
23272 cat >>confdefs.h <<\_ACEOF
23273 #define HAVE_UNIXWARE_ACLS 1
23274 _ACEOF
23275
23276                 ;;
23277         *solaris*)
23278                 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
23279 echo "${ECHO_T}Using solaris ACLs" >&6
23280
23281 cat >>confdefs.h <<\_ACEOF
23282 #define HAVE_SOLARIS_ACLS 1
23283 _ACEOF
23284
23285                 ;;
23286         *hpux*)
23287                 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
23288 echo "${ECHO_T}Using HPUX ACLs" >&6
23289
23290 cat >>confdefs.h <<\_ACEOF
23291 #define HAVE_HPUX_ACLS 1
23292 _ACEOF
23293
23294                 ;;
23295         *irix*)
23296                 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
23297 echo "${ECHO_T}Using IRIX ACLs" >&6
23298
23299 cat >>confdefs.h <<\_ACEOF
23300 #define HAVE_IRIX_ACLS 1
23301 _ACEOF
23302
23303                 ;;
23304         *aix*)
23305                 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
23306 echo "${ECHO_T}Using AIX ACLs" >&6
23307
23308 cat >>confdefs.h <<\_ACEOF
23309 #define HAVE_AIX_ACLS 1
23310 _ACEOF
23311
23312                 ;;
23313         *osf*)
23314                 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
23315 echo "${ECHO_T}Using Tru64 ACLs" >&6
23316
23317 cat >>confdefs.h <<\_ACEOF
23318 #define HAVE_TRU64_ACLS 1
23319 _ACEOF
23320
23321                 LIBS="$LIBS -lpacl"
23322                 ;;
23323         *)
23324
23325 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23326 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23327 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23328   echo $ECHO_N "(cached) $ECHO_C" >&6
23329 else
23330   ac_check_lib_save_LIBS=$LIBS
23331 LIBS="-lacl  $LIBS"
23332 cat >conftest.$ac_ext <<_ACEOF
23333 #line $LINENO "configure"
23334 #include "confdefs.h"
23335
23336 /* Override any gcc2 internal prototype to avoid an error.  */
23337 #ifdef __cplusplus
23338 extern "C"
23339 #endif
23340 /* We use char because int might match the return type of a gcc2
23341    builtin and then its argument prototype would still apply.  */
23342 char acl_get_file ();
23343 #ifdef F77_DUMMY_MAIN
23344 #  ifdef __cplusplus
23345      extern "C"
23346 #  endif
23347    int F77_DUMMY_MAIN() { return 1; }
23348 #endif
23349 int
23350 main ()
23351 {
23352 acl_get_file ();
23353   ;
23354   return 0;
23355 }
23356 _ACEOF
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23359   (eval $ac_link) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); } &&
23363          { ac_try='test -s conftest$ac_exeext'
23364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365   (eval $ac_try) 2>&5
23366   ac_status=$?
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); }; }; then
23369   ac_cv_lib_acl_acl_get_file=yes
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 cat conftest.$ac_ext >&5
23373 ac_cv_lib_acl_acl_get_file=no
23374 fi
23375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23376 LIBS=$ac_check_lib_save_LIBS
23377 fi
23378 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23379 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23380 if test $ac_cv_lib_acl_acl_get_file = yes; then
23381   cat >>confdefs.h <<_ACEOF
23382 #define HAVE_LIBACL 1
23383 _ACEOF
23384
23385   LIBS="-lacl $LIBS"
23386
23387 fi
23388
23389                 echo "$as_me:$LINENO: checking for ACL support" >&5
23390 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
23391 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
23392   echo $ECHO_N "(cached) $ECHO_C" >&6
23393 else
23394
23395                 cat >conftest.$ac_ext <<_ACEOF
23396 #line $LINENO "configure"
23397 #include "confdefs.h"
23398 #include <sys/types.h>
23399 #include <sys/acl.h>
23400 #ifdef F77_DUMMY_MAIN
23401 #  ifdef __cplusplus
23402      extern "C"
23403 #  endif
23404    int F77_DUMMY_MAIN() { return 1; }
23405 #endif
23406 int
23407 main ()
23408 {
23409  acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
23410   ;
23411   return 0;
23412 }
23413 _ACEOF
23414 rm -f conftest.$ac_objext conftest$ac_exeext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23416   (eval $ac_link) 2>&5
23417   ac_status=$?
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } &&
23420          { ac_try='test -s conftest$ac_exeext'
23421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422   (eval $ac_try) 2>&5
23423   ac_status=$?
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); }; }; then
23426   samba_cv_HAVE_POSIX_ACLS=yes
23427 else
23428   echo "$as_me: failed program was:" >&5
23429 cat conftest.$ac_ext >&5
23430 samba_cv_HAVE_POSIX_ACLS=no
23431 fi
23432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23433 fi
23434 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
23435 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
23436                         if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
23437                                 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
23438 echo "${ECHO_T}Using posix ACLs" >&6
23439
23440 cat >>confdefs.h <<\_ACEOF
23441 #define HAVE_POSIX_ACLS 1
23442 _ACEOF
23443
23444                                 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
23445 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
23446 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
23447   echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449
23450                                 cat >conftest.$ac_ext <<_ACEOF
23451 #line $LINENO "configure"
23452 #include "confdefs.h"
23453 #include <sys/types.h>
23454 #include <sys/acl.h>
23455 #ifdef F77_DUMMY_MAIN
23456 #  ifdef __cplusplus
23457      extern "C"
23458 #  endif
23459    int F77_DUMMY_MAIN() { return 1; }
23460 #endif
23461 int
23462 main ()
23463 {
23464  acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
23465   ;
23466   return 0;
23467 }
23468 _ACEOF
23469 rm -f conftest.$ac_objext conftest$ac_exeext
23470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23471   (eval $ac_link) 2>&5
23472   ac_status=$?
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); } &&
23475          { ac_try='test -s conftest$ac_exeext'
23476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477   (eval $ac_try) 2>&5
23478   ac_status=$?
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); }; }; then
23481   samba_cv_HAVE_ACL_GET_PERM_NP=yes
23482 else
23483   echo "$as_me: failed program was:" >&5
23484 cat conftest.$ac_ext >&5
23485 samba_cv_HAVE_ACL_GET_PERM_NP=no
23486 fi
23487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23488 fi
23489 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
23490 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
23491                                 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
23492
23493 cat >>confdefs.h <<\_ACEOF
23494 #define HAVE_ACL_GET_PERM_NP 1
23495 _ACEOF
23496
23497                                 fi
23498                         fi
23499             ;;
23500         esac
23501         ;;
23502   *)
23503     echo "$as_me:$LINENO: result: no" >&5
23504 echo "${ECHO_T}no" >&6
23505
23506 cat >>confdefs.h <<\_ACEOF
23507 #define HAVE_NO_ACLS 1
23508 _ACEOF
23509
23510     ;;
23511   esac
23512 else
23513
23514 cat >>confdefs.h <<\_ACEOF
23515 #define HAVE_NO_ACLS 1
23516 _ACEOF
23517
23518   echo "$as_me:$LINENO: result: no" >&5
23519 echo "${ECHO_T}no" >&6
23520
23521 fi;
23522
23523 #################################################
23524 # check for sendfile support
23525
23526 with_sendfile_support=yes
23527 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
23528 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
23529
23530 # Check whether --with-sendfile-support or --without-sendfile-support was given.
23531 if test "${with_sendfile_support+set}" = set; then
23532   withval="$with_sendfile_support"
23533    case "$withval" in
23534   yes)
23535
23536         echo "$as_me:$LINENO: result: yes" >&5
23537 echo "${ECHO_T}yes" >&6;
23538
23539         case "$host_os" in
23540         *linux*)
23541                 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
23542 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
23543 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23544   echo $ECHO_N "(cached) $ECHO_C" >&6
23545 else
23546
23547                 cat >conftest.$ac_ext <<_ACEOF
23548 #line $LINENO "configure"
23549 #include "confdefs.h"
23550 #include <sys/sendfile.h>
23551 #ifdef F77_DUMMY_MAIN
23552 #  ifdef __cplusplus
23553      extern "C"
23554 #  endif
23555    int F77_DUMMY_MAIN() { return 1; }
23556 #endif
23557 int
23558 main ()
23559 {
23560 \
23561 int tofd, fromfd;
23562 off64_t offset;
23563 size_t total;
23564 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
23565
23566   ;
23567   return 0;
23568 }
23569 _ACEOF
23570 rm -f conftest.$ac_objext conftest$ac_exeext
23571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23572   (eval $ac_link) 2>&5
23573   ac_status=$?
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); } &&
23576          { ac_try='test -s conftest$ac_exeext'
23577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578   (eval $ac_try) 2>&5
23579   ac_status=$?
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); }; }; then
23582   samba_cv_HAVE_SENDFILE64=yes
23583 else
23584   echo "$as_me: failed program was:" >&5
23585 cat conftest.$ac_ext >&5
23586 samba_cv_HAVE_SENDFILE64=no
23587 fi
23588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23589 fi
23590 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23591 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23592
23593                 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
23594 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
23595 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23596   echo $ECHO_N "(cached) $ECHO_C" >&6
23597 else
23598
23599                 cat >conftest.$ac_ext <<_ACEOF
23600 #line $LINENO "configure"
23601 #include "confdefs.h"
23602 #include <sys/sendfile.h>
23603 #ifdef F77_DUMMY_MAIN
23604 #  ifdef __cplusplus
23605      extern "C"
23606 #  endif
23607    int F77_DUMMY_MAIN() { return 1; }
23608 #endif
23609 int
23610 main ()
23611 {
23612 \
23613 int tofd, fromfd;
23614 off_t offset;
23615 size_t total;
23616 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23617
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23624   (eval $ac_link) 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); } &&
23628          { ac_try='test -s conftest$ac_exeext'
23629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630   (eval $ac_try) 2>&5
23631   ac_status=$?
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); }; }; then
23634   samba_cv_HAVE_SENDFILE=yes
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 cat conftest.$ac_ext >&5
23638 samba_cv_HAVE_SENDFILE=no
23639 fi
23640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23641 fi
23642 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23643 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23644
23645 # Try and cope with broken Linux sendfile....
23646                 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
23647 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
23648 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
23649   echo $ECHO_N "(cached) $ECHO_C" >&6
23650 else
23651
23652                 cat >conftest.$ac_ext <<_ACEOF
23653 #line $LINENO "configure"
23654 #include "confdefs.h"
23655 \
23656 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
23657 #undef _FILE_OFFSET_BITS
23658 #endif
23659 #include <sys/sendfile.h>
23660 #ifdef F77_DUMMY_MAIN
23661 #  ifdef __cplusplus
23662      extern "C"
23663 #  endif
23664    int F77_DUMMY_MAIN() { return 1; }
23665 #endif
23666 int
23667 main ()
23668 {
23669 \
23670 int tofd, fromfd;
23671 off_t offset;
23672 size_t total;
23673 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23674
23675   ;
23676   return 0;
23677 }
23678 _ACEOF
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23681   (eval $ac_link) 2>&5
23682   ac_status=$?
23683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684   (exit $ac_status); } &&
23685          { ac_try='test -s conftest$ac_exeext'
23686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687   (eval $ac_try) 2>&5
23688   ac_status=$?
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); }; }; then
23691   samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
23692 else
23693   echo "$as_me: failed program was:" >&5
23694 cat conftest.$ac_ext >&5
23695 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
23696 fi
23697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23698 fi
23699 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
23700 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
23701
23702         if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23703
23704 cat >>confdefs.h <<\_ACEOF
23705 #define HAVE_SENDFILE64 1
23706 _ACEOF
23707
23708
23709 cat >>confdefs.h <<\_ACEOF
23710 #define LINUX_SENDFILE_API 1
23711 _ACEOF
23712
23713
23714 cat >>confdefs.h <<\_ACEOF
23715 #define WITH_SENDFILE 1
23716 _ACEOF
23717
23718         elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23719
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_SENDFILE 1
23722 _ACEOF
23723
23724
23725 cat >>confdefs.h <<\_ACEOF
23726 #define LINUX_SENDFILE_API 1
23727 _ACEOF
23728
23729
23730 cat >>confdefs.h <<\_ACEOF
23731 #define WITH_SENDFILE 1
23732 _ACEOF
23733
23734         elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
23735
23736 cat >>confdefs.h <<\_ACEOF
23737 #define LINUX_BROKEN_SENDFILE_API 1
23738 _ACEOF
23739
23740
23741 cat >>confdefs.h <<\_ACEOF
23742 #define WITH_SENDFILE 1
23743 _ACEOF
23744
23745         else
23746                 echo "$as_me:$LINENO: result: no" >&5
23747 echo "${ECHO_T}no" >&6;
23748         fi
23749
23750         ;;
23751         *freebsd*)
23752                 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
23753 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
23754 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23755   echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23757
23758                 cat >conftest.$ac_ext <<_ACEOF
23759 #line $LINENO "configure"
23760 #include "confdefs.h"
23761 \
23762 #include <sys/types.h>
23763 #include <sys/socket.h>
23764 #include <sys/uio.h>
23765 #ifdef F77_DUMMY_MAIN
23766 #  ifdef __cplusplus
23767      extern "C"
23768 #  endif
23769    int F77_DUMMY_MAIN() { return 1; }
23770 #endif
23771 int
23772 main ()
23773 {
23774 \
23775         int fromfd, tofd;
23776         off_t offset, nwritten;
23777         struct sf_hdtr hdr;
23778         struct iovec hdtrl;
23779         hdr->headers = &hdtrl;
23780         hdr->hdr_cnt = 1;
23781         hdr->trailers = NULL;
23782         hdr->trl_cnt = 0;
23783         hdtrl.iov_base = NULL;
23784         hdtrl.iov_len = 0;
23785         int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
23786
23787   ;
23788   return 0;
23789 }
23790 _ACEOF
23791 rm -f conftest.$ac_objext conftest$ac_exeext
23792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23793   (eval $ac_link) 2>&5
23794   ac_status=$?
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); } &&
23797          { ac_try='test -s conftest$ac_exeext'
23798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23799   (eval $ac_try) 2>&5
23800   ac_status=$?
23801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); }; }; then
23803   samba_cv_HAVE_SENDFILE=yes
23804 else
23805   echo "$as_me: failed program was:" >&5
23806 cat conftest.$ac_ext >&5
23807 samba_cv_HAVE_SENDFILE=no
23808 fi
23809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23810 fi
23811 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23812 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23813
23814         if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23815
23816 cat >>confdefs.h <<\_ACEOF
23817 #define HAVE_SENDFILE 1
23818 _ACEOF
23819
23820
23821 cat >>confdefs.h <<\_ACEOF
23822 #define FREEBSD_SENDFILE_API 1
23823 _ACEOF
23824
23825
23826 cat >>confdefs.h <<\_ACEOF
23827 #define WITH_SENDFILE 1
23828 _ACEOF
23829
23830         else
23831                 echo "$as_me:$LINENO: result: no" >&5
23832 echo "${ECHO_T}no" >&6;
23833         fi
23834         ;;
23835
23836         *hpux*)
23837                 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
23838 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
23839 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23840   echo $ECHO_N "(cached) $ECHO_C" >&6
23841 else
23842
23843                 cat >conftest.$ac_ext <<_ACEOF
23844 #line $LINENO "configure"
23845 #include "confdefs.h"
23846 \
23847 #include <sys/socket.h>
23848 #include <sys/uio.h>
23849 #ifdef F77_DUMMY_MAIN
23850 #  ifdef __cplusplus
23851      extern "C"
23852 #  endif
23853    int F77_DUMMY_MAIN() { return 1; }
23854 #endif
23855 int
23856 main ()
23857 {
23858 \
23859         int fromfd, tofd;
23860         size_t total=0;
23861         struct iovec hdtrl[2];
23862         ssize_t nwritten;
23863         off64_t offset;
23864
23865         hdtrl[0].iov_base = 0;
23866         hdtrl[0].iov_len = 0;
23867
23868         nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
23869
23870   ;
23871   return 0;
23872 }
23873 _ACEOF
23874 rm -f conftest.$ac_objext conftest$ac_exeext
23875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23876   (eval $ac_link) 2>&5
23877   ac_status=$?
23878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879   (exit $ac_status); } &&
23880          { ac_try='test -s conftest$ac_exeext'
23881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882   (eval $ac_try) 2>&5
23883   ac_status=$?
23884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885   (exit $ac_status); }; }; then
23886   samba_cv_HAVE_SENDFILE64=yes
23887 else
23888   echo "$as_me: failed program was:" >&5
23889 cat conftest.$ac_ext >&5
23890 samba_cv_HAVE_SENDFILE64=no
23891 fi
23892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23893 fi
23894 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23895 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23896         if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23897
23898 cat >>confdefs.h <<\_ACEOF
23899 #define HAVE_SENDFILE64 1
23900 _ACEOF
23901
23902
23903 cat >>confdefs.h <<\_ACEOF
23904 #define HPUX_SENDFILE_API 1
23905 _ACEOF
23906
23907
23908 cat >>confdefs.h <<\_ACEOF
23909 #define WITH_SENDFILE 1
23910 _ACEOF
23911
23912         else
23913                 echo "$as_me:$LINENO: result: no" >&5
23914 echo "${ECHO_T}no" >&6;
23915         fi
23916
23917                 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
23918 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
23919 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23920   echo $ECHO_N "(cached) $ECHO_C" >&6
23921 else
23922
23923                 cat >conftest.$ac_ext <<_ACEOF
23924 #line $LINENO "configure"
23925 #include "confdefs.h"
23926 \
23927 #include <sys/socket.h>
23928 #include <sys/uio.h>
23929 #ifdef F77_DUMMY_MAIN
23930 #  ifdef __cplusplus
23931      extern "C"
23932 #  endif
23933    int F77_DUMMY_MAIN() { return 1; }
23934 #endif
23935 int
23936 main ()
23937 {
23938 \
23939         int fromfd, tofd;
23940         size_t total=0;
23941         struct iovec hdtrl[2];
23942         ssize_t nwritten;
23943         off_t offset;
23944
23945         hdtrl[0].iov_base = 0;
23946         hdtrl[0].iov_len = 0;
23947
23948         nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
23949
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956   (eval $ac_link) 2>&5
23957   ac_status=$?
23958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959   (exit $ac_status); } &&
23960          { ac_try='test -s conftest$ac_exeext'
23961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962   (eval $ac_try) 2>&5
23963   ac_status=$?
23964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); }; }; then
23966   samba_cv_HAVE_SENDFILE=yes
23967 else
23968   echo "$as_me: failed program was:" >&5
23969 cat conftest.$ac_ext >&5
23970 samba_cv_HAVE_SENDFILE=no
23971 fi
23972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23973 fi
23974 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23975 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23976         if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23977
23978 cat >>confdefs.h <<\_ACEOF
23979 #define HAVE_SENDFILE 1
23980 _ACEOF
23981
23982
23983 cat >>confdefs.h <<\_ACEOF
23984 #define HPUX_SENDFILE_API 1
23985 _ACEOF
23986
23987
23988 cat >>confdefs.h <<\_ACEOF
23989 #define WITH_SENDFILE 1
23990 _ACEOF
23991
23992         else
23993                 echo "$as_me:$LINENO: result: no" >&5
23994 echo "${ECHO_T}no" >&6;
23995         fi
23996         ;;
23997
23998         *solaris*)
23999
24000 echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
24001 echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
24002 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
24003   echo $ECHO_N "(cached) $ECHO_C" >&6
24004 else
24005   ac_check_lib_save_LIBS=$LIBS
24006 LIBS="-lsendfile  $LIBS"
24007 cat >conftest.$ac_ext <<_ACEOF
24008 #line $LINENO "configure"
24009 #include "confdefs.h"
24010
24011 /* Override any gcc2 internal prototype to avoid an error.  */
24012 #ifdef __cplusplus
24013 extern "C"
24014 #endif
24015 /* We use char because int might match the return type of a gcc2
24016    builtin and then its argument prototype would still apply.  */
24017 char sendfilev ();
24018 #ifdef F77_DUMMY_MAIN
24019 #  ifdef __cplusplus
24020      extern "C"
24021 #  endif
24022    int F77_DUMMY_MAIN() { return 1; }
24023 #endif
24024 int
24025 main ()
24026 {
24027 sendfilev ();
24028   ;
24029   return 0;
24030 }
24031 _ACEOF
24032 rm -f conftest.$ac_objext conftest$ac_exeext
24033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24034   (eval $ac_link) 2>&5
24035   ac_status=$?
24036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037   (exit $ac_status); } &&
24038          { ac_try='test -s conftest$ac_exeext'
24039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040   (eval $ac_try) 2>&5
24041   ac_status=$?
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); }; }; then
24044   ac_cv_lib_sendfile_sendfilev=yes
24045 else
24046   echo "$as_me: failed program was:" >&5
24047 cat conftest.$ac_ext >&5
24048 ac_cv_lib_sendfile_sendfilev=no
24049 fi
24050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24051 LIBS=$ac_check_lib_save_LIBS
24052 fi
24053 echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
24054 echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
24055 if test $ac_cv_lib_sendfile_sendfilev = yes; then
24056   cat >>confdefs.h <<_ACEOF
24057 #define HAVE_LIBSENDFILE 1
24058 _ACEOF
24059
24060   LIBS="-lsendfile $LIBS"
24061
24062 fi
24063
24064                 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
24065 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
24066 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
24067   echo $ECHO_N "(cached) $ECHO_C" >&6
24068 else
24069
24070                 cat >conftest.$ac_ext <<_ACEOF
24071 #line $LINENO "configure"
24072 #include "confdefs.h"
24073 \
24074 #include <sys/sendfile.h>
24075 #ifdef F77_DUMMY_MAIN
24076 #  ifdef __cplusplus
24077      extern "C"
24078 #  endif
24079    int F77_DUMMY_MAIN() { return 1; }
24080 #endif
24081 int
24082 main ()
24083 {
24084 \
24085         int sfvcnt;
24086         size_t xferred;
24087         struct sendfilevec vec[2];
24088         ssize_t nwritten;
24089         int tofd;
24090
24091         sfvcnt = 2;
24092
24093         vec[0].sfv_fd = SFV_FD_SELF;
24094         vec[0].sfv_flag = 0;
24095         vec[0].sfv_off = 0;
24096         vec[0].sfv_len = 0;
24097
24098         vec[1].sfv_fd = 0;
24099         vec[1].sfv_flag = 0;
24100         vec[1].sfv_off = 0;
24101         vec[1].sfv_len = 0;
24102         nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
24103
24104   ;
24105   return 0;
24106 }
24107 _ACEOF
24108 rm -f conftest.$ac_objext conftest$ac_exeext
24109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24110   (eval $ac_link) 2>&5
24111   ac_status=$?
24112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113   (exit $ac_status); } &&
24114          { ac_try='test -s conftest$ac_exeext'
24115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116   (eval $ac_try) 2>&5
24117   ac_status=$?
24118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119   (exit $ac_status); }; }; then
24120   samba_cv_HAVE_SENDFILEV64=yes
24121 else
24122   echo "$as_me: failed program was:" >&5
24123 cat conftest.$ac_ext >&5
24124 samba_cv_HAVE_SENDFILEV64=no
24125 fi
24126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24127 fi
24128 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
24129 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
24130
24131         if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
24132
24133 cat >>confdefs.h <<\_ACEOF
24134 #define HAVE_SENDFILEV64 1
24135 _ACEOF
24136
24137
24138 cat >>confdefs.h <<\_ACEOF
24139 #define SOLARIS_SENDFILE_API 1
24140 _ACEOF
24141
24142
24143 cat >>confdefs.h <<\_ACEOF
24144 #define WITH_SENDFILE 1
24145 _ACEOF
24146
24147         else
24148                 echo "$as_me:$LINENO: result: no" >&5
24149 echo "${ECHO_T}no" >&6;
24150         fi
24151
24152                 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
24153 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
24154 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
24155   echo $ECHO_N "(cached) $ECHO_C" >&6
24156 else
24157
24158                 cat >conftest.$ac_ext <<_ACEOF
24159 #line $LINENO "configure"
24160 #include "confdefs.h"
24161 \
24162 #include <sys/sendfile.h>
24163 #ifdef F77_DUMMY_MAIN
24164 #  ifdef __cplusplus
24165      extern "C"
24166 #  endif
24167    int F77_DUMMY_MAIN() { return 1; }
24168 #endif
24169 int
24170 main ()
24171 {
24172 \
24173         int sfvcnt;
24174         size_t xferred;
24175         struct sendfilevec vec[2];
24176         ssize_t nwritten;
24177         int tofd;
24178
24179         sfvcnt = 2;
24180
24181         vec[0].sfv_fd = SFV_FD_SELF;
24182         vec[0].sfv_flag = 0;
24183         vec[0].sfv_off = 0;
24184         vec[0].sfv_len = 0;
24185
24186         vec[1].sfv_fd = 0;
24187         vec[1].sfv_flag = 0;
24188         vec[1].sfv_off = 0;
24189         vec[1].sfv_len = 0;
24190         nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
24191
24192   ;
24193   return 0;
24194 }
24195 _ACEOF
24196 rm -f conftest.$ac_objext conftest$ac_exeext
24197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24198   (eval $ac_link) 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); } &&
24202          { ac_try='test -s conftest$ac_exeext'
24203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204   (eval $ac_try) 2>&5
24205   ac_status=$?
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); }; }; then
24208   samba_cv_HAVE_SENDFILEV=yes
24209 else
24210   echo "$as_me: failed program was:" >&5
24211 cat conftest.$ac_ext >&5
24212 samba_cv_HAVE_SENDFILEV=no
24213 fi
24214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24215 fi
24216 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
24217 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
24218
24219         if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
24220
24221 cat >>confdefs.h <<\_ACEOF
24222 #define HAVE_SENDFILEV 1
24223 _ACEOF
24224
24225
24226 cat >>confdefs.h <<\_ACEOF
24227 #define SOLARIS_SENDFILE_API 1
24228 _ACEOF
24229
24230
24231 cat >>confdefs.h <<\_ACEOF
24232 #define WITH_SENDFILE 1
24233 _ACEOF
24234
24235         else
24236                 echo "$as_me:$LINENO: result: no" >&5
24237 echo "${ECHO_T}no" >&6;
24238         fi
24239         ;;
24240
24241         *)
24242         ;;
24243         esac
24244         ;;
24245   *)
24246     echo "$as_me:$LINENO: result: no" >&5
24247 echo "${ECHO_T}no" >&6
24248     ;;
24249   esac
24250 else
24251   echo "$as_me:$LINENO: result: yes" >&5
24252 echo "${ECHO_T}yes" >&6
24253
24254 fi;
24255
24256
24257 #################################################
24258 # Check whether winbind is supported on this platform.  If so we need to
24259 # build and install client programs, sbin programs and shared libraries
24260
24261 echo "$as_me:$LINENO: checking whether to build winbind" >&5
24262 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
24263
24264 # Initially, the value of $host_os decides whether winbind is supported
24265
24266 case "$host_os" in
24267         *linux*|*irix*)
24268                 HAVE_WINBIND=yes
24269                 ;;
24270         *solaris*)
24271                 HAVE_WINBIND=yes
24272                 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24273                 WINBIND_NSS_EXTRA_LIBS="-lsocket"
24274                 ;;
24275         *hpux11*)
24276                 HAVE_WINBIND=yes
24277                 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24278                 ;;
24279         *)
24280                 HAVE_WINBIND=no
24281                 winbind_no_reason=", unsupported on $host_os"
24282                 ;;
24283 esac
24284
24285
24286
24287
24288 # Check the setting of --with-winbindd
24289
24290
24291 # Check whether --with-winbind or --without-winbind was given.
24292 if test "${with_winbind+set}" = set; then
24293   withval="$with_winbind"
24294
24295   case "$withval" in
24296         yes)
24297                 HAVE_WINBIND=yes
24298                 ;;
24299         no)
24300                 HAVE_WINBIND=no
24301                 winbind_reason=""
24302                 ;;
24303   esac
24304 fi;
24305
24306 # We need unix domain sockets for winbind
24307
24308 if test x"$HAVE_WINBIND" = x"yes"; then
24309         if test x"$samba_cv_unixsocket" = x"no"; then
24310                 winbind_no_reason=", no unix domain socket support on $host_os"
24311                 HAVE_WINBIND=no
24312         fi
24313 fi
24314
24315 # Display test results
24316
24317 if test x"$HAVE_WINBIND" = x"yes"; then
24318         echo "$as_me:$LINENO: result: yes" >&5
24319 echo "${ECHO_T}yes" >&6
24320
24321 cat >>confdefs.h <<\_ACEOF
24322 #define WITH_WINBIND 1
24323 _ACEOF
24324
24325
24326         EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
24327         EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
24328         if test x"$BLDSHARED" = x"true"; then
24329                 case "$host_os" in
24330                 *irix*)
24331                         SHLIB_PROGS="$SHLIB_PROGS nsswitch/libns_winbind.so"
24332                         ;;
24333                 *)
24334                         SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
24335                         ;;
24336                 esac
24337                 if test x"$with_pam" = x"yes"; then
24338                         SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
24339                 fi
24340         fi
24341 else
24342         echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
24343 echo "${ECHO_T}no$winbind_no_reason" >&6
24344 fi
24345
24346 # Solaris has some extra fields in struct passwd that need to be
24347 # initialised otherwise nscd crashes.  Unfortunately autoconf < 2.50
24348 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
24349 # this.
24350
24351 #AC_CHECK_MEMBER(struct passwd.pw_comment,
24352 #               AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
24353 #               [#include <pwd.h>])
24354
24355 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
24356 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
24357 if test "${samba_cv_passwd_pw_comment+set}" = set; then
24358   echo $ECHO_N "(cached) $ECHO_C" >&6
24359 else
24360
24361     cat >conftest.$ac_ext <<_ACEOF
24362 #line $LINENO "configure"
24363 #include "confdefs.h"
24364 #include <pwd.h>
24365 #ifdef F77_DUMMY_MAIN
24366 #  ifdef __cplusplus
24367      extern "C"
24368 #  endif
24369    int F77_DUMMY_MAIN() { return 1; }
24370 #endif
24371 int
24372 main ()
24373 {
24374 struct passwd p; p.pw_comment;
24375   ;
24376   return 0;
24377 }
24378 _ACEOF
24379 rm -f conftest.$ac_objext
24380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24381   (eval $ac_compile) 2>&5
24382   ac_status=$?
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); } &&
24385          { ac_try='test -s conftest.$ac_objext'
24386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387   (eval $ac_try) 2>&5
24388   ac_status=$?
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); }; }; then
24391   samba_cv_passwd_pw_comment=yes
24392 else
24393   echo "$as_me: failed program was:" >&5
24394 cat conftest.$ac_ext >&5
24395 samba_cv_passwd_pw_comment=no
24396 fi
24397 rm -f conftest.$ac_objext conftest.$ac_ext
24398 fi
24399 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
24400 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
24401 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
24402
24403 cat >>confdefs.h <<\_ACEOF
24404 #define HAVE_PASSWD_PW_COMMENT 1
24405 _ACEOF
24406
24407 fi
24408
24409 #AC_CHECK_MEMBER(struct passwd.pw_age,
24410 #               AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
24411 #               [#include <pwd.h>])
24412
24413 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
24414 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
24415 if test "${samba_cv_passwd_pw_age+set}" = set; then
24416   echo $ECHO_N "(cached) $ECHO_C" >&6
24417 else
24418
24419     cat >conftest.$ac_ext <<_ACEOF
24420 #line $LINENO "configure"
24421 #include "confdefs.h"
24422 #include <pwd.h>
24423 #ifdef F77_DUMMY_MAIN
24424 #  ifdef __cplusplus
24425      extern "C"
24426 #  endif
24427    int F77_DUMMY_MAIN() { return 1; }
24428 #endif
24429 int
24430 main ()
24431 {
24432 struct passwd p; p.pw_age;
24433   ;
24434   return 0;
24435 }
24436 _ACEOF
24437 rm -f conftest.$ac_objext
24438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24439   (eval $ac_compile) 2>&5
24440   ac_status=$?
24441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442   (exit $ac_status); } &&
24443          { ac_try='test -s conftest.$ac_objext'
24444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445   (eval $ac_try) 2>&5
24446   ac_status=$?
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); }; }; then
24449   samba_cv_passwd_pw_age=yes
24450 else
24451   echo "$as_me: failed program was:" >&5
24452 cat conftest.$ac_ext >&5
24453 samba_cv_passwd_pw_age=no
24454 fi
24455 rm -f conftest.$ac_objext conftest.$ac_ext
24456 fi
24457 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
24458 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
24459 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
24460
24461 cat >>confdefs.h <<\_ACEOF
24462 #define HAVE_PASSWD_PW_AGE 1
24463 _ACEOF
24464
24465 fi
24466
24467 #################################################
24468 # Check to see if we should use the included popt
24469
24470
24471 # Check whether --with-included-popt or --without-included-popt was given.
24472 if test "${with_included_popt+set}" = set; then
24473   withval="$with_included_popt"
24474
24475   case "$withval" in
24476         yes)
24477                 INCLUDED_POPT=yes
24478                 ;;
24479         no)
24480                 INCLUDED_POPT=no
24481                 ;;
24482   esac
24483 fi;
24484 if test x"$INCLUDED_POPT" != x"yes"; then
24485     echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
24486 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
24487 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
24488   echo $ECHO_N "(cached) $ECHO_C" >&6
24489 else
24490   ac_check_lib_save_LIBS=$LIBS
24491 LIBS="-lpopt  $LIBS"
24492 cat >conftest.$ac_ext <<_ACEOF
24493 #line $LINENO "configure"
24494 #include "confdefs.h"
24495
24496 /* Override any gcc2 internal prototype to avoid an error.  */
24497 #ifdef __cplusplus
24498 extern "C"
24499 #endif
24500 /* We use char because int might match the return type of a gcc2
24501    builtin and then its argument prototype would still apply.  */
24502 char poptGetContext ();
24503 #ifdef F77_DUMMY_MAIN
24504 #  ifdef __cplusplus
24505      extern "C"
24506 #  endif
24507    int F77_DUMMY_MAIN() { return 1; }
24508 #endif
24509 int
24510 main ()
24511 {
24512 poptGetContext ();
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 rm -f conftest.$ac_objext conftest$ac_exeext
24518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519   (eval $ac_link) 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); } &&
24523          { ac_try='test -s conftest$ac_exeext'
24524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525   (eval $ac_try) 2>&5
24526   ac_status=$?
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); }; }; then
24529   ac_cv_lib_popt_poptGetContext=yes
24530 else
24531   echo "$as_me: failed program was:" >&5
24532 cat conftest.$ac_ext >&5
24533 ac_cv_lib_popt_poptGetContext=no
24534 fi
24535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24536 LIBS=$ac_check_lib_save_LIBS
24537 fi
24538 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
24539 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
24540 if test $ac_cv_lib_popt_poptGetContext = yes; then
24541   INCLUDED_POPT=no
24542 else
24543   INCLUDED_POPT=yes
24544 fi
24545
24546 fi
24547
24548 echo "$as_me:$LINENO: checking whether to use included popt" >&5
24549 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
24550 if test x"$INCLUDED_POPT" = x"yes"; then
24551     echo "$as_me:$LINENO: result: yes" >&5
24552 echo "${ECHO_T}yes" >&6
24553     BUILD_POPT='$(POPT_OBJS)'
24554     FLAGS1="-I$srcdir/popt"
24555 else
24556     echo "$as_me:$LINENO: result: no" >&5
24557 echo "${ECHO_T}no" >&6
24558     LIBS="$LIBS -lpopt"
24559 fi
24560
24561
24562
24563 #################################################
24564 # Check if the user wants Python
24565
24566 # At the moment, you can use this to set which Python binary to link
24567 # against.  (Libraries built for Python2.2 can't be used by 2.1,
24568 # though they can coexist in different directories.)  In the future
24569 # this might make the Python stuff be built by default.
24570
24571 # Defaulting python breaks the clean target if python isn't installed
24572
24573 PYTHON=
24574
24575
24576 # Check whether --with-python or --without-python was given.
24577 if test "${with_python+set}" = set; then
24578   withval="$with_python"
24579    case "${withval-python}" in
24580   yes)
24581         PYTHON=python
24582         EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
24583         ;;
24584   no)
24585         PYTHON=
24586         ;;
24587   *)
24588         PYTHON=${withval-python}
24589         ;;
24590   esac
24591 fi;
24592
24593
24594 #################################################
24595 # do extra things if we are running insure
24596
24597 if test "${ac_cv_prog_CC}" = "insure"; then
24598         CPPFLAGS="$CPPFLAGS -D__INSURE__"
24599 fi
24600
24601 #################################################
24602 # final configure stuff
24603
24604 echo "$as_me:$LINENO: checking configure summary" >&5
24605 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
24606 if test "$cross_compiling" = yes; then
24607   { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
24608 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
24609 else
24610   cat >conftest.$ac_ext <<_ACEOF
24611 #line $LINENO "configure"
24612 #include "confdefs.h"
24613 #include "${srcdir-.}/tests/summary.c"
24614 _ACEOF
24615 rm -f conftest$ac_exeext
24616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24617   (eval $ac_link) 2>&5
24618   ac_status=$?
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24622   (eval $ac_try) 2>&5
24623   ac_status=$?
24624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625   (exit $ac_status); }; }; then
24626   echo "$as_me:$LINENO: result: yes" >&5
24627 echo "${ECHO_T}yes" >&6
24628 else
24629   echo "$as_me: program exited with status $ac_status" >&5
24630 echo "$as_me: failed program was:" >&5
24631 cat conftest.$ac_ext >&5
24632 ( exit $ac_status )
24633 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
24634 echo "$as_me: error: summary failure. Aborting config" >&2;}
24635    { (exit 1); exit 1; }; }; exit 1;
24636 fi
24637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24638 fi
24639
24640 builddir=`pwd`
24641
24642
24643 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb"
24644 cat >confcache <<\_ACEOF
24645 # This file is a shell script that caches the results of configure
24646 # tests run on this system so they can be shared between configure
24647 # scripts and configure runs, see configure's option --config-cache.
24648 # It is not useful on other systems.  If it contains results you don't
24649 # want to keep, you may remove or edit it.
24650 #
24651 # config.status only pays attention to the cache file if you give it
24652 # the --recheck option to rerun configure.
24653 #
24654 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24656 # following values.
24657
24658 _ACEOF
24659
24660 # The following way of writing the cache mishandles newlines in values,
24661 # but we know of no workaround that is simple, portable, and efficient.
24662 # So, don't put newlines in cache variables' values.
24663 # Ultrix sh set writes to stderr and can't be redirected directly,
24664 # and sets the high bit in the cache file unless we assign to the vars.
24665 {
24666   (set) 2>&1 |
24667     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24668     *ac_space=\ *)
24669       # `set' does not quote correctly, so add quotes (double-quote
24670       # substitution turns \\\\ into \\, and sed turns \\ into \).
24671       sed -n \
24672         "s/'/'\\\\''/g;
24673           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24674       ;;
24675     *)
24676       # `set' quotes correctly as required by POSIX, so do not add quotes.
24677       sed -n \
24678         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24679       ;;
24680     esac;
24681 } |
24682   sed '
24683      t clear
24684      : clear
24685      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24686      t end
24687      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24688      : end' >>confcache
24689 if cmp -s $cache_file confcache; then :; else
24690   if test -w $cache_file; then
24691     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24692     cat confcache >$cache_file
24693   else
24694     echo "not updating unwritable cache $cache_file"
24695   fi
24696 fi
24697 rm -f confcache
24698
24699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24700 # Let make expand exec_prefix.
24701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24702
24703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24705 # trailing colons and then remove the whole line if VPATH becomes empty
24706 # (actually we leave an empty line to preserve line numbers).
24707 if test "x$srcdir" = x.; then
24708   ac_vpsub='/^[         ]*VPATH[        ]*=/{
24709 s/:*\$(srcdir):*/:/;
24710 s/:*\${srcdir}:*/:/;
24711 s/:*@srcdir@:*/:/;
24712 s/^\([^=]*=[    ]*\):*/\1/;
24713 s/:*$//;
24714 s/^[^=]*=[      ]*$//;
24715 }'
24716 fi
24717
24718 DEFS=-DHAVE_CONFIG_H
24719
24720
24721 : ${CONFIG_STATUS=./config.status}
24722 ac_clean_files_save=$ac_clean_files
24723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24724 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24725 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24726 cat >$CONFIG_STATUS <<_ACEOF
24727 #! $SHELL
24728 # Generated by $as_me.
24729 # Run this file to recreate the current configuration.
24730 # Compiler output produced by configure, useful for debugging
24731 # configure, is in config.log if it exists.
24732
24733 debug=false
24734 SHELL=\${CONFIG_SHELL-$SHELL}
24735 _ACEOF
24736
24737 cat >>$CONFIG_STATUS <<\_ACEOF
24738
24739 ## --------------------- ##
24740 ## M4sh Initialization.  ##
24741 ## --------------------- ##
24742
24743 # Be Bourne compatible
24744 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24745   emulate sh
24746   NULLCMD=:
24747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24748   set -o posix
24749 fi
24750
24751 # NLS nuisances.
24752 # Support unset when possible.
24753 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24754   as_unset=unset
24755 else
24756   as_unset=false
24757 fi
24758
24759 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
24760     { $as_unset LANG || test "${LANG+set}" != set; } ||
24761       { LANG=C; export LANG; }
24762 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
24763     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
24764       { LC_ALL=C; export LC_ALL; }
24765 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
24766     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
24767       { LC_TIME=C; export LC_TIME; }
24768 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
24769     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
24770       { LC_CTYPE=C; export LC_CTYPE; }
24771 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
24772     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
24773       { LANGUAGE=C; export LANGUAGE; }
24774 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
24775     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
24776       { LC_COLLATE=C; export LC_COLLATE; }
24777 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
24778     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
24779       { LC_NUMERIC=C; export LC_NUMERIC; }
24780 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
24781     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
24782       { LC_MESSAGES=C; export LC_MESSAGES; }
24783
24784
24785 # Name of the executable.
24786 as_me=`(basename "$0") 2>/dev/null ||
24787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24788          X"$0" : 'X\(//\)$' \| \
24789          X"$0" : 'X\(/\)$' \| \
24790          .     : '\(.\)' 2>/dev/null ||
24791 echo X/"$0" |
24792     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24793           /^X\/\(\/\/\)$/{ s//\1/; q; }
24794           /^X\/\(\/\).*/{ s//\1/; q; }
24795           s/.*/./; q'`
24796
24797 # PATH needs CR, and LINENO needs CR and PATH.
24798 # Avoid depending upon Character Ranges.
24799 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24800 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24801 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24802 as_cr_digits='0123456789'
24803 as_cr_alnum=$as_cr_Letters$as_cr_digits
24804
24805 # The user is always right.
24806 if test "${PATH_SEPARATOR+set}" != set; then
24807   echo "#! /bin/sh" >conftest.sh
24808   echo  "exit 0"   >>conftest.sh
24809   chmod +x conftest.sh
24810   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
24811     PATH_SEPARATOR=';'
24812   else
24813     PATH_SEPARATOR=:
24814   fi
24815   rm -f conftest.sh
24816 fi
24817
24818
24819   as_lineno_1=$LINENO
24820   as_lineno_2=$LINENO
24821   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24822   test "x$as_lineno_1" != "x$as_lineno_2" &&
24823   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24824   # Find who we are.  Look in the path if we contain no path at all
24825   # relative or not.
24826   case $0 in
24827     *[\\/]* ) as_myself=$0 ;;
24828     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24829 for as_dir in $PATH
24830 do
24831   IFS=$as_save_IFS
24832   test -z "$as_dir" && as_dir=.
24833   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24834 done
24835
24836        ;;
24837   esac
24838   # We did not find ourselves, most probably we were run as `sh COMMAND'
24839   # in which case we are not to be found in the path.
24840   if test "x$as_myself" = x; then
24841     as_myself=$0
24842   fi
24843   if test ! -f "$as_myself"; then
24844     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24845 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24846    { (exit 1); exit 1; }; }
24847   fi
24848   case $CONFIG_SHELL in
24849   '')
24850     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24851 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24852 do
24853   IFS=$as_save_IFS
24854   test -z "$as_dir" && as_dir=.
24855   for as_base in sh bash ksh sh5; do
24856          case $as_dir in
24857          /*)
24858            if ("$as_dir/$as_base" -c '
24859   as_lineno_1=$LINENO
24860   as_lineno_2=$LINENO
24861   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24862   test "x$as_lineno_1" != "x$as_lineno_2" &&
24863   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24864              CONFIG_SHELL=$as_dir/$as_base
24865              export CONFIG_SHELL
24866              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24867            fi;;
24868          esac
24869        done
24870 done
24871 ;;
24872   esac
24873
24874   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24875   # uniformly replaced by the line number.  The first 'sed' inserts a
24876   # line-number line before each line; the second 'sed' does the real
24877   # work.  The second script uses 'N' to pair each line-number line
24878   # with the numbered line, and appends trailing '-' during
24879   # substitution so that $LINENO is not a special case at line end.
24880   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24881   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24882   sed '=' <$as_myself |
24883     sed '
24884       N
24885       s,$,-,
24886       : loop
24887       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24888       t loop
24889       s,-$,,
24890       s,^['$as_cr_digits']*\n,,
24891     ' >$as_me.lineno &&
24892   chmod +x $as_me.lineno ||
24893     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24894 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24895    { (exit 1); exit 1; }; }
24896
24897   # Don't try to exec as it changes $[0], causing all sort of problems
24898   # (the dirname of $[0] is not the place where we might find the
24899   # original and so on.  Autoconf is especially sensible to this).
24900   . ./$as_me.lineno
24901   # Exit status is that of the last command.
24902   exit
24903 }
24904
24905
24906 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24907   *c*,-n*) ECHO_N= ECHO_C='
24908 ' ECHO_T='      ' ;;
24909   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24910   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24911 esac
24912
24913 if expr a : '\(a\)' >/dev/null 2>&1; then
24914   as_expr=expr
24915 else
24916   as_expr=false
24917 fi
24918
24919 rm -f conf$$ conf$$.exe conf$$.file
24920 echo >conf$$.file
24921 if ln -s conf$$.file conf$$ 2>/dev/null; then
24922   # We could just check for DJGPP; but this test a) works b) is more generic
24923   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24924   if test -f conf$$.exe; then
24925     # Don't use ln at all; we don't have any links
24926     as_ln_s='cp -p'
24927   else
24928     as_ln_s='ln -s'
24929   fi
24930 elif ln conf$$.file conf$$ 2>/dev/null; then
24931   as_ln_s=ln
24932 else
24933   as_ln_s='cp -p'
24934 fi
24935 rm -f conf$$ conf$$.exe conf$$.file
24936
24937 as_executable_p="test -f"
24938
24939 # Sed expression to map a string onto a valid CPP name.
24940 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24941
24942 # Sed expression to map a string onto a valid variable name.
24943 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24944
24945
24946 # IFS
24947 # We need space, tab and new line, in precisely that order.
24948 as_nl='
24949 '
24950 IFS="   $as_nl"
24951
24952 # CDPATH.
24953 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
24954
24955 exec 6>&1
24956
24957 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24958 # report actual input values of CONFIG_FILES etc. instead of their
24959 # values after options handling.  Logging --version etc. is OK.
24960 exec 5>>config.log
24961 {
24962   echo
24963   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24964 ## Running $as_me. ##
24965 _ASBOX
24966 } >&5
24967 cat >&5 <<_CSEOF
24968
24969 This file was extended by $as_me, which was
24970 generated by GNU Autoconf 2.53.  Invocation command line was
24971
24972   CONFIG_FILES    = $CONFIG_FILES
24973   CONFIG_HEADERS  = $CONFIG_HEADERS
24974   CONFIG_LINKS    = $CONFIG_LINKS
24975   CONFIG_COMMANDS = $CONFIG_COMMANDS
24976   $ $0 $@
24977
24978 _CSEOF
24979 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24980 echo >&5
24981 _ACEOF
24982
24983 # Files that config.status was made for.
24984 if test -n "$ac_config_files"; then
24985   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24986 fi
24987
24988 if test -n "$ac_config_headers"; then
24989   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24990 fi
24991
24992 if test -n "$ac_config_links"; then
24993   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24994 fi
24995
24996 if test -n "$ac_config_commands"; then
24997   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24998 fi
24999
25000 cat >>$CONFIG_STATUS <<\_ACEOF
25001
25002 ac_cs_usage="\
25003 \`$as_me' instantiates files from templates according to the
25004 current configuration.
25005
25006 Usage: $0 [OPTIONS] [FILE]...
25007
25008   -h, --help       print this help, then exit
25009   -V, --version    print version number, then exit
25010   -d, --debug      don't remove temporary files
25011       --recheck    update $as_me by reconfiguring in the same conditions
25012   --file=FILE[:TEMPLATE]
25013                    instantiate the configuration file FILE
25014   --header=FILE[:TEMPLATE]
25015                    instantiate the configuration header FILE
25016
25017 Configuration files:
25018 $config_files
25019
25020 Configuration headers:
25021 $config_headers
25022
25023 Report bugs to <bug-autoconf@gnu.org>."
25024 _ACEOF
25025
25026 cat >>$CONFIG_STATUS <<_ACEOF
25027 ac_cs_version="\\
25028 config.status
25029 configured by $0, generated by GNU Autoconf 2.53,
25030   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25031
25032 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25033 Free Software Foundation, Inc.
25034 This config.status script is free software; the Free Software Foundation
25035 gives unlimited permission to copy, distribute and modify it."
25036 srcdir=$srcdir
25037 INSTALL="$INSTALL"
25038 _ACEOF
25039
25040 cat >>$CONFIG_STATUS <<\_ACEOF
25041 # If no file are specified by the user, then we need to provide default
25042 # value.  By we need to know if files were specified by the user.
25043 ac_need_defaults=:
25044 while test $# != 0
25045 do
25046   case $1 in
25047   --*=*)
25048     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25049     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25050     shift
25051     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25052     shift
25053     ;;
25054   -*);;
25055   *) # This is not an option, so the user has probably given explicit
25056      # arguments.
25057      ac_need_defaults=false;;
25058   esac
25059
25060   case $1 in
25061   # Handling of the options.
25062 _ACEOF
25063 cat >>$CONFIG_STATUS <<_ACEOF
25064   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25065     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25066     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25067 _ACEOF
25068 cat >>$CONFIG_STATUS <<\_ACEOF
25069   --version | --vers* | -V )
25070     echo "$ac_cs_version"; exit 0 ;;
25071   --he | --h)
25072     # Conflict between --help and --header
25073     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25074 Try \`$0 --help' for more information." >&5
25075 echo "$as_me: error: ambiguous option: $1
25076 Try \`$0 --help' for more information." >&2;}
25077    { (exit 1); exit 1; }; };;
25078   --help | --hel | -h )
25079     echo "$ac_cs_usage"; exit 0 ;;
25080   --debug | --d* | -d )
25081     debug=: ;;
25082   --file | --fil | --fi | --f )
25083     shift
25084     CONFIG_FILES="$CONFIG_FILES $1"
25085     ac_need_defaults=false;;
25086   --header | --heade | --head | --hea )
25087     shift
25088     CONFIG_HEADERS="$CONFIG_HEADERS $1"
25089     ac_need_defaults=false;;
25090
25091   # This is an error.
25092   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25093 Try \`$0 --help' for more information." >&5
25094 echo "$as_me: error: unrecognized option: $1
25095 Try \`$0 --help' for more information." >&2;}
25096    { (exit 1); exit 1; }; } ;;
25097
25098   *) ac_config_targets="$ac_config_targets $1" ;;
25099
25100   esac
25101   shift
25102 done
25103
25104 _ACEOF
25105
25106
25107
25108
25109
25110 cat >>$CONFIG_STATUS <<\_ACEOF
25111 for ac_config_target in $ac_config_targets
25112 do
25113   case "$ac_config_target" in
25114   # Handling of arguments.
25115   "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
25116   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25117   "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
25118   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25119   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25120 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25121    { (exit 1); exit 1; }; };;
25122   esac
25123 done
25124
25125 # If the user did not use the arguments to specify the items to instantiate,
25126 # then the envvar interface is used.  Set only those that are not.
25127 # We use the long form for the default assignment because of an extremely
25128 # bizarre bug on SunOS 4.1.3.
25129 if $ac_need_defaults; then
25130   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25131   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25132 fi
25133
25134 # Create a temporary directory, and hook for its removal unless debugging.
25135 $debug ||
25136 {
25137   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25138   trap '{ (exit 1); exit 1; }' 1 2 13 15
25139 }
25140
25141 # Create a (secure) tmp directory for tmp files.
25142 : ${TMPDIR=/tmp}
25143 {
25144   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25145   test -n "$tmp" && test -d "$tmp"
25146 }  ||
25147 {
25148   tmp=$TMPDIR/cs$$-$RANDOM
25149   (umask 077 && mkdir $tmp)
25150 } ||
25151 {
25152    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25153    { (exit 1); exit 1; }
25154 }
25155
25156 _ACEOF
25157
25158 cat >>$CONFIG_STATUS <<_ACEOF
25159
25160 #
25161 # CONFIG_FILES section.
25162 #
25163
25164 # No need to generate the scripts if there are no CONFIG_FILES.
25165 # This happens for instance when ./config.status config.h
25166 if test -n "\$CONFIG_FILES"; then
25167   # Protect against being on the right side of a sed subst in config.status.
25168   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25169    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25170 s,@SHELL@,$SHELL,;t t
25171 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25177 s,@exec_prefix@,$exec_prefix,;t t
25178 s,@prefix@,$prefix,;t t
25179 s,@program_transform_name@,$program_transform_name,;t t
25180 s,@bindir@,$bindir,;t t
25181 s,@sbindir@,$sbindir,;t t
25182 s,@libexecdir@,$libexecdir,;t t
25183 s,@datadir@,$datadir,;t t
25184 s,@sysconfdir@,$sysconfdir,;t t
25185 s,@sharedstatedir@,$sharedstatedir,;t t
25186 s,@localstatedir@,$localstatedir,;t t
25187 s,@libdir@,$libdir,;t t
25188 s,@includedir@,$includedir,;t t
25189 s,@oldincludedir@,$oldincludedir,;t t
25190 s,@infodir@,$infodir,;t t
25191 s,@mandir@,$mandir,;t t
25192 s,@build_alias@,$build_alias,;t t
25193 s,@host_alias@,$host_alias,;t t
25194 s,@target_alias@,$target_alias,;t t
25195 s,@DEFS@,$DEFS,;t t
25196 s,@ECHO_C@,$ECHO_C,;t t
25197 s,@ECHO_N@,$ECHO_N,;t t
25198 s,@ECHO_T@,$ECHO_T,;t t
25199 s,@LIBS@,$LIBS,;t t
25200 s,@configdir@,$configdir,;t t
25201 s,@lockdir@,$lockdir,;t t
25202 s,@piddir@,$piddir,;t t
25203 s,@logfilebase@,$logfilebase,;t t
25204 s,@privatedir@,$privatedir,;t t
25205 s,@swatdir@,$swatdir,;t t
25206 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
25207 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
25208 s,@SHLD@,$SHLD,;t t
25209 s,@HOST_OS@,$HOST_OS,;t t
25210 s,@PICFLAG@,$PICFLAG,;t t
25211 s,@PICSUFFIX@,$PICSUFFIX,;t t
25212 s,@POBAD_CC@,$POBAD_CC,;t t
25213 s,@SHLIBEXT@,$SHLIBEXT,;t t
25214 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
25215 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
25216 s,@PRINTLIBS@,$PRINTLIBS,;t t
25217 s,@AUTHLIBS@,$AUTHLIBS,;t t
25218 s,@SHLIB_PROGS@,$SHLIB_PROGS,;t t
25219 s,@SMBWRAPPER@,$SMBWRAPPER,;t t
25220 s,@EXTRA_BIN_PROGS@,$EXTRA_BIN_PROGS,;t t
25221 s,@EXTRA_SBIN_PROGS@,$EXTRA_SBIN_PROGS,;t t
25222 s,@EXTRA_ALL_TARGETS@,$EXTRA_ALL_TARGETS,;t t
25223 s,@CC@,$CC,;t t
25224 s,@CFLAGS@,$CFLAGS,;t t
25225 s,@LDFLAGS@,$LDFLAGS,;t t
25226 s,@CPPFLAGS@,$CPPFLAGS,;t t
25227 s,@ac_ct_CC@,$ac_ct_CC,;t t
25228 s,@EXEEXT@,$EXEEXT,;t t
25229 s,@OBJEXT@,$OBJEXT,;t t
25230 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25231 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25232 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25233 s,@AWK@,$AWK,;t t
25234 s,@BROKEN_CC@,$BROKEN_CC,;t t
25235 s,@build@,$build,;t t
25236 s,@build_cpu@,$build_cpu,;t t
25237 s,@build_vendor@,$build_vendor,;t t
25238 s,@build_os@,$build_os,;t t
25239 s,@host@,$host,;t t
25240 s,@host_cpu@,$host_cpu,;t t
25241 s,@host_vendor@,$host_vendor,;t t
25242 s,@host_os@,$host_os,;t t
25243 s,@target@,$target,;t t
25244 s,@target_cpu@,$target_cpu,;t t
25245 s,@target_vendor@,$target_vendor,;t t
25246 s,@target_os@,$target_os,;t t
25247 s,@CPP@,$CPP,;t t
25248 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
25249 s,@LIBOBJS@,$LIBOBJS,;t t
25250 s,@TERMLIBS@,$TERMLIBS,;t t
25251 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
25252 s,@ROFF@,$ROFF,;t t
25253 s,@DYNEXP@,$DYNEXP,;t t
25254 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
25255 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
25256 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
25257 s,@MODULE_MYSQL@,$MODULE_MYSQL,;t t
25258 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25259 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
25260 s,@XML_LIBS@,$XML_LIBS,;t t
25261 s,@MODULE_XML@,$MODULE_XML,;t t
25262 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
25263 s,@manlangs@,$manlangs,;t t
25264 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
25265 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
25266 s,@BUILD_POPT@,$BUILD_POPT,;t t
25267 s,@FLAGS1@,$FLAGS1,;t t
25268 s,@PYTHON@,$PYTHON,;t t
25269 s,@builddir@,$builddir,;t t
25270 CEOF
25271
25272 _ACEOF
25273
25274   cat >>$CONFIG_STATUS <<\_ACEOF
25275   # Split the substitutions into bite-sized pieces for seds with
25276   # small command number limits, like on Digital OSF/1 and HP-UX.
25277   ac_max_sed_lines=48
25278   ac_sed_frag=1 # Number of current file.
25279   ac_beg=1 # First line for current file.
25280   ac_end=$ac_max_sed_lines # Line after last line for current file.
25281   ac_more_lines=:
25282   ac_sed_cmds=
25283   while $ac_more_lines; do
25284     if test $ac_beg -gt 1; then
25285       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25286     else
25287       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25288     fi
25289     if test ! -s $tmp/subs.frag; then
25290       ac_more_lines=false
25291     else
25292       # The purpose of the label and of the branching condition is to
25293       # speed up the sed processing (if there are no `@' at all, there
25294       # is no need to browse any of the substitutions).
25295       # These are the two extra sed commands mentioned above.
25296       (echo ':t
25297   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25298       if test -z "$ac_sed_cmds"; then
25299         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25300       else
25301         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25302       fi
25303       ac_sed_frag=`expr $ac_sed_frag + 1`
25304       ac_beg=$ac_end
25305       ac_end=`expr $ac_end + $ac_max_sed_lines`
25306     fi
25307   done
25308   if test -z "$ac_sed_cmds"; then
25309     ac_sed_cmds=cat
25310   fi
25311 fi # test -n "$CONFIG_FILES"
25312
25313 _ACEOF
25314 cat >>$CONFIG_STATUS <<\_ACEOF
25315 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25316   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25317   case $ac_file in
25318   - | *:- | *:-:* ) # input from stdin
25319         cat >$tmp/stdin
25320         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25321         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25322   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25323         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25324   * )   ac_file_in=$ac_file.in ;;
25325   esac
25326
25327   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25328   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25330          X"$ac_file" : 'X\(//\)[^/]' \| \
25331          X"$ac_file" : 'X\(//\)$' \| \
25332          X"$ac_file" : 'X\(/\)' \| \
25333          .     : '\(.\)' 2>/dev/null ||
25334 echo X"$ac_file" |
25335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25336           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25337           /^X\(\/\/\)$/{ s//\1/; q; }
25338           /^X\(\/\).*/{ s//\1/; q; }
25339           s/.*/./; q'`
25340   { case "$ac_dir" in
25341   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25342   *)                      as_incr_dir=.;;
25343 esac
25344 as_dummy="$ac_dir"
25345 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25346   case $as_mkdir_dir in
25347     # Skip DOS drivespec
25348     ?:) as_incr_dir=$as_mkdir_dir ;;
25349     *)
25350       as_incr_dir=$as_incr_dir/$as_mkdir_dir
25351       test -d "$as_incr_dir" ||
25352         mkdir "$as_incr_dir" ||
25353         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25354 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25355    { (exit 1); exit 1; }; }
25356     ;;
25357   esac
25358 done; }
25359
25360   ac_builddir=.
25361
25362 if test "$ac_dir" != .; then
25363   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25364   # A "../" for each directory in $ac_dir_suffix.
25365   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25366 else
25367   ac_dir_suffix= ac_top_builddir=
25368 fi
25369
25370 case $srcdir in
25371   .)  # No --srcdir option.  We are building in place.
25372     ac_srcdir=.
25373     if test -z "$ac_top_builddir"; then
25374        ac_top_srcdir=.
25375     else
25376        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25377     fi ;;
25378   [\\/]* | ?:[\\/]* )  # Absolute path.
25379     ac_srcdir=$srcdir$ac_dir_suffix;
25380     ac_top_srcdir=$srcdir ;;
25381   *) # Relative path.
25382     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25383     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25384 esac
25385 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25386 # absolute.
25387 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25388 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25389 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25390 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25391
25392
25393   case $INSTALL in
25394   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25395   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25396   esac
25397
25398   if test x"$ac_file" != x-; then
25399     { echo "$as_me:$LINENO: creating $ac_file" >&5
25400 echo "$as_me: creating $ac_file" >&6;}
25401     rm -f "$ac_file"
25402   fi
25403   # Let's still pretend it is `configure' which instantiates (i.e., don't
25404   # use $as_me), people would be surprised to read:
25405   #    /* config.h.  Generated by config.status.  */
25406   if test x"$ac_file" = x-; then
25407     configure_input=
25408   else
25409     configure_input="$ac_file.  "
25410   fi
25411   configure_input=$configure_input"Generated from `echo $ac_file_in |
25412                                      sed 's,.*/,,'` by configure."
25413
25414   # First look for the input files in the build tree, otherwise in the
25415   # src tree.
25416   ac_file_inputs=`IFS=:
25417     for f in $ac_file_in; do
25418       case $f in
25419       -) echo $tmp/stdin ;;
25420       [\\/$]*)
25421          # Absolute (can't be DOS-style, as IFS=:)
25422          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25423 echo "$as_me: error: cannot find input file: $f" >&2;}
25424    { (exit 1); exit 1; }; }
25425          echo $f;;
25426       *) # Relative
25427          if test -f "$f"; then
25428            # Build tree
25429            echo $f
25430          elif test -f "$srcdir/$f"; then
25431            # Source tree
25432            echo $srcdir/$f
25433          else
25434            # /dev/null tree
25435            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25436 echo "$as_me: error: cannot find input file: $f" >&2;}
25437    { (exit 1); exit 1; }; }
25438          fi;;
25439       esac
25440     done` || { (exit 1); exit 1; }
25441 _ACEOF
25442 cat >>$CONFIG_STATUS <<_ACEOF
25443   sed "$ac_vpsub
25444 $extrasub
25445 _ACEOF
25446 cat >>$CONFIG_STATUS <<\_ACEOF
25447 :t
25448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25449 s,@configure_input@,$configure_input,;t t
25450 s,@srcdir@,$ac_srcdir,;t t
25451 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25452 s,@top_srcdir@,$ac_top_srcdir,;t t
25453 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25454 s,@builddir@,$ac_builddir,;t t
25455 s,@abs_builddir@,$ac_abs_builddir,;t t
25456 s,@top_builddir@,$ac_top_builddir,;t t
25457 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25458 s,@INSTALL@,$ac_INSTALL,;t t
25459 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25460   rm -f $tmp/stdin
25461   if test x"$ac_file" != x-; then
25462     mv $tmp/out $ac_file
25463   else
25464     cat $tmp/out
25465     rm -f $tmp/out
25466   fi
25467
25468 done
25469 _ACEOF
25470 cat >>$CONFIG_STATUS <<\_ACEOF
25471
25472 #
25473 # CONFIG_HEADER section.
25474 #
25475
25476 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25477 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25478 #
25479 # ac_d sets the value in "#define NAME VALUE" lines.
25480 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
25481 ac_dB='[        ].*$,\1#\2'
25482 ac_dC=' '
25483 ac_dD=',;t'
25484 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25485 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25486 ac_uB='$,\1#\2define\3'
25487 ac_uC=' '
25488 ac_uD=',;t'
25489
25490 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25491   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25492   case $ac_file in
25493   - | *:- | *:-:* ) # input from stdin
25494         cat >$tmp/stdin
25495         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25496         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25497   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25498         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25499   * )   ac_file_in=$ac_file.in ;;
25500   esac
25501
25502   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25503 echo "$as_me: creating $ac_file" >&6;}
25504
25505   # First look for the input files in the build tree, otherwise in the
25506   # src tree.
25507   ac_file_inputs=`IFS=:
25508     for f in $ac_file_in; do
25509       case $f in
25510       -) echo $tmp/stdin ;;
25511       [\\/$]*)
25512          # Absolute (can't be DOS-style, as IFS=:)
25513          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25514 echo "$as_me: error: cannot find input file: $f" >&2;}
25515    { (exit 1); exit 1; }; }
25516          echo $f;;
25517       *) # Relative
25518          if test -f "$f"; then
25519            # Build tree
25520            echo $f
25521          elif test -f "$srcdir/$f"; then
25522            # Source tree
25523            echo $srcdir/$f
25524          else
25525            # /dev/null tree
25526            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25527 echo "$as_me: error: cannot find input file: $f" >&2;}
25528    { (exit 1); exit 1; }; }
25529          fi;;
25530       esac
25531     done` || { (exit 1); exit 1; }
25532   # Remove the trailing spaces.
25533   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
25534
25535 _ACEOF
25536
25537 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25538 # `conftest.undefs', that substitutes the proper values into
25539 # config.h.in to produce config.h.  The first handles `#define'
25540 # templates, and the second `#undef' templates.
25541 # And first: Protect against being on the right side of a sed subst in
25542 # config.status.  Protect against being in an unquoted here document
25543 # in config.status.
25544 rm -f conftest.defines conftest.undefs
25545 # Using a here document instead of a string reduces the quoting nightmare.
25546 # Putting comments in sed scripts is not portable.
25547 #
25548 # `end' is used to avoid that the second main sed command (meant for
25549 # 0-ary CPP macros) applies to n-ary macro definitions.
25550 # See the Autoconf documentation for `clear'.
25551 cat >confdef2sed.sed <<\_ACEOF
25552 s/[\\&,]/\\&/g
25553 s,[\\$`],\\&,g
25554 t clear
25555 : clear
25556 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25557 t end
25558 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25559 : end
25560 _ACEOF
25561 # If some macros were called several times there might be several times
25562 # the same #defines, which is useless.  Nevertheless, we may not want to
25563 # sort them, since we want the *last* AC-DEFINE to be honored.
25564 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25565 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25566 rm -f confdef2sed.sed
25567
25568 # This sed command replaces #undef with comments.  This is necessary, for
25569 # example, in the case of _POSIX_SOURCE, which is predefined and required
25570 # on some systems where configure will not decide to define it.
25571 cat >>conftest.undefs <<\_ACEOF
25572 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25573 _ACEOF
25574
25575 # Break up conftest.defines because some shells have a limit on the size
25576 # of here documents, and old seds have small limits too (100 cmds).
25577 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25578 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25579 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25580 echo '  :' >>$CONFIG_STATUS
25581 rm -f conftest.tail
25582 while grep . conftest.defines >/dev/null
25583 do
25584   # Write a limited-size here document to $tmp/defines.sed.
25585   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25586   # Speed up: don't consider the non `#define' lines.
25587   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
25588   # Work around the forget-to-reset-the-flag bug.
25589   echo 't clr' >>$CONFIG_STATUS
25590   echo ': clr' >>$CONFIG_STATUS
25591   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25592   echo 'CEOF
25593   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25594   rm -f $tmp/in
25595   mv $tmp/out $tmp/in
25596 ' >>$CONFIG_STATUS
25597   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25598   rm -f conftest.defines
25599   mv conftest.tail conftest.defines
25600 done
25601 rm -f conftest.defines
25602 echo '  fi # egrep' >>$CONFIG_STATUS
25603 echo >>$CONFIG_STATUS
25604
25605 # Break up conftest.undefs because some shells have a limit on the size
25606 # of here documents, and old seds have small limits too (100 cmds).
25607 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25608 rm -f conftest.tail
25609 while grep . conftest.undefs >/dev/null
25610 do
25611   # Write a limited-size here document to $tmp/undefs.sed.
25612   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25613   # Speed up: don't consider the non `#undef'
25614   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25615   # Work around the forget-to-reset-the-flag bug.
25616   echo 't clr' >>$CONFIG_STATUS
25617   echo ': clr' >>$CONFIG_STATUS
25618   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25619   echo 'CEOF
25620   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25621   rm -f $tmp/in
25622   mv $tmp/out $tmp/in
25623 ' >>$CONFIG_STATUS
25624   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25625   rm -f conftest.undefs
25626   mv conftest.tail conftest.undefs
25627 done
25628 rm -f conftest.undefs
25629
25630 cat >>$CONFIG_STATUS <<\_ACEOF
25631   # Let's still pretend it is `configure' which instantiates (i.e., don't
25632   # use $as_me), people would be surprised to read:
25633   #    /* config.h.  Generated by config.status.  */
25634   if test x"$ac_file" = x-; then
25635     echo "/* Generated by configure.  */" >$tmp/config.h
25636   else
25637     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25638   fi
25639   cat $tmp/in >>$tmp/config.h
25640   rm -f $tmp/in
25641   if test x"$ac_file" != x-; then
25642     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25643       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25644 echo "$as_me: $ac_file is unchanged" >&6;}
25645     else
25646       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25648          X"$ac_file" : 'X\(//\)[^/]' \| \
25649          X"$ac_file" : 'X\(//\)$' \| \
25650          X"$ac_file" : 'X\(/\)' \| \
25651          .     : '\(.\)' 2>/dev/null ||
25652 echo X"$ac_file" |
25653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25655           /^X\(\/\/\)$/{ s//\1/; q; }
25656           /^X\(\/\).*/{ s//\1/; q; }
25657           s/.*/./; q'`
25658       { case "$ac_dir" in
25659   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25660   *)                      as_incr_dir=.;;
25661 esac
25662 as_dummy="$ac_dir"
25663 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25664   case $as_mkdir_dir in
25665     # Skip DOS drivespec
25666     ?:) as_incr_dir=$as_mkdir_dir ;;
25667     *)
25668       as_incr_dir=$as_incr_dir/$as_mkdir_dir
25669       test -d "$as_incr_dir" ||
25670         mkdir "$as_incr_dir" ||
25671         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25672 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25673    { (exit 1); exit 1; }; }
25674     ;;
25675   esac
25676 done; }
25677
25678       rm -f $ac_file
25679       mv $tmp/config.h $ac_file
25680     fi
25681   else
25682     cat $tmp/config.h
25683     rm -f $tmp/config.h
25684   fi
25685 done
25686 _ACEOF
25687
25688 cat >>$CONFIG_STATUS <<\_ACEOF
25689
25690 { (exit 0); exit 0; }
25691 _ACEOF
25692 chmod +x $CONFIG_STATUS
25693 ac_clean_files=$ac_clean_files_save
25694
25695
25696 # configure is writing to config.log, and then calls config.status.
25697 # config.status does its own redirection, appending to config.log.
25698 # Unfortunately, on DOS this fails, as config.log is still kept open
25699 # by configure, so config.status won't be able to write to it; its
25700 # output is simply discarded.  So we exec the FD to /dev/null,
25701 # effectively closing config.log, so it can be properly (re)opened and
25702 # appended to by config.status.  When coming back to configure, we
25703 # need to make the FD available again.
25704 if test "$no_create" != yes; then
25705   ac_cs_success=:
25706   exec 5>/dev/null
25707   $SHELL $CONFIG_STATUS || ac_cs_success=false
25708   exec 5>>config.log
25709   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25710   # would make configure fail if this is the last instruction.
25711   $ac_cs_success || { (exit 1); exit 1; }
25712 fi
25713
25714
25715 #################################################
25716 # Print very concise instructions on building/use
25717 if test "x$enable_dmalloc" = xyes
25718 then
25719         echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included.  To turn it on use" >&5
25720 echo "${ECHO_T}Note: The dmalloc debug library will be included.  To turn it on use" >&6
25721         echo "$as_me:$LINENO: result:       \$ eval \\`dmalloc samba\\`." >&5
25722 echo "${ECHO_T}      \$ eval \\`dmalloc samba\\`." >&6
25723 fi