1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="include/includes.h"
275ac_default_prefix=/usr/local/samba
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configdir lockdir piddir logfilebase privatedir swatdir LDSHFLAGS SONAMEFLAG SHLD HOST_OS PICFLAGS PICSUFFIX SHLIBEXT INSTALLCLIENT INSTALLCLIENTCMD_SH INSTALLCLIENTCMD_A LIBSMBCLIENT_SHARED LIBSMBCLIENT PRINT_LIBS AUTH_LIBS ACL_LIBS PASSDB_LIBS IDMAP_LIBS KRB5_LIBS LDAP_LIBS SHLIB_PROGS SMBWRAPPER EXTRA_BIN_PROGS EXTRA_SBIN_PROGS EXTRA_ALL_TARGETS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK PERL AR ac_ct_AR BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS ROFF DYNEXP SMBLDAP KRB5CONFIG XML2_CONFIG XML_CFLAGS XML_LIBS MYSQL_CONFIG MYSQL_CFLAGS MYSQL_LIBS PGSQL_CONFIG PGSQL_CFLAGS PGSQL_LIBS manlangs WINBIND_NSS WINBIND_WINS_NSS WINBIND_NSS_LDSHFLAGS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS BUILD_POPT POPTLIBS FLAGS1 PYTHON PDB_STATIC PDB_MODULES RPC_STATIC RPC_MODULES IDMAP_STATIC IDMAP_MODULES CHARSET_STATIC CHARSET_MODULES AUTH_STATIC AUTH_MODULES VFS_STATIC VFS_MODULES builddir LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672	      localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712	 X"$0" : 'X\(//\)[^/]' \| \
713	 X"$0" : 'X\(//\)$' \| \
714	 X"$0" : 'X\(/\)' \| \
715	 .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719  	  /^X\(\/\/\)$/{ s//\1/; q; }
720  	  /^X\(\/\).*/{ s//\1/; q; }
721  	  s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807			  [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809			  [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834
835System types:
836  --build=BUILD     configure for building on BUILD [guessed]
837  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838  --target=TARGET   configure for building compilers for TARGET [HOST]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843
844  cat <<\_ACEOF
845
846Optional Features:
847  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
849  --enable-static=PKGS    build static libraries default=no
850  --enable-shared=PKGS    build shared libraries default=yes
851  --enable-debug          Turn on compiler debugging information (default=no)
852  --enable-developer      Turn on developer warnings and debugging (default=no)
853  --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
854  --enable-dmalloc        Enable heap debugging default=no
855  --enable-cups           Turn on CUPS support (default=auto)
856  --disable-xmltest       Do not try to compile and run a test LIBXML program
857
858Optional Packages:
859  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
860  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
861  --with-fhs              Use FHS-compliant paths (default=no)
862  --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
863  --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
864  --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
865  --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
866  --with-configdir=DIR    Where to put configuration files ($libdir)
867  --with-logfilebase=DIR  Where to put log files ($VARDIR)
868  --with-libdir=DIR       Where to put libdir ($libdir)
869  --with-mandir=DIR       Where to put man pages ($mandir)
870  --with-cfenc=HEADERDIR  Use internal CoreFoundation encoding API
871			  for optimization (Mac OS X/Darwin only)
872  --with-readline=DIR     Look for readline include/libs in DIR (default=auto)
873  --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
874  --with-smbwrapper       Include SMB wrapper support (default=no)
875  --with-afs              Include AFS clear-text auth support (default=no)
876  --with-fake-kaserver    Include AFS fake-kaserver support (default=no)
877  --with-vfs-afsacl       Include AFS to NT ACL mapping module (default=no)
878  --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
879  --with-ldap             LDAP support (default yes)
880  --with-ads              Active Directory support (default auto)
881  --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
882  --with-expsam=<list>    Include experimental passdb libraries (default=no)
883                          Valid choices include (comma separated list):
884                              xml, mysql & pgsql
885  --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
886  --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
887  --with-mysql-prefix=PFX   Prefix where MYSQL is installed (optional)
888  --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
889  --with-pgsql-prefix=PFX   Prefix where PostgreSQL is installed (optional)
890  --with-pgsql-exec-prefix=PFX Exec prefix where PostgreSQL is installed (optional)
891  --with-automount        Include automount support (default=no)
892  --with-smbmount         Include smbmount (Linux only) support (default=no)
893  --with-pam              Include PAM support (default=no)
894  --with-pam_smbpass      Build PAM module for authenticating against passdb backends (default=no)
895  --with-ldapsam          Include LDAP SAM 2.2 compatible configuration (default=no)
896  --with-nisplus-home     Include NISPLUS_HOME support (default=no)
897  --with-syslog           Include experimental SYSLOG support (default=no)
898  --with-profiling-data   Include gathering source code profile information (default=no)
899  --with-quotas           Include disk-quota support (default=no)
900  --with-sys-quotas       Include lib/sysquotas.c support (default=auto)
901  --with-utmp             Include utmp accounting (default, if supported by OS)
902  --with-manpages-langs={en,ja,pl}  Choose man pages' language(s). (en)
903  --with-libsmbclient     Build the libsmbclient shared library (default=yes if shared libs supported)
904  --with-spinlocks        Use spin locks instead of fcntl locks (default=no)
905  --with-acl-support      Include ACL support (default=no)
906  --with-sendfile-support Check for sendfile support (default=yes)
907  --with-winbind          Build winbind (default, if supported by OS)
908  --with-included-popt    use bundled popt library, not from system
909  --with-python=PYTHONNAME  build Python libraries
910  --with-static-modules=MODULES  Comma-seperated list of names of modules to statically link in
911  --with-shared-modules=MODULES  Comma-seperated list of names of modules to build shared
912
913Some influential environment variables:
914  CC          C compiler command
915  CFLAGS      C compiler flags
916  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
917              nonstandard directory <lib dir>
918  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
919              headers in a nonstandard directory <include dir>
920  CPP         C preprocessor
921
922Use these variables to override the choices made by `configure' or to help
923it to find libraries and programs with nonstandard names/locations.
924
925_ACEOF
926fi
927
928if test "$ac_init_help" = "recursive"; then
929  # If there are subdirs, report their specific --help.
930  ac_popdir=`pwd`
931  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
932    test -d $ac_dir || continue
933    ac_builddir=.
934
935if test "$ac_dir" != .; then
936  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
937  # A "../" for each directory in $ac_dir_suffix.
938  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
939else
940  ac_dir_suffix= ac_top_builddir=
941fi
942
943case $srcdir in
944  .)  # No --srcdir option.  We are building in place.
945    ac_srcdir=.
946    if test -z "$ac_top_builddir"; then
947       ac_top_srcdir=.
948    else
949       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
950    fi ;;
951  [\\/]* | ?:[\\/]* )  # Absolute path.
952    ac_srcdir=$srcdir$ac_dir_suffix;
953    ac_top_srcdir=$srcdir ;;
954  *) # Relative path.
955    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
956    ac_top_srcdir=$ac_top_builddir$srcdir ;;
957esac
958
959# Do not use `cd foo && pwd` to compute absolute paths, because
960# the directories may not exist.
961case `pwd` in
962.) ac_abs_builddir="$ac_dir";;
963*)
964  case "$ac_dir" in
965  .) ac_abs_builddir=`pwd`;;
966  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
967  *) ac_abs_builddir=`pwd`/"$ac_dir";;
968  esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_top_builddir=${ac_top_builddir}.;;
972*)
973  case ${ac_top_builddir}. in
974  .) ac_abs_top_builddir=$ac_abs_builddir;;
975  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
976  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
977  esac;;
978esac
979case $ac_abs_builddir in
980.) ac_abs_srcdir=$ac_srcdir;;
981*)
982  case $ac_srcdir in
983  .) ac_abs_srcdir=$ac_abs_builddir;;
984  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
985  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
986  esac;;
987esac
988case $ac_abs_builddir in
989.) ac_abs_top_srcdir=$ac_top_srcdir;;
990*)
991  case $ac_top_srcdir in
992  .) ac_abs_top_srcdir=$ac_abs_builddir;;
993  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
994  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
995  esac;;
996esac
997
998    cd $ac_dir
999    # Check for guested configure; otherwise get Cygnus style configure.
1000    if test -f $ac_srcdir/configure.gnu; then
1001      echo
1002      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1003    elif test -f $ac_srcdir/configure; then
1004      echo
1005      $SHELL $ac_srcdir/configure  --help=recursive
1006    elif test -f $ac_srcdir/configure.ac ||
1007	   test -f $ac_srcdir/configure.in; then
1008      echo
1009      $ac_configure --help
1010    else
1011      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1012    fi
1013    cd $ac_popdir
1014  done
1015fi
1016
1017test -n "$ac_init_help" && exit 0
1018if $ac_init_version; then
1019  cat <<\_ACEOF
1020
1021Copyright (C) 2003 Free Software Foundation, Inc.
1022This configure script is free software; the Free Software Foundation
1023gives unlimited permission to copy, distribute and modify it.
1024_ACEOF
1025  exit 0
1026fi
1027exec 5>config.log
1028cat >&5 <<_ACEOF
1029This file contains any messages produced by compilers while
1030running configure, to aid debugging if configure makes a mistake.
1031
1032It was created by $as_me, which was
1033generated by GNU Autoconf 2.59.  Invocation command line was
1034
1035  $ $0 $@
1036
1037_ACEOF
1038{
1039cat <<_ASUNAME
1040## --------- ##
1041## Platform. ##
1042## --------- ##
1043
1044hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1045uname -m = `(uname -m) 2>/dev/null || echo unknown`
1046uname -r = `(uname -r) 2>/dev/null || echo unknown`
1047uname -s = `(uname -s) 2>/dev/null || echo unknown`
1048uname -v = `(uname -v) 2>/dev/null || echo unknown`
1049
1050/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1051/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1052
1053/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1054/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1055/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1056hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1057/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1058/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1059/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1060
1061_ASUNAME
1062
1063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1064for as_dir in $PATH
1065do
1066  IFS=$as_save_IFS
1067  test -z "$as_dir" && as_dir=.
1068  echo "PATH: $as_dir"
1069done
1070
1071} >&5
1072
1073cat >&5 <<_ACEOF
1074
1075
1076## ----------- ##
1077## Core tests. ##
1078## ----------- ##
1079
1080_ACEOF
1081
1082
1083# Keep a trace of the command line.
1084# Strip out --no-create and --no-recursion so they do not pile up.
1085# Strip out --silent because we don't want to record it for future runs.
1086# Also quote any args containing shell meta-characters.
1087# Make two passes to allow for proper duplicate-argument suppression.
1088ac_configure_args=
1089ac_configure_args0=
1090ac_configure_args1=
1091ac_sep=
1092ac_must_keep_next=false
1093for ac_pass in 1 2
1094do
1095  for ac_arg
1096  do
1097    case $ac_arg in
1098    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1099    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100    | -silent | --silent | --silen | --sile | --sil)
1101      continue ;;
1102    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1103      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1104    esac
1105    case $ac_pass in
1106    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1107    2)
1108      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1109      if test $ac_must_keep_next = true; then
1110	ac_must_keep_next=false # Got value, back to normal.
1111      else
1112	case $ac_arg in
1113	  *=* | --config-cache | -C | -disable-* | --disable-* \
1114	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1115	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1116	  | -with-* | --with-* | -without-* | --without-* | --x)
1117	    case "$ac_configure_args0 " in
1118	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1119	    esac
1120	    ;;
1121	  -* ) ac_must_keep_next=true ;;
1122	esac
1123      fi
1124      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1125      # Get rid of the leading space.
1126      ac_sep=" "
1127      ;;
1128    esac
1129  done
1130done
1131$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1132$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1133
1134# When interrupted or exit'd, cleanup temporary files, and complete
1135# config.log.  We remove comments because anyway the quotes in there
1136# would cause problems or look ugly.
1137# WARNING: Be sure not to use single quotes in there, as some shells,
1138# such as our DU 5.0 friend, will then `close' the trap.
1139trap 'exit_status=$?
1140  # Save into config.log some information that might help in debugging.
1141  {
1142    echo
1143
1144    cat <<\_ASBOX
1145## ---------------- ##
1146## Cache variables. ##
1147## ---------------- ##
1148_ASBOX
1149    echo
1150    # The following way of writing the cache mishandles newlines in values,
1151{
1152  (set) 2>&1 |
1153    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1154    *ac_space=\ *)
1155      sed -n \
1156	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1157	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1158      ;;
1159    *)
1160      sed -n \
1161	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1162      ;;
1163    esac;
1164}
1165    echo
1166
1167    cat <<\_ASBOX
1168## ----------------- ##
1169## Output variables. ##
1170## ----------------- ##
1171_ASBOX
1172    echo
1173    for ac_var in $ac_subst_vars
1174    do
1175      eval ac_val=$`echo $ac_var`
1176      echo "$ac_var='"'"'$ac_val'"'"'"
1177    done | sort
1178    echo
1179
1180    if test -n "$ac_subst_files"; then
1181      cat <<\_ASBOX
1182## ------------- ##
1183## Output files. ##
1184## ------------- ##
1185_ASBOX
1186      echo
1187      for ac_var in $ac_subst_files
1188      do
1189	eval ac_val=$`echo $ac_var`
1190	echo "$ac_var='"'"'$ac_val'"'"'"
1191      done | sort
1192      echo
1193    fi
1194
1195    if test -s confdefs.h; then
1196      cat <<\_ASBOX
1197## ----------- ##
1198## confdefs.h. ##
1199## ----------- ##
1200_ASBOX
1201      echo
1202      sed "/^$/d" confdefs.h | sort
1203      echo
1204    fi
1205    test "$ac_signal" != 0 &&
1206      echo "$as_me: caught signal $ac_signal"
1207    echo "$as_me: exit $exit_status"
1208  } >&5
1209  rm -f core *.core &&
1210  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1211    exit $exit_status
1212     ' 0
1213for ac_signal in 1 2 13 15; do
1214  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1215done
1216ac_signal=0
1217
1218# confdefs.h avoids OS command line length limits that DEFS can exceed.
1219rm -rf conftest* confdefs.h
1220# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1221echo >confdefs.h
1222
1223# Predefined preprocessor variables.
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_NAME "$PACKAGE_NAME"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_VERSION "$PACKAGE_VERSION"
1237_ACEOF
1238
1239
1240cat >>confdefs.h <<_ACEOF
1241#define PACKAGE_STRING "$PACKAGE_STRING"
1242_ACEOF
1243
1244
1245cat >>confdefs.h <<_ACEOF
1246#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1247_ACEOF
1248
1249
1250# Let the site file select an alternate cache file if it wants to.
1251# Prefer explicitly selected file to automatically selected ones.
1252if test -z "$CONFIG_SITE"; then
1253  if test "x$prefix" != xNONE; then
1254    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1255  else
1256    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1257  fi
1258fi
1259for ac_site_file in $CONFIG_SITE; do
1260  if test -r "$ac_site_file"; then
1261    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1262echo "$as_me: loading site script $ac_site_file" >&6;}
1263    sed 's/^/| /' "$ac_site_file" >&5
1264    . "$ac_site_file"
1265  fi
1266done
1267
1268if test -r "$cache_file"; then
1269  # Some versions of bash will fail to source /dev/null (special
1270  # files actually), so we avoid doing that.
1271  if test -f "$cache_file"; then
1272    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1273echo "$as_me: loading cache $cache_file" >&6;}
1274    case $cache_file in
1275      [\\/]* | ?:[\\/]* ) . $cache_file;;
1276      *)                      . ./$cache_file;;
1277    esac
1278  fi
1279else
1280  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1281echo "$as_me: creating cache $cache_file" >&6;}
1282  >$cache_file
1283fi
1284
1285# Check that the precious variables saved in the cache have kept the same
1286# value.
1287ac_cache_corrupted=false
1288for ac_var in `(set) 2>&1 |
1289	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1290  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1291  eval ac_new_set=\$ac_env_${ac_var}_set
1292  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1293  eval ac_new_val="\$ac_env_${ac_var}_value"
1294  case $ac_old_set,$ac_new_set in
1295    set,)
1296      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1297echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1298      ac_cache_corrupted=: ;;
1299    ,set)
1300      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1301echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1302      ac_cache_corrupted=: ;;
1303    ,);;
1304    *)
1305      if test "x$ac_old_val" != "x$ac_new_val"; then
1306	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1307echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1308	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1309echo "$as_me:   former value:  $ac_old_val" >&2;}
1310	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1311echo "$as_me:   current value: $ac_new_val" >&2;}
1312	ac_cache_corrupted=:
1313      fi;;
1314  esac
1315  # Pass precious variables to config.status.
1316  if test "$ac_new_set" = set; then
1317    case $ac_new_val in
1318    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1320    *) ac_arg=$ac_var=$ac_new_val ;;
1321    esac
1322    case " $ac_configure_args " in
1323      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1324      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325    esac
1326  fi
1327done
1328if $ac_cache_corrupted; then
1329  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1330echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1331  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1332echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1333   { (exit 1); exit 1; }; }
1334fi
1335
1336ac_ext=c
1337ac_cpp='$CPP $CPPFLAGS'
1338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1340ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360          ac_config_headers="$ac_config_headers include/config.h"
1361
1362
1363# Check whether --enable-static or --disable-static was given.
1364if test "${enable_static+set}" = set; then
1365  enableval="$enable_static"
1366  p=${PACKAGE-default}
1367case $enableval in
1368yes) enable_static=yes ;;
1369no) enable_static=no ;;
1370*)
1371  enable_static=no
1372  # Look at the argument we got.  We use all the common list separators.
1373  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1374  for pkg in $enableval; do
1375    if test "X$pkg" = "X$p"; then
1376      enable_static=yes
1377    fi
1378  done
1379  IFS="$ac_save_ifs"
1380  ;;
1381esac
1382else
1383  enable_static=no
1384fi;
1385# Check whether --enable-shared or --disable-shared was given.
1386if test "${enable_shared+set}" = set; then
1387  enableval="$enable_shared"
1388  p=${PACKAGE-default}
1389case $enableval in
1390yes) enable_shared=yes ;;
1391no) enable_shared=no ;;
1392*)
1393  enable_shared=no
1394  # Look at the argument we got.  We use all the common list separators.
1395  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1396  for pkg in $enableval; do
1397    if test "X$pkg" = "X$p"; then
1398      enable_shared=yes
1399    fi
1400
1401  done
1402  IFS="$ac_save_ifs"
1403  ;;
1404esac
1405else
1406  enable_shared=yes
1407fi;
1408
1409SMB_VERSION_STRING=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
1410echo "SAMBA VERSION: ${SMB_VERSION_STRING}"
1411
1412SAMBA_VERSION_SVN_REVISION=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_SVN_REVISION' | cut -d ' ' -f3-`
1413if test -n "${SAMBA_VERSION_SVN_REVISION}";then
1414	echo "BUILD REVISION: ${SAMBA_VERSION_SVN_REVISION}"
1415fi
1416
1417#################################################
1418# Directory handling stuff to support both the
1419# legacy SAMBA directories and FHS compliant
1420# ones...
1421
1422
1423lockdir="\${VARDIR}/locks"
1424piddir="\${VARDIR}/locks"
1425mandir="\${prefix}/man"
1426logfilebase="\${VARDIR}"
1427privatedir="\${prefix}/private"
1428libdir="\${prefix}/lib"
1429configdir="\${LIBDIR}"
1430swatdir="\${prefix}/swat"
1431
1432
1433# Check whether --with-fhs or --without-fhs was given.
1434if test "${with_fhs+set}" = set; then
1435  withval="$with_fhs"
1436   case "$withval" in
1437  yes)
1438    lockdir="\${VARDIR}/lib/samba"
1439    piddir="\${VARDIR}/run"
1440    mandir="\${prefix}/share/man"
1441    logfilebase="\${VARDIR}/log/samba"
1442    privatedir="\${CONFIGDIR}/private"
1443    libdir="\${prefix}/lib/samba"
1444    configdir="${sysconfdir}/samba"
1445    swatdir="\${DATADIR}/samba/swat"
1446    ;;
1447  esac
1448fi;
1449
1450#################################################
1451# set private directory location
1452
1453# Check whether --with-privatedir or --without-privatedir was given.
1454if test "${with_privatedir+set}" = set; then
1455  withval="$with_privatedir"
1456   case "$withval" in
1457  yes|no)
1458  #
1459  # Just in case anybody calls it without argument
1460  #
1461    { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1462echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1463  ;;
1464  * )
1465    privatedir="$withval"
1466    ;;
1467  esac
1468fi;
1469
1470#################################################
1471# set lock directory location
1472
1473# Check whether --with-lockdir or --without-lockdir was given.
1474if test "${with_lockdir+set}" = set; then
1475  withval="$with_lockdir"
1476   case "$withval" in
1477  yes|no)
1478  #
1479  # Just in case anybody calls it without argument
1480  #
1481    { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1482echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1483  ;;
1484  * )
1485    lockdir="$withval"
1486    ;;
1487  esac
1488fi;
1489
1490#################################################
1491# set pid directory location
1492
1493# Check whether --with-piddir or --without-piddir was given.
1494if test "${with_piddir+set}" = set; then
1495  withval="$with_piddir"
1496   case "$withval" in
1497  yes|no)
1498  #
1499  # Just in case anybody calls it without argument
1500  #
1501    { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1502echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1503  ;;
1504  * )
1505    piddir="$withval"
1506    ;;
1507  esac
1508fi;
1509
1510#################################################
1511# set SWAT directory location
1512
1513# Check whether --with-swatdir or --without-swatdir was given.
1514if test "${with_swatdir+set}" = set; then
1515  withval="$with_swatdir"
1516   case "$withval" in
1517  yes|no)
1518  #
1519  # Just in case anybody does it
1520  #
1521    { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1522echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1523  ;;
1524  * )
1525    swatdir="$withval"
1526    ;;
1527  esac
1528fi;
1529
1530#################################################
1531# set configuration directory location
1532
1533# Check whether --with-configdir or --without-configdir was given.
1534if test "${with_configdir+set}" = set; then
1535  withval="$with_configdir"
1536   case "$withval" in
1537  yes|no)
1538  #
1539  # Just in case anybody does it
1540  #
1541    { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1542echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1543  ;;
1544  * )
1545    configdir="$withval"
1546    ;;
1547  esac
1548fi;
1549
1550#################################################
1551# set log directory location
1552
1553# Check whether --with-logfilebase or --without-logfilebase was given.
1554if test "${with_logfilebase+set}" = set; then
1555  withval="$with_logfilebase"
1556   case "$withval" in
1557  yes|no)
1558  #
1559  # Just in case anybody does it
1560  #
1561    { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1562echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1563  ;;
1564  * )
1565    logfilebase="$withval"
1566    ;;
1567  esac
1568fi;
1569
1570#################################################
1571# set lib directory location
1572
1573# Check whether --with-libdir or --without-libdir was given.
1574if test "${with_libdir+set}" = set; then
1575  withval="$with_libdir"
1576   case "$withval" in
1577  yes|no)
1578  #
1579  # Just in case anybody does it
1580  #
1581    { echo "$as_me:$LINENO: WARNING: --with-libdir without argument - will use default" >&5
1582echo "$as_me: WARNING: --with-libdir without argument - will use default" >&2;}
1583  ;;
1584  * )
1585    libdir="$withval"
1586    ;;
1587  esac
1588fi;
1589
1590#################################################
1591# set lib directory location
1592
1593# Check whether --with-mandir or --without-mandir was given.
1594if test "${with_mandir+set}" = set; then
1595  withval="$with_mandir"
1596   case "$withval" in
1597  yes|no)
1598  #
1599  # Just in case anybody does it
1600  #
1601    { echo "$as_me:$LINENO: WARNING: --with-mandir without argument - will use default" >&5
1602echo "$as_me: WARNING: --with-mandir without argument - will use default" >&2;}
1603  ;;
1604  * )
1605    mandir="$withval"
1606    ;;
1607  esac
1608fi;
1609
1610
1611# Check whether --with-cfenc or --without-cfenc was given.
1612if test "${with_cfenc+set}" = set; then
1613  withval="$with_cfenc"
1614
1615# May be in source $withval/CoreFoundation/StringEncodings.subproj.
1616# Should have been in framework $withval/CoreFoundation.framework/Headers.
1617for d in \
1618    $withval/CoreFoundation/StringEncodings.subproj \
1619    $withval/StringEncodings.subproj \
1620    $withval/CoreFoundation.framework/Headers \
1621    $withval/Headers \
1622    $withval
1623do
1624    if test -r $d/CFStringEncodingConverter.h; then
1625        ln -sfh $d include/CoreFoundation
1626    fi
1627done
1628
1629fi;
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666# Check whether --enable-debug or --disable-debug was given.
1667if test "${enable_debug+set}" = set; then
1668  enableval="$enable_debug"
1669  if eval "test x$enable_debug = xyes"; then
1670	CFLAGS="${CFLAGS} -g"
1671    fi
1672fi;
1673
1674ac_ext=c
1675ac_cpp='$CPP $CPPFLAGS'
1676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1678ac_compiler_gnu=$ac_cv_c_compiler_gnu
1679if test -n "$ac_tool_prefix"; then
1680  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1681set dummy ${ac_tool_prefix}gcc; ac_word=$2
1682echo "$as_me:$LINENO: checking for $ac_word" >&5
1683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684if test "${ac_cv_prog_CC+set}" = set; then
1685  echo $ECHO_N "(cached) $ECHO_C" >&6
1686else
1687  if test -n "$CC"; then
1688  ac_cv_prog_CC="$CC" # Let the user override the test.
1689else
1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691for as_dir in $PATH
1692do
1693  IFS=$as_save_IFS
1694  test -z "$as_dir" && as_dir=.
1695  for ac_exec_ext in '' $ac_executable_extensions; do
1696  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699    break 2
1700  fi
1701done
1702done
1703
1704fi
1705fi
1706CC=$ac_cv_prog_CC
1707if test -n "$CC"; then
1708  echo "$as_me:$LINENO: result: $CC" >&5
1709echo "${ECHO_T}$CC" >&6
1710else
1711  echo "$as_me:$LINENO: result: no" >&5
1712echo "${ECHO_T}no" >&6
1713fi
1714
1715fi
1716if test -z "$ac_cv_prog_CC"; then
1717  ac_ct_CC=$CC
1718  # Extract the first word of "gcc", so it can be a program name with args.
1719set dummy gcc; ac_word=$2
1720echo "$as_me:$LINENO: checking for $ac_word" >&5
1721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1723  echo $ECHO_N "(cached) $ECHO_C" >&6
1724else
1725  if test -n "$ac_ct_CC"; then
1726  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1727else
1728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729for as_dir in $PATH
1730do
1731  IFS=$as_save_IFS
1732  test -z "$as_dir" && as_dir=.
1733  for ac_exec_ext in '' $ac_executable_extensions; do
1734  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735    ac_cv_prog_ac_ct_CC="gcc"
1736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737    break 2
1738  fi
1739done
1740done
1741
1742fi
1743fi
1744ac_ct_CC=$ac_cv_prog_ac_ct_CC
1745if test -n "$ac_ct_CC"; then
1746  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1747echo "${ECHO_T}$ac_ct_CC" >&6
1748else
1749  echo "$as_me:$LINENO: result: no" >&5
1750echo "${ECHO_T}no" >&6
1751fi
1752
1753  CC=$ac_ct_CC
1754else
1755  CC="$ac_cv_prog_CC"
1756fi
1757
1758if test -z "$CC"; then
1759  if test -n "$ac_tool_prefix"; then
1760  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1761set dummy ${ac_tool_prefix}cc; ac_word=$2
1762echo "$as_me:$LINENO: checking for $ac_word" >&5
1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764if test "${ac_cv_prog_CC+set}" = set; then
1765  echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767  if test -n "$CC"; then
1768  ac_cv_prog_CC="$CC" # Let the user override the test.
1769else
1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771for as_dir in $PATH
1772do
1773  IFS=$as_save_IFS
1774  test -z "$as_dir" && as_dir=.
1775  for ac_exec_ext in '' $ac_executable_extensions; do
1776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777    ac_cv_prog_CC="${ac_tool_prefix}cc"
1778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779    break 2
1780  fi
1781done
1782done
1783
1784fi
1785fi
1786CC=$ac_cv_prog_CC
1787if test -n "$CC"; then
1788  echo "$as_me:$LINENO: result: $CC" >&5
1789echo "${ECHO_T}$CC" >&6
1790else
1791  echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793fi
1794
1795fi
1796if test -z "$ac_cv_prog_CC"; then
1797  ac_ct_CC=$CC
1798  # Extract the first word of "cc", so it can be a program name with args.
1799set dummy cc; ac_word=$2
1800echo "$as_me:$LINENO: checking for $ac_word" >&5
1801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803  echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805  if test -n "$ac_ct_CC"; then
1806  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807else
1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
1810do
1811  IFS=$as_save_IFS
1812  test -z "$as_dir" && as_dir=.
1813  for ac_exec_ext in '' $ac_executable_extensions; do
1814  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815    ac_cv_prog_ac_ct_CC="cc"
1816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817    break 2
1818  fi
1819done
1820done
1821
1822fi
1823fi
1824ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825if test -n "$ac_ct_CC"; then
1826  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827echo "${ECHO_T}$ac_ct_CC" >&6
1828else
1829  echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833  CC=$ac_ct_CC
1834else
1835  CC="$ac_cv_prog_CC"
1836fi
1837
1838fi
1839if test -z "$CC"; then
1840  # Extract the first word of "cc", so it can be a program name with args.
1841set dummy cc; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_prog_CC+set}" = set; then
1845  echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
1847  if test -n "$CC"; then
1848  ac_cv_prog_CC="$CC" # Let the user override the test.
1849else
1850  ac_prog_rejected=no
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854  IFS=$as_save_IFS
1855  test -z "$as_dir" && as_dir=.
1856  for ac_exec_ext in '' $ac_executable_extensions; do
1857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1859       ac_prog_rejected=yes
1860       continue
1861     fi
1862    ac_cv_prog_CC="cc"
1863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864    break 2
1865  fi
1866done
1867done
1868
1869if test $ac_prog_rejected = yes; then
1870  # We found a bogon in the path, so make sure we never use it.
1871  set dummy $ac_cv_prog_CC
1872  shift
1873  if test $# != 0; then
1874    # We chose a different compiler from the bogus one.
1875    # However, it has the same basename, so the bogon will be chosen
1876    # first if we set CC to just the basename; use the full file name.
1877    shift
1878    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1879  fi
1880fi
1881fi
1882fi
1883CC=$ac_cv_prog_CC
1884if test -n "$CC"; then
1885  echo "$as_me:$LINENO: result: $CC" >&5
1886echo "${ECHO_T}$CC" >&6
1887else
1888  echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892fi
1893if test -z "$CC"; then
1894  if test -n "$ac_tool_prefix"; then
1895  for ac_prog in cl
1896  do
1897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_CC+set}" = set; then
1902  echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904  if test -n "$CC"; then
1905  ac_cv_prog_CC="$CC" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  test -z "$as_dir" && as_dir=.
1912  for ac_exec_ext in '' $ac_executable_extensions; do
1913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916    break 2
1917  fi
1918done
1919done
1920
1921fi
1922fi
1923CC=$ac_cv_prog_CC
1924if test -n "$CC"; then
1925  echo "$as_me:$LINENO: result: $CC" >&5
1926echo "${ECHO_T}$CC" >&6
1927else
1928  echo "$as_me:$LINENO: result: no" >&5
1929echo "${ECHO_T}no" >&6
1930fi
1931
1932    test -n "$CC" && break
1933  done
1934fi
1935if test -z "$CC"; then
1936  ac_ct_CC=$CC
1937  for ac_prog in cl
1938do
1939  # Extract the first word of "$ac_prog", so it can be a program name with args.
1940set dummy $ac_prog; ac_word=$2
1941echo "$as_me:$LINENO: checking for $ac_word" >&5
1942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1943if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1944  echo $ECHO_N "(cached) $ECHO_C" >&6
1945else
1946  if test -n "$ac_ct_CC"; then
1947  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1948else
1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950for as_dir in $PATH
1951do
1952  IFS=$as_save_IFS
1953  test -z "$as_dir" && as_dir=.
1954  for ac_exec_ext in '' $ac_executable_extensions; do
1955  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1956    ac_cv_prog_ac_ct_CC="$ac_prog"
1957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958    break 2
1959  fi
1960done
1961done
1962
1963fi
1964fi
1965ac_ct_CC=$ac_cv_prog_ac_ct_CC
1966if test -n "$ac_ct_CC"; then
1967  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1968echo "${ECHO_T}$ac_ct_CC" >&6
1969else
1970  echo "$as_me:$LINENO: result: no" >&5
1971echo "${ECHO_T}no" >&6
1972fi
1973
1974  test -n "$ac_ct_CC" && break
1975done
1976
1977  CC=$ac_ct_CC
1978fi
1979
1980fi
1981
1982
1983test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1984See \`config.log' for more details." >&5
1985echo "$as_me: error: no acceptable C compiler found in \$PATH
1986See \`config.log' for more details." >&2;}
1987   { (exit 1); exit 1; }; }
1988
1989# Provide some information about the compiler.
1990echo "$as_me:$LINENO:" \
1991     "checking for C compiler version" >&5
1992ac_compiler=`set X $ac_compile; echo $2`
1993{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1994  (eval $ac_compiler --version </dev/null >&5) 2>&5
1995  ac_status=$?
1996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997  (exit $ac_status); }
1998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1999  (eval $ac_compiler -v </dev/null >&5) 2>&5
2000  ac_status=$?
2001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002  (exit $ac_status); }
2003{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2004  (eval $ac_compiler -V </dev/null >&5) 2>&5
2005  ac_status=$?
2006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007  (exit $ac_status); }
2008
2009cat >conftest.$ac_ext <<_ACEOF
2010/* confdefs.h.  */
2011_ACEOF
2012cat confdefs.h >>conftest.$ac_ext
2013cat >>conftest.$ac_ext <<_ACEOF
2014/* end confdefs.h.  */
2015
2016int
2017main ()
2018{
2019
2020  ;
2021  return 0;
2022}
2023_ACEOF
2024ac_clean_files_save=$ac_clean_files
2025ac_clean_files="$ac_clean_files a.out a.exe b.out"
2026# Try to create an executable without -o first, disregard a.out.
2027# It will help us diagnose broken compilers, and finding out an intuition
2028# of exeext.
2029echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2030echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2031ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033  (eval $ac_link_default) 2>&5
2034  ac_status=$?
2035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036  (exit $ac_status); }; then
2037  # Find the output, starting from the most likely.  This scheme is
2038# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2039# resort.
2040
2041# Be careful to initialize this variable, since it used to be cached.
2042# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2043ac_cv_exeext=
2044# b.out is created by i960 compilers.
2045for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2046do
2047  test -f "$ac_file" || continue
2048  case $ac_file in
2049    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2050	;;
2051    conftest.$ac_ext )
2052	# This is the source file.
2053	;;
2054    [ab].out )
2055	# We found the default executable, but exeext='' is most
2056	# certainly right.
2057	break;;
2058    *.* )
2059	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060	# FIXME: I believe we export ac_cv_exeext for Libtool,
2061	# but it would be cool to find out if it's true.  Does anybody
2062	# maintain Libtool? --akim.
2063	export ac_cv_exeext
2064	break;;
2065    * )
2066	break;;
2067  esac
2068done
2069else
2070  echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2074See \`config.log' for more details." >&5
2075echo "$as_me: error: C compiler cannot create executables
2076See \`config.log' for more details." >&2;}
2077   { (exit 77); exit 77; }; }
2078fi
2079
2080ac_exeext=$ac_cv_exeext
2081echo "$as_me:$LINENO: result: $ac_file" >&5
2082echo "${ECHO_T}$ac_file" >&6
2083
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2087echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2088# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089# If not cross compiling, check that we can run a simple program.
2090if test "$cross_compiling" != yes; then
2091  if { ac_try='./$ac_file'
2092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093  (eval $ac_try) 2>&5
2094  ac_status=$?
2095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096  (exit $ac_status); }; }; then
2097    cross_compiling=no
2098  else
2099    if test "$cross_compiling" = maybe; then
2100	cross_compiling=yes
2101    else
2102	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2103If you meant to cross compile, use \`--host'.
2104See \`config.log' for more details." >&5
2105echo "$as_me: error: cannot run C compiled programs.
2106If you meant to cross compile, use \`--host'.
2107See \`config.log' for more details." >&2;}
2108   { (exit 1); exit 1; }; }
2109    fi
2110  fi
2111fi
2112echo "$as_me:$LINENO: result: yes" >&5
2113echo "${ECHO_T}yes" >&6
2114
2115rm -f a.out a.exe conftest$ac_cv_exeext b.out
2116ac_clean_files=$ac_clean_files_save
2117# Check the compiler produces executables we can run.  If not, either
2118# the compiler is broken, or we cross compile.
2119echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122echo "${ECHO_T}$cross_compiling" >&6
2123
2124echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127  (eval $ac_link) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); }; then
2131  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2133# work properly (i.e., refer to `conftest.exe'), while it won't with
2134# `rm'.
2135for ac_file in conftest.exe conftest conftest.*; do
2136  test -f "$ac_file" || continue
2137  case $ac_file in
2138    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2139    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140	  export ac_cv_exeext
2141	  break;;
2142    * ) break;;
2143  esac
2144done
2145else
2146  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147See \`config.log' for more details." >&5
2148echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149See \`config.log' for more details." >&2;}
2150   { (exit 1); exit 1; }; }
2151fi
2152
2153rm -f conftest$ac_cv_exeext
2154echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155echo "${ECHO_T}$ac_cv_exeext" >&6
2156
2157rm -f conftest.$ac_ext
2158EXEEXT=$ac_cv_exeext
2159ac_exeext=$EXEEXT
2160echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162if test "${ac_cv_objext+set}" = set; then
2163  echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165  cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h.  */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h.  */
2171
2172int
2173main ()
2174{
2175
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180rm -f conftest.o conftest.obj
2181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182  (eval $ac_compile) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }; then
2186  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2187  case $ac_file in
2188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2189    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2190       break;;
2191  esac
2192done
2193else
2194  echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2198See \`config.log' for more details." >&5
2199echo "$as_me: error: cannot compute suffix of object files: cannot compile
2200See \`config.log' for more details." >&2;}
2201   { (exit 1); exit 1; }; }
2202fi
2203
2204rm -f conftest.$ac_cv_objext conftest.$ac_ext
2205fi
2206echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2207echo "${ECHO_T}$ac_cv_objext" >&6
2208OBJEXT=$ac_cv_objext
2209ac_objext=$OBJEXT
2210echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2211echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2212if test "${ac_cv_c_compiler_gnu+set}" = set; then
2213  echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215  cat >conftest.$ac_ext <<_ACEOF
2216/* confdefs.h.  */
2217_ACEOF
2218cat confdefs.h >>conftest.$ac_ext
2219cat >>conftest.$ac_ext <<_ACEOF
2220/* end confdefs.h.  */
2221
2222int
2223main ()
2224{
2225#ifndef __GNUC__
2226       choke me
2227#endif
2228
2229  ;
2230  return 0;
2231}
2232_ACEOF
2233rm -f conftest.$ac_objext
2234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235  (eval $ac_compile) 2>conftest.er1
2236  ac_status=$?
2237  grep -v '^ *+' conftest.er1 >conftest.err
2238  rm -f conftest.er1
2239  cat conftest.err >&5
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); } &&
2242	 { ac_try='test -z "$ac_c_werror_flag"
2243			 || test ! -s conftest.err'
2244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245  (eval $ac_try) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }; } &&
2249	 { ac_try='test -s conftest.$ac_objext'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; }; then
2255  ac_compiler_gnu=yes
2256else
2257  echo "$as_me: failed program was:" >&5
2258sed 's/^/| /' conftest.$ac_ext >&5
2259
2260ac_compiler_gnu=no
2261fi
2262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2263ac_cv_c_compiler_gnu=$ac_compiler_gnu
2264
2265fi
2266echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2267echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2268GCC=`test $ac_compiler_gnu = yes && echo yes`
2269ac_test_CFLAGS=${CFLAGS+set}
2270ac_save_CFLAGS=$CFLAGS
2271CFLAGS="-g"
2272echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2273echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2274if test "${ac_cv_prog_cc_g+set}" = set; then
2275  echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277  cat >conftest.$ac_ext <<_ACEOF
2278/* confdefs.h.  */
2279_ACEOF
2280cat confdefs.h >>conftest.$ac_ext
2281cat >>conftest.$ac_ext <<_ACEOF
2282/* end confdefs.h.  */
2283
2284int
2285main ()
2286{
2287
2288  ;
2289  return 0;
2290}
2291_ACEOF
2292rm -f conftest.$ac_objext
2293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294  (eval $ac_compile) 2>conftest.er1
2295  ac_status=$?
2296  grep -v '^ *+' conftest.er1 >conftest.err
2297  rm -f conftest.er1
2298  cat conftest.err >&5
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); } &&
2301	 { ac_try='test -z "$ac_c_werror_flag"
2302			 || test ! -s conftest.err'
2303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304  (eval $ac_try) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); }; } &&
2308	 { ac_try='test -s conftest.$ac_objext'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314  ac_cv_prog_cc_g=yes
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319ac_cv_prog_cc_g=no
2320fi
2321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322fi
2323echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2324echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2325if test "$ac_test_CFLAGS" = set; then
2326  CFLAGS=$ac_save_CFLAGS
2327elif test $ac_cv_prog_cc_g = yes; then
2328  if test "$GCC" = yes; then
2329    CFLAGS="-g -O2"
2330  else
2331    CFLAGS="-g"
2332  fi
2333else
2334  if test "$GCC" = yes; then
2335    CFLAGS="-O2"
2336  else
2337    CFLAGS=
2338  fi
2339fi
2340echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2341echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2342if test "${ac_cv_prog_cc_stdc+set}" = set; then
2343  echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345  ac_cv_prog_cc_stdc=no
2346ac_save_CC=$CC
2347cat >conftest.$ac_ext <<_ACEOF
2348/* confdefs.h.  */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h.  */
2353#include <stdarg.h>
2354#include <stdio.h>
2355#include <sys/types.h>
2356#include <sys/stat.h>
2357/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2358struct buf { int x; };
2359FILE * (*rcsopen) (struct buf *, struct stat *, int);
2360static char *e (p, i)
2361     char **p;
2362     int i;
2363{
2364  return p[i];
2365}
2366static char *f (char * (*g) (char **, int), char **p, ...)
2367{
2368  char *s;
2369  va_list v;
2370  va_start (v,p);
2371  s = g (p, va_arg (v,int));
2372  va_end (v);
2373  return s;
2374}
2375
2376/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2377   function prototypes and stuff, but not '\xHH' hex character constants.
2378   These don't provoke an error unfortunately, instead are silently treated
2379   as 'x'.  The following induces an error, until -std1 is added to get
2380   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2381   array size at least.  It's necessary to write '\x00'==0 to get something
2382   that's true only with -std1.  */
2383int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2384
2385int test (int i, double x);
2386struct s1 {int (*f) (int a);};
2387struct s2 {int (*f) (double a);};
2388int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2389int argc;
2390char **argv;
2391int
2392main ()
2393{
2394return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399# Don't try gcc -ansi; that turns off useful extensions and
2400# breaks some systems' header files.
2401# AIX			-qlanglvl=ansi
2402# Ultrix and OSF/1	-std1
2403# HP-UX 10.20 and later	-Ae
2404# HP-UX older versions	-Aa -D_HPUX_SOURCE
2405# SVR4			-Xc -D__EXTENSIONS__
2406for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2407do
2408  CC="$ac_save_CC $ac_arg"
2409  rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411  (eval $ac_compile) 2>conftest.er1
2412  ac_status=$?
2413  grep -v '^ *+' conftest.er1 >conftest.err
2414  rm -f conftest.er1
2415  cat conftest.err >&5
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); } &&
2418	 { ac_try='test -z "$ac_c_werror_flag"
2419			 || test ! -s conftest.err'
2420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421  (eval $ac_try) 2>&5
2422  ac_status=$?
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); }; } &&
2425	 { ac_try='test -s conftest.$ac_objext'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; }; then
2431  ac_cv_prog_cc_stdc=$ac_arg
2432break
2433else
2434  echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437fi
2438rm -f conftest.err conftest.$ac_objext
2439done
2440rm -f conftest.$ac_ext conftest.$ac_objext
2441CC=$ac_save_CC
2442
2443fi
2444
2445case "x$ac_cv_prog_cc_stdc" in
2446  x|xno)
2447    echo "$as_me:$LINENO: result: none needed" >&5
2448echo "${ECHO_T}none needed" >&6 ;;
2449  *)
2450    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2451echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2452    CC="$CC $ac_cv_prog_cc_stdc" ;;
2453esac
2454
2455# Some people use a C++ compiler to compile C.  Since we use `exit',
2456# in C++ we need to declare it.  In case someone uses the same compiler
2457# for both compiling C and C++ we need to have the C++ compiler decide
2458# the declaration of exit, since it's the most demanding environment.
2459cat >conftest.$ac_ext <<_ACEOF
2460#ifndef __cplusplus
2461  choke me
2462#endif
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466  (eval $ac_compile) 2>conftest.er1
2467  ac_status=$?
2468  grep -v '^ *+' conftest.er1 >conftest.err
2469  rm -f conftest.er1
2470  cat conftest.err >&5
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); } &&
2473	 { ac_try='test -z "$ac_c_werror_flag"
2474			 || test ! -s conftest.err'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; } &&
2480	 { ac_try='test -s conftest.$ac_objext'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; }; then
2486  for ac_declaration in \
2487   '' \
2488   'extern "C" void std::exit (int) throw (); using std::exit;' \
2489   'extern "C" void std::exit (int); using std::exit;' \
2490   'extern "C" void exit (int) throw ();' \
2491   'extern "C" void exit (int);' \
2492   'void exit (int);'
2493do
2494  cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h.  */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h.  */
2500$ac_declaration
2501#include <stdlib.h>
2502int
2503main ()
2504{
2505exit (42);
2506  ;
2507  return 0;
2508}
2509_ACEOF
2510rm -f conftest.$ac_objext
2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512  (eval $ac_compile) 2>conftest.er1
2513  ac_status=$?
2514  grep -v '^ *+' conftest.er1 >conftest.err
2515  rm -f conftest.er1
2516  cat conftest.err >&5
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); } &&
2519	 { ac_try='test -z "$ac_c_werror_flag"
2520			 || test ! -s conftest.err'
2521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522  (eval $ac_try) 2>&5
2523  ac_status=$?
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); }; } &&
2526	 { ac_try='test -s conftest.$ac_objext'
2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528  (eval $ac_try) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; }; then
2532  :
2533else
2534  echo "$as_me: failed program was:" >&5
2535sed 's/^/| /' conftest.$ac_ext >&5
2536
2537continue
2538fi
2539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540  cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546$ac_declaration
2547int
2548main ()
2549{
2550exit (42);
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555rm -f conftest.$ac_objext
2556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557  (eval $ac_compile) 2>conftest.er1
2558  ac_status=$?
2559  grep -v '^ *+' conftest.er1 >conftest.err
2560  rm -f conftest.er1
2561  cat conftest.err >&5
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); } &&
2564	 { ac_try='test -z "$ac_c_werror_flag"
2565			 || test ! -s conftest.err'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; } &&
2571	 { ac_try='test -s conftest.$ac_objext'
2572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573  (eval $ac_try) 2>&5
2574  ac_status=$?
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); }; }; then
2577  break
2578else
2579  echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582fi
2583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584done
2585rm -f conftest*
2586if test -n "$ac_declaration"; then
2587  echo '#ifdef __cplusplus' >>confdefs.h
2588  echo $ac_declaration      >>confdefs.h
2589  echo '#endif'             >>confdefs.h
2590fi
2591
2592else
2593  echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596fi
2597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598ac_ext=c
2599ac_cpp='$CPP $CPPFLAGS'
2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605# Check whether --enable-developer or --disable-developer was given.
2606if test "${enable_developer+set}" = set; then
2607  enableval="$enable_developer"
2608  if eval "test x$enable_developer = xyes"; then
2609        developer=yes
2610    	CFLAGS="${CFLAGS} -gstabs -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
2611	# Add -Wdeclaration-after-statement if compiler supports it
2612	echo "$as_me:$LINENO: checking that the C compiler understands -Wdeclaration-after-statement" >&5
2613echo $ECHO_N "checking that the C compiler understands -Wdeclaration-after-statement... $ECHO_C" >&6
2614if test "${samba_cv_HAVE_Wdeclaration_after_statement+set}" = set; then
2615  echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617
2618
2619	old_CFLAGS="$CFLAGS";
2620	CFLAGS="-Wdeclaration-after-statement";
2621	export CFLAGS;
2622	old_CPPFLAGS="$CPPFLAGS";
2623	CPPFLAGS="$CPPFLAGS";
2624	export CPPFLAGS;
2625	old_LDFLAGS="$LDFLAGS";
2626	LDFLAGS="$LDFLAGS";
2627	export LDFLAGS;
2628	if test "$cross_compiling" = yes; then
2629  samba_cv_HAVE_Wdeclaration_after_statement=cross
2630else
2631  cat >conftest.$ac_ext <<_ACEOF
2632/* confdefs.h.  */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h.  */
2637
2638	    int main(void)
2639	    {
2640	    	return 0;
2641	    }
2642_ACEOF
2643rm -f conftest$ac_exeext
2644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645  (eval $ac_link) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; }; then
2654  samba_cv_HAVE_Wdeclaration_after_statement=yes
2655else
2656  echo "$as_me: program exited with status $ac_status" >&5
2657echo "$as_me: failed program was:" >&5
2658sed 's/^/| /' conftest.$ac_ext >&5
2659
2660( exit $ac_status )
2661samba_cv_HAVE_Wdeclaration_after_statement=no
2662fi
2663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2664fi;
2665	CFLAGS="$old_CFLAGS";
2666	old_CFLAGS="";
2667	export CFLAGS;
2668	CPPFLAGS="$old_CPPFLAGS";
2669	old_CPPFLAGS="";
2670	export CPPFLAGS;
2671	LDFLAGS="$old_LDFLAGS";
2672	old_LDFLAGS="";
2673	export LDFLAGS;
2674
2675
2676fi
2677echo "$as_me:$LINENO: result: $samba_cv_HAVE_Wdeclaration_after_statement" >&5
2678echo "${ECHO_T}$samba_cv_HAVE_Wdeclaration_after_statement" >&6
2679       if test x"$samba_cv_HAVE_Wdeclaration_after_statement" = x"yes"; then
2680	    CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
2681       fi
2682    fi
2683fi;
2684
2685# Check whether --enable-krb5developer or --disable-krb5developer was given.
2686if test "${enable_krb5developer+set}" = set; then
2687  enableval="$enable_krb5developer"
2688  if eval "test x$enable_krb5developer = xyes"; then
2689        developer=yes
2690	CFLAGS="${CFLAGS} -gstabs -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
2691    fi
2692fi;
2693
2694# Check whether --enable-dmalloc or --disable-dmalloc was given.
2695if test "${enable_dmalloc+set}" = set; then
2696  enableval="$enable_dmalloc"
2697
2698fi;
2699
2700if test "x$enable_dmalloc" = xyes
2701then
2702
2703cat >>confdefs.h <<\_ACEOF
2704#define ENABLE_DMALLOC 1
2705_ACEOF
2706
2707
2708cat >>confdefs.h <<\_ACEOF
2709#define DMALLOC_FUNC_CHECK 1
2710_ACEOF
2711
2712	LIBS="$LIBS -ldmalloc"
2713fi
2714
2715
2716##
2717## for some reason this macro resets the CFLAGS
2718## so save and restore
2719##
2720OLD_CFLAGS=${CFLAGS}
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726if test -n "$ac_tool_prefix"; then
2727  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2728set dummy ${ac_tool_prefix}gcc; ac_word=$2
2729echo "$as_me:$LINENO: checking for $ac_word" >&5
2730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2731if test "${ac_cv_prog_CC+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  if test -n "$CC"; then
2735  ac_cv_prog_CC="$CC" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742  for ac_exec_ext in '' $ac_executable_extensions; do
2743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749done
2750
2751fi
2752fi
2753CC=$ac_cv_prog_CC
2754if test -n "$CC"; then
2755  echo "$as_me:$LINENO: result: $CC" >&5
2756echo "${ECHO_T}$CC" >&6
2757else
2758  echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760fi
2761
2762fi
2763if test -z "$ac_cv_prog_CC"; then
2764  ac_ct_CC=$CC
2765  # Extract the first word of "gcc", so it can be a program name with args.
2766set dummy gcc; ac_word=$2
2767echo "$as_me:$LINENO: checking for $ac_word" >&5
2768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2769if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2770  echo $ECHO_N "(cached) $ECHO_C" >&6
2771else
2772  if test -n "$ac_ct_CC"; then
2773  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780  for ac_exec_ext in '' $ac_executable_extensions; do
2781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782    ac_cv_prog_ac_ct_CC="gcc"
2783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787done
2788
2789fi
2790fi
2791ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792if test -n "$ac_ct_CC"; then
2793  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794echo "${ECHO_T}$ac_ct_CC" >&6
2795else
2796  echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6
2798fi
2799
2800  CC=$ac_ct_CC
2801else
2802  CC="$ac_cv_prog_CC"
2803fi
2804
2805if test -z "$CC"; then
2806  if test -n "$ac_tool_prefix"; then
2807  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2808set dummy ${ac_tool_prefix}cc; ac_word=$2
2809echo "$as_me:$LINENO: checking for $ac_word" >&5
2810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811if test "${ac_cv_prog_CC+set}" = set; then
2812  echo $ECHO_N "(cached) $ECHO_C" >&6
2813else
2814  if test -n "$CC"; then
2815  ac_cv_prog_CC="$CC" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820  IFS=$as_save_IFS
2821  test -z "$as_dir" && as_dir=.
2822  for ac_exec_ext in '' $ac_executable_extensions; do
2823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824    ac_cv_prog_CC="${ac_tool_prefix}cc"
2825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826    break 2
2827  fi
2828done
2829done
2830
2831fi
2832fi
2833CC=$ac_cv_prog_CC
2834if test -n "$CC"; then
2835  echo "$as_me:$LINENO: result: $CC" >&5
2836echo "${ECHO_T}$CC" >&6
2837else
2838  echo "$as_me:$LINENO: result: no" >&5
2839echo "${ECHO_T}no" >&6
2840fi
2841
2842fi
2843if test -z "$ac_cv_prog_CC"; then
2844  ac_ct_CC=$CC
2845  # Extract the first word of "cc", so it can be a program name with args.
2846set dummy cc; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2850  echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852  if test -n "$ac_ct_CC"; then
2853  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860  for ac_exec_ext in '' $ac_executable_extensions; do
2861  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862    ac_cv_prog_ac_ct_CC="cc"
2863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867done
2868
2869fi
2870fi
2871ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872if test -n "$ac_ct_CC"; then
2873  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2874echo "${ECHO_T}$ac_ct_CC" >&6
2875else
2876  echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
2878fi
2879
2880  CC=$ac_ct_CC
2881else
2882  CC="$ac_cv_prog_CC"
2883fi
2884
2885fi
2886if test -z "$CC"; then
2887  # Extract the first word of "cc", so it can be a program name with args.
2888set dummy cc; ac_word=$2
2889echo "$as_me:$LINENO: checking for $ac_word" >&5
2890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891if test "${ac_cv_prog_CC+set}" = set; then
2892  echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894  if test -n "$CC"; then
2895  ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
2897  ac_prog_rejected=no
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903  for ac_exec_ext in '' $ac_executable_extensions; do
2904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2906       ac_prog_rejected=yes
2907       continue
2908     fi
2909    ac_cv_prog_CC="cc"
2910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914done
2915
2916if test $ac_prog_rejected = yes; then
2917  # We found a bogon in the path, so make sure we never use it.
2918  set dummy $ac_cv_prog_CC
2919  shift
2920  if test $# != 0; then
2921    # We chose a different compiler from the bogus one.
2922    # However, it has the same basename, so the bogon will be chosen
2923    # first if we set CC to just the basename; use the full file name.
2924    shift
2925    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926  fi
2927fi
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  echo "$as_me:$LINENO: result: $CC" >&5
2933echo "${ECHO_T}$CC" >&6
2934else
2935  echo "$as_me:$LINENO: result: no" >&5
2936echo "${ECHO_T}no" >&6
2937fi
2938
2939fi
2940if test -z "$CC"; then
2941  if test -n "$ac_tool_prefix"; then
2942  for ac_prog in cl
2943  do
2944    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946echo "$as_me:$LINENO: checking for $ac_word" >&5
2947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948if test "${ac_cv_prog_CC+set}" = set; then
2949  echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951  if test -n "$CC"; then
2952  ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959  for ac_exec_ext in '' $ac_executable_extensions; do
2960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966done
2967
2968fi
2969fi
2970CC=$ac_cv_prog_CC
2971if test -n "$CC"; then
2972  echo "$as_me:$LINENO: result: $CC" >&5
2973echo "${ECHO_T}$CC" >&6
2974else
2975  echo "$as_me:$LINENO: result: no" >&5
2976echo "${ECHO_T}no" >&6
2977fi
2978
2979    test -n "$CC" && break
2980  done
2981fi
2982if test -z "$CC"; then
2983  ac_ct_CC=$CC
2984  for ac_prog in cl
2985do
2986  # Extract the first word of "$ac_prog", so it can be a program name with args.
2987set dummy $ac_prog; ac_word=$2
2988echo "$as_me:$LINENO: checking for $ac_word" >&5
2989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2991  echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993  if test -n "$ac_ct_CC"; then
2994  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  test -z "$as_dir" && as_dir=.
3001  for ac_exec_ext in '' $ac_executable_extensions; do
3002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003    ac_cv_prog_ac_ct_CC="$ac_prog"
3004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008done
3009
3010fi
3011fi
3012ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013if test -n "$ac_ct_CC"; then
3014  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3015echo "${ECHO_T}$ac_ct_CC" >&6
3016else
3017  echo "$as_me:$LINENO: result: no" >&5
3018echo "${ECHO_T}no" >&6
3019fi
3020
3021  test -n "$ac_ct_CC" && break
3022done
3023
3024  CC=$ac_ct_CC
3025fi
3026
3027fi
3028
3029
3030test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3031See \`config.log' for more details." >&5
3032echo "$as_me: error: no acceptable C compiler found in \$PATH
3033See \`config.log' for more details." >&2;}
3034   { (exit 1); exit 1; }; }
3035
3036# Provide some information about the compiler.
3037echo "$as_me:$LINENO:" \
3038     "checking for C compiler version" >&5
3039ac_compiler=`set X $ac_compile; echo $2`
3040{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3041  (eval $ac_compiler --version </dev/null >&5) 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }
3045{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3046  (eval $ac_compiler -v </dev/null >&5) 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }
3050{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3051  (eval $ac_compiler -V </dev/null >&5) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }
3055
3056echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3057echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3058if test "${ac_cv_c_compiler_gnu+set}" = set; then
3059  echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061  cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071#ifndef __GNUC__
3072       choke me
3073#endif
3074
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext
3080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3081  (eval $ac_compile) 2>conftest.er1
3082  ac_status=$?
3083  grep -v '^ *+' conftest.er1 >conftest.err
3084  rm -f conftest.er1
3085  cat conftest.err >&5
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); } &&
3088	 { ac_try='test -z "$ac_c_werror_flag"
3089			 || test ! -s conftest.err'
3090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091  (eval $ac_try) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }; } &&
3095	 { ac_try='test -s conftest.$ac_objext'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; }; then
3101  ac_compiler_gnu=yes
3102else
3103  echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106ac_compiler_gnu=no
3107fi
3108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3109ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110
3111fi
3112echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3113echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3114GCC=`test $ac_compiler_gnu = yes && echo yes`
3115ac_test_CFLAGS=${CFLAGS+set}
3116ac_save_CFLAGS=$CFLAGS
3117CFLAGS="-g"
3118echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3119echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3120if test "${ac_cv_prog_cc_g+set}" = set; then
3121  echo $ECHO_N "(cached) $ECHO_C" >&6
3122else
3123  cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h.  */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h.  */
3129
3130int
3131main ()
3132{
3133
3134  ;
3135  return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140  (eval $ac_compile) 2>conftest.er1
3141  ac_status=$?
3142  grep -v '^ *+' conftest.er1 >conftest.err
3143  rm -f conftest.er1
3144  cat conftest.err >&5
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); } &&
3147	 { ac_try='test -z "$ac_c_werror_flag"
3148			 || test ! -s conftest.err'
3149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; } &&
3154	 { ac_try='test -s conftest.$ac_objext'
3155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156  (eval $ac_try) 2>&5
3157  ac_status=$?
3158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159  (exit $ac_status); }; }; then
3160  ac_cv_prog_cc_g=yes
3161else
3162  echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165ac_cv_prog_cc_g=no
3166fi
3167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3168fi
3169echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3170echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3171if test "$ac_test_CFLAGS" = set; then
3172  CFLAGS=$ac_save_CFLAGS
3173elif test $ac_cv_prog_cc_g = yes; then
3174  if test "$GCC" = yes; then
3175    CFLAGS="-g -O2"
3176  else
3177    CFLAGS="-g"
3178  fi
3179else
3180  if test "$GCC" = yes; then
3181    CFLAGS="-O2"
3182  else
3183    CFLAGS=
3184  fi
3185fi
3186echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3187echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3188if test "${ac_cv_prog_cc_stdc+set}" = set; then
3189  echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191  ac_cv_prog_cc_stdc=no
3192ac_save_CC=$CC
3193cat >conftest.$ac_ext <<_ACEOF
3194/* confdefs.h.  */
3195_ACEOF
3196cat confdefs.h >>conftest.$ac_ext
3197cat >>conftest.$ac_ext <<_ACEOF
3198/* end confdefs.h.  */
3199#include <stdarg.h>
3200#include <stdio.h>
3201#include <sys/types.h>
3202#include <sys/stat.h>
3203/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3204struct buf { int x; };
3205FILE * (*rcsopen) (struct buf *, struct stat *, int);
3206static char *e (p, i)
3207     char **p;
3208     int i;
3209{
3210  return p[i];
3211}
3212static char *f (char * (*g) (char **, int), char **p, ...)
3213{
3214  char *s;
3215  va_list v;
3216  va_start (v,p);
3217  s = g (p, va_arg (v,int));
3218  va_end (v);
3219  return s;
3220}
3221
3222/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3223   function prototypes and stuff, but not '\xHH' hex character constants.
3224   These don't provoke an error unfortunately, instead are silently treated
3225   as 'x'.  The following induces an error, until -std1 is added to get
3226   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3227   array size at least.  It's necessary to write '\x00'==0 to get something
3228   that's true only with -std1.  */
3229int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3230
3231int test (int i, double x);
3232struct s1 {int (*f) (int a);};
3233struct s2 {int (*f) (double a);};
3234int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3235int argc;
3236char **argv;
3237int
3238main ()
3239{
3240return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3241  ;
3242  return 0;
3243}
3244_ACEOF
3245# Don't try gcc -ansi; that turns off useful extensions and
3246# breaks some systems' header files.
3247# AIX			-qlanglvl=ansi
3248# Ultrix and OSF/1	-std1
3249# HP-UX 10.20 and later	-Ae
3250# HP-UX older versions	-Aa -D_HPUX_SOURCE
3251# SVR4			-Xc -D__EXTENSIONS__
3252for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3253do
3254  CC="$ac_save_CC $ac_arg"
3255  rm -f conftest.$ac_objext
3256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257  (eval $ac_compile) 2>conftest.er1
3258  ac_status=$?
3259  grep -v '^ *+' conftest.er1 >conftest.err
3260  rm -f conftest.er1
3261  cat conftest.err >&5
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); } &&
3264	 { ac_try='test -z "$ac_c_werror_flag"
3265			 || test ! -s conftest.err'
3266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267  (eval $ac_try) 2>&5
3268  ac_status=$?
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }; } &&
3271	 { ac_try='test -s conftest.$ac_objext'
3272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273  (eval $ac_try) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; }; then
3277  ac_cv_prog_cc_stdc=$ac_arg
3278break
3279else
3280  echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283fi
3284rm -f conftest.err conftest.$ac_objext
3285done
3286rm -f conftest.$ac_ext conftest.$ac_objext
3287CC=$ac_save_CC
3288
3289fi
3290
3291case "x$ac_cv_prog_cc_stdc" in
3292  x|xno)
3293    echo "$as_me:$LINENO: result: none needed" >&5
3294echo "${ECHO_T}none needed" >&6 ;;
3295  *)
3296    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3297echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3298    CC="$CC $ac_cv_prog_cc_stdc" ;;
3299esac
3300
3301# Some people use a C++ compiler to compile C.  Since we use `exit',
3302# in C++ we need to declare it.  In case someone uses the same compiler
3303# for both compiling C and C++ we need to have the C++ compiler decide
3304# the declaration of exit, since it's the most demanding environment.
3305cat >conftest.$ac_ext <<_ACEOF
3306#ifndef __cplusplus
3307  choke me
3308#endif
3309_ACEOF
3310rm -f conftest.$ac_objext
3311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312  (eval $ac_compile) 2>conftest.er1
3313  ac_status=$?
3314  grep -v '^ *+' conftest.er1 >conftest.err
3315  rm -f conftest.er1
3316  cat conftest.err >&5
3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); } &&
3319	 { ac_try='test -z "$ac_c_werror_flag"
3320			 || test ! -s conftest.err'
3321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322  (eval $ac_try) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }; } &&
3326	 { ac_try='test -s conftest.$ac_objext'
3327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328  (eval $ac_try) 2>&5
3329  ac_status=$?
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); }; }; then
3332  for ac_declaration in \
3333   '' \
3334   'extern "C" void std::exit (int) throw (); using std::exit;' \
3335   'extern "C" void std::exit (int); using std::exit;' \
3336   'extern "C" void exit (int) throw ();' \
3337   'extern "C" void exit (int);' \
3338   'void exit (int);'
3339do
3340  cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h.  */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h.  */
3346$ac_declaration
3347#include <stdlib.h>
3348int
3349main ()
3350{
3351exit (42);
3352  ;
3353  return 0;
3354}
3355_ACEOF
3356rm -f conftest.$ac_objext
3357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358  (eval $ac_compile) 2>conftest.er1
3359  ac_status=$?
3360  grep -v '^ *+' conftest.er1 >conftest.err
3361  rm -f conftest.er1
3362  cat conftest.err >&5
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); } &&
3365	 { ac_try='test -z "$ac_c_werror_flag"
3366			 || test ! -s conftest.err'
3367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368  (eval $ac_try) 2>&5
3369  ac_status=$?
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); }; } &&
3372	 { ac_try='test -s conftest.$ac_objext'
3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374  (eval $ac_try) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }; }; then
3378  :
3379else
3380  echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383continue
3384fi
3385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3386  cat >conftest.$ac_ext <<_ACEOF
3387/* confdefs.h.  */
3388_ACEOF
3389cat confdefs.h >>conftest.$ac_ext
3390cat >>conftest.$ac_ext <<_ACEOF
3391/* end confdefs.h.  */
3392$ac_declaration
3393int
3394main ()
3395{
3396exit (42);
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401rm -f conftest.$ac_objext
3402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403  (eval $ac_compile) 2>conftest.er1
3404  ac_status=$?
3405  grep -v '^ *+' conftest.er1 >conftest.err
3406  rm -f conftest.er1
3407  cat conftest.err >&5
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); } &&
3410	 { ac_try='test -z "$ac_c_werror_flag"
3411			 || test ! -s conftest.err'
3412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413  (eval $ac_try) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }; } &&
3417	 { ac_try='test -s conftest.$ac_objext'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; }; then
3423  break
3424else
3425  echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428fi
3429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430done
3431rm -f conftest*
3432if test -n "$ac_declaration"; then
3433  echo '#ifdef __cplusplus' >>confdefs.h
3434  echo $ac_declaration      >>confdefs.h
3435  echo '#endif'             >>confdefs.h
3436fi
3437
3438else
3439  echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442fi
3443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444ac_ext=c
3445ac_cpp='$CPP $CPPFLAGS'
3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449
3450CFLAGS=${OLD_CFLAGS}
3451
3452OLD_CFLAGS=${CFLAGS}
3453ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3459echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3460# On Suns, sometimes $CPP names a directory.
3461if test -n "$CPP" && test -d "$CPP"; then
3462  CPP=
3463fi
3464if test -z "$CPP"; then
3465  if test "${ac_cv_prog_CPP+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468      # Double quotes because CPP needs to be expanded
3469    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3470    do
3471      ac_preproc_ok=false
3472for ac_c_preproc_warn_flag in '' yes
3473do
3474  # Use a header file that comes with gcc, so configuring glibc
3475  # with a fresh cross-compiler works.
3476  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477  # <limits.h> exists even on freestanding compilers.
3478  # On the NeXT, cc -E runs the code through the compiler's parser,
3479  # not just through cpp. "Syntax error" is here to catch this case.
3480  cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h.  */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h.  */
3486#ifdef __STDC__
3487# include <limits.h>
3488#else
3489# include <assert.h>
3490#endif
3491		     Syntax error
3492_ACEOF
3493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3494  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3495  ac_status=$?
3496  grep -v '^ *+' conftest.er1 >conftest.err
3497  rm -f conftest.er1
3498  cat conftest.err >&5
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); } >/dev/null; then
3501  if test -s conftest.err; then
3502    ac_cpp_err=$ac_c_preproc_warn_flag
3503    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504  else
3505    ac_cpp_err=
3506  fi
3507else
3508  ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
3511  :
3512else
3513  echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516  # Broken: fails on valid input.
3517continue
3518fi
3519rm -f conftest.err conftest.$ac_ext
3520
3521  # OK, works on sane cases.  Now check whether non-existent headers
3522  # can be detected and how.
3523  cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h.  */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h.  */
3529#include <ac_nonexistent.h>
3530_ACEOF
3531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } >/dev/null; then
3539  if test -s conftest.err; then
3540    ac_cpp_err=$ac_c_preproc_warn_flag
3541    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3542  else
3543    ac_cpp_err=
3544  fi
3545else
3546  ac_cpp_err=yes
3547fi
3548if test -z "$ac_cpp_err"; then
3549  # Broken: success on invalid input.
3550continue
3551else
3552  echo "$as_me: failed program was:" >&5
3553sed 's/^/| /' conftest.$ac_ext >&5
3554
3555  # Passes both tests.
3556ac_preproc_ok=:
3557break
3558fi
3559rm -f conftest.err conftest.$ac_ext
3560
3561done
3562# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563rm -f conftest.err conftest.$ac_ext
3564if $ac_preproc_ok; then
3565  break
3566fi
3567
3568    done
3569    ac_cv_prog_CPP=$CPP
3570
3571fi
3572  CPP=$ac_cv_prog_CPP
3573else
3574  ac_cv_prog_CPP=$CPP
3575fi
3576echo "$as_me:$LINENO: result: $CPP" >&5
3577echo "${ECHO_T}$CPP" >&6
3578ac_preproc_ok=false
3579for ac_c_preproc_warn_flag in '' yes
3580do
3581  # Use a header file that comes with gcc, so configuring glibc
3582  # with a fresh cross-compiler works.
3583  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3584  # <limits.h> exists even on freestanding compilers.
3585  # On the NeXT, cc -E runs the code through the compiler's parser,
3586  # not just through cpp. "Syntax error" is here to catch this case.
3587  cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h.  */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h.  */
3593#ifdef __STDC__
3594# include <limits.h>
3595#else
3596# include <assert.h>
3597#endif
3598		     Syntax error
3599_ACEOF
3600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3601  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3602  ac_status=$?
3603  grep -v '^ *+' conftest.er1 >conftest.err
3604  rm -f conftest.er1
3605  cat conftest.err >&5
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); } >/dev/null; then
3608  if test -s conftest.err; then
3609    ac_cpp_err=$ac_c_preproc_warn_flag
3610    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611  else
3612    ac_cpp_err=
3613  fi
3614else
3615  ac_cpp_err=yes
3616fi
3617if test -z "$ac_cpp_err"; then
3618  :
3619else
3620  echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623  # Broken: fails on valid input.
3624continue
3625fi
3626rm -f conftest.err conftest.$ac_ext
3627
3628  # OK, works on sane cases.  Now check whether non-existent headers
3629  # can be detected and how.
3630  cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h.  */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h.  */
3636#include <ac_nonexistent.h>
3637_ACEOF
3638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3639  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3640  ac_status=$?
3641  grep -v '^ *+' conftest.er1 >conftest.err
3642  rm -f conftest.er1
3643  cat conftest.err >&5
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); } >/dev/null; then
3646  if test -s conftest.err; then
3647    ac_cpp_err=$ac_c_preproc_warn_flag
3648    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3649  else
3650    ac_cpp_err=
3651  fi
3652else
3653  ac_cpp_err=yes
3654fi
3655if test -z "$ac_cpp_err"; then
3656  # Broken: success on invalid input.
3657continue
3658else
3659  echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662  # Passes both tests.
3663ac_preproc_ok=:
3664break
3665fi
3666rm -f conftest.err conftest.$ac_ext
3667
3668done
3669# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3670rm -f conftest.err conftest.$ac_ext
3671if $ac_preproc_ok; then
3672  :
3673else
3674  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3675See \`config.log' for more details." >&5
3676echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3677See \`config.log' for more details." >&2;}
3678   { (exit 1); exit 1; }; }
3679fi
3680
3681ac_ext=c
3682ac_cpp='$CPP $CPPFLAGS'
3683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
3687CFLAGS=${OLD_CFLAGS}
3688
3689ac_aux_dir=
3690for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3691  if test -f $ac_dir/install-sh; then
3692    ac_aux_dir=$ac_dir
3693    ac_install_sh="$ac_aux_dir/install-sh -c"
3694    break
3695  elif test -f $ac_dir/install.sh; then
3696    ac_aux_dir=$ac_dir
3697    ac_install_sh="$ac_aux_dir/install.sh -c"
3698    break
3699  elif test -f $ac_dir/shtool; then
3700    ac_aux_dir=$ac_dir
3701    ac_install_sh="$ac_aux_dir/shtool install -c"
3702    break
3703  fi
3704done
3705if test -z "$ac_aux_dir"; then
3706  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3707echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3708   { (exit 1); exit 1; }; }
3709fi
3710ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3711ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3712ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3713
3714# Find a good install program.  We prefer a C program (faster),
3715# so one script is as good as another.  But avoid the broken or
3716# incompatible versions:
3717# SysV /etc/install, /usr/sbin/install
3718# SunOS /usr/etc/install
3719# IRIX /sbin/install
3720# AIX /bin/install
3721# AmigaOS /C/install, which installs bootblocks on floppy discs
3722# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3723# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3724# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3725# OS/2's system install, which has a completely different semantic
3726# ./install, which can be erroneously created by make from ./install.sh.
3727echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3728echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3729if test -z "$INSTALL"; then
3730if test "${ac_cv_path_install+set}" = set; then
3731  echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH
3735do
3736  IFS=$as_save_IFS
3737  test -z "$as_dir" && as_dir=.
3738  # Account for people who put trailing slashes in PATH elements.
3739case $as_dir/ in
3740  ./ | .// | /cC/* | \
3741  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3742  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3743  /usr/ucb/* ) ;;
3744  *)
3745    # OSF1 and SCO ODT 3.0 have their own names for install.
3746    # Don't use installbsd from OSF since it installs stuff as root
3747    # by default.
3748    for ac_prog in ginstall scoinst install; do
3749      for ac_exec_ext in '' $ac_executable_extensions; do
3750	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3751	  if test $ac_prog = install &&
3752	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3753	    # AIX install.  It has an incompatible calling convention.
3754	    :
3755	  elif test $ac_prog = install &&
3756	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3757	    # program-specific install script used by HP pwplus--don't use.
3758	    :
3759	  else
3760	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3761	    break 3
3762	  fi
3763	fi
3764      done
3765    done
3766    ;;
3767esac
3768done
3769
3770
3771fi
3772  if test "${ac_cv_path_install+set}" = set; then
3773    INSTALL=$ac_cv_path_install
3774  else
3775    # As a last resort, use the slow shell script.  We don't cache a
3776    # path for INSTALL within a source directory, because that will
3777    # break other packages using the cache if that directory is
3778    # removed, or if the path is relative.
3779    INSTALL=$ac_install_sh
3780  fi
3781fi
3782echo "$as_me:$LINENO: result: $INSTALL" >&5
3783echo "${ECHO_T}$INSTALL" >&6
3784
3785# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3786# It thinks the first close brace ends the variable substitution.
3787test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3788
3789test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3790
3791test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3792
3793for ac_prog in gawk mawk nawk awk
3794do
3795  # Extract the first word of "$ac_prog", so it can be a program name with args.
3796set dummy $ac_prog; ac_word=$2
3797echo "$as_me:$LINENO: checking for $ac_word" >&5
3798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799if test "${ac_cv_prog_AWK+set}" = set; then
3800  echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802  if test -n "$AWK"; then
3803  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808  IFS=$as_save_IFS
3809  test -z "$as_dir" && as_dir=.
3810  for ac_exec_ext in '' $ac_executable_extensions; do
3811  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812    ac_cv_prog_AWK="$ac_prog"
3813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814    break 2
3815  fi
3816done
3817done
3818
3819fi
3820fi
3821AWK=$ac_cv_prog_AWK
3822if test -n "$AWK"; then
3823  echo "$as_me:$LINENO: result: $AWK" >&5
3824echo "${ECHO_T}$AWK" >&6
3825else
3826  echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6
3828fi
3829
3830  test -n "$AWK" && break
3831done
3832
3833# Extract the first word of "perl", so it can be a program name with args.
3834set dummy perl; ac_word=$2
3835echo "$as_me:$LINENO: checking for $ac_word" >&5
3836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3837if test "${ac_cv_path_PERL+set}" = set; then
3838  echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840  case $PERL in
3841  [\\/]* | ?:[\\/]*)
3842  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3843  ;;
3844  *)
3845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848  IFS=$as_save_IFS
3849  test -z "$as_dir" && as_dir=.
3850  for ac_exec_ext in '' $ac_executable_extensions; do
3851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3854    break 2
3855  fi
3856done
3857done
3858
3859  ;;
3860esac
3861fi
3862PERL=$ac_cv_path_PERL
3863
3864if test -n "$PERL"; then
3865  echo "$as_me:$LINENO: result: $PERL" >&5
3866echo "${ECHO_T}$PERL" >&6
3867else
3868  echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870fi
3871
3872
3873if test -n "$ac_tool_prefix"; then
3874  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3875set dummy ${ac_tool_prefix}ar; ac_word=$2
3876echo "$as_me:$LINENO: checking for $ac_word" >&5
3877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878if test "${ac_cv_prog_AR+set}" = set; then
3879  echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881  if test -n "$AR"; then
3882  ac_cv_prog_AR="$AR" # Let the user override the test.
3883else
3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887  IFS=$as_save_IFS
3888  test -z "$as_dir" && as_dir=.
3889  for ac_exec_ext in '' $ac_executable_extensions; do
3890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891    ac_cv_prog_AR="${ac_tool_prefix}ar"
3892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893    break 2
3894  fi
3895done
3896done
3897
3898fi
3899fi
3900AR=$ac_cv_prog_AR
3901if test -n "$AR"; then
3902  echo "$as_me:$LINENO: result: $AR" >&5
3903echo "${ECHO_T}$AR" >&6
3904else
3905  echo "$as_me:$LINENO: result: no" >&5
3906echo "${ECHO_T}no" >&6
3907fi
3908
3909fi
3910if test -z "$ac_cv_prog_AR"; then
3911  ac_ct_AR=$AR
3912  # Extract the first word of "ar", so it can be a program name with args.
3913set dummy ar; ac_word=$2
3914echo "$as_me:$LINENO: checking for $ac_word" >&5
3915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3917  echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919  if test -n "$ac_ct_AR"; then
3920  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3921else
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925  IFS=$as_save_IFS
3926  test -z "$as_dir" && as_dir=.
3927  for ac_exec_ext in '' $ac_executable_extensions; do
3928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929    ac_cv_prog_ac_ct_AR="ar"
3930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931    break 2
3932  fi
3933done
3934done
3935
3936fi
3937fi
3938ac_ct_AR=$ac_cv_prog_ac_ct_AR
3939if test -n "$ac_ct_AR"; then
3940  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3941echo "${ECHO_T}$ac_ct_AR" >&6
3942else
3943  echo "$as_me:$LINENO: result: no" >&5
3944echo "${ECHO_T}no" >&6
3945fi
3946
3947  AR=$ac_ct_AR
3948else
3949  AR="$ac_cv_prog_AR"
3950fi
3951
3952
3953# compile with optimization and without debugging by default, but
3954# allow people to set their own preference.
3955if test "x$CFLAGS" = x
3956then
3957  CFLAGS="-O ${CFLAGS}"
3958fi
3959
3960LD=ld
3961echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3962echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3963if test "${ac_cv_prog_gnu_ld+set}" = set; then
3964  echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3967if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3968  ac_cv_prog_gnu_ld=yes
3969else
3970  ac_cv_prog_gnu_ld=no
3971fi
3972fi
3973echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3974echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3975
3976
3977if test "$ac_cv_prog_gnu_ld" = "yes"; then
3978	ac_cv_gnu_ld_version=`$LD -v 2>/dev/null | head -1`
3979	echo "$as_me:$LINENO: checking GNU ld release date" >&5
3980echo $ECHO_N "checking GNU ld release date... $ECHO_C" >&6
3981		ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
3982		echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_date}" >&5
3983echo "${ECHO_T}${ac_cv_gnu_ld_date}" >&6
3984        if test -n "$ac_cv_gnu_ld_date"; then
3985           if test "$ac_cv_gnu_ld_date" -lt 20030217; then
3986              ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
3987           fi
3988        else
3989           echo "$as_me:$LINENO: checking GNU ld release version" >&5
3990echo $ECHO_N "checking GNU ld release version... $ECHO_C" >&6
3991                      ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
3992           ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1`
3993           ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2`
3994                      echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr}" >&5
3995echo "${ECHO_T}${ac_cv_gnu_ld_vernr}" >&6
3996           echo "$as_me:$LINENO: checking GNU ld release version major" >&5
3997echo $ECHO_N "checking GNU ld release version major... $ECHO_C" >&6
3998           echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr_major}" >&5
3999echo "${ECHO_T}${ac_cv_gnu_ld_vernr_major}" >&6
4000           echo "$as_me:$LINENO: checking GNU ld release version minor" >&5
4001echo $ECHO_N "checking GNU ld release version minor... $ECHO_C" >&6
4002           echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr_minor}" >&5
4003echo "${ECHO_T}${ac_cv_gnu_ld_vernr_minor}" >&6
4004           if test "$ac_cv_gnu_ld_vernr_major" -lt 2 || test "$ac_cv_gnu_ld_vernr_minor" -lt 14; then
4005             ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
4006           fi
4007        fi
4008fi
4009
4010echo "$as_me:$LINENO: checking for library containing strerror" >&5
4011echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4012if test "${ac_cv_search_strerror+set}" = set; then
4013  echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015  ac_func_search_save_LIBS=$LIBS
4016ac_cv_search_strerror=no
4017cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h.  */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h.  */
4023
4024/* Override any gcc2 internal prototype to avoid an error.  */
4025#ifdef __cplusplus
4026extern "C"
4027#endif
4028/* We use char because int might match the return type of a gcc2
4029   builtin and then its argument prototype would still apply.  */
4030char strerror ();
4031int
4032main ()
4033{
4034strerror ();
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext conftest$ac_exeext
4040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4041  (eval $ac_link) 2>conftest.er1
4042  ac_status=$?
4043  grep -v '^ *+' conftest.er1 >conftest.err
4044  rm -f conftest.er1
4045  cat conftest.err >&5
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); } &&
4048	 { ac_try='test -z "$ac_c_werror_flag"
4049			 || test ! -s conftest.err'
4050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051  (eval $ac_try) 2>&5
4052  ac_status=$?
4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054  (exit $ac_status); }; } &&
4055	 { ac_try='test -s conftest$ac_exeext'
4056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057  (eval $ac_try) 2>&5
4058  ac_status=$?
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); }; }; then
4061  ac_cv_search_strerror="none required"
4062else
4063  echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066fi
4067rm -f conftest.err conftest.$ac_objext \
4068      conftest$ac_exeext conftest.$ac_ext
4069if test "$ac_cv_search_strerror" = no; then
4070  for ac_lib in cposix; do
4071    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4072    cat >conftest.$ac_ext <<_ACEOF
4073/* confdefs.h.  */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h.  */
4078
4079/* Override any gcc2 internal prototype to avoid an error.  */
4080#ifdef __cplusplus
4081extern "C"
4082#endif
4083/* We use char because int might match the return type of a gcc2
4084   builtin and then its argument prototype would still apply.  */
4085char strerror ();
4086int
4087main ()
4088{
4089strerror ();
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094rm -f conftest.$ac_objext conftest$ac_exeext
4095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4096  (eval $ac_link) 2>conftest.er1
4097  ac_status=$?
4098  grep -v '^ *+' conftest.er1 >conftest.err
4099  rm -f conftest.er1
4100  cat conftest.err >&5
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); } &&
4103	 { ac_try='test -z "$ac_c_werror_flag"
4104			 || test ! -s conftest.err'
4105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106  (eval $ac_try) 2>&5
4107  ac_status=$?
4108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109  (exit $ac_status); }; } &&
4110	 { ac_try='test -s conftest$ac_exeext'
4111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112  (eval $ac_try) 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; }; then
4116  ac_cv_search_strerror="-l$ac_lib"
4117break
4118else
4119  echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122fi
4123rm -f conftest.err conftest.$ac_objext \
4124      conftest$ac_exeext conftest.$ac_ext
4125  done
4126fi
4127LIBS=$ac_func_search_save_LIBS
4128fi
4129echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4130echo "${ECHO_T}$ac_cv_search_strerror" >&6
4131if test "$ac_cv_search_strerror" != no; then
4132  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4133
4134fi
4135
4136
4137
4138
4139if test "x$CC" != xcc; then
4140  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4141echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4142else
4143  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4144echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4145fi
4146set dummy $CC; ac_cc=`echo $2 |
4147		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4148if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4149  echo $ECHO_N "(cached) $ECHO_C" >&6
4150else
4151  cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h.  */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h.  */
4157
4158int
4159main ()
4160{
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166# Make sure it works both with $CC and with simple cc.
4167# We do the test twice because some compilers refuse to overwrite an
4168# existing .o file with -o, though they will create one.
4169ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4170if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171  (eval $ac_try) 2>&5
4172  ac_status=$?
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); } &&
4175   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176  (eval $ac_try) 2>&5
4177  ac_status=$?
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); };
4180then
4181  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4182  if test "x$CC" != xcc; then
4183    # Test first that cc exists at all.
4184    if { ac_try='cc -c conftest.$ac_ext >&5'
4185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186  (eval $ac_try) 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }; }; then
4190      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4191      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192  (eval $ac_try) 2>&5
4193  ac_status=$?
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); } &&
4196	 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197  (eval $ac_try) 2>&5
4198  ac_status=$?
4199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200  (exit $ac_status); };
4201      then
4202	# cc works too.
4203	:
4204      else
4205	# cc exists but doesn't like -o.
4206	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4207      fi
4208    fi
4209  fi
4210else
4211  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4212fi
4213rm -f conftest*
4214
4215fi
4216if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4217  echo "$as_me:$LINENO: result: yes" >&5
4218echo "${ECHO_T}yes" >&6
4219else
4220  echo "$as_me:$LINENO: result: no" >&5
4221echo "${ECHO_T}no" >&6
4222
4223cat >>confdefs.h <<\_ACEOF
4224#define NO_MINUS_C_MINUS_O 1
4225_ACEOF
4226
4227fi
4228
4229if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4230      BROKEN_CC=
4231else
4232      BROKEN_CC=#
4233fi
4234
4235
4236echo "$as_me:$LINENO: checking that the C compiler understands -Werror" >&5
4237echo $ECHO_N "checking that the C compiler understands -Werror... $ECHO_C" >&6
4238if test "${samba_cv_HAVE_Werror+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241
4242
4243	old_CFLAGS="$CFLAGS";
4244	CFLAGS="-Werror";
4245	export CFLAGS;
4246	old_CPPFLAGS="$CPPFLAGS";
4247	CPPFLAGS="$CPPFLAGS";
4248	export CPPFLAGS;
4249	old_LDFLAGS="$LDFLAGS";
4250	LDFLAGS="$LDFLAGS";
4251	export LDFLAGS;
4252	if test "$cross_compiling" = yes; then
4253  samba_cv_HAVE_Werror=cross
4254else
4255  cat >conftest.$ac_ext <<_ACEOF
4256/* confdefs.h.  */
4257_ACEOF
4258cat confdefs.h >>conftest.$ac_ext
4259cat >>conftest.$ac_ext <<_ACEOF
4260/* end confdefs.h.  */
4261
4262  int main(void)
4263  {
4264  	return 0;
4265  }
4266_ACEOF
4267rm -f conftest$ac_exeext
4268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269  (eval $ac_link) 2>&5
4270  ac_status=$?
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274  (eval $ac_try) 2>&5
4275  ac_status=$?
4276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277  (exit $ac_status); }; }; then
4278  samba_cv_HAVE_Werror=yes
4279else
4280  echo "$as_me: program exited with status $ac_status" >&5
4281echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284( exit $ac_status )
4285samba_cv_HAVE_Werror=no
4286fi
4287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4288fi;
4289	CFLAGS="$old_CFLAGS";
4290	old_CFLAGS="";
4291	export CFLAGS;
4292	CPPFLAGS="$old_CPPFLAGS";
4293	old_CPPFLAGS="";
4294	export CPPFLAGS;
4295	LDFLAGS="$old_LDFLAGS";
4296	old_LDFLAGS="";
4297	export LDFLAGS;
4298
4299fi
4300echo "$as_me:$LINENO: result: $samba_cv_HAVE_Werror" >&5
4301echo "${ECHO_T}$samba_cv_HAVE_Werror" >&6
4302if test x"$samba_cv_HAVE_Werror" = x"yes"; then
4303   Werror_FLAGS="-Werror"
4304else
4305echo "$as_me:$LINENO: checking that the C compiler understands -w2" >&5
4306echo $ECHO_N "checking that the C compiler understands -w2... $ECHO_C" >&6
4307if test "${samba_cv_HAVE_w2+set}" = set; then
4308  echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310
4311
4312	old_CFLAGS="$CFLAGS";
4313	CFLAGS="-w2";
4314	export CFLAGS;
4315	old_CPPFLAGS="$CPPFLAGS";
4316	CPPFLAGS="$CPPFLAGS";
4317	export CPPFLAGS;
4318	old_LDFLAGS="$LDFLAGS";
4319	LDFLAGS="$LDFLAGS";
4320	export LDFLAGS;
4321	if test "$cross_compiling" = yes; then
4322  samba_cv_HAVE_w2=cross
4323else
4324  cat >conftest.$ac_ext <<_ACEOF
4325/* confdefs.h.  */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h.  */
4330
4331  int main(void)
4332  {
4333  	return 0;
4334  }
4335_ACEOF
4336rm -f conftest$ac_exeext
4337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338  (eval $ac_link) 2>&5
4339  ac_status=$?
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343  (eval $ac_try) 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }; }; then
4347  samba_cv_HAVE_w2=yes
4348else
4349  echo "$as_me: program exited with status $ac_status" >&5
4350echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353( exit $ac_status )
4354samba_cv_HAVE_w2=no
4355fi
4356rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357fi;
4358	CFLAGS="$old_CFLAGS";
4359	old_CFLAGS="";
4360	export CFLAGS;
4361	CPPFLAGS="$old_CPPFLAGS";
4362	old_CPPFLAGS="";
4363	export CPPFLAGS;
4364	LDFLAGS="$old_LDFLAGS";
4365	old_LDFLAGS="";
4366	export LDFLAGS;
4367
4368fi
4369echo "$as_me:$LINENO: result: $samba_cv_HAVE_w2" >&5
4370echo "${ECHO_T}$samba_cv_HAVE_w2" >&6
4371if test x"$samba_cv_HAVE_w2" = x"yes"; then
4372   Werror_FLAGS="-w2"
4373fi
4374fi
4375
4376echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
4377echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
4378if test "${samba_cv_volatile+set}" = set; then
4379  echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381
4382    cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h.  */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h.  */
4388#include <sys/types.h>
4389int
4390main ()
4391{
4392volatile int i = 0
4393  ;
4394  return 0;
4395}
4396_ACEOF
4397rm -f conftest.$ac_objext
4398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399  (eval $ac_compile) 2>conftest.er1
4400  ac_status=$?
4401  grep -v '^ *+' conftest.er1 >conftest.err
4402  rm -f conftest.er1
4403  cat conftest.err >&5
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); } &&
4406	 { ac_try='test -z "$ac_c_werror_flag"
4407			 || test ! -s conftest.err'
4408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409  (eval $ac_try) 2>&5
4410  ac_status=$?
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); }; } &&
4413	 { ac_try='test -s conftest.$ac_objext'
4414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415  (eval $ac_try) 2>&5
4416  ac_status=$?
4417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418  (exit $ac_status); }; }; then
4419  samba_cv_volatile=yes
4420else
4421  echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424samba_cv_volatile=no
4425fi
4426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4427fi
4428echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
4429echo "${ECHO_T}$samba_cv_volatile" >&6
4430if test x"$samba_cv_volatile" = x"yes"; then
4431
4432cat >>confdefs.h <<\_ACEOF
4433#define HAVE_VOLATILE 1
4434_ACEOF
4435
4436fi
4437
4438UNAME_S=`(uname -s) 2>/dev/null` || UNAME_S="unknown"
4439echo "$as_me:$LINENO: checking uname -s" >&5
4440echo $ECHO_N "checking uname -s... $ECHO_C" >&6
4441echo "$as_me:$LINENO: result: ${UNAME_S}" >&5
4442echo "${ECHO_T}${UNAME_S}" >&6
4443
4444UNAME_R=`(uname -r) 2>/dev/null` || UNAME_R="unknown"
4445echo "$as_me:$LINENO: checking uname -r" >&5
4446echo $ECHO_N "checking uname -r... $ECHO_C" >&6
4447echo "$as_me:$LINENO: result: ${UNAME_R}" >&5
4448echo "${ECHO_T}${UNAME_R}" >&6
4449
4450UNAME_M=`(uname -m) 2>/dev/null` || UNAME_M="unknown"
4451echo "$as_me:$LINENO: checking uname -m" >&5
4452echo $ECHO_N "checking uname -m... $ECHO_C" >&6
4453echo "$as_me:$LINENO: result: ${UNAME_M}" >&5
4454echo "${ECHO_T}${UNAME_M}" >&6
4455
4456UNAME_P=`(uname -p) 2>/dev/null` || UNAME_P="unknown"
4457echo "$as_me:$LINENO: checking uname -p" >&5
4458echo $ECHO_N "checking uname -p... $ECHO_C" >&6
4459echo "$as_me:$LINENO: result: ${UNAME_P}" >&5
4460echo "${ECHO_T}${UNAME_P}" >&6
4461
4462# Make sure we can run config.sub.
4463$ac_config_sub sun4 >/dev/null 2>&1 ||
4464  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4465echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4466   { (exit 1); exit 1; }; }
4467
4468echo "$as_me:$LINENO: checking build system type" >&5
4469echo $ECHO_N "checking build system type... $ECHO_C" >&6
4470if test "${ac_cv_build+set}" = set; then
4471  echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473  ac_cv_build_alias=$build_alias
4474test -z "$ac_cv_build_alias" &&
4475  ac_cv_build_alias=`$ac_config_guess`
4476test -z "$ac_cv_build_alias" &&
4477  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4478echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4479   { (exit 1); exit 1; }; }
4480ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4481  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4482echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4483   { (exit 1); exit 1; }; }
4484
4485fi
4486echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4487echo "${ECHO_T}$ac_cv_build" >&6
4488build=$ac_cv_build
4489build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4490build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4491build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4492
4493
4494echo "$as_me:$LINENO: checking host system type" >&5
4495echo $ECHO_N "checking host system type... $ECHO_C" >&6
4496if test "${ac_cv_host+set}" = set; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  ac_cv_host_alias=$host_alias
4500test -z "$ac_cv_host_alias" &&
4501  ac_cv_host_alias=$ac_cv_build_alias
4502ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4503  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4504echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4505   { (exit 1); exit 1; }; }
4506
4507fi
4508echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4509echo "${ECHO_T}$ac_cv_host" >&6
4510host=$ac_cv_host
4511host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4512host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4513host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4514
4515
4516echo "$as_me:$LINENO: checking target system type" >&5
4517echo $ECHO_N "checking target system type... $ECHO_C" >&6
4518if test "${ac_cv_target+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521  ac_cv_target_alias=$target_alias
4522test "x$ac_cv_target_alias" = "x" &&
4523  ac_cv_target_alias=$ac_cv_host_alias
4524ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
4525  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
4526echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
4527   { (exit 1); exit 1; }; }
4528
4529fi
4530echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4531echo "${ECHO_T}$ac_cv_target" >&6
4532target=$ac_cv_target
4533target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4534target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4535target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4536
4537
4538# The aliases save the names the user supplied, while $host etc.
4539# will get canonicalized.
4540test -n "$target_alias" &&
4541  test "$program_prefix$program_suffix$program_transform_name" = \
4542    NONENONEs,x,x, &&
4543  program_prefix=${target_alias}-
4544
4545  case "$host_os" in
4546	*irix6*) cat >> confdefs.h <<\EOF
4547#include <standards.h>
4548EOF
4549
4550	;;
4551esac
4552
4553
4554
4555    echo "$as_me:$LINENO: checking config.cache system type" >&5
4556echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
4557    if { test x"${ac_cv_host_system_type+set}" = x"set" &&
4558         test x"$ac_cv_host_system_type" != x"$host"; } ||
4559       { test x"${ac_cv_build_system_type+set}" = x"set" &&
4560         test x"$ac_cv_build_system_type" != x"$build"; } ||
4561       { test x"${ac_cv_target_system_type+set}" = x"set" &&
4562         test x"$ac_cv_target_system_type" != x"$target"; }; then
4563	echo "$as_me:$LINENO: result: different" >&5
4564echo "${ECHO_T}different" >&6
4565	{ { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
4566echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
4567   { (exit 1); exit 1; }; }
4568    else
4569	echo "$as_me:$LINENO: result: same" >&5
4570echo "${ECHO_T}same" >&6
4571    fi
4572    ac_cv_host_system_type="$host"
4573    ac_cv_build_system_type="$build"
4574    ac_cv_target_system_type="$target"
4575
4576
4577DYNEXP=
4578
4579default_static_modules="pdb_smbpasswd pdb_tdbsam rpc_lsa rpc_samr rpc_reg rpc_lsa_ds rpc_wks rpc_net rpc_dfs rpc_srv rpc_spoolss auth_rhosts auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin"
4580
4581default_shared_modules="vfs_recycle vfs_audit vfs_extd_audit vfs_full_audit vfs_netatalk vfs_fake_perms vfs_default_quota vfs_readonly vfs_cap vfs_expand_msdfs vfs_shadow_copy charset_CP850 charset_CP437"
4582
4583if test "x$developer" = xyes; then
4584   default_static_modules="$default_static_modules rpc_echo"
4585   default_shared_modules="$default_shared_modules charset_weird"
4586fi
4587
4588#
4589# Config CPPFLAG settings for strange OS's that must be set
4590# before other tests. Do NOT invoke AC_CHECK_HEADERS within this
4591# case statement; its first reference must be unconditional.
4592#
4593case "$host_os" in
4594# Try to work out if this is the native HPUX compiler that uses the -Ae flag.
4595    *hpux*)
4596
4597      echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
4598echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
4599if test "${ac_cv_prog_cc_Ae+set}" = set; then
4600  echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602  echo 'void f(){}' > conftest.c
4603if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
4604  ac_cv_prog_cc_Ae=yes
4605else
4606  ac_cv_prog_cc_Ae=no
4607fi
4608rm -f conftest*
4609
4610fi
4611echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
4612echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
4613      # mmap on HPUX is completely broken...
4614
4615cat >>confdefs.h <<\_ACEOF
4616#define MMAP_BLACKLIST 1
4617_ACEOF
4618
4619      if test $ac_cv_prog_cc_Ae = yes; then
4620        CPPFLAGS="$CPPFLAGS -Ae"
4621      fi
4622#
4623# Defines needed for HPUX support.
4624# HPUX has bigcrypt but (sometimes?) doesn't use it for
4625# password hashing - hence the USE_BOTH_CRYPT_CALLS define.
4626#
4627      case `uname -r` in
4628			*9*|*10*)
4629				CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
4630
4631cat >>confdefs.h <<\_ACEOF
4632#define USE_BOTH_CRYPT_CALLS 1
4633_ACEOF
4634
4635
4636cat >>confdefs.h <<\_ACEOF
4637#define _HPUX_SOURCE 1
4638_ACEOF
4639
4640
4641cat >>confdefs.h <<\_ACEOF
4642#define _POSIX_SOURCE 1
4643_ACEOF
4644
4645
4646cat >>confdefs.h <<\_ACEOF
4647#define _ALIGNMENT_REQUIRED 1
4648_ACEOF
4649
4650
4651cat >>confdefs.h <<\_ACEOF
4652#define _MAX_ALIGNMENT 4
4653_ACEOF
4654
4655				;;
4656			*11*)
4657				CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
4658
4659cat >>confdefs.h <<\_ACEOF
4660#define USE_BOTH_CRYPT_CALLS 1
4661_ACEOF
4662
4663
4664cat >>confdefs.h <<\_ACEOF
4665#define _HPUX_SOURCE 1
4666_ACEOF
4667
4668
4669cat >>confdefs.h <<\_ACEOF
4670#define _POSIX_SOURCE 1
4671_ACEOF
4672
4673
4674cat >>confdefs.h <<\_ACEOF
4675#define _LARGEFILE64_SOURCE 1
4676_ACEOF
4677
4678
4679cat >>confdefs.h <<\_ACEOF
4680#define _ALIGNMENT_REQUIRED 1
4681_ACEOF
4682
4683
4684cat >>confdefs.h <<\_ACEOF
4685#define _MAX_ALIGNMENT 4
4686_ACEOF
4687
4688				;;
4689      esac
4690      ;;
4691
4692#
4693# CRAY Unicos has broken const handling
4694       *unicos*)
4695	  echo "$as_me:$LINENO: result: disabling const" >&5
4696echo "${ECHO_T}disabling const" >&6
4697	  CPPFLAGS="$CPPFLAGS -Dconst="
4698	  ;;
4699
4700#
4701# AIX4.x doesn't even admit to having large
4702# files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
4703#
4704    *aix4*)
4705	  echo "$as_me:$LINENO: result: enabling large file support" >&5
4706echo "${ECHO_T}enabling large file support" >&6
4707      CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
4708
4709cat >>confdefs.h <<\_ACEOF
4710#define _LARGE_FILES 1
4711_ACEOF
4712
4713      ;;
4714#
4715# Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
4716# to the existance of large files..
4717# Note that -D_LARGEFILE64_SOURCE is different from the Sun
4718# recommendations on large file support, however it makes the
4719# compile work using gcc 2.7 and 2.8, whereas using the Sun
4720# recommendation makes the compile fail on gcc2.7. JRA.
4721#
4722# Solaris uses SYSV printing.  Make sure to set that here.  --jerry
4723#
4724	*solaris*)
4725
4726cat >>confdefs.h <<\_ACEOF
4727#define SYSV 1
4728_ACEOF
4729
4730		case `uname -r` in
4731			5.0|5.0.*|5.1|5.1.*|5.2|5.2.*|5.3|5.3.*|5.5|5.5.*)
4732	  			echo "$as_me:$LINENO: result: no large file support" >&5
4733echo "${ECHO_T}no large file support" >&6
4734				;;
4735			5.*)
4736			echo "$as_me:$LINENO: result: enabling large file support" >&5
4737echo "${ECHO_T}enabling large file support" >&6
4738			if test "$ac_cv_c_compiler_gnu" = yes; then
4739				${CC-cc} -v >conftest.c 2>&1
4740				ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
4741				rm -fr conftest.c
4742				case "$ac_cv_gcc_compiler_version_number" in
4743					*"gcc version 2.6"*|*"gcc version 2.7"*)
4744						CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -D_REENTRANT"
4745						LDFLAGS="$LDFLAGS -lthread"
4746
4747cat >>confdefs.h <<\_ACEOF
4748#define _LARGEFILE64_SOURCE 1
4749_ACEOF
4750
4751						;;
4752					*)
4753						CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
4754						LDFLAGS="$LDFLAGS -lthread"
4755
4756cat >>confdefs.h <<\_ACEOF
4757#define _LARGEFILE64_SOURCE 1
4758_ACEOF
4759
4760
4761cat >>confdefs.h <<\_ACEOF
4762#define _FILE_OFFSET_BITS 64
4763_ACEOF
4764
4765						;;
4766				esac
4767			else
4768				CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
4769				LDFLAGS="$LDFLAGS -lthread"
4770
4771cat >>confdefs.h <<\_ACEOF
4772#define _LARGEFILE64_SOURCE 1
4773_ACEOF
4774
4775
4776cat >>confdefs.h <<\_ACEOF
4777#define _FILE_OFFSET_BITS 64
4778_ACEOF
4779
4780			fi
4781			;;
4782		esac
4783		;;
4784#
4785# IRIX uses SYSV printing.  Make sure to set that here
4786#
4787	*irix*)
4788
4789cat >>confdefs.h <<\_ACEOF
4790#define SYSV 1
4791_ACEOF
4792
4793		;;
4794	*freebsd*|*DragonFly*)
4795
4796cat >>confdefs.h <<\_ACEOF
4797#define FREEBSD 1
4798_ACEOF
4799
4800		;;
4801#
4802# VOS may need to have POSIX support and System V compatibility enabled.
4803#
4804    *vos*)
4805    case "$CPPFLAGS" in
4806	  *-D_POSIX_C_SOURCE*)
4807		;;
4808	  *)
4809		CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
4810
4811cat >>confdefs.h <<\_ACEOF
4812#define _POSIX_C_SOURCE 200112L
4813_ACEOF
4814
4815		;;
4816    esac
4817    case "$CPPFLAGS" in
4818	  *-D_SYSV*|*-D_SVID_SOURCE*)
4819		;;
4820	  *)
4821		CPPFLAGS="$CPPFLAGS -D_SYSV"
4822
4823cat >>confdefs.h <<\_ACEOF
4824#define _SYSV 1
4825_ACEOF
4826
4827    esac
4828    ;;
4829#
4830# Tests needed for SINIX large file support.
4831#
4832    *sysv4*)
4833      if test $host = mips-sni-sysv4 ; then
4834        echo "$as_me:$LINENO: checking for LFS support" >&5
4835echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
4836        old_CPPFLAGS="$CPPFLAGS"
4837        CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
4838        if test "$cross_compiling" = yes; then
4839  SINIX_LFS_SUPPORT=cross
4840else
4841  cat >conftest.$ac_ext <<_ACEOF
4842/* confdefs.h.  */
4843_ACEOF
4844cat confdefs.h >>conftest.$ac_ext
4845cat >>conftest.$ac_ext <<_ACEOF
4846/* end confdefs.h.  */
4847
4848#include <unistd.h>
4849main () {
4850#if _LFS64_LARGEFILE == 1
4851exit(0);
4852#else
4853exit(1);
4854#endif
4855}
4856_ACEOF
4857rm -f conftest$ac_exeext
4858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859  (eval $ac_link) 2>&5
4860  ac_status=$?
4861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864  (eval $ac_try) 2>&5
4865  ac_status=$?
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); }; }; then
4868  SINIX_LFS_SUPPORT=yes
4869else
4870  echo "$as_me: program exited with status $ac_status" >&5
4871echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
4874( exit $ac_status )
4875SINIX_LFS_SUPPORT=no
4876fi
4877rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4878fi
4879        CPPFLAGS="$old_CPPFLAGS"
4880        if test x$SINIX_LFS_SUPPORT = xyes ; then
4881          CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
4882
4883cat >>confdefs.h <<\_ACEOF
4884#define _LARGEFILE64_SOURCE 1
4885_ACEOF
4886
4887          CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
4888          LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
4889          LIBS="`getconf LFS64_LIBS` $LIBS"
4890        fi
4891      echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
4892echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
4893      fi
4894    ;;
4895
4896# Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
4897#
4898    *linux*)
4899        echo "$as_me:$LINENO: checking for LFS support" >&5
4900echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
4901        old_CPPFLAGS="$CPPFLAGS"
4902        CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
4903       if test "$cross_compiling" = yes; then
4904  LINUX_LFS_SUPPORT=cross
4905else
4906  cat >conftest.$ac_ext <<_ACEOF
4907/* confdefs.h.  */
4908_ACEOF
4909cat confdefs.h >>conftest.$ac_ext
4910cat >>conftest.$ac_ext <<_ACEOF
4911/* end confdefs.h.  */
4912
4913#include <unistd.h>
4914#include <sys/utsname.h>
4915#include <string.h>
4916#include <stdlib.h>
4917main() {
4918#if _LFS64_LARGEFILE == 1
4919       struct utsname uts;
4920       char *release;
4921       int major, minor;
4922
4923       /* Ensure this is glibc 2.2 or higher */
4924#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
4925       int libc_major = __GLIBC__;
4926       int libc_minor = __GLIBC_MINOR__;
4927
4928       if (libc_major < 2)
4929              exit(1);
4930       if (libc_minor < 2)
4931              exit(1);
4932#endif
4933
4934       /* Ensure this is kernel 2.4 or higher */
4935
4936       uname(&uts);
4937       release = strdup(uts.release);
4938       major = atoi(strsep(&release, "."));
4939       minor = atoi(strsep(&release, "."));
4940
4941       if (major > 2 || (major == 2 && minor > 3))
4942               exit(0);
4943       exit(1);
4944#else
4945       exit(1);
4946#endif
4947}
4948
4949_ACEOF
4950rm -f conftest$ac_exeext
4951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4952  (eval $ac_link) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957  (eval $ac_try) 2>&5
4958  ac_status=$?
4959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960  (exit $ac_status); }; }; then
4961  LINUX_LFS_SUPPORT=yes
4962else
4963  echo "$as_me: program exited with status $ac_status" >&5
4964echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967( exit $ac_status )
4968LINUX_LFS_SUPPORT=no
4969fi
4970rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4971fi
4972	CPPFLAGS="$old_CPPFLAGS"
4973	if test x$LINUX_LFS_SUPPORT = xyes ; then
4974		CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
4975
4976cat >>confdefs.h <<\_ACEOF
4977#define _LARGEFILE64_SOURCE 1
4978_ACEOF
4979
4980
4981cat >>confdefs.h <<\_ACEOF
4982#define _FILE_OFFSET_BITS 64
4983_ACEOF
4984
4985
4986cat >>confdefs.h <<\_ACEOF
4987#define _GNU_SOURCE 1
4988_ACEOF
4989
4990	fi
4991	echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
4992echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
4993	;;
4994
4995#
4996# MacOS X is the *only* system that uses compose character in utf8. This
4997# is so horribly broken....
4998#
4999    *darwin*)
5000
5001cat >>confdefs.h <<\_ACEOF
5002#define BROKEN_UNICODE_COMPOSE_CHARACTERS 1
5003_ACEOF
5004
5005# Add Fink directories for various packages, like dlcompat.
5006# Note: iconv does that explicitly below, but other packages
5007# don't.
5008	CPPFLAGS="$CPPFLAGS -I/sw/include"
5009	LDFLAGS="$LDFLAGS -L/sw/lib"
5010
5011# If we have dlsym_prepend_underscore (from Fink's dlcompat),
5012# use that instead of plain dlsym.
5013
5014
5015echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5016echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5017if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5018  echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020  ac_check_lib_save_LIBS=$LIBS
5021LIBS="-ldl  $LIBS"
5022cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028
5029/* Override any gcc2 internal prototype to avoid an error.  */
5030#ifdef __cplusplus
5031extern "C"
5032#endif
5033/* We use char because int might match the return type of a gcc2
5034   builtin and then its argument prototype would still apply.  */
5035char dlopen ();
5036int
5037main ()
5038{
5039dlopen ();
5040  ;
5041  return 0;
5042}
5043_ACEOF
5044rm -f conftest.$ac_objext conftest$ac_exeext
5045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5046  (eval $ac_link) 2>conftest.er1
5047  ac_status=$?
5048  grep -v '^ *+' conftest.er1 >conftest.err
5049  rm -f conftest.er1
5050  cat conftest.err >&5
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); } &&
5053	 { ac_try='test -z "$ac_c_werror_flag"
5054			 || test ! -s conftest.err'
5055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056  (eval $ac_try) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; } &&
5060	 { ac_try='test -s conftest$ac_exeext'
5061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062  (eval $ac_try) 2>&5
5063  ac_status=$?
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); }; }; then
5066  ac_cv_lib_dl_dlopen=yes
5067else
5068  echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071ac_cv_lib_dl_dlopen=no
5072fi
5073rm -f conftest.err conftest.$ac_objext \
5074      conftest$ac_exeext conftest.$ac_ext
5075LIBS=$ac_check_lib_save_LIBS
5076fi
5077echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5078echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5079if test $ac_cv_lib_dl_dlopen = yes; then
5080  cat >>confdefs.h <<_ACEOF
5081#define HAVE_LIBDL 1
5082_ACEOF
5083
5084  LIBS="-ldl $LIBS"
5085
5086fi
5087
5088
5089for ac_func in dlsym_prepend_underscore
5090do
5091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5092echo "$as_me:$LINENO: checking for $ac_func" >&5
5093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5094if eval "test \"\${$as_ac_var+set}\" = set"; then
5095  echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097  cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h.  */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h.  */
5103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5104   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5105#define $ac_func innocuous_$ac_func
5106
5107/* System header to define __stub macros and hopefully few prototypes,
5108    which can conflict with char $ac_func (); below.
5109    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110    <limits.h> exists even on freestanding compilers.  */
5111
5112#ifdef __STDC__
5113# include <limits.h>
5114#else
5115# include <assert.h>
5116#endif
5117
5118#undef $ac_func
5119
5120/* Override any gcc2 internal prototype to avoid an error.  */
5121#ifdef __cplusplus
5122extern "C"
5123{
5124#endif
5125/* We use char because int might match the return type of a gcc2
5126   builtin and then its argument prototype would still apply.  */
5127char $ac_func ();
5128/* The GNU C library defines this for functions which it implements
5129    to always fail with ENOSYS.  Some functions are actually named
5130    something starting with __ and the normal name is an alias.  */
5131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5132choke me
5133#else
5134char (*f) () = $ac_func;
5135#endif
5136#ifdef __cplusplus
5137}
5138#endif
5139
5140int
5141main ()
5142{
5143return f != $ac_func;
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148rm -f conftest.$ac_objext conftest$ac_exeext
5149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150  (eval $ac_link) 2>conftest.er1
5151  ac_status=$?
5152  grep -v '^ *+' conftest.er1 >conftest.err
5153  rm -f conftest.er1
5154  cat conftest.err >&5
5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156  (exit $ac_status); } &&
5157	 { ac_try='test -z "$ac_c_werror_flag"
5158			 || test ! -s conftest.err'
5159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160  (eval $ac_try) 2>&5
5161  ac_status=$?
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); }; } &&
5164	 { ac_try='test -s conftest$ac_exeext'
5165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166  (eval $ac_try) 2>&5
5167  ac_status=$?
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); }; }; then
5170  eval "$as_ac_var=yes"
5171else
5172  echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
5175eval "$as_ac_var=no"
5176fi
5177rm -f conftest.err conftest.$ac_objext \
5178      conftest$ac_exeext conftest.$ac_ext
5179fi
5180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5182if test `eval echo '${'$as_ac_var'}'` = yes; then
5183  cat >>confdefs.h <<_ACEOF
5184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5185_ACEOF
5186 CPPFLAGS="$CPPFLAGS -Ddlsym=dlsym_prepend_underscore"
5187fi
5188done
5189
5190
5191# Add a system specific charset module.
5192
5193	default_shared_modules="$default_shared_modules charset_macosxfs"
5194	;;
5195    *hurd*)
5196        echo "$as_me:$LINENO: checking for LFS support" >&5
5197echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
5198        old_CPPFLAGS="$CPPFLAGS"
5199        CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
5200        if test "$cross_compiling" = yes; then
5201  GLIBC_LFS_SUPPORT=cross
5202else
5203  cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h.  */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
5208/* end confdefs.h.  */
5209
5210#include <unistd.h>
5211main () {
5212#if _LFS64_LARGEFILE == 1
5213exit(0);
5214#else
5215exit(1);
5216#endif
5217}
5218_ACEOF
5219rm -f conftest$ac_exeext
5220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221  (eval $ac_link) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226  (eval $ac_try) 2>&5
5227  ac_status=$?
5228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229  (exit $ac_status); }; }; then
5230  GLIBC_LFS_SUPPORT=yes
5231else
5232  echo "$as_me: program exited with status $ac_status" >&5
5233echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236( exit $ac_status )
5237GLIBC_LFS_SUPPORT=no
5238fi
5239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5240fi
5241        CPPFLAGS="$old_CPPFLAGS"
5242        if test x$GLIBC_LFS_SUPPORT = xyes ; then
5243          CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
5244
5245cat >>confdefs.h <<\_ACEOF
5246#define _LARGEFILE64_SOURCE 1
5247_ACEOF
5248
5249
5250cat >>confdefs.h <<\_ACEOF
5251#define _GNU_SOURCE 1
5252_ACEOF
5253
5254        fi
5255      echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
5256echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
5257    ;;
5258
5259esac
5260
5261echo "$as_me:$LINENO: checking for inline" >&5
5262echo $ECHO_N "checking for inline... $ECHO_C" >&6
5263if test "${ac_cv_c_inline+set}" = set; then
5264  echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266  ac_cv_c_inline=no
5267for ac_kw in inline __inline__ __inline; do
5268  cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h.  */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h.  */
5274#ifndef __cplusplus
5275typedef int foo_t;
5276static $ac_kw foo_t static_foo () {return 0; }
5277$ac_kw foo_t foo () {return 0; }
5278#endif
5279
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283  (eval $ac_compile) 2>conftest.er1
5284  ac_status=$?
5285  grep -v '^ *+' conftest.er1 >conftest.err
5286  rm -f conftest.er1
5287  cat conftest.err >&5
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); } &&
5290	 { ac_try='test -z "$ac_c_werror_flag"
5291			 || test ! -s conftest.err'
5292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293  (eval $ac_try) 2>&5
5294  ac_status=$?
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); }; } &&
5297	 { ac_try='test -s conftest.$ac_objext'
5298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299  (eval $ac_try) 2>&5
5300  ac_status=$?
5301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302  (exit $ac_status); }; }; then
5303  ac_cv_c_inline=$ac_kw; break
5304else
5305  echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308fi
5309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310done
5311
5312fi
5313echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5314echo "${ECHO_T}$ac_cv_c_inline" >&6
5315
5316
5317case $ac_cv_c_inline in
5318  inline | yes) ;;
5319  *)
5320    case $ac_cv_c_inline in
5321      no) ac_val=;;
5322      *) ac_val=$ac_cv_c_inline;;
5323    esac
5324    cat >>confdefs.h <<_ACEOF
5325#ifndef __cplusplus
5326#define inline $ac_val
5327#endif
5328_ACEOF
5329    ;;
5330esac
5331
5332
5333echo "$as_me:$LINENO: checking for egrep" >&5
5334echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5335if test "${ac_cv_prog_egrep+set}" = set; then
5336  echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5339    then ac_cv_prog_egrep='grep -E'
5340    else ac_cv_prog_egrep='egrep'
5341    fi
5342fi
5343echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5344echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5345 EGREP=$ac_cv_prog_egrep
5346
5347
5348echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5349echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5350if test "${ac_cv_header_stdc+set}" = set; then
5351  echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353  cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h.  */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h.  */
5359#include <stdlib.h>
5360#include <stdarg.h>
5361#include <string.h>
5362#include <float.h>
5363
5364int
5365main ()
5366{
5367
5368  ;
5369  return 0;
5370}
5371_ACEOF
5372rm -f conftest.$ac_objext
5373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374  (eval $ac_compile) 2>conftest.er1
5375  ac_status=$?
5376  grep -v '^ *+' conftest.er1 >conftest.err
5377  rm -f conftest.er1
5378  cat conftest.err >&5
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); } &&
5381	 { ac_try='test -z "$ac_c_werror_flag"
5382			 || test ! -s conftest.err'
5383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384  (eval $ac_try) 2>&5
5385  ac_status=$?
5386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387  (exit $ac_status); }; } &&
5388	 { ac_try='test -s conftest.$ac_objext'
5389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390  (eval $ac_try) 2>&5
5391  ac_status=$?
5392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393  (exit $ac_status); }; }; then
5394  ac_cv_header_stdc=yes
5395else
5396  echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399ac_cv_header_stdc=no
5400fi
5401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402
5403if test $ac_cv_header_stdc = yes; then
5404  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5405  cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h.  */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h.  */
5411#include <string.h>
5412
5413_ACEOF
5414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5415  $EGREP "memchr" >/dev/null 2>&1; then
5416  :
5417else
5418  ac_cv_header_stdc=no
5419fi
5420rm -f conftest*
5421
5422fi
5423
5424if test $ac_cv_header_stdc = yes; then
5425  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5426  cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h.  */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h.  */
5432#include <stdlib.h>
5433
5434_ACEOF
5435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5436  $EGREP "free" >/dev/null 2>&1; then
5437  :
5438else
5439  ac_cv_header_stdc=no
5440fi
5441rm -f conftest*
5442
5443fi
5444
5445if test $ac_cv_header_stdc = yes; then
5446  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5447  if test "$cross_compiling" = yes; then
5448  :
5449else
5450  cat >conftest.$ac_ext <<_ACEOF
5451/* confdefs.h.  */
5452_ACEOF
5453cat confdefs.h >>conftest.$ac_ext
5454cat >>conftest.$ac_ext <<_ACEOF
5455/* end confdefs.h.  */
5456#include <ctype.h>
5457#if ((' ' & 0x0FF) == 0x020)
5458# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5459# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5460#else
5461# define ISLOWER(c) \
5462		   (('a' <= (c) && (c) <= 'i') \
5463		     || ('j' <= (c) && (c) <= 'r') \
5464		     || ('s' <= (c) && (c) <= 'z'))
5465# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5466#endif
5467
5468#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5469int
5470main ()
5471{
5472  int i;
5473  for (i = 0; i < 256; i++)
5474    if (XOR (islower (i), ISLOWER (i))
5475	|| toupper (i) != TOUPPER (i))
5476      exit(2);
5477  exit (0);
5478}
5479_ACEOF
5480rm -f conftest$ac_exeext
5481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482  (eval $ac_link) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487  (eval $ac_try) 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }; }; then
5491  :
5492else
5493  echo "$as_me: program exited with status $ac_status" >&5
5494echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497( exit $ac_status )
5498ac_cv_header_stdc=no
5499fi
5500rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5501fi
5502fi
5503fi
5504echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5505echo "${ECHO_T}$ac_cv_header_stdc" >&6
5506if test $ac_cv_header_stdc = yes; then
5507
5508cat >>confdefs.h <<\_ACEOF
5509#define STDC_HEADERS 1
5510_ACEOF
5511
5512fi
5513
5514
5515
5516
5517
5518
5519ac_header_dirent=no
5520for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5521  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5522echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5523echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5524if eval "test \"\${$as_ac_Header+set}\" = set"; then
5525  echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527  cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h.  */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h.  */
5533#include <sys/types.h>
5534#include <$ac_hdr>
5535
5536int
5537main ()
5538{
5539if ((DIR *) 0)
5540return 0;
5541  ;
5542  return 0;
5543}
5544_ACEOF
5545rm -f conftest.$ac_objext
5546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547  (eval $ac_compile) 2>conftest.er1
5548  ac_status=$?
5549  grep -v '^ *+' conftest.er1 >conftest.err
5550  rm -f conftest.er1
5551  cat conftest.err >&5
5552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553  (exit $ac_status); } &&
5554	 { ac_try='test -z "$ac_c_werror_flag"
5555			 || test ! -s conftest.err'
5556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557  (eval $ac_try) 2>&5
5558  ac_status=$?
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); }; } &&
5561	 { ac_try='test -s conftest.$ac_objext'
5562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563  (eval $ac_try) 2>&5
5564  ac_status=$?
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); }; }; then
5567  eval "$as_ac_Header=yes"
5568else
5569  echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
5572eval "$as_ac_Header=no"
5573fi
5574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5575fi
5576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5578if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579  cat >>confdefs.h <<_ACEOF
5580#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5581_ACEOF
5582
5583ac_header_dirent=$ac_hdr; break
5584fi
5585
5586done
5587# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5588if test $ac_header_dirent = dirent.h; then
5589  echo "$as_me:$LINENO: checking for library containing opendir" >&5
5590echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5591if test "${ac_cv_search_opendir+set}" = set; then
5592  echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594  ac_func_search_save_LIBS=$LIBS
5595ac_cv_search_opendir=no
5596cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602
5603/* Override any gcc2 internal prototype to avoid an error.  */
5604#ifdef __cplusplus
5605extern "C"
5606#endif
5607/* We use char because int might match the return type of a gcc2
5608   builtin and then its argument prototype would still apply.  */
5609char opendir ();
5610int
5611main ()
5612{
5613opendir ();
5614  ;
5615  return 0;
5616}
5617_ACEOF
5618rm -f conftest.$ac_objext conftest$ac_exeext
5619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620  (eval $ac_link) 2>conftest.er1
5621  ac_status=$?
5622  grep -v '^ *+' conftest.er1 >conftest.err
5623  rm -f conftest.er1
5624  cat conftest.err >&5
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); } &&
5627	 { ac_try='test -z "$ac_c_werror_flag"
5628			 || test ! -s conftest.err'
5629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630  (eval $ac_try) 2>&5
5631  ac_status=$?
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); }; } &&
5634	 { ac_try='test -s conftest$ac_exeext'
5635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636  (eval $ac_try) 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); }; }; then
5640  ac_cv_search_opendir="none required"
5641else
5642  echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645fi
5646rm -f conftest.err conftest.$ac_objext \
5647      conftest$ac_exeext conftest.$ac_ext
5648if test "$ac_cv_search_opendir" = no; then
5649  for ac_lib in dir; do
5650    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5651    cat >conftest.$ac_ext <<_ACEOF
5652/* confdefs.h.  */
5653_ACEOF
5654cat confdefs.h >>conftest.$ac_ext
5655cat >>conftest.$ac_ext <<_ACEOF
5656/* end confdefs.h.  */
5657
5658/* Override any gcc2 internal prototype to avoid an error.  */
5659#ifdef __cplusplus
5660extern "C"
5661#endif
5662/* We use char because int might match the return type of a gcc2
5663   builtin and then its argument prototype would still apply.  */
5664char opendir ();
5665int
5666main ()
5667{
5668opendir ();
5669  ;
5670  return 0;
5671}
5672_ACEOF
5673rm -f conftest.$ac_objext conftest$ac_exeext
5674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675  (eval $ac_link) 2>conftest.er1
5676  ac_status=$?
5677  grep -v '^ *+' conftest.er1 >conftest.err
5678  rm -f conftest.er1
5679  cat conftest.err >&5
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); } &&
5682	 { ac_try='test -z "$ac_c_werror_flag"
5683			 || test ! -s conftest.err'
5684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685  (eval $ac_try) 2>&5
5686  ac_status=$?
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); }; } &&
5689	 { ac_try='test -s conftest$ac_exeext'
5690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691  (eval $ac_try) 2>&5
5692  ac_status=$?
5693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); }; }; then
5695  ac_cv_search_opendir="-l$ac_lib"
5696break
5697else
5698  echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701fi
5702rm -f conftest.err conftest.$ac_objext \
5703      conftest$ac_exeext conftest.$ac_ext
5704  done
5705fi
5706LIBS=$ac_func_search_save_LIBS
5707fi
5708echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5709echo "${ECHO_T}$ac_cv_search_opendir" >&6
5710if test "$ac_cv_search_opendir" != no; then
5711  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5712
5713fi
5714
5715else
5716  echo "$as_me:$LINENO: checking for library containing opendir" >&5
5717echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5718if test "${ac_cv_search_opendir+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  ac_func_search_save_LIBS=$LIBS
5722ac_cv_search_opendir=no
5723cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h.  */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h.  */
5729
5730/* Override any gcc2 internal prototype to avoid an error.  */
5731#ifdef __cplusplus
5732extern "C"
5733#endif
5734/* We use char because int might match the return type of a gcc2
5735   builtin and then its argument prototype would still apply.  */
5736char opendir ();
5737int
5738main ()
5739{
5740opendir ();
5741  ;
5742  return 0;
5743}
5744_ACEOF
5745rm -f conftest.$ac_objext conftest$ac_exeext
5746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5747  (eval $ac_link) 2>conftest.er1
5748  ac_status=$?
5749  grep -v '^ *+' conftest.er1 >conftest.err
5750  rm -f conftest.er1
5751  cat conftest.err >&5
5752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753  (exit $ac_status); } &&
5754	 { ac_try='test -z "$ac_c_werror_flag"
5755			 || test ! -s conftest.err'
5756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757  (eval $ac_try) 2>&5
5758  ac_status=$?
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); }; } &&
5761	 { ac_try='test -s conftest$ac_exeext'
5762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763  (eval $ac_try) 2>&5
5764  ac_status=$?
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); }; }; then
5767  ac_cv_search_opendir="none required"
5768else
5769  echo "$as_me: failed program was:" >&5
5770sed 's/^/| /' conftest.$ac_ext >&5
5771
5772fi
5773rm -f conftest.err conftest.$ac_objext \
5774      conftest$ac_exeext conftest.$ac_ext
5775if test "$ac_cv_search_opendir" = no; then
5776  for ac_lib in x; do
5777    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5778    cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h.  */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h.  */
5784
5785/* Override any gcc2 internal prototype to avoid an error.  */
5786#ifdef __cplusplus
5787extern "C"
5788#endif
5789/* We use char because int might match the return type of a gcc2
5790   builtin and then its argument prototype would still apply.  */
5791char opendir ();
5792int
5793main ()
5794{
5795opendir ();
5796  ;
5797  return 0;
5798}
5799_ACEOF
5800rm -f conftest.$ac_objext conftest$ac_exeext
5801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802  (eval $ac_link) 2>conftest.er1
5803  ac_status=$?
5804  grep -v '^ *+' conftest.er1 >conftest.err
5805  rm -f conftest.er1
5806  cat conftest.err >&5
5807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808  (exit $ac_status); } &&
5809	 { ac_try='test -z "$ac_c_werror_flag"
5810			 || test ! -s conftest.err'
5811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812  (eval $ac_try) 2>&5
5813  ac_status=$?
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); }; } &&
5816	 { ac_try='test -s conftest$ac_exeext'
5817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818  (eval $ac_try) 2>&5
5819  ac_status=$?
5820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821  (exit $ac_status); }; }; then
5822  ac_cv_search_opendir="-l$ac_lib"
5823break
5824else
5825  echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828fi
5829rm -f conftest.err conftest.$ac_objext \
5830      conftest$ac_exeext conftest.$ac_ext
5831  done
5832fi
5833LIBS=$ac_func_search_save_LIBS
5834fi
5835echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5836echo "${ECHO_T}$ac_cv_search_opendir" >&6
5837if test "$ac_cv_search_opendir" != no; then
5838  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5839
5840fi
5841
5842fi
5843
5844echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5845echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5846if test "${ac_cv_header_time+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h.  */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h.  */
5855#include <sys/types.h>
5856#include <sys/time.h>
5857#include <time.h>
5858
5859int
5860main ()
5861{
5862if ((struct tm *) 0)
5863return 0;
5864  ;
5865  return 0;
5866}
5867_ACEOF
5868rm -f conftest.$ac_objext
5869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870  (eval $ac_compile) 2>conftest.er1
5871  ac_status=$?
5872  grep -v '^ *+' conftest.er1 >conftest.err
5873  rm -f conftest.er1
5874  cat conftest.err >&5
5875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876  (exit $ac_status); } &&
5877	 { ac_try='test -z "$ac_c_werror_flag"
5878			 || test ! -s conftest.err'
5879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880  (eval $ac_try) 2>&5
5881  ac_status=$?
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); }; } &&
5884	 { ac_try='test -s conftest.$ac_objext'
5885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886  (eval $ac_try) 2>&5
5887  ac_status=$?
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); }; }; then
5890  ac_cv_header_time=yes
5891else
5892  echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895ac_cv_header_time=no
5896fi
5897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898fi
5899echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5900echo "${ECHO_T}$ac_cv_header_time" >&6
5901if test $ac_cv_header_time = yes; then
5902
5903cat >>confdefs.h <<\_ACEOF
5904#define TIME_WITH_SYS_TIME 1
5905_ACEOF
5906
5907fi
5908
5909echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5910echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5911if test "${ac_cv_header_sys_wait_h+set}" = set; then
5912  echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914  cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h.  */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h.  */
5920#include <sys/types.h>
5921#include <sys/wait.h>
5922#ifndef WEXITSTATUS
5923# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5924#endif
5925#ifndef WIFEXITED
5926# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5927#endif
5928
5929int
5930main ()
5931{
5932  int s;
5933  wait (&s);
5934  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5935  ;
5936  return 0;
5937}
5938_ACEOF
5939rm -f conftest.$ac_objext
5940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941  (eval $ac_compile) 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } &&
5948	 { ac_try='test -z "$ac_c_werror_flag"
5949			 || test ! -s conftest.err'
5950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951  (eval $ac_try) 2>&5
5952  ac_status=$?
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); }; } &&
5955	 { ac_try='test -s conftest.$ac_objext'
5956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957  (eval $ac_try) 2>&5
5958  ac_status=$?
5959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960  (exit $ac_status); }; }; then
5961  ac_cv_header_sys_wait_h=yes
5962else
5963  echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966ac_cv_header_sys_wait_h=no
5967fi
5968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5969fi
5970echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5971echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5972if test $ac_cv_header_sys_wait_h = yes; then
5973
5974cat >>confdefs.h <<\_ACEOF
5975#define HAVE_SYS_WAIT_H 1
5976_ACEOF
5977
5978fi
5979
5980# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5991		  inttypes.h stdint.h unistd.h
5992do
5993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994echo "$as_me:$LINENO: checking for $ac_header" >&5
5995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997  echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999  cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h.  */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h.  */
6005$ac_includes_default
6006
6007#include <$ac_header>
6008_ACEOF
6009rm -f conftest.$ac_objext
6010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6011  (eval $ac_compile) 2>conftest.er1
6012  ac_status=$?
6013  grep -v '^ *+' conftest.er1 >conftest.err
6014  rm -f conftest.er1
6015  cat conftest.err >&5
6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); } &&
6018	 { ac_try='test -z "$ac_c_werror_flag"
6019			 || test ! -s conftest.err'
6020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021  (eval $ac_try) 2>&5
6022  ac_status=$?
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); }; } &&
6025	 { ac_try='test -s conftest.$ac_objext'
6026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027  (eval $ac_try) 2>&5
6028  ac_status=$?
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); }; }; then
6031  eval "$as_ac_Header=yes"
6032else
6033  echo "$as_me: failed program was:" >&5
6034sed 's/^/| /' conftest.$ac_ext >&5
6035
6036eval "$as_ac_Header=no"
6037fi
6038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039fi
6040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6042if test `eval echo '${'$as_ac_Header'}'` = yes; then
6043  cat >>confdefs.h <<_ACEOF
6044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045_ACEOF
6046
6047fi
6048
6049done
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h rpc/nettype.h
6060do
6061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6062if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063  echo "$as_me:$LINENO: checking for $ac_header" >&5
6064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6065if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066  echo $ECHO_N "(cached) $ECHO_C" >&6
6067fi
6068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070else
6071  # Is the header compilable?
6072echo "$as_me:$LINENO: checking $ac_header usability" >&5
6073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6074cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h.  */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h.  */
6080$ac_includes_default
6081#include <$ac_header>
6082_ACEOF
6083rm -f conftest.$ac_objext
6084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085  (eval $ac_compile) 2>conftest.er1
6086  ac_status=$?
6087  grep -v '^ *+' conftest.er1 >conftest.err
6088  rm -f conftest.er1
6089  cat conftest.err >&5
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); } &&
6092	 { ac_try='test -z "$ac_c_werror_flag"
6093			 || test ! -s conftest.err'
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); }; } &&
6099	 { ac_try='test -s conftest.$ac_objext'
6100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101  (eval $ac_try) 2>&5
6102  ac_status=$?
6103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104  (exit $ac_status); }; }; then
6105  ac_header_compiler=yes
6106else
6107  echo "$as_me: failed program was:" >&5
6108sed 's/^/| /' conftest.$ac_ext >&5
6109
6110ac_header_compiler=no
6111fi
6112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6114echo "${ECHO_T}$ac_header_compiler" >&6
6115
6116# Is the header present?
6117echo "$as_me:$LINENO: checking $ac_header presence" >&5
6118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6119cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h.  */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h.  */
6125#include <$ac_header>
6126_ACEOF
6127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6128  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6129  ac_status=$?
6130  grep -v '^ *+' conftest.er1 >conftest.err
6131  rm -f conftest.er1
6132  cat conftest.err >&5
6133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134  (exit $ac_status); } >/dev/null; then
6135  if test -s conftest.err; then
6136    ac_cpp_err=$ac_c_preproc_warn_flag
6137    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6138  else
6139    ac_cpp_err=
6140  fi
6141else
6142  ac_cpp_err=yes
6143fi
6144if test -z "$ac_cpp_err"; then
6145  ac_header_preproc=yes
6146else
6147  echo "$as_me: failed program was:" >&5
6148sed 's/^/| /' conftest.$ac_ext >&5
6149
6150  ac_header_preproc=no
6151fi
6152rm -f conftest.err conftest.$ac_ext
6153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6154echo "${ECHO_T}$ac_header_preproc" >&6
6155
6156# So?  What about this header?
6157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6158  yes:no: )
6159    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6161    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6163    ac_header_preproc=yes
6164    ;;
6165  no:yes:* )
6166    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6168    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6169echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6170    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6172    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6173echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6174    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6176    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6178    (
6179      cat <<\_ASBOX
6180## ------------------------------------------ ##
6181## Report this to the AC_PACKAGE_NAME lists.  ##
6182## ------------------------------------------ ##
6183_ASBOX
6184    ) |
6185      sed "s/^/$as_me: WARNING:     /" >&2
6186    ;;
6187esac
6188echo "$as_me:$LINENO: checking for $ac_header" >&5
6189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6190if eval "test \"\${$as_ac_Header+set}\" = set"; then
6191  echo $ECHO_N "(cached) $ECHO_C" >&6
6192else
6193  eval "$as_ac_Header=\$ac_header_preproc"
6194fi
6195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6197
6198fi
6199if test `eval echo '${'$as_ac_Header'}'` = yes; then
6200  cat >>confdefs.h <<_ACEOF
6201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6202_ACEOF
6203
6204fi
6205
6206done
6207
6208
6209
6210
6211
6212
6213
6214for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h
6215do
6216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218  echo "$as_me:$LINENO: checking for $ac_header" >&5
6219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6220if eval "test \"\${$as_ac_Header+set}\" = set"; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222fi
6223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6225else
6226  # Is the header compilable?
6227echo "$as_me:$LINENO: checking $ac_header usability" >&5
6228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6229cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h.  */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h.  */
6235$ac_includes_default
6236#include <$ac_header>
6237_ACEOF
6238rm -f conftest.$ac_objext
6239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240  (eval $ac_compile) 2>conftest.er1
6241  ac_status=$?
6242  grep -v '^ *+' conftest.er1 >conftest.err
6243  rm -f conftest.er1
6244  cat conftest.err >&5
6245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246  (exit $ac_status); } &&
6247	 { ac_try='test -z "$ac_c_werror_flag"
6248			 || test ! -s conftest.err'
6249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250  (eval $ac_try) 2>&5
6251  ac_status=$?
6252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253  (exit $ac_status); }; } &&
6254	 { ac_try='test -s conftest.$ac_objext'
6255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256  (eval $ac_try) 2>&5
6257  ac_status=$?
6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259  (exit $ac_status); }; }; then
6260  ac_header_compiler=yes
6261else
6262  echo "$as_me: failed program was:" >&5
6263sed 's/^/| /' conftest.$ac_ext >&5
6264
6265ac_header_compiler=no
6266fi
6267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6269echo "${ECHO_T}$ac_header_compiler" >&6
6270
6271# Is the header present?
6272echo "$as_me:$LINENO: checking $ac_header presence" >&5
6273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6274cat >conftest.$ac_ext <<_ACEOF
6275/* confdefs.h.  */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h.  */
6280#include <$ac_header>
6281_ACEOF
6282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6283  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6284  ac_status=$?
6285  grep -v '^ *+' conftest.er1 >conftest.err
6286  rm -f conftest.er1
6287  cat conftest.err >&5
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); } >/dev/null; then
6290  if test -s conftest.err; then
6291    ac_cpp_err=$ac_c_preproc_warn_flag
6292    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6293  else
6294    ac_cpp_err=
6295  fi
6296else
6297  ac_cpp_err=yes
6298fi
6299if test -z "$ac_cpp_err"; then
6300  ac_header_preproc=yes
6301else
6302  echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305  ac_header_preproc=no
6306fi
6307rm -f conftest.err conftest.$ac_ext
6308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6309echo "${ECHO_T}$ac_header_preproc" >&6
6310
6311# So?  What about this header?
6312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6313  yes:no: )
6314    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6318    ac_header_preproc=yes
6319    ;;
6320  no:yes:* )
6321    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6323    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6324echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6325    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6327    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6328echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6329    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6331    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6333    (
6334      cat <<\_ASBOX
6335## ------------------------------------------ ##
6336## Report this to the AC_PACKAGE_NAME lists.  ##
6337## ------------------------------------------ ##
6338_ASBOX
6339    ) |
6340      sed "s/^/$as_me: WARNING:     /" >&2
6341    ;;
6342esac
6343echo "$as_me:$LINENO: checking for $ac_header" >&5
6344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6345if eval "test \"\${$as_ac_Header+set}\" = set"; then
6346  echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348  eval "$as_ac_Header=\$ac_header_preproc"
6349fi
6350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6352
6353fi
6354if test `eval echo '${'$as_ac_Header'}'` = yes; then
6355  cat >>confdefs.h <<_ACEOF
6356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6357_ACEOF
6358
6359fi
6360
6361done
6362
6363
6364
6365
6366
6367for ac_header in rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
6368do
6369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6370if eval "test \"\${$as_ac_Header+set}\" = set"; then
6371  echo "$as_me:$LINENO: checking for $ac_header" >&5
6372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6373if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374  echo $ECHO_N "(cached) $ECHO_C" >&6
6375fi
6376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378else
6379  # Is the header compilable?
6380echo "$as_me:$LINENO: checking $ac_header usability" >&5
6381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6382cat >conftest.$ac_ext <<_ACEOF
6383/* confdefs.h.  */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h.  */
6388$ac_includes_default
6389#include <$ac_header>
6390_ACEOF
6391rm -f conftest.$ac_objext
6392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393  (eval $ac_compile) 2>conftest.er1
6394  ac_status=$?
6395  grep -v '^ *+' conftest.er1 >conftest.err
6396  rm -f conftest.er1
6397  cat conftest.err >&5
6398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399  (exit $ac_status); } &&
6400	 { ac_try='test -z "$ac_c_werror_flag"
6401			 || test ! -s conftest.err'
6402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403  (eval $ac_try) 2>&5
6404  ac_status=$?
6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406  (exit $ac_status); }; } &&
6407	 { ac_try='test -s conftest.$ac_objext'
6408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409  (eval $ac_try) 2>&5
6410  ac_status=$?
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); }; }; then
6413  ac_header_compiler=yes
6414else
6415  echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418ac_header_compiler=no
6419fi
6420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6422echo "${ECHO_T}$ac_header_compiler" >&6
6423
6424# Is the header present?
6425echo "$as_me:$LINENO: checking $ac_header presence" >&5
6426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6427cat >conftest.$ac_ext <<_ACEOF
6428/* confdefs.h.  */
6429_ACEOF
6430cat confdefs.h >>conftest.$ac_ext
6431cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h.  */
6433#include <$ac_header>
6434_ACEOF
6435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6436  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6437  ac_status=$?
6438  grep -v '^ *+' conftest.er1 >conftest.err
6439  rm -f conftest.er1
6440  cat conftest.err >&5
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); } >/dev/null; then
6443  if test -s conftest.err; then
6444    ac_cpp_err=$ac_c_preproc_warn_flag
6445    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6446  else
6447    ac_cpp_err=
6448  fi
6449else
6450  ac_cpp_err=yes
6451fi
6452if test -z "$ac_cpp_err"; then
6453  ac_header_preproc=yes
6454else
6455  echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
6458  ac_header_preproc=no
6459fi
6460rm -f conftest.err conftest.$ac_ext
6461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6462echo "${ECHO_T}$ac_header_preproc" >&6
6463
6464# So?  What about this header?
6465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6466  yes:no: )
6467    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6469    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6471    ac_header_preproc=yes
6472    ;;
6473  no:yes:* )
6474    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6476    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6477echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6478    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6480    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6481echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6482    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6484    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6486    (
6487      cat <<\_ASBOX
6488## ------------------------------------------ ##
6489## Report this to the AC_PACKAGE_NAME lists.  ##
6490## ------------------------------------------ ##
6491_ASBOX
6492    ) |
6493      sed "s/^/$as_me: WARNING:     /" >&2
6494    ;;
6495esac
6496echo "$as_me:$LINENO: checking for $ac_header" >&5
6497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6498if eval "test \"\${$as_ac_Header+set}\" = set"; then
6499  echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501  eval "$as_ac_Header=\$ac_header_preproc"
6502fi
6503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6505
6506fi
6507if test `eval echo '${'$as_ac_Header'}'` = yes; then
6508  cat >>confdefs.h <<_ACEOF
6509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6510_ACEOF
6511
6512fi
6513
6514done
6515
6516
6517
6518
6519
6520
6521
6522
6523for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
6524do
6525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6526if eval "test \"\${$as_ac_Header+set}\" = set"; then
6527  echo "$as_me:$LINENO: checking for $ac_header" >&5
6528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531fi
6532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534else
6535  # Is the header compilable?
6536echo "$as_me:$LINENO: checking $ac_header usability" >&5
6537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6538cat >conftest.$ac_ext <<_ACEOF
6539/* confdefs.h.  */
6540_ACEOF
6541cat confdefs.h >>conftest.$ac_ext
6542cat >>conftest.$ac_ext <<_ACEOF
6543/* end confdefs.h.  */
6544$ac_includes_default
6545#include <$ac_header>
6546_ACEOF
6547rm -f conftest.$ac_objext
6548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549  (eval $ac_compile) 2>conftest.er1
6550  ac_status=$?
6551  grep -v '^ *+' conftest.er1 >conftest.err
6552  rm -f conftest.er1
6553  cat conftest.err >&5
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); } &&
6556	 { ac_try='test -z "$ac_c_werror_flag"
6557			 || test ! -s conftest.err'
6558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559  (eval $ac_try) 2>&5
6560  ac_status=$?
6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); }; } &&
6563	 { ac_try='test -s conftest.$ac_objext'
6564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565  (eval $ac_try) 2>&5
6566  ac_status=$?
6567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568  (exit $ac_status); }; }; then
6569  ac_header_compiler=yes
6570else
6571  echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574ac_header_compiler=no
6575fi
6576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6578echo "${ECHO_T}$ac_header_compiler" >&6
6579
6580# Is the header present?
6581echo "$as_me:$LINENO: checking $ac_header presence" >&5
6582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6583cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h.  */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h.  */
6589#include <$ac_header>
6590_ACEOF
6591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6592  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6593  ac_status=$?
6594  grep -v '^ *+' conftest.er1 >conftest.err
6595  rm -f conftest.er1
6596  cat conftest.err >&5
6597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598  (exit $ac_status); } >/dev/null; then
6599  if test -s conftest.err; then
6600    ac_cpp_err=$ac_c_preproc_warn_flag
6601    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6602  else
6603    ac_cpp_err=
6604  fi
6605else
6606  ac_cpp_err=yes
6607fi
6608if test -z "$ac_cpp_err"; then
6609  ac_header_preproc=yes
6610else
6611  echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614  ac_header_preproc=no
6615fi
6616rm -f conftest.err conftest.$ac_ext
6617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618echo "${ECHO_T}$ac_header_preproc" >&6
6619
6620# So?  What about this header?
6621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6622  yes:no: )
6623    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6627    ac_header_preproc=yes
6628    ;;
6629  no:yes:* )
6630    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6632    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6633echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6634    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6636    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6637echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6638    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6640    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6642    (
6643      cat <<\_ASBOX
6644## ------------------------------------------ ##
6645## Report this to the AC_PACKAGE_NAME lists.  ##
6646## ------------------------------------------ ##
6647_ASBOX
6648    ) |
6649      sed "s/^/$as_me: WARNING:     /" >&2
6650    ;;
6651esac
6652echo "$as_me:$LINENO: checking for $ac_header" >&5
6653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6654if eval "test \"\${$as_ac_Header+set}\" = set"; then
6655  echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657  eval "$as_ac_Header=\$ac_header_preproc"
6658fi
6659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6661
6662fi
6663if test `eval echo '${'$as_ac_Header'}'` = yes; then
6664  cat >>confdefs.h <<_ACEOF
6665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666_ACEOF
6667
6668fi
6669
6670done
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
6681do
6682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6683if eval "test \"\${$as_ac_Header+set}\" = set"; then
6684  echo "$as_me:$LINENO: checking for $ac_header" >&5
6685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687  echo $ECHO_N "(cached) $ECHO_C" >&6
6688fi
6689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6691else
6692  # Is the header compilable?
6693echo "$as_me:$LINENO: checking $ac_header usability" >&5
6694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6695cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h.  */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h.  */
6701$ac_includes_default
6702#include <$ac_header>
6703_ACEOF
6704rm -f conftest.$ac_objext
6705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706  (eval $ac_compile) 2>conftest.er1
6707  ac_status=$?
6708  grep -v '^ *+' conftest.er1 >conftest.err
6709  rm -f conftest.er1
6710  cat conftest.err >&5
6711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712  (exit $ac_status); } &&
6713	 { ac_try='test -z "$ac_c_werror_flag"
6714			 || test ! -s conftest.err'
6715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716  (eval $ac_try) 2>&5
6717  ac_status=$?
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); }; } &&
6720	 { ac_try='test -s conftest.$ac_objext'
6721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722  (eval $ac_try) 2>&5
6723  ac_status=$?
6724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725  (exit $ac_status); }; }; then
6726  ac_header_compiler=yes
6727else
6728  echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731ac_header_compiler=no
6732fi
6733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6735echo "${ECHO_T}$ac_header_compiler" >&6
6736
6737# Is the header present?
6738echo "$as_me:$LINENO: checking $ac_header presence" >&5
6739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6740cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h.  */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h.  */
6746#include <$ac_header>
6747_ACEOF
6748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6749  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6750  ac_status=$?
6751  grep -v '^ *+' conftest.er1 >conftest.err
6752  rm -f conftest.er1
6753  cat conftest.err >&5
6754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755  (exit $ac_status); } >/dev/null; then
6756  if test -s conftest.err; then
6757    ac_cpp_err=$ac_c_preproc_warn_flag
6758    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6759  else
6760    ac_cpp_err=
6761  fi
6762else
6763  ac_cpp_err=yes
6764fi
6765if test -z "$ac_cpp_err"; then
6766  ac_header_preproc=yes
6767else
6768  echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771  ac_header_preproc=no
6772fi
6773rm -f conftest.err conftest.$ac_ext
6774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6775echo "${ECHO_T}$ac_header_preproc" >&6
6776
6777# So?  What about this header?
6778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6779  yes:no: )
6780    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6784    ac_header_preproc=yes
6785    ;;
6786  no:yes:* )
6787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6789    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6790echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6791    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6793    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6794echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6797    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6799    (
6800      cat <<\_ASBOX
6801## ------------------------------------------ ##
6802## Report this to the AC_PACKAGE_NAME lists.  ##
6803## ------------------------------------------ ##
6804_ASBOX
6805    ) |
6806      sed "s/^/$as_me: WARNING:     /" >&2
6807    ;;
6808esac
6809echo "$as_me:$LINENO: checking for $ac_header" >&5
6810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814  eval "$as_ac_Header=\$ac_header_preproc"
6815fi
6816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6818
6819fi
6820if test `eval echo '${'$as_ac_Header'}'` = yes; then
6821  cat >>confdefs.h <<_ACEOF
6822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823_ACEOF
6824
6825fi
6826
6827done
6828
6829
6830
6831
6832
6833
6834
6835for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
6836do
6837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6838if eval "test \"\${$as_ac_Header+set}\" = set"; then
6839  echo "$as_me:$LINENO: checking for $ac_header" >&5
6840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6841if eval "test \"\${$as_ac_Header+set}\" = set"; then
6842  echo $ECHO_N "(cached) $ECHO_C" >&6
6843fi
6844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6846else
6847  # Is the header compilable?
6848echo "$as_me:$LINENO: checking $ac_header usability" >&5
6849echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6850cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h.  */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h.  */
6856$ac_includes_default
6857#include <$ac_header>
6858_ACEOF
6859rm -f conftest.$ac_objext
6860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861  (eval $ac_compile) 2>conftest.er1
6862  ac_status=$?
6863  grep -v '^ *+' conftest.er1 >conftest.err
6864  rm -f conftest.er1
6865  cat conftest.err >&5
6866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867  (exit $ac_status); } &&
6868	 { ac_try='test -z "$ac_c_werror_flag"
6869			 || test ! -s conftest.err'
6870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871  (eval $ac_try) 2>&5
6872  ac_status=$?
6873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874  (exit $ac_status); }; } &&
6875	 { ac_try='test -s conftest.$ac_objext'
6876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877  (eval $ac_try) 2>&5
6878  ac_status=$?
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); }; }; then
6881  ac_header_compiler=yes
6882else
6883  echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886ac_header_compiler=no
6887fi
6888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6889echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6890echo "${ECHO_T}$ac_header_compiler" >&6
6891
6892# Is the header present?
6893echo "$as_me:$LINENO: checking $ac_header presence" >&5
6894echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6895cat >conftest.$ac_ext <<_ACEOF
6896/* confdefs.h.  */
6897_ACEOF
6898cat confdefs.h >>conftest.$ac_ext
6899cat >>conftest.$ac_ext <<_ACEOF
6900/* end confdefs.h.  */
6901#include <$ac_header>
6902_ACEOF
6903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6904  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6905  ac_status=$?
6906  grep -v '^ *+' conftest.er1 >conftest.err
6907  rm -f conftest.er1
6908  cat conftest.err >&5
6909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910  (exit $ac_status); } >/dev/null; then
6911  if test -s conftest.err; then
6912    ac_cpp_err=$ac_c_preproc_warn_flag
6913    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6914  else
6915    ac_cpp_err=
6916  fi
6917else
6918  ac_cpp_err=yes
6919fi
6920if test -z "$ac_cpp_err"; then
6921  ac_header_preproc=yes
6922else
6923  echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
6925
6926  ac_header_preproc=no
6927fi
6928rm -f conftest.err conftest.$ac_ext
6929echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6930echo "${ECHO_T}$ac_header_preproc" >&6
6931
6932# So?  What about this header?
6933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6934  yes:no: )
6935    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6937    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6938echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6939    ac_header_preproc=yes
6940    ;;
6941  no:yes:* )
6942    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6943echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6944    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6945echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6946    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6947echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6948    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6949echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6950    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6952    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6953echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6954    (
6955      cat <<\_ASBOX
6956## ------------------------------------------ ##
6957## Report this to the AC_PACKAGE_NAME lists.  ##
6958## ------------------------------------------ ##
6959_ASBOX
6960    ) |
6961      sed "s/^/$as_me: WARNING:     /" >&2
6962    ;;
6963esac
6964echo "$as_me:$LINENO: checking for $ac_header" >&5
6965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6966if eval "test \"\${$as_ac_Header+set}\" = set"; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  eval "$as_ac_Header=\$ac_header_preproc"
6970fi
6971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6973
6974fi
6975if test `eval echo '${'$as_ac_Header'}'` = yes; then
6976  cat >>confdefs.h <<_ACEOF
6977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6978_ACEOF
6979
6980fi
6981
6982done
6983
6984
6985
6986
6987
6988
6989
6990for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
6991do
6992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993if eval "test \"\${$as_ac_Header+set}\" = set"; then
6994  echo "$as_me:$LINENO: checking for $ac_header" >&5
6995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6996if eval "test \"\${$as_ac_Header+set}\" = set"; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998fi
6999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7001else
7002  # Is the header compilable?
7003echo "$as_me:$LINENO: checking $ac_header usability" >&5
7004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7005cat >conftest.$ac_ext <<_ACEOF
7006/* confdefs.h.  */
7007_ACEOF
7008cat confdefs.h >>conftest.$ac_ext
7009cat >>conftest.$ac_ext <<_ACEOF
7010/* end confdefs.h.  */
7011$ac_includes_default
7012#include <$ac_header>
7013_ACEOF
7014rm -f conftest.$ac_objext
7015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016  (eval $ac_compile) 2>conftest.er1
7017  ac_status=$?
7018  grep -v '^ *+' conftest.er1 >conftest.err
7019  rm -f conftest.er1
7020  cat conftest.err >&5
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); } &&
7023	 { ac_try='test -z "$ac_c_werror_flag"
7024			 || test ! -s conftest.err'
7025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026  (eval $ac_try) 2>&5
7027  ac_status=$?
7028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029  (exit $ac_status); }; } &&
7030	 { ac_try='test -s conftest.$ac_objext'
7031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032  (eval $ac_try) 2>&5
7033  ac_status=$?
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); }; }; then
7036  ac_header_compiler=yes
7037else
7038  echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041ac_header_compiler=no
7042fi
7043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045echo "${ECHO_T}$ac_header_compiler" >&6
7046
7047# Is the header present?
7048echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050cat >conftest.$ac_ext <<_ACEOF
7051/* confdefs.h.  */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
7055/* end confdefs.h.  */
7056#include <$ac_header>
7057_ACEOF
7058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7060  ac_status=$?
7061  grep -v '^ *+' conftest.er1 >conftest.err
7062  rm -f conftest.er1
7063  cat conftest.err >&5
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); } >/dev/null; then
7066  if test -s conftest.err; then
7067    ac_cpp_err=$ac_c_preproc_warn_flag
7068    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7069  else
7070    ac_cpp_err=
7071  fi
7072else
7073  ac_cpp_err=yes
7074fi
7075if test -z "$ac_cpp_err"; then
7076  ac_header_preproc=yes
7077else
7078  echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5
7080
7081  ac_header_preproc=no
7082fi
7083rm -f conftest.err conftest.$ac_ext
7084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7085echo "${ECHO_T}$ac_header_preproc" >&6
7086
7087# So?  What about this header?
7088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7089  yes:no: )
7090    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7094    ac_header_preproc=yes
7095    ;;
7096  no:yes:* )
7097    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7099    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7100echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7101    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7103    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7104echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7107    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7109    (
7110      cat <<\_ASBOX
7111## ------------------------------------------ ##
7112## Report this to the AC_PACKAGE_NAME lists.  ##
7113## ------------------------------------------ ##
7114_ASBOX
7115    ) |
7116      sed "s/^/$as_me: WARNING:     /" >&2
7117    ;;
7118esac
7119echo "$as_me:$LINENO: checking for $ac_header" >&5
7120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7121if eval "test \"\${$as_ac_Header+set}\" = set"; then
7122  echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124  eval "$as_ac_Header=\$ac_header_preproc"
7125fi
7126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128
7129fi
7130if test `eval echo '${'$as_ac_Header'}'` = yes; then
7131  cat >>confdefs.h <<_ACEOF
7132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133_ACEOF
7134
7135fi
7136
7137done
7138
7139
7140
7141
7142for ac_header in sys/sysmacros.h security/_pam_macros.h dlfcn.h
7143do
7144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7145if eval "test \"\${$as_ac_Header+set}\" = set"; then
7146  echo "$as_me:$LINENO: checking for $ac_header" >&5
7147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7148if eval "test \"\${$as_ac_Header+set}\" = set"; then
7149  echo $ECHO_N "(cached) $ECHO_C" >&6
7150fi
7151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7153else
7154  # Is the header compilable?
7155echo "$as_me:$LINENO: checking $ac_header usability" >&5
7156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7157cat >conftest.$ac_ext <<_ACEOF
7158/* confdefs.h.  */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h.  */
7163$ac_includes_default
7164#include <$ac_header>
7165_ACEOF
7166rm -f conftest.$ac_objext
7167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168  (eval $ac_compile) 2>conftest.er1
7169  ac_status=$?
7170  grep -v '^ *+' conftest.er1 >conftest.err
7171  rm -f conftest.er1
7172  cat conftest.err >&5
7173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174  (exit $ac_status); } &&
7175	 { ac_try='test -z "$ac_c_werror_flag"
7176			 || test ! -s conftest.err'
7177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178  (eval $ac_try) 2>&5
7179  ac_status=$?
7180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181  (exit $ac_status); }; } &&
7182	 { ac_try='test -s conftest.$ac_objext'
7183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184  (eval $ac_try) 2>&5
7185  ac_status=$?
7186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187  (exit $ac_status); }; }; then
7188  ac_header_compiler=yes
7189else
7190  echo "$as_me: failed program was:" >&5
7191sed 's/^/| /' conftest.$ac_ext >&5
7192
7193ac_header_compiler=no
7194fi
7195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7197echo "${ECHO_T}$ac_header_compiler" >&6
7198
7199# Is the header present?
7200echo "$as_me:$LINENO: checking $ac_header presence" >&5
7201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7202cat >conftest.$ac_ext <<_ACEOF
7203/* confdefs.h.  */
7204_ACEOF
7205cat confdefs.h >>conftest.$ac_ext
7206cat >>conftest.$ac_ext <<_ACEOF
7207/* end confdefs.h.  */
7208#include <$ac_header>
7209_ACEOF
7210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7212  ac_status=$?
7213  grep -v '^ *+' conftest.er1 >conftest.err
7214  rm -f conftest.er1
7215  cat conftest.err >&5
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); } >/dev/null; then
7218  if test -s conftest.err; then
7219    ac_cpp_err=$ac_c_preproc_warn_flag
7220    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7221  else
7222    ac_cpp_err=
7223  fi
7224else
7225  ac_cpp_err=yes
7226fi
7227if test -z "$ac_cpp_err"; then
7228  ac_header_preproc=yes
7229else
7230  echo "$as_me: failed program was:" >&5
7231sed 's/^/| /' conftest.$ac_ext >&5
7232
7233  ac_header_preproc=no
7234fi
7235rm -f conftest.err conftest.$ac_ext
7236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7237echo "${ECHO_T}$ac_header_preproc" >&6
7238
7239# So?  What about this header?
7240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7241  yes:no: )
7242    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7244    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7246    ac_header_preproc=yes
7247    ;;
7248  no:yes:* )
7249    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7251    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7252echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7253    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7255    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7256echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7257    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7259    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7261    (
7262      cat <<\_ASBOX
7263## ------------------------------------------ ##
7264## Report this to the AC_PACKAGE_NAME lists.  ##
7265## ------------------------------------------ ##
7266_ASBOX
7267    ) |
7268      sed "s/^/$as_me: WARNING:     /" >&2
7269    ;;
7270esac
7271echo "$as_me:$LINENO: checking for $ac_header" >&5
7272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7273if eval "test \"\${$as_ac_Header+set}\" = set"; then
7274  echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276  eval "$as_ac_Header=\$ac_header_preproc"
7277fi
7278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7280
7281fi
7282if test `eval echo '${'$as_ac_Header'}'` = yes; then
7283  cat >>confdefs.h <<_ACEOF
7284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285_ACEOF
7286
7287fi
7288
7289done
7290
7291
7292
7293
7294for ac_header in sys/syslog.h syslog.h execinfo.h
7295do
7296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297if eval "test \"\${$as_ac_Header+set}\" = set"; then
7298  echo "$as_me:$LINENO: checking for $ac_header" >&5
7299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301  echo $ECHO_N "(cached) $ECHO_C" >&6
7302fi
7303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7305else
7306  # Is the header compilable?
7307echo "$as_me:$LINENO: checking $ac_header usability" >&5
7308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h.  */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h.  */
7315$ac_includes_default
7316#include <$ac_header>
7317_ACEOF
7318rm -f conftest.$ac_objext
7319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320  (eval $ac_compile) 2>conftest.er1
7321  ac_status=$?
7322  grep -v '^ *+' conftest.er1 >conftest.err
7323  rm -f conftest.er1
7324  cat conftest.err >&5
7325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326  (exit $ac_status); } &&
7327	 { ac_try='test -z "$ac_c_werror_flag"
7328			 || test ! -s conftest.err'
7329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330  (eval $ac_try) 2>&5
7331  ac_status=$?
7332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333  (exit $ac_status); }; } &&
7334	 { ac_try='test -s conftest.$ac_objext'
7335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336  (eval $ac_try) 2>&5
7337  ac_status=$?
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); }; }; then
7340  ac_header_compiler=yes
7341else
7342  echo "$as_me: failed program was:" >&5
7343sed 's/^/| /' conftest.$ac_ext >&5
7344
7345ac_header_compiler=no
7346fi
7347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7349echo "${ECHO_T}$ac_header_compiler" >&6
7350
7351# Is the header present?
7352echo "$as_me:$LINENO: checking $ac_header presence" >&5
7353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7354cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h.  */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h.  */
7360#include <$ac_header>
7361_ACEOF
7362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364  ac_status=$?
7365  grep -v '^ *+' conftest.er1 >conftest.err
7366  rm -f conftest.er1
7367  cat conftest.err >&5
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); } >/dev/null; then
7370  if test -s conftest.err; then
7371    ac_cpp_err=$ac_c_preproc_warn_flag
7372    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7373  else
7374    ac_cpp_err=
7375  fi
7376else
7377  ac_cpp_err=yes
7378fi
7379if test -z "$ac_cpp_err"; then
7380  ac_header_preproc=yes
7381else
7382  echo "$as_me: failed program was:" >&5
7383sed 's/^/| /' conftest.$ac_ext >&5
7384
7385  ac_header_preproc=no
7386fi
7387rm -f conftest.err conftest.$ac_ext
7388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7389echo "${ECHO_T}$ac_header_preproc" >&6
7390
7391# So?  What about this header?
7392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7393  yes:no: )
7394    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7396    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7398    ac_header_preproc=yes
7399    ;;
7400  no:yes:* )
7401    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7403    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7404echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7405    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7407    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7408echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7409    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7411    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7413    (
7414      cat <<\_ASBOX
7415## ------------------------------------------ ##
7416## Report this to the AC_PACKAGE_NAME lists.  ##
7417## ------------------------------------------ ##
7418_ASBOX
7419    ) |
7420      sed "s/^/$as_me: WARNING:     /" >&2
7421    ;;
7422esac
7423echo "$as_me:$LINENO: checking for $ac_header" >&5
7424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7425if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426  echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428  eval "$as_ac_Header=\$ac_header_preproc"
7429fi
7430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7432
7433fi
7434if test `eval echo '${'$as_ac_Header'}'` = yes; then
7435  cat >>confdefs.h <<_ACEOF
7436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7437_ACEOF
7438
7439fi
7440
7441done
7442
7443
7444
7445for ac_header in langinfo.h locale.h
7446do
7447as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7448if eval "test \"\${$as_ac_Header+set}\" = set"; then
7449  echo "$as_me:$LINENO: checking for $ac_header" >&5
7450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7451if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452  echo $ECHO_N "(cached) $ECHO_C" >&6
7453fi
7454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456else
7457  # Is the header compilable?
7458echo "$as_me:$LINENO: checking $ac_header usability" >&5
7459echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7460cat >conftest.$ac_ext <<_ACEOF
7461/* confdefs.h.  */
7462_ACEOF
7463cat confdefs.h >>conftest.$ac_ext
7464cat >>conftest.$ac_ext <<_ACEOF
7465/* end confdefs.h.  */
7466$ac_includes_default
7467#include <$ac_header>
7468_ACEOF
7469rm -f conftest.$ac_objext
7470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7471  (eval $ac_compile) 2>conftest.er1
7472  ac_status=$?
7473  grep -v '^ *+' conftest.er1 >conftest.err
7474  rm -f conftest.er1
7475  cat conftest.err >&5
7476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477  (exit $ac_status); } &&
7478	 { ac_try='test -z "$ac_c_werror_flag"
7479			 || test ! -s conftest.err'
7480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481  (eval $ac_try) 2>&5
7482  ac_status=$?
7483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484  (exit $ac_status); }; } &&
7485	 { ac_try='test -s conftest.$ac_objext'
7486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487  (eval $ac_try) 2>&5
7488  ac_status=$?
7489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490  (exit $ac_status); }; }; then
7491  ac_header_compiler=yes
7492else
7493  echo "$as_me: failed program was:" >&5
7494sed 's/^/| /' conftest.$ac_ext >&5
7495
7496ac_header_compiler=no
7497fi
7498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7500echo "${ECHO_T}$ac_header_compiler" >&6
7501
7502# Is the header present?
7503echo "$as_me:$LINENO: checking $ac_header presence" >&5
7504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7505cat >conftest.$ac_ext <<_ACEOF
7506/* confdefs.h.  */
7507_ACEOF
7508cat confdefs.h >>conftest.$ac_ext
7509cat >>conftest.$ac_ext <<_ACEOF
7510/* end confdefs.h.  */
7511#include <$ac_header>
7512_ACEOF
7513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7514  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7515  ac_status=$?
7516  grep -v '^ *+' conftest.er1 >conftest.err
7517  rm -f conftest.er1
7518  cat conftest.err >&5
7519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520  (exit $ac_status); } >/dev/null; then
7521  if test -s conftest.err; then
7522    ac_cpp_err=$ac_c_preproc_warn_flag
7523    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7524  else
7525    ac_cpp_err=
7526  fi
7527else
7528  ac_cpp_err=yes
7529fi
7530if test -z "$ac_cpp_err"; then
7531  ac_header_preproc=yes
7532else
7533  echo "$as_me: failed program was:" >&5
7534sed 's/^/| /' conftest.$ac_ext >&5
7535
7536  ac_header_preproc=no
7537fi
7538rm -f conftest.err conftest.$ac_ext
7539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7540echo "${ECHO_T}$ac_header_preproc" >&6
7541
7542# So?  What about this header?
7543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7544  yes:no: )
7545    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7547    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7549    ac_header_preproc=yes
7550    ;;
7551  no:yes:* )
7552    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7554    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7555echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7556    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7558    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7559echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7560    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7562    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7564    (
7565      cat <<\_ASBOX
7566## ------------------------------------------ ##
7567## Report this to the AC_PACKAGE_NAME lists.  ##
7568## ------------------------------------------ ##
7569_ASBOX
7570    ) |
7571      sed "s/^/$as_me: WARNING:     /" >&2
7572    ;;
7573esac
7574echo "$as_me:$LINENO: checking for $ac_header" >&5
7575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577  echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579  eval "$as_ac_Header=\$ac_header_preproc"
7580fi
7581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7583
7584fi
7585if test `eval echo '${'$as_ac_Header'}'` = yes; then
7586  cat >>confdefs.h <<_ACEOF
7587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588_ACEOF
7589
7590fi
7591
7592done
7593
7594
7595# Look for Darwin headers
7596old_CPPFLAGS="$CPPFLAGS"
7597CPPFLAGS="-Iinclude $CPPFLAGS"
7598
7599for ac_header in CoreFoundation/CFStringEncodingConverter.h
7600do
7601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7602if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603  echo "$as_me:$LINENO: checking for $ac_header" >&5
7604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7605if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606  echo $ECHO_N "(cached) $ECHO_C" >&6
7607fi
7608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7610else
7611  # Is the header compilable?
7612echo "$as_me:$LINENO: checking $ac_header usability" >&5
7613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7614cat >conftest.$ac_ext <<_ACEOF
7615/* confdefs.h.  */
7616_ACEOF
7617cat confdefs.h >>conftest.$ac_ext
7618cat >>conftest.$ac_ext <<_ACEOF
7619/* end confdefs.h.  */
7620$ac_includes_default
7621#include <$ac_header>
7622_ACEOF
7623rm -f conftest.$ac_objext
7624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625  (eval $ac_compile) 2>conftest.er1
7626  ac_status=$?
7627  grep -v '^ *+' conftest.er1 >conftest.err
7628  rm -f conftest.er1
7629  cat conftest.err >&5
7630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631  (exit $ac_status); } &&
7632	 { ac_try='test -z "$ac_c_werror_flag"
7633			 || test ! -s conftest.err'
7634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635  (eval $ac_try) 2>&5
7636  ac_status=$?
7637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638  (exit $ac_status); }; } &&
7639	 { ac_try='test -s conftest.$ac_objext'
7640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641  (eval $ac_try) 2>&5
7642  ac_status=$?
7643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644  (exit $ac_status); }; }; then
7645  ac_header_compiler=yes
7646else
7647  echo "$as_me: failed program was:" >&5
7648sed 's/^/| /' conftest.$ac_ext >&5
7649
7650ac_header_compiler=no
7651fi
7652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7654echo "${ECHO_T}$ac_header_compiler" >&6
7655
7656# Is the header present?
7657echo "$as_me:$LINENO: checking $ac_header presence" >&5
7658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7659cat >conftest.$ac_ext <<_ACEOF
7660/* confdefs.h.  */
7661_ACEOF
7662cat confdefs.h >>conftest.$ac_ext
7663cat >>conftest.$ac_ext <<_ACEOF
7664/* end confdefs.h.  */
7665#include <$ac_header>
7666_ACEOF
7667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7668  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7669  ac_status=$?
7670  grep -v '^ *+' conftest.er1 >conftest.err
7671  rm -f conftest.er1
7672  cat conftest.err >&5
7673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674  (exit $ac_status); } >/dev/null; then
7675  if test -s conftest.err; then
7676    ac_cpp_err=$ac_c_preproc_warn_flag
7677    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7678  else
7679    ac_cpp_err=
7680  fi
7681else
7682  ac_cpp_err=yes
7683fi
7684if test -z "$ac_cpp_err"; then
7685  ac_header_preproc=yes
7686else
7687  echo "$as_me: failed program was:" >&5
7688sed 's/^/| /' conftest.$ac_ext >&5
7689
7690  ac_header_preproc=no
7691fi
7692rm -f conftest.err conftest.$ac_ext
7693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7694echo "${ECHO_T}$ac_header_preproc" >&6
7695
7696# So?  What about this header?
7697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7698  yes:no: )
7699    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7701    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7702echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7703    ac_header_preproc=yes
7704    ;;
7705  no:yes:* )
7706    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7707echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7708    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7709echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7710    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7711echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7712    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7713echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7714    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7716    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7717echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7718    (
7719      cat <<\_ASBOX
7720## ------------------------------------------ ##
7721## Report this to the AC_PACKAGE_NAME lists.  ##
7722## ------------------------------------------ ##
7723_ASBOX
7724    ) |
7725      sed "s/^/$as_me: WARNING:     /" >&2
7726    ;;
7727esac
7728echo "$as_me:$LINENO: checking for $ac_header" >&5
7729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7730if eval "test \"\${$as_ac_Header+set}\" = set"; then
7731  echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733  eval "$as_ac_Header=\$ac_header_preproc"
7734fi
7735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7737
7738fi
7739if test `eval echo '${'$as_ac_Header'}'` = yes; then
7740  cat >>confdefs.h <<_ACEOF
7741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7742_ACEOF
7743
7744else
7745
7746for ac_header in CFStringEncodingConverter.h
7747do
7748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7749if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750  echo "$as_me:$LINENO: checking for $ac_header" >&5
7751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7752if eval "test \"\${$as_ac_Header+set}\" = set"; then
7753  echo $ECHO_N "(cached) $ECHO_C" >&6
7754fi
7755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7757else
7758  # Is the header compilable?
7759echo "$as_me:$LINENO: checking $ac_header usability" >&5
7760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7761cat >conftest.$ac_ext <<_ACEOF
7762/* confdefs.h.  */
7763_ACEOF
7764cat confdefs.h >>conftest.$ac_ext
7765cat >>conftest.$ac_ext <<_ACEOF
7766/* end confdefs.h.  */
7767$ac_includes_default
7768#include <$ac_header>
7769_ACEOF
7770rm -f conftest.$ac_objext
7771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772  (eval $ac_compile) 2>conftest.er1
7773  ac_status=$?
7774  grep -v '^ *+' conftest.er1 >conftest.err
7775  rm -f conftest.er1
7776  cat conftest.err >&5
7777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778  (exit $ac_status); } &&
7779	 { ac_try='test -z "$ac_c_werror_flag"
7780			 || test ! -s conftest.err'
7781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782  (eval $ac_try) 2>&5
7783  ac_status=$?
7784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785  (exit $ac_status); }; } &&
7786	 { ac_try='test -s conftest.$ac_objext'
7787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788  (eval $ac_try) 2>&5
7789  ac_status=$?
7790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791  (exit $ac_status); }; }; then
7792  ac_header_compiler=yes
7793else
7794  echo "$as_me: failed program was:" >&5
7795sed 's/^/| /' conftest.$ac_ext >&5
7796
7797ac_header_compiler=no
7798fi
7799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7801echo "${ECHO_T}$ac_header_compiler" >&6
7802
7803# Is the header present?
7804echo "$as_me:$LINENO: checking $ac_header presence" >&5
7805echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7806cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h.  */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h.  */
7812#include <$ac_header>
7813_ACEOF
7814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7815  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7816  ac_status=$?
7817  grep -v '^ *+' conftest.er1 >conftest.err
7818  rm -f conftest.er1
7819  cat conftest.err >&5
7820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821  (exit $ac_status); } >/dev/null; then
7822  if test -s conftest.err; then
7823    ac_cpp_err=$ac_c_preproc_warn_flag
7824    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7825  else
7826    ac_cpp_err=
7827  fi
7828else
7829  ac_cpp_err=yes
7830fi
7831if test -z "$ac_cpp_err"; then
7832  ac_header_preproc=yes
7833else
7834  echo "$as_me: failed program was:" >&5
7835sed 's/^/| /' conftest.$ac_ext >&5
7836
7837  ac_header_preproc=no
7838fi
7839rm -f conftest.err conftest.$ac_ext
7840echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7841echo "${ECHO_T}$ac_header_preproc" >&6
7842
7843# So?  What about this header?
7844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7845  yes:no: )
7846    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7847echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7848    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7849echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7850    ac_header_preproc=yes
7851    ;;
7852  no:yes:* )
7853    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7855    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7856echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7857    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7858echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7859    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7860echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7861    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7863    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7864echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7865    (
7866      cat <<\_ASBOX
7867## ------------------------------------------ ##
7868## Report this to the AC_PACKAGE_NAME lists.  ##
7869## ------------------------------------------ ##
7870_ASBOX
7871    ) |
7872      sed "s/^/$as_me: WARNING:     /" >&2
7873    ;;
7874esac
7875echo "$as_me:$LINENO: checking for $ac_header" >&5
7876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7877if eval "test \"\${$as_ac_Header+set}\" = set"; then
7878  echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880  eval "$as_ac_Header=\$ac_header_preproc"
7881fi
7882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884
7885fi
7886if test `eval echo '${'$as_ac_Header'}'` = yes; then
7887  cat >>confdefs.h <<_ACEOF
7888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7889_ACEOF
7890
7891fi
7892
7893done
7894
7895fi
7896
7897done
7898
7899CPPFLAGS="$old_CPPFLAGS"
7900
7901# In valgrind 1.0.x, it's just valgrind.h.  In 1.9.x+ there's a
7902# subdirectory of headers.
7903
7904
7905
7906for ac_header in valgrind.h valgrind/valgrind.h valgrind/memcheck.h
7907do
7908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7909if eval "test \"\${$as_ac_Header+set}\" = set"; then
7910  echo "$as_me:$LINENO: checking for $ac_header" >&5
7911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7912if eval "test \"\${$as_ac_Header+set}\" = set"; then
7913  echo $ECHO_N "(cached) $ECHO_C" >&6
7914fi
7915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7917else
7918  # Is the header compilable?
7919echo "$as_me:$LINENO: checking $ac_header usability" >&5
7920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7921cat >conftest.$ac_ext <<_ACEOF
7922/* confdefs.h.  */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h.  */
7927$ac_includes_default
7928#include <$ac_header>
7929_ACEOF
7930rm -f conftest.$ac_objext
7931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7932  (eval $ac_compile) 2>conftest.er1
7933  ac_status=$?
7934  grep -v '^ *+' conftest.er1 >conftest.err
7935  rm -f conftest.er1
7936  cat conftest.err >&5
7937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938  (exit $ac_status); } &&
7939	 { ac_try='test -z "$ac_c_werror_flag"
7940			 || test ! -s conftest.err'
7941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942  (eval $ac_try) 2>&5
7943  ac_status=$?
7944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945  (exit $ac_status); }; } &&
7946	 { ac_try='test -s conftest.$ac_objext'
7947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948  (eval $ac_try) 2>&5
7949  ac_status=$?
7950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); }; }; then
7952  ac_header_compiler=yes
7953else
7954  echo "$as_me: failed program was:" >&5
7955sed 's/^/| /' conftest.$ac_ext >&5
7956
7957ac_header_compiler=no
7958fi
7959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7961echo "${ECHO_T}$ac_header_compiler" >&6
7962
7963# Is the header present?
7964echo "$as_me:$LINENO: checking $ac_header presence" >&5
7965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7966cat >conftest.$ac_ext <<_ACEOF
7967/* confdefs.h.  */
7968_ACEOF
7969cat confdefs.h >>conftest.$ac_ext
7970cat >>conftest.$ac_ext <<_ACEOF
7971/* end confdefs.h.  */
7972#include <$ac_header>
7973_ACEOF
7974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7975  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7976  ac_status=$?
7977  grep -v '^ *+' conftest.er1 >conftest.err
7978  rm -f conftest.er1
7979  cat conftest.err >&5
7980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981  (exit $ac_status); } >/dev/null; then
7982  if test -s conftest.err; then
7983    ac_cpp_err=$ac_c_preproc_warn_flag
7984    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7985  else
7986    ac_cpp_err=
7987  fi
7988else
7989  ac_cpp_err=yes
7990fi
7991if test -z "$ac_cpp_err"; then
7992  ac_header_preproc=yes
7993else
7994  echo "$as_me: failed program was:" >&5
7995sed 's/^/| /' conftest.$ac_ext >&5
7996
7997  ac_header_preproc=no
7998fi
7999rm -f conftest.err conftest.$ac_ext
8000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8001echo "${ECHO_T}$ac_header_preproc" >&6
8002
8003# So?  What about this header?
8004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8005  yes:no: )
8006    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8008    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8010    ac_header_preproc=yes
8011    ;;
8012  no:yes:* )
8013    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8015    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8016echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8017    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8019    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8020echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8021    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8023    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8025    (
8026      cat <<\_ASBOX
8027## ------------------------------------------ ##
8028## Report this to the AC_PACKAGE_NAME lists.  ##
8029## ------------------------------------------ ##
8030_ASBOX
8031    ) |
8032      sed "s/^/$as_me: WARNING:     /" >&2
8033    ;;
8034esac
8035echo "$as_me:$LINENO: checking for $ac_header" >&5
8036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8037if eval "test \"\${$as_ac_Header+set}\" = set"; then
8038  echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040  eval "$as_ac_Header=\$ac_header_preproc"
8041fi
8042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8044
8045fi
8046if test `eval echo '${'$as_ac_Header'}'` = yes; then
8047  cat >>confdefs.h <<_ACEOF
8048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8049_ACEOF
8050
8051fi
8052
8053done
8054
8055
8056#
8057# HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
8058# This causes configure to fail to detect it. Check for shadow separately on HPUX.
8059#
8060case "$host_os" in
8061    *hpux*)
8062		cat >conftest.$ac_ext <<_ACEOF
8063/* confdefs.h.  */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h.  */
8068#include <shadow.h>
8069int
8070main ()
8071{
8072struct spwd testme
8073  ;
8074  return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext
8078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079  (eval $ac_compile) 2>conftest.er1
8080  ac_status=$?
8081  grep -v '^ *+' conftest.er1 >conftest.err
8082  rm -f conftest.er1
8083  cat conftest.err >&5
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); } &&
8086	 { ac_try='test -z "$ac_c_werror_flag"
8087			 || test ! -s conftest.err'
8088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089  (eval $ac_try) 2>&5
8090  ac_status=$?
8091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092  (exit $ac_status); }; } &&
8093	 { ac_try='test -s conftest.$ac_objext'
8094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095  (eval $ac_try) 2>&5
8096  ac_status=$?
8097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098  (exit $ac_status); }; }; then
8099  ac_cv_header_shadow_h=yes
8100else
8101  echo "$as_me: failed program was:" >&5
8102sed 's/^/| /' conftest.$ac_ext >&5
8103
8104ac_cv_header_shadow_h=no
8105fi
8106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8107		if test x"$ac_cv_header_shadow_h" = x"yes"; then
8108
8109cat >>confdefs.h <<\_ACEOF
8110#define HAVE_SHADOW_H 1
8111_ACEOF
8112
8113		fi
8114	;;
8115esac
8116
8117
8118
8119
8120for ac_header in shadow.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
8121do
8122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8123if eval "test \"\${$as_ac_Header+set}\" = set"; then
8124  echo "$as_me:$LINENO: checking for $ac_header" >&5
8125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127  echo $ECHO_N "(cached) $ECHO_C" >&6
8128fi
8129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8131else
8132  # Is the header compilable?
8133echo "$as_me:$LINENO: checking $ac_header usability" >&5
8134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8135cat >conftest.$ac_ext <<_ACEOF
8136/* confdefs.h.  */
8137_ACEOF
8138cat confdefs.h >>conftest.$ac_ext
8139cat >>conftest.$ac_ext <<_ACEOF
8140/* end confdefs.h.  */
8141$ac_includes_default
8142#include <$ac_header>
8143_ACEOF
8144rm -f conftest.$ac_objext
8145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146  (eval $ac_compile) 2>conftest.er1
8147  ac_status=$?
8148  grep -v '^ *+' conftest.er1 >conftest.err
8149  rm -f conftest.er1
8150  cat conftest.err >&5
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); } &&
8153	 { ac_try='test -z "$ac_c_werror_flag"
8154			 || test ! -s conftest.err'
8155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156  (eval $ac_try) 2>&5
8157  ac_status=$?
8158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159  (exit $ac_status); }; } &&
8160	 { ac_try='test -s conftest.$ac_objext'
8161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162  (eval $ac_try) 2>&5
8163  ac_status=$?
8164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165  (exit $ac_status); }; }; then
8166  ac_header_compiler=yes
8167else
8168  echo "$as_me: failed program was:" >&5
8169sed 's/^/| /' conftest.$ac_ext >&5
8170
8171ac_header_compiler=no
8172fi
8173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8175echo "${ECHO_T}$ac_header_compiler" >&6
8176
8177# Is the header present?
8178echo "$as_me:$LINENO: checking $ac_header presence" >&5
8179echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8180cat >conftest.$ac_ext <<_ACEOF
8181/* confdefs.h.  */
8182_ACEOF
8183cat confdefs.h >>conftest.$ac_ext
8184cat >>conftest.$ac_ext <<_ACEOF
8185/* end confdefs.h.  */
8186#include <$ac_header>
8187_ACEOF
8188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8189  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8190  ac_status=$?
8191  grep -v '^ *+' conftest.er1 >conftest.err
8192  rm -f conftest.er1
8193  cat conftest.err >&5
8194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195  (exit $ac_status); } >/dev/null; then
8196  if test -s conftest.err; then
8197    ac_cpp_err=$ac_c_preproc_warn_flag
8198    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8199  else
8200    ac_cpp_err=
8201  fi
8202else
8203  ac_cpp_err=yes
8204fi
8205if test -z "$ac_cpp_err"; then
8206  ac_header_preproc=yes
8207else
8208  echo "$as_me: failed program was:" >&5
8209sed 's/^/| /' conftest.$ac_ext >&5
8210
8211  ac_header_preproc=no
8212fi
8213rm -f conftest.err conftest.$ac_ext
8214echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8215echo "${ECHO_T}$ac_header_preproc" >&6
8216
8217# So?  What about this header?
8218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8219  yes:no: )
8220    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8221echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8222    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8223echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8224    ac_header_preproc=yes
8225    ;;
8226  no:yes:* )
8227    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8229    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8230echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8231    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8232echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8233    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8234echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8235    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8237    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8238echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8239    (
8240      cat <<\_ASBOX
8241## ------------------------------------------ ##
8242## Report this to the AC_PACKAGE_NAME lists.  ##
8243## ------------------------------------------ ##
8244_ASBOX
8245    ) |
8246      sed "s/^/$as_me: WARNING:     /" >&2
8247    ;;
8248esac
8249echo "$as_me:$LINENO: checking for $ac_header" >&5
8250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8251if eval "test \"\${$as_ac_Header+set}\" = set"; then
8252  echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254  eval "$as_ac_Header=\$ac_header_preproc"
8255fi
8256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8258
8259fi
8260if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261  cat >>confdefs.h <<_ACEOF
8262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263_ACEOF
8264
8265fi
8266
8267done
8268
8269
8270
8271
8272
8273
8274
8275for ac_header in nss.h nss_common.h nsswitch.h ns_api.h sys/security.h security/pam_appl.h
8276do
8277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8278if eval "test \"\${$as_ac_Header+set}\" = set"; then
8279  echo "$as_me:$LINENO: checking for $ac_header" >&5
8280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8281if eval "test \"\${$as_ac_Header+set}\" = set"; then
8282  echo $ECHO_N "(cached) $ECHO_C" >&6
8283fi
8284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8286else
8287  # Is the header compilable?
8288echo "$as_me:$LINENO: checking $ac_header usability" >&5
8289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8290cat >conftest.$ac_ext <<_ACEOF
8291/* confdefs.h.  */
8292_ACEOF
8293cat confdefs.h >>conftest.$ac_ext
8294cat >>conftest.$ac_ext <<_ACEOF
8295/* end confdefs.h.  */
8296$ac_includes_default
8297#include <$ac_header>
8298_ACEOF
8299rm -f conftest.$ac_objext
8300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8301  (eval $ac_compile) 2>conftest.er1
8302  ac_status=$?
8303  grep -v '^ *+' conftest.er1 >conftest.err
8304  rm -f conftest.er1
8305  cat conftest.err >&5
8306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307  (exit $ac_status); } &&
8308	 { ac_try='test -z "$ac_c_werror_flag"
8309			 || test ! -s conftest.err'
8310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311  (eval $ac_try) 2>&5
8312  ac_status=$?
8313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314  (exit $ac_status); }; } &&
8315	 { ac_try='test -s conftest.$ac_objext'
8316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317  (eval $ac_try) 2>&5
8318  ac_status=$?
8319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320  (exit $ac_status); }; }; then
8321  ac_header_compiler=yes
8322else
8323  echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326ac_header_compiler=no
8327fi
8328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8330echo "${ECHO_T}$ac_header_compiler" >&6
8331
8332# Is the header present?
8333echo "$as_me:$LINENO: checking $ac_header presence" >&5
8334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8335cat >conftest.$ac_ext <<_ACEOF
8336/* confdefs.h.  */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h.  */
8341#include <$ac_header>
8342_ACEOF
8343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8344  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8345  ac_status=$?
8346  grep -v '^ *+' conftest.er1 >conftest.err
8347  rm -f conftest.er1
8348  cat conftest.err >&5
8349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350  (exit $ac_status); } >/dev/null; then
8351  if test -s conftest.err; then
8352    ac_cpp_err=$ac_c_preproc_warn_flag
8353    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8354  else
8355    ac_cpp_err=
8356  fi
8357else
8358  ac_cpp_err=yes
8359fi
8360if test -z "$ac_cpp_err"; then
8361  ac_header_preproc=yes
8362else
8363  echo "$as_me: failed program was:" >&5
8364sed 's/^/| /' conftest.$ac_ext >&5
8365
8366  ac_header_preproc=no
8367fi
8368rm -f conftest.err conftest.$ac_ext
8369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8370echo "${ECHO_T}$ac_header_preproc" >&6
8371
8372# So?  What about this header?
8373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8374  yes:no: )
8375    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8377    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8379    ac_header_preproc=yes
8380    ;;
8381  no:yes:* )
8382    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8384    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8385echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8386    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8387echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8388    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8389echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8392    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8394    (
8395      cat <<\_ASBOX
8396## ------------------------------------------ ##
8397## Report this to the AC_PACKAGE_NAME lists.  ##
8398## ------------------------------------------ ##
8399_ASBOX
8400    ) |
8401      sed "s/^/$as_me: WARNING:     /" >&2
8402    ;;
8403esac
8404echo "$as_me:$LINENO: checking for $ac_header" >&5
8405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8406if eval "test \"\${$as_ac_Header+set}\" = set"; then
8407  echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409  eval "$as_ac_Header=\$ac_header_preproc"
8410fi
8411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8413
8414fi
8415if test `eval echo '${'$as_ac_Header'}'` = yes; then
8416  cat >>confdefs.h <<_ACEOF
8417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8418_ACEOF
8419
8420fi
8421
8422done
8423
8424
8425
8426for ac_header in stropts.h poll.h
8427do
8428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8429if eval "test \"\${$as_ac_Header+set}\" = set"; then
8430  echo "$as_me:$LINENO: checking for $ac_header" >&5
8431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8432if eval "test \"\${$as_ac_Header+set}\" = set"; then
8433  echo $ECHO_N "(cached) $ECHO_C" >&6
8434fi
8435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8437else
8438  # Is the header compilable?
8439echo "$as_me:$LINENO: checking $ac_header usability" >&5
8440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8441cat >conftest.$ac_ext <<_ACEOF
8442/* confdefs.h.  */
8443_ACEOF
8444cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF
8446/* end confdefs.h.  */
8447$ac_includes_default
8448#include <$ac_header>
8449_ACEOF
8450rm -f conftest.$ac_objext
8451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8452  (eval $ac_compile) 2>conftest.er1
8453  ac_status=$?
8454  grep -v '^ *+' conftest.er1 >conftest.err
8455  rm -f conftest.er1
8456  cat conftest.err >&5
8457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458  (exit $ac_status); } &&
8459	 { ac_try='test -z "$ac_c_werror_flag"
8460			 || test ! -s conftest.err'
8461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462  (eval $ac_try) 2>&5
8463  ac_status=$?
8464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465  (exit $ac_status); }; } &&
8466	 { ac_try='test -s conftest.$ac_objext'
8467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468  (eval $ac_try) 2>&5
8469  ac_status=$?
8470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471  (exit $ac_status); }; }; then
8472  ac_header_compiler=yes
8473else
8474  echo "$as_me: failed program was:" >&5
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477ac_header_compiler=no
8478fi
8479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8481echo "${ECHO_T}$ac_header_compiler" >&6
8482
8483# Is the header present?
8484echo "$as_me:$LINENO: checking $ac_header presence" >&5
8485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8486cat >conftest.$ac_ext <<_ACEOF
8487/* confdefs.h.  */
8488_ACEOF
8489cat confdefs.h >>conftest.$ac_ext
8490cat >>conftest.$ac_ext <<_ACEOF
8491/* end confdefs.h.  */
8492#include <$ac_header>
8493_ACEOF
8494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8495  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8496  ac_status=$?
8497  grep -v '^ *+' conftest.er1 >conftest.err
8498  rm -f conftest.er1
8499  cat conftest.err >&5
8500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); } >/dev/null; then
8502  if test -s conftest.err; then
8503    ac_cpp_err=$ac_c_preproc_warn_flag
8504    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8505  else
8506    ac_cpp_err=
8507  fi
8508else
8509  ac_cpp_err=yes
8510fi
8511if test -z "$ac_cpp_err"; then
8512  ac_header_preproc=yes
8513else
8514  echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517  ac_header_preproc=no
8518fi
8519rm -f conftest.err conftest.$ac_ext
8520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8521echo "${ECHO_T}$ac_header_preproc" >&6
8522
8523# So?  What about this header?
8524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8525  yes:no: )
8526    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8528    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8530    ac_header_preproc=yes
8531    ;;
8532  no:yes:* )
8533    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8535    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8536echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8537    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8539    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8540echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8541    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8543    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8545    (
8546      cat <<\_ASBOX
8547## ------------------------------------------ ##
8548## Report this to the AC_PACKAGE_NAME lists.  ##
8549## ------------------------------------------ ##
8550_ASBOX
8551    ) |
8552      sed "s/^/$as_me: WARNING:     /" >&2
8553    ;;
8554esac
8555echo "$as_me:$LINENO: checking for $ac_header" >&5
8556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8557if eval "test \"\${$as_ac_Header+set}\" = set"; then
8558  echo $ECHO_N "(cached) $ECHO_C" >&6
8559else
8560  eval "$as_ac_Header=\$ac_header_preproc"
8561fi
8562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8564
8565fi
8566if test `eval echo '${'$as_ac_Header'}'` = yes; then
8567  cat >>confdefs.h <<_ACEOF
8568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8569_ACEOF
8570
8571fi
8572
8573done
8574
8575
8576
8577
8578for ac_header in sys/capability.h syscall.h sys/syscall.h
8579do
8580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8581if eval "test \"\${$as_ac_Header+set}\" = set"; then
8582  echo "$as_me:$LINENO: checking for $ac_header" >&5
8583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8584if eval "test \"\${$as_ac_Header+set}\" = set"; then
8585  echo $ECHO_N "(cached) $ECHO_C" >&6
8586fi
8587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8589else
8590  # Is the header compilable?
8591echo "$as_me:$LINENO: checking $ac_header usability" >&5
8592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8593cat >conftest.$ac_ext <<_ACEOF
8594/* confdefs.h.  */
8595_ACEOF
8596cat confdefs.h >>conftest.$ac_ext
8597cat >>conftest.$ac_ext <<_ACEOF
8598/* end confdefs.h.  */
8599$ac_includes_default
8600#include <$ac_header>
8601_ACEOF
8602rm -f conftest.$ac_objext
8603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604  (eval $ac_compile) 2>conftest.er1
8605  ac_status=$?
8606  grep -v '^ *+' conftest.er1 >conftest.err
8607  rm -f conftest.er1
8608  cat conftest.err >&5
8609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); } &&
8611	 { ac_try='test -z "$ac_c_werror_flag"
8612			 || test ! -s conftest.err'
8613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614  (eval $ac_try) 2>&5
8615  ac_status=$?
8616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617  (exit $ac_status); }; } &&
8618	 { ac_try='test -s conftest.$ac_objext'
8619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620  (eval $ac_try) 2>&5
8621  ac_status=$?
8622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); }; }; then
8624  ac_header_compiler=yes
8625else
8626  echo "$as_me: failed program was:" >&5
8627sed 's/^/| /' conftest.$ac_ext >&5
8628
8629ac_header_compiler=no
8630fi
8631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8633echo "${ECHO_T}$ac_header_compiler" >&6
8634
8635# Is the header present?
8636echo "$as_me:$LINENO: checking $ac_header presence" >&5
8637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8638cat >conftest.$ac_ext <<_ACEOF
8639/* confdefs.h.  */
8640_ACEOF
8641cat confdefs.h >>conftest.$ac_ext
8642cat >>conftest.$ac_ext <<_ACEOF
8643/* end confdefs.h.  */
8644#include <$ac_header>
8645_ACEOF
8646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8647  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8648  ac_status=$?
8649  grep -v '^ *+' conftest.er1 >conftest.err
8650  rm -f conftest.er1
8651  cat conftest.err >&5
8652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653  (exit $ac_status); } >/dev/null; then
8654  if test -s conftest.err; then
8655    ac_cpp_err=$ac_c_preproc_warn_flag
8656    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8657  else
8658    ac_cpp_err=
8659  fi
8660else
8661  ac_cpp_err=yes
8662fi
8663if test -z "$ac_cpp_err"; then
8664  ac_header_preproc=yes
8665else
8666  echo "$as_me: failed program was:" >&5
8667sed 's/^/| /' conftest.$ac_ext >&5
8668
8669  ac_header_preproc=no
8670fi
8671rm -f conftest.err conftest.$ac_ext
8672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8673echo "${ECHO_T}$ac_header_preproc" >&6
8674
8675# So?  What about this header?
8676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8677  yes:no: )
8678    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8680    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8682    ac_header_preproc=yes
8683    ;;
8684  no:yes:* )
8685    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8687    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8688echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8689    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8691    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8692echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8693    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8695    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8697    (
8698      cat <<\_ASBOX
8699## ------------------------------------------ ##
8700## Report this to the AC_PACKAGE_NAME lists.  ##
8701## ------------------------------------------ ##
8702_ASBOX
8703    ) |
8704      sed "s/^/$as_me: WARNING:     /" >&2
8705    ;;
8706esac
8707echo "$as_me:$LINENO: checking for $ac_header" >&5
8708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8709if eval "test \"\${$as_ac_Header+set}\" = set"; then
8710  echo $ECHO_N "(cached) $ECHO_C" >&6
8711else
8712  eval "$as_ac_Header=\$ac_header_preproc"
8713fi
8714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8716
8717fi
8718if test `eval echo '${'$as_ac_Header'}'` = yes; then
8719  cat >>confdefs.h <<_ACEOF
8720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8721_ACEOF
8722
8723fi
8724
8725done
8726
8727
8728
8729
8730
8731
8732
8733for ac_header in sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/cdefs.h glob.h
8734do
8735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737  echo "$as_me:$LINENO: checking for $ac_header" >&5
8738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740  echo $ECHO_N "(cached) $ECHO_C" >&6
8741fi
8742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744else
8745  # Is the header compilable?
8746echo "$as_me:$LINENO: checking $ac_header usability" >&5
8747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8748cat >conftest.$ac_ext <<_ACEOF
8749/* confdefs.h.  */
8750_ACEOF
8751cat confdefs.h >>conftest.$ac_ext
8752cat >>conftest.$ac_ext <<_ACEOF
8753/* end confdefs.h.  */
8754$ac_includes_default
8755#include <$ac_header>
8756_ACEOF
8757rm -f conftest.$ac_objext
8758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759  (eval $ac_compile) 2>conftest.er1
8760  ac_status=$?
8761  grep -v '^ *+' conftest.er1 >conftest.err
8762  rm -f conftest.er1
8763  cat conftest.err >&5
8764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765  (exit $ac_status); } &&
8766	 { ac_try='test -z "$ac_c_werror_flag"
8767			 || test ! -s conftest.err'
8768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769  (eval $ac_try) 2>&5
8770  ac_status=$?
8771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772  (exit $ac_status); }; } &&
8773	 { ac_try='test -s conftest.$ac_objext'
8774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775  (eval $ac_try) 2>&5
8776  ac_status=$?
8777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778  (exit $ac_status); }; }; then
8779  ac_header_compiler=yes
8780else
8781  echo "$as_me: failed program was:" >&5
8782sed 's/^/| /' conftest.$ac_ext >&5
8783
8784ac_header_compiler=no
8785fi
8786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8788echo "${ECHO_T}$ac_header_compiler" >&6
8789
8790# Is the header present?
8791echo "$as_me:$LINENO: checking $ac_header presence" >&5
8792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8793cat >conftest.$ac_ext <<_ACEOF
8794/* confdefs.h.  */
8795_ACEOF
8796cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h.  */
8799#include <$ac_header>
8800_ACEOF
8801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8802  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8803  ac_status=$?
8804  grep -v '^ *+' conftest.er1 >conftest.err
8805  rm -f conftest.er1
8806  cat conftest.err >&5
8807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808  (exit $ac_status); } >/dev/null; then
8809  if test -s conftest.err; then
8810    ac_cpp_err=$ac_c_preproc_warn_flag
8811    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8812  else
8813    ac_cpp_err=
8814  fi
8815else
8816  ac_cpp_err=yes
8817fi
8818if test -z "$ac_cpp_err"; then
8819  ac_header_preproc=yes
8820else
8821  echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
8824  ac_header_preproc=no
8825fi
8826rm -f conftest.err conftest.$ac_ext
8827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8828echo "${ECHO_T}$ac_header_preproc" >&6
8829
8830# So?  What about this header?
8831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8832  yes:no: )
8833    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8835    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8837    ac_header_preproc=yes
8838    ;;
8839  no:yes:* )
8840    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8842    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8843echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8844    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8846    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8847echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8848    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8850    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8852    (
8853      cat <<\_ASBOX
8854## ------------------------------------------ ##
8855## Report this to the AC_PACKAGE_NAME lists.  ##
8856## ------------------------------------------ ##
8857_ASBOX
8858    ) |
8859      sed "s/^/$as_me: WARNING:     /" >&2
8860    ;;
8861esac
8862echo "$as_me:$LINENO: checking for $ac_header" >&5
8863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8864if eval "test \"\${$as_ac_Header+set}\" = set"; then
8865  echo $ECHO_N "(cached) $ECHO_C" >&6
8866else
8867  eval "$as_ac_Header=\$ac_header_preproc"
8868fi
8869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8871
8872fi
8873if test `eval echo '${'$as_ac_Header'}'` = yes; then
8874  cat >>confdefs.h <<_ACEOF
8875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8876_ACEOF
8877
8878fi
8879
8880done
8881
8882# These faile to compile on Solaris so just check for their presence
8883
8884
8885
8886for ac_header in security/pam_modules.h net/if.h netinet/ip.h
8887do
8888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8889echo "$as_me:$LINENO: checking for $ac_header" >&5
8890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8891if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892  echo $ECHO_N "(cached) $ECHO_C" >&6
8893else
8894  cat >conftest.$ac_ext <<_ACEOF
8895/* confdefs.h.  */
8896_ACEOF
8897cat confdefs.h >>conftest.$ac_ext
8898cat >>conftest.$ac_ext <<_ACEOF
8899/* end confdefs.h.  */
8900#include <$ac_header>
8901_ACEOF
8902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8903  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8904  ac_status=$?
8905  grep -v '^ *+' conftest.er1 >conftest.err
8906  rm -f conftest.er1
8907  cat conftest.err >&5
8908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909  (exit $ac_status); } >/dev/null; then
8910  if test -s conftest.err; then
8911    ac_cpp_err=$ac_c_preproc_warn_flag
8912    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8913  else
8914    ac_cpp_err=
8915  fi
8916else
8917  ac_cpp_err=yes
8918fi
8919if test -z "$ac_cpp_err"; then
8920  eval "$as_ac_Header=yes"
8921else
8922  echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
8925  eval "$as_ac_Header=no"
8926fi
8927rm -f conftest.err conftest.$ac_ext
8928fi
8929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8931if test `eval echo '${'$as_ac_Header'}'` = yes; then
8932  cat >>confdefs.h <<_ACEOF
8933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8934_ACEOF
8935
8936fi
8937
8938done
8939
8940
8941# For experimental utmp support (lastlog on some BSD-like systems)
8942
8943
8944
8945for ac_header in utmp.h utmpx.h lastlog.h
8946do
8947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8948if eval "test \"\${$as_ac_Header+set}\" = set"; then
8949  echo "$as_me:$LINENO: checking for $ac_header" >&5
8950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8951if eval "test \"\${$as_ac_Header+set}\" = set"; then
8952  echo $ECHO_N "(cached) $ECHO_C" >&6
8953fi
8954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8956else
8957  # Is the header compilable?
8958echo "$as_me:$LINENO: checking $ac_header usability" >&5
8959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8960cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h.  */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h.  */
8966$ac_includes_default
8967#include <$ac_header>
8968_ACEOF
8969rm -f conftest.$ac_objext
8970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8971  (eval $ac_compile) 2>conftest.er1
8972  ac_status=$?
8973  grep -v '^ *+' conftest.er1 >conftest.err
8974  rm -f conftest.er1
8975  cat conftest.err >&5
8976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977  (exit $ac_status); } &&
8978	 { ac_try='test -z "$ac_c_werror_flag"
8979			 || test ! -s conftest.err'
8980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981  (eval $ac_try) 2>&5
8982  ac_status=$?
8983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984  (exit $ac_status); }; } &&
8985	 { ac_try='test -s conftest.$ac_objext'
8986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987  (eval $ac_try) 2>&5
8988  ac_status=$?
8989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990  (exit $ac_status); }; }; then
8991  ac_header_compiler=yes
8992else
8993  echo "$as_me: failed program was:" >&5
8994sed 's/^/| /' conftest.$ac_ext >&5
8995
8996ac_header_compiler=no
8997fi
8998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000echo "${ECHO_T}$ac_header_compiler" >&6
9001
9002# Is the header present?
9003echo "$as_me:$LINENO: checking $ac_header presence" >&5
9004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9005cat >conftest.$ac_ext <<_ACEOF
9006/* confdefs.h.  */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
9010/* end confdefs.h.  */
9011#include <$ac_header>
9012_ACEOF
9013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9014  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9015  ac_status=$?
9016  grep -v '^ *+' conftest.er1 >conftest.err
9017  rm -f conftest.er1
9018  cat conftest.err >&5
9019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020  (exit $ac_status); } >/dev/null; then
9021  if test -s conftest.err; then
9022    ac_cpp_err=$ac_c_preproc_warn_flag
9023    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9024  else
9025    ac_cpp_err=
9026  fi
9027else
9028  ac_cpp_err=yes
9029fi
9030if test -z "$ac_cpp_err"; then
9031  ac_header_preproc=yes
9032else
9033  echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036  ac_header_preproc=no
9037fi
9038rm -f conftest.err conftest.$ac_ext
9039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9040echo "${ECHO_T}$ac_header_preproc" >&6
9041
9042# So?  What about this header?
9043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9044  yes:no: )
9045    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9047    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9049    ac_header_preproc=yes
9050    ;;
9051  no:yes:* )
9052    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9054    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9055echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9056    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9058    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9059echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9060    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9062    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9064    (
9065      cat <<\_ASBOX
9066## ------------------------------------------ ##
9067## Report this to the AC_PACKAGE_NAME lists.  ##
9068## ------------------------------------------ ##
9069_ASBOX
9070    ) |
9071      sed "s/^/$as_me: WARNING:     /" >&2
9072    ;;
9073esac
9074echo "$as_me:$LINENO: checking for $ac_header" >&5
9075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9076if eval "test \"\${$as_ac_Header+set}\" = set"; then
9077  echo $ECHO_N "(cached) $ECHO_C" >&6
9078else
9079  eval "$as_ac_Header=\$ac_header_preproc"
9080fi
9081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9083
9084fi
9085if test `eval echo '${'$as_ac_Header'}'` = yes; then
9086  cat >>confdefs.h <<_ACEOF
9087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9088_ACEOF
9089
9090fi
9091
9092done
9093
9094
9095echo "$as_me:$LINENO: checking for int" >&5
9096echo $ECHO_N "checking for int... $ECHO_C" >&6
9097if test "${ac_cv_type_int+set}" = set; then
9098  echo $ECHO_N "(cached) $ECHO_C" >&6
9099else
9100  cat >conftest.$ac_ext <<_ACEOF
9101/* confdefs.h.  */
9102_ACEOF
9103cat confdefs.h >>conftest.$ac_ext
9104cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h.  */
9106$ac_includes_default
9107int
9108main ()
9109{
9110if ((int *) 0)
9111  return 0;
9112if (sizeof (int))
9113  return 0;
9114  ;
9115  return 0;
9116}
9117_ACEOF
9118rm -f conftest.$ac_objext
9119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120  (eval $ac_compile) 2>conftest.er1
9121  ac_status=$?
9122  grep -v '^ *+' conftest.er1 >conftest.err
9123  rm -f conftest.er1
9124  cat conftest.err >&5
9125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126  (exit $ac_status); } &&
9127	 { ac_try='test -z "$ac_c_werror_flag"
9128			 || test ! -s conftest.err'
9129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130  (eval $ac_try) 2>&5
9131  ac_status=$?
9132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133  (exit $ac_status); }; } &&
9134	 { ac_try='test -s conftest.$ac_objext'
9135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136  (eval $ac_try) 2>&5
9137  ac_status=$?
9138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); }; }; then
9140  ac_cv_type_int=yes
9141else
9142  echo "$as_me: failed program was:" >&5
9143sed 's/^/| /' conftest.$ac_ext >&5
9144
9145ac_cv_type_int=no
9146fi
9147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9148fi
9149echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9150echo "${ECHO_T}$ac_cv_type_int" >&6
9151
9152echo "$as_me:$LINENO: checking size of int" >&5
9153echo $ECHO_N "checking size of int... $ECHO_C" >&6
9154if test "${ac_cv_sizeof_int+set}" = set; then
9155  echo $ECHO_N "(cached) $ECHO_C" >&6
9156else
9157  if test "$ac_cv_type_int" = yes; then
9158  # The cast to unsigned long works around a bug in the HP C Compiler
9159  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9160  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9161  # This bug is HP SR number 8606223364.
9162  if test "$cross_compiling" = yes; then
9163  # Depending upon the size, compute the lo and hi bounds.
9164cat >conftest.$ac_ext <<_ACEOF
9165/* confdefs.h.  */
9166_ACEOF
9167cat confdefs.h >>conftest.$ac_ext
9168cat >>conftest.$ac_ext <<_ACEOF
9169/* end confdefs.h.  */
9170$ac_includes_default
9171int
9172main ()
9173{
9174static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9175test_array [0] = 0
9176
9177  ;
9178  return 0;
9179}
9180_ACEOF
9181rm -f conftest.$ac_objext
9182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183  (eval $ac_compile) 2>conftest.er1
9184  ac_status=$?
9185  grep -v '^ *+' conftest.er1 >conftest.err
9186  rm -f conftest.er1
9187  cat conftest.err >&5
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); } &&
9190	 { ac_try='test -z "$ac_c_werror_flag"
9191			 || test ! -s conftest.err'
9192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193  (eval $ac_try) 2>&5
9194  ac_status=$?
9195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196  (exit $ac_status); }; } &&
9197	 { ac_try='test -s conftest.$ac_objext'
9198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199  (eval $ac_try) 2>&5
9200  ac_status=$?
9201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202  (exit $ac_status); }; }; then
9203  ac_lo=0 ac_mid=0
9204  while :; do
9205    cat >conftest.$ac_ext <<_ACEOF
9206/* confdefs.h.  */
9207_ACEOF
9208cat confdefs.h >>conftest.$ac_ext
9209cat >>conftest.$ac_ext <<_ACEOF
9210/* end confdefs.h.  */
9211$ac_includes_default
9212int
9213main ()
9214{
9215static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9216test_array [0] = 0
9217
9218  ;
9219  return 0;
9220}
9221_ACEOF
9222rm -f conftest.$ac_objext
9223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9224  (eval $ac_compile) 2>conftest.er1
9225  ac_status=$?
9226  grep -v '^ *+' conftest.er1 >conftest.err
9227  rm -f conftest.er1
9228  cat conftest.err >&5
9229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230  (exit $ac_status); } &&
9231	 { ac_try='test -z "$ac_c_werror_flag"
9232			 || test ! -s conftest.err'
9233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234  (eval $ac_try) 2>&5
9235  ac_status=$?
9236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237  (exit $ac_status); }; } &&
9238	 { ac_try='test -s conftest.$ac_objext'
9239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240  (eval $ac_try) 2>&5
9241  ac_status=$?
9242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243  (exit $ac_status); }; }; then
9244  ac_hi=$ac_mid; break
9245else
9246  echo "$as_me: failed program was:" >&5
9247sed 's/^/| /' conftest.$ac_ext >&5
9248
9249ac_lo=`expr $ac_mid + 1`
9250		    if test $ac_lo -le $ac_mid; then
9251		      ac_lo= ac_hi=
9252		      break
9253		    fi
9254		    ac_mid=`expr 2 '*' $ac_mid + 1`
9255fi
9256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9257  done
9258else
9259  echo "$as_me: failed program was:" >&5
9260sed 's/^/| /' conftest.$ac_ext >&5
9261
9262cat >conftest.$ac_ext <<_ACEOF
9263/* confdefs.h.  */
9264_ACEOF
9265cat confdefs.h >>conftest.$ac_ext
9266cat >>conftest.$ac_ext <<_ACEOF
9267/* end confdefs.h.  */
9268$ac_includes_default
9269int
9270main ()
9271{
9272static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
9273test_array [0] = 0
9274
9275  ;
9276  return 0;
9277}
9278_ACEOF
9279rm -f conftest.$ac_objext
9280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9281  (eval $ac_compile) 2>conftest.er1
9282  ac_status=$?
9283  grep -v '^ *+' conftest.er1 >conftest.err
9284  rm -f conftest.er1
9285  cat conftest.err >&5
9286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287  (exit $ac_status); } &&
9288	 { ac_try='test -z "$ac_c_werror_flag"
9289			 || test ! -s conftest.err'
9290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291  (eval $ac_try) 2>&5
9292  ac_status=$?
9293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294  (exit $ac_status); }; } &&
9295	 { ac_try='test -s conftest.$ac_objext'
9296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297  (eval $ac_try) 2>&5
9298  ac_status=$?
9299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300  (exit $ac_status); }; }; then
9301  ac_hi=-1 ac_mid=-1
9302  while :; do
9303    cat >conftest.$ac_ext <<_ACEOF
9304/* confdefs.h.  */
9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h.  */
9309$ac_includes_default
9310int
9311main ()
9312{
9313static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
9314test_array [0] = 0
9315
9316  ;
9317  return 0;
9318}
9319_ACEOF
9320rm -f conftest.$ac_objext
9321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322  (eval $ac_compile) 2>conftest.er1
9323  ac_status=$?
9324  grep -v '^ *+' conftest.er1 >conftest.err
9325  rm -f conftest.er1
9326  cat conftest.err >&5
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); } &&
9329	 { ac_try='test -z "$ac_c_werror_flag"
9330			 || test ! -s conftest.err'
9331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332  (eval $ac_try) 2>&5
9333  ac_status=$?
9334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335  (exit $ac_status); }; } &&
9336	 { ac_try='test -s conftest.$ac_objext'
9337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338  (eval $ac_try) 2>&5
9339  ac_status=$?
9340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341  (exit $ac_status); }; }; then
9342  ac_lo=$ac_mid; break
9343else
9344  echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347ac_hi=`expr '(' $ac_mid ')' - 1`
9348		       if test $ac_mid -le $ac_hi; then
9349			 ac_lo= ac_hi=
9350			 break
9351		       fi
9352		       ac_mid=`expr 2 '*' $ac_mid`
9353fi
9354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9355  done
9356else
9357  echo "$as_me: failed program was:" >&5
9358sed 's/^/| /' conftest.$ac_ext >&5
9359
9360ac_lo= ac_hi=
9361fi
9362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9363fi
9364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9365# Binary search between lo and hi bounds.
9366while test "x$ac_lo" != "x$ac_hi"; do
9367  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9368  cat >conftest.$ac_ext <<_ACEOF
9369/* confdefs.h.  */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h.  */
9374$ac_includes_default
9375int
9376main ()
9377{
9378static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9379test_array [0] = 0
9380
9381  ;
9382  return 0;
9383}
9384_ACEOF
9385rm -f conftest.$ac_objext
9386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387  (eval $ac_compile) 2>conftest.er1
9388  ac_status=$?
9389  grep -v '^ *+' conftest.er1 >conftest.err
9390  rm -f conftest.er1
9391  cat conftest.err >&5
9392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393  (exit $ac_status); } &&
9394	 { ac_try='test -z "$ac_c_werror_flag"
9395			 || test ! -s conftest.err'
9396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397  (eval $ac_try) 2>&5
9398  ac_status=$?
9399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400  (exit $ac_status); }; } &&
9401	 { ac_try='test -s conftest.$ac_objext'
9402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403  (eval $ac_try) 2>&5
9404  ac_status=$?
9405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406  (exit $ac_status); }; }; then
9407  ac_hi=$ac_mid
9408else
9409  echo "$as_me: failed program was:" >&5
9410sed 's/^/| /' conftest.$ac_ext >&5
9411
9412ac_lo=`expr '(' $ac_mid ')' + 1`
9413fi
9414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9415done
9416case $ac_lo in
9417?*) ac_cv_sizeof_int=$ac_lo;;
9418'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9419See \`config.log' for more details." >&5
9420echo "$as_me: error: cannot compute sizeof (int), 77
9421See \`config.log' for more details." >&2;}
9422   { (exit 1); exit 1; }; } ;;
9423esac
9424else
9425  if test "$cross_compiling" = yes; then
9426  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9427See \`config.log' for more details." >&5
9428echo "$as_me: error: cannot run test program while cross compiling
9429See \`config.log' for more details." >&2;}
9430   { (exit 1); exit 1; }; }
9431else
9432  cat >conftest.$ac_ext <<_ACEOF
9433/* confdefs.h.  */
9434_ACEOF
9435cat confdefs.h >>conftest.$ac_ext
9436cat >>conftest.$ac_ext <<_ACEOF
9437/* end confdefs.h.  */
9438$ac_includes_default
9439long longval () { return (long) (sizeof (int)); }
9440unsigned long ulongval () { return (long) (sizeof (int)); }
9441#include <stdio.h>
9442#include <stdlib.h>
9443int
9444main ()
9445{
9446
9447  FILE *f = fopen ("conftest.val", "w");
9448  if (! f)
9449    exit (1);
9450  if (((long) (sizeof (int))) < 0)
9451    {
9452      long i = longval ();
9453      if (i != ((long) (sizeof (int))))
9454	exit (1);
9455      fprintf (f, "%ld\n", i);
9456    }
9457  else
9458    {
9459      unsigned long i = ulongval ();
9460      if (i != ((long) (sizeof (int))))
9461	exit (1);
9462      fprintf (f, "%lu\n", i);
9463    }
9464  exit (ferror (f) || fclose (f) != 0);
9465
9466  ;
9467  return 0;
9468}
9469_ACEOF
9470rm -f conftest$ac_exeext
9471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472  (eval $ac_link) 2>&5
9473  ac_status=$?
9474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477  (eval $ac_try) 2>&5
9478  ac_status=$?
9479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480  (exit $ac_status); }; }; then
9481  ac_cv_sizeof_int=`cat conftest.val`
9482else
9483  echo "$as_me: program exited with status $ac_status" >&5
9484echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
9487( exit $ac_status )
9488{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9489See \`config.log' for more details." >&5
9490echo "$as_me: error: cannot compute sizeof (int), 77
9491See \`config.log' for more details." >&2;}
9492   { (exit 1); exit 1; }; }
9493fi
9494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9495fi
9496fi
9497rm -f conftest.val
9498else
9499  ac_cv_sizeof_int=0
9500fi
9501fi
9502echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9503echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9504cat >>confdefs.h <<_ACEOF
9505#define SIZEOF_INT $ac_cv_sizeof_int
9506_ACEOF
9507
9508
9509echo "$as_me:$LINENO: checking for long" >&5
9510echo $ECHO_N "checking for long... $ECHO_C" >&6
9511if test "${ac_cv_type_long+set}" = set; then
9512  echo $ECHO_N "(cached) $ECHO_C" >&6
9513else
9514  cat >conftest.$ac_ext <<_ACEOF
9515/* confdefs.h.  */
9516_ACEOF
9517cat confdefs.h >>conftest.$ac_ext
9518cat >>conftest.$ac_ext <<_ACEOF
9519/* end confdefs.h.  */
9520$ac_includes_default
9521int
9522main ()
9523{
9524if ((long *) 0)
9525  return 0;
9526if (sizeof (long))
9527  return 0;
9528  ;
9529  return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext
9533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534  (eval $ac_compile) 2>conftest.er1
9535  ac_status=$?
9536  grep -v '^ *+' conftest.er1 >conftest.err
9537  rm -f conftest.er1
9538  cat conftest.err >&5
9539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540  (exit $ac_status); } &&
9541	 { ac_try='test -z "$ac_c_werror_flag"
9542			 || test ! -s conftest.err'
9543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544  (eval $ac_try) 2>&5
9545  ac_status=$?
9546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547  (exit $ac_status); }; } &&
9548	 { ac_try='test -s conftest.$ac_objext'
9549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550  (eval $ac_try) 2>&5
9551  ac_status=$?
9552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553  (exit $ac_status); }; }; then
9554  ac_cv_type_long=yes
9555else
9556  echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559ac_cv_type_long=no
9560fi
9561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562fi
9563echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9564echo "${ECHO_T}$ac_cv_type_long" >&6
9565
9566echo "$as_me:$LINENO: checking size of long" >&5
9567echo $ECHO_N "checking size of long... $ECHO_C" >&6
9568if test "${ac_cv_sizeof_long+set}" = set; then
9569  echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571  if test "$ac_cv_type_long" = yes; then
9572  # The cast to unsigned long works around a bug in the HP C Compiler
9573  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9574  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9575  # This bug is HP SR number 8606223364.
9576  if test "$cross_compiling" = yes; then
9577  # Depending upon the size, compute the lo and hi bounds.
9578cat >conftest.$ac_ext <<_ACEOF
9579/* confdefs.h.  */
9580_ACEOF
9581cat confdefs.h >>conftest.$ac_ext
9582cat >>conftest.$ac_ext <<_ACEOF
9583/* end confdefs.h.  */
9584$ac_includes_default
9585int
9586main ()
9587{
9588static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9589test_array [0] = 0
9590
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext
9596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597  (eval $ac_compile) 2>conftest.er1
9598  ac_status=$?
9599  grep -v '^ *+' conftest.er1 >conftest.err
9600  rm -f conftest.er1
9601  cat conftest.err >&5
9602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603  (exit $ac_status); } &&
9604	 { ac_try='test -z "$ac_c_werror_flag"
9605			 || test ! -s conftest.err'
9606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607  (eval $ac_try) 2>&5
9608  ac_status=$?
9609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610  (exit $ac_status); }; } &&
9611	 { ac_try='test -s conftest.$ac_objext'
9612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613  (eval $ac_try) 2>&5
9614  ac_status=$?
9615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616  (exit $ac_status); }; }; then
9617  ac_lo=0 ac_mid=0
9618  while :; do
9619    cat >conftest.$ac_ext <<_ACEOF
9620/* confdefs.h.  */
9621_ACEOF
9622cat confdefs.h >>conftest.$ac_ext
9623cat >>conftest.$ac_ext <<_ACEOF
9624/* end confdefs.h.  */
9625$ac_includes_default
9626int
9627main ()
9628{
9629static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9630test_array [0] = 0
9631
9632  ;
9633  return 0;
9634}
9635_ACEOF
9636rm -f conftest.$ac_objext
9637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638  (eval $ac_compile) 2>conftest.er1
9639  ac_status=$?
9640  grep -v '^ *+' conftest.er1 >conftest.err
9641  rm -f conftest.er1
9642  cat conftest.err >&5
9643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644  (exit $ac_status); } &&
9645	 { ac_try='test -z "$ac_c_werror_flag"
9646			 || test ! -s conftest.err'
9647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648  (eval $ac_try) 2>&5
9649  ac_status=$?
9650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651  (exit $ac_status); }; } &&
9652	 { ac_try='test -s conftest.$ac_objext'
9653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654  (eval $ac_try) 2>&5
9655  ac_status=$?
9656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657  (exit $ac_status); }; }; then
9658  ac_hi=$ac_mid; break
9659else
9660  echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663ac_lo=`expr $ac_mid + 1`
9664		    if test $ac_lo -le $ac_mid; then
9665		      ac_lo= ac_hi=
9666		      break
9667		    fi
9668		    ac_mid=`expr 2 '*' $ac_mid + 1`
9669fi
9670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9671  done
9672else
9673  echo "$as_me: failed program was:" >&5
9674sed 's/^/| /' conftest.$ac_ext >&5
9675
9676cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h.  */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h.  */
9682$ac_includes_default
9683int
9684main ()
9685{
9686static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9687test_array [0] = 0
9688
9689  ;
9690  return 0;
9691}
9692_ACEOF
9693rm -f conftest.$ac_objext
9694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695  (eval $ac_compile) 2>conftest.er1
9696  ac_status=$?
9697  grep -v '^ *+' conftest.er1 >conftest.err
9698  rm -f conftest.er1
9699  cat conftest.err >&5
9700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701  (exit $ac_status); } &&
9702	 { ac_try='test -z "$ac_c_werror_flag"
9703			 || test ! -s conftest.err'
9704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705  (eval $ac_try) 2>&5
9706  ac_status=$?
9707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708  (exit $ac_status); }; } &&
9709	 { ac_try='test -s conftest.$ac_objext'
9710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711  (eval $ac_try) 2>&5
9712  ac_status=$?
9713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714  (exit $ac_status); }; }; then
9715  ac_hi=-1 ac_mid=-1
9716  while :; do
9717    cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h.  */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h.  */
9723$ac_includes_default
9724int
9725main ()
9726{
9727static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9728test_array [0] = 0
9729
9730  ;
9731  return 0;
9732}
9733_ACEOF
9734rm -f conftest.$ac_objext
9735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736  (eval $ac_compile) 2>conftest.er1
9737  ac_status=$?
9738  grep -v '^ *+' conftest.er1 >conftest.err
9739  rm -f conftest.er1
9740  cat conftest.err >&5
9741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742  (exit $ac_status); } &&
9743	 { ac_try='test -z "$ac_c_werror_flag"
9744			 || test ! -s conftest.err'
9745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746  (eval $ac_try) 2>&5
9747  ac_status=$?
9748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749  (exit $ac_status); }; } &&
9750	 { ac_try='test -s conftest.$ac_objext'
9751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752  (eval $ac_try) 2>&5
9753  ac_status=$?
9754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755  (exit $ac_status); }; }; then
9756  ac_lo=$ac_mid; break
9757else
9758  echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
9761ac_hi=`expr '(' $ac_mid ')' - 1`
9762		       if test $ac_mid -le $ac_hi; then
9763			 ac_lo= ac_hi=
9764			 break
9765		       fi
9766		       ac_mid=`expr 2 '*' $ac_mid`
9767fi
9768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9769  done
9770else
9771  echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
9773
9774ac_lo= ac_hi=
9775fi
9776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9777fi
9778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9779# Binary search between lo and hi bounds.
9780while test "x$ac_lo" != "x$ac_hi"; do
9781  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9782  cat >conftest.$ac_ext <<_ACEOF
9783/* confdefs.h.  */
9784_ACEOF
9785cat confdefs.h >>conftest.$ac_ext
9786cat >>conftest.$ac_ext <<_ACEOF
9787/* end confdefs.h.  */
9788$ac_includes_default
9789int
9790main ()
9791{
9792static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9793test_array [0] = 0
9794
9795  ;
9796  return 0;
9797}
9798_ACEOF
9799rm -f conftest.$ac_objext
9800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801  (eval $ac_compile) 2>conftest.er1
9802  ac_status=$?
9803  grep -v '^ *+' conftest.er1 >conftest.err
9804  rm -f conftest.er1
9805  cat conftest.err >&5
9806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807  (exit $ac_status); } &&
9808	 { ac_try='test -z "$ac_c_werror_flag"
9809			 || test ! -s conftest.err'
9810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811  (eval $ac_try) 2>&5
9812  ac_status=$?
9813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814  (exit $ac_status); }; } &&
9815	 { ac_try='test -s conftest.$ac_objext'
9816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817  (eval $ac_try) 2>&5
9818  ac_status=$?
9819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820  (exit $ac_status); }; }; then
9821  ac_hi=$ac_mid
9822else
9823  echo "$as_me: failed program was:" >&5
9824sed 's/^/| /' conftest.$ac_ext >&5
9825
9826ac_lo=`expr '(' $ac_mid ')' + 1`
9827fi
9828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9829done
9830case $ac_lo in
9831?*) ac_cv_sizeof_long=$ac_lo;;
9832'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9833See \`config.log' for more details." >&5
9834echo "$as_me: error: cannot compute sizeof (long), 77
9835See \`config.log' for more details." >&2;}
9836   { (exit 1); exit 1; }; } ;;
9837esac
9838else
9839  if test "$cross_compiling" = yes; then
9840  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9841See \`config.log' for more details." >&5
9842echo "$as_me: error: cannot run test program while cross compiling
9843See \`config.log' for more details." >&2;}
9844   { (exit 1); exit 1; }; }
9845else
9846  cat >conftest.$ac_ext <<_ACEOF
9847/* confdefs.h.  */
9848_ACEOF
9849cat confdefs.h >>conftest.$ac_ext
9850cat >>conftest.$ac_ext <<_ACEOF
9851/* end confdefs.h.  */
9852$ac_includes_default
9853long longval () { return (long) (sizeof (long)); }
9854unsigned long ulongval () { return (long) (sizeof (long)); }
9855#include <stdio.h>
9856#include <stdlib.h>
9857int
9858main ()
9859{
9860
9861  FILE *f = fopen ("conftest.val", "w");
9862  if (! f)
9863    exit (1);
9864  if (((long) (sizeof (long))) < 0)
9865    {
9866      long i = longval ();
9867      if (i != ((long) (sizeof (long))))
9868	exit (1);
9869      fprintf (f, "%ld\n", i);
9870    }
9871  else
9872    {
9873      unsigned long i = ulongval ();
9874      if (i != ((long) (sizeof (long))))
9875	exit (1);
9876      fprintf (f, "%lu\n", i);
9877    }
9878  exit (ferror (f) || fclose (f) != 0);
9879
9880  ;
9881  return 0;
9882}
9883_ACEOF
9884rm -f conftest$ac_exeext
9885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9886  (eval $ac_link) 2>&5
9887  ac_status=$?
9888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891  (eval $ac_try) 2>&5
9892  ac_status=$?
9893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894  (exit $ac_status); }; }; then
9895  ac_cv_sizeof_long=`cat conftest.val`
9896else
9897  echo "$as_me: program exited with status $ac_status" >&5
9898echo "$as_me: failed program was:" >&5
9899sed 's/^/| /' conftest.$ac_ext >&5
9900
9901( exit $ac_status )
9902{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9903See \`config.log' for more details." >&5
9904echo "$as_me: error: cannot compute sizeof (long), 77
9905See \`config.log' for more details." >&2;}
9906   { (exit 1); exit 1; }; }
9907fi
9908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9909fi
9910fi
9911rm -f conftest.val
9912else
9913  ac_cv_sizeof_long=0
9914fi
9915fi
9916echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9917echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9918cat >>confdefs.h <<_ACEOF
9919#define SIZEOF_LONG $ac_cv_sizeof_long
9920_ACEOF
9921
9922
9923echo "$as_me:$LINENO: checking for short" >&5
9924echo $ECHO_N "checking for short... $ECHO_C" >&6
9925if test "${ac_cv_type_short+set}" = set; then
9926  echo $ECHO_N "(cached) $ECHO_C" >&6
9927else
9928  cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h.  */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
9933/* end confdefs.h.  */
9934$ac_includes_default
9935int
9936main ()
9937{
9938if ((short *) 0)
9939  return 0;
9940if (sizeof (short))
9941  return 0;
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext
9947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948  (eval $ac_compile) 2>conftest.er1
9949  ac_status=$?
9950  grep -v '^ *+' conftest.er1 >conftest.err
9951  rm -f conftest.er1
9952  cat conftest.err >&5
9953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954  (exit $ac_status); } &&
9955	 { ac_try='test -z "$ac_c_werror_flag"
9956			 || test ! -s conftest.err'
9957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958  (eval $ac_try) 2>&5
9959  ac_status=$?
9960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961  (exit $ac_status); }; } &&
9962	 { ac_try='test -s conftest.$ac_objext'
9963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964  (eval $ac_try) 2>&5
9965  ac_status=$?
9966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967  (exit $ac_status); }; }; then
9968  ac_cv_type_short=yes
9969else
9970  echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
9973ac_cv_type_short=no
9974fi
9975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9976fi
9977echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
9978echo "${ECHO_T}$ac_cv_type_short" >&6
9979
9980echo "$as_me:$LINENO: checking size of short" >&5
9981echo $ECHO_N "checking size of short... $ECHO_C" >&6
9982if test "${ac_cv_sizeof_short+set}" = set; then
9983  echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985  if test "$ac_cv_type_short" = yes; then
9986  # The cast to unsigned long works around a bug in the HP C Compiler
9987  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9988  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9989  # This bug is HP SR number 8606223364.
9990  if test "$cross_compiling" = yes; then
9991  # Depending upon the size, compute the lo and hi bounds.
9992cat >conftest.$ac_ext <<_ACEOF
9993/* confdefs.h.  */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h.  */
9998$ac_includes_default
9999int
10000main ()
10001{
10002static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
10003test_array [0] = 0
10004
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext
10010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011  (eval $ac_compile) 2>conftest.er1
10012  ac_status=$?
10013  grep -v '^ *+' conftest.er1 >conftest.err
10014  rm -f conftest.er1
10015  cat conftest.err >&5
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); } &&
10018	 { ac_try='test -z "$ac_c_werror_flag"
10019			 || test ! -s conftest.err'
10020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021  (eval $ac_try) 2>&5
10022  ac_status=$?
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); }; } &&
10025	 { ac_try='test -s conftest.$ac_objext'
10026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027  (eval $ac_try) 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; }; then
10031  ac_lo=0 ac_mid=0
10032  while :; do
10033    cat >conftest.$ac_ext <<_ACEOF
10034/* confdefs.h.  */
10035_ACEOF
10036cat confdefs.h >>conftest.$ac_ext
10037cat >>conftest.$ac_ext <<_ACEOF
10038/* end confdefs.h.  */
10039$ac_includes_default
10040int
10041main ()
10042{
10043static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10044test_array [0] = 0
10045
10046  ;
10047  return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext
10051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052  (eval $ac_compile) 2>conftest.er1
10053  ac_status=$?
10054  grep -v '^ *+' conftest.er1 >conftest.err
10055  rm -f conftest.er1
10056  cat conftest.err >&5
10057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058  (exit $ac_status); } &&
10059	 { ac_try='test -z "$ac_c_werror_flag"
10060			 || test ! -s conftest.err'
10061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062  (eval $ac_try) 2>&5
10063  ac_status=$?
10064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065  (exit $ac_status); }; } &&
10066	 { ac_try='test -s conftest.$ac_objext'
10067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068  (eval $ac_try) 2>&5
10069  ac_status=$?
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); }; }; then
10072  ac_hi=$ac_mid; break
10073else
10074  echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077ac_lo=`expr $ac_mid + 1`
10078		    if test $ac_lo -le $ac_mid; then
10079		      ac_lo= ac_hi=
10080		      break
10081		    fi
10082		    ac_mid=`expr 2 '*' $ac_mid + 1`
10083fi
10084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10085  done
10086else
10087  echo "$as_me: failed program was:" >&5
10088sed 's/^/| /' conftest.$ac_ext >&5
10089
10090cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h.  */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h.  */
10096$ac_includes_default
10097int
10098main ()
10099{
10100static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
10101test_array [0] = 0
10102
10103  ;
10104  return 0;
10105}
10106_ACEOF
10107rm -f conftest.$ac_objext
10108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109  (eval $ac_compile) 2>conftest.er1
10110  ac_status=$?
10111  grep -v '^ *+' conftest.er1 >conftest.err
10112  rm -f conftest.er1
10113  cat conftest.err >&5
10114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115  (exit $ac_status); } &&
10116	 { ac_try='test -z "$ac_c_werror_flag"
10117			 || test ! -s conftest.err'
10118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119  (eval $ac_try) 2>&5
10120  ac_status=$?
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); }; } &&
10123	 { ac_try='test -s conftest.$ac_objext'
10124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125  (eval $ac_try) 2>&5
10126  ac_status=$?
10127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128  (exit $ac_status); }; }; then
10129  ac_hi=-1 ac_mid=-1
10130  while :; do
10131    cat >conftest.$ac_ext <<_ACEOF
10132/* confdefs.h.  */
10133_ACEOF
10134cat confdefs.h >>conftest.$ac_ext
10135cat >>conftest.$ac_ext <<_ACEOF
10136/* end confdefs.h.  */
10137$ac_includes_default
10138int
10139main ()
10140{
10141static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
10142test_array [0] = 0
10143
10144  ;
10145  return 0;
10146}
10147_ACEOF
10148rm -f conftest.$ac_objext
10149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10150  (eval $ac_compile) 2>conftest.er1
10151  ac_status=$?
10152  grep -v '^ *+' conftest.er1 >conftest.err
10153  rm -f conftest.er1
10154  cat conftest.err >&5
10155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156  (exit $ac_status); } &&
10157	 { ac_try='test -z "$ac_c_werror_flag"
10158			 || test ! -s conftest.err'
10159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160  (eval $ac_try) 2>&5
10161  ac_status=$?
10162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163  (exit $ac_status); }; } &&
10164	 { ac_try='test -s conftest.$ac_objext'
10165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166  (eval $ac_try) 2>&5
10167  ac_status=$?
10168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169  (exit $ac_status); }; }; then
10170  ac_lo=$ac_mid; break
10171else
10172  echo "$as_me: failed program was:" >&5
10173sed 's/^/| /' conftest.$ac_ext >&5
10174
10175ac_hi=`expr '(' $ac_mid ')' - 1`
10176		       if test $ac_mid -le $ac_hi; then
10177			 ac_lo= ac_hi=
10178			 break
10179		       fi
10180		       ac_mid=`expr 2 '*' $ac_mid`
10181fi
10182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10183  done
10184else
10185  echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188ac_lo= ac_hi=
10189fi
10190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10191fi
10192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10193# Binary search between lo and hi bounds.
10194while test "x$ac_lo" != "x$ac_hi"; do
10195  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10196  cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h.  */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h.  */
10202$ac_includes_default
10203int
10204main ()
10205{
10206static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10207test_array [0] = 0
10208
10209  ;
10210  return 0;
10211}
10212_ACEOF
10213rm -f conftest.$ac_objext
10214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215  (eval $ac_compile) 2>conftest.er1
10216  ac_status=$?
10217  grep -v '^ *+' conftest.er1 >conftest.err
10218  rm -f conftest.er1
10219  cat conftest.err >&5
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); } &&
10222	 { ac_try='test -z "$ac_c_werror_flag"
10223			 || test ! -s conftest.err'
10224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225  (eval $ac_try) 2>&5
10226  ac_status=$?
10227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228  (exit $ac_status); }; } &&
10229	 { ac_try='test -s conftest.$ac_objext'
10230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231  (eval $ac_try) 2>&5
10232  ac_status=$?
10233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234  (exit $ac_status); }; }; then
10235  ac_hi=$ac_mid
10236else
10237  echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240ac_lo=`expr '(' $ac_mid ')' + 1`
10241fi
10242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10243done
10244case $ac_lo in
10245?*) ac_cv_sizeof_short=$ac_lo;;
10246'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
10247See \`config.log' for more details." >&5
10248echo "$as_me: error: cannot compute sizeof (short), 77
10249See \`config.log' for more details." >&2;}
10250   { (exit 1); exit 1; }; } ;;
10251esac
10252else
10253  if test "$cross_compiling" = yes; then
10254  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10255See \`config.log' for more details." >&5
10256echo "$as_me: error: cannot run test program while cross compiling
10257See \`config.log' for more details." >&2;}
10258   { (exit 1); exit 1; }; }
10259else
10260  cat >conftest.$ac_ext <<_ACEOF
10261/* confdefs.h.  */
10262_ACEOF
10263cat confdefs.h >>conftest.$ac_ext
10264cat >>conftest.$ac_ext <<_ACEOF
10265/* end confdefs.h.  */
10266$ac_includes_default
10267long longval () { return (long) (sizeof (short)); }
10268unsigned long ulongval () { return (long) (sizeof (short)); }
10269#include <stdio.h>
10270#include <stdlib.h>
10271int
10272main ()
10273{
10274
10275  FILE *f = fopen ("conftest.val", "w");
10276  if (! f)
10277    exit (1);
10278  if (((long) (sizeof (short))) < 0)
10279    {
10280      long i = longval ();
10281      if (i != ((long) (sizeof (short))))
10282	exit (1);
10283      fprintf (f, "%ld\n", i);
10284    }
10285  else
10286    {
10287      unsigned long i = ulongval ();
10288      if (i != ((long) (sizeof (short))))
10289	exit (1);
10290      fprintf (f, "%lu\n", i);
10291    }
10292  exit (ferror (f) || fclose (f) != 0);
10293
10294  ;
10295  return 0;
10296}
10297_ACEOF
10298rm -f conftest$ac_exeext
10299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300  (eval $ac_link) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305  (eval $ac_try) 2>&5
10306  ac_status=$?
10307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308  (exit $ac_status); }; }; then
10309  ac_cv_sizeof_short=`cat conftest.val`
10310else
10311  echo "$as_me: program exited with status $ac_status" >&5
10312echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315( exit $ac_status )
10316{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
10317See \`config.log' for more details." >&5
10318echo "$as_me: error: cannot compute sizeof (short), 77
10319See \`config.log' for more details." >&2;}
10320   { (exit 1); exit 1; }; }
10321fi
10322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10323fi
10324fi
10325rm -f conftest.val
10326else
10327  ac_cv_sizeof_short=0
10328fi
10329fi
10330echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10331echo "${ECHO_T}$ac_cv_sizeof_short" >&6
10332cat >>confdefs.h <<_ACEOF
10333#define SIZEOF_SHORT $ac_cv_sizeof_short
10334_ACEOF
10335
10336
10337
10338echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10339echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10340if test "${ac_cv_c_const+set}" = set; then
10341  echo $ECHO_N "(cached) $ECHO_C" >&6
10342else
10343  cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h.  */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h.  */
10349
10350int
10351main ()
10352{
10353/* FIXME: Include the comments suggested by Paul. */
10354#ifndef __cplusplus
10355  /* Ultrix mips cc rejects this.  */
10356  typedef int charset[2];
10357  const charset x;
10358  /* SunOS 4.1.1 cc rejects this.  */
10359  char const *const *ccp;
10360  char **p;
10361  /* NEC SVR4.0.2 mips cc rejects this.  */
10362  struct point {int x, y;};
10363  static struct point const zero = {0,0};
10364  /* AIX XL C 1.02.0.0 rejects this.
10365     It does not let you subtract one const X* pointer from another in
10366     an arm of an if-expression whose if-part is not a constant
10367     expression */
10368  const char *g = "string";
10369  ccp = &g + (g ? g-g : 0);
10370  /* HPUX 7.0 cc rejects these. */
10371  ++ccp;
10372  p = (char**) ccp;
10373  ccp = (char const *const *) p;
10374  { /* SCO 3.2v4 cc rejects this.  */
10375    char *t;
10376    char const *s = 0 ? (char *) 0 : (char const *) 0;
10377
10378    *t++ = 0;
10379  }
10380  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10381    int x[] = {25, 17};
10382    const int *foo = &x[0];
10383    ++foo;
10384  }
10385  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10386    typedef const int *iptr;
10387    iptr p = 0;
10388    ++p;
10389  }
10390  { /* AIX XL C 1.02.0.0 rejects this saying
10391       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10392    struct s { int j; const int *ap[3]; };
10393    struct s *b; b->j = 5;
10394  }
10395  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10396    const int foo = 10;
10397  }
10398#endif
10399
10400  ;
10401  return 0;
10402}
10403_ACEOF
10404rm -f conftest.$ac_objext
10405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406  (eval $ac_compile) 2>conftest.er1
10407  ac_status=$?
10408  grep -v '^ *+' conftest.er1 >conftest.err
10409  rm -f conftest.er1
10410  cat conftest.err >&5
10411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412  (exit $ac_status); } &&
10413	 { ac_try='test -z "$ac_c_werror_flag"
10414			 || test ! -s conftest.err'
10415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416  (eval $ac_try) 2>&5
10417  ac_status=$?
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); }; } &&
10420	 { ac_try='test -s conftest.$ac_objext'
10421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422  (eval $ac_try) 2>&5
10423  ac_status=$?
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); }; }; then
10426  ac_cv_c_const=yes
10427else
10428  echo "$as_me: failed program was:" >&5
10429sed 's/^/| /' conftest.$ac_ext >&5
10430
10431ac_cv_c_const=no
10432fi
10433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10434fi
10435echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10436echo "${ECHO_T}$ac_cv_c_const" >&6
10437if test $ac_cv_c_const = no; then
10438
10439cat >>confdefs.h <<\_ACEOF
10440#define const
10441_ACEOF
10442
10443fi
10444
10445echo "$as_me:$LINENO: checking for inline" >&5
10446echo $ECHO_N "checking for inline... $ECHO_C" >&6
10447if test "${ac_cv_c_inline+set}" = set; then
10448  echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450  ac_cv_c_inline=no
10451for ac_kw in inline __inline__ __inline; do
10452  cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h.  */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
10457/* end confdefs.h.  */
10458#ifndef __cplusplus
10459typedef int foo_t;
10460static $ac_kw foo_t static_foo () {return 0; }
10461$ac_kw foo_t foo () {return 0; }
10462#endif
10463
10464_ACEOF
10465rm -f conftest.$ac_objext
10466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467  (eval $ac_compile) 2>conftest.er1
10468  ac_status=$?
10469  grep -v '^ *+' conftest.er1 >conftest.err
10470  rm -f conftest.er1
10471  cat conftest.err >&5
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); } &&
10474	 { ac_try='test -z "$ac_c_werror_flag"
10475			 || test ! -s conftest.err'
10476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477  (eval $ac_try) 2>&5
10478  ac_status=$?
10479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480  (exit $ac_status); }; } &&
10481	 { ac_try='test -s conftest.$ac_objext'
10482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483  (eval $ac_try) 2>&5
10484  ac_status=$?
10485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486  (exit $ac_status); }; }; then
10487  ac_cv_c_inline=$ac_kw; break
10488else
10489  echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492fi
10493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10494done
10495
10496fi
10497echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10498echo "${ECHO_T}$ac_cv_c_inline" >&6
10499
10500
10501case $ac_cv_c_inline in
10502  inline | yes) ;;
10503  *)
10504    case $ac_cv_c_inline in
10505      no) ac_val=;;
10506      *) ac_val=$ac_cv_c_inline;;
10507    esac
10508    cat >>confdefs.h <<_ACEOF
10509#ifndef __cplusplus
10510#define inline $ac_val
10511#endif
10512_ACEOF
10513    ;;
10514esac
10515
10516echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10517echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10518if test "${ac_cv_c_bigendian+set}" = set; then
10519  echo $ECHO_N "(cached) $ECHO_C" >&6
10520else
10521  # See if sys/param.h defines the BYTE_ORDER macro.
10522cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h.  */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h.  */
10528#include <sys/types.h>
10529#include <sys/param.h>
10530
10531int
10532main ()
10533{
10534#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10535 bogus endian macros
10536#endif
10537
10538  ;
10539  return 0;
10540}
10541_ACEOF
10542rm -f conftest.$ac_objext
10543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544  (eval $ac_compile) 2>conftest.er1
10545  ac_status=$?
10546  grep -v '^ *+' conftest.er1 >conftest.err
10547  rm -f conftest.er1
10548  cat conftest.err >&5
10549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550  (exit $ac_status); } &&
10551	 { ac_try='test -z "$ac_c_werror_flag"
10552			 || test ! -s conftest.err'
10553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554  (eval $ac_try) 2>&5
10555  ac_status=$?
10556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557  (exit $ac_status); }; } &&
10558	 { ac_try='test -s conftest.$ac_objext'
10559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560  (eval $ac_try) 2>&5
10561  ac_status=$?
10562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563  (exit $ac_status); }; }; then
10564  # It does; now see whether it defined to BIG_ENDIAN or not.
10565cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h.  */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h.  */
10571#include <sys/types.h>
10572#include <sys/param.h>
10573
10574int
10575main ()
10576{
10577#if BYTE_ORDER != BIG_ENDIAN
10578 not big endian
10579#endif
10580
10581  ;
10582  return 0;
10583}
10584_ACEOF
10585rm -f conftest.$ac_objext
10586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587  (eval $ac_compile) 2>conftest.er1
10588  ac_status=$?
10589  grep -v '^ *+' conftest.er1 >conftest.err
10590  rm -f conftest.er1
10591  cat conftest.err >&5
10592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); } &&
10594	 { ac_try='test -z "$ac_c_werror_flag"
10595			 || test ! -s conftest.err'
10596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597  (eval $ac_try) 2>&5
10598  ac_status=$?
10599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600  (exit $ac_status); }; } &&
10601	 { ac_try='test -s conftest.$ac_objext'
10602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603  (eval $ac_try) 2>&5
10604  ac_status=$?
10605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606  (exit $ac_status); }; }; then
10607  ac_cv_c_bigendian=yes
10608else
10609  echo "$as_me: failed program was:" >&5
10610sed 's/^/| /' conftest.$ac_ext >&5
10611
10612ac_cv_c_bigendian=no
10613fi
10614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10615else
10616  echo "$as_me: failed program was:" >&5
10617sed 's/^/| /' conftest.$ac_ext >&5
10618
10619# It does not; compile a test program.
10620if test "$cross_compiling" = yes; then
10621  # try to guess the endianness by grepping values into an object file
10622  ac_cv_c_bigendian=unknown
10623  cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h.  */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h.  */
10629short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10630short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10631void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10632short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10633short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10634void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10635int
10636main ()
10637{
10638 _ascii (); _ebcdic ();
10639  ;
10640  return 0;
10641}
10642_ACEOF
10643rm -f conftest.$ac_objext
10644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10645  (eval $ac_compile) 2>conftest.er1
10646  ac_status=$?
10647  grep -v '^ *+' conftest.er1 >conftest.err
10648  rm -f conftest.er1
10649  cat conftest.err >&5
10650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651  (exit $ac_status); } &&
10652	 { ac_try='test -z "$ac_c_werror_flag"
10653			 || test ! -s conftest.err'
10654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655  (eval $ac_try) 2>&5
10656  ac_status=$?
10657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658  (exit $ac_status); }; } &&
10659	 { ac_try='test -s conftest.$ac_objext'
10660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661  (eval $ac_try) 2>&5
10662  ac_status=$?
10663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664  (exit $ac_status); }; }; then
10665  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10666  ac_cv_c_bigendian=yes
10667fi
10668if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10669  if test "$ac_cv_c_bigendian" = unknown; then
10670    ac_cv_c_bigendian=no
10671  else
10672    # finding both strings is unlikely to happen, but who knows?
10673    ac_cv_c_bigendian=unknown
10674  fi
10675fi
10676else
10677  echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680fi
10681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10682else
10683  cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h.  */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
10688/* end confdefs.h.  */
10689int
10690main ()
10691{
10692  /* Are we little or big endian?  From Harbison&Steele.  */
10693  union
10694  {
10695    long l;
10696    char c[sizeof (long)];
10697  } u;
10698  u.l = 1;
10699  exit (u.c[sizeof (long) - 1] == 1);
10700}
10701_ACEOF
10702rm -f conftest$ac_exeext
10703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704  (eval $ac_link) 2>&5
10705  ac_status=$?
10706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709  (eval $ac_try) 2>&5
10710  ac_status=$?
10711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712  (exit $ac_status); }; }; then
10713  ac_cv_c_bigendian=no
10714else
10715  echo "$as_me: program exited with status $ac_status" >&5
10716echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719( exit $ac_status )
10720ac_cv_c_bigendian=yes
10721fi
10722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10723fi
10724fi
10725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10726fi
10727echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10728echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10729case $ac_cv_c_bigendian in
10730  yes)
10731
10732cat >>confdefs.h <<\_ACEOF
10733#define WORDS_BIGENDIAN 1
10734_ACEOF
10735 ;;
10736  no)
10737     ;;
10738  *)
10739    { { echo "$as_me:$LINENO: error: unknown endianness
10740presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10741echo "$as_me: error: unknown endianness
10742presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10743   { (exit 1); exit 1; }; } ;;
10744esac
10745
10746
10747echo "$as_me:$LINENO: checking whether char is unsigned" >&5
10748echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
10749if test "${ac_cv_c_char_unsigned+set}" = set; then
10750  echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752  cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h.  */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h.  */
10758$ac_includes_default
10759int
10760main ()
10761{
10762static int test_array [1 - 2 * !(((char) -1) < 0)];
10763test_array [0] = 0
10764
10765  ;
10766  return 0;
10767}
10768_ACEOF
10769rm -f conftest.$ac_objext
10770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771  (eval $ac_compile) 2>conftest.er1
10772  ac_status=$?
10773  grep -v '^ *+' conftest.er1 >conftest.err
10774  rm -f conftest.er1
10775  cat conftest.err >&5
10776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777  (exit $ac_status); } &&
10778	 { ac_try='test -z "$ac_c_werror_flag"
10779			 || test ! -s conftest.err'
10780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781  (eval $ac_try) 2>&5
10782  ac_status=$?
10783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784  (exit $ac_status); }; } &&
10785	 { ac_try='test -s conftest.$ac_objext'
10786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787  (eval $ac_try) 2>&5
10788  ac_status=$?
10789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790  (exit $ac_status); }; }; then
10791  ac_cv_c_char_unsigned=no
10792else
10793  echo "$as_me: failed program was:" >&5
10794sed 's/^/| /' conftest.$ac_ext >&5
10795
10796ac_cv_c_char_unsigned=yes
10797fi
10798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10799fi
10800echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
10801echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
10802if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10803  cat >>confdefs.h <<\_ACEOF
10804#define __CHAR_UNSIGNED__ 1
10805_ACEOF
10806
10807fi
10808
10809
10810echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10811echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10812if test "${ac_cv_type_signal+set}" = set; then
10813  echo $ECHO_N "(cached) $ECHO_C" >&6
10814else
10815  cat >conftest.$ac_ext <<_ACEOF
10816/* confdefs.h.  */
10817_ACEOF
10818cat confdefs.h >>conftest.$ac_ext
10819cat >>conftest.$ac_ext <<_ACEOF
10820/* end confdefs.h.  */
10821#include <sys/types.h>
10822#include <signal.h>
10823#ifdef signal
10824# undef signal
10825#endif
10826#ifdef __cplusplus
10827extern "C" void (*signal (int, void (*)(int)))(int);
10828#else
10829void (*signal ()) ();
10830#endif
10831
10832int
10833main ()
10834{
10835int i;
10836  ;
10837  return 0;
10838}
10839_ACEOF
10840rm -f conftest.$ac_objext
10841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842  (eval $ac_compile) 2>conftest.er1
10843  ac_status=$?
10844  grep -v '^ *+' conftest.er1 >conftest.err
10845  rm -f conftest.er1
10846  cat conftest.err >&5
10847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848  (exit $ac_status); } &&
10849	 { ac_try='test -z "$ac_c_werror_flag"
10850			 || test ! -s conftest.err'
10851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852  (eval $ac_try) 2>&5
10853  ac_status=$?
10854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855  (exit $ac_status); }; } &&
10856	 { ac_try='test -s conftest.$ac_objext'
10857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858  (eval $ac_try) 2>&5
10859  ac_status=$?
10860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861  (exit $ac_status); }; }; then
10862  ac_cv_type_signal=void
10863else
10864  echo "$as_me: failed program was:" >&5
10865sed 's/^/| /' conftest.$ac_ext >&5
10866
10867ac_cv_type_signal=int
10868fi
10869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10870fi
10871echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10872echo "${ECHO_T}$ac_cv_type_signal" >&6
10873
10874cat >>confdefs.h <<_ACEOF
10875#define RETSIGTYPE $ac_cv_type_signal
10876_ACEOF
10877
10878
10879echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10880echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10881if test "${ac_cv_type_uid_t+set}" = set; then
10882  echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884  cat >conftest.$ac_ext <<_ACEOF
10885/* confdefs.h.  */
10886_ACEOF
10887cat confdefs.h >>conftest.$ac_ext
10888cat >>conftest.$ac_ext <<_ACEOF
10889/* end confdefs.h.  */
10890#include <sys/types.h>
10891
10892_ACEOF
10893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10894  $EGREP "uid_t" >/dev/null 2>&1; then
10895  ac_cv_type_uid_t=yes
10896else
10897  ac_cv_type_uid_t=no
10898fi
10899rm -f conftest*
10900
10901fi
10902echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10903echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10904if test $ac_cv_type_uid_t = no; then
10905
10906cat >>confdefs.h <<\_ACEOF
10907#define uid_t int
10908_ACEOF
10909
10910
10911cat >>confdefs.h <<\_ACEOF
10912#define gid_t int
10913_ACEOF
10914
10915fi
10916
10917echo "$as_me:$LINENO: checking for mode_t" >&5
10918echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10919if test "${ac_cv_type_mode_t+set}" = set; then
10920  echo $ECHO_N "(cached) $ECHO_C" >&6
10921else
10922  cat >conftest.$ac_ext <<_ACEOF
10923/* confdefs.h.  */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h.  */
10928$ac_includes_default
10929int
10930main ()
10931{
10932if ((mode_t *) 0)
10933  return 0;
10934if (sizeof (mode_t))
10935  return 0;
10936  ;
10937  return 0;
10938}
10939_ACEOF
10940rm -f conftest.$ac_objext
10941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942  (eval $ac_compile) 2>conftest.er1
10943  ac_status=$?
10944  grep -v '^ *+' conftest.er1 >conftest.err
10945  rm -f conftest.er1
10946  cat conftest.err >&5
10947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948  (exit $ac_status); } &&
10949	 { ac_try='test -z "$ac_c_werror_flag"
10950			 || test ! -s conftest.err'
10951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952  (eval $ac_try) 2>&5
10953  ac_status=$?
10954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955  (exit $ac_status); }; } &&
10956	 { ac_try='test -s conftest.$ac_objext'
10957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958  (eval $ac_try) 2>&5
10959  ac_status=$?
10960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961  (exit $ac_status); }; }; then
10962  ac_cv_type_mode_t=yes
10963else
10964  echo "$as_me: failed program was:" >&5
10965sed 's/^/| /' conftest.$ac_ext >&5
10966
10967ac_cv_type_mode_t=no
10968fi
10969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10970fi
10971echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10972echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10973if test $ac_cv_type_mode_t = yes; then
10974  :
10975else
10976
10977cat >>confdefs.h <<_ACEOF
10978#define mode_t int
10979_ACEOF
10980
10981fi
10982
10983echo "$as_me:$LINENO: checking for off_t" >&5
10984echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10985if test "${ac_cv_type_off_t+set}" = set; then
10986  echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988  cat >conftest.$ac_ext <<_ACEOF
10989/* confdefs.h.  */
10990_ACEOF
10991cat confdefs.h >>conftest.$ac_ext
10992cat >>conftest.$ac_ext <<_ACEOF
10993/* end confdefs.h.  */
10994$ac_includes_default
10995int
10996main ()
10997{
10998if ((off_t *) 0)
10999  return 0;
11000if (sizeof (off_t))
11001  return 0;
11002  ;
11003  return 0;
11004}
11005_ACEOF
11006rm -f conftest.$ac_objext
11007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008  (eval $ac_compile) 2>conftest.er1
11009  ac_status=$?
11010  grep -v '^ *+' conftest.er1 >conftest.err
11011  rm -f conftest.er1
11012  cat conftest.err >&5
11013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014  (exit $ac_status); } &&
11015	 { ac_try='test -z "$ac_c_werror_flag"
11016			 || test ! -s conftest.err'
11017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018  (eval $ac_try) 2>&5
11019  ac_status=$?
11020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021  (exit $ac_status); }; } &&
11022	 { ac_try='test -s conftest.$ac_objext'
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_type_off_t=yes
11029else
11030  echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
11033ac_cv_type_off_t=no
11034fi
11035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036fi
11037echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11038echo "${ECHO_T}$ac_cv_type_off_t" >&6
11039if test $ac_cv_type_off_t = yes; then
11040  :
11041else
11042
11043cat >>confdefs.h <<_ACEOF
11044#define off_t long
11045_ACEOF
11046
11047fi
11048
11049echo "$as_me:$LINENO: checking for size_t" >&5
11050echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11051if test "${ac_cv_type_size_t+set}" = set; then
11052  echo $ECHO_N "(cached) $ECHO_C" >&6
11053else
11054  cat >conftest.$ac_ext <<_ACEOF
11055/* confdefs.h.  */
11056_ACEOF
11057cat confdefs.h >>conftest.$ac_ext
11058cat >>conftest.$ac_ext <<_ACEOF
11059/* end confdefs.h.  */
11060$ac_includes_default
11061int
11062main ()
11063{
11064if ((size_t *) 0)
11065  return 0;
11066if (sizeof (size_t))
11067  return 0;
11068  ;
11069  return 0;
11070}
11071_ACEOF
11072rm -f conftest.$ac_objext
11073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074  (eval $ac_compile) 2>conftest.er1
11075  ac_status=$?
11076  grep -v '^ *+' conftest.er1 >conftest.err
11077  rm -f conftest.er1
11078  cat conftest.err >&5
11079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080  (exit $ac_status); } &&
11081	 { ac_try='test -z "$ac_c_werror_flag"
11082			 || test ! -s conftest.err'
11083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084  (eval $ac_try) 2>&5
11085  ac_status=$?
11086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087  (exit $ac_status); }; } &&
11088	 { ac_try='test -s conftest.$ac_objext'
11089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090  (eval $ac_try) 2>&5
11091  ac_status=$?
11092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093  (exit $ac_status); }; }; then
11094  ac_cv_type_size_t=yes
11095else
11096  echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099ac_cv_type_size_t=no
11100fi
11101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11102fi
11103echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11104echo "${ECHO_T}$ac_cv_type_size_t" >&6
11105if test $ac_cv_type_size_t = yes; then
11106  :
11107else
11108
11109cat >>confdefs.h <<_ACEOF
11110#define size_t unsigned
11111_ACEOF
11112
11113fi
11114
11115echo "$as_me:$LINENO: checking for pid_t" >&5
11116echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11117if test "${ac_cv_type_pid_t+set}" = set; then
11118  echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120  cat >conftest.$ac_ext <<_ACEOF
11121/* confdefs.h.  */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h.  */
11126$ac_includes_default
11127int
11128main ()
11129{
11130if ((pid_t *) 0)
11131  return 0;
11132if (sizeof (pid_t))
11133  return 0;
11134  ;
11135  return 0;
11136}
11137_ACEOF
11138rm -f conftest.$ac_objext
11139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140  (eval $ac_compile) 2>conftest.er1
11141  ac_status=$?
11142  grep -v '^ *+' conftest.er1 >conftest.err
11143  rm -f conftest.er1
11144  cat conftest.err >&5
11145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146  (exit $ac_status); } &&
11147	 { ac_try='test -z "$ac_c_werror_flag"
11148			 || test ! -s conftest.err'
11149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150  (eval $ac_try) 2>&5
11151  ac_status=$?
11152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153  (exit $ac_status); }; } &&
11154	 { ac_try='test -s conftest.$ac_objext'
11155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156  (eval $ac_try) 2>&5
11157  ac_status=$?
11158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159  (exit $ac_status); }; }; then
11160  ac_cv_type_pid_t=yes
11161else
11162  echo "$as_me: failed program was:" >&5
11163sed 's/^/| /' conftest.$ac_ext >&5
11164
11165ac_cv_type_pid_t=no
11166fi
11167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11168fi
11169echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11170echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11171if test $ac_cv_type_pid_t = yes; then
11172  :
11173else
11174
11175cat >>confdefs.h <<_ACEOF
11176#define pid_t int
11177_ACEOF
11178
11179fi
11180
11181
11182echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11183echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11184if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11185  echo $ECHO_N "(cached) $ECHO_C" >&6
11186else
11187  cat >conftest.$ac_ext <<_ACEOF
11188/* confdefs.h.  */
11189_ACEOF
11190cat confdefs.h >>conftest.$ac_ext
11191cat >>conftest.$ac_ext <<_ACEOF
11192/* end confdefs.h.  */
11193$ac_includes_default
11194int
11195main ()
11196{
11197static struct stat ac_aggr;
11198if (ac_aggr.st_rdev)
11199return 0;
11200  ;
11201  return 0;
11202}
11203_ACEOF
11204rm -f conftest.$ac_objext
11205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206  (eval $ac_compile) 2>conftest.er1
11207  ac_status=$?
11208  grep -v '^ *+' conftest.er1 >conftest.err
11209  rm -f conftest.er1
11210  cat conftest.err >&5
11211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212  (exit $ac_status); } &&
11213	 { ac_try='test -z "$ac_c_werror_flag"
11214			 || test ! -s conftest.err'
11215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216  (eval $ac_try) 2>&5
11217  ac_status=$?
11218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219  (exit $ac_status); }; } &&
11220	 { ac_try='test -s conftest.$ac_objext'
11221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222  (eval $ac_try) 2>&5
11223  ac_status=$?
11224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225  (exit $ac_status); }; }; then
11226  ac_cv_member_struct_stat_st_rdev=yes
11227else
11228  echo "$as_me: failed program was:" >&5
11229sed 's/^/| /' conftest.$ac_ext >&5
11230
11231cat >conftest.$ac_ext <<_ACEOF
11232/* confdefs.h.  */
11233_ACEOF
11234cat confdefs.h >>conftest.$ac_ext
11235cat >>conftest.$ac_ext <<_ACEOF
11236/* end confdefs.h.  */
11237$ac_includes_default
11238int
11239main ()
11240{
11241static struct stat ac_aggr;
11242if (sizeof ac_aggr.st_rdev)
11243return 0;
11244  ;
11245  return 0;
11246}
11247_ACEOF
11248rm -f conftest.$ac_objext
11249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11250  (eval $ac_compile) 2>conftest.er1
11251  ac_status=$?
11252  grep -v '^ *+' conftest.er1 >conftest.err
11253  rm -f conftest.er1
11254  cat conftest.err >&5
11255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256  (exit $ac_status); } &&
11257	 { ac_try='test -z "$ac_c_werror_flag"
11258			 || test ! -s conftest.err'
11259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260  (eval $ac_try) 2>&5
11261  ac_status=$?
11262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263  (exit $ac_status); }; } &&
11264	 { ac_try='test -s conftest.$ac_objext'
11265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266  (eval $ac_try) 2>&5
11267  ac_status=$?
11268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269  (exit $ac_status); }; }; then
11270  ac_cv_member_struct_stat_st_rdev=yes
11271else
11272  echo "$as_me: failed program was:" >&5
11273sed 's/^/| /' conftest.$ac_ext >&5
11274
11275ac_cv_member_struct_stat_st_rdev=no
11276fi
11277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11278fi
11279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11280fi
11281echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11282echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11283if test $ac_cv_member_struct_stat_st_rdev = yes; then
11284
11285cat >>confdefs.h <<_ACEOF
11286#define HAVE_STRUCT_STAT_ST_RDEV 1
11287_ACEOF
11288
11289
11290cat >>confdefs.h <<\_ACEOF
11291#define HAVE_ST_RDEV 1
11292_ACEOF
11293
11294fi
11295
11296
11297echo "$as_me:$LINENO: checking for d_off in dirent" >&5
11298echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
11299if test "${ac_cv_dirent_d_off+set}" = set; then
11300  echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302  cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h.  */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h.  */
11308
11309#include <unistd.h>
11310#include <sys/types.h>
11311#include <dirent.h>
11312int
11313main ()
11314{
11315struct dirent d; d.d_off;
11316  ;
11317  return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext
11321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11322  (eval $ac_compile) 2>conftest.er1
11323  ac_status=$?
11324  grep -v '^ *+' conftest.er1 >conftest.err
11325  rm -f conftest.er1
11326  cat conftest.err >&5
11327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328  (exit $ac_status); } &&
11329	 { ac_try='test -z "$ac_c_werror_flag"
11330			 || test ! -s conftest.err'
11331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332  (eval $ac_try) 2>&5
11333  ac_status=$?
11334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335  (exit $ac_status); }; } &&
11336	 { ac_try='test -s conftest.$ac_objext'
11337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338  (eval $ac_try) 2>&5
11339  ac_status=$?
11340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341  (exit $ac_status); }; }; then
11342  ac_cv_dirent_d_off=yes
11343else
11344  echo "$as_me: failed program was:" >&5
11345sed 's/^/| /' conftest.$ac_ext >&5
11346
11347ac_cv_dirent_d_off=no
11348fi
11349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11350fi
11351echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
11352echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
11353if test $ac_cv_dirent_d_off = yes; then
11354
11355cat >>confdefs.h <<\_ACEOF
11356#define HAVE_DIRENT_D_OFF 1
11357_ACEOF
11358
11359fi
11360
11361echo "$as_me:$LINENO: checking for ino_t" >&5
11362echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11363if test "${ac_cv_type_ino_t+set}" = set; then
11364  echo $ECHO_N "(cached) $ECHO_C" >&6
11365else
11366  cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h.  */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h.  */
11372$ac_includes_default
11373int
11374main ()
11375{
11376if ((ino_t *) 0)
11377  return 0;
11378if (sizeof (ino_t))
11379  return 0;
11380  ;
11381  return 0;
11382}
11383_ACEOF
11384rm -f conftest.$ac_objext
11385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386  (eval $ac_compile) 2>conftest.er1
11387  ac_status=$?
11388  grep -v '^ *+' conftest.er1 >conftest.err
11389  rm -f conftest.er1
11390  cat conftest.err >&5
11391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392  (exit $ac_status); } &&
11393	 { ac_try='test -z "$ac_c_werror_flag"
11394			 || test ! -s conftest.err'
11395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396  (eval $ac_try) 2>&5
11397  ac_status=$?
11398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399  (exit $ac_status); }; } &&
11400	 { ac_try='test -s conftest.$ac_objext'
11401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402  (eval $ac_try) 2>&5
11403  ac_status=$?
11404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405  (exit $ac_status); }; }; then
11406  ac_cv_type_ino_t=yes
11407else
11408  echo "$as_me: failed program was:" >&5
11409sed 's/^/| /' conftest.$ac_ext >&5
11410
11411ac_cv_type_ino_t=no
11412fi
11413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11414fi
11415echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11416echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11417if test $ac_cv_type_ino_t = yes; then
11418  :
11419else
11420
11421cat >>confdefs.h <<_ACEOF
11422#define ino_t unsigned
11423_ACEOF
11424
11425fi
11426
11427echo "$as_me:$LINENO: checking for loff_t" >&5
11428echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
11429if test "${ac_cv_type_loff_t+set}" = set; then
11430  echo $ECHO_N "(cached) $ECHO_C" >&6
11431else
11432  cat >conftest.$ac_ext <<_ACEOF
11433/* confdefs.h.  */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h.  */
11438$ac_includes_default
11439int
11440main ()
11441{
11442if ((loff_t *) 0)
11443  return 0;
11444if (sizeof (loff_t))
11445  return 0;
11446  ;
11447  return 0;
11448}
11449_ACEOF
11450rm -f conftest.$ac_objext
11451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452  (eval $ac_compile) 2>conftest.er1
11453  ac_status=$?
11454  grep -v '^ *+' conftest.er1 >conftest.err
11455  rm -f conftest.er1
11456  cat conftest.err >&5
11457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458  (exit $ac_status); } &&
11459	 { ac_try='test -z "$ac_c_werror_flag"
11460			 || test ! -s conftest.err'
11461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462  (eval $ac_try) 2>&5
11463  ac_status=$?
11464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465  (exit $ac_status); }; } &&
11466	 { ac_try='test -s conftest.$ac_objext'
11467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468  (eval $ac_try) 2>&5
11469  ac_status=$?
11470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471  (exit $ac_status); }; }; then
11472  ac_cv_type_loff_t=yes
11473else
11474  echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477ac_cv_type_loff_t=no
11478fi
11479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11480fi
11481echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
11482echo "${ECHO_T}$ac_cv_type_loff_t" >&6
11483if test $ac_cv_type_loff_t = yes; then
11484  :
11485else
11486
11487cat >>confdefs.h <<_ACEOF
11488#define loff_t off_t
11489_ACEOF
11490
11491fi
11492
11493echo "$as_me:$LINENO: checking for offset_t" >&5
11494echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
11495if test "${ac_cv_type_offset_t+set}" = set; then
11496  echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498  cat >conftest.$ac_ext <<_ACEOF
11499/* confdefs.h.  */
11500_ACEOF
11501cat confdefs.h >>conftest.$ac_ext
11502cat >>conftest.$ac_ext <<_ACEOF
11503/* end confdefs.h.  */
11504$ac_includes_default
11505int
11506main ()
11507{
11508if ((offset_t *) 0)
11509  return 0;
11510if (sizeof (offset_t))
11511  return 0;
11512  ;
11513  return 0;
11514}
11515_ACEOF
11516rm -f conftest.$ac_objext
11517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11518  (eval $ac_compile) 2>conftest.er1
11519  ac_status=$?
11520  grep -v '^ *+' conftest.er1 >conftest.err
11521  rm -f conftest.er1
11522  cat conftest.err >&5
11523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524  (exit $ac_status); } &&
11525	 { ac_try='test -z "$ac_c_werror_flag"
11526			 || test ! -s conftest.err'
11527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528  (eval $ac_try) 2>&5
11529  ac_status=$?
11530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531  (exit $ac_status); }; } &&
11532	 { ac_try='test -s conftest.$ac_objext'
11533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534  (eval $ac_try) 2>&5
11535  ac_status=$?
11536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537  (exit $ac_status); }; }; then
11538  ac_cv_type_offset_t=yes
11539else
11540  echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
11543ac_cv_type_offset_t=no
11544fi
11545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11546fi
11547echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
11548echo "${ECHO_T}$ac_cv_type_offset_t" >&6
11549if test $ac_cv_type_offset_t = yes; then
11550  :
11551else
11552
11553cat >>confdefs.h <<_ACEOF
11554#define offset_t loff_t
11555_ACEOF
11556
11557fi
11558
11559echo "$as_me:$LINENO: checking for ssize_t" >&5
11560echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11561if test "${ac_cv_type_ssize_t+set}" = set; then
11562  echo $ECHO_N "(cached) $ECHO_C" >&6
11563else
11564  cat >conftest.$ac_ext <<_ACEOF
11565/* confdefs.h.  */
11566_ACEOF
11567cat confdefs.h >>conftest.$ac_ext
11568cat >>conftest.$ac_ext <<_ACEOF
11569/* end confdefs.h.  */
11570$ac_includes_default
11571int
11572main ()
11573{
11574if ((ssize_t *) 0)
11575  return 0;
11576if (sizeof (ssize_t))
11577  return 0;
11578  ;
11579  return 0;
11580}
11581_ACEOF
11582rm -f conftest.$ac_objext
11583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584  (eval $ac_compile) 2>conftest.er1
11585  ac_status=$?
11586  grep -v '^ *+' conftest.er1 >conftest.err
11587  rm -f conftest.er1
11588  cat conftest.err >&5
11589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590  (exit $ac_status); } &&
11591	 { ac_try='test -z "$ac_c_werror_flag"
11592			 || test ! -s conftest.err'
11593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594  (eval $ac_try) 2>&5
11595  ac_status=$?
11596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597  (exit $ac_status); }; } &&
11598	 { ac_try='test -s conftest.$ac_objext'
11599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600  (eval $ac_try) 2>&5
11601  ac_status=$?
11602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603  (exit $ac_status); }; }; then
11604  ac_cv_type_ssize_t=yes
11605else
11606  echo "$as_me: failed program was:" >&5
11607sed 's/^/| /' conftest.$ac_ext >&5
11608
11609ac_cv_type_ssize_t=no
11610fi
11611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11612fi
11613echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11614echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11615if test $ac_cv_type_ssize_t = yes; then
11616  :
11617else
11618
11619cat >>confdefs.h <<_ACEOF
11620#define ssize_t int
11621_ACEOF
11622
11623fi
11624
11625echo "$as_me:$LINENO: checking for wchar_t" >&5
11626echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
11627if test "${ac_cv_type_wchar_t+set}" = set; then
11628  echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630  cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h.  */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h.  */
11636$ac_includes_default
11637int
11638main ()
11639{
11640if ((wchar_t *) 0)
11641  return 0;
11642if (sizeof (wchar_t))
11643  return 0;
11644  ;
11645  return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext
11649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11650  (eval $ac_compile) 2>conftest.er1
11651  ac_status=$?
11652  grep -v '^ *+' conftest.er1 >conftest.err
11653  rm -f conftest.er1
11654  cat conftest.err >&5
11655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656  (exit $ac_status); } &&
11657	 { ac_try='test -z "$ac_c_werror_flag"
11658			 || test ! -s conftest.err'
11659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660  (eval $ac_try) 2>&5
11661  ac_status=$?
11662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663  (exit $ac_status); }; } &&
11664	 { ac_try='test -s conftest.$ac_objext'
11665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666  (eval $ac_try) 2>&5
11667  ac_status=$?
11668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669  (exit $ac_status); }; }; then
11670  ac_cv_type_wchar_t=yes
11671else
11672  echo "$as_me: failed program was:" >&5
11673sed 's/^/| /' conftest.$ac_ext >&5
11674
11675ac_cv_type_wchar_t=no
11676fi
11677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11678fi
11679echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
11680echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
11681if test $ac_cv_type_wchar_t = yes; then
11682  :
11683else
11684
11685cat >>confdefs.h <<_ACEOF
11686#define wchar_t unsigned short
11687_ACEOF
11688
11689fi
11690
11691
11692############################################
11693# for cups support we need libcups, and a handful of header files
11694
11695# Check whether --enable-cups or --disable-cups was given.
11696if test "${enable_cups+set}" = set; then
11697  enableval="$enable_cups"
11698
11699fi;
11700
11701if test x$enable_cups != xno; then
11702	# Extract the first word of "cups-config", so it can be a program name with args.
11703set dummy cups-config; ac_word=$2
11704echo "$as_me:$LINENO: checking for $ac_word" >&5
11705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11706if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
11707  echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709  case $CUPS_CONFIG in
11710  [\\/]* | ?:[\\/]*)
11711  ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
11712  ;;
11713  *)
11714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715for as_dir in $PATH
11716do
11717  IFS=$as_save_IFS
11718  test -z "$as_dir" && as_dir=.
11719  for ac_exec_ext in '' $ac_executable_extensions; do
11720  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11721    ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11723    break 2
11724  fi
11725done
11726done
11727
11728  ;;
11729esac
11730fi
11731CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
11732
11733if test -n "$CUPS_CONFIG"; then
11734  echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
11735echo "${ECHO_T}$CUPS_CONFIG" >&6
11736else
11737  echo "$as_me:$LINENO: result: no" >&5
11738echo "${ECHO_T}no" >&6
11739fi
11740
11741
11742        if test "x$CUPS_CONFIG" != x; then
11743
11744cat >>confdefs.h <<\_ACEOF
11745#define HAVE_CUPS 1
11746_ACEOF
11747
11748		CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
11749		LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
11750		PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`"
11751	elif test x"$enable_cups" = x"yes"; then
11752		{ { echo "$as_me:$LINENO: error: Cups support required but cups-config not located.  Make sure cups-devel related files are installed." >&5
11753echo "$as_me: error: Cups support required but cups-config not located.  Make sure cups-devel related files are installed." >&2;}
11754   { (exit 1); exit 1; }; }
11755        fi
11756fi
11757
11758############################################
11759# we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
11760echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11761echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
11762if test "${ac_cv_search_dlopen+set}" = set; then
11763  echo $ECHO_N "(cached) $ECHO_C" >&6
11764else
11765  ac_func_search_save_LIBS=$LIBS
11766ac_cv_search_dlopen=no
11767cat >conftest.$ac_ext <<_ACEOF
11768/* confdefs.h.  */
11769_ACEOF
11770cat confdefs.h >>conftest.$ac_ext
11771cat >>conftest.$ac_ext <<_ACEOF
11772/* end confdefs.h.  */
11773
11774/* Override any gcc2 internal prototype to avoid an error.  */
11775#ifdef __cplusplus
11776extern "C"
11777#endif
11778/* We use char because int might match the return type of a gcc2
11779   builtin and then its argument prototype would still apply.  */
11780char dlopen ();
11781int
11782main ()
11783{
11784dlopen ();
11785  ;
11786  return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext conftest$ac_exeext
11790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11791  (eval $ac_link) 2>conftest.er1
11792  ac_status=$?
11793  grep -v '^ *+' conftest.er1 >conftest.err
11794  rm -f conftest.er1
11795  cat conftest.err >&5
11796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797  (exit $ac_status); } &&
11798	 { ac_try='test -z "$ac_c_werror_flag"
11799			 || test ! -s conftest.err'
11800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801  (eval $ac_try) 2>&5
11802  ac_status=$?
11803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804  (exit $ac_status); }; } &&
11805	 { ac_try='test -s conftest$ac_exeext'
11806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807  (eval $ac_try) 2>&5
11808  ac_status=$?
11809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810  (exit $ac_status); }; }; then
11811  ac_cv_search_dlopen="none required"
11812else
11813  echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816fi
11817rm -f conftest.err conftest.$ac_objext \
11818      conftest$ac_exeext conftest.$ac_ext
11819if test "$ac_cv_search_dlopen" = no; then
11820  for ac_lib in dl; do
11821    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11822    cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h.  */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h.  */
11828
11829/* Override any gcc2 internal prototype to avoid an error.  */
11830#ifdef __cplusplus
11831extern "C"
11832#endif
11833/* We use char because int might match the return type of a gcc2
11834   builtin and then its argument prototype would still apply.  */
11835char dlopen ();
11836int
11837main ()
11838{
11839dlopen ();
11840  ;
11841  return 0;
11842}
11843_ACEOF
11844rm -f conftest.$ac_objext conftest$ac_exeext
11845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846  (eval $ac_link) 2>conftest.er1
11847  ac_status=$?
11848  grep -v '^ *+' conftest.er1 >conftest.err
11849  rm -f conftest.er1
11850  cat conftest.err >&5
11851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852  (exit $ac_status); } &&
11853	 { ac_try='test -z "$ac_c_werror_flag"
11854			 || test ! -s conftest.err'
11855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856  (eval $ac_try) 2>&5
11857  ac_status=$?
11858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859  (exit $ac_status); }; } &&
11860	 { ac_try='test -s conftest$ac_exeext'
11861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862  (eval $ac_try) 2>&5
11863  ac_status=$?
11864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865  (exit $ac_status); }; }; then
11866  ac_cv_search_dlopen="-l$ac_lib"
11867break
11868else
11869  echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
11872fi
11873rm -f conftest.err conftest.$ac_objext \
11874      conftest$ac_exeext conftest.$ac_ext
11875  done
11876fi
11877LIBS=$ac_func_search_save_LIBS
11878fi
11879echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11880echo "${ECHO_T}$ac_cv_search_dlopen" >&6
11881if test "$ac_cv_search_dlopen" != no; then
11882  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
11883
11884fi
11885
11886# dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
11887
11888############################################
11889# check if the compiler can do immediate structures
11890echo "$as_me:$LINENO: checking for immediate structures" >&5
11891echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
11892if test "${samba_cv_immediate_structures+set}" = set; then
11893  echo $ECHO_N "(cached) $ECHO_C" >&6
11894else
11895
11896    cat >conftest.$ac_ext <<_ACEOF
11897/* confdefs.h.  */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h.  */
11902
11903#include <stdio.h>
11904int
11905main ()
11906{
11907
11908   typedef struct {unsigned x;} FOOBAR;
11909   #define X_FOOBAR(x) ((FOOBAR) { x })
11910   #define FOO_ONE X_FOOBAR(1)
11911   FOOBAR f = FOO_ONE;
11912   static struct {
11913	FOOBAR y;
11914	} f2[] = {
11915		{FOO_ONE}
11916	};
11917
11918  ;
11919  return 0;
11920}
11921_ACEOF
11922rm -f conftest.$ac_objext
11923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11924  (eval $ac_compile) 2>conftest.er1
11925  ac_status=$?
11926  grep -v '^ *+' conftest.er1 >conftest.err
11927  rm -f conftest.er1
11928  cat conftest.err >&5
11929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930  (exit $ac_status); } &&
11931	 { ac_try='test -z "$ac_c_werror_flag"
11932			 || test ! -s conftest.err'
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); }; } &&
11938	 { ac_try='test -s conftest.$ac_objext'
11939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940  (eval $ac_try) 2>&5
11941  ac_status=$?
11942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943  (exit $ac_status); }; }; then
11944  samba_cv_immediate_structures=yes
11945else
11946  echo "$as_me: failed program was:" >&5
11947sed 's/^/| /' conftest.$ac_ext >&5
11948
11949samba_cv_immediate_structures=no
11950fi
11951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11952fi
11953echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
11954echo "${ECHO_T}$samba_cv_immediate_structures" >&6
11955if test x"$samba_cv_immediate_structures" = x"yes"; then
11956
11957cat >>confdefs.h <<\_ACEOF
11958#define HAVE_IMMEDIATE_STRUCTURES 1
11959_ACEOF
11960
11961fi
11962
11963############################################
11964# check if the compiler can do immediate structures
11965echo "$as_me:$LINENO: checking if the compiler will optimize out function calls" >&5
11966echo $ECHO_N "checking if the compiler will optimize out function calls... $ECHO_C" >&6
11967if test "${samba_cv_optimize_out_funcation_calls+set}" = set; then
11968  echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970
11971    cat >conftest.$ac_ext <<_ACEOF
11972/* confdefs.h.  */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h.  */
11977
11978#include <stdio.h>
11979int
11980main ()
11981{
11982
11983		if (0) {
11984		   this_function_does_not_exist();
11985		} else {
11986		  return 1;
11987		}
11988
11989
11990  ;
11991  return 0;
11992}
11993_ACEOF
11994rm -f conftest.$ac_objext conftest$ac_exeext
11995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11996  (eval $ac_link) 2>conftest.er1
11997  ac_status=$?
11998  grep -v '^ *+' conftest.er1 >conftest.err
11999  rm -f conftest.er1
12000  cat conftest.err >&5
12001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002  (exit $ac_status); } &&
12003	 { ac_try='test -z "$ac_c_werror_flag"
12004			 || test ! -s conftest.err'
12005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006  (eval $ac_try) 2>&5
12007  ac_status=$?
12008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009  (exit $ac_status); }; } &&
12010	 { ac_try='test -s conftest$ac_exeext'
12011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012  (eval $ac_try) 2>&5
12013  ac_status=$?
12014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015  (exit $ac_status); }; }; then
12016  samba_cv_optimize_out_funcation_calls=yes
12017else
12018  echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021samba_cv_optimize_out_funcation_calls=no
12022fi
12023rm -f conftest.err conftest.$ac_objext \
12024      conftest$ac_exeext conftest.$ac_ext
12025fi
12026echo "$as_me:$LINENO: result: $samba_cv_optimize_out_funcation_calls" >&5
12027echo "${ECHO_T}$samba_cv_optimize_out_funcation_calls" >&6
12028if test x"$samba_cv_optimize_out_funcation_calls" = x"yes"; then
12029
12030cat >>confdefs.h <<\_ACEOF
12031#define HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS 1
12032_ACEOF
12033
12034fi
12035
12036############################################
12037# check for unix domain sockets
12038echo "$as_me:$LINENO: checking for unix domain sockets" >&5
12039echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
12040if test "${samba_cv_unixsocket+set}" = set; then
12041  echo $ECHO_N "(cached) $ECHO_C" >&6
12042else
12043
12044    cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h.  */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h.  */
12050
12051#include <sys/types.h>
12052#include <stdlib.h>
12053#include <stddef.h>
12054#include <sys/socket.h>
12055#include <sys/un.h>
12056int
12057main ()
12058{
12059
12060  struct sockaddr_un sunaddr;
12061  sunaddr.sun_family = AF_UNIX;
12062
12063  ;
12064  return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069  (eval $ac_compile) 2>conftest.er1
12070  ac_status=$?
12071  grep -v '^ *+' conftest.er1 >conftest.err
12072  rm -f conftest.er1
12073  cat conftest.err >&5
12074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075  (exit $ac_status); } &&
12076	 { ac_try='test -z "$ac_c_werror_flag"
12077			 || test ! -s conftest.err'
12078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079  (eval $ac_try) 2>&5
12080  ac_status=$?
12081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082  (exit $ac_status); }; } &&
12083	 { ac_try='test -s conftest.$ac_objext'
12084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085  (eval $ac_try) 2>&5
12086  ac_status=$?
12087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088  (exit $ac_status); }; }; then
12089  samba_cv_unixsocket=yes
12090else
12091  echo "$as_me: failed program was:" >&5
12092sed 's/^/| /' conftest.$ac_ext >&5
12093
12094samba_cv_unixsocket=no
12095fi
12096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12097fi
12098echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
12099echo "${ECHO_T}$samba_cv_unixsocket" >&6
12100if test x"$samba_cv_unixsocket" = x"yes"; then
12101
12102cat >>confdefs.h <<\_ACEOF
12103#define HAVE_UNIXSOCKET 1
12104_ACEOF
12105
12106fi
12107
12108
12109echo "$as_me:$LINENO: checking for socklen_t type" >&5
12110echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
12111if test "${samba_cv_socklen_t+set}" = set; then
12112  echo $ECHO_N "(cached) $ECHO_C" >&6
12113else
12114
12115    cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h.  */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h.  */
12121
12122#include <sys/types.h>
12123#if STDC_HEADERS
12124#include <stdlib.h>
12125#include <stddef.h>
12126#endif
12127#include <sys/socket.h>
12128int
12129main ()
12130{
12131socklen_t i = 0
12132  ;
12133  return 0;
12134}
12135_ACEOF
12136rm -f conftest.$ac_objext
12137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138  (eval $ac_compile) 2>conftest.er1
12139  ac_status=$?
12140  grep -v '^ *+' conftest.er1 >conftest.err
12141  rm -f conftest.er1
12142  cat conftest.err >&5
12143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144  (exit $ac_status); } &&
12145	 { ac_try='test -z "$ac_c_werror_flag"
12146			 || test ! -s conftest.err'
12147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148  (eval $ac_try) 2>&5
12149  ac_status=$?
12150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151  (exit $ac_status); }; } &&
12152	 { ac_try='test -s conftest.$ac_objext'
12153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154  (eval $ac_try) 2>&5
12155  ac_status=$?
12156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157  (exit $ac_status); }; }; then
12158  samba_cv_socklen_t=yes
12159else
12160  echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
12163samba_cv_socklen_t=no
12164fi
12165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12166fi
12167echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
12168echo "${ECHO_T}$samba_cv_socklen_t" >&6
12169if test x"$samba_cv_socklen_t" = x"yes"; then
12170
12171cat >>confdefs.h <<\_ACEOF
12172#define HAVE_SOCKLEN_T_TYPE 1
12173_ACEOF
12174
12175fi
12176
12177echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
12178echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
12179if test "${samba_cv_sig_atomic_t+set}" = set; then
12180  echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
12182
12183    cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h.  */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h.  */
12189
12190#include <sys/types.h>
12191#if STDC_HEADERS
12192#include <stdlib.h>
12193#include <stddef.h>
12194#endif
12195#include <signal.h>
12196int
12197main ()
12198{
12199sig_atomic_t i = 0
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204rm -f conftest.$ac_objext
12205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12206  (eval $ac_compile) 2>conftest.er1
12207  ac_status=$?
12208  grep -v '^ *+' conftest.er1 >conftest.err
12209  rm -f conftest.er1
12210  cat conftest.err >&5
12211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212  (exit $ac_status); } &&
12213	 { ac_try='test -z "$ac_c_werror_flag"
12214			 || test ! -s conftest.err'
12215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216  (eval $ac_try) 2>&5
12217  ac_status=$?
12218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); }; } &&
12220	 { ac_try='test -s conftest.$ac_objext'
12221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222  (eval $ac_try) 2>&5
12223  ac_status=$?
12224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225  (exit $ac_status); }; }; then
12226  samba_cv_sig_atomic_t=yes
12227else
12228  echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231samba_cv_sig_atomic_t=no
12232fi
12233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12234fi
12235echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
12236echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
12237if test x"$samba_cv_sig_atomic_t" = x"yes"; then
12238
12239cat >>confdefs.h <<\_ACEOF
12240#define HAVE_SIG_ATOMIC_T_TYPE 1
12241_ACEOF
12242
12243fi
12244
12245# stupid headers have the functions but no declaration. grrrr.
12246
12247 echo "$as_me:$LINENO: checking for errno declaration" >&5
12248echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
12249if test "${ac_cv_have_errno_decl+set}" = set; then
12250  echo $ECHO_N "(cached) $ECHO_C" >&6
12251else
12252
12253    cat >conftest.$ac_ext <<_ACEOF
12254/* confdefs.h.  */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h.  */
12259#include <errno.h>
12260int
12261main ()
12262{
12263int i = (int)errno
12264  ;
12265  return 0;
12266}
12267_ACEOF
12268rm -f conftest.$ac_objext
12269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270  (eval $ac_compile) 2>conftest.er1
12271  ac_status=$?
12272  grep -v '^ *+' conftest.er1 >conftest.err
12273  rm -f conftest.er1
12274  cat conftest.err >&5
12275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276  (exit $ac_status); } &&
12277	 { ac_try='test -z "$ac_c_werror_flag"
12278			 || test ! -s conftest.err'
12279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280  (eval $ac_try) 2>&5
12281  ac_status=$?
12282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283  (exit $ac_status); }; } &&
12284	 { ac_try='test -s conftest.$ac_objext'
12285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286  (eval $ac_try) 2>&5
12287  ac_status=$?
12288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289  (exit $ac_status); }; }; then
12290  ac_cv_have_errno_decl=yes
12291else
12292  echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295ac_cv_have_errno_decl=no
12296fi
12297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12298fi
12299echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
12300echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
12301 if test x"$ac_cv_have_errno_decl" = x"yes"; then
12302
12303cat >>confdefs.h <<\_ACEOF
12304#define HAVE_ERRNO_DECL 1
12305_ACEOF
12306
12307 fi
12308
12309
12310 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
12311echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
12312if test "${ac_cv_have_setresuid_decl+set}" = set; then
12313  echo $ECHO_N "(cached) $ECHO_C" >&6
12314else
12315
12316    cat >conftest.$ac_ext <<_ACEOF
12317/* confdefs.h.  */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h.  */
12322#include <unistd.h>
12323int
12324main ()
12325{
12326int i = (int)setresuid
12327  ;
12328  return 0;
12329}
12330_ACEOF
12331rm -f conftest.$ac_objext
12332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333  (eval $ac_compile) 2>conftest.er1
12334  ac_status=$?
12335  grep -v '^ *+' conftest.er1 >conftest.err
12336  rm -f conftest.er1
12337  cat conftest.err >&5
12338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339  (exit $ac_status); } &&
12340	 { ac_try='test -z "$ac_c_werror_flag"
12341			 || test ! -s conftest.err'
12342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343  (eval $ac_try) 2>&5
12344  ac_status=$?
12345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346  (exit $ac_status); }; } &&
12347	 { ac_try='test -s conftest.$ac_objext'
12348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349  (eval $ac_try) 2>&5
12350  ac_status=$?
12351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352  (exit $ac_status); }; }; then
12353  ac_cv_have_setresuid_decl=yes
12354else
12355  echo "$as_me: failed program was:" >&5
12356sed 's/^/| /' conftest.$ac_ext >&5
12357
12358ac_cv_have_setresuid_decl=no
12359fi
12360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12361fi
12362echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
12363echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
12364 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
12365
12366cat >>confdefs.h <<\_ACEOF
12367#define HAVE_SETRESUID_DECL 1
12368_ACEOF
12369
12370 fi
12371
12372
12373 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
12374echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
12375if test "${ac_cv_have_setresgid_decl+set}" = set; then
12376  echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378
12379    cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h.  */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h.  */
12385#include <unistd.h>
12386int
12387main ()
12388{
12389int i = (int)setresgid
12390  ;
12391  return 0;
12392}
12393_ACEOF
12394rm -f conftest.$ac_objext
12395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396  (eval $ac_compile) 2>conftest.er1
12397  ac_status=$?
12398  grep -v '^ *+' conftest.er1 >conftest.err
12399  rm -f conftest.er1
12400  cat conftest.err >&5
12401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402  (exit $ac_status); } &&
12403	 { ac_try='test -z "$ac_c_werror_flag"
12404			 || test ! -s conftest.err'
12405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406  (eval $ac_try) 2>&5
12407  ac_status=$?
12408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409  (exit $ac_status); }; } &&
12410	 { ac_try='test -s conftest.$ac_objext'
12411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412  (eval $ac_try) 2>&5
12413  ac_status=$?
12414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415  (exit $ac_status); }; }; then
12416  ac_cv_have_setresgid_decl=yes
12417else
12418  echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
12421ac_cv_have_setresgid_decl=no
12422fi
12423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12424fi
12425echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
12426echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
12427 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
12428
12429cat >>confdefs.h <<\_ACEOF
12430#define HAVE_SETRESGID_DECL 1
12431_ACEOF
12432
12433 fi
12434
12435
12436 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
12437echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
12438if test "${ac_cv_have_asprintf_decl+set}" = set; then
12439  echo $ECHO_N "(cached) $ECHO_C" >&6
12440else
12441
12442    cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h.  */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h.  */
12448#include <stdio.h>
12449int
12450main ()
12451{
12452int i = (int)asprintf
12453  ;
12454  return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext
12458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459  (eval $ac_compile) 2>conftest.er1
12460  ac_status=$?
12461  grep -v '^ *+' conftest.er1 >conftest.err
12462  rm -f conftest.er1
12463  cat conftest.err >&5
12464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465  (exit $ac_status); } &&
12466	 { ac_try='test -z "$ac_c_werror_flag"
12467			 || test ! -s conftest.err'
12468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469  (eval $ac_try) 2>&5
12470  ac_status=$?
12471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472  (exit $ac_status); }; } &&
12473	 { ac_try='test -s conftest.$ac_objext'
12474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475  (eval $ac_try) 2>&5
12476  ac_status=$?
12477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478  (exit $ac_status); }; }; then
12479  ac_cv_have_asprintf_decl=yes
12480else
12481  echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
12484ac_cv_have_asprintf_decl=no
12485fi
12486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12487fi
12488echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
12489echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
12490 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
12491
12492cat >>confdefs.h <<\_ACEOF
12493#define HAVE_ASPRINTF_DECL 1
12494_ACEOF
12495
12496 fi
12497
12498
12499 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
12500echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
12501if test "${ac_cv_have_vasprintf_decl+set}" = set; then
12502  echo $ECHO_N "(cached) $ECHO_C" >&6
12503else
12504
12505    cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h.  */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h.  */
12511#include <stdio.h>
12512int
12513main ()
12514{
12515int i = (int)vasprintf
12516  ;
12517  return 0;
12518}
12519_ACEOF
12520rm -f conftest.$ac_objext
12521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522  (eval $ac_compile) 2>conftest.er1
12523  ac_status=$?
12524  grep -v '^ *+' conftest.er1 >conftest.err
12525  rm -f conftest.er1
12526  cat conftest.err >&5
12527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528  (exit $ac_status); } &&
12529	 { ac_try='test -z "$ac_c_werror_flag"
12530			 || test ! -s conftest.err'
12531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532  (eval $ac_try) 2>&5
12533  ac_status=$?
12534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535  (exit $ac_status); }; } &&
12536	 { ac_try='test -s conftest.$ac_objext'
12537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538  (eval $ac_try) 2>&5
12539  ac_status=$?
12540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541  (exit $ac_status); }; }; then
12542  ac_cv_have_vasprintf_decl=yes
12543else
12544  echo "$as_me: failed program was:" >&5
12545sed 's/^/| /' conftest.$ac_ext >&5
12546
12547ac_cv_have_vasprintf_decl=no
12548fi
12549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12550fi
12551echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
12552echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
12553 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
12554
12555cat >>confdefs.h <<\_ACEOF
12556#define HAVE_VASPRINTF_DECL 1
12557_ACEOF
12558
12559 fi
12560
12561
12562 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
12563echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
12564if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
12565  echo $ECHO_N "(cached) $ECHO_C" >&6
12566else
12567
12568    cat >conftest.$ac_ext <<_ACEOF
12569/* confdefs.h.  */
12570_ACEOF
12571cat confdefs.h >>conftest.$ac_ext
12572cat >>conftest.$ac_ext <<_ACEOF
12573/* end confdefs.h.  */
12574#include <stdio.h>
12575int
12576main ()
12577{
12578int i = (int)vsnprintf
12579  ;
12580  return 0;
12581}
12582_ACEOF
12583rm -f conftest.$ac_objext
12584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12585  (eval $ac_compile) 2>conftest.er1
12586  ac_status=$?
12587  grep -v '^ *+' conftest.er1 >conftest.err
12588  rm -f conftest.er1
12589  cat conftest.err >&5
12590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591  (exit $ac_status); } &&
12592	 { ac_try='test -z "$ac_c_werror_flag"
12593			 || test ! -s conftest.err'
12594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595  (eval $ac_try) 2>&5
12596  ac_status=$?
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); }; } &&
12599	 { ac_try='test -s conftest.$ac_objext'
12600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601  (eval $ac_try) 2>&5
12602  ac_status=$?
12603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604  (exit $ac_status); }; }; then
12605  ac_cv_have_vsnprintf_decl=yes
12606else
12607  echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
12610ac_cv_have_vsnprintf_decl=no
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613fi
12614echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
12615echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
12616 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
12617
12618cat >>confdefs.h <<\_ACEOF
12619#define HAVE_VSNPRINTF_DECL 1
12620_ACEOF
12621
12622 fi
12623
12624
12625 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
12626echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
12627if test "${ac_cv_have_snprintf_decl+set}" = set; then
12628  echo $ECHO_N "(cached) $ECHO_C" >&6
12629else
12630
12631    cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h.  */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h.  */
12637#include <stdio.h>
12638int
12639main ()
12640{
12641int i = (int)snprintf
12642  ;
12643  return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12648  (eval $ac_compile) 2>conftest.er1
12649  ac_status=$?
12650  grep -v '^ *+' conftest.er1 >conftest.err
12651  rm -f conftest.er1
12652  cat conftest.err >&5
12653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654  (exit $ac_status); } &&
12655	 { ac_try='test -z "$ac_c_werror_flag"
12656			 || test ! -s conftest.err'
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); }; } &&
12662	 { ac_try='test -s conftest.$ac_objext'
12663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664  (eval $ac_try) 2>&5
12665  ac_status=$?
12666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667  (exit $ac_status); }; }; then
12668  ac_cv_have_snprintf_decl=yes
12669else
12670  echo "$as_me: failed program was:" >&5
12671sed 's/^/| /' conftest.$ac_ext >&5
12672
12673ac_cv_have_snprintf_decl=no
12674fi
12675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12676fi
12677echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
12678echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
12679 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
12680
12681cat >>confdefs.h <<\_ACEOF
12682#define HAVE_SNPRINTF_DECL 1
12683_ACEOF
12684
12685 fi
12686
12687
12688# and glibc has setresuid under linux but the function does
12689# nothing until kernel 2.1.44! very dumb.
12690echo "$as_me:$LINENO: checking for real setresuid" >&5
12691echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
12692if test "${samba_cv_have_setresuid+set}" = set; then
12693  echo $ECHO_N "(cached) $ECHO_C" >&6
12694else
12695
12696    if test "$cross_compiling" = yes; then
12697  samba_cv_have_setresuid=cross
12698else
12699  cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h.  */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h.  */
12705#include <errno.h>
12706main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
12707_ACEOF
12708rm -f conftest$ac_exeext
12709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12710  (eval $ac_link) 2>&5
12711  ac_status=$?
12712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715  (eval $ac_try) 2>&5
12716  ac_status=$?
12717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718  (exit $ac_status); }; }; then
12719  samba_cv_have_setresuid=yes
12720else
12721  echo "$as_me: program exited with status $ac_status" >&5
12722echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725( exit $ac_status )
12726samba_cv_have_setresuid=no
12727fi
12728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12729fi
12730fi
12731echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
12732echo "${ECHO_T}$samba_cv_have_setresuid" >&6
12733if test x"$samba_cv_have_setresuid" = x"yes"; then
12734
12735cat >>confdefs.h <<\_ACEOF
12736#define HAVE_SETRESUID 1
12737_ACEOF
12738
12739fi
12740
12741# Do the same check for setresguid...
12742#
12743echo "$as_me:$LINENO: checking for real setresgid" >&5
12744echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
12745if test "${samba_cv_have_setresgid+set}" = set; then
12746  echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
12748
12749    if test "$cross_compiling" = yes; then
12750  samba_cv_have_setresgid=cross
12751else
12752  cat >conftest.$ac_ext <<_ACEOF
12753/* confdefs.h.  */
12754_ACEOF
12755cat confdefs.h >>conftest.$ac_ext
12756cat >>conftest.$ac_ext <<_ACEOF
12757/* end confdefs.h.  */
12758#include <unistd.h>
12759#include <errno.h>
12760main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
12761_ACEOF
12762rm -f conftest$ac_exeext
12763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764  (eval $ac_link) 2>&5
12765  ac_status=$?
12766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769  (eval $ac_try) 2>&5
12770  ac_status=$?
12771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772  (exit $ac_status); }; }; then
12773  samba_cv_have_setresgid=yes
12774else
12775  echo "$as_me: program exited with status $ac_status" >&5
12776echo "$as_me: failed program was:" >&5
12777sed 's/^/| /' conftest.$ac_ext >&5
12778
12779( exit $ac_status )
12780samba_cv_have_setresgid=no
12781fi
12782rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12783fi
12784fi
12785echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
12786echo "${ECHO_T}$samba_cv_have_setresgid" >&6
12787if test x"$samba_cv_have_setresgid" = x"yes"; then
12788
12789cat >>confdefs.h <<\_ACEOF
12790#define HAVE_SETRESGID 1
12791_ACEOF
12792
12793fi
12794
12795echo "$as_me:$LINENO: checking for working memcmp" >&5
12796echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12797if test "${ac_cv_func_memcmp_working+set}" = set; then
12798  echo $ECHO_N "(cached) $ECHO_C" >&6
12799else
12800  if test "$cross_compiling" = yes; then
12801  ac_cv_func_memcmp_working=no
12802else
12803  cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h.  */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h.  */
12809$ac_includes_default
12810int
12811main ()
12812{
12813
12814  /* Some versions of memcmp are not 8-bit clean.  */
12815  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12816  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12817    exit (1);
12818
12819  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12820     or more and with at least one buffer not starting on a 4-byte boundary.
12821     William Lewis provided this test program.   */
12822  {
12823    char foo[21];
12824    char bar[21];
12825    int i;
12826    for (i = 0; i < 4; i++)
12827      {
12828	char *a = foo + i;
12829	char *b = bar + i;
12830	strcpy (a, "--------01111111");
12831	strcpy (b, "--------10000000");
12832	if (memcmp (a, b, 16) >= 0)
12833	  exit (1);
12834      }
12835    exit (0);
12836  }
12837
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842rm -f conftest$ac_exeext
12843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844  (eval $ac_link) 2>&5
12845  ac_status=$?
12846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849  (eval $ac_try) 2>&5
12850  ac_status=$?
12851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852  (exit $ac_status); }; }; then
12853  ac_cv_func_memcmp_working=yes
12854else
12855  echo "$as_me: program exited with status $ac_status" >&5
12856echo "$as_me: failed program was:" >&5
12857sed 's/^/| /' conftest.$ac_ext >&5
12858
12859( exit $ac_status )
12860ac_cv_func_memcmp_working=no
12861fi
12862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12863fi
12864fi
12865echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12866echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12867test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12868    "memcmp.$ac_objext"   | \
12869  *" memcmp.$ac_objext"   | \
12870    "memcmp.$ac_objext "* | \
12871  *" memcmp.$ac_objext "* ) ;;
12872  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12873esac
12874
12875
12876
12877###############################################
12878# Readline included by default unless explicitly asked not to
12879test "${with_readline+set}" != "set" && with_readline=yes
12880
12881# test for where we get readline() from
12882echo "$as_me:$LINENO: checking whether to use readline" >&5
12883echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
12884
12885# Check whether --with-readline or --without-readline was given.
12886if test "${with_readline+set}" = set; then
12887  withval="$with_readline"
12888    case "$with_readline" in
12889  yes)
12890    echo "$as_me:$LINENO: result: yes" >&5
12891echo "${ECHO_T}yes" >&6
12892
12893
12894
12895
12896for ac_header in readline.h history.h readline/readline.h
12897do
12898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12899if eval "test \"\${$as_ac_Header+set}\" = set"; then
12900  echo "$as_me:$LINENO: checking for $ac_header" >&5
12901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12902if eval "test \"\${$as_ac_Header+set}\" = set"; then
12903  echo $ECHO_N "(cached) $ECHO_C" >&6
12904fi
12905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12907else
12908  # Is the header compilable?
12909echo "$as_me:$LINENO: checking $ac_header usability" >&5
12910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12911cat >conftest.$ac_ext <<_ACEOF
12912/* confdefs.h.  */
12913_ACEOF
12914cat confdefs.h >>conftest.$ac_ext
12915cat >>conftest.$ac_ext <<_ACEOF
12916/* end confdefs.h.  */
12917$ac_includes_default
12918#include <$ac_header>
12919_ACEOF
12920rm -f conftest.$ac_objext
12921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922  (eval $ac_compile) 2>conftest.er1
12923  ac_status=$?
12924  grep -v '^ *+' conftest.er1 >conftest.err
12925  rm -f conftest.er1
12926  cat conftest.err >&5
12927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928  (exit $ac_status); } &&
12929	 { ac_try='test -z "$ac_c_werror_flag"
12930			 || test ! -s conftest.err'
12931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932  (eval $ac_try) 2>&5
12933  ac_status=$?
12934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935  (exit $ac_status); }; } &&
12936	 { ac_try='test -s conftest.$ac_objext'
12937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938  (eval $ac_try) 2>&5
12939  ac_status=$?
12940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941  (exit $ac_status); }; }; then
12942  ac_header_compiler=yes
12943else
12944  echo "$as_me: failed program was:" >&5
12945sed 's/^/| /' conftest.$ac_ext >&5
12946
12947ac_header_compiler=no
12948fi
12949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12951echo "${ECHO_T}$ac_header_compiler" >&6
12952
12953# Is the header present?
12954echo "$as_me:$LINENO: checking $ac_header presence" >&5
12955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12956cat >conftest.$ac_ext <<_ACEOF
12957/* confdefs.h.  */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
12961/* end confdefs.h.  */
12962#include <$ac_header>
12963_ACEOF
12964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12965  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12966  ac_status=$?
12967  grep -v '^ *+' conftest.er1 >conftest.err
12968  rm -f conftest.er1
12969  cat conftest.err >&5
12970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971  (exit $ac_status); } >/dev/null; then
12972  if test -s conftest.err; then
12973    ac_cpp_err=$ac_c_preproc_warn_flag
12974    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12975  else
12976    ac_cpp_err=
12977  fi
12978else
12979  ac_cpp_err=yes
12980fi
12981if test -z "$ac_cpp_err"; then
12982  ac_header_preproc=yes
12983else
12984  echo "$as_me: failed program was:" >&5
12985sed 's/^/| /' conftest.$ac_ext >&5
12986
12987  ac_header_preproc=no
12988fi
12989rm -f conftest.err conftest.$ac_ext
12990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12991echo "${ECHO_T}$ac_header_preproc" >&6
12992
12993# So?  What about this header?
12994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12995  yes:no: )
12996    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13000    ac_header_preproc=yes
13001    ;;
13002  no:yes:* )
13003    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13005    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13006echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13007    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13009    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13010echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13013    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13015    (
13016      cat <<\_ASBOX
13017## ------------------------------------------ ##
13018## Report this to the AC_PACKAGE_NAME lists.  ##
13019## ------------------------------------------ ##
13020_ASBOX
13021    ) |
13022      sed "s/^/$as_me: WARNING:     /" >&2
13023    ;;
13024esac
13025echo "$as_me:$LINENO: checking for $ac_header" >&5
13026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13027if eval "test \"\${$as_ac_Header+set}\" = set"; then
13028  echo $ECHO_N "(cached) $ECHO_C" >&6
13029else
13030  eval "$as_ac_Header=\$ac_header_preproc"
13031fi
13032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13034
13035fi
13036if test `eval echo '${'$as_ac_Header'}'` = yes; then
13037  cat >>confdefs.h <<_ACEOF
13038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13039_ACEOF
13040
13041fi
13042
13043done
13044
13045
13046for ac_header in readline/history.h
13047do
13048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13049if eval "test \"\${$as_ac_Header+set}\" = set"; then
13050  echo "$as_me:$LINENO: checking for $ac_header" >&5
13051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13052if eval "test \"\${$as_ac_Header+set}\" = set"; then
13053  echo $ECHO_N "(cached) $ECHO_C" >&6
13054fi
13055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13057else
13058  # Is the header compilable?
13059echo "$as_me:$LINENO: checking $ac_header usability" >&5
13060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13061cat >conftest.$ac_ext <<_ACEOF
13062/* confdefs.h.  */
13063_ACEOF
13064cat confdefs.h >>conftest.$ac_ext
13065cat >>conftest.$ac_ext <<_ACEOF
13066/* end confdefs.h.  */
13067$ac_includes_default
13068#include <$ac_header>
13069_ACEOF
13070rm -f conftest.$ac_objext
13071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072  (eval $ac_compile) 2>conftest.er1
13073  ac_status=$?
13074  grep -v '^ *+' conftest.er1 >conftest.err
13075  rm -f conftest.er1
13076  cat conftest.err >&5
13077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078  (exit $ac_status); } &&
13079	 { ac_try='test -z "$ac_c_werror_flag"
13080			 || test ! -s conftest.err'
13081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082  (eval $ac_try) 2>&5
13083  ac_status=$?
13084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085  (exit $ac_status); }; } &&
13086	 { ac_try='test -s conftest.$ac_objext'
13087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088  (eval $ac_try) 2>&5
13089  ac_status=$?
13090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091  (exit $ac_status); }; }; then
13092  ac_header_compiler=yes
13093else
13094  echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097ac_header_compiler=no
13098fi
13099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13101echo "${ECHO_T}$ac_header_compiler" >&6
13102
13103# Is the header present?
13104echo "$as_me:$LINENO: checking $ac_header presence" >&5
13105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13106cat >conftest.$ac_ext <<_ACEOF
13107/* confdefs.h.  */
13108_ACEOF
13109cat confdefs.h >>conftest.$ac_ext
13110cat >>conftest.$ac_ext <<_ACEOF
13111/* end confdefs.h.  */
13112#include <$ac_header>
13113_ACEOF
13114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13115  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13116  ac_status=$?
13117  grep -v '^ *+' conftest.er1 >conftest.err
13118  rm -f conftest.er1
13119  cat conftest.err >&5
13120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121  (exit $ac_status); } >/dev/null; then
13122  if test -s conftest.err; then
13123    ac_cpp_err=$ac_c_preproc_warn_flag
13124    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13125  else
13126    ac_cpp_err=
13127  fi
13128else
13129  ac_cpp_err=yes
13130fi
13131if test -z "$ac_cpp_err"; then
13132  ac_header_preproc=yes
13133else
13134  echo "$as_me: failed program was:" >&5
13135sed 's/^/| /' conftest.$ac_ext >&5
13136
13137  ac_header_preproc=no
13138fi
13139rm -f conftest.err conftest.$ac_ext
13140echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13141echo "${ECHO_T}$ac_header_preproc" >&6
13142
13143# So?  What about this header?
13144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13145  yes:no: )
13146    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13148    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13150    ac_header_preproc=yes
13151    ;;
13152  no:yes:* )
13153    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13155    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13156echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13157    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13159    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13160echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13161    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13163    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13165    (
13166      cat <<\_ASBOX
13167## ------------------------------------------ ##
13168## Report this to the AC_PACKAGE_NAME lists.  ##
13169## ------------------------------------------ ##
13170_ASBOX
13171    ) |
13172      sed "s/^/$as_me: WARNING:     /" >&2
13173    ;;
13174esac
13175echo "$as_me:$LINENO: checking for $ac_header" >&5
13176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13177if eval "test \"\${$as_ac_Header+set}\" = set"; then
13178  echo $ECHO_N "(cached) $ECHO_C" >&6
13179else
13180  eval "$as_ac_Header=\$ac_header_preproc"
13181fi
13182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13184
13185fi
13186if test `eval echo '${'$as_ac_Header'}'` = yes; then
13187  cat >>confdefs.h <<_ACEOF
13188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13189_ACEOF
13190
13191fi
13192
13193done
13194
13195
13196
13197
13198for ac_header in readline.h readline/readline.h
13199do
13200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13201if eval "test \"\${$as_ac_Header+set}\" = set"; then
13202  echo "$as_me:$LINENO: checking for $ac_header" >&5
13203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13204if eval "test \"\${$as_ac_Header+set}\" = set"; then
13205  echo $ECHO_N "(cached) $ECHO_C" >&6
13206fi
13207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13209else
13210  # Is the header compilable?
13211echo "$as_me:$LINENO: checking $ac_header usability" >&5
13212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13213cat >conftest.$ac_ext <<_ACEOF
13214/* confdefs.h.  */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h.  */
13219$ac_includes_default
13220#include <$ac_header>
13221_ACEOF
13222rm -f conftest.$ac_objext
13223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13224  (eval $ac_compile) 2>conftest.er1
13225  ac_status=$?
13226  grep -v '^ *+' conftest.er1 >conftest.err
13227  rm -f conftest.er1
13228  cat conftest.err >&5
13229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230  (exit $ac_status); } &&
13231	 { ac_try='test -z "$ac_c_werror_flag"
13232			 || test ! -s conftest.err'
13233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234  (eval $ac_try) 2>&5
13235  ac_status=$?
13236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237  (exit $ac_status); }; } &&
13238	 { ac_try='test -s conftest.$ac_objext'
13239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240  (eval $ac_try) 2>&5
13241  ac_status=$?
13242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243  (exit $ac_status); }; }; then
13244  ac_header_compiler=yes
13245else
13246  echo "$as_me: failed program was:" >&5
13247sed 's/^/| /' conftest.$ac_ext >&5
13248
13249ac_header_compiler=no
13250fi
13251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13252echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13253echo "${ECHO_T}$ac_header_compiler" >&6
13254
13255# Is the header present?
13256echo "$as_me:$LINENO: checking $ac_header presence" >&5
13257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13258cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h.  */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h.  */
13264#include <$ac_header>
13265_ACEOF
13266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13267  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13268  ac_status=$?
13269  grep -v '^ *+' conftest.er1 >conftest.err
13270  rm -f conftest.er1
13271  cat conftest.err >&5
13272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273  (exit $ac_status); } >/dev/null; then
13274  if test -s conftest.err; then
13275    ac_cpp_err=$ac_c_preproc_warn_flag
13276    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13277  else
13278    ac_cpp_err=
13279  fi
13280else
13281  ac_cpp_err=yes
13282fi
13283if test -z "$ac_cpp_err"; then
13284  ac_header_preproc=yes
13285else
13286  echo "$as_me: failed program was:" >&5
13287sed 's/^/| /' conftest.$ac_ext >&5
13288
13289  ac_header_preproc=no
13290fi
13291rm -f conftest.err conftest.$ac_ext
13292echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13293echo "${ECHO_T}$ac_header_preproc" >&6
13294
13295# So?  What about this header?
13296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13297  yes:no: )
13298    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13299echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13300    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13301echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13302    ac_header_preproc=yes
13303    ;;
13304  no:yes:* )
13305    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13306echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13307    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13308echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13309    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13310echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13311    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13312echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13313    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13314echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13315    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13316echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13317    (
13318      cat <<\_ASBOX
13319## ------------------------------------------ ##
13320## Report this to the AC_PACKAGE_NAME lists.  ##
13321## ------------------------------------------ ##
13322_ASBOX
13323    ) |
13324      sed "s/^/$as_me: WARNING:     /" >&2
13325    ;;
13326esac
13327echo "$as_me:$LINENO: checking for $ac_header" >&5
13328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13329if eval "test \"\${$as_ac_Header+set}\" = set"; then
13330  echo $ECHO_N "(cached) $ECHO_C" >&6
13331else
13332  eval "$as_ac_Header=\$ac_header_preproc"
13333fi
13334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13336
13337fi
13338if test `eval echo '${'$as_ac_Header'}'` = yes; then
13339  cat >>confdefs.h <<_ACEOF
13340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13341_ACEOF
13342
13343      for termlib in ncurses curses termcap terminfo termlib tinfo; do
13344       as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
13345echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
13346echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
13347if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13348  echo $ECHO_N "(cached) $ECHO_C" >&6
13349else
13350  ac_check_lib_save_LIBS=$LIBS
13351LIBS="-l${termlib}  $LIBS"
13352cat >conftest.$ac_ext <<_ACEOF
13353/* confdefs.h.  */
13354_ACEOF
13355cat confdefs.h >>conftest.$ac_ext
13356cat >>conftest.$ac_ext <<_ACEOF
13357/* end confdefs.h.  */
13358
13359/* Override any gcc2 internal prototype to avoid an error.  */
13360#ifdef __cplusplus
13361extern "C"
13362#endif
13363/* We use char because int might match the return type of a gcc2
13364   builtin and then its argument prototype would still apply.  */
13365char tgetent ();
13366int
13367main ()
13368{
13369tgetent ();
13370  ;
13371  return 0;
13372}
13373_ACEOF
13374rm -f conftest.$ac_objext conftest$ac_exeext
13375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13376  (eval $ac_link) 2>conftest.er1
13377  ac_status=$?
13378  grep -v '^ *+' conftest.er1 >conftest.err
13379  rm -f conftest.er1
13380  cat conftest.err >&5
13381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382  (exit $ac_status); } &&
13383	 { ac_try='test -z "$ac_c_werror_flag"
13384			 || test ! -s conftest.err'
13385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386  (eval $ac_try) 2>&5
13387  ac_status=$?
13388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389  (exit $ac_status); }; } &&
13390	 { ac_try='test -s conftest$ac_exeext'
13391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392  (eval $ac_try) 2>&5
13393  ac_status=$?
13394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395  (exit $ac_status); }; }; then
13396  eval "$as_ac_Lib=yes"
13397else
13398  echo "$as_me: failed program was:" >&5
13399sed 's/^/| /' conftest.$ac_ext >&5
13400
13401eval "$as_ac_Lib=no"
13402fi
13403rm -f conftest.err conftest.$ac_objext \
13404      conftest$ac_exeext conftest.$ac_ext
13405LIBS=$ac_check_lib_save_LIBS
13406fi
13407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13408echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13409if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13410  TERMLIBS="-l${termlib}"; break
13411fi
13412
13413      done
13414      echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
13415echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
13416if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
13417  echo $ECHO_N "(cached) $ECHO_C" >&6
13418else
13419  ac_check_lib_save_LIBS=$LIBS
13420LIBS="-lreadline $TERMLIBS $LIBS"
13421cat >conftest.$ac_ext <<_ACEOF
13422/* confdefs.h.  */
13423_ACEOF
13424cat confdefs.h >>conftest.$ac_ext
13425cat >>conftest.$ac_ext <<_ACEOF
13426/* end confdefs.h.  */
13427
13428/* Override any gcc2 internal prototype to avoid an error.  */
13429#ifdef __cplusplus
13430extern "C"
13431#endif
13432/* We use char because int might match the return type of a gcc2
13433   builtin and then its argument prototype would still apply.  */
13434char rl_callback_handler_install ();
13435int
13436main ()
13437{
13438rl_callback_handler_install ();
13439  ;
13440  return 0;
13441}
13442_ACEOF
13443rm -f conftest.$ac_objext conftest$ac_exeext
13444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445  (eval $ac_link) 2>conftest.er1
13446  ac_status=$?
13447  grep -v '^ *+' conftest.er1 >conftest.err
13448  rm -f conftest.er1
13449  cat conftest.err >&5
13450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451  (exit $ac_status); } &&
13452	 { ac_try='test -z "$ac_c_werror_flag"
13453			 || test ! -s conftest.err'
13454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455  (eval $ac_try) 2>&5
13456  ac_status=$?
13457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458  (exit $ac_status); }; } &&
13459	 { ac_try='test -s conftest$ac_exeext'
13460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461  (eval $ac_try) 2>&5
13462  ac_status=$?
13463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464  (exit $ac_status); }; }; then
13465  ac_cv_lib_readline_rl_callback_handler_install=yes
13466else
13467  echo "$as_me: failed program was:" >&5
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
13470ac_cv_lib_readline_rl_callback_handler_install=no
13471fi
13472rm -f conftest.err conftest.$ac_objext \
13473      conftest$ac_exeext conftest.$ac_ext
13474LIBS=$ac_check_lib_save_LIBS
13475fi
13476echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
13477echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
13478if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
13479  TERMLIBS="-lreadline $TERMLIBS"
13480
13481cat >>confdefs.h <<\_ACEOF
13482#define HAVE_LIBREADLINE 1
13483_ACEOF
13484
13485       break
13486else
13487  TERMLIBS=
13488fi
13489
13490fi
13491
13492done
13493
13494    ;;
13495  no)
13496    echo "$as_me:$LINENO: result: no" >&5
13497echo "${ECHO_T}no" >&6
13498    ;;
13499  *)
13500    echo "$as_me:$LINENO: result: yes" >&5
13501echo "${ECHO_T}yes" >&6
13502
13503    # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
13504    # alternate readline path
13505    _ldflags=${LDFLAGS}
13506    _cppflags=${CPPFLAGS}
13507
13508    # Add additional search path
13509    LDFLAGS="-L$with_readline/lib $LDFLAGS"
13510    CPPFLAGS="-I$with_readline/include $CPPFLAGS"
13511
13512
13513
13514
13515for ac_header in readline.h history.h readline/readline.h
13516do
13517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13518if eval "test \"\${$as_ac_Header+set}\" = set"; then
13519  echo "$as_me:$LINENO: checking for $ac_header" >&5
13520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13521if eval "test \"\${$as_ac_Header+set}\" = set"; then
13522  echo $ECHO_N "(cached) $ECHO_C" >&6
13523fi
13524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13526else
13527  # Is the header compilable?
13528echo "$as_me:$LINENO: checking $ac_header usability" >&5
13529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13530cat >conftest.$ac_ext <<_ACEOF
13531/* confdefs.h.  */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
13535/* end confdefs.h.  */
13536$ac_includes_default
13537#include <$ac_header>
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541  (eval $ac_compile) 2>conftest.er1
13542  ac_status=$?
13543  grep -v '^ *+' conftest.er1 >conftest.err
13544  rm -f conftest.er1
13545  cat conftest.err >&5
13546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547  (exit $ac_status); } &&
13548	 { ac_try='test -z "$ac_c_werror_flag"
13549			 || test ! -s conftest.err'
13550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551  (eval $ac_try) 2>&5
13552  ac_status=$?
13553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554  (exit $ac_status); }; } &&
13555	 { ac_try='test -s conftest.$ac_objext'
13556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557  (eval $ac_try) 2>&5
13558  ac_status=$?
13559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560  (exit $ac_status); }; }; then
13561  ac_header_compiler=yes
13562else
13563  echo "$as_me: failed program was:" >&5
13564sed 's/^/| /' conftest.$ac_ext >&5
13565
13566ac_header_compiler=no
13567fi
13568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13570echo "${ECHO_T}$ac_header_compiler" >&6
13571
13572# Is the header present?
13573echo "$as_me:$LINENO: checking $ac_header presence" >&5
13574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13575cat >conftest.$ac_ext <<_ACEOF
13576/* confdefs.h.  */
13577_ACEOF
13578cat confdefs.h >>conftest.$ac_ext
13579cat >>conftest.$ac_ext <<_ACEOF
13580/* end confdefs.h.  */
13581#include <$ac_header>
13582_ACEOF
13583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13584  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13585  ac_status=$?
13586  grep -v '^ *+' conftest.er1 >conftest.err
13587  rm -f conftest.er1
13588  cat conftest.err >&5
13589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590  (exit $ac_status); } >/dev/null; then
13591  if test -s conftest.err; then
13592    ac_cpp_err=$ac_c_preproc_warn_flag
13593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13594  else
13595    ac_cpp_err=
13596  fi
13597else
13598  ac_cpp_err=yes
13599fi
13600if test -z "$ac_cpp_err"; then
13601  ac_header_preproc=yes
13602else
13603  echo "$as_me: failed program was:" >&5
13604sed 's/^/| /' conftest.$ac_ext >&5
13605
13606  ac_header_preproc=no
13607fi
13608rm -f conftest.err conftest.$ac_ext
13609echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13610echo "${ECHO_T}$ac_header_preproc" >&6
13611
13612# So?  What about this header?
13613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13614  yes:no: )
13615    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13617    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13619    ac_header_preproc=yes
13620    ;;
13621  no:yes:* )
13622    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13624    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13625echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13626    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13628    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13629echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13630    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13632    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13634    (
13635      cat <<\_ASBOX
13636## ------------------------------------------ ##
13637## Report this to the AC_PACKAGE_NAME lists.  ##
13638## ------------------------------------------ ##
13639_ASBOX
13640    ) |
13641      sed "s/^/$as_me: WARNING:     /" >&2
13642    ;;
13643esac
13644echo "$as_me:$LINENO: checking for $ac_header" >&5
13645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13646if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647  echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649  eval "$as_ac_Header=\$ac_header_preproc"
13650fi
13651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13653
13654fi
13655if test `eval echo '${'$as_ac_Header'}'` = yes; then
13656  cat >>confdefs.h <<_ACEOF
13657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13658_ACEOF
13659
13660fi
13661
13662done
13663
13664
13665for ac_header in readline/history.h
13666do
13667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13668if eval "test \"\${$as_ac_Header+set}\" = set"; then
13669  echo "$as_me:$LINENO: checking for $ac_header" >&5
13670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13671if eval "test \"\${$as_ac_Header+set}\" = set"; then
13672  echo $ECHO_N "(cached) $ECHO_C" >&6
13673fi
13674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13676else
13677  # Is the header compilable?
13678echo "$as_me:$LINENO: checking $ac_header usability" >&5
13679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13680cat >conftest.$ac_ext <<_ACEOF
13681/* confdefs.h.  */
13682_ACEOF
13683cat confdefs.h >>conftest.$ac_ext
13684cat >>conftest.$ac_ext <<_ACEOF
13685/* end confdefs.h.  */
13686$ac_includes_default
13687#include <$ac_header>
13688_ACEOF
13689rm -f conftest.$ac_objext
13690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13691  (eval $ac_compile) 2>conftest.er1
13692  ac_status=$?
13693  grep -v '^ *+' conftest.er1 >conftest.err
13694  rm -f conftest.er1
13695  cat conftest.err >&5
13696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697  (exit $ac_status); } &&
13698	 { ac_try='test -z "$ac_c_werror_flag"
13699			 || test ! -s conftest.err'
13700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701  (eval $ac_try) 2>&5
13702  ac_status=$?
13703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704  (exit $ac_status); }; } &&
13705	 { ac_try='test -s conftest.$ac_objext'
13706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707  (eval $ac_try) 2>&5
13708  ac_status=$?
13709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710  (exit $ac_status); }; }; then
13711  ac_header_compiler=yes
13712else
13713  echo "$as_me: failed program was:" >&5
13714sed 's/^/| /' conftest.$ac_ext >&5
13715
13716ac_header_compiler=no
13717fi
13718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13720echo "${ECHO_T}$ac_header_compiler" >&6
13721
13722# Is the header present?
13723echo "$as_me:$LINENO: checking $ac_header presence" >&5
13724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13725cat >conftest.$ac_ext <<_ACEOF
13726/* confdefs.h.  */
13727_ACEOF
13728cat confdefs.h >>conftest.$ac_ext
13729cat >>conftest.$ac_ext <<_ACEOF
13730/* end confdefs.h.  */
13731#include <$ac_header>
13732_ACEOF
13733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13734  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13735  ac_status=$?
13736  grep -v '^ *+' conftest.er1 >conftest.err
13737  rm -f conftest.er1
13738  cat conftest.err >&5
13739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740  (exit $ac_status); } >/dev/null; then
13741  if test -s conftest.err; then
13742    ac_cpp_err=$ac_c_preproc_warn_flag
13743    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13744  else
13745    ac_cpp_err=
13746  fi
13747else
13748  ac_cpp_err=yes
13749fi
13750if test -z "$ac_cpp_err"; then
13751  ac_header_preproc=yes
13752else
13753  echo "$as_me: failed program was:" >&5
13754sed 's/^/| /' conftest.$ac_ext >&5
13755
13756  ac_header_preproc=no
13757fi
13758rm -f conftest.err conftest.$ac_ext
13759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13760echo "${ECHO_T}$ac_header_preproc" >&6
13761
13762# So?  What about this header?
13763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13764  yes:no: )
13765    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13769    ac_header_preproc=yes
13770    ;;
13771  no:yes:* )
13772    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13774    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13775echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13776    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13778    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13779echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13780    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13782    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13784    (
13785      cat <<\_ASBOX
13786## ------------------------------------------ ##
13787## Report this to the AC_PACKAGE_NAME lists.  ##
13788## ------------------------------------------ ##
13789_ASBOX
13790    ) |
13791      sed "s/^/$as_me: WARNING:     /" >&2
13792    ;;
13793esac
13794echo "$as_me:$LINENO: checking for $ac_header" >&5
13795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13796if eval "test \"\${$as_ac_Header+set}\" = set"; then
13797  echo $ECHO_N "(cached) $ECHO_C" >&6
13798else
13799  eval "$as_ac_Header=\$ac_header_preproc"
13800fi
13801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13803
13804fi
13805if test `eval echo '${'$as_ac_Header'}'` = yes; then
13806  cat >>confdefs.h <<_ACEOF
13807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13808_ACEOF
13809
13810fi
13811
13812done
13813
13814
13815
13816
13817for ac_header in readline.h readline/readline.h
13818do
13819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13820if eval "test \"\${$as_ac_Header+set}\" = set"; then
13821  echo "$as_me:$LINENO: checking for $ac_header" >&5
13822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13823if eval "test \"\${$as_ac_Header+set}\" = set"; then
13824  echo $ECHO_N "(cached) $ECHO_C" >&6
13825fi
13826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13828else
13829  # Is the header compilable?
13830echo "$as_me:$LINENO: checking $ac_header usability" >&5
13831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13832cat >conftest.$ac_ext <<_ACEOF
13833/* confdefs.h.  */
13834_ACEOF
13835cat confdefs.h >>conftest.$ac_ext
13836cat >>conftest.$ac_ext <<_ACEOF
13837/* end confdefs.h.  */
13838$ac_includes_default
13839#include <$ac_header>
13840_ACEOF
13841rm -f conftest.$ac_objext
13842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843  (eval $ac_compile) 2>conftest.er1
13844  ac_status=$?
13845  grep -v '^ *+' conftest.er1 >conftest.err
13846  rm -f conftest.er1
13847  cat conftest.err >&5
13848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849  (exit $ac_status); } &&
13850	 { ac_try='test -z "$ac_c_werror_flag"
13851			 || test ! -s conftest.err'
13852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853  (eval $ac_try) 2>&5
13854  ac_status=$?
13855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856  (exit $ac_status); }; } &&
13857	 { ac_try='test -s conftest.$ac_objext'
13858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859  (eval $ac_try) 2>&5
13860  ac_status=$?
13861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862  (exit $ac_status); }; }; then
13863  ac_header_compiler=yes
13864else
13865  echo "$as_me: failed program was:" >&5
13866sed 's/^/| /' conftest.$ac_ext >&5
13867
13868ac_header_compiler=no
13869fi
13870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13872echo "${ECHO_T}$ac_header_compiler" >&6
13873
13874# Is the header present?
13875echo "$as_me:$LINENO: checking $ac_header presence" >&5
13876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13877cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h.  */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h.  */
13883#include <$ac_header>
13884_ACEOF
13885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13886  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13887  ac_status=$?
13888  grep -v '^ *+' conftest.er1 >conftest.err
13889  rm -f conftest.er1
13890  cat conftest.err >&5
13891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892  (exit $ac_status); } >/dev/null; then
13893  if test -s conftest.err; then
13894    ac_cpp_err=$ac_c_preproc_warn_flag
13895    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13896  else
13897    ac_cpp_err=
13898  fi
13899else
13900  ac_cpp_err=yes
13901fi
13902if test -z "$ac_cpp_err"; then
13903  ac_header_preproc=yes
13904else
13905  echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
13908  ac_header_preproc=no
13909fi
13910rm -f conftest.err conftest.$ac_ext
13911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13912echo "${ECHO_T}$ac_header_preproc" >&6
13913
13914# So?  What about this header?
13915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13916  yes:no: )
13917    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13919    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13921    ac_header_preproc=yes
13922    ;;
13923  no:yes:* )
13924    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13926    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13927echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13928    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13930    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13931echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13932    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13934    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13936    (
13937      cat <<\_ASBOX
13938## ------------------------------------------ ##
13939## Report this to the AC_PACKAGE_NAME lists.  ##
13940## ------------------------------------------ ##
13941_ASBOX
13942    ) |
13943      sed "s/^/$as_me: WARNING:     /" >&2
13944    ;;
13945esac
13946echo "$as_me:$LINENO: checking for $ac_header" >&5
13947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13948if eval "test \"\${$as_ac_Header+set}\" = set"; then
13949  echo $ECHO_N "(cached) $ECHO_C" >&6
13950else
13951  eval "$as_ac_Header=\$ac_header_preproc"
13952fi
13953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13955
13956fi
13957if test `eval echo '${'$as_ac_Header'}'` = yes; then
13958  cat >>confdefs.h <<_ACEOF
13959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13960_ACEOF
13961
13962      for termlib in ncurses curses termcap terminfo termlib; do
13963       as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
13964echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
13965echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
13966if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13967  echo $ECHO_N "(cached) $ECHO_C" >&6
13968else
13969  ac_check_lib_save_LIBS=$LIBS
13970LIBS="-l${termlib}  $LIBS"
13971cat >conftest.$ac_ext <<_ACEOF
13972/* confdefs.h.  */
13973_ACEOF
13974cat confdefs.h >>conftest.$ac_ext
13975cat >>conftest.$ac_ext <<_ACEOF
13976/* end confdefs.h.  */
13977
13978/* Override any gcc2 internal prototype to avoid an error.  */
13979#ifdef __cplusplus
13980extern "C"
13981#endif
13982/* We use char because int might match the return type of a gcc2
13983   builtin and then its argument prototype would still apply.  */
13984char tgetent ();
13985int
13986main ()
13987{
13988tgetent ();
13989  ;
13990  return 0;
13991}
13992_ACEOF
13993rm -f conftest.$ac_objext conftest$ac_exeext
13994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995  (eval $ac_link) 2>conftest.er1
13996  ac_status=$?
13997  grep -v '^ *+' conftest.er1 >conftest.err
13998  rm -f conftest.er1
13999  cat conftest.err >&5
14000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001  (exit $ac_status); } &&
14002	 { ac_try='test -z "$ac_c_werror_flag"
14003			 || test ! -s conftest.err'
14004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005  (eval $ac_try) 2>&5
14006  ac_status=$?
14007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008  (exit $ac_status); }; } &&
14009	 { ac_try='test -s conftest$ac_exeext'
14010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011  (eval $ac_try) 2>&5
14012  ac_status=$?
14013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014  (exit $ac_status); }; }; then
14015  eval "$as_ac_Lib=yes"
14016else
14017  echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020eval "$as_ac_Lib=no"
14021fi
14022rm -f conftest.err conftest.$ac_objext \
14023      conftest$ac_exeext conftest.$ac_ext
14024LIBS=$ac_check_lib_save_LIBS
14025fi
14026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14027echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14028if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14029  TERMLIBS="-l${termlib}"; break
14030fi
14031
14032      done
14033      echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
14034echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
14035if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
14036  echo $ECHO_N "(cached) $ECHO_C" >&6
14037else
14038  ac_check_lib_save_LIBS=$LIBS
14039LIBS="-lreadline $TERMLIBS $LIBS"
14040cat >conftest.$ac_ext <<_ACEOF
14041/* confdefs.h.  */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h.  */
14046
14047/* Override any gcc2 internal prototype to avoid an error.  */
14048#ifdef __cplusplus
14049extern "C"
14050#endif
14051/* We use char because int might match the return type of a gcc2
14052   builtin and then its argument prototype would still apply.  */
14053char rl_callback_handler_install ();
14054int
14055main ()
14056{
14057rl_callback_handler_install ();
14058  ;
14059  return 0;
14060}
14061_ACEOF
14062rm -f conftest.$ac_objext conftest$ac_exeext
14063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14064  (eval $ac_link) 2>conftest.er1
14065  ac_status=$?
14066  grep -v '^ *+' conftest.er1 >conftest.err
14067  rm -f conftest.er1
14068  cat conftest.err >&5
14069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070  (exit $ac_status); } &&
14071	 { ac_try='test -z "$ac_c_werror_flag"
14072			 || test ! -s conftest.err'
14073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074  (eval $ac_try) 2>&5
14075  ac_status=$?
14076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077  (exit $ac_status); }; } &&
14078	 { ac_try='test -s conftest$ac_exeext'
14079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080  (eval $ac_try) 2>&5
14081  ac_status=$?
14082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083  (exit $ac_status); }; }; then
14084  ac_cv_lib_readline_rl_callback_handler_install=yes
14085else
14086  echo "$as_me: failed program was:" >&5
14087sed 's/^/| /' conftest.$ac_ext >&5
14088
14089ac_cv_lib_readline_rl_callback_handler_install=no
14090fi
14091rm -f conftest.err conftest.$ac_objext \
14092      conftest$ac_exeext conftest.$ac_ext
14093LIBS=$ac_check_lib_save_LIBS
14094fi
14095echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
14096echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
14097if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
14098  TERMLDFLAGS="-L$with_readline/lib"
14099       TERMCPPFLAGS="-I$with_readline/include"
14100       CPPFLAGS="-I$with_readline/include $CPPFLAGS"
14101       TERMLIBS="-lreadline $TERMLIBS"
14102
14103cat >>confdefs.h <<\_ACEOF
14104#define HAVE_LIBREADLINE 1
14105_ACEOF
14106
14107       break
14108else
14109  TERMLIBS= CPPFLAGS=$_cppflags
14110fi
14111
14112fi
14113
14114done
14115
14116
14117    LDFLAGS=$_ldflags
14118    ;;
14119  esac
14120else
14121  echo "$as_me:$LINENO: result: no" >&5
14122echo "${ECHO_T}no" >&6
14123
14124fi;
14125
14126
14127
14128# The readline API changed slightly from readline3 to readline4, so
14129# code will generate warnings on one of them unless we have a few
14130# special cases.
14131echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
14132echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
14133if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
14134  echo $ECHO_N "(cached) $ECHO_C" >&6
14135else
14136  ac_check_lib_save_LIBS=$LIBS
14137LIBS="-lreadline $TERMLIBS $LIBS"
14138cat >conftest.$ac_ext <<_ACEOF
14139/* confdefs.h.  */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h.  */
14144
14145/* Override any gcc2 internal prototype to avoid an error.  */
14146#ifdef __cplusplus
14147extern "C"
14148#endif
14149/* We use char because int might match the return type of a gcc2
14150   builtin and then its argument prototype would still apply.  */
14151char rl_completion_matches ();
14152int
14153main ()
14154{
14155rl_completion_matches ();
14156  ;
14157  return 0;
14158}
14159_ACEOF
14160rm -f conftest.$ac_objext conftest$ac_exeext
14161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162  (eval $ac_link) 2>conftest.er1
14163  ac_status=$?
14164  grep -v '^ *+' conftest.er1 >conftest.err
14165  rm -f conftest.er1
14166  cat conftest.err >&5
14167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168  (exit $ac_status); } &&
14169	 { ac_try='test -z "$ac_c_werror_flag"
14170			 || test ! -s conftest.err'
14171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172  (eval $ac_try) 2>&5
14173  ac_status=$?
14174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175  (exit $ac_status); }; } &&
14176	 { ac_try='test -s conftest$ac_exeext'
14177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178  (eval $ac_try) 2>&5
14179  ac_status=$?
14180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181  (exit $ac_status); }; }; then
14182  ac_cv_lib_readline_rl_completion_matches=yes
14183else
14184  echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187ac_cv_lib_readline_rl_completion_matches=no
14188fi
14189rm -f conftest.err conftest.$ac_objext \
14190      conftest$ac_exeext conftest.$ac_ext
14191LIBS=$ac_check_lib_save_LIBS
14192fi
14193echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
14194echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
14195if test $ac_cv_lib_readline_rl_completion_matches = yes; then
14196
14197cat >>confdefs.h <<\_ACEOF
14198#define HAVE_NEW_LIBREADLINE 1
14199_ACEOF
14200
14201fi
14202
14203
14204# The following test taken from the cvs sources
14205# If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
14206# The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
14207# libsocket.so which has a bad implementation of gethostbyname (it
14208# only looks in /etc/hosts), so we only look for -lsocket if we need
14209# it.
14210
14211for ac_func in connect
14212do
14213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14214echo "$as_me:$LINENO: checking for $ac_func" >&5
14215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14216if eval "test \"\${$as_ac_var+set}\" = set"; then
14217  echo $ECHO_N "(cached) $ECHO_C" >&6
14218else
14219  cat >conftest.$ac_ext <<_ACEOF
14220/* confdefs.h.  */
14221_ACEOF
14222cat confdefs.h >>conftest.$ac_ext
14223cat >>conftest.$ac_ext <<_ACEOF
14224/* end confdefs.h.  */
14225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14227#define $ac_func innocuous_$ac_func
14228
14229/* System header to define __stub macros and hopefully few prototypes,
14230    which can conflict with char $ac_func (); below.
14231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14232    <limits.h> exists even on freestanding compilers.  */
14233
14234#ifdef __STDC__
14235# include <limits.h>
14236#else
14237# include <assert.h>
14238#endif
14239
14240#undef $ac_func
14241
14242/* Override any gcc2 internal prototype to avoid an error.  */
14243#ifdef __cplusplus
14244extern "C"
14245{
14246#endif
14247/* We use char because int might match the return type of a gcc2
14248   builtin and then its argument prototype would still apply.  */
14249char $ac_func ();
14250/* The GNU C library defines this for functions which it implements
14251    to always fail with ENOSYS.  Some functions are actually named
14252    something starting with __ and the normal name is an alias.  */
14253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14254choke me
14255#else
14256char (*f) () = $ac_func;
14257#endif
14258#ifdef __cplusplus
14259}
14260#endif
14261
14262int
14263main ()
14264{
14265return f != $ac_func;
14266  ;
14267  return 0;
14268}
14269_ACEOF
14270rm -f conftest.$ac_objext conftest$ac_exeext
14271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272  (eval $ac_link) 2>conftest.er1
14273  ac_status=$?
14274  grep -v '^ *+' conftest.er1 >conftest.err
14275  rm -f conftest.er1
14276  cat conftest.err >&5
14277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278  (exit $ac_status); } &&
14279	 { ac_try='test -z "$ac_c_werror_flag"
14280			 || test ! -s conftest.err'
14281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282  (eval $ac_try) 2>&5
14283  ac_status=$?
14284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285  (exit $ac_status); }; } &&
14286	 { ac_try='test -s conftest$ac_exeext'
14287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288  (eval $ac_try) 2>&5
14289  ac_status=$?
14290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291  (exit $ac_status); }; }; then
14292  eval "$as_ac_var=yes"
14293else
14294  echo "$as_me: failed program was:" >&5
14295sed 's/^/| /' conftest.$ac_ext >&5
14296
14297eval "$as_ac_var=no"
14298fi
14299rm -f conftest.err conftest.$ac_objext \
14300      conftest$ac_exeext conftest.$ac_ext
14301fi
14302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14304if test `eval echo '${'$as_ac_var'}'` = yes; then
14305  cat >>confdefs.h <<_ACEOF
14306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14307_ACEOF
14308
14309fi
14310done
14311
14312if test x"$ac_cv_func_connect" = x"no"; then
14313    case "$LIBS" in
14314    *-lnsl*) ;;
14315    *)
14316echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
14317echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
14318if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
14319  echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321  ac_check_lib_save_LIBS=$LIBS
14322LIBS="-lnsl_s  $LIBS"
14323cat >conftest.$ac_ext <<_ACEOF
14324/* confdefs.h.  */
14325_ACEOF
14326cat confdefs.h >>conftest.$ac_ext
14327cat >>conftest.$ac_ext <<_ACEOF
14328/* end confdefs.h.  */
14329
14330/* Override any gcc2 internal prototype to avoid an error.  */
14331#ifdef __cplusplus
14332extern "C"
14333#endif
14334/* We use char because int might match the return type of a gcc2
14335   builtin and then its argument prototype would still apply.  */
14336char printf ();
14337int
14338main ()
14339{
14340printf ();
14341  ;
14342  return 0;
14343}
14344_ACEOF
14345rm -f conftest.$ac_objext conftest$ac_exeext
14346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14347  (eval $ac_link) 2>conftest.er1
14348  ac_status=$?
14349  grep -v '^ *+' conftest.er1 >conftest.err
14350  rm -f conftest.er1
14351  cat conftest.err >&5
14352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353  (exit $ac_status); } &&
14354	 { ac_try='test -z "$ac_c_werror_flag"
14355			 || test ! -s conftest.err'
14356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357  (eval $ac_try) 2>&5
14358  ac_status=$?
14359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360  (exit $ac_status); }; } &&
14361	 { ac_try='test -s conftest$ac_exeext'
14362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363  (eval $ac_try) 2>&5
14364  ac_status=$?
14365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366  (exit $ac_status); }; }; then
14367  ac_cv_lib_nsl_s_printf=yes
14368else
14369  echo "$as_me: failed program was:" >&5
14370sed 's/^/| /' conftest.$ac_ext >&5
14371
14372ac_cv_lib_nsl_s_printf=no
14373fi
14374rm -f conftest.err conftest.$ac_objext \
14375      conftest$ac_exeext conftest.$ac_ext
14376LIBS=$ac_check_lib_save_LIBS
14377fi
14378echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
14379echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
14380if test $ac_cv_lib_nsl_s_printf = yes; then
14381  cat >>confdefs.h <<_ACEOF
14382#define HAVE_LIBNSL_S 1
14383_ACEOF
14384
14385  LIBS="-lnsl_s $LIBS"
14386
14387fi
14388 ;;
14389    esac
14390    case "$LIBS" in
14391    *-lnsl*) ;;
14392    *)
14393echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
14394echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
14395if test "${ac_cv_lib_nsl_printf+set}" = set; then
14396  echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398  ac_check_lib_save_LIBS=$LIBS
14399LIBS="-lnsl  $LIBS"
14400cat >conftest.$ac_ext <<_ACEOF
14401/* confdefs.h.  */
14402_ACEOF
14403cat confdefs.h >>conftest.$ac_ext
14404cat >>conftest.$ac_ext <<_ACEOF
14405/* end confdefs.h.  */
14406
14407/* Override any gcc2 internal prototype to avoid an error.  */
14408#ifdef __cplusplus
14409extern "C"
14410#endif
14411/* We use char because int might match the return type of a gcc2
14412   builtin and then its argument prototype would still apply.  */
14413char printf ();
14414int
14415main ()
14416{
14417printf ();
14418  ;
14419  return 0;
14420}
14421_ACEOF
14422rm -f conftest.$ac_objext conftest$ac_exeext
14423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424  (eval $ac_link) 2>conftest.er1
14425  ac_status=$?
14426  grep -v '^ *+' conftest.er1 >conftest.err
14427  rm -f conftest.er1
14428  cat conftest.err >&5
14429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430  (exit $ac_status); } &&
14431	 { ac_try='test -z "$ac_c_werror_flag"
14432			 || test ! -s conftest.err'
14433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434  (eval $ac_try) 2>&5
14435  ac_status=$?
14436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437  (exit $ac_status); }; } &&
14438	 { ac_try='test -s conftest$ac_exeext'
14439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440  (eval $ac_try) 2>&5
14441  ac_status=$?
14442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443  (exit $ac_status); }; }; then
14444  ac_cv_lib_nsl_printf=yes
14445else
14446  echo "$as_me: failed program was:" >&5
14447sed 's/^/| /' conftest.$ac_ext >&5
14448
14449ac_cv_lib_nsl_printf=no
14450fi
14451rm -f conftest.err conftest.$ac_objext \
14452      conftest$ac_exeext conftest.$ac_ext
14453LIBS=$ac_check_lib_save_LIBS
14454fi
14455echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
14456echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
14457if test $ac_cv_lib_nsl_printf = yes; then
14458  cat >>confdefs.h <<_ACEOF
14459#define HAVE_LIBNSL 1
14460_ACEOF
14461
14462  LIBS="-lnsl $LIBS"
14463
14464fi
14465 ;;
14466    esac
14467    case "$LIBS" in
14468    *-lsocket*) ;;
14469    *)
14470echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14471echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
14472if test "${ac_cv_lib_socket_connect+set}" = set; then
14473  echo $ECHO_N "(cached) $ECHO_C" >&6
14474else
14475  ac_check_lib_save_LIBS=$LIBS
14476LIBS="-lsocket  $LIBS"
14477cat >conftest.$ac_ext <<_ACEOF
14478/* confdefs.h.  */
14479_ACEOF
14480cat confdefs.h >>conftest.$ac_ext
14481cat >>conftest.$ac_ext <<_ACEOF
14482/* end confdefs.h.  */
14483
14484/* Override any gcc2 internal prototype to avoid an error.  */
14485#ifdef __cplusplus
14486extern "C"
14487#endif
14488/* We use char because int might match the return type of a gcc2
14489   builtin and then its argument prototype would still apply.  */
14490char connect ();
14491int
14492main ()
14493{
14494connect ();
14495  ;
14496  return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext conftest$ac_exeext
14500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501  (eval $ac_link) 2>conftest.er1
14502  ac_status=$?
14503  grep -v '^ *+' conftest.er1 >conftest.err
14504  rm -f conftest.er1
14505  cat conftest.err >&5
14506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507  (exit $ac_status); } &&
14508	 { ac_try='test -z "$ac_c_werror_flag"
14509			 || test ! -s conftest.err'
14510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511  (eval $ac_try) 2>&5
14512  ac_status=$?
14513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514  (exit $ac_status); }; } &&
14515	 { ac_try='test -s conftest$ac_exeext'
14516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517  (eval $ac_try) 2>&5
14518  ac_status=$?
14519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520  (exit $ac_status); }; }; then
14521  ac_cv_lib_socket_connect=yes
14522else
14523  echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
14525
14526ac_cv_lib_socket_connect=no
14527fi
14528rm -f conftest.err conftest.$ac_objext \
14529      conftest$ac_exeext conftest.$ac_ext
14530LIBS=$ac_check_lib_save_LIBS
14531fi
14532echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14533echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
14534if test $ac_cv_lib_socket_connect = yes; then
14535  cat >>confdefs.h <<_ACEOF
14536#define HAVE_LIBSOCKET 1
14537_ACEOF
14538
14539  LIBS="-lsocket $LIBS"
14540
14541fi
14542 ;;
14543    esac
14544    case "$LIBS" in
14545    *-linet*) ;;
14546    *)
14547echo "$as_me:$LINENO: checking for connect in -linet" >&5
14548echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
14549if test "${ac_cv_lib_inet_connect+set}" = set; then
14550  echo $ECHO_N "(cached) $ECHO_C" >&6
14551else
14552  ac_check_lib_save_LIBS=$LIBS
14553LIBS="-linet  $LIBS"
14554cat >conftest.$ac_ext <<_ACEOF
14555/* confdefs.h.  */
14556_ACEOF
14557cat confdefs.h >>conftest.$ac_ext
14558cat >>conftest.$ac_ext <<_ACEOF
14559/* end confdefs.h.  */
14560
14561/* Override any gcc2 internal prototype to avoid an error.  */
14562#ifdef __cplusplus
14563extern "C"
14564#endif
14565/* We use char because int might match the return type of a gcc2
14566   builtin and then its argument prototype would still apply.  */
14567char connect ();
14568int
14569main ()
14570{
14571connect ();
14572  ;
14573  return 0;
14574}
14575_ACEOF
14576rm -f conftest.$ac_objext conftest$ac_exeext
14577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578  (eval $ac_link) 2>conftest.er1
14579  ac_status=$?
14580  grep -v '^ *+' conftest.er1 >conftest.err
14581  rm -f conftest.er1
14582  cat conftest.err >&5
14583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584  (exit $ac_status); } &&
14585	 { ac_try='test -z "$ac_c_werror_flag"
14586			 || test ! -s conftest.err'
14587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588  (eval $ac_try) 2>&5
14589  ac_status=$?
14590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591  (exit $ac_status); }; } &&
14592	 { ac_try='test -s conftest$ac_exeext'
14593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594  (eval $ac_try) 2>&5
14595  ac_status=$?
14596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597  (exit $ac_status); }; }; then
14598  ac_cv_lib_inet_connect=yes
14599else
14600  echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
14603ac_cv_lib_inet_connect=no
14604fi
14605rm -f conftest.err conftest.$ac_objext \
14606      conftest$ac_exeext conftest.$ac_ext
14607LIBS=$ac_check_lib_save_LIBS
14608fi
14609echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
14610echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
14611if test $ac_cv_lib_inet_connect = yes; then
14612  cat >>confdefs.h <<_ACEOF
14613#define HAVE_LIBINET 1
14614_ACEOF
14615
14616  LIBS="-linet $LIBS"
14617
14618fi
14619 ;;
14620    esac
14621            if test x"$ac_cv_lib_socket_connect" = x"yes" ||
14622       test x"$ac_cv_lib_inet_connect" = x"yes"; then
14623        # ac_cv_func_connect=yes
14624        # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run
14625
14626cat >>confdefs.h <<\_ACEOF
14627#define HAVE_CONNECT 1
14628_ACEOF
14629
14630    fi
14631fi
14632
14633###############################################
14634# test for where we get yp_get_default_domain() from
14635echo "$as_me:$LINENO: checking for library containing yp_get_default_domain" >&5
14636echo $ECHO_N "checking for library containing yp_get_default_domain... $ECHO_C" >&6
14637if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
14638  echo $ECHO_N "(cached) $ECHO_C" >&6
14639else
14640  ac_func_search_save_LIBS=$LIBS
14641ac_cv_search_yp_get_default_domain=no
14642cat >conftest.$ac_ext <<_ACEOF
14643/* confdefs.h.  */
14644_ACEOF
14645cat confdefs.h >>conftest.$ac_ext
14646cat >>conftest.$ac_ext <<_ACEOF
14647/* end confdefs.h.  */
14648
14649/* Override any gcc2 internal prototype to avoid an error.  */
14650#ifdef __cplusplus
14651extern "C"
14652#endif
14653/* We use char because int might match the return type of a gcc2
14654   builtin and then its argument prototype would still apply.  */
14655char yp_get_default_domain ();
14656int
14657main ()
14658{
14659yp_get_default_domain ();
14660  ;
14661  return 0;
14662}
14663_ACEOF
14664rm -f conftest.$ac_objext conftest$ac_exeext
14665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14666  (eval $ac_link) 2>conftest.er1
14667  ac_status=$?
14668  grep -v '^ *+' conftest.er1 >conftest.err
14669  rm -f conftest.er1
14670  cat conftest.err >&5
14671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672  (exit $ac_status); } &&
14673	 { ac_try='test -z "$ac_c_werror_flag"
14674			 || test ! -s conftest.err'
14675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676  (eval $ac_try) 2>&5
14677  ac_status=$?
14678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679  (exit $ac_status); }; } &&
14680	 { ac_try='test -s conftest$ac_exeext'
14681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682  (eval $ac_try) 2>&5
14683  ac_status=$?
14684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685  (exit $ac_status); }; }; then
14686  ac_cv_search_yp_get_default_domain="none required"
14687else
14688  echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
14690
14691fi
14692rm -f conftest.err conftest.$ac_objext \
14693      conftest$ac_exeext conftest.$ac_ext
14694if test "$ac_cv_search_yp_get_default_domain" = no; then
14695  for ac_lib in nsl; do
14696    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14697    cat >conftest.$ac_ext <<_ACEOF
14698/* confdefs.h.  */
14699_ACEOF
14700cat confdefs.h >>conftest.$ac_ext
14701cat >>conftest.$ac_ext <<_ACEOF
14702/* end confdefs.h.  */
14703
14704/* Override any gcc2 internal prototype to avoid an error.  */
14705#ifdef __cplusplus
14706extern "C"
14707#endif
14708/* We use char because int might match the return type of a gcc2
14709   builtin and then its argument prototype would still apply.  */
14710char yp_get_default_domain ();
14711int
14712main ()
14713{
14714yp_get_default_domain ();
14715  ;
14716  return 0;
14717}
14718_ACEOF
14719rm -f conftest.$ac_objext conftest$ac_exeext
14720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721  (eval $ac_link) 2>conftest.er1
14722  ac_status=$?
14723  grep -v '^ *+' conftest.er1 >conftest.err
14724  rm -f conftest.er1
14725  cat conftest.err >&5
14726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727  (exit $ac_status); } &&
14728	 { ac_try='test -z "$ac_c_werror_flag"
14729			 || test ! -s conftest.err'
14730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731  (eval $ac_try) 2>&5
14732  ac_status=$?
14733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734  (exit $ac_status); }; } &&
14735	 { ac_try='test -s conftest$ac_exeext'
14736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737  (eval $ac_try) 2>&5
14738  ac_status=$?
14739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740  (exit $ac_status); }; }; then
14741  ac_cv_search_yp_get_default_domain="-l$ac_lib"
14742break
14743else
14744  echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
14747fi
14748rm -f conftest.err conftest.$ac_objext \
14749      conftest$ac_exeext conftest.$ac_ext
14750  done
14751fi
14752LIBS=$ac_func_search_save_LIBS
14753fi
14754echo "$as_me:$LINENO: result: $ac_cv_search_yp_get_default_domain" >&5
14755echo "${ECHO_T}$ac_cv_search_yp_get_default_domain" >&6
14756if test "$ac_cv_search_yp_get_default_domain" != no; then
14757  test "$ac_cv_search_yp_get_default_domain" = "none required" || LIBS="$ac_cv_search_yp_get_default_domain $LIBS"
14758
14759fi
14760
14761
14762for ac_func in yp_get_default_domain
14763do
14764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14765echo "$as_me:$LINENO: checking for $ac_func" >&5
14766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14767if eval "test \"\${$as_ac_var+set}\" = set"; then
14768  echo $ECHO_N "(cached) $ECHO_C" >&6
14769else
14770  cat >conftest.$ac_ext <<_ACEOF
14771/* confdefs.h.  */
14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h.  */
14776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14777   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14778#define $ac_func innocuous_$ac_func
14779
14780/* System header to define __stub macros and hopefully few prototypes,
14781    which can conflict with char $ac_func (); below.
14782    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14783    <limits.h> exists even on freestanding compilers.  */
14784
14785#ifdef __STDC__
14786# include <limits.h>
14787#else
14788# include <assert.h>
14789#endif
14790
14791#undef $ac_func
14792
14793/* Override any gcc2 internal prototype to avoid an error.  */
14794#ifdef __cplusplus
14795extern "C"
14796{
14797#endif
14798/* We use char because int might match the return type of a gcc2
14799   builtin and then its argument prototype would still apply.  */
14800char $ac_func ();
14801/* The GNU C library defines this for functions which it implements
14802    to always fail with ENOSYS.  Some functions are actually named
14803    something starting with __ and the normal name is an alias.  */
14804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14805choke me
14806#else
14807char (*f) () = $ac_func;
14808#endif
14809#ifdef __cplusplus
14810}
14811#endif
14812
14813int
14814main ()
14815{
14816return f != $ac_func;
14817  ;
14818  return 0;
14819}
14820_ACEOF
14821rm -f conftest.$ac_objext conftest$ac_exeext
14822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14823  (eval $ac_link) 2>conftest.er1
14824  ac_status=$?
14825  grep -v '^ *+' conftest.er1 >conftest.err
14826  rm -f conftest.er1
14827  cat conftest.err >&5
14828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829  (exit $ac_status); } &&
14830	 { ac_try='test -z "$ac_c_werror_flag"
14831			 || test ! -s conftest.err'
14832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833  (eval $ac_try) 2>&5
14834  ac_status=$?
14835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836  (exit $ac_status); }; } &&
14837	 { ac_try='test -s conftest$ac_exeext'
14838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839  (eval $ac_try) 2>&5
14840  ac_status=$?
14841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842  (exit $ac_status); }; }; then
14843  eval "$as_ac_var=yes"
14844else
14845  echo "$as_me: failed program was:" >&5
14846sed 's/^/| /' conftest.$ac_ext >&5
14847
14848eval "$as_ac_var=no"
14849fi
14850rm -f conftest.err conftest.$ac_objext \
14851      conftest$ac_exeext conftest.$ac_ext
14852fi
14853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14855if test `eval echo '${'$as_ac_var'}'` = yes; then
14856  cat >>confdefs.h <<_ACEOF
14857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14858_ACEOF
14859
14860fi
14861done
14862
14863
14864# Check if we have execl, if not we need to compile smbrun.
14865
14866for ac_func in execl
14867do
14868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14869echo "$as_me:$LINENO: checking for $ac_func" >&5
14870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14871if eval "test \"\${$as_ac_var+set}\" = set"; then
14872  echo $ECHO_N "(cached) $ECHO_C" >&6
14873else
14874  cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h.  */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h.  */
14880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14881   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14882#define $ac_func innocuous_$ac_func
14883
14884/* System header to define __stub macros and hopefully few prototypes,
14885    which can conflict with char $ac_func (); below.
14886    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14887    <limits.h> exists even on freestanding compilers.  */
14888
14889#ifdef __STDC__
14890# include <limits.h>
14891#else
14892# include <assert.h>
14893#endif
14894
14895#undef $ac_func
14896
14897/* Override any gcc2 internal prototype to avoid an error.  */
14898#ifdef __cplusplus
14899extern "C"
14900{
14901#endif
14902/* We use char because int might match the return type of a gcc2
14903   builtin and then its argument prototype would still apply.  */
14904char $ac_func ();
14905/* The GNU C library defines this for functions which it implements
14906    to always fail with ENOSYS.  Some functions are actually named
14907    something starting with __ and the normal name is an alias.  */
14908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14909choke me
14910#else
14911char (*f) () = $ac_func;
14912#endif
14913#ifdef __cplusplus
14914}
14915#endif
14916
14917int
14918main ()
14919{
14920return f != $ac_func;
14921  ;
14922  return 0;
14923}
14924_ACEOF
14925rm -f conftest.$ac_objext conftest$ac_exeext
14926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927  (eval $ac_link) 2>conftest.er1
14928  ac_status=$?
14929  grep -v '^ *+' conftest.er1 >conftest.err
14930  rm -f conftest.er1
14931  cat conftest.err >&5
14932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933  (exit $ac_status); } &&
14934	 { ac_try='test -z "$ac_c_werror_flag"
14935			 || test ! -s conftest.err'
14936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937  (eval $ac_try) 2>&5
14938  ac_status=$?
14939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940  (exit $ac_status); }; } &&
14941	 { ac_try='test -s conftest$ac_exeext'
14942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943  (eval $ac_try) 2>&5
14944  ac_status=$?
14945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946  (exit $ac_status); }; }; then
14947  eval "$as_ac_var=yes"
14948else
14949  echo "$as_me: failed program was:" >&5
14950sed 's/^/| /' conftest.$ac_ext >&5
14951
14952eval "$as_ac_var=no"
14953fi
14954rm -f conftest.err conftest.$ac_objext \
14955      conftest$ac_exeext conftest.$ac_ext
14956fi
14957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14958echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14959if test `eval echo '${'$as_ac_var'}'` = yes; then
14960  cat >>confdefs.h <<_ACEOF
14961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14962_ACEOF
14963
14964fi
14965done
14966
14967if test x"$ac_cv_func_execl" = x"no"; then
14968    EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
14969fi
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
14991do
14992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14993echo "$as_me:$LINENO: checking for $ac_func" >&5
14994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14995if eval "test \"\${$as_ac_var+set}\" = set"; then
14996  echo $ECHO_N "(cached) $ECHO_C" >&6
14997else
14998  cat >conftest.$ac_ext <<_ACEOF
14999/* confdefs.h.  */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h.  */
15004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15005   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15006#define $ac_func innocuous_$ac_func
15007
15008/* System header to define __stub macros and hopefully few prototypes,
15009    which can conflict with char $ac_func (); below.
15010    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15011    <limits.h> exists even on freestanding compilers.  */
15012
15013#ifdef __STDC__
15014# include <limits.h>
15015#else
15016# include <assert.h>
15017#endif
15018
15019#undef $ac_func
15020
15021/* Override any gcc2 internal prototype to avoid an error.  */
15022#ifdef __cplusplus
15023extern "C"
15024{
15025#endif
15026/* We use char because int might match the return type of a gcc2
15027   builtin and then its argument prototype would still apply.  */
15028char $ac_func ();
15029/* The GNU C library defines this for functions which it implements
15030    to always fail with ENOSYS.  Some functions are actually named
15031    something starting with __ and the normal name is an alias.  */
15032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15033choke me
15034#else
15035char (*f) () = $ac_func;
15036#endif
15037#ifdef __cplusplus
15038}
15039#endif
15040
15041int
15042main ()
15043{
15044return f != $ac_func;
15045  ;
15046  return 0;
15047}
15048_ACEOF
15049rm -f conftest.$ac_objext conftest$ac_exeext
15050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15051  (eval $ac_link) 2>conftest.er1
15052  ac_status=$?
15053  grep -v '^ *+' conftest.er1 >conftest.err
15054  rm -f conftest.er1
15055  cat conftest.err >&5
15056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057  (exit $ac_status); } &&
15058	 { ac_try='test -z "$ac_c_werror_flag"
15059			 || test ! -s conftest.err'
15060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061  (eval $ac_try) 2>&5
15062  ac_status=$?
15063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064  (exit $ac_status); }; } &&
15065	 { ac_try='test -s conftest$ac_exeext'
15066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067  (eval $ac_try) 2>&5
15068  ac_status=$?
15069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070  (exit $ac_status); }; }; then
15071  eval "$as_ac_var=yes"
15072else
15073  echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076eval "$as_ac_var=no"
15077fi
15078rm -f conftest.err conftest.$ac_objext \
15079      conftest$ac_exeext conftest.$ac_ext
15080fi
15081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15082echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15083if test `eval echo '${'$as_ac_var'}'` = yes; then
15084  cat >>confdefs.h <<_ACEOF
15085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15086_ACEOF
15087
15088fi
15089done
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101for ac_func in fstat strchr utime utimes getrlimit fsync memset strlcpy strlcat setpgid
15102do
15103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15104echo "$as_me:$LINENO: checking for $ac_func" >&5
15105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15106if eval "test \"\${$as_ac_var+set}\" = set"; then
15107  echo $ECHO_N "(cached) $ECHO_C" >&6
15108else
15109  cat >conftest.$ac_ext <<_ACEOF
15110/* confdefs.h.  */
15111_ACEOF
15112cat confdefs.h >>conftest.$ac_ext
15113cat >>conftest.$ac_ext <<_ACEOF
15114/* end confdefs.h.  */
15115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15116   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15117#define $ac_func innocuous_$ac_func
15118
15119/* System header to define __stub macros and hopefully few prototypes,
15120    which can conflict with char $ac_func (); below.
15121    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15122    <limits.h> exists even on freestanding compilers.  */
15123
15124#ifdef __STDC__
15125# include <limits.h>
15126#else
15127# include <assert.h>
15128#endif
15129
15130#undef $ac_func
15131
15132/* Override any gcc2 internal prototype to avoid an error.  */
15133#ifdef __cplusplus
15134extern "C"
15135{
15136#endif
15137/* We use char because int might match the return type of a gcc2
15138   builtin and then its argument prototype would still apply.  */
15139char $ac_func ();
15140/* The GNU C library defines this for functions which it implements
15141    to always fail with ENOSYS.  Some functions are actually named
15142    something starting with __ and the normal name is an alias.  */
15143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15144choke me
15145#else
15146char (*f) () = $ac_func;
15147#endif
15148#ifdef __cplusplus
15149}
15150#endif
15151
15152int
15153main ()
15154{
15155return f != $ac_func;
15156  ;
15157  return 0;
15158}
15159_ACEOF
15160rm -f conftest.$ac_objext conftest$ac_exeext
15161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15162  (eval $ac_link) 2>conftest.er1
15163  ac_status=$?
15164  grep -v '^ *+' conftest.er1 >conftest.err
15165  rm -f conftest.er1
15166  cat conftest.err >&5
15167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168  (exit $ac_status); } &&
15169	 { ac_try='test -z "$ac_c_werror_flag"
15170			 || test ! -s conftest.err'
15171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172  (eval $ac_try) 2>&5
15173  ac_status=$?
15174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175  (exit $ac_status); }; } &&
15176	 { ac_try='test -s conftest$ac_exeext'
15177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178  (eval $ac_try) 2>&5
15179  ac_status=$?
15180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181  (exit $ac_status); }; }; then
15182  eval "$as_ac_var=yes"
15183else
15184  echo "$as_me: failed program was:" >&5
15185sed 's/^/| /' conftest.$ac_ext >&5
15186
15187eval "$as_ac_var=no"
15188fi
15189rm -f conftest.err conftest.$ac_objext \
15190      conftest$ac_exeext conftest.$ac_ext
15191fi
15192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15194if test `eval echo '${'$as_ac_var'}'` = yes; then
15195  cat >>confdefs.h <<_ACEOF
15196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15197_ACEOF
15198
15199fi
15200done
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
15214do
15215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15216echo "$as_me:$LINENO: checking for $ac_func" >&5
15217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15218if eval "test \"\${$as_ac_var+set}\" = set"; then
15219  echo $ECHO_N "(cached) $ECHO_C" >&6
15220else
15221  cat >conftest.$ac_ext <<_ACEOF
15222/* confdefs.h.  */
15223_ACEOF
15224cat confdefs.h >>conftest.$ac_ext
15225cat >>conftest.$ac_ext <<_ACEOF
15226/* end confdefs.h.  */
15227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15229#define $ac_func innocuous_$ac_func
15230
15231/* System header to define __stub macros and hopefully few prototypes,
15232    which can conflict with char $ac_func (); below.
15233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15234    <limits.h> exists even on freestanding compilers.  */
15235
15236#ifdef __STDC__
15237# include <limits.h>
15238#else
15239# include <assert.h>
15240#endif
15241
15242#undef $ac_func
15243
15244/* Override any gcc2 internal prototype to avoid an error.  */
15245#ifdef __cplusplus
15246extern "C"
15247{
15248#endif
15249/* We use char because int might match the return type of a gcc2
15250   builtin and then its argument prototype would still apply.  */
15251char $ac_func ();
15252/* The GNU C library defines this for functions which it implements
15253    to always fail with ENOSYS.  Some functions are actually named
15254    something starting with __ and the normal name is an alias.  */
15255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15256choke me
15257#else
15258char (*f) () = $ac_func;
15259#endif
15260#ifdef __cplusplus
15261}
15262#endif
15263
15264int
15265main ()
15266{
15267return f != $ac_func;
15268  ;
15269  return 0;
15270}
15271_ACEOF
15272rm -f conftest.$ac_objext conftest$ac_exeext
15273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274  (eval $ac_link) 2>conftest.er1
15275  ac_status=$?
15276  grep -v '^ *+' conftest.er1 >conftest.err
15277  rm -f conftest.er1
15278  cat conftest.err >&5
15279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280  (exit $ac_status); } &&
15281	 { ac_try='test -z "$ac_c_werror_flag"
15282			 || test ! -s conftest.err'
15283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284  (eval $ac_try) 2>&5
15285  ac_status=$?
15286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287  (exit $ac_status); }; } &&
15288	 { ac_try='test -s conftest$ac_exeext'
15289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290  (eval $ac_try) 2>&5
15291  ac_status=$?
15292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293  (exit $ac_status); }; }; then
15294  eval "$as_ac_var=yes"
15295else
15296  echo "$as_me: failed program was:" >&5
15297sed 's/^/| /' conftest.$ac_ext >&5
15298
15299eval "$as_ac_var=no"
15300fi
15301rm -f conftest.err conftest.$ac_objext \
15302      conftest$ac_exeext conftest.$ac_ext
15303fi
15304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15306if test `eval echo '${'$as_ac_var'}'` = yes; then
15307  cat >>confdefs.h <<_ACEOF
15308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15309_ACEOF
15310
15311fi
15312done
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
15324do
15325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326echo "$as_me:$LINENO: checking for $ac_func" >&5
15327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15328if eval "test \"\${$as_ac_var+set}\" = set"; then
15329  echo $ECHO_N "(cached) $ECHO_C" >&6
15330else
15331  cat >conftest.$ac_ext <<_ACEOF
15332/* confdefs.h.  */
15333_ACEOF
15334cat confdefs.h >>conftest.$ac_ext
15335cat >>conftest.$ac_ext <<_ACEOF
15336/* end confdefs.h.  */
15337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15338   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15339#define $ac_func innocuous_$ac_func
15340
15341/* System header to define __stub macros and hopefully few prototypes,
15342    which can conflict with char $ac_func (); below.
15343    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344    <limits.h> exists even on freestanding compilers.  */
15345
15346#ifdef __STDC__
15347# include <limits.h>
15348#else
15349# include <assert.h>
15350#endif
15351
15352#undef $ac_func
15353
15354/* Override any gcc2 internal prototype to avoid an error.  */
15355#ifdef __cplusplus
15356extern "C"
15357{
15358#endif
15359/* We use char because int might match the return type of a gcc2
15360   builtin and then its argument prototype would still apply.  */
15361char $ac_func ();
15362/* The GNU C library defines this for functions which it implements
15363    to always fail with ENOSYS.  Some functions are actually named
15364    something starting with __ and the normal name is an alias.  */
15365#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15366choke me
15367#else
15368char (*f) () = $ac_func;
15369#endif
15370#ifdef __cplusplus
15371}
15372#endif
15373
15374int
15375main ()
15376{
15377return f != $ac_func;
15378  ;
15379  return 0;
15380}
15381_ACEOF
15382rm -f conftest.$ac_objext conftest$ac_exeext
15383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384  (eval $ac_link) 2>conftest.er1
15385  ac_status=$?
15386  grep -v '^ *+' conftest.er1 >conftest.err
15387  rm -f conftest.er1
15388  cat conftest.err >&5
15389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390  (exit $ac_status); } &&
15391	 { ac_try='test -z "$ac_c_werror_flag"
15392			 || test ! -s conftest.err'
15393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394  (eval $ac_try) 2>&5
15395  ac_status=$?
15396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397  (exit $ac_status); }; } &&
15398	 { ac_try='test -s conftest$ac_exeext'
15399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400  (eval $ac_try) 2>&5
15401  ac_status=$?
15402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403  (exit $ac_status); }; }; then
15404  eval "$as_ac_var=yes"
15405else
15406  echo "$as_me: failed program was:" >&5
15407sed 's/^/| /' conftest.$ac_ext >&5
15408
15409eval "$as_ac_var=no"
15410fi
15411rm -f conftest.err conftest.$ac_objext \
15412      conftest$ac_exeext conftest.$ac_ext
15413fi
15414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15415echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15416if test `eval echo '${'$as_ac_var'}'` = yes; then
15417  cat >>confdefs.h <<_ACEOF
15418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15419_ACEOF
15420
15421fi
15422done
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
15433do
15434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15435echo "$as_me:$LINENO: checking for $ac_func" >&5
15436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15437if eval "test \"\${$as_ac_var+set}\" = set"; then
15438  echo $ECHO_N "(cached) $ECHO_C" >&6
15439else
15440  cat >conftest.$ac_ext <<_ACEOF
15441/* confdefs.h.  */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h.  */
15446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15447   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15448#define $ac_func innocuous_$ac_func
15449
15450/* System header to define __stub macros and hopefully few prototypes,
15451    which can conflict with char $ac_func (); below.
15452    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15453    <limits.h> exists even on freestanding compilers.  */
15454
15455#ifdef __STDC__
15456# include <limits.h>
15457#else
15458# include <assert.h>
15459#endif
15460
15461#undef $ac_func
15462
15463/* Override any gcc2 internal prototype to avoid an error.  */
15464#ifdef __cplusplus
15465extern "C"
15466{
15467#endif
15468/* We use char because int might match the return type of a gcc2
15469   builtin and then its argument prototype would still apply.  */
15470char $ac_func ();
15471/* The GNU C library defines this for functions which it implements
15472    to always fail with ENOSYS.  Some functions are actually named
15473    something starting with __ and the normal name is an alias.  */
15474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15475choke me
15476#else
15477char (*f) () = $ac_func;
15478#endif
15479#ifdef __cplusplus
15480}
15481#endif
15482
15483int
15484main ()
15485{
15486return f != $ac_func;
15487  ;
15488  return 0;
15489}
15490_ACEOF
15491rm -f conftest.$ac_objext conftest$ac_exeext
15492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493  (eval $ac_link) 2>conftest.er1
15494  ac_status=$?
15495  grep -v '^ *+' conftest.er1 >conftest.err
15496  rm -f conftest.er1
15497  cat conftest.err >&5
15498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499  (exit $ac_status); } &&
15500	 { ac_try='test -z "$ac_c_werror_flag"
15501			 || test ! -s conftest.err'
15502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503  (eval $ac_try) 2>&5
15504  ac_status=$?
15505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506  (exit $ac_status); }; } &&
15507	 { ac_try='test -s conftest$ac_exeext'
15508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509  (eval $ac_try) 2>&5
15510  ac_status=$?
15511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512  (exit $ac_status); }; }; then
15513  eval "$as_ac_var=yes"
15514else
15515  echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518eval "$as_ac_var=no"
15519fi
15520rm -f conftest.err conftest.$ac_objext \
15521      conftest$ac_exeext conftest.$ac_ext
15522fi
15523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15525if test `eval echo '${'$as_ac_var'}'` = yes; then
15526  cat >>confdefs.h <<_ACEOF
15527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15528_ACEOF
15529
15530fi
15531done
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
15544do
15545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15546echo "$as_me:$LINENO: checking for $ac_func" >&5
15547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15548if eval "test \"\${$as_ac_var+set}\" = set"; then
15549  echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551  cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h.  */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h.  */
15557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15558   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15559#define $ac_func innocuous_$ac_func
15560
15561/* System header to define __stub macros and hopefully few prototypes,
15562    which can conflict with char $ac_func (); below.
15563    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15564    <limits.h> exists even on freestanding compilers.  */
15565
15566#ifdef __STDC__
15567# include <limits.h>
15568#else
15569# include <assert.h>
15570#endif
15571
15572#undef $ac_func
15573
15574/* Override any gcc2 internal prototype to avoid an error.  */
15575#ifdef __cplusplus
15576extern "C"
15577{
15578#endif
15579/* We use char because int might match the return type of a gcc2
15580   builtin and then its argument prototype would still apply.  */
15581char $ac_func ();
15582/* The GNU C library defines this for functions which it implements
15583    to always fail with ENOSYS.  Some functions are actually named
15584    something starting with __ and the normal name is an alias.  */
15585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15586choke me
15587#else
15588char (*f) () = $ac_func;
15589#endif
15590#ifdef __cplusplus
15591}
15592#endif
15593
15594int
15595main ()
15596{
15597return f != $ac_func;
15598  ;
15599  return 0;
15600}
15601_ACEOF
15602rm -f conftest.$ac_objext conftest$ac_exeext
15603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15604  (eval $ac_link) 2>conftest.er1
15605  ac_status=$?
15606  grep -v '^ *+' conftest.er1 >conftest.err
15607  rm -f conftest.er1
15608  cat conftest.err >&5
15609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610  (exit $ac_status); } &&
15611	 { ac_try='test -z "$ac_c_werror_flag"
15612			 || test ! -s conftest.err'
15613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614  (eval $ac_try) 2>&5
15615  ac_status=$?
15616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617  (exit $ac_status); }; } &&
15618	 { ac_try='test -s conftest$ac_exeext'
15619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620  (eval $ac_try) 2>&5
15621  ac_status=$?
15622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623  (exit $ac_status); }; }; then
15624  eval "$as_ac_var=yes"
15625else
15626  echo "$as_me: failed program was:" >&5
15627sed 's/^/| /' conftest.$ac_ext >&5
15628
15629eval "$as_ac_var=no"
15630fi
15631rm -f conftest.err conftest.$ac_objext \
15632      conftest$ac_exeext conftest.$ac_ext
15633fi
15634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15635echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15636if test `eval echo '${'$as_ac_var'}'` = yes; then
15637  cat >>confdefs.h <<_ACEOF
15638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15639_ACEOF
15640
15641fi
15642done
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
15653do
15654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15655echo "$as_me:$LINENO: checking for $ac_func" >&5
15656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15657if eval "test \"\${$as_ac_var+set}\" = set"; then
15658  echo $ECHO_N "(cached) $ECHO_C" >&6
15659else
15660  cat >conftest.$ac_ext <<_ACEOF
15661/* confdefs.h.  */
15662_ACEOF
15663cat confdefs.h >>conftest.$ac_ext
15664cat >>conftest.$ac_ext <<_ACEOF
15665/* end confdefs.h.  */
15666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15667   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15668#define $ac_func innocuous_$ac_func
15669
15670/* System header to define __stub macros and hopefully few prototypes,
15671    which can conflict with char $ac_func (); below.
15672    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15673    <limits.h> exists even on freestanding compilers.  */
15674
15675#ifdef __STDC__
15676# include <limits.h>
15677#else
15678# include <assert.h>
15679#endif
15680
15681#undef $ac_func
15682
15683/* Override any gcc2 internal prototype to avoid an error.  */
15684#ifdef __cplusplus
15685extern "C"
15686{
15687#endif
15688/* We use char because int might match the return type of a gcc2
15689   builtin and then its argument prototype would still apply.  */
15690char $ac_func ();
15691/* The GNU C library defines this for functions which it implements
15692    to always fail with ENOSYS.  Some functions are actually named
15693    something starting with __ and the normal name is an alias.  */
15694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15695choke me
15696#else
15697char (*f) () = $ac_func;
15698#endif
15699#ifdef __cplusplus
15700}
15701#endif
15702
15703int
15704main ()
15705{
15706return f != $ac_func;
15707  ;
15708  return 0;
15709}
15710_ACEOF
15711rm -f conftest.$ac_objext conftest$ac_exeext
15712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15713  (eval $ac_link) 2>conftest.er1
15714  ac_status=$?
15715  grep -v '^ *+' conftest.er1 >conftest.err
15716  rm -f conftest.er1
15717  cat conftest.err >&5
15718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719  (exit $ac_status); } &&
15720	 { ac_try='test -z "$ac_c_werror_flag"
15721			 || test ! -s conftest.err'
15722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723  (eval $ac_try) 2>&5
15724  ac_status=$?
15725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726  (exit $ac_status); }; } &&
15727	 { ac_try='test -s conftest$ac_exeext'
15728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729  (eval $ac_try) 2>&5
15730  ac_status=$?
15731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732  (exit $ac_status); }; }; then
15733  eval "$as_ac_var=yes"
15734else
15735  echo "$as_me: failed program was:" >&5
15736sed 's/^/| /' conftest.$ac_ext >&5
15737
15738eval "$as_ac_var=no"
15739fi
15740rm -f conftest.err conftest.$ac_objext \
15741      conftest$ac_exeext conftest.$ac_ext
15742fi
15743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15745if test `eval echo '${'$as_ac_var'}'` = yes; then
15746  cat >>confdefs.h <<_ACEOF
15747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15748_ACEOF
15749
15750fi
15751done
15752
15753
15754
15755
15756
15757
15758
15759
15760for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
15761do
15762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15763echo "$as_me:$LINENO: checking for $ac_func" >&5
15764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15765if eval "test \"\${$as_ac_var+set}\" = set"; then
15766  echo $ECHO_N "(cached) $ECHO_C" >&6
15767else
15768  cat >conftest.$ac_ext <<_ACEOF
15769/* confdefs.h.  */
15770_ACEOF
15771cat confdefs.h >>conftest.$ac_ext
15772cat >>conftest.$ac_ext <<_ACEOF
15773/* end confdefs.h.  */
15774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15775   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15776#define $ac_func innocuous_$ac_func
15777
15778/* System header to define __stub macros and hopefully few prototypes,
15779    which can conflict with char $ac_func (); below.
15780    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15781    <limits.h> exists even on freestanding compilers.  */
15782
15783#ifdef __STDC__
15784# include <limits.h>
15785#else
15786# include <assert.h>
15787#endif
15788
15789#undef $ac_func
15790
15791/* Override any gcc2 internal prototype to avoid an error.  */
15792#ifdef __cplusplus
15793extern "C"
15794{
15795#endif
15796/* We use char because int might match the return type of a gcc2
15797   builtin and then its argument prototype would still apply.  */
15798char $ac_func ();
15799/* The GNU C library defines this for functions which it implements
15800    to always fail with ENOSYS.  Some functions are actually named
15801    something starting with __ and the normal name is an alias.  */
15802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15803choke me
15804#else
15805char (*f) () = $ac_func;
15806#endif
15807#ifdef __cplusplus
15808}
15809#endif
15810
15811int
15812main ()
15813{
15814return f != $ac_func;
15815  ;
15816  return 0;
15817}
15818_ACEOF
15819rm -f conftest.$ac_objext conftest$ac_exeext
15820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15821  (eval $ac_link) 2>conftest.er1
15822  ac_status=$?
15823  grep -v '^ *+' conftest.er1 >conftest.err
15824  rm -f conftest.er1
15825  cat conftest.err >&5
15826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827  (exit $ac_status); } &&
15828	 { ac_try='test -z "$ac_c_werror_flag"
15829			 || test ! -s conftest.err'
15830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831  (eval $ac_try) 2>&5
15832  ac_status=$?
15833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834  (exit $ac_status); }; } &&
15835	 { ac_try='test -s conftest$ac_exeext'
15836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837  (eval $ac_try) 2>&5
15838  ac_status=$?
15839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840  (exit $ac_status); }; }; then
15841  eval "$as_ac_var=yes"
15842else
15843  echo "$as_me: failed program was:" >&5
15844sed 's/^/| /' conftest.$ac_ext >&5
15845
15846eval "$as_ac_var=no"
15847fi
15848rm -f conftest.err conftest.$ac_objext \
15849      conftest$ac_exeext conftest.$ac_ext
15850fi
15851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15852echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15853if test `eval echo '${'$as_ac_var'}'` = yes; then
15854  cat >>confdefs.h <<_ACEOF
15855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15856_ACEOF
15857
15858fi
15859done
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
15873do
15874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15875echo "$as_me:$LINENO: checking for $ac_func" >&5
15876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15877if eval "test \"\${$as_ac_var+set}\" = set"; then
15878  echo $ECHO_N "(cached) $ECHO_C" >&6
15879else
15880  cat >conftest.$ac_ext <<_ACEOF
15881/* confdefs.h.  */
15882_ACEOF
15883cat confdefs.h >>conftest.$ac_ext
15884cat >>conftest.$ac_ext <<_ACEOF
15885/* end confdefs.h.  */
15886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15887   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15888#define $ac_func innocuous_$ac_func
15889
15890/* System header to define __stub macros and hopefully few prototypes,
15891    which can conflict with char $ac_func (); below.
15892    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15893    <limits.h> exists even on freestanding compilers.  */
15894
15895#ifdef __STDC__
15896# include <limits.h>
15897#else
15898# include <assert.h>
15899#endif
15900
15901#undef $ac_func
15902
15903/* Override any gcc2 internal prototype to avoid an error.  */
15904#ifdef __cplusplus
15905extern "C"
15906{
15907#endif
15908/* We use char because int might match the return type of a gcc2
15909   builtin and then its argument prototype would still apply.  */
15910char $ac_func ();
15911/* The GNU C library defines this for functions which it implements
15912    to always fail with ENOSYS.  Some functions are actually named
15913    something starting with __ and the normal name is an alias.  */
15914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15915choke me
15916#else
15917char (*f) () = $ac_func;
15918#endif
15919#ifdef __cplusplus
15920}
15921#endif
15922
15923int
15924main ()
15925{
15926return f != $ac_func;
15927  ;
15928  return 0;
15929}
15930_ACEOF
15931rm -f conftest.$ac_objext conftest$ac_exeext
15932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15933  (eval $ac_link) 2>conftest.er1
15934  ac_status=$?
15935  grep -v '^ *+' conftest.er1 >conftest.err
15936  rm -f conftest.er1
15937  cat conftest.err >&5
15938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939  (exit $ac_status); } &&
15940	 { ac_try='test -z "$ac_c_werror_flag"
15941			 || test ! -s conftest.err'
15942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943  (eval $ac_try) 2>&5
15944  ac_status=$?
15945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946  (exit $ac_status); }; } &&
15947	 { ac_try='test -s conftest$ac_exeext'
15948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949  (eval $ac_try) 2>&5
15950  ac_status=$?
15951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952  (exit $ac_status); }; }; then
15953  eval "$as_ac_var=yes"
15954else
15955  echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958eval "$as_ac_var=no"
15959fi
15960rm -f conftest.err conftest.$ac_objext \
15961      conftest$ac_exeext conftest.$ac_ext
15962fi
15963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15965if test `eval echo '${'$as_ac_var'}'` = yes; then
15966  cat >>confdefs.h <<_ACEOF
15967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15968_ACEOF
15969
15970fi
15971done
15972
15973
15974
15975
15976for ac_func in syslog vsyslog timegm
15977do
15978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15979echo "$as_me:$LINENO: checking for $ac_func" >&5
15980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15981if eval "test \"\${$as_ac_var+set}\" = set"; then
15982  echo $ECHO_N "(cached) $ECHO_C" >&6
15983else
15984  cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h.  */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h.  */
15990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15991   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15992#define $ac_func innocuous_$ac_func
15993
15994/* System header to define __stub macros and hopefully few prototypes,
15995    which can conflict with char $ac_func (); below.
15996    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15997    <limits.h> exists even on freestanding compilers.  */
15998
15999#ifdef __STDC__
16000# include <limits.h>
16001#else
16002# include <assert.h>
16003#endif
16004
16005#undef $ac_func
16006
16007/* Override any gcc2 internal prototype to avoid an error.  */
16008#ifdef __cplusplus
16009extern "C"
16010{
16011#endif
16012/* We use char because int might match the return type of a gcc2
16013   builtin and then its argument prototype would still apply.  */
16014char $ac_func ();
16015/* The GNU C library defines this for functions which it implements
16016    to always fail with ENOSYS.  Some functions are actually named
16017    something starting with __ and the normal name is an alias.  */
16018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16019choke me
16020#else
16021char (*f) () = $ac_func;
16022#endif
16023#ifdef __cplusplus
16024}
16025#endif
16026
16027int
16028main ()
16029{
16030return f != $ac_func;
16031  ;
16032  return 0;
16033}
16034_ACEOF
16035rm -f conftest.$ac_objext conftest$ac_exeext
16036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16037  (eval $ac_link) 2>conftest.er1
16038  ac_status=$?
16039  grep -v '^ *+' conftest.er1 >conftest.err
16040  rm -f conftest.er1
16041  cat conftest.err >&5
16042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043  (exit $ac_status); } &&
16044	 { ac_try='test -z "$ac_c_werror_flag"
16045			 || test ! -s conftest.err'
16046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047  (eval $ac_try) 2>&5
16048  ac_status=$?
16049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050  (exit $ac_status); }; } &&
16051	 { ac_try='test -s conftest$ac_exeext'
16052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053  (eval $ac_try) 2>&5
16054  ac_status=$?
16055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056  (exit $ac_status); }; }; then
16057  eval "$as_ac_var=yes"
16058else
16059  echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062eval "$as_ac_var=no"
16063fi
16064rm -f conftest.err conftest.$ac_objext \
16065      conftest$ac_exeext conftest.$ac_ext
16066fi
16067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16069if test `eval echo '${'$as_ac_var'}'` = yes; then
16070  cat >>confdefs.h <<_ACEOF
16071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16072_ACEOF
16073
16074fi
16075done
16076
16077
16078
16079for ac_func in setlocale nl_langinfo
16080do
16081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16082echo "$as_me:$LINENO: checking for $ac_func" >&5
16083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16084if eval "test \"\${$as_ac_var+set}\" = set"; then
16085  echo $ECHO_N "(cached) $ECHO_C" >&6
16086else
16087  cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h.  */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h.  */
16093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16094   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16095#define $ac_func innocuous_$ac_func
16096
16097/* System header to define __stub macros and hopefully few prototypes,
16098    which can conflict with char $ac_func (); below.
16099    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16100    <limits.h> exists even on freestanding compilers.  */
16101
16102#ifdef __STDC__
16103# include <limits.h>
16104#else
16105# include <assert.h>
16106#endif
16107
16108#undef $ac_func
16109
16110/* Override any gcc2 internal prototype to avoid an error.  */
16111#ifdef __cplusplus
16112extern "C"
16113{
16114#endif
16115/* We use char because int might match the return type of a gcc2
16116   builtin and then its argument prototype would still apply.  */
16117char $ac_func ();
16118/* The GNU C library defines this for functions which it implements
16119    to always fail with ENOSYS.  Some functions are actually named
16120    something starting with __ and the normal name is an alias.  */
16121#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16122choke me
16123#else
16124char (*f) () = $ac_func;
16125#endif
16126#ifdef __cplusplus
16127}
16128#endif
16129
16130int
16131main ()
16132{
16133return f != $ac_func;
16134  ;
16135  return 0;
16136}
16137_ACEOF
16138rm -f conftest.$ac_objext conftest$ac_exeext
16139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140  (eval $ac_link) 2>conftest.er1
16141  ac_status=$?
16142  grep -v '^ *+' conftest.er1 >conftest.err
16143  rm -f conftest.er1
16144  cat conftest.err >&5
16145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146  (exit $ac_status); } &&
16147	 { ac_try='test -z "$ac_c_werror_flag"
16148			 || test ! -s conftest.err'
16149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150  (eval $ac_try) 2>&5
16151  ac_status=$?
16152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153  (exit $ac_status); }; } &&
16154	 { ac_try='test -s conftest$ac_exeext'
16155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156  (eval $ac_try) 2>&5
16157  ac_status=$?
16158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159  (exit $ac_status); }; }; then
16160  eval "$as_ac_var=yes"
16161else
16162  echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165eval "$as_ac_var=no"
16166fi
16167rm -f conftest.err conftest.$ac_objext \
16168      conftest$ac_exeext conftest.$ac_ext
16169fi
16170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16172if test `eval echo '${'$as_ac_var'}'` = yes; then
16173  cat >>confdefs.h <<_ACEOF
16174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16175_ACEOF
16176
16177fi
16178done
16179
16180
16181for ac_func in nanosleep
16182do
16183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16184echo "$as_me:$LINENO: checking for $ac_func" >&5
16185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16186if eval "test \"\${$as_ac_var+set}\" = set"; then
16187  echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189  cat >conftest.$ac_ext <<_ACEOF
16190/* confdefs.h.  */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h.  */
16195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16196   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16197#define $ac_func innocuous_$ac_func
16198
16199/* System header to define __stub macros and hopefully few prototypes,
16200    which can conflict with char $ac_func (); below.
16201    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16202    <limits.h> exists even on freestanding compilers.  */
16203
16204#ifdef __STDC__
16205# include <limits.h>
16206#else
16207# include <assert.h>
16208#endif
16209
16210#undef $ac_func
16211
16212/* Override any gcc2 internal prototype to avoid an error.  */
16213#ifdef __cplusplus
16214extern "C"
16215{
16216#endif
16217/* We use char because int might match the return type of a gcc2
16218   builtin and then its argument prototype would still apply.  */
16219char $ac_func ();
16220/* The GNU C library defines this for functions which it implements
16221    to always fail with ENOSYS.  Some functions are actually named
16222    something starting with __ and the normal name is an alias.  */
16223#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16224choke me
16225#else
16226char (*f) () = $ac_func;
16227#endif
16228#ifdef __cplusplus
16229}
16230#endif
16231
16232int
16233main ()
16234{
16235return f != $ac_func;
16236  ;
16237  return 0;
16238}
16239_ACEOF
16240rm -f conftest.$ac_objext conftest$ac_exeext
16241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16242  (eval $ac_link) 2>conftest.er1
16243  ac_status=$?
16244  grep -v '^ *+' conftest.er1 >conftest.err
16245  rm -f conftest.er1
16246  cat conftest.err >&5
16247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248  (exit $ac_status); } &&
16249	 { ac_try='test -z "$ac_c_werror_flag"
16250			 || test ! -s conftest.err'
16251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252  (eval $ac_try) 2>&5
16253  ac_status=$?
16254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255  (exit $ac_status); }; } &&
16256	 { ac_try='test -s conftest$ac_exeext'
16257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258  (eval $ac_try) 2>&5
16259  ac_status=$?
16260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261  (exit $ac_status); }; }; then
16262  eval "$as_ac_var=yes"
16263else
16264  echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
16267eval "$as_ac_var=no"
16268fi
16269rm -f conftest.err conftest.$ac_objext \
16270      conftest$ac_exeext conftest.$ac_ext
16271fi
16272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16273echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16274if test `eval echo '${'$as_ac_var'}'` = yes; then
16275  cat >>confdefs.h <<_ACEOF
16276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16277_ACEOF
16278
16279fi
16280done
16281
16282# setbuffer, shmget, shm_open are needed for smbtorture
16283
16284
16285
16286
16287for ac_func in setbuffer shmget shm_open backtrace_symbols
16288do
16289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16290echo "$as_me:$LINENO: checking for $ac_func" >&5
16291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16292if eval "test \"\${$as_ac_var+set}\" = set"; then
16293  echo $ECHO_N "(cached) $ECHO_C" >&6
16294else
16295  cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h.  */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h.  */
16301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16302   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16303#define $ac_func innocuous_$ac_func
16304
16305/* System header to define __stub macros and hopefully few prototypes,
16306    which can conflict with char $ac_func (); below.
16307    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16308    <limits.h> exists even on freestanding compilers.  */
16309
16310#ifdef __STDC__
16311# include <limits.h>
16312#else
16313# include <assert.h>
16314#endif
16315
16316#undef $ac_func
16317
16318/* Override any gcc2 internal prototype to avoid an error.  */
16319#ifdef __cplusplus
16320extern "C"
16321{
16322#endif
16323/* We use char because int might match the return type of a gcc2
16324   builtin and then its argument prototype would still apply.  */
16325char $ac_func ();
16326/* The GNU C library defines this for functions which it implements
16327    to always fail with ENOSYS.  Some functions are actually named
16328    something starting with __ and the normal name is an alias.  */
16329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16330choke me
16331#else
16332char (*f) () = $ac_func;
16333#endif
16334#ifdef __cplusplus
16335}
16336#endif
16337
16338int
16339main ()
16340{
16341return f != $ac_func;
16342  ;
16343  return 0;
16344}
16345_ACEOF
16346rm -f conftest.$ac_objext conftest$ac_exeext
16347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348  (eval $ac_link) 2>conftest.er1
16349  ac_status=$?
16350  grep -v '^ *+' conftest.er1 >conftest.err
16351  rm -f conftest.er1
16352  cat conftest.err >&5
16353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354  (exit $ac_status); } &&
16355	 { ac_try='test -z "$ac_c_werror_flag"
16356			 || test ! -s conftest.err'
16357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358  (eval $ac_try) 2>&5
16359  ac_status=$?
16360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361  (exit $ac_status); }; } &&
16362	 { ac_try='test -s conftest$ac_exeext'
16363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364  (eval $ac_try) 2>&5
16365  ac_status=$?
16366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367  (exit $ac_status); }; }; then
16368  eval "$as_ac_var=yes"
16369else
16370  echo "$as_me: failed program was:" >&5
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
16373eval "$as_ac_var=no"
16374fi
16375rm -f conftest.err conftest.$ac_objext \
16376      conftest$ac_exeext conftest.$ac_ext
16377fi
16378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16380if test `eval echo '${'$as_ac_var'}'` = yes; then
16381  cat >>confdefs.h <<_ACEOF
16382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16383_ACEOF
16384
16385fi
16386done
16387
16388
16389for ac_header in libexc.h
16390do
16391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16392if eval "test \"\${$as_ac_Header+set}\" = set"; then
16393  echo "$as_me:$LINENO: checking for $ac_header" >&5
16394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16395if eval "test \"\${$as_ac_Header+set}\" = set"; then
16396  echo $ECHO_N "(cached) $ECHO_C" >&6
16397fi
16398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16400else
16401  # Is the header compilable?
16402echo "$as_me:$LINENO: checking $ac_header usability" >&5
16403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16404cat >conftest.$ac_ext <<_ACEOF
16405/* confdefs.h.  */
16406_ACEOF
16407cat confdefs.h >>conftest.$ac_ext
16408cat >>conftest.$ac_ext <<_ACEOF
16409/* end confdefs.h.  */
16410$ac_includes_default
16411#include <$ac_header>
16412_ACEOF
16413rm -f conftest.$ac_objext
16414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16415  (eval $ac_compile) 2>conftest.er1
16416  ac_status=$?
16417  grep -v '^ *+' conftest.er1 >conftest.err
16418  rm -f conftest.er1
16419  cat conftest.err >&5
16420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421  (exit $ac_status); } &&
16422	 { ac_try='test -z "$ac_c_werror_flag"
16423			 || test ! -s conftest.err'
16424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425  (eval $ac_try) 2>&5
16426  ac_status=$?
16427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428  (exit $ac_status); }; } &&
16429	 { ac_try='test -s conftest.$ac_objext'
16430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431  (eval $ac_try) 2>&5
16432  ac_status=$?
16433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434  (exit $ac_status); }; }; then
16435  ac_header_compiler=yes
16436else
16437  echo "$as_me: failed program was:" >&5
16438sed 's/^/| /' conftest.$ac_ext >&5
16439
16440ac_header_compiler=no
16441fi
16442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16444echo "${ECHO_T}$ac_header_compiler" >&6
16445
16446# Is the header present?
16447echo "$as_me:$LINENO: checking $ac_header presence" >&5
16448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16449cat >conftest.$ac_ext <<_ACEOF
16450/* confdefs.h.  */
16451_ACEOF
16452cat confdefs.h >>conftest.$ac_ext
16453cat >>conftest.$ac_ext <<_ACEOF
16454/* end confdefs.h.  */
16455#include <$ac_header>
16456_ACEOF
16457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16459  ac_status=$?
16460  grep -v '^ *+' conftest.er1 >conftest.err
16461  rm -f conftest.er1
16462  cat conftest.err >&5
16463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464  (exit $ac_status); } >/dev/null; then
16465  if test -s conftest.err; then
16466    ac_cpp_err=$ac_c_preproc_warn_flag
16467    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16468  else
16469    ac_cpp_err=
16470  fi
16471else
16472  ac_cpp_err=yes
16473fi
16474if test -z "$ac_cpp_err"; then
16475  ac_header_preproc=yes
16476else
16477  echo "$as_me: failed program was:" >&5
16478sed 's/^/| /' conftest.$ac_ext >&5
16479
16480  ac_header_preproc=no
16481fi
16482rm -f conftest.err conftest.$ac_ext
16483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16484echo "${ECHO_T}$ac_header_preproc" >&6
16485
16486# So?  What about this header?
16487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16488  yes:no: )
16489    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16491    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16493    ac_header_preproc=yes
16494    ;;
16495  no:yes:* )
16496    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16498    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16499echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16500    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16502    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16503echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16506    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16508    (
16509      cat <<\_ASBOX
16510## ------------------------------------------ ##
16511## Report this to the AC_PACKAGE_NAME lists.  ##
16512## ------------------------------------------ ##
16513_ASBOX
16514    ) |
16515      sed "s/^/$as_me: WARNING:     /" >&2
16516    ;;
16517esac
16518echo "$as_me:$LINENO: checking for $ac_header" >&5
16519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16520if eval "test \"\${$as_ac_Header+set}\" = set"; then
16521  echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523  eval "$as_ac_Header=\$ac_header_preproc"
16524fi
16525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16527
16528fi
16529if test `eval echo '${'$as_ac_Header'}'` = yes; then
16530  cat >>confdefs.h <<_ACEOF
16531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16532_ACEOF
16533
16534fi
16535
16536done
16537
16538
16539echo "$as_me:$LINENO: checking for trace_back_stack in -lexc" >&5
16540echo $ECHO_N "checking for trace_back_stack in -lexc... $ECHO_C" >&6
16541if test "${ac_cv_lib_exc_trace_back_stack+set}" = set; then
16542  echo $ECHO_N "(cached) $ECHO_C" >&6
16543else
16544  ac_check_lib_save_LIBS=$LIBS
16545LIBS="-lexc  $LIBS"
16546cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h.  */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h.  */
16552
16553/* Override any gcc2 internal prototype to avoid an error.  */
16554#ifdef __cplusplus
16555extern "C"
16556#endif
16557/* We use char because int might match the return type of a gcc2
16558   builtin and then its argument prototype would still apply.  */
16559char trace_back_stack ();
16560int
16561main ()
16562{
16563trace_back_stack ();
16564  ;
16565  return 0;
16566}
16567_ACEOF
16568rm -f conftest.$ac_objext conftest$ac_exeext
16569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16570  (eval $ac_link) 2>conftest.er1
16571  ac_status=$?
16572  grep -v '^ *+' conftest.er1 >conftest.err
16573  rm -f conftest.er1
16574  cat conftest.err >&5
16575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576  (exit $ac_status); } &&
16577	 { ac_try='test -z "$ac_c_werror_flag"
16578			 || test ! -s conftest.err'
16579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580  (eval $ac_try) 2>&5
16581  ac_status=$?
16582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583  (exit $ac_status); }; } &&
16584	 { ac_try='test -s conftest$ac_exeext'
16585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586  (eval $ac_try) 2>&5
16587  ac_status=$?
16588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589  (exit $ac_status); }; }; then
16590  ac_cv_lib_exc_trace_back_stack=yes
16591else
16592  echo "$as_me: failed program was:" >&5
16593sed 's/^/| /' conftest.$ac_ext >&5
16594
16595ac_cv_lib_exc_trace_back_stack=no
16596fi
16597rm -f conftest.err conftest.$ac_objext \
16598      conftest$ac_exeext conftest.$ac_ext
16599LIBS=$ac_check_lib_save_LIBS
16600fi
16601echo "$as_me:$LINENO: result: $ac_cv_lib_exc_trace_back_stack" >&5
16602echo "${ECHO_T}$ac_cv_lib_exc_trace_back_stack" >&6
16603if test $ac_cv_lib_exc_trace_back_stack = yes; then
16604  cat >>confdefs.h <<_ACEOF
16605#define HAVE_LIBEXC 1
16606_ACEOF
16607
16608  LIBS="-lexc $LIBS"
16609
16610fi
16611
16612
16613# syscall() is needed for smbwrapper.
16614
16615for ac_func in syscall
16616do
16617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16618echo "$as_me:$LINENO: checking for $ac_func" >&5
16619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620if eval "test \"\${$as_ac_var+set}\" = set"; then
16621  echo $ECHO_N "(cached) $ECHO_C" >&6
16622else
16623  cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h.  */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h.  */
16629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16630   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16631#define $ac_func innocuous_$ac_func
16632
16633/* System header to define __stub macros and hopefully few prototypes,
16634    which can conflict with char $ac_func (); below.
16635    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636    <limits.h> exists even on freestanding compilers.  */
16637
16638#ifdef __STDC__
16639# include <limits.h>
16640#else
16641# include <assert.h>
16642#endif
16643
16644#undef $ac_func
16645
16646/* Override any gcc2 internal prototype to avoid an error.  */
16647#ifdef __cplusplus
16648extern "C"
16649{
16650#endif
16651/* We use char because int might match the return type of a gcc2
16652   builtin and then its argument prototype would still apply.  */
16653char $ac_func ();
16654/* The GNU C library defines this for functions which it implements
16655    to always fail with ENOSYS.  Some functions are actually named
16656    something starting with __ and the normal name is an alias.  */
16657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658choke me
16659#else
16660char (*f) () = $ac_func;
16661#endif
16662#ifdef __cplusplus
16663}
16664#endif
16665
16666int
16667main ()
16668{
16669return f != $ac_func;
16670  ;
16671  return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext conftest$ac_exeext
16675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676  (eval $ac_link) 2>conftest.er1
16677  ac_status=$?
16678  grep -v '^ *+' conftest.er1 >conftest.err
16679  rm -f conftest.er1
16680  cat conftest.err >&5
16681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682  (exit $ac_status); } &&
16683	 { ac_try='test -z "$ac_c_werror_flag"
16684			 || test ! -s conftest.err'
16685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686  (eval $ac_try) 2>&5
16687  ac_status=$?
16688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689  (exit $ac_status); }; } &&
16690	 { ac_try='test -s conftest$ac_exeext'
16691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692  (eval $ac_try) 2>&5
16693  ac_status=$?
16694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695  (exit $ac_status); }; }; then
16696  eval "$as_ac_var=yes"
16697else
16698  echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
16701eval "$as_ac_var=no"
16702fi
16703rm -f conftest.err conftest.$ac_objext \
16704      conftest$ac_exeext conftest.$ac_ext
16705fi
16706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16708if test `eval echo '${'$as_ac_var'}'` = yes; then
16709  cat >>confdefs.h <<_ACEOF
16710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16711_ACEOF
16712
16713fi
16714done
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
16725do
16726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16727echo "$as_me:$LINENO: checking for $ac_func" >&5
16728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16729if eval "test \"\${$as_ac_var+set}\" = set"; then
16730  echo $ECHO_N "(cached) $ECHO_C" >&6
16731else
16732  cat >conftest.$ac_ext <<_ACEOF
16733/* confdefs.h.  */
16734_ACEOF
16735cat confdefs.h >>conftest.$ac_ext
16736cat >>conftest.$ac_ext <<_ACEOF
16737/* end confdefs.h.  */
16738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16739   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16740#define $ac_func innocuous_$ac_func
16741
16742/* System header to define __stub macros and hopefully few prototypes,
16743    which can conflict with char $ac_func (); below.
16744    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745    <limits.h> exists even on freestanding compilers.  */
16746
16747#ifdef __STDC__
16748# include <limits.h>
16749#else
16750# include <assert.h>
16751#endif
16752
16753#undef $ac_func
16754
16755/* Override any gcc2 internal prototype to avoid an error.  */
16756#ifdef __cplusplus
16757extern "C"
16758{
16759#endif
16760/* We use char because int might match the return type of a gcc2
16761   builtin and then its argument prototype would still apply.  */
16762char $ac_func ();
16763/* The GNU C library defines this for functions which it implements
16764    to always fail with ENOSYS.  Some functions are actually named
16765    something starting with __ and the normal name is an alias.  */
16766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16767choke me
16768#else
16769char (*f) () = $ac_func;
16770#endif
16771#ifdef __cplusplus
16772}
16773#endif
16774
16775int
16776main ()
16777{
16778return f != $ac_func;
16779  ;
16780  return 0;
16781}
16782_ACEOF
16783rm -f conftest.$ac_objext conftest$ac_exeext
16784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16785  (eval $ac_link) 2>conftest.er1
16786  ac_status=$?
16787  grep -v '^ *+' conftest.er1 >conftest.err
16788  rm -f conftest.er1
16789  cat conftest.err >&5
16790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791  (exit $ac_status); } &&
16792	 { ac_try='test -z "$ac_c_werror_flag"
16793			 || test ! -s conftest.err'
16794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795  (eval $ac_try) 2>&5
16796  ac_status=$?
16797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798  (exit $ac_status); }; } &&
16799	 { ac_try='test -s conftest$ac_exeext'
16800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801  (eval $ac_try) 2>&5
16802  ac_status=$?
16803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804  (exit $ac_status); }; }; then
16805  eval "$as_ac_var=yes"
16806else
16807  echo "$as_me: failed program was:" >&5
16808sed 's/^/| /' conftest.$ac_ext >&5
16809
16810eval "$as_ac_var=no"
16811fi
16812rm -f conftest.err conftest.$ac_objext \
16813      conftest$ac_exeext conftest.$ac_ext
16814fi
16815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16816echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16817if test `eval echo '${'$as_ac_var'}'` = yes; then
16818  cat >>confdefs.h <<_ACEOF
16819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16820_ACEOF
16821
16822fi
16823done
16824
16825
16826
16827
16828
16829
16830
16831
16832for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
16833do
16834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16835echo "$as_me:$LINENO: checking for $ac_func" >&5
16836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16837if eval "test \"\${$as_ac_var+set}\" = set"; then
16838  echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840  cat >conftest.$ac_ext <<_ACEOF
16841/* confdefs.h.  */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h.  */
16846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16847   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16848#define $ac_func innocuous_$ac_func
16849
16850/* System header to define __stub macros and hopefully few prototypes,
16851    which can conflict with char $ac_func (); below.
16852    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853    <limits.h> exists even on freestanding compilers.  */
16854
16855#ifdef __STDC__
16856# include <limits.h>
16857#else
16858# include <assert.h>
16859#endif
16860
16861#undef $ac_func
16862
16863/* Override any gcc2 internal prototype to avoid an error.  */
16864#ifdef __cplusplus
16865extern "C"
16866{
16867#endif
16868/* We use char because int might match the return type of a gcc2
16869   builtin and then its argument prototype would still apply.  */
16870char $ac_func ();
16871/* The GNU C library defines this for functions which it implements
16872    to always fail with ENOSYS.  Some functions are actually named
16873    something starting with __ and the normal name is an alias.  */
16874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16875choke me
16876#else
16877char (*f) () = $ac_func;
16878#endif
16879#ifdef __cplusplus
16880}
16881#endif
16882
16883int
16884main ()
16885{
16886return f != $ac_func;
16887  ;
16888  return 0;
16889}
16890_ACEOF
16891rm -f conftest.$ac_objext conftest$ac_exeext
16892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16893  (eval $ac_link) 2>conftest.er1
16894  ac_status=$?
16895  grep -v '^ *+' conftest.er1 >conftest.err
16896  rm -f conftest.er1
16897  cat conftest.err >&5
16898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899  (exit $ac_status); } &&
16900	 { ac_try='test -z "$ac_c_werror_flag"
16901			 || test ! -s conftest.err'
16902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903  (eval $ac_try) 2>&5
16904  ac_status=$?
16905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906  (exit $ac_status); }; } &&
16907	 { ac_try='test -s conftest$ac_exeext'
16908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909  (eval $ac_try) 2>&5
16910  ac_status=$?
16911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912  (exit $ac_status); }; }; then
16913  eval "$as_ac_var=yes"
16914else
16915  echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918eval "$as_ac_var=no"
16919fi
16920rm -f conftest.err conftest.$ac_objext \
16921      conftest$ac_exeext conftest.$ac_ext
16922fi
16923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16925if test `eval echo '${'$as_ac_var'}'` = yes; then
16926  cat >>confdefs.h <<_ACEOF
16927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16928_ACEOF
16929
16930fi
16931done
16932
16933
16934
16935for ac_func in __getcwd _getcwd
16936do
16937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16938echo "$as_me:$LINENO: checking for $ac_func" >&5
16939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16940if eval "test \"\${$as_ac_var+set}\" = set"; then
16941  echo $ECHO_N "(cached) $ECHO_C" >&6
16942else
16943  cat >conftest.$ac_ext <<_ACEOF
16944/* confdefs.h.  */
16945_ACEOF
16946cat confdefs.h >>conftest.$ac_ext
16947cat >>conftest.$ac_ext <<_ACEOF
16948/* end confdefs.h.  */
16949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16950   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16951#define $ac_func innocuous_$ac_func
16952
16953/* System header to define __stub macros and hopefully few prototypes,
16954    which can conflict with char $ac_func (); below.
16955    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16956    <limits.h> exists even on freestanding compilers.  */
16957
16958#ifdef __STDC__
16959# include <limits.h>
16960#else
16961# include <assert.h>
16962#endif
16963
16964#undef $ac_func
16965
16966/* Override any gcc2 internal prototype to avoid an error.  */
16967#ifdef __cplusplus
16968extern "C"
16969{
16970#endif
16971/* We use char because int might match the return type of a gcc2
16972   builtin and then its argument prototype would still apply.  */
16973char $ac_func ();
16974/* The GNU C library defines this for functions which it implements
16975    to always fail with ENOSYS.  Some functions are actually named
16976    something starting with __ and the normal name is an alias.  */
16977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16978choke me
16979#else
16980char (*f) () = $ac_func;
16981#endif
16982#ifdef __cplusplus
16983}
16984#endif
16985
16986int
16987main ()
16988{
16989return f != $ac_func;
16990  ;
16991  return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext conftest$ac_exeext
16995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996  (eval $ac_link) 2>conftest.er1
16997  ac_status=$?
16998  grep -v '^ *+' conftest.er1 >conftest.err
16999  rm -f conftest.er1
17000  cat conftest.err >&5
17001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002  (exit $ac_status); } &&
17003	 { ac_try='test -z "$ac_c_werror_flag"
17004			 || test ! -s conftest.err'
17005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006  (eval $ac_try) 2>&5
17007  ac_status=$?
17008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009  (exit $ac_status); }; } &&
17010	 { ac_try='test -s conftest$ac_exeext'
17011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012  (eval $ac_try) 2>&5
17013  ac_status=$?
17014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015  (exit $ac_status); }; }; then
17016  eval "$as_ac_var=yes"
17017else
17018  echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021eval "$as_ac_var=no"
17022fi
17023rm -f conftest.err conftest.$ac_objext \
17024      conftest$ac_exeext conftest.$ac_ext
17025fi
17026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17028if test `eval echo '${'$as_ac_var'}'` = yes; then
17029  cat >>confdefs.h <<_ACEOF
17030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17031_ACEOF
17032
17033fi
17034done
17035
17036
17037
17038
17039for ac_func in __xstat __fxstat __lxstat
17040do
17041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042echo "$as_me:$LINENO: checking for $ac_func" >&5
17043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17044if eval "test \"\${$as_ac_var+set}\" = set"; then
17045  echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047  cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h.  */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h.  */
17053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17055#define $ac_func innocuous_$ac_func
17056
17057/* System header to define __stub macros and hopefully few prototypes,
17058    which can conflict with char $ac_func (); below.
17059    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060    <limits.h> exists even on freestanding compilers.  */
17061
17062#ifdef __STDC__
17063# include <limits.h>
17064#else
17065# include <assert.h>
17066#endif
17067
17068#undef $ac_func
17069
17070/* Override any gcc2 internal prototype to avoid an error.  */
17071#ifdef __cplusplus
17072extern "C"
17073{
17074#endif
17075/* We use char because int might match the return type of a gcc2
17076   builtin and then its argument prototype would still apply.  */
17077char $ac_func ();
17078/* The GNU C library defines this for functions which it implements
17079    to always fail with ENOSYS.  Some functions are actually named
17080    something starting with __ and the normal name is an alias.  */
17081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17082choke me
17083#else
17084char (*f) () = $ac_func;
17085#endif
17086#ifdef __cplusplus
17087}
17088#endif
17089
17090int
17091main ()
17092{
17093return f != $ac_func;
17094  ;
17095  return 0;
17096}
17097_ACEOF
17098rm -f conftest.$ac_objext conftest$ac_exeext
17099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17100  (eval $ac_link) 2>conftest.er1
17101  ac_status=$?
17102  grep -v '^ *+' conftest.er1 >conftest.err
17103  rm -f conftest.er1
17104  cat conftest.err >&5
17105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106  (exit $ac_status); } &&
17107	 { ac_try='test -z "$ac_c_werror_flag"
17108			 || test ! -s conftest.err'
17109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110  (eval $ac_try) 2>&5
17111  ac_status=$?
17112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113  (exit $ac_status); }; } &&
17114	 { ac_try='test -s conftest$ac_exeext'
17115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116  (eval $ac_try) 2>&5
17117  ac_status=$?
17118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119  (exit $ac_status); }; }; then
17120  eval "$as_ac_var=yes"
17121else
17122  echo "$as_me: failed program was:" >&5
17123sed 's/^/| /' conftest.$ac_ext >&5
17124
17125eval "$as_ac_var=no"
17126fi
17127rm -f conftest.err conftest.$ac_objext \
17128      conftest$ac_exeext conftest.$ac_ext
17129fi
17130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17132if test `eval echo '${'$as_ac_var'}'` = yes; then
17133  cat >>confdefs.h <<_ACEOF
17134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17135_ACEOF
17136
17137fi
17138done
17139
17140
17141
17142
17143
17144
17145
17146for ac_func in _stat _lstat _fstat __stat __lstat __fstat
17147do
17148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17149echo "$as_me:$LINENO: checking for $ac_func" >&5
17150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17151if eval "test \"\${$as_ac_var+set}\" = set"; then
17152  echo $ECHO_N "(cached) $ECHO_C" >&6
17153else
17154  cat >conftest.$ac_ext <<_ACEOF
17155/* confdefs.h.  */
17156_ACEOF
17157cat confdefs.h >>conftest.$ac_ext
17158cat >>conftest.$ac_ext <<_ACEOF
17159/* end confdefs.h.  */
17160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17161   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17162#define $ac_func innocuous_$ac_func
17163
17164/* System header to define __stub macros and hopefully few prototypes,
17165    which can conflict with char $ac_func (); below.
17166    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17167    <limits.h> exists even on freestanding compilers.  */
17168
17169#ifdef __STDC__
17170# include <limits.h>
17171#else
17172# include <assert.h>
17173#endif
17174
17175#undef $ac_func
17176
17177/* Override any gcc2 internal prototype to avoid an error.  */
17178#ifdef __cplusplus
17179extern "C"
17180{
17181#endif
17182/* We use char because int might match the return type of a gcc2
17183   builtin and then its argument prototype would still apply.  */
17184char $ac_func ();
17185/* The GNU C library defines this for functions which it implements
17186    to always fail with ENOSYS.  Some functions are actually named
17187    something starting with __ and the normal name is an alias.  */
17188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17189choke me
17190#else
17191char (*f) () = $ac_func;
17192#endif
17193#ifdef __cplusplus
17194}
17195#endif
17196
17197int
17198main ()
17199{
17200return f != $ac_func;
17201  ;
17202  return 0;
17203}
17204_ACEOF
17205rm -f conftest.$ac_objext conftest$ac_exeext
17206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207  (eval $ac_link) 2>conftest.er1
17208  ac_status=$?
17209  grep -v '^ *+' conftest.er1 >conftest.err
17210  rm -f conftest.er1
17211  cat conftest.err >&5
17212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213  (exit $ac_status); } &&
17214	 { ac_try='test -z "$ac_c_werror_flag"
17215			 || test ! -s conftest.err'
17216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217  (eval $ac_try) 2>&5
17218  ac_status=$?
17219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220  (exit $ac_status); }; } &&
17221	 { ac_try='test -s conftest$ac_exeext'
17222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223  (eval $ac_try) 2>&5
17224  ac_status=$?
17225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226  (exit $ac_status); }; }; then
17227  eval "$as_ac_var=yes"
17228else
17229  echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232eval "$as_ac_var=no"
17233fi
17234rm -f conftest.err conftest.$ac_objext \
17235      conftest$ac_exeext conftest.$ac_ext
17236fi
17237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17239if test `eval echo '${'$as_ac_var'}'` = yes; then
17240  cat >>confdefs.h <<_ACEOF
17241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242_ACEOF
17243
17244fi
17245done
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
17256do
17257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17258echo "$as_me:$LINENO: checking for $ac_func" >&5
17259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17260if eval "test \"\${$as_ac_var+set}\" = set"; then
17261  echo $ECHO_N "(cached) $ECHO_C" >&6
17262else
17263  cat >conftest.$ac_ext <<_ACEOF
17264/* confdefs.h.  */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h.  */
17269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17270   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17271#define $ac_func innocuous_$ac_func
17272
17273/* System header to define __stub macros and hopefully few prototypes,
17274    which can conflict with char $ac_func (); below.
17275    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17276    <limits.h> exists even on freestanding compilers.  */
17277
17278#ifdef __STDC__
17279# include <limits.h>
17280#else
17281# include <assert.h>
17282#endif
17283
17284#undef $ac_func
17285
17286/* Override any gcc2 internal prototype to avoid an error.  */
17287#ifdef __cplusplus
17288extern "C"
17289{
17290#endif
17291/* We use char because int might match the return type of a gcc2
17292   builtin and then its argument prototype would still apply.  */
17293char $ac_func ();
17294/* The GNU C library defines this for functions which it implements
17295    to always fail with ENOSYS.  Some functions are actually named
17296    something starting with __ and the normal name is an alias.  */
17297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17298choke me
17299#else
17300char (*f) () = $ac_func;
17301#endif
17302#ifdef __cplusplus
17303}
17304#endif
17305
17306int
17307main ()
17308{
17309return f != $ac_func;
17310  ;
17311  return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext conftest$ac_exeext
17315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17316  (eval $ac_link) 2>conftest.er1
17317  ac_status=$?
17318  grep -v '^ *+' conftest.er1 >conftest.err
17319  rm -f conftest.er1
17320  cat conftest.err >&5
17321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322  (exit $ac_status); } &&
17323	 { ac_try='test -z "$ac_c_werror_flag"
17324			 || test ! -s conftest.err'
17325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326  (eval $ac_try) 2>&5
17327  ac_status=$?
17328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329  (exit $ac_status); }; } &&
17330	 { ac_try='test -s conftest$ac_exeext'
17331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332  (eval $ac_try) 2>&5
17333  ac_status=$?
17334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335  (exit $ac_status); }; }; then
17336  eval "$as_ac_var=yes"
17337else
17338  echo "$as_me: failed program was:" >&5
17339sed 's/^/| /' conftest.$ac_ext >&5
17340
17341eval "$as_ac_var=no"
17342fi
17343rm -f conftest.err conftest.$ac_objext \
17344      conftest$ac_exeext conftest.$ac_ext
17345fi
17346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17347echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17348if test `eval echo '${'$as_ac_var'}'` = yes; then
17349  cat >>confdefs.h <<_ACEOF
17350#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17351_ACEOF
17352
17353fi
17354done
17355
17356
17357
17358
17359
17360
17361
17362for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
17363do
17364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365echo "$as_me:$LINENO: checking for $ac_func" >&5
17366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17367if eval "test \"\${$as_ac_var+set}\" = set"; then
17368  echo $ECHO_N "(cached) $ECHO_C" >&6
17369else
17370  cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h.  */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h.  */
17376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17378#define $ac_func innocuous_$ac_func
17379
17380/* System header to define __stub macros and hopefully few prototypes,
17381    which can conflict with char $ac_func (); below.
17382    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383    <limits.h> exists even on freestanding compilers.  */
17384
17385#ifdef __STDC__
17386# include <limits.h>
17387#else
17388# include <assert.h>
17389#endif
17390
17391#undef $ac_func
17392
17393/* Override any gcc2 internal prototype to avoid an error.  */
17394#ifdef __cplusplus
17395extern "C"
17396{
17397#endif
17398/* We use char because int might match the return type of a gcc2
17399   builtin and then its argument prototype would still apply.  */
17400char $ac_func ();
17401/* The GNU C library defines this for functions which it implements
17402    to always fail with ENOSYS.  Some functions are actually named
17403    something starting with __ and the normal name is an alias.  */
17404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17405choke me
17406#else
17407char (*f) () = $ac_func;
17408#endif
17409#ifdef __cplusplus
17410}
17411#endif
17412
17413int
17414main ()
17415{
17416return f != $ac_func;
17417  ;
17418  return 0;
17419}
17420_ACEOF
17421rm -f conftest.$ac_objext conftest$ac_exeext
17422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423  (eval $ac_link) 2>conftest.er1
17424  ac_status=$?
17425  grep -v '^ *+' conftest.er1 >conftest.err
17426  rm -f conftest.er1
17427  cat conftest.err >&5
17428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429  (exit $ac_status); } &&
17430	 { ac_try='test -z "$ac_c_werror_flag"
17431			 || test ! -s conftest.err'
17432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433  (eval $ac_try) 2>&5
17434  ac_status=$?
17435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436  (exit $ac_status); }; } &&
17437	 { ac_try='test -s conftest$ac_exeext'
17438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439  (eval $ac_try) 2>&5
17440  ac_status=$?
17441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442  (exit $ac_status); }; }; then
17443  eval "$as_ac_var=yes"
17444else
17445  echo "$as_me: failed program was:" >&5
17446sed 's/^/| /' conftest.$ac_ext >&5
17447
17448eval "$as_ac_var=no"
17449fi
17450rm -f conftest.err conftest.$ac_objext \
17451      conftest$ac_exeext conftest.$ac_ext
17452fi
17453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17454echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17455if test `eval echo '${'$as_ac_var'}'` = yes; then
17456  cat >>confdefs.h <<_ACEOF
17457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17458_ACEOF
17459
17460fi
17461done
17462
17463
17464
17465
17466
17467
17468
17469
17470for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
17471do
17472as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17473echo "$as_me:$LINENO: checking for $ac_func" >&5
17474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17475if eval "test \"\${$as_ac_var+set}\" = set"; then
17476  echo $ECHO_N "(cached) $ECHO_C" >&6
17477else
17478  cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h.  */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h.  */
17484/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17485   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17486#define $ac_func innocuous_$ac_func
17487
17488/* System header to define __stub macros and hopefully few prototypes,
17489    which can conflict with char $ac_func (); below.
17490    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17491    <limits.h> exists even on freestanding compilers.  */
17492
17493#ifdef __STDC__
17494# include <limits.h>
17495#else
17496# include <assert.h>
17497#endif
17498
17499#undef $ac_func
17500
17501/* Override any gcc2 internal prototype to avoid an error.  */
17502#ifdef __cplusplus
17503extern "C"
17504{
17505#endif
17506/* We use char because int might match the return type of a gcc2
17507   builtin and then its argument prototype would still apply.  */
17508char $ac_func ();
17509/* The GNU C library defines this for functions which it implements
17510    to always fail with ENOSYS.  Some functions are actually named
17511    something starting with __ and the normal name is an alias.  */
17512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17513choke me
17514#else
17515char (*f) () = $ac_func;
17516#endif
17517#ifdef __cplusplus
17518}
17519#endif
17520
17521int
17522main ()
17523{
17524return f != $ac_func;
17525  ;
17526  return 0;
17527}
17528_ACEOF
17529rm -f conftest.$ac_objext conftest$ac_exeext
17530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17531  (eval $ac_link) 2>conftest.er1
17532  ac_status=$?
17533  grep -v '^ *+' conftest.er1 >conftest.err
17534  rm -f conftest.er1
17535  cat conftest.err >&5
17536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537  (exit $ac_status); } &&
17538	 { ac_try='test -z "$ac_c_werror_flag"
17539			 || test ! -s conftest.err'
17540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541  (eval $ac_try) 2>&5
17542  ac_status=$?
17543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544  (exit $ac_status); }; } &&
17545	 { ac_try='test -s conftest$ac_exeext'
17546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547  (eval $ac_try) 2>&5
17548  ac_status=$?
17549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550  (exit $ac_status); }; }; then
17551  eval "$as_ac_var=yes"
17552else
17553  echo "$as_me: failed program was:" >&5
17554sed 's/^/| /' conftest.$ac_ext >&5
17555
17556eval "$as_ac_var=no"
17557fi
17558rm -f conftest.err conftest.$ac_objext \
17559      conftest$ac_exeext conftest.$ac_ext
17560fi
17561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17562echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17563if test `eval echo '${'$as_ac_var'}'` = yes; then
17564  cat >>confdefs.h <<_ACEOF
17565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17566_ACEOF
17567
17568fi
17569done
17570
17571
17572
17573
17574
17575
17576for ac_func in getdirentries _write __write _fork __fork
17577do
17578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17579echo "$as_me:$LINENO: checking for $ac_func" >&5
17580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17581if eval "test \"\${$as_ac_var+set}\" = set"; then
17582  echo $ECHO_N "(cached) $ECHO_C" >&6
17583else
17584  cat >conftest.$ac_ext <<_ACEOF
17585/* confdefs.h.  */
17586_ACEOF
17587cat confdefs.h >>conftest.$ac_ext
17588cat >>conftest.$ac_ext <<_ACEOF
17589/* end confdefs.h.  */
17590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17592#define $ac_func innocuous_$ac_func
17593
17594/* System header to define __stub macros and hopefully few prototypes,
17595    which can conflict with char $ac_func (); below.
17596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17597    <limits.h> exists even on freestanding compilers.  */
17598
17599#ifdef __STDC__
17600# include <limits.h>
17601#else
17602# include <assert.h>
17603#endif
17604
17605#undef $ac_func
17606
17607/* Override any gcc2 internal prototype to avoid an error.  */
17608#ifdef __cplusplus
17609extern "C"
17610{
17611#endif
17612/* We use char because int might match the return type of a gcc2
17613   builtin and then its argument prototype would still apply.  */
17614char $ac_func ();
17615/* The GNU C library defines this for functions which it implements
17616    to always fail with ENOSYS.  Some functions are actually named
17617    something starting with __ and the normal name is an alias.  */
17618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17619choke me
17620#else
17621char (*f) () = $ac_func;
17622#endif
17623#ifdef __cplusplus
17624}
17625#endif
17626
17627int
17628main ()
17629{
17630return f != $ac_func;
17631  ;
17632  return 0;
17633}
17634_ACEOF
17635rm -f conftest.$ac_objext conftest$ac_exeext
17636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17637  (eval $ac_link) 2>conftest.er1
17638  ac_status=$?
17639  grep -v '^ *+' conftest.er1 >conftest.err
17640  rm -f conftest.er1
17641  cat conftest.err >&5
17642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643  (exit $ac_status); } &&
17644	 { ac_try='test -z "$ac_c_werror_flag"
17645			 || test ! -s conftest.err'
17646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647  (eval $ac_try) 2>&5
17648  ac_status=$?
17649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650  (exit $ac_status); }; } &&
17651	 { ac_try='test -s conftest$ac_exeext'
17652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653  (eval $ac_try) 2>&5
17654  ac_status=$?
17655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656  (exit $ac_status); }; }; then
17657  eval "$as_ac_var=yes"
17658else
17659  echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
17662eval "$as_ac_var=no"
17663fi
17664rm -f conftest.err conftest.$ac_objext \
17665      conftest$ac_exeext conftest.$ac_ext
17666fi
17667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17669if test `eval echo '${'$as_ac_var'}'` = yes; then
17670  cat >>confdefs.h <<_ACEOF
17671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17672_ACEOF
17673
17674fi
17675done
17676
17677
17678
17679
17680
17681
17682
17683for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
17684do
17685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17686echo "$as_me:$LINENO: checking for $ac_func" >&5
17687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17688if eval "test \"\${$as_ac_var+set}\" = set"; then
17689  echo $ECHO_N "(cached) $ECHO_C" >&6
17690else
17691  cat >conftest.$ac_ext <<_ACEOF
17692/* confdefs.h.  */
17693_ACEOF
17694cat confdefs.h >>conftest.$ac_ext
17695cat >>conftest.$ac_ext <<_ACEOF
17696/* end confdefs.h.  */
17697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17698   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17699#define $ac_func innocuous_$ac_func
17700
17701/* System header to define __stub macros and hopefully few prototypes,
17702    which can conflict with char $ac_func (); below.
17703    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17704    <limits.h> exists even on freestanding compilers.  */
17705
17706#ifdef __STDC__
17707# include <limits.h>
17708#else
17709# include <assert.h>
17710#endif
17711
17712#undef $ac_func
17713
17714/* Override any gcc2 internal prototype to avoid an error.  */
17715#ifdef __cplusplus
17716extern "C"
17717{
17718#endif
17719/* We use char because int might match the return type of a gcc2
17720   builtin and then its argument prototype would still apply.  */
17721char $ac_func ();
17722/* The GNU C library defines this for functions which it implements
17723    to always fail with ENOSYS.  Some functions are actually named
17724    something starting with __ and the normal name is an alias.  */
17725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17726choke me
17727#else
17728char (*f) () = $ac_func;
17729#endif
17730#ifdef __cplusplus
17731}
17732#endif
17733
17734int
17735main ()
17736{
17737return f != $ac_func;
17738  ;
17739  return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext conftest$ac_exeext
17743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744  (eval $ac_link) 2>conftest.er1
17745  ac_status=$?
17746  grep -v '^ *+' conftest.er1 >conftest.err
17747  rm -f conftest.er1
17748  cat conftest.err >&5
17749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750  (exit $ac_status); } &&
17751	 { ac_try='test -z "$ac_c_werror_flag"
17752			 || test ! -s conftest.err'
17753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754  (eval $ac_try) 2>&5
17755  ac_status=$?
17756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757  (exit $ac_status); }; } &&
17758	 { ac_try='test -s conftest$ac_exeext'
17759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760  (eval $ac_try) 2>&5
17761  ac_status=$?
17762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763  (exit $ac_status); }; }; then
17764  eval "$as_ac_var=yes"
17765else
17766  echo "$as_me: failed program was:" >&5
17767sed 's/^/| /' conftest.$ac_ext >&5
17768
17769eval "$as_ac_var=no"
17770fi
17771rm -f conftest.err conftest.$ac_objext \
17772      conftest$ac_exeext conftest.$ac_ext
17773fi
17774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17776if test `eval echo '${'$as_ac_var'}'` = yes; then
17777  cat >>confdefs.h <<_ACEOF
17778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17779_ACEOF
17780
17781fi
17782done
17783
17784
17785
17786
17787
17788
17789
17790
17791for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
17792do
17793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17794echo "$as_me:$LINENO: checking for $ac_func" >&5
17795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17796if eval "test \"\${$as_ac_var+set}\" = set"; then
17797  echo $ECHO_N "(cached) $ECHO_C" >&6
17798else
17799  cat >conftest.$ac_ext <<_ACEOF
17800/* confdefs.h.  */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h.  */
17805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17806   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17807#define $ac_func innocuous_$ac_func
17808
17809/* System header to define __stub macros and hopefully few prototypes,
17810    which can conflict with char $ac_func (); below.
17811    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17812    <limits.h> exists even on freestanding compilers.  */
17813
17814#ifdef __STDC__
17815# include <limits.h>
17816#else
17817# include <assert.h>
17818#endif
17819
17820#undef $ac_func
17821
17822/* Override any gcc2 internal prototype to avoid an error.  */
17823#ifdef __cplusplus
17824extern "C"
17825{
17826#endif
17827/* We use char because int might match the return type of a gcc2
17828   builtin and then its argument prototype would still apply.  */
17829char $ac_func ();
17830/* The GNU C library defines this for functions which it implements
17831    to always fail with ENOSYS.  Some functions are actually named
17832    something starting with __ and the normal name is an alias.  */
17833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17834choke me
17835#else
17836char (*f) () = $ac_func;
17837#endif
17838#ifdef __cplusplus
17839}
17840#endif
17841
17842int
17843main ()
17844{
17845return f != $ac_func;
17846  ;
17847  return 0;
17848}
17849_ACEOF
17850rm -f conftest.$ac_objext conftest$ac_exeext
17851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852  (eval $ac_link) 2>conftest.er1
17853  ac_status=$?
17854  grep -v '^ *+' conftest.er1 >conftest.err
17855  rm -f conftest.er1
17856  cat conftest.err >&5
17857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858  (exit $ac_status); } &&
17859	 { ac_try='test -z "$ac_c_werror_flag"
17860			 || test ! -s conftest.err'
17861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862  (eval $ac_try) 2>&5
17863  ac_status=$?
17864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865  (exit $ac_status); }; } &&
17866	 { ac_try='test -s conftest$ac_exeext'
17867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868  (eval $ac_try) 2>&5
17869  ac_status=$?
17870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871  (exit $ac_status); }; }; then
17872  eval "$as_ac_var=yes"
17873else
17874  echo "$as_me: failed program was:" >&5
17875sed 's/^/| /' conftest.$ac_ext >&5
17876
17877eval "$as_ac_var=no"
17878fi
17879rm -f conftest.err conftest.$ac_objext \
17880      conftest$ac_exeext conftest.$ac_ext
17881fi
17882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17884if test `eval echo '${'$as_ac_var'}'` = yes; then
17885  cat >>confdefs.h <<_ACEOF
17886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17887_ACEOF
17888
17889fi
17890done
17891
17892
17893
17894
17895
17896
17897
17898for ac_func in pread _pread __pread pread64 _pread64 __pread64
17899do
17900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17901echo "$as_me:$LINENO: checking for $ac_func" >&5
17902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17903if eval "test \"\${$as_ac_var+set}\" = set"; then
17904  echo $ECHO_N "(cached) $ECHO_C" >&6
17905else
17906  cat >conftest.$ac_ext <<_ACEOF
17907/* confdefs.h.  */
17908_ACEOF
17909cat confdefs.h >>conftest.$ac_ext
17910cat >>conftest.$ac_ext <<_ACEOF
17911/* end confdefs.h.  */
17912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17913   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17914#define $ac_func innocuous_$ac_func
17915
17916/* System header to define __stub macros and hopefully few prototypes,
17917    which can conflict with char $ac_func (); below.
17918    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17919    <limits.h> exists even on freestanding compilers.  */
17920
17921#ifdef __STDC__
17922# include <limits.h>
17923#else
17924# include <assert.h>
17925#endif
17926
17927#undef $ac_func
17928
17929/* Override any gcc2 internal prototype to avoid an error.  */
17930#ifdef __cplusplus
17931extern "C"
17932{
17933#endif
17934/* We use char because int might match the return type of a gcc2
17935   builtin and then its argument prototype would still apply.  */
17936char $ac_func ();
17937/* The GNU C library defines this for functions which it implements
17938    to always fail with ENOSYS.  Some functions are actually named
17939    something starting with __ and the normal name is an alias.  */
17940#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17941choke me
17942#else
17943char (*f) () = $ac_func;
17944#endif
17945#ifdef __cplusplus
17946}
17947#endif
17948
17949int
17950main ()
17951{
17952return f != $ac_func;
17953  ;
17954  return 0;
17955}
17956_ACEOF
17957rm -f conftest.$ac_objext conftest$ac_exeext
17958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17959  (eval $ac_link) 2>conftest.er1
17960  ac_status=$?
17961  grep -v '^ *+' conftest.er1 >conftest.err
17962  rm -f conftest.er1
17963  cat conftest.err >&5
17964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965  (exit $ac_status); } &&
17966	 { ac_try='test -z "$ac_c_werror_flag"
17967			 || test ! -s conftest.err'
17968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969  (eval $ac_try) 2>&5
17970  ac_status=$?
17971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972  (exit $ac_status); }; } &&
17973	 { ac_try='test -s conftest$ac_exeext'
17974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975  (eval $ac_try) 2>&5
17976  ac_status=$?
17977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978  (exit $ac_status); }; }; then
17979  #eval "$as_ac_var=yes" # zzz remark
17980  eval "$as_ac_var=no" #zzz add
17981else
17982  echo "$as_me: failed program was:" >&5
17983sed 's/^/| /' conftest.$ac_ext >&5
17984
17985eval "$as_ac_var=no"
17986fi
17987rm -f conftest.err conftest.$ac_objext \
17988      conftest$ac_exeext conftest.$ac_ext
17989fi
17990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17992if test `eval echo '${'$as_ac_var'}'` = yes; then
17993  cat >>confdefs.h <<_ACEOF
17994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17995_ACEOF
17996fi
17997done
17998
17999
18000
18001
18002
18003
18004
18005for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
18006do
18007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18008echo "$as_me:$LINENO: checking for $ac_func" >&5
18009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18010if eval "test \"\${$as_ac_var+set}\" = set"; then
18011  echo $ECHO_N "(cached) $ECHO_C" >&6
18012else
18013  cat >conftest.$ac_ext <<_ACEOF
18014/* confdefs.h.  */
18015_ACEOF
18016cat confdefs.h >>conftest.$ac_ext
18017cat >>conftest.$ac_ext <<_ACEOF
18018/* end confdefs.h.  */
18019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18020   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18021#define $ac_func innocuous_$ac_func
18022
18023/* System header to define __stub macros and hopefully few prototypes,
18024    which can conflict with char $ac_func (); below.
18025    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18026    <limits.h> exists even on freestanding compilers.  */
18027
18028#ifdef __STDC__
18029# include <limits.h>
18030#else
18031# include <assert.h>
18032#endif
18033
18034#undef $ac_func
18035
18036/* Override any gcc2 internal prototype to avoid an error.  */
18037#ifdef __cplusplus
18038extern "C"
18039{
18040#endif
18041/* We use char because int might match the return type of a gcc2
18042   builtin and then its argument prototype would still apply.  */
18043char $ac_func ();
18044/* The GNU C library defines this for functions which it implements
18045    to always fail with ENOSYS.  Some functions are actually named
18046    something starting with __ and the normal name is an alias.  */
18047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18048choke me
18049#else
18050char (*f) () = $ac_func;
18051#endif
18052#ifdef __cplusplus
18053}
18054#endif
18055
18056int
18057main ()
18058{
18059return f != $ac_func;
18060  ;
18061  return 0;
18062}
18063_ACEOF
18064rm -f conftest.$ac_objext conftest$ac_exeext
18065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18066  (eval $ac_link) 2>conftest.er1
18067  ac_status=$?
18068  grep -v '^ *+' conftest.er1 >conftest.err
18069  rm -f conftest.er1
18070  cat conftest.err >&5
18071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072  (exit $ac_status); } &&
18073	 { ac_try='test -z "$ac_c_werror_flag"
18074			 || test ! -s conftest.err'
18075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076  (eval $ac_try) 2>&5
18077  ac_status=$?
18078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079  (exit $ac_status); }; } &&
18080	 { ac_try='test -s conftest$ac_exeext'
18081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082  (eval $ac_try) 2>&5
18083  ac_status=$?
18084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085  (exit $ac_status); }; }; then
18086#  eval "$as_ac_var=yes" #zzz remark
18087  eval "$as_ac_var=no" #zzz add
18088else
18089  echo "$as_me: failed program was:" >&5
18090sed 's/^/| /' conftest.$ac_ext >&5
18091
18092eval "$as_ac_var=no"
18093fi
18094rm -f conftest.err conftest.$ac_objext \
18095      conftest$ac_exeext conftest.$ac_ext
18096fi
18097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18098echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18099if test `eval echo '${'$as_ac_var'}'` = yes; then
18100  cat >>confdefs.h <<_ACEOF
18101#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18102_ACEOF
18103fi
18104done
18105
18106
18107
18108
18109
18110for ac_func in open64 _open64 __open64 creat64
18111do
18112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18113echo "$as_me:$LINENO: checking for $ac_func" >&5
18114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18115if eval "test \"\${$as_ac_var+set}\" = set"; then
18116  echo $ECHO_N "(cached) $ECHO_C" >&6
18117else
18118  cat >conftest.$ac_ext <<_ACEOF
18119/* confdefs.h.  */
18120_ACEOF
18121cat confdefs.h >>conftest.$ac_ext
18122cat >>conftest.$ac_ext <<_ACEOF
18123/* end confdefs.h.  */
18124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18125   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18126#define $ac_func innocuous_$ac_func
18127
18128/* System header to define __stub macros and hopefully few prototypes,
18129    which can conflict with char $ac_func (); below.
18130    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18131    <limits.h> exists even on freestanding compilers.  */
18132
18133#ifdef __STDC__
18134# include <limits.h>
18135#else
18136# include <assert.h>
18137#endif
18138
18139#undef $ac_func
18140
18141/* Override any gcc2 internal prototype to avoid an error.  */
18142#ifdef __cplusplus
18143extern "C"
18144{
18145#endif
18146/* We use char because int might match the return type of a gcc2
18147   builtin and then its argument prototype would still apply.  */
18148char $ac_func ();
18149/* The GNU C library defines this for functions which it implements
18150    to always fail with ENOSYS.  Some functions are actually named
18151    something starting with __ and the normal name is an alias.  */
18152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18153choke me
18154#else
18155char (*f) () = $ac_func;
18156#endif
18157#ifdef __cplusplus
18158}
18159#endif
18160
18161int
18162main ()
18163{
18164return f != $ac_func;
18165  ;
18166  return 0;
18167}
18168_ACEOF
18169rm -f conftest.$ac_objext conftest$ac_exeext
18170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18171  (eval $ac_link) 2>conftest.er1
18172  ac_status=$?
18173  grep -v '^ *+' conftest.er1 >conftest.err
18174  rm -f conftest.er1
18175  cat conftest.err >&5
18176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177  (exit $ac_status); } &&
18178	 { ac_try='test -z "$ac_c_werror_flag"
18179			 || test ! -s conftest.err'
18180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181  (eval $ac_try) 2>&5
18182  ac_status=$?
18183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184  (exit $ac_status); }; } &&
18185	 { ac_try='test -s conftest$ac_exeext'
18186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187  (eval $ac_try) 2>&5
18188  ac_status=$?
18189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190  (exit $ac_status); }; }; then
18191  eval "$as_ac_var=yes"
18192else
18193  echo "$as_me: failed program was:" >&5
18194sed 's/^/| /' conftest.$ac_ext >&5
18195
18196eval "$as_ac_var=no"
18197fi
18198rm -f conftest.err conftest.$ac_objext \
18199      conftest$ac_exeext conftest.$ac_ext
18200fi
18201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18203if test `eval echo '${'$as_ac_var'}'` = yes; then
18204  cat >>confdefs.h <<_ACEOF
18205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18206_ACEOF
18207
18208fi
18209done
18210
18211
18212#
18213#
18214# //////////////////////////////////////////
18215# commented out because we can't test on
18216# cross compile builds. (we use uClibc anyway)
18217#
18218if false; then
18219case "$host_os" in
18220    *linux*)
18221       # glibc <= 2.3.2 has a broken getgrouplist
18222       if test "$cross_compiling" = yes; then
18223  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18224See \`config.log' for more details." >&5
18225echo "$as_me: error: cannot run test program while cross compiling
18226See \`config.log' for more details." >&2;}
18227   { (exit 1); exit 1; }; }
18228else
18229  cat >conftest.$ac_ext <<_ACEOF
18230/* confdefs.h.  */
18231_ACEOF
18232cat confdefs.h >>conftest.$ac_ext
18233cat >>conftest.$ac_ext <<_ACEOF
18234/* end confdefs.h.  */
18235
18236#include <unistd.h>
18237#include <sys/utsname.h>
18238main() {
18239       /* glibc up to 2.3 has a broken getgrouplist */
18240#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
18241       int libc_major = __GLIBC__;
18242       int libc_minor = __GLIBC_MINOR__;
18243
18244       if (libc_major < 2)
18245              exit(1);
18246       if ((libc_major == 2) && (libc_minor <= 3))
18247              exit(1);
18248#endif
18249       exit(0);
18250}
18251
18252_ACEOF
18253rm -f conftest$ac_exeext
18254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255  (eval $ac_link) 2>&5
18256  ac_status=$?
18257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260  (eval $ac_try) 2>&5
18261  ac_status=$?
18262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263  (exit $ac_status); }; }; then
18264  linux_getgrouplist_ok=yes
18265else
18266  echo "$as_me: program exited with status $ac_status" >&5
18267echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
18269
18270( exit $ac_status )
18271linux_getgrouplist_ok=no
18272fi
18273rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18274fi
18275       if test x"$linux_getgrouplist_ok" = x"yes"; then
18276
18277cat >>confdefs.h <<\_ACEOF
18278#define HAVE_GETGROUPLIST 1
18279_ACEOF
18280
18281       fi
18282       ;;
18283    *)
18284
18285for ac_func in getgrouplist
18286do
18287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18288echo "$as_me:$LINENO: checking for $ac_func" >&5
18289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18290if eval "test \"\${$as_ac_var+set}\" = set"; then
18291  echo $ECHO_N "(cached) $ECHO_C" >&6
18292else
18293  cat >conftest.$ac_ext <<_ACEOF
18294/* confdefs.h.  */
18295_ACEOF
18296cat confdefs.h >>conftest.$ac_ext
18297cat >>conftest.$ac_ext <<_ACEOF
18298/* end confdefs.h.  */
18299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18300   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18301#define $ac_func innocuous_$ac_func
18302
18303/* System header to define __stub macros and hopefully few prototypes,
18304    which can conflict with char $ac_func (); below.
18305    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18306    <limits.h> exists even on freestanding compilers.  */
18307
18308#ifdef __STDC__
18309# include <limits.h>
18310#else
18311# include <assert.h>
18312#endif
18313
18314#undef $ac_func
18315
18316/* Override any gcc2 internal prototype to avoid an error.  */
18317#ifdef __cplusplus
18318extern "C"
18319{
18320#endif
18321/* We use char because int might match the return type of a gcc2
18322   builtin and then its argument prototype would still apply.  */
18323char $ac_func ();
18324/* The GNU C library defines this for functions which it implements
18325    to always fail with ENOSYS.  Some functions are actually named
18326    something starting with __ and the normal name is an alias.  */
18327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18328choke me
18329#else
18330char (*f) () = $ac_func;
18331#endif
18332#ifdef __cplusplus
18333}
18334#endif
18335
18336int
18337main ()
18338{
18339return f != $ac_func;
18340  ;
18341  return 0;
18342}
18343_ACEOF
18344rm -f conftest.$ac_objext conftest$ac_exeext
18345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18346  (eval $ac_link) 2>conftest.er1
18347  ac_status=$?
18348  grep -v '^ *+' conftest.er1 >conftest.err
18349  rm -f conftest.er1
18350  cat conftest.err >&5
18351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352  (exit $ac_status); } &&
18353	 { ac_try='test -z "$ac_c_werror_flag"
18354			 || test ! -s conftest.err'
18355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356  (eval $ac_try) 2>&5
18357  ac_status=$?
18358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359  (exit $ac_status); }; } &&
18360	 { ac_try='test -s conftest$ac_exeext'
18361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362  (eval $ac_try) 2>&5
18363  ac_status=$?
18364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); }; }; then
18366  eval "$as_ac_var=yes"
18367else
18368  echo "$as_me: failed program was:" >&5
18369sed 's/^/| /' conftest.$ac_ext >&5
18370
18371eval "$as_ac_var=no"
18372fi
18373rm -f conftest.err conftest.$ac_objext \
18374      conftest$ac_exeext conftest.$ac_ext
18375fi
18376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18378if test `eval echo '${'$as_ac_var'}'` = yes; then
18379  cat >>confdefs.h <<_ACEOF
18380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18381_ACEOF
18382
18383fi
18384done
18385
18386       ;;
18387esac
18388
18389fi
18390# //////////////////////////////////////////
18391#
18392# stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
18393#
18394
18395if test x$ac_cv_func_stat64 = xno ; then
18396  echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
18397echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
18398  cat >conftest.$ac_ext <<_ACEOF
18399/* confdefs.h.  */
18400_ACEOF
18401cat confdefs.h >>conftest.$ac_ext
18402cat >>conftest.$ac_ext <<_ACEOF
18403/* end confdefs.h.  */
18404
18405#if defined(HAVE_UNISTD_H)
18406#include <unistd.h>
18407#endif
18408#include <sys/stat.h>
18409
18410int
18411main ()
18412{
18413struct stat64 st64; exit(stat64(".",&st64));
18414  ;
18415  return 0;
18416}
18417_ACEOF
18418rm -f conftest.$ac_objext conftest$ac_exeext
18419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420  (eval $ac_link) 2>conftest.er1
18421  ac_status=$?
18422  grep -v '^ *+' conftest.er1 >conftest.err
18423  rm -f conftest.er1
18424  cat conftest.err >&5
18425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426  (exit $ac_status); } &&
18427	 { ac_try='test -z "$ac_c_werror_flag"
18428			 || test ! -s conftest.err'
18429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430  (eval $ac_try) 2>&5
18431  ac_status=$?
18432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433  (exit $ac_status); }; } &&
18434	 { ac_try='test -s conftest$ac_exeext'
18435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436  (eval $ac_try) 2>&5
18437  ac_status=$?
18438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439  (exit $ac_status); }; }; then
18440  ac_cv_func_stat64=yes
18441else
18442  echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445fi
18446rm -f conftest.err conftest.$ac_objext \
18447      conftest$ac_exeext conftest.$ac_ext
18448  echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
18449echo "${ECHO_T}$ac_cv_func_stat64" >&6
18450  if test x$ac_cv_func_stat64 = xyes ; then
18451
18452cat >>confdefs.h <<\_ACEOF
18453#define HAVE_STAT64 1
18454_ACEOF
18455
18456  fi
18457fi
18458
18459if test x$ac_cv_func_lstat64 = xno ; then
18460  echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
18461echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
18462  cat >conftest.$ac_ext <<_ACEOF
18463/* confdefs.h.  */
18464_ACEOF
18465cat confdefs.h >>conftest.$ac_ext
18466cat >>conftest.$ac_ext <<_ACEOF
18467/* end confdefs.h.  */
18468
18469#if defined(HAVE_UNISTD_H)
18470#include <unistd.h>
18471#endif
18472#include <sys/stat.h>
18473
18474int
18475main ()
18476{
18477struct stat64 st64; exit(lstat64(".",&st64));
18478  ;
18479  return 0;
18480}
18481_ACEOF
18482rm -f conftest.$ac_objext conftest$ac_exeext
18483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18484  (eval $ac_link) 2>conftest.er1
18485  ac_status=$?
18486  grep -v '^ *+' conftest.er1 >conftest.err
18487  rm -f conftest.er1
18488  cat conftest.err >&5
18489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490  (exit $ac_status); } &&
18491	 { ac_try='test -z "$ac_c_werror_flag"
18492			 || test ! -s conftest.err'
18493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494  (eval $ac_try) 2>&5
18495  ac_status=$?
18496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497  (exit $ac_status); }; } &&
18498	 { ac_try='test -s conftest$ac_exeext'
18499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500  (eval $ac_try) 2>&5
18501  ac_status=$?
18502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503  (exit $ac_status); }; }; then
18504  ac_cv_func_lstat64=yes
18505else
18506  echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509fi
18510rm -f conftest.err conftest.$ac_objext \
18511      conftest$ac_exeext conftest.$ac_ext
18512  echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
18513echo "${ECHO_T}$ac_cv_func_lstat64" >&6
18514  if test x$ac_cv_func_lstat64 = xyes ; then
18515    cat >>confdefs.h <<\_ACEOF
18516#define HAVE_LSTAT64 Whether lstat64() is available
18517_ACEOF
18518
18519  fi
18520fi
18521
18522if test x$ac_cv_func_fstat64 = xno ; then
18523  echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
18524echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
18525  cat >conftest.$ac_ext <<_ACEOF
18526/* confdefs.h.  */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
18530/* end confdefs.h.  */
18531
18532#if defined(HAVE_UNISTD_H)
18533#include <unistd.h>
18534#endif
18535#include <sys/stat.h>
18536
18537int
18538main ()
18539{
18540struct stat64 st64; exit(fstat64(0,&st64));
18541  ;
18542  return 0;
18543}
18544_ACEOF
18545rm -f conftest.$ac_objext conftest$ac_exeext
18546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547  (eval $ac_link) 2>conftest.er1
18548  ac_status=$?
18549  grep -v '^ *+' conftest.er1 >conftest.err
18550  rm -f conftest.er1
18551  cat conftest.err >&5
18552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553  (exit $ac_status); } &&
18554	 { ac_try='test -z "$ac_c_werror_flag"
18555			 || test ! -s conftest.err'
18556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557  (eval $ac_try) 2>&5
18558  ac_status=$?
18559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560  (exit $ac_status); }; } &&
18561	 { ac_try='test -s conftest$ac_exeext'
18562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563  (eval $ac_try) 2>&5
18564  ac_status=$?
18565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566  (exit $ac_status); }; }; then
18567  ac_cv_func_fstat64=yes
18568else
18569  echo "$as_me: failed program was:" >&5
18570sed 's/^/| /' conftest.$ac_ext >&5
18571
18572fi
18573rm -f conftest.err conftest.$ac_objext \
18574      conftest$ac_exeext conftest.$ac_ext
18575  echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
18576echo "${ECHO_T}$ac_cv_func_fstat64" >&6
18577  if test x$ac_cv_func_fstat64 = xyes ; then
18578
18579cat >>confdefs.h <<\_ACEOF
18580#define HAVE_FSTAT64 1
18581_ACEOF
18582
18583  fi
18584fi
18585
18586#####################################
18587# we might need the resolv library on some systems
18588
18589echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
18590echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
18591if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
18592  echo $ECHO_N "(cached) $ECHO_C" >&6
18593else
18594  ac_check_lib_save_LIBS=$LIBS
18595LIBS="-lresolv  $LIBS"
18596cat >conftest.$ac_ext <<_ACEOF
18597/* confdefs.h.  */
18598_ACEOF
18599cat confdefs.h >>conftest.$ac_ext
18600cat >>conftest.$ac_ext <<_ACEOF
18601/* end confdefs.h.  */
18602
18603/* Override any gcc2 internal prototype to avoid an error.  */
18604#ifdef __cplusplus
18605extern "C"
18606#endif
18607/* We use char because int might match the return type of a gcc2
18608   builtin and then its argument prototype would still apply.  */
18609char dn_expand ();
18610int
18611main ()
18612{
18613dn_expand ();
18614  ;
18615  return 0;
18616}
18617_ACEOF
18618rm -f conftest.$ac_objext conftest$ac_exeext
18619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18620  (eval $ac_link) 2>conftest.er1
18621  ac_status=$?
18622  grep -v '^ *+' conftest.er1 >conftest.err
18623  rm -f conftest.er1
18624  cat conftest.err >&5
18625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626  (exit $ac_status); } &&
18627	 { ac_try='test -z "$ac_c_werror_flag"
18628			 || test ! -s conftest.err'
18629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630  (eval $ac_try) 2>&5
18631  ac_status=$?
18632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633  (exit $ac_status); }; } &&
18634	 { ac_try='test -s conftest$ac_exeext'
18635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636  (eval $ac_try) 2>&5
18637  ac_status=$?
18638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639  (exit $ac_status); }; }; then
18640  ac_cv_lib_resolv_dn_expand=yes
18641else
18642  echo "$as_me: failed program was:" >&5
18643sed 's/^/| /' conftest.$ac_ext >&5
18644
18645ac_cv_lib_resolv_dn_expand=no
18646fi
18647rm -f conftest.err conftest.$ac_objext \
18648      conftest$ac_exeext conftest.$ac_ext
18649LIBS=$ac_check_lib_save_LIBS
18650fi
18651echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
18652echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
18653if test $ac_cv_lib_resolv_dn_expand = yes; then
18654  cat >>confdefs.h <<_ACEOF
18655#define HAVE_LIBRESOLV 1
18656_ACEOF
18657
18658  LIBS="-lresolv $LIBS"
18659
18660fi
18661
18662
18663#
18664# Check for the functions putprpwnam, set_auth_parameters,
18665# getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
18666# Needed for OSF1 and HPUX.
18667#
18668
18669case "$LIBS" in
18670  *-lsecurity*)
18671for ac_func in putprpwnam
18672do
18673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674echo "$as_me:$LINENO: checking for $ac_func" >&5
18675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18676if eval "test \"\${$as_ac_var+set}\" = set"; then
18677  echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679  cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h.  */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h.  */
18685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18687#define $ac_func innocuous_$ac_func
18688
18689/* System header to define __stub macros and hopefully few prototypes,
18690    which can conflict with char $ac_func (); below.
18691    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692    <limits.h> exists even on freestanding compilers.  */
18693
18694#ifdef __STDC__
18695# include <limits.h>
18696#else
18697# include <assert.h>
18698#endif
18699
18700#undef $ac_func
18701
18702/* Override any gcc2 internal prototype to avoid an error.  */
18703#ifdef __cplusplus
18704extern "C"
18705{
18706#endif
18707/* We use char because int might match the return type of a gcc2
18708   builtin and then its argument prototype would still apply.  */
18709char $ac_func ();
18710/* The GNU C library defines this for functions which it implements
18711    to always fail with ENOSYS.  Some functions are actually named
18712    something starting with __ and the normal name is an alias.  */
18713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18714choke me
18715#else
18716char (*f) () = $ac_func;
18717#endif
18718#ifdef __cplusplus
18719}
18720#endif
18721
18722int
18723main ()
18724{
18725return f != $ac_func;
18726  ;
18727  return 0;
18728}
18729_ACEOF
18730rm -f conftest.$ac_objext conftest$ac_exeext
18731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18732  (eval $ac_link) 2>conftest.er1
18733  ac_status=$?
18734  grep -v '^ *+' conftest.er1 >conftest.err
18735  rm -f conftest.er1
18736  cat conftest.err >&5
18737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738  (exit $ac_status); } &&
18739	 { ac_try='test -z "$ac_c_werror_flag"
18740			 || test ! -s conftest.err'
18741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742  (eval $ac_try) 2>&5
18743  ac_status=$?
18744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745  (exit $ac_status); }; } &&
18746	 { ac_try='test -s conftest$ac_exeext'
18747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748  (eval $ac_try) 2>&5
18749  ac_status=$?
18750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751  (exit $ac_status); }; }; then
18752  eval "$as_ac_var=yes"
18753else
18754  echo "$as_me: failed program was:" >&5
18755sed 's/^/| /' conftest.$ac_ext >&5
18756
18757eval "$as_ac_var=no"
18758fi
18759rm -f conftest.err conftest.$ac_objext \
18760      conftest$ac_exeext conftest.$ac_ext
18761fi
18762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18764if test `eval echo '${'$as_ac_var'}'` = yes; then
18765  cat >>confdefs.h <<_ACEOF
18766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18767_ACEOF
18768
18769fi
18770done
18771 ;;
18772  *)
18773echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
18774echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
18775if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
18776  echo $ECHO_N "(cached) $ECHO_C" >&6
18777else
18778  ac_check_lib_save_LIBS=$LIBS
18779LIBS="-lsecurity  $LIBS"
18780cat >conftest.$ac_ext <<_ACEOF
18781/* confdefs.h.  */
18782_ACEOF
18783cat confdefs.h >>conftest.$ac_ext
18784cat >>conftest.$ac_ext <<_ACEOF
18785/* end confdefs.h.  */
18786
18787/* Override any gcc2 internal prototype to avoid an error.  */
18788#ifdef __cplusplus
18789extern "C"
18790#endif
18791/* We use char because int might match the return type of a gcc2
18792   builtin and then its argument prototype would still apply.  */
18793char putprpwnam ();
18794int
18795main ()
18796{
18797putprpwnam ();
18798  ;
18799  return 0;
18800}
18801_ACEOF
18802rm -f conftest.$ac_objext conftest$ac_exeext
18803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18804  (eval $ac_link) 2>conftest.er1
18805  ac_status=$?
18806  grep -v '^ *+' conftest.er1 >conftest.err
18807  rm -f conftest.er1
18808  cat conftest.err >&5
18809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810  (exit $ac_status); } &&
18811	 { ac_try='test -z "$ac_c_werror_flag"
18812			 || test ! -s conftest.err'
18813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814  (eval $ac_try) 2>&5
18815  ac_status=$?
18816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817  (exit $ac_status); }; } &&
18818	 { ac_try='test -s conftest$ac_exeext'
18819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820  (eval $ac_try) 2>&5
18821  ac_status=$?
18822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823  (exit $ac_status); }; }; then
18824  ac_cv_lib_security_putprpwnam=yes
18825else
18826  echo "$as_me: failed program was:" >&5
18827sed 's/^/| /' conftest.$ac_ext >&5
18828
18829ac_cv_lib_security_putprpwnam=no
18830fi
18831rm -f conftest.err conftest.$ac_objext \
18832      conftest$ac_exeext conftest.$ac_ext
18833LIBS=$ac_check_lib_save_LIBS
18834fi
18835echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
18836echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
18837if test $ac_cv_lib_security_putprpwnam = yes; then
18838  cat >>confdefs.h <<_ACEOF
18839#define HAVE_LIBSECURITY 1
18840_ACEOF
18841
18842  LIBS="-lsecurity $LIBS"
18843
18844fi
18845
18846
18847for ac_func in putprpwnam
18848do
18849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18850echo "$as_me:$LINENO: checking for $ac_func" >&5
18851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18852if eval "test \"\${$as_ac_var+set}\" = set"; then
18853  echo $ECHO_N "(cached) $ECHO_C" >&6
18854else
18855  cat >conftest.$ac_ext <<_ACEOF
18856/* confdefs.h.  */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h.  */
18861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18862   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18863#define $ac_func innocuous_$ac_func
18864
18865/* System header to define __stub macros and hopefully few prototypes,
18866    which can conflict with char $ac_func (); below.
18867    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868    <limits.h> exists even on freestanding compilers.  */
18869
18870#ifdef __STDC__
18871# include <limits.h>
18872#else
18873# include <assert.h>
18874#endif
18875
18876#undef $ac_func
18877
18878/* Override any gcc2 internal prototype to avoid an error.  */
18879#ifdef __cplusplus
18880extern "C"
18881{
18882#endif
18883/* We use char because int might match the return type of a gcc2
18884   builtin and then its argument prototype would still apply.  */
18885char $ac_func ();
18886/* The GNU C library defines this for functions which it implements
18887    to always fail with ENOSYS.  Some functions are actually named
18888    something starting with __ and the normal name is an alias.  */
18889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18890choke me
18891#else
18892char (*f) () = $ac_func;
18893#endif
18894#ifdef __cplusplus
18895}
18896#endif
18897
18898int
18899main ()
18900{
18901return f != $ac_func;
18902  ;
18903  return 0;
18904}
18905_ACEOF
18906rm -f conftest.$ac_objext conftest$ac_exeext
18907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18908  (eval $ac_link) 2>conftest.er1
18909  ac_status=$?
18910  grep -v '^ *+' conftest.er1 >conftest.err
18911  rm -f conftest.er1
18912  cat conftest.err >&5
18913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914  (exit $ac_status); } &&
18915	 { ac_try='test -z "$ac_c_werror_flag"
18916			 || test ! -s conftest.err'
18917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918  (eval $ac_try) 2>&5
18919  ac_status=$?
18920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921  (exit $ac_status); }; } &&
18922	 { ac_try='test -s conftest$ac_exeext'
18923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924  (eval $ac_try) 2>&5
18925  ac_status=$?
18926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927  (exit $ac_status); }; }; then
18928  eval "$as_ac_var=yes"
18929else
18930  echo "$as_me: failed program was:" >&5
18931sed 's/^/| /' conftest.$ac_ext >&5
18932
18933eval "$as_ac_var=no"
18934fi
18935rm -f conftest.err conftest.$ac_objext \
18936      conftest$ac_exeext conftest.$ac_ext
18937fi
18938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18939echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18940if test `eval echo '${'$as_ac_var'}'` = yes; then
18941  cat >>confdefs.h <<_ACEOF
18942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18943_ACEOF
18944
18945fi
18946done
18947
18948  ;;
18949  esac
18950
18951case "$LIBS" in
18952  *-lsec*)
18953for ac_func in putprpwnam
18954do
18955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18956echo "$as_me:$LINENO: checking for $ac_func" >&5
18957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18958if eval "test \"\${$as_ac_var+set}\" = set"; then
18959  echo $ECHO_N "(cached) $ECHO_C" >&6
18960else
18961  cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h.  */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h.  */
18967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18968   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18969#define $ac_func innocuous_$ac_func
18970
18971/* System header to define __stub macros and hopefully few prototypes,
18972    which can conflict with char $ac_func (); below.
18973    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18974    <limits.h> exists even on freestanding compilers.  */
18975
18976#ifdef __STDC__
18977# include <limits.h>
18978#else
18979# include <assert.h>
18980#endif
18981
18982#undef $ac_func
18983
18984/* Override any gcc2 internal prototype to avoid an error.  */
18985#ifdef __cplusplus
18986extern "C"
18987{
18988#endif
18989/* We use char because int might match the return type of a gcc2
18990   builtin and then its argument prototype would still apply.  */
18991char $ac_func ();
18992/* The GNU C library defines this for functions which it implements
18993    to always fail with ENOSYS.  Some functions are actually named
18994    something starting with __ and the normal name is an alias.  */
18995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18996choke me
18997#else
18998char (*f) () = $ac_func;
18999#endif
19000#ifdef __cplusplus
19001}
19002#endif
19003
19004int
19005main ()
19006{
19007return f != $ac_func;
19008  ;
19009  return 0;
19010}
19011_ACEOF
19012rm -f conftest.$ac_objext conftest$ac_exeext
19013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014  (eval $ac_link) 2>conftest.er1
19015  ac_status=$?
19016  grep -v '^ *+' conftest.er1 >conftest.err
19017  rm -f conftest.er1
19018  cat conftest.err >&5
19019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020  (exit $ac_status); } &&
19021	 { ac_try='test -z "$ac_c_werror_flag"
19022			 || test ! -s conftest.err'
19023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024  (eval $ac_try) 2>&5
19025  ac_status=$?
19026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027  (exit $ac_status); }; } &&
19028	 { ac_try='test -s conftest$ac_exeext'
19029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030  (eval $ac_try) 2>&5
19031  ac_status=$?
19032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033  (exit $ac_status); }; }; then
19034  eval "$as_ac_var=yes"
19035else
19036  echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
19039eval "$as_ac_var=no"
19040fi
19041rm -f conftest.err conftest.$ac_objext \
19042      conftest$ac_exeext conftest.$ac_ext
19043fi
19044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19046if test `eval echo '${'$as_ac_var'}'` = yes; then
19047  cat >>confdefs.h <<_ACEOF
19048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19049_ACEOF
19050
19051fi
19052done
19053 ;;
19054  *)
19055echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
19056echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
19057if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
19058  echo $ECHO_N "(cached) $ECHO_C" >&6
19059else
19060  ac_check_lib_save_LIBS=$LIBS
19061LIBS="-lsec  $LIBS"
19062cat >conftest.$ac_ext <<_ACEOF
19063/* confdefs.h.  */
19064_ACEOF
19065cat confdefs.h >>conftest.$ac_ext
19066cat >>conftest.$ac_ext <<_ACEOF
19067/* end confdefs.h.  */
19068
19069/* Override any gcc2 internal prototype to avoid an error.  */
19070#ifdef __cplusplus
19071extern "C"
19072#endif
19073/* We use char because int might match the return type of a gcc2
19074   builtin and then its argument prototype would still apply.  */
19075char putprpwnam ();
19076int
19077main ()
19078{
19079putprpwnam ();
19080  ;
19081  return 0;
19082}
19083_ACEOF
19084rm -f conftest.$ac_objext conftest$ac_exeext
19085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086  (eval $ac_link) 2>conftest.er1
19087  ac_status=$?
19088  grep -v '^ *+' conftest.er1 >conftest.err
19089  rm -f conftest.er1
19090  cat conftest.err >&5
19091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092  (exit $ac_status); } &&
19093	 { ac_try='test -z "$ac_c_werror_flag"
19094			 || test ! -s conftest.err'
19095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096  (eval $ac_try) 2>&5
19097  ac_status=$?
19098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099  (exit $ac_status); }; } &&
19100	 { ac_try='test -s conftest$ac_exeext'
19101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102  (eval $ac_try) 2>&5
19103  ac_status=$?
19104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105  (exit $ac_status); }; }; then
19106  ac_cv_lib_sec_putprpwnam=yes
19107else
19108  echo "$as_me: failed program was:" >&5
19109sed 's/^/| /' conftest.$ac_ext >&5
19110
19111ac_cv_lib_sec_putprpwnam=no
19112fi
19113rm -f conftest.err conftest.$ac_objext \
19114      conftest$ac_exeext conftest.$ac_ext
19115LIBS=$ac_check_lib_save_LIBS
19116fi
19117echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
19118echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
19119if test $ac_cv_lib_sec_putprpwnam = yes; then
19120  cat >>confdefs.h <<_ACEOF
19121#define HAVE_LIBSEC 1
19122_ACEOF
19123
19124  LIBS="-lsec $LIBS"
19125
19126fi
19127
19128
19129for ac_func in putprpwnam
19130do
19131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19132echo "$as_me:$LINENO: checking for $ac_func" >&5
19133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19134if eval "test \"\${$as_ac_var+set}\" = set"; then
19135  echo $ECHO_N "(cached) $ECHO_C" >&6
19136else
19137  cat >conftest.$ac_ext <<_ACEOF
19138/* confdefs.h.  */
19139_ACEOF
19140cat confdefs.h >>conftest.$ac_ext
19141cat >>conftest.$ac_ext <<_ACEOF
19142/* end confdefs.h.  */
19143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19144   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19145#define $ac_func innocuous_$ac_func
19146
19147/* System header to define __stub macros and hopefully few prototypes,
19148    which can conflict with char $ac_func (); below.
19149    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19150    <limits.h> exists even on freestanding compilers.  */
19151
19152#ifdef __STDC__
19153# include <limits.h>
19154#else
19155# include <assert.h>
19156#endif
19157
19158#undef $ac_func
19159
19160/* Override any gcc2 internal prototype to avoid an error.  */
19161#ifdef __cplusplus
19162extern "C"
19163{
19164#endif
19165/* We use char because int might match the return type of a gcc2
19166   builtin and then its argument prototype would still apply.  */
19167char $ac_func ();
19168/* The GNU C library defines this for functions which it implements
19169    to always fail with ENOSYS.  Some functions are actually named
19170    something starting with __ and the normal name is an alias.  */
19171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19172choke me
19173#else
19174char (*f) () = $ac_func;
19175#endif
19176#ifdef __cplusplus
19177}
19178#endif
19179
19180int
19181main ()
19182{
19183return f != $ac_func;
19184  ;
19185  return 0;
19186}
19187_ACEOF
19188rm -f conftest.$ac_objext conftest$ac_exeext
19189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190  (eval $ac_link) 2>conftest.er1
19191  ac_status=$?
19192  grep -v '^ *+' conftest.er1 >conftest.err
19193  rm -f conftest.er1
19194  cat conftest.err >&5
19195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196  (exit $ac_status); } &&
19197	 { ac_try='test -z "$ac_c_werror_flag"
19198			 || test ! -s conftest.err'
19199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200  (eval $ac_try) 2>&5
19201  ac_status=$?
19202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203  (exit $ac_status); }; } &&
19204	 { ac_try='test -s conftest$ac_exeext'
19205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206  (eval $ac_try) 2>&5
19207  ac_status=$?
19208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209  (exit $ac_status); }; }; then
19210  eval "$as_ac_var=yes"
19211else
19212  echo "$as_me: failed program was:" >&5
19213sed 's/^/| /' conftest.$ac_ext >&5
19214
19215eval "$as_ac_var=no"
19216fi
19217rm -f conftest.err conftest.$ac_objext \
19218      conftest$ac_exeext conftest.$ac_ext
19219fi
19220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19222if test `eval echo '${'$as_ac_var'}'` = yes; then
19223  cat >>confdefs.h <<_ACEOF
19224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19225_ACEOF
19226
19227fi
19228done
19229
19230  ;;
19231  esac
19232
19233
19234case "$LIBS" in
19235  *-lsecurity*)
19236for ac_func in set_auth_parameters
19237do
19238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19239echo "$as_me:$LINENO: checking for $ac_func" >&5
19240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19241if eval "test \"\${$as_ac_var+set}\" = set"; then
19242  echo $ECHO_N "(cached) $ECHO_C" >&6
19243else
19244  cat >conftest.$ac_ext <<_ACEOF
19245/* confdefs.h.  */
19246_ACEOF
19247cat confdefs.h >>conftest.$ac_ext
19248cat >>conftest.$ac_ext <<_ACEOF
19249/* end confdefs.h.  */
19250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19251   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19252#define $ac_func innocuous_$ac_func
19253
19254/* System header to define __stub macros and hopefully few prototypes,
19255    which can conflict with char $ac_func (); below.
19256    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19257    <limits.h> exists even on freestanding compilers.  */
19258
19259#ifdef __STDC__
19260# include <limits.h>
19261#else
19262# include <assert.h>
19263#endif
19264
19265#undef $ac_func
19266
19267/* Override any gcc2 internal prototype to avoid an error.  */
19268#ifdef __cplusplus
19269extern "C"
19270{
19271#endif
19272/* We use char because int might match the return type of a gcc2
19273   builtin and then its argument prototype would still apply.  */
19274char $ac_func ();
19275/* The GNU C library defines this for functions which it implements
19276    to always fail with ENOSYS.  Some functions are actually named
19277    something starting with __ and the normal name is an alias.  */
19278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19279choke me
19280#else
19281char (*f) () = $ac_func;
19282#endif
19283#ifdef __cplusplus
19284}
19285#endif
19286
19287int
19288main ()
19289{
19290return f != $ac_func;
19291  ;
19292  return 0;
19293}
19294_ACEOF
19295rm -f conftest.$ac_objext conftest$ac_exeext
19296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19297  (eval $ac_link) 2>conftest.er1
19298  ac_status=$?
19299  grep -v '^ *+' conftest.er1 >conftest.err
19300  rm -f conftest.er1
19301  cat conftest.err >&5
19302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303  (exit $ac_status); } &&
19304	 { ac_try='test -z "$ac_c_werror_flag"
19305			 || test ! -s conftest.err'
19306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307  (eval $ac_try) 2>&5
19308  ac_status=$?
19309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310  (exit $ac_status); }; } &&
19311	 { ac_try='test -s conftest$ac_exeext'
19312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313  (eval $ac_try) 2>&5
19314  ac_status=$?
19315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316  (exit $ac_status); }; }; then
19317  eval "$as_ac_var=yes"
19318else
19319  echo "$as_me: failed program was:" >&5
19320sed 's/^/| /' conftest.$ac_ext >&5
19321
19322eval "$as_ac_var=no"
19323fi
19324rm -f conftest.err conftest.$ac_objext \
19325      conftest$ac_exeext conftest.$ac_ext
19326fi
19327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19329if test `eval echo '${'$as_ac_var'}'` = yes; then
19330  cat >>confdefs.h <<_ACEOF
19331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19332_ACEOF
19333
19334fi
19335done
19336 ;;
19337  *)
19338echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
19339echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
19340if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
19341  echo $ECHO_N "(cached) $ECHO_C" >&6
19342else
19343  ac_check_lib_save_LIBS=$LIBS
19344LIBS="-lsecurity  $LIBS"
19345cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h.  */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h.  */
19351
19352/* Override any gcc2 internal prototype to avoid an error.  */
19353#ifdef __cplusplus
19354extern "C"
19355#endif
19356/* We use char because int might match the return type of a gcc2
19357   builtin and then its argument prototype would still apply.  */
19358char set_auth_parameters ();
19359int
19360main ()
19361{
19362set_auth_parameters ();
19363  ;
19364  return 0;
19365}
19366_ACEOF
19367rm -f conftest.$ac_objext conftest$ac_exeext
19368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369  (eval $ac_link) 2>conftest.er1
19370  ac_status=$?
19371  grep -v '^ *+' conftest.er1 >conftest.err
19372  rm -f conftest.er1
19373  cat conftest.err >&5
19374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375  (exit $ac_status); } &&
19376	 { ac_try='test -z "$ac_c_werror_flag"
19377			 || test ! -s conftest.err'
19378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379  (eval $ac_try) 2>&5
19380  ac_status=$?
19381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382  (exit $ac_status); }; } &&
19383	 { ac_try='test -s conftest$ac_exeext'
19384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385  (eval $ac_try) 2>&5
19386  ac_status=$?
19387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388  (exit $ac_status); }; }; then
19389  ac_cv_lib_security_set_auth_parameters=yes
19390else
19391  echo "$as_me: failed program was:" >&5
19392sed 's/^/| /' conftest.$ac_ext >&5
19393
19394ac_cv_lib_security_set_auth_parameters=no
19395fi
19396rm -f conftest.err conftest.$ac_objext \
19397      conftest$ac_exeext conftest.$ac_ext
19398LIBS=$ac_check_lib_save_LIBS
19399fi
19400echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
19401echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
19402if test $ac_cv_lib_security_set_auth_parameters = yes; then
19403  cat >>confdefs.h <<_ACEOF
19404#define HAVE_LIBSECURITY 1
19405_ACEOF
19406
19407  LIBS="-lsecurity $LIBS"
19408
19409fi
19410
19411
19412for ac_func in set_auth_parameters
19413do
19414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19415echo "$as_me:$LINENO: checking for $ac_func" >&5
19416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19417if eval "test \"\${$as_ac_var+set}\" = set"; then
19418  echo $ECHO_N "(cached) $ECHO_C" >&6
19419else
19420  cat >conftest.$ac_ext <<_ACEOF
19421/* confdefs.h.  */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h.  */
19426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19427   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19428#define $ac_func innocuous_$ac_func
19429
19430/* System header to define __stub macros and hopefully few prototypes,
19431    which can conflict with char $ac_func (); below.
19432    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19433    <limits.h> exists even on freestanding compilers.  */
19434
19435#ifdef __STDC__
19436# include <limits.h>
19437#else
19438# include <assert.h>
19439#endif
19440
19441#undef $ac_func
19442
19443/* Override any gcc2 internal prototype to avoid an error.  */
19444#ifdef __cplusplus
19445extern "C"
19446{
19447#endif
19448/* We use char because int might match the return type of a gcc2
19449   builtin and then its argument prototype would still apply.  */
19450char $ac_func ();
19451/* The GNU C library defines this for functions which it implements
19452    to always fail with ENOSYS.  Some functions are actually named
19453    something starting with __ and the normal name is an alias.  */
19454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19455choke me
19456#else
19457char (*f) () = $ac_func;
19458#endif
19459#ifdef __cplusplus
19460}
19461#endif
19462
19463int
19464main ()
19465{
19466return f != $ac_func;
19467  ;
19468  return 0;
19469}
19470_ACEOF
19471rm -f conftest.$ac_objext conftest$ac_exeext
19472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473  (eval $ac_link) 2>conftest.er1
19474  ac_status=$?
19475  grep -v '^ *+' conftest.er1 >conftest.err
19476  rm -f conftest.er1
19477  cat conftest.err >&5
19478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479  (exit $ac_status); } &&
19480	 { ac_try='test -z "$ac_c_werror_flag"
19481			 || test ! -s conftest.err'
19482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483  (eval $ac_try) 2>&5
19484  ac_status=$?
19485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486  (exit $ac_status); }; } &&
19487	 { ac_try='test -s conftest$ac_exeext'
19488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489  (eval $ac_try) 2>&5
19490  ac_status=$?
19491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492  (exit $ac_status); }; }; then
19493  eval "$as_ac_var=yes"
19494else
19495  echo "$as_me: failed program was:" >&5
19496sed 's/^/| /' conftest.$ac_ext >&5
19497
19498eval "$as_ac_var=no"
19499fi
19500rm -f conftest.err conftest.$ac_objext \
19501      conftest$ac_exeext conftest.$ac_ext
19502fi
19503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19504echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19505if test `eval echo '${'$as_ac_var'}'` = yes; then
19506  cat >>confdefs.h <<_ACEOF
19507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19508_ACEOF
19509
19510fi
19511done
19512
19513  ;;
19514  esac
19515
19516case "$LIBS" in
19517  *-lsec*)
19518for ac_func in set_auth_parameters
19519do
19520as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19521echo "$as_me:$LINENO: checking for $ac_func" >&5
19522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19523if eval "test \"\${$as_ac_var+set}\" = set"; then
19524  echo $ECHO_N "(cached) $ECHO_C" >&6
19525else
19526  cat >conftest.$ac_ext <<_ACEOF
19527/* confdefs.h.  */
19528_ACEOF
19529cat confdefs.h >>conftest.$ac_ext
19530cat >>conftest.$ac_ext <<_ACEOF
19531/* end confdefs.h.  */
19532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19533   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19534#define $ac_func innocuous_$ac_func
19535
19536/* System header to define __stub macros and hopefully few prototypes,
19537    which can conflict with char $ac_func (); below.
19538    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19539    <limits.h> exists even on freestanding compilers.  */
19540
19541#ifdef __STDC__
19542# include <limits.h>
19543#else
19544# include <assert.h>
19545#endif
19546
19547#undef $ac_func
19548
19549/* Override any gcc2 internal prototype to avoid an error.  */
19550#ifdef __cplusplus
19551extern "C"
19552{
19553#endif
19554/* We use char because int might match the return type of a gcc2
19555   builtin and then its argument prototype would still apply.  */
19556char $ac_func ();
19557/* The GNU C library defines this for functions which it implements
19558    to always fail with ENOSYS.  Some functions are actually named
19559    something starting with __ and the normal name is an alias.  */
19560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19561choke me
19562#else
19563char (*f) () = $ac_func;
19564#endif
19565#ifdef __cplusplus
19566}
19567#endif
19568
19569int
19570main ()
19571{
19572return f != $ac_func;
19573  ;
19574  return 0;
19575}
19576_ACEOF
19577rm -f conftest.$ac_objext conftest$ac_exeext
19578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19579  (eval $ac_link) 2>conftest.er1
19580  ac_status=$?
19581  grep -v '^ *+' conftest.er1 >conftest.err
19582  rm -f conftest.er1
19583  cat conftest.err >&5
19584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585  (exit $ac_status); } &&
19586	 { ac_try='test -z "$ac_c_werror_flag"
19587			 || test ! -s conftest.err'
19588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589  (eval $ac_try) 2>&5
19590  ac_status=$?
19591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592  (exit $ac_status); }; } &&
19593	 { ac_try='test -s conftest$ac_exeext'
19594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595  (eval $ac_try) 2>&5
19596  ac_status=$?
19597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598  (exit $ac_status); }; }; then
19599  eval "$as_ac_var=yes"
19600else
19601  echo "$as_me: failed program was:" >&5
19602sed 's/^/| /' conftest.$ac_ext >&5
19603
19604eval "$as_ac_var=no"
19605fi
19606rm -f conftest.err conftest.$ac_objext \
19607      conftest$ac_exeext conftest.$ac_ext
19608fi
19609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19611if test `eval echo '${'$as_ac_var'}'` = yes; then
19612  cat >>confdefs.h <<_ACEOF
19613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19614_ACEOF
19615
19616fi
19617done
19618 ;;
19619  *)
19620echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
19621echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
19622if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
19623  echo $ECHO_N "(cached) $ECHO_C" >&6
19624else
19625  ac_check_lib_save_LIBS=$LIBS
19626LIBS="-lsec  $LIBS"
19627cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h.  */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h.  */
19633
19634/* Override any gcc2 internal prototype to avoid an error.  */
19635#ifdef __cplusplus
19636extern "C"
19637#endif
19638/* We use char because int might match the return type of a gcc2
19639   builtin and then its argument prototype would still apply.  */
19640char set_auth_parameters ();
19641int
19642main ()
19643{
19644set_auth_parameters ();
19645  ;
19646  return 0;
19647}
19648_ACEOF
19649rm -f conftest.$ac_objext conftest$ac_exeext
19650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651  (eval $ac_link) 2>conftest.er1
19652  ac_status=$?
19653  grep -v '^ *+' conftest.er1 >conftest.err
19654  rm -f conftest.er1
19655  cat conftest.err >&5
19656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657  (exit $ac_status); } &&
19658	 { ac_try='test -z "$ac_c_werror_flag"
19659			 || test ! -s conftest.err'
19660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661  (eval $ac_try) 2>&5
19662  ac_status=$?
19663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664  (exit $ac_status); }; } &&
19665	 { ac_try='test -s conftest$ac_exeext'
19666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667  (eval $ac_try) 2>&5
19668  ac_status=$?
19669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670  (exit $ac_status); }; }; then
19671  ac_cv_lib_sec_set_auth_parameters=yes
19672else
19673  echo "$as_me: failed program was:" >&5
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
19676ac_cv_lib_sec_set_auth_parameters=no
19677fi
19678rm -f conftest.err conftest.$ac_objext \
19679      conftest$ac_exeext conftest.$ac_ext
19680LIBS=$ac_check_lib_save_LIBS
19681fi
19682echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
19683echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
19684if test $ac_cv_lib_sec_set_auth_parameters = yes; then
19685  cat >>confdefs.h <<_ACEOF
19686#define HAVE_LIBSEC 1
19687_ACEOF
19688
19689  LIBS="-lsec $LIBS"
19690
19691fi
19692
19693
19694for ac_func in set_auth_parameters
19695do
19696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19697echo "$as_me:$LINENO: checking for $ac_func" >&5
19698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19699if eval "test \"\${$as_ac_var+set}\" = set"; then
19700  echo $ECHO_N "(cached) $ECHO_C" >&6
19701else
19702  cat >conftest.$ac_ext <<_ACEOF
19703/* confdefs.h.  */
19704_ACEOF
19705cat confdefs.h >>conftest.$ac_ext
19706cat >>conftest.$ac_ext <<_ACEOF
19707/* end confdefs.h.  */
19708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19709   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19710#define $ac_func innocuous_$ac_func
19711
19712/* System header to define __stub macros and hopefully few prototypes,
19713    which can conflict with char $ac_func (); below.
19714    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19715    <limits.h> exists even on freestanding compilers.  */
19716
19717#ifdef __STDC__
19718# include <limits.h>
19719#else
19720# include <assert.h>
19721#endif
19722
19723#undef $ac_func
19724
19725/* Override any gcc2 internal prototype to avoid an error.  */
19726#ifdef __cplusplus
19727extern "C"
19728{
19729#endif
19730/* We use char because int might match the return type of a gcc2
19731   builtin and then its argument prototype would still apply.  */
19732char $ac_func ();
19733/* The GNU C library defines this for functions which it implements
19734    to always fail with ENOSYS.  Some functions are actually named
19735    something starting with __ and the normal name is an alias.  */
19736#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19737choke me
19738#else
19739char (*f) () = $ac_func;
19740#endif
19741#ifdef __cplusplus
19742}
19743#endif
19744
19745int
19746main ()
19747{
19748return f != $ac_func;
19749  ;
19750  return 0;
19751}
19752_ACEOF
19753rm -f conftest.$ac_objext conftest$ac_exeext
19754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19755  (eval $ac_link) 2>conftest.er1
19756  ac_status=$?
19757  grep -v '^ *+' conftest.er1 >conftest.err
19758  rm -f conftest.er1
19759  cat conftest.err >&5
19760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761  (exit $ac_status); } &&
19762	 { ac_try='test -z "$ac_c_werror_flag"
19763			 || test ! -s conftest.err'
19764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765  (eval $ac_try) 2>&5
19766  ac_status=$?
19767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768  (exit $ac_status); }; } &&
19769	 { ac_try='test -s conftest$ac_exeext'
19770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771  (eval $ac_try) 2>&5
19772  ac_status=$?
19773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774  (exit $ac_status); }; }; then
19775  eval "$as_ac_var=yes"
19776else
19777  echo "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780eval "$as_ac_var=no"
19781fi
19782rm -f conftest.err conftest.$ac_objext \
19783      conftest$ac_exeext conftest.$ac_ext
19784fi
19785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19786echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19787if test `eval echo '${'$as_ac_var'}'` = yes; then
19788  cat >>confdefs.h <<_ACEOF
19789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19790_ACEOF
19791
19792fi
19793done
19794
19795  ;;
19796  esac
19797
19798
19799# UnixWare 7.x has its getspnam in -lgen
19800case "$LIBS" in
19801  *-lgen*)
19802for ac_func in getspnam
19803do
19804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19805echo "$as_me:$LINENO: checking for $ac_func" >&5
19806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19807if eval "test \"\${$as_ac_var+set}\" = set"; then
19808  echo $ECHO_N "(cached) $ECHO_C" >&6
19809else
19810  cat >conftest.$ac_ext <<_ACEOF
19811/* confdefs.h.  */
19812_ACEOF
19813cat confdefs.h >>conftest.$ac_ext
19814cat >>conftest.$ac_ext <<_ACEOF
19815/* end confdefs.h.  */
19816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19817   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19818#define $ac_func innocuous_$ac_func
19819
19820/* System header to define __stub macros and hopefully few prototypes,
19821    which can conflict with char $ac_func (); below.
19822    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19823    <limits.h> exists even on freestanding compilers.  */
19824
19825#ifdef __STDC__
19826# include <limits.h>
19827#else
19828# include <assert.h>
19829#endif
19830
19831#undef $ac_func
19832
19833/* Override any gcc2 internal prototype to avoid an error.  */
19834#ifdef __cplusplus
19835extern "C"
19836{
19837#endif
19838/* We use char because int might match the return type of a gcc2
19839   builtin and then its argument prototype would still apply.  */
19840char $ac_func ();
19841/* The GNU C library defines this for functions which it implements
19842    to always fail with ENOSYS.  Some functions are actually named
19843    something starting with __ and the normal name is an alias.  */
19844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19845choke me
19846#else
19847char (*f) () = $ac_func;
19848#endif
19849#ifdef __cplusplus
19850}
19851#endif
19852
19853int
19854main ()
19855{
19856return f != $ac_func;
19857  ;
19858  return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext conftest$ac_exeext
19862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19863  (eval $ac_link) 2>conftest.er1
19864  ac_status=$?
19865  grep -v '^ *+' conftest.er1 >conftest.err
19866  rm -f conftest.er1
19867  cat conftest.err >&5
19868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869  (exit $ac_status); } &&
19870	 { ac_try='test -z "$ac_c_werror_flag"
19871			 || test ! -s conftest.err'
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); }; } &&
19877	 { ac_try='test -s conftest$ac_exeext'
19878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879  (eval $ac_try) 2>&5
19880  ac_status=$?
19881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882  (exit $ac_status); }; }; then
19883  eval "$as_ac_var=yes"
19884else
19885  echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888eval "$as_ac_var=no"
19889fi
19890rm -f conftest.err conftest.$ac_objext \
19891      conftest$ac_exeext conftest.$ac_ext
19892fi
19893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19895if test `eval echo '${'$as_ac_var'}'` = yes; then
19896  cat >>confdefs.h <<_ACEOF
19897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19898_ACEOF
19899
19900fi
19901done
19902 ;;
19903  *)
19904echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
19905echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
19906if test "${ac_cv_lib_gen_getspnam+set}" = set; then
19907  echo $ECHO_N "(cached) $ECHO_C" >&6
19908else
19909  ac_check_lib_save_LIBS=$LIBS
19910LIBS="-lgen  $LIBS"
19911cat >conftest.$ac_ext <<_ACEOF
19912/* confdefs.h.  */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h.  */
19917
19918/* Override any gcc2 internal prototype to avoid an error.  */
19919#ifdef __cplusplus
19920extern "C"
19921#endif
19922/* We use char because int might match the return type of a gcc2
19923   builtin and then its argument prototype would still apply.  */
19924char getspnam ();
19925int
19926main ()
19927{
19928getspnam ();
19929  ;
19930  return 0;
19931}
19932_ACEOF
19933rm -f conftest.$ac_objext conftest$ac_exeext
19934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19935  (eval $ac_link) 2>conftest.er1
19936  ac_status=$?
19937  grep -v '^ *+' conftest.er1 >conftest.err
19938  rm -f conftest.er1
19939  cat conftest.err >&5
19940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941  (exit $ac_status); } &&
19942	 { ac_try='test -z "$ac_c_werror_flag"
19943			 || test ! -s conftest.err'
19944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945  (eval $ac_try) 2>&5
19946  ac_status=$?
19947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948  (exit $ac_status); }; } &&
19949	 { ac_try='test -s conftest$ac_exeext'
19950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951  (eval $ac_try) 2>&5
19952  ac_status=$?
19953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954  (exit $ac_status); }; }; then
19955  ac_cv_lib_gen_getspnam=yes
19956else
19957  echo "$as_me: failed program was:" >&5
19958sed 's/^/| /' conftest.$ac_ext >&5
19959
19960ac_cv_lib_gen_getspnam=no
19961fi
19962rm -f conftest.err conftest.$ac_objext \
19963      conftest$ac_exeext conftest.$ac_ext
19964LIBS=$ac_check_lib_save_LIBS
19965fi
19966echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
19967echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
19968if test $ac_cv_lib_gen_getspnam = yes; then
19969  cat >>confdefs.h <<_ACEOF
19970#define HAVE_LIBGEN 1
19971_ACEOF
19972
19973  LIBS="-lgen $LIBS"
19974
19975fi
19976
19977
19978for ac_func in getspnam
19979do
19980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19981echo "$as_me:$LINENO: checking for $ac_func" >&5
19982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19983if eval "test \"\${$as_ac_var+set}\" = set"; then
19984  echo $ECHO_N "(cached) $ECHO_C" >&6
19985else
19986  cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h.  */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h.  */
19992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19993   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19994#define $ac_func innocuous_$ac_func
19995
19996/* System header to define __stub macros and hopefully few prototypes,
19997    which can conflict with char $ac_func (); below.
19998    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19999    <limits.h> exists even on freestanding compilers.  */
20000
20001#ifdef __STDC__
20002# include <limits.h>
20003#else
20004# include <assert.h>
20005#endif
20006
20007#undef $ac_func
20008
20009/* Override any gcc2 internal prototype to avoid an error.  */
20010#ifdef __cplusplus
20011extern "C"
20012{
20013#endif
20014/* We use char because int might match the return type of a gcc2
20015   builtin and then its argument prototype would still apply.  */
20016char $ac_func ();
20017/* The GNU C library defines this for functions which it implements
20018    to always fail with ENOSYS.  Some functions are actually named
20019    something starting with __ and the normal name is an alias.  */
20020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20021choke me
20022#else
20023char (*f) () = $ac_func;
20024#endif
20025#ifdef __cplusplus
20026}
20027#endif
20028
20029int
20030main ()
20031{
20032return f != $ac_func;
20033  ;
20034  return 0;
20035}
20036_ACEOF
20037rm -f conftest.$ac_objext conftest$ac_exeext
20038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20039  (eval $ac_link) 2>conftest.er1
20040  ac_status=$?
20041  grep -v '^ *+' conftest.er1 >conftest.err
20042  rm -f conftest.er1
20043  cat conftest.err >&5
20044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045  (exit $ac_status); } &&
20046	 { ac_try='test -z "$ac_c_werror_flag"
20047			 || test ! -s conftest.err'
20048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049  (eval $ac_try) 2>&5
20050  ac_status=$?
20051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052  (exit $ac_status); }; } &&
20053	 { ac_try='test -s conftest$ac_exeext'
20054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055  (eval $ac_try) 2>&5
20056  ac_status=$?
20057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058  (exit $ac_status); }; }; then
20059  eval "$as_ac_var=yes"
20060else
20061  echo "$as_me: failed program was:" >&5
20062sed 's/^/| /' conftest.$ac_ext >&5
20063
20064eval "$as_ac_var=no"
20065fi
20066rm -f conftest.err conftest.$ac_objext \
20067      conftest$ac_exeext conftest.$ac_ext
20068fi
20069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20071if test `eval echo '${'$as_ac_var'}'` = yes; then
20072  cat >>confdefs.h <<_ACEOF
20073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20074_ACEOF
20075
20076fi
20077done
20078
20079  ;;
20080  esac
20081
20082
20083case "$LIBS" in
20084  *-lsecurity*)
20085for ac_func in getspnam
20086do
20087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20088echo "$as_me:$LINENO: checking for $ac_func" >&5
20089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20090if eval "test \"\${$as_ac_var+set}\" = set"; then
20091  echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093  cat >conftest.$ac_ext <<_ACEOF
20094/* confdefs.h.  */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h.  */
20099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20100   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20101#define $ac_func innocuous_$ac_func
20102
20103/* System header to define __stub macros and hopefully few prototypes,
20104    which can conflict with char $ac_func (); below.
20105    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20106    <limits.h> exists even on freestanding compilers.  */
20107
20108#ifdef __STDC__
20109# include <limits.h>
20110#else
20111# include <assert.h>
20112#endif
20113
20114#undef $ac_func
20115
20116/* Override any gcc2 internal prototype to avoid an error.  */
20117#ifdef __cplusplus
20118extern "C"
20119{
20120#endif
20121/* We use char because int might match the return type of a gcc2
20122   builtin and then its argument prototype would still apply.  */
20123char $ac_func ();
20124/* The GNU C library defines this for functions which it implements
20125    to always fail with ENOSYS.  Some functions are actually named
20126    something starting with __ and the normal name is an alias.  */
20127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20128choke me
20129#else
20130char (*f) () = $ac_func;
20131#endif
20132#ifdef __cplusplus
20133}
20134#endif
20135
20136int
20137main ()
20138{
20139return f != $ac_func;
20140  ;
20141  return 0;
20142}
20143_ACEOF
20144rm -f conftest.$ac_objext conftest$ac_exeext
20145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20146  (eval $ac_link) 2>conftest.er1
20147  ac_status=$?
20148  grep -v '^ *+' conftest.er1 >conftest.err
20149  rm -f conftest.er1
20150  cat conftest.err >&5
20151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152  (exit $ac_status); } &&
20153	 { ac_try='test -z "$ac_c_werror_flag"
20154			 || test ! -s conftest.err'
20155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156  (eval $ac_try) 2>&5
20157  ac_status=$?
20158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159  (exit $ac_status); }; } &&
20160	 { ac_try='test -s conftest$ac_exeext'
20161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162  (eval $ac_try) 2>&5
20163  ac_status=$?
20164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165  (exit $ac_status); }; }; then
20166  eval "$as_ac_var=yes"
20167else
20168  echo "$as_me: failed program was:" >&5
20169sed 's/^/| /' conftest.$ac_ext >&5
20170
20171eval "$as_ac_var=no"
20172fi
20173rm -f conftest.err conftest.$ac_objext \
20174      conftest$ac_exeext conftest.$ac_ext
20175fi
20176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20177echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20178if test `eval echo '${'$as_ac_var'}'` = yes; then
20179  cat >>confdefs.h <<_ACEOF
20180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20181_ACEOF
20182
20183fi
20184done
20185 ;;
20186  *)
20187echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
20188echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
20189if test "${ac_cv_lib_security_getspnam+set}" = set; then
20190  echo $ECHO_N "(cached) $ECHO_C" >&6
20191else
20192  ac_check_lib_save_LIBS=$LIBS
20193LIBS="-lsecurity  $LIBS"
20194cat >conftest.$ac_ext <<_ACEOF
20195/* confdefs.h.  */
20196_ACEOF
20197cat confdefs.h >>conftest.$ac_ext
20198cat >>conftest.$ac_ext <<_ACEOF
20199/* end confdefs.h.  */
20200
20201/* Override any gcc2 internal prototype to avoid an error.  */
20202#ifdef __cplusplus
20203extern "C"
20204#endif
20205/* We use char because int might match the return type of a gcc2
20206   builtin and then its argument prototype would still apply.  */
20207char getspnam ();
20208int
20209main ()
20210{
20211getspnam ();
20212  ;
20213  return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext conftest$ac_exeext
20217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20218  (eval $ac_link) 2>conftest.er1
20219  ac_status=$?
20220  grep -v '^ *+' conftest.er1 >conftest.err
20221  rm -f conftest.er1
20222  cat conftest.err >&5
20223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224  (exit $ac_status); } &&
20225	 { ac_try='test -z "$ac_c_werror_flag"
20226			 || test ! -s conftest.err'
20227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228  (eval $ac_try) 2>&5
20229  ac_status=$?
20230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231  (exit $ac_status); }; } &&
20232	 { ac_try='test -s conftest$ac_exeext'
20233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234  (eval $ac_try) 2>&5
20235  ac_status=$?
20236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237  (exit $ac_status); }; }; then
20238  ac_cv_lib_security_getspnam=yes
20239else
20240  echo "$as_me: failed program was:" >&5
20241sed 's/^/| /' conftest.$ac_ext >&5
20242
20243ac_cv_lib_security_getspnam=no
20244fi
20245rm -f conftest.err conftest.$ac_objext \
20246      conftest$ac_exeext conftest.$ac_ext
20247LIBS=$ac_check_lib_save_LIBS
20248fi
20249echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
20250echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
20251if test $ac_cv_lib_security_getspnam = yes; then
20252  cat >>confdefs.h <<_ACEOF
20253#define HAVE_LIBSECURITY 1
20254_ACEOF
20255
20256  LIBS="-lsecurity $LIBS"
20257
20258fi
20259
20260
20261for ac_func in getspnam
20262do
20263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20264echo "$as_me:$LINENO: checking for $ac_func" >&5
20265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20266if eval "test \"\${$as_ac_var+set}\" = set"; then
20267  echo $ECHO_N "(cached) $ECHO_C" >&6
20268else
20269  cat >conftest.$ac_ext <<_ACEOF
20270/* confdefs.h.  */
20271_ACEOF
20272cat confdefs.h >>conftest.$ac_ext
20273cat >>conftest.$ac_ext <<_ACEOF
20274/* end confdefs.h.  */
20275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20276   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20277#define $ac_func innocuous_$ac_func
20278
20279/* System header to define __stub macros and hopefully few prototypes,
20280    which can conflict with char $ac_func (); below.
20281    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20282    <limits.h> exists even on freestanding compilers.  */
20283
20284#ifdef __STDC__
20285# include <limits.h>
20286#else
20287# include <assert.h>
20288#endif
20289
20290#undef $ac_func
20291
20292/* Override any gcc2 internal prototype to avoid an error.  */
20293#ifdef __cplusplus
20294extern "C"
20295{
20296#endif
20297/* We use char because int might match the return type of a gcc2
20298   builtin and then its argument prototype would still apply.  */
20299char $ac_func ();
20300/* The GNU C library defines this for functions which it implements
20301    to always fail with ENOSYS.  Some functions are actually named
20302    something starting with __ and the normal name is an alias.  */
20303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20304choke me
20305#else
20306char (*f) () = $ac_func;
20307#endif
20308#ifdef __cplusplus
20309}
20310#endif
20311
20312int
20313main ()
20314{
20315return f != $ac_func;
20316  ;
20317  return 0;
20318}
20319_ACEOF
20320rm -f conftest.$ac_objext conftest$ac_exeext
20321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20322  (eval $ac_link) 2>conftest.er1
20323  ac_status=$?
20324  grep -v '^ *+' conftest.er1 >conftest.err
20325  rm -f conftest.er1
20326  cat conftest.err >&5
20327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328  (exit $ac_status); } &&
20329	 { ac_try='test -z "$ac_c_werror_flag"
20330			 || test ! -s conftest.err'
20331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332  (eval $ac_try) 2>&5
20333  ac_status=$?
20334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); }; } &&
20336	 { ac_try='test -s conftest$ac_exeext'
20337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338  (eval $ac_try) 2>&5
20339  ac_status=$?
20340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341  (exit $ac_status); }; }; then
20342  eval "$as_ac_var=yes"
20343else
20344  echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347eval "$as_ac_var=no"
20348fi
20349rm -f conftest.err conftest.$ac_objext \
20350      conftest$ac_exeext conftest.$ac_ext
20351fi
20352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20354if test `eval echo '${'$as_ac_var'}'` = yes; then
20355  cat >>confdefs.h <<_ACEOF
20356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20357_ACEOF
20358
20359fi
20360done
20361
20362  ;;
20363  esac
20364
20365case "$LIBS" in
20366  *-lsec*)
20367for ac_func in getspnam
20368do
20369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20370echo "$as_me:$LINENO: checking for $ac_func" >&5
20371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20372if eval "test \"\${$as_ac_var+set}\" = set"; then
20373  echo $ECHO_N "(cached) $ECHO_C" >&6
20374else
20375  cat >conftest.$ac_ext <<_ACEOF
20376/* confdefs.h.  */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h.  */
20381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20382   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20383#define $ac_func innocuous_$ac_func
20384
20385/* System header to define __stub macros and hopefully few prototypes,
20386    which can conflict with char $ac_func (); below.
20387    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20388    <limits.h> exists even on freestanding compilers.  */
20389
20390#ifdef __STDC__
20391# include <limits.h>
20392#else
20393# include <assert.h>
20394#endif
20395
20396#undef $ac_func
20397
20398/* Override any gcc2 internal prototype to avoid an error.  */
20399#ifdef __cplusplus
20400extern "C"
20401{
20402#endif
20403/* We use char because int might match the return type of a gcc2
20404   builtin and then its argument prototype would still apply.  */
20405char $ac_func ();
20406/* The GNU C library defines this for functions which it implements
20407    to always fail with ENOSYS.  Some functions are actually named
20408    something starting with __ and the normal name is an alias.  */
20409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20410choke me
20411#else
20412char (*f) () = $ac_func;
20413#endif
20414#ifdef __cplusplus
20415}
20416#endif
20417
20418int
20419main ()
20420{
20421return f != $ac_func;
20422  ;
20423  return 0;
20424}
20425_ACEOF
20426rm -f conftest.$ac_objext conftest$ac_exeext
20427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20428  (eval $ac_link) 2>conftest.er1
20429  ac_status=$?
20430  grep -v '^ *+' conftest.er1 >conftest.err
20431  rm -f conftest.er1
20432  cat conftest.err >&5
20433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434  (exit $ac_status); } &&
20435	 { ac_try='test -z "$ac_c_werror_flag"
20436			 || test ! -s conftest.err'
20437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438  (eval $ac_try) 2>&5
20439  ac_status=$?
20440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441  (exit $ac_status); }; } &&
20442	 { ac_try='test -s conftest$ac_exeext'
20443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444  (eval $ac_try) 2>&5
20445  ac_status=$?
20446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447  (exit $ac_status); }; }; then
20448  eval "$as_ac_var=yes"
20449else
20450  echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
20453eval "$as_ac_var=no"
20454fi
20455rm -f conftest.err conftest.$ac_objext \
20456      conftest$ac_exeext conftest.$ac_ext
20457fi
20458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20459echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20460if test `eval echo '${'$as_ac_var'}'` = yes; then
20461  cat >>confdefs.h <<_ACEOF
20462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20463_ACEOF
20464
20465fi
20466done
20467 ;;
20468  *)
20469echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
20470echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
20471if test "${ac_cv_lib_sec_getspnam+set}" = set; then
20472  echo $ECHO_N "(cached) $ECHO_C" >&6
20473else
20474  ac_check_lib_save_LIBS=$LIBS
20475LIBS="-lsec  $LIBS"
20476cat >conftest.$ac_ext <<_ACEOF
20477/* confdefs.h.  */
20478_ACEOF
20479cat confdefs.h >>conftest.$ac_ext
20480cat >>conftest.$ac_ext <<_ACEOF
20481/* end confdefs.h.  */
20482
20483/* Override any gcc2 internal prototype to avoid an error.  */
20484#ifdef __cplusplus
20485extern "C"
20486#endif
20487/* We use char because int might match the return type of a gcc2
20488   builtin and then its argument prototype would still apply.  */
20489char getspnam ();
20490int
20491main ()
20492{
20493getspnam ();
20494  ;
20495  return 0;
20496}
20497_ACEOF
20498rm -f conftest.$ac_objext conftest$ac_exeext
20499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20500  (eval $ac_link) 2>conftest.er1
20501  ac_status=$?
20502  grep -v '^ *+' conftest.er1 >conftest.err
20503  rm -f conftest.er1
20504  cat conftest.err >&5
20505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506  (exit $ac_status); } &&
20507	 { ac_try='test -z "$ac_c_werror_flag"
20508			 || test ! -s conftest.err'
20509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510  (eval $ac_try) 2>&5
20511  ac_status=$?
20512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513  (exit $ac_status); }; } &&
20514	 { ac_try='test -s conftest$ac_exeext'
20515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516  (eval $ac_try) 2>&5
20517  ac_status=$?
20518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519  (exit $ac_status); }; }; then
20520  ac_cv_lib_sec_getspnam=yes
20521else
20522  echo "$as_me: failed program was:" >&5
20523sed 's/^/| /' conftest.$ac_ext >&5
20524
20525ac_cv_lib_sec_getspnam=no
20526fi
20527rm -f conftest.err conftest.$ac_objext \
20528      conftest$ac_exeext conftest.$ac_ext
20529LIBS=$ac_check_lib_save_LIBS
20530fi
20531echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
20532echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
20533if test $ac_cv_lib_sec_getspnam = yes; then
20534  cat >>confdefs.h <<_ACEOF
20535#define HAVE_LIBSEC 1
20536_ACEOF
20537
20538  LIBS="-lsec $LIBS"
20539
20540fi
20541
20542
20543for ac_func in getspnam
20544do
20545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20546echo "$as_me:$LINENO: checking for $ac_func" >&5
20547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20548if eval "test \"\${$as_ac_var+set}\" = set"; then
20549  echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551  cat >conftest.$ac_ext <<_ACEOF
20552/* confdefs.h.  */
20553_ACEOF
20554cat confdefs.h >>conftest.$ac_ext
20555cat >>conftest.$ac_ext <<_ACEOF
20556/* end confdefs.h.  */
20557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20558   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20559#define $ac_func innocuous_$ac_func
20560
20561/* System header to define __stub macros and hopefully few prototypes,
20562    which can conflict with char $ac_func (); below.
20563    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20564    <limits.h> exists even on freestanding compilers.  */
20565
20566#ifdef __STDC__
20567# include <limits.h>
20568#else
20569# include <assert.h>
20570#endif
20571
20572#undef $ac_func
20573
20574/* Override any gcc2 internal prototype to avoid an error.  */
20575#ifdef __cplusplus
20576extern "C"
20577{
20578#endif
20579/* We use char because int might match the return type of a gcc2
20580   builtin and then its argument prototype would still apply.  */
20581char $ac_func ();
20582/* The GNU C library defines this for functions which it implements
20583    to always fail with ENOSYS.  Some functions are actually named
20584    something starting with __ and the normal name is an alias.  */
20585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20586choke me
20587#else
20588char (*f) () = $ac_func;
20589#endif
20590#ifdef __cplusplus
20591}
20592#endif
20593
20594int
20595main ()
20596{
20597return f != $ac_func;
20598  ;
20599  return 0;
20600}
20601_ACEOF
20602rm -f conftest.$ac_objext conftest$ac_exeext
20603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604  (eval $ac_link) 2>conftest.er1
20605  ac_status=$?
20606  grep -v '^ *+' conftest.er1 >conftest.err
20607  rm -f conftest.er1
20608  cat conftest.err >&5
20609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610  (exit $ac_status); } &&
20611	 { ac_try='test -z "$ac_c_werror_flag"
20612			 || test ! -s conftest.err'
20613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614  (eval $ac_try) 2>&5
20615  ac_status=$?
20616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617  (exit $ac_status); }; } &&
20618	 { ac_try='test -s conftest$ac_exeext'
20619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620  (eval $ac_try) 2>&5
20621  ac_status=$?
20622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623  (exit $ac_status); }; }; then
20624  eval "$as_ac_var=yes"
20625else
20626  echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
20629eval "$as_ac_var=no"
20630fi
20631rm -f conftest.err conftest.$ac_objext \
20632      conftest$ac_exeext conftest.$ac_ext
20633fi
20634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20635echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20636if test `eval echo '${'$as_ac_var'}'` = yes; then
20637  cat >>confdefs.h <<_ACEOF
20638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20639_ACEOF
20640
20641fi
20642done
20643
20644  ;;
20645  esac
20646
20647
20648case "$LIBS" in
20649  *-lsecurity*)
20650for ac_func in bigcrypt
20651do
20652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20653echo "$as_me:$LINENO: checking for $ac_func" >&5
20654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20655if eval "test \"\${$as_ac_var+set}\" = set"; then
20656  echo $ECHO_N "(cached) $ECHO_C" >&6
20657else
20658  cat >conftest.$ac_ext <<_ACEOF
20659/* confdefs.h.  */
20660_ACEOF
20661cat confdefs.h >>conftest.$ac_ext
20662cat >>conftest.$ac_ext <<_ACEOF
20663/* end confdefs.h.  */
20664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20665   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20666#define $ac_func innocuous_$ac_func
20667
20668/* System header to define __stub macros and hopefully few prototypes,
20669    which can conflict with char $ac_func (); below.
20670    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20671    <limits.h> exists even on freestanding compilers.  */
20672
20673#ifdef __STDC__
20674# include <limits.h>
20675#else
20676# include <assert.h>
20677#endif
20678
20679#undef $ac_func
20680
20681/* Override any gcc2 internal prototype to avoid an error.  */
20682#ifdef __cplusplus
20683extern "C"
20684{
20685#endif
20686/* We use char because int might match the return type of a gcc2
20687   builtin and then its argument prototype would still apply.  */
20688char $ac_func ();
20689/* The GNU C library defines this for functions which it implements
20690    to always fail with ENOSYS.  Some functions are actually named
20691    something starting with __ and the normal name is an alias.  */
20692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20693choke me
20694#else
20695char (*f) () = $ac_func;
20696#endif
20697#ifdef __cplusplus
20698}
20699#endif
20700
20701int
20702main ()
20703{
20704return f != $ac_func;
20705  ;
20706  return 0;
20707}
20708_ACEOF
20709rm -f conftest.$ac_objext conftest$ac_exeext
20710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20711  (eval $ac_link) 2>conftest.er1
20712  ac_status=$?
20713  grep -v '^ *+' conftest.er1 >conftest.err
20714  rm -f conftest.er1
20715  cat conftest.err >&5
20716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717  (exit $ac_status); } &&
20718	 { ac_try='test -z "$ac_c_werror_flag"
20719			 || test ! -s conftest.err'
20720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721  (eval $ac_try) 2>&5
20722  ac_status=$?
20723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724  (exit $ac_status); }; } &&
20725	 { ac_try='test -s conftest$ac_exeext'
20726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727  (eval $ac_try) 2>&5
20728  ac_status=$?
20729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730  (exit $ac_status); }; }; then
20731  eval "$as_ac_var=yes"
20732else
20733  echo "$as_me: failed program was:" >&5
20734sed 's/^/| /' conftest.$ac_ext >&5
20735
20736eval "$as_ac_var=no"
20737fi
20738rm -f conftest.err conftest.$ac_objext \
20739      conftest$ac_exeext conftest.$ac_ext
20740fi
20741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20743if test `eval echo '${'$as_ac_var'}'` = yes; then
20744  cat >>confdefs.h <<_ACEOF
20745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20746_ACEOF
20747
20748fi
20749done
20750 ;;
20751  *)
20752echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
20753echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
20754if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
20755  echo $ECHO_N "(cached) $ECHO_C" >&6
20756else
20757  ac_check_lib_save_LIBS=$LIBS
20758LIBS="-lsecurity  $LIBS"
20759cat >conftest.$ac_ext <<_ACEOF
20760/* confdefs.h.  */
20761_ACEOF
20762cat confdefs.h >>conftest.$ac_ext
20763cat >>conftest.$ac_ext <<_ACEOF
20764/* end confdefs.h.  */
20765
20766/* Override any gcc2 internal prototype to avoid an error.  */
20767#ifdef __cplusplus
20768extern "C"
20769#endif
20770/* We use char because int might match the return type of a gcc2
20771   builtin and then its argument prototype would still apply.  */
20772char bigcrypt ();
20773int
20774main ()
20775{
20776bigcrypt ();
20777  ;
20778  return 0;
20779}
20780_ACEOF
20781rm -f conftest.$ac_objext conftest$ac_exeext
20782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20783  (eval $ac_link) 2>conftest.er1
20784  ac_status=$?
20785  grep -v '^ *+' conftest.er1 >conftest.err
20786  rm -f conftest.er1
20787  cat conftest.err >&5
20788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789  (exit $ac_status); } &&
20790	 { ac_try='test -z "$ac_c_werror_flag"
20791			 || test ! -s conftest.err'
20792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793  (eval $ac_try) 2>&5
20794  ac_status=$?
20795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796  (exit $ac_status); }; } &&
20797	 { ac_try='test -s conftest$ac_exeext'
20798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799  (eval $ac_try) 2>&5
20800  ac_status=$?
20801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802  (exit $ac_status); }; }; then
20803  ac_cv_lib_security_bigcrypt=yes
20804else
20805  echo "$as_me: failed program was:" >&5
20806sed 's/^/| /' conftest.$ac_ext >&5
20807
20808ac_cv_lib_security_bigcrypt=no
20809fi
20810rm -f conftest.err conftest.$ac_objext \
20811      conftest$ac_exeext conftest.$ac_ext
20812LIBS=$ac_check_lib_save_LIBS
20813fi
20814echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
20815echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
20816if test $ac_cv_lib_security_bigcrypt = yes; then
20817  cat >>confdefs.h <<_ACEOF
20818#define HAVE_LIBSECURITY 1
20819_ACEOF
20820
20821  LIBS="-lsecurity $LIBS"
20822
20823fi
20824
20825
20826for ac_func in bigcrypt
20827do
20828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20829echo "$as_me:$LINENO: checking for $ac_func" >&5
20830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20831if eval "test \"\${$as_ac_var+set}\" = set"; then
20832  echo $ECHO_N "(cached) $ECHO_C" >&6
20833else
20834  cat >conftest.$ac_ext <<_ACEOF
20835/* confdefs.h.  */
20836_ACEOF
20837cat confdefs.h >>conftest.$ac_ext
20838cat >>conftest.$ac_ext <<_ACEOF
20839/* end confdefs.h.  */
20840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20841   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20842#define $ac_func innocuous_$ac_func
20843
20844/* System header to define __stub macros and hopefully few prototypes,
20845    which can conflict with char $ac_func (); below.
20846    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20847    <limits.h> exists even on freestanding compilers.  */
20848
20849#ifdef __STDC__
20850# include <limits.h>
20851#else
20852# include <assert.h>
20853#endif
20854
20855#undef $ac_func
20856
20857/* Override any gcc2 internal prototype to avoid an error.  */
20858#ifdef __cplusplus
20859extern "C"
20860{
20861#endif
20862/* We use char because int might match the return type of a gcc2
20863   builtin and then its argument prototype would still apply.  */
20864char $ac_func ();
20865/* The GNU C library defines this for functions which it implements
20866    to always fail with ENOSYS.  Some functions are actually named
20867    something starting with __ and the normal name is an alias.  */
20868#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20869choke me
20870#else
20871char (*f) () = $ac_func;
20872#endif
20873#ifdef __cplusplus
20874}
20875#endif
20876
20877int
20878main ()
20879{
20880return f != $ac_func;
20881  ;
20882  return 0;
20883}
20884_ACEOF
20885rm -f conftest.$ac_objext conftest$ac_exeext
20886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887  (eval $ac_link) 2>conftest.er1
20888  ac_status=$?
20889  grep -v '^ *+' conftest.er1 >conftest.err
20890  rm -f conftest.er1
20891  cat conftest.err >&5
20892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893  (exit $ac_status); } &&
20894	 { ac_try='test -z "$ac_c_werror_flag"
20895			 || test ! -s conftest.err'
20896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897  (eval $ac_try) 2>&5
20898  ac_status=$?
20899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900  (exit $ac_status); }; } &&
20901	 { ac_try='test -s conftest$ac_exeext'
20902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903  (eval $ac_try) 2>&5
20904  ac_status=$?
20905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906  (exit $ac_status); }; }; then
20907  eval "$as_ac_var=yes"
20908else
20909  echo "$as_me: failed program was:" >&5
20910sed 's/^/| /' conftest.$ac_ext >&5
20911
20912eval "$as_ac_var=no"
20913fi
20914rm -f conftest.err conftest.$ac_objext \
20915      conftest$ac_exeext conftest.$ac_ext
20916fi
20917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20919if test `eval echo '${'$as_ac_var'}'` = yes; then
20920  cat >>confdefs.h <<_ACEOF
20921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20922_ACEOF
20923
20924fi
20925done
20926
20927  ;;
20928  esac
20929
20930case "$LIBS" in
20931  *-lsec*)
20932for ac_func in bigcrypt
20933do
20934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20935echo "$as_me:$LINENO: checking for $ac_func" >&5
20936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20937if eval "test \"\${$as_ac_var+set}\" = set"; then
20938  echo $ECHO_N "(cached) $ECHO_C" >&6
20939else
20940  cat >conftest.$ac_ext <<_ACEOF
20941/* confdefs.h.  */
20942_ACEOF
20943cat confdefs.h >>conftest.$ac_ext
20944cat >>conftest.$ac_ext <<_ACEOF
20945/* end confdefs.h.  */
20946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20947   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20948#define $ac_func innocuous_$ac_func
20949
20950/* System header to define __stub macros and hopefully few prototypes,
20951    which can conflict with char $ac_func (); below.
20952    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20953    <limits.h> exists even on freestanding compilers.  */
20954
20955#ifdef __STDC__
20956# include <limits.h>
20957#else
20958# include <assert.h>
20959#endif
20960
20961#undef $ac_func
20962
20963/* Override any gcc2 internal prototype to avoid an error.  */
20964#ifdef __cplusplus
20965extern "C"
20966{
20967#endif
20968/* We use char because int might match the return type of a gcc2
20969   builtin and then its argument prototype would still apply.  */
20970char $ac_func ();
20971/* The GNU C library defines this for functions which it implements
20972    to always fail with ENOSYS.  Some functions are actually named
20973    something starting with __ and the normal name is an alias.  */
20974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20975choke me
20976#else
20977char (*f) () = $ac_func;
20978#endif
20979#ifdef __cplusplus
20980}
20981#endif
20982
20983int
20984main ()
20985{
20986return f != $ac_func;
20987  ;
20988  return 0;
20989}
20990_ACEOF
20991rm -f conftest.$ac_objext conftest$ac_exeext
20992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20993  (eval $ac_link) 2>conftest.er1
20994  ac_status=$?
20995  grep -v '^ *+' conftest.er1 >conftest.err
20996  rm -f conftest.er1
20997  cat conftest.err >&5
20998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999  (exit $ac_status); } &&
21000	 { ac_try='test -z "$ac_c_werror_flag"
21001			 || test ! -s conftest.err'
21002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003  (eval $ac_try) 2>&5
21004  ac_status=$?
21005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006  (exit $ac_status); }; } &&
21007	 { ac_try='test -s conftest$ac_exeext'
21008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009  (eval $ac_try) 2>&5
21010  ac_status=$?
21011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012  (exit $ac_status); }; }; then
21013  eval "$as_ac_var=yes"
21014else
21015  echo "$as_me: failed program was:" >&5
21016sed 's/^/| /' conftest.$ac_ext >&5
21017
21018eval "$as_ac_var=no"
21019fi
21020rm -f conftest.err conftest.$ac_objext \
21021      conftest$ac_exeext conftest.$ac_ext
21022fi
21023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21025if test `eval echo '${'$as_ac_var'}'` = yes; then
21026  cat >>confdefs.h <<_ACEOF
21027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21028_ACEOF
21029
21030fi
21031done
21032 ;;
21033  *)
21034echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
21035echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
21036if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
21037  echo $ECHO_N "(cached) $ECHO_C" >&6
21038else
21039  ac_check_lib_save_LIBS=$LIBS
21040LIBS="-lsec  $LIBS"
21041cat >conftest.$ac_ext <<_ACEOF
21042/* confdefs.h.  */
21043_ACEOF
21044cat confdefs.h >>conftest.$ac_ext
21045cat >>conftest.$ac_ext <<_ACEOF
21046/* end confdefs.h.  */
21047
21048/* Override any gcc2 internal prototype to avoid an error.  */
21049#ifdef __cplusplus
21050extern "C"
21051#endif
21052/* We use char because int might match the return type of a gcc2
21053   builtin and then its argument prototype would still apply.  */
21054char bigcrypt ();
21055int
21056main ()
21057{
21058bigcrypt ();
21059  ;
21060  return 0;
21061}
21062_ACEOF
21063rm -f conftest.$ac_objext conftest$ac_exeext
21064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065  (eval $ac_link) 2>conftest.er1
21066  ac_status=$?
21067  grep -v '^ *+' conftest.er1 >conftest.err
21068  rm -f conftest.er1
21069  cat conftest.err >&5
21070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071  (exit $ac_status); } &&
21072	 { ac_try='test -z "$ac_c_werror_flag"
21073			 || test ! -s conftest.err'
21074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075  (eval $ac_try) 2>&5
21076  ac_status=$?
21077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078  (exit $ac_status); }; } &&
21079	 { ac_try='test -s conftest$ac_exeext'
21080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081  (eval $ac_try) 2>&5
21082  ac_status=$?
21083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084  (exit $ac_status); }; }; then
21085  ac_cv_lib_sec_bigcrypt=yes
21086else
21087  echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090ac_cv_lib_sec_bigcrypt=no
21091fi
21092rm -f conftest.err conftest.$ac_objext \
21093      conftest$ac_exeext conftest.$ac_ext
21094LIBS=$ac_check_lib_save_LIBS
21095fi
21096echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
21097echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
21098if test $ac_cv_lib_sec_bigcrypt = yes; then
21099  cat >>confdefs.h <<_ACEOF
21100#define HAVE_LIBSEC 1
21101_ACEOF
21102
21103  LIBS="-lsec $LIBS"
21104
21105fi
21106
21107
21108for ac_func in bigcrypt
21109do
21110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21111echo "$as_me:$LINENO: checking for $ac_func" >&5
21112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21113if eval "test \"\${$as_ac_var+set}\" = set"; then
21114  echo $ECHO_N "(cached) $ECHO_C" >&6
21115else
21116  cat >conftest.$ac_ext <<_ACEOF
21117/* confdefs.h.  */
21118_ACEOF
21119cat confdefs.h >>conftest.$ac_ext
21120cat >>conftest.$ac_ext <<_ACEOF
21121/* end confdefs.h.  */
21122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21123   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21124#define $ac_func innocuous_$ac_func
21125
21126/* System header to define __stub macros and hopefully few prototypes,
21127    which can conflict with char $ac_func (); below.
21128    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21129    <limits.h> exists even on freestanding compilers.  */
21130
21131#ifdef __STDC__
21132# include <limits.h>
21133#else
21134# include <assert.h>
21135#endif
21136
21137#undef $ac_func
21138
21139/* Override any gcc2 internal prototype to avoid an error.  */
21140#ifdef __cplusplus
21141extern "C"
21142{
21143#endif
21144/* We use char because int might match the return type of a gcc2
21145   builtin and then its argument prototype would still apply.  */
21146char $ac_func ();
21147/* The GNU C library defines this for functions which it implements
21148    to always fail with ENOSYS.  Some functions are actually named
21149    something starting with __ and the normal name is an alias.  */
21150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21151choke me
21152#else
21153char (*f) () = $ac_func;
21154#endif
21155#ifdef __cplusplus
21156}
21157#endif
21158
21159int
21160main ()
21161{
21162return f != $ac_func;
21163  ;
21164  return 0;
21165}
21166_ACEOF
21167rm -f conftest.$ac_objext conftest$ac_exeext
21168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21169  (eval $ac_link) 2>conftest.er1
21170  ac_status=$?
21171  grep -v '^ *+' conftest.er1 >conftest.err
21172  rm -f conftest.er1
21173  cat conftest.err >&5
21174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175  (exit $ac_status); } &&
21176	 { ac_try='test -z "$ac_c_werror_flag"
21177			 || test ! -s conftest.err'
21178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179  (eval $ac_try) 2>&5
21180  ac_status=$?
21181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182  (exit $ac_status); }; } &&
21183	 { ac_try='test -s conftest$ac_exeext'
21184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185  (eval $ac_try) 2>&5
21186  ac_status=$?
21187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188  (exit $ac_status); }; }; then
21189  eval "$as_ac_var=yes"
21190else
21191  echo "$as_me: failed program was:" >&5
21192sed 's/^/| /' conftest.$ac_ext >&5
21193
21194eval "$as_ac_var=no"
21195fi
21196rm -f conftest.err conftest.$ac_objext \
21197      conftest$ac_exeext conftest.$ac_ext
21198fi
21199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21200echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21201if test `eval echo '${'$as_ac_var'}'` = yes; then
21202  cat >>confdefs.h <<_ACEOF
21203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21204_ACEOF
21205
21206fi
21207done
21208
21209  ;;
21210  esac
21211
21212
21213case "$LIBS" in
21214  *-lsecurity*)
21215for ac_func in getprpwnam
21216do
21217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21218echo "$as_me:$LINENO: checking for $ac_func" >&5
21219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21220if eval "test \"\${$as_ac_var+set}\" = set"; then
21221  echo $ECHO_N "(cached) $ECHO_C" >&6
21222else
21223  cat >conftest.$ac_ext <<_ACEOF
21224/* confdefs.h.  */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h.  */
21229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21230   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21231#define $ac_func innocuous_$ac_func
21232
21233/* System header to define __stub macros and hopefully few prototypes,
21234    which can conflict with char $ac_func (); below.
21235    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21236    <limits.h> exists even on freestanding compilers.  */
21237
21238#ifdef __STDC__
21239# include <limits.h>
21240#else
21241# include <assert.h>
21242#endif
21243
21244#undef $ac_func
21245
21246/* Override any gcc2 internal prototype to avoid an error.  */
21247#ifdef __cplusplus
21248extern "C"
21249{
21250#endif
21251/* We use char because int might match the return type of a gcc2
21252   builtin and then its argument prototype would still apply.  */
21253char $ac_func ();
21254/* The GNU C library defines this for functions which it implements
21255    to always fail with ENOSYS.  Some functions are actually named
21256    something starting with __ and the normal name is an alias.  */
21257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21258choke me
21259#else
21260char (*f) () = $ac_func;
21261#endif
21262#ifdef __cplusplus
21263}
21264#endif
21265
21266int
21267main ()
21268{
21269return f != $ac_func;
21270  ;
21271  return 0;
21272}
21273_ACEOF
21274rm -f conftest.$ac_objext conftest$ac_exeext
21275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21276  (eval $ac_link) 2>conftest.er1
21277  ac_status=$?
21278  grep -v '^ *+' conftest.er1 >conftest.err
21279  rm -f conftest.er1
21280  cat conftest.err >&5
21281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282  (exit $ac_status); } &&
21283	 { ac_try='test -z "$ac_c_werror_flag"
21284			 || test ! -s conftest.err'
21285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286  (eval $ac_try) 2>&5
21287  ac_status=$?
21288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289  (exit $ac_status); }; } &&
21290	 { ac_try='test -s conftest$ac_exeext'
21291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292  (eval $ac_try) 2>&5
21293  ac_status=$?
21294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295  (exit $ac_status); }; }; then
21296  eval "$as_ac_var=yes"
21297else
21298  echo "$as_me: failed program was:" >&5
21299sed 's/^/| /' conftest.$ac_ext >&5
21300
21301eval "$as_ac_var=no"
21302fi
21303rm -f conftest.err conftest.$ac_objext \
21304      conftest$ac_exeext conftest.$ac_ext
21305fi
21306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21307echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21308if test `eval echo '${'$as_ac_var'}'` = yes; then
21309  cat >>confdefs.h <<_ACEOF
21310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21311_ACEOF
21312
21313fi
21314done
21315 ;;
21316  *)
21317echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
21318echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
21319if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
21320  echo $ECHO_N "(cached) $ECHO_C" >&6
21321else
21322  ac_check_lib_save_LIBS=$LIBS
21323LIBS="-lsecurity  $LIBS"
21324cat >conftest.$ac_ext <<_ACEOF
21325/* confdefs.h.  */
21326_ACEOF
21327cat confdefs.h >>conftest.$ac_ext
21328cat >>conftest.$ac_ext <<_ACEOF
21329/* end confdefs.h.  */
21330
21331/* Override any gcc2 internal prototype to avoid an error.  */
21332#ifdef __cplusplus
21333extern "C"
21334#endif
21335/* We use char because int might match the return type of a gcc2
21336   builtin and then its argument prototype would still apply.  */
21337char getprpwnam ();
21338int
21339main ()
21340{
21341getprpwnam ();
21342  ;
21343  return 0;
21344}
21345_ACEOF
21346rm -f conftest.$ac_objext conftest$ac_exeext
21347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21348  (eval $ac_link) 2>conftest.er1
21349  ac_status=$?
21350  grep -v '^ *+' conftest.er1 >conftest.err
21351  rm -f conftest.er1
21352  cat conftest.err >&5
21353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354  (exit $ac_status); } &&
21355	 { ac_try='test -z "$ac_c_werror_flag"
21356			 || test ! -s conftest.err'
21357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358  (eval $ac_try) 2>&5
21359  ac_status=$?
21360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361  (exit $ac_status); }; } &&
21362	 { ac_try='test -s conftest$ac_exeext'
21363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364  (eval $ac_try) 2>&5
21365  ac_status=$?
21366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367  (exit $ac_status); }; }; then
21368  ac_cv_lib_security_getprpwnam=yes
21369else
21370  echo "$as_me: failed program was:" >&5
21371sed 's/^/| /' conftest.$ac_ext >&5
21372
21373ac_cv_lib_security_getprpwnam=no
21374fi
21375rm -f conftest.err conftest.$ac_objext \
21376      conftest$ac_exeext conftest.$ac_ext
21377LIBS=$ac_check_lib_save_LIBS
21378fi
21379echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
21380echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
21381if test $ac_cv_lib_security_getprpwnam = yes; then
21382  cat >>confdefs.h <<_ACEOF
21383#define HAVE_LIBSECURITY 1
21384_ACEOF
21385
21386  LIBS="-lsecurity $LIBS"
21387
21388fi
21389
21390
21391for ac_func in getprpwnam
21392do
21393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21394echo "$as_me:$LINENO: checking for $ac_func" >&5
21395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21396if eval "test \"\${$as_ac_var+set}\" = set"; then
21397  echo $ECHO_N "(cached) $ECHO_C" >&6
21398else
21399  cat >conftest.$ac_ext <<_ACEOF
21400/* confdefs.h.  */
21401_ACEOF
21402cat confdefs.h >>conftest.$ac_ext
21403cat >>conftest.$ac_ext <<_ACEOF
21404/* end confdefs.h.  */
21405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21406   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21407#define $ac_func innocuous_$ac_func
21408
21409/* System header to define __stub macros and hopefully few prototypes,
21410    which can conflict with char $ac_func (); below.
21411    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21412    <limits.h> exists even on freestanding compilers.  */
21413
21414#ifdef __STDC__
21415# include <limits.h>
21416#else
21417# include <assert.h>
21418#endif
21419
21420#undef $ac_func
21421
21422/* Override any gcc2 internal prototype to avoid an error.  */
21423#ifdef __cplusplus
21424extern "C"
21425{
21426#endif
21427/* We use char because int might match the return type of a gcc2
21428   builtin and then its argument prototype would still apply.  */
21429char $ac_func ();
21430/* The GNU C library defines this for functions which it implements
21431    to always fail with ENOSYS.  Some functions are actually named
21432    something starting with __ and the normal name is an alias.  */
21433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21434choke me
21435#else
21436char (*f) () = $ac_func;
21437#endif
21438#ifdef __cplusplus
21439}
21440#endif
21441
21442int
21443main ()
21444{
21445return f != $ac_func;
21446  ;
21447  return 0;
21448}
21449_ACEOF
21450rm -f conftest.$ac_objext conftest$ac_exeext
21451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21452  (eval $ac_link) 2>conftest.er1
21453  ac_status=$?
21454  grep -v '^ *+' conftest.er1 >conftest.err
21455  rm -f conftest.er1
21456  cat conftest.err >&5
21457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458  (exit $ac_status); } &&
21459	 { ac_try='test -z "$ac_c_werror_flag"
21460			 || test ! -s conftest.err'
21461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462  (eval $ac_try) 2>&5
21463  ac_status=$?
21464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465  (exit $ac_status); }; } &&
21466	 { ac_try='test -s conftest$ac_exeext'
21467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468  (eval $ac_try) 2>&5
21469  ac_status=$?
21470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471  (exit $ac_status); }; }; then
21472  eval "$as_ac_var=yes"
21473else
21474  echo "$as_me: failed program was:" >&5
21475sed 's/^/| /' conftest.$ac_ext >&5
21476
21477eval "$as_ac_var=no"
21478fi
21479rm -f conftest.err conftest.$ac_objext \
21480      conftest$ac_exeext conftest.$ac_ext
21481fi
21482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21483echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21484if test `eval echo '${'$as_ac_var'}'` = yes; then
21485  cat >>confdefs.h <<_ACEOF
21486#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21487_ACEOF
21488
21489fi
21490done
21491
21492  ;;
21493  esac
21494
21495case "$LIBS" in
21496  *-lsec*)
21497for ac_func in getprpwnam
21498do
21499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21500echo "$as_me:$LINENO: checking for $ac_func" >&5
21501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21502if eval "test \"\${$as_ac_var+set}\" = set"; then
21503  echo $ECHO_N "(cached) $ECHO_C" >&6
21504else
21505  cat >conftest.$ac_ext <<_ACEOF
21506/* confdefs.h.  */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h.  */
21511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21512   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21513#define $ac_func innocuous_$ac_func
21514
21515/* System header to define __stub macros and hopefully few prototypes,
21516    which can conflict with char $ac_func (); below.
21517    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21518    <limits.h> exists even on freestanding compilers.  */
21519
21520#ifdef __STDC__
21521# include <limits.h>
21522#else
21523# include <assert.h>
21524#endif
21525
21526#undef $ac_func
21527
21528/* Override any gcc2 internal prototype to avoid an error.  */
21529#ifdef __cplusplus
21530extern "C"
21531{
21532#endif
21533/* We use char because int might match the return type of a gcc2
21534   builtin and then its argument prototype would still apply.  */
21535char $ac_func ();
21536/* The GNU C library defines this for functions which it implements
21537    to always fail with ENOSYS.  Some functions are actually named
21538    something starting with __ and the normal name is an alias.  */
21539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21540choke me
21541#else
21542char (*f) () = $ac_func;
21543#endif
21544#ifdef __cplusplus
21545}
21546#endif
21547
21548int
21549main ()
21550{
21551return f != $ac_func;
21552  ;
21553  return 0;
21554}
21555_ACEOF
21556rm -f conftest.$ac_objext conftest$ac_exeext
21557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21558  (eval $ac_link) 2>conftest.er1
21559  ac_status=$?
21560  grep -v '^ *+' conftest.er1 >conftest.err
21561  rm -f conftest.er1
21562  cat conftest.err >&5
21563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564  (exit $ac_status); } &&
21565	 { ac_try='test -z "$ac_c_werror_flag"
21566			 || test ! -s conftest.err'
21567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568  (eval $ac_try) 2>&5
21569  ac_status=$?
21570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571  (exit $ac_status); }; } &&
21572	 { ac_try='test -s conftest$ac_exeext'
21573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574  (eval $ac_try) 2>&5
21575  ac_status=$?
21576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577  (exit $ac_status); }; }; then
21578  eval "$as_ac_var=yes"
21579else
21580  echo "$as_me: failed program was:" >&5
21581sed 's/^/| /' conftest.$ac_ext >&5
21582
21583eval "$as_ac_var=no"
21584fi
21585rm -f conftest.err conftest.$ac_objext \
21586      conftest$ac_exeext conftest.$ac_ext
21587fi
21588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21590if test `eval echo '${'$as_ac_var'}'` = yes; then
21591  cat >>confdefs.h <<_ACEOF
21592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21593_ACEOF
21594
21595fi
21596done
21597 ;;
21598  *)
21599echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
21600echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
21601if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
21602  echo $ECHO_N "(cached) $ECHO_C" >&6
21603else
21604  ac_check_lib_save_LIBS=$LIBS
21605LIBS="-lsec  $LIBS"
21606cat >conftest.$ac_ext <<_ACEOF
21607/* confdefs.h.  */
21608_ACEOF
21609cat confdefs.h >>conftest.$ac_ext
21610cat >>conftest.$ac_ext <<_ACEOF
21611/* end confdefs.h.  */
21612
21613/* Override any gcc2 internal prototype to avoid an error.  */
21614#ifdef __cplusplus
21615extern "C"
21616#endif
21617/* We use char because int might match the return type of a gcc2
21618   builtin and then its argument prototype would still apply.  */
21619char getprpwnam ();
21620int
21621main ()
21622{
21623getprpwnam ();
21624  ;
21625  return 0;
21626}
21627_ACEOF
21628rm -f conftest.$ac_objext conftest$ac_exeext
21629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21630  (eval $ac_link) 2>conftest.er1
21631  ac_status=$?
21632  grep -v '^ *+' conftest.er1 >conftest.err
21633  rm -f conftest.er1
21634  cat conftest.err >&5
21635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636  (exit $ac_status); } &&
21637	 { ac_try='test -z "$ac_c_werror_flag"
21638			 || test ! -s conftest.err'
21639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640  (eval $ac_try) 2>&5
21641  ac_status=$?
21642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643  (exit $ac_status); }; } &&
21644	 { ac_try='test -s conftest$ac_exeext'
21645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646  (eval $ac_try) 2>&5
21647  ac_status=$?
21648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649  (exit $ac_status); }; }; then
21650  ac_cv_lib_sec_getprpwnam=yes
21651else
21652  echo "$as_me: failed program was:" >&5
21653sed 's/^/| /' conftest.$ac_ext >&5
21654
21655ac_cv_lib_sec_getprpwnam=no
21656fi
21657rm -f conftest.err conftest.$ac_objext \
21658      conftest$ac_exeext conftest.$ac_ext
21659LIBS=$ac_check_lib_save_LIBS
21660fi
21661echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
21662echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
21663if test $ac_cv_lib_sec_getprpwnam = yes; then
21664  cat >>confdefs.h <<_ACEOF
21665#define HAVE_LIBSEC 1
21666_ACEOF
21667
21668  LIBS="-lsec $LIBS"
21669
21670fi
21671
21672
21673for ac_func in getprpwnam
21674do
21675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21676echo "$as_me:$LINENO: checking for $ac_func" >&5
21677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21678if eval "test \"\${$as_ac_var+set}\" = set"; then
21679  echo $ECHO_N "(cached) $ECHO_C" >&6
21680else
21681  cat >conftest.$ac_ext <<_ACEOF
21682/* confdefs.h.  */
21683_ACEOF
21684cat confdefs.h >>conftest.$ac_ext
21685cat >>conftest.$ac_ext <<_ACEOF
21686/* end confdefs.h.  */
21687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21688   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21689#define $ac_func innocuous_$ac_func
21690
21691/* System header to define __stub macros and hopefully few prototypes,
21692    which can conflict with char $ac_func (); below.
21693    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21694    <limits.h> exists even on freestanding compilers.  */
21695
21696#ifdef __STDC__
21697# include <limits.h>
21698#else
21699# include <assert.h>
21700#endif
21701
21702#undef $ac_func
21703
21704/* Override any gcc2 internal prototype to avoid an error.  */
21705#ifdef __cplusplus
21706extern "C"
21707{
21708#endif
21709/* We use char because int might match the return type of a gcc2
21710   builtin and then its argument prototype would still apply.  */
21711char $ac_func ();
21712/* The GNU C library defines this for functions which it implements
21713    to always fail with ENOSYS.  Some functions are actually named
21714    something starting with __ and the normal name is an alias.  */
21715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21716choke me
21717#else
21718char (*f) () = $ac_func;
21719#endif
21720#ifdef __cplusplus
21721}
21722#endif
21723
21724int
21725main ()
21726{
21727return f != $ac_func;
21728  ;
21729  return 0;
21730}
21731_ACEOF
21732rm -f conftest.$ac_objext conftest$ac_exeext
21733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21734  (eval $ac_link) 2>conftest.er1
21735  ac_status=$?
21736  grep -v '^ *+' conftest.er1 >conftest.err
21737  rm -f conftest.er1
21738  cat conftest.err >&5
21739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740  (exit $ac_status); } &&
21741	 { ac_try='test -z "$ac_c_werror_flag"
21742			 || test ! -s conftest.err'
21743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744  (eval $ac_try) 2>&5
21745  ac_status=$?
21746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747  (exit $ac_status); }; } &&
21748	 { ac_try='test -s conftest$ac_exeext'
21749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750  (eval $ac_try) 2>&5
21751  ac_status=$?
21752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753  (exit $ac_status); }; }; then
21754  eval "$as_ac_var=yes"
21755else
21756  echo "$as_me: failed program was:" >&5
21757sed 's/^/| /' conftest.$ac_ext >&5
21758
21759eval "$as_ac_var=no"
21760fi
21761rm -f conftest.err conftest.$ac_objext \
21762      conftest$ac_exeext conftest.$ac_ext
21763fi
21764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21765echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21766if test `eval echo '${'$as_ac_var'}'` = yes; then
21767  cat >>confdefs.h <<_ACEOF
21768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21769_ACEOF
21770
21771fi
21772done
21773
21774  ;;
21775  esac
21776
21777
21778############################################
21779# Check if we have libattr
21780echo "$as_me:$LINENO: checking for library containing getxattr" >&5
21781echo $ECHO_N "checking for library containing getxattr... $ECHO_C" >&6
21782if test "${ac_cv_search_getxattr+set}" = set; then
21783  echo $ECHO_N "(cached) $ECHO_C" >&6
21784else
21785  ac_func_search_save_LIBS=$LIBS
21786ac_cv_search_getxattr=no
21787cat >conftest.$ac_ext <<_ACEOF
21788/* confdefs.h.  */
21789_ACEOF
21790cat confdefs.h >>conftest.$ac_ext
21791cat >>conftest.$ac_ext <<_ACEOF
21792/* end confdefs.h.  */
21793
21794/* Override any gcc2 internal prototype to avoid an error.  */
21795#ifdef __cplusplus
21796extern "C"
21797#endif
21798/* We use char because int might match the return type of a gcc2
21799   builtin and then its argument prototype would still apply.  */
21800char getxattr ();
21801int
21802main ()
21803{
21804getxattr ();
21805  ;
21806  return 0;
21807}
21808_ACEOF
21809rm -f conftest.$ac_objext conftest$ac_exeext
21810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21811  (eval $ac_link) 2>conftest.er1
21812  ac_status=$?
21813  grep -v '^ *+' conftest.er1 >conftest.err
21814  rm -f conftest.er1
21815  cat conftest.err >&5
21816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817  (exit $ac_status); } &&
21818	 { ac_try='test -z "$ac_c_werror_flag"
21819			 || test ! -s conftest.err'
21820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821  (eval $ac_try) 2>&5
21822  ac_status=$?
21823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824  (exit $ac_status); }; } &&
21825	 { ac_try='test -s conftest$ac_exeext'
21826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827  (eval $ac_try) 2>&5
21828  ac_status=$?
21829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830  (exit $ac_status); }; }; then
21831  ac_cv_search_getxattr="none required"
21832else
21833  echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
21836fi
21837rm -f conftest.err conftest.$ac_objext \
21838      conftest$ac_exeext conftest.$ac_ext
21839if test "$ac_cv_search_getxattr" = no; then
21840  for ac_lib in attr; do
21841    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21842    cat >conftest.$ac_ext <<_ACEOF
21843/* confdefs.h.  */
21844_ACEOF
21845cat confdefs.h >>conftest.$ac_ext
21846cat >>conftest.$ac_ext <<_ACEOF
21847/* end confdefs.h.  */
21848
21849/* Override any gcc2 internal prototype to avoid an error.  */
21850#ifdef __cplusplus
21851extern "C"
21852#endif
21853/* We use char because int might match the return type of a gcc2
21854   builtin and then its argument prototype would still apply.  */
21855char getxattr ();
21856int
21857main ()
21858{
21859getxattr ();
21860  ;
21861  return 0;
21862}
21863_ACEOF
21864rm -f conftest.$ac_objext conftest$ac_exeext
21865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21866  (eval $ac_link) 2>conftest.er1
21867  ac_status=$?
21868  grep -v '^ *+' conftest.er1 >conftest.err
21869  rm -f conftest.er1
21870  cat conftest.err >&5
21871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872  (exit $ac_status); } &&
21873	 { ac_try='test -z "$ac_c_werror_flag"
21874			 || test ! -s conftest.err'
21875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876  (eval $ac_try) 2>&5
21877  ac_status=$?
21878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879  (exit $ac_status); }; } &&
21880	 { ac_try='test -s conftest$ac_exeext'
21881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882  (eval $ac_try) 2>&5
21883  ac_status=$?
21884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885  (exit $ac_status); }; }; then
21886  ac_cv_search_getxattr="-l$ac_lib"
21887break
21888else
21889  echo "$as_me: failed program was:" >&5
21890sed 's/^/| /' conftest.$ac_ext >&5
21891
21892fi
21893rm -f conftest.err conftest.$ac_objext \
21894      conftest$ac_exeext conftest.$ac_ext
21895  done
21896fi
21897LIBS=$ac_func_search_save_LIBS
21898fi
21899echo "$as_me:$LINENO: result: $ac_cv_search_getxattr" >&5
21900echo "${ECHO_T}$ac_cv_search_getxattr" >&6
21901if test "$ac_cv_search_getxattr" != no; then
21902  test "$ac_cv_search_getxattr" = "none required" || LIBS="$ac_cv_search_getxattr $LIBS"
21903
21904fi
21905
21906
21907
21908
21909
21910
21911for ac_func in getxattr lgetxattr fgetxattr listxattr llistxattr
21912do
21913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21914echo "$as_me:$LINENO: checking for $ac_func" >&5
21915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21916if eval "test \"\${$as_ac_var+set}\" = set"; then
21917  echo $ECHO_N "(cached) $ECHO_C" >&6
21918else
21919  cat >conftest.$ac_ext <<_ACEOF
21920/* confdefs.h.  */
21921_ACEOF
21922cat confdefs.h >>conftest.$ac_ext
21923cat >>conftest.$ac_ext <<_ACEOF
21924/* end confdefs.h.  */
21925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21926   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21927#define $ac_func innocuous_$ac_func
21928
21929/* System header to define __stub macros and hopefully few prototypes,
21930    which can conflict with char $ac_func (); below.
21931    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21932    <limits.h> exists even on freestanding compilers.  */
21933
21934#ifdef __STDC__
21935# include <limits.h>
21936#else
21937# include <assert.h>
21938#endif
21939
21940#undef $ac_func
21941
21942/* Override any gcc2 internal prototype to avoid an error.  */
21943#ifdef __cplusplus
21944extern "C"
21945{
21946#endif
21947/* We use char because int might match the return type of a gcc2
21948   builtin and then its argument prototype would still apply.  */
21949char $ac_func ();
21950/* The GNU C library defines this for functions which it implements
21951    to always fail with ENOSYS.  Some functions are actually named
21952    something starting with __ and the normal name is an alias.  */
21953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21954choke me
21955#else
21956char (*f) () = $ac_func;
21957#endif
21958#ifdef __cplusplus
21959}
21960#endif
21961
21962int
21963main ()
21964{
21965return f != $ac_func;
21966  ;
21967  return 0;
21968}
21969_ACEOF
21970rm -f conftest.$ac_objext conftest$ac_exeext
21971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21972  (eval $ac_link) 2>conftest.er1
21973  ac_status=$?
21974  grep -v '^ *+' conftest.er1 >conftest.err
21975  rm -f conftest.er1
21976  cat conftest.err >&5
21977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978  (exit $ac_status); } &&
21979	 { ac_try='test -z "$ac_c_werror_flag"
21980			 || test ! -s conftest.err'
21981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982  (eval $ac_try) 2>&5
21983  ac_status=$?
21984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985  (exit $ac_status); }; } &&
21986	 { ac_try='test -s conftest$ac_exeext'
21987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988  (eval $ac_try) 2>&5
21989  ac_status=$?
21990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991  (exit $ac_status); }; }; then
21992  eval "$as_ac_var=yes"
21993else
21994  echo "$as_me: failed program was:" >&5
21995sed 's/^/| /' conftest.$ac_ext >&5
21996
21997eval "$as_ac_var=no"
21998fi
21999rm -f conftest.err conftest.$ac_objext \
22000      conftest$ac_exeext conftest.$ac_ext
22001fi
22002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22004if test `eval echo '${'$as_ac_var'}'` = yes; then
22005  cat >>confdefs.h <<_ACEOF
22006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22007_ACEOF
22008
22009fi
22010done
22011
22012
22013
22014
22015
22016for ac_func in flistxattr removexattr lremovexattr fremovexattr
22017do
22018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22019echo "$as_me:$LINENO: checking for $ac_func" >&5
22020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22021if eval "test \"\${$as_ac_var+set}\" = set"; then
22022  echo $ECHO_N "(cached) $ECHO_C" >&6
22023else
22024  cat >conftest.$ac_ext <<_ACEOF
22025/* confdefs.h.  */
22026_ACEOF
22027cat confdefs.h >>conftest.$ac_ext
22028cat >>conftest.$ac_ext <<_ACEOF
22029/* end confdefs.h.  */
22030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22031   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22032#define $ac_func innocuous_$ac_func
22033
22034/* System header to define __stub macros and hopefully few prototypes,
22035    which can conflict with char $ac_func (); below.
22036    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22037    <limits.h> exists even on freestanding compilers.  */
22038
22039#ifdef __STDC__
22040# include <limits.h>
22041#else
22042# include <assert.h>
22043#endif
22044
22045#undef $ac_func
22046
22047/* Override any gcc2 internal prototype to avoid an error.  */
22048#ifdef __cplusplus
22049extern "C"
22050{
22051#endif
22052/* We use char because int might match the return type of a gcc2
22053   builtin and then its argument prototype would still apply.  */
22054char $ac_func ();
22055/* The GNU C library defines this for functions which it implements
22056    to always fail with ENOSYS.  Some functions are actually named
22057    something starting with __ and the normal name is an alias.  */
22058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22059choke me
22060#else
22061char (*f) () = $ac_func;
22062#endif
22063#ifdef __cplusplus
22064}
22065#endif
22066
22067int
22068main ()
22069{
22070return f != $ac_func;
22071  ;
22072  return 0;
22073}
22074_ACEOF
22075rm -f conftest.$ac_objext conftest$ac_exeext
22076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077  (eval $ac_link) 2>conftest.er1
22078  ac_status=$?
22079  grep -v '^ *+' conftest.er1 >conftest.err
22080  rm -f conftest.er1
22081  cat conftest.err >&5
22082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083  (exit $ac_status); } &&
22084	 { ac_try='test -z "$ac_c_werror_flag"
22085			 || test ! -s conftest.err'
22086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087  (eval $ac_try) 2>&5
22088  ac_status=$?
22089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090  (exit $ac_status); }; } &&
22091	 { ac_try='test -s conftest$ac_exeext'
22092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093  (eval $ac_try) 2>&5
22094  ac_status=$?
22095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096  (exit $ac_status); }; }; then
22097  eval "$as_ac_var=yes"
22098else
22099  echo "$as_me: failed program was:" >&5
22100sed 's/^/| /' conftest.$ac_ext >&5
22101
22102eval "$as_ac_var=no"
22103fi
22104rm -f conftest.err conftest.$ac_objext \
22105      conftest$ac_exeext conftest.$ac_ext
22106fi
22107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22109if test `eval echo '${'$as_ac_var'}'` = yes; then
22110  cat >>confdefs.h <<_ACEOF
22111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22112_ACEOF
22113
22114fi
22115done
22116
22117
22118
22119
22120for ac_func in setxattr lsetxattr fsetxattr
22121do
22122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22123echo "$as_me:$LINENO: checking for $ac_func" >&5
22124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22125if eval "test \"\${$as_ac_var+set}\" = set"; then
22126  echo $ECHO_N "(cached) $ECHO_C" >&6
22127else
22128  cat >conftest.$ac_ext <<_ACEOF
22129/* confdefs.h.  */
22130_ACEOF
22131cat confdefs.h >>conftest.$ac_ext
22132cat >>conftest.$ac_ext <<_ACEOF
22133/* end confdefs.h.  */
22134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22135   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22136#define $ac_func innocuous_$ac_func
22137
22138/* System header to define __stub macros and hopefully few prototypes,
22139    which can conflict with char $ac_func (); below.
22140    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22141    <limits.h> exists even on freestanding compilers.  */
22142
22143#ifdef __STDC__
22144# include <limits.h>
22145#else
22146# include <assert.h>
22147#endif
22148
22149#undef $ac_func
22150
22151/* Override any gcc2 internal prototype to avoid an error.  */
22152#ifdef __cplusplus
22153extern "C"
22154{
22155#endif
22156/* We use char because int might match the return type of a gcc2
22157   builtin and then its argument prototype would still apply.  */
22158char $ac_func ();
22159/* The GNU C library defines this for functions which it implements
22160    to always fail with ENOSYS.  Some functions are actually named
22161    something starting with __ and the normal name is an alias.  */
22162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22163choke me
22164#else
22165char (*f) () = $ac_func;
22166#endif
22167#ifdef __cplusplus
22168}
22169#endif
22170
22171int
22172main ()
22173{
22174return f != $ac_func;
22175  ;
22176  return 0;
22177}
22178_ACEOF
22179rm -f conftest.$ac_objext conftest$ac_exeext
22180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22181  (eval $ac_link) 2>conftest.er1
22182  ac_status=$?
22183  grep -v '^ *+' conftest.er1 >conftest.err
22184  rm -f conftest.er1
22185  cat conftest.err >&5
22186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187  (exit $ac_status); } &&
22188	 { ac_try='test -z "$ac_c_werror_flag"
22189			 || test ! -s conftest.err'
22190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191  (eval $ac_try) 2>&5
22192  ac_status=$?
22193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194  (exit $ac_status); }; } &&
22195	 { ac_try='test -s conftest$ac_exeext'
22196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197  (eval $ac_try) 2>&5
22198  ac_status=$?
22199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200  (exit $ac_status); }; }; then
22201  eval "$as_ac_var=yes"
22202else
22203  echo "$as_me: failed program was:" >&5
22204sed 's/^/| /' conftest.$ac_ext >&5
22205
22206eval "$as_ac_var=no"
22207fi
22208rm -f conftest.err conftest.$ac_objext \
22209      conftest$ac_exeext conftest.$ac_ext
22210fi
22211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22213if test `eval echo '${'$as_ac_var'}'` = yes; then
22214  cat >>confdefs.h <<_ACEOF
22215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22216_ACEOF
22217
22218fi
22219done
22220
22221
22222
22223
22224
22225for ac_func in attr_get attr_list attr_set attr_remove
22226do
22227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22228echo "$as_me:$LINENO: checking for $ac_func" >&5
22229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22230if eval "test \"\${$as_ac_var+set}\" = set"; then
22231  echo $ECHO_N "(cached) $ECHO_C" >&6
22232else
22233  cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h.  */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h.  */
22239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22240   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22241#define $ac_func innocuous_$ac_func
22242
22243/* System header to define __stub macros and hopefully few prototypes,
22244    which can conflict with char $ac_func (); below.
22245    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22246    <limits.h> exists even on freestanding compilers.  */
22247
22248#ifdef __STDC__
22249# include <limits.h>
22250#else
22251# include <assert.h>
22252#endif
22253
22254#undef $ac_func
22255
22256/* Override any gcc2 internal prototype to avoid an error.  */
22257#ifdef __cplusplus
22258extern "C"
22259{
22260#endif
22261/* We use char because int might match the return type of a gcc2
22262   builtin and then its argument prototype would still apply.  */
22263char $ac_func ();
22264/* The GNU C library defines this for functions which it implements
22265    to always fail with ENOSYS.  Some functions are actually named
22266    something starting with __ and the normal name is an alias.  */
22267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22268choke me
22269#else
22270char (*f) () = $ac_func;
22271#endif
22272#ifdef __cplusplus
22273}
22274#endif
22275
22276int
22277main ()
22278{
22279return f != $ac_func;
22280  ;
22281  return 0;
22282}
22283_ACEOF
22284rm -f conftest.$ac_objext conftest$ac_exeext
22285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22286  (eval $ac_link) 2>conftest.er1
22287  ac_status=$?
22288  grep -v '^ *+' conftest.er1 >conftest.err
22289  rm -f conftest.er1
22290  cat conftest.err >&5
22291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292  (exit $ac_status); } &&
22293	 { ac_try='test -z "$ac_c_werror_flag"
22294			 || test ! -s conftest.err'
22295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296  (eval $ac_try) 2>&5
22297  ac_status=$?
22298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299  (exit $ac_status); }; } &&
22300	 { ac_try='test -s conftest$ac_exeext'
22301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302  (eval $ac_try) 2>&5
22303  ac_status=$?
22304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305  (exit $ac_status); }; }; then
22306  eval "$as_ac_var=yes"
22307else
22308  echo "$as_me: failed program was:" >&5
22309sed 's/^/| /' conftest.$ac_ext >&5
22310
22311eval "$as_ac_var=no"
22312fi
22313rm -f conftest.err conftest.$ac_objext \
22314      conftest$ac_exeext conftest.$ac_ext
22315fi
22316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22318if test `eval echo '${'$as_ac_var'}'` = yes; then
22319  cat >>confdefs.h <<_ACEOF
22320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22321_ACEOF
22322
22323fi
22324done
22325
22326
22327
22328
22329
22330for ac_func in attr_getf attr_listf attr_setf attr_removef
22331do
22332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22333echo "$as_me:$LINENO: checking for $ac_func" >&5
22334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22335if eval "test \"\${$as_ac_var+set}\" = set"; then
22336  echo $ECHO_N "(cached) $ECHO_C" >&6
22337else
22338  cat >conftest.$ac_ext <<_ACEOF
22339/* confdefs.h.  */
22340_ACEOF
22341cat confdefs.h >>conftest.$ac_ext
22342cat >>conftest.$ac_ext <<_ACEOF
22343/* end confdefs.h.  */
22344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22345   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22346#define $ac_func innocuous_$ac_func
22347
22348/* System header to define __stub macros and hopefully few prototypes,
22349    which can conflict with char $ac_func (); below.
22350    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22351    <limits.h> exists even on freestanding compilers.  */
22352
22353#ifdef __STDC__
22354# include <limits.h>
22355#else
22356# include <assert.h>
22357#endif
22358
22359#undef $ac_func
22360
22361/* Override any gcc2 internal prototype to avoid an error.  */
22362#ifdef __cplusplus
22363extern "C"
22364{
22365#endif
22366/* We use char because int might match the return type of a gcc2
22367   builtin and then its argument prototype would still apply.  */
22368char $ac_func ();
22369/* The GNU C library defines this for functions which it implements
22370    to always fail with ENOSYS.  Some functions are actually named
22371    something starting with __ and the normal name is an alias.  */
22372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22373choke me
22374#else
22375char (*f) () = $ac_func;
22376#endif
22377#ifdef __cplusplus
22378}
22379#endif
22380
22381int
22382main ()
22383{
22384return f != $ac_func;
22385  ;
22386  return 0;
22387}
22388_ACEOF
22389rm -f conftest.$ac_objext conftest$ac_exeext
22390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22391  (eval $ac_link) 2>conftest.er1
22392  ac_status=$?
22393  grep -v '^ *+' conftest.er1 >conftest.err
22394  rm -f conftest.er1
22395  cat conftest.err >&5
22396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397  (exit $ac_status); } &&
22398	 { ac_try='test -z "$ac_c_werror_flag"
22399			 || test ! -s conftest.err'
22400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401  (eval $ac_try) 2>&5
22402  ac_status=$?
22403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404  (exit $ac_status); }; } &&
22405	 { ac_try='test -s conftest$ac_exeext'
22406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407  (eval $ac_try) 2>&5
22408  ac_status=$?
22409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410  (exit $ac_status); }; }; then
22411  eval "$as_ac_var=yes"
22412else
22413  echo "$as_me: failed program was:" >&5
22414sed 's/^/| /' conftest.$ac_ext >&5
22415
22416eval "$as_ac_var=no"
22417fi
22418rm -f conftest.err conftest.$ac_objext \
22419      conftest$ac_exeext conftest.$ac_ext
22420fi
22421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22423if test `eval echo '${'$as_ac_var'}'` = yes; then
22424  cat >>confdefs.h <<_ACEOF
22425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22426_ACEOF
22427
22428fi
22429done
22430
22431
22432# Assume non-shared by default and override below
22433BLDSHARED="false"
22434
22435# these are the defaults, good for lots of systems
22436HOST_OS="$host_os"
22437LDSHFLAGS="-shared"
22438SONAMEFLAG="#"
22439SHLD="\${CC} \${CFLAGS}"
22440PICFLAGS=""
22441PICSUFFIX="po"
22442SHLIBEXT="so"
22443
22444if test "$enable_shared" = "yes"; then
22445  # this bit needs to be modified for each OS that is suported by
22446  # smbwrapper. You need to specify how to created a shared library and
22447  # how to compile C code to produce PIC object files
22448
22449  echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
22450echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
22451
22452  # and these are for particular systems
22453  case "$host_os" in
22454		*linux*)
22455cat >>confdefs.h <<\_ACEOF
22456#define LINUX 1
22457_ACEOF
22458
22459			BLDSHARED="true"
22460			if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
22461				LDSHFLAGS="-shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined"
22462			else
22463				LDSHFLAGS="-shared -Wl,-Bsymbolic"
22464			fi
22465			DYNEXP="-Wl,--export-dynamic"
22466			PICFLAGS="-fPIC"
22467			SONAMEFLAG="-Wl,-soname="
22468			cat >>confdefs.h <<\_ACEOF
22469#define STAT_ST_BLOCKSIZE 512
22470_ACEOF
22471
22472			;;
22473		*solaris*)
22474cat >>confdefs.h <<\_ACEOF
22475#define SUNOS5 1
22476_ACEOF
22477
22478			BLDSHARED="true"
22479			LDSHFLAGS="-G"
22480			SONAMEFLAG="-h "
22481			if test "${GCC}" = "yes"; then
22482				PICFLAGS="-fPIC"
22483				if test "${ac_cv_prog_gnu_ld}" = "yes"; then
22484					DYNEXP="-Wl,-E"
22485				fi
22486			else
22487				PICFLAGS="-KPIC"
22488				## ${CFLAGS} added for building 64-bit shared
22489				## libs using Sun's Compiler
22490				LDSHFLAGS="-G \${CFLAGS}"
22491				PICSUFFIX="po.o"
22492			fi
22493
22494cat >>confdefs.h <<\_ACEOF
22495#define STAT_ST_BLOCKSIZE 512
22496_ACEOF
22497
22498
22499cat >>confdefs.h <<\_ACEOF
22500#define BROKEN_GETGRNAM 1
22501_ACEOF
22502
22503			;;
22504		*sunos*)
22505cat >>confdefs.h <<\_ACEOF
22506#define SUNOS4 1
22507_ACEOF
22508
22509			BLDSHARED="true"
22510			LDSHFLAGS="-G"
22511			SONAMEFLAG="-Wl,-h,"
22512			PICFLAGS="-KPIC"   # Is this correct for SunOS
22513			cat >>confdefs.h <<\_ACEOF
22514#define STAT_ST_BLOCKSIZE 512
22515_ACEOF
22516
22517
22518cat >>confdefs.h <<\_ACEOF
22519#define BROKEN_GETGRNAM 1
22520_ACEOF
22521
22522			;;
22523		*netbsd* | *freebsd* | *DragonFly* )
22524			BLDSHARED="true"
22525			LDSHFLAGS="-shared"
22526			DYNEXP="-Wl,--export-dynamic"
22527			SONAMEFLAG="-Wl,-soname,"
22528			PICFLAGS="-fPIC -DPIC"
22529
22530cat >>confdefs.h <<\_ACEOF
22531#define STAT_ST_BLOCKSIZE 512
22532_ACEOF
22533
22534
22535cat >>confdefs.h <<\_ACEOF
22536#define BROKEN_GETGRNAM 1
22537_ACEOF
22538
22539			;;
22540		*openbsd*)  BLDSHARED="true"
22541			LDSHFLAGS="-shared"
22542			DYNEXP="-Wl,-Bdynamic"
22543			SONAMEFLAG="-Wl,-soname,"
22544			PICFLAGS="-fPIC"
22545
22546cat >>confdefs.h <<\_ACEOF
22547#define STAT_ST_BLOCKSIZE 512
22548_ACEOF
22549
22550
22551cat >>confdefs.h <<\_ACEOF
22552#define BROKEN_GETGRNAM 1
22553_ACEOF
22554
22555			;;
22556		*irix*)
22557cat >>confdefs.h <<\_ACEOF
22558#define IRIX 1
22559_ACEOF
22560
22561			case "$host_os" in
22562			*irix6*)
22563cat >>confdefs.h <<\_ACEOF
22564#define IRIX6 1
22565_ACEOF
22566
22567			;;
22568			esac
22569			BLDSHARED="true"
22570			LDSHFLAGS="-set_version sgi1.0 -shared"
22571			SONAMEFLAG="-soname "
22572			SHLD="\${LD}"
22573			if test "${GCC}" = "yes"; then
22574				PICFLAGS="-fPIC"
22575			else
22576				PICFLAGS="-KPIC"
22577			fi
22578
22579cat >>confdefs.h <<\_ACEOF
22580#define STAT_ST_BLOCKSIZE 512
22581_ACEOF
22582
22583			;;
22584		*aix*)
22585cat >>confdefs.h <<\_ACEOF
22586#define AIX 1
22587_ACEOF
22588
22589			BLDSHARED="true"
22590			LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry,-berok"
22591			DYNEXP="-Wl,-brtl,-bexpall"
22592			PICFLAGS="-O2"
22593			if test "${GCC}" != "yes"; then
22594				## for funky AIX compiler using strncpy()
22595				CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
22596			fi
22597
22598
22599cat >>confdefs.h <<\_ACEOF
22600#define STAT_ST_BLOCKSIZE DEV_BSIZE
22601_ACEOF
22602
22603
22604cat >>confdefs.h <<\_ACEOF
22605#define BROKEN_STRNLEN 1
22606_ACEOF
22607
22608
22609cat >>confdefs.h <<\_ACEOF
22610#define BROKEN_STRNDUP 1
22611_ACEOF
22612
22613			;;
22614		*hpux*)
22615cat >>confdefs.h <<\_ACEOF
22616#define HPUX 1
22617_ACEOF
22618
22619			SHLIBEXT="sl"
22620			# Use special PIC flags for the native HP-UX compiler.
22621			if test $ac_cv_prog_cc_Ae = yes; then
22622				BLDSHARED="true"
22623				SHLD="cc"
22624				LDSHFLAGS="-b -Wl,-B,symbolic,-b,-z"
22625				SONAMEFLAG="-Wl,+h "
22626				PICFLAGS="+z"
22627			elif test "${GCC}" = "yes"; then
22628				PICFLAGS="-fPIC"
22629			fi
22630			DYNEXP="-Wl,-E"
22631
22632cat >>confdefs.h <<\_ACEOF
22633#define STAT_ST_BLOCKSIZE 8192
22634_ACEOF
22635
22636
22637cat >>confdefs.h <<\_ACEOF
22638#define POSIX_ACL_NEEDS_MASK 1
22639_ACEOF
22640
22641			;;
22642		*qnx*)
22643cat >>confdefs.h <<\_ACEOF
22644#define QNX 1
22645_ACEOF
22646
22647			cat >>confdefs.h <<\_ACEOF
22648#define STAT_ST_BLOCKSIZE 512
22649_ACEOF
22650
22651			;;
22652		*osf*)
22653cat >>confdefs.h <<\_ACEOF
22654#define OSF1 1
22655_ACEOF
22656
22657			BLDSHARED="true"
22658			LDSHFLAGS="-shared"
22659			SONAMEFLAG="-Wl,-soname,"
22660			PICFLAGS="-fPIC"
22661			cat >>confdefs.h <<\_ACEOF
22662#define STAT_ST_BLOCKSIZE 512
22663_ACEOF
22664
22665
22666cat >>confdefs.h <<\_ACEOF
22667#define BROKEN_GETGRNAM 1
22668_ACEOF
22669
22670			;;
22671		*sco*)
22672cat >>confdefs.h <<\_ACEOF
22673#define SCO 1
22674_ACEOF
22675
22676			cat >>confdefs.h <<\_ACEOF
22677#define STAT_ST_BLOCKSIZE 512
22678_ACEOF
22679
22680			;;
22681		*unixware*)
22682cat >>confdefs.h <<\_ACEOF
22683#define UNIXWARE 1
22684_ACEOF
22685
22686			BLDSHARED="true"
22687			LDSHFLAGS="-shared"
22688			SONAMEFLAG="-Wl,-soname,"
22689			PICFLAGS="-KPIC"
22690			cat >>confdefs.h <<\_ACEOF
22691#define STAT_ST_BLOCKSIZE 512
22692_ACEOF
22693
22694			;;
22695		*next2*)
22696cat >>confdefs.h <<\_ACEOF
22697#define NEXT2 1
22698_ACEOF
22699
22700			cat >>confdefs.h <<\_ACEOF
22701#define STAT_ST_BLOCKSIZE 512
22702_ACEOF
22703
22704			;;
22705		*dgux*) # Extract the first word of "groff", so it can be a program name with args.
22706set dummy groff; ac_word=$2
22707echo "$as_me:$LINENO: checking for $ac_word" >&5
22708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22709if test "${ac_cv_prog_ROFF+set}" = set; then
22710  echo $ECHO_N "(cached) $ECHO_C" >&6
22711else
22712  if test -n "$ROFF"; then
22713  ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
22714else
22715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22716for as_dir in $PATH
22717do
22718  IFS=$as_save_IFS
22719  test -z "$as_dir" && as_dir=.
22720  for ac_exec_ext in '' $ac_executable_extensions; do
22721  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22722    ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
22723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22724    break 2
22725  fi
22726done
22727done
22728
22729fi
22730fi
22731ROFF=$ac_cv_prog_ROFF
22732if test -n "$ROFF"; then
22733  echo "$as_me:$LINENO: result: $ROFF" >&5
22734echo "${ECHO_T}$ROFF" >&6
22735else
22736  echo "$as_me:$LINENO: result: no" >&5
22737echo "${ECHO_T}no" >&6
22738fi
22739
22740			cat >>confdefs.h <<\_ACEOF
22741#define STAT_ST_BLOCKSIZE 512
22742_ACEOF
22743
22744			;;
22745		*sysv4*)
22746cat >>confdefs.h <<\_ACEOF
22747#define SYSV 1
22748_ACEOF
22749
22750			case "$host" in
22751				*-univel-*)     if  test "$GCC" != yes ; then
22752
22753cat >>confdefs.h <<\_ACEOF
22754#define HAVE_MEMSET 1
22755_ACEOF
22756
22757					fi
22758					LDSHFLAGS="-G"
22759                             		DYNEXP="-Bexport"
22760				;;
22761				*mips-sni-sysv4*)
22762cat >>confdefs.h <<\_ACEOF
22763#define RELIANTUNIX 1
22764_ACEOF
22765;;
22766			esac
22767			cat >>confdefs.h <<\_ACEOF
22768#define STAT_ST_BLOCKSIZE 512
22769_ACEOF
22770
22771			;;
22772
22773		*sysv5*)
22774cat >>confdefs.h <<\_ACEOF
22775#define SYSV 1
22776_ACEOF
22777
22778			if  test "$GCC" != yes ; then
22779
22780cat >>confdefs.h <<\_ACEOF
22781#define HAVE_MEMSET 1
22782_ACEOF
22783
22784			fi
22785			LDSHFLAGS="-G"
22786			cat >>confdefs.h <<\_ACEOF
22787#define STAT_ST_BLOCKSIZE 512
22788_ACEOF
22789
22790			;;
22791		*vos*) cat >>confdefs.h <<\_ACEOF
22792#define STAT_ST_BLOCKSIZE 4096
22793_ACEOF
22794
22795			BLDSHARED="false"
22796			LDSHFLAGS=""
22797			;;
22798
22799		*darwin*)
22800cat >>confdefs.h <<\_ACEOF
22801#define DARWINOS 1
22802_ACEOF
22803
22804			BLDSHARED="true"
22805			LDSHFLAGS="-bundle -flat_namespace -undefined suppress"
22806			SHLIBEXT="dylib"
22807			cat >>confdefs.h <<\_ACEOF
22808#define STAT_ST_BLOCKSIZE 512
22809_ACEOF
22810
22811			;;
22812
22813		*)
22814			cat >>confdefs.h <<\_ACEOF
22815#define STAT_ST_BLOCKSIZE 512
22816_ACEOF
22817
22818			;;
22819  esac
22820
22821  echo "$as_me:$LINENO: result: $BLDSHARED" >&5
22822echo "${ECHO_T}$BLDSHARED" >&6
22823  echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
22824echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
22825  echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
22826echo "${ECHO_T}$LDSHFLAGS" >&6
22827  echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
22828echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
22829  echo "$as_me:$LINENO: result: $PICFLAGS" >&5
22830echo "${ECHO_T}$PICFLAGS" >&6
22831fi
22832
22833#######################################################
22834# test whether building a shared library actually works
22835if test $BLDSHARED = true; then
22836echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
22837echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
22838if test "${ac_cv_shlib_works+set}" = set; then
22839  echo $ECHO_N "(cached) $ECHO_C" >&6
22840else
22841
22842   # try building a trivial shared library
22843   ac_cv_shlib_works=no
22844   # The $SHLD and $LDSHFLAGS variables may contain references to other
22845   # variables so they need to be eval'ed.
22846   $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o \
22847	shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c && \
22848   `eval echo $SHLD` `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" \
22849        shlib.$PICSUFFIX && ac_cv_shlib_works=yes
22850   rm -f "shlib.$SHLIBEXT" shlib.$PICSUFFIX
22851
22852fi
22853echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
22854echo "${ECHO_T}$ac_cv_shlib_works" >&6
22855if test $ac_cv_shlib_works = no; then
22856   BLDSHARED=false
22857fi
22858fi
22859
22860################
22861
22862echo "$as_me:$LINENO: checking for long long" >&5
22863echo $ECHO_N "checking for long long... $ECHO_C" >&6
22864if test "${samba_cv_have_longlong+set}" = set; then
22865  echo $ECHO_N "(cached) $ECHO_C" >&6
22866else
22867
22868if test "$cross_compiling" = yes; then
22869  samba_cv_have_longlong=cross
22870else
22871  cat >conftest.$ac_ext <<_ACEOF
22872/* confdefs.h.  */
22873_ACEOF
22874cat confdefs.h >>conftest.$ac_ext
22875cat >>conftest.$ac_ext <<_ACEOF
22876/* end confdefs.h.  */
22877#include <stdio.h>
22878main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
22879_ACEOF
22880rm -f conftest$ac_exeext
22881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22882  (eval $ac_link) 2>&5
22883  ac_status=$?
22884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887  (eval $ac_try) 2>&5
22888  ac_status=$?
22889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890  (exit $ac_status); }; }; then
22891  samba_cv_have_longlong=yes
22892else
22893  echo "$as_me: program exited with status $ac_status" >&5
22894echo "$as_me: failed program was:" >&5
22895sed 's/^/| /' conftest.$ac_ext >&5
22896
22897( exit $ac_status )
22898samba_cv_have_longlong=no
22899fi
22900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22901fi
22902fi
22903echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
22904echo "${ECHO_T}$samba_cv_have_longlong" >&6
22905if test x"$samba_cv_have_longlong" = x"yes"; then
22906
22907cat >>confdefs.h <<\_ACEOF
22908#define HAVE_LONGLONG 1
22909_ACEOF
22910
22911fi
22912
22913#
22914# Check if the compiler supports the LL prefix on long long integers.
22915# AIX needs this.
22916
22917echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
22918echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
22919if test "${samba_cv_compiler_supports_ll+set}" = set; then
22920  echo $ECHO_N "(cached) $ECHO_C" >&6
22921else
22922
22923    cat >conftest.$ac_ext <<_ACEOF
22924/* confdefs.h.  */
22925_ACEOF
22926cat confdefs.h >>conftest.$ac_ext
22927cat >>conftest.$ac_ext <<_ACEOF
22928/* end confdefs.h.  */
22929#include <stdio.h>
22930int
22931main ()
22932{
22933long long i = 0x8000000000LL
22934  ;
22935  return 0;
22936}
22937_ACEOF
22938rm -f conftest.$ac_objext
22939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22940  (eval $ac_compile) 2>conftest.er1
22941  ac_status=$?
22942  grep -v '^ *+' conftest.er1 >conftest.err
22943  rm -f conftest.er1
22944  cat conftest.err >&5
22945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946  (exit $ac_status); } &&
22947	 { ac_try='test -z "$ac_c_werror_flag"
22948			 || test ! -s conftest.err'
22949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950  (eval $ac_try) 2>&5
22951  ac_status=$?
22952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953  (exit $ac_status); }; } &&
22954	 { ac_try='test -s conftest.$ac_objext'
22955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956  (eval $ac_try) 2>&5
22957  ac_status=$?
22958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959  (exit $ac_status); }; }; then
22960  samba_cv_compiler_supports_ll=yes
22961else
22962  echo "$as_me: failed program was:" >&5
22963sed 's/^/| /' conftest.$ac_ext >&5
22964
22965samba_cv_compiler_supports_ll=no
22966fi
22967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22968fi
22969echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
22970echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
22971if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
22972
22973cat >>confdefs.h <<\_ACEOF
22974#define COMPILER_SUPPORTS_LL 1
22975_ACEOF
22976
22977fi
22978
22979
22980echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
22981echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
22982if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
22983  echo $ECHO_N "(cached) $ECHO_C" >&6
22984else
22985
22986if test "$cross_compiling" = yes; then
22987  samba_cv_SIZEOF_OFF_T=cross
22988else
22989  cat >conftest.$ac_ext <<_ACEOF
22990/* confdefs.h.  */
22991_ACEOF
22992cat confdefs.h >>conftest.$ac_ext
22993cat >>conftest.$ac_ext <<_ACEOF
22994/* end confdefs.h.  */
22995#include <stdio.h>
22996#include <sys/stat.h>
22997main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
22998_ACEOF
22999rm -f conftest$ac_exeext
23000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001  (eval $ac_link) 2>&5
23002  ac_status=$?
23003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006  (eval $ac_try) 2>&5
23007  ac_status=$?
23008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009  (exit $ac_status); }; }; then
23010  samba_cv_SIZEOF_OFF_T=yes
23011else
23012  echo "$as_me: program exited with status $ac_status" >&5
23013echo "$as_me: failed program was:" >&5
23014sed 's/^/| /' conftest.$ac_ext >&5
23015
23016( exit $ac_status )
23017samba_cv_SIZEOF_OFF_T=no
23018fi
23019rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23020fi
23021fi
23022echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
23023echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
23024if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
23025
23026cat >>confdefs.h <<\_ACEOF
23027#define SIZEOF_OFF_T 8
23028_ACEOF
23029
23030fi
23031
23032echo "$as_me:$LINENO: checking for off64_t" >&5
23033echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
23034if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
23035  echo $ECHO_N "(cached) $ECHO_C" >&6
23036else
23037
23038if test "$cross_compiling" = yes; then
23039  samba_cv_HAVE_OFF64_T=cross
23040else
23041  cat >conftest.$ac_ext <<_ACEOF
23042/* confdefs.h.  */
23043_ACEOF
23044cat confdefs.h >>conftest.$ac_ext
23045cat >>conftest.$ac_ext <<_ACEOF
23046/* end confdefs.h.  */
23047
23048#if defined(HAVE_UNISTD_H)
23049#include <unistd.h>
23050#endif
23051#include <stdio.h>
23052#include <sys/stat.h>
23053main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
23054_ACEOF
23055rm -f conftest$ac_exeext
23056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23057  (eval $ac_link) 2>&5
23058  ac_status=$?
23059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062  (eval $ac_try) 2>&5
23063  ac_status=$?
23064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065  (exit $ac_status); }; }; then
23066  samba_cv_HAVE_OFF64_T=yes
23067else
23068  echo "$as_me: program exited with status $ac_status" >&5
23069echo "$as_me: failed program was:" >&5
23070sed 's/^/| /' conftest.$ac_ext >&5
23071
23072( exit $ac_status )
23073samba_cv_HAVE_OFF64_T=no
23074fi
23075rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23076fi
23077fi
23078echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
23079echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
23080if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
23081
23082cat >>confdefs.h <<\_ACEOF
23083#define HAVE_OFF64_T 1
23084_ACEOF
23085
23086fi
23087
23088echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
23089echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
23090if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
23091  echo $ECHO_N "(cached) $ECHO_C" >&6
23092else
23093
23094if test "$cross_compiling" = yes; then
23095  samba_cv_SIZEOF_INO_T=cross
23096else
23097  cat >conftest.$ac_ext <<_ACEOF
23098/* confdefs.h.  */
23099_ACEOF
23100cat confdefs.h >>conftest.$ac_ext
23101cat >>conftest.$ac_ext <<_ACEOF
23102/* end confdefs.h.  */
23103#include <stdio.h>
23104#include <sys/stat.h>
23105main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
23106_ACEOF
23107rm -f conftest$ac_exeext
23108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109  (eval $ac_link) 2>&5
23110  ac_status=$?
23111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114  (eval $ac_try) 2>&5
23115  ac_status=$?
23116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117  (exit $ac_status); }; }; then
23118  samba_cv_SIZEOF_INO_T=yes
23119else
23120  echo "$as_me: program exited with status $ac_status" >&5
23121echo "$as_me: failed program was:" >&5
23122sed 's/^/| /' conftest.$ac_ext >&5
23123
23124( exit $ac_status )
23125samba_cv_SIZEOF_INO_T=no
23126fi
23127rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23128fi
23129fi
23130echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
23131echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
23132if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
23133
23134cat >>confdefs.h <<\_ACEOF
23135#define SIZEOF_INO_T 8
23136_ACEOF
23137
23138fi
23139
23140echo "$as_me:$LINENO: checking for ino64_t" >&5
23141echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
23142if test "${samba_cv_HAVE_INO64_T+set}" = set; then
23143  echo $ECHO_N "(cached) $ECHO_C" >&6
23144else
23145
23146if test "$cross_compiling" = yes; then
23147  samba_cv_HAVE_INO64_T=cross
23148else
23149  cat >conftest.$ac_ext <<_ACEOF
23150/* confdefs.h.  */
23151_ACEOF
23152cat confdefs.h >>conftest.$ac_ext
23153cat >>conftest.$ac_ext <<_ACEOF
23154/* end confdefs.h.  */
23155
23156#if defined(HAVE_UNISTD_H)
23157#include <unistd.h>
23158#endif
23159#include <stdio.h>
23160#include <sys/stat.h>
23161main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
23162_ACEOF
23163rm -f conftest$ac_exeext
23164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23165  (eval $ac_link) 2>&5
23166  ac_status=$?
23167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170  (eval $ac_try) 2>&5
23171  ac_status=$?
23172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173  (exit $ac_status); }; }; then
23174  samba_cv_HAVE_INO64_T=yes
23175else
23176  echo "$as_me: program exited with status $ac_status" >&5
23177echo "$as_me: failed program was:" >&5
23178sed 's/^/| /' conftest.$ac_ext >&5
23179
23180( exit $ac_status )
23181samba_cv_HAVE_INO64_T=no
23182fi
23183rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23184fi
23185fi
23186echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
23187echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
23188if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
23189
23190cat >>confdefs.h <<\_ACEOF
23191#define HAVE_INO64_T 1
23192_ACEOF
23193
23194fi
23195
23196echo "$as_me:$LINENO: checking for dev64_t" >&5
23197echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
23198if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
23199  echo $ECHO_N "(cached) $ECHO_C" >&6
23200else
23201
23202if test "$cross_compiling" = yes; then
23203  samba_cv_HAVE_DEV64_T=cross
23204else
23205  cat >conftest.$ac_ext <<_ACEOF
23206/* confdefs.h.  */
23207_ACEOF
23208cat confdefs.h >>conftest.$ac_ext
23209cat >>conftest.$ac_ext <<_ACEOF
23210/* end confdefs.h.  */
23211
23212#if defined(HAVE_UNISTD_H)
23213#include <unistd.h>
23214#endif
23215#include <stdio.h>
23216#include <sys/stat.h>
23217main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
23218_ACEOF
23219rm -f conftest$ac_exeext
23220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23221  (eval $ac_link) 2>&5
23222  ac_status=$?
23223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226  (eval $ac_try) 2>&5
23227  ac_status=$?
23228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229  (exit $ac_status); }; }; then
23230  samba_cv_HAVE_DEV64_T=yes
23231else
23232  echo "$as_me: program exited with status $ac_status" >&5
23233echo "$as_me: failed program was:" >&5
23234sed 's/^/| /' conftest.$ac_ext >&5
23235
23236( exit $ac_status )
23237samba_cv_HAVE_DEV64_T=no
23238fi
23239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23240fi
23241fi
23242echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
23243echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
23244if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
23245
23246cat >>confdefs.h <<\_ACEOF
23247#define HAVE_DEV64_T 1
23248_ACEOF
23249
23250fi
23251
23252echo "$as_me:$LINENO: checking for struct dirent64" >&5
23253echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
23254if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
23255  echo $ECHO_N "(cached) $ECHO_C" >&6
23256else
23257
23258cat >conftest.$ac_ext <<_ACEOF
23259/* confdefs.h.  */
23260_ACEOF
23261cat confdefs.h >>conftest.$ac_ext
23262cat >>conftest.$ac_ext <<_ACEOF
23263/* end confdefs.h.  */
23264
23265#if defined(HAVE_UNISTD_H)
23266#include <unistd.h>
23267#endif
23268#include <sys/types.h>
23269#include <dirent.h>
23270int
23271main ()
23272{
23273struct dirent64 de;
23274  ;
23275  return 0;
23276}
23277_ACEOF
23278rm -f conftest.$ac_objext
23279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23280  (eval $ac_compile) 2>conftest.er1
23281  ac_status=$?
23282  grep -v '^ *+' conftest.er1 >conftest.err
23283  rm -f conftest.er1
23284  cat conftest.err >&5
23285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286  (exit $ac_status); } &&
23287	 { ac_try='test -z "$ac_c_werror_flag"
23288			 || test ! -s conftest.err'
23289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290  (eval $ac_try) 2>&5
23291  ac_status=$?
23292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293  (exit $ac_status); }; } &&
23294	 { ac_try='test -s conftest.$ac_objext'
23295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296  (eval $ac_try) 2>&5
23297  ac_status=$?
23298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299  (exit $ac_status); }; }; then
23300  samba_cv_HAVE_STRUCT_DIRENT64=yes
23301else
23302  echo "$as_me: failed program was:" >&5
23303sed 's/^/| /' conftest.$ac_ext >&5
23304
23305samba_cv_HAVE_STRUCT_DIRENT64=no
23306fi
23307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23308fi
23309echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
23310echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
23311if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
23312
23313cat >>confdefs.h <<\_ACEOF
23314#define HAVE_STRUCT_DIRENT64 1
23315_ACEOF
23316
23317fi
23318
23319echo "$as_me:$LINENO: checking for major macro" >&5
23320echo $ECHO_N "checking for major macro... $ECHO_C" >&6
23321if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
23322  echo $ECHO_N "(cached) $ECHO_C" >&6
23323else
23324
23325if test "$cross_compiling" = yes; then
23326  samba_cv_HAVE_DEVICE_MAJOR_FN=cross
23327else
23328  cat >conftest.$ac_ext <<_ACEOF
23329/* confdefs.h.  */
23330_ACEOF
23331cat confdefs.h >>conftest.$ac_ext
23332cat >>conftest.$ac_ext <<_ACEOF
23333/* end confdefs.h.  */
23334
23335#if defined(HAVE_UNISTD_H)
23336#include <unistd.h>
23337#endif
23338#include <sys/types.h>
23339main() { dev_t dev; int i = major(dev); return 0; }
23340_ACEOF
23341rm -f conftest$ac_exeext
23342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343  (eval $ac_link) 2>&5
23344  ac_status=$?
23345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348  (eval $ac_try) 2>&5
23349  ac_status=$?
23350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351  (exit $ac_status); }; }; then
23352  samba_cv_HAVE_DEVICE_MAJOR_FN=yes
23353else
23354  echo "$as_me: program exited with status $ac_status" >&5
23355echo "$as_me: failed program was:" >&5
23356sed 's/^/| /' conftest.$ac_ext >&5
23357
23358( exit $ac_status )
23359samba_cv_HAVE_DEVICE_MAJOR_FN=no
23360fi
23361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23362fi
23363fi
23364echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
23365echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
23366if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
23367
23368cat >>confdefs.h <<\_ACEOF
23369#define HAVE_DEVICE_MAJOR_FN 1
23370_ACEOF
23371
23372fi
23373
23374echo "$as_me:$LINENO: checking for minor macro" >&5
23375echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
23376if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
23377  echo $ECHO_N "(cached) $ECHO_C" >&6
23378else
23379
23380if test "$cross_compiling" = yes; then
23381  samba_cv_HAVE_DEVICE_MINOR_FN=cross
23382else
23383  cat >conftest.$ac_ext <<_ACEOF
23384/* confdefs.h.  */
23385_ACEOF
23386cat confdefs.h >>conftest.$ac_ext
23387cat >>conftest.$ac_ext <<_ACEOF
23388/* end confdefs.h.  */
23389
23390#if defined(HAVE_UNISTD_H)
23391#include <unistd.h>
23392#endif
23393#include <sys/types.h>
23394main() { dev_t dev; int i = minor(dev); return 0; }
23395_ACEOF
23396rm -f conftest$ac_exeext
23397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23398  (eval $ac_link) 2>&5
23399  ac_status=$?
23400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403  (eval $ac_try) 2>&5
23404  ac_status=$?
23405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406  (exit $ac_status); }; }; then
23407  samba_cv_HAVE_DEVICE_MINOR_FN=yes
23408else
23409  echo "$as_me: program exited with status $ac_status" >&5
23410echo "$as_me: failed program was:" >&5
23411sed 's/^/| /' conftest.$ac_ext >&5
23412
23413( exit $ac_status )
23414samba_cv_HAVE_DEVICE_MINOR_FN=no
23415fi
23416rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23417fi
23418fi
23419echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
23420echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
23421if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
23422
23423cat >>confdefs.h <<\_ACEOF
23424#define HAVE_DEVICE_MINOR_FN 1
23425_ACEOF
23426
23427fi
23428
23429echo "$as_me:$LINENO: checking for makedev macro" >&5
23430echo $ECHO_N "checking for makedev macro... $ECHO_C" >&6
23431if test "${samba_cv_HAVE_MAKEDEV+set}" = set; then
23432  echo $ECHO_N "(cached) $ECHO_C" >&6
23433else
23434
23435if test "$cross_compiling" = yes; then
23436  samba_cv_HAVE_MAKEDEV=cross
23437else
23438  cat >conftest.$ac_ext <<_ACEOF
23439/* confdefs.h.  */
23440_ACEOF
23441cat confdefs.h >>conftest.$ac_ext
23442cat >>conftest.$ac_ext <<_ACEOF
23443/* end confdefs.h.  */
23444
23445#if defined(HAVE_UNISTD_H)
23446#include <unistd.h>
23447#endif
23448#include <sys/types.h>
23449main() { dev_t dev = makedev(1,2); return 0; }
23450_ACEOF
23451rm -f conftest$ac_exeext
23452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23453  (eval $ac_link) 2>&5
23454  ac_status=$?
23455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458  (eval $ac_try) 2>&5
23459  ac_status=$?
23460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461  (exit $ac_status); }; }; then
23462  samba_cv_HAVE_MAKEDEV=yes
23463else
23464  echo "$as_me: program exited with status $ac_status" >&5
23465echo "$as_me: failed program was:" >&5
23466sed 's/^/| /' conftest.$ac_ext >&5
23467
23468( exit $ac_status )
23469samba_cv_HAVE_MAKEDEV=no
23470fi
23471rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23472fi
23473fi
23474echo "$as_me:$LINENO: result: $samba_cv_HAVE_MAKEDEV" >&5
23475echo "${ECHO_T}$samba_cv_HAVE_MAKEDEV" >&6
23476if test x"$samba_cv_HAVE_MAKEDEV" = x"yes"; then
23477
23478cat >>confdefs.h <<\_ACEOF
23479#define HAVE_MAKEDEV 1
23480_ACEOF
23481
23482fi
23483
23484echo "$as_me:$LINENO: checking for unsigned char" >&5
23485echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
23486if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
23487  echo $ECHO_N "(cached) $ECHO_C" >&6
23488else
23489
23490if test "$cross_compiling" = yes; then
23491  samba_cv_HAVE_UNSIGNED_CHAR=cross
23492else
23493  cat >conftest.$ac_ext <<_ACEOF
23494/* confdefs.h.  */
23495_ACEOF
23496cat confdefs.h >>conftest.$ac_ext
23497cat >>conftest.$ac_ext <<_ACEOF
23498/* end confdefs.h.  */
23499#include <stdio.h>
23500main() { char c; c=250; exit((c > 0)?0:1); }
23501_ACEOF
23502rm -f conftest$ac_exeext
23503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23504  (eval $ac_link) 2>&5
23505  ac_status=$?
23506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509  (eval $ac_try) 2>&5
23510  ac_status=$?
23511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512  (exit $ac_status); }; }; then
23513  samba_cv_HAVE_UNSIGNED_CHAR=yes
23514else
23515  echo "$as_me: program exited with status $ac_status" >&5
23516echo "$as_me: failed program was:" >&5
23517sed 's/^/| /' conftest.$ac_ext >&5
23518
23519( exit $ac_status )
23520samba_cv_HAVE_UNSIGNED_CHAR=no
23521fi
23522rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23523fi
23524fi
23525echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
23526echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
23527if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
23528
23529cat >>confdefs.h <<\_ACEOF
23530#define HAVE_UNSIGNED_CHAR 1
23531_ACEOF
23532
23533fi
23534
23535echo "$as_me:$LINENO: checking for sin_len in sock" >&5
23536echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
23537if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
23538  echo $ECHO_N "(cached) $ECHO_C" >&6
23539else
23540
23541cat >conftest.$ac_ext <<_ACEOF
23542/* confdefs.h.  */
23543_ACEOF
23544cat confdefs.h >>conftest.$ac_ext
23545cat >>conftest.$ac_ext <<_ACEOF
23546/* end confdefs.h.  */
23547#include <sys/types.h>
23548#include <sys/socket.h>
23549#include <netinet/in.h>
23550int
23551main ()
23552{
23553struct sockaddr_in sock; sock.sin_len = sizeof(sock);
23554  ;
23555  return 0;
23556}
23557_ACEOF
23558rm -f conftest.$ac_objext
23559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23560  (eval $ac_compile) 2>conftest.er1
23561  ac_status=$?
23562  grep -v '^ *+' conftest.er1 >conftest.err
23563  rm -f conftest.er1
23564  cat conftest.err >&5
23565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566  (exit $ac_status); } &&
23567	 { ac_try='test -z "$ac_c_werror_flag"
23568			 || test ! -s conftest.err'
23569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570  (eval $ac_try) 2>&5
23571  ac_status=$?
23572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573  (exit $ac_status); }; } &&
23574	 { ac_try='test -s conftest.$ac_objext'
23575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576  (eval $ac_try) 2>&5
23577  ac_status=$?
23578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579  (exit $ac_status); }; }; then
23580  samba_cv_HAVE_SOCK_SIN_LEN=yes
23581else
23582  echo "$as_me: failed program was:" >&5
23583sed 's/^/| /' conftest.$ac_ext >&5
23584
23585samba_cv_HAVE_SOCK_SIN_LEN=no
23586fi
23587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23588fi
23589echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
23590echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
23591if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
23592
23593cat >>confdefs.h <<\_ACEOF
23594#define HAVE_SOCK_SIN_LEN 1
23595_ACEOF
23596
23597fi
23598
23599echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
23600echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
23601if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
23602  echo $ECHO_N "(cached) $ECHO_C" >&6
23603else
23604
23605cat >conftest.$ac_ext <<_ACEOF
23606/* confdefs.h.  */
23607_ACEOF
23608cat confdefs.h >>conftest.$ac_ext
23609cat >>conftest.$ac_ext <<_ACEOF
23610/* end confdefs.h.  */
23611#include <sys/types.h>
23612#include <dirent.h>
23613void seekdir(DIR *d, long loc) { return; }
23614int
23615main ()
23616{
23617return 0;
23618  ;
23619  return 0;
23620}
23621_ACEOF
23622rm -f conftest.$ac_objext
23623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23624  (eval $ac_compile) 2>conftest.er1
23625  ac_status=$?
23626  grep -v '^ *+' conftest.er1 >conftest.err
23627  rm -f conftest.er1
23628  cat conftest.err >&5
23629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630  (exit $ac_status); } &&
23631	 { ac_try='test -z "$ac_c_werror_flag"
23632			 || test ! -s conftest.err'
23633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634  (eval $ac_try) 2>&5
23635  ac_status=$?
23636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637  (exit $ac_status); }; } &&
23638	 { ac_try='test -s conftest.$ac_objext'
23639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640  (eval $ac_try) 2>&5
23641  ac_status=$?
23642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643  (exit $ac_status); }; }; then
23644  samba_cv_SEEKDIR_RETURNS_VOID=yes
23645else
23646  echo "$as_me: failed program was:" >&5
23647sed 's/^/| /' conftest.$ac_ext >&5
23648
23649samba_cv_SEEKDIR_RETURNS_VOID=no
23650fi
23651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23652fi
23653echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
23654echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
23655if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
23656
23657cat >>confdefs.h <<\_ACEOF
23658#define SEEKDIR_RETURNS_VOID 1
23659_ACEOF
23660
23661fi
23662
23663echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
23664echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
23665if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
23666  echo $ECHO_N "(cached) $ECHO_C" >&6
23667else
23668
23669cat >conftest.$ac_ext <<_ACEOF
23670/* confdefs.h.  */
23671_ACEOF
23672cat confdefs.h >>conftest.$ac_ext
23673cat >>conftest.$ac_ext <<_ACEOF
23674/* end confdefs.h.  */
23675#include <stdio.h>
23676int
23677main ()
23678{
23679printf("%s\n", __FUNCTION__);
23680  ;
23681  return 0;
23682}
23683_ACEOF
23684rm -f conftest.$ac_objext
23685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23686  (eval $ac_compile) 2>conftest.er1
23687  ac_status=$?
23688  grep -v '^ *+' conftest.er1 >conftest.err
23689  rm -f conftest.er1
23690  cat conftest.err >&5
23691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692  (exit $ac_status); } &&
23693	 { ac_try='test -z "$ac_c_werror_flag"
23694			 || test ! -s conftest.err'
23695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23696  (eval $ac_try) 2>&5
23697  ac_status=$?
23698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699  (exit $ac_status); }; } &&
23700	 { ac_try='test -s conftest.$ac_objext'
23701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23702  (eval $ac_try) 2>&5
23703  ac_status=$?
23704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705  (exit $ac_status); }; }; then
23706  samba_cv_HAVE_FUNCTION_MACRO=yes
23707else
23708  echo "$as_me: failed program was:" >&5
23709sed 's/^/| /' conftest.$ac_ext >&5
23710
23711samba_cv_HAVE_FUNCTION_MACRO=no
23712fi
23713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23714fi
23715echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
23716echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
23717if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
23718
23719cat >>confdefs.h <<\_ACEOF
23720#define HAVE_FUNCTION_MACRO 1
23721_ACEOF
23722
23723fi
23724
23725echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
23726echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
23727if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
23728  echo $ECHO_N "(cached) $ECHO_C" >&6
23729else
23730
23731if test "$cross_compiling" = yes; then
23732  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes #zzz
23733else
23734  cat >conftest.$ac_ext <<_ACEOF
23735/* confdefs.h.  */
23736_ACEOF
23737cat confdefs.h >>conftest.$ac_ext
23738cat >>conftest.$ac_ext <<_ACEOF
23739/* end confdefs.h.  */
23740
23741#include <sys/time.h>
23742#include <unistd.h>
23743main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
23744_ACEOF
23745rm -f conftest$ac_exeext
23746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23747  (eval $ac_link) 2>&5
23748  ac_status=$?
23749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752  (eval $ac_try) 2>&5
23753  ac_status=$?
23754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755  (exit $ac_status); }; }; then
23756  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
23757else
23758  echo "$as_me: program exited with status $ac_status" >&5
23759echo "$as_me: failed program was:" >&5
23760sed 's/^/| /' conftest.$ac_ext >&5
23761
23762( exit $ac_status )
23763samba_cv_HAVE_GETTIMEOFDAY_TZ=no
23764fi
23765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23766fi
23767fi
23768echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
23769echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
23770if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
23771
23772cat >>confdefs.h <<\_ACEOF
23773#define HAVE_GETTIMEOFDAY_TZ 1
23774_ACEOF
23775
23776fi
23777
23778echo "$as_me:$LINENO: checking for va_copy" >&5
23779echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23780if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
23781  echo $ECHO_N "(cached) $ECHO_C" >&6
23782else
23783
23784cat >conftest.$ac_ext <<_ACEOF
23785/* confdefs.h.  */
23786_ACEOF
23787cat confdefs.h >>conftest.$ac_ext
23788cat >>conftest.$ac_ext <<_ACEOF
23789/* end confdefs.h.  */
23790#include <stdarg.h>
23791va_list ap1,ap2;
23792int
23793main ()
23794{
23795va_copy(ap1,ap2);
23796  ;
23797  return 0;
23798}
23799_ACEOF
23800rm -f conftest.$ac_objext conftest$ac_exeext
23801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23802  (eval $ac_link) 2>conftest.er1
23803  ac_status=$?
23804  grep -v '^ *+' conftest.er1 >conftest.err
23805  rm -f conftest.er1
23806  cat conftest.err >&5
23807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808  (exit $ac_status); } &&
23809	 { ac_try='test -z "$ac_c_werror_flag"
23810			 || test ! -s conftest.err'
23811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23812  (eval $ac_try) 2>&5
23813  ac_status=$?
23814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815  (exit $ac_status); }; } &&
23816	 { ac_try='test -s conftest$ac_exeext'
23817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818  (eval $ac_try) 2>&5
23819  ac_status=$?
23820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821  (exit $ac_status); }; }; then
23822  samba_cv_HAVE_VA_COPY=yes
23823else
23824  echo "$as_me: failed program was:" >&5
23825sed 's/^/| /' conftest.$ac_ext >&5
23826
23827samba_cv_HAVE_VA_COPY=no
23828fi
23829rm -f conftest.err conftest.$ac_objext \
23830      conftest$ac_exeext conftest.$ac_ext
23831fi
23832echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
23833echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
23834if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
23835
23836cat >>confdefs.h <<\_ACEOF
23837#define HAVE_VA_COPY 1
23838_ACEOF
23839
23840else
23841    echo "$as_me:$LINENO: checking for __va_copy" >&5
23842echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23843if test "${samba_cv_HAVE___VA_COPY+set}" = set; then
23844  echo $ECHO_N "(cached) $ECHO_C" >&6
23845else
23846
23847    cat >conftest.$ac_ext <<_ACEOF
23848/* confdefs.h.  */
23849_ACEOF
23850cat confdefs.h >>conftest.$ac_ext
23851cat >>conftest.$ac_ext <<_ACEOF
23852/* end confdefs.h.  */
23853#include <stdarg.h>
23854    va_list ap1,ap2;
23855int
23856main ()
23857{
23858__va_copy(ap1,ap2);
23859  ;
23860  return 0;
23861}
23862_ACEOF
23863rm -f conftest.$ac_objext conftest$ac_exeext
23864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23865  (eval $ac_link) 2>conftest.er1
23866  ac_status=$?
23867  grep -v '^ *+' conftest.er1 >conftest.err
23868  rm -f conftest.er1
23869  cat conftest.err >&5
23870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871  (exit $ac_status); } &&
23872	 { ac_try='test -z "$ac_c_werror_flag"
23873			 || test ! -s conftest.err'
23874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875  (eval $ac_try) 2>&5
23876  ac_status=$?
23877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878  (exit $ac_status); }; } &&
23879	 { ac_try='test -s conftest$ac_exeext'
23880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881  (eval $ac_try) 2>&5
23882  ac_status=$?
23883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884  (exit $ac_status); }; }; then
23885  samba_cv_HAVE___VA_COPY=yes
23886else
23887  echo "$as_me: failed program was:" >&5
23888sed 's/^/| /' conftest.$ac_ext >&5
23889
23890samba_cv_HAVE___VA_COPY=no
23891fi
23892rm -f conftest.err conftest.$ac_objext \
23893      conftest$ac_exeext conftest.$ac_ext
23894fi
23895echo "$as_me:$LINENO: result: $samba_cv_HAVE___VA_COPY" >&5
23896echo "${ECHO_T}$samba_cv_HAVE___VA_COPY" >&6
23897    if test x"$samba_cv_HAVE___VA_COPY" = x"yes"; then
23898
23899cat >>confdefs.h <<\_ACEOF
23900#define HAVE___VA_COPY 1
23901_ACEOF
23902
23903    fi
23904fi
23905
23906echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
23907echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
23908if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
23909  echo $ECHO_N "(cached) $ECHO_C" >&6
23910else
23911
23912if test "$cross_compiling" = yes; then
23913  samba_cv_HAVE_C99_VSNPRINTF=cross
23914else
23915  cat >conftest.$ac_ext <<_ACEOF
23916/* confdefs.h.  */
23917_ACEOF
23918cat confdefs.h >>conftest.$ac_ext
23919cat >>conftest.$ac_ext <<_ACEOF
23920/* end confdefs.h.  */
23921
23922#include <sys/types.h>
23923#include <stdarg.h>
23924void foo(const char *format, ...) {
23925       va_list ap;
23926       int len;
23927       char buf[5];
23928
23929       va_start(ap, format);
23930       len = vsnprintf(buf, 0, format, ap);
23931       va_end(ap);
23932       if (len != 5) exit(1);
23933
23934       va_start(ap, format);
23935       len = vsnprintf(0, 0, format, ap);
23936       va_end(ap);
23937       if (len != 5) exit(1);
23938
23939       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
23940
23941       exit(0);
23942}
23943main() { foo("hello"); }
23944
23945_ACEOF
23946rm -f conftest$ac_exeext
23947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23948  (eval $ac_link) 2>&5
23949  ac_status=$?
23950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953  (eval $ac_try) 2>&5
23954  ac_status=$?
23955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956  (exit $ac_status); }; }; then
23957  samba_cv_HAVE_C99_VSNPRINTF=yes
23958else
23959  echo "$as_me: program exited with status $ac_status" >&5
23960echo "$as_me: failed program was:" >&5
23961sed 's/^/| /' conftest.$ac_ext >&5
23962
23963( exit $ac_status )
23964samba_cv_HAVE_C99_VSNPRINTF=no
23965fi
23966rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23967fi
23968fi
23969echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
23970echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
23971if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
23972
23973cat >>confdefs.h <<\_ACEOF
23974#define HAVE_C99_VSNPRINTF 1
23975_ACEOF
23976
23977fi
23978
23979echo "$as_me:$LINENO: checking for broken readdir" >&5
23980echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
23981if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
23982  echo $ECHO_N "(cached) $ECHO_C" >&6
23983else
23984
23985if test "$cross_compiling" = yes; then
23986  samba_cv_HAVE_BROKEN_READDIR=cross
23987else
23988  cat >conftest.$ac_ext <<_ACEOF
23989/* confdefs.h.  */
23990_ACEOF
23991cat confdefs.h >>conftest.$ac_ext
23992cat >>conftest.$ac_ext <<_ACEOF
23993/* end confdefs.h.  */
23994#include <sys/types.h>
23995#include <dirent.h>
23996main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
23997if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
23998di->d_name[0] == 0) exit(0); exit(1);}
23999_ACEOF
24000rm -f conftest$ac_exeext
24001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24002  (eval $ac_link) 2>&5
24003  ac_status=$?
24004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007  (eval $ac_try) 2>&5
24008  ac_status=$?
24009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010  (exit $ac_status); }; }; then
24011  samba_cv_HAVE_BROKEN_READDIR=yes
24012else
24013  echo "$as_me: program exited with status $ac_status" >&5
24014echo "$as_me: failed program was:" >&5
24015sed 's/^/| /' conftest.$ac_ext >&5
24016
24017( exit $ac_status )
24018samba_cv_HAVE_BROKEN_READDIR=no
24019fi
24020rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24021fi
24022fi
24023echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
24024echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
24025if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
24026
24027cat >>confdefs.h <<\_ACEOF
24028#define HAVE_BROKEN_READDIR 1
24029_ACEOF
24030
24031fi
24032
24033echo "$as_me:$LINENO: checking for utimbuf" >&5
24034echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
24035if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
24036  echo $ECHO_N "(cached) $ECHO_C" >&6
24037else
24038
24039cat >conftest.$ac_ext <<_ACEOF
24040/* confdefs.h.  */
24041_ACEOF
24042cat confdefs.h >>conftest.$ac_ext
24043cat >>conftest.$ac_ext <<_ACEOF
24044/* end confdefs.h.  */
24045#include <sys/types.h>
24046#include <utime.h>
24047int
24048main ()
24049{
24050struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
24051  ;
24052  return 0;
24053}
24054_ACEOF
24055rm -f conftest.$ac_objext
24056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24057  (eval $ac_compile) 2>conftest.er1
24058  ac_status=$?
24059  grep -v '^ *+' conftest.er1 >conftest.err
24060  rm -f conftest.er1
24061  cat conftest.err >&5
24062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063  (exit $ac_status); } &&
24064	 { ac_try='test -z "$ac_c_werror_flag"
24065			 || test ! -s conftest.err'
24066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067  (eval $ac_try) 2>&5
24068  ac_status=$?
24069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070  (exit $ac_status); }; } &&
24071	 { ac_try='test -s conftest.$ac_objext'
24072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24073  (eval $ac_try) 2>&5
24074  ac_status=$?
24075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076  (exit $ac_status); }; }; then
24077  samba_cv_HAVE_UTIMBUF=yes
24078else
24079  echo "$as_me: failed program was:" >&5
24080sed 's/^/| /' conftest.$ac_ext >&5
24081
24082samba_cv_HAVE_UTIMBUF=no
24083fi
24084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24085fi
24086echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
24087echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
24088if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
24089
24090cat >>confdefs.h <<\_ACEOF
24091#define HAVE_UTIMBUF 1
24092_ACEOF
24093
24094fi
24095
24096##############
24097# Check utmp details, but only if our OS offers utmp.h
24098if test x"$ac_cv_header_utmp_h" = x"yes"; then
24099
24100
24101
24102
24103
24104
24105for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
24106do
24107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24108echo "$as_me:$LINENO: checking for $ac_func" >&5
24109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24110if eval "test \"\${$as_ac_var+set}\" = set"; then
24111  echo $ECHO_N "(cached) $ECHO_C" >&6
24112else
24113  cat >conftest.$ac_ext <<_ACEOF
24114/* confdefs.h.  */
24115_ACEOF
24116cat confdefs.h >>conftest.$ac_ext
24117cat >>conftest.$ac_ext <<_ACEOF
24118/* end confdefs.h.  */
24119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24120   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24121#define $ac_func innocuous_$ac_func
24122
24123/* System header to define __stub macros and hopefully few prototypes,
24124    which can conflict with char $ac_func (); below.
24125    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24126    <limits.h> exists even on freestanding compilers.  */
24127
24128#ifdef __STDC__
24129# include <limits.h>
24130#else
24131# include <assert.h>
24132#endif
24133
24134#undef $ac_func
24135
24136/* Override any gcc2 internal prototype to avoid an error.  */
24137#ifdef __cplusplus
24138extern "C"
24139{
24140#endif
24141/* We use char because int might match the return type of a gcc2
24142   builtin and then its argument prototype would still apply.  */
24143char $ac_func ();
24144/* The GNU C library defines this for functions which it implements
24145    to always fail with ENOSYS.  Some functions are actually named
24146    something starting with __ and the normal name is an alias.  */
24147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24148choke me
24149#else
24150char (*f) () = $ac_func;
24151#endif
24152#ifdef __cplusplus
24153}
24154#endif
24155
24156int
24157main ()
24158{
24159return f != $ac_func;
24160  ;
24161  return 0;
24162}
24163_ACEOF
24164rm -f conftest.$ac_objext conftest$ac_exeext
24165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24166  (eval $ac_link) 2>conftest.er1
24167  ac_status=$?
24168  grep -v '^ *+' conftest.er1 >conftest.err
24169  rm -f conftest.er1
24170  cat conftest.err >&5
24171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172  (exit $ac_status); } &&
24173	 { ac_try='test -z "$ac_c_werror_flag"
24174			 || test ! -s conftest.err'
24175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176  (eval $ac_try) 2>&5
24177  ac_status=$?
24178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179  (exit $ac_status); }; } &&
24180	 { ac_try='test -s conftest$ac_exeext'
24181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182  (eval $ac_try) 2>&5
24183  ac_status=$?
24184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185  (exit $ac_status); }; }; then
24186  eval "$as_ac_var=yes"
24187else
24188  echo "$as_me: failed program was:" >&5
24189sed 's/^/| /' conftest.$ac_ext >&5
24190
24191eval "$as_ac_var=no"
24192fi
24193rm -f conftest.err conftest.$ac_objext \
24194      conftest$ac_exeext conftest.$ac_ext
24195fi
24196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24198if test `eval echo '${'$as_ac_var'}'` = yes; then
24199  cat >>confdefs.h <<_ACEOF
24200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24201_ACEOF
24202
24203fi
24204done
24205
24206
24207echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
24208echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
24209if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
24210  echo $ECHO_N "(cached) $ECHO_C" >&6
24211else
24212
24213cat >conftest.$ac_ext <<_ACEOF
24214/* confdefs.h.  */
24215_ACEOF
24216cat confdefs.h >>conftest.$ac_ext
24217cat >>conftest.$ac_ext <<_ACEOF
24218/* end confdefs.h.  */
24219#include <sys/types.h>
24220#include <utmp.h>
24221int
24222main ()
24223{
24224struct utmp ut;  ut.ut_name[0] = 'a';
24225  ;
24226  return 0;
24227}
24228_ACEOF
24229rm -f conftest.$ac_objext
24230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24231  (eval $ac_compile) 2>conftest.er1
24232  ac_status=$?
24233  grep -v '^ *+' conftest.er1 >conftest.err
24234  rm -f conftest.er1
24235  cat conftest.err >&5
24236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237  (exit $ac_status); } &&
24238	 { ac_try='test -z "$ac_c_werror_flag"
24239			 || test ! -s conftest.err'
24240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241  (eval $ac_try) 2>&5
24242  ac_status=$?
24243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244  (exit $ac_status); }; } &&
24245	 { ac_try='test -s conftest.$ac_objext'
24246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247  (eval $ac_try) 2>&5
24248  ac_status=$?
24249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250  (exit $ac_status); }; }; then
24251  samba_cv_HAVE_UT_UT_NAME=yes
24252else
24253  echo "$as_me: failed program was:" >&5
24254sed 's/^/| /' conftest.$ac_ext >&5
24255
24256samba_cv_HAVE_UT_UT_NAME=no
24257fi
24258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24259fi
24260echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
24261echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
24262if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
24263
24264cat >>confdefs.h <<\_ACEOF
24265#define HAVE_UT_UT_NAME 1
24266_ACEOF
24267
24268fi
24269
24270echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
24271echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
24272if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
24273  echo $ECHO_N "(cached) $ECHO_C" >&6
24274else
24275
24276cat >conftest.$ac_ext <<_ACEOF
24277/* confdefs.h.  */
24278_ACEOF
24279cat confdefs.h >>conftest.$ac_ext
24280cat >>conftest.$ac_ext <<_ACEOF
24281/* end confdefs.h.  */
24282#include <sys/types.h>
24283#include <utmp.h>
24284int
24285main ()
24286{
24287struct utmp ut;  ut.ut_user[0] = 'a';
24288  ;
24289  return 0;
24290}
24291_ACEOF
24292rm -f conftest.$ac_objext
24293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24294  (eval $ac_compile) 2>conftest.er1
24295  ac_status=$?
24296  grep -v '^ *+' conftest.er1 >conftest.err
24297  rm -f conftest.er1
24298  cat conftest.err >&5
24299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300  (exit $ac_status); } &&
24301	 { ac_try='test -z "$ac_c_werror_flag"
24302			 || test ! -s conftest.err'
24303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24304  (eval $ac_try) 2>&5
24305  ac_status=$?
24306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307  (exit $ac_status); }; } &&
24308	 { ac_try='test -s conftest.$ac_objext'
24309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310  (eval $ac_try) 2>&5
24311  ac_status=$?
24312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313  (exit $ac_status); }; }; then
24314  samba_cv_HAVE_UT_UT_USER=yes
24315else
24316  echo "$as_me: failed program was:" >&5
24317sed 's/^/| /' conftest.$ac_ext >&5
24318
24319samba_cv_HAVE_UT_UT_USER=no
24320fi
24321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24322fi
24323echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
24324echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
24325if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
24326
24327cat >>confdefs.h <<\_ACEOF
24328#define HAVE_UT_UT_USER 1
24329_ACEOF
24330
24331fi
24332
24333echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
24334echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
24335if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
24336  echo $ECHO_N "(cached) $ECHO_C" >&6
24337else
24338
24339cat >conftest.$ac_ext <<_ACEOF
24340/* confdefs.h.  */
24341_ACEOF
24342cat confdefs.h >>conftest.$ac_ext
24343cat >>conftest.$ac_ext <<_ACEOF
24344/* end confdefs.h.  */
24345#include <sys/types.h>
24346#include <utmp.h>
24347int
24348main ()
24349{
24350struct utmp ut;  ut.ut_id[0] = 'a';
24351  ;
24352  return 0;
24353}
24354_ACEOF
24355rm -f conftest.$ac_objext
24356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24357  (eval $ac_compile) 2>conftest.er1
24358  ac_status=$?
24359  grep -v '^ *+' conftest.er1 >conftest.err
24360  rm -f conftest.er1
24361  cat conftest.err >&5
24362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363  (exit $ac_status); } &&
24364	 { ac_try='test -z "$ac_c_werror_flag"
24365			 || test ! -s conftest.err'
24366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367  (eval $ac_try) 2>&5
24368  ac_status=$?
24369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370  (exit $ac_status); }; } &&
24371	 { ac_try='test -s conftest.$ac_objext'
24372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373  (eval $ac_try) 2>&5
24374  ac_status=$?
24375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376  (exit $ac_status); }; }; then
24377  samba_cv_HAVE_UT_UT_ID=yes
24378else
24379  echo "$as_me: failed program was:" >&5
24380sed 's/^/| /' conftest.$ac_ext >&5
24381
24382samba_cv_HAVE_UT_UT_ID=no
24383fi
24384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24385fi
24386echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
24387echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
24388if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
24389
24390cat >>confdefs.h <<\_ACEOF
24391#define HAVE_UT_UT_ID 1
24392_ACEOF
24393
24394fi
24395
24396echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
24397echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
24398if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
24399  echo $ECHO_N "(cached) $ECHO_C" >&6
24400else
24401
24402cat >conftest.$ac_ext <<_ACEOF
24403/* confdefs.h.  */
24404_ACEOF
24405cat confdefs.h >>conftest.$ac_ext
24406cat >>conftest.$ac_ext <<_ACEOF
24407/* end confdefs.h.  */
24408#include <sys/types.h>
24409#include <utmp.h>
24410int
24411main ()
24412{
24413struct utmp ut;  ut.ut_host[0] = 'a';
24414  ;
24415  return 0;
24416}
24417_ACEOF
24418rm -f conftest.$ac_objext
24419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24420  (eval $ac_compile) 2>conftest.er1
24421  ac_status=$?
24422  grep -v '^ *+' conftest.er1 >conftest.err
24423  rm -f conftest.er1
24424  cat conftest.err >&5
24425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426  (exit $ac_status); } &&
24427	 { ac_try='test -z "$ac_c_werror_flag"
24428			 || test ! -s conftest.err'
24429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430  (eval $ac_try) 2>&5
24431  ac_status=$?
24432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433  (exit $ac_status); }; } &&
24434	 { ac_try='test -s conftest.$ac_objext'
24435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436  (eval $ac_try) 2>&5
24437  ac_status=$?
24438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439  (exit $ac_status); }; }; then
24440  samba_cv_HAVE_UT_UT_HOST=yes
24441else
24442  echo "$as_me: failed program was:" >&5
24443sed 's/^/| /' conftest.$ac_ext >&5
24444
24445samba_cv_HAVE_UT_UT_HOST=no
24446fi
24447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24448fi
24449echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
24450echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
24451if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
24452
24453cat >>confdefs.h <<\_ACEOF
24454#define HAVE_UT_UT_HOST 1
24455_ACEOF
24456
24457fi
24458
24459echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
24460echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
24461if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
24462  echo $ECHO_N "(cached) $ECHO_C" >&6
24463else
24464
24465cat >conftest.$ac_ext <<_ACEOF
24466/* confdefs.h.  */
24467_ACEOF
24468cat confdefs.h >>conftest.$ac_ext
24469cat >>conftest.$ac_ext <<_ACEOF
24470/* end confdefs.h.  */
24471#include <sys/types.h>
24472#include <utmp.h>
24473int
24474main ()
24475{
24476struct utmp ut;  time_t t; ut.ut_time = t;
24477  ;
24478  return 0;
24479}
24480_ACEOF
24481rm -f conftest.$ac_objext
24482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24483  (eval $ac_compile) 2>conftest.er1
24484  ac_status=$?
24485  grep -v '^ *+' conftest.er1 >conftest.err
24486  rm -f conftest.er1
24487  cat conftest.err >&5
24488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489  (exit $ac_status); } &&
24490	 { ac_try='test -z "$ac_c_werror_flag"
24491			 || test ! -s conftest.err'
24492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493  (eval $ac_try) 2>&5
24494  ac_status=$?
24495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496  (exit $ac_status); }; } &&
24497	 { ac_try='test -s conftest.$ac_objext'
24498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24499  (eval $ac_try) 2>&5
24500  ac_status=$?
24501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502  (exit $ac_status); }; }; then
24503  samba_cv_HAVE_UT_UT_TIME=yes
24504else
24505  echo "$as_me: failed program was:" >&5
24506sed 's/^/| /' conftest.$ac_ext >&5
24507
24508samba_cv_HAVE_UT_UT_TIME=no
24509fi
24510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24511fi
24512echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
24513echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
24514if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
24515
24516cat >>confdefs.h <<\_ACEOF
24517#define HAVE_UT_UT_TIME 1
24518_ACEOF
24519
24520fi
24521
24522echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
24523echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
24524if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
24525  echo $ECHO_N "(cached) $ECHO_C" >&6
24526else
24527
24528cat >conftest.$ac_ext <<_ACEOF
24529/* confdefs.h.  */
24530_ACEOF
24531cat confdefs.h >>conftest.$ac_ext
24532cat >>conftest.$ac_ext <<_ACEOF
24533/* end confdefs.h.  */
24534#include <sys/types.h>
24535#include <utmp.h>
24536int
24537main ()
24538{
24539struct utmp ut;  struct timeval tv; ut.ut_tv = tv;
24540  ;
24541  return 0;
24542}
24543_ACEOF
24544rm -f conftest.$ac_objext
24545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24546  (eval $ac_compile) 2>conftest.er1
24547  ac_status=$?
24548  grep -v '^ *+' conftest.er1 >conftest.err
24549  rm -f conftest.er1
24550  cat conftest.err >&5
24551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552  (exit $ac_status); } &&
24553	 { ac_try='test -z "$ac_c_werror_flag"
24554			 || test ! -s conftest.err'
24555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556  (eval $ac_try) 2>&5
24557  ac_status=$?
24558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559  (exit $ac_status); }; } &&
24560	 { ac_try='test -s conftest.$ac_objext'
24561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562  (eval $ac_try) 2>&5
24563  ac_status=$?
24564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565  (exit $ac_status); }; }; then
24566  samba_cv_HAVE_UT_UT_TV=yes
24567else
24568  echo "$as_me: failed program was:" >&5
24569sed 's/^/| /' conftest.$ac_ext >&5
24570
24571samba_cv_HAVE_UT_UT_TV=no
24572fi
24573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24574fi
24575echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
24576echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
24577if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
24578
24579cat >>confdefs.h <<\_ACEOF
24580#define HAVE_UT_UT_TV 1
24581_ACEOF
24582
24583fi
24584
24585echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
24586echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
24587if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
24588  echo $ECHO_N "(cached) $ECHO_C" >&6
24589else
24590
24591cat >conftest.$ac_ext <<_ACEOF
24592/* confdefs.h.  */
24593_ACEOF
24594cat confdefs.h >>conftest.$ac_ext
24595cat >>conftest.$ac_ext <<_ACEOF
24596/* end confdefs.h.  */
24597#include <sys/types.h>
24598#include <utmp.h>
24599int
24600main ()
24601{
24602struct utmp ut;  ut.ut_type = 0;
24603  ;
24604  return 0;
24605}
24606_ACEOF
24607rm -f conftest.$ac_objext
24608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24609  (eval $ac_compile) 2>conftest.er1
24610  ac_status=$?
24611  grep -v '^ *+' conftest.er1 >conftest.err
24612  rm -f conftest.er1
24613  cat conftest.err >&5
24614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615  (exit $ac_status); } &&
24616	 { ac_try='test -z "$ac_c_werror_flag"
24617			 || test ! -s conftest.err'
24618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619  (eval $ac_try) 2>&5
24620  ac_status=$?
24621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622  (exit $ac_status); }; } &&
24623	 { ac_try='test -s conftest.$ac_objext'
24624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24625  (eval $ac_try) 2>&5
24626  ac_status=$?
24627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628  (exit $ac_status); }; }; then
24629  samba_cv_HAVE_UT_UT_TYPE=yes
24630else
24631  echo "$as_me: failed program was:" >&5
24632sed 's/^/| /' conftest.$ac_ext >&5
24633
24634samba_cv_HAVE_UT_UT_TYPE=no
24635fi
24636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24637fi
24638echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
24639echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
24640if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
24641
24642cat >>confdefs.h <<\_ACEOF
24643#define HAVE_UT_UT_TYPE 1
24644_ACEOF
24645
24646fi
24647
24648echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
24649echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
24650if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
24651  echo $ECHO_N "(cached) $ECHO_C" >&6
24652else
24653
24654cat >conftest.$ac_ext <<_ACEOF
24655/* confdefs.h.  */
24656_ACEOF
24657cat confdefs.h >>conftest.$ac_ext
24658cat >>conftest.$ac_ext <<_ACEOF
24659/* end confdefs.h.  */
24660#include <sys/types.h>
24661#include <utmp.h>
24662int
24663main ()
24664{
24665struct utmp ut;  ut.ut_pid = 0;
24666  ;
24667  return 0;
24668}
24669_ACEOF
24670rm -f conftest.$ac_objext
24671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24672  (eval $ac_compile) 2>conftest.er1
24673  ac_status=$?
24674  grep -v '^ *+' conftest.er1 >conftest.err
24675  rm -f conftest.er1
24676  cat conftest.err >&5
24677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678  (exit $ac_status); } &&
24679	 { ac_try='test -z "$ac_c_werror_flag"
24680			 || test ! -s conftest.err'
24681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682  (eval $ac_try) 2>&5
24683  ac_status=$?
24684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685  (exit $ac_status); }; } &&
24686	 { ac_try='test -s conftest.$ac_objext'
24687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688  (eval $ac_try) 2>&5
24689  ac_status=$?
24690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691  (exit $ac_status); }; }; then
24692  samba_cv_HAVE_UT_UT_PID=yes
24693else
24694  echo "$as_me: failed program was:" >&5
24695sed 's/^/| /' conftest.$ac_ext >&5
24696
24697samba_cv_HAVE_UT_UT_PID=no
24698fi
24699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24700fi
24701echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
24702echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
24703if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
24704
24705cat >>confdefs.h <<\_ACEOF
24706#define HAVE_UT_UT_PID 1
24707_ACEOF
24708
24709fi
24710
24711echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
24712echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
24713if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
24714  echo $ECHO_N "(cached) $ECHO_C" >&6
24715else
24716
24717cat >conftest.$ac_ext <<_ACEOF
24718/* confdefs.h.  */
24719_ACEOF
24720cat confdefs.h >>conftest.$ac_ext
24721cat >>conftest.$ac_ext <<_ACEOF
24722/* end confdefs.h.  */
24723#include <sys/types.h>
24724#include <utmp.h>
24725int
24726main ()
24727{
24728struct utmp ut;  ut.ut_exit.e_exit = 0;
24729  ;
24730  return 0;
24731}
24732_ACEOF
24733rm -f conftest.$ac_objext
24734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24735  (eval $ac_compile) 2>conftest.er1
24736  ac_status=$?
24737  grep -v '^ *+' conftest.er1 >conftest.err
24738  rm -f conftest.er1
24739  cat conftest.err >&5
24740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741  (exit $ac_status); } &&
24742	 { ac_try='test -z "$ac_c_werror_flag"
24743			 || test ! -s conftest.err'
24744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745  (eval $ac_try) 2>&5
24746  ac_status=$?
24747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748  (exit $ac_status); }; } &&
24749	 { ac_try='test -s conftest.$ac_objext'
24750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751  (eval $ac_try) 2>&5
24752  ac_status=$?
24753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754  (exit $ac_status); }; }; then
24755  samba_cv_HAVE_UT_UT_EXIT=yes
24756else
24757  echo "$as_me: failed program was:" >&5
24758sed 's/^/| /' conftest.$ac_ext >&5
24759
24760samba_cv_HAVE_UT_UT_EXIT=no
24761fi
24762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24763fi
24764echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
24765echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
24766if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
24767
24768cat >>confdefs.h <<\_ACEOF
24769#define HAVE_UT_UT_EXIT 1
24770_ACEOF
24771
24772fi
24773
24774echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
24775echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
24776if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
24777  echo $ECHO_N "(cached) $ECHO_C" >&6
24778else
24779
24780cat >conftest.$ac_ext <<_ACEOF
24781/* confdefs.h.  */
24782_ACEOF
24783cat confdefs.h >>conftest.$ac_ext
24784cat >>conftest.$ac_ext <<_ACEOF
24785/* end confdefs.h.  */
24786#include <sys/types.h>
24787#include <utmp.h>
24788int
24789main ()
24790{
24791struct utmp ut;  ut.ut_addr = 0;
24792  ;
24793  return 0;
24794}
24795_ACEOF
24796rm -f conftest.$ac_objext
24797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24798  (eval $ac_compile) 2>conftest.er1
24799  ac_status=$?
24800  grep -v '^ *+' conftest.er1 >conftest.err
24801  rm -f conftest.er1
24802  cat conftest.err >&5
24803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804  (exit $ac_status); } &&
24805	 { ac_try='test -z "$ac_c_werror_flag"
24806			 || test ! -s conftest.err'
24807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808  (eval $ac_try) 2>&5
24809  ac_status=$?
24810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811  (exit $ac_status); }; } &&
24812	 { ac_try='test -s conftest.$ac_objext'
24813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814  (eval $ac_try) 2>&5
24815  ac_status=$?
24816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817  (exit $ac_status); }; }; then
24818  samba_cv_HAVE_UT_UT_ADDR=yes
24819else
24820  echo "$as_me: failed program was:" >&5
24821sed 's/^/| /' conftest.$ac_ext >&5
24822
24823samba_cv_HAVE_UT_UT_ADDR=no
24824fi
24825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24826fi
24827echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
24828echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
24829if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
24830
24831cat >>confdefs.h <<\_ACEOF
24832#define HAVE_UT_UT_ADDR 1
24833_ACEOF
24834
24835fi
24836
24837if test x$ac_cv_func_pututline = xyes ; then
24838  echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
24839echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
24840if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
24841  echo $ECHO_N "(cached) $ECHO_C" >&6
24842else
24843
24844  cat >conftest.$ac_ext <<_ACEOF
24845/* confdefs.h.  */
24846_ACEOF
24847cat confdefs.h >>conftest.$ac_ext
24848cat >>conftest.$ac_ext <<_ACEOF
24849/* end confdefs.h.  */
24850#include <sys/types.h>
24851#include <utmp.h>
24852int
24853main ()
24854{
24855struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
24856  ;
24857  return 0;
24858}
24859_ACEOF
24860rm -f conftest.$ac_objext
24861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24862  (eval $ac_compile) 2>conftest.er1
24863  ac_status=$?
24864  grep -v '^ *+' conftest.er1 >conftest.err
24865  rm -f conftest.er1
24866  cat conftest.err >&5
24867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868  (exit $ac_status); } &&
24869	 { ac_try='test -z "$ac_c_werror_flag"
24870			 || test ! -s conftest.err'
24871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24872  (eval $ac_try) 2>&5
24873  ac_status=$?
24874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875  (exit $ac_status); }; } &&
24876	 { ac_try='test -s conftest.$ac_objext'
24877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878  (eval $ac_try) 2>&5
24879  ac_status=$?
24880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881  (exit $ac_status); }; }; then
24882  samba_cv_PUTUTLINE_RETURNS_UTMP=yes
24883else
24884  echo "$as_me: failed program was:" >&5
24885sed 's/^/| /' conftest.$ac_ext >&5
24886
24887samba_cv_PUTUTLINE_RETURNS_UTMP=no
24888fi
24889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24890fi
24891echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
24892echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
24893  if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
24894
24895cat >>confdefs.h <<\_ACEOF
24896#define PUTUTLINE_RETURNS_UTMP 1
24897_ACEOF
24898
24899  fi
24900fi
24901
24902echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
24903echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
24904if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
24905  echo $ECHO_N "(cached) $ECHO_C" >&6
24906else
24907
24908cat >conftest.$ac_ext <<_ACEOF
24909/* confdefs.h.  */
24910_ACEOF
24911cat confdefs.h >>conftest.$ac_ext
24912cat >>conftest.$ac_ext <<_ACEOF
24913/* end confdefs.h.  */
24914#include <sys/types.h>
24915#include <utmpx.h>
24916int
24917main ()
24918{
24919struct utmpx ux;  ux.ut_syslen = 0;
24920  ;
24921  return 0;
24922}
24923_ACEOF
24924rm -f conftest.$ac_objext
24925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24926  (eval $ac_compile) 2>conftest.er1
24927  ac_status=$?
24928  grep -v '^ *+' conftest.er1 >conftest.err
24929  rm -f conftest.er1
24930  cat conftest.err >&5
24931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932  (exit $ac_status); } &&
24933	 { ac_try='test -z "$ac_c_werror_flag"
24934			 || test ! -s conftest.err'
24935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936  (eval $ac_try) 2>&5
24937  ac_status=$?
24938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939  (exit $ac_status); }; } &&
24940	 { ac_try='test -s conftest.$ac_objext'
24941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942  (eval $ac_try) 2>&5
24943  ac_status=$?
24944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945  (exit $ac_status); }; }; then
24946  samba_cv_HAVE_UX_UT_SYSLEN=yes
24947else
24948  echo "$as_me: failed program was:" >&5
24949sed 's/^/| /' conftest.$ac_ext >&5
24950
24951samba_cv_HAVE_UX_UT_SYSLEN=no
24952fi
24953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24954fi
24955echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
24956echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
24957if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
24958
24959cat >>confdefs.h <<\_ACEOF
24960#define HAVE_UX_UT_SYSLEN 1
24961_ACEOF
24962
24963fi
24964
24965fi
24966# end utmp details
24967
24968
24969ICONV_LOCATION=standard
24970LOOK_DIRS="/usr /usr/local /sw /opt"
24971
24972# Check whether --with-libiconv or --without-libiconv was given.
24973if test "${with_libiconv+set}" = set; then
24974  withval="$with_libiconv"
24975
24976  if test "$withval" = "no" ; then
24977    { { echo "$as_me:$LINENO: error: argument to --with-libiconv must be a directory" >&5
24978echo "$as_me: error: argument to --with-libiconv must be a directory" >&2;}
24979   { (exit 1); exit 1; }; }
24980  else
24981     if test "$withval" != "yes" ; then
24982	ICONV_PATH_SPEC=yes
24983        LOOK_DIRS="$withval"
24984     fi
24985  fi
24986
24987fi;
24988
24989for i in $LOOK_DIRS ; do
24990    save_LIBS=$LIBS
24991    save_LDFLAGS=$LDFLAGS
24992    save_CPPFLAGS=$CPPFLAGS
24993    ICONV_FOUND="no"
24994    unset libext
24995    CPPFLAGS="$CPPFLAGS -I$i/include"
24996
24997    for l in "lib32" "lib" ; do
24998        if test -d "$i/$l" ; then
24999                LDFLAGS="$save_LDFLAGS -L$i/$l"
25000                LIBS=
25001                export LDFLAGS LIBS CPPFLAGS
25002
25003      echo "$as_me:$LINENO: checking for iconv in $i/$l" >&5
25004echo $ECHO_N "checking for iconv in $i/$l... $ECHO_C" >&6
25005    jm_cv_func_iconv="no"
25006    jm_cv_lib_iconv=""
25007    jm_cv_giconv=no
25008    jm_save_LIBS="$LIBS"
25009    LIBS="$LIBS -lbiconv"
25010    cat >conftest.$ac_ext <<_ACEOF
25011/* confdefs.h.  */
25012_ACEOF
25013cat confdefs.h >>conftest.$ac_ext
25014cat >>conftest.$ac_ext <<_ACEOF
25015/* end confdefs.h.  */
25016#include <stdlib.h>
25017#include <biconv.h>
25018int
25019main ()
25020{
25021iconv_t cd = iconv_open("","");
25022         iconv(cd,NULL,NULL,NULL,NULL);
25023         iconv_close(cd);
25024  ;
25025  return 0;
25026}
25027_ACEOF
25028rm -f conftest.$ac_objext conftest$ac_exeext
25029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25030  (eval $ac_link) 2>conftest.er1
25031  ac_status=$?
25032  grep -v '^ *+' conftest.er1 >conftest.err
25033  rm -f conftest.er1
25034  cat conftest.err >&5
25035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036  (exit $ac_status); } &&
25037	 { ac_try='test -z "$ac_c_werror_flag"
25038			 || test ! -s conftest.err'
25039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040  (eval $ac_try) 2>&5
25041  ac_status=$?
25042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043  (exit $ac_status); }; } &&
25044	 { ac_try='test -s conftest$ac_exeext'
25045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25046  (eval $ac_try) 2>&5
25047  ac_status=$?
25048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049  (exit $ac_status); }; }; then
25050  jm_cv_func_iconv=yes
25051      jm_cv_biconv=yes
25052      jm_cv_include="biconv.h"
25053      jm_cv_lib_iconv="biconv"
25054else
25055  echo "$as_me: failed program was:" >&5
25056sed 's/^/| /' conftest.$ac_ext >&5
25057
25058fi
25059rm -f conftest.err conftest.$ac_objext \
25060      conftest$ac_exeext conftest.$ac_ext
25061      LIBS="$jm_save_LIBS"
25062
25063        if test "$jm_cv_func_iconv" != yes; then
25064      cat >conftest.$ac_ext <<_ACEOF
25065/* confdefs.h.  */
25066_ACEOF
25067cat confdefs.h >>conftest.$ac_ext
25068cat >>conftest.$ac_ext <<_ACEOF
25069/* end confdefs.h.  */
25070#include <stdlib.h>
25071#include <giconv.h>
25072int
25073main ()
25074{
25075iconv_t cd = iconv_open("","");
25076         iconv(cd,NULL,NULL,NULL,NULL);
25077         iconv_close(cd);
25078  ;
25079  return 0;
25080}
25081_ACEOF
25082rm -f conftest.$ac_objext conftest$ac_exeext
25083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25084  (eval $ac_link) 2>conftest.er1
25085  ac_status=$?
25086  grep -v '^ *+' conftest.er1 >conftest.err
25087  rm -f conftest.er1
25088  cat conftest.err >&5
25089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090  (exit $ac_status); } &&
25091	 { ac_try='test -z "$ac_c_werror_flag"
25092			 || test ! -s conftest.err'
25093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25094  (eval $ac_try) 2>&5
25095  ac_status=$?
25096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097  (exit $ac_status); }; } &&
25098	 { ac_try='test -s conftest$ac_exeext'
25099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25100  (eval $ac_try) 2>&5
25101  ac_status=$?
25102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103  (exit $ac_status); }; }; then
25104  jm_cv_func_iconv=yes
25105         jm_cv_include="giconv.h"
25106         jm_cv_giconv="yes"
25107         jm_cv_lib_iconv=""
25108else
25109  echo "$as_me: failed program was:" >&5
25110sed 's/^/| /' conftest.$ac_ext >&5
25111
25112fi
25113rm -f conftest.err conftest.$ac_objext \
25114      conftest$ac_exeext conftest.$ac_ext
25115
25116            if test "$jm_cv_func_iconv" != yes; then
25117        cat >conftest.$ac_ext <<_ACEOF
25118/* confdefs.h.  */
25119_ACEOF
25120cat confdefs.h >>conftest.$ac_ext
25121cat >>conftest.$ac_ext <<_ACEOF
25122/* end confdefs.h.  */
25123#include <stdlib.h>
25124#include <iconv.h>
25125int
25126main ()
25127{
25128iconv_t cd = iconv_open("","");
25129           iconv(cd,NULL,NULL,NULL,NULL);
25130           iconv_close(cd);
25131  ;
25132  return 0;
25133}
25134_ACEOF
25135rm -f conftest.$ac_objext conftest$ac_exeext
25136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25137  (eval $ac_link) 2>conftest.er1
25138  ac_status=$?
25139  grep -v '^ *+' conftest.er1 >conftest.err
25140  rm -f conftest.er1
25141  cat conftest.err >&5
25142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143  (exit $ac_status); } &&
25144	 { ac_try='test -z "$ac_c_werror_flag"
25145			 || test ! -s conftest.err'
25146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147  (eval $ac_try) 2>&5
25148  ac_status=$?
25149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150  (exit $ac_status); }; } &&
25151	 { ac_try='test -s conftest$ac_exeext'
25152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153  (eval $ac_try) 2>&5
25154  ac_status=$?
25155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156  (exit $ac_status); }; }; then
25157  jm_cv_include="iconv.h"
25158           jm_cv_func_iconv=yes
25159           jm_cv_lib_iconv=""
25160else
25161  echo "$as_me: failed program was:" >&5
25162sed 's/^/| /' conftest.$ac_ext >&5
25163
25164fi
25165rm -f conftest.err conftest.$ac_objext \
25166      conftest$ac_exeext conftest.$ac_ext
25167
25168          if test "$jm_cv_lib_iconv" != yes; then
25169            jm_save_LIBS="$LIBS"
25170            LIBS="$LIBS -lgiconv"
25171            cat >conftest.$ac_ext <<_ACEOF
25172/* confdefs.h.  */
25173_ACEOF
25174cat confdefs.h >>conftest.$ac_ext
25175cat >>conftest.$ac_ext <<_ACEOF
25176/* end confdefs.h.  */
25177#include <stdlib.h>
25178#include <giconv.h>
25179int
25180main ()
25181{
25182iconv_t cd = iconv_open("","");
25183               iconv(cd,NULL,NULL,NULL,NULL);
25184               iconv_close(cd);
25185  ;
25186  return 0;
25187}
25188_ACEOF
25189rm -f conftest.$ac_objext conftest$ac_exeext
25190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25191  (eval $ac_link) 2>conftest.er1
25192  ac_status=$?
25193  grep -v '^ *+' conftest.er1 >conftest.err
25194  rm -f conftest.er1
25195  cat conftest.err >&5
25196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197  (exit $ac_status); } &&
25198	 { ac_try='test -z "$ac_c_werror_flag"
25199			 || test ! -s conftest.err'
25200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201  (eval $ac_try) 2>&5
25202  ac_status=$?
25203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204  (exit $ac_status); }; } &&
25205	 { ac_try='test -s conftest$ac_exeext'
25206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207  (eval $ac_try) 2>&5
25208  ac_status=$?
25209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210  (exit $ac_status); }; }; then
25211  jm_cv_lib_iconv=yes
25212              jm_cv_func_iconv=yes
25213              jm_cv_include="giconv.h"
25214              jm_cv_giconv=yes
25215              jm_cv_lib_iconv="giconv"
25216else
25217  echo "$as_me: failed program was:" >&5
25218sed 's/^/| /' conftest.$ac_ext >&5
25219
25220fi
25221rm -f conftest.err conftest.$ac_objext \
25222      conftest$ac_exeext conftest.$ac_ext
25223
25224           LIBS="$jm_save_LIBS"
25225
25226        if test "$jm_cv_func_iconv" != yes; then
25227          jm_save_LIBS="$LIBS"
25228          LIBS="$LIBS -liconv"
25229          cat >conftest.$ac_ext <<_ACEOF
25230/* confdefs.h.  */
25231_ACEOF
25232cat confdefs.h >>conftest.$ac_ext
25233cat >>conftest.$ac_ext <<_ACEOF
25234/* end confdefs.h.  */
25235#include <stdlib.h>
25236#include <iconv.h>
25237int
25238main ()
25239{
25240iconv_t cd = iconv_open("","");
25241             iconv(cd,NULL,NULL,NULL,NULL);
25242             iconv_close(cd);
25243  ;
25244  return 0;
25245}
25246_ACEOF
25247rm -f conftest.$ac_objext conftest$ac_exeext
25248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25249  (eval $ac_link) 2>conftest.er1
25250  ac_status=$?
25251  grep -v '^ *+' conftest.er1 >conftest.err
25252  rm -f conftest.er1
25253  cat conftest.err >&5
25254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255  (exit $ac_status); } &&
25256	 { ac_try='test -z "$ac_c_werror_flag"
25257			 || test ! -s conftest.err'
25258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25259  (eval $ac_try) 2>&5
25260  ac_status=$?
25261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262  (exit $ac_status); }; } &&
25263	 { ac_try='test -s conftest$ac_exeext'
25264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25265  (eval $ac_try) 2>&5
25266  ac_status=$?
25267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268  (exit $ac_status); }; }; then
25269  jm_cv_include="iconv.h"
25270            jm_cv_func_iconv=yes
25271            jm_cv_lib_iconv="iconv"
25272else
25273  echo "$as_me: failed program was:" >&5
25274sed 's/^/| /' conftest.$ac_ext >&5
25275
25276fi
25277rm -f conftest.err conftest.$ac_objext \
25278      conftest$ac_exeext conftest.$ac_ext
25279          LIBS="$jm_save_LIBS"
25280        fi
25281      fi
25282    fi
25283  fi
25284  if test "$jm_cv_func_iconv" = yes; then
25285    if test "$jm_cv_giconv" = yes; then
25286
25287cat >>confdefs.h <<\_ACEOF
25288#define HAVE_GICONV 1
25289_ACEOF
25290
25291      echo "$as_me:$LINENO: result: yes" >&5
25292echo "${ECHO_T}yes" >&6
25293      ICONV_FOUND=yes
25294    else
25295      if test "$jm_cv_biconv" = yes; then
25296
25297cat >>confdefs.h <<\_ACEOF
25298#define HAVE_BICONV 1
25299_ACEOF
25300
25301        echo "$as_me:$LINENO: result: yes" >&5
25302echo "${ECHO_T}yes" >&6
25303        ICONV_FOUND=yes
25304      else
25305
25306cat >>confdefs.h <<\_ACEOF
25307#define HAVE_ICONV 1
25308_ACEOF
25309
25310        echo "$as_me:$LINENO: result: yes" >&5
25311echo "${ECHO_T}yes" >&6
25312        ICONV_FOUND=yes
25313      fi
25314    fi
25315  else
25316    echo "$as_me:$LINENO: result: no" >&5
25317echo "${ECHO_T}no" >&6
25318  fi
25319
25320                if test x"$ICONV_FOUND" = "xyes" ; then
25321                    libext="$l"
25322                    break;
25323                fi
25324        fi
25325    done
25326
25327    if test x"$ICONV_FOUND" = "xyes" ; then
25328	LDFLAGS=$save_LDFLAGS
25329
25330if test ""$i/$libext"" != "/usr/lib" ; then
25331    LDFLAGS="$LDFLAGS -L"$i/$libext""
25332fi
25333
25334
25335if test ""$i/include"" != "/usr/include" ; then
25336    CPPFLAGS="$CPPFLAGS -I"$i/include""
25337fi
25338
25339        LIBS="$save_LIBS"
25340        ICONV_LOCATION=$i
25341        export LDFLAGS LIBS CPPFLAGS
25342
25343        ############
25344        # check for iconv in libc
25345        ic_save_LIBS="$LIBS"
25346        if test x"$ICONV_PATH_SPEC" = "xyes" ; then
25347           LIBS="$LIBS -L$ICONV_LOCATION/$libext"
25348        fi
25349        if test x"$jm_cv_lib_iconv" != x; then
25350           LIBS="$LIBS -l$jm_cv_lib_iconv"
25351        fi
25352	default_dos_charset=no
25353	default_display_charset=no
25354	default_unix_charset=no
25355
25356	# check for default dos charset name
25357	for j in CP850 IBM850 ; do
25358
25359    echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
25360echo $ECHO_N "checking can we convert from $j to UCS2-LE?... $ECHO_C" >&6
25361  if test "$cross_compiling" = yes; then
25362  ICONV_CHARSET=cross
25363else
25364  cat >conftest.$ac_ext <<_ACEOF
25365/* confdefs.h.  */
25366_ACEOF
25367cat confdefs.h >>conftest.$ac_ext
25368cat >>conftest.$ac_ext <<_ACEOF
25369/* end confdefs.h.  */
25370
25371#include <$jm_cv_include>
25372main(){
25373    iconv_t cd = iconv_open("$j", "UCS-2LE");
25374    if (cd == 0 || cd == (iconv_t)-1) {
25375	return -1;
25376    }
25377    return 0;
25378}
25379
25380_ACEOF
25381rm -f conftest$ac_exeext
25382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25383  (eval $ac_link) 2>&5
25384  ac_status=$?
25385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388  (eval $ac_try) 2>&5
25389  ac_status=$?
25390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391  (exit $ac_status); }; }; then
25392  ICONV_CHARSET=$j
25393else
25394  echo "$as_me: program exited with status $ac_status" >&5
25395echo "$as_me: failed program was:" >&5
25396sed 's/^/| /' conftest.$ac_ext >&5
25397
25398( exit $ac_status )
25399ICONV_CHARSET=no
25400fi
25401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25402fi
25403  echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
25404echo "${ECHO_T}$ICONV_CHARSET" >&6
25405
25406	    if test x"$ICONV_CHARSET" = x"$j"; then
25407		default_dos_charset="\"$j\""
25408		break
25409	    fi
25410	done
25411	# check for default display charset name
25412	for j in ASCII 646 ; do
25413
25414    echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
25415echo $ECHO_N "checking can we convert from $j to UCS2-LE?... $ECHO_C" >&6
25416  if test "$cross_compiling" = yes; then
25417  ICONV_CHARSET=cross
25418else
25419  cat >conftest.$ac_ext <<_ACEOF
25420/* confdefs.h.  */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h.  */
25425
25426#include <$jm_cv_include>
25427main(){
25428    iconv_t cd = iconv_open("$j", "UCS-2LE");
25429    if (cd == 0 || cd == (iconv_t)-1) {
25430	return -1;
25431    }
25432    return 0;
25433}
25434
25435_ACEOF
25436rm -f conftest$ac_exeext
25437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25438  (eval $ac_link) 2>&5
25439  ac_status=$?
25440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443  (eval $ac_try) 2>&5
25444  ac_status=$?
25445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446  (exit $ac_status); }; }; then
25447  ICONV_CHARSET=$j
25448else
25449  echo "$as_me: program exited with status $ac_status" >&5
25450echo "$as_me: failed program was:" >&5
25451sed 's/^/| /' conftest.$ac_ext >&5
25452
25453( exit $ac_status )
25454ICONV_CHARSET=no
25455fi
25456rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25457fi
25458  echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
25459echo "${ECHO_T}$ICONV_CHARSET" >&6
25460
25461	    if test x"$ICONV_CHARSET" = x"$j"; then
25462		default_display_charset="\"$j\""
25463		break
25464	    fi
25465	done
25466	# check for default unix charset name
25467	for j in UTF-8 UTF8 ; do
25468
25469    echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
25470echo $ECHO_N "checking can we convert from $j to UCS2-LE?... $ECHO_C" >&6
25471  if test "$cross_compiling" = yes; then
25472  ICONV_CHARSET=cross
25473else
25474  cat >conftest.$ac_ext <<_ACEOF
25475/* confdefs.h.  */
25476_ACEOF
25477cat confdefs.h >>conftest.$ac_ext
25478cat >>conftest.$ac_ext <<_ACEOF
25479/* end confdefs.h.  */
25480
25481#include <$jm_cv_include>
25482main(){
25483    iconv_t cd = iconv_open("$j", "UCS-2LE");
25484    if (cd == 0 || cd == (iconv_t)-1) {
25485	return -1;
25486    }
25487    return 0;
25488}
25489
25490_ACEOF
25491rm -f conftest$ac_exeext
25492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25493  (eval $ac_link) 2>&5
25494  ac_status=$?
25495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498  (eval $ac_try) 2>&5
25499  ac_status=$?
25500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501  (exit $ac_status); }; }; then
25502  ICONV_CHARSET=$j
25503else
25504  echo "$as_me: program exited with status $ac_status" >&5
25505echo "$as_me: failed program was:" >&5
25506sed 's/^/| /' conftest.$ac_ext >&5
25507
25508( exit $ac_status )
25509ICONV_CHARSET=no
25510fi
25511rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25512fi
25513  echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
25514echo "${ECHO_T}$ICONV_CHARSET" >&6
25515
25516	    if test x"$ICONV_CHARSET" = x"$j"; then
25517		default_unix_charset="\"$j\""
25518		break
25519	    fi
25520	done
25521
25522	if test "$default_dos_charset" != "no" -a \
25523		"$default_dos_charset" != "cross" -a \
25524		"$default_display_charset" != "no" -a \
25525		"$default_display_charset" != "cross" -a \
25526		"$default_unix_charset" != "no" -a \
25527		"$default_unix_charset" != "cross"
25528	then
25529		samba_cv_HAVE_NATIVE_ICONV=yes
25530	else if test "$default_dos_charset" = "cross" -o \
25531		     "$default_display_charset" = "cross" -o \
25532		     "$default_unix_charset" = "cross"
25533	then
25534		samba_cv_HAVE_NATIVE_ICONV=cross
25535	else
25536		samba_cv_HAVE_NATIVE_ICONV=no
25537	fi
25538	fi
25539
25540        LIBS="$ic_save_LIBS"
25541        if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
25542  	   CPPFLAGS=$save_CPPFLAGS
25543	   LDFLAGS=$save_LDFLAGS
25544	   LIBS=$save_LIBS
25545           if test x"$jm_cv_lib_iconv" != x; then
25546              LIBS="$LIBS -l$jm_cv_lib_iconv"
25547           fi
25548
25549if test ""$i/include"" != "/usr/include" ; then
25550    CPPFLAGS="$CPPFLAGS -I"$i/include""
25551fi
25552
25553
25554if test ""$i/$libext"" != "/usr/lib" ; then
25555    LDFLAGS="$LDFLAGS -L"$i/$libext""
25556fi
25557
25558	   export CPPFLAGS
25559
25560cat >>confdefs.h <<\_ACEOF
25561#define HAVE_NATIVE_ICONV 1
25562_ACEOF
25563
25564
25565cat >>confdefs.h <<_ACEOF
25566#define DEFAULT_DOS_CHARSET $default_dos_charset
25567_ACEOF
25568
25569
25570cat >>confdefs.h <<_ACEOF
25571#define DEFAULT_DISPLAY_CHARSET $default_display_charset
25572_ACEOF
25573
25574
25575cat >>confdefs.h <<_ACEOF
25576#define DEFAULT_UNIX_CHARSET $default_unix_charset
25577_ACEOF
25578
25579           break
25580        fi
25581    fi
25582    CPPFLAGS=$save_CPPFLAGS
25583    LDFLAGS=$save_LDFLAGS
25584    LIBS=$save_LIBS
25585    export LDFLAGS LIBS CPPFLAGS
25586done
25587unset libext
25588
25589
25590if test x"$ICONV_FOUND" = x"no" -o x"$samba_cv_HAVE_NATIVE_ICONV" != x"yes" ; then
25591    { echo "$as_me:$LINENO: WARNING: Sufficient support for iconv function was not found.
25592    Install libiconv from http://freshmeat.net/projects/libiconv/ for better charset compatibility!" >&5
25593echo "$as_me: WARNING: Sufficient support for iconv function was not found.
25594    Install libiconv from http://freshmeat.net/projects/libiconv/ for better charset compatibility!" >&2;}
25595
25596cat >>confdefs.h <<_ACEOF
25597#define DEFAULT_DOS_CHARSET "ASCII"
25598_ACEOF
25599
25600
25601cat >>confdefs.h <<_ACEOF
25602#define DEFAULT_DISPLAY_CHARSET "ASCII"
25603_ACEOF
25604
25605
25606cat >>confdefs.h <<_ACEOF
25607#define DEFAULT_UNIX_CHARSET "UTF8"
25608_ACEOF
25609
25610fi
25611
25612
25613echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
25614echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
25615if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
25616  echo $ECHO_N "(cached) $ECHO_C" >&6
25617else
25618
25619if test "$cross_compiling" = yes; then
25620  samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
25621else
25622  cat >conftest.$ac_ext <<_ACEOF
25623/* confdefs.h.  */
25624_ACEOF
25625cat confdefs.h >>conftest.$ac_ext
25626cat >>conftest.$ac_ext <<_ACEOF
25627/* end confdefs.h.  */
25628
25629#include <sys/types.h>
25630#include <fcntl.h>
25631#ifndef F_GETLEASE
25632#define F_GETLEASE	1025
25633#endif
25634main() {
25635       int fd = open("/dev/null", O_RDONLY);
25636       return fcntl(fd, F_GETLEASE, 0) == -1;
25637}
25638
25639_ACEOF
25640rm -f conftest$ac_exeext
25641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25642  (eval $ac_link) 2>&5
25643  ac_status=$?
25644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647  (eval $ac_try) 2>&5
25648  ac_status=$?
25649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650  (exit $ac_status); }; }; then
25651  samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
25652else
25653  echo "$as_me: program exited with status $ac_status" >&5
25654echo "$as_me: failed program was:" >&5
25655sed 's/^/| /' conftest.$ac_ext >&5
25656
25657( exit $ac_status )
25658samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
25659fi
25660rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25661fi
25662fi
25663echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
25664echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
25665if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
25666
25667cat >>confdefs.h <<\_ACEOF
25668#define HAVE_KERNEL_OPLOCKS_LINUX 1
25669_ACEOF
25670
25671fi
25672
25673echo "$as_me:$LINENO: checking for kernel change notify support" >&5
25674echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
25675if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
25676  echo $ECHO_N "(cached) $ECHO_C" >&6
25677else
25678
25679if test "$cross_compiling" = yes; then
25680  samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
25681else
25682  cat >conftest.$ac_ext <<_ACEOF
25683/* confdefs.h.  */
25684_ACEOF
25685cat confdefs.h >>conftest.$ac_ext
25686cat >>conftest.$ac_ext <<_ACEOF
25687/* end confdefs.h.  */
25688
25689#include <sys/types.h>
25690#include <fcntl.h>
25691#include <signal.h>
25692#ifndef F_NOTIFY
25693#define F_NOTIFY 1026
25694#endif
25695main() {
25696       	exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ?  1 : 0);
25697}
25698
25699_ACEOF
25700rm -f conftest$ac_exeext
25701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25702  (eval $ac_link) 2>&5
25703  ac_status=$?
25704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707  (eval $ac_try) 2>&5
25708  ac_status=$?
25709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710  (exit $ac_status); }; }; then
25711  samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
25712else
25713  echo "$as_me: program exited with status $ac_status" >&5
25714echo "$as_me: failed program was:" >&5
25715sed 's/^/| /' conftest.$ac_ext >&5
25716
25717( exit $ac_status )
25718samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
25719fi
25720rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25721fi
25722fi
25723echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
25724echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
25725if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
25726
25727cat >>confdefs.h <<\_ACEOF
25728#define HAVE_KERNEL_CHANGE_NOTIFY 1
25729_ACEOF
25730
25731fi
25732
25733echo "$as_me:$LINENO: checking for kernel share modes" >&5
25734echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
25735if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
25736  echo $ECHO_N "(cached) $ECHO_C" >&6
25737else
25738
25739if test "$cross_compiling" = yes; then
25740  samba_cv_HAVE_KERNEL_SHARE_MODES=cross
25741else
25742  cat >conftest.$ac_ext <<_ACEOF
25743/* confdefs.h.  */
25744_ACEOF
25745cat confdefs.h >>conftest.$ac_ext
25746cat >>conftest.$ac_ext <<_ACEOF
25747/* end confdefs.h.  */
25748
25749#include <sys/types.h>
25750#include <fcntl.h>
25751#include <signal.h>
25752#include <sys/file.h>
25753#ifndef LOCK_MAND
25754#define LOCK_MAND	32
25755#define LOCK_READ	64
25756#endif
25757main() {
25758       	exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
25759}
25760
25761_ACEOF
25762rm -f conftest$ac_exeext
25763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25764  (eval $ac_link) 2>&5
25765  ac_status=$?
25766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769  (eval $ac_try) 2>&5
25770  ac_status=$?
25771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772  (exit $ac_status); }; }; then
25773  samba_cv_HAVE_KERNEL_SHARE_MODES=yes
25774else
25775  echo "$as_me: program exited with status $ac_status" >&5
25776echo "$as_me: failed program was:" >&5
25777sed 's/^/| /' conftest.$ac_ext >&5
25778
25779( exit $ac_status )
25780samba_cv_HAVE_KERNEL_SHARE_MODES=no
25781fi
25782rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25783fi
25784fi
25785echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
25786echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
25787if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
25788
25789cat >>confdefs.h <<\_ACEOF
25790#define HAVE_KERNEL_SHARE_MODES 1
25791_ACEOF
25792
25793fi
25794
25795
25796
25797
25798echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
25799echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
25800if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
25801  echo $ECHO_N "(cached) $ECHO_C" >&6
25802else
25803
25804cat >conftest.$ac_ext <<_ACEOF
25805/* confdefs.h.  */
25806_ACEOF
25807cat confdefs.h >>conftest.$ac_ext
25808cat >>conftest.$ac_ext <<_ACEOF
25809/* end confdefs.h.  */
25810#include <sys/types.h>
25811#include <fcntl.h>
25812int
25813main ()
25814{
25815oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
25816  ;
25817  return 0;
25818}
25819_ACEOF
25820rm -f conftest.$ac_objext
25821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25822  (eval $ac_compile) 2>conftest.er1
25823  ac_status=$?
25824  grep -v '^ *+' conftest.er1 >conftest.err
25825  rm -f conftest.er1
25826  cat conftest.err >&5
25827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828  (exit $ac_status); } &&
25829	 { ac_try='test -z "$ac_c_werror_flag"
25830			 || test ! -s conftest.err'
25831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832  (eval $ac_try) 2>&5
25833  ac_status=$?
25834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835  (exit $ac_status); }; } &&
25836	 { ac_try='test -s conftest.$ac_objext'
25837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838  (eval $ac_try) 2>&5
25839  ac_status=$?
25840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841  (exit $ac_status); }; }; then
25842  samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
25843else
25844  echo "$as_me: failed program was:" >&5
25845sed 's/^/| /' conftest.$ac_ext >&5
25846
25847samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
25848fi
25849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25850fi
25851echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
25852echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
25853if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
25854
25855cat >>confdefs.h <<\_ACEOF
25856#define HAVE_KERNEL_OPLOCKS_IRIX 1
25857_ACEOF
25858
25859fi
25860
25861echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
25862echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
25863if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
25864  echo $ECHO_N "(cached) $ECHO_C" >&6
25865else
25866
25867if test "$cross_compiling" = yes; then
25868  samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
25869else
25870  cat >conftest.$ac_ext <<_ACEOF
25871/* confdefs.h.  */
25872_ACEOF
25873cat confdefs.h >>conftest.$ac_ext
25874cat >>conftest.$ac_ext <<_ACEOF
25875/* end confdefs.h.  */
25876#include <sys/types.h>
25877#include <sys/capability.h>
25878main() {
25879 cap_t cap;
25880 if ((cap = cap_get_proc()) == NULL)
25881   exit(1);
25882 cap->cap_effective |= CAP_NETWORK_MGT;
25883 cap->cap_inheritable |= CAP_NETWORK_MGT;
25884 cap_set_proc(cap);
25885 exit(0);
25886}
25887
25888_ACEOF
25889rm -f conftest$ac_exeext
25890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25891  (eval $ac_link) 2>&5
25892  ac_status=$?
25893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896  (eval $ac_try) 2>&5
25897  ac_status=$?
25898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899  (exit $ac_status); }; }; then
25900  samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
25901else
25902  echo "$as_me: program exited with status $ac_status" >&5
25903echo "$as_me: failed program was:" >&5
25904sed 's/^/| /' conftest.$ac_ext >&5
25905
25906( exit $ac_status )
25907samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
25908fi
25909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25910fi
25911fi
25912echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
25913echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
25914if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
25915
25916cat >>confdefs.h <<\_ACEOF
25917#define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
25918_ACEOF
25919
25920fi
25921
25922#
25923# Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
25924# This is *really* broken but some systems (DEC OSF1) do this.... JRA.
25925#
25926
25927echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
25928echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
25929if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
25930  echo $ECHO_N "(cached) $ECHO_C" >&6
25931else
25932
25933cat >conftest.$ac_ext <<_ACEOF
25934/* confdefs.h.  */
25935_ACEOF
25936cat confdefs.h >>conftest.$ac_ext
25937cat >>conftest.$ac_ext <<_ACEOF
25938/* end confdefs.h.  */
25939#include <sys/types.h>
25940#if defined(HAVE_RPC_RPC_H)
25941#include <rpc/rpc.h>
25942#endif
25943int
25944main ()
25945{
25946int16 testvar;
25947  ;
25948  return 0;
25949}
25950_ACEOF
25951rm -f conftest.$ac_objext
25952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25953  (eval $ac_compile) 2>conftest.er1
25954  ac_status=$?
25955  grep -v '^ *+' conftest.er1 >conftest.err
25956  rm -f conftest.er1
25957  cat conftest.err >&5
25958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959  (exit $ac_status); } &&
25960	 { ac_try='test -z "$ac_c_werror_flag"
25961			 || test ! -s conftest.err'
25962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25963  (eval $ac_try) 2>&5
25964  ac_status=$?
25965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966  (exit $ac_status); }; } &&
25967	 { ac_try='test -s conftest.$ac_objext'
25968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969  (eval $ac_try) 2>&5
25970  ac_status=$?
25971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972  (exit $ac_status); }; }; then
25973  samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
25974else
25975  echo "$as_me: failed program was:" >&5
25976sed 's/^/| /' conftest.$ac_ext >&5
25977
25978samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
25979fi
25980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25981fi
25982echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
25983echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
25984if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
25985
25986cat >>confdefs.h <<\_ACEOF
25987#define HAVE_INT16_FROM_RPC_RPC_H 1
25988_ACEOF
25989
25990fi
25991
25992echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
25993echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
25994if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
25995  echo $ECHO_N "(cached) $ECHO_C" >&6
25996else
25997
25998cat >conftest.$ac_ext <<_ACEOF
25999/* confdefs.h.  */
26000_ACEOF
26001cat confdefs.h >>conftest.$ac_ext
26002cat >>conftest.$ac_ext <<_ACEOF
26003/* end confdefs.h.  */
26004#include <sys/types.h>
26005#if defined(HAVE_RPC_RPC_H)
26006#include <rpc/rpc.h>
26007#endif
26008int
26009main ()
26010{
26011uint16 testvar;
26012  ;
26013  return 0;
26014}
26015_ACEOF
26016rm -f conftest.$ac_objext
26017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26018  (eval $ac_compile) 2>conftest.er1
26019  ac_status=$?
26020  grep -v '^ *+' conftest.er1 >conftest.err
26021  rm -f conftest.er1
26022  cat conftest.err >&5
26023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024  (exit $ac_status); } &&
26025	 { ac_try='test -z "$ac_c_werror_flag"
26026			 || test ! -s conftest.err'
26027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028  (eval $ac_try) 2>&5
26029  ac_status=$?
26030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031  (exit $ac_status); }; } &&
26032	 { ac_try='test -s conftest.$ac_objext'
26033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034  (eval $ac_try) 2>&5
26035  ac_status=$?
26036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037  (exit $ac_status); }; }; then
26038  samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
26039else
26040  echo "$as_me: failed program was:" >&5
26041sed 's/^/| /' conftest.$ac_ext >&5
26042
26043samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
26044fi
26045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26046fi
26047echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
26048echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
26049if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
26050
26051cat >>confdefs.h <<\_ACEOF
26052#define HAVE_UINT16_FROM_RPC_RPC_H 1
26053_ACEOF
26054
26055fi
26056
26057echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
26058echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
26059if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
26060  echo $ECHO_N "(cached) $ECHO_C" >&6
26061else
26062
26063cat >conftest.$ac_ext <<_ACEOF
26064/* confdefs.h.  */
26065_ACEOF
26066cat confdefs.h >>conftest.$ac_ext
26067cat >>conftest.$ac_ext <<_ACEOF
26068/* end confdefs.h.  */
26069#include <sys/types.h>
26070#if defined(HAVE_RPC_RPC_H)
26071#include <rpc/rpc.h>
26072#endif
26073int
26074main ()
26075{
26076int32 testvar;
26077  ;
26078  return 0;
26079}
26080_ACEOF
26081rm -f conftest.$ac_objext
26082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26083  (eval $ac_compile) 2>conftest.er1
26084  ac_status=$?
26085  grep -v '^ *+' conftest.er1 >conftest.err
26086  rm -f conftest.er1
26087  cat conftest.err >&5
26088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089  (exit $ac_status); } &&
26090	 { ac_try='test -z "$ac_c_werror_flag"
26091			 || test ! -s conftest.err'
26092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093  (eval $ac_try) 2>&5
26094  ac_status=$?
26095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096  (exit $ac_status); }; } &&
26097	 { ac_try='test -s conftest.$ac_objext'
26098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099  (eval $ac_try) 2>&5
26100  ac_status=$?
26101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102  (exit $ac_status); }; }; then
26103  samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
26104else
26105  echo "$as_me: failed program was:" >&5
26106sed 's/^/| /' conftest.$ac_ext >&5
26107
26108samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
26109fi
26110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26111fi
26112echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
26113echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
26114if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
26115
26116cat >>confdefs.h <<\_ACEOF
26117#define HAVE_INT32_FROM_RPC_RPC_H 1
26118_ACEOF
26119
26120fi
26121
26122echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
26123echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
26124if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
26125  echo $ECHO_N "(cached) $ECHO_C" >&6
26126else
26127
26128cat >conftest.$ac_ext <<_ACEOF
26129/* confdefs.h.  */
26130_ACEOF
26131cat confdefs.h >>conftest.$ac_ext
26132cat >>conftest.$ac_ext <<_ACEOF
26133/* end confdefs.h.  */
26134#include <sys/types.h>
26135#if defined(HAVE_RPC_RPC_H)
26136#include <rpc/rpc.h>
26137#endif
26138int
26139main ()
26140{
26141uint32 testvar;
26142  ;
26143  return 0;
26144}
26145_ACEOF
26146rm -f conftest.$ac_objext
26147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148  (eval $ac_compile) 2>conftest.er1
26149  ac_status=$?
26150  grep -v '^ *+' conftest.er1 >conftest.err
26151  rm -f conftest.er1
26152  cat conftest.err >&5
26153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154  (exit $ac_status); } &&
26155	 { ac_try='test -z "$ac_c_werror_flag"
26156			 || test ! -s conftest.err'
26157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158  (eval $ac_try) 2>&5
26159  ac_status=$?
26160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161  (exit $ac_status); }; } &&
26162	 { ac_try='test -s conftest.$ac_objext'
26163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164  (eval $ac_try) 2>&5
26165  ac_status=$?
26166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167  (exit $ac_status); }; }; then
26168  samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
26169else
26170  echo "$as_me: failed program was:" >&5
26171sed 's/^/| /' conftest.$ac_ext >&5
26172
26173samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
26174fi
26175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26176fi
26177echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
26178echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
26179if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
26180
26181cat >>confdefs.h <<\_ACEOF
26182#define HAVE_UINT32_FROM_RPC_RPC_H 1
26183_ACEOF
26184
26185fi
26186
26187
26188echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
26189echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
26190if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
26191  echo $ECHO_N "(cached) $ECHO_C" >&6
26192else
26193
26194cat >conftest.$ac_ext <<_ACEOF
26195/* confdefs.h.  */
26196_ACEOF
26197cat confdefs.h >>conftest.$ac_ext
26198cat >>conftest.$ac_ext <<_ACEOF
26199/* end confdefs.h.  */
26200#include <sys/types.h>
26201#ifdef HAVE_SYS_SECURITY_H
26202#include <sys/security.h>
26203#include <prot.h>
26204#endif  /* HAVE_SYS_SECURITY_H */
26205#if defined(HAVE_RPC_RPC_H)
26206#include <rpc/rpc.h>
26207#endif
26208int
26209main ()
26210{
26211int testvar;
26212  ;
26213  return 0;
26214}
26215_ACEOF
26216rm -f conftest.$ac_objext
26217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26218  (eval $ac_compile) 2>conftest.er1
26219  ac_status=$?
26220  grep -v '^ *+' conftest.er1 >conftest.err
26221  rm -f conftest.er1
26222  cat conftest.err >&5
26223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224  (exit $ac_status); } &&
26225	 { ac_try='test -z "$ac_c_werror_flag"
26226			 || test ! -s conftest.err'
26227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228  (eval $ac_try) 2>&5
26229  ac_status=$?
26230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231  (exit $ac_status); }; } &&
26232	 { ac_try='test -s conftest.$ac_objext'
26233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234  (eval $ac_try) 2>&5
26235  ac_status=$?
26236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237  (exit $ac_status); }; }; then
26238  samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
26239else
26240  echo "$as_me: failed program was:" >&5
26241sed 's/^/| /' conftest.$ac_ext >&5
26242
26243samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
26244fi
26245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26246fi
26247echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
26248echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
26249if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
26250
26251cat >>confdefs.h <<\_ACEOF
26252#define HAVE_RPC_AUTH_ERROR_CONFLICT 1
26253_ACEOF
26254
26255fi
26256
26257echo "$as_me:$LINENO: checking for test routines" >&5
26258echo $ECHO_N "checking for test routines... $ECHO_C" >&6
26259if test "$cross_compiling" = yes; then
26260  { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
26261echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
26262else
26263  cat >conftest.$ac_ext <<_ACEOF
26264/* confdefs.h.  */
26265_ACEOF
26266cat confdefs.h >>conftest.$ac_ext
26267cat >>conftest.$ac_ext <<_ACEOF
26268/* end confdefs.h.  */
26269#include "${srcdir-.}/tests/trivial.c"
26270_ACEOF
26271rm -f conftest$ac_exeext
26272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26273  (eval $ac_link) 2>&5
26274  ac_status=$?
26275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278  (eval $ac_try) 2>&5
26279  ac_status=$?
26280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281  (exit $ac_status); }; }; then
26282  echo "$as_me:$LINENO: result: yes" >&5
26283echo "${ECHO_T}yes" >&6
26284else
26285  echo "$as_me: program exited with status $ac_status" >&5
26286echo "$as_me: failed program was:" >&5
26287sed 's/^/| /' conftest.$ac_ext >&5
26288
26289( exit $ac_status )
26290{ { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
26291echo "$as_me: error: cant find test code. Aborting config" >&2;}
26292   { (exit 1); exit 1; }; }
26293fi
26294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26295fi
26296
26297echo "$as_me:$LINENO: checking for ftruncate extend" >&5
26298echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
26299if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
26300  echo $ECHO_N "(cached) $ECHO_C" >&6
26301else
26302
26303if test "$cross_compiling" = yes; then
26304  samba_cv_HAVE_FTRUNCATE_EXTEND=cross
26305else
26306  cat >conftest.$ac_ext <<_ACEOF
26307/* confdefs.h.  */
26308_ACEOF
26309cat confdefs.h >>conftest.$ac_ext
26310cat >>conftest.$ac_ext <<_ACEOF
26311/* end confdefs.h.  */
26312#include "${srcdir-.}/tests/ftruncate.c"
26313_ACEOF
26314rm -f conftest$ac_exeext
26315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26316  (eval $ac_link) 2>&5
26317  ac_status=$?
26318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321  (eval $ac_try) 2>&5
26322  ac_status=$?
26323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324  (exit $ac_status); }; }; then
26325  samba_cv_HAVE_FTRUNCATE_EXTEND=yes
26326else
26327  echo "$as_me: program exited with status $ac_status" >&5
26328echo "$as_me: failed program was:" >&5
26329sed 's/^/| /' conftest.$ac_ext >&5
26330
26331( exit $ac_status )
26332samba_cv_HAVE_FTRUNCATE_EXTEND=no
26333fi
26334rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26335fi
26336fi
26337echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
26338echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
26339if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
26340
26341cat >>confdefs.h <<\_ACEOF
26342#define HAVE_FTRUNCATE_EXTEND 1
26343_ACEOF
26344
26345fi
26346
26347echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
26348echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
26349if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
26350  echo $ECHO_N "(cached) $ECHO_C" >&6
26351else
26352
26353if test "$cross_compiling" = yes; then
26354  samba_cv_HAVE_WORKING_AF_LOCAL=cross
26355else
26356  cat >conftest.$ac_ext <<_ACEOF
26357/* confdefs.h.  */
26358_ACEOF
26359cat confdefs.h >>conftest.$ac_ext
26360cat >>conftest.$ac_ext <<_ACEOF
26361/* end confdefs.h.  */
26362#include "${srcdir-.}/tests/unixsock.c"
26363_ACEOF
26364rm -f conftest$ac_exeext
26365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26366  (eval $ac_link) 2>&5
26367  ac_status=$?
26368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371  (eval $ac_try) 2>&5
26372  ac_status=$?
26373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374  (exit $ac_status); }; }; then
26375  samba_cv_HAVE_WORKING_AF_LOCAL=yes
26376else
26377  echo "$as_me: program exited with status $ac_status" >&5
26378echo "$as_me: failed program was:" >&5
26379sed 's/^/| /' conftest.$ac_ext >&5
26380
26381( exit $ac_status )
26382samba_cv_HAVE_WORKING_AF_LOCAL=no
26383fi
26384rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26385fi
26386fi
26387echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
26388echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
26389if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
26390then
26391
26392cat >>confdefs.h <<\_ACEOF
26393#define HAVE_WORKING_AF_LOCAL 1
26394_ACEOF
26395
26396fi
26397
26398echo "$as_me:$LINENO: checking for broken getgroups" >&5
26399echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
26400if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
26401  echo $ECHO_N "(cached) $ECHO_C" >&6
26402else
26403
26404if test "$cross_compiling" = yes; then
26405  samba_cv_HAVE_BROKEN_GETGROUPS=cross
26406else
26407  cat >conftest.$ac_ext <<_ACEOF
26408/* confdefs.h.  */
26409_ACEOF
26410cat confdefs.h >>conftest.$ac_ext
26411cat >>conftest.$ac_ext <<_ACEOF
26412/* end confdefs.h.  */
26413#include "${srcdir-.}/tests/getgroups.c"
26414_ACEOF
26415rm -f conftest$ac_exeext
26416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417  (eval $ac_link) 2>&5
26418  ac_status=$?
26419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422  (eval $ac_try) 2>&5
26423  ac_status=$?
26424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425  (exit $ac_status); }; }; then
26426  samba_cv_HAVE_BROKEN_GETGROUPS=yes
26427else
26428  echo "$as_me: program exited with status $ac_status" >&5
26429echo "$as_me: failed program was:" >&5
26430sed 's/^/| /' conftest.$ac_ext >&5
26431
26432( exit $ac_status )
26433samba_cv_HAVE_BROKEN_GETGROUPS=no
26434fi
26435rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26436fi
26437fi
26438echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
26439echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
26440if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
26441
26442cat >>confdefs.h <<\_ACEOF
26443#define HAVE_BROKEN_GETGROUPS 1
26444_ACEOF
26445
26446fi
26447
26448echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
26449echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
26450if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
26451  echo $ECHO_N "(cached) $ECHO_C" >&6
26452else
26453
26454SAVE_CPPFLAGS="$CPPFLAGS"
26455CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper"
26456cat >conftest.$ac_ext <<_ACEOF
26457/* confdefs.h.  */
26458_ACEOF
26459cat confdefs.h >>conftest.$ac_ext
26460cat >>conftest.$ac_ext <<_ACEOF
26461/* end confdefs.h.  */
26462
26463#define REPLACE_GETPASS 1
26464#define NO_PROTO_H 1
26465#define NO_CONFIG_H 1
26466#define main dont_declare_main
26467#include "${srcdir-.}/lib/getsmbpass.c"
26468#undef main
26469
26470int
26471main ()
26472{
26473
26474  ;
26475  return 0;
26476}
26477_ACEOF
26478rm -f conftest.$ac_objext
26479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26480  (eval $ac_compile) 2>conftest.er1
26481  ac_status=$?
26482  grep -v '^ *+' conftest.er1 >conftest.err
26483  rm -f conftest.er1
26484  cat conftest.err >&5
26485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486  (exit $ac_status); } &&
26487	 { ac_try='test -z "$ac_c_werror_flag"
26488			 || test ! -s conftest.err'
26489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490  (eval $ac_try) 2>&5
26491  ac_status=$?
26492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493  (exit $ac_status); }; } &&
26494	 { ac_try='test -s conftest.$ac_objext'
26495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26496  (eval $ac_try) 2>&5
26497  ac_status=$?
26498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499  (exit $ac_status); }; }; then
26500  samba_cv_REPLACE_GETPASS=yes
26501else
26502  echo "$as_me: failed program was:" >&5
26503sed 's/^/| /' conftest.$ac_ext >&5
26504
26505samba_cv_REPLACE_GETPASS=no
26506fi
26507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26508CPPFLAGS="$SAVE_CPPFLAGS"
26509
26510fi
26511echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
26512echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
26513if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
26514
26515cat >>confdefs.h <<\_ACEOF
26516#define REPLACE_GETPASS 1
26517_ACEOF
26518
26519fi
26520
26521echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
26522echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
26523if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
26524  echo $ECHO_N "(cached) $ECHO_C" >&6
26525else
26526
26527if test "$cross_compiling" = yes; then
26528  samba_cv_REPLACE_INET_NTOA=cross
26529else
26530  cat >conftest.$ac_ext <<_ACEOF
26531/* confdefs.h.  */
26532_ACEOF
26533cat confdefs.h >>conftest.$ac_ext
26534cat >>conftest.$ac_ext <<_ACEOF
26535/* end confdefs.h.  */
26536
26537#include <stdio.h>
26538#include <sys/types.h>
26539#include <netinet/in.h>
26540#ifdef HAVE_ARPA_INET_H
26541#include <arpa/inet.h>
26542#endif
26543main() { struct in_addr ip; ip.s_addr = 0x12345678;
26544if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
26545    strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
26546exit(1);}
26547_ACEOF
26548rm -f conftest$ac_exeext
26549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26550  (eval $ac_link) 2>&5
26551  ac_status=$?
26552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555  (eval $ac_try) 2>&5
26556  ac_status=$?
26557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558  (exit $ac_status); }; }; then
26559  samba_cv_REPLACE_INET_NTOA=yes
26560else
26561  echo "$as_me: program exited with status $ac_status" >&5
26562echo "$as_me: failed program was:" >&5
26563sed 's/^/| /' conftest.$ac_ext >&5
26564
26565( exit $ac_status )
26566samba_cv_REPLACE_INET_NTOA=no
26567fi
26568rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26569fi
26570fi
26571echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
26572echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
26573if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
26574
26575cat >>confdefs.h <<\_ACEOF
26576#define REPLACE_INET_NTOA 1
26577_ACEOF
26578
26579fi
26580
26581echo "$as_me:$LINENO: checking for secure mkstemp" >&5
26582echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
26583if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
26584  echo $ECHO_N "(cached) $ECHO_C" >&6
26585else
26586
26587if test "$cross_compiling" = yes; then
26588  samba_cv_HAVE_SECURE_MKSTEMP=cross
26589else
26590  cat >conftest.$ac_ext <<_ACEOF
26591/* confdefs.h.  */
26592_ACEOF
26593cat confdefs.h >>conftest.$ac_ext
26594cat >>conftest.$ac_ext <<_ACEOF
26595/* end confdefs.h.  */
26596#include <stdlib.h>
26597#include <sys/types.h>
26598#include <sys/stat.h>
26599#include <unistd.h>
26600main() {
26601  struct stat st;
26602  char tpl[20]="/tmp/test.XXXXXX";
26603  int fd = mkstemp(tpl);
26604  if (fd == -1) exit(1);
26605  unlink(tpl);
26606  if (fstat(fd, &st) != 0) exit(1);
26607  if ((st.st_mode & 0777) != 0600) exit(1);
26608  exit(0);
26609}
26610_ACEOF
26611rm -f conftest$ac_exeext
26612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26613  (eval $ac_link) 2>&5
26614  ac_status=$?
26615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618  (eval $ac_try) 2>&5
26619  ac_status=$?
26620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621  (exit $ac_status); }; }; then
26622  samba_cv_HAVE_SECURE_MKSTEMP=yes
26623else
26624  echo "$as_me: program exited with status $ac_status" >&5
26625echo "$as_me: failed program was:" >&5
26626sed 's/^/| /' conftest.$ac_ext >&5
26627
26628( exit $ac_status )
26629samba_cv_HAVE_SECURE_MKSTEMP=no
26630fi
26631rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26632fi
26633fi
26634echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
26635echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
26636if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
26637
26638cat >>confdefs.h <<\_ACEOF
26639#define HAVE_SECURE_MKSTEMP 1
26640_ACEOF
26641
26642fi
26643
26644echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
26645echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
26646if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
26647  echo $ECHO_N "(cached) $ECHO_C" >&6
26648else
26649
26650if test "$cross_compiling" = yes; then
26651  samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
26652else
26653  cat >conftest.$ac_ext <<_ACEOF
26654/* confdefs.h.  */
26655_ACEOF
26656cat confdefs.h >>conftest.$ac_ext
26657cat >>conftest.$ac_ext <<_ACEOF
26658/* end confdefs.h.  */
26659#include <unistd.h>
26660main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
26661_ACEOF
26662rm -f conftest$ac_exeext
26663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26664  (eval $ac_link) 2>&5
26665  ac_status=$?
26666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669  (eval $ac_try) 2>&5
26670  ac_status=$?
26671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672  (exit $ac_status); }; }; then
26673  samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
26674else
26675  echo "$as_me: program exited with status $ac_status" >&5
26676echo "$as_me: failed program was:" >&5
26677sed 's/^/| /' conftest.$ac_ext >&5
26678
26679( exit $ac_status )
26680samba_cv_SYSCONF_SC_NGROUPS_MAX=no
26681fi
26682rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26683fi
26684fi
26685echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
26686echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
26687if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
26688
26689cat >>confdefs.h <<\_ACEOF
26690#define SYSCONF_SC_NGROUPS_MAX 1
26691_ACEOF
26692
26693fi
26694
26695echo "$as_me:$LINENO: checking for sysconf(_SC_NPROC_ONLN)" >&5
26696echo $ECHO_N "checking for sysconf(_SC_NPROC_ONLN)... $ECHO_C" >&6
26697if test "${samba_cv_SYSCONF_SC_NPROC_ONLN+set}" = set; then
26698  echo $ECHO_N "(cached) $ECHO_C" >&6
26699else
26700
26701if test "$cross_compiling" = yes; then
26702  samba_cv_SYSCONF_SC_NPROC_ONLN=cross
26703else
26704  cat >conftest.$ac_ext <<_ACEOF
26705/* confdefs.h.  */
26706_ACEOF
26707cat confdefs.h >>conftest.$ac_ext
26708cat >>conftest.$ac_ext <<_ACEOF
26709/* end confdefs.h.  */
26710#include <unistd.h>
26711main() { exit(sysconf(_SC_NPROC_ONLN) == -1 ? 1 : 0); }
26712_ACEOF
26713rm -f conftest$ac_exeext
26714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26715  (eval $ac_link) 2>&5
26716  ac_status=$?
26717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26720  (eval $ac_try) 2>&5
26721  ac_status=$?
26722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723  (exit $ac_status); }; }; then
26724  samba_cv_SYSCONF_SC_NPROC_ONLN=yes
26725else
26726  echo "$as_me: program exited with status $ac_status" >&5
26727echo "$as_me: failed program was:" >&5
26728sed 's/^/| /' conftest.$ac_ext >&5
26729
26730( exit $ac_status )
26731samba_cv_SYSCONF_SC_NPROC_ONLN=no
26732fi
26733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26734fi
26735fi
26736echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROC_ONLN" >&5
26737echo "${ECHO_T}$samba_cv_SYSCONF_SC_NPROC_ONLN" >&6
26738if test x"$samba_cv_SYSCONF_SC_NPROC_ONLN" = x"yes"; then
26739
26740cat >>confdefs.h <<\_ACEOF
26741#define SYSCONF_SC_NPROC_ONLN 1
26742_ACEOF
26743
26744fi
26745
26746echo "$as_me:$LINENO: checking for root" >&5
26747echo $ECHO_N "checking for root... $ECHO_C" >&6
26748if test "${samba_cv_HAVE_ROOT+set}" = set; then
26749  echo $ECHO_N "(cached) $ECHO_C" >&6
26750else
26751
26752if test "$cross_compiling" = yes; then
26753  samba_cv_HAVE_ROOT=cross
26754else
26755  cat >conftest.$ac_ext <<_ACEOF
26756/* confdefs.h.  */
26757_ACEOF
26758cat confdefs.h >>conftest.$ac_ext
26759cat >>conftest.$ac_ext <<_ACEOF
26760/* end confdefs.h.  */
26761main() { exit(getuid() != 0); }
26762_ACEOF
26763rm -f conftest$ac_exeext
26764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26765  (eval $ac_link) 2>&5
26766  ac_status=$?
26767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770  (eval $ac_try) 2>&5
26771  ac_status=$?
26772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773  (exit $ac_status); }; }; then
26774  samba_cv_HAVE_ROOT=yes
26775else
26776  echo "$as_me: program exited with status $ac_status" >&5
26777echo "$as_me: failed program was:" >&5
26778sed 's/^/| /' conftest.$ac_ext >&5
26779
26780( exit $ac_status )
26781samba_cv_HAVE_ROOT=no
26782fi
26783rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26784fi
26785fi
26786echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
26787echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
26788if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
26789
26790cat >>confdefs.h <<\_ACEOF
26791#define HAVE_ROOT 1
26792_ACEOF
26793
26794else
26795    { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
26796echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
26797fi
26798
26799##################
26800# look for a method of finding the list of network interfaces
26801iface=no;
26802echo "$as_me:$LINENO: checking for iface AIX" >&5
26803echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
26804if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
26805  echo $ECHO_N "(cached) $ECHO_C" >&6
26806else
26807
26808if test "$cross_compiling" = yes; then
26809  samba_cv_HAVE_IFACE_AIX=cross
26810else
26811  cat >conftest.$ac_ext <<_ACEOF
26812/* confdefs.h.  */
26813_ACEOF
26814cat confdefs.h >>conftest.$ac_ext
26815cat >>conftest.$ac_ext <<_ACEOF
26816/* end confdefs.h.  */
26817
26818#define HAVE_IFACE_AIX 1
26819#define AUTOCONF_TEST 1
26820#include "confdefs.h"
26821#include "${srcdir-.}/lib/interfaces.c"
26822_ACEOF
26823rm -f conftest$ac_exeext
26824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26825  (eval $ac_link) 2>&5
26826  ac_status=$?
26827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830  (eval $ac_try) 2>&5
26831  ac_status=$?
26832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833  (exit $ac_status); }; }; then
26834  samba_cv_HAVE_IFACE_AIX=yes
26835else
26836  echo "$as_me: program exited with status $ac_status" >&5
26837echo "$as_me: failed program was:" >&5
26838sed 's/^/| /' conftest.$ac_ext >&5
26839
26840( exit $ac_status )
26841samba_cv_HAVE_IFACE_AIX=no
26842fi
26843rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26844fi
26845fi
26846echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
26847echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
26848if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
26849    iface=yes;
26850cat >>confdefs.h <<\_ACEOF
26851#define HAVE_IFACE_AIX 1
26852_ACEOF
26853
26854fi
26855
26856if test $iface = no; then
26857echo "$as_me:$LINENO: checking for iface ifconf" >&5
26858echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
26859if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
26860  echo $ECHO_N "(cached) $ECHO_C" >&6
26861else
26862
26863if test "$cross_compiling" = yes; then
26864  samba_cv_HAVE_IFACE_IFCONF=cross
26865else
26866  cat >conftest.$ac_ext <<_ACEOF
26867/* confdefs.h.  */
26868_ACEOF
26869cat confdefs.h >>conftest.$ac_ext
26870cat >>conftest.$ac_ext <<_ACEOF
26871/* end confdefs.h.  */
26872
26873#define HAVE_IFACE_IFCONF 1
26874#define AUTOCONF_TEST 1
26875#include "confdefs.h"
26876#include "${srcdir-.}/lib/interfaces.c"
26877_ACEOF
26878rm -f conftest$ac_exeext
26879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26880  (eval $ac_link) 2>&5
26881  ac_status=$?
26882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885  (eval $ac_try) 2>&5
26886  ac_status=$?
26887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888  (exit $ac_status); }; }; then
26889  samba_cv_HAVE_IFACE_IFCONF=yes
26890else
26891  echo "$as_me: program exited with status $ac_status" >&5
26892echo "$as_me: failed program was:" >&5
26893sed 's/^/| /' conftest.$ac_ext >&5
26894
26895( exit $ac_status )
26896samba_cv_HAVE_IFACE_IFCONF=no
26897fi
26898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26899fi
26900fi
26901echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
26902echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
26903if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
26904    iface=yes;
26905cat >>confdefs.h <<\_ACEOF
26906#define HAVE_IFACE_IFCONF 1
26907_ACEOF
26908
26909fi
26910fi
26911
26912if test $iface = no; then
26913echo "$as_me:$LINENO: checking for iface ifreq" >&5
26914echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
26915if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
26916  echo $ECHO_N "(cached) $ECHO_C" >&6
26917else
26918
26919if test "$cross_compiling" = yes; then
26920  samba_cv_HAVE_IFACE_IFREQ=cross
26921else
26922  cat >conftest.$ac_ext <<_ACEOF
26923/* confdefs.h.  */
26924_ACEOF
26925cat confdefs.h >>conftest.$ac_ext
26926cat >>conftest.$ac_ext <<_ACEOF
26927/* end confdefs.h.  */
26928
26929#define HAVE_IFACE_IFREQ 1
26930#define AUTOCONF_TEST 1
26931#include "confdefs.h"
26932#include "${srcdir-.}/lib/interfaces.c"
26933_ACEOF
26934rm -f conftest$ac_exeext
26935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26936  (eval $ac_link) 2>&5
26937  ac_status=$?
26938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941  (eval $ac_try) 2>&5
26942  ac_status=$?
26943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944  (exit $ac_status); }; }; then
26945  samba_cv_HAVE_IFACE_IFREQ=yes
26946else
26947  echo "$as_me: program exited with status $ac_status" >&5
26948echo "$as_me: failed program was:" >&5
26949sed 's/^/| /' conftest.$ac_ext >&5
26950
26951( exit $ac_status )
26952samba_cv_HAVE_IFACE_IFREQ=no
26953fi
26954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26955fi
26956fi
26957echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
26958echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
26959if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
26960    iface=yes;
26961cat >>confdefs.h <<\_ACEOF
26962#define HAVE_IFACE_IFREQ 1
26963_ACEOF
26964
26965fi
26966fi
26967
26968
26969################################################
26970# look for a method of setting the effective uid
26971seteuid=no;
26972if test $seteuid = no; then
26973echo "$as_me:$LINENO: checking for setresuid" >&5
26974echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
26975if test "${samba_cv_USE_SETRESUID+set}" = set; then
26976  echo $ECHO_N "(cached) $ECHO_C" >&6
26977else
26978
26979if test "$cross_compiling" = yes; then
26980  samba_cv_USE_SETRESUID=cross
26981else
26982  cat >conftest.$ac_ext <<_ACEOF
26983/* confdefs.h.  */
26984_ACEOF
26985cat confdefs.h >>conftest.$ac_ext
26986cat >>conftest.$ac_ext <<_ACEOF
26987/* end confdefs.h.  */
26988
26989#define AUTOCONF_TEST 1
26990#define USE_SETRESUID 1
26991#include "confdefs.h"
26992#include "${srcdir-.}/lib/util_sec.c"
26993_ACEOF
26994rm -f conftest$ac_exeext
26995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26996  (eval $ac_link) 2>&5
26997  ac_status=$?
26998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001  (eval $ac_try) 2>&5
27002  ac_status=$?
27003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004  (exit $ac_status); }; }; then
27005  samba_cv_USE_SETRESUID=yes
27006else
27007  echo "$as_me: program exited with status $ac_status" >&5
27008echo "$as_me: failed program was:" >&5
27009sed 's/^/| /' conftest.$ac_ext >&5
27010
27011( exit $ac_status )
27012samba_cv_USE_SETRESUID=no
27013fi
27014rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27015fi
27016fi
27017echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
27018echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
27019if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
27020    seteuid=yes;
27021cat >>confdefs.h <<\_ACEOF
27022#define USE_SETRESUID 1
27023_ACEOF
27024
27025fi
27026fi
27027
27028
27029if test $seteuid = no; then
27030echo "$as_me:$LINENO: checking for setreuid" >&5
27031echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
27032if test "${samba_cv_USE_SETREUID+set}" = set; then
27033  echo $ECHO_N "(cached) $ECHO_C" >&6
27034else
27035
27036if test "$cross_compiling" = yes; then
27037  samba_cv_USE_SETREUID=cross
27038else
27039  cat >conftest.$ac_ext <<_ACEOF
27040/* confdefs.h.  */
27041_ACEOF
27042cat confdefs.h >>conftest.$ac_ext
27043cat >>conftest.$ac_ext <<_ACEOF
27044/* end confdefs.h.  */
27045
27046#define AUTOCONF_TEST 1
27047#define USE_SETREUID 1
27048#include "confdefs.h"
27049#include "${srcdir-.}/lib/util_sec.c"
27050_ACEOF
27051rm -f conftest$ac_exeext
27052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27053  (eval $ac_link) 2>&5
27054  ac_status=$?
27055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058  (eval $ac_try) 2>&5
27059  ac_status=$?
27060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061  (exit $ac_status); }; }; then
27062  samba_cv_USE_SETREUID=yes
27063else
27064  echo "$as_me: program exited with status $ac_status" >&5
27065echo "$as_me: failed program was:" >&5
27066sed 's/^/| /' conftest.$ac_ext >&5
27067
27068( exit $ac_status )
27069samba_cv_USE_SETREUID=no
27070fi
27071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27072fi
27073fi
27074echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
27075echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
27076if test x"$samba_cv_USE_SETREUID" = x"yes"; then
27077    seteuid=yes;
27078cat >>confdefs.h <<\_ACEOF
27079#define USE_SETREUID 1
27080_ACEOF
27081
27082fi
27083fi
27084
27085if test $seteuid = no; then
27086echo "$as_me:$LINENO: checking for seteuid" >&5
27087echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
27088if test "${samba_cv_USE_SETEUID+set}" = set; then
27089  echo $ECHO_N "(cached) $ECHO_C" >&6
27090else
27091
27092if test "$cross_compiling" = yes; then
27093  samba_cv_USE_SETEUID=cross
27094else
27095  cat >conftest.$ac_ext <<_ACEOF
27096/* confdefs.h.  */
27097_ACEOF
27098cat confdefs.h >>conftest.$ac_ext
27099cat >>conftest.$ac_ext <<_ACEOF
27100/* end confdefs.h.  */
27101
27102#define AUTOCONF_TEST 1
27103#define USE_SETEUID 1
27104#include "confdefs.h"
27105#include "${srcdir-.}/lib/util_sec.c"
27106_ACEOF
27107rm -f conftest$ac_exeext
27108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27109  (eval $ac_link) 2>&5
27110  ac_status=$?
27111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114  (eval $ac_try) 2>&5
27115  ac_status=$?
27116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117  (exit $ac_status); }; }; then
27118  samba_cv_USE_SETEUID=yes
27119else
27120  echo "$as_me: program exited with status $ac_status" >&5
27121echo "$as_me: failed program was:" >&5
27122sed 's/^/| /' conftest.$ac_ext >&5
27123
27124( exit $ac_status )
27125samba_cv_USE_SETEUID=no
27126fi
27127rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27128fi
27129fi
27130echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
27131echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
27132if test x"$samba_cv_USE_SETEUID" = x"yes"; then
27133    seteuid=yes;
27134cat >>confdefs.h <<\_ACEOF
27135#define USE_SETEUID 1
27136_ACEOF
27137
27138fi
27139fi
27140
27141if test $seteuid = no; then
27142echo "$as_me:$LINENO: checking for setuidx" >&5
27143echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
27144if test "${samba_cv_USE_SETUIDX+set}" = set; then
27145  echo $ECHO_N "(cached) $ECHO_C" >&6
27146else
27147
27148if test "$cross_compiling" = yes; then
27149  samba_cv_USE_SETUIDX=cross
27150else
27151  cat >conftest.$ac_ext <<_ACEOF
27152/* confdefs.h.  */
27153_ACEOF
27154cat confdefs.h >>conftest.$ac_ext
27155cat >>conftest.$ac_ext <<_ACEOF
27156/* end confdefs.h.  */
27157
27158#define AUTOCONF_TEST 1
27159#define USE_SETUIDX 1
27160#include "confdefs.h"
27161#include "${srcdir-.}/lib/util_sec.c"
27162_ACEOF
27163rm -f conftest$ac_exeext
27164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27165  (eval $ac_link) 2>&5
27166  ac_status=$?
27167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170  (eval $ac_try) 2>&5
27171  ac_status=$?
27172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173  (exit $ac_status); }; }; then
27174  samba_cv_USE_SETUIDX=yes
27175else
27176  echo "$as_me: program exited with status $ac_status" >&5
27177echo "$as_me: failed program was:" >&5
27178sed 's/^/| /' conftest.$ac_ext >&5
27179
27180( exit $ac_status )
27181samba_cv_USE_SETUIDX=no
27182fi
27183rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27184fi
27185fi
27186echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
27187echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
27188if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
27189    seteuid=yes;
27190cat >>confdefs.h <<\_ACEOF
27191#define USE_SETUIDX 1
27192_ACEOF
27193
27194fi
27195fi
27196
27197
27198echo "$as_me:$LINENO: checking for working mmap" >&5
27199echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
27200if test "${samba_cv_HAVE_MMAP+set}" = set; then
27201  echo $ECHO_N "(cached) $ECHO_C" >&6
27202else
27203
27204if test "$cross_compiling" = yes; then
27205  samba_cv_HAVE_MMAP=cross
27206else
27207  cat >conftest.$ac_ext <<_ACEOF
27208/* confdefs.h.  */
27209_ACEOF
27210cat confdefs.h >>conftest.$ac_ext
27211cat >>conftest.$ac_ext <<_ACEOF
27212/* end confdefs.h.  */
27213#include "${srcdir-.}/tests/shared_mmap.c"
27214_ACEOF
27215rm -f conftest$ac_exeext
27216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27217  (eval $ac_link) 2>&5
27218  ac_status=$?
27219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222  (eval $ac_try) 2>&5
27223  ac_status=$?
27224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225  (exit $ac_status); }; }; then
27226  samba_cv_HAVE_MMAP=yes
27227else
27228  echo "$as_me: program exited with status $ac_status" >&5
27229echo "$as_me: failed program was:" >&5
27230sed 's/^/| /' conftest.$ac_ext >&5
27231
27232( exit $ac_status )
27233samba_cv_HAVE_MMAP=no
27234fi
27235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27236fi
27237fi
27238echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
27239echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
27240if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
27241
27242cat >>confdefs.h <<\_ACEOF
27243#define HAVE_MMAP 1
27244_ACEOF
27245
27246fi
27247
27248echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
27249echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
27250if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
27251  echo $ECHO_N "(cached) $ECHO_C" >&6
27252else
27253
27254if test "$cross_compiling" = yes; then
27255  samba_cv_FTRUNCATE_NEEDS_ROOT=cross
27256else
27257  cat >conftest.$ac_ext <<_ACEOF
27258/* confdefs.h.  */
27259_ACEOF
27260cat confdefs.h >>conftest.$ac_ext
27261cat >>conftest.$ac_ext <<_ACEOF
27262/* end confdefs.h.  */
27263#include "${srcdir-.}/tests/ftruncroot.c"
27264_ACEOF
27265rm -f conftest$ac_exeext
27266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27267  (eval $ac_link) 2>&5
27268  ac_status=$?
27269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272  (eval $ac_try) 2>&5
27273  ac_status=$?
27274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275  (exit $ac_status); }; }; then
27276  samba_cv_FTRUNCATE_NEEDS_ROOT=yes
27277else
27278  echo "$as_me: program exited with status $ac_status" >&5
27279echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
27282( exit $ac_status )
27283samba_cv_FTRUNCATE_NEEDS_ROOT=no
27284fi
27285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27286fi
27287fi
27288echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
27289echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
27290if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
27291
27292cat >>confdefs.h <<\_ACEOF
27293#define FTRUNCATE_NEEDS_ROOT 1
27294_ACEOF
27295
27296fi
27297
27298echo "$as_me:$LINENO: checking for fcntl locking" >&5
27299echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
27300if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
27301  echo $ECHO_N "(cached) $ECHO_C" >&6
27302else
27303
27304if test "$cross_compiling" = yes; then
27305  samba_cv_HAVE_FCNTL_LOCK=cross
27306else
27307  cat >conftest.$ac_ext <<_ACEOF
27308/* confdefs.h.  */
27309_ACEOF
27310cat confdefs.h >>conftest.$ac_ext
27311cat >>conftest.$ac_ext <<_ACEOF
27312/* end confdefs.h.  */
27313#include "${srcdir-.}/tests/fcntl_lock.c"
27314_ACEOF
27315rm -f conftest$ac_exeext
27316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27317  (eval $ac_link) 2>&5
27318  ac_status=$?
27319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322  (eval $ac_try) 2>&5
27323  ac_status=$?
27324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325  (exit $ac_status); }; }; then
27326  samba_cv_HAVE_FCNTL_LOCK=yes
27327else
27328  echo "$as_me: program exited with status $ac_status" >&5
27329echo "$as_me: failed program was:" >&5
27330sed 's/^/| /' conftest.$ac_ext >&5
27331
27332( exit $ac_status )
27333samba_cv_HAVE_FCNTL_LOCK=no
27334fi
27335rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27336fi
27337fi
27338echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
27339echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
27340if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
27341
27342cat >>confdefs.h <<\_ACEOF
27343#define HAVE_FCNTL_LOCK 1
27344_ACEOF
27345
27346fi
27347
27348echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
27349echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
27350if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
27351  echo $ECHO_N "(cached) $ECHO_C" >&6
27352else
27353
27354if test "$cross_compiling" = yes; then
27355  samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
27356else
27357  cat >conftest.$ac_ext <<_ACEOF
27358/* confdefs.h.  */
27359_ACEOF
27360cat confdefs.h >>conftest.$ac_ext
27361cat >>conftest.$ac_ext <<_ACEOF
27362/* end confdefs.h.  */
27363#include "${srcdir-.}/tests/fcntl_lock64.c"
27364_ACEOF
27365rm -f conftest$ac_exeext
27366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27367  (eval $ac_link) 2>&5
27368  ac_status=$?
27369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372  (eval $ac_try) 2>&5
27373  ac_status=$?
27374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375  (exit $ac_status); }; }; then
27376  samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
27377else
27378  echo "$as_me: program exited with status $ac_status" >&5
27379echo "$as_me: failed program was:" >&5
27380sed 's/^/| /' conftest.$ac_ext >&5
27381
27382( exit $ac_status )
27383samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
27384fi
27385rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27386fi
27387fi
27388echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
27389echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
27390if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
27391
27392cat >>confdefs.h <<\_ACEOF
27393#define HAVE_BROKEN_FCNTL64_LOCKS 1
27394_ACEOF
27395
27396
27397else
27398
27399
27400  echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
27401echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
27402if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
27403  echo $ECHO_N "(cached) $ECHO_C" >&6
27404else
27405
27406  if test "$cross_compiling" = yes; then
27407  samba_cv_HAVE_STRUCT_FLOCK64=cross
27408else
27409  cat >conftest.$ac_ext <<_ACEOF
27410/* confdefs.h.  */
27411_ACEOF
27412cat confdefs.h >>conftest.$ac_ext
27413cat >>conftest.$ac_ext <<_ACEOF
27414/* end confdefs.h.  */
27415
27416#if defined(HAVE_UNISTD_H)
27417#include <unistd.h>
27418#endif
27419#include <stdio.h>
27420#include <stdlib.h>
27421
27422#ifdef HAVE_FCNTL_H
27423#include <fcntl.h>
27424#endif
27425
27426#ifdef HAVE_SYS_FCNTL_H
27427#include <sys/fcntl.h>
27428#endif
27429main() { struct flock64 fl64;
27430#if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
27431exit(0);
27432#else
27433exit(1);
27434#endif
27435}
27436_ACEOF
27437rm -f conftest$ac_exeext
27438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27439  (eval $ac_link) 2>&5
27440  ac_status=$?
27441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444  (eval $ac_try) 2>&5
27445  ac_status=$?
27446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447  (exit $ac_status); }; }; then
27448  samba_cv_HAVE_STRUCT_FLOCK64=yes
27449else
27450  echo "$as_me: program exited with status $ac_status" >&5
27451echo "$as_me: failed program was:" >&5
27452sed 's/^/| /' conftest.$ac_ext >&5
27453
27454( exit $ac_status )
27455samba_cv_HAVE_STRUCT_FLOCK64=no
27456fi
27457rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27458fi
27459fi
27460echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
27461echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
27462
27463  if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
27464
27465cat >>confdefs.h <<\_ACEOF
27466#define HAVE_STRUCT_FLOCK64 1
27467_ACEOF
27468
27469  fi
27470fi
27471
27472echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
27473echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
27474if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
27475  echo $ECHO_N "(cached) $ECHO_C" >&6
27476else
27477
27478cat >conftest.$ac_ext <<_ACEOF
27479/* confdefs.h.  */
27480_ACEOF
27481cat confdefs.h >>conftest.$ac_ext
27482cat >>conftest.$ac_ext <<_ACEOF
27483/* end confdefs.h.  */
27484#include <sys/types.h>
27485#include <sys/stat.h>
27486#include <unistd.h>
27487int
27488main ()
27489{
27490struct stat st;  st.st_blocks = 0;
27491  ;
27492  return 0;
27493}
27494_ACEOF
27495rm -f conftest.$ac_objext
27496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27497  (eval $ac_compile) 2>conftest.er1
27498  ac_status=$?
27499  grep -v '^ *+' conftest.er1 >conftest.err
27500  rm -f conftest.er1
27501  cat conftest.err >&5
27502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503  (exit $ac_status); } &&
27504	 { ac_try='test -z "$ac_c_werror_flag"
27505			 || test ! -s conftest.err'
27506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507  (eval $ac_try) 2>&5
27508  ac_status=$?
27509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510  (exit $ac_status); }; } &&
27511	 { ac_try='test -s conftest.$ac_objext'
27512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513  (eval $ac_try) 2>&5
27514  ac_status=$?
27515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516  (exit $ac_status); }; }; then
27517  samba_cv_HAVE_STAT_ST_BLOCKS=yes
27518else
27519  echo "$as_me: failed program was:" >&5
27520sed 's/^/| /' conftest.$ac_ext >&5
27521
27522samba_cv_HAVE_STAT_ST_BLOCKS=no
27523fi
27524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27525fi
27526echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
27527echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
27528if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
27529
27530cat >>confdefs.h <<\_ACEOF
27531#define HAVE_STAT_ST_BLOCKS 1
27532_ACEOF
27533
27534fi
27535
27536echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
27537echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
27538if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
27539  echo $ECHO_N "(cached) $ECHO_C" >&6
27540else
27541
27542cat >conftest.$ac_ext <<_ACEOF
27543/* confdefs.h.  */
27544_ACEOF
27545cat confdefs.h >>conftest.$ac_ext
27546cat >>conftest.$ac_ext <<_ACEOF
27547/* end confdefs.h.  */
27548#include <sys/types.h>
27549#include <sys/stat.h>
27550#include <unistd.h>
27551int
27552main ()
27553{
27554struct stat st;  st.st_blksize = 0;
27555  ;
27556  return 0;
27557}
27558_ACEOF
27559rm -f conftest.$ac_objext
27560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27561  (eval $ac_compile) 2>conftest.er1
27562  ac_status=$?
27563  grep -v '^ *+' conftest.er1 >conftest.err
27564  rm -f conftest.er1
27565  cat conftest.err >&5
27566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567  (exit $ac_status); } &&
27568	 { ac_try='test -z "$ac_c_werror_flag"
27569			 || test ! -s conftest.err'
27570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571  (eval $ac_try) 2>&5
27572  ac_status=$?
27573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574  (exit $ac_status); }; } &&
27575	 { ac_try='test -s conftest.$ac_objext'
27576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27577  (eval $ac_try) 2>&5
27578  ac_status=$?
27579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580  (exit $ac_status); }; }; then
27581  samba_cv_HAVE_STAT_ST_BLKSIZE=yes
27582else
27583  echo "$as_me: failed program was:" >&5
27584sed 's/^/| /' conftest.$ac_ext >&5
27585
27586samba_cv_HAVE_STAT_ST_BLKSIZE=no
27587fi
27588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27589fi
27590echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
27591echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
27592if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
27593
27594cat >>confdefs.h <<\_ACEOF
27595#define HAVE_STAT_ST_BLKSIZE 1
27596_ACEOF
27597
27598fi
27599
27600case "$host_os" in
27601*linux*)
27602echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
27603echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
27604if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
27605  echo $ECHO_N "(cached) $ECHO_C" >&6
27606else
27607
27608cat >conftest.$ac_ext <<_ACEOF
27609/* confdefs.h.  */
27610_ACEOF
27611cat confdefs.h >>conftest.$ac_ext
27612cat >>conftest.$ac_ext <<_ACEOF
27613/* end confdefs.h.  */
27614
27615#ifdef HAVE_SYS_VFS_H
27616#include <sys/vfs.h>
27617#endif
27618#ifdef HAVE_SYS_CAPABILITY_H
27619#include <sys/capability.h>
27620#endif
27621
27622int
27623main ()
27624{
27625int i;
27626  ;
27627  return 0;
27628}
27629_ACEOF
27630rm -f conftest.$ac_objext
27631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27632  (eval $ac_compile) 2>conftest.er1
27633  ac_status=$?
27634  grep -v '^ *+' conftest.er1 >conftest.err
27635  rm -f conftest.er1
27636  cat conftest.err >&5
27637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638  (exit $ac_status); } &&
27639	 { ac_try='test -z "$ac_c_werror_flag"
27640			 || test ! -s conftest.err'
27641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642  (eval $ac_try) 2>&5
27643  ac_status=$?
27644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645  (exit $ac_status); }; } &&
27646	 { ac_try='test -s conftest.$ac_objext'
27647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648  (eval $ac_try) 2>&5
27649  ac_status=$?
27650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651  (exit $ac_status); }; }; then
27652  samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
27653else
27654  echo "$as_me: failed program was:" >&5
27655sed 's/^/| /' conftest.$ac_ext >&5
27656
27657samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
27658fi
27659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27660fi
27661echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
27662echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
27663if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
27664
27665cat >>confdefs.h <<\_ACEOF
27666#define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
27667_ACEOF
27668
27669fi
27670;;
27671esac
27672
27673echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
27674echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
27675if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
27676  echo $ECHO_N "(cached) $ECHO_C" >&6
27677else
27678
27679cat >conftest.$ac_ext <<_ACEOF
27680/* confdefs.h.  */
27681_ACEOF
27682cat confdefs.h >>conftest.$ac_ext
27683cat >>conftest.$ac_ext <<_ACEOF
27684/* end confdefs.h.  */
27685
27686#include <sys/types.h>
27687#include <sys/acl.h>
27688#if defined(HAVE_RPCSVC_NIS_H)
27689#include <rpcsvc/nis.h>
27690#endif
27691int
27692main ()
27693{
27694int i;
27695  ;
27696  return 0;
27697}
27698_ACEOF
27699rm -f conftest.$ac_objext
27700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27701  (eval $ac_compile) 2>conftest.er1
27702  ac_status=$?
27703  grep -v '^ *+' conftest.er1 >conftest.err
27704  rm -f conftest.er1
27705  cat conftest.err >&5
27706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707  (exit $ac_status); } &&
27708	 { ac_try='test -z "$ac_c_werror_flag"
27709			 || test ! -s conftest.err'
27710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711  (eval $ac_try) 2>&5
27712  ac_status=$?
27713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714  (exit $ac_status); }; } &&
27715	 { ac_try='test -s conftest.$ac_objext'
27716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27717  (eval $ac_try) 2>&5
27718  ac_status=$?
27719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720  (exit $ac_status); }; }; then
27721  samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
27722else
27723  echo "$as_me: failed program was:" >&5
27724sed 's/^/| /' conftest.$ac_ext >&5
27725
27726samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
27727fi
27728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27729fi
27730echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
27731echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
27732if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
27733
27734cat >>confdefs.h <<\_ACEOF
27735#define BROKEN_NISPLUS_INCLUDE_FILES 1
27736_ACEOF
27737
27738fi
27739
27740echo "$as_me:$LINENO: checking if the realpath function allows a NULL argument" >&5
27741echo $ECHO_N "checking if the realpath function allows a NULL argument... $ECHO_C" >&6
27742if test "${samba_cv_REALPATH_TAKES_NULL+set}" = set; then
27743  echo $ECHO_N "(cached) $ECHO_C" >&6
27744else
27745
27746if test "$cross_compiling" = yes; then
27747  samba_cv_REALPATH_TAKES_NULL=cross
27748else
27749  cat >conftest.$ac_ext <<_ACEOF
27750/* confdefs.h.  */
27751_ACEOF
27752cat confdefs.h >>conftest.$ac_ext
27753cat >>conftest.$ac_ext <<_ACEOF
27754/* end confdefs.h.  */
27755
27756#include <stdio.h>
27757#include <limits.h>
27758main() {
27759	char *newpath = realpath("/tmp", NULL);
27760	exit ((newpath != NULL) ? 0 : 1);
27761}
27762
27763_ACEOF
27764rm -f conftest$ac_exeext
27765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27766  (eval $ac_link) 2>&5
27767  ac_status=$?
27768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771  (eval $ac_try) 2>&5
27772  ac_status=$?
27773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774  (exit $ac_status); }; }; then
27775  samba_cv_REALPATH_TAKES_NULL=yes
27776else
27777  echo "$as_me: program exited with status $ac_status" >&5
27778echo "$as_me: failed program was:" >&5
27779sed 's/^/| /' conftest.$ac_ext >&5
27780
27781( exit $ac_status )
27782samba_cv_REALPATH_TAKES_NULL=no
27783fi
27784rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27785fi
27786fi
27787echo "$as_me:$LINENO: result: $samba_cv_REALPATH_TAKES_NULL" >&5
27788echo "${ECHO_T}$samba_cv_REALPATH_TAKES_NULL" >&6
27789if test x"$samba_cv_REALPATH_TAKES_NULL" = x"yes"; then
27790
27791cat >>confdefs.h <<\_ACEOF
27792#define REALPATH_TAKES_NULL 1
27793_ACEOF
27794
27795fi
27796
27797#################################################
27798# check for smbwrapper support
27799echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
27800echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
27801
27802# Check whether --with-smbwrapper or --without-smbwrapper was given.
27803if test "${with_smbwrapper+set}" = set; then
27804  withval="$with_smbwrapper"
27805   case "$withval" in
27806  yes)
27807    echo "$as_me:$LINENO: result: yes" >&5
27808echo "${ECHO_T}yes" >&6
27809
27810cat >>confdefs.h <<\_ACEOF
27811#define WITH_SMBWRAPPER 1
27812_ACEOF
27813
27814	WRAPPROG="bin/smbsh\$(EXEEXT)"
27815	WRAP="bin/smbwrapper.$SHLIBEXT"
27816
27817# Conditions under which smbwrapper should not be built.
27818
27819	if test x$PICFLAGS = x; then
27820	   echo No support for PIC code - disabling smbwrapper and smbsh
27821	   WRAPPROG=""
27822	   WRAP=""
27823	elif test x$ac_cv_func_syscall = xno; then
27824	   echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
27825echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
27826	   WRAPPROG=""
27827	   WRAP=""
27828	fi
27829	EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP"
27830	SMBWRAPPER="$WRAPPROG $WRAP"
27831    ;;
27832  *)
27833    echo "$as_me:$LINENO: result: no" >&5
27834echo "${ECHO_T}no" >&6
27835    ;;
27836  esac
27837else
27838  echo "$as_me:$LINENO: result: no" >&5
27839echo "${ECHO_T}no" >&6
27840
27841fi;
27842
27843#################################################
27844# check for AFS clear-text auth support
27845samba_cv_WITH_AFS=no
27846echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
27847echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
27848
27849# Check whether --with-afs or --without-afs was given.
27850if test "${with_afs+set}" = set; then
27851  withval="$with_afs"
27852   case "$withval" in
27853  yes|auto)
27854    echo "$as_me:$LINENO: result: $withval" >&5
27855echo "${ECHO_T}$withval" >&6
27856    samba_cv_WITH_AFS=$withval
27857    ;;
27858  *)
27859    echo "$as_me:$LINENO: result: no" >&5
27860echo "${ECHO_T}no" >&6
27861    ;;
27862  esac
27863else
27864  echo "$as_me:$LINENO: result: no" >&5
27865echo "${ECHO_T}no" >&6
27866
27867fi;
27868
27869####################################################
27870# check for Linux-specific AFS fake-kaserver support
27871samba_cv_WITH_FAKE_KASERVER=no
27872echo "$as_me:$LINENO: checking whether to use AFS fake-kaserver" >&5
27873echo $ECHO_N "checking whether to use AFS fake-kaserver... $ECHO_C" >&6
27874
27875# Check whether --with-fake-kaserver or --without-fake-kaserver was given.
27876if test "${with_fake_kaserver+set}" = set; then
27877  withval="$with_fake_kaserver"
27878   case "$withval" in
27879  yes|auto)
27880    echo "$as_me:$LINENO: result: $withval" >&5
27881echo "${ECHO_T}$withval" >&6
27882    samba_cv_WITH_FAKE_KASERVER=$withval
27883    ;;
27884  *)
27885    echo "$as_me:$LINENO: result: no" >&5
27886echo "${ECHO_T}no" >&6
27887    ;;
27888  esac
27889else
27890  echo "$as_me:$LINENO: result: no" >&5
27891echo "${ECHO_T}no" >&6
27892
27893fi;
27894
27895#################################################
27896# decide whether we can support WITH_AFS and / or WITH_FAKE_KASERVER
27897if test x"$samba_cv_WITH_AFS" != x"no" ||
27898   test x"$samba_cv_WITH_FAKE_KASERVER" != x"no"; then
27899
27900    # see if this box has the afs-headers in /usr/include/afs
27901    echo "$as_me:$LINENO: checking for /usr/include/afs" >&5
27902echo $ECHO_N "checking for /usr/include/afs... $ECHO_C" >&6
27903    if test -d /usr/include/afs; then
27904          CFLAGS="$CFLAGS -I/usr/include/afs"
27905          CPPFLAGS="$CPPFLAGS -I/usr/include/afs"
27906          echo "$as_me:$LINENO: result: yes" >&5
27907echo "${ECHO_T}yes" >&6
27908    else
27909      echo "$as_me:$LINENO: result: no" >&5
27910echo "${ECHO_T}no" >&6
27911    fi
27912
27913    # check for afs.h
27914    have_afs_headers=no
27915
27916
27917for ac_header in afs.h afs/afs.h
27918do
27919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27920if eval "test \"\${$as_ac_Header+set}\" = set"; then
27921  echo "$as_me:$LINENO: checking for $ac_header" >&5
27922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27923if eval "test \"\${$as_ac_Header+set}\" = set"; then
27924  echo $ECHO_N "(cached) $ECHO_C" >&6
27925fi
27926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27928else
27929  # Is the header compilable?
27930echo "$as_me:$LINENO: checking $ac_header usability" >&5
27931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27932cat >conftest.$ac_ext <<_ACEOF
27933/* confdefs.h.  */
27934_ACEOF
27935cat confdefs.h >>conftest.$ac_ext
27936cat >>conftest.$ac_ext <<_ACEOF
27937/* end confdefs.h.  */
27938$ac_includes_default
27939#include <$ac_header>
27940_ACEOF
27941rm -f conftest.$ac_objext
27942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27943  (eval $ac_compile) 2>conftest.er1
27944  ac_status=$?
27945  grep -v '^ *+' conftest.er1 >conftest.err
27946  rm -f conftest.er1
27947  cat conftest.err >&5
27948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949  (exit $ac_status); } &&
27950	 { ac_try='test -z "$ac_c_werror_flag"
27951			 || test ! -s conftest.err'
27952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953  (eval $ac_try) 2>&5
27954  ac_status=$?
27955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956  (exit $ac_status); }; } &&
27957	 { ac_try='test -s conftest.$ac_objext'
27958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959  (eval $ac_try) 2>&5
27960  ac_status=$?
27961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962  (exit $ac_status); }; }; then
27963  ac_header_compiler=yes
27964else
27965  echo "$as_me: failed program was:" >&5
27966sed 's/^/| /' conftest.$ac_ext >&5
27967
27968ac_header_compiler=no
27969fi
27970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27971echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27972echo "${ECHO_T}$ac_header_compiler" >&6
27973
27974# Is the header present?
27975echo "$as_me:$LINENO: checking $ac_header presence" >&5
27976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27977cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h.  */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h.  */
27983#include <$ac_header>
27984_ACEOF
27985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27986  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27987  ac_status=$?
27988  grep -v '^ *+' conftest.er1 >conftest.err
27989  rm -f conftest.er1
27990  cat conftest.err >&5
27991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992  (exit $ac_status); } >/dev/null; then
27993  if test -s conftest.err; then
27994    ac_cpp_err=$ac_c_preproc_warn_flag
27995    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27996  else
27997    ac_cpp_err=
27998  fi
27999else
28000  ac_cpp_err=yes
28001fi
28002if test -z "$ac_cpp_err"; then
28003  ac_header_preproc=yes
28004else
28005  echo "$as_me: failed program was:" >&5
28006sed 's/^/| /' conftest.$ac_ext >&5
28007
28008  ac_header_preproc=no
28009fi
28010rm -f conftest.err conftest.$ac_ext
28011echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28012echo "${ECHO_T}$ac_header_preproc" >&6
28013
28014# So?  What about this header?
28015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28016  yes:no: )
28017    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28018echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28019    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28020echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28021    ac_header_preproc=yes
28022    ;;
28023  no:yes:* )
28024    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28025echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28026    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28027echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28028    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28029echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28030    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28031echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28032    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28033echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28034    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28035echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28036    (
28037      cat <<\_ASBOX
28038## ------------------------------------------ ##
28039## Report this to the AC_PACKAGE_NAME lists.  ##
28040## ------------------------------------------ ##
28041_ASBOX
28042    ) |
28043      sed "s/^/$as_me: WARNING:     /" >&2
28044    ;;
28045esac
28046echo "$as_me:$LINENO: checking for $ac_header" >&5
28047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28048if eval "test \"\${$as_ac_Header+set}\" = set"; then
28049  echo $ECHO_N "(cached) $ECHO_C" >&6
28050else
28051  eval "$as_ac_Header=\$ac_header_preproc"
28052fi
28053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28055
28056fi
28057if test `eval echo '${'$as_ac_Header'}'` = yes; then
28058  cat >>confdefs.h <<_ACEOF
28059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28060_ACEOF
28061
28062fi
28063
28064done
28065
28066    if test x"$ac_cv_header_afs_h" = x"no" && test x"$ac_cv_header_afs_afs_h" = x"no"; then
28067    	if test x"$samba_cv_WITH_FAKE_KASERVER" = x"auto" ||
28068	   test x"$samba_cv_WITH_AFS" = x"auto"; then
28069	    	{ echo "$as_me:$LINENO: WARNING: AFS cannot be supported without afs.h" >&5
28070echo "$as_me: WARNING: AFS cannot be supported without afs.h" >&2;}
28071	else
28072	    	{ { echo "$as_me:$LINENO: error: AFS cannot be supported without afs.h" >&5
28073echo "$as_me: error: AFS cannot be supported without afs.h" >&2;}
28074   { (exit 1); exit 1; }; }
28075	fi
28076    else
28077    	have_afs_headers=yes
28078    fi
28079fi
28080
28081if test x"$samba_cv_WITH_FAKE_KASERVER" != x"no" && test x"$have_afs_headers" = x"yes"; then
28082
28083cat >>confdefs.h <<\_ACEOF
28084#define WITH_FAKE_KASERVER 1
28085_ACEOF
28086
28087fi
28088
28089#################################################
28090# check whether to compile AFS/NT ACL mapping module
28091samba_cv_WITH_VFS_AFSACL=no
28092echo "$as_me:$LINENO: checking whether to use AFS fake-kaserver" >&5
28093echo $ECHO_N "checking whether to use AFS fake-kaserver... $ECHO_C" >&6
28094
28095# Check whether --with-vfs-afsacl or --without-vfs-afsacl was given.
28096if test "${with_vfs_afsacl+set}" = set; then
28097  withval="$with_vfs_afsacl"
28098   case "$withval" in
28099  yes|auto)
28100    echo "$as_me:$LINENO: result: $withval" >&5
28101echo "${ECHO_T}$withval" >&6
28102    samba_cv_WITH_VFS_AFSACL=yes
28103    ;;
28104  *)
28105    echo "$as_me:$LINENO: result: no" >&5
28106echo "${ECHO_T}no" >&6
28107    ;;
28108  esac
28109else
28110  echo "$as_me:$LINENO: result: no" >&5
28111echo "${ECHO_T}no" >&6
28112
28113fi;
28114
28115if test x"$samba_cv_WITH_VFS_AFSACL" = x"yes"; then
28116   default_shared_modules="$default_shared_modules vfs_afsacl"
28117fi
28118
28119if test x"$samba_cv_WITH_AFS" != x"no" && test x"$have_afs_headers" = x"yes"; then
28120
28121cat >>confdefs.h <<\_ACEOF
28122#define WITH_AFS 1
28123_ACEOF
28124
28125fi
28126
28127#################################################
28128# check for the DFS clear-text auth system
28129echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
28130echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
28131
28132# Check whether --with-dfs or --without-dfs was given.
28133if test "${with_dfs+set}" = set; then
28134  withval="$with_dfs"
28135   case "$withval" in
28136  yes)
28137    echo "$as_me:$LINENO: result: yes" >&5
28138echo "${ECHO_T}yes" >&6
28139
28140cat >>confdefs.h <<\_ACEOF
28141#define WITH_DFS 1
28142_ACEOF
28143
28144    ;;
28145  *)
28146    echo "$as_me:$LINENO: result: no" >&5
28147echo "${ECHO_T}no" >&6
28148    ;;
28149  esac
28150else
28151  echo "$as_me:$LINENO: result: no" >&5
28152echo "${ECHO_T}no" >&6
28153
28154fi;
28155
28156########################################################
28157# Compile with LDAP support?
28158
28159with_ldap_support=auto
28160echo "$as_me:$LINENO: checking for LDAP support" >&5
28161echo $ECHO_N "checking for LDAP support... $ECHO_C" >&6
28162
28163
28164# Check whether --with-ldap or --without-ldap was given.
28165if test "${with_ldap+set}" = set; then
28166  withval="$with_ldap"
28167   case "$withval" in
28168    yes|no)
28169	with_ldap_support=$withval
28170	;;
28171  esac
28172fi;
28173
28174echo "$as_me:$LINENO: result: $with_ldap_support" >&5
28175echo "${ECHO_T}$with_ldap_support" >&6
28176
28177SMBLDAP=""
28178
28179if test x"$with_ldap_support" != x"no"; then
28180
28181  ##################################################################
28182  # first test for ldap.h and lber.h
28183  # (ldap.h is required for this test)
28184
28185
28186for ac_header in ldap.h lber.h
28187do
28188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28189if eval "test \"\${$as_ac_Header+set}\" = set"; then
28190  echo "$as_me:$LINENO: checking for $ac_header" >&5
28191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28192if eval "test \"\${$as_ac_Header+set}\" = set"; then
28193  echo $ECHO_N "(cached) $ECHO_C" >&6
28194fi
28195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28197else
28198  # Is the header compilable?
28199echo "$as_me:$LINENO: checking $ac_header usability" >&5
28200echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28201cat >conftest.$ac_ext <<_ACEOF
28202/* confdefs.h.  */
28203_ACEOF
28204cat confdefs.h >>conftest.$ac_ext
28205cat >>conftest.$ac_ext <<_ACEOF
28206/* end confdefs.h.  */
28207$ac_includes_default
28208#include <$ac_header>
28209_ACEOF
28210rm -f conftest.$ac_objext
28211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28212  (eval $ac_compile) 2>conftest.er1
28213  ac_status=$?
28214  grep -v '^ *+' conftest.er1 >conftest.err
28215  rm -f conftest.er1
28216  cat conftest.err >&5
28217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218  (exit $ac_status); } &&
28219	 { ac_try='test -z "$ac_c_werror_flag"
28220			 || test ! -s conftest.err'
28221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222  (eval $ac_try) 2>&5
28223  ac_status=$?
28224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225  (exit $ac_status); }; } &&
28226	 { ac_try='test -s conftest.$ac_objext'
28227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228  (eval $ac_try) 2>&5
28229  ac_status=$?
28230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231  (exit $ac_status); }; }; then
28232  ac_header_compiler=yes
28233else
28234  echo "$as_me: failed program was:" >&5
28235sed 's/^/| /' conftest.$ac_ext >&5
28236
28237ac_header_compiler=no
28238fi
28239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28240echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28241echo "${ECHO_T}$ac_header_compiler" >&6
28242
28243# Is the header present?
28244echo "$as_me:$LINENO: checking $ac_header presence" >&5
28245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28246cat >conftest.$ac_ext <<_ACEOF
28247/* confdefs.h.  */
28248_ACEOF
28249cat confdefs.h >>conftest.$ac_ext
28250cat >>conftest.$ac_ext <<_ACEOF
28251/* end confdefs.h.  */
28252#include <$ac_header>
28253_ACEOF
28254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28255  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28256  ac_status=$?
28257  grep -v '^ *+' conftest.er1 >conftest.err
28258  rm -f conftest.er1
28259  cat conftest.err >&5
28260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261  (exit $ac_status); } >/dev/null; then
28262  if test -s conftest.err; then
28263    ac_cpp_err=$ac_c_preproc_warn_flag
28264    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28265  else
28266    ac_cpp_err=
28267  fi
28268else
28269  ac_cpp_err=yes
28270fi
28271if test -z "$ac_cpp_err"; then
28272  ac_header_preproc=yes
28273else
28274  echo "$as_me: failed program was:" >&5
28275sed 's/^/| /' conftest.$ac_ext >&5
28276
28277  ac_header_preproc=no
28278fi
28279rm -f conftest.err conftest.$ac_ext
28280echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28281echo "${ECHO_T}$ac_header_preproc" >&6
28282
28283# So?  What about this header?
28284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28285  yes:no: )
28286    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28288    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28289echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28290    ac_header_preproc=yes
28291    ;;
28292  no:yes:* )
28293    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28295    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28296echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28297    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28298echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28299    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28300echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28301    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28303    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28304echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28305    (
28306      cat <<\_ASBOX
28307## ------------------------------------------ ##
28308## Report this to the AC_PACKAGE_NAME lists.  ##
28309## ------------------------------------------ ##
28310_ASBOX
28311    ) |
28312      sed "s/^/$as_me: WARNING:     /" >&2
28313    ;;
28314esac
28315echo "$as_me:$LINENO: checking for $ac_header" >&5
28316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28317if eval "test \"\${$as_ac_Header+set}\" = set"; then
28318  echo $ECHO_N "(cached) $ECHO_C" >&6
28319else
28320  eval "$as_ac_Header=\$ac_header_preproc"
28321fi
28322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28324
28325fi
28326if test `eval echo '${'$as_ac_Header'}'` = yes; then
28327  cat >>confdefs.h <<_ACEOF
28328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28329_ACEOF
28330
28331fi
28332
28333done
28334
28335
28336  if test x"$ac_cv_header_ldap_h" != x"yes"; then
28337	if test x"$with_ldap_support" = x"yes"; then
28338	 { { echo "$as_me:$LINENO: error: ldap.h is needed for LDAP support" >&5
28339echo "$as_me: error: ldap.h is needed for LDAP support" >&2;}
28340   { (exit 1); exit 1; }; }
28341	else
28342	 { echo "$as_me:$LINENO: WARNING: ldap.h is needed for LDAP support" >&5
28343echo "$as_me: WARNING: ldap.h is needed for LDAP support" >&2;}
28344	fi
28345
28346	with_ldap_support=no
28347  fi
28348fi
28349
28350if test x"$with_ldap_support" != x"no"; then
28351  ac_save_LIBS=$LIBS
28352
28353  ##################################################################
28354  # we might need the lber lib on some systems. To avoid link errors
28355  # this test must be before the libldap test
28356
28357
28358
28359ac_check_lib_ext_save_LIBS=$LIBS
28360LIBS="-llber $LDAP_LIBS  $LIBS"
28361
28362
28363
28364
28365        echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
28366echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
28367if test "${ac_cv_lib_ext_lber_ber_scanf+set}" = set; then
28368  echo $ECHO_N "(cached) $ECHO_C" >&6
28369else
28370  cat >conftest.$ac_ext <<_ACEOF
28371/* confdefs.h.  */
28372_ACEOF
28373cat confdefs.h >>conftest.$ac_ext
28374cat >>conftest.$ac_ext <<_ACEOF
28375/* end confdefs.h.  */
28376
28377/* Override any gcc2 internal prototype to avoid an error.  */
28378#ifdef __cplusplus
28379extern "C"
28380#endif
28381/* We use char because int might match the return type of a gcc2
28382   builtin and then its argument prototype would still apply.  */
28383char ber_scanf ();
28384int
28385main ()
28386{
28387ber_scanf ();
28388  ;
28389  return 0;
28390}
28391_ACEOF
28392rm -f conftest.$ac_objext conftest$ac_exeext
28393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28394  (eval $ac_link) 2>conftest.er1
28395  ac_status=$?
28396  grep -v '^ *+' conftest.er1 >conftest.err
28397  rm -f conftest.er1
28398  cat conftest.err >&5
28399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400  (exit $ac_status); } &&
28401	 { ac_try='test -z "$ac_c_werror_flag"
28402			 || test ! -s conftest.err'
28403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404  (eval $ac_try) 2>&5
28405  ac_status=$?
28406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407  (exit $ac_status); }; } &&
28408	 { ac_try='test -s conftest$ac_exeext'
28409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28410  (eval $ac_try) 2>&5
28411  ac_status=$?
28412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413  (exit $ac_status); }; }; then
28414  ac_cv_lib_ext_lber_ber_scanf=yes;
28415		  ac_cv_lib_ext_lber=yes
28416else
28417  echo "$as_me: failed program was:" >&5
28418sed 's/^/| /' conftest.$ac_ext >&5
28419
28420ac_cv_lib_ext_lber_ber_scanf=no;
28421		  ac_cv_lib_ext_lber=no
28422fi
28423rm -f conftest.err conftest.$ac_objext \
28424      conftest$ac_exeext conftest.$ac_ext
28425
28426fi
28427echo "$as_me:$LINENO: result: $ac_cv_lib_ext_lber_ber_scanf" >&5
28428echo "${ECHO_T}$ac_cv_lib_ext_lber_ber_scanf" >&6
28429    if test $ac_cv_lib_ext_lber_ber_scanf = yes; then
28430  cat >>confdefs.h <<_ACEOF
28431#define HAVE_BER_SCANF 1
28432_ACEOF
28433
28434fi
28435
28436LIBS=$ac_check_lib_ext_save_LIBS
28437
28438if test $ac_cv_lib_ext_lber = yes; then
28439  cat >>confdefs.h <<_ACEOF
28440#define HAVE_LIBLBER 1
28441_ACEOF
28442
28443		case "$LDAP_LIBS" in
28444		    *-llber*)
28445			;;
28446		    *)
28447			LDAP_LIBS="-llber $LDAP_LIBS"
28448			;;
28449		esac
28450
28451
28452fi
28453
28454
28455  ########################################################
28456  # now see if we can find the ldap libs in standard paths
28457
28458
28459
28460ac_check_lib_ext_save_LIBS=$LIBS
28461LIBS="-lldap $LDAP_LIBS  $LIBS"
28462
28463
28464
28465
28466        echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
28467echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6
28468if test "${ac_cv_lib_ext_ldap_ldap_init+set}" = set; then
28469  echo $ECHO_N "(cached) $ECHO_C" >&6
28470else
28471  cat >conftest.$ac_ext <<_ACEOF
28472/* confdefs.h.  */
28473_ACEOF
28474cat confdefs.h >>conftest.$ac_ext
28475cat >>conftest.$ac_ext <<_ACEOF
28476/* end confdefs.h.  */
28477
28478/* Override any gcc2 internal prototype to avoid an error.  */
28479#ifdef __cplusplus
28480extern "C"
28481#endif
28482/* We use char because int might match the return type of a gcc2
28483   builtin and then its argument prototype would still apply.  */
28484char ldap_init ();
28485int
28486main ()
28487{
28488ldap_init ();
28489  ;
28490  return 0;
28491}
28492_ACEOF
28493rm -f conftest.$ac_objext conftest$ac_exeext
28494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28495  (eval $ac_link) 2>conftest.er1
28496  ac_status=$?
28497  grep -v '^ *+' conftest.er1 >conftest.err
28498  rm -f conftest.er1
28499  cat conftest.err >&5
28500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501  (exit $ac_status); } &&
28502	 { ac_try='test -z "$ac_c_werror_flag"
28503			 || test ! -s conftest.err'
28504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505  (eval $ac_try) 2>&5
28506  ac_status=$?
28507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508  (exit $ac_status); }; } &&
28509	 { ac_try='test -s conftest$ac_exeext'
28510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511  (eval $ac_try) 2>&5
28512  ac_status=$?
28513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514  (exit $ac_status); }; }; then
28515  ac_cv_lib_ext_ldap_ldap_init=yes;
28516		  ac_cv_lib_ext_ldap=yes
28517else
28518  echo "$as_me: failed program was:" >&5
28519sed 's/^/| /' conftest.$ac_ext >&5
28520
28521ac_cv_lib_ext_ldap_ldap_init=no;
28522		  ac_cv_lib_ext_ldap=no
28523fi
28524rm -f conftest.err conftest.$ac_objext \
28525      conftest$ac_exeext conftest.$ac_ext
28526
28527fi
28528echo "$as_me:$LINENO: result: $ac_cv_lib_ext_ldap_ldap_init" >&5
28529echo "${ECHO_T}$ac_cv_lib_ext_ldap_ldap_init" >&6
28530    if test $ac_cv_lib_ext_ldap_ldap_init = yes; then
28531  cat >>confdefs.h <<_ACEOF
28532#define HAVE_LDAP_INIT 1
28533_ACEOF
28534
28535fi
28536
28537LIBS=$ac_check_lib_ext_save_LIBS
28538
28539if test $ac_cv_lib_ext_ldap = yes; then
28540  cat >>confdefs.h <<_ACEOF
28541#define HAVE_LIBLDAP 1
28542_ACEOF
28543
28544		case "$LDAP_LIBS" in
28545		    *-lldap*)
28546			;;
28547		    *)
28548			LDAP_LIBS="-lldap $LDAP_LIBS"
28549			;;
28550		esac
28551
28552
28553fi
28554
28555
28556
28557
28558
28559    ac_check_func_ext_save_LIBS=$LIBS
28560    LIBS="$LDAP_LIBS $LIBS"
28561        echo "$as_me:$LINENO: checking for ldap_domain2hostlist" >&5
28562echo $ECHO_N "checking for ldap_domain2hostlist... $ECHO_C" >&6
28563if test "${ac_cv_func_ext_ldap_domain2hostlist+set}" = set; then
28564  echo $ECHO_N "(cached) $ECHO_C" >&6
28565else
28566  cat >conftest.$ac_ext <<_ACEOF
28567/* confdefs.h.  */
28568_ACEOF
28569cat confdefs.h >>conftest.$ac_ext
28570cat >>conftest.$ac_ext <<_ACEOF
28571/* end confdefs.h.  */
28572/* Define ldap_domain2hostlist to an innocuous variant, in case <limits.h> declares ldap_domain2hostlist.
28573   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28574#define ldap_domain2hostlist innocuous_ldap_domain2hostlist
28575
28576/* System header to define __stub macros and hopefully few prototypes,
28577    which can conflict with char ldap_domain2hostlist (); below.
28578    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28579    <limits.h> exists even on freestanding compilers.  */
28580
28581#ifdef __STDC__
28582# include <limits.h>
28583#else
28584# include <assert.h>
28585#endif
28586
28587#undef ldap_domain2hostlist
28588
28589/* Override any gcc2 internal prototype to avoid an error.  */
28590#ifdef __cplusplus
28591extern "C"
28592{
28593#endif
28594/* We use char because int might match the return type of a gcc2
28595   builtin and then its argument prototype would still apply.  */
28596char ldap_domain2hostlist ();
28597/* The GNU C library defines this for functions which it implements
28598    to always fail with ENOSYS.  Some functions are actually named
28599    something starting with __ and the normal name is an alias.  */
28600#if defined (__stub_ldap_domain2hostlist) || defined (__stub___ldap_domain2hostlist)
28601choke me
28602#else
28603char (*f) () = ldap_domain2hostlist;
28604#endif
28605#ifdef __cplusplus
28606}
28607#endif
28608
28609int
28610main ()
28611{
28612return f != ldap_domain2hostlist;
28613  ;
28614  return 0;
28615}
28616_ACEOF
28617rm -f conftest.$ac_objext conftest$ac_exeext
28618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28619  (eval $ac_link) 2>conftest.er1
28620  ac_status=$?
28621  grep -v '^ *+' conftest.er1 >conftest.err
28622  rm -f conftest.er1
28623  cat conftest.err >&5
28624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625  (exit $ac_status); } &&
28626	 { ac_try='test -z "$ac_c_werror_flag"
28627			 || test ! -s conftest.err'
28628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629  (eval $ac_try) 2>&5
28630  ac_status=$?
28631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632  (exit $ac_status); }; } &&
28633	 { ac_try='test -s conftest$ac_exeext'
28634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635  (eval $ac_try) 2>&5
28636  ac_status=$?
28637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638  (exit $ac_status); }; }; then
28639  ac_cv_func_ext_ldap_domain2hostlist=yes
28640else
28641  echo "$as_me: failed program was:" >&5
28642sed 's/^/| /' conftest.$ac_ext >&5
28643
28644ac_cv_func_ext_ldap_domain2hostlist=no
28645fi
28646rm -f conftest.err conftest.$ac_objext \
28647      conftest$ac_exeext conftest.$ac_ext
28648fi
28649echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_domain2hostlist" >&5
28650echo "${ECHO_T}$ac_cv_func_ext_ldap_domain2hostlist" >&6
28651    LIBS=$ac_check_func_ext_save_LIBS
28652    if test $ac_cv_func_ext_ldap_domain2hostlist = yes; then
28653  cat >>confdefs.h <<_ACEOF
28654#define HAVE_LDAP_DOMAIN2HOSTLIST 1
28655_ACEOF
28656
28657fi
28658
28659
28660  ########################################################
28661  # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
28662  # Check found in pam_ldap 145.
28663
28664
28665
28666    ac_check_func_ext_save_LIBS=$LIBS
28667    LIBS="$LDAP_LIBS $LIBS"
28668        echo "$as_me:$LINENO: checking for ldap_set_rebind_proc" >&5
28669echo $ECHO_N "checking for ldap_set_rebind_proc... $ECHO_C" >&6
28670if test "${ac_cv_func_ext_ldap_set_rebind_proc+set}" = set; then
28671  echo $ECHO_N "(cached) $ECHO_C" >&6
28672else
28673  cat >conftest.$ac_ext <<_ACEOF
28674/* confdefs.h.  */
28675_ACEOF
28676cat confdefs.h >>conftest.$ac_ext
28677cat >>conftest.$ac_ext <<_ACEOF
28678/* end confdefs.h.  */
28679/* Define ldap_set_rebind_proc to an innocuous variant, in case <limits.h> declares ldap_set_rebind_proc.
28680   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28681#define ldap_set_rebind_proc innocuous_ldap_set_rebind_proc
28682
28683/* System header to define __stub macros and hopefully few prototypes,
28684    which can conflict with char ldap_set_rebind_proc (); below.
28685    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28686    <limits.h> exists even on freestanding compilers.  */
28687
28688#ifdef __STDC__
28689# include <limits.h>
28690#else
28691# include <assert.h>
28692#endif
28693
28694#undef ldap_set_rebind_proc
28695
28696/* Override any gcc2 internal prototype to avoid an error.  */
28697#ifdef __cplusplus
28698extern "C"
28699{
28700#endif
28701/* We use char because int might match the return type of a gcc2
28702   builtin and then its argument prototype would still apply.  */
28703char ldap_set_rebind_proc ();
28704/* The GNU C library defines this for functions which it implements
28705    to always fail with ENOSYS.  Some functions are actually named
28706    something starting with __ and the normal name is an alias.  */
28707#if defined (__stub_ldap_set_rebind_proc) || defined (__stub___ldap_set_rebind_proc)
28708choke me
28709#else
28710char (*f) () = ldap_set_rebind_proc;
28711#endif
28712#ifdef __cplusplus
28713}
28714#endif
28715
28716int
28717main ()
28718{
28719return f != ldap_set_rebind_proc;
28720  ;
28721  return 0;
28722}
28723_ACEOF
28724rm -f conftest.$ac_objext conftest$ac_exeext
28725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28726  (eval $ac_link) 2>conftest.er1
28727  ac_status=$?
28728  grep -v '^ *+' conftest.er1 >conftest.err
28729  rm -f conftest.er1
28730  cat conftest.err >&5
28731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732  (exit $ac_status); } &&
28733	 { ac_try='test -z "$ac_c_werror_flag"
28734			 || test ! -s conftest.err'
28735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736  (eval $ac_try) 2>&5
28737  ac_status=$?
28738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739  (exit $ac_status); }; } &&
28740	 { ac_try='test -s conftest$ac_exeext'
28741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742  (eval $ac_try) 2>&5
28743  ac_status=$?
28744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745  (exit $ac_status); }; }; then
28746  ac_cv_func_ext_ldap_set_rebind_proc=yes
28747else
28748  echo "$as_me: failed program was:" >&5
28749sed 's/^/| /' conftest.$ac_ext >&5
28750
28751ac_cv_func_ext_ldap_set_rebind_proc=no
28752fi
28753rm -f conftest.err conftest.$ac_objext \
28754      conftest$ac_exeext conftest.$ac_ext
28755fi
28756echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_set_rebind_proc" >&5
28757echo "${ECHO_T}$ac_cv_func_ext_ldap_set_rebind_proc" >&6
28758    LIBS=$ac_check_func_ext_save_LIBS
28759    if test $ac_cv_func_ext_ldap_set_rebind_proc = yes; then
28760  cat >>confdefs.h <<_ACEOF
28761#define HAVE_LDAP_SET_REBIND_PROC 1
28762_ACEOF
28763
28764fi
28765
28766
28767  LIBS="$LIBS $LDAP_LIBS"
28768  echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
28769echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
28770if test "${smb_ldap_cv_ldap_set_rebind_proc+set}" = set; then
28771  echo $ECHO_N "(cached) $ECHO_C" >&6
28772else
28773
28774    cat >conftest.$ac_ext <<_ACEOF
28775/* confdefs.h.  */
28776_ACEOF
28777cat confdefs.h >>conftest.$ac_ext
28778cat >>conftest.$ac_ext <<_ACEOF
28779/* end confdefs.h.  */
28780
28781	#include <lber.h>
28782	#include <ldap.h>
28783int
28784main ()
28785{
28786ldap_set_rebind_proc(0, 0, 0);
28787  ;
28788  return 0;
28789}
28790_ACEOF
28791rm -f conftest.$ac_objext
28792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28793  (eval $ac_compile) 2>conftest.er1
28794  ac_status=$?
28795  grep -v '^ *+' conftest.er1 >conftest.err
28796  rm -f conftest.er1
28797  cat conftest.err >&5
28798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799  (exit $ac_status); } &&
28800	 { ac_try='test -z "$ac_c_werror_flag"
28801			 || test ! -s conftest.err'
28802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803  (eval $ac_try) 2>&5
28804  ac_status=$?
28805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806  (exit $ac_status); }; } &&
28807	 { ac_try='test -s conftest.$ac_objext'
28808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809  (eval $ac_try) 2>&5
28810  ac_status=$?
28811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812  (exit $ac_status); }; }; then
28813  smb_ldap_cv_ldap_set_rebind_proc=3
28814else
28815  echo "$as_me: failed program was:" >&5
28816sed 's/^/| /' conftest.$ac_ext >&5
28817
28818smb_ldap_cv_ldap_set_rebind_proc=2
28819
28820fi
28821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28822
28823fi
28824echo "$as_me:$LINENO: result: $smb_ldap_cv_ldap_set_rebind_proc" >&5
28825echo "${ECHO_T}$smb_ldap_cv_ldap_set_rebind_proc" >&6
28826
28827
28828cat >>confdefs.h <<_ACEOF
28829#define LDAP_SET_REBIND_PROC_ARGS $smb_ldap_cv_ldap_set_rebind_proc
28830_ACEOF
28831
28832
28833
28834
28835
28836    ac_check_func_ext_save_LIBS=$LIBS
28837    LIBS="$LDAP_LIBS $LIBS"
28838        echo "$as_me:$LINENO: checking for ldap_initialize" >&5
28839echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6
28840if test "${ac_cv_func_ext_ldap_initialize+set}" = set; then
28841  echo $ECHO_N "(cached) $ECHO_C" >&6
28842else
28843  cat >conftest.$ac_ext <<_ACEOF
28844/* confdefs.h.  */
28845_ACEOF
28846cat confdefs.h >>conftest.$ac_ext
28847cat >>conftest.$ac_ext <<_ACEOF
28848/* end confdefs.h.  */
28849/* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize.
28850   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28851#define ldap_initialize innocuous_ldap_initialize
28852
28853/* System header to define __stub macros and hopefully few prototypes,
28854    which can conflict with char ldap_initialize (); below.
28855    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28856    <limits.h> exists even on freestanding compilers.  */
28857
28858#ifdef __STDC__
28859# include <limits.h>
28860#else
28861# include <assert.h>
28862#endif
28863
28864#undef ldap_initialize
28865
28866/* Override any gcc2 internal prototype to avoid an error.  */
28867#ifdef __cplusplus
28868extern "C"
28869{
28870#endif
28871/* We use char because int might match the return type of a gcc2
28872   builtin and then its argument prototype would still apply.  */
28873char ldap_initialize ();
28874/* The GNU C library defines this for functions which it implements
28875    to always fail with ENOSYS.  Some functions are actually named
28876    something starting with __ and the normal name is an alias.  */
28877#if defined (__stub_ldap_initialize) || defined (__stub___ldap_initialize)
28878choke me
28879#else
28880char (*f) () = ldap_initialize;
28881#endif
28882#ifdef __cplusplus
28883}
28884#endif
28885
28886int
28887main ()
28888{
28889return f != ldap_initialize;
28890  ;
28891  return 0;
28892}
28893_ACEOF
28894rm -f conftest.$ac_objext conftest$ac_exeext
28895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28896  (eval $ac_link) 2>conftest.er1
28897  ac_status=$?
28898  grep -v '^ *+' conftest.er1 >conftest.err
28899  rm -f conftest.er1
28900  cat conftest.err >&5
28901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902  (exit $ac_status); } &&
28903	 { ac_try='test -z "$ac_c_werror_flag"
28904			 || test ! -s conftest.err'
28905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906  (eval $ac_try) 2>&5
28907  ac_status=$?
28908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909  (exit $ac_status); }; } &&
28910	 { ac_try='test -s conftest$ac_exeext'
28911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912  (eval $ac_try) 2>&5
28913  ac_status=$?
28914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915  (exit $ac_status); }; }; then
28916  ac_cv_func_ext_ldap_initialize=yes
28917else
28918  echo "$as_me: failed program was:" >&5
28919sed 's/^/| /' conftest.$ac_ext >&5
28920
28921ac_cv_func_ext_ldap_initialize=no
28922fi
28923rm -f conftest.err conftest.$ac_objext \
28924      conftest$ac_exeext conftest.$ac_ext
28925fi
28926echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_initialize" >&5
28927echo "${ECHO_T}$ac_cv_func_ext_ldap_initialize" >&6
28928    LIBS=$ac_check_func_ext_save_LIBS
28929    if test $ac_cv_func_ext_ldap_initialize = yes; then
28930  cat >>confdefs.h <<_ACEOF
28931#define HAVE_LDAP_INITIALIZE 1
28932_ACEOF
28933
28934fi
28935
28936
28937  if test x"$ac_cv_lib_ext_ldap_ldap_init" = x"yes" -a x"$ac_cv_func_ext_ldap_domain2hostlist" = x"yes"; then
28938
28939cat >>confdefs.h <<\_ACEOF
28940#define HAVE_LDAP 1
28941_ACEOF
28942
28943    default_static_modules="$default_static_modules pdb_ldap idmap_ldap";
28944    SMBLDAP="lib/smbldap.o"
28945    with_ldap_support=yes
28946    echo "$as_me:$LINENO: checking whether LDAP support is used" >&5
28947echo $ECHO_N "checking whether LDAP support is used... $ECHO_C" >&6
28948    echo "$as_me:$LINENO: result: yes" >&5
28949echo "${ECHO_T}yes" >&6
28950  else
28951    if test x"$with_ldap_support" = x"yes"; then
28952	{ { echo "$as_me:$LINENO: error: libldap is needed for LDAP support" >&5
28953echo "$as_me: error: libldap is needed for LDAP support" >&2;}
28954   { (exit 1); exit 1; }; }
28955    else
28956	{ echo "$as_me:$LINENO: WARNING: libldap is needed for LDAP support" >&5
28957echo "$as_me: WARNING: libldap is needed for LDAP support" >&2;}
28958    fi
28959
28960    LDAP_LIBS=""
28961    with_ldap_support=no
28962  fi
28963  LIBS=$ac_save_LIBS
28964fi
28965
28966
28967#################################################
28968# active directory support
28969
28970with_ads_support=auto
28971echo "$as_me:$LINENO: checking for Active Directory and krb5 support" >&5
28972echo $ECHO_N "checking for Active Directory and krb5 support... $ECHO_C" >&6
28973
28974
28975# Check whether --with-ads or --without-ads was given.
28976if test "${with_ads+set}" = set; then
28977  withval="$with_ads"
28978   case "$withval" in
28979    yes|no)
28980	with_ads_support="$withval"
28981	;;
28982  esac
28983fi;
28984
28985echo "$as_me:$LINENO: result: $with_ads_support" >&5
28986echo "${ECHO_T}$with_ads_support" >&6
28987
28988FOUND_KRB5=no
28989KRB5_LIBS=""
28990
28991if test x"$with_ldap_support" != x"yes"; then
28992    if test x"$with_ads_support" = x"yes"; then
28993	{ { echo "$as_me:$LINENO: error: Active Directory Support requires LDAP support" >&5
28994echo "$as_me: error: Active Directory Support requires LDAP support" >&2;}
28995   { (exit 1); exit 1; }; }
28996    elif test x"$with_ads_support" != x"no"; then
28997	{ echo "$as_me:$LINENO: WARNING: Active Directory Support requires LDAP support" >&5
28998echo "$as_me: WARNING: Active Directory Support requires LDAP support" >&2;}
28999    fi
29000    with_ads_support=no
29001fi
29002
29003if test x"$with_ads_support" != x"no"; then
29004
29005  # Do no harm to the values of CFLAGS and LIBS while testing for
29006  # Kerberos support.
29007
29008  if test x$FOUND_KRB5 = x"no"; then
29009    #################################################
29010    # check for location of Kerberos 5 install
29011    echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
29012echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
29013
29014# Check whether --with-krb5 or --without-krb5 was given.
29015if test "${with_krb5+set}" = set; then
29016  withval="$with_krb5"
29017   case "$withval" in
29018      no)
29019        echo "$as_me:$LINENO: result: no krb5-path given" >&5
29020echo "${ECHO_T}no krb5-path given" >&6
29021        ;;
29022      yes)
29023        echo "$as_me:$LINENO: result: /usr" >&5
29024echo "${ECHO_T}/usr" >&6
29025        FOUND_KRB5=yes
29026        ;;
29027      *)
29028        echo "$as_me:$LINENO: result: $withval" >&5
29029echo "${ECHO_T}$withval" >&6
29030        KRB5_CFLAGS="-I$withval/include"
29031        KRB5_CPPFLAGS="-I$withval/include"
29032        KRB5_LDFLAGS="-L$withval/lib"
29033        FOUND_KRB5=yes
29034	if test -x "$withval/bin/krb5-config"; then
29035		KRB5CONFIG=$withval/bin/krb5-config
29036	fi
29037        ;;
29038      esac
29039else
29040  echo "$as_me:$LINENO: result: no krb5-path given" >&5
29041echo "${ECHO_T}no krb5-path given" >&6
29042
29043fi;
29044  fi
29045
29046  #################################################
29047  # check for krb5-config from recent MIT and Heimdal kerberos 5
29048  # Extract the first word of "krb5-config", so it can be a program name with args.
29049set dummy krb5-config; ac_word=$2
29050echo "$as_me:$LINENO: checking for $ac_word" >&5
29051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29052if test "${ac_cv_path_KRB5CONFIG+set}" = set; then
29053  echo $ECHO_N "(cached) $ECHO_C" >&6
29054else
29055  case $KRB5CONFIG in
29056  [\\/]* | ?:[\\/]*)
29057  ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
29058  ;;
29059  *)
29060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29061for as_dir in $PATH
29062do
29063  IFS=$as_save_IFS
29064  test -z "$as_dir" && as_dir=.
29065  for ac_exec_ext in '' $ac_executable_extensions; do
29066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29067    ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
29068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29069    break 2
29070  fi
29071done
29072done
29073
29074  ;;
29075esac
29076fi
29077KRB5CONFIG=$ac_cv_path_KRB5CONFIG
29078
29079if test -n "$KRB5CONFIG"; then
29080  echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
29081echo "${ECHO_T}$KRB5CONFIG" >&6
29082else
29083  echo "$as_me:$LINENO: result: no" >&5
29084echo "${ECHO_T}no" >&6
29085fi
29086
29087  echo "$as_me:$LINENO: checking for working krb5-config" >&5
29088echo $ECHO_N "checking for working krb5-config... $ECHO_C" >&6
29089  if test -x "$KRB5CONFIG"; then
29090    ac_save_CFLAGS=$CFLAGS
29091    CFLAGS="";export CFLAGS
29092    ac_save_LDFLAGS=$LDFLAGS
29093    LDFLAGS="";export LDFLAGS
29094    KRB5_LIBS="`$KRB5CONFIG --libs gssapi`"
29095    KRB5_LDFLAGS="`$KRB5CONFIG --libs gssapi | sed s/-lgss.*//`"
29096    KRB5_CFLAGS="`$KRB5CONFIG --cflags | sed s/@INCLUDE_des@//`"
29097    KRB5_CPPFLAGS="`$KRB5CONFIG --cflags | sed s/@INCLUDE_des@//`"
29098    CFLAGS=$ac_save_CFLAGS;export CFLAGS
29099    LDFLAGS=$ac_save_LDFLAGS;export LDFLAGS
29100    FOUND_KRB5=yes
29101    echo "$as_me:$LINENO: result: yes" >&5
29102echo "${ECHO_T}yes" >&6
29103  else
29104    echo "$as_me:$LINENO: result: no. Fallback to previous krb5 detection strategy" >&5
29105echo "${ECHO_T}no. Fallback to previous krb5 detection strategy" >&6
29106  fi
29107
29108  if test x$FOUND_KRB5 = x"no"; then
29109    #################################################
29110    # see if this box has the SuSE location for the heimdal krb implementation
29111    echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
29112echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
29113    if test -d /usr/include/heimdal; then
29114      if test -f /usr/lib/heimdal/lib/libkrb5.a; then
29115          KRB5_CFLAGS="-I/usr/include/heimdal"
29116          KRB5_CPPFLAGS="-I/usr/include/heimdal"
29117          KRB5_LDFLAGS="-L/usr/lib/heimdal/lib"
29118          echo "$as_me:$LINENO: result: yes" >&5
29119echo "${ECHO_T}yes" >&6
29120      else
29121          KRB5_CFLAGS="-I/usr/include/heimdal"
29122          KRB5_CPPFLAGS="-I/usr/include/heimdal"
29123          echo "$as_me:$LINENO: result: yes" >&5
29124echo "${ECHO_T}yes" >&6
29125      fi
29126    else
29127      echo "$as_me:$LINENO: result: no" >&5
29128echo "${ECHO_T}no" >&6
29129    fi
29130  fi
29131
29132  if test x$FOUND_KRB5 = x"no"; then
29133    #################################################
29134    # see if this box has the RedHat location for kerberos
29135    echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
29136echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
29137    if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a; then
29138      KRB5_LDFLAGS="-L/usr/kerberos/lib"
29139      KRB5_CFLAGS="-I/usr/kerberos/include"
29140      KRB5_CPPFLAGS="-I/usr/kerberos/include"
29141      echo "$as_me:$LINENO: result: yes" >&5
29142echo "${ECHO_T}yes" >&6
29143    else
29144      echo "$as_me:$LINENO: result: no" >&5
29145echo "${ECHO_T}no" >&6
29146    fi
29147  fi
29148
29149  ac_save_CFLAGS=$CFLAGS
29150  ac_save_CPPFLAGS=$CPPFLAGS
29151  ac_save_LDFLAGS=$LDFLAGS
29152
29153  CFLAGS="$KRB5_CFLAGS $CFLAGS"
29154  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
29155  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
29156
29157  KRB5_LIBS="$KRB5_LDFLAGS $KRB5_LIBS"
29158
29159  # now check for krb5.h. Some systems have the libraries without the headers!
29160  # note that this check is done here to allow for different kerberos
29161  # include paths
29162
29163for ac_header in krb5.h
29164do
29165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29166if eval "test \"\${$as_ac_Header+set}\" = set"; then
29167  echo "$as_me:$LINENO: checking for $ac_header" >&5
29168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29169if eval "test \"\${$as_ac_Header+set}\" = set"; then
29170  echo $ECHO_N "(cached) $ECHO_C" >&6
29171fi
29172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29174else
29175  # Is the header compilable?
29176echo "$as_me:$LINENO: checking $ac_header usability" >&5
29177echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29178cat >conftest.$ac_ext <<_ACEOF
29179/* confdefs.h.  */
29180_ACEOF
29181cat confdefs.h >>conftest.$ac_ext
29182cat >>conftest.$ac_ext <<_ACEOF
29183/* end confdefs.h.  */
29184$ac_includes_default
29185#include <$ac_header>
29186_ACEOF
29187rm -f conftest.$ac_objext
29188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29189  (eval $ac_compile) 2>conftest.er1
29190  ac_status=$?
29191  grep -v '^ *+' conftest.er1 >conftest.err
29192  rm -f conftest.er1
29193  cat conftest.err >&5
29194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195  (exit $ac_status); } &&
29196	 { ac_try='test -z "$ac_c_werror_flag"
29197			 || test ! -s conftest.err'
29198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199  (eval $ac_try) 2>&5
29200  ac_status=$?
29201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202  (exit $ac_status); }; } &&
29203	 { ac_try='test -s conftest.$ac_objext'
29204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205  (eval $ac_try) 2>&5
29206  ac_status=$?
29207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208  (exit $ac_status); }; }; then
29209  ac_header_compiler=yes
29210else
29211  echo "$as_me: failed program was:" >&5
29212sed 's/^/| /' conftest.$ac_ext >&5
29213
29214ac_header_compiler=no
29215fi
29216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29218echo "${ECHO_T}$ac_header_compiler" >&6
29219
29220# Is the header present?
29221echo "$as_me:$LINENO: checking $ac_header presence" >&5
29222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29223cat >conftest.$ac_ext <<_ACEOF
29224/* confdefs.h.  */
29225_ACEOF
29226cat confdefs.h >>conftest.$ac_ext
29227cat >>conftest.$ac_ext <<_ACEOF
29228/* end confdefs.h.  */
29229#include <$ac_header>
29230_ACEOF
29231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29232  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29233  ac_status=$?
29234  grep -v '^ *+' conftest.er1 >conftest.err
29235  rm -f conftest.er1
29236  cat conftest.err >&5
29237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238  (exit $ac_status); } >/dev/null; then
29239  if test -s conftest.err; then
29240    ac_cpp_err=$ac_c_preproc_warn_flag
29241    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29242  else
29243    ac_cpp_err=
29244  fi
29245else
29246  ac_cpp_err=yes
29247fi
29248if test -z "$ac_cpp_err"; then
29249  ac_header_preproc=yes
29250else
29251  echo "$as_me: failed program was:" >&5
29252sed 's/^/| /' conftest.$ac_ext >&5
29253
29254  ac_header_preproc=no
29255fi
29256rm -f conftest.err conftest.$ac_ext
29257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29258echo "${ECHO_T}$ac_header_preproc" >&6
29259
29260# So?  What about this header?
29261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29262  yes:no: )
29263    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29265    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29267    ac_header_preproc=yes
29268    ;;
29269  no:yes:* )
29270    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29272    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29273echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29274    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29276    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29277echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29278    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29280    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29282    (
29283      cat <<\_ASBOX
29284## ------------------------------------------ ##
29285## Report this to the AC_PACKAGE_NAME lists.  ##
29286## ------------------------------------------ ##
29287_ASBOX
29288    ) |
29289      sed "s/^/$as_me: WARNING:     /" >&2
29290    ;;
29291esac
29292echo "$as_me:$LINENO: checking for $ac_header" >&5
29293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29294if eval "test \"\${$as_ac_Header+set}\" = set"; then
29295  echo $ECHO_N "(cached) $ECHO_C" >&6
29296else
29297  eval "$as_ac_Header=\$ac_header_preproc"
29298fi
29299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29301
29302fi
29303if test `eval echo '${'$as_ac_Header'}'` = yes; then
29304  cat >>confdefs.h <<_ACEOF
29305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29306_ACEOF
29307
29308fi
29309
29310done
29311
29312
29313  if test x"$ac_cv_header_krb5_h" = x"no"; then
29314
29315    # Give a warning if AD support was not explicitly requested,
29316    # i.e with_ads_support = auto, otherwise die with an error.
29317
29318    if test x"$with_ads_support" = x"yes"; then
29319      { { echo "$as_me:$LINENO: error: Active Directory cannot be supported without krb5.h" >&5
29320echo "$as_me: error: Active Directory cannot be supported without krb5.h" >&2;}
29321   { (exit 1); exit 1; }; }
29322    else
29323      { echo "$as_me:$LINENO: WARNING: Active Directory cannot be supported without krb5.h" >&5
29324echo "$as_me: WARNING: Active Directory cannot be supported without krb5.h" >&2;}
29325    fi
29326
29327    # Turn off AD support and restore CFLAGS and LIBS variables
29328
29329    with_ads_support="no"
29330
29331    CFLAGS=$ac_save_CFLAGS
29332    CPPFLAGS=$ac_save_CPPFLAGS
29333    LDFLAGS=$ac_save_LDFLAGS
29334  fi
29335fi
29336
29337# Now we have determined whether we really want ADS support
29338
29339if test x"$with_ads_support" != x"no"; then
29340  ac_save_LIBS=$LIBS
29341
29342  # now check for gssapi headers.  This is also done here to allow for
29343  # different kerberos include paths
29344
29345
29346
29347
29348for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h
29349do
29350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29351if eval "test \"\${$as_ac_Header+set}\" = set"; then
29352  echo "$as_me:$LINENO: checking for $ac_header" >&5
29353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29354if eval "test \"\${$as_ac_Header+set}\" = set"; then
29355  echo $ECHO_N "(cached) $ECHO_C" >&6
29356fi
29357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29359else
29360  # Is the header compilable?
29361echo "$as_me:$LINENO: checking $ac_header usability" >&5
29362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29363cat >conftest.$ac_ext <<_ACEOF
29364/* confdefs.h.  */
29365_ACEOF
29366cat confdefs.h >>conftest.$ac_ext
29367cat >>conftest.$ac_ext <<_ACEOF
29368/* end confdefs.h.  */
29369$ac_includes_default
29370#include <$ac_header>
29371_ACEOF
29372rm -f conftest.$ac_objext
29373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29374  (eval $ac_compile) 2>conftest.er1
29375  ac_status=$?
29376  grep -v '^ *+' conftest.er1 >conftest.err
29377  rm -f conftest.er1
29378  cat conftest.err >&5
29379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380  (exit $ac_status); } &&
29381	 { ac_try='test -z "$ac_c_werror_flag"
29382			 || test ! -s conftest.err'
29383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29384  (eval $ac_try) 2>&5
29385  ac_status=$?
29386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387  (exit $ac_status); }; } &&
29388	 { ac_try='test -s conftest.$ac_objext'
29389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29390  (eval $ac_try) 2>&5
29391  ac_status=$?
29392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393  (exit $ac_status); }; }; then
29394  ac_header_compiler=yes
29395else
29396  echo "$as_me: failed program was:" >&5
29397sed 's/^/| /' conftest.$ac_ext >&5
29398
29399ac_header_compiler=no
29400fi
29401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29402echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29403echo "${ECHO_T}$ac_header_compiler" >&6
29404
29405# Is the header present?
29406echo "$as_me:$LINENO: checking $ac_header presence" >&5
29407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29408cat >conftest.$ac_ext <<_ACEOF
29409/* confdefs.h.  */
29410_ACEOF
29411cat confdefs.h >>conftest.$ac_ext
29412cat >>conftest.$ac_ext <<_ACEOF
29413/* end confdefs.h.  */
29414#include <$ac_header>
29415_ACEOF
29416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29417  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29418  ac_status=$?
29419  grep -v '^ *+' conftest.er1 >conftest.err
29420  rm -f conftest.er1
29421  cat conftest.err >&5
29422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423  (exit $ac_status); } >/dev/null; then
29424  if test -s conftest.err; then
29425    ac_cpp_err=$ac_c_preproc_warn_flag
29426    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29427  else
29428    ac_cpp_err=
29429  fi
29430else
29431  ac_cpp_err=yes
29432fi
29433if test -z "$ac_cpp_err"; then
29434  ac_header_preproc=yes
29435else
29436  echo "$as_me: failed program was:" >&5
29437sed 's/^/| /' conftest.$ac_ext >&5
29438
29439  ac_header_preproc=no
29440fi
29441rm -f conftest.err conftest.$ac_ext
29442echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29443echo "${ECHO_T}$ac_header_preproc" >&6
29444
29445# So?  What about this header?
29446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29447  yes:no: )
29448    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29450    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29452    ac_header_preproc=yes
29453    ;;
29454  no:yes:* )
29455    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29457    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29458echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29459    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29461    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29462echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29463    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29465    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29467    (
29468      cat <<\_ASBOX
29469## ------------------------------------------ ##
29470## Report this to the AC_PACKAGE_NAME lists.  ##
29471## ------------------------------------------ ##
29472_ASBOX
29473    ) |
29474      sed "s/^/$as_me: WARNING:     /" >&2
29475    ;;
29476esac
29477echo "$as_me:$LINENO: checking for $ac_header" >&5
29478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29479if eval "test \"\${$as_ac_Header+set}\" = set"; then
29480  echo $ECHO_N "(cached) $ECHO_C" >&6
29481else
29482  eval "$as_ac_Header=\$ac_header_preproc"
29483fi
29484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29486
29487fi
29488if test `eval echo '${'$as_ac_Header'}'` = yes; then
29489  cat >>confdefs.h <<_ACEOF
29490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29491_ACEOF
29492
29493fi
29494
29495done
29496
29497
29498  ##################################################################
29499  # we might need the k5crypto and com_err libraries on some systems
29500
29501
29502
29503ac_check_lib_ext_save_LIBS=$LIBS
29504LIBS="-lcom_err $KRB5_LIBS  $LIBS"
29505
29506
29507
29508
29509        echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
29510echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
29511if test "${ac_cv_lib_ext_com_err__et_list+set}" = set; then
29512  echo $ECHO_N "(cached) $ECHO_C" >&6
29513else
29514  cat >conftest.$ac_ext <<_ACEOF
29515/* confdefs.h.  */
29516_ACEOF
29517cat confdefs.h >>conftest.$ac_ext
29518cat >>conftest.$ac_ext <<_ACEOF
29519/* end confdefs.h.  */
29520
29521/* Override any gcc2 internal prototype to avoid an error.  */
29522#ifdef __cplusplus
29523extern "C"
29524#endif
29525/* We use char because int might match the return type of a gcc2
29526   builtin and then its argument prototype would still apply.  */
29527char _et_list ();
29528int
29529main ()
29530{
29531_et_list ();
29532  ;
29533  return 0;
29534}
29535_ACEOF
29536rm -f conftest.$ac_objext conftest$ac_exeext
29537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29538  (eval $ac_link) 2>conftest.er1
29539  ac_status=$?
29540  grep -v '^ *+' conftest.er1 >conftest.err
29541  rm -f conftest.er1
29542  cat conftest.err >&5
29543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544  (exit $ac_status); } &&
29545	 { ac_try='test -z "$ac_c_werror_flag"
29546			 || test ! -s conftest.err'
29547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548  (eval $ac_try) 2>&5
29549  ac_status=$?
29550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551  (exit $ac_status); }; } &&
29552	 { ac_try='test -s conftest$ac_exeext'
29553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554  (eval $ac_try) 2>&5
29555  ac_status=$?
29556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557  (exit $ac_status); }; }; then
29558  ac_cv_lib_ext_com_err__et_list=yes;
29559		  ac_cv_lib_ext_com_err=yes
29560else
29561  echo "$as_me: failed program was:" >&5
29562sed 's/^/| /' conftest.$ac_ext >&5
29563
29564ac_cv_lib_ext_com_err__et_list=no;
29565		  ac_cv_lib_ext_com_err=no
29566fi
29567rm -f conftest.err conftest.$ac_objext \
29568      conftest$ac_exeext conftest.$ac_ext
29569
29570fi
29571echo "$as_me:$LINENO: result: $ac_cv_lib_ext_com_err__et_list" >&5
29572echo "${ECHO_T}$ac_cv_lib_ext_com_err__et_list" >&6
29573    if test $ac_cv_lib_ext_com_err__et_list = yes; then
29574  cat >>confdefs.h <<_ACEOF
29575#define HAVE__ET_LIST 1
29576_ACEOF
29577
29578fi
29579
29580LIBS=$ac_check_lib_ext_save_LIBS
29581
29582if test $ac_cv_lib_ext_com_err = yes; then
29583  cat >>confdefs.h <<_ACEOF
29584#define HAVE_LIBCOM_ERR 1
29585_ACEOF
29586
29587		case "$KRB5_LIBS" in
29588		    *-lcom_err*)
29589			;;
29590		    *)
29591			KRB5_LIBS="-lcom_err $KRB5_LIBS"
29592			;;
29593		esac
29594
29595
29596fi
29597
29598
29599
29600
29601ac_check_lib_ext_save_LIBS=$LIBS
29602LIBS="-lk5crypto $KRB5_LIBS  $LIBS"
29603
29604
29605
29606
29607        echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
29608echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
29609if test "${ac_cv_lib_ext_k5crypto_krb5_encrypt_data+set}" = set; then
29610  echo $ECHO_N "(cached) $ECHO_C" >&6
29611else
29612  cat >conftest.$ac_ext <<_ACEOF
29613/* confdefs.h.  */
29614_ACEOF
29615cat confdefs.h >>conftest.$ac_ext
29616cat >>conftest.$ac_ext <<_ACEOF
29617/* end confdefs.h.  */
29618
29619/* Override any gcc2 internal prototype to avoid an error.  */
29620#ifdef __cplusplus
29621extern "C"
29622#endif
29623/* We use char because int might match the return type of a gcc2
29624   builtin and then its argument prototype would still apply.  */
29625char krb5_encrypt_data ();
29626int
29627main ()
29628{
29629krb5_encrypt_data ();
29630  ;
29631  return 0;
29632}
29633_ACEOF
29634rm -f conftest.$ac_objext conftest$ac_exeext
29635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29636  (eval $ac_link) 2>conftest.er1
29637  ac_status=$?
29638  grep -v '^ *+' conftest.er1 >conftest.err
29639  rm -f conftest.er1
29640  cat conftest.err >&5
29641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642  (exit $ac_status); } &&
29643	 { ac_try='test -z "$ac_c_werror_flag"
29644			 || test ! -s conftest.err'
29645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29646  (eval $ac_try) 2>&5
29647  ac_status=$?
29648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649  (exit $ac_status); }; } &&
29650	 { ac_try='test -s conftest$ac_exeext'
29651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29652  (eval $ac_try) 2>&5
29653  ac_status=$?
29654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655  (exit $ac_status); }; }; then
29656  ac_cv_lib_ext_k5crypto_krb5_encrypt_data=yes;
29657		  ac_cv_lib_ext_k5crypto=yes
29658else
29659  echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
29662ac_cv_lib_ext_k5crypto_krb5_encrypt_data=no;
29663		  ac_cv_lib_ext_k5crypto=no
29664fi
29665rm -f conftest.err conftest.$ac_objext \
29666      conftest$ac_exeext conftest.$ac_ext
29667
29668fi
29669echo "$as_me:$LINENO: result: $ac_cv_lib_ext_k5crypto_krb5_encrypt_data" >&5
29670echo "${ECHO_T}$ac_cv_lib_ext_k5crypto_krb5_encrypt_data" >&6
29671    if test $ac_cv_lib_ext_k5crypto_krb5_encrypt_data = yes; then
29672  cat >>confdefs.h <<_ACEOF
29673#define HAVE_KRB5_ENCRYPT_DATA 1
29674_ACEOF
29675
29676fi
29677
29678LIBS=$ac_check_lib_ext_save_LIBS
29679
29680if test $ac_cv_lib_ext_k5crypto = yes; then
29681  cat >>confdefs.h <<_ACEOF
29682#define HAVE_LIBK5CRYPTO 1
29683_ACEOF
29684
29685		case "$KRB5_LIBS" in
29686		    *-lk5crypto*)
29687			;;
29688		    *)
29689			KRB5_LIBS="-lk5crypto $KRB5_LIBS"
29690			;;
29691		esac
29692
29693
29694fi
29695
29696
29697  # Heimdal checks.
29698
29699
29700
29701ac_check_lib_ext_save_LIBS=$LIBS
29702LIBS="-lcrypto $KRB5_LIBS  $LIBS"
29703
29704
29705
29706
29707        echo "$as_me:$LINENO: checking for des_set_key in -lcrypto" >&5
29708echo $ECHO_N "checking for des_set_key in -lcrypto... $ECHO_C" >&6
29709if test "${ac_cv_lib_ext_crypto_des_set_key+set}" = set; then
29710  echo $ECHO_N "(cached) $ECHO_C" >&6
29711else
29712  cat >conftest.$ac_ext <<_ACEOF
29713/* confdefs.h.  */
29714_ACEOF
29715cat confdefs.h >>conftest.$ac_ext
29716cat >>conftest.$ac_ext <<_ACEOF
29717/* end confdefs.h.  */
29718
29719/* Override any gcc2 internal prototype to avoid an error.  */
29720#ifdef __cplusplus
29721extern "C"
29722#endif
29723/* We use char because int might match the return type of a gcc2
29724   builtin and then its argument prototype would still apply.  */
29725char des_set_key ();
29726int
29727main ()
29728{
29729des_set_key ();
29730  ;
29731  return 0;
29732}
29733_ACEOF
29734rm -f conftest.$ac_objext conftest$ac_exeext
29735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29736  (eval $ac_link) 2>conftest.er1
29737  ac_status=$?
29738  grep -v '^ *+' conftest.er1 >conftest.err
29739  rm -f conftest.er1
29740  cat conftest.err >&5
29741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742  (exit $ac_status); } &&
29743	 { ac_try='test -z "$ac_c_werror_flag"
29744			 || test ! -s conftest.err'
29745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746  (eval $ac_try) 2>&5
29747  ac_status=$?
29748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749  (exit $ac_status); }; } &&
29750	 { ac_try='test -s conftest$ac_exeext'
29751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752  (eval $ac_try) 2>&5
29753  ac_status=$?
29754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755  (exit $ac_status); }; }; then
29756  ac_cv_lib_ext_crypto_des_set_key=yes;
29757		  ac_cv_lib_ext_crypto=yes
29758else
29759  echo "$as_me: failed program was:" >&5
29760sed 's/^/| /' conftest.$ac_ext >&5
29761
29762ac_cv_lib_ext_crypto_des_set_key=no;
29763		  ac_cv_lib_ext_crypto=no
29764fi
29765rm -f conftest.err conftest.$ac_objext \
29766      conftest$ac_exeext conftest.$ac_ext
29767
29768fi
29769echo "$as_me:$LINENO: result: $ac_cv_lib_ext_crypto_des_set_key" >&5
29770echo "${ECHO_T}$ac_cv_lib_ext_crypto_des_set_key" >&6
29771    if test $ac_cv_lib_ext_crypto_des_set_key = yes; then
29772  cat >>confdefs.h <<_ACEOF
29773#define HAVE_DES_SET_KEY 1
29774_ACEOF
29775
29776fi
29777
29778LIBS=$ac_check_lib_ext_save_LIBS
29779
29780if test $ac_cv_lib_ext_crypto = yes; then
29781  cat >>confdefs.h <<_ACEOF
29782#define HAVE_LIBCRYPTO 1
29783_ACEOF
29784
29785		case "$KRB5_LIBS" in
29786		    *-lcrypto*)
29787			;;
29788		    *)
29789			KRB5_LIBS="-lcrypto $KRB5_LIBS"
29790			;;
29791		esac
29792
29793
29794fi
29795
29796
29797
29798
29799ac_check_lib_ext_save_LIBS=$LIBS
29800LIBS="-lasn1 $KRB5_LIBS  $LIBS"
29801
29802
29803
29804
29805        echo "$as_me:$LINENO: checking for copy_Authenticator in -lasn1" >&5
29806echo $ECHO_N "checking for copy_Authenticator in -lasn1... $ECHO_C" >&6
29807if test "${ac_cv_lib_ext_asn1_copy_Authenticator+set}" = set; then
29808  echo $ECHO_N "(cached) $ECHO_C" >&6
29809else
29810  cat >conftest.$ac_ext <<_ACEOF
29811/* confdefs.h.  */
29812_ACEOF
29813cat confdefs.h >>conftest.$ac_ext
29814cat >>conftest.$ac_ext <<_ACEOF
29815/* end confdefs.h.  */
29816
29817/* Override any gcc2 internal prototype to avoid an error.  */
29818#ifdef __cplusplus
29819extern "C"
29820#endif
29821/* We use char because int might match the return type of a gcc2
29822   builtin and then its argument prototype would still apply.  */
29823char copy_Authenticator ();
29824int
29825main ()
29826{
29827copy_Authenticator ();
29828  ;
29829  return 0;
29830}
29831_ACEOF
29832rm -f conftest.$ac_objext conftest$ac_exeext
29833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29834  (eval $ac_link) 2>conftest.er1
29835  ac_status=$?
29836  grep -v '^ *+' conftest.er1 >conftest.err
29837  rm -f conftest.er1
29838  cat conftest.err >&5
29839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840  (exit $ac_status); } &&
29841	 { ac_try='test -z "$ac_c_werror_flag"
29842			 || test ! -s conftest.err'
29843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844  (eval $ac_try) 2>&5
29845  ac_status=$?
29846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847  (exit $ac_status); }; } &&
29848	 { ac_try='test -s conftest$ac_exeext'
29849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850  (eval $ac_try) 2>&5
29851  ac_status=$?
29852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853  (exit $ac_status); }; }; then
29854  ac_cv_lib_ext_asn1_copy_Authenticator=yes;
29855		  ac_cv_lib_ext_asn1=yes
29856else
29857  echo "$as_me: failed program was:" >&5
29858sed 's/^/| /' conftest.$ac_ext >&5
29859
29860ac_cv_lib_ext_asn1_copy_Authenticator=no;
29861		  ac_cv_lib_ext_asn1=no
29862fi
29863rm -f conftest.err conftest.$ac_objext \
29864      conftest$ac_exeext conftest.$ac_ext
29865
29866fi
29867echo "$as_me:$LINENO: result: $ac_cv_lib_ext_asn1_copy_Authenticator" >&5
29868echo "${ECHO_T}$ac_cv_lib_ext_asn1_copy_Authenticator" >&6
29869    if test $ac_cv_lib_ext_asn1_copy_Authenticator = yes; then
29870  cat >>confdefs.h <<_ACEOF
29871#define HAVE_COPY_AUTHENTICATOR 1
29872_ACEOF
29873
29874fi
29875
29876LIBS=$ac_check_lib_ext_save_LIBS
29877
29878if test $ac_cv_lib_ext_asn1 = yes; then
29879  cat >>confdefs.h <<_ACEOF
29880#define HAVE_LIBASN1 1
29881_ACEOF
29882
29883		case "$KRB5_LIBS" in
29884		    *-lasn1*)
29885			;;
29886		    *)
29887			KRB5_LIBS="-lasn1 $KRB5_LIBS"
29888			;;
29889		esac
29890
29891
29892fi
29893
29894
29895
29896
29897ac_check_lib_ext_save_LIBS=$LIBS
29898LIBS="-lroken $KRB5_LIBS  $LIBS"
29899
29900
29901
29902
29903        echo "$as_me:$LINENO: checking for roken_getaddrinfo_hostspec in -lroken" >&5
29904echo $ECHO_N "checking for roken_getaddrinfo_hostspec in -lroken... $ECHO_C" >&6
29905if test "${ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec+set}" = set; then
29906  echo $ECHO_N "(cached) $ECHO_C" >&6
29907else
29908  cat >conftest.$ac_ext <<_ACEOF
29909/* confdefs.h.  */
29910_ACEOF
29911cat confdefs.h >>conftest.$ac_ext
29912cat >>conftest.$ac_ext <<_ACEOF
29913/* end confdefs.h.  */
29914
29915/* Override any gcc2 internal prototype to avoid an error.  */
29916#ifdef __cplusplus
29917extern "C"
29918#endif
29919/* We use char because int might match the return type of a gcc2
29920   builtin and then its argument prototype would still apply.  */
29921char roken_getaddrinfo_hostspec ();
29922int
29923main ()
29924{
29925roken_getaddrinfo_hostspec ();
29926  ;
29927  return 0;
29928}
29929_ACEOF
29930rm -f conftest.$ac_objext conftest$ac_exeext
29931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29932  (eval $ac_link) 2>conftest.er1
29933  ac_status=$?
29934  grep -v '^ *+' conftest.er1 >conftest.err
29935  rm -f conftest.er1
29936  cat conftest.err >&5
29937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938  (exit $ac_status); } &&
29939	 { ac_try='test -z "$ac_c_werror_flag"
29940			 || test ! -s conftest.err'
29941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942  (eval $ac_try) 2>&5
29943  ac_status=$?
29944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945  (exit $ac_status); }; } &&
29946	 { ac_try='test -s conftest$ac_exeext'
29947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948  (eval $ac_try) 2>&5
29949  ac_status=$?
29950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951  (exit $ac_status); }; }; then
29952  ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec=yes;
29953		  ac_cv_lib_ext_roken=yes
29954else
29955  echo "$as_me: failed program was:" >&5
29956sed 's/^/| /' conftest.$ac_ext >&5
29957
29958ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec=no;
29959		  ac_cv_lib_ext_roken=no
29960fi
29961rm -f conftest.err conftest.$ac_objext \
29962      conftest$ac_exeext conftest.$ac_ext
29963
29964fi
29965echo "$as_me:$LINENO: result: $ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec" >&5
29966echo "${ECHO_T}$ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec" >&6
29967    if test $ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec = yes; then
29968  cat >>confdefs.h <<_ACEOF
29969#define HAVE_ROKEN_GETADDRINFO_HOSTSPEC 1
29970_ACEOF
29971
29972fi
29973
29974LIBS=$ac_check_lib_ext_save_LIBS
29975
29976if test $ac_cv_lib_ext_roken = yes; then
29977  cat >>confdefs.h <<_ACEOF
29978#define HAVE_LIBROKEN 1
29979_ACEOF
29980
29981		case "$KRB5_LIBS" in
29982		    *-lroken*)
29983			;;
29984		    *)
29985			KRB5_LIBS="-lroken $KRB5_LIBS"
29986			;;
29987		esac
29988
29989
29990fi
29991
29992
29993  # Heimdal checks. On static Heimdal gssapi must be linked before krb5.
29994
29995
29996
29997ac_check_lib_ext_save_LIBS=$LIBS
29998LIBS="-lgssapi $KRB5_LIBS  $LIBS"
29999
30000
30001
30002
30003        echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi" >&5
30004echo $ECHO_N "checking for gss_display_status in -lgssapi... $ECHO_C" >&6
30005if test "${ac_cv_lib_ext_gssapi_gss_display_status+set}" = set; then
30006  echo $ECHO_N "(cached) $ECHO_C" >&6
30007else
30008  cat >conftest.$ac_ext <<_ACEOF
30009/* confdefs.h.  */
30010_ACEOF
30011cat confdefs.h >>conftest.$ac_ext
30012cat >>conftest.$ac_ext <<_ACEOF
30013/* end confdefs.h.  */
30014
30015/* Override any gcc2 internal prototype to avoid an error.  */
30016#ifdef __cplusplus
30017extern "C"
30018#endif
30019/* We use char because int might match the return type of a gcc2
30020   builtin and then its argument prototype would still apply.  */
30021char gss_display_status ();
30022int
30023main ()
30024{
30025gss_display_status ();
30026  ;
30027  return 0;
30028}
30029_ACEOF
30030rm -f conftest.$ac_objext conftest$ac_exeext
30031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30032  (eval $ac_link) 2>conftest.er1
30033  ac_status=$?
30034  grep -v '^ *+' conftest.er1 >conftest.err
30035  rm -f conftest.er1
30036  cat conftest.err >&5
30037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038  (exit $ac_status); } &&
30039	 { ac_try='test -z "$ac_c_werror_flag"
30040			 || test ! -s conftest.err'
30041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042  (eval $ac_try) 2>&5
30043  ac_status=$?
30044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045  (exit $ac_status); }; } &&
30046	 { ac_try='test -s conftest$ac_exeext'
30047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048  (eval $ac_try) 2>&5
30049  ac_status=$?
30050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051  (exit $ac_status); }; }; then
30052  ac_cv_lib_ext_gssapi_gss_display_status=yes;
30053		  ac_cv_lib_ext_gssapi=yes
30054else
30055  echo "$as_me: failed program was:" >&5
30056sed 's/^/| /' conftest.$ac_ext >&5
30057
30058ac_cv_lib_ext_gssapi_gss_display_status=no;
30059		  ac_cv_lib_ext_gssapi=no
30060fi
30061rm -f conftest.err conftest.$ac_objext \
30062      conftest$ac_exeext conftest.$ac_ext
30063
30064fi
30065echo "$as_me:$LINENO: result: $ac_cv_lib_ext_gssapi_gss_display_status" >&5
30066echo "${ECHO_T}$ac_cv_lib_ext_gssapi_gss_display_status" >&6
30067    if test $ac_cv_lib_ext_gssapi_gss_display_status = yes; then
30068  cat >>confdefs.h <<_ACEOF
30069#define HAVE_GSS_DISPLAY_STATUS 1
30070_ACEOF
30071
30072fi
30073
30074LIBS=$ac_check_lib_ext_save_LIBS
30075
30076if test $ac_cv_lib_ext_gssapi = yes; then
30077  cat >>confdefs.h <<_ACEOF
30078#define HAVE_LIBGSSAPI 1
30079_ACEOF
30080
30081		case "$KRB5_LIBS" in
30082		    *-lgssapi*)
30083			;;
30084		    *)
30085			KRB5_LIBS="-lgssapi $KRB5_LIBS"
30086			;;
30087		esac
30088
30089cat >>confdefs.h <<\_ACEOF
30090#define HAVE_GSSAPI 1
30091_ACEOF
30092
30093
30094fi
30095
30096
30097  ########################################################
30098  # now see if we can find the krb5 libs in standard paths
30099  # or as specified above
30100
30101
30102
30103ac_check_lib_ext_save_LIBS=$LIBS
30104LIBS="-lkrb5 $KRB5_LIBS  $LIBS"
30105
30106
30107
30108
30109        echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
30110echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
30111if test "${ac_cv_lib_ext_krb5_krb5_mk_req_extended+set}" = set; then
30112  echo $ECHO_N "(cached) $ECHO_C" >&6
30113else
30114  cat >conftest.$ac_ext <<_ACEOF
30115/* confdefs.h.  */
30116_ACEOF
30117cat confdefs.h >>conftest.$ac_ext
30118cat >>conftest.$ac_ext <<_ACEOF
30119/* end confdefs.h.  */
30120
30121/* Override any gcc2 internal prototype to avoid an error.  */
30122#ifdef __cplusplus
30123extern "C"
30124#endif
30125/* We use char because int might match the return type of a gcc2
30126   builtin and then its argument prototype would still apply.  */
30127char krb5_mk_req_extended ();
30128int
30129main ()
30130{
30131krb5_mk_req_extended ();
30132  ;
30133  return 0;
30134}
30135_ACEOF
30136rm -f conftest.$ac_objext conftest$ac_exeext
30137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30138  (eval $ac_link) 2>conftest.er1
30139  ac_status=$?
30140  grep -v '^ *+' conftest.er1 >conftest.err
30141  rm -f conftest.er1
30142  cat conftest.err >&5
30143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144  (exit $ac_status); } &&
30145	 { ac_try='test -z "$ac_c_werror_flag"
30146			 || test ! -s conftest.err'
30147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148  (eval $ac_try) 2>&5
30149  ac_status=$?
30150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151  (exit $ac_status); }; } &&
30152	 { ac_try='test -s conftest$ac_exeext'
30153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154  (eval $ac_try) 2>&5
30155  ac_status=$?
30156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157  (exit $ac_status); }; }; then
30158  ac_cv_lib_ext_krb5_krb5_mk_req_extended=yes;
30159		  ac_cv_lib_ext_krb5=yes
30160else
30161  echo "$as_me: failed program was:" >&5
30162sed 's/^/| /' conftest.$ac_ext >&5
30163
30164ac_cv_lib_ext_krb5_krb5_mk_req_extended=no;
30165		  ac_cv_lib_ext_krb5=no
30166fi
30167rm -f conftest.err conftest.$ac_objext \
30168      conftest$ac_exeext conftest.$ac_ext
30169
30170fi
30171echo "$as_me:$LINENO: result: $ac_cv_lib_ext_krb5_krb5_mk_req_extended" >&5
30172echo "${ECHO_T}$ac_cv_lib_ext_krb5_krb5_mk_req_extended" >&6
30173    if test $ac_cv_lib_ext_krb5_krb5_mk_req_extended = yes; then
30174  cat >>confdefs.h <<_ACEOF
30175#define HAVE_KRB5_MK_REQ_EXTENDED 1
30176_ACEOF
30177
30178fi
30179
30180LIBS=$ac_check_lib_ext_save_LIBS
30181
30182if test $ac_cv_lib_ext_krb5 = yes; then
30183  cat >>confdefs.h <<_ACEOF
30184#define HAVE_LIBKRB5 1
30185_ACEOF
30186
30187		case "$KRB5_LIBS" in
30188		    *-lkrb5*)
30189			;;
30190		    *)
30191			KRB5_LIBS="-lkrb5 $KRB5_LIBS"
30192			;;
30193		esac
30194
30195
30196fi
30197
30198
30199
30200
30201ac_check_lib_ext_save_LIBS=$LIBS
30202LIBS="-lkrb5 $KRB5_LIBS  $LIBS"
30203
30204
30205
30206
30207        echo "$as_me:$LINENO: checking for krb5_kt_compare in -lkrb5" >&5
30208echo $ECHO_N "checking for krb5_kt_compare in -lkrb5... $ECHO_C" >&6
30209if test "${ac_cv_lib_ext_krb5_krb5_kt_compare+set}" = set; then
30210  echo $ECHO_N "(cached) $ECHO_C" >&6
30211else
30212  cat >conftest.$ac_ext <<_ACEOF
30213/* confdefs.h.  */
30214_ACEOF
30215cat confdefs.h >>conftest.$ac_ext
30216cat >>conftest.$ac_ext <<_ACEOF
30217/* end confdefs.h.  */
30218
30219/* Override any gcc2 internal prototype to avoid an error.  */
30220#ifdef __cplusplus
30221extern "C"
30222#endif
30223/* We use char because int might match the return type of a gcc2
30224   builtin and then its argument prototype would still apply.  */
30225char krb5_kt_compare ();
30226int
30227main ()
30228{
30229krb5_kt_compare ();
30230  ;
30231  return 0;
30232}
30233_ACEOF
30234rm -f conftest.$ac_objext conftest$ac_exeext
30235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30236  (eval $ac_link) 2>conftest.er1
30237  ac_status=$?
30238  grep -v '^ *+' conftest.er1 >conftest.err
30239  rm -f conftest.er1
30240  cat conftest.err >&5
30241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242  (exit $ac_status); } &&
30243	 { ac_try='test -z "$ac_c_werror_flag"
30244			 || test ! -s conftest.err'
30245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30246  (eval $ac_try) 2>&5
30247  ac_status=$?
30248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249  (exit $ac_status); }; } &&
30250	 { ac_try='test -s conftest$ac_exeext'
30251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30252  (eval $ac_try) 2>&5
30253  ac_status=$?
30254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255  (exit $ac_status); }; }; then
30256  ac_cv_lib_ext_krb5_krb5_kt_compare=yes;
30257		  ac_cv_lib_ext_krb5=yes
30258else
30259  echo "$as_me: failed program was:" >&5
30260sed 's/^/| /' conftest.$ac_ext >&5
30261
30262ac_cv_lib_ext_krb5_krb5_kt_compare=no;
30263		  ac_cv_lib_ext_krb5=no
30264fi
30265rm -f conftest.err conftest.$ac_objext \
30266      conftest$ac_exeext conftest.$ac_ext
30267
30268fi
30269echo "$as_me:$LINENO: result: $ac_cv_lib_ext_krb5_krb5_kt_compare" >&5
30270echo "${ECHO_T}$ac_cv_lib_ext_krb5_krb5_kt_compare" >&6
30271    if test $ac_cv_lib_ext_krb5_krb5_kt_compare = yes; then
30272  cat >>confdefs.h <<_ACEOF
30273#define HAVE_KRB5_KT_COMPARE 1
30274_ACEOF
30275
30276fi
30277
30278LIBS=$ac_check_lib_ext_save_LIBS
30279
30280if test $ac_cv_lib_ext_krb5 = yes; then
30281  cat >>confdefs.h <<_ACEOF
30282#define HAVE_LIBKRB5 1
30283_ACEOF
30284
30285		case "$KRB5_LIBS" in
30286		    *-lkrb5*)
30287			;;
30288		    *)
30289			KRB5_LIBS="-lkrb5 $KRB5_LIBS"
30290			;;
30291		esac
30292
30293
30294fi
30295
30296
30297  ########################################################
30298  # now see if we can find the gssapi libs in standard paths
30299
30300
30301
30302ac_check_lib_ext_save_LIBS=$LIBS
30303LIBS="-lgssapi_krb5 $KRB5_LIBS  $LIBS"
30304
30305
30306
30307
30308        echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
30309echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
30310if test "${ac_cv_lib_ext_gssapi_krb5_gss_display_status+set}" = set; then
30311  echo $ECHO_N "(cached) $ECHO_C" >&6
30312else
30313  cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h.  */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h.  */
30319
30320/* Override any gcc2 internal prototype to avoid an error.  */
30321#ifdef __cplusplus
30322extern "C"
30323#endif
30324/* We use char because int might match the return type of a gcc2
30325   builtin and then its argument prototype would still apply.  */
30326char gss_display_status ();
30327int
30328main ()
30329{
30330gss_display_status ();
30331  ;
30332  return 0;
30333}
30334_ACEOF
30335rm -f conftest.$ac_objext conftest$ac_exeext
30336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30337  (eval $ac_link) 2>conftest.er1
30338  ac_status=$?
30339  grep -v '^ *+' conftest.er1 >conftest.err
30340  rm -f conftest.er1
30341  cat conftest.err >&5
30342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343  (exit $ac_status); } &&
30344	 { ac_try='test -z "$ac_c_werror_flag"
30345			 || test ! -s conftest.err'
30346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347  (eval $ac_try) 2>&5
30348  ac_status=$?
30349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350  (exit $ac_status); }; } &&
30351	 { ac_try='test -s conftest$ac_exeext'
30352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353  (eval $ac_try) 2>&5
30354  ac_status=$?
30355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356  (exit $ac_status); }; }; then
30357  ac_cv_lib_ext_gssapi_krb5_gss_display_status=yes;
30358		  ac_cv_lib_ext_gssapi_krb5=yes
30359else
30360  echo "$as_me: failed program was:" >&5
30361sed 's/^/| /' conftest.$ac_ext >&5
30362
30363ac_cv_lib_ext_gssapi_krb5_gss_display_status=no;
30364		  ac_cv_lib_ext_gssapi_krb5=no
30365fi
30366rm -f conftest.err conftest.$ac_objext \
30367      conftest$ac_exeext conftest.$ac_ext
30368
30369fi
30370echo "$as_me:$LINENO: result: $ac_cv_lib_ext_gssapi_krb5_gss_display_status" >&5
30371echo "${ECHO_T}$ac_cv_lib_ext_gssapi_krb5_gss_display_status" >&6
30372    if test $ac_cv_lib_ext_gssapi_krb5_gss_display_status = yes; then
30373  cat >>confdefs.h <<_ACEOF
30374#define HAVE_GSS_DISPLAY_STATUS 1
30375_ACEOF
30376
30377fi
30378
30379LIBS=$ac_check_lib_ext_save_LIBS
30380
30381if test $ac_cv_lib_ext_gssapi_krb5 = yes; then
30382  cat >>confdefs.h <<_ACEOF
30383#define HAVE_LIBGSSAPI_KRB5 1
30384_ACEOF
30385
30386		case "$KRB5_LIBS" in
30387		    *-lgssapi_krb5*)
30388			;;
30389		    *)
30390			KRB5_LIBS="-lgssapi_krb5 $KRB5_LIBS"
30391			;;
30392		esac
30393
30394cat >>confdefs.h <<\_ACEOF
30395#define HAVE_GSSAPI 1
30396_ACEOF
30397
30398
30399fi
30400
30401
30402
30403
30404
30405    ac_check_func_ext_save_LIBS=$LIBS
30406    LIBS="$KRB5_LIBS $LIBS"
30407        echo "$as_me:$LINENO: checking for krb5_set_real_time" >&5
30408echo $ECHO_N "checking for krb5_set_real_time... $ECHO_C" >&6
30409if test "${ac_cv_func_ext_krb5_set_real_time+set}" = set; then
30410  echo $ECHO_N "(cached) $ECHO_C" >&6
30411else
30412  cat >conftest.$ac_ext <<_ACEOF
30413/* confdefs.h.  */
30414_ACEOF
30415cat confdefs.h >>conftest.$ac_ext
30416cat >>conftest.$ac_ext <<_ACEOF
30417/* end confdefs.h.  */
30418/* Define krb5_set_real_time to an innocuous variant, in case <limits.h> declares krb5_set_real_time.
30419   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30420#define krb5_set_real_time innocuous_krb5_set_real_time
30421
30422/* System header to define __stub macros and hopefully few prototypes,
30423    which can conflict with char krb5_set_real_time (); below.
30424    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30425    <limits.h> exists even on freestanding compilers.  */
30426
30427#ifdef __STDC__
30428# include <limits.h>
30429#else
30430# include <assert.h>
30431#endif
30432
30433#undef krb5_set_real_time
30434
30435/* Override any gcc2 internal prototype to avoid an error.  */
30436#ifdef __cplusplus
30437extern "C"
30438{
30439#endif
30440/* We use char because int might match the return type of a gcc2
30441   builtin and then its argument prototype would still apply.  */
30442char krb5_set_real_time ();
30443/* The GNU C library defines this for functions which it implements
30444    to always fail with ENOSYS.  Some functions are actually named
30445    something starting with __ and the normal name is an alias.  */
30446#if defined (__stub_krb5_set_real_time) || defined (__stub___krb5_set_real_time)
30447choke me
30448#else
30449char (*f) () = krb5_set_real_time;
30450#endif
30451#ifdef __cplusplus
30452}
30453#endif
30454
30455int
30456main ()
30457{
30458return f != krb5_set_real_time;
30459  ;
30460  return 0;
30461}
30462_ACEOF
30463rm -f conftest.$ac_objext conftest$ac_exeext
30464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30465  (eval $ac_link) 2>conftest.er1
30466  ac_status=$?
30467  grep -v '^ *+' conftest.er1 >conftest.err
30468  rm -f conftest.er1
30469  cat conftest.err >&5
30470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471  (exit $ac_status); } &&
30472	 { ac_try='test -z "$ac_c_werror_flag"
30473			 || test ! -s conftest.err'
30474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30475  (eval $ac_try) 2>&5
30476  ac_status=$?
30477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478  (exit $ac_status); }; } &&
30479	 { ac_try='test -s conftest$ac_exeext'
30480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30481  (eval $ac_try) 2>&5
30482  ac_status=$?
30483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484  (exit $ac_status); }; }; then
30485  ac_cv_func_ext_krb5_set_real_time=yes
30486else
30487  echo "$as_me: failed program was:" >&5
30488sed 's/^/| /' conftest.$ac_ext >&5
30489
30490ac_cv_func_ext_krb5_set_real_time=no
30491fi
30492rm -f conftest.err conftest.$ac_objext \
30493      conftest$ac_exeext conftest.$ac_ext
30494fi
30495echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_real_time" >&5
30496echo "${ECHO_T}$ac_cv_func_ext_krb5_set_real_time" >&6
30497    LIBS=$ac_check_func_ext_save_LIBS
30498    if test $ac_cv_func_ext_krb5_set_real_time = yes; then
30499  cat >>confdefs.h <<_ACEOF
30500#define HAVE_KRB5_SET_REAL_TIME 1
30501_ACEOF
30502
30503fi
30504
30505
30506
30507
30508    ac_check_func_ext_save_LIBS=$LIBS
30509    LIBS="$KRB5_LIBS $LIBS"
30510        echo "$as_me:$LINENO: checking for krb5_set_default_in_tkt_etypes" >&5
30511echo $ECHO_N "checking for krb5_set_default_in_tkt_etypes... $ECHO_C" >&6
30512if test "${ac_cv_func_ext_krb5_set_default_in_tkt_etypes+set}" = set; then
30513  echo $ECHO_N "(cached) $ECHO_C" >&6
30514else
30515  cat >conftest.$ac_ext <<_ACEOF
30516/* confdefs.h.  */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h.  */
30521/* Define krb5_set_default_in_tkt_etypes to an innocuous variant, in case <limits.h> declares krb5_set_default_in_tkt_etypes.
30522   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30523#define krb5_set_default_in_tkt_etypes innocuous_krb5_set_default_in_tkt_etypes
30524
30525/* System header to define __stub macros and hopefully few prototypes,
30526    which can conflict with char krb5_set_default_in_tkt_etypes (); below.
30527    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30528    <limits.h> exists even on freestanding compilers.  */
30529
30530#ifdef __STDC__
30531# include <limits.h>
30532#else
30533# include <assert.h>
30534#endif
30535
30536#undef krb5_set_default_in_tkt_etypes
30537
30538/* Override any gcc2 internal prototype to avoid an error.  */
30539#ifdef __cplusplus
30540extern "C"
30541{
30542#endif
30543/* We use char because int might match the return type of a gcc2
30544   builtin and then its argument prototype would still apply.  */
30545char krb5_set_default_in_tkt_etypes ();
30546/* The GNU C library defines this for functions which it implements
30547    to always fail with ENOSYS.  Some functions are actually named
30548    something starting with __ and the normal name is an alias.  */
30549#if defined (__stub_krb5_set_default_in_tkt_etypes) || defined (__stub___krb5_set_default_in_tkt_etypes)
30550choke me
30551#else
30552char (*f) () = krb5_set_default_in_tkt_etypes;
30553#endif
30554#ifdef __cplusplus
30555}
30556#endif
30557
30558int
30559main ()
30560{
30561return f != krb5_set_default_in_tkt_etypes;
30562  ;
30563  return 0;
30564}
30565_ACEOF
30566rm -f conftest.$ac_objext conftest$ac_exeext
30567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30568  (eval $ac_link) 2>conftest.er1
30569  ac_status=$?
30570  grep -v '^ *+' conftest.er1 >conftest.err
30571  rm -f conftest.er1
30572  cat conftest.err >&5
30573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574  (exit $ac_status); } &&
30575	 { ac_try='test -z "$ac_c_werror_flag"
30576			 || test ! -s conftest.err'
30577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578  (eval $ac_try) 2>&5
30579  ac_status=$?
30580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581  (exit $ac_status); }; } &&
30582	 { ac_try='test -s conftest$ac_exeext'
30583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584  (eval $ac_try) 2>&5
30585  ac_status=$?
30586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587  (exit $ac_status); }; }; then
30588  ac_cv_func_ext_krb5_set_default_in_tkt_etypes=yes
30589else
30590  echo "$as_me: failed program was:" >&5
30591sed 's/^/| /' conftest.$ac_ext >&5
30592
30593ac_cv_func_ext_krb5_set_default_in_tkt_etypes=no
30594fi
30595rm -f conftest.err conftest.$ac_objext \
30596      conftest$ac_exeext conftest.$ac_ext
30597fi
30598echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_default_in_tkt_etypes" >&5
30599echo "${ECHO_T}$ac_cv_func_ext_krb5_set_default_in_tkt_etypes" >&6
30600    LIBS=$ac_check_func_ext_save_LIBS
30601    if test $ac_cv_func_ext_krb5_set_default_in_tkt_etypes = yes; then
30602  cat >>confdefs.h <<_ACEOF
30603#define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
30604_ACEOF
30605
30606fi
30607
30608
30609
30610
30611    ac_check_func_ext_save_LIBS=$LIBS
30612    LIBS="$KRB5_LIBS $LIBS"
30613        echo "$as_me:$LINENO: checking for krb5_set_default_tgs_ktypes" >&5
30614echo $ECHO_N "checking for krb5_set_default_tgs_ktypes... $ECHO_C" >&6
30615if test "${ac_cv_func_ext_krb5_set_default_tgs_ktypes+set}" = set; then
30616  echo $ECHO_N "(cached) $ECHO_C" >&6
30617else
30618  cat >conftest.$ac_ext <<_ACEOF
30619/* confdefs.h.  */
30620_ACEOF
30621cat confdefs.h >>conftest.$ac_ext
30622cat >>conftest.$ac_ext <<_ACEOF
30623/* end confdefs.h.  */
30624/* Define krb5_set_default_tgs_ktypes to an innocuous variant, in case <limits.h> declares krb5_set_default_tgs_ktypes.
30625   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30626#define krb5_set_default_tgs_ktypes innocuous_krb5_set_default_tgs_ktypes
30627
30628/* System header to define __stub macros and hopefully few prototypes,
30629    which can conflict with char krb5_set_default_tgs_ktypes (); below.
30630    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30631    <limits.h> exists even on freestanding compilers.  */
30632
30633#ifdef __STDC__
30634# include <limits.h>
30635#else
30636# include <assert.h>
30637#endif
30638
30639#undef krb5_set_default_tgs_ktypes
30640
30641/* Override any gcc2 internal prototype to avoid an error.  */
30642#ifdef __cplusplus
30643extern "C"
30644{
30645#endif
30646/* We use char because int might match the return type of a gcc2
30647   builtin and then its argument prototype would still apply.  */
30648char krb5_set_default_tgs_ktypes ();
30649/* The GNU C library defines this for functions which it implements
30650    to always fail with ENOSYS.  Some functions are actually named
30651    something starting with __ and the normal name is an alias.  */
30652#if defined (__stub_krb5_set_default_tgs_ktypes) || defined (__stub___krb5_set_default_tgs_ktypes)
30653choke me
30654#else
30655char (*f) () = krb5_set_default_tgs_ktypes;
30656#endif
30657#ifdef __cplusplus
30658}
30659#endif
30660
30661int
30662main ()
30663{
30664return f != krb5_set_default_tgs_ktypes;
30665  ;
30666  return 0;
30667}
30668_ACEOF
30669rm -f conftest.$ac_objext conftest$ac_exeext
30670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30671  (eval $ac_link) 2>conftest.er1
30672  ac_status=$?
30673  grep -v '^ *+' conftest.er1 >conftest.err
30674  rm -f conftest.er1
30675  cat conftest.err >&5
30676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677  (exit $ac_status); } &&
30678	 { ac_try='test -z "$ac_c_werror_flag"
30679			 || test ! -s conftest.err'
30680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30681  (eval $ac_try) 2>&5
30682  ac_status=$?
30683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684  (exit $ac_status); }; } &&
30685	 { ac_try='test -s conftest$ac_exeext'
30686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687  (eval $ac_try) 2>&5
30688  ac_status=$?
30689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690  (exit $ac_status); }; }; then
30691  ac_cv_func_ext_krb5_set_default_tgs_ktypes=yes
30692else
30693  echo "$as_me: failed program was:" >&5
30694sed 's/^/| /' conftest.$ac_ext >&5
30695
30696ac_cv_func_ext_krb5_set_default_tgs_ktypes=no
30697fi
30698rm -f conftest.err conftest.$ac_objext \
30699      conftest$ac_exeext conftest.$ac_ext
30700fi
30701echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_default_tgs_ktypes" >&5
30702echo "${ECHO_T}$ac_cv_func_ext_krb5_set_default_tgs_ktypes" >&6
30703    LIBS=$ac_check_func_ext_save_LIBS
30704    if test $ac_cv_func_ext_krb5_set_default_tgs_ktypes = yes; then
30705  cat >>confdefs.h <<_ACEOF
30706#define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
30707_ACEOF
30708
30709fi
30710
30711
30712
30713
30714    ac_check_func_ext_save_LIBS=$LIBS
30715    LIBS="$KRB5_LIBS $LIBS"
30716        echo "$as_me:$LINENO: checking for krb5_principal2salt" >&5
30717echo $ECHO_N "checking for krb5_principal2salt... $ECHO_C" >&6
30718if test "${ac_cv_func_ext_krb5_principal2salt+set}" = set; then
30719  echo $ECHO_N "(cached) $ECHO_C" >&6
30720else
30721  cat >conftest.$ac_ext <<_ACEOF
30722/* confdefs.h.  */
30723_ACEOF
30724cat confdefs.h >>conftest.$ac_ext
30725cat >>conftest.$ac_ext <<_ACEOF
30726/* end confdefs.h.  */
30727/* Define krb5_principal2salt to an innocuous variant, in case <limits.h> declares krb5_principal2salt.
30728   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30729#define krb5_principal2salt innocuous_krb5_principal2salt
30730
30731/* System header to define __stub macros and hopefully few prototypes,
30732    which can conflict with char krb5_principal2salt (); below.
30733    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30734    <limits.h> exists even on freestanding compilers.  */
30735
30736#ifdef __STDC__
30737# include <limits.h>
30738#else
30739# include <assert.h>
30740#endif
30741
30742#undef krb5_principal2salt
30743
30744/* Override any gcc2 internal prototype to avoid an error.  */
30745#ifdef __cplusplus
30746extern "C"
30747{
30748#endif
30749/* We use char because int might match the return type of a gcc2
30750   builtin and then its argument prototype would still apply.  */
30751char krb5_principal2salt ();
30752/* The GNU C library defines this for functions which it implements
30753    to always fail with ENOSYS.  Some functions are actually named
30754    something starting with __ and the normal name is an alias.  */
30755#if defined (__stub_krb5_principal2salt) || defined (__stub___krb5_principal2salt)
30756choke me
30757#else
30758char (*f) () = krb5_principal2salt;
30759#endif
30760#ifdef __cplusplus
30761}
30762#endif
30763
30764int
30765main ()
30766{
30767return f != krb5_principal2salt;
30768  ;
30769  return 0;
30770}
30771_ACEOF
30772rm -f conftest.$ac_objext conftest$ac_exeext
30773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30774  (eval $ac_link) 2>conftest.er1
30775  ac_status=$?
30776  grep -v '^ *+' conftest.er1 >conftest.err
30777  rm -f conftest.er1
30778  cat conftest.err >&5
30779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780  (exit $ac_status); } &&
30781	 { ac_try='test -z "$ac_c_werror_flag"
30782			 || test ! -s conftest.err'
30783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30784  (eval $ac_try) 2>&5
30785  ac_status=$?
30786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787  (exit $ac_status); }; } &&
30788	 { ac_try='test -s conftest$ac_exeext'
30789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30790  (eval $ac_try) 2>&5
30791  ac_status=$?
30792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793  (exit $ac_status); }; }; then
30794  ac_cv_func_ext_krb5_principal2salt=yes
30795else
30796  echo "$as_me: failed program was:" >&5
30797sed 's/^/| /' conftest.$ac_ext >&5
30798
30799ac_cv_func_ext_krb5_principal2salt=no
30800fi
30801rm -f conftest.err conftest.$ac_objext \
30802      conftest$ac_exeext conftest.$ac_ext
30803fi
30804echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_principal2salt" >&5
30805echo "${ECHO_T}$ac_cv_func_ext_krb5_principal2salt" >&6
30806    LIBS=$ac_check_func_ext_save_LIBS
30807    if test $ac_cv_func_ext_krb5_principal2salt = yes; then
30808  cat >>confdefs.h <<_ACEOF
30809#define HAVE_KRB5_PRINCIPAL2SALT 1
30810_ACEOF
30811
30812fi
30813
30814
30815
30816
30817    ac_check_func_ext_save_LIBS=$LIBS
30818    LIBS="$KRB5_LIBS $LIBS"
30819        echo "$as_me:$LINENO: checking for krb5_use_enctype" >&5
30820echo $ECHO_N "checking for krb5_use_enctype... $ECHO_C" >&6
30821if test "${ac_cv_func_ext_krb5_use_enctype+set}" = set; then
30822  echo $ECHO_N "(cached) $ECHO_C" >&6
30823else
30824  cat >conftest.$ac_ext <<_ACEOF
30825/* confdefs.h.  */
30826_ACEOF
30827cat confdefs.h >>conftest.$ac_ext
30828cat >>conftest.$ac_ext <<_ACEOF
30829/* end confdefs.h.  */
30830/* Define krb5_use_enctype to an innocuous variant, in case <limits.h> declares krb5_use_enctype.
30831   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30832#define krb5_use_enctype innocuous_krb5_use_enctype
30833
30834/* System header to define __stub macros and hopefully few prototypes,
30835    which can conflict with char krb5_use_enctype (); below.
30836    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30837    <limits.h> exists even on freestanding compilers.  */
30838
30839#ifdef __STDC__
30840# include <limits.h>
30841#else
30842# include <assert.h>
30843#endif
30844
30845#undef krb5_use_enctype
30846
30847/* Override any gcc2 internal prototype to avoid an error.  */
30848#ifdef __cplusplus
30849extern "C"
30850{
30851#endif
30852/* We use char because int might match the return type of a gcc2
30853   builtin and then its argument prototype would still apply.  */
30854char krb5_use_enctype ();
30855/* The GNU C library defines this for functions which it implements
30856    to always fail with ENOSYS.  Some functions are actually named
30857    something starting with __ and the normal name is an alias.  */
30858#if defined (__stub_krb5_use_enctype) || defined (__stub___krb5_use_enctype)
30859choke me
30860#else
30861char (*f) () = krb5_use_enctype;
30862#endif
30863#ifdef __cplusplus
30864}
30865#endif
30866
30867int
30868main ()
30869{
30870return f != krb5_use_enctype;
30871  ;
30872  return 0;
30873}
30874_ACEOF
30875rm -f conftest.$ac_objext conftest$ac_exeext
30876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877  (eval $ac_link) 2>conftest.er1
30878  ac_status=$?
30879  grep -v '^ *+' conftest.er1 >conftest.err
30880  rm -f conftest.er1
30881  cat conftest.err >&5
30882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883  (exit $ac_status); } &&
30884	 { ac_try='test -z "$ac_c_werror_flag"
30885			 || test ! -s conftest.err'
30886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887  (eval $ac_try) 2>&5
30888  ac_status=$?
30889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890  (exit $ac_status); }; } &&
30891	 { ac_try='test -s conftest$ac_exeext'
30892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30893  (eval $ac_try) 2>&5
30894  ac_status=$?
30895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896  (exit $ac_status); }; }; then
30897  ac_cv_func_ext_krb5_use_enctype=yes
30898else
30899  echo "$as_me: failed program was:" >&5
30900sed 's/^/| /' conftest.$ac_ext >&5
30901
30902ac_cv_func_ext_krb5_use_enctype=no
30903fi
30904rm -f conftest.err conftest.$ac_objext \
30905      conftest$ac_exeext conftest.$ac_ext
30906fi
30907echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_use_enctype" >&5
30908echo "${ECHO_T}$ac_cv_func_ext_krb5_use_enctype" >&6
30909    LIBS=$ac_check_func_ext_save_LIBS
30910    if test $ac_cv_func_ext_krb5_use_enctype = yes; then
30911  cat >>confdefs.h <<_ACEOF
30912#define HAVE_KRB5_USE_ENCTYPE 1
30913_ACEOF
30914
30915fi
30916
30917
30918
30919
30920    ac_check_func_ext_save_LIBS=$LIBS
30921    LIBS="$KRB5_LIBS $LIBS"
30922        echo "$as_me:$LINENO: checking for krb5_string_to_key" >&5
30923echo $ECHO_N "checking for krb5_string_to_key... $ECHO_C" >&6
30924if test "${ac_cv_func_ext_krb5_string_to_key+set}" = set; then
30925  echo $ECHO_N "(cached) $ECHO_C" >&6
30926else
30927  cat >conftest.$ac_ext <<_ACEOF
30928/* confdefs.h.  */
30929_ACEOF
30930cat confdefs.h >>conftest.$ac_ext
30931cat >>conftest.$ac_ext <<_ACEOF
30932/* end confdefs.h.  */
30933/* Define krb5_string_to_key to an innocuous variant, in case <limits.h> declares krb5_string_to_key.
30934   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30935#define krb5_string_to_key innocuous_krb5_string_to_key
30936
30937/* System header to define __stub macros and hopefully few prototypes,
30938    which can conflict with char krb5_string_to_key (); below.
30939    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30940    <limits.h> exists even on freestanding compilers.  */
30941
30942#ifdef __STDC__
30943# include <limits.h>
30944#else
30945# include <assert.h>
30946#endif
30947
30948#undef krb5_string_to_key
30949
30950/* Override any gcc2 internal prototype to avoid an error.  */
30951#ifdef __cplusplus
30952extern "C"
30953{
30954#endif
30955/* We use char because int might match the return type of a gcc2
30956   builtin and then its argument prototype would still apply.  */
30957char krb5_string_to_key ();
30958/* The GNU C library defines this for functions which it implements
30959    to always fail with ENOSYS.  Some functions are actually named
30960    something starting with __ and the normal name is an alias.  */
30961#if defined (__stub_krb5_string_to_key) || defined (__stub___krb5_string_to_key)
30962choke me
30963#else
30964char (*f) () = krb5_string_to_key;
30965#endif
30966#ifdef __cplusplus
30967}
30968#endif
30969
30970int
30971main ()
30972{
30973return f != krb5_string_to_key;
30974  ;
30975  return 0;
30976}
30977_ACEOF
30978rm -f conftest.$ac_objext conftest$ac_exeext
30979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30980  (eval $ac_link) 2>conftest.er1
30981  ac_status=$?
30982  grep -v '^ *+' conftest.er1 >conftest.err
30983  rm -f conftest.er1
30984  cat conftest.err >&5
30985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986  (exit $ac_status); } &&
30987	 { ac_try='test -z "$ac_c_werror_flag"
30988			 || test ! -s conftest.err'
30989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990  (eval $ac_try) 2>&5
30991  ac_status=$?
30992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993  (exit $ac_status); }; } &&
30994	 { ac_try='test -s conftest$ac_exeext'
30995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996  (eval $ac_try) 2>&5
30997  ac_status=$?
30998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999  (exit $ac_status); }; }; then
31000  ac_cv_func_ext_krb5_string_to_key=yes
31001else
31002  echo "$as_me: failed program was:" >&5
31003sed 's/^/| /' conftest.$ac_ext >&5
31004
31005ac_cv_func_ext_krb5_string_to_key=no
31006fi
31007rm -f conftest.err conftest.$ac_objext \
31008      conftest$ac_exeext conftest.$ac_ext
31009fi
31010echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_string_to_key" >&5
31011echo "${ECHO_T}$ac_cv_func_ext_krb5_string_to_key" >&6
31012    LIBS=$ac_check_func_ext_save_LIBS
31013    if test $ac_cv_func_ext_krb5_string_to_key = yes; then
31014  cat >>confdefs.h <<_ACEOF
31015#define HAVE_KRB5_STRING_TO_KEY 1
31016_ACEOF
31017
31018fi
31019
31020
31021
31022
31023    ac_check_func_ext_save_LIBS=$LIBS
31024    LIBS="$KRB5_LIBS $LIBS"
31025        echo "$as_me:$LINENO: checking for krb5_get_pw_salt" >&5
31026echo $ECHO_N "checking for krb5_get_pw_salt... $ECHO_C" >&6
31027if test "${ac_cv_func_ext_krb5_get_pw_salt+set}" = set; then
31028  echo $ECHO_N "(cached) $ECHO_C" >&6
31029else
31030  cat >conftest.$ac_ext <<_ACEOF
31031/* confdefs.h.  */
31032_ACEOF
31033cat confdefs.h >>conftest.$ac_ext
31034cat >>conftest.$ac_ext <<_ACEOF
31035/* end confdefs.h.  */
31036/* Define krb5_get_pw_salt to an innocuous variant, in case <limits.h> declares krb5_get_pw_salt.
31037   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31038#define krb5_get_pw_salt innocuous_krb5_get_pw_salt
31039
31040/* System header to define __stub macros and hopefully few prototypes,
31041    which can conflict with char krb5_get_pw_salt (); below.
31042    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31043    <limits.h> exists even on freestanding compilers.  */
31044
31045#ifdef __STDC__
31046# include <limits.h>
31047#else
31048# include <assert.h>
31049#endif
31050
31051#undef krb5_get_pw_salt
31052
31053/* Override any gcc2 internal prototype to avoid an error.  */
31054#ifdef __cplusplus
31055extern "C"
31056{
31057#endif
31058/* We use char because int might match the return type of a gcc2
31059   builtin and then its argument prototype would still apply.  */
31060char krb5_get_pw_salt ();
31061/* The GNU C library defines this for functions which it implements
31062    to always fail with ENOSYS.  Some functions are actually named
31063    something starting with __ and the normal name is an alias.  */
31064#if defined (__stub_krb5_get_pw_salt) || defined (__stub___krb5_get_pw_salt)
31065choke me
31066#else
31067char (*f) () = krb5_get_pw_salt;
31068#endif
31069#ifdef __cplusplus
31070}
31071#endif
31072
31073int
31074main ()
31075{
31076return f != krb5_get_pw_salt;
31077  ;
31078  return 0;
31079}
31080_ACEOF
31081rm -f conftest.$ac_objext conftest$ac_exeext
31082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31083  (eval $ac_link) 2>conftest.er1
31084  ac_status=$?
31085  grep -v '^ *+' conftest.er1 >conftest.err
31086  rm -f conftest.er1
31087  cat conftest.err >&5
31088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089  (exit $ac_status); } &&
31090	 { ac_try='test -z "$ac_c_werror_flag"
31091			 || test ! -s conftest.err'
31092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31093  (eval $ac_try) 2>&5
31094  ac_status=$?
31095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096  (exit $ac_status); }; } &&
31097	 { ac_try='test -s conftest$ac_exeext'
31098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31099  (eval $ac_try) 2>&5
31100  ac_status=$?
31101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102  (exit $ac_status); }; }; then
31103  ac_cv_func_ext_krb5_get_pw_salt=yes
31104else
31105  echo "$as_me: failed program was:" >&5
31106sed 's/^/| /' conftest.$ac_ext >&5
31107
31108ac_cv_func_ext_krb5_get_pw_salt=no
31109fi
31110rm -f conftest.err conftest.$ac_objext \
31111      conftest$ac_exeext conftest.$ac_ext
31112fi
31113echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_pw_salt" >&5
31114echo "${ECHO_T}$ac_cv_func_ext_krb5_get_pw_salt" >&6
31115    LIBS=$ac_check_func_ext_save_LIBS
31116    if test $ac_cv_func_ext_krb5_get_pw_salt = yes; then
31117  cat >>confdefs.h <<_ACEOF
31118#define HAVE_KRB5_GET_PW_SALT 1
31119_ACEOF
31120
31121fi
31122
31123
31124
31125
31126    ac_check_func_ext_save_LIBS=$LIBS
31127    LIBS="$KRB5_LIBS $LIBS"
31128        echo "$as_me:$LINENO: checking for krb5_string_to_key_salt" >&5
31129echo $ECHO_N "checking for krb5_string_to_key_salt... $ECHO_C" >&6
31130if test "${ac_cv_func_ext_krb5_string_to_key_salt+set}" = set; then
31131  echo $ECHO_N "(cached) $ECHO_C" >&6
31132else
31133  cat >conftest.$ac_ext <<_ACEOF
31134/* confdefs.h.  */
31135_ACEOF
31136cat confdefs.h >>conftest.$ac_ext
31137cat >>conftest.$ac_ext <<_ACEOF
31138/* end confdefs.h.  */
31139/* Define krb5_string_to_key_salt to an innocuous variant, in case <limits.h> declares krb5_string_to_key_salt.
31140   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31141#define krb5_string_to_key_salt innocuous_krb5_string_to_key_salt
31142
31143/* System header to define __stub macros and hopefully few prototypes,
31144    which can conflict with char krb5_string_to_key_salt (); below.
31145    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31146    <limits.h> exists even on freestanding compilers.  */
31147
31148#ifdef __STDC__
31149# include <limits.h>
31150#else
31151# include <assert.h>
31152#endif
31153
31154#undef krb5_string_to_key_salt
31155
31156/* Override any gcc2 internal prototype to avoid an error.  */
31157#ifdef __cplusplus
31158extern "C"
31159{
31160#endif
31161/* We use char because int might match the return type of a gcc2
31162   builtin and then its argument prototype would still apply.  */
31163char krb5_string_to_key_salt ();
31164/* The GNU C library defines this for functions which it implements
31165    to always fail with ENOSYS.  Some functions are actually named
31166    something starting with __ and the normal name is an alias.  */
31167#if defined (__stub_krb5_string_to_key_salt) || defined (__stub___krb5_string_to_key_salt)
31168choke me
31169#else
31170char (*f) () = krb5_string_to_key_salt;
31171#endif
31172#ifdef __cplusplus
31173}
31174#endif
31175
31176int
31177main ()
31178{
31179return f != krb5_string_to_key_salt;
31180  ;
31181  return 0;
31182}
31183_ACEOF
31184rm -f conftest.$ac_objext conftest$ac_exeext
31185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31186  (eval $ac_link) 2>conftest.er1
31187  ac_status=$?
31188  grep -v '^ *+' conftest.er1 >conftest.err
31189  rm -f conftest.er1
31190  cat conftest.err >&5
31191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192  (exit $ac_status); } &&
31193	 { ac_try='test -z "$ac_c_werror_flag"
31194			 || test ! -s conftest.err'
31195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31196  (eval $ac_try) 2>&5
31197  ac_status=$?
31198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199  (exit $ac_status); }; } &&
31200	 { ac_try='test -s conftest$ac_exeext'
31201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31202  (eval $ac_try) 2>&5
31203  ac_status=$?
31204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205  (exit $ac_status); }; }; then
31206  ac_cv_func_ext_krb5_string_to_key_salt=yes
31207else
31208  echo "$as_me: failed program was:" >&5
31209sed 's/^/| /' conftest.$ac_ext >&5
31210
31211ac_cv_func_ext_krb5_string_to_key_salt=no
31212fi
31213rm -f conftest.err conftest.$ac_objext \
31214      conftest$ac_exeext conftest.$ac_ext
31215fi
31216echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_string_to_key_salt" >&5
31217echo "${ECHO_T}$ac_cv_func_ext_krb5_string_to_key_salt" >&6
31218    LIBS=$ac_check_func_ext_save_LIBS
31219    if test $ac_cv_func_ext_krb5_string_to_key_salt = yes; then
31220  cat >>confdefs.h <<_ACEOF
31221#define HAVE_KRB5_STRING_TO_KEY_SALT 1
31222_ACEOF
31223
31224fi
31225
31226
31227
31228
31229    ac_check_func_ext_save_LIBS=$LIBS
31230    LIBS="$KRB5_LIBS $LIBS"
31231        echo "$as_me:$LINENO: checking for krb5_auth_con_setkey" >&5
31232echo $ECHO_N "checking for krb5_auth_con_setkey... $ECHO_C" >&6
31233if test "${ac_cv_func_ext_krb5_auth_con_setkey+set}" = set; then
31234  echo $ECHO_N "(cached) $ECHO_C" >&6
31235else
31236  cat >conftest.$ac_ext <<_ACEOF
31237/* confdefs.h.  */
31238_ACEOF
31239cat confdefs.h >>conftest.$ac_ext
31240cat >>conftest.$ac_ext <<_ACEOF
31241/* end confdefs.h.  */
31242/* Define krb5_auth_con_setkey to an innocuous variant, in case <limits.h> declares krb5_auth_con_setkey.
31243   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31244#define krb5_auth_con_setkey innocuous_krb5_auth_con_setkey
31245
31246/* System header to define __stub macros and hopefully few prototypes,
31247    which can conflict with char krb5_auth_con_setkey (); below.
31248    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31249    <limits.h> exists even on freestanding compilers.  */
31250
31251#ifdef __STDC__
31252# include <limits.h>
31253#else
31254# include <assert.h>
31255#endif
31256
31257#undef krb5_auth_con_setkey
31258
31259/* Override any gcc2 internal prototype to avoid an error.  */
31260#ifdef __cplusplus
31261extern "C"
31262{
31263#endif
31264/* We use char because int might match the return type of a gcc2
31265   builtin and then its argument prototype would still apply.  */
31266char krb5_auth_con_setkey ();
31267/* The GNU C library defines this for functions which it implements
31268    to always fail with ENOSYS.  Some functions are actually named
31269    something starting with __ and the normal name is an alias.  */
31270#if defined (__stub_krb5_auth_con_setkey) || defined (__stub___krb5_auth_con_setkey)
31271choke me
31272#else
31273char (*f) () = krb5_auth_con_setkey;
31274#endif
31275#ifdef __cplusplus
31276}
31277#endif
31278
31279int
31280main ()
31281{
31282return f != krb5_auth_con_setkey;
31283  ;
31284  return 0;
31285}
31286_ACEOF
31287rm -f conftest.$ac_objext conftest$ac_exeext
31288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31289  (eval $ac_link) 2>conftest.er1
31290  ac_status=$?
31291  grep -v '^ *+' conftest.er1 >conftest.err
31292  rm -f conftest.er1
31293  cat conftest.err >&5
31294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295  (exit $ac_status); } &&
31296	 { ac_try='test -z "$ac_c_werror_flag"
31297			 || test ! -s conftest.err'
31298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31299  (eval $ac_try) 2>&5
31300  ac_status=$?
31301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302  (exit $ac_status); }; } &&
31303	 { ac_try='test -s conftest$ac_exeext'
31304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31305  (eval $ac_try) 2>&5
31306  ac_status=$?
31307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308  (exit $ac_status); }; }; then
31309  ac_cv_func_ext_krb5_auth_con_setkey=yes
31310else
31311  echo "$as_me: failed program was:" >&5
31312sed 's/^/| /' conftest.$ac_ext >&5
31313
31314ac_cv_func_ext_krb5_auth_con_setkey=no
31315fi
31316rm -f conftest.err conftest.$ac_objext \
31317      conftest$ac_exeext conftest.$ac_ext
31318fi
31319echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_auth_con_setkey" >&5
31320echo "${ECHO_T}$ac_cv_func_ext_krb5_auth_con_setkey" >&6
31321    LIBS=$ac_check_func_ext_save_LIBS
31322    if test $ac_cv_func_ext_krb5_auth_con_setkey = yes; then
31323  cat >>confdefs.h <<_ACEOF
31324#define HAVE_KRB5_AUTH_CON_SETKEY 1
31325_ACEOF
31326
31327fi
31328
31329
31330
31331
31332    ac_check_func_ext_save_LIBS=$LIBS
31333    LIBS="$KRB5_LIBS $LIBS"
31334        echo "$as_me:$LINENO: checking for krb5_auth_con_setuseruserkey" >&5
31335echo $ECHO_N "checking for krb5_auth_con_setuseruserkey... $ECHO_C" >&6
31336if test "${ac_cv_func_ext_krb5_auth_con_setuseruserkey+set}" = set; then
31337  echo $ECHO_N "(cached) $ECHO_C" >&6
31338else
31339  cat >conftest.$ac_ext <<_ACEOF
31340/* confdefs.h.  */
31341_ACEOF
31342cat confdefs.h >>conftest.$ac_ext
31343cat >>conftest.$ac_ext <<_ACEOF
31344/* end confdefs.h.  */
31345/* Define krb5_auth_con_setuseruserkey to an innocuous variant, in case <limits.h> declares krb5_auth_con_setuseruserkey.
31346   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31347#define krb5_auth_con_setuseruserkey innocuous_krb5_auth_con_setuseruserkey
31348
31349/* System header to define __stub macros and hopefully few prototypes,
31350    which can conflict with char krb5_auth_con_setuseruserkey (); below.
31351    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31352    <limits.h> exists even on freestanding compilers.  */
31353
31354#ifdef __STDC__
31355# include <limits.h>
31356#else
31357# include <assert.h>
31358#endif
31359
31360#undef krb5_auth_con_setuseruserkey
31361
31362/* Override any gcc2 internal prototype to avoid an error.  */
31363#ifdef __cplusplus
31364extern "C"
31365{
31366#endif
31367/* We use char because int might match the return type of a gcc2
31368   builtin and then its argument prototype would still apply.  */
31369char krb5_auth_con_setuseruserkey ();
31370/* The GNU C library defines this for functions which it implements
31371    to always fail with ENOSYS.  Some functions are actually named
31372    something starting with __ and the normal name is an alias.  */
31373#if defined (__stub_krb5_auth_con_setuseruserkey) || defined (__stub___krb5_auth_con_setuseruserkey)
31374choke me
31375#else
31376char (*f) () = krb5_auth_con_setuseruserkey;
31377#endif
31378#ifdef __cplusplus
31379}
31380#endif
31381
31382int
31383main ()
31384{
31385return f != krb5_auth_con_setuseruserkey;
31386  ;
31387  return 0;
31388}
31389_ACEOF
31390rm -f conftest.$ac_objext conftest$ac_exeext
31391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31392  (eval $ac_link) 2>conftest.er1
31393  ac_status=$?
31394  grep -v '^ *+' conftest.er1 >conftest.err
31395  rm -f conftest.er1
31396  cat conftest.err >&5
31397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398  (exit $ac_status); } &&
31399	 { ac_try='test -z "$ac_c_werror_flag"
31400			 || test ! -s conftest.err'
31401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31402  (eval $ac_try) 2>&5
31403  ac_status=$?
31404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405  (exit $ac_status); }; } &&
31406	 { ac_try='test -s conftest$ac_exeext'
31407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408  (eval $ac_try) 2>&5
31409  ac_status=$?
31410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411  (exit $ac_status); }; }; then
31412  ac_cv_func_ext_krb5_auth_con_setuseruserkey=yes
31413else
31414  echo "$as_me: failed program was:" >&5
31415sed 's/^/| /' conftest.$ac_ext >&5
31416
31417ac_cv_func_ext_krb5_auth_con_setuseruserkey=no
31418fi
31419rm -f conftest.err conftest.$ac_objext \
31420      conftest$ac_exeext conftest.$ac_ext
31421fi
31422echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_auth_con_setuseruserkey" >&5
31423echo "${ECHO_T}$ac_cv_func_ext_krb5_auth_con_setuseruserkey" >&6
31424    LIBS=$ac_check_func_ext_save_LIBS
31425    if test $ac_cv_func_ext_krb5_auth_con_setuseruserkey = yes; then
31426  cat >>confdefs.h <<_ACEOF
31427#define HAVE_KRB5_AUTH_CON_SETUSERUSERKEY 1
31428_ACEOF
31429
31430fi
31431
31432
31433
31434
31435    ac_check_func_ext_save_LIBS=$LIBS
31436    LIBS="$KRB5_LIBS $LIBS"
31437        echo "$as_me:$LINENO: checking for krb5_locate_kdc" >&5
31438echo $ECHO_N "checking for krb5_locate_kdc... $ECHO_C" >&6
31439if test "${ac_cv_func_ext_krb5_locate_kdc+set}" = set; then
31440  echo $ECHO_N "(cached) $ECHO_C" >&6
31441else
31442  cat >conftest.$ac_ext <<_ACEOF
31443/* confdefs.h.  */
31444_ACEOF
31445cat confdefs.h >>conftest.$ac_ext
31446cat >>conftest.$ac_ext <<_ACEOF
31447/* end confdefs.h.  */
31448/* Define krb5_locate_kdc to an innocuous variant, in case <limits.h> declares krb5_locate_kdc.
31449   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31450#define krb5_locate_kdc innocuous_krb5_locate_kdc
31451
31452/* System header to define __stub macros and hopefully few prototypes,
31453    which can conflict with char krb5_locate_kdc (); below.
31454    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31455    <limits.h> exists even on freestanding compilers.  */
31456
31457#ifdef __STDC__
31458# include <limits.h>
31459#else
31460# include <assert.h>
31461#endif
31462
31463#undef krb5_locate_kdc
31464
31465/* Override any gcc2 internal prototype to avoid an error.  */
31466#ifdef __cplusplus
31467extern "C"
31468{
31469#endif
31470/* We use char because int might match the return type of a gcc2
31471   builtin and then its argument prototype would still apply.  */
31472char krb5_locate_kdc ();
31473/* The GNU C library defines this for functions which it implements
31474    to always fail with ENOSYS.  Some functions are actually named
31475    something starting with __ and the normal name is an alias.  */
31476#if defined (__stub_krb5_locate_kdc) || defined (__stub___krb5_locate_kdc)
31477choke me
31478#else
31479char (*f) () = krb5_locate_kdc;
31480#endif
31481#ifdef __cplusplus
31482}
31483#endif
31484
31485int
31486main ()
31487{
31488return f != krb5_locate_kdc;
31489  ;
31490  return 0;
31491}
31492_ACEOF
31493rm -f conftest.$ac_objext conftest$ac_exeext
31494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31495  (eval $ac_link) 2>conftest.er1
31496  ac_status=$?
31497  grep -v '^ *+' conftest.er1 >conftest.err
31498  rm -f conftest.er1
31499  cat conftest.err >&5
31500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501  (exit $ac_status); } &&
31502	 { ac_try='test -z "$ac_c_werror_flag"
31503			 || test ! -s conftest.err'
31504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31505  (eval $ac_try) 2>&5
31506  ac_status=$?
31507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508  (exit $ac_status); }; } &&
31509	 { ac_try='test -s conftest$ac_exeext'
31510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31511  (eval $ac_try) 2>&5
31512  ac_status=$?
31513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514  (exit $ac_status); }; }; then
31515  ac_cv_func_ext_krb5_locate_kdc=yes
31516else
31517  echo "$as_me: failed program was:" >&5
31518sed 's/^/| /' conftest.$ac_ext >&5
31519
31520ac_cv_func_ext_krb5_locate_kdc=no
31521fi
31522rm -f conftest.err conftest.$ac_objext \
31523      conftest$ac_exeext conftest.$ac_ext
31524fi
31525echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_locate_kdc" >&5
31526echo "${ECHO_T}$ac_cv_func_ext_krb5_locate_kdc" >&6
31527    LIBS=$ac_check_func_ext_save_LIBS
31528    if test $ac_cv_func_ext_krb5_locate_kdc = yes; then
31529  cat >>confdefs.h <<_ACEOF
31530#define HAVE_KRB5_LOCATE_KDC 1
31531_ACEOF
31532
31533fi
31534
31535
31536
31537
31538    ac_check_func_ext_save_LIBS=$LIBS
31539    LIBS="$KRB5_LIBS $LIBS"
31540        echo "$as_me:$LINENO: checking for krb5_get_permitted_enctypes" >&5
31541echo $ECHO_N "checking for krb5_get_permitted_enctypes... $ECHO_C" >&6
31542if test "${ac_cv_func_ext_krb5_get_permitted_enctypes+set}" = set; then
31543  echo $ECHO_N "(cached) $ECHO_C" >&6
31544else
31545  cat >conftest.$ac_ext <<_ACEOF
31546/* confdefs.h.  */
31547_ACEOF
31548cat confdefs.h >>conftest.$ac_ext
31549cat >>conftest.$ac_ext <<_ACEOF
31550/* end confdefs.h.  */
31551/* Define krb5_get_permitted_enctypes to an innocuous variant, in case <limits.h> declares krb5_get_permitted_enctypes.
31552   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31553#define krb5_get_permitted_enctypes innocuous_krb5_get_permitted_enctypes
31554
31555/* System header to define __stub macros and hopefully few prototypes,
31556    which can conflict with char krb5_get_permitted_enctypes (); below.
31557    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31558    <limits.h> exists even on freestanding compilers.  */
31559
31560#ifdef __STDC__
31561# include <limits.h>
31562#else
31563# include <assert.h>
31564#endif
31565
31566#undef krb5_get_permitted_enctypes
31567
31568/* Override any gcc2 internal prototype to avoid an error.  */
31569#ifdef __cplusplus
31570extern "C"
31571{
31572#endif
31573/* We use char because int might match the return type of a gcc2
31574   builtin and then its argument prototype would still apply.  */
31575char krb5_get_permitted_enctypes ();
31576/* The GNU C library defines this for functions which it implements
31577    to always fail with ENOSYS.  Some functions are actually named
31578    something starting with __ and the normal name is an alias.  */
31579#if defined (__stub_krb5_get_permitted_enctypes) || defined (__stub___krb5_get_permitted_enctypes)
31580choke me
31581#else
31582char (*f) () = krb5_get_permitted_enctypes;
31583#endif
31584#ifdef __cplusplus
31585}
31586#endif
31587
31588int
31589main ()
31590{
31591return f != krb5_get_permitted_enctypes;
31592  ;
31593  return 0;
31594}
31595_ACEOF
31596rm -f conftest.$ac_objext conftest$ac_exeext
31597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31598  (eval $ac_link) 2>conftest.er1
31599  ac_status=$?
31600  grep -v '^ *+' conftest.er1 >conftest.err
31601  rm -f conftest.er1
31602  cat conftest.err >&5
31603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604  (exit $ac_status); } &&
31605	 { ac_try='test -z "$ac_c_werror_flag"
31606			 || test ! -s conftest.err'
31607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608  (eval $ac_try) 2>&5
31609  ac_status=$?
31610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611  (exit $ac_status); }; } &&
31612	 { ac_try='test -s conftest$ac_exeext'
31613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614  (eval $ac_try) 2>&5
31615  ac_status=$?
31616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617  (exit $ac_status); }; }; then
31618  ac_cv_func_ext_krb5_get_permitted_enctypes=yes
31619else
31620  echo "$as_me: failed program was:" >&5
31621sed 's/^/| /' conftest.$ac_ext >&5
31622
31623ac_cv_func_ext_krb5_get_permitted_enctypes=no
31624fi
31625rm -f conftest.err conftest.$ac_objext \
31626      conftest$ac_exeext conftest.$ac_ext
31627fi
31628echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_permitted_enctypes" >&5
31629echo "${ECHO_T}$ac_cv_func_ext_krb5_get_permitted_enctypes" >&6
31630    LIBS=$ac_check_func_ext_save_LIBS
31631    if test $ac_cv_func_ext_krb5_get_permitted_enctypes = yes; then
31632  cat >>confdefs.h <<_ACEOF
31633#define HAVE_KRB5_GET_PERMITTED_ENCTYPES 1
31634_ACEOF
31635
31636fi
31637
31638
31639
31640
31641    ac_check_func_ext_save_LIBS=$LIBS
31642    LIBS="$KRB5_LIBS $LIBS"
31643        echo "$as_me:$LINENO: checking for krb5_get_default_in_tkt_etypes" >&5
31644echo $ECHO_N "checking for krb5_get_default_in_tkt_etypes... $ECHO_C" >&6
31645if test "${ac_cv_func_ext_krb5_get_default_in_tkt_etypes+set}" = set; then
31646  echo $ECHO_N "(cached) $ECHO_C" >&6
31647else
31648  cat >conftest.$ac_ext <<_ACEOF
31649/* confdefs.h.  */
31650_ACEOF
31651cat confdefs.h >>conftest.$ac_ext
31652cat >>conftest.$ac_ext <<_ACEOF
31653/* end confdefs.h.  */
31654/* Define krb5_get_default_in_tkt_etypes to an innocuous variant, in case <limits.h> declares krb5_get_default_in_tkt_etypes.
31655   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31656#define krb5_get_default_in_tkt_etypes innocuous_krb5_get_default_in_tkt_etypes
31657
31658/* System header to define __stub macros and hopefully few prototypes,
31659    which can conflict with char krb5_get_default_in_tkt_etypes (); below.
31660    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31661    <limits.h> exists even on freestanding compilers.  */
31662
31663#ifdef __STDC__
31664# include <limits.h>
31665#else
31666# include <assert.h>
31667#endif
31668
31669#undef krb5_get_default_in_tkt_etypes
31670
31671/* Override any gcc2 internal prototype to avoid an error.  */
31672#ifdef __cplusplus
31673extern "C"
31674{
31675#endif
31676/* We use char because int might match the return type of a gcc2
31677   builtin and then its argument prototype would still apply.  */
31678char krb5_get_default_in_tkt_etypes ();
31679/* The GNU C library defines this for functions which it implements
31680    to always fail with ENOSYS.  Some functions are actually named
31681    something starting with __ and the normal name is an alias.  */
31682#if defined (__stub_krb5_get_default_in_tkt_etypes) || defined (__stub___krb5_get_default_in_tkt_etypes)
31683choke me
31684#else
31685char (*f) () = krb5_get_default_in_tkt_etypes;
31686#endif
31687#ifdef __cplusplus
31688}
31689#endif
31690
31691int
31692main ()
31693{
31694return f != krb5_get_default_in_tkt_etypes;
31695  ;
31696  return 0;
31697}
31698_ACEOF
31699rm -f conftest.$ac_objext conftest$ac_exeext
31700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31701  (eval $ac_link) 2>conftest.er1
31702  ac_status=$?
31703  grep -v '^ *+' conftest.er1 >conftest.err
31704  rm -f conftest.er1
31705  cat conftest.err >&5
31706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707  (exit $ac_status); } &&
31708	 { ac_try='test -z "$ac_c_werror_flag"
31709			 || test ! -s conftest.err'
31710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711  (eval $ac_try) 2>&5
31712  ac_status=$?
31713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714  (exit $ac_status); }; } &&
31715	 { ac_try='test -s conftest$ac_exeext'
31716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31717  (eval $ac_try) 2>&5
31718  ac_status=$?
31719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720  (exit $ac_status); }; }; then
31721  ac_cv_func_ext_krb5_get_default_in_tkt_etypes=yes
31722else
31723  echo "$as_me: failed program was:" >&5
31724sed 's/^/| /' conftest.$ac_ext >&5
31725
31726ac_cv_func_ext_krb5_get_default_in_tkt_etypes=no
31727fi
31728rm -f conftest.err conftest.$ac_objext \
31729      conftest$ac_exeext conftest.$ac_ext
31730fi
31731echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_default_in_tkt_etypes" >&5
31732echo "${ECHO_T}$ac_cv_func_ext_krb5_get_default_in_tkt_etypes" >&6
31733    LIBS=$ac_check_func_ext_save_LIBS
31734    if test $ac_cv_func_ext_krb5_get_default_in_tkt_etypes = yes; then
31735  cat >>confdefs.h <<_ACEOF
31736#define HAVE_KRB5_GET_DEFAULT_IN_TKT_ETYPES 1
31737_ACEOF
31738
31739fi
31740
31741
31742
31743
31744    ac_check_func_ext_save_LIBS=$LIBS
31745    LIBS="$KRB5_LIBS $LIBS"
31746        echo "$as_me:$LINENO: checking for krb5_free_ktypes" >&5
31747echo $ECHO_N "checking for krb5_free_ktypes... $ECHO_C" >&6
31748if test "${ac_cv_func_ext_krb5_free_ktypes+set}" = set; then
31749  echo $ECHO_N "(cached) $ECHO_C" >&6
31750else
31751  cat >conftest.$ac_ext <<_ACEOF
31752/* confdefs.h.  */
31753_ACEOF
31754cat confdefs.h >>conftest.$ac_ext
31755cat >>conftest.$ac_ext <<_ACEOF
31756/* end confdefs.h.  */
31757/* Define krb5_free_ktypes to an innocuous variant, in case <limits.h> declares krb5_free_ktypes.
31758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31759#define krb5_free_ktypes innocuous_krb5_free_ktypes
31760
31761/* System header to define __stub macros and hopefully few prototypes,
31762    which can conflict with char krb5_free_ktypes (); below.
31763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31764    <limits.h> exists even on freestanding compilers.  */
31765
31766#ifdef __STDC__
31767# include <limits.h>
31768#else
31769# include <assert.h>
31770#endif
31771
31772#undef krb5_free_ktypes
31773
31774/* Override any gcc2 internal prototype to avoid an error.  */
31775#ifdef __cplusplus
31776extern "C"
31777{
31778#endif
31779/* We use char because int might match the return type of a gcc2
31780   builtin and then its argument prototype would still apply.  */
31781char krb5_free_ktypes ();
31782/* The GNU C library defines this for functions which it implements
31783    to always fail with ENOSYS.  Some functions are actually named
31784    something starting with __ and the normal name is an alias.  */
31785#if defined (__stub_krb5_free_ktypes) || defined (__stub___krb5_free_ktypes)
31786choke me
31787#else
31788char (*f) () = krb5_free_ktypes;
31789#endif
31790#ifdef __cplusplus
31791}
31792#endif
31793
31794int
31795main ()
31796{
31797return f != krb5_free_ktypes;
31798  ;
31799  return 0;
31800}
31801_ACEOF
31802rm -f conftest.$ac_objext conftest$ac_exeext
31803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31804  (eval $ac_link) 2>conftest.er1
31805  ac_status=$?
31806  grep -v '^ *+' conftest.er1 >conftest.err
31807  rm -f conftest.er1
31808  cat conftest.err >&5
31809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810  (exit $ac_status); } &&
31811	 { ac_try='test -z "$ac_c_werror_flag"
31812			 || test ! -s conftest.err'
31813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31814  (eval $ac_try) 2>&5
31815  ac_status=$?
31816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817  (exit $ac_status); }; } &&
31818	 { ac_try='test -s conftest$ac_exeext'
31819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31820  (eval $ac_try) 2>&5
31821  ac_status=$?
31822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823  (exit $ac_status); }; }; then
31824  ac_cv_func_ext_krb5_free_ktypes=yes
31825else
31826  echo "$as_me: failed program was:" >&5
31827sed 's/^/| /' conftest.$ac_ext >&5
31828
31829ac_cv_func_ext_krb5_free_ktypes=no
31830fi
31831rm -f conftest.err conftest.$ac_objext \
31832      conftest$ac_exeext conftest.$ac_ext
31833fi
31834echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_ktypes" >&5
31835echo "${ECHO_T}$ac_cv_func_ext_krb5_free_ktypes" >&6
31836    LIBS=$ac_check_func_ext_save_LIBS
31837    if test $ac_cv_func_ext_krb5_free_ktypes = yes; then
31838  cat >>confdefs.h <<_ACEOF
31839#define HAVE_KRB5_FREE_KTYPES 1
31840_ACEOF
31841
31842fi
31843
31844
31845
31846
31847    ac_check_func_ext_save_LIBS=$LIBS
31848    LIBS="$KRB5_LIBS $LIBS"
31849        echo "$as_me:$LINENO: checking for krb5_free_data_contents" >&5
31850echo $ECHO_N "checking for krb5_free_data_contents... $ECHO_C" >&6
31851if test "${ac_cv_func_ext_krb5_free_data_contents+set}" = set; then
31852  echo $ECHO_N "(cached) $ECHO_C" >&6
31853else
31854  cat >conftest.$ac_ext <<_ACEOF
31855/* confdefs.h.  */
31856_ACEOF
31857cat confdefs.h >>conftest.$ac_ext
31858cat >>conftest.$ac_ext <<_ACEOF
31859/* end confdefs.h.  */
31860/* Define krb5_free_data_contents to an innocuous variant, in case <limits.h> declares krb5_free_data_contents.
31861   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31862#define krb5_free_data_contents innocuous_krb5_free_data_contents
31863
31864/* System header to define __stub macros and hopefully few prototypes,
31865    which can conflict with char krb5_free_data_contents (); below.
31866    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31867    <limits.h> exists even on freestanding compilers.  */
31868
31869#ifdef __STDC__
31870# include <limits.h>
31871#else
31872# include <assert.h>
31873#endif
31874
31875#undef krb5_free_data_contents
31876
31877/* Override any gcc2 internal prototype to avoid an error.  */
31878#ifdef __cplusplus
31879extern "C"
31880{
31881#endif
31882/* We use char because int might match the return type of a gcc2
31883   builtin and then its argument prototype would still apply.  */
31884char krb5_free_data_contents ();
31885/* The GNU C library defines this for functions which it implements
31886    to always fail with ENOSYS.  Some functions are actually named
31887    something starting with __ and the normal name is an alias.  */
31888#if defined (__stub_krb5_free_data_contents) || defined (__stub___krb5_free_data_contents)
31889choke me
31890#else
31891char (*f) () = krb5_free_data_contents;
31892#endif
31893#ifdef __cplusplus
31894}
31895#endif
31896
31897int
31898main ()
31899{
31900return f != krb5_free_data_contents;
31901  ;
31902  return 0;
31903}
31904_ACEOF
31905rm -f conftest.$ac_objext conftest$ac_exeext
31906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31907  (eval $ac_link) 2>conftest.er1
31908  ac_status=$?
31909  grep -v '^ *+' conftest.er1 >conftest.err
31910  rm -f conftest.er1
31911  cat conftest.err >&5
31912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913  (exit $ac_status); } &&
31914	 { ac_try='test -z "$ac_c_werror_flag"
31915			 || test ! -s conftest.err'
31916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31917  (eval $ac_try) 2>&5
31918  ac_status=$?
31919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920  (exit $ac_status); }; } &&
31921	 { ac_try='test -s conftest$ac_exeext'
31922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31923  (eval $ac_try) 2>&5
31924  ac_status=$?
31925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926  (exit $ac_status); }; }; then
31927  ac_cv_func_ext_krb5_free_data_contents=yes
31928else
31929  echo "$as_me: failed program was:" >&5
31930sed 's/^/| /' conftest.$ac_ext >&5
31931
31932ac_cv_func_ext_krb5_free_data_contents=no
31933fi
31934rm -f conftest.err conftest.$ac_objext \
31935      conftest$ac_exeext conftest.$ac_ext
31936fi
31937echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_data_contents" >&5
31938echo "${ECHO_T}$ac_cv_func_ext_krb5_free_data_contents" >&6
31939    LIBS=$ac_check_func_ext_save_LIBS
31940    if test $ac_cv_func_ext_krb5_free_data_contents = yes; then
31941  cat >>confdefs.h <<_ACEOF
31942#define HAVE_KRB5_FREE_DATA_CONTENTS 1
31943_ACEOF
31944
31945fi
31946
31947
31948
31949
31950    ac_check_func_ext_save_LIBS=$LIBS
31951    LIBS="$KRB5_LIBS $LIBS"
31952        echo "$as_me:$LINENO: checking for krb5_principal_get_comp_string" >&5
31953echo $ECHO_N "checking for krb5_principal_get_comp_string... $ECHO_C" >&6
31954if test "${ac_cv_func_ext_krb5_principal_get_comp_string+set}" = set; then
31955  echo $ECHO_N "(cached) $ECHO_C" >&6
31956else
31957  cat >conftest.$ac_ext <<_ACEOF
31958/* confdefs.h.  */
31959_ACEOF
31960cat confdefs.h >>conftest.$ac_ext
31961cat >>conftest.$ac_ext <<_ACEOF
31962/* end confdefs.h.  */
31963/* Define krb5_principal_get_comp_string to an innocuous variant, in case <limits.h> declares krb5_principal_get_comp_string.
31964   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31965#define krb5_principal_get_comp_string innocuous_krb5_principal_get_comp_string
31966
31967/* System header to define __stub macros and hopefully few prototypes,
31968    which can conflict with char krb5_principal_get_comp_string (); below.
31969    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31970    <limits.h> exists even on freestanding compilers.  */
31971
31972#ifdef __STDC__
31973# include <limits.h>
31974#else
31975# include <assert.h>
31976#endif
31977
31978#undef krb5_principal_get_comp_string
31979
31980/* Override any gcc2 internal prototype to avoid an error.  */
31981#ifdef __cplusplus
31982extern "C"
31983{
31984#endif
31985/* We use char because int might match the return type of a gcc2
31986   builtin and then its argument prototype would still apply.  */
31987char krb5_principal_get_comp_string ();
31988/* The GNU C library defines this for functions which it implements
31989    to always fail with ENOSYS.  Some functions are actually named
31990    something starting with __ and the normal name is an alias.  */
31991#if defined (__stub_krb5_principal_get_comp_string) || defined (__stub___krb5_principal_get_comp_string)
31992choke me
31993#else
31994char (*f) () = krb5_principal_get_comp_string;
31995#endif
31996#ifdef __cplusplus
31997}
31998#endif
31999
32000int
32001main ()
32002{
32003return f != krb5_principal_get_comp_string;
32004  ;
32005  return 0;
32006}
32007_ACEOF
32008rm -f conftest.$ac_objext conftest$ac_exeext
32009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32010  (eval $ac_link) 2>conftest.er1
32011  ac_status=$?
32012  grep -v '^ *+' conftest.er1 >conftest.err
32013  rm -f conftest.er1
32014  cat conftest.err >&5
32015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016  (exit $ac_status); } &&
32017	 { ac_try='test -z "$ac_c_werror_flag"
32018			 || test ! -s conftest.err'
32019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32020  (eval $ac_try) 2>&5
32021  ac_status=$?
32022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023  (exit $ac_status); }; } &&
32024	 { ac_try='test -s conftest$ac_exeext'
32025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32026  (eval $ac_try) 2>&5
32027  ac_status=$?
32028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029  (exit $ac_status); }; }; then
32030  ac_cv_func_ext_krb5_principal_get_comp_string=yes
32031else
32032  echo "$as_me: failed program was:" >&5
32033sed 's/^/| /' conftest.$ac_ext >&5
32034
32035ac_cv_func_ext_krb5_principal_get_comp_string=no
32036fi
32037rm -f conftest.err conftest.$ac_objext \
32038      conftest$ac_exeext conftest.$ac_ext
32039fi
32040echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_principal_get_comp_string" >&5
32041echo "${ECHO_T}$ac_cv_func_ext_krb5_principal_get_comp_string" >&6
32042    LIBS=$ac_check_func_ext_save_LIBS
32043    if test $ac_cv_func_ext_krb5_principal_get_comp_string = yes; then
32044  cat >>confdefs.h <<_ACEOF
32045#define HAVE_KRB5_PRINCIPAL_GET_COMP_STRING 1
32046_ACEOF
32047
32048fi
32049
32050
32051
32052
32053    ac_check_func_ext_save_LIBS=$LIBS
32054    LIBS="$KRB5_LIBS $LIBS"
32055        echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
32056echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6
32057if test "${ac_cv_func_ext_krb5_free_unparsed_name+set}" = set; then
32058  echo $ECHO_N "(cached) $ECHO_C" >&6
32059else
32060  cat >conftest.$ac_ext <<_ACEOF
32061/* confdefs.h.  */
32062_ACEOF
32063cat confdefs.h >>conftest.$ac_ext
32064cat >>conftest.$ac_ext <<_ACEOF
32065/* end confdefs.h.  */
32066/* Define krb5_free_unparsed_name to an innocuous variant, in case <limits.h> declares krb5_free_unparsed_name.
32067   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32068#define krb5_free_unparsed_name innocuous_krb5_free_unparsed_name
32069
32070/* System header to define __stub macros and hopefully few prototypes,
32071    which can conflict with char krb5_free_unparsed_name (); below.
32072    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32073    <limits.h> exists even on freestanding compilers.  */
32074
32075#ifdef __STDC__
32076# include <limits.h>
32077#else
32078# include <assert.h>
32079#endif
32080
32081#undef krb5_free_unparsed_name
32082
32083/* Override any gcc2 internal prototype to avoid an error.  */
32084#ifdef __cplusplus
32085extern "C"
32086{
32087#endif
32088/* We use char because int might match the return type of a gcc2
32089   builtin and then its argument prototype would still apply.  */
32090char krb5_free_unparsed_name ();
32091/* The GNU C library defines this for functions which it implements
32092    to always fail with ENOSYS.  Some functions are actually named
32093    something starting with __ and the normal name is an alias.  */
32094#if defined (__stub_krb5_free_unparsed_name) || defined (__stub___krb5_free_unparsed_name)
32095choke me
32096#else
32097char (*f) () = krb5_free_unparsed_name;
32098#endif
32099#ifdef __cplusplus
32100}
32101#endif
32102
32103int
32104main ()
32105{
32106return f != krb5_free_unparsed_name;
32107  ;
32108  return 0;
32109}
32110_ACEOF
32111rm -f conftest.$ac_objext conftest$ac_exeext
32112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32113  (eval $ac_link) 2>conftest.er1
32114  ac_status=$?
32115  grep -v '^ *+' conftest.er1 >conftest.err
32116  rm -f conftest.er1
32117  cat conftest.err >&5
32118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119  (exit $ac_status); } &&
32120	 { ac_try='test -z "$ac_c_werror_flag"
32121			 || test ! -s conftest.err'
32122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32123  (eval $ac_try) 2>&5
32124  ac_status=$?
32125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126  (exit $ac_status); }; } &&
32127	 { ac_try='test -s conftest$ac_exeext'
32128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32129  (eval $ac_try) 2>&5
32130  ac_status=$?
32131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132  (exit $ac_status); }; }; then
32133  ac_cv_func_ext_krb5_free_unparsed_name=yes
32134else
32135  echo "$as_me: failed program was:" >&5
32136sed 's/^/| /' conftest.$ac_ext >&5
32137
32138ac_cv_func_ext_krb5_free_unparsed_name=no
32139fi
32140rm -f conftest.err conftest.$ac_objext \
32141      conftest$ac_exeext conftest.$ac_ext
32142fi
32143echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_unparsed_name" >&5
32144echo "${ECHO_T}$ac_cv_func_ext_krb5_free_unparsed_name" >&6
32145    LIBS=$ac_check_func_ext_save_LIBS
32146    if test $ac_cv_func_ext_krb5_free_unparsed_name = yes; then
32147  cat >>confdefs.h <<_ACEOF
32148#define HAVE_KRB5_FREE_UNPARSED_NAME 1
32149_ACEOF
32150
32151fi
32152
32153
32154
32155
32156    ac_check_func_ext_save_LIBS=$LIBS
32157    LIBS="$KRB5_LIBS $LIBS"
32158        echo "$as_me:$LINENO: checking for krb5_free_keytab_entry_contents" >&5
32159echo $ECHO_N "checking for krb5_free_keytab_entry_contents... $ECHO_C" >&6
32160if test "${ac_cv_func_ext_krb5_free_keytab_entry_contents+set}" = set; then
32161  echo $ECHO_N "(cached) $ECHO_C" >&6
32162else
32163  cat >conftest.$ac_ext <<_ACEOF
32164/* confdefs.h.  */
32165_ACEOF
32166cat confdefs.h >>conftest.$ac_ext
32167cat >>conftest.$ac_ext <<_ACEOF
32168/* end confdefs.h.  */
32169/* Define krb5_free_keytab_entry_contents to an innocuous variant, in case <limits.h> declares krb5_free_keytab_entry_contents.
32170   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32171#define krb5_free_keytab_entry_contents innocuous_krb5_free_keytab_entry_contents
32172
32173/* System header to define __stub macros and hopefully few prototypes,
32174    which can conflict with char krb5_free_keytab_entry_contents (); below.
32175    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32176    <limits.h> exists even on freestanding compilers.  */
32177
32178#ifdef __STDC__
32179# include <limits.h>
32180#else
32181# include <assert.h>
32182#endif
32183
32184#undef krb5_free_keytab_entry_contents
32185
32186/* Override any gcc2 internal prototype to avoid an error.  */
32187#ifdef __cplusplus
32188extern "C"
32189{
32190#endif
32191/* We use char because int might match the return type of a gcc2
32192   builtin and then its argument prototype would still apply.  */
32193char krb5_free_keytab_entry_contents ();
32194/* The GNU C library defines this for functions which it implements
32195    to always fail with ENOSYS.  Some functions are actually named
32196    something starting with __ and the normal name is an alias.  */
32197#if defined (__stub_krb5_free_keytab_entry_contents) || defined (__stub___krb5_free_keytab_entry_contents)
32198choke me
32199#else
32200char (*f) () = krb5_free_keytab_entry_contents;
32201#endif
32202#ifdef __cplusplus
32203}
32204#endif
32205
32206int
32207main ()
32208{
32209return f != krb5_free_keytab_entry_contents;
32210  ;
32211  return 0;
32212}
32213_ACEOF
32214rm -f conftest.$ac_objext conftest$ac_exeext
32215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32216  (eval $ac_link) 2>conftest.er1
32217  ac_status=$?
32218  grep -v '^ *+' conftest.er1 >conftest.err
32219  rm -f conftest.er1
32220  cat conftest.err >&5
32221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222  (exit $ac_status); } &&
32223	 { ac_try='test -z "$ac_c_werror_flag"
32224			 || test ! -s conftest.err'
32225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32226  (eval $ac_try) 2>&5
32227  ac_status=$?
32228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229  (exit $ac_status); }; } &&
32230	 { ac_try='test -s conftest$ac_exeext'
32231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32232  (eval $ac_try) 2>&5
32233  ac_status=$?
32234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235  (exit $ac_status); }; }; then
32236  ac_cv_func_ext_krb5_free_keytab_entry_contents=yes
32237else
32238  echo "$as_me: failed program was:" >&5
32239sed 's/^/| /' conftest.$ac_ext >&5
32240
32241ac_cv_func_ext_krb5_free_keytab_entry_contents=no
32242fi
32243rm -f conftest.err conftest.$ac_objext \
32244      conftest$ac_exeext conftest.$ac_ext
32245fi
32246echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_keytab_entry_contents" >&5
32247echo "${ECHO_T}$ac_cv_func_ext_krb5_free_keytab_entry_contents" >&6
32248    LIBS=$ac_check_func_ext_save_LIBS
32249    if test $ac_cv_func_ext_krb5_free_keytab_entry_contents = yes; then
32250  cat >>confdefs.h <<_ACEOF
32251#define HAVE_KRB5_FREE_KEYTAB_ENTRY_CONTENTS 1
32252_ACEOF
32253
32254fi
32255
32256
32257
32258
32259    ac_check_func_ext_save_LIBS=$LIBS
32260    LIBS="$KRB5_LIBS $LIBS"
32261        echo "$as_me:$LINENO: checking for krb5_kt_free_entry" >&5
32262echo $ECHO_N "checking for krb5_kt_free_entry... $ECHO_C" >&6
32263if test "${ac_cv_func_ext_krb5_kt_free_entry+set}" = set; then
32264  echo $ECHO_N "(cached) $ECHO_C" >&6
32265else
32266  cat >conftest.$ac_ext <<_ACEOF
32267/* confdefs.h.  */
32268_ACEOF
32269cat confdefs.h >>conftest.$ac_ext
32270cat >>conftest.$ac_ext <<_ACEOF
32271/* end confdefs.h.  */
32272/* Define krb5_kt_free_entry to an innocuous variant, in case <limits.h> declares krb5_kt_free_entry.
32273   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32274#define krb5_kt_free_entry innocuous_krb5_kt_free_entry
32275
32276/* System header to define __stub macros and hopefully few prototypes,
32277    which can conflict with char krb5_kt_free_entry (); below.
32278    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32279    <limits.h> exists even on freestanding compilers.  */
32280
32281#ifdef __STDC__
32282# include <limits.h>
32283#else
32284# include <assert.h>
32285#endif
32286
32287#undef krb5_kt_free_entry
32288
32289/* Override any gcc2 internal prototype to avoid an error.  */
32290#ifdef __cplusplus
32291extern "C"
32292{
32293#endif
32294/* We use char because int might match the return type of a gcc2
32295   builtin and then its argument prototype would still apply.  */
32296char krb5_kt_free_entry ();
32297/* The GNU C library defines this for functions which it implements
32298    to always fail with ENOSYS.  Some functions are actually named
32299    something starting with __ and the normal name is an alias.  */
32300#if defined (__stub_krb5_kt_free_entry) || defined (__stub___krb5_kt_free_entry)
32301choke me
32302#else
32303char (*f) () = krb5_kt_free_entry;
32304#endif
32305#ifdef __cplusplus
32306}
32307#endif
32308
32309int
32310main ()
32311{
32312return f != krb5_kt_free_entry;
32313  ;
32314  return 0;
32315}
32316_ACEOF
32317rm -f conftest.$ac_objext conftest$ac_exeext
32318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32319  (eval $ac_link) 2>conftest.er1
32320  ac_status=$?
32321  grep -v '^ *+' conftest.er1 >conftest.err
32322  rm -f conftest.er1
32323  cat conftest.err >&5
32324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325  (exit $ac_status); } &&
32326	 { ac_try='test -z "$ac_c_werror_flag"
32327			 || test ! -s conftest.err'
32328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32329  (eval $ac_try) 2>&5
32330  ac_status=$?
32331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332  (exit $ac_status); }; } &&
32333	 { ac_try='test -s conftest$ac_exeext'
32334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32335  (eval $ac_try) 2>&5
32336  ac_status=$?
32337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338  (exit $ac_status); }; }; then
32339  ac_cv_func_ext_krb5_kt_free_entry=yes
32340else
32341  echo "$as_me: failed program was:" >&5
32342sed 's/^/| /' conftest.$ac_ext >&5
32343
32344ac_cv_func_ext_krb5_kt_free_entry=no
32345fi
32346rm -f conftest.err conftest.$ac_objext \
32347      conftest$ac_exeext conftest.$ac_ext
32348fi
32349echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_kt_free_entry" >&5
32350echo "${ECHO_T}$ac_cv_func_ext_krb5_kt_free_entry" >&6
32351    LIBS=$ac_check_func_ext_save_LIBS
32352    if test $ac_cv_func_ext_krb5_kt_free_entry = yes; then
32353  cat >>confdefs.h <<_ACEOF
32354#define HAVE_KRB5_KT_FREE_ENTRY 1
32355_ACEOF
32356
32357fi
32358
32359
32360
32361
32362    ac_check_func_ext_save_LIBS=$LIBS
32363    LIBS="$KRB5_LIBS $LIBS"
32364        echo "$as_me:$LINENO: checking for krb5_krbhst_get_addrinfo" >&5
32365echo $ECHO_N "checking for krb5_krbhst_get_addrinfo... $ECHO_C" >&6
32366if test "${ac_cv_func_ext_krb5_krbhst_get_addrinfo+set}" = set; then
32367  echo $ECHO_N "(cached) $ECHO_C" >&6
32368else
32369  cat >conftest.$ac_ext <<_ACEOF
32370/* confdefs.h.  */
32371_ACEOF
32372cat confdefs.h >>conftest.$ac_ext
32373cat >>conftest.$ac_ext <<_ACEOF
32374/* end confdefs.h.  */
32375/* Define krb5_krbhst_get_addrinfo to an innocuous variant, in case <limits.h> declares krb5_krbhst_get_addrinfo.
32376   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32377#define krb5_krbhst_get_addrinfo innocuous_krb5_krbhst_get_addrinfo
32378
32379/* System header to define __stub macros and hopefully few prototypes,
32380    which can conflict with char krb5_krbhst_get_addrinfo (); below.
32381    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32382    <limits.h> exists even on freestanding compilers.  */
32383
32384#ifdef __STDC__
32385# include <limits.h>
32386#else
32387# include <assert.h>
32388#endif
32389
32390#undef krb5_krbhst_get_addrinfo
32391
32392/* Override any gcc2 internal prototype to avoid an error.  */
32393#ifdef __cplusplus
32394extern "C"
32395{
32396#endif
32397/* We use char because int might match the return type of a gcc2
32398   builtin and then its argument prototype would still apply.  */
32399char krb5_krbhst_get_addrinfo ();
32400/* The GNU C library defines this for functions which it implements
32401    to always fail with ENOSYS.  Some functions are actually named
32402    something starting with __ and the normal name is an alias.  */
32403#if defined (__stub_krb5_krbhst_get_addrinfo) || defined (__stub___krb5_krbhst_get_addrinfo)
32404choke me
32405#else
32406char (*f) () = krb5_krbhst_get_addrinfo;
32407#endif
32408#ifdef __cplusplus
32409}
32410#endif
32411
32412int
32413main ()
32414{
32415return f != krb5_krbhst_get_addrinfo;
32416  ;
32417  return 0;
32418}
32419_ACEOF
32420rm -f conftest.$ac_objext conftest$ac_exeext
32421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32422  (eval $ac_link) 2>conftest.er1
32423  ac_status=$?
32424  grep -v '^ *+' conftest.er1 >conftest.err
32425  rm -f conftest.er1
32426  cat conftest.err >&5
32427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428  (exit $ac_status); } &&
32429	 { ac_try='test -z "$ac_c_werror_flag"
32430			 || test ! -s conftest.err'
32431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32432  (eval $ac_try) 2>&5
32433  ac_status=$?
32434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435  (exit $ac_status); }; } &&
32436	 { ac_try='test -s conftest$ac_exeext'
32437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32438  (eval $ac_try) 2>&5
32439  ac_status=$?
32440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441  (exit $ac_status); }; }; then
32442  ac_cv_func_ext_krb5_krbhst_get_addrinfo=yes
32443else
32444  echo "$as_me: failed program was:" >&5
32445sed 's/^/| /' conftest.$ac_ext >&5
32446
32447ac_cv_func_ext_krb5_krbhst_get_addrinfo=no
32448fi
32449rm -f conftest.err conftest.$ac_objext \
32450      conftest$ac_exeext conftest.$ac_ext
32451fi
32452echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_krbhst_get_addrinfo" >&5
32453echo "${ECHO_T}$ac_cv_func_ext_krb5_krbhst_get_addrinfo" >&6
32454    LIBS=$ac_check_func_ext_save_LIBS
32455    if test $ac_cv_func_ext_krb5_krbhst_get_addrinfo = yes; then
32456  cat >>confdefs.h <<_ACEOF
32457#define HAVE_KRB5_KRBHST_GET_ADDRINFO 1
32458_ACEOF
32459
32460fi
32461
32462
32463
32464
32465    ac_check_func_ext_save_LIBS=$LIBS
32466    LIBS="$KRB5_LIBS $LIBS"
32467        echo "$as_me:$LINENO: checking for krb5_c_enctype_compare" >&5
32468echo $ECHO_N "checking for krb5_c_enctype_compare... $ECHO_C" >&6
32469if test "${ac_cv_func_ext_krb5_c_enctype_compare+set}" = set; then
32470  echo $ECHO_N "(cached) $ECHO_C" >&6
32471else
32472  cat >conftest.$ac_ext <<_ACEOF
32473/* confdefs.h.  */
32474_ACEOF
32475cat confdefs.h >>conftest.$ac_ext
32476cat >>conftest.$ac_ext <<_ACEOF
32477/* end confdefs.h.  */
32478/* Define krb5_c_enctype_compare to an innocuous variant, in case <limits.h> declares krb5_c_enctype_compare.
32479   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32480#define krb5_c_enctype_compare innocuous_krb5_c_enctype_compare
32481
32482/* System header to define __stub macros and hopefully few prototypes,
32483    which can conflict with char krb5_c_enctype_compare (); below.
32484    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32485    <limits.h> exists even on freestanding compilers.  */
32486
32487#ifdef __STDC__
32488# include <limits.h>
32489#else
32490# include <assert.h>
32491#endif
32492
32493#undef krb5_c_enctype_compare
32494
32495/* Override any gcc2 internal prototype to avoid an error.  */
32496#ifdef __cplusplus
32497extern "C"
32498{
32499#endif
32500/* We use char because int might match the return type of a gcc2
32501   builtin and then its argument prototype would still apply.  */
32502char krb5_c_enctype_compare ();
32503/* The GNU C library defines this for functions which it implements
32504    to always fail with ENOSYS.  Some functions are actually named
32505    something starting with __ and the normal name is an alias.  */
32506#if defined (__stub_krb5_c_enctype_compare) || defined (__stub___krb5_c_enctype_compare)
32507choke me
32508#else
32509char (*f) () = krb5_c_enctype_compare;
32510#endif
32511#ifdef __cplusplus
32512}
32513#endif
32514
32515int
32516main ()
32517{
32518return f != krb5_c_enctype_compare;
32519  ;
32520  return 0;
32521}
32522_ACEOF
32523rm -f conftest.$ac_objext conftest$ac_exeext
32524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32525  (eval $ac_link) 2>conftest.er1
32526  ac_status=$?
32527  grep -v '^ *+' conftest.er1 >conftest.err
32528  rm -f conftest.er1
32529  cat conftest.err >&5
32530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531  (exit $ac_status); } &&
32532	 { ac_try='test -z "$ac_c_werror_flag"
32533			 || test ! -s conftest.err'
32534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32535  (eval $ac_try) 2>&5
32536  ac_status=$?
32537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538  (exit $ac_status); }; } &&
32539	 { ac_try='test -s conftest$ac_exeext'
32540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32541  (eval $ac_try) 2>&5
32542  ac_status=$?
32543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544  (exit $ac_status); }; }; then
32545  ac_cv_func_ext_krb5_c_enctype_compare=yes
32546else
32547  echo "$as_me: failed program was:" >&5
32548sed 's/^/| /' conftest.$ac_ext >&5
32549
32550ac_cv_func_ext_krb5_c_enctype_compare=no
32551fi
32552rm -f conftest.err conftest.$ac_objext \
32553      conftest$ac_exeext conftest.$ac_ext
32554fi
32555echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_c_enctype_compare" >&5
32556echo "${ECHO_T}$ac_cv_func_ext_krb5_c_enctype_compare" >&6
32557    LIBS=$ac_check_func_ext_save_LIBS
32558    if test $ac_cv_func_ext_krb5_c_enctype_compare = yes; then
32559  cat >>confdefs.h <<_ACEOF
32560#define HAVE_KRB5_C_ENCTYPE_COMPARE 1
32561_ACEOF
32562
32563fi
32564
32565
32566
32567
32568    ac_check_func_ext_save_LIBS=$LIBS
32569    LIBS="$KRB5_LIBS $LIBS"
32570        echo "$as_me:$LINENO: checking for krb5_enctypes_compatible_keys" >&5
32571echo $ECHO_N "checking for krb5_enctypes_compatible_keys... $ECHO_C" >&6
32572if test "${ac_cv_func_ext_krb5_enctypes_compatible_keys+set}" = set; then
32573  echo $ECHO_N "(cached) $ECHO_C" >&6
32574else
32575  cat >conftest.$ac_ext <<_ACEOF
32576/* confdefs.h.  */
32577_ACEOF
32578cat confdefs.h >>conftest.$ac_ext
32579cat >>conftest.$ac_ext <<_ACEOF
32580/* end confdefs.h.  */
32581/* Define krb5_enctypes_compatible_keys to an innocuous variant, in case <limits.h> declares krb5_enctypes_compatible_keys.
32582   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32583#define krb5_enctypes_compatible_keys innocuous_krb5_enctypes_compatible_keys
32584
32585/* System header to define __stub macros and hopefully few prototypes,
32586    which can conflict with char krb5_enctypes_compatible_keys (); below.
32587    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32588    <limits.h> exists even on freestanding compilers.  */
32589
32590#ifdef __STDC__
32591# include <limits.h>
32592#else
32593# include <assert.h>
32594#endif
32595
32596#undef krb5_enctypes_compatible_keys
32597
32598/* Override any gcc2 internal prototype to avoid an error.  */
32599#ifdef __cplusplus
32600extern "C"
32601{
32602#endif
32603/* We use char because int might match the return type of a gcc2
32604   builtin and then its argument prototype would still apply.  */
32605char krb5_enctypes_compatible_keys ();
32606/* The GNU C library defines this for functions which it implements
32607    to always fail with ENOSYS.  Some functions are actually named
32608    something starting with __ and the normal name is an alias.  */
32609#if defined (__stub_krb5_enctypes_compatible_keys) || defined (__stub___krb5_enctypes_compatible_keys)
32610choke me
32611#else
32612char (*f) () = krb5_enctypes_compatible_keys;
32613#endif
32614#ifdef __cplusplus
32615}
32616#endif
32617
32618int
32619main ()
32620{
32621return f != krb5_enctypes_compatible_keys;
32622  ;
32623  return 0;
32624}
32625_ACEOF
32626rm -f conftest.$ac_objext conftest$ac_exeext
32627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32628  (eval $ac_link) 2>conftest.er1
32629  ac_status=$?
32630  grep -v '^ *+' conftest.er1 >conftest.err
32631  rm -f conftest.er1
32632  cat conftest.err >&5
32633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634  (exit $ac_status); } &&
32635	 { ac_try='test -z "$ac_c_werror_flag"
32636			 || test ! -s conftest.err'
32637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32638  (eval $ac_try) 2>&5
32639  ac_status=$?
32640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641  (exit $ac_status); }; } &&
32642	 { ac_try='test -s conftest$ac_exeext'
32643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32644  (eval $ac_try) 2>&5
32645  ac_status=$?
32646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647  (exit $ac_status); }; }; then
32648  ac_cv_func_ext_krb5_enctypes_compatible_keys=yes
32649else
32650  echo "$as_me: failed program was:" >&5
32651sed 's/^/| /' conftest.$ac_ext >&5
32652
32653ac_cv_func_ext_krb5_enctypes_compatible_keys=no
32654fi
32655rm -f conftest.err conftest.$ac_objext \
32656      conftest$ac_exeext conftest.$ac_ext
32657fi
32658echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_enctypes_compatible_keys" >&5
32659echo "${ECHO_T}$ac_cv_func_ext_krb5_enctypes_compatible_keys" >&6
32660    LIBS=$ac_check_func_ext_save_LIBS
32661    if test $ac_cv_func_ext_krb5_enctypes_compatible_keys = yes; then
32662  cat >>confdefs.h <<_ACEOF
32663#define HAVE_KRB5_ENCTYPES_COMPATIBLE_KEYS 1
32664_ACEOF
32665
32666fi
32667
32668
32669  LIBS="$KRB5_LIBS $LIBS"
32670
32671  echo "$as_me:$LINENO: checking for krb5_encrypt_block type" >&5
32672echo $ECHO_N "checking for krb5_encrypt_block type... $ECHO_C" >&6
32673if test "${samba_cv_HAVE_KRB5_ENCRYPT_BLOCK+set}" = set; then
32674  echo $ECHO_N "(cached) $ECHO_C" >&6
32675else
32676
32677    cat >conftest.$ac_ext <<_ACEOF
32678/* confdefs.h.  */
32679_ACEOF
32680cat confdefs.h >>conftest.$ac_ext
32681cat >>conftest.$ac_ext <<_ACEOF
32682/* end confdefs.h.  */
32683#include <krb5.h>
32684int
32685main ()
32686{
32687krb5_encrypt_block block;
32688  ;
32689  return 0;
32690}
32691_ACEOF
32692rm -f conftest.$ac_objext
32693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32694  (eval $ac_compile) 2>conftest.er1
32695  ac_status=$?
32696  grep -v '^ *+' conftest.er1 >conftest.err
32697  rm -f conftest.er1
32698  cat conftest.err >&5
32699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700  (exit $ac_status); } &&
32701	 { ac_try='test -z "$ac_c_werror_flag"
32702			 || test ! -s conftest.err'
32703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32704  (eval $ac_try) 2>&5
32705  ac_status=$?
32706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707  (exit $ac_status); }; } &&
32708	 { ac_try='test -s conftest.$ac_objext'
32709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32710  (eval $ac_try) 2>&5
32711  ac_status=$?
32712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713  (exit $ac_status); }; }; then
32714  samba_cv_HAVE_KRB5_ENCRYPT_BLOCK=yes
32715else
32716  echo "$as_me: failed program was:" >&5
32717sed 's/^/| /' conftest.$ac_ext >&5
32718
32719samba_cv_HAVE_KRB5_ENCRYPT_BLOCK=no
32720fi
32721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32722fi
32723echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" >&5
32724echo "${ECHO_T}$samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" >&6
32725
32726  if test x"$samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" = x"yes"; then
32727
32728cat >>confdefs.h <<\_ACEOF
32729#define HAVE_KRB5_ENCRYPT_BLOCK 1
32730_ACEOF
32731
32732  fi
32733
32734  echo "$as_me:$LINENO: checking for addrtype in krb5_address" >&5
32735echo $ECHO_N "checking for addrtype in krb5_address... $ECHO_C" >&6
32736if test "${samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS+set}" = set; then
32737  echo $ECHO_N "(cached) $ECHO_C" >&6
32738else
32739
32740    cat >conftest.$ac_ext <<_ACEOF
32741/* confdefs.h.  */
32742_ACEOF
32743cat confdefs.h >>conftest.$ac_ext
32744cat >>conftest.$ac_ext <<_ACEOF
32745/* end confdefs.h.  */
32746#include <krb5.h>
32747int
32748main ()
32749{
32750krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
32751  ;
32752  return 0;
32753}
32754_ACEOF
32755rm -f conftest.$ac_objext
32756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32757  (eval $ac_compile) 2>conftest.er1
32758  ac_status=$?
32759  grep -v '^ *+' conftest.er1 >conftest.err
32760  rm -f conftest.er1
32761  cat conftest.err >&5
32762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763  (exit $ac_status); } &&
32764	 { ac_try='test -z "$ac_c_werror_flag"
32765			 || test ! -s conftest.err'
32766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32767  (eval $ac_try) 2>&5
32768  ac_status=$?
32769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770  (exit $ac_status); }; } &&
32771	 { ac_try='test -s conftest.$ac_objext'
32772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32773  (eval $ac_try) 2>&5
32774  ac_status=$?
32775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776  (exit $ac_status); }; }; then
32777  samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=yes
32778else
32779  echo "$as_me: failed program was:" >&5
32780sed 's/^/| /' conftest.$ac_ext >&5
32781
32782samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=no
32783fi
32784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32785fi
32786echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&5
32787echo "${ECHO_T}$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&6
32788
32789  if test x"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x"yes"; then
32790
32791cat >>confdefs.h <<\_ACEOF
32792#define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
32793_ACEOF
32794
32795  fi
32796
32797  echo "$as_me:$LINENO: checking for addr_type in krb5_address" >&5
32798echo $ECHO_N "checking for addr_type in krb5_address... $ECHO_C" >&6
32799if test "${samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS+set}" = set; then
32800  echo $ECHO_N "(cached) $ECHO_C" >&6
32801else
32802
32803    cat >conftest.$ac_ext <<_ACEOF
32804/* confdefs.h.  */
32805_ACEOF
32806cat confdefs.h >>conftest.$ac_ext
32807cat >>conftest.$ac_ext <<_ACEOF
32808/* end confdefs.h.  */
32809#include <krb5.h>
32810int
32811main ()
32812{
32813krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
32814  ;
32815  return 0;
32816}
32817_ACEOF
32818rm -f conftest.$ac_objext
32819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32820  (eval $ac_compile) 2>conftest.er1
32821  ac_status=$?
32822  grep -v '^ *+' conftest.er1 >conftest.err
32823  rm -f conftest.er1
32824  cat conftest.err >&5
32825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826  (exit $ac_status); } &&
32827	 { ac_try='test -z "$ac_c_werror_flag"
32828			 || test ! -s conftest.err'
32829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830  (eval $ac_try) 2>&5
32831  ac_status=$?
32832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833  (exit $ac_status); }; } &&
32834	 { ac_try='test -s conftest.$ac_objext'
32835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32836  (eval $ac_try) 2>&5
32837  ac_status=$?
32838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839  (exit $ac_status); }; }; then
32840  samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=yes
32841else
32842  echo "$as_me: failed program was:" >&5
32843sed 's/^/| /' conftest.$ac_ext >&5
32844
32845samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=no
32846fi
32847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32848fi
32849echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&5
32850echo "${ECHO_T}$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&6
32851
32852  if test x"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x"yes"; then
32853
32854cat >>confdefs.h <<\_ACEOF
32855#define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
32856_ACEOF
32857
32858  fi
32859
32860  echo "$as_me:$LINENO: checking for enc_part2 in krb5_ticket" >&5
32861echo $ECHO_N "checking for enc_part2 in krb5_ticket... $ECHO_C" >&6
32862if test "${samba_cv_HAVE_KRB5_TKT_ENC_PART2+set}" = set; then
32863  echo $ECHO_N "(cached) $ECHO_C" >&6
32864else
32865  cat >conftest.$ac_ext <<_ACEOF
32866/* confdefs.h.  */
32867_ACEOF
32868cat confdefs.h >>conftest.$ac_ext
32869cat >>conftest.$ac_ext <<_ACEOF
32870/* end confdefs.h.  */
32871#include <krb5.h>
32872int
32873main ()
32874{
32875krb5_ticket tkt; tkt.enc_part2->authorization_data[0]->contents = NULL;
32876  ;
32877  return 0;
32878}
32879_ACEOF
32880rm -f conftest.$ac_objext
32881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32882  (eval $ac_compile) 2>conftest.er1
32883  ac_status=$?
32884  grep -v '^ *+' conftest.er1 >conftest.err
32885  rm -f conftest.er1
32886  cat conftest.err >&5
32887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888  (exit $ac_status); } &&
32889	 { ac_try='test -z "$ac_c_werror_flag"
32890			 || test ! -s conftest.err'
32891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32892  (eval $ac_try) 2>&5
32893  ac_status=$?
32894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895  (exit $ac_status); }; } &&
32896	 { ac_try='test -s conftest.$ac_objext'
32897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32898  (eval $ac_try) 2>&5
32899  ac_status=$?
32900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901  (exit $ac_status); }; }; then
32902  samba_cv_HAVE_KRB5_TKT_ENC_PART2=yes
32903else
32904  echo "$as_me: failed program was:" >&5
32905sed 's/^/| /' conftest.$ac_ext >&5
32906
32907samba_cv_HAVE_KRB5_TKT_ENC_PART2=no
32908fi
32909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32910fi
32911echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_TKT_ENC_PART2" >&5
32912echo "${ECHO_T}$samba_cv_HAVE_KRB5_TKT_ENC_PART2" >&6
32913
32914  if test x"$samba_cv_HAVE_KRB5_TKT_ENC_PART2" = x"yes"; then
32915
32916cat >>confdefs.h <<\_ACEOF
32917#define HAVE_KRB5_TKT_ENC_PART2 1
32918_ACEOF
32919
32920  fi
32921
32922  echo "$as_me:$LINENO: checking for keyblock in krb5_creds" >&5
32923echo $ECHO_N "checking for keyblock in krb5_creds... $ECHO_C" >&6
32924if test "${samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS+set}" = set; then
32925  echo $ECHO_N "(cached) $ECHO_C" >&6
32926else
32927
32928    cat >conftest.$ac_ext <<_ACEOF
32929/* confdefs.h.  */
32930_ACEOF
32931cat confdefs.h >>conftest.$ac_ext
32932cat >>conftest.$ac_ext <<_ACEOF
32933/* end confdefs.h.  */
32934#include <krb5.h>
32935int
32936main ()
32937{
32938krb5_creds creds; krb5_keyblock kb; creds.keyblock = kb;
32939  ;
32940  return 0;
32941}
32942_ACEOF
32943rm -f conftest.$ac_objext
32944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32945  (eval $ac_compile) 2>conftest.er1
32946  ac_status=$?
32947  grep -v '^ *+' conftest.er1 >conftest.err
32948  rm -f conftest.er1
32949  cat conftest.err >&5
32950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951  (exit $ac_status); } &&
32952	 { ac_try='test -z "$ac_c_werror_flag"
32953			 || test ! -s conftest.err'
32954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32955  (eval $ac_try) 2>&5
32956  ac_status=$?
32957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958  (exit $ac_status); }; } &&
32959	 { ac_try='test -s conftest.$ac_objext'
32960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32961  (eval $ac_try) 2>&5
32962  ac_status=$?
32963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964  (exit $ac_status); }; }; then
32965  samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS=yes
32966else
32967  echo "$as_me: failed program was:" >&5
32968sed 's/^/| /' conftest.$ac_ext >&5
32969
32970samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS=no
32971fi
32972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32973fi
32974echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" >&5
32975echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" >&6
32976
32977  if test x"$samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" = x"yes"; then
32978
32979cat >>confdefs.h <<\_ACEOF
32980#define HAVE_KRB5_KEYBLOCK_IN_CREDS 1
32981_ACEOF
32982
32983  fi
32984
32985  echo "$as_me:$LINENO: checking for session in krb5_creds" >&5
32986echo $ECHO_N "checking for session in krb5_creds... $ECHO_C" >&6
32987if test "${samba_cv_HAVE_KRB5_SESSION_IN_CREDS+set}" = set; then
32988  echo $ECHO_N "(cached) $ECHO_C" >&6
32989else
32990
32991    cat >conftest.$ac_ext <<_ACEOF
32992/* confdefs.h.  */
32993_ACEOF
32994cat confdefs.h >>conftest.$ac_ext
32995cat >>conftest.$ac_ext <<_ACEOF
32996/* end confdefs.h.  */
32997#include <krb5.h>
32998int
32999main ()
33000{
33001krb5_creds creds; krb5_keyblock kb; creds.session = kb;
33002  ;
33003  return 0;
33004}
33005_ACEOF
33006rm -f conftest.$ac_objext
33007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33008  (eval $ac_compile) 2>conftest.er1
33009  ac_status=$?
33010  grep -v '^ *+' conftest.er1 >conftest.err
33011  rm -f conftest.er1
33012  cat conftest.err >&5
33013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014  (exit $ac_status); } &&
33015	 { ac_try='test -z "$ac_c_werror_flag"
33016			 || test ! -s conftest.err'
33017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33018  (eval $ac_try) 2>&5
33019  ac_status=$?
33020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021  (exit $ac_status); }; } &&
33022	 { ac_try='test -s conftest.$ac_objext'
33023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33024  (eval $ac_try) 2>&5
33025  ac_status=$?
33026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027  (exit $ac_status); }; }; then
33028  samba_cv_HAVE_KRB5_SESSION_IN_CREDS=yes
33029else
33030  echo "$as_me: failed program was:" >&5
33031sed 's/^/| /' conftest.$ac_ext >&5
33032
33033samba_cv_HAVE_KRB5_SESSION_IN_CREDS=no
33034fi
33035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33036fi
33037echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_SESSION_IN_CREDS" >&5
33038echo "${ECHO_T}$samba_cv_HAVE_KRB5_SESSION_IN_CREDS" >&6
33039
33040  if test x"$samba_cv_HAVE_KRB5_SESSION_IN_CREDS" = x"yes"; then
33041
33042cat >>confdefs.h <<\_ACEOF
33043#define HAVE_KRB5_SESSION_IN_CREDS 1
33044_ACEOF
33045
33046  fi
33047
33048  echo "$as_me:$LINENO: checking for keyvalue in krb5_keyblock" >&5
33049echo $ECHO_N "checking for keyvalue in krb5_keyblock... $ECHO_C" >&6
33050if test "${samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE+set}" = set; then
33051  echo $ECHO_N "(cached) $ECHO_C" >&6
33052else
33053
33054    cat >conftest.$ac_ext <<_ACEOF
33055/* confdefs.h.  */
33056_ACEOF
33057cat confdefs.h >>conftest.$ac_ext
33058cat >>conftest.$ac_ext <<_ACEOF
33059/* end confdefs.h.  */
33060#include <krb5.h>
33061int
33062main ()
33063{
33064krb5_keyblock key; key.keyvalue.data = NULL;
33065  ;
33066  return 0;
33067}
33068_ACEOF
33069rm -f conftest.$ac_objext
33070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33071  (eval $ac_compile) 2>conftest.er1
33072  ac_status=$?
33073  grep -v '^ *+' conftest.er1 >conftest.err
33074  rm -f conftest.er1
33075  cat conftest.err >&5
33076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077  (exit $ac_status); } &&
33078	 { ac_try='test -z "$ac_c_werror_flag"
33079			 || test ! -s conftest.err'
33080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081  (eval $ac_try) 2>&5
33082  ac_status=$?
33083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084  (exit $ac_status); }; } &&
33085	 { ac_try='test -s conftest.$ac_objext'
33086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087  (eval $ac_try) 2>&5
33088  ac_status=$?
33089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090  (exit $ac_status); }; }; then
33091  samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE=yes
33092else
33093  echo "$as_me: failed program was:" >&5
33094sed 's/^/| /' conftest.$ac_ext >&5
33095
33096samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE=no
33097fi
33098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33099fi
33100echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" >&5
33101echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" >&6
33102
33103  if test x"$samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" = x"yes"; then
33104
33105cat >>confdefs.h <<\_ACEOF
33106#define HAVE_KRB5_KEYBLOCK_KEYVALUE 1
33107_ACEOF
33108
33109  fi
33110
33111  echo "$as_me:$LINENO: checking for ENCTYPE_ARCFOUR_HMAC_MD5" >&5
33112echo $ECHO_N "checking for ENCTYPE_ARCFOUR_HMAC_MD5... $ECHO_C" >&6
33113if test "${samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5+set}" = set; then
33114  echo $ECHO_N "(cached) $ECHO_C" >&6
33115else
33116
33117    cat >conftest.$ac_ext <<_ACEOF
33118/* confdefs.h.  */
33119_ACEOF
33120cat confdefs.h >>conftest.$ac_ext
33121cat >>conftest.$ac_ext <<_ACEOF
33122/* end confdefs.h.  */
33123#include <krb5.h>
33124int
33125main ()
33126{
33127krb5_enctype enctype; enctype = ENCTYPE_ARCFOUR_HMAC_MD5;
33128  ;
33129  return 0;
33130}
33131_ACEOF
33132rm -f conftest.$ac_objext
33133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33134  (eval $ac_compile) 2>conftest.er1
33135  ac_status=$?
33136  grep -v '^ *+' conftest.er1 >conftest.err
33137  rm -f conftest.er1
33138  cat conftest.err >&5
33139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140  (exit $ac_status); } &&
33141	 { ac_try='test -z "$ac_c_werror_flag"
33142			 || test ! -s conftest.err'
33143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33144  (eval $ac_try) 2>&5
33145  ac_status=$?
33146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147  (exit $ac_status); }; } &&
33148	 { ac_try='test -s conftest.$ac_objext'
33149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33150  (eval $ac_try) 2>&5
33151  ac_status=$?
33152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153  (exit $ac_status); }; }; then
33154  samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5=yes
33155else
33156  echo "$as_me: failed program was:" >&5
33157sed 's/^/| /' conftest.$ac_ext >&5
33158
33159samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5=no
33160fi
33161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33162fi
33163echo "$as_me:$LINENO: result: $samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" >&5
33164echo "${ECHO_T}$samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" >&6
33165  echo "$as_me:$LINENO: checking for KEYTYPE_ARCFOUR_56" >&5
33166echo $ECHO_N "checking for KEYTYPE_ARCFOUR_56... $ECHO_C" >&6
33167if test "${samba_cv_HAVE_KEYTYPE_ARCFOUR_56+set}" = set; then
33168  echo $ECHO_N "(cached) $ECHO_C" >&6
33169else
33170
33171    cat >conftest.$ac_ext <<_ACEOF
33172/* confdefs.h.  */
33173_ACEOF
33174cat confdefs.h >>conftest.$ac_ext
33175cat >>conftest.$ac_ext <<_ACEOF
33176/* end confdefs.h.  */
33177#include <krb5.h>
33178int
33179main ()
33180{
33181krb5_keytype keytype; keytype = KEYTYPE_ARCFOUR_56;
33182  ;
33183  return 0;
33184}
33185_ACEOF
33186rm -f conftest.$ac_objext
33187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33188  (eval $ac_compile) 2>conftest.er1
33189  ac_status=$?
33190  grep -v '^ *+' conftest.er1 >conftest.err
33191  rm -f conftest.er1
33192  cat conftest.err >&5
33193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194  (exit $ac_status); } &&
33195	 { ac_try='test -z "$ac_c_werror_flag"
33196			 || test ! -s conftest.err'
33197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33198  (eval $ac_try) 2>&5
33199  ac_status=$?
33200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201  (exit $ac_status); }; } &&
33202	 { ac_try='test -s conftest.$ac_objext'
33203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33204  (eval $ac_try) 2>&5
33205  ac_status=$?
33206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207  (exit $ac_status); }; }; then
33208  samba_cv_HAVE_KEYTYPE_ARCFOUR_56=yes
33209else
33210  echo "$as_me: failed program was:" >&5
33211sed 's/^/| /' conftest.$ac_ext >&5
33212
33213samba_cv_HAVE_KEYTYPE_ARCFOUR_56=no
33214fi
33215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33216fi
33217echo "$as_me:$LINENO: result: $samba_cv_HAVE_KEYTYPE_ARCFOUR_56" >&5
33218echo "${ECHO_T}$samba_cv_HAVE_KEYTYPE_ARCFOUR_56" >&6
33219# Heimdals with KEYTYPE_ARCFOUR but not KEYTYPE_ARCFOUR_56 are broken
33220# w.r.t. arcfour and windows, so we must not enable it here
33221  if test x"$samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" = x"yes" -a\
33222          x"$samba_cv_HAVE_KEYTYPE_ARCFOUR_56" = x"yes"; then
33223
33224cat >>confdefs.h <<\_ACEOF
33225#define HAVE_ENCTYPE_ARCFOUR_HMAC_MD5 1
33226_ACEOF
33227
33228  fi
33229
33230  echo "$as_me:$LINENO: checking for AP_OPTS_USE_SUBKEY" >&5
33231echo $ECHO_N "checking for AP_OPTS_USE_SUBKEY... $ECHO_C" >&6
33232if test "${samba_cv_HAVE_AP_OPTS_USE_SUBKEY+set}" = set; then
33233  echo $ECHO_N "(cached) $ECHO_C" >&6
33234else
33235
33236    cat >conftest.$ac_ext <<_ACEOF
33237/* confdefs.h.  */
33238_ACEOF
33239cat confdefs.h >>conftest.$ac_ext
33240cat >>conftest.$ac_ext <<_ACEOF
33241/* end confdefs.h.  */
33242#include <krb5.h>
33243int
33244main ()
33245{
33246krb5_flags ap_options; ap_options = AP_OPTS_USE_SUBKEY;
33247  ;
33248  return 0;
33249}
33250_ACEOF
33251rm -f conftest.$ac_objext
33252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33253  (eval $ac_compile) 2>conftest.er1
33254  ac_status=$?
33255  grep -v '^ *+' conftest.er1 >conftest.err
33256  rm -f conftest.er1
33257  cat conftest.err >&5
33258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259  (exit $ac_status); } &&
33260	 { ac_try='test -z "$ac_c_werror_flag"
33261			 || test ! -s conftest.err'
33262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33263  (eval $ac_try) 2>&5
33264  ac_status=$?
33265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266  (exit $ac_status); }; } &&
33267	 { ac_try='test -s conftest.$ac_objext'
33268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33269  (eval $ac_try) 2>&5
33270  ac_status=$?
33271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272  (exit $ac_status); }; }; then
33273  samba_cv_HAVE_AP_OPTS_USE_SUBKEY=yes
33274else
33275  echo "$as_me: failed program was:" >&5
33276sed 's/^/| /' conftest.$ac_ext >&5
33277
33278samba_cv_HAVE_AP_OPTS_USE_SUBKEY=no
33279fi
33280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33281fi
33282echo "$as_me:$LINENO: result: $samba_cv_HAVE_AP_OPTS_USE_SUBKEY" >&5
33283echo "${ECHO_T}$samba_cv_HAVE_AP_OPTS_USE_SUBKEY" >&6
33284
33285  if test x"$samba_cv_HAVE_AP_OPTS_USE_SUBKEY" = x"yes"; then
33286
33287cat >>confdefs.h <<\_ACEOF
33288#define HAVE_AP_OPTS_USE_SUBKEY 1
33289_ACEOF
33290
33291  fi
33292
33293  echo "$as_me:$LINENO: checking for KV5M_KEYTAB" >&5
33294echo $ECHO_N "checking for KV5M_KEYTAB... $ECHO_C" >&6
33295if test "${samba_cv_HAVE_KV5M_KEYTAB+set}" = set; then
33296  echo $ECHO_N "(cached) $ECHO_C" >&6
33297else
33298
33299    cat >conftest.$ac_ext <<_ACEOF
33300/* confdefs.h.  */
33301_ACEOF
33302cat confdefs.h >>conftest.$ac_ext
33303cat >>conftest.$ac_ext <<_ACEOF
33304/* end confdefs.h.  */
33305#include <krb5.h>
33306int
33307main ()
33308{
33309krb5_keytab_entry entry; entry.magic = KV5M_KEYTAB;
33310  ;
33311  return 0;
33312}
33313_ACEOF
33314rm -f conftest.$ac_objext
33315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33316  (eval $ac_compile) 2>conftest.er1
33317  ac_status=$?
33318  grep -v '^ *+' conftest.er1 >conftest.err
33319  rm -f conftest.er1
33320  cat conftest.err >&5
33321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322  (exit $ac_status); } &&
33323	 { ac_try='test -z "$ac_c_werror_flag"
33324			 || test ! -s conftest.err'
33325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33326  (eval $ac_try) 2>&5
33327  ac_status=$?
33328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329  (exit $ac_status); }; } &&
33330	 { ac_try='test -s conftest.$ac_objext'
33331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33332  (eval $ac_try) 2>&5
33333  ac_status=$?
33334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33335  (exit $ac_status); }; }; then
33336  samba_cv_HAVE_KV5M_KEYTAB=yes
33337else
33338  echo "$as_me: failed program was:" >&5
33339sed 's/^/| /' conftest.$ac_ext >&5
33340
33341samba_cv_HAVE_KV5M_KEYTAB=no
33342fi
33343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33344fi
33345echo "$as_me:$LINENO: result: $samba_cv_HAVE_KV5M_KEYTAB" >&5
33346echo "${ECHO_T}$samba_cv_HAVE_KV5M_KEYTAB" >&6
33347
33348  if test x"$samba_cv_HAVE_KV5M_KEYTAB" = x"yes"; then
33349
33350cat >>confdefs.h <<\_ACEOF
33351#define HAVE_KV5M_KEYTAB 1
33352_ACEOF
33353
33354  fi
33355
33356  echo "$as_me:$LINENO: checking for the krb5_princ_component macro" >&5
33357echo $ECHO_N "checking for the krb5_princ_component macro... $ECHO_C" >&6
33358if test "${samba_cv_HAVE_KRB5_PRINC_COMPONENT+set}" = set; then
33359  echo $ECHO_N "(cached) $ECHO_C" >&6
33360else
33361
33362    cat >conftest.$ac_ext <<_ACEOF
33363/* confdefs.h.  */
33364_ACEOF
33365cat confdefs.h >>conftest.$ac_ext
33366cat >>conftest.$ac_ext <<_ACEOF
33367/* end confdefs.h.  */
33368#include <krb5.h>
33369int
33370main ()
33371{
33372const krb5_data *pkdata; krb5_context context; krb5_principal principal; pkdata = krb5_princ_component(context, principal, 0);
33373  ;
33374  return 0;
33375}
33376_ACEOF
33377rm -f conftest.$ac_objext conftest$ac_exeext
33378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33379  (eval $ac_link) 2>conftest.er1
33380  ac_status=$?
33381  grep -v '^ *+' conftest.er1 >conftest.err
33382  rm -f conftest.er1
33383  cat conftest.err >&5
33384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385  (exit $ac_status); } &&
33386	 { ac_try='test -z "$ac_c_werror_flag"
33387			 || test ! -s conftest.err'
33388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389  (eval $ac_try) 2>&5
33390  ac_status=$?
33391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392  (exit $ac_status); }; } &&
33393	 { ac_try='test -s conftest$ac_exeext'
33394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395  (eval $ac_try) 2>&5
33396  ac_status=$?
33397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398  (exit $ac_status); }; }; then
33399  samba_cv_HAVE_KRB5_PRINC_COMPONENT=yes
33400else
33401  echo "$as_me: failed program was:" >&5
33402sed 's/^/| /' conftest.$ac_ext >&5
33403
33404samba_cv_HAVE_KRB5_PRINC_COMPONENT=no
33405fi
33406rm -f conftest.err conftest.$ac_objext \
33407      conftest$ac_exeext conftest.$ac_ext
33408fi
33409echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_PRINC_COMPONENT" >&5
33410echo "${ECHO_T}$samba_cv_HAVE_KRB5_PRINC_COMPONENT" >&6
33411
33412  if test x"$samba_cv_HAVE_KRB5_PRINC_COMPONENT" = x"yes"; then
33413
33414cat >>confdefs.h <<\_ACEOF
33415#define HAVE_KRB5_PRINC_COMPONENT 1
33416_ACEOF
33417
33418  fi
33419
33420  echo "$as_me:$LINENO: checking for key in krb5_keytab_entry" >&5
33421echo $ECHO_N "checking for key in krb5_keytab_entry... $ECHO_C" >&6
33422if test "${samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY+set}" = set; then
33423  echo $ECHO_N "(cached) $ECHO_C" >&6
33424else
33425
33426    cat >conftest.$ac_ext <<_ACEOF
33427/* confdefs.h.  */
33428_ACEOF
33429cat confdefs.h >>conftest.$ac_ext
33430cat >>conftest.$ac_ext <<_ACEOF
33431/* end confdefs.h.  */
33432#include <krb5.h>
33433int
33434main ()
33435{
33436krb5_keytab_entry entry; krb5_keyblock e; entry.key = e;
33437  ;
33438  return 0;
33439}
33440_ACEOF
33441rm -f conftest.$ac_objext
33442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33443  (eval $ac_compile) 2>conftest.er1
33444  ac_status=$?
33445  grep -v '^ *+' conftest.er1 >conftest.err
33446  rm -f conftest.er1
33447  cat conftest.err >&5
33448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449  (exit $ac_status); } &&
33450	 { ac_try='test -z "$ac_c_werror_flag"
33451			 || test ! -s conftest.err'
33452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453  (eval $ac_try) 2>&5
33454  ac_status=$?
33455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456  (exit $ac_status); }; } &&
33457	 { ac_try='test -s conftest.$ac_objext'
33458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459  (eval $ac_try) 2>&5
33460  ac_status=$?
33461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462  (exit $ac_status); }; }; then
33463  samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY=yes
33464else
33465  echo "$as_me: failed program was:" >&5
33466sed 's/^/| /' conftest.$ac_ext >&5
33467
33468samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY=no
33469fi
33470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33471fi
33472echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" >&5
33473echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" >&6
33474
33475  if test x"$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" = x"yes"; then
33476
33477cat >>confdefs.h <<\_ACEOF
33478#define HAVE_KRB5_KEYTAB_ENTRY_KEY 1
33479_ACEOF
33480
33481  fi
33482
33483  echo "$as_me:$LINENO: checking for keyblock in krb5_keytab_entry" >&5
33484echo $ECHO_N "checking for keyblock in krb5_keytab_entry... $ECHO_C" >&6
33485if test "${samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK+set}" = set; then
33486  echo $ECHO_N "(cached) $ECHO_C" >&6
33487else
33488
33489    cat >conftest.$ac_ext <<_ACEOF
33490/* confdefs.h.  */
33491_ACEOF
33492cat confdefs.h >>conftest.$ac_ext
33493cat >>conftest.$ac_ext <<_ACEOF
33494/* end confdefs.h.  */
33495#include <krb5.h>
33496int
33497main ()
33498{
33499krb5_keytab_entry entry; entry.keyblock.keytype = 0;
33500  ;
33501  return 0;
33502}
33503_ACEOF
33504rm -f conftest.$ac_objext
33505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33506  (eval $ac_compile) 2>conftest.er1
33507  ac_status=$?
33508  grep -v '^ *+' conftest.er1 >conftest.err
33509  rm -f conftest.er1
33510  cat conftest.err >&5
33511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512  (exit $ac_status); } &&
33513	 { ac_try='test -z "$ac_c_werror_flag"
33514			 || test ! -s conftest.err'
33515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33516  (eval $ac_try) 2>&5
33517  ac_status=$?
33518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519  (exit $ac_status); }; } &&
33520	 { ac_try='test -s conftest.$ac_objext'
33521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33522  (eval $ac_try) 2>&5
33523  ac_status=$?
33524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525  (exit $ac_status); }; }; then
33526  samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK=yes
33527else
33528  echo "$as_me: failed program was:" >&5
33529sed 's/^/| /' conftest.$ac_ext >&5
33530
33531samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK=no
33532fi
33533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33534fi
33535echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" >&5
33536echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" >&6
33537
33538  if test x"$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" = x"yes"; then
33539
33540cat >>confdefs.h <<\_ACEOF
33541#define HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK 1
33542_ACEOF
33543
33544  fi
33545
33546  if test x"$ac_cv_lib_ext_krb5_krb5_mk_req_extended" = x"yes"; then
33547
33548cat >>confdefs.h <<\_ACEOF
33549#define HAVE_KRB5 1
33550_ACEOF
33551
33552
33553cat >>confdefs.h <<\_ACEOF
33554#define WITH_ADS 1
33555_ACEOF
33556
33557    echo "$as_me:$LINENO: checking whether Active Directory and krb5 support is used" >&5
33558echo $ECHO_N "checking whether Active Directory and krb5 support is used... $ECHO_C" >&6
33559    echo "$as_me:$LINENO: result: yes" >&5
33560echo "${ECHO_T}yes" >&6
33561  else
33562    if test x"$with_ads_support" = x"yes"; then
33563	{ { echo "$as_me:$LINENO: error: libkrb5 is needed for Active Directory support" >&5
33564echo "$as_me: error: libkrb5 is needed for Active Directory support" >&2;}
33565   { (exit 1); exit 1; }; }
33566    else
33567	{ echo "$as_me:$LINENO: WARNING: libkrb5 is needed for Active Directory support" >&5
33568echo "$as_me: WARNING: libkrb5 is needed for Active Directory support" >&2;}
33569    fi
33570    KRB5_LIBS=""
33571    with_ads_support=no
33572  fi
33573
33574  echo "$as_me:$LINENO: checking for WRFILE: keytab support" >&5
33575echo $ECHO_N "checking for WRFILE: keytab support... $ECHO_C" >&6
33576if test "${samba_cv_HAVE_WRFILE_KEYTAB+set}" = set; then
33577  echo $ECHO_N "(cached) $ECHO_C" >&6
33578else
33579
33580    if test "$cross_compiling" = yes; then
33581  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33582See \`config.log' for more details." >&5
33583echo "$as_me: error: cannot run test program while cross compiling
33584See \`config.log' for more details." >&2;}
33585   { (exit 1); exit 1; }; }
33586else
33587  cat >conftest.$ac_ext <<_ACEOF
33588/* confdefs.h.  */
33589_ACEOF
33590cat confdefs.h >>conftest.$ac_ext
33591cat >>conftest.$ac_ext <<_ACEOF
33592/* end confdefs.h.  */
33593
33594#include<krb5.h>
33595  main()
33596  {
33597    krb5_context context;
33598    krb5_keytab keytab;
33599
33600    krb5_init_context(&context);
33601    return krb5_kt_resolve(context, "WRFILE:api", &keytab);
33602  }
33603_ACEOF
33604rm -f conftest$ac_exeext
33605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33606  (eval $ac_link) 2>&5
33607  ac_status=$?
33608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611  (eval $ac_try) 2>&5
33612  ac_status=$?
33613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614  (exit $ac_status); }; }; then
33615  samba_cv_HAVE_WRFILE_KEYTAB=yes
33616else
33617  echo "$as_me: program exited with status $ac_status" >&5
33618echo "$as_me: failed program was:" >&5
33619sed 's/^/| /' conftest.$ac_ext >&5
33620
33621( exit $ac_status )
33622samba_cv_HAVE_WRFILE_KEYTAB=no
33623fi
33624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33625fi
33626fi
33627echo "$as_me:$LINENO: result: $samba_cv_HAVE_WRFILE_KEYTAB" >&5
33628echo "${ECHO_T}$samba_cv_HAVE_WRFILE_KEYTAB" >&6
33629
33630  if test x"$samba_cv_HAVE_WRFILE_KEYTAB" = x"yes"; then
33631
33632cat >>confdefs.h <<\_ACEOF
33633#define HAVE_WRFILE_KEYTAB 1
33634_ACEOF
33635
33636  fi
33637
33638  echo "$as_me:$LINENO: checking for krb5_princ_realm returns krb5_realm or krb5_data" >&5
33639echo $ECHO_N "checking for krb5_princ_realm returns krb5_realm or krb5_data... $ECHO_C" >&6
33640if test "${samba_cv_KRB5_PRINC_REALM_RETURNS_REALM+set}" = set; then
33641  echo $ECHO_N "(cached) $ECHO_C" >&6
33642else
33643
33644    cat >conftest.$ac_ext <<_ACEOF
33645/* confdefs.h.  */
33646_ACEOF
33647cat confdefs.h >>conftest.$ac_ext
33648cat >>conftest.$ac_ext <<_ACEOF
33649/* end confdefs.h.  */
33650#include <krb5.h>
33651int
33652main ()
33653{
33654
33655    krb5_context context;
33656    krb5_principal principal;
33657    krb5_realm realm; realm = *krb5_princ_realm(context, principal);
33658  ;
33659  return 0;
33660}
33661_ACEOF
33662rm -f conftest.$ac_objext
33663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33664  (eval $ac_compile) 2>conftest.er1
33665  ac_status=$?
33666  grep -v '^ *+' conftest.er1 >conftest.err
33667  rm -f conftest.er1
33668  cat conftest.err >&5
33669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670  (exit $ac_status); } &&
33671	 { ac_try='test -z "$ac_c_werror_flag"
33672			 || test ! -s conftest.err'
33673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33674  (eval $ac_try) 2>&5
33675  ac_status=$?
33676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677  (exit $ac_status); }; } &&
33678	 { ac_try='test -s conftest.$ac_objext'
33679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680  (eval $ac_try) 2>&5
33681  ac_status=$?
33682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683  (exit $ac_status); }; }; then
33684  samba_cv_KRB5_PRINC_REALM_RETURNS_REALM=yes
33685else
33686  echo "$as_me: failed program was:" >&5
33687sed 's/^/| /' conftest.$ac_ext >&5
33688
33689samba_cv_KRB5_PRINC_REALM_RETURNS_REALM=no
33690fi
33691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33692fi
33693echo "$as_me:$LINENO: result: $samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" >&5
33694echo "${ECHO_T}$samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" >&6
33695
33696  if test x"$samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" = x"yes"; then
33697
33698cat >>confdefs.h <<\_ACEOF
33699#define KRB5_PRINC_REALM_RETURNS_REALM 1
33700_ACEOF
33701
33702  fi
33703
33704LIBS="$ac_save_LIBS"
33705fi
33706
33707########################################################
33708# Compile experimental passdb backends?
33709# (pdb_xml, pdb_mysql, pdb_pgsql)
33710echo "$as_me:$LINENO: checking whether to build experimental passdb libraries" >&5
33711echo $ECHO_N "checking whether to build experimental passdb libraries... $ECHO_C" >&6
33712
33713# Check whether --with-expsam or --without-expsam was given.
33714if test "${with_expsam+set}" = set; then
33715  withval="$with_expsam"
33716   expsam_pdb_modules=`echo "$withval" | sed 's/,/ /g'`
33717  if test "z$expsam_pdb_modules" = "zyes"; then
33718    expsam_pdb_modules="xml mysql pgsql"
33719  fi
33720  echo "$as_me:$LINENO: result: $expsam_pdb_modules" >&5
33721echo "${ECHO_T}$expsam_pdb_modules" >&6
33722  for i in $expsam_pdb_modules
33723  do
33724    case "$i" in
33725    xml|all|yes)
33726      ## pdb_xml
33727
33728
33729# Check whether --with-xml-prefix or --without-xml-prefix was given.
33730if test "${with_xml_prefix+set}" = set; then
33731  withval="$with_xml_prefix"
33732  xml_config_prefix="$withval"
33733else
33734  xml_config_prefix=""
33735fi;
33736
33737# Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
33738if test "${with_xml_exec_prefix+set}" = set; then
33739  withval="$with_xml_exec_prefix"
33740  xml_config_exec_prefix="$withval"
33741else
33742  xml_config_exec_prefix=""
33743fi;
33744# Check whether --enable-xmltest or --disable-xmltest was given.
33745if test "${enable_xmltest+set}" = set; then
33746  enableval="$enable_xmltest"
33747
33748else
33749  enable_xmltest=yes
33750fi;
33751
33752  if test x$xml_config_exec_prefix != x ; then
33753     xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
33754     if test x${XML2_CONFIG+set} != xset ; then
33755        XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
33756     fi
33757  fi
33758  if test x$xml_config_prefix != x ; then
33759     xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
33760     if test x${XML2_CONFIG+set} != xset ; then
33761        XML2_CONFIG=$xml_config_prefix/bin/xml2-config
33762     fi
33763  fi
33764
33765  # Extract the first word of "xml2-config", so it can be a program name with args.
33766set dummy xml2-config; ac_word=$2
33767echo "$as_me:$LINENO: checking for $ac_word" >&5
33768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33769if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
33770  echo $ECHO_N "(cached) $ECHO_C" >&6
33771else
33772  case $XML2_CONFIG in
33773  [\\/]* | ?:[\\/]*)
33774  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
33775  ;;
33776  *)
33777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33778for as_dir in $PATH
33779do
33780  IFS=$as_save_IFS
33781  test -z "$as_dir" && as_dir=.
33782  for ac_exec_ext in '' $ac_executable_extensions; do
33783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33784    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33786    break 2
33787  fi
33788done
33789done
33790
33791  test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
33792  ;;
33793esac
33794fi
33795XML2_CONFIG=$ac_cv_path_XML2_CONFIG
33796
33797if test -n "$XML2_CONFIG"; then
33798  echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
33799echo "${ECHO_T}$XML2_CONFIG" >&6
33800else
33801  echo "$as_me:$LINENO: result: no" >&5
33802echo "${ECHO_T}no" >&6
33803fi
33804
33805  min_xml_version=2.0.0
33806  echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
33807echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
33808  no_xml=""
33809  if test "$XML2_CONFIG" = "no" ; then
33810    no_xml=yes
33811  else
33812    XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
33813    XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
33814    xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
33815           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33816    xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
33817           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33818    xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
33819           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33820    if test "x$enable_xmltest" = "xyes" ; then
33821      ac_save_CFLAGS="$CFLAGS"
33822      ac_save_LIBS="$LIBS"
33823      CFLAGS="$CFLAGS $XML_CFLAGS"
33824      LIBS="$XML_LIBS $LIBS"
33825      rm -f conf.xmltest
33826      if test "$cross_compiling" = yes; then
33827  echo $ac_n "cross compiling; assumed OK... $ac_c"
33828else
33829  cat >conftest.$ac_ext <<_ACEOF
33830/* confdefs.h.  */
33831_ACEOF
33832cat confdefs.h >>conftest.$ac_ext
33833cat >>conftest.$ac_ext <<_ACEOF
33834/* end confdefs.h.  */
33835
33836#include <stdlib.h>
33837#include <stdio.h>
33838#include <string.h>
33839#include <libxml/xmlversion.h>
33840
33841int
33842main()
33843{
33844  int xml_major_version, xml_minor_version, xml_micro_version;
33845  int major, minor, micro;
33846  char *tmp_version;
33847
33848  system("touch conf.xmltest");
33849
33850  /* Capture xml2-config output via autoconf/configure variables */
33851  /* HP/UX 9 (%@#!) writes to sscanf strings */
33852  tmp_version = (char *)strdup("$min_xml_version");
33853  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
33854     printf("%s, bad version string from xml2-config\n", "$min_xml_version");
33855     exit(1);
33856   }
33857   free(tmp_version);
33858
33859   /* Capture the version information from the header files */
33860   tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
33861   if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
33862     printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
33863     exit(1);
33864   }
33865   free(tmp_version);
33866
33867 /* Compare xml2-config output to the libxml headers */
33868  if ((xml_major_version != $xml_config_major_version) ||
33869      (xml_minor_version != $xml_config_minor_version) ||
33870      (xml_micro_version != $xml_config_micro_version))
33871    {
33872      printf("*** libxml header files (version %d.%d.%d) do not match\n",
33873         xml_major_version, xml_minor_version, xml_micro_version);
33874      printf("*** xml2-config (version %d.%d.%d)\n",
33875         $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
33876      return 1;
33877    }
33878/* Compare the headers to the library to make sure we match */
33879  /* Less than ideal -- doesn't provide us with return value feedback,
33880   * only exits if there's a serious mismatch between header and library.
33881   */
33882    LIBXML_TEST_VERSION;
33883
33884    /* Test that the library is greater than our minimum version */
33885    if ((xml_major_version > major) ||
33886        ((xml_major_version == major) && (xml_minor_version > minor)) ||
33887        ((xml_major_version == major) && (xml_minor_version == minor) &&
33888        (xml_micro_version >= micro)))
33889      {
33890        return 0;
33891       }
33892     else
33893      {
33894        printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
33895               xml_major_version, xml_minor_version, xml_micro_version);
33896        printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
33897           major, minor, micro);
33898        printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
33899        printf("***\n");
33900        printf("*** If you have already installed a sufficiently new version, this error\n");
33901        printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
33902        printf("*** being found. The easiest way to fix this is to remove the old version\n");
33903        printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
33904        printf("*** correct copy of xml2-config. (In this case, you will have to\n");
33905        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
33906        printf("*** so that the correct libraries are found at run-time))\n");
33907    }
33908  return 1;
33909}
33910
33911_ACEOF
33912rm -f conftest$ac_exeext
33913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33914  (eval $ac_link) 2>&5
33915  ac_status=$?
33916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33919  (eval $ac_try) 2>&5
33920  ac_status=$?
33921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922  (exit $ac_status); }; }; then
33923  :
33924else
33925  echo "$as_me: program exited with status $ac_status" >&5
33926echo "$as_me: failed program was:" >&5
33927sed 's/^/| /' conftest.$ac_ext >&5
33928
33929( exit $ac_status )
33930no_xml=yes
33931fi
33932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33933fi
33934       CFLAGS="$ac_save_CFLAGS"
33935       LIBS="$ac_save_LIBS"
33936     fi
33937  fi
33938
33939  if test "x$no_xml" = x ; then
33940     echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
33941echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
33942     default_shared_modules="$default_shared_modules pdb_xml"
33943  else
33944     echo "$as_me:$LINENO: result: no" >&5
33945echo "${ECHO_T}no" >&6
33946     if test "$XML2_CONFIG" = "no" ; then
33947       echo "*** The xml2-config script installed by LIBXML could not be found"
33948       echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
33949       echo "*** your path, or set the XML2_CONFIG environment variable to the"
33950       echo "*** full path to xml2-config."
33951     else
33952       if test -f conf.xmltest ; then
33953        :
33954       else
33955          echo "*** Could not run libxml test program, checking why..."
33956          CFLAGS="$CFLAGS $XML_CFLAGS"
33957          LIBS="$LIBS $XML_LIBS"
33958          cat >conftest.$ac_ext <<_ACEOF
33959/* confdefs.h.  */
33960_ACEOF
33961cat confdefs.h >>conftest.$ac_ext
33962cat >>conftest.$ac_ext <<_ACEOF
33963/* end confdefs.h.  */
33964
33965#include <libxml/xmlversion.h>
33966#include <stdio.h>
33967
33968int
33969main ()
33970{
33971 LIBXML_TEST_VERSION; return 0;
33972  ;
33973  return 0;
33974}
33975_ACEOF
33976rm -f conftest.$ac_objext conftest$ac_exeext
33977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33978  (eval $ac_link) 2>conftest.er1
33979  ac_status=$?
33980  grep -v '^ *+' conftest.er1 >conftest.err
33981  rm -f conftest.er1
33982  cat conftest.err >&5
33983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984  (exit $ac_status); } &&
33985	 { ac_try='test -z "$ac_c_werror_flag"
33986			 || test ! -s conftest.err'
33987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988  (eval $ac_try) 2>&5
33989  ac_status=$?
33990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991  (exit $ac_status); }; } &&
33992	 { ac_try='test -s conftest$ac_exeext'
33993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33994  (eval $ac_try) 2>&5
33995  ac_status=$?
33996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997  (exit $ac_status); }; }; then
33998   echo "*** The test program compiled, but did not run. This usually means"
33999          echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
34000          echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
34001          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34002          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
34003          echo "*** is required on your system"
34004          echo "***"
34005          echo "*** If you have an old version installed, it is best to remove it, although"
34006          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34007else
34008  echo "$as_me: failed program was:" >&5
34009sed 's/^/| /' conftest.$ac_ext >&5
34010
34011 echo "*** The test program failed to compile or link. See the file config.log for the"
34012          echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
34013          echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
34014          echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
34015fi
34016rm -f conftest.err conftest.$ac_objext \
34017      conftest$ac_exeext conftest.$ac_ext
34018          CFLAGS="$ac_save_CFLAGS"
34019          LIBS="$ac_save_LIBS"
34020       fi
34021     fi
34022
34023     XML_CFLAGS=""
34024     XML_LIBS=""
34025     { { echo "$as_me:$LINENO: error: Can't find XML libraries while XML support is requested" >&5
34026echo "$as_me: error: Can't find XML libraries while XML support is requested" >&2;}
34027   { (exit 1); exit 1; }; }
34028  fi
34029
34030
34031  rm -f conf.xmltest
34032
34033      CFLAGS="$CFLAGS $XML_CFLAGS"
34034      ;;
34035    mysql|all|yes)
34036      ## pdb_mysql
34037
34038# Check whether --with-mysql-prefix or --without-mysql-prefix was given.
34039if test "${with_mysql_prefix+set}" = set; then
34040  withval="$with_mysql_prefix"
34041  mysql_prefix="$withval"
34042else
34043  mysql_prefix=""
34044fi;
34045
34046# Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
34047if test "${with_mysql_exec_prefix+set}" = set; then
34048  withval="$with_mysql_exec_prefix"
34049  mysql_exec_prefix="$withval"
34050else
34051  mysql_exec_prefix=""
34052fi;
34053
34054  if test x$mysql_exec_prefix != x ; then
34055     mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
34056     if test x${MYSQL_CONFIG+set} != xset ; then
34057        MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
34058     fi
34059  fi
34060  if test x$mysql_prefix != x ; then
34061     mysql_args="$mysql_args --prefix=$mysql_prefix"
34062     if test x${MYSQL_CONFIG+set} != xset ; then
34063        MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
34064     fi
34065  fi
34066
34067
34068  # Extract the first word of "mysql_config", so it can be a program name with args.
34069set dummy mysql_config; ac_word=$2
34070echo "$as_me:$LINENO: checking for $ac_word" >&5
34071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34072if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
34073  echo $ECHO_N "(cached) $ECHO_C" >&6
34074else
34075  case $MYSQL_CONFIG in
34076  [\\/]* | ?:[\\/]*)
34077  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
34078  ;;
34079  *)
34080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34081for as_dir in $PATH
34082do
34083  IFS=$as_save_IFS
34084  test -z "$as_dir" && as_dir=.
34085  for ac_exec_ext in '' $ac_executable_extensions; do
34086  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34087    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34088    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34089    break 2
34090  fi
34091done
34092done
34093
34094  test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
34095  ;;
34096esac
34097fi
34098MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
34099
34100if test -n "$MYSQL_CONFIG"; then
34101  echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
34102echo "${ECHO_T}$MYSQL_CONFIG" >&6
34103else
34104  echo "$as_me:$LINENO: result: no" >&5
34105echo "${ECHO_T}no" >&6
34106fi
34107
34108  echo "$as_me:$LINENO: checking for MYSQL" >&5
34109echo $ECHO_N "checking for MYSQL... $ECHO_C" >&6
34110  no_mysql=""
34111  if test "$MYSQL_CONFIG" = "no" ; then
34112    MYSQL_CFLAGS=""
34113    MYSQL_LIBS=""
34114    echo "$as_me:$LINENO: result: no" >&5
34115echo "${ECHO_T}no" >&6
34116     { { echo "$as_me:$LINENO: error: Can't find MySQL libraries while MySQL support is requested" >&5
34117echo "$as_me: error: Can't find MySQL libraries while MySQL support is requested" >&2;}
34118   { (exit 1); exit 1; }; }
34119  else
34120    MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
34121    MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
34122    echo "$as_me:$LINENO: result: yes" >&5
34123echo "${ECHO_T}yes" >&6
34124    default_shared_modules="$default_shared_modules pdb_mysql"
34125  fi
34126
34127
34128
34129      CFLAGS="$CFLAGS $MYSQL_CFLAGS"
34130      ;;
34131     pgsql|all|yes)
34132      ## pdb_pgsql
34133
34134# Check whether --with-pgsql-prefix or --without-pgsql-prefix was given.
34135if test "${with_pgsql_prefix+set}" = set; then
34136  withval="$with_pgsql_prefix"
34137  pgsql_prefix="$withval"
34138else
34139  pgsql_prefix=""
34140fi;
34141
34142# Check whether --with-pgsql-exec-prefix or --without-pgsql-exec-prefix was given.
34143if test "${with_pgsql_exec_prefix+set}" = set; then
34144  withval="$with_pgsql_exec_prefix"
34145  pgsql_exec_prefix="$withval"
34146else
34147  pgsql_exec_prefix=""
34148fi;
34149
34150  if test x$pgsql_exec_prefix != x ; then
34151     if test x${PGSQL_CONFIG+set} != xset ; then
34152        PGSQL_CONFIG=$pgsql_exec_prefix/bin/pg_config
34153     fi
34154  fi
34155  if test x$pgsql_prefix != x ; then
34156     if test x${PGSQL_CONFIG+set} != xset ; then
34157        PGSQL_CONFIG=$pgsql_prefix/bin/pg_config
34158     fi
34159  fi
34160
34161
34162  # Extract the first word of "pg_config", so it can be a program name with args.
34163set dummy pg_config; ac_word=$2
34164echo "$as_me:$LINENO: checking for $ac_word" >&5
34165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34166if test "${ac_cv_path_PGSQL_CONFIG+set}" = set; then
34167  echo $ECHO_N "(cached) $ECHO_C" >&6
34168else
34169  case $PGSQL_CONFIG in
34170  [\\/]* | ?:[\\/]*)
34171  ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
34172  ;;
34173  *)
34174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34175as_dummy="$PATH:/usr/lib/postgresql/bin"
34176for as_dir in $as_dummy
34177do
34178  IFS=$as_save_IFS
34179  test -z "$as_dir" && as_dir=.
34180  for ac_exec_ext in '' $ac_executable_extensions; do
34181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34182    ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34184    break 2
34185  fi
34186done
34187done
34188
34189  test -z "$ac_cv_path_PGSQL_CONFIG" && ac_cv_path_PGSQL_CONFIG="no"
34190  ;;
34191esac
34192fi
34193PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
34194
34195if test -n "$PGSQL_CONFIG"; then
34196  echo "$as_me:$LINENO: result: $PGSQL_CONFIG" >&5
34197echo "${ECHO_T}$PGSQL_CONFIG" >&6
34198else
34199  echo "$as_me:$LINENO: result: no" >&5
34200echo "${ECHO_T}no" >&6
34201fi
34202
34203  echo "$as_me:$LINENO: checking for PGSQL" >&5
34204echo $ECHO_N "checking for PGSQL... $ECHO_C" >&6
34205  no_pgsql=""
34206  if test "$PGSQL_CONFIG" = "no" ; then
34207    PGSQL_CFLAGS=""
34208    PGSQL_LIBS=""
34209    echo "$as_me:$LINENO: result: no" >&5
34210echo "${ECHO_T}no" >&6
34211     :
34212  else
34213    PGSQL_CFLAGS=-I`$PGSQL_CONFIG --includedir`
34214    PGSQL_LIBS="-lpq -L`$PGSQL_CONFIG --libdir`"
34215    echo "$as_me:$LINENO: result: yes" >&5
34216echo "${ECHO_T}yes" >&6
34217    default_shared_modules="$default_shared_modules pdb_pgsql"
34218  fi
34219
34220
34221
34222      CFLAGS="$CFLAGS $PGSQL_CFLAGS"
34223      ;;
34224    no)
34225      ;;
34226    *)
34227      echo "Unknown module name \"$i\"!  Exiting..."
34228      exit 1
34229      ;;
34230    esac
34231  done
34232else
34233  echo "$as_me:$LINENO: result: no" >&5
34234echo "${ECHO_T}no" >&6
34235
34236fi;
34237
34238#################################################
34239# check for automount support
34240echo "$as_me:$LINENO: checking whether to use automount" >&5
34241echo $ECHO_N "checking whether to use automount... $ECHO_C" >&6
34242
34243# Check whether --with-automount or --without-automount was given.
34244if test "${with_automount+set}" = set; then
34245  withval="$with_automount"
34246   case "$withval" in
34247  yes)
34248    echo "$as_me:$LINENO: result: yes" >&5
34249echo "${ECHO_T}yes" >&6
34250
34251cat >>confdefs.h <<\_ACEOF
34252#define WITH_AUTOMOUNT 1
34253_ACEOF
34254
34255    ;;
34256  *)
34257    echo "$as_me:$LINENO: result: no" >&5
34258echo "${ECHO_T}no" >&6
34259    ;;
34260  esac
34261else
34262  echo "$as_me:$LINENO: result: no" >&5
34263echo "${ECHO_T}no" >&6
34264
34265fi;
34266
34267#################################################
34268# check for smbmount support
34269echo "$as_me:$LINENO: checking whether to use smbmount" >&5
34270echo $ECHO_N "checking whether to use smbmount... $ECHO_C" >&6
34271
34272# Check whether --with-smbmount or --without-smbmount was given.
34273if test "${with_smbmount+set}" = set; then
34274  withval="$with_smbmount"
34275   case "$withval" in
34276  yes)
34277	case "$host_os" in
34278	*linux*)
34279		echo "$as_me:$LINENO: result: yes" >&5
34280echo "${ECHO_T}yes" >&6
34281
34282cat >>confdefs.h <<\_ACEOF
34283#define WITH_SMBMOUNT 1
34284_ACEOF
34285
34286		EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
34287		;;
34288	*)
34289		{ { echo "$as_me:$LINENO: error: not on a linux system!" >&5
34290echo "$as_me: error: not on a linux system!" >&2;}
34291   { (exit 1); exit 1; }; }
34292		;;
34293	esac
34294    ;;
34295  *)
34296    echo "$as_me:$LINENO: result: no" >&5
34297echo "${ECHO_T}no" >&6
34298    ;;
34299  esac
34300else
34301  echo "$as_me:$LINENO: result: no" >&5
34302echo "${ECHO_T}no" >&6
34303
34304fi;
34305
34306
34307
34308#################################################
34309# check for a PAM clear-text auth, accounts, password and session support
34310with_pam_for_crypt=no
34311echo "$as_me:$LINENO: checking whether to use PAM" >&5
34312echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
34313
34314# Check whether --with-pam or --without-pam was given.
34315if test "${with_pam+set}" = set; then
34316  withval="$with_pam"
34317   case "$withval" in
34318  yes)
34319    echo "$as_me:$LINENO: result: yes" >&5
34320echo "${ECHO_T}yes" >&6
34321    if test x"$ac_cv_header_security_pam_appl_h" = x"no"; then
34322       if test x"$ac_cv_header_security_pam_modules_h" = x"no"; then
34323	  if test x"$ac_cv_header_security__pam_macros_h" = x"no"; then
34324	     { { echo "$as_me:$LINENO: error: --with-pam specified but no PAM headers found" >&5
34325echo "$as_me: error: --with-pam specified but no PAM headers found" >&2;}
34326   { (exit 1); exit 1; }; }
34327	  fi
34328       fi
34329    fi
34330
34331cat >>confdefs.h <<\_ACEOF
34332#define WITH_PAM 1
34333_ACEOF
34334
34335    AUTH_LIBS="$AUTH_LIBS -lpam"
34336    with_pam_for_crypt=yes
34337    ;;
34338  *)
34339    echo "$as_me:$LINENO: result: no" >&5
34340echo "${ECHO_T}no" >&6
34341    ;;
34342  esac
34343else
34344  echo "$as_me:$LINENO: result: no" >&5
34345echo "${ECHO_T}no" >&6
34346
34347fi;
34348
34349# we can't build a pam module if we don't have pam.
34350echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
34351echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
34352if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
34353  echo $ECHO_N "(cached) $ECHO_C" >&6
34354else
34355  ac_check_lib_save_LIBS=$LIBS
34356LIBS="-lpam  $LIBS"
34357cat >conftest.$ac_ext <<_ACEOF
34358/* confdefs.h.  */
34359_ACEOF
34360cat confdefs.h >>conftest.$ac_ext
34361cat >>conftest.$ac_ext <<_ACEOF
34362/* end confdefs.h.  */
34363
34364/* Override any gcc2 internal prototype to avoid an error.  */
34365#ifdef __cplusplus
34366extern "C"
34367#endif
34368/* We use char because int might match the return type of a gcc2
34369   builtin and then its argument prototype would still apply.  */
34370char pam_get_data ();
34371int
34372main ()
34373{
34374pam_get_data ();
34375  ;
34376  return 0;
34377}
34378_ACEOF
34379rm -f conftest.$ac_objext conftest$ac_exeext
34380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34381  (eval $ac_link) 2>conftest.er1
34382  ac_status=$?
34383  grep -v '^ *+' conftest.er1 >conftest.err
34384  rm -f conftest.er1
34385  cat conftest.err >&5
34386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387  (exit $ac_status); } &&
34388	 { ac_try='test -z "$ac_c_werror_flag"
34389			 || test ! -s conftest.err'
34390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34391  (eval $ac_try) 2>&5
34392  ac_status=$?
34393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394  (exit $ac_status); }; } &&
34395	 { ac_try='test -s conftest$ac_exeext'
34396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34397  (eval $ac_try) 2>&5
34398  ac_status=$?
34399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400  (exit $ac_status); }; }; then
34401  ac_cv_lib_pam_pam_get_data=yes
34402else
34403  echo "$as_me: failed program was:" >&5
34404sed 's/^/| /' conftest.$ac_ext >&5
34405
34406ac_cv_lib_pam_pam_get_data=no
34407fi
34408rm -f conftest.err conftest.$ac_objext \
34409      conftest$ac_exeext conftest.$ac_ext
34410LIBS=$ac_check_lib_save_LIBS
34411fi
34412echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
34413echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
34414if test $ac_cv_lib_pam_pam_get_data = yes; then
34415
34416cat >>confdefs.h <<\_ACEOF
34417#define HAVE_LIBPAM 1
34418_ACEOF
34419
34420fi
34421
34422
34423#################################################
34424# check for pam_smbpass support
34425echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
34426echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
34427
34428# Check whether --with-pam_smbpass or --without-pam_smbpass was given.
34429if test "${with_pam_smbpass+set}" = set; then
34430  withval="$with_pam_smbpass"
34431   case "$withval" in
34432  yes)
34433    echo "$as_me:$LINENO: result: yes" >&5
34434echo "${ECHO_T}yes" >&6
34435
34436       # Conditions under which pam_smbpass should not be built.
34437
34438       if test x$PICFLAGS = x; then
34439          { { echo "$as_me:$LINENO: error: No support for PIC code" >&5
34440echo "$as_me: error: No support for PIC code" >&2;}
34441   { (exit 1); exit 1; }; }
34442       elif test x"$ac_cv_header_security_pam_appl_h" = x"no"; then
34443	  { { echo "$as_me:$LINENO: error: No security/pam_appl.h found" >&5
34444echo "$as_me: error: No security/pam_appl.h found" >&2;}
34445   { (exit 1); exit 1; }; }
34446       elif test x$ac_cv_lib_pam_pam_get_data = xno; then
34447          { { echo "$as_me:$LINENO: error: No libpam found" >&5
34448echo "$as_me: error: No libpam found" >&2;}
34449   { (exit 1); exit 1; }; }
34450       else
34451	  AUTH_LIBS="$AUTH_LIBS -lpam"
34452          SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.$SHLIBEXT"
34453       fi
34454    ;;
34455  *)
34456    echo "$as_me:$LINENO: result: no" >&5
34457echo "${ECHO_T}no" >&6
34458    ;;
34459  esac
34460else
34461  echo "$as_me:$LINENO: result: no" >&5
34462echo "${ECHO_T}no" >&6
34463
34464fi;
34465
34466
34467###############################################
34468# test for where we get crypt() from
34469echo "$as_me:$LINENO: checking for library containing crypt" >&5
34470echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
34471if test "${ac_cv_search_crypt+set}" = set; then
34472  echo $ECHO_N "(cached) $ECHO_C" >&6
34473else
34474  ac_func_search_save_LIBS=$LIBS
34475ac_cv_search_crypt=no
34476cat >conftest.$ac_ext <<_ACEOF
34477/* confdefs.h.  */
34478_ACEOF
34479cat confdefs.h >>conftest.$ac_ext
34480cat >>conftest.$ac_ext <<_ACEOF
34481/* end confdefs.h.  */
34482
34483/* Override any gcc2 internal prototype to avoid an error.  */
34484#ifdef __cplusplus
34485extern "C"
34486#endif
34487/* We use char because int might match the return type of a gcc2
34488   builtin and then its argument prototype would still apply.  */
34489char crypt ();
34490int
34491main ()
34492{
34493crypt ();
34494  ;
34495  return 0;
34496}
34497_ACEOF
34498rm -f conftest.$ac_objext conftest$ac_exeext
34499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34500  (eval $ac_link) 2>conftest.er1
34501  ac_status=$?
34502  grep -v '^ *+' conftest.er1 >conftest.err
34503  rm -f conftest.er1
34504  cat conftest.err >&5
34505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506  (exit $ac_status); } &&
34507	 { ac_try='test -z "$ac_c_werror_flag"
34508			 || test ! -s conftest.err'
34509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34510  (eval $ac_try) 2>&5
34511  ac_status=$?
34512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513  (exit $ac_status); }; } &&
34514	 { ac_try='test -s conftest$ac_exeext'
34515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34516  (eval $ac_try) 2>&5
34517  ac_status=$?
34518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519  (exit $ac_status); }; }; then
34520  ac_cv_search_crypt="none required"
34521else
34522  echo "$as_me: failed program was:" >&5
34523sed 's/^/| /' conftest.$ac_ext >&5
34524
34525fi
34526rm -f conftest.err conftest.$ac_objext \
34527      conftest$ac_exeext conftest.$ac_ext
34528if test "$ac_cv_search_crypt" = no; then
34529  for ac_lib in crypt; do
34530    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34531    cat >conftest.$ac_ext <<_ACEOF
34532/* confdefs.h.  */
34533_ACEOF
34534cat confdefs.h >>conftest.$ac_ext
34535cat >>conftest.$ac_ext <<_ACEOF
34536/* end confdefs.h.  */
34537
34538/* Override any gcc2 internal prototype to avoid an error.  */
34539#ifdef __cplusplus
34540extern "C"
34541#endif
34542/* We use char because int might match the return type of a gcc2
34543   builtin and then its argument prototype would still apply.  */
34544char crypt ();
34545int
34546main ()
34547{
34548crypt ();
34549  ;
34550  return 0;
34551}
34552_ACEOF
34553rm -f conftest.$ac_objext conftest$ac_exeext
34554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34555  (eval $ac_link) 2>conftest.er1
34556  ac_status=$?
34557  grep -v '^ *+' conftest.er1 >conftest.err
34558  rm -f conftest.er1
34559  cat conftest.err >&5
34560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561  (exit $ac_status); } &&
34562	 { ac_try='test -z "$ac_c_werror_flag"
34563			 || test ! -s conftest.err'
34564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34565  (eval $ac_try) 2>&5
34566  ac_status=$?
34567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568  (exit $ac_status); }; } &&
34569	 { ac_try='test -s conftest$ac_exeext'
34570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571  (eval $ac_try) 2>&5
34572  ac_status=$?
34573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574  (exit $ac_status); }; }; then
34575  ac_cv_search_crypt="-l$ac_lib"
34576break
34577else
34578  echo "$as_me: failed program was:" >&5
34579sed 's/^/| /' conftest.$ac_ext >&5
34580
34581fi
34582rm -f conftest.err conftest.$ac_objext \
34583      conftest$ac_exeext conftest.$ac_ext
34584  done
34585fi
34586LIBS=$ac_func_search_save_LIBS
34587fi
34588echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
34589echo "${ECHO_T}$ac_cv_search_crypt" >&6
34590if test "$ac_cv_search_crypt" != no; then
34591  test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
34592  test "$ac_cv_search_crypt" = "none required" || AUTH_LIBS="-lcrypt $AUTH_LIBS"
34593
34594cat >>confdefs.h <<\_ACEOF
34595#define HAVE_CRYPT 1
34596_ACEOF
34597
34598fi
34599
34600
34601##
34602## moved after the check for -lcrypt in order to
34603## ensure that the necessary libraries are included
34604## check checking for truncated salt.  Wrapped by the
34605## $with_pam_for_crypt variable as above   --jerry
34606##
34607if test $with_pam_for_crypt = no; then
34608echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
34609echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
34610if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
34611  echo $ECHO_N "(cached) $ECHO_C" >&6
34612else
34613
34614crypt_LIBS="$LIBS"
34615LIBS="$AUTH_LIBS $LIBS"
34616if test "$cross_compiling" = yes; then
34617  samba_cv_HAVE_TRUNCATED_SALT=cross
34618else
34619  cat >conftest.$ac_ext <<_ACEOF
34620/* confdefs.h.  */
34621_ACEOF
34622cat confdefs.h >>conftest.$ac_ext
34623cat >>conftest.$ac_ext <<_ACEOF
34624/* end confdefs.h.  */
34625#include "${srcdir-.}/tests/crypttest.c"
34626_ACEOF
34627rm -f conftest$ac_exeext
34628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34629  (eval $ac_link) 2>&5
34630  ac_status=$?
34631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34634  (eval $ac_try) 2>&5
34635  ac_status=$?
34636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637  (exit $ac_status); }; }; then
34638  samba_cv_HAVE_TRUNCATED_SALT=no
34639else
34640  echo "$as_me: program exited with status $ac_status" >&5
34641echo "$as_me: failed program was:" >&5
34642sed 's/^/| /' conftest.$ac_ext >&5
34643
34644( exit $ac_status )
34645samba_cv_HAVE_TRUNCATED_SALT=yes
34646fi
34647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34648fi
34649LIBS="$crypt_LIBS"
34650fi
34651echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
34652echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
34653if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
34654
34655cat >>confdefs.h <<\_ACEOF
34656#define HAVE_TRUNCATED_SALT 1
34657_ACEOF
34658
34659fi
34660fi
34661
34662
34663########################################################################################
34664##
34665## TESTS FOR SAM BACKENDS.  KEEP THESE GROUPED TOGETHER
34666##
34667########################################################################################
34668
34669#################################################
34670# check for a LDAP password database configuration backwards compatibility
34671echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
34672echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
34673
34674# Check whether --with-ldapsam or --without-ldapsam was given.
34675if test "${with_ldapsam+set}" = set; then
34676  withval="$with_ldapsam"
34677   case "$withval" in
34678  yes)
34679    echo "$as_me:$LINENO: result: yes" >&5
34680echo "${ECHO_T}yes" >&6
34681
34682cat >>confdefs.h <<\_ACEOF
34683#define WITH_LDAP_SAMCONFIG 1
34684_ACEOF
34685
34686    ;;
34687  *)
34688    echo "$as_me:$LINENO: result: no" >&5
34689echo "${ECHO_T}no" >&6
34690    ;;
34691  esac
34692else
34693  echo "$as_me:$LINENO: result: no" >&5
34694echo "${ECHO_T}no" >&6
34695
34696fi;
34697
34698########################################################################################
34699##
34700## END OF TESTS FOR SAM BACKENDS.
34701##
34702########################################################################################
34703
34704#################################################
34705# check for a NISPLUS_HOME support
34706echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
34707echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
34708
34709# Check whether --with-nisplus-home or --without-nisplus-home was given.
34710if test "${with_nisplus_home+set}" = set; then
34711  withval="$with_nisplus_home"
34712   case "$withval" in
34713  yes)
34714    echo "$as_me:$LINENO: result: yes" >&5
34715echo "${ECHO_T}yes" >&6
34716
34717cat >>confdefs.h <<\_ACEOF
34718#define WITH_NISPLUS_HOME 1
34719_ACEOF
34720
34721    ;;
34722  *)
34723    echo "$as_me:$LINENO: result: no" >&5
34724echo "${ECHO_T}no" >&6
34725    ;;
34726  esac
34727else
34728  echo "$as_me:$LINENO: result: no" >&5
34729echo "${ECHO_T}no" >&6
34730
34731fi;
34732
34733#################################################
34734# check for syslog logging
34735echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
34736echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
34737
34738# Check whether --with-syslog or --without-syslog was given.
34739if test "${with_syslog+set}" = set; then
34740  withval="$with_syslog"
34741   case "$withval" in
34742  yes)
34743    echo "$as_me:$LINENO: result: yes" >&5
34744echo "${ECHO_T}yes" >&6
34745
34746cat >>confdefs.h <<\_ACEOF
34747#define WITH_SYSLOG 1
34748_ACEOF
34749
34750    ;;
34751  *)
34752    echo "$as_me:$LINENO: result: no" >&5
34753echo "${ECHO_T}no" >&6
34754    ;;
34755  esac
34756else
34757  echo "$as_me:$LINENO: result: no" >&5
34758echo "${ECHO_T}no" >&6
34759
34760fi;
34761
34762#################################################
34763# check for a shared memory profiling support
34764echo "$as_me:$LINENO: checking whether to use profiling" >&5
34765echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
34766
34767# Check whether --with-profiling-data or --without-profiling-data was given.
34768if test "${with_profiling_data+set}" = set; then
34769  withval="$with_profiling_data"
34770   case "$withval" in
34771  yes)
34772    echo "$as_me:$LINENO: result: yes" >&5
34773echo "${ECHO_T}yes" >&6
34774
34775cat >>confdefs.h <<\_ACEOF
34776#define WITH_PROFILE 1
34777_ACEOF
34778
34779    ;;
34780  *)
34781    echo "$as_me:$LINENO: result: no" >&5
34782echo "${ECHO_T}no" >&6
34783    ;;
34784  esac
34785else
34786  echo "$as_me:$LINENO: result: no" >&5
34787echo "${ECHO_T}no" >&6
34788
34789fi;
34790
34791
34792#################################################
34793# check for experimental disk-quotas support
34794
34795samba_cv_WITH_QUOTAS=auto
34796samba_cv_TRY_QUOTAS=no
34797samba_cv_RUN_QUOTA_TESTS=auto
34798samba_cv_WITH_SYS_QUOTAS=auto
34799samba_cv_TRY_SYS_QUOTAS=no
34800samba_cv_SYSQUOTA_FOUND=no;
34801
34802echo "$as_me:$LINENO: checking whether to try disk-quotas support" >&5
34803echo $ECHO_N "checking whether to try disk-quotas support... $ECHO_C" >&6
34804
34805# Check whether --with-quotas or --without-quotas was given.
34806if test "${with_quotas+set}" = set; then
34807  withval="$with_quotas"
34808   case "$withval" in
34809  yes)
34810    echo "$as_me:$LINENO: result: yes" >&5
34811echo "${ECHO_T}yes" >&6
34812    samba_cv_WITH_QUOTAS=yes
34813    samba_cv_TRY_QUOTAS=yes
34814    samba_cv_RUN_QUOTA_TESTS=yes
34815    #set sys quotas to auto in this case
34816    samba_cv_TRY_SYS_QUOTAS=auto
34817    ;;
34818  auto)
34819    echo "$as_me:$LINENO: result: auto" >&5
34820echo "${ECHO_T}auto" >&6
34821    samba_cv_WITH_QUOTAS=auto
34822    samba_cv_TRY_QUOTAS=auto
34823    samba_cv_RUN_QUOTA_TESTS=auto
34824    #set sys quotas to auto in this case
34825    samba_cv_TRY_SYS_QUOTAS=auto
34826    ;;
34827  no)
34828    echo "$as_me:$LINENO: result: no" >&5
34829echo "${ECHO_T}no" >&6
34830    samba_cv_WITH_QUOTAS=no
34831    samba_cv_TRY_QUOTAS=no
34832    samba_cv_RUN_QUOTA_TESTS=no
34833    ;;
34834  *)
34835    echo "$as_me:$LINENO: result: ${samba_cv_TRY_QUOTAS}" >&5
34836echo "${ECHO_T}${samba_cv_TRY_QUOTAS}" >&6
34837    ;;
34838  esac
34839else
34840  echo "$as_me:$LINENO: result: ${samba_cv_TRY_QUOTAS}" >&5
34841echo "${ECHO_T}${samba_cv_TRY_QUOTAS}" >&6
34842
34843fi;
34844
34845echo "$as_me:$LINENO: checking whether to try the new lib/sysquotas.c interface" >&5
34846echo $ECHO_N "checking whether to try the new lib/sysquotas.c interface... $ECHO_C" >&6
34847
34848# Check whether --with-sys-quotas or --without-sys-quotas was given.
34849if test "${with_sys_quotas+set}" = set; then
34850  withval="$with_sys_quotas"
34851   case "$withval" in
34852  yes)
34853    echo "$as_me:$LINENO: result: yes" >&5
34854echo "${ECHO_T}yes" >&6
34855    samba_cv_WITH_SYS_QUOTAS=yes
34856    samba_cv_TRY_SYS_QUOTAS=yes
34857    samba_cv_RUN_QUOTA_TESTS=yes
34858    ;;
34859  auto)
34860    echo "$as_me:$LINENO: result: auto" >&5
34861echo "${ECHO_T}auto" >&6
34862    samba_cv_WITH_SYS_QUOTAS=auto
34863    samba_cv_TRY_SYS_QUOTAS=auto
34864    samba_cv_RUN_QUOTA_TESTS=auto
34865    ;;
34866  no)
34867    echo "$as_me:$LINENO: result: no" >&5
34868echo "${ECHO_T}no" >&6
34869    samba_cv_WITH_SYS_QUOTAS=no
34870    samba_cv_TRY_SYS_QUOTAS=no
34871    ;;
34872  *)
34873    echo "$as_me:$LINENO: result: ${samba_cv_TRY_SYS_QUOTAS}" >&5
34874echo "${ECHO_T}${samba_cv_TRY_SYS_QUOTAS}" >&6
34875    ;;
34876  esac
34877else
34878  echo "$as_me:$LINENO: result: ${samba_cv_TRY_SYS_QUOTAS}" >&5
34879echo "${ECHO_T}${samba_cv_TRY_SYS_QUOTAS}" >&6
34880
34881fi;
34882
34883if test x"$samba_cv_TRY_SYS_QUOTAS" != x"no"; then
34884echo "$as_me:$LINENO: checking whether to try the lib/sysquotas.c interface on ${host_os}" >&5
34885echo $ECHO_N "checking whether to try the lib/sysquotas.c interface on ${host_os}... $ECHO_C" >&6
34886  case "$host_os" in
34887	*linux*)
34888	    echo "$as_me:$LINENO: result: yes" >&5
34889echo "${ECHO_T}yes" >&6
34890            samba_cv_TRY_SYS_QUOTAS=yes
34891            samba_cv_RUN_QUOTA_TESTS=yes
34892            samba_cv_SYSQUOTA_FOUND=yes
34893
34894cat >>confdefs.h <<\_ACEOF
34895#define HAVE_QUOTACTL_LINUX 1
34896_ACEOF
34897
34898            samba_cv_sysquotas_file="lib/sysquotas_linux.c"
34899
34900cat >>confdefs.h <<\_ACEOF
34901#define HAVE_LINUX_XFS_QUOTAS 1
34902_ACEOF
34903
34904            samba_cv_found_xfs_header=yes
34905	    ;;
34906	*)
34907	    echo "$as_me:$LINENO: result: no" >&5
34908echo "${ECHO_T}no" >&6
34909            samba_cv_TRY_SYS_QUOTAS=no
34910	    ;;
34911  esac
34912fi
34913
34914#############################################
34915# only check for quota stuff if --with-quotas
34916if test x"$samba_cv_RUN_QUOTA_TESTS" != x"no"; then
34917
34918# some broken header files need this
34919if test "${ac_cv_header_asm_types_h+set}" = set; then
34920  echo "$as_me:$LINENO: checking for asm/types.h" >&5
34921echo $ECHO_N "checking for asm/types.h... $ECHO_C" >&6
34922if test "${ac_cv_header_asm_types_h+set}" = set; then
34923  echo $ECHO_N "(cached) $ECHO_C" >&6
34924fi
34925echo "$as_me:$LINENO: result: $ac_cv_header_asm_types_h" >&5
34926echo "${ECHO_T}$ac_cv_header_asm_types_h" >&6
34927else
34928  # Is the header compilable?
34929echo "$as_me:$LINENO: checking asm/types.h usability" >&5
34930echo $ECHO_N "checking asm/types.h usability... $ECHO_C" >&6
34931cat >conftest.$ac_ext <<_ACEOF
34932/* confdefs.h.  */
34933_ACEOF
34934cat confdefs.h >>conftest.$ac_ext
34935cat >>conftest.$ac_ext <<_ACEOF
34936/* end confdefs.h.  */
34937$ac_includes_default
34938#include <asm/types.h>
34939_ACEOF
34940rm -f conftest.$ac_objext
34941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34942  (eval $ac_compile) 2>conftest.er1
34943  ac_status=$?
34944  grep -v '^ *+' conftest.er1 >conftest.err
34945  rm -f conftest.er1
34946  cat conftest.err >&5
34947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948  (exit $ac_status); } &&
34949	 { ac_try='test -z "$ac_c_werror_flag"
34950			 || test ! -s conftest.err'
34951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34952  (eval $ac_try) 2>&5
34953  ac_status=$?
34954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955  (exit $ac_status); }; } &&
34956	 { ac_try='test -s conftest.$ac_objext'
34957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34958  (eval $ac_try) 2>&5
34959  ac_status=$?
34960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961  (exit $ac_status); }; }; then
34962  ac_header_compiler=yes
34963else
34964  echo "$as_me: failed program was:" >&5
34965sed 's/^/| /' conftest.$ac_ext >&5
34966
34967ac_header_compiler=no
34968fi
34969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34970echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34971echo "${ECHO_T}$ac_header_compiler" >&6
34972
34973# Is the header present?
34974echo "$as_me:$LINENO: checking asm/types.h presence" >&5
34975echo $ECHO_N "checking asm/types.h presence... $ECHO_C" >&6
34976cat >conftest.$ac_ext <<_ACEOF
34977/* confdefs.h.  */
34978_ACEOF
34979cat confdefs.h >>conftest.$ac_ext
34980cat >>conftest.$ac_ext <<_ACEOF
34981/* end confdefs.h.  */
34982#include <asm/types.h>
34983_ACEOF
34984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34985  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34986  ac_status=$?
34987  grep -v '^ *+' conftest.er1 >conftest.err
34988  rm -f conftest.er1
34989  cat conftest.err >&5
34990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991  (exit $ac_status); } >/dev/null; then
34992  if test -s conftest.err; then
34993    ac_cpp_err=$ac_c_preproc_warn_flag
34994    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34995  else
34996    ac_cpp_err=
34997  fi
34998else
34999  ac_cpp_err=yes
35000fi
35001if test -z "$ac_cpp_err"; then
35002  ac_header_preproc=yes
35003else
35004  echo "$as_me: failed program was:" >&5
35005sed 's/^/| /' conftest.$ac_ext >&5
35006
35007  ac_header_preproc=no
35008fi
35009rm -f conftest.err conftest.$ac_ext
35010echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35011echo "${ECHO_T}$ac_header_preproc" >&6
35012
35013# So?  What about this header?
35014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35015  yes:no: )
35016    { echo "$as_me:$LINENO: WARNING: asm/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
35017echo "$as_me: WARNING: asm/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35018    { echo "$as_me:$LINENO: WARNING: asm/types.h: proceeding with the compiler's result" >&5
35019echo "$as_me: WARNING: asm/types.h: proceeding with the compiler's result" >&2;}
35020    ac_header_preproc=yes
35021    ;;
35022  no:yes:* )
35023    { echo "$as_me:$LINENO: WARNING: asm/types.h: present but cannot be compiled" >&5
35024echo "$as_me: WARNING: asm/types.h: present but cannot be compiled" >&2;}
35025    { echo "$as_me:$LINENO: WARNING: asm/types.h:     check for missing prerequisite headers?" >&5
35026echo "$as_me: WARNING: asm/types.h:     check for missing prerequisite headers?" >&2;}
35027    { echo "$as_me:$LINENO: WARNING: asm/types.h: see the Autoconf documentation" >&5
35028echo "$as_me: WARNING: asm/types.h: see the Autoconf documentation" >&2;}
35029    { echo "$as_me:$LINENO: WARNING: asm/types.h:     section \"Present But Cannot Be Compiled\"" >&5
35030echo "$as_me: WARNING: asm/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
35031    { echo "$as_me:$LINENO: WARNING: asm/types.h: proceeding with the preprocessor's result" >&5
35032echo "$as_me: WARNING: asm/types.h: proceeding with the preprocessor's result" >&2;}
35033    { echo "$as_me:$LINENO: WARNING: asm/types.h: in the future, the compiler will take precedence" >&5
35034echo "$as_me: WARNING: asm/types.h: in the future, the compiler will take precedence" >&2;}
35035    (
35036      cat <<\_ASBOX
35037## ------------------------------------------ ##
35038## Report this to the AC_PACKAGE_NAME lists.  ##
35039## ------------------------------------------ ##
35040_ASBOX
35041    ) |
35042      sed "s/^/$as_me: WARNING:     /" >&2
35043    ;;
35044esac
35045echo "$as_me:$LINENO: checking for asm/types.h" >&5
35046echo $ECHO_N "checking for asm/types.h... $ECHO_C" >&6
35047if test "${ac_cv_header_asm_types_h+set}" = set; then
35048  echo $ECHO_N "(cached) $ECHO_C" >&6
35049else
35050  ac_cv_header_asm_types_h=$ac_header_preproc
35051fi
35052echo "$as_me:$LINENO: result: $ac_cv_header_asm_types_h" >&5
35053echo "${ECHO_T}$ac_cv_header_asm_types_h" >&6
35054
35055fi
35056if test $ac_cv_header_asm_types_h = yes; then
35057
35058
35059cat >>confdefs.h <<\_ACEOF
35060#define HAVE_ASM_TYPES_H 1
35061_ACEOF
35062
35063	    cat >> confdefs.h <<\EOF
35064#include <asm/types.h>
35065EOF
35066
35067
35068fi
35069
35070
35071
35072# For quotas on Veritas VxFS filesystems
35073
35074for ac_header in sys/fs/vx_quota.h
35075do
35076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35077if eval "test \"\${$as_ac_Header+set}\" = set"; then
35078  echo "$as_me:$LINENO: checking for $ac_header" >&5
35079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35080if eval "test \"\${$as_ac_Header+set}\" = set"; then
35081  echo $ECHO_N "(cached) $ECHO_C" >&6
35082fi
35083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35085else
35086  # Is the header compilable?
35087echo "$as_me:$LINENO: checking $ac_header usability" >&5
35088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35089cat >conftest.$ac_ext <<_ACEOF
35090/* confdefs.h.  */
35091_ACEOF
35092cat confdefs.h >>conftest.$ac_ext
35093cat >>conftest.$ac_ext <<_ACEOF
35094/* end confdefs.h.  */
35095$ac_includes_default
35096#include <$ac_header>
35097_ACEOF
35098rm -f conftest.$ac_objext
35099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35100  (eval $ac_compile) 2>conftest.er1
35101  ac_status=$?
35102  grep -v '^ *+' conftest.er1 >conftest.err
35103  rm -f conftest.er1
35104  cat conftest.err >&5
35105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106  (exit $ac_status); } &&
35107	 { ac_try='test -z "$ac_c_werror_flag"
35108			 || test ! -s conftest.err'
35109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35110  (eval $ac_try) 2>&5
35111  ac_status=$?
35112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113  (exit $ac_status); }; } &&
35114	 { ac_try='test -s conftest.$ac_objext'
35115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35116  (eval $ac_try) 2>&5
35117  ac_status=$?
35118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35119  (exit $ac_status); }; }; then
35120  ac_header_compiler=yes
35121else
35122  echo "$as_me: failed program was:" >&5
35123sed 's/^/| /' conftest.$ac_ext >&5
35124
35125ac_header_compiler=no
35126fi
35127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35129echo "${ECHO_T}$ac_header_compiler" >&6
35130
35131# Is the header present?
35132echo "$as_me:$LINENO: checking $ac_header presence" >&5
35133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35134cat >conftest.$ac_ext <<_ACEOF
35135/* confdefs.h.  */
35136_ACEOF
35137cat confdefs.h >>conftest.$ac_ext
35138cat >>conftest.$ac_ext <<_ACEOF
35139/* end confdefs.h.  */
35140#include <$ac_header>
35141_ACEOF
35142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35143  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35144  ac_status=$?
35145  grep -v '^ *+' conftest.er1 >conftest.err
35146  rm -f conftest.er1
35147  cat conftest.err >&5
35148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149  (exit $ac_status); } >/dev/null; then
35150  if test -s conftest.err; then
35151    ac_cpp_err=$ac_c_preproc_warn_flag
35152    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35153  else
35154    ac_cpp_err=
35155  fi
35156else
35157  ac_cpp_err=yes
35158fi
35159if test -z "$ac_cpp_err"; then
35160  ac_header_preproc=yes
35161else
35162  echo "$as_me: failed program was:" >&5
35163sed 's/^/| /' conftest.$ac_ext >&5
35164
35165  ac_header_preproc=no
35166fi
35167rm -f conftest.err conftest.$ac_ext
35168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35169echo "${ECHO_T}$ac_header_preproc" >&6
35170
35171# So?  What about this header?
35172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35173  yes:no: )
35174    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35176    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35178    ac_header_preproc=yes
35179    ;;
35180  no:yes:* )
35181    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35183    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35184echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35185    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35187    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35188echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35189    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35191    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35193    (
35194      cat <<\_ASBOX
35195## ------------------------------------------ ##
35196## Report this to the AC_PACKAGE_NAME lists.  ##
35197## ------------------------------------------ ##
35198_ASBOX
35199    ) |
35200      sed "s/^/$as_me: WARNING:     /" >&2
35201    ;;
35202esac
35203echo "$as_me:$LINENO: checking for $ac_header" >&5
35204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35205if eval "test \"\${$as_ac_Header+set}\" = set"; then
35206  echo $ECHO_N "(cached) $ECHO_C" >&6
35207else
35208  eval "$as_ac_Header=\$ac_header_preproc"
35209fi
35210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35212
35213fi
35214if test `eval echo '${'$as_ac_Header'}'` = yes; then
35215  cat >>confdefs.h <<_ACEOF
35216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35217_ACEOF
35218
35219fi
35220
35221done
35222
35223
35224# For sys/quota.h and linux/quota.h
35225
35226for ac_header in sys/quota.h
35227do
35228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35229if eval "test \"\${$as_ac_Header+set}\" = set"; then
35230  echo "$as_me:$LINENO: checking for $ac_header" >&5
35231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35232if eval "test \"\${$as_ac_Header+set}\" = set"; then
35233  echo $ECHO_N "(cached) $ECHO_C" >&6
35234fi
35235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35237else
35238  # Is the header compilable?
35239echo "$as_me:$LINENO: checking $ac_header usability" >&5
35240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35241cat >conftest.$ac_ext <<_ACEOF
35242/* confdefs.h.  */
35243_ACEOF
35244cat confdefs.h >>conftest.$ac_ext
35245cat >>conftest.$ac_ext <<_ACEOF
35246/* end confdefs.h.  */
35247$ac_includes_default
35248#include <$ac_header>
35249_ACEOF
35250rm -f conftest.$ac_objext
35251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35252  (eval $ac_compile) 2>conftest.er1
35253  ac_status=$?
35254  grep -v '^ *+' conftest.er1 >conftest.err
35255  rm -f conftest.er1
35256  cat conftest.err >&5
35257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258  (exit $ac_status); } &&
35259	 { ac_try='test -z "$ac_c_werror_flag"
35260			 || test ! -s conftest.err'
35261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35262  (eval $ac_try) 2>&5
35263  ac_status=$?
35264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265  (exit $ac_status); }; } &&
35266	 { ac_try='test -s conftest.$ac_objext'
35267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35268  (eval $ac_try) 2>&5
35269  ac_status=$?
35270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271  (exit $ac_status); }; }; then
35272  ac_header_compiler=yes
35273else
35274  echo "$as_me: failed program was:" >&5
35275sed 's/^/| /' conftest.$ac_ext >&5
35276
35277ac_header_compiler=no
35278fi
35279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35281echo "${ECHO_T}$ac_header_compiler" >&6
35282
35283# Is the header present?
35284echo "$as_me:$LINENO: checking $ac_header presence" >&5
35285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35286cat >conftest.$ac_ext <<_ACEOF
35287/* confdefs.h.  */
35288_ACEOF
35289cat confdefs.h >>conftest.$ac_ext
35290cat >>conftest.$ac_ext <<_ACEOF
35291/* end confdefs.h.  */
35292#include <$ac_header>
35293_ACEOF
35294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35295  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35296  ac_status=$?
35297  grep -v '^ *+' conftest.er1 >conftest.err
35298  rm -f conftest.er1
35299  cat conftest.err >&5
35300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301  (exit $ac_status); } >/dev/null; then
35302  if test -s conftest.err; then
35303    ac_cpp_err=$ac_c_preproc_warn_flag
35304    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35305  else
35306    ac_cpp_err=
35307  fi
35308else
35309  ac_cpp_err=yes
35310fi
35311if test -z "$ac_cpp_err"; then
35312  ac_header_preproc=yes
35313else
35314  echo "$as_me: failed program was:" >&5
35315sed 's/^/| /' conftest.$ac_ext >&5
35316
35317  ac_header_preproc=no
35318fi
35319rm -f conftest.err conftest.$ac_ext
35320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35321echo "${ECHO_T}$ac_header_preproc" >&6
35322
35323# So?  What about this header?
35324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35325  yes:no: )
35326    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35328    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35330    ac_header_preproc=yes
35331    ;;
35332  no:yes:* )
35333    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35335    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35336echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35337    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35339    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35340echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35341    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35343    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35345    (
35346      cat <<\_ASBOX
35347## ------------------------------------------ ##
35348## Report this to the AC_PACKAGE_NAME lists.  ##
35349## ------------------------------------------ ##
35350_ASBOX
35351    ) |
35352      sed "s/^/$as_me: WARNING:     /" >&2
35353    ;;
35354esac
35355echo "$as_me:$LINENO: checking for $ac_header" >&5
35356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35357if eval "test \"\${$as_ac_Header+set}\" = set"; then
35358  echo $ECHO_N "(cached) $ECHO_C" >&6
35359else
35360  eval "$as_ac_Header=\$ac_header_preproc"
35361fi
35362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35364
35365fi
35366if test `eval echo '${'$as_ac_Header'}'` = yes; then
35367  cat >>confdefs.h <<_ACEOF
35368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35369_ACEOF
35370
35371fi
35372
35373done
35374
35375
35376if test x"$samba_cv_found_xfs_header" != x"yes"; then
35377# if we have xfs quota support <sys/quota.h> (IRIX) we should use it
35378echo "$as_me:$LINENO: checking for XFS QUOTA in <sys/quota.h>" >&5
35379echo $ECHO_N "checking for XFS QUOTA in <sys/quota.h>... $ECHO_C" >&6
35380if test "${samba_cv_HAVE_SYS_QUOTA_XFS+set}" = set; then
35381  echo $ECHO_N "(cached) $ECHO_C" >&6
35382else
35383
35384cat >conftest.$ac_ext <<_ACEOF
35385/* confdefs.h.  */
35386_ACEOF
35387cat confdefs.h >>conftest.$ac_ext
35388cat >>conftest.$ac_ext <<_ACEOF
35389/* end confdefs.h.  */
35390
35391#include "confdefs.h"
35392#ifdef HAVE_SYS_TYPES_H
35393#include <sys/types.h>
35394#endif
35395#ifdef HAVE_ASM_TYPES_H
35396#include <asm/types.h>
35397#endif
35398#include <sys/quota.h>
35399
35400int
35401main ()
35402{
35403int i = Q_XGETQUOTA;
35404  ;
35405  return 0;
35406}
35407_ACEOF
35408rm -f conftest.$ac_objext
35409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35410  (eval $ac_compile) 2>conftest.er1
35411  ac_status=$?
35412  grep -v '^ *+' conftest.er1 >conftest.err
35413  rm -f conftest.er1
35414  cat conftest.err >&5
35415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416  (exit $ac_status); } &&
35417	 { ac_try='test -z "$ac_c_werror_flag"
35418			 || test ! -s conftest.err'
35419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420  (eval $ac_try) 2>&5
35421  ac_status=$?
35422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423  (exit $ac_status); }; } &&
35424	 { ac_try='test -s conftest.$ac_objext'
35425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426  (eval $ac_try) 2>&5
35427  ac_status=$?
35428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429  (exit $ac_status); }; }; then
35430  samba_cv_HAVE_SYS_QUOTA_XFS=yes
35431else
35432  echo "$as_me: failed program was:" >&5
35433sed 's/^/| /' conftest.$ac_ext >&5
35434
35435samba_cv_HAVE_SYS_QUOTA_XFS=no
35436fi
35437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35438fi
35439echo "$as_me:$LINENO: result: $samba_cv_HAVE_SYS_QUOTA_XFS" >&5
35440echo "${ECHO_T}$samba_cv_HAVE_SYS_QUOTA_XFS" >&6
35441if test "$samba_cv_HAVE_SYS_QUOTA_XFS"x = "yes"x; then
35442	samba_cv_found_xfs_header=yes
35443fi
35444fi
35445
35446# if we have struct dqblk .dqb_fsoftlimit instead of .dqb_isoftlimit on IRIX
35447echo "$as_me:$LINENO: checking if struct dqblk has .dqb_fsoftlimit" >&5
35448echo $ECHO_N "checking if struct dqblk has .dqb_fsoftlimit... $ECHO_C" >&6
35449if test "${samba_cv_HAVE_DQB_FSOFTLIMIT+set}" = set; then
35450  echo $ECHO_N "(cached) $ECHO_C" >&6
35451else
35452
35453cat >conftest.$ac_ext <<_ACEOF
35454/* confdefs.h.  */
35455_ACEOF
35456cat confdefs.h >>conftest.$ac_ext
35457cat >>conftest.$ac_ext <<_ACEOF
35458/* end confdefs.h.  */
35459
35460#include "confdefs.h"
35461#ifdef HAVE_SYS_QUOTA_H
35462#include <sys/quota.h>
35463#endif
35464
35465int
35466main ()
35467{
35468
35469struct dqblk D;
35470D.dqb_fsoftlimit = 0;
35471  ;
35472  return 0;
35473}
35474_ACEOF
35475rm -f conftest.$ac_objext
35476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35477  (eval $ac_compile) 2>conftest.er1
35478  ac_status=$?
35479  grep -v '^ *+' conftest.er1 >conftest.err
35480  rm -f conftest.er1
35481  cat conftest.err >&5
35482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35483  (exit $ac_status); } &&
35484	 { ac_try='test -z "$ac_c_werror_flag"
35485			 || test ! -s conftest.err'
35486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35487  (eval $ac_try) 2>&5
35488  ac_status=$?
35489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490  (exit $ac_status); }; } &&
35491	 { ac_try='test -s conftest.$ac_objext'
35492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35493  (eval $ac_try) 2>&5
35494  ac_status=$?
35495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496  (exit $ac_status); }; }; then
35497  samba_cv_HAVE_DQB_FSOFTLIMIT=yes
35498else
35499  echo "$as_me: failed program was:" >&5
35500sed 's/^/| /' conftest.$ac_ext >&5
35501
35502samba_cv_HAVE_DQB_FSOFTLIMIT=no
35503fi
35504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35505fi
35506echo "$as_me:$LINENO: result: $samba_cv_HAVE_DQB_FSOFTLIMIT" >&5
35507echo "${ECHO_T}$samba_cv_HAVE_DQB_FSOFTLIMIT" >&6
35508if test "$samba_cv_HAVE_DQB_FSOFTLIMIT"x = "yes"x; then
35509
35510cat >>confdefs.h <<\_ACEOF
35511#define HAVE_DQB_FSOFTLIMIT 1
35512_ACEOF
35513
35514fi
35515
35516##################
35517# look for a working quota system
35518
35519if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
35520echo "$as_me:$LINENO: checking for long quotactl(int cmd, char *special, qid_t id, caddr_t addr)" >&5
35521echo $ECHO_N "checking for long quotactl(int cmd, char *special, qid_t id, caddr_t addr)... $ECHO_C" >&6
35522if test "${samba_cv_HAVE_QUOTACTL_4A+set}" = set; then
35523  echo $ECHO_N "(cached) $ECHO_C" >&6
35524else
35525
35526
35527	old_CFLAGS="$CFLAGS";
35528	CFLAGS="$Werror_FLAGS";
35529	export CFLAGS;
35530	old_CPPFLAGS="$CPPFLAGS";
35531	CPPFLAGS="$CPPFLAGS";
35532	export CPPFLAGS;
35533	old_LDFLAGS="$LDFLAGS";
35534	LDFLAGS="$LDFLAGS";
35535	export LDFLAGS;
35536	if test "$cross_compiling" = yes; then
35537  samba_cv_HAVE_QUOTACTL_4A=cross
35538else
35539  cat >conftest.$ac_ext <<_ACEOF
35540/* confdefs.h.  */
35541_ACEOF
35542cat confdefs.h >>conftest.$ac_ext
35543cat >>conftest.$ac_ext <<_ACEOF
35544/* end confdefs.h.  */
35545
35546#define HAVE_QUOTACTL_4A 1
35547#define AUTOCONF_TEST 1
35548#include "confdefs.h"
35549#include "${srcdir-.}/tests/sysquotas.c"
35550_ACEOF
35551rm -f conftest$ac_exeext
35552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35553  (eval $ac_link) 2>&5
35554  ac_status=$?
35555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558  (eval $ac_try) 2>&5
35559  ac_status=$?
35560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561  (exit $ac_status); }; }; then
35562  samba_cv_HAVE_QUOTACTL_4A=yes
35563else
35564  echo "$as_me: program exited with status $ac_status" >&5
35565echo "$as_me: failed program was:" >&5
35566sed 's/^/| /' conftest.$ac_ext >&5
35567
35568( exit $ac_status )
35569samba_cv_HAVE_QUOTACTL_4A=no
35570fi
35571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35572fi;
35573	CFLAGS="$old_CFLAGS";
35574	old_CFLAGS="";
35575	export CFLAGS;
35576	CPPFLAGS="$old_CPPFLAGS";
35577	old_CPPFLAGS="";
35578	export CPPFLAGS;
35579	LDFLAGS="$old_LDFLAGS";
35580	old_LDFLAGS="";
35581	export LDFLAGS;
35582
35583fi
35584echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_4A" >&5
35585echo "${ECHO_T}$samba_cv_HAVE_QUOTACTL_4A" >&6
35586if test x"$samba_cv_HAVE_QUOTACTL_4A" = x"yes"; then
35587    samba_cv_SYSQUOTA_FOUND=yes;
35588
35589cat >>confdefs.h <<\_ACEOF
35590#define HAVE_QUOTACTL_4A 1
35591_ACEOF
35592
35593    samba_cv_sysquotas_file="lib/sysquotas_4A.c"
35594fi
35595fi
35596
35597if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
35598echo "$as_me:$LINENO: checking for int quotactl(const char *path, int cmd, int id, char *addr)" >&5
35599echo $ECHO_N "checking for int quotactl(const char *path, int cmd, int id, char *addr)... $ECHO_C" >&6
35600if test "${samba_cv_HAVE_QUOTACTL_4B+set}" = set; then
35601  echo $ECHO_N "(cached) $ECHO_C" >&6
35602else
35603
35604
35605	old_CFLAGS="$CFLAGS";
35606	CFLAGS="$Werror_FLAGS";
35607	export CFLAGS;
35608	old_CPPFLAGS="$CPPFLAGS";
35609	CPPFLAGS="$CPPFLAGS";
35610	export CPPFLAGS;
35611	old_LDFLAGS="$LDFLAGS";
35612	LDFLAGS="$LDFLAGS";
35613	export LDFLAGS;
35614	if test "$cross_compiling" = yes; then
35615  samba_cv_HAVE_QUOTACTL_4B=cross
35616else
35617  cat >conftest.$ac_ext <<_ACEOF
35618/* confdefs.h.  */
35619_ACEOF
35620cat confdefs.h >>conftest.$ac_ext
35621cat >>conftest.$ac_ext <<_ACEOF
35622/* end confdefs.h.  */
35623
35624#define HAVE_QUOTACTL_4B 1
35625#define AUTOCONF_TEST 1
35626#include "confdefs.h"
35627#include "${srcdir-.}/tests/sysquotas.c"
35628_ACEOF
35629rm -f conftest$ac_exeext
35630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35631  (eval $ac_link) 2>&5
35632  ac_status=$?
35633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35634  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636  (eval $ac_try) 2>&5
35637  ac_status=$?
35638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639  (exit $ac_status); }; }; then
35640  samba_cv_HAVE_QUOTACTL_4B=yes
35641else
35642  echo "$as_me: program exited with status $ac_status" >&5
35643echo "$as_me: failed program was:" >&5
35644sed 's/^/| /' conftest.$ac_ext >&5
35645
35646( exit $ac_status )
35647samba_cv_HAVE_QUOTACTL_4B=no
35648fi
35649rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35650fi;
35651	CFLAGS="$old_CFLAGS";
35652	old_CFLAGS="";
35653	export CFLAGS;
35654	CPPFLAGS="$old_CPPFLAGS";
35655	old_CPPFLAGS="";
35656	export CPPFLAGS;
35657	LDFLAGS="$old_LDFLAGS";
35658	old_LDFLAGS="";
35659	export LDFLAGS;
35660
35661fi
35662echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_4B" >&5
35663echo "${ECHO_T}$samba_cv_HAVE_QUOTACTL_4B" >&6
35664if test x"$samba_cv_HAVE_QUOTACTL_4B" = x"yes"; then
35665    echo "int quotactl(const char *path, int cmd, int id, char *addr) is not reworked for the new sys_quota api"
35666    samba_cv_SYSQUOTA_FOUND=yes;
35667
35668cat >>confdefs.h <<\_ACEOF
35669#define HAVE_QUOTACTL_4B 1
35670_ACEOF
35671
35672    samba_cv_sysquotas_file="lib/sysquotas_4B.c"
35673fi
35674fi
35675
35676if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
35677echo "$as_me:$LINENO: checking for CRAY int quotactl (char *spec, int request, char *arg)" >&5
35678echo $ECHO_N "checking for CRAY int quotactl (char *spec, int request, char *arg)... $ECHO_C" >&6
35679if test "${samba_cv_HAVE_QUOTACTL_3+set}" = set; then
35680  echo $ECHO_N "(cached) $ECHO_C" >&6
35681else
35682
35683
35684	old_CFLAGS="$CFLAGS";
35685	CFLAGS="$Werror_FLAGS";
35686	export CFLAGS;
35687	old_CPPFLAGS="$CPPFLAGS";
35688	CPPFLAGS="$CPPFLAGS";
35689	export CPPFLAGS;
35690	old_LDFLAGS="$LDFLAGS";
35691	LDFLAGS="$LDFLAGS";
35692	export LDFLAGS;
35693	if test "$cross_compiling" = yes; then
35694  samba_cv_HAVE_QUOTACTL_3=cross
35695else
35696  cat >conftest.$ac_ext <<_ACEOF
35697/* confdefs.h.  */
35698_ACEOF
35699cat confdefs.h >>conftest.$ac_ext
35700cat >>conftest.$ac_ext <<_ACEOF
35701/* end confdefs.h.  */
35702
35703#define HAVE_QUOTACTL_3 1
35704#define AUTOCONF_TEST 1
35705#include "confdefs.h"
35706#include "${srcdir-.}/tests/sysquotas.c"
35707_ACEOF
35708rm -f conftest$ac_exeext
35709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35710  (eval $ac_link) 2>&5
35711  ac_status=$?
35712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715  (eval $ac_try) 2>&5
35716  ac_status=$?
35717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718  (exit $ac_status); }; }; then
35719  samba_cv_HAVE_QUOTACTL_3=yes
35720else
35721  echo "$as_me: program exited with status $ac_status" >&5
35722echo "$as_me: failed program was:" >&5
35723sed 's/^/| /' conftest.$ac_ext >&5
35724
35725( exit $ac_status )
35726samba_cv_HAVE_QUOTACTL_3=no
35727fi
35728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35729fi;
35730	CFLAGS="$old_CFLAGS";
35731	old_CFLAGS="";
35732	export CFLAGS;
35733	CPPFLAGS="$old_CPPFLAGS";
35734	old_CPPFLAGS="";
35735	export CPPFLAGS;
35736	LDFLAGS="$old_LDFLAGS";
35737	old_LDFLAGS="";
35738	export LDFLAGS;
35739
35740fi
35741echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_3" >&5
35742echo "${ECHO_T}$samba_cv_HAVE_QUOTACTL_3" >&6
35743if test x"$samba_cv_HAVE_QUOTACTL_3" = x"yes"; then
35744    echo "CRAY int quotactl (char *spec, int request, char *arg) is NOT reworked for the sys_quota api"
35745    samba_cv_SYSQUOTA_FOUND=yes;
35746
35747cat >>confdefs.h <<\_ACEOF
35748#define HAVE_QUOTACTL_3 1
35749_ACEOF
35750
35751    samba_cv_sysquotas_file="lib/sysquotas_3.c"
35752fi
35753fi
35754
35755#################################################
35756# check for mntent.h and struct mntent
35757
35758for ac_header in mntent.h
35759do
35760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35761if eval "test \"\${$as_ac_Header+set}\" = set"; then
35762  echo "$as_me:$LINENO: checking for $ac_header" >&5
35763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35764if eval "test \"\${$as_ac_Header+set}\" = set"; then
35765  echo $ECHO_N "(cached) $ECHO_C" >&6
35766fi
35767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35769else
35770  # Is the header compilable?
35771echo "$as_me:$LINENO: checking $ac_header usability" >&5
35772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35773cat >conftest.$ac_ext <<_ACEOF
35774/* confdefs.h.  */
35775_ACEOF
35776cat confdefs.h >>conftest.$ac_ext
35777cat >>conftest.$ac_ext <<_ACEOF
35778/* end confdefs.h.  */
35779$ac_includes_default
35780#include <$ac_header>
35781_ACEOF
35782rm -f conftest.$ac_objext
35783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35784  (eval $ac_compile) 2>conftest.er1
35785  ac_status=$?
35786  grep -v '^ *+' conftest.er1 >conftest.err
35787  rm -f conftest.er1
35788  cat conftest.err >&5
35789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790  (exit $ac_status); } &&
35791	 { ac_try='test -z "$ac_c_werror_flag"
35792			 || test ! -s conftest.err'
35793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35794  (eval $ac_try) 2>&5
35795  ac_status=$?
35796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797  (exit $ac_status); }; } &&
35798	 { ac_try='test -s conftest.$ac_objext'
35799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35800  (eval $ac_try) 2>&5
35801  ac_status=$?
35802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803  (exit $ac_status); }; }; then
35804  ac_header_compiler=yes
35805else
35806  echo "$as_me: failed program was:" >&5
35807sed 's/^/| /' conftest.$ac_ext >&5
35808
35809ac_header_compiler=no
35810fi
35811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35813echo "${ECHO_T}$ac_header_compiler" >&6
35814
35815# Is the header present?
35816echo "$as_me:$LINENO: checking $ac_header presence" >&5
35817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35818cat >conftest.$ac_ext <<_ACEOF
35819/* confdefs.h.  */
35820_ACEOF
35821cat confdefs.h >>conftest.$ac_ext
35822cat >>conftest.$ac_ext <<_ACEOF
35823/* end confdefs.h.  */
35824#include <$ac_header>
35825_ACEOF
35826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35827  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35828  ac_status=$?
35829  grep -v '^ *+' conftest.er1 >conftest.err
35830  rm -f conftest.er1
35831  cat conftest.err >&5
35832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833  (exit $ac_status); } >/dev/null; then
35834  if test -s conftest.err; then
35835    ac_cpp_err=$ac_c_preproc_warn_flag
35836    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35837  else
35838    ac_cpp_err=
35839  fi
35840else
35841  ac_cpp_err=yes
35842fi
35843if test -z "$ac_cpp_err"; then
35844  ac_header_preproc=yes
35845else
35846  echo "$as_me: failed program was:" >&5
35847sed 's/^/| /' conftest.$ac_ext >&5
35848
35849  ac_header_preproc=no
35850fi
35851rm -f conftest.err conftest.$ac_ext
35852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35853echo "${ECHO_T}$ac_header_preproc" >&6
35854
35855# So?  What about this header?
35856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35857  yes:no: )
35858    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35860    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35862    ac_header_preproc=yes
35863    ;;
35864  no:yes:* )
35865    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35867    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35868echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35869    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35871    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35872echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35873    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35875    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35877    (
35878      cat <<\_ASBOX
35879## ------------------------------------------ ##
35880## Report this to the AC_PACKAGE_NAME lists.  ##
35881## ------------------------------------------ ##
35882_ASBOX
35883    ) |
35884      sed "s/^/$as_me: WARNING:     /" >&2
35885    ;;
35886esac
35887echo "$as_me:$LINENO: checking for $ac_header" >&5
35888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35889if eval "test \"\${$as_ac_Header+set}\" = set"; then
35890  echo $ECHO_N "(cached) $ECHO_C" >&6
35891else
35892  eval "$as_ac_Header=\$ac_header_preproc"
35893fi
35894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35896
35897fi
35898if test `eval echo '${'$as_ac_Header'}'` = yes; then
35899  cat >>confdefs.h <<_ACEOF
35900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35901_ACEOF
35902
35903fi
35904
35905done
35906
35907#################################################
35908# check for setmntent,getmntent,endmntent
35909
35910
35911
35912for ac_func in setmntent getmntent endmntent
35913do
35914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35915echo "$as_me:$LINENO: checking for $ac_func" >&5
35916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35917if eval "test \"\${$as_ac_var+set}\" = set"; then
35918  echo $ECHO_N "(cached) $ECHO_C" >&6
35919else
35920  cat >conftest.$ac_ext <<_ACEOF
35921/* confdefs.h.  */
35922_ACEOF
35923cat confdefs.h >>conftest.$ac_ext
35924cat >>conftest.$ac_ext <<_ACEOF
35925/* end confdefs.h.  */
35926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35928#define $ac_func innocuous_$ac_func
35929
35930/* System header to define __stub macros and hopefully few prototypes,
35931    which can conflict with char $ac_func (); below.
35932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35933    <limits.h> exists even on freestanding compilers.  */
35934
35935#ifdef __STDC__
35936# include <limits.h>
35937#else
35938# include <assert.h>
35939#endif
35940
35941#undef $ac_func
35942
35943/* Override any gcc2 internal prototype to avoid an error.  */
35944#ifdef __cplusplus
35945extern "C"
35946{
35947#endif
35948/* We use char because int might match the return type of a gcc2
35949   builtin and then its argument prototype would still apply.  */
35950char $ac_func ();
35951/* The GNU C library defines this for functions which it implements
35952    to always fail with ENOSYS.  Some functions are actually named
35953    something starting with __ and the normal name is an alias.  */
35954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35955choke me
35956#else
35957char (*f) () = $ac_func;
35958#endif
35959#ifdef __cplusplus
35960}
35961#endif
35962
35963int
35964main ()
35965{
35966return f != $ac_func;
35967  ;
35968  return 0;
35969}
35970_ACEOF
35971rm -f conftest.$ac_objext conftest$ac_exeext
35972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35973  (eval $ac_link) 2>conftest.er1
35974  ac_status=$?
35975  grep -v '^ *+' conftest.er1 >conftest.err
35976  rm -f conftest.er1
35977  cat conftest.err >&5
35978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979  (exit $ac_status); } &&
35980	 { ac_try='test -z "$ac_c_werror_flag"
35981			 || test ! -s conftest.err'
35982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35983  (eval $ac_try) 2>&5
35984  ac_status=$?
35985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986  (exit $ac_status); }; } &&
35987	 { ac_try='test -s conftest$ac_exeext'
35988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35989  (eval $ac_try) 2>&5
35990  ac_status=$?
35991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992  (exit $ac_status); }; }; then
35993  eval "$as_ac_var=yes"
35994else
35995  echo "$as_me: failed program was:" >&5
35996sed 's/^/| /' conftest.$ac_ext >&5
35997
35998eval "$as_ac_var=no"
35999fi
36000rm -f conftest.err conftest.$ac_objext \
36001      conftest$ac_exeext conftest.$ac_ext
36002fi
36003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36004echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36005if test `eval echo '${'$as_ac_var'}'` = yes; then
36006  cat >>confdefs.h <<_ACEOF
36007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36008_ACEOF
36009
36010fi
36011done
36012
36013
36014#################################################
36015# check for devnm.h and struct mntent
36016
36017for ac_header in devnm.h
36018do
36019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36020if eval "test \"\${$as_ac_Header+set}\" = set"; then
36021  echo "$as_me:$LINENO: checking for $ac_header" >&5
36022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36023if eval "test \"\${$as_ac_Header+set}\" = set"; then
36024  echo $ECHO_N "(cached) $ECHO_C" >&6
36025fi
36026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36028else
36029  # Is the header compilable?
36030echo "$as_me:$LINENO: checking $ac_header usability" >&5
36031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36032cat >conftest.$ac_ext <<_ACEOF
36033/* confdefs.h.  */
36034_ACEOF
36035cat confdefs.h >>conftest.$ac_ext
36036cat >>conftest.$ac_ext <<_ACEOF
36037/* end confdefs.h.  */
36038$ac_includes_default
36039#include <$ac_header>
36040_ACEOF
36041rm -f conftest.$ac_objext
36042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36043  (eval $ac_compile) 2>conftest.er1
36044  ac_status=$?
36045  grep -v '^ *+' conftest.er1 >conftest.err
36046  rm -f conftest.er1
36047  cat conftest.err >&5
36048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049  (exit $ac_status); } &&
36050	 { ac_try='test -z "$ac_c_werror_flag"
36051			 || test ! -s conftest.err'
36052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36053  (eval $ac_try) 2>&5
36054  ac_status=$?
36055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056  (exit $ac_status); }; } &&
36057	 { ac_try='test -s conftest.$ac_objext'
36058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36059  (eval $ac_try) 2>&5
36060  ac_status=$?
36061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062  (exit $ac_status); }; }; then
36063  ac_header_compiler=yes
36064else
36065  echo "$as_me: failed program was:" >&5
36066sed 's/^/| /' conftest.$ac_ext >&5
36067
36068ac_header_compiler=no
36069fi
36070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36072echo "${ECHO_T}$ac_header_compiler" >&6
36073
36074# Is the header present?
36075echo "$as_me:$LINENO: checking $ac_header presence" >&5
36076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36077cat >conftest.$ac_ext <<_ACEOF
36078/* confdefs.h.  */
36079_ACEOF
36080cat confdefs.h >>conftest.$ac_ext
36081cat >>conftest.$ac_ext <<_ACEOF
36082/* end confdefs.h.  */
36083#include <$ac_header>
36084_ACEOF
36085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36087  ac_status=$?
36088  grep -v '^ *+' conftest.er1 >conftest.err
36089  rm -f conftest.er1
36090  cat conftest.err >&5
36091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092  (exit $ac_status); } >/dev/null; then
36093  if test -s conftest.err; then
36094    ac_cpp_err=$ac_c_preproc_warn_flag
36095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36096  else
36097    ac_cpp_err=
36098  fi
36099else
36100  ac_cpp_err=yes
36101fi
36102if test -z "$ac_cpp_err"; then
36103  ac_header_preproc=yes
36104else
36105  echo "$as_me: failed program was:" >&5
36106sed 's/^/| /' conftest.$ac_ext >&5
36107
36108  ac_header_preproc=no
36109fi
36110rm -f conftest.err conftest.$ac_ext
36111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36112echo "${ECHO_T}$ac_header_preproc" >&6
36113
36114# So?  What about this header?
36115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36116  yes:no: )
36117    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36119    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36121    ac_header_preproc=yes
36122    ;;
36123  no:yes:* )
36124    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36126    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36127echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36128    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36130    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36131echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36132    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36134    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36136    (
36137      cat <<\_ASBOX
36138## ------------------------------------------ ##
36139## Report this to the AC_PACKAGE_NAME lists.  ##
36140## ------------------------------------------ ##
36141_ASBOX
36142    ) |
36143      sed "s/^/$as_me: WARNING:     /" >&2
36144    ;;
36145esac
36146echo "$as_me:$LINENO: checking for $ac_header" >&5
36147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36148if eval "test \"\${$as_ac_Header+set}\" = set"; then
36149  echo $ECHO_N "(cached) $ECHO_C" >&6
36150else
36151  eval "$as_ac_Header=\$ac_header_preproc"
36152fi
36153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36155
36156fi
36157if test `eval echo '${'$as_ac_Header'}'` = yes; then
36158  cat >>confdefs.h <<_ACEOF
36159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36160_ACEOF
36161
36162fi
36163
36164done
36165
36166#################################################
36167# check for devnm
36168
36169for ac_func in devnm
36170do
36171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36172echo "$as_me:$LINENO: checking for $ac_func" >&5
36173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36174if eval "test \"\${$as_ac_var+set}\" = set"; then
36175  echo $ECHO_N "(cached) $ECHO_C" >&6
36176else
36177  cat >conftest.$ac_ext <<_ACEOF
36178/* confdefs.h.  */
36179_ACEOF
36180cat confdefs.h >>conftest.$ac_ext
36181cat >>conftest.$ac_ext <<_ACEOF
36182/* end confdefs.h.  */
36183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36184   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36185#define $ac_func innocuous_$ac_func
36186
36187/* System header to define __stub macros and hopefully few prototypes,
36188    which can conflict with char $ac_func (); below.
36189    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36190    <limits.h> exists even on freestanding compilers.  */
36191
36192#ifdef __STDC__
36193# include <limits.h>
36194#else
36195# include <assert.h>
36196#endif
36197
36198#undef $ac_func
36199
36200/* Override any gcc2 internal prototype to avoid an error.  */
36201#ifdef __cplusplus
36202extern "C"
36203{
36204#endif
36205/* We use char because int might match the return type of a gcc2
36206   builtin and then its argument prototype would still apply.  */
36207char $ac_func ();
36208/* The GNU C library defines this for functions which it implements
36209    to always fail with ENOSYS.  Some functions are actually named
36210    something starting with __ and the normal name is an alias.  */
36211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36212choke me
36213#else
36214char (*f) () = $ac_func;
36215#endif
36216#ifdef __cplusplus
36217}
36218#endif
36219
36220int
36221main ()
36222{
36223return f != $ac_func;
36224  ;
36225  return 0;
36226}
36227_ACEOF
36228rm -f conftest.$ac_objext conftest$ac_exeext
36229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36230  (eval $ac_link) 2>conftest.er1
36231  ac_status=$?
36232  grep -v '^ *+' conftest.er1 >conftest.err
36233  rm -f conftest.er1
36234  cat conftest.err >&5
36235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236  (exit $ac_status); } &&
36237	 { ac_try='test -z "$ac_c_werror_flag"
36238			 || test ! -s conftest.err'
36239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36240  (eval $ac_try) 2>&5
36241  ac_status=$?
36242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243  (exit $ac_status); }; } &&
36244	 { ac_try='test -s conftest$ac_exeext'
36245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246  (eval $ac_try) 2>&5
36247  ac_status=$?
36248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249  (exit $ac_status); }; }; then
36250  eval "$as_ac_var=yes"
36251else
36252  echo "$as_me: failed program was:" >&5
36253sed 's/^/| /' conftest.$ac_ext >&5
36254
36255eval "$as_ac_var=no"
36256fi
36257rm -f conftest.err conftest.$ac_objext \
36258      conftest$ac_exeext conftest.$ac_ext
36259fi
36260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36262if test `eval echo '${'$as_ac_var'}'` = yes; then
36263  cat >>confdefs.h <<_ACEOF
36264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36265_ACEOF
36266
36267fi
36268done
36269
36270
36271if test x"$samba_cv_WITH_SYS_QUOTAS" = x"yes"; then
36272    if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
36273	# if --with-sys-quotas=yes then build it
36274	# you have can use the get/set quota command smb.conf
36275	# options then
36276	samba_cv_SYSQUOTA_FOUND=auto
36277    fi
36278    if test x"$samba_cv_TRY_SYS_QUOTAS" != x"yes"; then
36279	# if --with-sys-quotas=yes then build it
36280	# you have can use the get/set quota command smb.conf
36281	# options then
36282	samba_cv_TRY_SYS_QUOTAS=auto
36283    fi
36284fi
36285
36286if test x"$samba_cv_SYSQUOTA_FOUND" != x"no"; then
36287echo "$as_me:$LINENO: checking whether the sys_quota interface works" >&5
36288echo $ECHO_N "checking whether the sys_quota interface works... $ECHO_C" >&6
36289if test "${samba_cv_SYSQUOTA_WORKS+set}" = set; then
36290  echo $ECHO_N "(cached) $ECHO_C" >&6
36291else
36292
36293SAVE_CPPFLAGS="$CPPFLAGS"
36294CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I. -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper -I${srcdir-.}/nsswitch"
36295cat >conftest.$ac_ext <<_ACEOF
36296/* confdefs.h.  */
36297_ACEOF
36298cat confdefs.h >>conftest.$ac_ext
36299cat >>conftest.$ac_ext <<_ACEOF
36300/* end confdefs.h.  */
36301
36302#include "confdefs.h"
36303#define NO_PROTO_H 1
36304#define NO_CONFIG_H 1
36305#define HAVE_SYS_QUOTAS 1
36306#include "${srcdir-.}/${samba_cv_sysquotas_file}"
36307#include "${srcdir-.}/lib/sysquotas.c"
36308
36309int
36310main ()
36311{
36312
36313  ;
36314  return 0;
36315}
36316_ACEOF
36317rm -f conftest.$ac_objext
36318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36319  (eval $ac_compile) 2>conftest.er1
36320  ac_status=$?
36321  grep -v '^ *+' conftest.er1 >conftest.err
36322  rm -f conftest.er1
36323  cat conftest.err >&5
36324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325  (exit $ac_status); } &&
36326	 { ac_try='test -z "$ac_c_werror_flag"
36327			 || test ! -s conftest.err'
36328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36329  (eval $ac_try) 2>&5
36330  ac_status=$?
36331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332  (exit $ac_status); }; } &&
36333	 { ac_try='test -s conftest.$ac_objext'
36334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36335  (eval $ac_try) 2>&5
36336  ac_status=$?
36337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36338  (exit $ac_status); }; }; then
36339  samba_cv_SYSQUOTA_WORKS=yes
36340else
36341  echo "$as_me: failed program was:" >&5
36342sed 's/^/| /' conftest.$ac_ext >&5
36343
36344samba_cv_SYSQUOTA_WORKS=no
36345fi
36346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36347CPPFLAGS="$SAVE_CPPFLAGS"
36348
36349fi
36350echo "$as_me:$LINENO: result: $samba_cv_SYSQUOTA_WORKS" >&5
36351echo "${ECHO_T}$samba_cv_SYSQUOTA_WORKS" >&6
36352if test x"$samba_cv_SYSQUOTA_WORKS" = x"yes"; then
36353echo "$as_me:$LINENO: checking whether to use the new lib/sysquotas.c interface" >&5
36354echo $ECHO_N "checking whether to use the new lib/sysquotas.c interface... $ECHO_C" >&6
36355    if test x"$samba_cv_TRY_SYS_QUOTAS" != x"no"; then
36356
36357cat >>confdefs.h <<\_ACEOF
36358#define WITH_QUOTAS 1
36359_ACEOF
36360
36361
36362cat >>confdefs.h <<\_ACEOF
36363#define HAVE_SYS_QUOTAS 1
36364_ACEOF
36365
36366	samba_cv_WE_USE_SYS_QUOTAS=yes
36367	echo "$as_me:$LINENO: result: yes" >&5
36368echo "${ECHO_T}yes" >&6
36369    else
36370        echo "$as_me:$LINENO: result: no" >&5
36371echo "${ECHO_T}no" >&6
36372    fi
36373fi
36374fi
36375
36376if test x"$samba_cv_SYSQUOTA_FOUND" != x"no" -a x"$samba_cv_found_xfs_header" = x"yes"; then
36377echo "$as_me:$LINENO: checking whether the sys_quota interface works with XFS" >&5
36378echo $ECHO_N "checking whether the sys_quota interface works with XFS... $ECHO_C" >&6
36379if test "${samba_cv_SYSQUOTA_WORKS_XFS+set}" = set; then
36380  echo $ECHO_N "(cached) $ECHO_C" >&6
36381else
36382
36383SAVE_CPPFLAGS="$CPPFLAGS"
36384CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I. -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper -I${srcdir-.}/nsswitch"
36385cat >conftest.$ac_ext <<_ACEOF
36386/* confdefs.h.  */
36387_ACEOF
36388cat confdefs.h >>conftest.$ac_ext
36389cat >>conftest.$ac_ext <<_ACEOF
36390/* end confdefs.h.  */
36391
36392#include "confdefs.h"
36393#define NO_PROTO_H 1
36394#define NO_CONFIG_H 1
36395#define HAVE_SYS_QUOTAS 1
36396#define HAVE_XFS_QUOTAS 1
36397#include "${srcdir-.}/lib/sysquotas_xfs.c"
36398
36399int
36400main ()
36401{
36402
36403  ;
36404  return 0;
36405}
36406_ACEOF
36407rm -f conftest.$ac_objext
36408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36409  (eval $ac_compile) 2>conftest.er1
36410  ac_status=$?
36411  grep -v '^ *+' conftest.er1 >conftest.err
36412  rm -f conftest.er1
36413  cat conftest.err >&5
36414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415  (exit $ac_status); } &&
36416	 { ac_try='test -z "$ac_c_werror_flag"
36417			 || test ! -s conftest.err'
36418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419  (eval $ac_try) 2>&5
36420  ac_status=$?
36421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422  (exit $ac_status); }; } &&
36423	 { ac_try='test -s conftest.$ac_objext'
36424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425  (eval $ac_try) 2>&5
36426  ac_status=$?
36427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428  (exit $ac_status); }; }; then
36429  samba_cv_SYSQUOTA_WORKS_XFS=yes
36430else
36431  echo "$as_me: failed program was:" >&5
36432sed 's/^/| /' conftest.$ac_ext >&5
36433
36434samba_cv_SYSQUOTA_WORKS_XFS=no
36435fi
36436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36437CPPFLAGS="$SAVE_CPPFLAGS"
36438
36439fi
36440echo "$as_me:$LINENO: result: $samba_cv_SYSQUOTA_WORKS_XFS" >&5
36441echo "${ECHO_T}$samba_cv_SYSQUOTA_WORKS_XFS" >&6
36442if test x"$samba_cv_SYSQUOTA_WORKS_XFS" = x"yes"; then
36443    if test x"$samba_cv_WE_USE_SYS_QUOTAS" = x"yes"; then
36444
36445cat >>confdefs.h <<\_ACEOF
36446#define HAVE_XFS_QUOTAS 1
36447_ACEOF
36448
36449    fi
36450fi
36451fi
36452
36453echo "$as_me:$LINENO: checking whether the old quota support works" >&5
36454echo $ECHO_N "checking whether the old quota support works... $ECHO_C" >&6
36455if test "${samba_cv_QUOTA_WORKS+set}" = set; then
36456  echo $ECHO_N "(cached) $ECHO_C" >&6
36457else
36458
36459SAVE_CPPFLAGS="$CPPFLAGS"
36460CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I. -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper -I${srcdir-.}/nsswitch"
36461cat >conftest.$ac_ext <<_ACEOF
36462/* confdefs.h.  */
36463_ACEOF
36464cat confdefs.h >>conftest.$ac_ext
36465cat >>conftest.$ac_ext <<_ACEOF
36466/* end confdefs.h.  */
36467
36468#include "confdefs.h"
36469#define NO_PROTO_H 1
36470#define NO_CONFIG_H 1
36471#include "${srcdir-.}/smbd/quotas.c"
36472
36473int
36474main ()
36475{
36476
36477  ;
36478  return 0;
36479}
36480_ACEOF
36481rm -f conftest.$ac_objext
36482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36483  (eval $ac_compile) 2>conftest.er1
36484  ac_status=$?
36485  grep -v '^ *+' conftest.er1 >conftest.err
36486  rm -f conftest.er1
36487  cat conftest.err >&5
36488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489  (exit $ac_status); } &&
36490	 { ac_try='test -z "$ac_c_werror_flag"
36491			 || test ! -s conftest.err'
36492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36493  (eval $ac_try) 2>&5
36494  ac_status=$?
36495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496  (exit $ac_status); }; } &&
36497	 { ac_try='test -s conftest.$ac_objext'
36498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36499  (eval $ac_try) 2>&5
36500  ac_status=$?
36501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502  (exit $ac_status); }; }; then
36503  samba_cv_QUOTA_WORKS=yes
36504else
36505  echo "$as_me: failed program was:" >&5
36506sed 's/^/| /' conftest.$ac_ext >&5
36507
36508samba_cv_QUOTA_WORKS=no
36509fi
36510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36511CPPFLAGS="$SAVE_CPPFLAGS"
36512
36513fi
36514echo "$as_me:$LINENO: result: $samba_cv_QUOTA_WORKS" >&5
36515echo "${ECHO_T}$samba_cv_QUOTA_WORKS" >&6
36516if test x"$samba_cv_QUOTA_WORKS" = x"yes"; then
36517echo "$as_me:$LINENO: checking whether to use the old quota support" >&5
36518echo $ECHO_N "checking whether to use the old quota support... $ECHO_C" >&6
36519    if test x"$samba_cv_WE_USE_SYS_QUOTAS" != x"yes"; then
36520      if test x"$samba_cv_TRY_QUOTAS" != x"no"; then
36521
36522cat >>confdefs.h <<\_ACEOF
36523#define WITH_QUOTAS 1
36524_ACEOF
36525
36526	echo "$as_me:$LINENO: result: yes" >&5
36527echo "${ECHO_T}yes" >&6
36528      else
36529	echo "$as_me:$LINENO: result: no" >&5
36530echo "${ECHO_T}no" >&6
36531      fi
36532    else
36533      echo "$as_me:$LINENO: result: no" >&5
36534echo "${ECHO_T}no" >&6
36535    fi
36536fi
36537
36538####################
36539# End of quota check samba_cv_RUN_QUOTA_TESTS
36540fi
36541
36542#################################################
36543# check for experimental utmp accounting
36544
36545echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
36546echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
36547WITH_UTMP=yes
36548
36549# Check whether --with-utmp or --without-utmp was given.
36550if test "${with_utmp+set}" = set; then
36551  withval="$with_utmp"
36552   case "$withval" in
36553  no)
36554		WITH_UTMP=no
36555		;;
36556  *)
36557		WITH_UTMP=yes
36558                ;;
36559  esac
36560fi;
36561
36562# utmp requires utmp.h
36563# Note similar check earlier, when checking utmp details.
36564
36565if test x"$WITH_UTMP" = x"yes" -a x"$ac_cv_header_utmp_h" = x"no"; then
36566	utmp_no_reason=", no utmp.h on $host_os"
36567	WITH_UTMP=no
36568fi
36569
36570# Display test results
36571
36572if test x"$WITH_UTMP" = x"yes"; then
36573        echo "$as_me:$LINENO: result: yes" >&5
36574echo "${ECHO_T}yes" >&6
36575
36576cat >>confdefs.h <<\_ACEOF
36577#define WITH_UTMP 1
36578_ACEOF
36579
36580else
36581        echo "$as_me:$LINENO: result: no$utmp_no_reason" >&5
36582echo "${ECHO_T}no$utmp_no_reason" >&6
36583fi
36584
36585#################################################
36586# choose native language(s) of man pages
36587echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
36588echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
36589
36590# Check whether --with-manpages-langs or --without-manpages-langs was given.
36591if test "${with_manpages_langs+set}" = set; then
36592  withval="$with_manpages_langs"
36593   case "$withval" in
36594  yes|no)
36595    { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
36596echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
36597    manlangs="en"
36598  ;;
36599  *)
36600    manlangs="$withval"
36601  ;;
36602  esac
36603
36604  echo "$as_me:$LINENO: result: $manlangs" >&5
36605echo "${ECHO_T}$manlangs" >&6
36606  manlangs=`echo $manlangs | sed "s/,/ /g"`   # replacing commas with spaces to produce a list
36607
36608else
36609  manlangs="en"
36610  echo "$as_me:$LINENO: result: $manlangs" >&5
36611echo "${ECHO_T}$manlangs" >&6
36612
36613
36614fi;
36615
36616#################################################
36617# should we build libsmbclient?
36618
36619INSTALLCLIENTCMD_SH=:
36620INSTALLCLIENTCMD_A=:
36621INSTALLCLIENT=
36622LIBSMBCLIENT_SHARED=
36623LIBSMBCLIENT=
36624echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
36625echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
36626
36627# Check whether --with-libsmbclient or --without-libsmbclient was given.
36628if test "${with_libsmbclient+set}" = set; then
36629  withval="$with_libsmbclient"
36630   case "$withval" in
36631  no)
36632     echo "$as_me:$LINENO: result: no" >&5
36633echo "${ECHO_T}no" >&6
36634     ;;
36635  *)
36636     if test $BLDSHARED = true; then
36637        INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
36638	## build the static version of libsmbclient as well
36639	INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
36640        LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
36641        LIBSMBCLIENT=libsmbclient
36642        echo "$as_me:$LINENO: result: yes" >&5
36643echo "${ECHO_T}yes" >&6
36644     else
36645	enable_static=yes
36646        echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
36647echo "${ECHO_T}no shared library support -- will supply static library" >&6
36648     fi
36649     if test $enable_static = yes; then
36650        INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
36651        LIBSMBCLIENT=libsmbclient
36652     fi
36653     INSTALLCLIENT=installclientlib
36654     ;;
36655  esac
36656else
36657
36658# if unspecified, default is to built it iff possible.
36659  if test $BLDSHARED = true; then
36660     INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
36661     LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
36662     LIBSMBCLIENT=libsmbclient
36663     echo "$as_me:$LINENO: result: yes" >&5
36664echo "${ECHO_T}yes" >&6
36665   else
36666     enable_static=yes
36667     echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
36668echo "${ECHO_T}no shared library support -- will supply static library" >&6
36669   fi
36670   if test $enable_static = yes; then
36671     INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
36672     LIBSMBCLIENT=libsmbclient
36673  fi
36674  INSTALLCLIENT=installclientlib
36675
36676fi;
36677
36678
36679#################################################
36680# these tests are taken from the GNU fileutils package
36681{ echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
36682echo "$as_me: checking how to get filesystem space usage..." >&6;}
36683space=no
36684
36685# Test for statvfs64.
36686if test $space = no; then
36687  # SVR4
36688  echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
36689echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
36690if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
36691  echo $ECHO_N "(cached) $ECHO_C" >&6
36692else
36693  if test "$cross_compiling" = yes; then
36694  fu_cv_sys_stat_statvfs64=cross
36695else
36696  cat >conftest.$ac_ext <<_ACEOF
36697/* confdefs.h.  */
36698_ACEOF
36699cat confdefs.h >>conftest.$ac_ext
36700cat >>conftest.$ac_ext <<_ACEOF
36701/* end confdefs.h.  */
36702
36703#if defined(HAVE_UNISTD_H)
36704#include <unistd.h>
36705#endif
36706#include <sys/types.h>
36707#include <sys/statvfs.h>
36708  main ()
36709  {
36710    struct statvfs64 fsd;
36711    exit (statvfs64 (".", &fsd));
36712  }
36713_ACEOF
36714rm -f conftest$ac_exeext
36715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36716  (eval $ac_link) 2>&5
36717  ac_status=$?
36718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36721  (eval $ac_try) 2>&5
36722  ac_status=$?
36723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724  (exit $ac_status); }; }; then
36725  fu_cv_sys_stat_statvfs64=yes
36726else
36727  echo "$as_me: program exited with status $ac_status" >&5
36728echo "$as_me: failed program was:" >&5
36729sed 's/^/| /' conftest.$ac_ext >&5
36730
36731( exit $ac_status )
36732fu_cv_sys_stat_statvfs64=no
36733fi
36734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36735fi
36736fi
36737echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
36738echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
36739  if test $fu_cv_sys_stat_statvfs64 = yes; then
36740    space=yes
36741
36742cat >>confdefs.h <<\_ACEOF
36743#define STAT_STATVFS64 1
36744_ACEOF
36745
36746  fi
36747fi
36748
36749# Perform only the link test since it seems there are no variants of the
36750# statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
36751# because that got a false positive on SCO OSR5.  Adding the declaration
36752# of a `struct statvfs' causes this test to fail (as it should) on such
36753# systems.  That system is reported to work fine with STAT_STATFS4 which
36754# is what it gets when this test fails.
36755if test $space = no; then
36756  # SVR4
36757  echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
36758echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
36759if test "${fu_cv_sys_stat_statvfs+set}" = set; then
36760  echo $ECHO_N "(cached) $ECHO_C" >&6
36761else
36762  cat >conftest.$ac_ext <<_ACEOF
36763/* confdefs.h.  */
36764_ACEOF
36765cat confdefs.h >>conftest.$ac_ext
36766cat >>conftest.$ac_ext <<_ACEOF
36767/* end confdefs.h.  */
36768#include <sys/types.h>
36769#include <sys/statvfs.h>
36770int
36771main ()
36772{
36773struct statvfs fsd; statvfs (0, &fsd);
36774  ;
36775  return 0;
36776}
36777_ACEOF
36778rm -f conftest.$ac_objext conftest$ac_exeext
36779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36780  (eval $ac_link) 2>conftest.er1
36781  ac_status=$?
36782  grep -v '^ *+' conftest.er1 >conftest.err
36783  rm -f conftest.er1
36784  cat conftest.err >&5
36785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786  (exit $ac_status); } &&
36787	 { ac_try='test -z "$ac_c_werror_flag"
36788			 || test ! -s conftest.err'
36789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36790  (eval $ac_try) 2>&5
36791  ac_status=$?
36792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793  (exit $ac_status); }; } &&
36794	 { ac_try='test -s conftest$ac_exeext'
36795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36796  (eval $ac_try) 2>&5
36797  ac_status=$?
36798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799  (exit $ac_status); }; }; then
36800  fu_cv_sys_stat_statvfs=yes
36801else
36802  echo "$as_me: failed program was:" >&5
36803sed 's/^/| /' conftest.$ac_ext >&5
36804
36805fu_cv_sys_stat_statvfs=no
36806fi
36807rm -f conftest.err conftest.$ac_objext \
36808      conftest$ac_exeext conftest.$ac_ext
36809fi
36810echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
36811echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
36812  if test $fu_cv_sys_stat_statvfs = yes; then
36813    space=yes
36814
36815cat >>confdefs.h <<\_ACEOF
36816#define STAT_STATVFS 1
36817_ACEOF
36818
36819  fi
36820fi
36821
36822if test $space = no; then
36823  # DEC Alpha running OSF/1
36824  echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
36825echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
36826  if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
36827  echo $ECHO_N "(cached) $ECHO_C" >&6
36828else
36829  if test "$cross_compiling" = yes; then
36830  fu_cv_sys_stat_statfs3_osf1=no
36831else
36832  cat >conftest.$ac_ext <<_ACEOF
36833/* confdefs.h.  */
36834_ACEOF
36835cat confdefs.h >>conftest.$ac_ext
36836cat >>conftest.$ac_ext <<_ACEOF
36837/* end confdefs.h.  */
36838
36839#include <sys/param.h>
36840#include <sys/types.h>
36841#include <sys/mount.h>
36842  main ()
36843  {
36844    struct statfs fsd;
36845    fsd.f_fsize = 0;
36846    exit (statfs (".", &fsd, sizeof (struct statfs)));
36847  }
36848_ACEOF
36849rm -f conftest$ac_exeext
36850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36851  (eval $ac_link) 2>&5
36852  ac_status=$?
36853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36856  (eval $ac_try) 2>&5
36857  ac_status=$?
36858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859  (exit $ac_status); }; }; then
36860  fu_cv_sys_stat_statfs3_osf1=yes
36861else
36862  echo "$as_me: program exited with status $ac_status" >&5
36863echo "$as_me: failed program was:" >&5
36864sed 's/^/| /' conftest.$ac_ext >&5
36865
36866( exit $ac_status )
36867fu_cv_sys_stat_statfs3_osf1=no
36868fi
36869rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36870fi
36871fi
36872
36873  echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
36874echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
36875  if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
36876    space=yes
36877
36878cat >>confdefs.h <<\_ACEOF
36879#define STAT_STATFS3_OSF1 1
36880_ACEOF
36881
36882  fi
36883fi
36884
36885if test $space = no; then
36886# AIX
36887  echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
36888echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
36889  if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
36890  echo $ECHO_N "(cached) $ECHO_C" >&6
36891else
36892  if test "$cross_compiling" = yes; then
36893  fu_cv_sys_stat_statfs2_bsize=no
36894else
36895  cat >conftest.$ac_ext <<_ACEOF
36896/* confdefs.h.  */
36897_ACEOF
36898cat confdefs.h >>conftest.$ac_ext
36899cat >>conftest.$ac_ext <<_ACEOF
36900/* end confdefs.h.  */
36901
36902#ifdef HAVE_SYS_PARAM_H
36903#include <sys/param.h>
36904#endif
36905#ifdef HAVE_SYS_MOUNT_H
36906#include <sys/mount.h>
36907#endif
36908#ifdef HAVE_SYS_VFS_H
36909#include <sys/vfs.h>
36910#endif
36911  main ()
36912  {
36913  struct statfs fsd;
36914  fsd.f_bsize = 0;
36915  exit (statfs (".", &fsd));
36916  }
36917_ACEOF
36918rm -f conftest$ac_exeext
36919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36920  (eval $ac_link) 2>&5
36921  ac_status=$?
36922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36925  (eval $ac_try) 2>&5
36926  ac_status=$?
36927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928  (exit $ac_status); }; }; then
36929  fu_cv_sys_stat_statfs2_bsize=yes
36930else
36931  echo "$as_me: program exited with status $ac_status" >&5
36932echo "$as_me: failed program was:" >&5
36933sed 's/^/| /' conftest.$ac_ext >&5
36934
36935( exit $ac_status )
36936fu_cv_sys_stat_statfs2_bsize=no
36937fi
36938rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36939fi
36940fi
36941
36942  echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
36943echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
36944  if test $fu_cv_sys_stat_statfs2_bsize = yes; then
36945    space=yes
36946
36947cat >>confdefs.h <<\_ACEOF
36948#define STAT_STATFS2_BSIZE 1
36949_ACEOF
36950
36951  fi
36952fi
36953
36954if test $space = no; then
36955# SVR3
36956  echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
36957echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
36958  if test "${fu_cv_sys_stat_statfs4+set}" = set; then
36959  echo $ECHO_N "(cached) $ECHO_C" >&6
36960else
36961  if test "$cross_compiling" = yes; then
36962  fu_cv_sys_stat_statfs4=no
36963else
36964  cat >conftest.$ac_ext <<_ACEOF
36965/* confdefs.h.  */
36966_ACEOF
36967cat confdefs.h >>conftest.$ac_ext
36968cat >>conftest.$ac_ext <<_ACEOF
36969/* end confdefs.h.  */
36970#include <sys/types.h>
36971#include <sys/statfs.h>
36972  main ()
36973  {
36974  struct statfs fsd;
36975  exit (statfs (".", &fsd, sizeof fsd, 0));
36976  }
36977_ACEOF
36978rm -f conftest$ac_exeext
36979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36980  (eval $ac_link) 2>&5
36981  ac_status=$?
36982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36985  (eval $ac_try) 2>&5
36986  ac_status=$?
36987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988  (exit $ac_status); }; }; then
36989  fu_cv_sys_stat_statfs4=yes
36990else
36991  echo "$as_me: program exited with status $ac_status" >&5
36992echo "$as_me: failed program was:" >&5
36993sed 's/^/| /' conftest.$ac_ext >&5
36994
36995( exit $ac_status )
36996fu_cv_sys_stat_statfs4=no
36997fi
36998rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36999fi
37000fi
37001
37002  echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
37003echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
37004  if test $fu_cv_sys_stat_statfs4 = yes; then
37005    space=yes
37006
37007cat >>confdefs.h <<\_ACEOF
37008#define STAT_STATFS4 1
37009_ACEOF
37010
37011  fi
37012fi
37013
37014if test $space = no; then
37015# 4.4BSD and NetBSD
37016  echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
37017echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
37018  if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
37019  echo $ECHO_N "(cached) $ECHO_C" >&6
37020else
37021  if test "$cross_compiling" = yes; then
37022  fu_cv_sys_stat_statfs2_fsize=no
37023else
37024  cat >conftest.$ac_ext <<_ACEOF
37025/* confdefs.h.  */
37026_ACEOF
37027cat confdefs.h >>conftest.$ac_ext
37028cat >>conftest.$ac_ext <<_ACEOF
37029/* end confdefs.h.  */
37030#include <sys/types.h>
37031#ifdef HAVE_SYS_PARAM_H
37032#include <sys/param.h>
37033#endif
37034#ifdef HAVE_SYS_MOUNT_H
37035#include <sys/mount.h>
37036#endif
37037  main ()
37038  {
37039  struct statfs fsd;
37040  fsd.f_fsize = 0;
37041  exit (statfs (".", &fsd));
37042  }
37043_ACEOF
37044rm -f conftest$ac_exeext
37045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37046  (eval $ac_link) 2>&5
37047  ac_status=$?
37048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051  (eval $ac_try) 2>&5
37052  ac_status=$?
37053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054  (exit $ac_status); }; }; then
37055  fu_cv_sys_stat_statfs2_fsize=yes
37056else
37057  echo "$as_me: program exited with status $ac_status" >&5
37058echo "$as_me: failed program was:" >&5
37059sed 's/^/| /' conftest.$ac_ext >&5
37060
37061( exit $ac_status )
37062fu_cv_sys_stat_statfs2_fsize=no
37063fi
37064rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37065fi
37066fi
37067
37068  echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
37069echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
37070  if test $fu_cv_sys_stat_statfs2_fsize = yes; then
37071    space=yes
37072
37073cat >>confdefs.h <<\_ACEOF
37074#define STAT_STATFS2_FSIZE 1
37075_ACEOF
37076
37077  fi
37078fi
37079
37080if test $space = no; then
37081  # Ultrix
37082  echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
37083echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
37084  if test "${fu_cv_sys_stat_fs_data+set}" = set; then
37085  echo $ECHO_N "(cached) $ECHO_C" >&6
37086else
37087  if test "$cross_compiling" = yes; then
37088  fu_cv_sys_stat_fs_data=no
37089else
37090  cat >conftest.$ac_ext <<_ACEOF
37091/* confdefs.h.  */
37092_ACEOF
37093cat confdefs.h >>conftest.$ac_ext
37094cat >>conftest.$ac_ext <<_ACEOF
37095/* end confdefs.h.  */
37096#include <sys/types.h>
37097#ifdef HAVE_SYS_PARAM_H
37098#include <sys/param.h>
37099#endif
37100#ifdef HAVE_SYS_MOUNT_H
37101#include <sys/mount.h>
37102#endif
37103#ifdef HAVE_SYS_FS_TYPES_H
37104#include <sys/fs_types.h>
37105#endif
37106  main ()
37107  {
37108  struct fs_data fsd;
37109  /* Ultrix's statfs returns 1 for success,
37110     0 for not mounted, -1 for failure.  */
37111  exit (statfs (".", &fsd) != 1);
37112  }
37113_ACEOF
37114rm -f conftest$ac_exeext
37115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37116  (eval $ac_link) 2>&5
37117  ac_status=$?
37118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37119  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37121  (eval $ac_try) 2>&5
37122  ac_status=$?
37123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124  (exit $ac_status); }; }; then
37125  fu_cv_sys_stat_fs_data=yes
37126else
37127  echo "$as_me: program exited with status $ac_status" >&5
37128echo "$as_me: failed program was:" >&5
37129sed 's/^/| /' conftest.$ac_ext >&5
37130
37131( exit $ac_status )
37132fu_cv_sys_stat_fs_data=no
37133fi
37134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37135fi
37136fi
37137
37138  echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
37139echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
37140  if test $fu_cv_sys_stat_fs_data = yes; then
37141    space=yes
37142
37143cat >>confdefs.h <<\_ACEOF
37144#define STAT_STATFS2_FS_DATA 1
37145_ACEOF
37146
37147  fi
37148fi
37149
37150#
37151# As a gating factor for large file support, in order to
37152# use <4GB files we must have the following minimal support
37153# available.
37154# long long, and a 64 bit off_t or off64_t.
37155# If we don't have all of these then disable large
37156# file support.
37157#
37158echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
37159echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
37160cat >conftest.$ac_ext <<_ACEOF
37161/* confdefs.h.  */
37162_ACEOF
37163cat confdefs.h >>conftest.$ac_ext
37164cat >>conftest.$ac_ext <<_ACEOF
37165/* end confdefs.h.  */
37166
37167#if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
37168#include <sys/types.h>
37169#else
37170__COMPILE_ERROR_
37171#endif
37172
37173int
37174main ()
37175{
37176int i
37177  ;
37178  return 0;
37179}
37180_ACEOF
37181rm -f conftest.$ac_objext
37182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37183  (eval $ac_compile) 2>conftest.er1
37184  ac_status=$?
37185  grep -v '^ *+' conftest.er1 >conftest.err
37186  rm -f conftest.er1
37187  cat conftest.err >&5
37188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189  (exit $ac_status); } &&
37190	 { ac_try='test -z "$ac_c_werror_flag"
37191			 || test ! -s conftest.err'
37192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37193  (eval $ac_try) 2>&5
37194  ac_status=$?
37195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196  (exit $ac_status); }; } &&
37197	 { ac_try='test -s conftest.$ac_objext'
37198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37199  (eval $ac_try) 2>&5
37200  ac_status=$?
37201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37202  (exit $ac_status); }; }; then
37203  samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
37204else
37205  echo "$as_me: failed program was:" >&5
37206sed 's/^/| /' conftest.$ac_ext >&5
37207
37208samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
37209fi
37210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37211if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
37212
37213cat >>confdefs.h <<\_ACEOF
37214#define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
37215_ACEOF
37216
37217fi
37218echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
37219echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
37220
37221
37222# Check whether --with-spinlocks or --without-spinlocks was given.
37223if test "${with_spinlocks+set}" = set; then
37224  withval="$with_spinlocks"
37225
37226fi;
37227if test "x$with_spinlocks" = "xyes"; then
37228
37229cat >>confdefs.h <<\_ACEOF
37230#define USE_SPINLOCKS 1
37231_ACEOF
37232
37233
37234    case "$host_cpu" in
37235        sparc)
37236
37237cat >>confdefs.h <<\_ACEOF
37238#define SPARC_SPINLOCKS 1
37239_ACEOF
37240
37241            ;;
37242
37243        i386|i486|i586|i686)
37244
37245cat >>confdefs.h <<\_ACEOF
37246#define INTEL_SPINLOCKS 1
37247_ACEOF
37248
37249            ;;
37250
37251        mips)
37252
37253cat >>confdefs.h <<\_ACEOF
37254#define MIPS_SPINLOCKS 1
37255_ACEOF
37256
37257            ;;
37258
37259        powerpc)
37260
37261cat >>confdefs.h <<\_ACEOF
37262#define POWERPC_SPINLOCKS 1
37263_ACEOF
37264
37265            ;;
37266    esac
37267fi
37268
37269#################################################
37270# check for ACL support
37271
37272echo "$as_me:$LINENO: checking whether to support ACLs" >&5
37273echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
37274
37275# Check whether --with-acl-support or --without-acl-support was given.
37276if test "${with_acl_support+set}" = set; then
37277  withval="$with_acl_support"
37278   case "$withval" in
37279  yes)
37280
37281	case "$host_os" in
37282	*sysv5*)
37283		echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
37284echo "${ECHO_T}Using UnixWare ACLs" >&6
37285
37286cat >>confdefs.h <<\_ACEOF
37287#define HAVE_UNIXWARE_ACLS 1
37288_ACEOF
37289
37290		;;
37291	*solaris*)
37292		echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
37293echo "${ECHO_T}Using solaris ACLs" >&6
37294
37295cat >>confdefs.h <<\_ACEOF
37296#define HAVE_SOLARIS_ACLS 1
37297_ACEOF
37298
37299		;;
37300	*hpux*)
37301		echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
37302echo "${ECHO_T}Using HPUX ACLs" >&6
37303
37304cat >>confdefs.h <<\_ACEOF
37305#define HAVE_HPUX_ACLS 1
37306_ACEOF
37307
37308		;;
37309	*irix*)
37310		echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
37311echo "${ECHO_T}Using IRIX ACLs" >&6
37312
37313cat >>confdefs.h <<\_ACEOF
37314#define HAVE_IRIX_ACLS 1
37315_ACEOF
37316
37317		;;
37318	*aix*)
37319		echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
37320echo "${ECHO_T}Using AIX ACLs" >&6
37321
37322cat >>confdefs.h <<\_ACEOF
37323#define HAVE_AIX_ACLS 1
37324_ACEOF
37325
37326		;;
37327	*osf*)
37328		echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
37329echo "${ECHO_T}Using Tru64 ACLs" >&6
37330
37331cat >>confdefs.h <<\_ACEOF
37332#define HAVE_TRU64_ACLS 1
37333_ACEOF
37334
37335		ACL_LIBS="$ACL_LIBS -lpacl"
37336		;;
37337	*freebsd5*|*freebsd6*)
37338		echo "$as_me:$LINENO: result: Using FreeBSD posix ACLs" >&5
37339echo "${ECHO_T}Using FreeBSD posix ACLs" >&6
37340
37341cat >>confdefs.h <<\_ACEOF
37342#define HAVE_POSIX_ACLS 1
37343_ACEOF
37344
37345
37346cat >>confdefs.h <<\_ACEOF
37347#define HAVE_ACL_GET_PERM_NP 1
37348_ACEOF
37349
37350		;;
37351	*linux*)
37352		echo "$as_me:$LINENO: checking for getxattr in -lattr" >&5
37353echo $ECHO_N "checking for getxattr in -lattr... $ECHO_C" >&6
37354if test "${ac_cv_lib_attr_getxattr+set}" = set; then
37355  echo $ECHO_N "(cached) $ECHO_C" >&6
37356else
37357  ac_check_lib_save_LIBS=$LIBS
37358LIBS="-lattr  $LIBS"
37359cat >conftest.$ac_ext <<_ACEOF
37360/* confdefs.h.  */
37361_ACEOF
37362cat confdefs.h >>conftest.$ac_ext
37363cat >>conftest.$ac_ext <<_ACEOF
37364/* end confdefs.h.  */
37365
37366/* Override any gcc2 internal prototype to avoid an error.  */
37367#ifdef __cplusplus
37368extern "C"
37369#endif
37370/* We use char because int might match the return type of a gcc2
37371   builtin and then its argument prototype would still apply.  */
37372char getxattr ();
37373int
37374main ()
37375{
37376getxattr ();
37377  ;
37378  return 0;
37379}
37380_ACEOF
37381rm -f conftest.$ac_objext conftest$ac_exeext
37382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37383  (eval $ac_link) 2>conftest.er1
37384  ac_status=$?
37385  grep -v '^ *+' conftest.er1 >conftest.err
37386  rm -f conftest.er1
37387  cat conftest.err >&5
37388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389  (exit $ac_status); } &&
37390	 { ac_try='test -z "$ac_c_werror_flag"
37391			 || test ! -s conftest.err'
37392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393  (eval $ac_try) 2>&5
37394  ac_status=$?
37395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396  (exit $ac_status); }; } &&
37397	 { ac_try='test -s conftest$ac_exeext'
37398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399  (eval $ac_try) 2>&5
37400  ac_status=$?
37401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402  (exit $ac_status); }; }; then
37403  ac_cv_lib_attr_getxattr=yes
37404else
37405  echo "$as_me: failed program was:" >&5
37406sed 's/^/| /' conftest.$ac_ext >&5
37407
37408ac_cv_lib_attr_getxattr=no
37409fi
37410rm -f conftest.err conftest.$ac_objext \
37411      conftest$ac_exeext conftest.$ac_ext
37412LIBS=$ac_check_lib_save_LIBS
37413fi
37414echo "$as_me:$LINENO: result: $ac_cv_lib_attr_getxattr" >&5
37415echo "${ECHO_T}$ac_cv_lib_attr_getxattr" >&6
37416if test $ac_cv_lib_attr_getxattr = yes; then
37417  ACL_LIBS="$ACL_LIBS -lattr"
37418fi
37419
37420       		echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
37421echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
37422if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
37423  echo $ECHO_N "(cached) $ECHO_C" >&6
37424else
37425  ac_check_lib_save_LIBS=$LIBS
37426LIBS="-lacl  $LIBS"
37427cat >conftest.$ac_ext <<_ACEOF
37428/* confdefs.h.  */
37429_ACEOF
37430cat confdefs.h >>conftest.$ac_ext
37431cat >>conftest.$ac_ext <<_ACEOF
37432/* end confdefs.h.  */
37433
37434/* Override any gcc2 internal prototype to avoid an error.  */
37435#ifdef __cplusplus
37436extern "C"
37437#endif
37438/* We use char because int might match the return type of a gcc2
37439   builtin and then its argument prototype would still apply.  */
37440char acl_get_file ();
37441int
37442main ()
37443{
37444acl_get_file ();
37445  ;
37446  return 0;
37447}
37448_ACEOF
37449rm -f conftest.$ac_objext conftest$ac_exeext
37450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37451  (eval $ac_link) 2>conftest.er1
37452  ac_status=$?
37453  grep -v '^ *+' conftest.er1 >conftest.err
37454  rm -f conftest.er1
37455  cat conftest.err >&5
37456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457  (exit $ac_status); } &&
37458	 { ac_try='test -z "$ac_c_werror_flag"
37459			 || test ! -s conftest.err'
37460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461  (eval $ac_try) 2>&5
37462  ac_status=$?
37463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464  (exit $ac_status); }; } &&
37465	 { ac_try='test -s conftest$ac_exeext'
37466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37467  (eval $ac_try) 2>&5
37468  ac_status=$?
37469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470  (exit $ac_status); }; }; then
37471  ac_cv_lib_acl_acl_get_file=yes
37472else
37473  echo "$as_me: failed program was:" >&5
37474sed 's/^/| /' conftest.$ac_ext >&5
37475
37476ac_cv_lib_acl_acl_get_file=no
37477fi
37478rm -f conftest.err conftest.$ac_objext \
37479      conftest$ac_exeext conftest.$ac_ext
37480LIBS=$ac_check_lib_save_LIBS
37481fi
37482echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
37483echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
37484if test $ac_cv_lib_acl_acl_get_file = yes; then
37485  ACL_LIBS="$ACL_LIBS -lacl"
37486fi
37487
37488		echo "$as_me:$LINENO: checking for ACL support" >&5
37489echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
37490if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
37491  echo $ECHO_N "(cached) $ECHO_C" >&6
37492else
37493
37494		acl_LIBS=$LIBS
37495		LIBS="$LIBS -lacl"
37496		cat >conftest.$ac_ext <<_ACEOF
37497/* confdefs.h.  */
37498_ACEOF
37499cat confdefs.h >>conftest.$ac_ext
37500cat >>conftest.$ac_ext <<_ACEOF
37501/* end confdefs.h.  */
37502#include <sys/types.h>
37503#include <sys/acl.h>
37504int
37505main ()
37506{
37507 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
37508  ;
37509  return 0;
37510}
37511_ACEOF
37512rm -f conftest.$ac_objext conftest$ac_exeext
37513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37514  (eval $ac_link) 2>conftest.er1
37515  ac_status=$?
37516  grep -v '^ *+' conftest.er1 >conftest.err
37517  rm -f conftest.er1
37518  cat conftest.err >&5
37519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37520  (exit $ac_status); } &&
37521	 { ac_try='test -z "$ac_c_werror_flag"
37522			 || test ! -s conftest.err'
37523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37524  (eval $ac_try) 2>&5
37525  ac_status=$?
37526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527  (exit $ac_status); }; } &&
37528	 { ac_try='test -s conftest$ac_exeext'
37529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37530  (eval $ac_try) 2>&5
37531  ac_status=$?
37532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533  (exit $ac_status); }; }; then
37534  samba_cv_HAVE_POSIX_ACLS=yes
37535else
37536  echo "$as_me: failed program was:" >&5
37537sed 's/^/| /' conftest.$ac_ext >&5
37538
37539samba_cv_HAVE_POSIX_ACLS=no
37540fi
37541rm -f conftest.err conftest.$ac_objext \
37542      conftest$ac_exeext conftest.$ac_ext
37543		LIBS=$acl_LIBS
37544fi
37545echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
37546echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
37547			if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
37548				echo "$as_me:$LINENO: result: Using posix ACLs" >&5
37549echo "${ECHO_T}Using posix ACLs" >&6
37550
37551cat >>confdefs.h <<\_ACEOF
37552#define HAVE_POSIX_ACLS 1
37553_ACEOF
37554
37555				echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
37556echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
37557if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
37558  echo $ECHO_N "(cached) $ECHO_C" >&6
37559else
37560
37561				acl_LIBS=$LIBS
37562				LIBS="$LIBS -lacl"
37563				cat >conftest.$ac_ext <<_ACEOF
37564/* confdefs.h.  */
37565_ACEOF
37566cat confdefs.h >>conftest.$ac_ext
37567cat >>conftest.$ac_ext <<_ACEOF
37568/* end confdefs.h.  */
37569#include <sys/types.h>
37570#include <sys/acl.h>
37571int
37572main ()
37573{
37574 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
37575  ;
37576  return 0;
37577}
37578_ACEOF
37579rm -f conftest.$ac_objext conftest$ac_exeext
37580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37581  (eval $ac_link) 2>conftest.er1
37582  ac_status=$?
37583  grep -v '^ *+' conftest.er1 >conftest.err
37584  rm -f conftest.er1
37585  cat conftest.err >&5
37586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587  (exit $ac_status); } &&
37588	 { ac_try='test -z "$ac_c_werror_flag"
37589			 || test ! -s conftest.err'
37590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37591  (eval $ac_try) 2>&5
37592  ac_status=$?
37593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594  (exit $ac_status); }; } &&
37595	 { ac_try='test -s conftest$ac_exeext'
37596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37597  (eval $ac_try) 2>&5
37598  ac_status=$?
37599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600  (exit $ac_status); }; }; then
37601  samba_cv_HAVE_ACL_GET_PERM_NP=yes
37602else
37603  echo "$as_me: failed program was:" >&5
37604sed 's/^/| /' conftest.$ac_ext >&5
37605
37606samba_cv_HAVE_ACL_GET_PERM_NP=no
37607fi
37608rm -f conftest.err conftest.$ac_objext \
37609      conftest$ac_exeext conftest.$ac_ext
37610				LIBS=$acl_LIBS
37611fi
37612echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
37613echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
37614				if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
37615
37616cat >>confdefs.h <<\_ACEOF
37617#define HAVE_ACL_GET_PERM_NP 1
37618_ACEOF
37619
37620				fi
37621			fi
37622            ;;
37623         *)
37624		echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
37625echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
37626if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
37627  echo $ECHO_N "(cached) $ECHO_C" >&6
37628else
37629  ac_check_lib_save_LIBS=$LIBS
37630LIBS="-lacl  $LIBS"
37631cat >conftest.$ac_ext <<_ACEOF
37632/* confdefs.h.  */
37633_ACEOF
37634cat confdefs.h >>conftest.$ac_ext
37635cat >>conftest.$ac_ext <<_ACEOF
37636/* end confdefs.h.  */
37637
37638/* Override any gcc2 internal prototype to avoid an error.  */
37639#ifdef __cplusplus
37640extern "C"
37641#endif
37642/* We use char because int might match the return type of a gcc2
37643   builtin and then its argument prototype would still apply.  */
37644char acl_get_file ();
37645int
37646main ()
37647{
37648acl_get_file ();
37649  ;
37650  return 0;
37651}
37652_ACEOF
37653rm -f conftest.$ac_objext conftest$ac_exeext
37654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37655  (eval $ac_link) 2>conftest.er1
37656  ac_status=$?
37657  grep -v '^ *+' conftest.er1 >conftest.err
37658  rm -f conftest.er1
37659  cat conftest.err >&5
37660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37661  (exit $ac_status); } &&
37662	 { ac_try='test -z "$ac_c_werror_flag"
37663			 || test ! -s conftest.err'
37664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37665  (eval $ac_try) 2>&5
37666  ac_status=$?
37667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668  (exit $ac_status); }; } &&
37669	 { ac_try='test -s conftest$ac_exeext'
37670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671  (eval $ac_try) 2>&5
37672  ac_status=$?
37673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674  (exit $ac_status); }; }; then
37675  ac_cv_lib_acl_acl_get_file=yes
37676else
37677  echo "$as_me: failed program was:" >&5
37678sed 's/^/| /' conftest.$ac_ext >&5
37679
37680ac_cv_lib_acl_acl_get_file=no
37681fi
37682rm -f conftest.err conftest.$ac_objext \
37683      conftest$ac_exeext conftest.$ac_ext
37684LIBS=$ac_check_lib_save_LIBS
37685fi
37686echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
37687echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
37688if test $ac_cv_lib_acl_acl_get_file = yes; then
37689  ACL_LIBS="$ACL_LIBS -lacl"
37690fi
37691
37692		echo "$as_me:$LINENO: checking for ACL support" >&5
37693echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
37694if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
37695  echo $ECHO_N "(cached) $ECHO_C" >&6
37696else
37697
37698		acl_LIBS=$LIBS
37699		LIBS="$LIBS -lacl"
37700		cat >conftest.$ac_ext <<_ACEOF
37701/* confdefs.h.  */
37702_ACEOF
37703cat confdefs.h >>conftest.$ac_ext
37704cat >>conftest.$ac_ext <<_ACEOF
37705/* end confdefs.h.  */
37706#include <sys/types.h>
37707#include <sys/acl.h>
37708int
37709main ()
37710{
37711 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
37712  ;
37713  return 0;
37714}
37715_ACEOF
37716rm -f conftest.$ac_objext conftest$ac_exeext
37717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37718  (eval $ac_link) 2>conftest.er1
37719  ac_status=$?
37720  grep -v '^ *+' conftest.er1 >conftest.err
37721  rm -f conftest.er1
37722  cat conftest.err >&5
37723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724  (exit $ac_status); } &&
37725	 { ac_try='test -z "$ac_c_werror_flag"
37726			 || test ! -s conftest.err'
37727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37728  (eval $ac_try) 2>&5
37729  ac_status=$?
37730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37731  (exit $ac_status); }; } &&
37732	 { ac_try='test -s conftest$ac_exeext'
37733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37734  (eval $ac_try) 2>&5
37735  ac_status=$?
37736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37737  (exit $ac_status); }; }; then
37738  samba_cv_HAVE_POSIX_ACLS=yes
37739else
37740  echo "$as_me: failed program was:" >&5
37741sed 's/^/| /' conftest.$ac_ext >&5
37742
37743samba_cv_HAVE_POSIX_ACLS=no
37744fi
37745rm -f conftest.err conftest.$ac_objext \
37746      conftest$ac_exeext conftest.$ac_ext
37747		LIBS=$acl_LIBS
37748fi
37749echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
37750echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
37751			if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
37752				echo "$as_me:$LINENO: result: Using posix ACLs" >&5
37753echo "${ECHO_T}Using posix ACLs" >&6
37754
37755cat >>confdefs.h <<\_ACEOF
37756#define HAVE_POSIX_ACLS 1
37757_ACEOF
37758
37759				echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
37760echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
37761if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
37762  echo $ECHO_N "(cached) $ECHO_C" >&6
37763else
37764
37765				acl_LIBS=$LIBS
37766				LIBS="$LIBS -lacl"
37767				cat >conftest.$ac_ext <<_ACEOF
37768/* confdefs.h.  */
37769_ACEOF
37770cat confdefs.h >>conftest.$ac_ext
37771cat >>conftest.$ac_ext <<_ACEOF
37772/* end confdefs.h.  */
37773#include <sys/types.h>
37774#include <sys/acl.h>
37775int
37776main ()
37777{
37778 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
37779  ;
37780  return 0;
37781}
37782_ACEOF
37783rm -f conftest.$ac_objext conftest$ac_exeext
37784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37785  (eval $ac_link) 2>conftest.er1
37786  ac_status=$?
37787  grep -v '^ *+' conftest.er1 >conftest.err
37788  rm -f conftest.er1
37789  cat conftest.err >&5
37790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37791  (exit $ac_status); } &&
37792	 { ac_try='test -z "$ac_c_werror_flag"
37793			 || test ! -s conftest.err'
37794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37795  (eval $ac_try) 2>&5
37796  ac_status=$?
37797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798  (exit $ac_status); }; } &&
37799	 { ac_try='test -s conftest$ac_exeext'
37800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37801  (eval $ac_try) 2>&5
37802  ac_status=$?
37803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804  (exit $ac_status); }; }; then
37805  samba_cv_HAVE_ACL_GET_PERM_NP=yes
37806else
37807  echo "$as_me: failed program was:" >&5
37808sed 's/^/| /' conftest.$ac_ext >&5
37809
37810samba_cv_HAVE_ACL_GET_PERM_NP=no
37811fi
37812rm -f conftest.err conftest.$ac_objext \
37813      conftest$ac_exeext conftest.$ac_ext
37814				LIBS=$acl_LIBS
37815fi
37816echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
37817echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
37818				if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
37819
37820cat >>confdefs.h <<\_ACEOF
37821#define HAVE_ACL_GET_PERM_NP 1
37822_ACEOF
37823
37824				fi
37825			fi
37826            ;;
37827        esac
37828        ;;
37829  *)
37830    echo "$as_me:$LINENO: result: no" >&5
37831echo "${ECHO_T}no" >&6
37832
37833cat >>confdefs.h <<\_ACEOF
37834#define HAVE_NO_ACLS 1
37835_ACEOF
37836
37837    ;;
37838  esac
37839else
37840
37841cat >>confdefs.h <<\_ACEOF
37842#define HAVE_NO_ACLS 1
37843_ACEOF
37844
37845  echo "$as_me:$LINENO: result: no" >&5
37846echo "${ECHO_T}no" >&6
37847
37848fi;
37849
37850#################################################
37851# check for sendfile support
37852
37853with_sendfile_support=yes
37854echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
37855echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
37856
37857# Check whether --with-sendfile-support or --without-sendfile-support was given.
37858if test "${with_sendfile_support+set}" = set; then
37859  withval="$with_sendfile_support"
37860   case "$withval" in
37861  yes)
37862
37863	echo "$as_me:$LINENO: result: yes" >&5
37864echo "${ECHO_T}yes" >&6;
37865
37866	case "$host_os" in
37867	*linux*)
37868		echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
37869echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
37870if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
37871  echo $ECHO_N "(cached) $ECHO_C" >&6
37872else
37873
37874		cat >conftest.$ac_ext <<_ACEOF
37875/* confdefs.h.  */
37876_ACEOF
37877cat confdefs.h >>conftest.$ac_ext
37878cat >>conftest.$ac_ext <<_ACEOF
37879/* end confdefs.h.  */
37880#include <sys/sendfile.h>
37881int
37882main ()
37883{
37884\
37885int tofd, fromfd;
37886off64_t offset;
37887size_t total;
37888ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
37889
37890  ;
37891  return 0;
37892}
37893_ACEOF
37894rm -f conftest.$ac_objext conftest$ac_exeext
37895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37896  (eval $ac_link) 2>conftest.er1
37897  ac_status=$?
37898  grep -v '^ *+' conftest.er1 >conftest.err
37899  rm -f conftest.er1
37900  cat conftest.err >&5
37901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902  (exit $ac_status); } &&
37903	 { ac_try='test -z "$ac_c_werror_flag"
37904			 || test ! -s conftest.err'
37905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37906  (eval $ac_try) 2>&5
37907  ac_status=$?
37908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909  (exit $ac_status); }; } &&
37910	 { ac_try='test -s conftest$ac_exeext'
37911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37912  (eval $ac_try) 2>&5
37913  ac_status=$?
37914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915  (exit $ac_status); }; }; then
37916  samba_cv_HAVE_SENDFILE64=yes
37917else
37918  echo "$as_me: failed program was:" >&5
37919sed 's/^/| /' conftest.$ac_ext >&5
37920
37921samba_cv_HAVE_SENDFILE64=no
37922fi
37923rm -f conftest.err conftest.$ac_objext \
37924      conftest$ac_exeext conftest.$ac_ext
37925fi
37926echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
37927echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
37928
37929		echo "$as_me:$LINENO: checking for linux sendfile support" >&5
37930echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
37931if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
37932  echo $ECHO_N "(cached) $ECHO_C" >&6
37933else
37934
37935		cat >conftest.$ac_ext <<_ACEOF
37936/* confdefs.h.  */
37937_ACEOF
37938cat confdefs.h >>conftest.$ac_ext
37939cat >>conftest.$ac_ext <<_ACEOF
37940/* end confdefs.h.  */
37941#include <sys/sendfile.h>
37942int
37943main ()
37944{
37945\
37946int tofd, fromfd;
37947off_t offset;
37948size_t total;
37949ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
37950
37951  ;
37952  return 0;
37953}
37954_ACEOF
37955rm -f conftest.$ac_objext conftest$ac_exeext
37956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37957  (eval $ac_link) 2>conftest.er1
37958  ac_status=$?
37959  grep -v '^ *+' conftest.er1 >conftest.err
37960  rm -f conftest.er1
37961  cat conftest.err >&5
37962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37963  (exit $ac_status); } &&
37964	 { ac_try='test -z "$ac_c_werror_flag"
37965			 || test ! -s conftest.err'
37966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967  (eval $ac_try) 2>&5
37968  ac_status=$?
37969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970  (exit $ac_status); }; } &&
37971	 { ac_try='test -s conftest$ac_exeext'
37972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973  (eval $ac_try) 2>&5
37974  ac_status=$?
37975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976  (exit $ac_status); }; }; then
37977  samba_cv_HAVE_SENDFILE=yes
37978else
37979  echo "$as_me: failed program was:" >&5
37980sed 's/^/| /' conftest.$ac_ext >&5
37981
37982samba_cv_HAVE_SENDFILE=no
37983fi
37984rm -f conftest.err conftest.$ac_objext \
37985      conftest$ac_exeext conftest.$ac_ext
37986fi
37987echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
37988echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
37989
37990# Try and cope with broken Linux sendfile....
37991		echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
37992echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
37993if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
37994  echo $ECHO_N "(cached) $ECHO_C" >&6
37995else
37996
37997		cat >conftest.$ac_ext <<_ACEOF
37998/* confdefs.h.  */
37999_ACEOF
38000cat confdefs.h >>conftest.$ac_ext
38001cat >>conftest.$ac_ext <<_ACEOF
38002/* end confdefs.h.  */
38003\
38004#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
38005#undef _FILE_OFFSET_BITS
38006#endif
38007#include <sys/sendfile.h>
38008int
38009main ()
38010{
38011\
38012int tofd, fromfd;
38013off_t offset;
38014size_t total;
38015ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
38016
38017  ;
38018  return 0;
38019}
38020_ACEOF
38021rm -f conftest.$ac_objext conftest$ac_exeext
38022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38023  (eval $ac_link) 2>conftest.er1
38024  ac_status=$?
38025  grep -v '^ *+' conftest.er1 >conftest.err
38026  rm -f conftest.er1
38027  cat conftest.err >&5
38028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029  (exit $ac_status); } &&
38030	 { ac_try='test -z "$ac_c_werror_flag"
38031			 || test ! -s conftest.err'
38032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38033  (eval $ac_try) 2>&5
38034  ac_status=$?
38035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036  (exit $ac_status); }; } &&
38037	 { ac_try='test -s conftest$ac_exeext'
38038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38039  (eval $ac_try) 2>&5
38040  ac_status=$?
38041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042  (exit $ac_status); }; }; then
38043  samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
38044else
38045  echo "$as_me: failed program was:" >&5
38046sed 's/^/| /' conftest.$ac_ext >&5
38047
38048samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
38049fi
38050rm -f conftest.err conftest.$ac_objext \
38051      conftest$ac_exeext conftest.$ac_ext
38052fi
38053echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
38054echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
38055
38056	if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
38057
38058cat >>confdefs.h <<\_ACEOF
38059#define HAVE_SENDFILE64 1
38060_ACEOF
38061
38062
38063cat >>confdefs.h <<\_ACEOF
38064#define LINUX_SENDFILE_API 1
38065_ACEOF
38066
38067
38068cat >>confdefs.h <<\_ACEOF
38069#define WITH_SENDFILE 1
38070_ACEOF
38071
38072	elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
38073
38074cat >>confdefs.h <<\_ACEOF
38075#define HAVE_SENDFILE 1
38076_ACEOF
38077
38078
38079cat >>confdefs.h <<\_ACEOF
38080#define LINUX_SENDFILE_API 1
38081_ACEOF
38082
38083
38084cat >>confdefs.h <<\_ACEOF
38085#define WITH_SENDFILE 1
38086_ACEOF
38087
38088	elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
38089
38090cat >>confdefs.h <<\_ACEOF
38091#define LINUX_BROKEN_SENDFILE_API 1
38092_ACEOF
38093
38094
38095cat >>confdefs.h <<\_ACEOF
38096#define WITH_SENDFILE 1
38097_ACEOF
38098
38099	else
38100		echo "$as_me:$LINENO: result: no" >&5
38101echo "${ECHO_T}no" >&6;
38102	fi
38103
38104	;;
38105	*freebsd* | *DragonFly* )
38106		echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
38107echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
38108if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
38109  echo $ECHO_N "(cached) $ECHO_C" >&6
38110else
38111
38112		cat >conftest.$ac_ext <<_ACEOF
38113/* confdefs.h.  */
38114_ACEOF
38115cat confdefs.h >>conftest.$ac_ext
38116cat >>conftest.$ac_ext <<_ACEOF
38117/* end confdefs.h.  */
38118\
38119#include <sys/types.h>
38120#include <unistd.h>
38121#include <sys/socket.h>
38122#include <sys/uio.h>
38123int
38124main ()
38125{
38126\
38127	int fromfd, tofd, ret, total=0;
38128	off_t offset, nwritten;
38129	struct sf_hdtr hdr;
38130	struct iovec hdtrl;
38131	hdr.headers = &hdtrl;
38132	hdr.hdr_cnt = 1;
38133	hdr.trailers = NULL;
38134	hdr.trl_cnt = 0;
38135	hdtrl.iov_base = NULL;
38136	hdtrl.iov_len = 0;
38137	ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
38138
38139  ;
38140  return 0;
38141}
38142_ACEOF
38143rm -f conftest.$ac_objext conftest$ac_exeext
38144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38145  (eval $ac_link) 2>conftest.er1
38146  ac_status=$?
38147  grep -v '^ *+' conftest.er1 >conftest.err
38148  rm -f conftest.er1
38149  cat conftest.err >&5
38150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38151  (exit $ac_status); } &&
38152	 { ac_try='test -z "$ac_c_werror_flag"
38153			 || test ! -s conftest.err'
38154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38155  (eval $ac_try) 2>&5
38156  ac_status=$?
38157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38158  (exit $ac_status); }; } &&
38159	 { ac_try='test -s conftest$ac_exeext'
38160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38161  (eval $ac_try) 2>&5
38162  ac_status=$?
38163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38164  (exit $ac_status); }; }; then
38165  samba_cv_HAVE_SENDFILE=yes
38166else
38167  echo "$as_me: failed program was:" >&5
38168sed 's/^/| /' conftest.$ac_ext >&5
38169
38170samba_cv_HAVE_SENDFILE=no
38171fi
38172rm -f conftest.err conftest.$ac_objext \
38173      conftest$ac_exeext conftest.$ac_ext
38174fi
38175echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
38176echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
38177
38178	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
38179
38180cat >>confdefs.h <<\_ACEOF
38181#define HAVE_SENDFILE 1
38182_ACEOF
38183
38184
38185cat >>confdefs.h <<\_ACEOF
38186#define FREEBSD_SENDFILE_API 1
38187_ACEOF
38188
38189
38190cat >>confdefs.h <<\_ACEOF
38191#define WITH_SENDFILE 1
38192_ACEOF
38193
38194	else
38195		echo "$as_me:$LINENO: result: no" >&5
38196echo "${ECHO_T}no" >&6;
38197	fi
38198	;;
38199
38200	*hpux*)
38201		echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
38202echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
38203if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
38204  echo $ECHO_N "(cached) $ECHO_C" >&6
38205else
38206
38207		cat >conftest.$ac_ext <<_ACEOF
38208/* confdefs.h.  */
38209_ACEOF
38210cat confdefs.h >>conftest.$ac_ext
38211cat >>conftest.$ac_ext <<_ACEOF
38212/* end confdefs.h.  */
38213\
38214#include <sys/socket.h>
38215#include <sys/uio.h>
38216int
38217main ()
38218{
38219\
38220	int fromfd, tofd;
38221	size_t total=0;
38222	struct iovec hdtrl[2];
38223	ssize_t nwritten;
38224	off64_t offset;
38225
38226	hdtrl[0].iov_base = 0;
38227	hdtrl[0].iov_len = 0;
38228
38229	nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
38230
38231  ;
38232  return 0;
38233}
38234_ACEOF
38235rm -f conftest.$ac_objext conftest$ac_exeext
38236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38237  (eval $ac_link) 2>conftest.er1
38238  ac_status=$?
38239  grep -v '^ *+' conftest.er1 >conftest.err
38240  rm -f conftest.er1
38241  cat conftest.err >&5
38242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243  (exit $ac_status); } &&
38244	 { ac_try='test -z "$ac_c_werror_flag"
38245			 || test ! -s conftest.err'
38246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38247  (eval $ac_try) 2>&5
38248  ac_status=$?
38249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250  (exit $ac_status); }; } &&
38251	 { ac_try='test -s conftest$ac_exeext'
38252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38253  (eval $ac_try) 2>&5
38254  ac_status=$?
38255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38256  (exit $ac_status); }; }; then
38257  samba_cv_HAVE_SENDFILE64=yes
38258else
38259  echo "$as_me: failed program was:" >&5
38260sed 's/^/| /' conftest.$ac_ext >&5
38261
38262samba_cv_HAVE_SENDFILE64=no
38263fi
38264rm -f conftest.err conftest.$ac_objext \
38265      conftest$ac_exeext conftest.$ac_ext
38266fi
38267echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
38268echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
38269	if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
38270
38271cat >>confdefs.h <<\_ACEOF
38272#define HAVE_SENDFILE64 1
38273_ACEOF
38274
38275
38276cat >>confdefs.h <<\_ACEOF
38277#define HPUX_SENDFILE_API 1
38278_ACEOF
38279
38280
38281cat >>confdefs.h <<\_ACEOF
38282#define WITH_SENDFILE 1
38283_ACEOF
38284
38285	else
38286		echo "$as_me:$LINENO: result: no" >&5
38287echo "${ECHO_T}no" >&6;
38288	fi
38289
38290		echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
38291echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
38292if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
38293  echo $ECHO_N "(cached) $ECHO_C" >&6
38294else
38295
38296		cat >conftest.$ac_ext <<_ACEOF
38297/* confdefs.h.  */
38298_ACEOF
38299cat confdefs.h >>conftest.$ac_ext
38300cat >>conftest.$ac_ext <<_ACEOF
38301/* end confdefs.h.  */
38302\
38303#include <sys/socket.h>
38304#include <sys/uio.h>
38305int
38306main ()
38307{
38308\
38309	int fromfd, tofd;
38310	size_t total=0;
38311	struct iovec hdtrl[2];
38312	ssize_t nwritten;
38313	off_t offset;
38314
38315	hdtrl[0].iov_base = 0;
38316	hdtrl[0].iov_len = 0;
38317
38318	nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
38319
38320  ;
38321  return 0;
38322}
38323_ACEOF
38324rm -f conftest.$ac_objext conftest$ac_exeext
38325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38326  (eval $ac_link) 2>conftest.er1
38327  ac_status=$?
38328  grep -v '^ *+' conftest.er1 >conftest.err
38329  rm -f conftest.er1
38330  cat conftest.err >&5
38331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332  (exit $ac_status); } &&
38333	 { ac_try='test -z "$ac_c_werror_flag"
38334			 || test ! -s conftest.err'
38335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38336  (eval $ac_try) 2>&5
38337  ac_status=$?
38338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339  (exit $ac_status); }; } &&
38340	 { ac_try='test -s conftest$ac_exeext'
38341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38342  (eval $ac_try) 2>&5
38343  ac_status=$?
38344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345  (exit $ac_status); }; }; then
38346  samba_cv_HAVE_SENDFILE=yes
38347else
38348  echo "$as_me: failed program was:" >&5
38349sed 's/^/| /' conftest.$ac_ext >&5
38350
38351samba_cv_HAVE_SENDFILE=no
38352fi
38353rm -f conftest.err conftest.$ac_objext \
38354      conftest$ac_exeext conftest.$ac_ext
38355fi
38356echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
38357echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
38358	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
38359
38360cat >>confdefs.h <<\_ACEOF
38361#define HAVE_SENDFILE 1
38362_ACEOF
38363
38364
38365cat >>confdefs.h <<\_ACEOF
38366#define HPUX_SENDFILE_API 1
38367_ACEOF
38368
38369
38370cat >>confdefs.h <<\_ACEOF
38371#define WITH_SENDFILE 1
38372_ACEOF
38373
38374	else
38375		echo "$as_me:$LINENO: result: no" >&5
38376echo "${ECHO_T}no" >&6;
38377	fi
38378	;;
38379
38380	*solaris*)
38381
38382echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
38383echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
38384if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
38385  echo $ECHO_N "(cached) $ECHO_C" >&6
38386else
38387  ac_check_lib_save_LIBS=$LIBS
38388LIBS="-lsendfile  $LIBS"
38389cat >conftest.$ac_ext <<_ACEOF
38390/* confdefs.h.  */
38391_ACEOF
38392cat confdefs.h >>conftest.$ac_ext
38393cat >>conftest.$ac_ext <<_ACEOF
38394/* end confdefs.h.  */
38395
38396/* Override any gcc2 internal prototype to avoid an error.  */
38397#ifdef __cplusplus
38398extern "C"
38399#endif
38400/* We use char because int might match the return type of a gcc2
38401   builtin and then its argument prototype would still apply.  */
38402char sendfilev ();
38403int
38404main ()
38405{
38406sendfilev ();
38407  ;
38408  return 0;
38409}
38410_ACEOF
38411rm -f conftest.$ac_objext conftest$ac_exeext
38412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38413  (eval $ac_link) 2>conftest.er1
38414  ac_status=$?
38415  grep -v '^ *+' conftest.er1 >conftest.err
38416  rm -f conftest.er1
38417  cat conftest.err >&5
38418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419  (exit $ac_status); } &&
38420	 { ac_try='test -z "$ac_c_werror_flag"
38421			 || test ! -s conftest.err'
38422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38423  (eval $ac_try) 2>&5
38424  ac_status=$?
38425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426  (exit $ac_status); }; } &&
38427	 { ac_try='test -s conftest$ac_exeext'
38428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38429  (eval $ac_try) 2>&5
38430  ac_status=$?
38431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432  (exit $ac_status); }; }; then
38433  ac_cv_lib_sendfile_sendfilev=yes
38434else
38435  echo "$as_me: failed program was:" >&5
38436sed 's/^/| /' conftest.$ac_ext >&5
38437
38438ac_cv_lib_sendfile_sendfilev=no
38439fi
38440rm -f conftest.err conftest.$ac_objext \
38441      conftest$ac_exeext conftest.$ac_ext
38442LIBS=$ac_check_lib_save_LIBS
38443fi
38444echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
38445echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
38446if test $ac_cv_lib_sendfile_sendfilev = yes; then
38447  cat >>confdefs.h <<_ACEOF
38448#define HAVE_LIBSENDFILE 1
38449_ACEOF
38450
38451  LIBS="-lsendfile $LIBS"
38452
38453fi
38454
38455		echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
38456echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
38457if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
38458  echo $ECHO_N "(cached) $ECHO_C" >&6
38459else
38460
38461		cat >conftest.$ac_ext <<_ACEOF
38462/* confdefs.h.  */
38463_ACEOF
38464cat confdefs.h >>conftest.$ac_ext
38465cat >>conftest.$ac_ext <<_ACEOF
38466/* end confdefs.h.  */
38467\
38468#include <sys/sendfile.h>
38469int
38470main ()
38471{
38472\
38473        int sfvcnt;
38474        size_t xferred;
38475        struct sendfilevec vec[2];
38476	ssize_t nwritten;
38477	int tofd;
38478
38479	sfvcnt = 2;
38480
38481	vec[0].sfv_fd = SFV_FD_SELF;
38482	vec[0].sfv_flag = 0;
38483	vec[0].sfv_off = 0;
38484	vec[0].sfv_len = 0;
38485
38486	vec[1].sfv_fd = 0;
38487	vec[1].sfv_flag = 0;
38488	vec[1].sfv_off = 0;
38489	vec[1].sfv_len = 0;
38490	nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
38491
38492  ;
38493  return 0;
38494}
38495_ACEOF
38496rm -f conftest.$ac_objext conftest$ac_exeext
38497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38498  (eval $ac_link) 2>conftest.er1
38499  ac_status=$?
38500  grep -v '^ *+' conftest.er1 >conftest.err
38501  rm -f conftest.er1
38502  cat conftest.err >&5
38503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504  (exit $ac_status); } &&
38505	 { ac_try='test -z "$ac_c_werror_flag"
38506			 || test ! -s conftest.err'
38507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38508  (eval $ac_try) 2>&5
38509  ac_status=$?
38510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38511  (exit $ac_status); }; } &&
38512	 { ac_try='test -s conftest$ac_exeext'
38513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38514  (eval $ac_try) 2>&5
38515  ac_status=$?
38516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38517  (exit $ac_status); }; }; then
38518  samba_cv_HAVE_SENDFILEV64=yes
38519else
38520  echo "$as_me: failed program was:" >&5
38521sed 's/^/| /' conftest.$ac_ext >&5
38522
38523samba_cv_HAVE_SENDFILEV64=no
38524fi
38525rm -f conftest.err conftest.$ac_objext \
38526      conftest$ac_exeext conftest.$ac_ext
38527fi
38528echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
38529echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
38530
38531	if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
38532
38533cat >>confdefs.h <<\_ACEOF
38534#define HAVE_SENDFILEV64 1
38535_ACEOF
38536
38537
38538cat >>confdefs.h <<\_ACEOF
38539#define SOLARIS_SENDFILE_API 1
38540_ACEOF
38541
38542
38543cat >>confdefs.h <<\_ACEOF
38544#define WITH_SENDFILE 1
38545_ACEOF
38546
38547	else
38548		echo "$as_me:$LINENO: result: no" >&5
38549echo "${ECHO_T}no" >&6;
38550	fi
38551
38552		echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
38553echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
38554if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
38555  echo $ECHO_N "(cached) $ECHO_C" >&6
38556else
38557
38558		cat >conftest.$ac_ext <<_ACEOF
38559/* confdefs.h.  */
38560_ACEOF
38561cat confdefs.h >>conftest.$ac_ext
38562cat >>conftest.$ac_ext <<_ACEOF
38563/* end confdefs.h.  */
38564\
38565#include <sys/sendfile.h>
38566int
38567main ()
38568{
38569\
38570        int sfvcnt;
38571        size_t xferred;
38572        struct sendfilevec vec[2];
38573	ssize_t nwritten;
38574	int tofd;
38575
38576	sfvcnt = 2;
38577
38578	vec[0].sfv_fd = SFV_FD_SELF;
38579	vec[0].sfv_flag = 0;
38580	vec[0].sfv_off = 0;
38581	vec[0].sfv_len = 0;
38582
38583	vec[1].sfv_fd = 0;
38584	vec[1].sfv_flag = 0;
38585	vec[1].sfv_off = 0;
38586	vec[1].sfv_len = 0;
38587	nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
38588
38589  ;
38590  return 0;
38591}
38592_ACEOF
38593rm -f conftest.$ac_objext conftest$ac_exeext
38594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38595  (eval $ac_link) 2>conftest.er1
38596  ac_status=$?
38597  grep -v '^ *+' conftest.er1 >conftest.err
38598  rm -f conftest.er1
38599  cat conftest.err >&5
38600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601  (exit $ac_status); } &&
38602	 { ac_try='test -z "$ac_c_werror_flag"
38603			 || test ! -s conftest.err'
38604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38605  (eval $ac_try) 2>&5
38606  ac_status=$?
38607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608  (exit $ac_status); }; } &&
38609	 { ac_try='test -s conftest$ac_exeext'
38610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38611  (eval $ac_try) 2>&5
38612  ac_status=$?
38613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38614  (exit $ac_status); }; }; then
38615  samba_cv_HAVE_SENDFILEV=yes
38616else
38617  echo "$as_me: failed program was:" >&5
38618sed 's/^/| /' conftest.$ac_ext >&5
38619
38620samba_cv_HAVE_SENDFILEV=no
38621fi
38622rm -f conftest.err conftest.$ac_objext \
38623      conftest$ac_exeext conftest.$ac_ext
38624fi
38625echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
38626echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
38627
38628	if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
38629
38630cat >>confdefs.h <<\_ACEOF
38631#define HAVE_SENDFILEV 1
38632_ACEOF
38633
38634
38635cat >>confdefs.h <<\_ACEOF
38636#define SOLARIS_SENDFILE_API 1
38637_ACEOF
38638
38639
38640cat >>confdefs.h <<\_ACEOF
38641#define WITH_SENDFILE 1
38642_ACEOF
38643
38644	else
38645		echo "$as_me:$LINENO: result: no" >&5
38646echo "${ECHO_T}no" >&6;
38647	fi
38648	;;
38649	*aix*)
38650		echo "$as_me:$LINENO: checking for AIX send_file support" >&5
38651echo $ECHO_N "checking for AIX send_file support... $ECHO_C" >&6
38652if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
38653  echo $ECHO_N "(cached) $ECHO_C" >&6
38654else
38655
38656		cat >conftest.$ac_ext <<_ACEOF
38657/* confdefs.h.  */
38658_ACEOF
38659cat confdefs.h >>conftest.$ac_ext
38660cat >>conftest.$ac_ext <<_ACEOF
38661/* end confdefs.h.  */
38662\
38663#include <sys/socket.h>
38664int
38665main ()
38666{
38667\
38668	int fromfd, tofd;
38669	size_t total=0;
38670	struct sf_parms hdtrl;
38671	ssize_t nwritten;
38672	off64_t offset;
38673
38674	hdtrl.header_data = 0;
38675	hdtrl.header_length = 0;
38676	hdtrl.file_descriptor = fromfd;
38677	hdtrl.file_offset = 0;
38678	hdtrl.file_bytes = 0;
38679	hdtrl.trailer_data = 0;
38680	hdtrl.trailer_length = 0;
38681
38682	nwritten = send_file(&tofd, &hdtrl, 0);
38683
38684  ;
38685  return 0;
38686}
38687_ACEOF
38688rm -f conftest.$ac_objext conftest$ac_exeext
38689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38690  (eval $ac_link) 2>conftest.er1
38691  ac_status=$?
38692  grep -v '^ *+' conftest.er1 >conftest.err
38693  rm -f conftest.er1
38694  cat conftest.err >&5
38695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696  (exit $ac_status); } &&
38697	 { ac_try='test -z "$ac_c_werror_flag"
38698			 || test ! -s conftest.err'
38699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38700  (eval $ac_try) 2>&5
38701  ac_status=$?
38702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38703  (exit $ac_status); }; } &&
38704	 { ac_try='test -s conftest$ac_exeext'
38705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38706  (eval $ac_try) 2>&5
38707  ac_status=$?
38708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38709  (exit $ac_status); }; }; then
38710  samba_cv_HAVE_SENDFILE=yes
38711else
38712  echo "$as_me: failed program was:" >&5
38713sed 's/^/| /' conftest.$ac_ext >&5
38714
38715samba_cv_HAVE_SENDFILE=no
38716fi
38717rm -f conftest.err conftest.$ac_objext \
38718      conftest$ac_exeext conftest.$ac_ext
38719fi
38720echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
38721echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
38722	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
38723
38724cat >>confdefs.h <<\_ACEOF
38725#define HAVE_SENDFILE 1
38726_ACEOF
38727
38728
38729cat >>confdefs.h <<\_ACEOF
38730#define AIX_SENDFILE_API 1
38731_ACEOF
38732
38733
38734cat >>confdefs.h <<\_ACEOF
38735#define WITH_SENDFILE 1
38736_ACEOF
38737
38738	else
38739		echo "$as_me:$LINENO: result: no" >&5
38740echo "${ECHO_T}no" >&6;
38741	fi
38742	;;
38743	*)
38744	;;
38745        esac
38746        ;;
38747  *)
38748    echo "$as_me:$LINENO: result: no" >&5
38749echo "${ECHO_T}no" >&6
38750    ;;
38751  esac
38752else
38753  echo "$as_me:$LINENO: result: yes" >&5
38754echo "${ECHO_T}yes" >&6
38755
38756fi;
38757
38758
38759#################################################
38760# Check whether winbind is supported on this platform.  If so we need to
38761# build and install client programs, sbin programs and shared libraries
38762
38763echo "$as_me:$LINENO: checking whether to build winbind" >&5
38764echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
38765
38766# Initially, the value of $host_os decides whether winbind is supported
38767
38768HAVE_WINBIND=yes
38769
38770# Define the winbind shared library name and any specific linker flags
38771# it needs to be built with.
38772
38773WINBIND_NSS="nsswitch/libnss_winbind.$SHLIBEXT"
38774WINBIND_WINS_NSS="nsswitch/libnss_wins.$SHLIBEXT"
38775WINBIND_NSS_LDSHFLAGS=$LDSHFLAGS
38776
38777case "$host_os" in
38778	*linux*)
38779		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
38780		;;
38781	*freebsd5*|*freebsd6*)
38782		# FreeBSD winbind client is implemented as a wrapper around
38783		# the Linux version.
38784		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \
38785		    nsswitch/winbind_nss_linux.o"
38786		WINBIND_NSS="nsswitch/nss_winbind.$SHLIBEXT"
38787		WINBIND_WINS_NSS="nsswitch/nss_wins.$SHLIBEXT"
38788		;;
38789	*irix*)
38790		# IRIX has differently named shared libraries
38791		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_irix.o"
38792		WINBIND_NSS="nsswitch/libns_winbind.$SHLIBEXT"
38793		WINBIND_WINS_NSS="nsswitch/libns_wins.$SHLIBEXT"
38794		;;
38795	*solaris*)
38796		# Solaris winbind client is implemented as a wrapper around
38797		# the Linux version.
38798		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o \
38799		    nsswitch/winbind_nss_linux.o"
38800		WINBIND_NSS_EXTRA_LIBS="-lsocket"
38801		;;
38802	*hpux11*)
38803		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
38804		;;
38805	*aix*)
38806		# AIX has even differently named shared libraries.  No
38807		# WINS support has been implemented yet.
38808		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_aix.o"
38809		WINBIND_NSS_LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-ewb_aix_init"
38810		WINBIND_NSS="nsswitch/WINBIND"
38811		WINBIND_WINS_NSS=""
38812		;;
38813	*)
38814		HAVE_WINBIND=no
38815		winbind_no_reason=", unsupported on $host_os"
38816		;;
38817esac
38818
38819
38820
38821
38822
38823
38824
38825# Check the setting of --with-winbind
38826
38827
38828# Check whether --with-winbind or --without-winbind was given.
38829if test "${with_winbind+set}" = set; then
38830  withval="$with_winbind"
38831
38832  case "$withval" in
38833	yes)
38834		HAVE_WINBIND=yes
38835		;;
38836        no)
38837		HAVE_WINBIND=no
38838                winbind_reason=""
38839                ;;
38840  esac
38841fi;
38842
38843# We need unix domain sockets for winbind
38844
38845if test x"$HAVE_WINBIND" = x"yes"; then
38846	if test x"$samba_cv_unixsocket" = x"no"; then
38847		winbind_no_reason=", no unix domain socket support on $host_os"
38848		HAVE_WINBIND=no
38849	fi
38850fi
38851
38852# Display test results
38853
38854if test x"$HAVE_WINBIND" = x"yes"; then
38855        echo "$as_me:$LINENO: result: yes" >&5
38856echo "${ECHO_T}yes" >&6
38857
38858cat >>confdefs.h <<\_ACEOF
38859#define WITH_WINBIND 1
38860_ACEOF
38861
38862
38863	EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
38864	EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
38865        if test $BLDSHARED = true; then
38866		SHLIB_PROGS="$SHLIB_PROGS $WINBIND_NSS $WINBIND_WINS_NSS"
38867
38868		if test x"$with_pam" = x"yes"; then
38869			SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.$SHLIBEXT"
38870		fi
38871	fi
38872else
38873        echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
38874echo "${ECHO_T}no$winbind_no_reason" >&6
38875fi
38876
38877# Solaris has some extra fields in struct passwd that need to be
38878# initialised otherwise nscd crashes.
38879
38880echo "$as_me:$LINENO: checking for struct passwd.pw_comment" >&5
38881echo $ECHO_N "checking for struct passwd.pw_comment... $ECHO_C" >&6
38882if test "${ac_cv_member_struct_passwd_pw_comment+set}" = set; then
38883  echo $ECHO_N "(cached) $ECHO_C" >&6
38884else
38885  cat >conftest.$ac_ext <<_ACEOF
38886/* confdefs.h.  */
38887_ACEOF
38888cat confdefs.h >>conftest.$ac_ext
38889cat >>conftest.$ac_ext <<_ACEOF
38890/* end confdefs.h.  */
38891#include <pwd.h>
38892
38893int
38894main ()
38895{
38896static struct passwd ac_aggr;
38897if (ac_aggr.pw_comment)
38898return 0;
38899  ;
38900  return 0;
38901}
38902_ACEOF
38903rm -f conftest.$ac_objext
38904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38905  (eval $ac_compile) 2>conftest.er1
38906  ac_status=$?
38907  grep -v '^ *+' conftest.er1 >conftest.err
38908  rm -f conftest.er1
38909  cat conftest.err >&5
38910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38911  (exit $ac_status); } &&
38912	 { ac_try='test -z "$ac_c_werror_flag"
38913			 || test ! -s conftest.err'
38914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38915  (eval $ac_try) 2>&5
38916  ac_status=$?
38917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918  (exit $ac_status); }; } &&
38919	 { ac_try='test -s conftest.$ac_objext'
38920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38921  (eval $ac_try) 2>&5
38922  ac_status=$?
38923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38924  (exit $ac_status); }; }; then
38925  ac_cv_member_struct_passwd_pw_comment=yes
38926else
38927  echo "$as_me: failed program was:" >&5
38928sed 's/^/| /' conftest.$ac_ext >&5
38929
38930cat >conftest.$ac_ext <<_ACEOF
38931/* confdefs.h.  */
38932_ACEOF
38933cat confdefs.h >>conftest.$ac_ext
38934cat >>conftest.$ac_ext <<_ACEOF
38935/* end confdefs.h.  */
38936#include <pwd.h>
38937
38938int
38939main ()
38940{
38941static struct passwd ac_aggr;
38942if (sizeof ac_aggr.pw_comment)
38943return 0;
38944  ;
38945  return 0;
38946}
38947_ACEOF
38948rm -f conftest.$ac_objext
38949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38950  (eval $ac_compile) 2>conftest.er1
38951  ac_status=$?
38952  grep -v '^ *+' conftest.er1 >conftest.err
38953  rm -f conftest.er1
38954  cat conftest.err >&5
38955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956  (exit $ac_status); } &&
38957	 { ac_try='test -z "$ac_c_werror_flag"
38958			 || test ! -s conftest.err'
38959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960  (eval $ac_try) 2>&5
38961  ac_status=$?
38962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963  (exit $ac_status); }; } &&
38964	 { ac_try='test -s conftest.$ac_objext'
38965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38966  (eval $ac_try) 2>&5
38967  ac_status=$?
38968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969  (exit $ac_status); }; }; then
38970  ac_cv_member_struct_passwd_pw_comment=yes
38971else
38972  echo "$as_me: failed program was:" >&5
38973sed 's/^/| /' conftest.$ac_ext >&5
38974
38975ac_cv_member_struct_passwd_pw_comment=no
38976fi
38977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38978fi
38979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38980fi
38981echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_comment" >&5
38982echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_comment" >&6
38983if test $ac_cv_member_struct_passwd_pw_comment = yes; then
38984
38985cat >>confdefs.h <<\_ACEOF
38986#define HAVE_PASSWD_PW_COMMENT 1
38987_ACEOF
38988
38989fi
38990
38991
38992echo "$as_me:$LINENO: checking for struct passwd.pw_age" >&5
38993echo $ECHO_N "checking for struct passwd.pw_age... $ECHO_C" >&6
38994if test "${ac_cv_member_struct_passwd_pw_age+set}" = set; then
38995  echo $ECHO_N "(cached) $ECHO_C" >&6
38996else
38997  cat >conftest.$ac_ext <<_ACEOF
38998/* confdefs.h.  */
38999_ACEOF
39000cat confdefs.h >>conftest.$ac_ext
39001cat >>conftest.$ac_ext <<_ACEOF
39002/* end confdefs.h.  */
39003#include <pwd.h>
39004
39005int
39006main ()
39007{
39008static struct passwd ac_aggr;
39009if (ac_aggr.pw_age)
39010return 0;
39011  ;
39012  return 0;
39013}
39014_ACEOF
39015rm -f conftest.$ac_objext
39016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39017  (eval $ac_compile) 2>conftest.er1
39018  ac_status=$?
39019  grep -v '^ *+' conftest.er1 >conftest.err
39020  rm -f conftest.er1
39021  cat conftest.err >&5
39022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39023  (exit $ac_status); } &&
39024	 { ac_try='test -z "$ac_c_werror_flag"
39025			 || test ! -s conftest.err'
39026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39027  (eval $ac_try) 2>&5
39028  ac_status=$?
39029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39030  (exit $ac_status); }; } &&
39031	 { ac_try='test -s conftest.$ac_objext'
39032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39033  (eval $ac_try) 2>&5
39034  ac_status=$?
39035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39036  (exit $ac_status); }; }; then
39037  ac_cv_member_struct_passwd_pw_age=yes
39038else
39039  echo "$as_me: failed program was:" >&5
39040sed 's/^/| /' conftest.$ac_ext >&5
39041
39042cat >conftest.$ac_ext <<_ACEOF
39043/* confdefs.h.  */
39044_ACEOF
39045cat confdefs.h >>conftest.$ac_ext
39046cat >>conftest.$ac_ext <<_ACEOF
39047/* end confdefs.h.  */
39048#include <pwd.h>
39049
39050int
39051main ()
39052{
39053static struct passwd ac_aggr;
39054if (sizeof ac_aggr.pw_age)
39055return 0;
39056  ;
39057  return 0;
39058}
39059_ACEOF
39060rm -f conftest.$ac_objext
39061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39062  (eval $ac_compile) 2>conftest.er1
39063  ac_status=$?
39064  grep -v '^ *+' conftest.er1 >conftest.err
39065  rm -f conftest.er1
39066  cat conftest.err >&5
39067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068  (exit $ac_status); } &&
39069	 { ac_try='test -z "$ac_c_werror_flag"
39070			 || test ! -s conftest.err'
39071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39072  (eval $ac_try) 2>&5
39073  ac_status=$?
39074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39075  (exit $ac_status); }; } &&
39076	 { ac_try='test -s conftest.$ac_objext'
39077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39078  (eval $ac_try) 2>&5
39079  ac_status=$?
39080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081  (exit $ac_status); }; }; then
39082  ac_cv_member_struct_passwd_pw_age=yes
39083else
39084  echo "$as_me: failed program was:" >&5
39085sed 's/^/| /' conftest.$ac_ext >&5
39086
39087ac_cv_member_struct_passwd_pw_age=no
39088fi
39089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39090fi
39091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39092fi
39093echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_age" >&5
39094echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_age" >&6
39095if test $ac_cv_member_struct_passwd_pw_age = yes; then
39096
39097cat >>confdefs.h <<\_ACEOF
39098#define HAVE_PASSWD_PW_AGE 1
39099_ACEOF
39100
39101fi
39102
39103
39104# AIX 4.3.x and 5.1 do not have as many members in
39105# struct secmethod_table as AIX 5.2
39106echo "$as_me:$LINENO: checking for struct secmethod_table.method_attrlist" >&5
39107echo $ECHO_N "checking for struct secmethod_table.method_attrlist... $ECHO_C" >&6
39108if test "${ac_cv_member_struct_secmethod_table_method_attrlist+set}" = set; then
39109  echo $ECHO_N "(cached) $ECHO_C" >&6
39110else
39111  cat >conftest.$ac_ext <<_ACEOF
39112/* confdefs.h.  */
39113_ACEOF
39114cat confdefs.h >>conftest.$ac_ext
39115cat >>conftest.$ac_ext <<_ACEOF
39116/* end confdefs.h.  */
39117#include <usersec.h>
39118
39119int
39120main ()
39121{
39122static struct secmethod_table ac_aggr;
39123if (ac_aggr.method_attrlist)
39124return 0;
39125  ;
39126  return 0;
39127}
39128_ACEOF
39129rm -f conftest.$ac_objext
39130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39131  (eval $ac_compile) 2>conftest.er1
39132  ac_status=$?
39133  grep -v '^ *+' conftest.er1 >conftest.err
39134  rm -f conftest.er1
39135  cat conftest.err >&5
39136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39137  (exit $ac_status); } &&
39138	 { ac_try='test -z "$ac_c_werror_flag"
39139			 || test ! -s conftest.err'
39140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39141  (eval $ac_try) 2>&5
39142  ac_status=$?
39143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39144  (exit $ac_status); }; } &&
39145	 { ac_try='test -s conftest.$ac_objext'
39146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39147  (eval $ac_try) 2>&5
39148  ac_status=$?
39149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150  (exit $ac_status); }; }; then
39151  ac_cv_member_struct_secmethod_table_method_attrlist=yes
39152else
39153  echo "$as_me: failed program was:" >&5
39154sed 's/^/| /' conftest.$ac_ext >&5
39155
39156cat >conftest.$ac_ext <<_ACEOF
39157/* confdefs.h.  */
39158_ACEOF
39159cat confdefs.h >>conftest.$ac_ext
39160cat >>conftest.$ac_ext <<_ACEOF
39161/* end confdefs.h.  */
39162#include <usersec.h>
39163
39164int
39165main ()
39166{
39167static struct secmethod_table ac_aggr;
39168if (sizeof ac_aggr.method_attrlist)
39169return 0;
39170  ;
39171  return 0;
39172}
39173_ACEOF
39174rm -f conftest.$ac_objext
39175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39176  (eval $ac_compile) 2>conftest.er1
39177  ac_status=$?
39178  grep -v '^ *+' conftest.er1 >conftest.err
39179  rm -f conftest.er1
39180  cat conftest.err >&5
39181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182  (exit $ac_status); } &&
39183	 { ac_try='test -z "$ac_c_werror_flag"
39184			 || test ! -s conftest.err'
39185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39186  (eval $ac_try) 2>&5
39187  ac_status=$?
39188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189  (exit $ac_status); }; } &&
39190	 { ac_try='test -s conftest.$ac_objext'
39191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39192  (eval $ac_try) 2>&5
39193  ac_status=$?
39194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39195  (exit $ac_status); }; }; then
39196  ac_cv_member_struct_secmethod_table_method_attrlist=yes
39197else
39198  echo "$as_me: failed program was:" >&5
39199sed 's/^/| /' conftest.$ac_ext >&5
39200
39201ac_cv_member_struct_secmethod_table_method_attrlist=no
39202fi
39203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39204fi
39205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39206fi
39207echo "$as_me:$LINENO: result: $ac_cv_member_struct_secmethod_table_method_attrlist" >&5
39208echo "${ECHO_T}$ac_cv_member_struct_secmethod_table_method_attrlist" >&6
39209if test $ac_cv_member_struct_secmethod_table_method_attrlist = yes; then
39210
39211cat >>confdefs.h <<_ACEOF
39212#define HAVE_STRUCT_SECMETHOD_TABLE_METHOD_ATTRLIST 1
39213_ACEOF
39214
39215
39216fi
39217
39218echo "$as_me:$LINENO: checking for struct secmethod_table.method_version" >&5
39219echo $ECHO_N "checking for struct secmethod_table.method_version... $ECHO_C" >&6
39220if test "${ac_cv_member_struct_secmethod_table_method_version+set}" = set; then
39221  echo $ECHO_N "(cached) $ECHO_C" >&6
39222else
39223  cat >conftest.$ac_ext <<_ACEOF
39224/* confdefs.h.  */
39225_ACEOF
39226cat confdefs.h >>conftest.$ac_ext
39227cat >>conftest.$ac_ext <<_ACEOF
39228/* end confdefs.h.  */
39229#include <usersec.h>
39230
39231int
39232main ()
39233{
39234static struct secmethod_table ac_aggr;
39235if (ac_aggr.method_version)
39236return 0;
39237  ;
39238  return 0;
39239}
39240_ACEOF
39241rm -f conftest.$ac_objext
39242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39243  (eval $ac_compile) 2>conftest.er1
39244  ac_status=$?
39245  grep -v '^ *+' conftest.er1 >conftest.err
39246  rm -f conftest.er1
39247  cat conftest.err >&5
39248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249  (exit $ac_status); } &&
39250	 { ac_try='test -z "$ac_c_werror_flag"
39251			 || test ! -s conftest.err'
39252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39253  (eval $ac_try) 2>&5
39254  ac_status=$?
39255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256  (exit $ac_status); }; } &&
39257	 { ac_try='test -s conftest.$ac_objext'
39258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39259  (eval $ac_try) 2>&5
39260  ac_status=$?
39261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262  (exit $ac_status); }; }; then
39263  ac_cv_member_struct_secmethod_table_method_version=yes
39264else
39265  echo "$as_me: failed program was:" >&5
39266sed 's/^/| /' conftest.$ac_ext >&5
39267
39268cat >conftest.$ac_ext <<_ACEOF
39269/* confdefs.h.  */
39270_ACEOF
39271cat confdefs.h >>conftest.$ac_ext
39272cat >>conftest.$ac_ext <<_ACEOF
39273/* end confdefs.h.  */
39274#include <usersec.h>
39275
39276int
39277main ()
39278{
39279static struct secmethod_table ac_aggr;
39280if (sizeof ac_aggr.method_version)
39281return 0;
39282  ;
39283  return 0;
39284}
39285_ACEOF
39286rm -f conftest.$ac_objext
39287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39288  (eval $ac_compile) 2>conftest.er1
39289  ac_status=$?
39290  grep -v '^ *+' conftest.er1 >conftest.err
39291  rm -f conftest.er1
39292  cat conftest.err >&5
39293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294  (exit $ac_status); } &&
39295	 { ac_try='test -z "$ac_c_werror_flag"
39296			 || test ! -s conftest.err'
39297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39298  (eval $ac_try) 2>&5
39299  ac_status=$?
39300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301  (exit $ac_status); }; } &&
39302	 { ac_try='test -s conftest.$ac_objext'
39303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39304  (eval $ac_try) 2>&5
39305  ac_status=$?
39306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39307  (exit $ac_status); }; }; then
39308  ac_cv_member_struct_secmethod_table_method_version=yes
39309else
39310  echo "$as_me: failed program was:" >&5
39311sed 's/^/| /' conftest.$ac_ext >&5
39312
39313ac_cv_member_struct_secmethod_table_method_version=no
39314fi
39315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39316fi
39317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39318fi
39319echo "$as_me:$LINENO: result: $ac_cv_member_struct_secmethod_table_method_version" >&5
39320echo "${ECHO_T}$ac_cv_member_struct_secmethod_table_method_version" >&6
39321if test $ac_cv_member_struct_secmethod_table_method_version = yes; then
39322
39323cat >>confdefs.h <<_ACEOF
39324#define HAVE_STRUCT_SECMETHOD_TABLE_METHOD_VERSION 1
39325_ACEOF
39326
39327
39328fi
39329
39330
39331
39332#################################################
39333# Check to see if we should use the included popt
39334
39335
39336# Check whether --with-included-popt or --without-included-popt was given.
39337if test "${with_included_popt+set}" = set; then
39338  withval="$with_included_popt"
39339
39340  case "$withval" in
39341	yes)
39342		INCLUDED_POPT=yes
39343		;;
39344        no)
39345		INCLUDED_POPT=no
39346                ;;
39347  esac
39348fi;
39349if test x"$INCLUDED_POPT" != x"yes"; then
39350    echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
39351echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
39352if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
39353  echo $ECHO_N "(cached) $ECHO_C" >&6
39354else
39355  ac_check_lib_save_LIBS=$LIBS
39356LIBS="-lpopt  $LIBS"
39357cat >conftest.$ac_ext <<_ACEOF
39358/* confdefs.h.  */
39359_ACEOF
39360cat confdefs.h >>conftest.$ac_ext
39361cat >>conftest.$ac_ext <<_ACEOF
39362/* end confdefs.h.  */
39363
39364/* Override any gcc2 internal prototype to avoid an error.  */
39365#ifdef __cplusplus
39366extern "C"
39367#endif
39368/* We use char because int might match the return type of a gcc2
39369   builtin and then its argument prototype would still apply.  */
39370char poptGetContext ();
39371int
39372main ()
39373{
39374poptGetContext ();
39375  ;
39376  return 0;
39377}
39378_ACEOF
39379rm -f conftest.$ac_objext conftest$ac_exeext
39380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39381  (eval $ac_link) 2>conftest.er1
39382  ac_status=$?
39383  grep -v '^ *+' conftest.er1 >conftest.err
39384  rm -f conftest.er1
39385  cat conftest.err >&5
39386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387  (exit $ac_status); } &&
39388	 { ac_try='test -z "$ac_c_werror_flag"
39389			 || test ! -s conftest.err'
39390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39391  (eval $ac_try) 2>&5
39392  ac_status=$?
39393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394  (exit $ac_status); }; } &&
39395	 { ac_try='test -s conftest$ac_exeext'
39396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397  (eval $ac_try) 2>&5
39398  ac_status=$?
39399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400  (exit $ac_status); }; }; then
39401  ac_cv_lib_popt_poptGetContext=yes
39402else
39403  echo "$as_me: failed program was:" >&5
39404sed 's/^/| /' conftest.$ac_ext >&5
39405
39406ac_cv_lib_popt_poptGetContext=no
39407fi
39408rm -f conftest.err conftest.$ac_objext \
39409      conftest$ac_exeext conftest.$ac_ext
39410LIBS=$ac_check_lib_save_LIBS
39411fi
39412echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
39413echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
39414if test $ac_cv_lib_popt_poptGetContext = yes; then
39415  INCLUDED_POPT=no
39416else
39417  INCLUDED_POPT=yes
39418fi
39419
39420fi
39421
39422echo "$as_me:$LINENO: checking whether to use included popt" >&5
39423echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
39424if test x"$INCLUDED_POPT" = x"yes"; then
39425    echo "$as_me:$LINENO: result: yes" >&5
39426echo "${ECHO_T}yes" >&6
39427    BUILD_POPT='$(POPT_OBJS)'
39428	POPTLIBS='$(POPT_OBJS)'
39429    FLAGS1="-I$srcdir/popt"
39430else
39431    echo "$as_me:$LINENO: result: no" >&5
39432echo "${ECHO_T}no" >&6
39433	BUILD_POPT=""
39434    POPTLIBS="-lpopt"
39435fi
39436
39437
39438
39439
39440#################################################
39441# Check if the user wants Python
39442
39443# At the moment, you can use this to set which Python binary to link
39444# against.  (Libraries built for Python2.2 can't be used by 2.1,
39445# though they can coexist in different directories.)  In the future
39446# this might make the Python stuff be built by default.
39447
39448# Defaulting python breaks the clean target if python isn't installed
39449
39450PYTHON=
39451
39452
39453# Check whether --with-python or --without-python was given.
39454if test "${with_python+set}" = set; then
39455  withval="$with_python"
39456   case "${withval-python}" in
39457  yes)
39458	PYTHON=python
39459	EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
39460	;;
39461  no)
39462	PYTHON=
39463	;;
39464  *)
39465	PYTHON=${withval-python}
39466	;;
39467  esac
39468fi;
39469
39470
39471for i in `echo $default_static_modules | sed -e's/,/ /g'`
39472do
39473	eval MODULE_DEFAULT_$i=STATIC
39474done
39475
39476for i in `echo $default_shared_modules | sed -e's/,/ /g'`
39477do
39478		eval MODULE_DEFAULT_$i=STATIC
39479
39480	if test $BLDSHARED = true; then
39481		eval MODULE_DEFAULT_$i=SHARED
39482	fi
39483done
39484
39485MODULE_pdb_guest=STATIC
39486MODULE_rpc_spoolss=STATIC
39487MODULE_rpc_srv=STATIC
39488MODULE_idmap_tdb=STATIC
39489
39490
39491# Check whether --with-static-modules or --without-static-modules was given.
39492if test "${with_static_modules+set}" = set; then
39493  withval="$with_static_modules"
39494   if test $withval; then
39495	for i in `echo $withval | sed -e's/,/ /g'`
39496	do
39497		eval MODULE_$i=STATIC
39498	done
39499fi
39500fi;
39501
39502
39503# Check whether --with-shared-modules or --without-shared-modules was given.
39504if test "${with_shared_modules+set}" = set; then
39505  withval="$with_shared_modules"
39506   if test $withval; then
39507	for i in `echo $withval | sed -e's/,/ /g'`
39508	do
39509			eval MODULE_$i=SHARED
39510	done
39511fi
39512fi;
39513
39514###########################################################################
39515## contributed pdb_modules
39516
39517
39518	echo "$as_me:$LINENO: checking how to build pdb_xml" >&5
39519echo $ECHO_N "checking how to build pdb_xml... $ECHO_C" >&6
39520	if test "$MODULE_pdb_xml"; then
39521		DEST=$MODULE_pdb_xml
39522	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_xml"; then
39523		DEST=$MODULE_pdb
39524	else
39525		DEST=$MODULE_DEFAULT_pdb_xml
39526	fi
39527
39528	if test x"$DEST" = xSHARED; then
39529
39530cat >>confdefs.h <<\_ACEOF
39531#define pdb_xml_init init_module
39532_ACEOF
39533
39534		PDB_MODULES="$PDB_MODULES "bin/xml.$SHLIBEXT""
39535		echo "$as_me:$LINENO: result: shared" >&5
39536echo "${ECHO_T}shared" >&6
39537
39538		string_shared_modules="$string_shared_modules pdb_xml"
39539	elif test x"$DEST" = xSTATIC; then
39540		init_static_modules_pdb="$init_static_modules_pdb pdb_xml_init();"
39541		string_static_modules="$string_static_modules pdb_xml"
39542		PDB_STATIC="$PDB_STATIC passdb/pdb_xml.o"
39543
39544		 PASSDB_LIBS="$PASSDB_LIBS $XML_LIBS"
39545		echo "$as_me:$LINENO: result: static" >&5
39546echo "${ECHO_T}static" >&6
39547	else
39548	    string_ignored_modules="$string_ignored_modules pdb_xml"
39549		echo "$as_me:$LINENO: result: not" >&5
39550echo "${ECHO_T}not" >&6
39551	fi
39552
39553
39554	echo "$as_me:$LINENO: checking how to build pdb_mysql" >&5
39555echo $ECHO_N "checking how to build pdb_mysql... $ECHO_C" >&6
39556	if test "$MODULE_pdb_mysql"; then
39557		DEST=$MODULE_pdb_mysql
39558	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_mysql"; then
39559		DEST=$MODULE_pdb
39560	else
39561		DEST=$MODULE_DEFAULT_pdb_mysql
39562	fi
39563
39564	if test x"$DEST" = xSHARED; then
39565
39566cat >>confdefs.h <<\_ACEOF
39567#define pdb_mysql_init init_module
39568_ACEOF
39569
39570		PDB_MODULES="$PDB_MODULES "bin/mysql.$SHLIBEXT""
39571		echo "$as_me:$LINENO: result: shared" >&5
39572echo "${ECHO_T}shared" >&6
39573
39574		string_shared_modules="$string_shared_modules pdb_mysql"
39575	elif test x"$DEST" = xSTATIC; then
39576		init_static_modules_pdb="$init_static_modules_pdb pdb_mysql_init();"
39577		string_static_modules="$string_static_modules pdb_mysql"
39578		PDB_STATIC="$PDB_STATIC passdb/pdb_mysql.o"
39579
39580		 PASSDB_LIBS="$PASSDB_LIBS $MYSQL_LIBS"
39581		echo "$as_me:$LINENO: result: static" >&5
39582echo "${ECHO_T}static" >&6
39583	else
39584	    string_ignored_modules="$string_ignored_modules pdb_mysql"
39585		echo "$as_me:$LINENO: result: not" >&5
39586echo "${ECHO_T}not" >&6
39587	fi
39588
39589
39590	echo "$as_me:$LINENO: checking how to build pdb_pgsql" >&5
39591echo $ECHO_N "checking how to build pdb_pgsql... $ECHO_C" >&6
39592	if test "$MODULE_pdb_pgsql"; then
39593		DEST=$MODULE_pdb_pgsql
39594	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_pgsql"; then
39595		DEST=$MODULE_pdb
39596	else
39597		DEST=$MODULE_DEFAULT_pdb_pgsql
39598	fi
39599
39600	if test x"$DEST" = xSHARED; then
39601
39602cat >>confdefs.h <<\_ACEOF
39603#define pdb_pgsql_init init_module
39604_ACEOF
39605
39606		PDB_MODULES="$PDB_MODULES "bin/pgsql.$SHLIBEXT""
39607		echo "$as_me:$LINENO: result: shared" >&5
39608echo "${ECHO_T}shared" >&6
39609
39610		string_shared_modules="$string_shared_modules pdb_pgsql"
39611	elif test x"$DEST" = xSTATIC; then
39612		init_static_modules_pdb="$init_static_modules_pdb pdb_pgsql_init();"
39613		string_static_modules="$string_static_modules pdb_pgsql"
39614		PDB_STATIC="$PDB_STATIC passdb/pdb_pgsql.o"
39615
39616		 PASSDB_LIBS="$PASSDB_LIBS $PGSQL_LIBS"
39617		echo "$as_me:$LINENO: result: static" >&5
39618echo "${ECHO_T}static" >&6
39619	else
39620	    string_ignored_modules="$string_ignored_modules pdb_pgsql"
39621		echo "$as_me:$LINENO: result: not" >&5
39622echo "${ECHO_T}not" >&6
39623	fi
39624
39625
39626## end of contributed pdb_modules
39627###########################################################################
39628
39629
39630	echo "$as_me:$LINENO: checking how to build pdb_ldap" >&5
39631echo $ECHO_N "checking how to build pdb_ldap... $ECHO_C" >&6
39632	if test "$MODULE_pdb_ldap"; then
39633		DEST=$MODULE_pdb_ldap
39634	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_ldap"; then
39635		DEST=$MODULE_pdb
39636	else
39637		DEST=$MODULE_DEFAULT_pdb_ldap
39638	fi
39639
39640	if test x"$DEST" = xSHARED; then
39641
39642cat >>confdefs.h <<\_ACEOF
39643#define pdb_ldap_init init_module
39644_ACEOF
39645
39646		PDB_MODULES="$PDB_MODULES "bin/ldapsam.$SHLIBEXT""
39647		echo "$as_me:$LINENO: result: shared" >&5
39648echo "${ECHO_T}shared" >&6
39649
39650		string_shared_modules="$string_shared_modules pdb_ldap"
39651	elif test x"$DEST" = xSTATIC; then
39652		init_static_modules_pdb="$init_static_modules_pdb pdb_ldap_init();"
39653		string_static_modules="$string_static_modules pdb_ldap"
39654		PDB_STATIC="$PDB_STATIC passdb/pdb_ldap.o passdb/pdb_nds.o"
39655
39656		 PASSDB_LIBS="$PASSDB_LIBS $LDAP_LIBS"
39657		echo "$as_me:$LINENO: result: static" >&5
39658echo "${ECHO_T}static" >&6
39659	else
39660	    string_ignored_modules="$string_ignored_modules pdb_ldap"
39661		echo "$as_me:$LINENO: result: not" >&5
39662echo "${ECHO_T}not" >&6
39663	fi
39664
39665
39666	echo "$as_me:$LINENO: checking how to build pdb_smbpasswd" >&5
39667echo $ECHO_N "checking how to build pdb_smbpasswd... $ECHO_C" >&6
39668	if test "$MODULE_pdb_smbpasswd"; then
39669		DEST=$MODULE_pdb_smbpasswd
39670	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_smbpasswd"; then
39671		DEST=$MODULE_pdb
39672	else
39673		DEST=$MODULE_DEFAULT_pdb_smbpasswd
39674	fi
39675
39676	if test x"$DEST" = xSHARED; then
39677
39678cat >>confdefs.h <<\_ACEOF
39679#define pdb_smbpasswd_init init_module
39680_ACEOF
39681
39682		PDB_MODULES="$PDB_MODULES "bin/smbpasswd.$SHLIBEXT""
39683		echo "$as_me:$LINENO: result: shared" >&5
39684echo "${ECHO_T}shared" >&6
39685
39686		string_shared_modules="$string_shared_modules pdb_smbpasswd"
39687	elif test x"$DEST" = xSTATIC; then
39688		init_static_modules_pdb="$init_static_modules_pdb pdb_smbpasswd_init();"
39689		string_static_modules="$string_static_modules pdb_smbpasswd"
39690		PDB_STATIC="$PDB_STATIC passdb/pdb_smbpasswd.o"
39691
39692
39693		echo "$as_me:$LINENO: result: static" >&5
39694echo "${ECHO_T}static" >&6
39695	else
39696	    string_ignored_modules="$string_ignored_modules pdb_smbpasswd"
39697		echo "$as_me:$LINENO: result: not" >&5
39698echo "${ECHO_T}not" >&6
39699	fi
39700
39701
39702	echo "$as_me:$LINENO: checking how to build pdb_tdbsam" >&5
39703echo $ECHO_N "checking how to build pdb_tdbsam... $ECHO_C" >&6
39704	if test "$MODULE_pdb_tdbsam"; then
39705		DEST=$MODULE_pdb_tdbsam
39706	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_tdbsam"; then
39707		DEST=$MODULE_pdb
39708	else
39709		DEST=$MODULE_DEFAULT_pdb_tdbsam
39710	fi
39711
39712	if test x"$DEST" = xSHARED; then
39713
39714cat >>confdefs.h <<\_ACEOF
39715#define pdb_tdbsam_init init_module
39716_ACEOF
39717
39718		PDB_MODULES="$PDB_MODULES "bin/tdbsam.$SHLIBEXT""
39719		echo "$as_me:$LINENO: result: shared" >&5
39720echo "${ECHO_T}shared" >&6
39721
39722		string_shared_modules="$string_shared_modules pdb_tdbsam"
39723	elif test x"$DEST" = xSTATIC; then
39724		init_static_modules_pdb="$init_static_modules_pdb pdb_tdbsam_init();"
39725		string_static_modules="$string_static_modules pdb_tdbsam"
39726		PDB_STATIC="$PDB_STATIC passdb/pdb_tdb.o"
39727
39728
39729		echo "$as_me:$LINENO: result: static" >&5
39730echo "${ECHO_T}static" >&6
39731	else
39732	    string_ignored_modules="$string_ignored_modules pdb_tdbsam"
39733		echo "$as_me:$LINENO: result: not" >&5
39734echo "${ECHO_T}not" >&6
39735	fi
39736
39737
39738	echo "$as_me:$LINENO: checking how to build pdb_guest" >&5
39739echo $ECHO_N "checking how to build pdb_guest... $ECHO_C" >&6
39740	if test "$MODULE_pdb_guest"; then
39741		DEST=$MODULE_pdb_guest
39742	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_guest"; then
39743		DEST=$MODULE_pdb
39744	else
39745		DEST=$MODULE_DEFAULT_pdb_guest
39746	fi
39747
39748	if test x"$DEST" = xSHARED; then
39749
39750cat >>confdefs.h <<\_ACEOF
39751#define pdb_guest_init init_module
39752_ACEOF
39753
39754		PDB_MODULES="$PDB_MODULES "bin/guest.$SHLIBEXT""
39755		echo "$as_me:$LINENO: result: shared" >&5
39756echo "${ECHO_T}shared" >&6
39757
39758		string_shared_modules="$string_shared_modules pdb_guest"
39759	elif test x"$DEST" = xSTATIC; then
39760		init_static_modules_pdb="$init_static_modules_pdb pdb_guest_init();"
39761		string_static_modules="$string_static_modules pdb_guest"
39762		PDB_STATIC="$PDB_STATIC passdb/pdb_guest.o"
39763
39764
39765		echo "$as_me:$LINENO: result: static" >&5
39766echo "${ECHO_T}static" >&6
39767	else
39768	    string_ignored_modules="$string_ignored_modules pdb_guest"
39769		echo "$as_me:$LINENO: result: not" >&5
39770echo "${ECHO_T}not" >&6
39771	fi
39772
39773
39774
39775
39776
39777cat >>confdefs.h <<_ACEOF
39778#define static_init_pdb {$init_static_modules_pdb}
39779_ACEOF
39780
39781    	rm -f passdb/pdb_interface.o
39782
39783
39784
39785	echo "$as_me:$LINENO: checking how to build rpc_lsa" >&5
39786echo $ECHO_N "checking how to build rpc_lsa... $ECHO_C" >&6
39787	if test "$MODULE_rpc_lsa"; then
39788		DEST=$MODULE_rpc_lsa
39789	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_lsa"; then
39790		DEST=$MODULE_rpc
39791	else
39792		DEST=$MODULE_DEFAULT_rpc_lsa
39793	fi
39794
39795	if test x"$DEST" = xSHARED; then
39796
39797cat >>confdefs.h <<\_ACEOF
39798#define rpc_lsa_init init_module
39799_ACEOF
39800
39801		RPC_MODULES="$RPC_MODULES "bin/librpc_lsarpc.$SHLIBEXT""
39802		echo "$as_me:$LINENO: result: shared" >&5
39803echo "${ECHO_T}shared" >&6
39804
39805		string_shared_modules="$string_shared_modules rpc_lsa"
39806	elif test x"$DEST" = xSTATIC; then
39807		init_static_modules_rpc="$init_static_modules_rpc rpc_lsa_init();"
39808		string_static_modules="$string_static_modules rpc_lsa"
39809		RPC_STATIC="$RPC_STATIC \$(RPC_LSA_OBJ)"
39810
39811
39812		echo "$as_me:$LINENO: result: static" >&5
39813echo "${ECHO_T}static" >&6
39814	else
39815	    string_ignored_modules="$string_ignored_modules rpc_lsa"
39816		echo "$as_me:$LINENO: result: not" >&5
39817echo "${ECHO_T}not" >&6
39818	fi
39819
39820
39821	echo "$as_me:$LINENO: checking how to build rpc_reg" >&5
39822echo $ECHO_N "checking how to build rpc_reg... $ECHO_C" >&6
39823	if test "$MODULE_rpc_reg"; then
39824		DEST=$MODULE_rpc_reg
39825	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_reg"; then
39826		DEST=$MODULE_rpc
39827	else
39828		DEST=$MODULE_DEFAULT_rpc_reg
39829	fi
39830
39831	if test x"$DEST" = xSHARED; then
39832
39833cat >>confdefs.h <<\_ACEOF
39834#define rpc_reg_init init_module
39835_ACEOF
39836
39837		RPC_MODULES="$RPC_MODULES "bin/librpc_winreg.$SHLIBEXT""
39838		echo "$as_me:$LINENO: result: shared" >&5
39839echo "${ECHO_T}shared" >&6
39840
39841		string_shared_modules="$string_shared_modules rpc_reg"
39842	elif test x"$DEST" = xSTATIC; then
39843		init_static_modules_rpc="$init_static_modules_rpc rpc_reg_init();"
39844		string_static_modules="$string_static_modules rpc_reg"
39845		RPC_STATIC="$RPC_STATIC \$(RPC_REG_OBJ)"
39846
39847
39848		echo "$as_me:$LINENO: result: static" >&5
39849echo "${ECHO_T}static" >&6
39850	else
39851	    string_ignored_modules="$string_ignored_modules rpc_reg"
39852		echo "$as_me:$LINENO: result: not" >&5
39853echo "${ECHO_T}not" >&6
39854	fi
39855
39856
39857	echo "$as_me:$LINENO: checking how to build rpc_lsa_ds" >&5
39858echo $ECHO_N "checking how to build rpc_lsa_ds... $ECHO_C" >&6
39859	if test "$MODULE_rpc_lsa_ds"; then
39860		DEST=$MODULE_rpc_lsa_ds
39861	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_lsa_ds"; then
39862		DEST=$MODULE_rpc
39863	else
39864		DEST=$MODULE_DEFAULT_rpc_lsa_ds
39865	fi
39866
39867	if test x"$DEST" = xSHARED; then
39868
39869cat >>confdefs.h <<\_ACEOF
39870#define rpc_lsa_ds_init init_module
39871_ACEOF
39872
39873		RPC_MODULES="$RPC_MODULES "bin/librpc_lsa_ds.$SHLIBEXT""
39874		echo "$as_me:$LINENO: result: shared" >&5
39875echo "${ECHO_T}shared" >&6
39876
39877		string_shared_modules="$string_shared_modules rpc_lsa_ds"
39878	elif test x"$DEST" = xSTATIC; then
39879		init_static_modules_rpc="$init_static_modules_rpc rpc_lsa_ds_init();"
39880		string_static_modules="$string_static_modules rpc_lsa_ds"
39881		RPC_STATIC="$RPC_STATIC \$(RPC_LSA_DS_OBJ)"
39882
39883
39884		echo "$as_me:$LINENO: result: static" >&5
39885echo "${ECHO_T}static" >&6
39886	else
39887	    string_ignored_modules="$string_ignored_modules rpc_lsa_ds"
39888		echo "$as_me:$LINENO: result: not" >&5
39889echo "${ECHO_T}not" >&6
39890	fi
39891
39892
39893	echo "$as_me:$LINENO: checking how to build rpc_wks" >&5
39894echo $ECHO_N "checking how to build rpc_wks... $ECHO_C" >&6
39895	if test "$MODULE_rpc_wks"; then
39896		DEST=$MODULE_rpc_wks
39897	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_wks"; then
39898		DEST=$MODULE_rpc
39899	else
39900		DEST=$MODULE_DEFAULT_rpc_wks
39901	fi
39902
39903	if test x"$DEST" = xSHARED; then
39904
39905cat >>confdefs.h <<\_ACEOF
39906#define rpc_wks_init init_module
39907_ACEOF
39908
39909		RPC_MODULES="$RPC_MODULES "bin/librpc_wkssvc.$SHLIBEXT""
39910		echo "$as_me:$LINENO: result: shared" >&5
39911echo "${ECHO_T}shared" >&6
39912
39913		string_shared_modules="$string_shared_modules rpc_wks"
39914	elif test x"$DEST" = xSTATIC; then
39915		init_static_modules_rpc="$init_static_modules_rpc rpc_wks_init();"
39916		string_static_modules="$string_static_modules rpc_wks"
39917		RPC_STATIC="$RPC_STATIC \$(RPC_WKS_OBJ)"
39918
39919
39920		echo "$as_me:$LINENO: result: static" >&5
39921echo "${ECHO_T}static" >&6
39922	else
39923	    string_ignored_modules="$string_ignored_modules rpc_wks"
39924		echo "$as_me:$LINENO: result: not" >&5
39925echo "${ECHO_T}not" >&6
39926	fi
39927
39928
39929	echo "$as_me:$LINENO: checking how to build rpc_net" >&5
39930echo $ECHO_N "checking how to build rpc_net... $ECHO_C" >&6
39931	if test "$MODULE_rpc_net"; then
39932		DEST=$MODULE_rpc_net
39933	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_net"; then
39934		DEST=$MODULE_rpc
39935	else
39936		DEST=$MODULE_DEFAULT_rpc_net
39937	fi
39938
39939	if test x"$DEST" = xSHARED; then
39940
39941cat >>confdefs.h <<\_ACEOF
39942#define rpc_net_init init_module
39943_ACEOF
39944
39945		RPC_MODULES="$RPC_MODULES "bin/librpc_NETLOGON.$SHLIBEXT""
39946		echo "$as_me:$LINENO: result: shared" >&5
39947echo "${ECHO_T}shared" >&6
39948
39949		string_shared_modules="$string_shared_modules rpc_net"
39950	elif test x"$DEST" = xSTATIC; then
39951		init_static_modules_rpc="$init_static_modules_rpc rpc_net_init();"
39952		string_static_modules="$string_static_modules rpc_net"
39953		RPC_STATIC="$RPC_STATIC \$(RPC_NETLOG_OBJ)"
39954
39955
39956		echo "$as_me:$LINENO: result: static" >&5
39957echo "${ECHO_T}static" >&6
39958	else
39959	    string_ignored_modules="$string_ignored_modules rpc_net"
39960		echo "$as_me:$LINENO: result: not" >&5
39961echo "${ECHO_T}not" >&6
39962	fi
39963
39964
39965	echo "$as_me:$LINENO: checking how to build rpc_dfs" >&5
39966echo $ECHO_N "checking how to build rpc_dfs... $ECHO_C" >&6
39967	if test "$MODULE_rpc_dfs"; then
39968		DEST=$MODULE_rpc_dfs
39969	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_dfs"; then
39970		DEST=$MODULE_rpc
39971	else
39972		DEST=$MODULE_DEFAULT_rpc_dfs
39973	fi
39974
39975	if test x"$DEST" = xSHARED; then
39976
39977cat >>confdefs.h <<\_ACEOF
39978#define rpc_dfs_init init_module
39979_ACEOF
39980
39981		RPC_MODULES="$RPC_MODULES "bin/librpc_netdfs.$SHLIBEXT""
39982		echo "$as_me:$LINENO: result: shared" >&5
39983echo "${ECHO_T}shared" >&6
39984
39985		string_shared_modules="$string_shared_modules rpc_dfs"
39986	elif test x"$DEST" = xSTATIC; then
39987		init_static_modules_rpc="$init_static_modules_rpc rpc_dfs_init();"
39988		string_static_modules="$string_static_modules rpc_dfs"
39989		RPC_STATIC="$RPC_STATIC \$(RPC_DFS_OBJ)"
39990
39991
39992		echo "$as_me:$LINENO: result: static" >&5
39993echo "${ECHO_T}static" >&6
39994	else
39995	    string_ignored_modules="$string_ignored_modules rpc_dfs"
39996		echo "$as_me:$LINENO: result: not" >&5
39997echo "${ECHO_T}not" >&6
39998	fi
39999
40000
40001	echo "$as_me:$LINENO: checking how to build rpc_srv" >&5
40002echo $ECHO_N "checking how to build rpc_srv... $ECHO_C" >&6
40003	if test "$MODULE_rpc_srv"; then
40004		DEST=$MODULE_rpc_srv
40005	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_srv"; then
40006		DEST=$MODULE_rpc
40007	else
40008		DEST=$MODULE_DEFAULT_rpc_srv
40009	fi
40010
40011	if test x"$DEST" = xSHARED; then
40012
40013cat >>confdefs.h <<\_ACEOF
40014#define rpc_srv_init init_module
40015_ACEOF
40016
40017		RPC_MODULES="$RPC_MODULES "bin/librpc_srvsvc.$SHLIBEXT""
40018		echo "$as_me:$LINENO: result: shared" >&5
40019echo "${ECHO_T}shared" >&6
40020
40021		string_shared_modules="$string_shared_modules rpc_srv"
40022	elif test x"$DEST" = xSTATIC; then
40023		init_static_modules_rpc="$init_static_modules_rpc rpc_srv_init();"
40024		string_static_modules="$string_static_modules rpc_srv"
40025		RPC_STATIC="$RPC_STATIC \$(RPC_SVC_OBJ)"
40026
40027
40028		echo "$as_me:$LINENO: result: static" >&5
40029echo "${ECHO_T}static" >&6
40030	else
40031	    string_ignored_modules="$string_ignored_modules rpc_srv"
40032		echo "$as_me:$LINENO: result: not" >&5
40033echo "${ECHO_T}not" >&6
40034	fi
40035
40036
40037	echo "$as_me:$LINENO: checking how to build rpc_spoolss" >&5
40038echo $ECHO_N "checking how to build rpc_spoolss... $ECHO_C" >&6
40039	if test "$MODULE_rpc_spoolss"; then
40040		DEST=$MODULE_rpc_spoolss
40041	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_spoolss"; then
40042		DEST=$MODULE_rpc
40043	else
40044		DEST=$MODULE_DEFAULT_rpc_spoolss
40045	fi
40046
40047	if test x"$DEST" = xSHARED; then
40048
40049cat >>confdefs.h <<\_ACEOF
40050#define rpc_spoolss_init init_module
40051_ACEOF
40052
40053		RPC_MODULES="$RPC_MODULES "bin/librpc_spoolss.$SHLIBEXT""
40054		echo "$as_me:$LINENO: result: shared" >&5
40055echo "${ECHO_T}shared" >&6
40056
40057		string_shared_modules="$string_shared_modules rpc_spoolss"
40058	elif test x"$DEST" = xSTATIC; then
40059		init_static_modules_rpc="$init_static_modules_rpc rpc_spoolss_init();"
40060		string_static_modules="$string_static_modules rpc_spoolss"
40061		RPC_STATIC="$RPC_STATIC \$(RPC_SPOOLSS_OBJ)"
40062
40063
40064		echo "$as_me:$LINENO: result: static" >&5
40065echo "${ECHO_T}static" >&6
40066	else
40067	    string_ignored_modules="$string_ignored_modules rpc_spoolss"
40068		echo "$as_me:$LINENO: result: not" >&5
40069echo "${ECHO_T}not" >&6
40070	fi
40071
40072
40073	echo "$as_me:$LINENO: checking how to build rpc_samr" >&5
40074echo $ECHO_N "checking how to build rpc_samr... $ECHO_C" >&6
40075	if test "$MODULE_rpc_samr"; then
40076		DEST=$MODULE_rpc_samr
40077	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_samr"; then
40078		DEST=$MODULE_rpc
40079	else
40080		DEST=$MODULE_DEFAULT_rpc_samr
40081	fi
40082
40083	if test x"$DEST" = xSHARED; then
40084
40085cat >>confdefs.h <<\_ACEOF
40086#define rpc_samr_init init_module
40087_ACEOF
40088
40089		RPC_MODULES="$RPC_MODULES "bin/librpc_samr.$SHLIBEXT""
40090		echo "$as_me:$LINENO: result: shared" >&5
40091echo "${ECHO_T}shared" >&6
40092
40093		string_shared_modules="$string_shared_modules rpc_samr"
40094	elif test x"$DEST" = xSTATIC; then
40095		init_static_modules_rpc="$init_static_modules_rpc rpc_samr_init();"
40096		string_static_modules="$string_static_modules rpc_samr"
40097		RPC_STATIC="$RPC_STATIC \$(RPC_SAMR_OBJ)"
40098
40099
40100		echo "$as_me:$LINENO: result: static" >&5
40101echo "${ECHO_T}static" >&6
40102	else
40103	    string_ignored_modules="$string_ignored_modules rpc_samr"
40104		echo "$as_me:$LINENO: result: not" >&5
40105echo "${ECHO_T}not" >&6
40106	fi
40107
40108
40109	echo "$as_me:$LINENO: checking how to build rpc_echo" >&5
40110echo $ECHO_N "checking how to build rpc_echo... $ECHO_C" >&6
40111	if test "$MODULE_rpc_echo"; then
40112		DEST=$MODULE_rpc_echo
40113	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_echo"; then
40114		DEST=$MODULE_rpc
40115	else
40116		DEST=$MODULE_DEFAULT_rpc_echo
40117	fi
40118
40119	if test x"$DEST" = xSHARED; then
40120
40121cat >>confdefs.h <<\_ACEOF
40122#define rpc_echo_init init_module
40123_ACEOF
40124
40125		RPC_MODULES="$RPC_MODULES "bin/librpc_echo.$SHLIBEXT""
40126		echo "$as_me:$LINENO: result: shared" >&5
40127echo "${ECHO_T}shared" >&6
40128
40129		string_shared_modules="$string_shared_modules rpc_echo"
40130	elif test x"$DEST" = xSTATIC; then
40131		init_static_modules_rpc="$init_static_modules_rpc rpc_echo_init();"
40132		string_static_modules="$string_static_modules rpc_echo"
40133		RPC_STATIC="$RPC_STATIC \$(RPC_ECHO_OBJ)"
40134
40135
40136		echo "$as_me:$LINENO: result: static" >&5
40137echo "${ECHO_T}static" >&6
40138	else
40139	    string_ignored_modules="$string_ignored_modules rpc_echo"
40140		echo "$as_me:$LINENO: result: not" >&5
40141echo "${ECHO_T}not" >&6
40142	fi
40143
40144
40145
40146
40147
40148cat >>confdefs.h <<_ACEOF
40149#define static_init_rpc {$init_static_modules_rpc}
40150_ACEOF
40151
40152    	rm -f smbd/server.o
40153
40154
40155
40156	echo "$as_me:$LINENO: checking how to build idmap_ldap" >&5
40157echo $ECHO_N "checking how to build idmap_ldap... $ECHO_C" >&6
40158	if test "$MODULE_idmap_ldap"; then
40159		DEST=$MODULE_idmap_ldap
40160	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_ldap"; then
40161		DEST=$MODULE_idmap
40162	else
40163		DEST=$MODULE_DEFAULT_idmap_ldap
40164	fi
40165
40166	if test x"$DEST" = xSHARED; then
40167
40168cat >>confdefs.h <<\_ACEOF
40169#define idmap_ldap_init init_module
40170_ACEOF
40171
40172		IDMAP_MODULES="$IDMAP_MODULES "bin/idmap_ldap.$SHLIBEXT""
40173		echo "$as_me:$LINENO: result: shared" >&5
40174echo "${ECHO_T}shared" >&6
40175
40176		string_shared_modules="$string_shared_modules idmap_ldap"
40177	elif test x"$DEST" = xSTATIC; then
40178		init_static_modules_idmap="$init_static_modules_idmap idmap_ldap_init();"
40179		string_static_modules="$string_static_modules idmap_ldap"
40180		IDMAP_STATIC="$IDMAP_STATIC sam/idmap_ldap.o"
40181
40182
40183		echo "$as_me:$LINENO: result: static" >&5
40184echo "${ECHO_T}static" >&6
40185	else
40186	    string_ignored_modules="$string_ignored_modules idmap_ldap"
40187		echo "$as_me:$LINENO: result: not" >&5
40188echo "${ECHO_T}not" >&6
40189	fi
40190
40191
40192	echo "$as_me:$LINENO: checking how to build idmap_tdb" >&5
40193echo $ECHO_N "checking how to build idmap_tdb... $ECHO_C" >&6
40194	if test "$MODULE_idmap_tdb"; then
40195		DEST=$MODULE_idmap_tdb
40196	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_tdb"; then
40197		DEST=$MODULE_idmap
40198	else
40199		DEST=$MODULE_DEFAULT_idmap_tdb
40200	fi
40201
40202	if test x"$DEST" = xSHARED; then
40203
40204cat >>confdefs.h <<\_ACEOF
40205#define idmap_tdb_init init_module
40206_ACEOF
40207
40208		IDMAP_MODULES="$IDMAP_MODULES "bin/idmap_tdb.$SHLIBEXT""
40209		echo "$as_me:$LINENO: result: shared" >&5
40210echo "${ECHO_T}shared" >&6
40211
40212		string_shared_modules="$string_shared_modules idmap_tdb"
40213	elif test x"$DEST" = xSTATIC; then
40214		init_static_modules_idmap="$init_static_modules_idmap idmap_tdb_init();"
40215		string_static_modules="$string_static_modules idmap_tdb"
40216		IDMAP_STATIC="$IDMAP_STATIC sam/idmap_tdb.o"
40217
40218
40219		echo "$as_me:$LINENO: result: static" >&5
40220echo "${ECHO_T}static" >&6
40221	else
40222	    string_ignored_modules="$string_ignored_modules idmap_tdb"
40223		echo "$as_me:$LINENO: result: not" >&5
40224echo "${ECHO_T}not" >&6
40225	fi
40226
40227
40228	echo "$as_me:$LINENO: checking how to build idmap_rid" >&5
40229echo $ECHO_N "checking how to build idmap_rid... $ECHO_C" >&6
40230	if test "$MODULE_idmap_rid"; then
40231		DEST=$MODULE_idmap_rid
40232	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_rid"; then
40233		DEST=$MODULE_idmap
40234	else
40235		DEST=$MODULE_DEFAULT_idmap_rid
40236	fi
40237
40238	if test x"$DEST" = xSHARED; then
40239
40240cat >>confdefs.h <<\_ACEOF
40241#define idmap_rid_init init_module
40242_ACEOF
40243
40244		IDMAP_MODULES="$IDMAP_MODULES "bin/idmap_rid.$SHLIBEXT""
40245		echo "$as_me:$LINENO: result: shared" >&5
40246echo "${ECHO_T}shared" >&6
40247
40248		string_shared_modules="$string_shared_modules idmap_rid"
40249	elif test x"$DEST" = xSTATIC; then
40250		init_static_modules_idmap="$init_static_modules_idmap idmap_rid_init();"
40251		string_static_modules="$string_static_modules idmap_rid"
40252		IDMAP_STATIC="$IDMAP_STATIC sam/idmap_rid.o"
40253
40254
40255		echo "$as_me:$LINENO: result: static" >&5
40256echo "${ECHO_T}static" >&6
40257	else
40258	    string_ignored_modules="$string_ignored_modules idmap_rid"
40259		echo "$as_me:$LINENO: result: not" >&5
40260echo "${ECHO_T}not" >&6
40261	fi
40262
40263
40264
40265
40266
40267cat >>confdefs.h <<_ACEOF
40268#define static_init_idmap {$init_static_modules_idmap}
40269_ACEOF
40270
40271    	rm -f sam/idmap.o
40272
40273
40274
40275	echo "$as_me:$LINENO: checking how to build charset_weird" >&5
40276echo $ECHO_N "checking how to build charset_weird... $ECHO_C" >&6
40277	if test "$MODULE_charset_weird"; then
40278		DEST=$MODULE_charset_weird
40279	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_weird"; then
40280		DEST=$MODULE_charset
40281	else
40282		DEST=$MODULE_DEFAULT_charset_weird
40283	fi
40284
40285	if test x"$DEST" = xSHARED; then
40286
40287cat >>confdefs.h <<\_ACEOF
40288#define charset_weird_init init_module
40289_ACEOF
40290
40291		CHARSET_MODULES="$CHARSET_MODULES "bin/weird.$SHLIBEXT""
40292		echo "$as_me:$LINENO: result: shared" >&5
40293echo "${ECHO_T}shared" >&6
40294
40295		string_shared_modules="$string_shared_modules charset_weird"
40296	elif test x"$DEST" = xSTATIC; then
40297		init_static_modules_charset="$init_static_modules_charset charset_weird_init();"
40298		string_static_modules="$string_static_modules charset_weird"
40299		CHARSET_STATIC="$CHARSET_STATIC modules/weird.o"
40300
40301
40302		echo "$as_me:$LINENO: result: static" >&5
40303echo "${ECHO_T}static" >&6
40304	else
40305	    string_ignored_modules="$string_ignored_modules charset_weird"
40306		echo "$as_me:$LINENO: result: not" >&5
40307echo "${ECHO_T}not" >&6
40308	fi
40309
40310
40311	echo "$as_me:$LINENO: checking how to build charset_CP850" >&5
40312echo $ECHO_N "checking how to build charset_CP850... $ECHO_C" >&6
40313	if test "$MODULE_charset_CP850"; then
40314		DEST=$MODULE_charset_CP850
40315	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_CP850"; then
40316		DEST=$MODULE_charset
40317	else
40318		DEST=$MODULE_DEFAULT_charset_CP850
40319	fi
40320
40321	if test x"$DEST" = xSHARED; then
40322
40323cat >>confdefs.h <<\_ACEOF
40324#define charset_CP850_init init_module
40325_ACEOF
40326
40327		CHARSET_MODULES="$CHARSET_MODULES "bin/CP850.$SHLIBEXT""
40328		echo "$as_me:$LINENO: result: shared" >&5
40329echo "${ECHO_T}shared" >&6
40330
40331		string_shared_modules="$string_shared_modules charset_CP850"
40332	elif test x"$DEST" = xSTATIC; then
40333		init_static_modules_charset="$init_static_modules_charset charset_CP850_init();"
40334		string_static_modules="$string_static_modules charset_CP850"
40335		CHARSET_STATIC="$CHARSET_STATIC modules/CP850.o"
40336
40337
40338		echo "$as_me:$LINENO: result: static" >&5
40339echo "${ECHO_T}static" >&6
40340	else
40341	    string_ignored_modules="$string_ignored_modules charset_CP850"
40342		echo "$as_me:$LINENO: result: not" >&5
40343echo "${ECHO_T}not" >&6
40344	fi
40345
40346
40347	echo "$as_me:$LINENO: checking how to build charset_CP437" >&5
40348echo $ECHO_N "checking how to build charset_CP437... $ECHO_C" >&6
40349	if test "$MODULE_charset_CP437"; then
40350		DEST=$MODULE_charset_CP437
40351	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_CP437"; then
40352		DEST=$MODULE_charset
40353	else
40354		DEST=$MODULE_DEFAULT_charset_CP437
40355	fi
40356
40357	if test x"$DEST" = xSHARED; then
40358
40359cat >>confdefs.h <<\_ACEOF
40360#define charset_CP437_init init_module
40361_ACEOF
40362
40363		CHARSET_MODULES="$CHARSET_MODULES "bin/CP437.$SHLIBEXT""
40364		echo "$as_me:$LINENO: result: shared" >&5
40365echo "${ECHO_T}shared" >&6
40366
40367		string_shared_modules="$string_shared_modules charset_CP437"
40368	elif test x"$DEST" = xSTATIC; then
40369		init_static_modules_charset="$init_static_modules_charset charset_CP437_init();"
40370		string_static_modules="$string_static_modules charset_CP437"
40371		CHARSET_STATIC="$CHARSET_STATIC modules/CP437.o"
40372
40373
40374		echo "$as_me:$LINENO: result: static" >&5
40375echo "${ECHO_T}static" >&6
40376	else
40377	    string_ignored_modules="$string_ignored_modules charset_CP437"
40378		echo "$as_me:$LINENO: result: not" >&5
40379echo "${ECHO_T}not" >&6
40380	fi
40381
40382
40383	echo "$as_me:$LINENO: checking how to build charset_macosxfs" >&5
40384echo $ECHO_N "checking how to build charset_macosxfs... $ECHO_C" >&6
40385	if test "$MODULE_charset_macosxfs"; then
40386		DEST=$MODULE_charset_macosxfs
40387	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_macosxfs"; then
40388		DEST=$MODULE_charset
40389	else
40390		DEST=$MODULE_DEFAULT_charset_macosxfs
40391	fi
40392
40393	if test x"$DEST" = xSHARED; then
40394
40395cat >>confdefs.h <<\_ACEOF
40396#define charset_macosxfs_init init_module
40397_ACEOF
40398
40399		CHARSET_MODULES="$CHARSET_MODULES "bin/macosxfs.$SHLIBEXT""
40400		echo "$as_me:$LINENO: result: shared" >&5
40401echo "${ECHO_T}shared" >&6
40402
40403		string_shared_modules="$string_shared_modules charset_macosxfs"
40404	elif test x"$DEST" = xSTATIC; then
40405		init_static_modules_charset="$init_static_modules_charset charset_macosxfs_init();"
40406		string_static_modules="$string_static_modules charset_macosxfs"
40407		CHARSET_STATIC="$CHARSET_STATIC modules/charset_macosxfs.o"
40408
40409
40410		echo "$as_me:$LINENO: result: static" >&5
40411echo "${ECHO_T}static" >&6
40412	else
40413	    string_ignored_modules="$string_ignored_modules charset_macosxfs"
40414		echo "$as_me:$LINENO: result: not" >&5
40415echo "${ECHO_T}not" >&6
40416	fi
40417
40418
40419
40420
40421
40422cat >>confdefs.h <<_ACEOF
40423#define static_init_charset {$init_static_modules_charset}
40424_ACEOF
40425
40426    	rm -f lib/iconv.o
40427
40428
40429
40430	echo "$as_me:$LINENO: checking how to build auth_rhosts" >&5
40431echo $ECHO_N "checking how to build auth_rhosts... $ECHO_C" >&6
40432	if test "$MODULE_auth_rhosts"; then
40433		DEST=$MODULE_auth_rhosts
40434	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_rhosts"; then
40435		DEST=$MODULE_auth
40436	else
40437		DEST=$MODULE_DEFAULT_auth_rhosts
40438	fi
40439
40440	if test x"$DEST" = xSHARED; then
40441
40442cat >>confdefs.h <<\_ACEOF
40443#define auth_rhosts_init init_module
40444_ACEOF
40445
40446		AUTH_MODULES="$AUTH_MODULES "bin/rhosts.$SHLIBEXT""
40447		echo "$as_me:$LINENO: result: shared" >&5
40448echo "${ECHO_T}shared" >&6
40449
40450		string_shared_modules="$string_shared_modules auth_rhosts"
40451	elif test x"$DEST" = xSTATIC; then
40452		init_static_modules_auth="$init_static_modules_auth auth_rhosts_init();"
40453		string_static_modules="$string_static_modules auth_rhosts"
40454		AUTH_STATIC="$AUTH_STATIC \$(AUTH_RHOSTS_OBJ)"
40455
40456
40457		echo "$as_me:$LINENO: result: static" >&5
40458echo "${ECHO_T}static" >&6
40459	else
40460	    string_ignored_modules="$string_ignored_modules auth_rhosts"
40461		echo "$as_me:$LINENO: result: not" >&5
40462echo "${ECHO_T}not" >&6
40463	fi
40464
40465
40466	echo "$as_me:$LINENO: checking how to build auth_sam" >&5
40467echo $ECHO_N "checking how to build auth_sam... $ECHO_C" >&6
40468	if test "$MODULE_auth_sam"; then
40469		DEST=$MODULE_auth_sam
40470	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_sam"; then
40471		DEST=$MODULE_auth
40472	else
40473		DEST=$MODULE_DEFAULT_auth_sam
40474	fi
40475
40476	if test x"$DEST" = xSHARED; then
40477
40478cat >>confdefs.h <<\_ACEOF
40479#define auth_sam_init init_module
40480_ACEOF
40481
40482		AUTH_MODULES="$AUTH_MODULES "bin/sam.$SHLIBEXT""
40483		echo "$as_me:$LINENO: result: shared" >&5
40484echo "${ECHO_T}shared" >&6
40485
40486		string_shared_modules="$string_shared_modules auth_sam"
40487	elif test x"$DEST" = xSTATIC; then
40488		init_static_modules_auth="$init_static_modules_auth auth_sam_init();"
40489		string_static_modules="$string_static_modules auth_sam"
40490		AUTH_STATIC="$AUTH_STATIC \$(AUTH_SAM_OBJ)"
40491
40492
40493		echo "$as_me:$LINENO: result: static" >&5
40494echo "${ECHO_T}static" >&6
40495	else
40496	    string_ignored_modules="$string_ignored_modules auth_sam"
40497		echo "$as_me:$LINENO: result: not" >&5
40498echo "${ECHO_T}not" >&6
40499	fi
40500
40501
40502	echo "$as_me:$LINENO: checking how to build auth_unix" >&5
40503echo $ECHO_N "checking how to build auth_unix... $ECHO_C" >&6
40504	if test "$MODULE_auth_unix"; then
40505		DEST=$MODULE_auth_unix
40506	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_unix"; then
40507		DEST=$MODULE_auth
40508	else
40509		DEST=$MODULE_DEFAULT_auth_unix
40510	fi
40511
40512	if test x"$DEST" = xSHARED; then
40513
40514cat >>confdefs.h <<\_ACEOF
40515#define auth_unix_init init_module
40516_ACEOF
40517
40518		AUTH_MODULES="$AUTH_MODULES "bin/unix.$SHLIBEXT""
40519		echo "$as_me:$LINENO: result: shared" >&5
40520echo "${ECHO_T}shared" >&6
40521
40522		string_shared_modules="$string_shared_modules auth_unix"
40523	elif test x"$DEST" = xSTATIC; then
40524		init_static_modules_auth="$init_static_modules_auth auth_unix_init();"
40525		string_static_modules="$string_static_modules auth_unix"
40526		AUTH_STATIC="$AUTH_STATIC \$(AUTH_UNIX_OBJ)"
40527
40528
40529		echo "$as_me:$LINENO: result: static" >&5
40530echo "${ECHO_T}static" >&6
40531	else
40532	    string_ignored_modules="$string_ignored_modules auth_unix"
40533		echo "$as_me:$LINENO: result: not" >&5
40534echo "${ECHO_T}not" >&6
40535	fi
40536
40537
40538	echo "$as_me:$LINENO: checking how to build auth_winbind" >&5
40539echo $ECHO_N "checking how to build auth_winbind... $ECHO_C" >&6
40540	if test "$MODULE_auth_winbind"; then
40541		DEST=$MODULE_auth_winbind
40542	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_winbind"; then
40543		DEST=$MODULE_auth
40544	else
40545		DEST=$MODULE_DEFAULT_auth_winbind
40546	fi
40547
40548	if test x"$DEST" = xSHARED; then
40549
40550cat >>confdefs.h <<\_ACEOF
40551#define auth_winbind_init init_module
40552_ACEOF
40553
40554		AUTH_MODULES="$AUTH_MODULES "bin/winbind.$SHLIBEXT""
40555		echo "$as_me:$LINENO: result: shared" >&5
40556echo "${ECHO_T}shared" >&6
40557
40558		string_shared_modules="$string_shared_modules auth_winbind"
40559	elif test x"$DEST" = xSTATIC; then
40560		init_static_modules_auth="$init_static_modules_auth auth_winbind_init();"
40561		string_static_modules="$string_static_modules auth_winbind"
40562		AUTH_STATIC="$AUTH_STATIC \$(AUTH_WINBIND_OBJ)"
40563
40564
40565		echo "$as_me:$LINENO: result: static" >&5
40566echo "${ECHO_T}static" >&6
40567	else
40568	    string_ignored_modules="$string_ignored_modules auth_winbind"
40569		echo "$as_me:$LINENO: result: not" >&5
40570echo "${ECHO_T}not" >&6
40571	fi
40572
40573
40574	echo "$as_me:$LINENO: checking how to build auth_server" >&5
40575echo $ECHO_N "checking how to build auth_server... $ECHO_C" >&6
40576	if test "$MODULE_auth_server"; then
40577		DEST=$MODULE_auth_server
40578	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_server"; then
40579		DEST=$MODULE_auth
40580	else
40581		DEST=$MODULE_DEFAULT_auth_server
40582	fi
40583
40584	if test x"$DEST" = xSHARED; then
40585
40586cat >>confdefs.h <<\_ACEOF
40587#define auth_server_init init_module
40588_ACEOF
40589
40590		AUTH_MODULES="$AUTH_MODULES "bin/smbserver.$SHLIBEXT""
40591		echo "$as_me:$LINENO: result: shared" >&5
40592echo "${ECHO_T}shared" >&6
40593
40594		string_shared_modules="$string_shared_modules auth_server"
40595	elif test x"$DEST" = xSTATIC; then
40596		init_static_modules_auth="$init_static_modules_auth auth_server_init();"
40597		string_static_modules="$string_static_modules auth_server"
40598		AUTH_STATIC="$AUTH_STATIC \$(AUTH_SERVER_OBJ)"
40599
40600
40601		echo "$as_me:$LINENO: result: static" >&5
40602echo "${ECHO_T}static" >&6
40603	else
40604	    string_ignored_modules="$string_ignored_modules auth_server"
40605		echo "$as_me:$LINENO: result: not" >&5
40606echo "${ECHO_T}not" >&6
40607	fi
40608
40609
40610	echo "$as_me:$LINENO: checking how to build auth_domain" >&5
40611echo $ECHO_N "checking how to build auth_domain... $ECHO_C" >&6
40612	if test "$MODULE_auth_domain"; then
40613		DEST=$MODULE_auth_domain
40614	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_domain"; then
40615		DEST=$MODULE_auth
40616	else
40617		DEST=$MODULE_DEFAULT_auth_domain
40618	fi
40619
40620	if test x"$DEST" = xSHARED; then
40621
40622cat >>confdefs.h <<\_ACEOF
40623#define auth_domain_init init_module
40624_ACEOF
40625
40626		AUTH_MODULES="$AUTH_MODULES "bin/domain.$SHLIBEXT""
40627		echo "$as_me:$LINENO: result: shared" >&5
40628echo "${ECHO_T}shared" >&6
40629
40630		string_shared_modules="$string_shared_modules auth_domain"
40631	elif test x"$DEST" = xSTATIC; then
40632		init_static_modules_auth="$init_static_modules_auth auth_domain_init();"
40633		string_static_modules="$string_static_modules auth_domain"
40634		AUTH_STATIC="$AUTH_STATIC \$(AUTH_DOMAIN_OBJ)"
40635
40636
40637		echo "$as_me:$LINENO: result: static" >&5
40638echo "${ECHO_T}static" >&6
40639	else
40640	    string_ignored_modules="$string_ignored_modules auth_domain"
40641		echo "$as_me:$LINENO: result: not" >&5
40642echo "${ECHO_T}not" >&6
40643	fi
40644
40645
40646	echo "$as_me:$LINENO: checking how to build auth_builtin" >&5
40647echo $ECHO_N "checking how to build auth_builtin... $ECHO_C" >&6
40648	if test "$MODULE_auth_builtin"; then
40649		DEST=$MODULE_auth_builtin
40650	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_builtin"; then
40651		DEST=$MODULE_auth
40652	else
40653		DEST=$MODULE_DEFAULT_auth_builtin
40654	fi
40655
40656	if test x"$DEST" = xSHARED; then
40657
40658cat >>confdefs.h <<\_ACEOF
40659#define auth_builtin_init init_module
40660_ACEOF
40661
40662		AUTH_MODULES="$AUTH_MODULES "bin/builtin.$SHLIBEXT""
40663		echo "$as_me:$LINENO: result: shared" >&5
40664echo "${ECHO_T}shared" >&6
40665
40666		string_shared_modules="$string_shared_modules auth_builtin"
40667	elif test x"$DEST" = xSTATIC; then
40668		init_static_modules_auth="$init_static_modules_auth auth_builtin_init();"
40669		string_static_modules="$string_static_modules auth_builtin"
40670		AUTH_STATIC="$AUTH_STATIC \$(AUTH_BUILTIN_OBJ)"
40671
40672
40673		echo "$as_me:$LINENO: result: static" >&5
40674echo "${ECHO_T}static" >&6
40675	else
40676	    string_ignored_modules="$string_ignored_modules auth_builtin"
40677		echo "$as_me:$LINENO: result: not" >&5
40678echo "${ECHO_T}not" >&6
40679	fi
40680
40681
40682
40683
40684
40685cat >>confdefs.h <<_ACEOF
40686#define static_init_auth {$init_static_modules_auth}
40687_ACEOF
40688
40689    	rm -f auth/auth.o
40690
40691
40692
40693	echo "$as_me:$LINENO: checking how to build vfs_recycle" >&5
40694echo $ECHO_N "checking how to build vfs_recycle... $ECHO_C" >&6
40695	if test "$MODULE_vfs_recycle"; then
40696		DEST=$MODULE_vfs_recycle
40697	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_recycle"; then
40698		DEST=$MODULE_vfs
40699	else
40700		DEST=$MODULE_DEFAULT_vfs_recycle
40701	fi
40702
40703	if test x"$DEST" = xSHARED; then
40704
40705cat >>confdefs.h <<\_ACEOF
40706#define vfs_recycle_init init_module
40707_ACEOF
40708
40709		VFS_MODULES="$VFS_MODULES "bin/recycle.$SHLIBEXT""
40710		echo "$as_me:$LINENO: result: shared" >&5
40711echo "${ECHO_T}shared" >&6
40712
40713		string_shared_modules="$string_shared_modules vfs_recycle"
40714	elif test x"$DEST" = xSTATIC; then
40715		init_static_modules_vfs="$init_static_modules_vfs vfs_recycle_init();"
40716		string_static_modules="$string_static_modules vfs_recycle"
40717		VFS_STATIC="$VFS_STATIC \$(VFS_RECYCLE_OBJ)"
40718
40719
40720		echo "$as_me:$LINENO: result: static" >&5
40721echo "${ECHO_T}static" >&6
40722	else
40723	    string_ignored_modules="$string_ignored_modules vfs_recycle"
40724		echo "$as_me:$LINENO: result: not" >&5
40725echo "${ECHO_T}not" >&6
40726	fi
40727
40728
40729	echo "$as_me:$LINENO: checking how to build vfs_audit" >&5
40730echo $ECHO_N "checking how to build vfs_audit... $ECHO_C" >&6
40731	if test "$MODULE_vfs_audit"; then
40732		DEST=$MODULE_vfs_audit
40733	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_audit"; then
40734		DEST=$MODULE_vfs
40735	else
40736		DEST=$MODULE_DEFAULT_vfs_audit
40737	fi
40738
40739	if test x"$DEST" = xSHARED; then
40740
40741cat >>confdefs.h <<\_ACEOF
40742#define vfs_audit_init init_module
40743_ACEOF
40744
40745		VFS_MODULES="$VFS_MODULES "bin/audit.$SHLIBEXT""
40746		echo "$as_me:$LINENO: result: shared" >&5
40747echo "${ECHO_T}shared" >&6
40748
40749		string_shared_modules="$string_shared_modules vfs_audit"
40750	elif test x"$DEST" = xSTATIC; then
40751		init_static_modules_vfs="$init_static_modules_vfs vfs_audit_init();"
40752		string_static_modules="$string_static_modules vfs_audit"
40753		VFS_STATIC="$VFS_STATIC \$(VFS_AUDIT_OBJ)"
40754
40755
40756		echo "$as_me:$LINENO: result: static" >&5
40757echo "${ECHO_T}static" >&6
40758	else
40759	    string_ignored_modules="$string_ignored_modules vfs_audit"
40760		echo "$as_me:$LINENO: result: not" >&5
40761echo "${ECHO_T}not" >&6
40762	fi
40763
40764
40765	echo "$as_me:$LINENO: checking how to build vfs_extd_audit" >&5
40766echo $ECHO_N "checking how to build vfs_extd_audit... $ECHO_C" >&6
40767	if test "$MODULE_vfs_extd_audit"; then
40768		DEST=$MODULE_vfs_extd_audit
40769	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_extd_audit"; then
40770		DEST=$MODULE_vfs
40771	else
40772		DEST=$MODULE_DEFAULT_vfs_extd_audit
40773	fi
40774
40775	if test x"$DEST" = xSHARED; then
40776
40777cat >>confdefs.h <<\_ACEOF
40778#define vfs_extd_audit_init init_module
40779_ACEOF
40780
40781		VFS_MODULES="$VFS_MODULES "bin/extd_audit.$SHLIBEXT""
40782		echo "$as_me:$LINENO: result: shared" >&5
40783echo "${ECHO_T}shared" >&6
40784
40785		string_shared_modules="$string_shared_modules vfs_extd_audit"
40786	elif test x"$DEST" = xSTATIC; then
40787		init_static_modules_vfs="$init_static_modules_vfs vfs_extd_audit_init();"
40788		string_static_modules="$string_static_modules vfs_extd_audit"
40789		VFS_STATIC="$VFS_STATIC \$(VFS_EXTD_AUDIT_OBJ)"
40790
40791
40792		echo "$as_me:$LINENO: result: static" >&5
40793echo "${ECHO_T}static" >&6
40794	else
40795	    string_ignored_modules="$string_ignored_modules vfs_extd_audit"
40796		echo "$as_me:$LINENO: result: not" >&5
40797echo "${ECHO_T}not" >&6
40798	fi
40799
40800
40801	echo "$as_me:$LINENO: checking how to build vfs_full_audit" >&5
40802echo $ECHO_N "checking how to build vfs_full_audit... $ECHO_C" >&6
40803	if test "$MODULE_vfs_full_audit"; then
40804		DEST=$MODULE_vfs_full_audit
40805	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_full_audit"; then
40806		DEST=$MODULE_vfs
40807	else
40808		DEST=$MODULE_DEFAULT_vfs_full_audit
40809	fi
40810
40811	if test x"$DEST" = xSHARED; then
40812
40813cat >>confdefs.h <<\_ACEOF
40814#define vfs_full_audit_init init_module
40815_ACEOF
40816
40817		VFS_MODULES="$VFS_MODULES "bin/full_audit.$SHLIBEXT""
40818		echo "$as_me:$LINENO: result: shared" >&5
40819echo "${ECHO_T}shared" >&6
40820
40821		string_shared_modules="$string_shared_modules vfs_full_audit"
40822	elif test x"$DEST" = xSTATIC; then
40823		init_static_modules_vfs="$init_static_modules_vfs vfs_full_audit_init();"
40824		string_static_modules="$string_static_modules vfs_full_audit"
40825		VFS_STATIC="$VFS_STATIC \$(VFS_FULL_AUDIT_OBJ)"
40826
40827
40828		echo "$as_me:$LINENO: result: static" >&5
40829echo "${ECHO_T}static" >&6
40830	else
40831	    string_ignored_modules="$string_ignored_modules vfs_full_audit"
40832		echo "$as_me:$LINENO: result: not" >&5
40833echo "${ECHO_T}not" >&6
40834	fi
40835
40836
40837	echo "$as_me:$LINENO: checking how to build vfs_netatalk" >&5
40838echo $ECHO_N "checking how to build vfs_netatalk... $ECHO_C" >&6
40839	if test "$MODULE_vfs_netatalk"; then
40840		DEST=$MODULE_vfs_netatalk
40841	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_netatalk"; then
40842		DEST=$MODULE_vfs
40843	else
40844		DEST=$MODULE_DEFAULT_vfs_netatalk
40845	fi
40846
40847	if test x"$DEST" = xSHARED; then
40848
40849cat >>confdefs.h <<\_ACEOF
40850#define vfs_netatalk_init init_module
40851_ACEOF
40852
40853		VFS_MODULES="$VFS_MODULES "bin/netatalk.$SHLIBEXT""
40854		echo "$as_me:$LINENO: result: shared" >&5
40855echo "${ECHO_T}shared" >&6
40856
40857		string_shared_modules="$string_shared_modules vfs_netatalk"
40858	elif test x"$DEST" = xSTATIC; then
40859		init_static_modules_vfs="$init_static_modules_vfs vfs_netatalk_init();"
40860		string_static_modules="$string_static_modules vfs_netatalk"
40861		VFS_STATIC="$VFS_STATIC \$(VFS_NETATALK_OBJ)"
40862
40863
40864		echo "$as_me:$LINENO: result: static" >&5
40865echo "${ECHO_T}static" >&6
40866	else
40867	    string_ignored_modules="$string_ignored_modules vfs_netatalk"
40868		echo "$as_me:$LINENO: result: not" >&5
40869echo "${ECHO_T}not" >&6
40870	fi
40871
40872
40873	echo "$as_me:$LINENO: checking how to build vfs_fake_perms" >&5
40874echo $ECHO_N "checking how to build vfs_fake_perms... $ECHO_C" >&6
40875	if test "$MODULE_vfs_fake_perms"; then
40876		DEST=$MODULE_vfs_fake_perms
40877	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_fake_perms"; then
40878		DEST=$MODULE_vfs
40879	else
40880		DEST=$MODULE_DEFAULT_vfs_fake_perms
40881	fi
40882
40883	if test x"$DEST" = xSHARED; then
40884
40885cat >>confdefs.h <<\_ACEOF
40886#define vfs_fake_perms_init init_module
40887_ACEOF
40888
40889		VFS_MODULES="$VFS_MODULES "bin/fake_perms.$SHLIBEXT""
40890		echo "$as_me:$LINENO: result: shared" >&5
40891echo "${ECHO_T}shared" >&6
40892
40893		string_shared_modules="$string_shared_modules vfs_fake_perms"
40894	elif test x"$DEST" = xSTATIC; then
40895		init_static_modules_vfs="$init_static_modules_vfs vfs_fake_perms_init();"
40896		string_static_modules="$string_static_modules vfs_fake_perms"
40897		VFS_STATIC="$VFS_STATIC \$(VFS_FAKE_PERMS_OBJ)"
40898
40899
40900		echo "$as_me:$LINENO: result: static" >&5
40901echo "${ECHO_T}static" >&6
40902	else
40903	    string_ignored_modules="$string_ignored_modules vfs_fake_perms"
40904		echo "$as_me:$LINENO: result: not" >&5
40905echo "${ECHO_T}not" >&6
40906	fi
40907
40908
40909	echo "$as_me:$LINENO: checking how to build vfs_default_quota" >&5
40910echo $ECHO_N "checking how to build vfs_default_quota... $ECHO_C" >&6
40911	if test "$MODULE_vfs_default_quota"; then
40912		DEST=$MODULE_vfs_default_quota
40913	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_default_quota"; then
40914		DEST=$MODULE_vfs
40915	else
40916		DEST=$MODULE_DEFAULT_vfs_default_quota
40917	fi
40918
40919	if test x"$DEST" = xSHARED; then
40920
40921cat >>confdefs.h <<\_ACEOF
40922#define vfs_default_quota_init init_module
40923_ACEOF
40924
40925		VFS_MODULES="$VFS_MODULES "bin/default_quota.$SHLIBEXT""
40926		echo "$as_me:$LINENO: result: shared" >&5
40927echo "${ECHO_T}shared" >&6
40928
40929		string_shared_modules="$string_shared_modules vfs_default_quota"
40930	elif test x"$DEST" = xSTATIC; then
40931		init_static_modules_vfs="$init_static_modules_vfs vfs_default_quota_init();"
40932		string_static_modules="$string_static_modules vfs_default_quota"
40933		VFS_STATIC="$VFS_STATIC \$(VFS_DEFAULT_QUOTA_OBJ)"
40934
40935
40936		echo "$as_me:$LINENO: result: static" >&5
40937echo "${ECHO_T}static" >&6
40938	else
40939	    string_ignored_modules="$string_ignored_modules vfs_default_quota"
40940		echo "$as_me:$LINENO: result: not" >&5
40941echo "${ECHO_T}not" >&6
40942	fi
40943
40944
40945	echo "$as_me:$LINENO: checking how to build vfs_readonly" >&5
40946echo $ECHO_N "checking how to build vfs_readonly... $ECHO_C" >&6
40947	if test "$MODULE_vfs_readonly"; then
40948		DEST=$MODULE_vfs_readonly
40949	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_readonly"; then
40950		DEST=$MODULE_vfs
40951	else
40952		DEST=$MODULE_DEFAULT_vfs_readonly
40953	fi
40954
40955	if test x"$DEST" = xSHARED; then
40956
40957cat >>confdefs.h <<\_ACEOF
40958#define vfs_readonly_init init_module
40959_ACEOF
40960
40961		VFS_MODULES="$VFS_MODULES "bin/readonly.$SHLIBEXT""
40962		echo "$as_me:$LINENO: result: shared" >&5
40963echo "${ECHO_T}shared" >&6
40964
40965		string_shared_modules="$string_shared_modules vfs_readonly"
40966	elif test x"$DEST" = xSTATIC; then
40967		init_static_modules_vfs="$init_static_modules_vfs vfs_readonly_init();"
40968		string_static_modules="$string_static_modules vfs_readonly"
40969		VFS_STATIC="$VFS_STATIC \$(VFS_READONLY_OBJ)"
40970
40971
40972		echo "$as_me:$LINENO: result: static" >&5
40973echo "${ECHO_T}static" >&6
40974	else
40975	    string_ignored_modules="$string_ignored_modules vfs_readonly"
40976		echo "$as_me:$LINENO: result: not" >&5
40977echo "${ECHO_T}not" >&6
40978	fi
40979
40980
40981	echo "$as_me:$LINENO: checking how to build vfs_cap" >&5
40982echo $ECHO_N "checking how to build vfs_cap... $ECHO_C" >&6
40983	if test "$MODULE_vfs_cap"; then
40984		DEST=$MODULE_vfs_cap
40985	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_cap"; then
40986		DEST=$MODULE_vfs
40987	else
40988		DEST=$MODULE_DEFAULT_vfs_cap
40989	fi
40990
40991	if test x"$DEST" = xSHARED; then
40992
40993cat >>confdefs.h <<\_ACEOF
40994#define vfs_cap_init init_module
40995_ACEOF
40996
40997		VFS_MODULES="$VFS_MODULES "bin/cap.$SHLIBEXT""
40998		echo "$as_me:$LINENO: result: shared" >&5
40999echo "${ECHO_T}shared" >&6
41000
41001		string_shared_modules="$string_shared_modules vfs_cap"
41002	elif test x"$DEST" = xSTATIC; then
41003		init_static_modules_vfs="$init_static_modules_vfs vfs_cap_init();"
41004		string_static_modules="$string_static_modules vfs_cap"
41005		VFS_STATIC="$VFS_STATIC \$(VFS_CAP_OBJ)"
41006
41007
41008		echo "$as_me:$LINENO: result: static" >&5
41009echo "${ECHO_T}static" >&6
41010	else
41011	    string_ignored_modules="$string_ignored_modules vfs_cap"
41012		echo "$as_me:$LINENO: result: not" >&5
41013echo "${ECHO_T}not" >&6
41014	fi
41015
41016
41017	echo "$as_me:$LINENO: checking how to build vfs_expand_msdfs" >&5
41018echo $ECHO_N "checking how to build vfs_expand_msdfs... $ECHO_C" >&6
41019	if test "$MODULE_vfs_expand_msdfs"; then
41020		DEST=$MODULE_vfs_expand_msdfs
41021	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_expand_msdfs"; then
41022		DEST=$MODULE_vfs
41023	else
41024		DEST=$MODULE_DEFAULT_vfs_expand_msdfs
41025	fi
41026
41027	if test x"$DEST" = xSHARED; then
41028
41029cat >>confdefs.h <<\_ACEOF
41030#define vfs_expand_msdfs_init init_module
41031_ACEOF
41032
41033		VFS_MODULES="$VFS_MODULES "bin/expand_msdfs.$SHLIBEXT""
41034		echo "$as_me:$LINENO: result: shared" >&5
41035echo "${ECHO_T}shared" >&6
41036
41037		string_shared_modules="$string_shared_modules vfs_expand_msdfs"
41038	elif test x"$DEST" = xSTATIC; then
41039		init_static_modules_vfs="$init_static_modules_vfs vfs_expand_msdfs_init();"
41040		string_static_modules="$string_static_modules vfs_expand_msdfs"
41041		VFS_STATIC="$VFS_STATIC \$(VFS_EXPAND_MSDFS_OBJ)"
41042
41043
41044		echo "$as_me:$LINENO: result: static" >&5
41045echo "${ECHO_T}static" >&6
41046	else
41047	    string_ignored_modules="$string_ignored_modules vfs_expand_msdfs"
41048		echo "$as_me:$LINENO: result: not" >&5
41049echo "${ECHO_T}not" >&6
41050	fi
41051
41052
41053	echo "$as_me:$LINENO: checking how to build vfs_shadow_copy" >&5
41054echo $ECHO_N "checking how to build vfs_shadow_copy... $ECHO_C" >&6
41055	if test "$MODULE_vfs_shadow_copy"; then
41056		DEST=$MODULE_vfs_shadow_copy
41057	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_shadow_copy"; then
41058		DEST=$MODULE_vfs
41059	else
41060		DEST=$MODULE_DEFAULT_vfs_shadow_copy
41061	fi
41062
41063	if test x"$DEST" = xSHARED; then
41064
41065cat >>confdefs.h <<\_ACEOF
41066#define vfs_shadow_copy_init init_module
41067_ACEOF
41068
41069		VFS_MODULES="$VFS_MODULES "bin/shadow_copy.$SHLIBEXT""
41070		echo "$as_me:$LINENO: result: shared" >&5
41071echo "${ECHO_T}shared" >&6
41072
41073		string_shared_modules="$string_shared_modules vfs_shadow_copy"
41074	elif test x"$DEST" = xSTATIC; then
41075		init_static_modules_vfs="$init_static_modules_vfs vfs_shadow_copy_init();"
41076		string_static_modules="$string_static_modules vfs_shadow_copy"
41077		VFS_STATIC="$VFS_STATIC \$(VFS_SHADOW_COPY_OBJ)"
41078
41079
41080		echo "$as_me:$LINENO: result: static" >&5
41081echo "${ECHO_T}static" >&6
41082	else
41083	    string_ignored_modules="$string_ignored_modules vfs_shadow_copy"
41084		echo "$as_me:$LINENO: result: not" >&5
41085echo "${ECHO_T}not" >&6
41086	fi
41087
41088
41089	echo "$as_me:$LINENO: checking how to build vfs_afsacl" >&5
41090echo $ECHO_N "checking how to build vfs_afsacl... $ECHO_C" >&6
41091	if test "$MODULE_vfs_afsacl"; then
41092		DEST=$MODULE_vfs_afsacl
41093	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_afsacl"; then
41094		DEST=$MODULE_vfs
41095	else
41096		DEST=$MODULE_DEFAULT_vfs_afsacl
41097	fi
41098
41099	if test x"$DEST" = xSHARED; then
41100
41101cat >>confdefs.h <<\_ACEOF
41102#define vfs_afsacl_init init_module
41103_ACEOF
41104
41105		VFS_MODULES="$VFS_MODULES "bin/afsacl.$SHLIBEXT""
41106		echo "$as_me:$LINENO: result: shared" >&5
41107echo "${ECHO_T}shared" >&6
41108
41109		string_shared_modules="$string_shared_modules vfs_afsacl"
41110	elif test x"$DEST" = xSTATIC; then
41111		init_static_modules_vfs="$init_static_modules_vfs vfs_afsacl_init();"
41112		string_static_modules="$string_static_modules vfs_afsacl"
41113		VFS_STATIC="$VFS_STATIC \$(VFS_AFSACL_OBJ)"
41114
41115
41116		echo "$as_me:$LINENO: result: static" >&5
41117echo "${ECHO_T}static" >&6
41118	else
41119	    string_ignored_modules="$string_ignored_modules vfs_afsacl"
41120		echo "$as_me:$LINENO: result: not" >&5
41121echo "${ECHO_T}not" >&6
41122	fi
41123
41124
41125
41126
41127
41128cat >>confdefs.h <<_ACEOF
41129#define static_init_vfs {$init_static_modules_vfs}
41130_ACEOF
41131
41132    	rm -f smbd/vfs.o
41133
41134
41135
41136cat >>confdefs.h <<_ACEOF
41137#define STRING_STATIC_MODULES "$string_static_modules"
41138_ACEOF
41139
41140
41141#################################################
41142# do extra things if we are running insure
41143
41144if test "${ac_cv_prog_CC}" = "insure"; then
41145	CPPFLAGS="$CPPFLAGS -D__INSURE__"
41146fi
41147
41148#################################################
41149# Display summary of libraries detected
41150
41151echo "$as_me:$LINENO: result: Using libraries:" >&5
41152echo "${ECHO_T}Using libraries:" >&6
41153echo "$as_me:$LINENO: result:     LIBS = $LIBS" >&5
41154echo "${ECHO_T}    LIBS = $LIBS" >&6
41155if test x"$with_ads_support" != x"no"; then
41156   echo "$as_me:$LINENO: result:     KRB5_LIBS = $KRB5_LIBS" >&5
41157echo "${ECHO_T}    KRB5_LIBS = $KRB5_LIBS" >&6
41158fi
41159if test x"$with_ldap_support" != x"no"; then
41160   echo "$as_me:$LINENO: result:     LDAP_LIBS = $LDAP_LIBS" >&5
41161echo "${ECHO_T}    LDAP_LIBS = $LDAP_LIBS" >&6
41162fi
41163echo "$as_me:$LINENO: result:     AUTH_LIBS = $AUTH_LIBS" >&5
41164echo "${ECHO_T}    AUTH_LIBS = $AUTH_LIBS" >&6
41165
41166#################################################
41167# final configure stuff
41168
41169echo "$as_me:$LINENO: checking configure summary" >&5
41170echo $ECHO_N "checking configure summary... $ECHO_C" >&6
41171if test "$cross_compiling" = yes; then
41172  { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
41173echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
41174else
41175  cat >conftest.$ac_ext <<_ACEOF
41176/* confdefs.h.  */
41177_ACEOF
41178cat confdefs.h >>conftest.$ac_ext
41179cat >>conftest.$ac_ext <<_ACEOF
41180/* end confdefs.h.  */
41181#include "${srcdir-.}/tests/summary.c"
41182_ACEOF
41183rm -f conftest$ac_exeext
41184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41185  (eval $ac_link) 2>&5
41186  ac_status=$?
41187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41190  (eval $ac_try) 2>&5
41191  ac_status=$?
41192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41193  (exit $ac_status); }; }; then
41194  echo "$as_me:$LINENO: result: yes" >&5
41195echo "${ECHO_T}yes" >&6
41196else
41197  echo "$as_me: program exited with status $ac_status" >&5
41198echo "$as_me: failed program was:" >&5
41199sed 's/^/| /' conftest.$ac_ext >&5
41200
41201( exit $ac_status )
41202{ { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
41203echo "$as_me: error: summary failure. Aborting config" >&2;}
41204   { (exit 1); exit 1; }; }; exit 1;
41205fi
41206rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41207fi
41208
41209builddir=`pwd`
41210
41211
41212
41213  ac_new_flags=""
41214  for i in $LDFLAGS; do
41215    case $i in
41216    -L/usr/lib|-L/usr/lib/) ;;
41217    *) ac_new_flags="$ac_new_flags $i" ;;
41218    esac
41219  done
41220  LDFLAGS=$ac_new_flags
41221
41222
41223  ac_new_flags=""
41224  for i in $LIBS; do
41225    case $i in
41226    -L/usr/lib|-L/usr/lib/) ;;
41227    *) ac_new_flags="$ac_new_flags $i" ;;
41228    esac
41229  done
41230  LIBS=$ac_new_flags
41231
41232
41233
41234  ac_new_flags=""
41235  for i in $CFLAGS; do
41236    case $i in
41237    -I/usr/include|-I/usr/include/) ;;
41238    *) ac_new_flags="$ac_new_flags $i" ;;
41239    esac
41240  done
41241  CFLAGS=$ac_new_flags
41242
41243
41244  ac_new_flags=""
41245  for i in $CPPFLAGS; do
41246    case $i in
41247    -I/usr/include|-I/usr/include/) ;;
41248    *) ac_new_flags="$ac_new_flags $i" ;;
41249    esac
41250  done
41251  CPPFLAGS=$ac_new_flags
41252
41253
41254                                                  ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb smbadduser script/gen-8bit-gap.sh"
41255cat >confcache <<\_ACEOF
41256# This file is a shell script that caches the results of configure
41257# tests run on this system so they can be shared between configure
41258# scripts and configure runs, see configure's option --config-cache.
41259# It is not useful on other systems.  If it contains results you don't
41260# want to keep, you may remove or edit it.
41261#
41262# config.status only pays attention to the cache file if you give it
41263# the --recheck option to rerun configure.
41264#
41265# `ac_cv_env_foo' variables (set or unset) will be overridden when
41266# loading this file, other *unset* `ac_cv_foo' will be assigned the
41267# following values.
41268
41269_ACEOF
41270
41271# The following way of writing the cache mishandles newlines in values,
41272# but we know of no workaround that is simple, portable, and efficient.
41273# So, don't put newlines in cache variables' values.
41274# Ultrix sh set writes to stderr and can't be redirected directly,
41275# and sets the high bit in the cache file unless we assign to the vars.
41276{
41277  (set) 2>&1 |
41278    case `(ac_space=' '; set | grep ac_space) 2>&1` in
41279    *ac_space=\ *)
41280      # `set' does not quote correctly, so add quotes (double-quote
41281      # substitution turns \\\\ into \\, and sed turns \\ into \).
41282      sed -n \
41283	"s/'/'\\\\''/g;
41284	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41285      ;;
41286    *)
41287      # `set' quotes correctly as required by POSIX, so do not add quotes.
41288      sed -n \
41289	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
41290      ;;
41291    esac;
41292} |
41293  sed '
41294     t clear
41295     : clear
41296     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41297     t end
41298     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41299     : end' >>confcache
41300if diff $cache_file confcache >/dev/null 2>&1; then :; else
41301  if test -w $cache_file; then
41302    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41303    cat confcache >$cache_file
41304  else
41305    echo "not updating unwritable cache $cache_file"
41306  fi
41307fi
41308rm -f confcache
41309
41310test "x$prefix" = xNONE && prefix=$ac_default_prefix
41311# Let make expand exec_prefix.
41312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41313
41314# VPATH may cause trouble with some makes, so we remove $(srcdir),
41315# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41316# trailing colons and then remove the whole line if VPATH becomes empty
41317# (actually we leave an empty line to preserve line numbers).
41318if test "x$srcdir" = x.; then
41319  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
41320s/:*\$(srcdir):*/:/;
41321s/:*\${srcdir}:*/:/;
41322s/:*@srcdir@:*/:/;
41323s/^\([^=]*=[	 ]*\):*/\1/;
41324s/:*$//;
41325s/^[^=]*=[	 ]*$//;
41326}'
41327fi
41328
41329DEFS=-DHAVE_CONFIG_H
41330
41331ac_libobjs=
41332ac_ltlibobjs=
41333for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41334  # 1. Remove the extension, and $U if already installed.
41335  ac_i=`echo "$ac_i" |
41336	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41337  # 2. Add them.
41338  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41339  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41340done
41341LIBOBJS=$ac_libobjs
41342
41343LTLIBOBJS=$ac_ltlibobjs
41344
41345
41346
41347: ${CONFIG_STATUS=./config.status}
41348ac_clean_files_save=$ac_clean_files
41349ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41350{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41351echo "$as_me: creating $CONFIG_STATUS" >&6;}
41352cat >$CONFIG_STATUS <<_ACEOF
41353#! $SHELL
41354# Generated by $as_me.
41355# Run this file to recreate the current configuration.
41356# Compiler output produced by configure, useful for debugging
41357# configure, is in config.log if it exists.
41358
41359debug=false
41360ac_cs_recheck=false
41361ac_cs_silent=false
41362SHELL=\${CONFIG_SHELL-$SHELL}
41363_ACEOF
41364
41365cat >>$CONFIG_STATUS <<\_ACEOF
41366## --------------------- ##
41367## M4sh Initialization.  ##
41368## --------------------- ##
41369
41370# Be Bourne compatible
41371if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41372  emulate sh
41373  NULLCMD=:
41374  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41375  # is contrary to our usage.  Disable this feature.
41376  alias -g '${1+"$@"}'='"$@"'
41377elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41378  set -o posix
41379fi
41380DUALCASE=1; export DUALCASE # for MKS sh
41381
41382# Support unset when possible.
41383if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41384  as_unset=unset
41385else
41386  as_unset=false
41387fi
41388
41389
41390# Work around bugs in pre-3.0 UWIN ksh.
41391$as_unset ENV MAIL MAILPATH
41392PS1='$ '
41393PS2='> '
41394PS4='+ '
41395
41396# NLS nuisances.
41397for as_var in \
41398  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41399  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41400  LC_TELEPHONE LC_TIME
41401do
41402  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41403    eval $as_var=C; export $as_var
41404  else
41405    $as_unset $as_var
41406  fi
41407done
41408
41409# Required to use basename.
41410if expr a : '\(a\)' >/dev/null 2>&1; then
41411  as_expr=expr
41412else
41413  as_expr=false
41414fi
41415
41416if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41417  as_basename=basename
41418else
41419  as_basename=false
41420fi
41421
41422
41423# Name of the executable.
41424as_me=`$as_basename "$0" ||
41425$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41426	 X"$0" : 'X\(//\)$' \| \
41427	 X"$0" : 'X\(/\)$' \| \
41428	 .     : '\(.\)' 2>/dev/null ||
41429echo X/"$0" |
41430    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41431  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
41432  	  /^X\/\(\/\).*/{ s//\1/; q; }
41433  	  s/.*/./; q'`
41434
41435
41436# PATH needs CR, and LINENO needs CR and PATH.
41437# Avoid depending upon Character Ranges.
41438as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41439as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41440as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41441as_cr_digits='0123456789'
41442as_cr_alnum=$as_cr_Letters$as_cr_digits
41443
41444# The user is always right.
41445if test "${PATH_SEPARATOR+set}" != set; then
41446  echo "#! /bin/sh" >conf$$.sh
41447  echo  "exit 0"   >>conf$$.sh
41448  chmod +x conf$$.sh
41449  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41450    PATH_SEPARATOR=';'
41451  else
41452    PATH_SEPARATOR=:
41453  fi
41454  rm -f conf$$.sh
41455fi
41456
41457
41458  as_lineno_1=$LINENO
41459  as_lineno_2=$LINENO
41460  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41461  test "x$as_lineno_1" != "x$as_lineno_2" &&
41462  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
41463  # Find who we are.  Look in the path if we contain no path at all
41464  # relative or not.
41465  case $0 in
41466    *[\\/]* ) as_myself=$0 ;;
41467    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41468for as_dir in $PATH
41469do
41470  IFS=$as_save_IFS
41471  test -z "$as_dir" && as_dir=.
41472  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41473done
41474
41475       ;;
41476  esac
41477  # We did not find ourselves, most probably we were run as `sh COMMAND'
41478  # in which case we are not to be found in the path.
41479  if test "x$as_myself" = x; then
41480    as_myself=$0
41481  fi
41482  if test ! -f "$as_myself"; then
41483    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41484echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41485   { (exit 1); exit 1; }; }
41486  fi
41487  case $CONFIG_SHELL in
41488  '')
41489    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41490for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41491do
41492  IFS=$as_save_IFS
41493  test -z "$as_dir" && as_dir=.
41494  for as_base in sh bash ksh sh5; do
41495	 case $as_dir in
41496	 /*)
41497	   if ("$as_dir/$as_base" -c '
41498  as_lineno_1=$LINENO
41499  as_lineno_2=$LINENO
41500  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41501  test "x$as_lineno_1" != "x$as_lineno_2" &&
41502  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41503	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41504	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41505	     CONFIG_SHELL=$as_dir/$as_base
41506	     export CONFIG_SHELL
41507	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41508	   fi;;
41509	 esac
41510       done
41511done
41512;;
41513  esac
41514
41515  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41516  # uniformly replaced by the line number.  The first 'sed' inserts a
41517  # line-number line before each line; the second 'sed' does the real
41518  # work.  The second script uses 'N' to pair each line-number line
41519  # with the numbered line, and appends trailing '-' during
41520  # substitution so that $LINENO is not a special case at line end.
41521  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41522  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41523  sed '=' <$as_myself |
41524    sed '
41525      N
41526      s,$,-,
41527      : loop
41528      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41529      t loop
41530      s,-$,,
41531      s,^['$as_cr_digits']*\n,,
41532    ' >$as_me.lineno &&
41533  chmod +x $as_me.lineno ||
41534    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41535echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41536   { (exit 1); exit 1; }; }
41537
41538  # Don't try to exec as it changes $[0], causing all sort of problems
41539  # (the dirname of $[0] is not the place where we might find the
41540  # original and so on.  Autoconf is especially sensible to this).
41541  . ./$as_me.lineno
41542  # Exit status is that of the last command.
41543  exit
41544}
41545
41546
41547case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41548  *c*,-n*) ECHO_N= ECHO_C='
41549' ECHO_T='	' ;;
41550  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41551  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41552esac
41553
41554if expr a : '\(a\)' >/dev/null 2>&1; then
41555  as_expr=expr
41556else
41557  as_expr=false
41558fi
41559
41560rm -f conf$$ conf$$.exe conf$$.file
41561echo >conf$$.file
41562if ln -s conf$$.file conf$$ 2>/dev/null; then
41563  # We could just check for DJGPP; but this test a) works b) is more generic
41564  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41565  if test -f conf$$.exe; then
41566    # Don't use ln at all; we don't have any links
41567    as_ln_s='cp -p'
41568  else
41569    as_ln_s='ln -s'
41570  fi
41571elif ln conf$$.file conf$$ 2>/dev/null; then
41572  as_ln_s=ln
41573else
41574  as_ln_s='cp -p'
41575fi
41576rm -f conf$$ conf$$.exe conf$$.file
41577
41578if mkdir -p . 2>/dev/null; then
41579  as_mkdir_p=:
41580else
41581  test -d ./-p && rmdir ./-p
41582  as_mkdir_p=false
41583fi
41584
41585as_executable_p="test -f"
41586
41587# Sed expression to map a string onto a valid CPP name.
41588as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41589
41590# Sed expression to map a string onto a valid variable name.
41591as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41592
41593
41594# IFS
41595# We need space, tab and new line, in precisely that order.
41596as_nl='
41597'
41598IFS=" 	$as_nl"
41599
41600# CDPATH.
41601$as_unset CDPATH
41602
41603exec 6>&1
41604
41605# Open the log real soon, to keep \$[0] and so on meaningful, and to
41606# report actual input values of CONFIG_FILES etc. instead of their
41607# values after options handling.  Logging --version etc. is OK.
41608exec 5>>config.log
41609{
41610  echo
41611  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41612## Running $as_me. ##
41613_ASBOX
41614} >&5
41615cat >&5 <<_CSEOF
41616
41617This file was extended by $as_me, which was
41618generated by GNU Autoconf 2.59.  Invocation command line was
41619
41620  CONFIG_FILES    = $CONFIG_FILES
41621  CONFIG_HEADERS  = $CONFIG_HEADERS
41622  CONFIG_LINKS    = $CONFIG_LINKS
41623  CONFIG_COMMANDS = $CONFIG_COMMANDS
41624  $ $0 $@
41625
41626_CSEOF
41627echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41628echo >&5
41629_ACEOF
41630
41631# Files that config.status was made for.
41632if test -n "$ac_config_files"; then
41633  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41634fi
41635
41636if test -n "$ac_config_headers"; then
41637  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41638fi
41639
41640if test -n "$ac_config_links"; then
41641  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41642fi
41643
41644if test -n "$ac_config_commands"; then
41645  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41646fi
41647
41648cat >>$CONFIG_STATUS <<\_ACEOF
41649
41650ac_cs_usage="\
41651\`$as_me' instantiates files from templates according to the
41652current configuration.
41653
41654Usage: $0 [OPTIONS] [FILE]...
41655
41656  -h, --help       print this help, then exit
41657  -V, --version    print version number, then exit
41658  -q, --quiet      do not print progress messages
41659  -d, --debug      don't remove temporary files
41660      --recheck    update $as_me by reconfiguring in the same conditions
41661  --file=FILE[:TEMPLATE]
41662		   instantiate the configuration file FILE
41663  --header=FILE[:TEMPLATE]
41664		   instantiate the configuration header FILE
41665
41666Configuration files:
41667$config_files
41668
41669Configuration headers:
41670$config_headers
41671
41672Report bugs to <bug-autoconf@gnu.org>."
41673_ACEOF
41674
41675cat >>$CONFIG_STATUS <<_ACEOF
41676ac_cs_version="\\
41677config.status
41678configured by $0, generated by GNU Autoconf 2.59,
41679  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41680
41681Copyright (C) 2003 Free Software Foundation, Inc.
41682This config.status script is free software; the Free Software Foundation
41683gives unlimited permission to copy, distribute and modify it."
41684srcdir=$srcdir
41685INSTALL="$INSTALL"
41686_ACEOF
41687
41688cat >>$CONFIG_STATUS <<\_ACEOF
41689# If no file are specified by the user, then we need to provide default
41690# value.  By we need to know if files were specified by the user.
41691ac_need_defaults=:
41692while test $# != 0
41693do
41694  case $1 in
41695  --*=*)
41696    ac_option=`expr "x$1" : 'x\([^=]*\)='`
41697    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41698    ac_shift=:
41699    ;;
41700  -*)
41701    ac_option=$1
41702    ac_optarg=$2
41703    ac_shift=shift
41704    ;;
41705  *) # This is not an option, so the user has probably given explicit
41706     # arguments.
41707     ac_option=$1
41708     ac_need_defaults=false;;
41709  esac
41710
41711  case $ac_option in
41712  # Handling of the options.
41713_ACEOF
41714cat >>$CONFIG_STATUS <<\_ACEOF
41715  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41716    ac_cs_recheck=: ;;
41717  --version | --vers* | -V )
41718    echo "$ac_cs_version"; exit 0 ;;
41719  --he | --h)
41720    # Conflict between --help and --header
41721    { { echo "$as_me:$LINENO: error: ambiguous option: $1
41722Try \`$0 --help' for more information." >&5
41723echo "$as_me: error: ambiguous option: $1
41724Try \`$0 --help' for more information." >&2;}
41725   { (exit 1); exit 1; }; };;
41726  --help | --hel | -h )
41727    echo "$ac_cs_usage"; exit 0 ;;
41728  --debug | --d* | -d )
41729    debug=: ;;
41730  --file | --fil | --fi | --f )
41731    $ac_shift
41732    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41733    ac_need_defaults=false;;
41734  --header | --heade | --head | --hea )
41735    $ac_shift
41736    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41737    ac_need_defaults=false;;
41738  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41739  | -silent | --silent | --silen | --sile | --sil | --si | --s)
41740    ac_cs_silent=: ;;
41741
41742  # This is an error.
41743  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41744Try \`$0 --help' for more information." >&5
41745echo "$as_me: error: unrecognized option: $1
41746Try \`$0 --help' for more information." >&2;}
41747   { (exit 1); exit 1; }; } ;;
41748
41749  *) ac_config_targets="$ac_config_targets $1" ;;
41750
41751  esac
41752  shift
41753done
41754
41755ac_configure_extra_args=
41756
41757if $ac_cs_silent; then
41758  exec 6>/dev/null
41759  ac_configure_extra_args="$ac_configure_extra_args --silent"
41760fi
41761
41762_ACEOF
41763cat >>$CONFIG_STATUS <<_ACEOF
41764if \$ac_cs_recheck; then
41765  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41766  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41767fi
41768
41769_ACEOF
41770
41771
41772
41773
41774
41775cat >>$CONFIG_STATUS <<\_ACEOF
41776for ac_config_target in $ac_config_targets
41777do
41778  case "$ac_config_target" in
41779  # Handling of arguments.
41780  "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
41781  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41782  "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
41783  "smbadduser" ) CONFIG_FILES="$CONFIG_FILES smbadduser" ;;
41784  "script/gen-8bit-gap.sh" ) CONFIG_FILES="$CONFIG_FILES script/gen-8bit-gap.sh" ;;
41785  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
41786  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41787echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41788   { (exit 1); exit 1; }; };;
41789  esac
41790done
41791
41792# If the user did not use the arguments to specify the items to instantiate,
41793# then the envvar interface is used.  Set only those that are not.
41794# We use the long form for the default assignment because of an extremely
41795# bizarre bug on SunOS 4.1.3.
41796if $ac_need_defaults; then
41797  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41798  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41799fi
41800
41801# Have a temporary directory for convenience.  Make it in the build tree
41802# simply because there is no reason to put it here, and in addition,
41803# creating and moving files from /tmp can sometimes cause problems.
41804# Create a temporary directory, and hook for its removal unless debugging.
41805$debug ||
41806{
41807  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41808  trap '{ (exit 1); exit 1; }' 1 2 13 15
41809}
41810
41811# Create a (secure) tmp directory for tmp files.
41812
41813{
41814  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41815  test -n "$tmp" && test -d "$tmp"
41816}  ||
41817{
41818  tmp=./confstat$$-$RANDOM
41819  (umask 077 && mkdir $tmp)
41820} ||
41821{
41822   echo "$me: cannot create a temporary directory in ." >&2
41823   { (exit 1); exit 1; }
41824}
41825
41826_ACEOF
41827
41828cat >>$CONFIG_STATUS <<_ACEOF
41829
41830#
41831# CONFIG_FILES section.
41832#
41833
41834# No need to generate the scripts if there are no CONFIG_FILES.
41835# This happens for instance when ./config.status config.h
41836if test -n "\$CONFIG_FILES"; then
41837  # Protect against being on the right side of a sed subst in config.status.
41838  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41839   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41840s,@SHELL@,$SHELL,;t t
41841s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41842s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41843s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41844s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41845s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41846s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41847s,@exec_prefix@,$exec_prefix,;t t
41848s,@prefix@,$prefix,;t t
41849s,@program_transform_name@,$program_transform_name,;t t
41850s,@bindir@,$bindir,;t t
41851s,@sbindir@,$sbindir,;t t
41852s,@libexecdir@,$libexecdir,;t t
41853s,@datadir@,$datadir,;t t
41854s,@sysconfdir@,$sysconfdir,;t t
41855s,@sharedstatedir@,$sharedstatedir,;t t
41856s,@localstatedir@,$localstatedir,;t t
41857s,@libdir@,$libdir,;t t
41858s,@includedir@,$includedir,;t t
41859s,@oldincludedir@,$oldincludedir,;t t
41860s,@infodir@,$infodir,;t t
41861s,@mandir@,$mandir,;t t
41862s,@build_alias@,$build_alias,;t t
41863s,@host_alias@,$host_alias,;t t
41864s,@target_alias@,$target_alias,;t t
41865s,@DEFS@,$DEFS,;t t
41866s,@ECHO_C@,$ECHO_C,;t t
41867s,@ECHO_N@,$ECHO_N,;t t
41868s,@ECHO_T@,$ECHO_T,;t t
41869s,@LIBS@,$LIBS,;t t
41870s,@configdir@,$configdir,;t t
41871s,@lockdir@,$lockdir,;t t
41872s,@piddir@,$piddir,;t t
41873s,@logfilebase@,$logfilebase,;t t
41874s,@privatedir@,$privatedir,;t t
41875s,@swatdir@,$swatdir,;t t
41876s,@LDSHFLAGS@,$LDSHFLAGS,;t t
41877s,@SONAMEFLAG@,$SONAMEFLAG,;t t
41878s,@SHLD@,$SHLD,;t t
41879s,@HOST_OS@,$HOST_OS,;t t
41880s,@PICFLAGS@,$PICFLAGS,;t t
41881s,@PICSUFFIX@,$PICSUFFIX,;t t
41882s,@SHLIBEXT@,$SHLIBEXT,;t t
41883s,@INSTALLCLIENT@,$INSTALLCLIENT,;t t
41884s,@INSTALLCLIENTCMD_SH@,$INSTALLCLIENTCMD_SH,;t t
41885s,@INSTALLCLIENTCMD_A@,$INSTALLCLIENTCMD_A,;t t
41886s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
41887s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
41888s,@PRINT_LIBS@,$PRINT_LIBS,;t t
41889s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41890s,@ACL_LIBS@,$ACL_LIBS,;t t
41891s,@PASSDB_LIBS@,$PASSDB_LIBS,;t t
41892s,@IDMAP_LIBS@,$IDMAP_LIBS,;t t
41893s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41894s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41895s,@SHLIB_PROGS@,$SHLIB_PROGS,;t t
41896s,@SMBWRAPPER@,$SMBWRAPPER,;t t
41897s,@EXTRA_BIN_PROGS@,$EXTRA_BIN_PROGS,;t t
41898s,@EXTRA_SBIN_PROGS@,$EXTRA_SBIN_PROGS,;t t
41899s,@EXTRA_ALL_TARGETS@,$EXTRA_ALL_TARGETS,;t t
41900s,@CC@,$CC,;t t
41901s,@CFLAGS@,$CFLAGS,;t t
41902s,@LDFLAGS@,$LDFLAGS,;t t
41903s,@CPPFLAGS@,$CPPFLAGS,;t t
41904s,@ac_ct_CC@,$ac_ct_CC,;t t
41905s,@EXEEXT@,$EXEEXT,;t t
41906s,@OBJEXT@,$OBJEXT,;t t
41907s,@CPP@,$CPP,;t t
41908s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41909s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41910s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41911s,@AWK@,$AWK,;t t
41912s,@PERL@,$PERL,;t t
41913s,@AR@,$AR,;t t
41914s,@ac_ct_AR@,$ac_ct_AR,;t t
41915s,@BROKEN_CC@,$BROKEN_CC,;t t
41916s,@build@,$build,;t t
41917s,@build_cpu@,$build_cpu,;t t
41918s,@build_vendor@,$build_vendor,;t t
41919s,@build_os@,$build_os,;t t
41920s,@host@,$host,;t t
41921s,@host_cpu@,$host_cpu,;t t
41922s,@host_vendor@,$host_vendor,;t t
41923s,@host_os@,$host_os,;t t
41924s,@target@,$target,;t t
41925s,@target_cpu@,$target_cpu,;t t
41926s,@target_vendor@,$target_vendor,;t t
41927s,@target_os@,$target_os,;t t
41928s,@EGREP@,$EGREP,;t t
41929s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
41930s,@LIBOBJS@,$LIBOBJS,;t t
41931s,@TERMLIBS@,$TERMLIBS,;t t
41932s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
41933s,@ROFF@,$ROFF,;t t
41934s,@DYNEXP@,$DYNEXP,;t t
41935s,@SMBLDAP@,$SMBLDAP,;t t
41936s,@KRB5CONFIG@,$KRB5CONFIG,;t t
41937s,@XML2_CONFIG@,$XML2_CONFIG,;t t
41938s,@XML_CFLAGS@,$XML_CFLAGS,;t t
41939s,@XML_LIBS@,$XML_LIBS,;t t
41940s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
41941s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
41942s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
41943s,@PGSQL_CONFIG@,$PGSQL_CONFIG,;t t
41944s,@PGSQL_CFLAGS@,$PGSQL_CFLAGS,;t t
41945s,@PGSQL_LIBS@,$PGSQL_LIBS,;t t
41946s,@manlangs@,$manlangs,;t t
41947s,@WINBIND_NSS@,$WINBIND_NSS,;t t
41948s,@WINBIND_WINS_NSS@,$WINBIND_WINS_NSS,;t t
41949s,@WINBIND_NSS_LDSHFLAGS@,$WINBIND_NSS_LDSHFLAGS,;t t
41950s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
41951s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
41952s,@BUILD_POPT@,$BUILD_POPT,;t t
41953s,@POPTLIBS@,$POPTLIBS,;t t
41954s,@FLAGS1@,$FLAGS1,;t t
41955s,@PYTHON@,$PYTHON,;t t
41956s,@PDB_STATIC@,$PDB_STATIC,;t t
41957s,@PDB_MODULES@,$PDB_MODULES,;t t
41958s,@RPC_STATIC@,$RPC_STATIC,;t t
41959s,@RPC_MODULES@,$RPC_MODULES,;t t
41960s,@IDMAP_STATIC@,$IDMAP_STATIC,;t t
41961s,@IDMAP_MODULES@,$IDMAP_MODULES,;t t
41962s,@CHARSET_STATIC@,$CHARSET_STATIC,;t t
41963s,@CHARSET_MODULES@,$CHARSET_MODULES,;t t
41964s,@AUTH_STATIC@,$AUTH_STATIC,;t t
41965s,@AUTH_MODULES@,$AUTH_MODULES,;t t
41966s,@VFS_STATIC@,$VFS_STATIC,;t t
41967s,@VFS_MODULES@,$VFS_MODULES,;t t
41968s,@builddir@,$builddir,;t t
41969s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41970CEOF
41971
41972_ACEOF
41973
41974  cat >>$CONFIG_STATUS <<\_ACEOF
41975  # Split the substitutions into bite-sized pieces for seds with
41976  # small command number limits, like on Digital OSF/1 and HP-UX.
41977  ac_max_sed_lines=48
41978  ac_sed_frag=1 # Number of current file.
41979  ac_beg=1 # First line for current file.
41980  ac_end=$ac_max_sed_lines # Line after last line for current file.
41981  ac_more_lines=:
41982  ac_sed_cmds=
41983  while $ac_more_lines; do
41984    if test $ac_beg -gt 1; then
41985      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41986    else
41987      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41988    fi
41989    if test ! -s $tmp/subs.frag; then
41990      ac_more_lines=false
41991    else
41992      # The purpose of the label and of the branching condition is to
41993      # speed up the sed processing (if there are no `@' at all, there
41994      # is no need to browse any of the substitutions).
41995      # These are the two extra sed commands mentioned above.
41996      (echo ':t
41997  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41998      if test -z "$ac_sed_cmds"; then
41999	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
42000      else
42001	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
42002      fi
42003      ac_sed_frag=`expr $ac_sed_frag + 1`
42004      ac_beg=$ac_end
42005      ac_end=`expr $ac_end + $ac_max_sed_lines`
42006    fi
42007  done
42008  if test -z "$ac_sed_cmds"; then
42009    ac_sed_cmds=cat
42010  fi
42011fi # test -n "$CONFIG_FILES"
42012
42013_ACEOF
42014cat >>$CONFIG_STATUS <<\_ACEOF
42015for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42016  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42017  case $ac_file in
42018  - | *:- | *:-:* ) # input from stdin
42019	cat >$tmp/stdin
42020	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42021	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42022  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42023	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42024  * )   ac_file_in=$ac_file.in ;;
42025  esac
42026
42027  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42028  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42029$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42030	 X"$ac_file" : 'X\(//\)[^/]' \| \
42031	 X"$ac_file" : 'X\(//\)$' \| \
42032	 X"$ac_file" : 'X\(/\)' \| \
42033	 .     : '\(.\)' 2>/dev/null ||
42034echo X"$ac_file" |
42035    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42036  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42037  	  /^X\(\/\/\)$/{ s//\1/; q; }
42038  	  /^X\(\/\).*/{ s//\1/; q; }
42039  	  s/.*/./; q'`
42040  { if $as_mkdir_p; then
42041    mkdir -p "$ac_dir"
42042  else
42043    as_dir="$ac_dir"
42044    as_dirs=
42045    while test ! -d "$as_dir"; do
42046      as_dirs="$as_dir $as_dirs"
42047      as_dir=`(dirname "$as_dir") 2>/dev/null ||
42048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42049	 X"$as_dir" : 'X\(//\)[^/]' \| \
42050	 X"$as_dir" : 'X\(//\)$' \| \
42051	 X"$as_dir" : 'X\(/\)' \| \
42052	 .     : '\(.\)' 2>/dev/null ||
42053echo X"$as_dir" |
42054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42055  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42056  	  /^X\(\/\/\)$/{ s//\1/; q; }
42057  	  /^X\(\/\).*/{ s//\1/; q; }
42058  	  s/.*/./; q'`
42059    done
42060    test ! -n "$as_dirs" || mkdir $as_dirs
42061  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42062echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42063   { (exit 1); exit 1; }; }; }
42064
42065  ac_builddir=.
42066
42067if test "$ac_dir" != .; then
42068  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42069  # A "../" for each directory in $ac_dir_suffix.
42070  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42071else
42072  ac_dir_suffix= ac_top_builddir=
42073fi
42074
42075case $srcdir in
42076  .)  # No --srcdir option.  We are building in place.
42077    ac_srcdir=.
42078    if test -z "$ac_top_builddir"; then
42079       ac_top_srcdir=.
42080    else
42081       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42082    fi ;;
42083  [\\/]* | ?:[\\/]* )  # Absolute path.
42084    ac_srcdir=$srcdir$ac_dir_suffix;
42085    ac_top_srcdir=$srcdir ;;
42086  *) # Relative path.
42087    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42088    ac_top_srcdir=$ac_top_builddir$srcdir ;;
42089esac
42090
42091# Do not use `cd foo && pwd` to compute absolute paths, because
42092# the directories may not exist.
42093case `pwd` in
42094.) ac_abs_builddir="$ac_dir";;
42095*)
42096  case "$ac_dir" in
42097  .) ac_abs_builddir=`pwd`;;
42098  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42099  *) ac_abs_builddir=`pwd`/"$ac_dir";;
42100  esac;;
42101esac
42102case $ac_abs_builddir in
42103.) ac_abs_top_builddir=${ac_top_builddir}.;;
42104*)
42105  case ${ac_top_builddir}. in
42106  .) ac_abs_top_builddir=$ac_abs_builddir;;
42107  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42108  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42109  esac;;
42110esac
42111case $ac_abs_builddir in
42112.) ac_abs_srcdir=$ac_srcdir;;
42113*)
42114  case $ac_srcdir in
42115  .) ac_abs_srcdir=$ac_abs_builddir;;
42116  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42117  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42118  esac;;
42119esac
42120case $ac_abs_builddir in
42121.) ac_abs_top_srcdir=$ac_top_srcdir;;
42122*)
42123  case $ac_top_srcdir in
42124  .) ac_abs_top_srcdir=$ac_abs_builddir;;
42125  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42126  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42127  esac;;
42128esac
42129
42130
42131  case $INSTALL in
42132  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42133  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42134  esac
42135
42136  if test x"$ac_file" != x-; then
42137    { echo "$as_me:$LINENO: creating $ac_file" >&5
42138echo "$as_me: creating $ac_file" >&6;}
42139    rm -f "$ac_file"
42140  fi
42141  # Let's still pretend it is `configure' which instantiates (i.e., don't
42142  # use $as_me), people would be surprised to read:
42143  #    /* config.h.  Generated by config.status.  */
42144  if test x"$ac_file" = x-; then
42145    configure_input=
42146  else
42147    configure_input="$ac_file.  "
42148  fi
42149  configure_input=$configure_input"Generated from `echo $ac_file_in |
42150				     sed 's,.*/,,'` by configure."
42151
42152  # First look for the input files in the build tree, otherwise in the
42153  # src tree.
42154  ac_file_inputs=`IFS=:
42155    for f in $ac_file_in; do
42156      case $f in
42157      -) echo $tmp/stdin ;;
42158      [\\/$]*)
42159	 # Absolute (can't be DOS-style, as IFS=:)
42160	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42161echo "$as_me: error: cannot find input file: $f" >&2;}
42162   { (exit 1); exit 1; }; }
42163	 echo "$f";;
42164      *) # Relative
42165	 if test -f "$f"; then
42166	   # Build tree
42167	   echo "$f"
42168	 elif test -f "$srcdir/$f"; then
42169	   # Source tree
42170	   echo "$srcdir/$f"
42171	 else
42172	   # /dev/null tree
42173	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42174echo "$as_me: error: cannot find input file: $f" >&2;}
42175   { (exit 1); exit 1; }; }
42176	 fi;;
42177      esac
42178    done` || { (exit 1); exit 1; }
42179_ACEOF
42180cat >>$CONFIG_STATUS <<_ACEOF
42181  sed "$ac_vpsub
42182$extrasub
42183_ACEOF
42184cat >>$CONFIG_STATUS <<\_ACEOF
42185:t
42186/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42187s,@configure_input@,$configure_input,;t t
42188s,@srcdir@,$ac_srcdir,;t t
42189s,@abs_srcdir@,$ac_abs_srcdir,;t t
42190s,@top_srcdir@,$ac_top_srcdir,;t t
42191s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42192s,@builddir@,$ac_builddir,;t t
42193s,@abs_builddir@,$ac_abs_builddir,;t t
42194s,@top_builddir@,$ac_top_builddir,;t t
42195s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42196s,@INSTALL@,$ac_INSTALL,;t t
42197" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42198  rm -f $tmp/stdin
42199  if test x"$ac_file" != x-; then
42200    mv $tmp/out $ac_file
42201  else
42202    cat $tmp/out
42203    rm -f $tmp/out
42204  fi
42205
42206done
42207_ACEOF
42208cat >>$CONFIG_STATUS <<\_ACEOF
42209
42210#
42211# CONFIG_HEADER section.
42212#
42213
42214# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42215# NAME is the cpp macro being defined and VALUE is the value it is being given.
42216#
42217# ac_d sets the value in "#define NAME VALUE" lines.
42218ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
42219ac_dB='[	 ].*$,\1#\2'
42220ac_dC=' '
42221ac_dD=',;t'
42222# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42223ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
42224ac_uB='$,\1#\2define\3'
42225ac_uC=' '
42226ac_uD=',;t'
42227
42228for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42229  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42230  case $ac_file in
42231  - | *:- | *:-:* ) # input from stdin
42232	cat >$tmp/stdin
42233	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42234	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42235  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42236	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42237  * )   ac_file_in=$ac_file.in ;;
42238  esac
42239
42240  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42241echo "$as_me: creating $ac_file" >&6;}
42242
42243  # First look for the input files in the build tree, otherwise in the
42244  # src tree.
42245  ac_file_inputs=`IFS=:
42246    for f in $ac_file_in; do
42247      case $f in
42248      -) echo $tmp/stdin ;;
42249      [\\/$]*)
42250	 # Absolute (can't be DOS-style, as IFS=:)
42251	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42252echo "$as_me: error: cannot find input file: $f" >&2;}
42253   { (exit 1); exit 1; }; }
42254	 # Do quote $f, to prevent DOS paths from being IFS'd.
42255	 echo "$f";;
42256      *) # Relative
42257	 if test -f "$f"; then
42258	   # Build tree
42259	   echo "$f"
42260	 elif test -f "$srcdir/$f"; then
42261	   # Source tree
42262	   echo "$srcdir/$f"
42263	 else
42264	   # /dev/null tree
42265	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42266echo "$as_me: error: cannot find input file: $f" >&2;}
42267   { (exit 1); exit 1; }; }
42268	 fi;;
42269      esac
42270    done` || { (exit 1); exit 1; }
42271  # Remove the trailing spaces.
42272  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
42273
42274_ACEOF
42275
42276# Transform confdefs.h into two sed scripts, `conftest.defines' and
42277# `conftest.undefs', that substitutes the proper values into
42278# config.h.in to produce config.h.  The first handles `#define'
42279# templates, and the second `#undef' templates.
42280# And first: Protect against being on the right side of a sed subst in
42281# config.status.  Protect against being in an unquoted here document
42282# in config.status.
42283rm -f conftest.defines conftest.undefs
42284# Using a here document instead of a string reduces the quoting nightmare.
42285# Putting comments in sed scripts is not portable.
42286#
42287# `end' is used to avoid that the second main sed command (meant for
42288# 0-ary CPP macros) applies to n-ary macro definitions.
42289# See the Autoconf documentation for `clear'.
42290cat >confdef2sed.sed <<\_ACEOF
42291s/[\\&,]/\\&/g
42292s,[\\$`],\\&,g
42293t clear
42294: clear
42295s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42296t end
42297s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42298: end
42299_ACEOF
42300# If some macros were called several times there might be several times
42301# the same #defines, which is useless.  Nevertheless, we may not want to
42302# sort them, since we want the *last* AC-DEFINE to be honored.
42303uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42304sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42305rm -f confdef2sed.sed
42306
42307# This sed command replaces #undef with comments.  This is necessary, for
42308# example, in the case of _POSIX_SOURCE, which is predefined and required
42309# on some systems where configure will not decide to define it.
42310cat >>conftest.undefs <<\_ACEOF
42311s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42312_ACEOF
42313
42314# Break up conftest.defines because some shells have a limit on the size
42315# of here documents, and old seds have small limits too (100 cmds).
42316echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42317echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42318echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42319echo '  :' >>$CONFIG_STATUS
42320rm -f conftest.tail
42321while grep . conftest.defines >/dev/null
42322do
42323  # Write a limited-size here document to $tmp/defines.sed.
42324  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42325  # Speed up: don't consider the non `#define' lines.
42326  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
42327  # Work around the forget-to-reset-the-flag bug.
42328  echo 't clr' >>$CONFIG_STATUS
42329  echo ': clr' >>$CONFIG_STATUS
42330  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42331  echo 'CEOF
42332  sed -f $tmp/defines.sed $tmp/in >$tmp/out
42333  rm -f $tmp/in
42334  mv $tmp/out $tmp/in
42335' >>$CONFIG_STATUS
42336  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42337  rm -f conftest.defines
42338  mv conftest.tail conftest.defines
42339done
42340rm -f conftest.defines
42341echo '  fi # grep' >>$CONFIG_STATUS
42342echo >>$CONFIG_STATUS
42343
42344# Break up conftest.undefs because some shells have a limit on the size
42345# of here documents, and old seds have small limits too (100 cmds).
42346echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
42347rm -f conftest.tail
42348while grep . conftest.undefs >/dev/null
42349do
42350  # Write a limited-size here document to $tmp/undefs.sed.
42351  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42352  # Speed up: don't consider the non `#undef'
42353  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
42354  # Work around the forget-to-reset-the-flag bug.
42355  echo 't clr' >>$CONFIG_STATUS
42356  echo ': clr' >>$CONFIG_STATUS
42357  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42358  echo 'CEOF
42359  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42360  rm -f $tmp/in
42361  mv $tmp/out $tmp/in
42362' >>$CONFIG_STATUS
42363  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42364  rm -f conftest.undefs
42365  mv conftest.tail conftest.undefs
42366done
42367rm -f conftest.undefs
42368
42369cat >>$CONFIG_STATUS <<\_ACEOF
42370  # Let's still pretend it is `configure' which instantiates (i.e., don't
42371  # use $as_me), people would be surprised to read:
42372  #    /* config.h.  Generated by config.status.  */
42373  if test x"$ac_file" = x-; then
42374    echo "/* Generated by configure.  */" >$tmp/config.h
42375  else
42376    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
42377  fi
42378  cat $tmp/in >>$tmp/config.h
42379  rm -f $tmp/in
42380  if test x"$ac_file" != x-; then
42381    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42382      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42383echo "$as_me: $ac_file is unchanged" >&6;}
42384    else
42385      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42386$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42387	 X"$ac_file" : 'X\(//\)[^/]' \| \
42388	 X"$ac_file" : 'X\(//\)$' \| \
42389	 X"$ac_file" : 'X\(/\)' \| \
42390	 .     : '\(.\)' 2>/dev/null ||
42391echo X"$ac_file" |
42392    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42393  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42394  	  /^X\(\/\/\)$/{ s//\1/; q; }
42395  	  /^X\(\/\).*/{ s//\1/; q; }
42396  	  s/.*/./; q'`
42397      { if $as_mkdir_p; then
42398    mkdir -p "$ac_dir"
42399  else
42400    as_dir="$ac_dir"
42401    as_dirs=
42402    while test ! -d "$as_dir"; do
42403      as_dirs="$as_dir $as_dirs"
42404      as_dir=`(dirname "$as_dir") 2>/dev/null ||
42405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42406	 X"$as_dir" : 'X\(//\)[^/]' \| \
42407	 X"$as_dir" : 'X\(//\)$' \| \
42408	 X"$as_dir" : 'X\(/\)' \| \
42409	 .     : '\(.\)' 2>/dev/null ||
42410echo X"$as_dir" |
42411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42412  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42413  	  /^X\(\/\/\)$/{ s//\1/; q; }
42414  	  /^X\(\/\).*/{ s//\1/; q; }
42415  	  s/.*/./; q'`
42416    done
42417    test ! -n "$as_dirs" || mkdir $as_dirs
42418  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42419echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42420   { (exit 1); exit 1; }; }; }
42421
42422      rm -f $ac_file
42423      mv $tmp/config.h $ac_file
42424    fi
42425  else
42426    cat $tmp/config.h
42427    rm -f $tmp/config.h
42428  fi
42429done
42430_ACEOF
42431
42432cat >>$CONFIG_STATUS <<\_ACEOF
42433
42434{ (exit 0); exit 0; }
42435_ACEOF
42436chmod +x $CONFIG_STATUS
42437ac_clean_files=$ac_clean_files_save
42438
42439
42440# configure is writing to config.log, and then calls config.status.
42441# config.status does its own redirection, appending to config.log.
42442# Unfortunately, on DOS this fails, as config.log is still kept open
42443# by configure, so config.status won't be able to write to it; its
42444# output is simply discarded.  So we exec the FD to /dev/null,
42445# effectively closing config.log, so it can be properly (re)opened and
42446# appended to by config.status.  When coming back to configure, we
42447# need to make the FD available again.
42448if test "$no_create" != yes; then
42449  ac_cs_success=:
42450  ac_config_status_args=
42451  test "$silent" = yes &&
42452    ac_config_status_args="$ac_config_status_args --quiet"
42453  exec 5>/dev/null
42454  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42455  exec 5>>config.log
42456  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42457  # would make configure fail if this is the last instruction.
42458  $ac_cs_success || { (exit 1); exit 1; }
42459fi
42460
42461
42462#################################################
42463# Print very concise instructions on building/use
42464if test "x$enable_dmalloc" = xyes
42465then
42466	echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included.  To turn it on use" >&5
42467echo "${ECHO_T}Note: The dmalloc debug library will be included.  To turn it on use" >&6
42468	echo "$as_me:$LINENO: result:       \$ eval \\`dmalloc samba\\`." >&5
42469echo "${ECHO_T}      \$ eval \\`dmalloc samba\\`." >&6
42470fi
42471