1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="include/includes.h"
580ac_default_prefix=/usr/local/samba
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654libreplacedir
655LIBREPLACEOBJ
656build
657build_cpu
658build_vendor
659build_os
660host
661host_cpu
662host_vendor
663host_os
664target
665target_cpu
666target_vendor
667target_os
668configdir
669lockdir
670piddir
671logfilebase
672privatedir
673swatdir
674rootsbindir
675pammodulesdir
676SAMBA_CPPFLAGS
677LDSHFLAGS
678SONAMEFLAG
679SHLD
680HOST_OS
681PICFLAG
682PIE_CFLAGS
683PIE_LDFLAGS
684SHLIBEXT
685INSTALLLIBCMD_SH
686INSTALLLIBCMD_A
687UNINSTALLLIBCMD_SH
688UNINSTALLLIBCMD_A
689INSTALL_LIBMSRPC
690UNINSTALL_LIBMSRPC
691LIBMSRPC_SHARED
692LIBMSRPC
693INSTALL_LIBADDNS
694UNINSTALL_LIBADDNS
695LIBADDNS_SHARED
696LIBADDNS
697INSTALL_LIBSMBCLIENT
698UNINSTALL_LIBSMBCLIENT
699LIBSMBCLIENT_SHARED
700LIBSMBCLIENT
701INSTALL_LIBSMBSHAREMODES
702UNINSTALL_LIBSMBSHAREMODES
703LIBSMBSHAREMODES_SHARED
704LIBSMBSHAREMODES
705PRINT_LIBS
706AUTH_LIBS
707ACL_LIBS
708PASSDB_LIBS
709IDMAP_LIBS
710KRB5_LIBS
711UUID_LIBS
712LDAP_LIBS
713PAM_MODULES
714INSTALL_PAM_MODULES
715UNINSTALL_PAM_MODULES
716NSS_MODULES
717EXTRA_BIN_PROGS
718SMBMOUNT_PROGS
719CIFSMOUNT_PROGS
720INSTALL_CIFSMOUNT
721UNINSTALL_CIFSMOUNT
722EXTRA_SBIN_PROGS
723EXTRA_ALL_TARGETS
724CONFIG_LIBS
725NSCD_LIBS
726CC
727CFLAGS
728LDFLAGS
729CPPFLAGS
730ac_ct_CC
731EXEEXT
732OBJEXT
733CPP
734GREP
735EGREP
736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739libreplace_cv_immediate_structures
740DEFAULT_TEST_TARGET
741HAVE_SOCKET_WRAPPER
742SOCKET_WRAPPER_OBJS
743selftest_prefix
744smbtorture4_path
745AWK
746PERL
747AR
748BROKEN_CC
749PIDL_ARGS
750DYNEXP
751LIBOBJS
752precompiled_headers
753LIBDL
754LIBREPLACE_OBJS
755CUPS_CONFIG
756TERMLIBS
757TERMLDFLAGS
758LIBUNWIND_PTRACE
759ROFF
760SMB_FAM_LIBS
761SMBLDAP
762SMBLDAPUTIL
763LDBLDAP
764KRB5CONFIG
765WINBIND_NSS
766WINBIND_WINS_NSS
767WINBIND_NSS_LDSHFLAGS
768WINBIND_NSS_EXTRA_OBJS
769WINBIND_NSS_EXTRA_LIBS
770NSSSONAMEVERSIONSUFFIX
771SMB_KRB5_LOCATOR
772BUILD_POPT
773POPTLIBS
774FLAGS1
775BUILD_INIPARSER
776INIPARSERLIBS
777PYTHON
778PDB_STATIC
779PDB_MODULES
780RPC_STATIC
781RPC_MODULES
782IDMAP_STATIC
783IDMAP_MODULES
784NSS_INFO_STATIC
785NSS_INFO_MODULES
786CHARSET_STATIC
787CHARSET_MODULES
788AUTH_STATIC
789AUTH_MODULES
790VFS_STATIC
791VFS_MODULES
792builddir
793SMBD_LIBS
794LTLIBOBJS'
795ac_subst_files=''
796      ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802LIBS
803CPPFLAGS
804CPP'
805
806
807# Initialize some variables set by options.
808ac_init_help=
809ac_init_version=false
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857  # If the previous option needs an argument, assign it.
858  if test -n "$ac_prev"; then
859    eval $ac_prev=\$ac_option
860    ac_prev=
861    continue
862  fi
863
864  case $ac_option in
865  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866  *)	ac_optarg=yes ;;
867  esac
868
869  # Accept the important Cygnus configure options, so we can diagnose typos.
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
911      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
912   { (exit 1); exit 1; }; }
913    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
914    eval enable_$ac_feature=no ;;
915
916  -docdir | --docdir | --docdi | --doc | --do)
917    ac_prev=docdir ;;
918  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919    docdir=$ac_optarg ;;
920
921  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922    ac_prev=dvidir ;;
923  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924    dvidir=$ac_optarg ;;
925
926  -enable-* | --enable-*)
927    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
930      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
931   { (exit 1); exit 1; }; }
932    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
933    eval enable_$ac_feature=\$ac_optarg ;;
934
935  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937  | --exec | --exe | --ex)
938    ac_prev=exec_prefix ;;
939  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941  | --exec=* | --exe=* | --ex=*)
942    exec_prefix=$ac_optarg ;;
943
944  -gas | --gas | --ga | --g)
945    # Obsolete; use --with-gas.
946    with_gas=yes ;;
947
948  -help | --help | --hel | --he | -h)
949    ac_init_help=long ;;
950  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951    ac_init_help=recursive ;;
952  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953    ac_init_help=short ;;
954
955  -host | --host | --hos | --ho)
956    ac_prev=host_alias ;;
957  -host=* | --host=* | --hos=* | --ho=*)
958    host_alias=$ac_optarg ;;
959
960  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961    ac_prev=htmldir ;;
962  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963  | --ht=*)
964    htmldir=$ac_optarg ;;
965
966  -includedir | --includedir | --includedi | --included | --include \
967  | --includ | --inclu | --incl | --inc)
968    ac_prev=includedir ;;
969  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970  | --includ=* | --inclu=* | --incl=* | --inc=*)
971    includedir=$ac_optarg ;;
972
973  -infodir | --infodir | --infodi | --infod | --info | --inf)
974    ac_prev=infodir ;;
975  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976    infodir=$ac_optarg ;;
977
978  -libdir | --libdir | --libdi | --libd)
979    ac_prev=libdir ;;
980  -libdir=* | --libdir=* | --libdi=* | --libd=*)
981    libdir=$ac_optarg ;;
982
983  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984  | --libexe | --libex | --libe)
985    ac_prev=libexecdir ;;
986  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987  | --libexe=* | --libex=* | --libe=*)
988    libexecdir=$ac_optarg ;;
989
990  -localedir | --localedir | --localedi | --localed | --locale)
991    ac_prev=localedir ;;
992  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993    localedir=$ac_optarg ;;
994
995  -localstatedir | --localstatedir | --localstatedi | --localstated \
996  | --localstate | --localstat | --localsta | --localst | --locals)
997    ac_prev=localstatedir ;;
998  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000    localstatedir=$ac_optarg ;;
1001
1002  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003    ac_prev=mandir ;;
1004  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005    mandir=$ac_optarg ;;
1006
1007  -nfp | --nfp | --nf)
1008    # Obsolete; use --without-fp.
1009    with_fp=no ;;
1010
1011  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012  | --no-cr | --no-c | -n)
1013    no_create=yes ;;
1014
1015  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017    no_recursion=yes ;;
1018
1019  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021  | --oldin | --oldi | --old | --ol | --o)
1022    ac_prev=oldincludedir ;;
1023  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026    oldincludedir=$ac_optarg ;;
1027
1028  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029    ac_prev=prefix ;;
1030  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031    prefix=$ac_optarg ;;
1032
1033  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034  | --program-pre | --program-pr | --program-p)
1035    ac_prev=program_prefix ;;
1036  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038    program_prefix=$ac_optarg ;;
1039
1040  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041  | --program-suf | --program-su | --program-s)
1042    ac_prev=program_suffix ;;
1043  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045    program_suffix=$ac_optarg ;;
1046
1047  -program-transform-name | --program-transform-name \
1048  | --program-transform-nam | --program-transform-na \
1049  | --program-transform-n | --program-transform- \
1050  | --program-transform | --program-transfor \
1051  | --program-transfo | --program-transf \
1052  | --program-trans | --program-tran \
1053  | --progr-tra | --program-tr | --program-t)
1054    ac_prev=program_transform_name ;;
1055  -program-transform-name=* | --program-transform-name=* \
1056  | --program-transform-nam=* | --program-transform-na=* \
1057  | --program-transform-n=* | --program-transform-=* \
1058  | --program-transform=* | --program-transfor=* \
1059  | --program-transfo=* | --program-transf=* \
1060  | --program-trans=* | --program-tran=* \
1061  | --progr-tra=* | --program-tr=* | --program-t=*)
1062    program_transform_name=$ac_optarg ;;
1063
1064  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065    ac_prev=pdfdir ;;
1066  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067    pdfdir=$ac_optarg ;;
1068
1069  -psdir | --psdir | --psdi | --psd | --ps)
1070    ac_prev=psdir ;;
1071  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072    psdir=$ac_optarg ;;
1073
1074  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075  | -silent | --silent | --silen | --sile | --sil)
1076    silent=yes ;;
1077
1078  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079    ac_prev=sbindir ;;
1080  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081  | --sbi=* | --sb=*)
1082    sbindir=$ac_optarg ;;
1083
1084  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086  | --sharedst | --shareds | --shared | --share | --shar \
1087  | --sha | --sh)
1088    ac_prev=sharedstatedir ;;
1089  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092  | --sha=* | --sh=*)
1093    sharedstatedir=$ac_optarg ;;
1094
1095  -site | --site | --sit)
1096    ac_prev=site ;;
1097  -site=* | --site=* | --sit=*)
1098    site=$ac_optarg ;;
1099
1100  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101    ac_prev=srcdir ;;
1102  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103    srcdir=$ac_optarg ;;
1104
1105  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106  | --syscon | --sysco | --sysc | --sys | --sy)
1107    ac_prev=sysconfdir ;;
1108  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110    sysconfdir=$ac_optarg ;;
1111
1112  -target | --target | --targe | --targ | --tar | --ta | --t)
1113    ac_prev=target_alias ;;
1114  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115    target_alias=$ac_optarg ;;
1116
1117  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118    verbose=yes ;;
1119
1120  -version | --version | --versio | --versi | --vers | -V)
1121    ac_init_version=: ;;
1122
1123  -with-* | --with-*)
1124    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125    # Reject names that are not valid shell variable names.
1126    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127      { echo "$as_me: error: invalid package name: $ac_package" >&2
1128   { (exit 1); exit 1; }; }
1129    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1130    eval with_$ac_package=\$ac_optarg ;;
1131
1132  -without-* | --without-*)
1133    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1136      { echo "$as_me: error: invalid package name: $ac_package" >&2
1137   { (exit 1); exit 1; }; }
1138    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1139    eval with_$ac_package=no ;;
1140
1141  --x)
1142    # Obsolete; use --with-x.
1143    with_x=yes ;;
1144
1145  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146  | --x-incl | --x-inc | --x-in | --x-i)
1147    ac_prev=x_includes ;;
1148  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150    x_includes=$ac_optarg ;;
1151
1152  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154    ac_prev=x_libraries ;;
1155  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157    x_libraries=$ac_optarg ;;
1158
1159  -*) { echo "$as_me: error: unrecognized option: $ac_option
1160Try \`$0 --help' for more information." >&2
1161   { (exit 1); exit 1; }; }
1162    ;;
1163
1164  *=*)
1165    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1168      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1169   { (exit 1); exit 1; }; }
1170    eval $ac_envvar=\$ac_optarg
1171    export $ac_envvar ;;
1172
1173  *)
1174    # FIXME: should be removed in autoconf 3.0.
1175    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1179    ;;
1180
1181  esac
1182done
1183
1184if test -n "$ac_prev"; then
1185  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186  { echo "$as_me: error: missing argument to $ac_option" >&2
1187   { (exit 1); exit 1; }; }
1188fi
1189
1190# Be sure to have absolute directory names.
1191for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192		datadir sysconfdir sharedstatedir localstatedir includedir \
1193		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194		libdir localedir mandir
1195do
1196  eval ac_val=\$$ac_var
1197  case $ac_val in
1198    [\\/$]* | ?:[\\/]* )  continue;;
1199    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200  esac
1201  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1202   { (exit 1); exit 1; }; }
1203done
1204
1205# There might be people who depend on the old broken behavior: `$host'
1206# used to hold the argument of --host etc.
1207# FIXME: To remove some day.
1208build=$build_alias
1209host=$host_alias
1210target=$target_alias
1211
1212# FIXME: To remove some day.
1213if test "x$host_alias" != x; then
1214  if test "x$build_alias" = x; then
1215    cross_compiling=maybe
1216    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1217    If a cross compiler is detected then cross compile mode will be used." >&2
1218  elif test "x$build_alias" != "x$host_alias"; then
1219    cross_compiling=yes
1220  fi
1221fi
1222
1223ac_tool_prefix=
1224test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225
1226test "$silent" = yes && exec 6>/dev/null
1227
1228
1229ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230ac_ls_di=`ls -di .` &&
1231ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232  { echo "$as_me: error: Working directory cannot be determined" >&2
1233   { (exit 1); exit 1; }; }
1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235  { echo "$as_me: error: pwd does not report name of working directory" >&2
1236   { (exit 1); exit 1; }; }
1237
1238
1239# Find the source files, if location was not specified.
1240if test -z "$srcdir"; then
1241  ac_srcdir_defaulted=yes
1242  # Try the directory containing this script, then the parent directory.
1243  ac_confdir=`$as_dirname -- "$0" ||
1244$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245	 X"$0" : 'X\(//\)[^/]' \| \
1246	 X"$0" : 'X\(//\)$' \| \
1247	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1248echo X"$0" |
1249    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)[^/].*/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\/\)$/{
1258	    s//\1/
1259	    q
1260	  }
1261	  /^X\(\/\).*/{
1262	    s//\1/
1263	    q
1264	  }
1265	  s/.*/./; q'`
1266  srcdir=$ac_confdir
1267  if test ! -r "$srcdir/$ac_unique_file"; then
1268    srcdir=..
1269  fi
1270else
1271  ac_srcdir_defaulted=no
1272fi
1273if test ! -r "$srcdir/$ac_unique_file"; then
1274  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1276   { (exit 1); exit 1; }; }
1277fi
1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279ac_abs_confdir=`(
1280	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1281   { (exit 1); exit 1; }; }
1282	pwd)`
1283# When building in place, set srcdir=.
1284if test "$ac_abs_confdir" = "$ac_pwd"; then
1285  srcdir=.
1286fi
1287# Remove unnecessary trailing slashes from srcdir.
1288# Double slashes in file names in object file debugging info
1289# mess up M-x gdb in Emacs.
1290case $srcdir in
1291*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292esac
1293for ac_var in $ac_precious_vars; do
1294  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295  eval ac_env_${ac_var}_value=\$${ac_var}
1296  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298done
1299
1300#
1301# Report the --help message.
1302#
1303if test "$ac_init_help" = "long"; then
1304  # Omit some internal or obsolete options to make the list less imposing.
1305  # This message is too long to be a string in the A/UX 3.1 sh.
1306  cat <<_ACEOF
1307\`configure' configures this package to adapt to many kinds of systems.
1308
1309Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312VAR=VALUE.  See below for descriptions of some of the useful variables.
1313
1314Defaults for the options are specified in brackets.
1315
1316Configuration:
1317  -h, --help              display this help and exit
1318      --help=short        display options specific to this package
1319      --help=recursive    display the short help of all the included packages
1320  -V, --version           display version information and exit
1321  -q, --quiet, --silent   do not print \`checking...' messages
1322      --cache-file=FILE   cache test results in FILE [disabled]
1323  -C, --config-cache      alias for \`--cache-file=config.cache'
1324  -n, --no-create         do not create output files
1325      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1326
1327Installation directories:
1328  --prefix=PREFIX         install architecture-independent files in PREFIX
1329			  [$ac_default_prefix]
1330  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1331			  [PREFIX]
1332
1333By default, \`make install' will install all the files in
1334\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1335an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336for instance \`--prefix=\$HOME'.
1337
1338For better control, use the options below.
1339
1340Fine tuning of the installation directories:
1341  --bindir=DIR           user executables [EPREFIX/bin]
1342  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1343  --libexecdir=DIR       program executables [EPREFIX/libexec]
1344  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1345  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1346  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1347  --libdir=DIR           object code libraries [EPREFIX/lib]
1348  --includedir=DIR       C header files [PREFIX/include]
1349  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1350  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1351  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1352  --infodir=DIR          info documentation [DATAROOTDIR/info]
1353  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1354  --mandir=DIR           man documentation [DATAROOTDIR/man]
1355  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1356  --htmldir=DIR          html documentation [DOCDIR]
1357  --dvidir=DIR           dvi documentation [DOCDIR]
1358  --pdfdir=DIR           pdf documentation [DOCDIR]
1359  --psdir=DIR            ps documentation [DOCDIR]
1360_ACEOF
1361
1362  cat <<\_ACEOF
1363
1364System types:
1365  --build=BUILD     configure for building on BUILD [guessed]
1366  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1367  --target=TARGET   configure for building compilers for TARGET [HOST]
1368_ACEOF
1369fi
1370
1371if test -n "$ac_init_help"; then
1372
1373  cat <<\_ACEOF
1374
1375Optional Features:
1376  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378  --enable-static=PKGS    build static libraries default=no
1379  --enable-shared=PKGS    build shared libraries default=yes
1380  --enable-debug          Turn on compiler debugging information (default=no)
1381  --disable-largefile     omit support for large files
1382  --enable-socket-wrapper         Turn on socket wrapper library (default=no)
1383  --enable-developer      Turn on developer warnings and debugging (default=no)
1384  --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
1385  --enable-dmalloc        Enable heap debugging default=no
1386  --enable-cups           Turn on CUPS support (default=auto)
1387  --enable-iprint         Turn on iPrint support (default=yes if cups is yes)
1388  --enable-pie            Turn on pie support if available (default=yes)
1389  --enable-fam            Turn on FAM support (default=auto)
1390
1391Optional Packages:
1392  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1393  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1394  --with-fhs              Use FHS-compliant paths (default=no)
1395  --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
1396  --with-rootsbindir=DIR  Which directory to use for root sbin ($ac_default_prefix/sbin)
1397  --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
1398  --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
1399  --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
1400  --with-configdir=DIR    Where to put configuration files ($libdir)
1401  --with-logfilebase=DIR  Where to put log files ($VARDIR)
1402  --with-libdir=DIR       Where to put libdir ($libdir)
1403  --with-pammodulesdir=DIR  Which directory to use for PAM modules ($ac_default_prefix/$libdir/security)
1404  --with-mandir=DIR       Where to put man pages ($mandir)
1405  --with-cfenc=HEADERDIR  Use internal CoreFoundation encoding API
1406			  for optimization (Mac OS X/Darwin only)
1407  --with-selftest-prefix=DIR    The prefix where make test will be runned ($selftest_prefix)
1408  --with-smbtorture4-path=PATH    The path to a samba4 smbtorture for make test (none)
1409  --with-profiling-data   Include gathering source code profile information (default=no)
1410  --with-readline=DIR     Look for readline include/libs in DIR (default=auto)
1411  --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
1412  --with-afs              Include AFS clear-text auth support (default=no)
1413  --with-fake-kaserver    Include AFS fake-kaserver support (default=no)
1414  --with-vfs-afsacl       Include AFS to NT ACL mapping module (default=no)
1415  --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
1416  --with-ldap             LDAP support (default yes)
1417  --with-ads              Active Directory support (default auto)
1418  --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
1419  --with-dnsupdate        Enable DNS Updates support (default no)
1420  --with-automount        Include automount support (default=no)
1421  --with-smbmount         Include smbmount (Linux only) support (default=no)
1422  --with-cifsmount        Include mount.cifs and umount.cifs (Linux only) support (default=yes)
1423  --with-pam              Include PAM support (default=no)
1424  --with-pam_smbpass      Build PAM module for authenticating against passdb backends (default=no)
1425  --with-nisplus-home     Include NISPLUS_HOME support (default=no)
1426  --with-syslog           Include experimental SYSLOG support (default=no)
1427  --with-quotas           Include disk-quota support (default=no)
1428  --with-sys-quotas       Include lib/sysquotas.c support (default=auto)
1429  --with-utmp             Include utmp accounting (default, if supported by OS)
1430  --with-libmsrpc         Build the libmsrpc shared library (default=yes if shared libs supported)
1431  --with-libaddns         Build the libaddns shared library (default=yes if shared libs supported)
1432  --with-libsmbclient     Build the libsmbclient shared library (default=yes if shared libs supported)
1433  --with-libsmbsharemodes     Build the libsmbsharemodes shared library (default=yes if shared libs supported)
1434  --with-cluster-support  Enable cluster extensions (default=no)
1435  --with-acl-support      Include ACL support (default=no)
1436  --with-aio-support      Include asynchronous io support (default=no)
1437  --with-sendfile-support Check for sendfile support (default=yes)
1438  --with-winbind          Build winbind (default, if supported by OS)
1439  --with-included-popt    use bundled popt library, not from system
1440  --with-included-iniparser    use bundled iniparser library, not from system
1441  --with-python=PYTHONNAME  build Python libraries
1442  --with-static-modules=MODULES  Comma-separated list of names of modules to statically link in
1443  --with-shared-modules=MODULES  Comma-separated list of names of modules to build shared
1444
1445Some influential environment variables:
1446  CC          C compiler command
1447  CFLAGS      C compiler flags
1448  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449              nonstandard directory <lib dir>
1450  LIBS        libraries to pass to the linker, e.g. -l<library>
1451  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452              you have headers in a nonstandard directory <include dir>
1453  CPP         C preprocessor
1454
1455Use these variables to override the choices made by `configure' or to help
1456it to find libraries and programs with nonstandard names/locations.
1457
1458_ACEOF
1459ac_status=$?
1460fi
1461
1462if test "$ac_init_help" = "recursive"; then
1463  # If there are subdirs, report their specific --help.
1464  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465    test -d "$ac_dir" || continue
1466    ac_builddir=.
1467
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1472  # A ".." for each directory in $ac_dir_suffix.
1473  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1474  case $ac_top_builddir_sub in
1475  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477  esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
1483
1484case $srcdir in
1485  .)  # We are building in place.
1486    ac_srcdir=.
1487    ac_top_srcdir=$ac_top_builddir_sub
1488    ac_abs_top_srcdir=$ac_pwd ;;
1489  [\\/]* | ?:[\\/]* )  # Absolute name.
1490    ac_srcdir=$srcdir$ac_dir_suffix;
1491    ac_top_srcdir=$srcdir
1492    ac_abs_top_srcdir=$srcdir ;;
1493  *) # Relative name.
1494    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495    ac_top_srcdir=$ac_top_build_prefix$srcdir
1496    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497esac
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500    cd "$ac_dir" || { ac_status=$?; continue; }
1501    # Check for guested configure.
1502    if test -f "$ac_srcdir/configure.gnu"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505    elif test -f "$ac_srcdir/configure"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure" --help=recursive
1508    else
1509      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510    fi || ac_status=$?
1511    cd "$ac_pwd" || { ac_status=$?; break; }
1512  done
1513fi
1514
1515test -n "$ac_init_help" && exit $ac_status
1516if $ac_init_version; then
1517  cat <<\_ACEOF
1518configure
1519generated by GNU Autoconf 2.61
1520
1521Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15222002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526  exit
1527fi
1528cat >config.log <<_ACEOF
1529This file contains any messages produced by compilers while
1530running configure, to aid debugging if configure makes a mistake.
1531
1532It was created by $as_me, which was
1533generated by GNU Autoconf 2.61.  Invocation command line was
1534
1535  $ $0 $@
1536
1537_ACEOF
1538exec 5>>config.log
1539{
1540cat <<_ASUNAME
1541## --------- ##
1542## Platform. ##
1543## --------- ##
1544
1545hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1546uname -m = `(uname -m) 2>/dev/null || echo unknown`
1547uname -r = `(uname -r) 2>/dev/null || echo unknown`
1548uname -s = `(uname -s) 2>/dev/null || echo unknown`
1549uname -v = `(uname -v) 2>/dev/null || echo unknown`
1550
1551/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1552/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1553
1554/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1555/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1556/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1557/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1558/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1559/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1560/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1561
1562_ASUNAME
1563
1564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567  IFS=$as_save_IFS
1568  test -z "$as_dir" && as_dir=.
1569  echo "PATH: $as_dir"
1570done
1571IFS=$as_save_IFS
1572
1573} >&5
1574
1575cat >&5 <<_ACEOF
1576
1577
1578## ----------- ##
1579## Core tests. ##
1580## ----------- ##
1581
1582_ACEOF
1583
1584
1585# Keep a trace of the command line.
1586# Strip out --no-create and --no-recursion so they do not pile up.
1587# Strip out --silent because we don't want to record it for future runs.
1588# Also quote any args containing shell meta-characters.
1589# Make two passes to allow for proper duplicate-argument suppression.
1590ac_configure_args=
1591ac_configure_args0=
1592ac_configure_args1=
1593ac_must_keep_next=false
1594for ac_pass in 1 2
1595do
1596  for ac_arg
1597  do
1598    case $ac_arg in
1599    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1600    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1601    | -silent | --silent | --silen | --sile | --sil)
1602      continue ;;
1603    *\'*)
1604      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1605    esac
1606    case $ac_pass in
1607    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1608    2)
1609      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1610      if test $ac_must_keep_next = true; then
1611	ac_must_keep_next=false # Got value, back to normal.
1612      else
1613	case $ac_arg in
1614	  *=* | --config-cache | -C | -disable-* | --disable-* \
1615	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1616	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1617	  | -with-* | --with-* | -without-* | --without-* | --x)
1618	    case "$ac_configure_args0 " in
1619	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620	    esac
1621	    ;;
1622	  -* ) ac_must_keep_next=true ;;
1623	esac
1624      fi
1625      ac_configure_args="$ac_configure_args '$ac_arg'"
1626      ;;
1627    esac
1628  done
1629done
1630$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1631$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1632
1633# When interrupted or exit'd, cleanup temporary files, and complete
1634# config.log.  We remove comments because anyway the quotes in there
1635# would cause problems or look ugly.
1636# WARNING: Use '\'' to represent an apostrophe within the trap.
1637# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1638trap 'exit_status=$?
1639  # Save into config.log some information that might help in debugging.
1640  {
1641    echo
1642
1643    cat <<\_ASBOX
1644## ---------------- ##
1645## Cache variables. ##
1646## ---------------- ##
1647_ASBOX
1648    echo
1649    # The following way of writing the cache mishandles newlines in values,
1650(
1651  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1652    eval ac_val=\$$ac_var
1653    case $ac_val in #(
1654    *${as_nl}*)
1655      case $ac_var in #(
1656      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1657echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658      esac
1659      case $ac_var in #(
1660      _ | IFS | as_nl) ;; #(
1661      *) $as_unset $ac_var ;;
1662      esac ;;
1663    esac
1664  done
1665  (set) 2>&1 |
1666    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1667    *${as_nl}ac_space=\ *)
1668      sed -n \
1669	"s/'\''/'\''\\\\'\'''\''/g;
1670	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671      ;; #(
1672    *)
1673      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1674      ;;
1675    esac |
1676    sort
1677)
1678    echo
1679
1680    cat <<\_ASBOX
1681## ----------------- ##
1682## Output variables. ##
1683## ----------------- ##
1684_ASBOX
1685    echo
1686    for ac_var in $ac_subst_vars
1687    do
1688      eval ac_val=\$$ac_var
1689      case $ac_val in
1690      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1691      esac
1692      echo "$ac_var='\''$ac_val'\''"
1693    done | sort
1694    echo
1695
1696    if test -n "$ac_subst_files"; then
1697      cat <<\_ASBOX
1698## ------------------- ##
1699## File substitutions. ##
1700## ------------------- ##
1701_ASBOX
1702      echo
1703      for ac_var in $ac_subst_files
1704      do
1705	eval ac_val=\$$ac_var
1706	case $ac_val in
1707	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708	esac
1709	echo "$ac_var='\''$ac_val'\''"
1710      done | sort
1711      echo
1712    fi
1713
1714    if test -s confdefs.h; then
1715      cat <<\_ASBOX
1716## ----------- ##
1717## confdefs.h. ##
1718## ----------- ##
1719_ASBOX
1720      echo
1721      cat confdefs.h
1722      echo
1723    fi
1724    test "$ac_signal" != 0 &&
1725      echo "$as_me: caught signal $ac_signal"
1726    echo "$as_me: exit $exit_status"
1727  } >&5
1728  rm -f core *.core core.conftest.* &&
1729    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730    exit $exit_status
1731' 0
1732for ac_signal in 1 2 13 15; do
1733  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1734done
1735ac_signal=0
1736
1737# confdefs.h avoids OS command line length limits that DEFS can exceed.
1738rm -f -r conftest* confdefs.h
1739
1740# Predefined preprocessor variables.
1741
1742cat >>confdefs.h <<_ACEOF
1743#define PACKAGE_NAME "$PACKAGE_NAME"
1744_ACEOF
1745
1746
1747cat >>confdefs.h <<_ACEOF
1748#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1749_ACEOF
1750
1751
1752cat >>confdefs.h <<_ACEOF
1753#define PACKAGE_VERSION "$PACKAGE_VERSION"
1754_ACEOF
1755
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_STRING "$PACKAGE_STRING"
1759_ACEOF
1760
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1764_ACEOF
1765
1766
1767# Let the site file select an alternate cache file if it wants to.
1768# Prefer explicitly selected file to automatically selected ones.
1769if test -n "$CONFIG_SITE"; then
1770  set x "$CONFIG_SITE"
1771elif test "x$prefix" != xNONE; then
1772  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1773else
1774  set x "$ac_default_prefix/share/config.site" \
1775	"$ac_default_prefix/etc/config.site"
1776fi
1777shift
1778for ac_site_file
1779do
1780  if test -r "$ac_site_file"; then
1781    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1782echo "$as_me: loading site script $ac_site_file" >&6;}
1783    sed 's/^/| /' "$ac_site_file" >&5
1784    . "$ac_site_file"
1785  fi
1786done
1787
1788if test -r "$cache_file"; then
1789  # Some versions of bash will fail to source /dev/null (special
1790  # files actually), so we avoid doing that.
1791  if test -f "$cache_file"; then
1792    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1793echo "$as_me: loading cache $cache_file" >&6;}
1794    case $cache_file in
1795      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1796      *)                      . "./$cache_file";;
1797    esac
1798  fi
1799else
1800  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1801echo "$as_me: creating cache $cache_file" >&6;}
1802  >$cache_file
1803fi
1804
1805# Check that the precious variables saved in the cache have kept the same
1806# value.
1807ac_cache_corrupted=false
1808for ac_var in $ac_precious_vars; do
1809  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1810  eval ac_new_set=\$ac_env_${ac_var}_set
1811  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1812  eval ac_new_val=\$ac_env_${ac_var}_value
1813  case $ac_old_set,$ac_new_set in
1814    set,)
1815      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1816echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1817      ac_cache_corrupted=: ;;
1818    ,set)
1819      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1820echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1821      ac_cache_corrupted=: ;;
1822    ,);;
1823    *)
1824      if test "x$ac_old_val" != "x$ac_new_val"; then
1825	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1826echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1827	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1828echo "$as_me:   former value:  $ac_old_val" >&2;}
1829	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1830echo "$as_me:   current value: $ac_new_val" >&2;}
1831	ac_cache_corrupted=:
1832      fi;;
1833  esac
1834  # Pass precious variables to config.status.
1835  if test "$ac_new_set" = set; then
1836    case $ac_new_val in
1837    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1838    *) ac_arg=$ac_var=$ac_new_val ;;
1839    esac
1840    case " $ac_configure_args " in
1841      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1842      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1843    esac
1844  fi
1845done
1846if $ac_cache_corrupted; then
1847  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1848echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1849  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1850echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1851   { (exit 1); exit 1; }; }
1852fi
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870ac_ext=c
1871ac_cpp='$CPP $CPPFLAGS'
1872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875
1876
1877ac_config_headers="$ac_config_headers include/config.h"
1878
1879
1880cat >>confdefs.h <<\_ACEOF
1881#define CONFIG_H_IS_FROM_SAMBA 1
1882_ACEOF
1883
1884
1885SMB_VERSION_STRING=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
1886echo "SAMBA VERSION: ${SMB_VERSION_STRING}"
1887
1888SAMBA_VERSION_SVN_REVISION=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_SVN_REVISION' | cut -d ' ' -f3-`
1889if test -n "${SAMBA_VERSION_SVN_REVISION}";then
1890	echo "BUILD REVISION: ${SAMBA_VERSION_SVN_REVISION}"
1891fi
1892
1893ac_aux_dir=
1894for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1895  if test -f "$ac_dir/install-sh"; then
1896    ac_aux_dir=$ac_dir
1897    ac_install_sh="$ac_aux_dir/install-sh -c"
1898    break
1899  elif test -f "$ac_dir/install.sh"; then
1900    ac_aux_dir=$ac_dir
1901    ac_install_sh="$ac_aux_dir/install.sh -c"
1902    break
1903  elif test -f "$ac_dir/shtool"; then
1904    ac_aux_dir=$ac_dir
1905    ac_install_sh="$ac_aux_dir/shtool install -c"
1906    break
1907  fi
1908done
1909if test -z "$ac_aux_dir"; then
1910  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1911echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1912   { (exit 1); exit 1; }; }
1913fi
1914
1915# These three variables are undocumented and unsupported,
1916# and are intended to be withdrawn in a future Autoconf release.
1917# They can cause serious problems if a builder's source tree is in a directory
1918# whose full name contains unusual characters.
1919ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1920ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1921ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1922
1923
1924
1925echo "LIBREPLACE_LOCATION_CHECKS: START"
1926
1927libreplacedir=""
1928libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace"
1929for d in $libreplacepaths; do
1930	if test -f "$d/replace.c"; then
1931		libreplacedir="$d"
1932
1933		break;
1934	fi
1935done
1936if test x"$libreplacedir" = "x"; then
1937	{ { echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
1938echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
1939   { (exit 1); exit 1; }; }
1940fi
1941LIBREPLACEOBJ="replace.o"
1942
1943
1944# Make sure we can run config.sub.
1945$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1946  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1947echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1948   { (exit 1); exit 1; }; }
1949
1950{ echo "$as_me:$LINENO: checking build system type" >&5
1951echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1952if test "${ac_cv_build+set}" = set; then
1953  echo $ECHO_N "(cached) $ECHO_C" >&6
1954else
1955  ac_build_alias=$build_alias
1956test "x$ac_build_alias" = x &&
1957  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1958test "x$ac_build_alias" = x &&
1959  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1960echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1961   { (exit 1); exit 1; }; }
1962ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1963  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1964echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1965   { (exit 1); exit 1; }; }
1966
1967fi
1968{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1969echo "${ECHO_T}$ac_cv_build" >&6; }
1970case $ac_cv_build in
1971*-*-*) ;;
1972*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1973echo "$as_me: error: invalid value of canonical build" >&2;}
1974   { (exit 1); exit 1; }; };;
1975esac
1976build=$ac_cv_build
1977ac_save_IFS=$IFS; IFS='-'
1978set x $ac_cv_build
1979shift
1980build_cpu=$1
1981build_vendor=$2
1982shift; shift
1983# Remember, the first character of IFS is used to create $*,
1984# except with old shells:
1985build_os=$*
1986IFS=$ac_save_IFS
1987case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1988
1989
1990{ echo "$as_me:$LINENO: checking host system type" >&5
1991echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1992if test "${ac_cv_host+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test "x$host_alias" = x; then
1996  ac_cv_host=$ac_cv_build
1997else
1998  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1999    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2000echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2001   { (exit 1); exit 1; }; }
2002fi
2003
2004fi
2005{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2006echo "${ECHO_T}$ac_cv_host" >&6; }
2007case $ac_cv_host in
2008*-*-*) ;;
2009*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2010echo "$as_me: error: invalid value of canonical host" >&2;}
2011   { (exit 1); exit 1; }; };;
2012esac
2013host=$ac_cv_host
2014ac_save_IFS=$IFS; IFS='-'
2015set x $ac_cv_host
2016shift
2017host_cpu=$1
2018host_vendor=$2
2019shift; shift
2020# Remember, the first character of IFS is used to create $*,
2021# except with old shells:
2022host_os=$*
2023IFS=$ac_save_IFS
2024case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2025
2026
2027{ echo "$as_me:$LINENO: checking target system type" >&5
2028echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2029if test "${ac_cv_target+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  if test "x$target_alias" = x; then
2033  ac_cv_target=$ac_cv_host
2034else
2035  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2036    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2037echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2038   { (exit 1); exit 1; }; }
2039fi
2040
2041fi
2042{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2043echo "${ECHO_T}$ac_cv_target" >&6; }
2044case $ac_cv_target in
2045*-*-*) ;;
2046*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2047echo "$as_me: error: invalid value of canonical target" >&2;}
2048   { (exit 1); exit 1; }; };;
2049esac
2050target=$ac_cv_target
2051ac_save_IFS=$IFS; IFS='-'
2052set x $ac_cv_target
2053shift
2054target_cpu=$1
2055target_vendor=$2
2056shift; shift
2057# Remember, the first character of IFS is used to create $*,
2058# except with old shells:
2059target_os=$*
2060IFS=$ac_save_IFS
2061case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2062
2063
2064# The aliases save the names the user supplied, while $host etc.
2065# will get canonicalized.
2066test -n "$target_alias" &&
2067  test "$program_prefix$program_suffix$program_transform_name" = \
2068    NONENONEs,x,x, &&
2069  program_prefix=${target_alias}-
2070
2071echo "LIBREPLACE_LOCATION_CHECKS: END"
2072
2073
2074# Check whether --enable-static was given.
2075if test "${enable_static+set}" = set; then
2076  enableval=$enable_static; p=${PACKAGE-default}
2077case $enableval in
2078yes) enable_static=yes ;;
2079no) enable_static=no ;;
2080*)
2081  enable_static=no
2082  # Look at the argument we got.  We use all the common list separators.
2083  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2084  for pkg in $enableval; do
2085    if test "X$pkg" = "X$p"; then
2086      enable_static=yes
2087    fi
2088  done
2089  IFS="$ac_save_ifs"
2090  ;;
2091esac
2092else
2093  enable_static=no
2094fi
2095
2096# Check whether --enable-shared was given.
2097if test "${enable_shared+set}" = set; then
2098  enableval=$enable_shared; p=${PACKAGE-default}
2099case $enableval in
2100yes) enable_shared=yes ;;
2101no) enable_shared=no ;;
2102*)
2103  enable_shared=no
2104  # Look at the argument we got.  We use all the common list separators.
2105  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2106  for pkg in $enableval; do
2107    if test "X$pkg" = "X$p"; then
2108      enable_shared=yes
2109    fi
2110
2111  done
2112  IFS="$ac_save_ifs"
2113  ;;
2114esac
2115else
2116  enable_shared=yes
2117fi
2118
2119
2120#################################################
2121# Directory handling stuff to support both the
2122# legacy SAMBA directories and FHS compliant
2123# ones...
2124
2125
2126rootsbindir="\${SBINDIR}"
2127lockdir="\${VARDIR}/locks"
2128piddir="\${VARDIR}/locks"
2129test "${mandir}" || mandir="\${prefix}/man"
2130logfilebase="\${VARDIR}"
2131privatedir="\${prefix}/private"
2132test "${libdir}" || libdir="\${prefix}/lib"
2133pammodulesdir="\${LIBDIR}/security"
2134configdir="\${LIBDIR}"
2135swatdir="\${prefix}/swat"
2136
2137
2138# Check whether --with-fhs was given.
2139if test "${with_fhs+set}" = set; then
2140  withval=$with_fhs;  case "$withval" in
2141  yes)
2142    lockdir="\${VARDIR}/lib/samba"
2143    piddir="\${VARDIR}/run"
2144    mandir="\${prefix}/share/man"
2145    logfilebase="\${VARDIR}/log/samba"
2146    privatedir="\${CONFIGDIR}/private"
2147    libdir="\${prefix}/lib/samba"
2148    configdir="\${sysconfdir}/samba"
2149    swatdir="\${DATADIR}/samba/swat"
2150    ;;
2151  esac
2152fi
2153
2154
2155#################################################
2156# set private directory location
2157
2158# Check whether --with-privatedir was given.
2159if test "${with_privatedir+set}" = set; then
2160  withval=$with_privatedir;  case "$withval" in
2161  yes|no)
2162  #
2163  # Just in case anybody calls it without argument
2164  #
2165    { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
2166echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
2167  ;;
2168  * )
2169    privatedir="$withval"
2170    ;;
2171  esac
2172fi
2173
2174
2175#################################################
2176# set root sbin directory location
2177
2178# Check whether --with-rootsbindir was given.
2179if test "${with_rootsbindir+set}" = set; then
2180  withval=$with_rootsbindir;  case "$withval" in
2181  yes|no)
2182  #
2183  # Just in case anybody calls it without argument
2184  #
2185    { echo "$as_me:$LINENO: WARNING: --with-rootsbindir called without argument - will use default" >&5
2186echo "$as_me: WARNING: --with-rootsbindir called without argument - will use default" >&2;}
2187  ;;
2188  * )
2189    rootsbindir="$withval"
2190    ;;
2191  esac
2192fi
2193
2194
2195#################################################
2196# set lock directory location
2197
2198# Check whether --with-lockdir was given.
2199if test "${with_lockdir+set}" = set; then
2200  withval=$with_lockdir;  case "$withval" in
2201  yes|no)
2202  #
2203  # Just in case anybody calls it without argument
2204  #
2205    { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
2206echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
2207  ;;
2208  * )
2209    lockdir="$withval"
2210    ;;
2211  esac
2212fi
2213
2214
2215#################################################
2216# set pid directory location
2217
2218# Check whether --with-piddir was given.
2219if test "${with_piddir+set}" = set; then
2220  withval=$with_piddir;  case "$withval" in
2221  yes|no)
2222  #
2223  # Just in case anybody calls it without argument
2224  #
2225    { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
2226echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
2227  ;;
2228  * )
2229    piddir="$withval"
2230    ;;
2231  esac
2232fi
2233
2234
2235#################################################
2236# set SWAT directory location
2237
2238# Check whether --with-swatdir was given.
2239if test "${with_swatdir+set}" = set; then
2240  withval=$with_swatdir;  case "$withval" in
2241  yes|no)
2242  #
2243  # Just in case anybody does it
2244  #
2245    { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
2246echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
2247  ;;
2248  * )
2249    swatdir="$withval"
2250    ;;
2251  esac
2252fi
2253
2254
2255#################################################
2256# set configuration directory location
2257
2258# Check whether --with-configdir was given.
2259if test "${with_configdir+set}" = set; then
2260  withval=$with_configdir;  case "$withval" in
2261  yes|no)
2262  #
2263  # Just in case anybody does it
2264  #
2265    { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
2266echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
2267  ;;
2268  * )
2269    configdir="$withval"
2270    ;;
2271  esac
2272fi
2273
2274
2275#################################################
2276# set log directory location
2277
2278# Check whether --with-logfilebase was given.
2279if test "${with_logfilebase+set}" = set; then
2280  withval=$with_logfilebase;  case "$withval" in
2281  yes|no)
2282  #
2283  # Just in case anybody does it
2284  #
2285    { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
2286echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
2287  ;;
2288  * )
2289    logfilebase="$withval"
2290    ;;
2291  esac
2292fi
2293
2294
2295#################################################
2296# set lib directory location
2297
2298# Check whether --with-libdir was given.
2299if test "${with_libdir+set}" = set; then
2300  withval=$with_libdir;  case "$withval" in
2301  yes|no)
2302  #
2303  # Just in case anybody does it
2304  #
2305    { echo "$as_me:$LINENO: WARNING: --with-libdir without argument - will use default" >&5
2306echo "$as_me: WARNING: --with-libdir without argument - will use default" >&2;}
2307  ;;
2308  * )
2309    libdir="$withval"
2310    ;;
2311  esac
2312fi
2313
2314
2315#################################################
2316# set PAM modules directory location
2317
2318# Check whether --with-pammodulesdir was given.
2319if test "${with_pammodulesdir+set}" = set; then
2320  withval=$with_pammodulesdir;  case "$withval" in
2321  yes|no)
2322  #
2323  # Just in case anybody calls it without argument
2324  #
2325    { echo "$as_me:$LINENO: WARNING: --with-pammodulesdir called without argument - will use default" >&5
2326echo "$as_me: WARNING: --with-pammodulesdir called without argument - will use default" >&2;}
2327  ;;
2328  * )
2329    pammodulesdir="$withval"
2330    ;;
2331  esac
2332fi
2333
2334
2335#################################################
2336# set man directory location
2337
2338# Check whether --with-mandir was given.
2339if test "${with_mandir+set}" = set; then
2340  withval=$with_mandir;  case "$withval" in
2341  yes|no)
2342  #
2343  # Just in case anybody does it
2344  #
2345    { echo "$as_me:$LINENO: WARNING: --with-mandir without argument - will use default" >&5
2346echo "$as_me: WARNING: --with-mandir without argument - will use default" >&2;}
2347  ;;
2348  * )
2349    mandir="$withval"
2350    ;;
2351  esac
2352fi
2353
2354
2355
2356# Check whether --with-cfenc was given.
2357if test "${with_cfenc+set}" = set; then
2358  withval=$with_cfenc;
2359# May be in source $withval/CoreFoundation/StringEncodings.subproj.
2360# Should have been in framework $withval/CoreFoundation.framework/Headers.
2361for d in \
2362    $withval/CoreFoundation/StringEncodings.subproj \
2363    $withval/StringEncodings.subproj \
2364    $withval/CoreFoundation.framework/Headers \
2365    $withval/Headers \
2366    $withval
2367do
2368    if test -r $d/CFStringEncodingConverter.h; then
2369        ln -sfh $d include/CoreFoundation
2370    fi
2371done
2372
2373fi
2374
2375
2376SAMBA_CPPFLAGS="-Iinclude -I${srcdir-.}/include  -I. -I${srcdir-.}"
2377SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/lib/replace"
2378SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/lib/talloc"
2379SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/tdb/include"
2380SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/libaddns"
2381SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/librpc"
2382
2383SAMBA_CONFIGURE_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/popt"
2384
2385## cleanup the $(srcdir) in the Makefile if we are outside of the tree
2386if test "x${srcdir-.}" != "x."; then
2387	SAMBA_CPPFLAGS=`echo ${SAMBA_CPPFLAGS} | sed -e "s;${srcdir};\$\(srcdir\);g"`
2388fi
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453## check for --enable-debug first before checking CFLAGS before
2454## so that we don't mix -O and -g
2455# Check whether --enable-debug was given.
2456if test "${enable_debug+set}" = set; then
2457  enableval=$enable_debug; if eval "test x$enable_debug = xyes"; then
2458	CFLAGS="${CFLAGS} -g"
2459    fi
2460fi
2461
2462
2463# compile with optimization and without debugging by default, but
2464# allow people to set their own preference.
2465# do this here since AC_CACHE_CHECK apparently sets the CFLAGS to "-g -O2"
2466# if it has no value.  This prevent *very* large debug binaries from occurring
2467# by default.
2468if test "x$CFLAGS" = x; then
2469  CFLAGS="-O"
2470fi
2471
2472CFLAGS="${CFLAGS} -D_SAMBA_BUILD_=3"
2473
2474
2475
2476echo "LIBREPLACE_CC_CHECKS: START"
2477
2478
2479ac_cv_prog_cc_Ae=no
2480
2481savedCFLAGS=$CFLAGS
2482ac_ext=c
2483ac_cpp='$CPP $CPPFLAGS'
2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487if test -n "$ac_tool_prefix"; then
2488  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489set dummy ${ac_tool_prefix}gcc; ac_word=$2
2490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492if test "${ac_cv_prog_CC+set}" = set; then
2493  echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495  if test -n "$CC"; then
2496  ac_cv_prog_CC="$CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501  IFS=$as_save_IFS
2502  test -z "$as_dir" && as_dir=.
2503  for ac_exec_ext in '' $ac_executable_extensions; do
2504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507    break 2
2508  fi
2509done
2510done
2511IFS=$as_save_IFS
2512
2513fi
2514fi
2515CC=$ac_cv_prog_CC
2516if test -n "$CC"; then
2517  { echo "$as_me:$LINENO: result: $CC" >&5
2518echo "${ECHO_T}$CC" >&6; }
2519else
2520  { echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6; }
2522fi
2523
2524
2525fi
2526if test -z "$ac_cv_prog_CC"; then
2527  ac_ct_CC=$CC
2528  # Extract the first word of "gcc", so it can be a program name with args.
2529set dummy gcc; ac_word=$2
2530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2533  echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535  if test -n "$ac_ct_CC"; then
2536  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541  IFS=$as_save_IFS
2542  test -z "$as_dir" && as_dir=.
2543  for ac_exec_ext in '' $ac_executable_extensions; do
2544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545    ac_cv_prog_ac_ct_CC="gcc"
2546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547    break 2
2548  fi
2549done
2550done
2551IFS=$as_save_IFS
2552
2553fi
2554fi
2555ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556if test -n "$ac_ct_CC"; then
2557  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2558echo "${ECHO_T}$ac_ct_CC" >&6; }
2559else
2560  { echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6; }
2562fi
2563
2564  if test "x$ac_ct_CC" = x; then
2565    CC=""
2566  else
2567    case $cross_compiling:$ac_tool_warned in
2568yes:)
2569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2570whose name does not start with the host triplet.  If you think this
2571configuration is useful to you, please write to autoconf@gnu.org." >&5
2572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2573whose name does not start with the host triplet.  If you think this
2574configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2575ac_tool_warned=yes ;;
2576esac
2577    CC=$ac_ct_CC
2578  fi
2579else
2580  CC="$ac_cv_prog_CC"
2581fi
2582
2583if test -z "$CC"; then
2584          if test -n "$ac_tool_prefix"; then
2585    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2586set dummy ${ac_tool_prefix}cc; ac_word=$2
2587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589if test "${ac_cv_prog_CC+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  if test -n "$CC"; then
2593  ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600  for ac_exec_ext in '' $ac_executable_extensions; do
2601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602    ac_cv_prog_CC="${ac_tool_prefix}cc"
2603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604    break 2
2605  fi
2606done
2607done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
2614  { echo "$as_me:$LINENO: result: $CC" >&5
2615echo "${ECHO_T}$CC" >&6; }
2616else
2617  { echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6; }
2619fi
2620
2621
2622  fi
2623fi
2624if test -z "$CC"; then
2625  # Extract the first word of "cc", so it can be a program name with args.
2626set dummy cc; ac_word=$2
2627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629if test "${ac_cv_prog_CC+set}" = set; then
2630  echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632  if test -n "$CC"; then
2633  ac_cv_prog_CC="$CC" # Let the user override the test.
2634else
2635  ac_prog_rejected=no
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639  IFS=$as_save_IFS
2640  test -z "$as_dir" && as_dir=.
2641  for ac_exec_ext in '' $ac_executable_extensions; do
2642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2644       ac_prog_rejected=yes
2645       continue
2646     fi
2647    ac_cv_prog_CC="cc"
2648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652done
2653IFS=$as_save_IFS
2654
2655if test $ac_prog_rejected = yes; then
2656  # We found a bogon in the path, so make sure we never use it.
2657  set dummy $ac_cv_prog_CC
2658  shift
2659  if test $# != 0; then
2660    # We chose a different compiler from the bogus one.
2661    # However, it has the same basename, so the bogon will be chosen
2662    # first if we set CC to just the basename; use the full file name.
2663    shift
2664    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2665  fi
2666fi
2667fi
2668fi
2669CC=$ac_cv_prog_CC
2670if test -n "$CC"; then
2671  { echo "$as_me:$LINENO: result: $CC" >&5
2672echo "${ECHO_T}$CC" >&6; }
2673else
2674  { echo "$as_me:$LINENO: result: no" >&5
2675echo "${ECHO_T}no" >&6; }
2676fi
2677
2678
2679fi
2680if test -z "$CC"; then
2681  if test -n "$ac_tool_prefix"; then
2682  for ac_prog in cl.exe
2683  do
2684    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688if test "${ac_cv_prog_CC+set}" = set; then
2689  echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691  if test -n "$CC"; then
2692  ac_cv_prog_CC="$CC" # Let the user override the test.
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697  IFS=$as_save_IFS
2698  test -z "$as_dir" && as_dir=.
2699  for ac_exec_ext in '' $ac_executable_extensions; do
2700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703    break 2
2704  fi
2705done
2706done
2707IFS=$as_save_IFS
2708
2709fi
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
2713  { echo "$as_me:$LINENO: result: $CC" >&5
2714echo "${ECHO_T}$CC" >&6; }
2715else
2716  { echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6; }
2718fi
2719
2720
2721    test -n "$CC" && break
2722  done
2723fi
2724if test -z "$CC"; then
2725  ac_ct_CC=$CC
2726  for ac_prog in cl.exe
2727do
2728  # Extract the first word of "$ac_prog", so it can be a program name with args.
2729set dummy $ac_prog; ac_word=$2
2730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733  echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735  if test -n "$ac_ct_CC"; then
2736  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741  IFS=$as_save_IFS
2742  test -z "$as_dir" && as_dir=.
2743  for ac_exec_ext in '' $ac_executable_extensions; do
2744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745    ac_cv_prog_ac_ct_CC="$ac_prog"
2746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747    break 2
2748  fi
2749done
2750done
2751IFS=$as_save_IFS
2752
2753fi
2754fi
2755ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756if test -n "$ac_ct_CC"; then
2757  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758echo "${ECHO_T}$ac_ct_CC" >&6; }
2759else
2760  { echo "$as_me:$LINENO: result: no" >&5
2761echo "${ECHO_T}no" >&6; }
2762fi
2763
2764
2765  test -n "$ac_ct_CC" && break
2766done
2767
2768  if test "x$ac_ct_CC" = x; then
2769    CC=""
2770  else
2771    case $cross_compiling:$ac_tool_warned in
2772yes:)
2773{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2774whose name does not start with the host triplet.  If you think this
2775configuration is useful to you, please write to autoconf@gnu.org." >&5
2776echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2777whose name does not start with the host triplet.  If you think this
2778configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2779ac_tool_warned=yes ;;
2780esac
2781    CC=$ac_ct_CC
2782  fi
2783fi
2784
2785fi
2786
2787
2788test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2789See \`config.log' for more details." >&5
2790echo "$as_me: error: no acceptable C compiler found in \$PATH
2791See \`config.log' for more details." >&2;}
2792   { (exit 1); exit 1; }; }
2793
2794# Provide some information about the compiler.
2795echo "$as_me:$LINENO: checking for C compiler version" >&5
2796ac_compiler=`set X $ac_compile; echo $2`
2797{ (ac_try="$ac_compiler --version >&5"
2798case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803  (eval "$ac_compiler --version >&5") 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }
2807{ (ac_try="$ac_compiler -v >&5"
2808case "(($ac_try" in
2809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810  *) ac_try_echo=$ac_try;;
2811esac
2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813  (eval "$ac_compiler -v >&5") 2>&5
2814  ac_status=$?
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); }
2817{ (ac_try="$ac_compiler -V >&5"
2818case "(($ac_try" in
2819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820  *) ac_try_echo=$ac_try;;
2821esac
2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823  (eval "$ac_compiler -V >&5") 2>&5
2824  ac_status=$?
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); }
2827
2828cat >conftest.$ac_ext <<_ACEOF
2829/* confdefs.h.  */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h.  */
2834
2835int
2836main ()
2837{
2838
2839  ;
2840  return 0;
2841}
2842_ACEOF
2843ac_clean_files_save=$ac_clean_files
2844ac_clean_files="$ac_clean_files a.out a.exe b.out"
2845# Try to create an executable without -o first, disregard a.out.
2846# It will help us diagnose broken compilers, and finding out an intuition
2847# of exeext.
2848{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2849echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2850ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2851#
2852# List of possible output files, starting from the most likely.
2853# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2854# only as a last resort.  b.out is created by i960 compilers.
2855ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2856#
2857# The IRIX 6 linker writes into existing files which may not be
2858# executable, retaining their permissions.  Remove them first so a
2859# subsequent execution test works.
2860ac_rmfiles=
2861for ac_file in $ac_files
2862do
2863  case $ac_file in
2864    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2866  esac
2867done
2868rm -f $ac_rmfiles
2869
2870if { (ac_try="$ac_link_default"
2871case "(($ac_try" in
2872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873  *) ac_try_echo=$ac_try;;
2874esac
2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876  (eval "$ac_link_default") 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; then
2880  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2881# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2882# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2883# so that the user can short-circuit this test for compilers unknown to
2884# Autoconf.
2885for ac_file in $ac_files ''
2886do
2887  test -f "$ac_file" || continue
2888  case $ac_file in
2889    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2890	;;
2891    [ab].out )
2892	# We found the default executable, but exeext='' is most
2893	# certainly right.
2894	break;;
2895    *.* )
2896        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2897	then :; else
2898	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899	fi
2900	# We set ac_cv_exeext here because the later test for it is not
2901	# safe: cross compilers may not add the suffix if given an `-o'
2902	# argument, so we may need to know it at that point already.
2903	# Even if this section looks crufty: it has the advantage of
2904	# actually working.
2905	break;;
2906    * )
2907	break;;
2908  esac
2909done
2910test "$ac_cv_exeext" = no && ac_cv_exeext=
2911
2912else
2913  ac_file=''
2914fi
2915
2916{ echo "$as_me:$LINENO: result: $ac_file" >&5
2917echo "${ECHO_T}$ac_file" >&6; }
2918if test -z "$ac_file"; then
2919  echo "$as_me: failed program was:" >&5
2920sed 's/^/| /' conftest.$ac_ext >&5
2921
2922{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2923See \`config.log' for more details." >&5
2924echo "$as_me: error: C compiler cannot create executables
2925See \`config.log' for more details." >&2;}
2926   { (exit 77); exit 77; }; }
2927fi
2928
2929ac_exeext=$ac_cv_exeext
2930
2931# Check that the compiler produces executables we can run.  If not, either
2932# the compiler is broken, or we cross compile.
2933{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2934echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2935# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2936# If not cross compiling, check that we can run a simple program.
2937if test "$cross_compiling" != yes; then
2938  if { ac_try='./$ac_file'
2939  { (case "(($ac_try" in
2940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941  *) ac_try_echo=$ac_try;;
2942esac
2943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944  (eval "$ac_try") 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; }; then
2948    cross_compiling=no
2949  else
2950    if test "$cross_compiling" = maybe; then
2951	cross_compiling=yes
2952    else
2953	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2954If you meant to cross compile, use \`--host'.
2955See \`config.log' for more details." >&5
2956echo "$as_me: error: cannot run C compiled programs.
2957If you meant to cross compile, use \`--host'.
2958See \`config.log' for more details." >&2;}
2959   { (exit 1); exit 1; }; }
2960    fi
2961  fi
2962fi
2963{ echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6; }
2965
2966rm -f a.out a.exe conftest$ac_cv_exeext b.out
2967ac_clean_files=$ac_clean_files_save
2968# Check that the compiler produces executables we can run.  If not, either
2969# the compiler is broken, or we cross compile.
2970{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2971echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2972{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2973echo "${ECHO_T}$cross_compiling" >&6; }
2974
2975{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2976echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2977if { (ac_try="$ac_link"
2978case "(($ac_try" in
2979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980  *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983  (eval "$ac_link") 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; then
2987  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2988# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2989# work properly (i.e., refer to `conftest.exe'), while it won't with
2990# `rm'.
2991for ac_file in conftest.exe conftest conftest.*; do
2992  test -f "$ac_file" || continue
2993  case $ac_file in
2994    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2995    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2996	  break;;
2997    * ) break;;
2998  esac
2999done
3000else
3001  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3002See \`config.log' for more details." >&5
3003echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3004See \`config.log' for more details." >&2;}
3005   { (exit 1); exit 1; }; }
3006fi
3007
3008rm -f conftest$ac_cv_exeext
3009{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3010echo "${ECHO_T}$ac_cv_exeext" >&6; }
3011
3012rm -f conftest.$ac_ext
3013EXEEXT=$ac_cv_exeext
3014ac_exeext=$EXEEXT
3015{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3016echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3017if test "${ac_cv_objext+set}" = set; then
3018  echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
3020  cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h.  */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h.  */
3026
3027int
3028main ()
3029{
3030
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035rm -f conftest.o conftest.obj
3036if { (ac_try="$ac_compile"
3037case "(($ac_try" in
3038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039  *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042  (eval "$ac_compile") 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; then
3046  for ac_file in conftest.o conftest.obj conftest.*; do
3047  test -f "$ac_file" || continue;
3048  case $ac_file in
3049    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3050    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3051       break;;
3052  esac
3053done
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3059See \`config.log' for more details." >&5
3060echo "$as_me: error: cannot compute suffix of object files: cannot compile
3061See \`config.log' for more details." >&2;}
3062   { (exit 1); exit 1; }; }
3063fi
3064
3065rm -f conftest.$ac_cv_objext conftest.$ac_ext
3066fi
3067{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3068echo "${ECHO_T}$ac_cv_objext" >&6; }
3069OBJEXT=$ac_cv_objext
3070ac_objext=$OBJEXT
3071{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3072echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3073if test "${ac_cv_c_compiler_gnu+set}" = set; then
3074  echo $ECHO_N "(cached) $ECHO_C" >&6
3075else
3076  cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h.  */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h.  */
3082
3083int
3084main ()
3085{
3086#ifndef __GNUC__
3087       choke me
3088#endif
3089
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094rm -f conftest.$ac_objext
3095if { (ac_try="$ac_compile"
3096case "(($ac_try" in
3097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098  *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101  (eval "$ac_compile") 2>conftest.er1
3102  ac_status=$?
3103  grep -v '^ *+' conftest.er1 >conftest.err
3104  rm -f conftest.er1
3105  cat conftest.err >&5
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); } && {
3108	 test -z "$ac_c_werror_flag" ||
3109	 test ! -s conftest.err
3110       } && test -s conftest.$ac_objext; then
3111  ac_compiler_gnu=yes
3112else
3113  echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116	ac_compiler_gnu=no
3117fi
3118
3119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
3122fi
3123{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3125GCC=`test $ac_compiler_gnu = yes && echo yes`
3126ac_test_CFLAGS=${CFLAGS+set}
3127ac_save_CFLAGS=$CFLAGS
3128{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3129echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3130if test "${ac_cv_prog_cc_g+set}" = set; then
3131  echo $ECHO_N "(cached) $ECHO_C" >&6
3132else
3133  ac_save_c_werror_flag=$ac_c_werror_flag
3134   ac_c_werror_flag=yes
3135   ac_cv_prog_cc_g=no
3136   CFLAGS="-g"
3137   cat >conftest.$ac_ext <<_ACEOF
3138/* confdefs.h.  */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h.  */
3143
3144int
3145main ()
3146{
3147
3148  ;
3149  return 0;
3150}
3151_ACEOF
3152rm -f conftest.$ac_objext
3153if { (ac_try="$ac_compile"
3154case "(($ac_try" in
3155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156  *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159  (eval "$ac_compile") 2>conftest.er1
3160  ac_status=$?
3161  grep -v '^ *+' conftest.er1 >conftest.err
3162  rm -f conftest.er1
3163  cat conftest.err >&5
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); } && {
3166	 test -z "$ac_c_werror_flag" ||
3167	 test ! -s conftest.err
3168       } && test -s conftest.$ac_objext; then
3169  ac_cv_prog_cc_g=yes
3170else
3171  echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174	CFLAGS=""
3175      cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h.  */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext
3191if { (ac_try="$ac_compile"
3192case "(($ac_try" in
3193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194  *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197  (eval "$ac_compile") 2>conftest.er1
3198  ac_status=$?
3199  grep -v '^ *+' conftest.er1 >conftest.err
3200  rm -f conftest.er1
3201  cat conftest.err >&5
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); } && {
3204	 test -z "$ac_c_werror_flag" ||
3205	 test ! -s conftest.err
3206       } && test -s conftest.$ac_objext; then
3207  :
3208else
3209  echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212	ac_c_werror_flag=$ac_save_c_werror_flag
3213	 CFLAGS="-g"
3214	 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h.  */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h.  */
3220
3221int
3222main ()
3223{
3224
3225  ;
3226  return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext
3230if { (ac_try="$ac_compile"
3231case "(($ac_try" in
3232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233  *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236  (eval "$ac_compile") 2>conftest.er1
3237  ac_status=$?
3238  grep -v '^ *+' conftest.er1 >conftest.err
3239  rm -f conftest.er1
3240  cat conftest.err >&5
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); } && {
3243	 test -z "$ac_c_werror_flag" ||
3244	 test ! -s conftest.err
3245       } && test -s conftest.$ac_objext; then
3246  ac_cv_prog_cc_g=yes
3247else
3248  echo "$as_me: failed program was:" >&5
3249sed 's/^/| /' conftest.$ac_ext >&5
3250
3251
3252fi
3253
3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255fi
3256
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258fi
3259
3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261   ac_c_werror_flag=$ac_save_c_werror_flag
3262fi
3263{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3264echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3265if test "$ac_test_CFLAGS" = set; then
3266  CFLAGS=$ac_save_CFLAGS
3267elif test $ac_cv_prog_cc_g = yes; then
3268  if test "$GCC" = yes; then
3269    CFLAGS="-g -O2"
3270  else
3271    CFLAGS="-g"
3272  fi
3273else
3274  if test "$GCC" = yes; then
3275    CFLAGS="-O2"
3276  else
3277    CFLAGS=
3278  fi
3279fi
3280{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3281echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3282if test "${ac_cv_prog_cc_c89+set}" = set; then
3283  echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285  ac_cv_prog_cc_c89=no
3286ac_save_CC=$CC
3287cat >conftest.$ac_ext <<_ACEOF
3288/* confdefs.h.  */
3289_ACEOF
3290cat confdefs.h >>conftest.$ac_ext
3291cat >>conftest.$ac_ext <<_ACEOF
3292/* end confdefs.h.  */
3293#include <stdarg.h>
3294#include <stdio.h>
3295#include <sys/types.h>
3296#include <sys/stat.h>
3297/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3298struct buf { int x; };
3299FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300static char *e (p, i)
3301     char **p;
3302     int i;
3303{
3304  return p[i];
3305}
3306static char *f (char * (*g) (char **, int), char **p, ...)
3307{
3308  char *s;
3309  va_list v;
3310  va_start (v,p);
3311  s = g (p, va_arg (v,int));
3312  va_end (v);
3313  return s;
3314}
3315
3316/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3317   function prototypes and stuff, but not '\xHH' hex character constants.
3318   These don't provoke an error unfortunately, instead are silently treated
3319   as 'x'.  The following induces an error, until -std is added to get
3320   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3321   array size at least.  It's necessary to write '\x00'==0 to get something
3322   that's true only with -std.  */
3323int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324
3325/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326   inside strings and character constants.  */
3327#define FOO(x) 'x'
3328int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3329
3330int test (int i, double x);
3331struct s1 {int (*f) (int a);};
3332struct s2 {int (*f) (double a);};
3333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3334int argc;
3335char **argv;
3336int
3337main ()
3338{
3339return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3346do
3347  CC="$ac_save_CC $ac_arg"
3348  rm -f conftest.$ac_objext
3349if { (ac_try="$ac_compile"
3350case "(($ac_try" in
3351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352  *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355  (eval "$ac_compile") 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } && {
3362	 test -z "$ac_c_werror_flag" ||
3363	 test ! -s conftest.err
3364       } && test -s conftest.$ac_objext; then
3365  ac_cv_prog_cc_c89=$ac_arg
3366else
3367  echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370
3371fi
3372
3373rm -f core conftest.err conftest.$ac_objext
3374  test "x$ac_cv_prog_cc_c89" != "xno" && break
3375done
3376rm -f conftest.$ac_ext
3377CC=$ac_save_CC
3378
3379fi
3380# AC_CACHE_VAL
3381case "x$ac_cv_prog_cc_c89" in
3382  x)
3383    { echo "$as_me:$LINENO: result: none needed" >&5
3384echo "${ECHO_T}none needed" >&6; } ;;
3385  xno)
3386    { echo "$as_me:$LINENO: result: unsupported" >&5
3387echo "${ECHO_T}unsupported" >&6; } ;;
3388  *)
3389    CC="$CC $ac_cv_prog_cc_c89"
3390    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3391echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3392esac
3393
3394
3395ac_ext=c
3396ac_cpp='$CPP $CPPFLAGS'
3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401CFLAGS=$savedCFLAGS
3402
3403if test x"$GCC" != x"yes" ; then
3404   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3405echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3406if test "${ac_cv_prog_cc_c99+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  ac_cv_prog_cc_c99=no
3410ac_save_CC=$CC
3411cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417#include <stdarg.h>
3418#include <stdbool.h>
3419#include <stdlib.h>
3420#include <wchar.h>
3421#include <stdio.h>
3422
3423struct incomplete_array
3424{
3425  int datasize;
3426  double data[];
3427};
3428
3429struct named_init {
3430  int number;
3431  const wchar_t *name;
3432  double average;
3433};
3434
3435typedef const char *ccp;
3436
3437static inline int
3438test_restrict(ccp restrict text)
3439{
3440  // See if C++-style comments work.
3441  // Iterate through items via the restricted pointer.
3442  // Also check for declarations in for loops.
3443  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3444    continue;
3445  return 0;
3446}
3447
3448// Check varargs and va_copy work.
3449static void
3450test_varargs(const char *format, ...)
3451{
3452  va_list args;
3453  va_start(args, format);
3454  va_list args_copy;
3455  va_copy(args_copy, args);
3456
3457  const char *str;
3458  int number;
3459  float fnumber;
3460
3461  while (*format)
3462    {
3463      switch (*format++)
3464	{
3465	case 's': // string
3466	  str = va_arg(args_copy, const char *);
3467	  break;
3468	case 'd': // int
3469	  number = va_arg(args_copy, int);
3470	  break;
3471	case 'f': // float
3472	  fnumber = (float) va_arg(args_copy, double);
3473	  break;
3474	default:
3475	  break;
3476	}
3477    }
3478  va_end(args_copy);
3479  va_end(args);
3480}
3481
3482int
3483main ()
3484{
3485
3486  // Check bool and long long datatypes.
3487  _Bool success = false;
3488  long long int bignum = -1234567890LL;
3489  unsigned long long int ubignum = 1234567890uLL;
3490
3491  // Check restrict.
3492  if (test_restrict("String literal") != 0)
3493    success = true;
3494  char *restrict newvar = "Another string";
3495
3496  // Check varargs.
3497  test_varargs("s, d' f .", "string", 65, 34.234);
3498
3499  // Check incomplete arrays work.
3500  struct incomplete_array *ia =
3501    malloc(sizeof(struct incomplete_array) + (sizeof(double) * 10));
3502  ia->datasize = 10;
3503  for (int i = 0; i < ia->datasize; ++i)
3504    ia->data[i] = (double) i * 1.234;
3505
3506  // Check named initialisers.
3507  struct named_init ni = {
3508    .number = 34,
3509    .name = L"Test wide string",
3510    .average = 543.34343,
3511  };
3512
3513  ni.number = 58;
3514
3515  int dynamic_array[ni.number];
3516  dynamic_array[43] = 543;
3517
3518  // work around unused variable warnings
3519  return  bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x';
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3526do
3527  CC="$ac_save_CC $ac_arg"
3528  rm -f conftest.$ac_objext
3529if { (ac_try="$ac_compile"
3530case "(($ac_try" in
3531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532  *) ac_try_echo=$ac_try;;
3533esac
3534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535  (eval "$ac_compile") 2>conftest.er1
3536  ac_status=$?
3537  grep -v '^ *+' conftest.er1 >conftest.err
3538  rm -f conftest.er1
3539  cat conftest.err >&5
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); } && {
3542	 test -z "$ac_c_werror_flag" ||
3543	 test ! -s conftest.err
3544       } && test -s conftest.$ac_objext; then
3545  ac_cv_prog_cc_c99=$ac_arg
3546else
3547  echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
3550
3551fi
3552
3553rm -f core conftest.err conftest.$ac_objext
3554  test "x$ac_cv_prog_cc_c99" != "xno" && break
3555done
3556rm -f conftest.$ac_ext
3557CC=$ac_save_CC
3558
3559fi
3560# AC_CACHE_VAL
3561case "x$ac_cv_prog_cc_c99" in
3562  x)
3563    { echo "$as_me:$LINENO: result: none needed" >&5
3564echo "${ECHO_T}none needed" >&6; } ;;
3565  xno)
3566    { echo "$as_me:$LINENO: result: unsupported" >&5
3567echo "${ECHO_T}unsupported" >&6; } ;;
3568  *)
3569    CC="$CC $ac_cv_prog_cc_c99"
3570    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3571echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3572esac
3573
3574
3575
3576fi
3577
3578if test x"$GCC" = x"yes" ; then
3579	{ echo "$as_me:$LINENO: checking for version of gcc" >&5
3580echo $ECHO_N "checking for version of gcc... $ECHO_C" >&6; }
3581	GCC_VERSION=`$CC -dumpversion`
3582	{ echo "$as_me:$LINENO: result: ${GCC_VERSION}" >&5
3583echo "${ECHO_T}${GCC_VERSION}" >&6; }
3584fi
3585
3586cat >>confdefs.h <<\_ACEOF
3587#define _GNU_SOURCE 1
3588_ACEOF
3589
3590
3591
3592ac_ext=c
3593ac_cpp='$CPP $CPPFLAGS'
3594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3598echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3599# On Suns, sometimes $CPP names a directory.
3600if test -n "$CPP" && test -d "$CPP"; then
3601  CPP=
3602fi
3603if test -z "$CPP"; then
3604  if test "${ac_cv_prog_CPP+set}" = set; then
3605  echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607      # Double quotes because CPP needs to be expanded
3608    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3609    do
3610      ac_preproc_ok=false
3611for ac_c_preproc_warn_flag in '' yes
3612do
3613  # Use a header file that comes with gcc, so configuring glibc
3614  # with a fresh cross-compiler works.
3615  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3616  # <limits.h> exists even on freestanding compilers.
3617  # On the NeXT, cc -E runs the code through the compiler's parser,
3618  # not just through cpp. "Syntax error" is here to catch this case.
3619  cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h.  */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h.  */
3625#ifdef __STDC__
3626# include <limits.h>
3627#else
3628# include <assert.h>
3629#endif
3630		     Syntax error
3631_ACEOF
3632if { (ac_try="$ac_cpp conftest.$ac_ext"
3633case "(($ac_try" in
3634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635  *) ac_try_echo=$ac_try;;
3636esac
3637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3639  ac_status=$?
3640  grep -v '^ *+' conftest.er1 >conftest.err
3641  rm -f conftest.er1
3642  cat conftest.err >&5
3643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); } >/dev/null && {
3645	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3646	 test ! -s conftest.err
3647       }; then
3648  :
3649else
3650  echo "$as_me: failed program was:" >&5
3651sed 's/^/| /' conftest.$ac_ext >&5
3652
3653  # Broken: fails on valid input.
3654continue
3655fi
3656
3657rm -f conftest.err conftest.$ac_ext
3658
3659  # OK, works on sane cases.  Now check whether nonexistent headers
3660  # can be detected and how.
3661  cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h.  */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h.  */
3667#include <ac_nonexistent.h>
3668_ACEOF
3669if { (ac_try="$ac_cpp conftest.$ac_ext"
3670case "(($ac_try" in
3671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672  *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676  ac_status=$?
3677  grep -v '^ *+' conftest.er1 >conftest.err
3678  rm -f conftest.er1
3679  cat conftest.err >&5
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); } >/dev/null && {
3682	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683	 test ! -s conftest.err
3684       }; then
3685  # Broken: success on invalid input.
3686continue
3687else
3688  echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691  # Passes both tests.
3692ac_preproc_ok=:
3693break
3694fi
3695
3696rm -f conftest.err conftest.$ac_ext
3697
3698done
3699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3700rm -f conftest.err conftest.$ac_ext
3701if $ac_preproc_ok; then
3702  break
3703fi
3704
3705    done
3706    ac_cv_prog_CPP=$CPP
3707
3708fi
3709  CPP=$ac_cv_prog_CPP
3710else
3711  ac_cv_prog_CPP=$CPP
3712fi
3713{ echo "$as_me:$LINENO: result: $CPP" >&5
3714echo "${ECHO_T}$CPP" >&6; }
3715ac_preproc_ok=false
3716for ac_c_preproc_warn_flag in '' yes
3717do
3718  # Use a header file that comes with gcc, so configuring glibc
3719  # with a fresh cross-compiler works.
3720  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3721  # <limits.h> exists even on freestanding compilers.
3722  # On the NeXT, cc -E runs the code through the compiler's parser,
3723  # not just through cpp. "Syntax error" is here to catch this case.
3724  cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730#ifdef __STDC__
3731# include <limits.h>
3732#else
3733# include <assert.h>
3734#endif
3735		     Syntax error
3736_ACEOF
3737if { (ac_try="$ac_cpp conftest.$ac_ext"
3738case "(($ac_try" in
3739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740  *) ac_try_echo=$ac_try;;
3741esac
3742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3743  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3744  ac_status=$?
3745  grep -v '^ *+' conftest.er1 >conftest.err
3746  rm -f conftest.er1
3747  cat conftest.err >&5
3748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749  (exit $ac_status); } >/dev/null && {
3750	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3751	 test ! -s conftest.err
3752       }; then
3753  :
3754else
3755  echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758  # Broken: fails on valid input.
3759continue
3760fi
3761
3762rm -f conftest.err conftest.$ac_ext
3763
3764  # OK, works on sane cases.  Now check whether nonexistent headers
3765  # can be detected and how.
3766  cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h.  */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h.  */
3772#include <ac_nonexistent.h>
3773_ACEOF
3774if { (ac_try="$ac_cpp conftest.$ac_ext"
3775case "(($ac_try" in
3776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777  *) ac_try_echo=$ac_try;;
3778esac
3779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3781  ac_status=$?
3782  grep -v '^ *+' conftest.er1 >conftest.err
3783  rm -f conftest.er1
3784  cat conftest.err >&5
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); } >/dev/null && {
3787	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3788	 test ! -s conftest.err
3789       }; then
3790  # Broken: success on invalid input.
3791continue
3792else
3793  echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796  # Passes both tests.
3797ac_preproc_ok=:
3798break
3799fi
3800
3801rm -f conftest.err conftest.$ac_ext
3802
3803done
3804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3805rm -f conftest.err conftest.$ac_ext
3806if $ac_preproc_ok; then
3807  :
3808else
3809  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3810See \`config.log' for more details." >&5
3811echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3812See \`config.log' for more details." >&2;}
3813   { (exit 1); exit 1; }; }
3814fi
3815
3816ac_ext=c
3817ac_cpp='$CPP $CPPFLAGS'
3818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822
3823{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3824echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3825if test "${ac_cv_path_GREP+set}" = set; then
3826  echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828  # Extract the first word of "grep ggrep" to use in msg output
3829if test -z "$GREP"; then
3830set dummy grep ggrep; ac_prog_name=$2
3831if test "${ac_cv_path_GREP+set}" = set; then
3832  echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834  ac_path_GREP_found=false
3835# Loop through the user's path and test for each of PROGNAME-LIST
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3838do
3839  IFS=$as_save_IFS
3840  test -z "$as_dir" && as_dir=.
3841  for ac_prog in grep ggrep; do
3842  for ac_exec_ext in '' $ac_executable_extensions; do
3843    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3844    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3845    # Check for GNU ac_path_GREP and select it if it is found.
3846  # Check for GNU $ac_path_GREP
3847case `"$ac_path_GREP" --version 2>&1` in
3848*GNU*)
3849  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3850*)
3851  ac_count=0
3852  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3853  while :
3854  do
3855    cat "conftest.in" "conftest.in" >"conftest.tmp"
3856    mv "conftest.tmp" "conftest.in"
3857    cp "conftest.in" "conftest.nl"
3858    echo 'GREP' >> "conftest.nl"
3859    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861    ac_count=`expr $ac_count + 1`
3862    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3863      # Best one so far, save it but keep looking for a better one
3864      ac_cv_path_GREP="$ac_path_GREP"
3865      ac_path_GREP_max=$ac_count
3866    fi
3867    # 10*(2^10) chars as input seems more than enough
3868    test $ac_count -gt 10 && break
3869  done
3870  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3871esac
3872
3873
3874    $ac_path_GREP_found && break 3
3875  done
3876done
3877
3878done
3879IFS=$as_save_IFS
3880
3881
3882fi
3883
3884GREP="$ac_cv_path_GREP"
3885if test -z "$GREP"; then
3886  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3887echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3888   { (exit 1); exit 1; }; }
3889fi
3890
3891else
3892  ac_cv_path_GREP=$GREP
3893fi
3894
3895
3896fi
3897{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3898echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3899 GREP="$ac_cv_path_GREP"
3900
3901
3902{ echo "$as_me:$LINENO: checking for egrep" >&5
3903echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3904if test "${ac_cv_path_EGREP+set}" = set; then
3905  echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3908   then ac_cv_path_EGREP="$GREP -E"
3909   else
3910     # Extract the first word of "egrep" to use in msg output
3911if test -z "$EGREP"; then
3912set dummy egrep; ac_prog_name=$2
3913if test "${ac_cv_path_EGREP+set}" = set; then
3914  echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916  ac_path_EGREP_found=false
3917# Loop through the user's path and test for each of PROGNAME-LIST
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3920do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923  for ac_prog in egrep; do
3924  for ac_exec_ext in '' $ac_executable_extensions; do
3925    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3926    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3927    # Check for GNU ac_path_EGREP and select it if it is found.
3928  # Check for GNU $ac_path_EGREP
3929case `"$ac_path_EGREP" --version 2>&1` in
3930*GNU*)
3931  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3932*)
3933  ac_count=0
3934  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3935  while :
3936  do
3937    cat "conftest.in" "conftest.in" >"conftest.tmp"
3938    mv "conftest.tmp" "conftest.in"
3939    cp "conftest.in" "conftest.nl"
3940    echo 'EGREP' >> "conftest.nl"
3941    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3942    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3943    ac_count=`expr $ac_count + 1`
3944    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3945      # Best one so far, save it but keep looking for a better one
3946      ac_cv_path_EGREP="$ac_path_EGREP"
3947      ac_path_EGREP_max=$ac_count
3948    fi
3949    # 10*(2^10) chars as input seems more than enough
3950    test $ac_count -gt 10 && break
3951  done
3952  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953esac
3954
3955
3956    $ac_path_EGREP_found && break 3
3957  done
3958done
3959
3960done
3961IFS=$as_save_IFS
3962
3963
3964fi
3965
3966EGREP="$ac_cv_path_EGREP"
3967if test -z "$EGREP"; then
3968  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3969echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3970   { (exit 1); exit 1; }; }
3971fi
3972
3973else
3974  ac_cv_path_EGREP=$EGREP
3975fi
3976
3977
3978   fi
3979fi
3980{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3981echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3982 EGREP="$ac_cv_path_EGREP"
3983
3984
3985
3986{ echo "$as_me:$LINENO: checking for AIX" >&5
3987echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3988cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h.  */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h.  */
3994#ifdef _AIX
3995  yes
3996#endif
3997
3998_ACEOF
3999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4000  $EGREP "yes" >/dev/null 2>&1; then
4001  { echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6; }
4003cat >>confdefs.h <<\_ACEOF
4004#define _ALL_SOURCE 1
4005_ACEOF
4006
4007else
4008  { echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6; }
4010fi
4011rm -f conftest*
4012
4013
4014{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4016if test "${ac_cv_header_stdc+set}" = set; then
4017  echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019  cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h.  */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h.  */
4025#include <stdlib.h>
4026#include <stdarg.h>
4027#include <string.h>
4028#include <float.h>
4029
4030int
4031main ()
4032{
4033
4034  ;
4035  return 0;
4036}
4037_ACEOF
4038rm -f conftest.$ac_objext
4039if { (ac_try="$ac_compile"
4040case "(($ac_try" in
4041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042  *) ac_try_echo=$ac_try;;
4043esac
4044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045  (eval "$ac_compile") 2>conftest.er1
4046  ac_status=$?
4047  grep -v '^ *+' conftest.er1 >conftest.err
4048  rm -f conftest.er1
4049  cat conftest.err >&5
4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051  (exit $ac_status); } && {
4052	 test -z "$ac_c_werror_flag" ||
4053	 test ! -s conftest.err
4054       } && test -s conftest.$ac_objext; then
4055  ac_cv_header_stdc=yes
4056else
4057  echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060	ac_cv_header_stdc=no
4061fi
4062
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064
4065if test $ac_cv_header_stdc = yes; then
4066  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4067  cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h.  */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h.  */
4073#include <string.h>
4074
4075_ACEOF
4076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077  $EGREP "memchr" >/dev/null 2>&1; then
4078  :
4079else
4080  ac_cv_header_stdc=no
4081fi
4082rm -f conftest*
4083
4084fi
4085
4086if test $ac_cv_header_stdc = yes; then
4087  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4088  cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h.  */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h.  */
4094#include <stdlib.h>
4095
4096_ACEOF
4097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4098  $EGREP "free" >/dev/null 2>&1; then
4099  :
4100else
4101  ac_cv_header_stdc=no
4102fi
4103rm -f conftest*
4104
4105fi
4106
4107if test $ac_cv_header_stdc = yes; then
4108  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4109  if test "$cross_compiling" = yes; then
4110  :
4111else
4112  cat >conftest.$ac_ext <<_ACEOF
4113/* confdefs.h.  */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h.  */
4118#include <ctype.h>
4119#include <stdlib.h>
4120#if ((' ' & 0x0FF) == 0x020)
4121# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4122# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4123#else
4124# define ISLOWER(c) \
4125		   (('a' <= (c) && (c) <= 'i') \
4126		     || ('j' <= (c) && (c) <= 'r') \
4127		     || ('s' <= (c) && (c) <= 'z'))
4128# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4129#endif
4130
4131#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4132int
4133main ()
4134{
4135  int i;
4136  for (i = 0; i < 256; i++)
4137    if (XOR (islower (i), ISLOWER (i))
4138	|| toupper (i) != TOUPPER (i))
4139      return 2;
4140  return 0;
4141}
4142_ACEOF
4143rm -f conftest$ac_exeext
4144if { (ac_try="$ac_link"
4145case "(($ac_try" in
4146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147  *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150  (eval "$ac_link") 2>&5
4151  ac_status=$?
4152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4154  { (case "(($ac_try" in
4155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156  *) ac_try_echo=$ac_try;;
4157esac
4158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159  (eval "$ac_try") 2>&5
4160  ac_status=$?
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); }; }; then
4163  :
4164else
4165  echo "$as_me: program exited with status $ac_status" >&5
4166echo "$as_me: failed program was:" >&5
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
4169( exit $ac_status )
4170ac_cv_header_stdc=no
4171fi
4172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4173fi
4174
4175
4176fi
4177fi
4178{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4179echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4180if test $ac_cv_header_stdc = yes; then
4181
4182cat >>confdefs.h <<\_ACEOF
4183#define STDC_HEADERS 1
4184_ACEOF
4185
4186fi
4187
4188# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4199		  inttypes.h stdint.h unistd.h
4200do
4201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4202{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4205  echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207  cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h.  */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h.  */
4213$ac_includes_default
4214
4215#include <$ac_header>
4216_ACEOF
4217rm -f conftest.$ac_objext
4218if { (ac_try="$ac_compile"
4219case "(($ac_try" in
4220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221  *) ac_try_echo=$ac_try;;
4222esac
4223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224  (eval "$ac_compile") 2>conftest.er1
4225  ac_status=$?
4226  grep -v '^ *+' conftest.er1 >conftest.err
4227  rm -f conftest.er1
4228  cat conftest.err >&5
4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230  (exit $ac_status); } && {
4231	 test -z "$ac_c_werror_flag" ||
4232	 test ! -s conftest.err
4233       } && test -s conftest.$ac_objext; then
4234  eval "$as_ac_Header=yes"
4235else
4236  echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239	eval "$as_ac_Header=no"
4240fi
4241
4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243fi
4244ac_res=`eval echo '${'$as_ac_Header'}'`
4245	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4246echo "${ECHO_T}$ac_res" >&6; }
4247if test `eval echo '${'$as_ac_Header'}'` = yes; then
4248  cat >>confdefs.h <<_ACEOF
4249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250_ACEOF
4251
4252fi
4253
4254done
4255
4256
4257if test "${ac_cv_header_minix_config_h+set}" = set; then
4258  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4259echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4260if test "${ac_cv_header_minix_config_h+set}" = set; then
4261  echo $ECHO_N "(cached) $ECHO_C" >&6
4262fi
4263{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4264echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4265else
4266  # Is the header compilable?
4267{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4268echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4269cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h.  */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h.  */
4275$ac_includes_default
4276#include <minix/config.h>
4277_ACEOF
4278rm -f conftest.$ac_objext
4279if { (ac_try="$ac_compile"
4280case "(($ac_try" in
4281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282  *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285  (eval "$ac_compile") 2>conftest.er1
4286  ac_status=$?
4287  grep -v '^ *+' conftest.er1 >conftest.err
4288  rm -f conftest.er1
4289  cat conftest.err >&5
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); } && {
4292	 test -z "$ac_c_werror_flag" ||
4293	 test ! -s conftest.err
4294       } && test -s conftest.$ac_objext; then
4295  ac_header_compiler=yes
4296else
4297  echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300	ac_header_compiler=no
4301fi
4302
4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4305echo "${ECHO_T}$ac_header_compiler" >&6; }
4306
4307# Is the header present?
4308{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4309echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4310cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h.  */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h.  */
4316#include <minix/config.h>
4317_ACEOF
4318if { (ac_try="$ac_cpp conftest.$ac_ext"
4319case "(($ac_try" in
4320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321  *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4325  ac_status=$?
4326  grep -v '^ *+' conftest.er1 >conftest.err
4327  rm -f conftest.er1
4328  cat conftest.err >&5
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); } >/dev/null && {
4331	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4332	 test ! -s conftest.err
4333       }; then
4334  ac_header_preproc=yes
4335else
4336  echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339  ac_header_preproc=no
4340fi
4341
4342rm -f conftest.err conftest.$ac_ext
4343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4344echo "${ECHO_T}$ac_header_preproc" >&6; }
4345
4346# So?  What about this header?
4347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4348  yes:no: )
4349    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4350echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4351    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4352echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4353    ac_header_preproc=yes
4354    ;;
4355  no:yes:* )
4356    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4357echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4358    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4359echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4360    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4361echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4362    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4363echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4364    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4365echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4366    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4367echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4368
4369    ;;
4370esac
4371{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4372echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4373if test "${ac_cv_header_minix_config_h+set}" = set; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  ac_cv_header_minix_config_h=$ac_header_preproc
4377fi
4378{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4379echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4380
4381fi
4382if test $ac_cv_header_minix_config_h = yes; then
4383  MINIX=yes
4384else
4385  MINIX=
4386fi
4387
4388
4389if test "$MINIX" = yes; then
4390
4391cat >>confdefs.h <<\_ACEOF
4392#define _POSIX_SOURCE 1
4393_ACEOF
4394
4395
4396cat >>confdefs.h <<\_ACEOF
4397#define _POSIX_1_SOURCE 2
4398_ACEOF
4399
4400
4401cat >>confdefs.h <<\_ACEOF
4402#define _MINIX 1
4403_ACEOF
4404
4405fi
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4418echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4419if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422  cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h.  */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h.  */
4428
4429#	  define __EXTENSIONS__ 1
4430	  $ac_includes_default
4431int
4432main ()
4433{
4434
4435  ;
4436  return 0;
4437}
4438_ACEOF
4439rm -f conftest.$ac_objext
4440if { (ac_try="$ac_compile"
4441case "(($ac_try" in
4442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443  *) ac_try_echo=$ac_try;;
4444esac
4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446  (eval "$ac_compile") 2>conftest.er1
4447  ac_status=$?
4448  grep -v '^ *+' conftest.er1 >conftest.err
4449  rm -f conftest.er1
4450  cat conftest.err >&5
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); } && {
4453	 test -z "$ac_c_werror_flag" ||
4454	 test ! -s conftest.err
4455       } && test -s conftest.$ac_objext; then
4456  ac_cv_safe_to_define___extensions__=yes
4457else
4458  echo "$as_me: failed program was:" >&5
4459sed 's/^/| /' conftest.$ac_ext >&5
4460
4461	ac_cv_safe_to_define___extensions__=no
4462fi
4463
4464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465fi
4466{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4467echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4468  test $ac_cv_safe_to_define___extensions__ = yes &&
4469    cat >>confdefs.h <<\_ACEOF
4470#define __EXTENSIONS__ 1
4471_ACEOF
4472
4473#  cat >>confdefs.h <<\_ACEOF
4474##define _POSIX_PTHREAD_SEMANTICS 1
4475#_ACEOF
4476
4477
4478{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4479echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4480if test "${ac_cv_c_bigendian+set}" = set; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483  # See if sys/param.h defines the BYTE_ORDER macro.
4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h.  */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h.  */
4490#include <sys/types.h>
4491#include <sys/param.h>
4492
4493int
4494main ()
4495{
4496#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4497	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4498 bogus endian macros
4499#endif
4500
4501  ;
4502  return 0;
4503}
4504_ACEOF
4505rm -f conftest.$ac_objext
4506if { (ac_try="$ac_compile"
4507case "(($ac_try" in
4508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509  *) ac_try_echo=$ac_try;;
4510esac
4511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512  (eval "$ac_compile") 2>conftest.er1
4513  ac_status=$?
4514  grep -v '^ *+' conftest.er1 >conftest.err
4515  rm -f conftest.er1
4516  cat conftest.err >&5
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); } && {
4519	 test -z "$ac_c_werror_flag" ||
4520	 test ! -s conftest.err
4521       } && test -s conftest.$ac_objext; then
4522  # It does; now see whether it defined to BIG_ENDIAN or not.
4523cat >conftest.$ac_ext <<_ACEOF
4524/* confdefs.h.  */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h.  */
4529#include <sys/types.h>
4530#include <sys/param.h>
4531
4532int
4533main ()
4534{
4535#if BYTE_ORDER != BIG_ENDIAN
4536 not big endian
4537#endif
4538
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543rm -f conftest.$ac_objext
4544if { (ac_try="$ac_compile"
4545case "(($ac_try" in
4546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547  *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550  (eval "$ac_compile") 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } && {
4557	 test -z "$ac_c_werror_flag" ||
4558	 test ! -s conftest.err
4559       } && test -s conftest.$ac_objext; then
4560  ac_cv_c_bigendian=yes
4561else
4562  echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565	ac_cv_c_bigendian=no
4566fi
4567
4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569else
4570  echo "$as_me: failed program was:" >&5
4571sed 's/^/| /' conftest.$ac_ext >&5
4572
4573	# It does not; compile a test program.
4574if test "$cross_compiling" = yes; then
4575  # try to guess the endianness by grepping values into an object file
4576  ac_cv_c_bigendian=unknown
4577  cat >conftest.$ac_ext <<_ACEOF
4578/* confdefs.h.  */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h.  */
4583short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4584short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4585void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4586short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4587short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4588void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4589int
4590main ()
4591{
4592 _ascii (); _ebcdic ();
4593  ;
4594  return 0;
4595}
4596_ACEOF
4597rm -f conftest.$ac_objext
4598if { (ac_try="$ac_compile"
4599case "(($ac_try" in
4600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601  *) ac_try_echo=$ac_try;;
4602esac
4603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604  (eval "$ac_compile") 2>conftest.er1
4605  ac_status=$?
4606  grep -v '^ *+' conftest.er1 >conftest.err
4607  rm -f conftest.er1
4608  cat conftest.err >&5
4609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610  (exit $ac_status); } && {
4611	 test -z "$ac_c_werror_flag" ||
4612	 test ! -s conftest.err
4613       } && test -s conftest.$ac_objext; then
4614  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4615  ac_cv_c_bigendian=yes
4616fi
4617if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4618  if test "$ac_cv_c_bigendian" = unknown; then
4619    ac_cv_c_bigendian=no
4620  else
4621    # finding both strings is unlikely to happen, but who knows?
4622    ac_cv_c_bigendian=unknown
4623  fi
4624fi
4625else
4626  echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629
4630fi
4631
4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633else
4634  cat >conftest.$ac_ext <<_ACEOF
4635/* confdefs.h.  */
4636_ACEOF
4637cat confdefs.h >>conftest.$ac_ext
4638cat >>conftest.$ac_ext <<_ACEOF
4639/* end confdefs.h.  */
4640$ac_includes_default
4641int
4642main ()
4643{
4644
4645  /* Are we little or big endian?  From Harbison&Steele.  */
4646  union
4647  {
4648    long int l;
4649    char c[sizeof (long int)];
4650  } u;
4651  u.l = 1;
4652  return u.c[sizeof (long int) - 1] == 1;
4653
4654  ;
4655  return 0;
4656}
4657_ACEOF
4658rm -f conftest$ac_exeext
4659if { (ac_try="$ac_link"
4660case "(($ac_try" in
4661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662  *) ac_try_echo=$ac_try;;
4663esac
4664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665  (eval "$ac_link") 2>&5
4666  ac_status=$?
4667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4669  { (case "(($ac_try" in
4670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671  *) ac_try_echo=$ac_try;;
4672esac
4673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674  (eval "$ac_try") 2>&5
4675  ac_status=$?
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); }; }; then
4678  ac_cv_c_bigendian=no
4679else
4680  echo "$as_me: program exited with status $ac_status" >&5
4681echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684( exit $ac_status )
4685ac_cv_c_bigendian=yes
4686fi
4687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4688fi
4689
4690
4691fi
4692
4693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694fi
4695{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4696echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4697case $ac_cv_c_bigendian in
4698  yes)
4699
4700cat >>confdefs.h <<\_ACEOF
4701#define WORDS_BIGENDIAN 1
4702_ACEOF
4703 ;;
4704  no)
4705     ;;
4706  *)
4707    { { echo "$as_me:$LINENO: error: unknown endianness
4708presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4709echo "$as_me: error: unknown endianness
4710presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4711   { (exit 1); exit 1; }; } ;;
4712esac
4713
4714{ echo "$as_me:$LINENO: checking for inline" >&5
4715echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4716if test "${ac_cv_c_inline+set}" = set; then
4717  echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719  ac_cv_c_inline=no
4720for ac_kw in inline __inline__ __inline; do
4721  cat >conftest.$ac_ext <<_ACEOF
4722/* confdefs.h.  */
4723_ACEOF
4724cat confdefs.h >>conftest.$ac_ext
4725cat >>conftest.$ac_ext <<_ACEOF
4726/* end confdefs.h.  */
4727#ifndef __cplusplus
4728typedef int foo_t;
4729static $ac_kw foo_t static_foo () {return 0; }
4730$ac_kw foo_t foo () {return 0; }
4731#endif
4732
4733_ACEOF
4734rm -f conftest.$ac_objext
4735if { (ac_try="$ac_compile"
4736case "(($ac_try" in
4737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738  *) ac_try_echo=$ac_try;;
4739esac
4740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741  (eval "$ac_compile") 2>conftest.er1
4742  ac_status=$?
4743  grep -v '^ *+' conftest.er1 >conftest.err
4744  rm -f conftest.er1
4745  cat conftest.err >&5
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); } && {
4748	 test -z "$ac_c_werror_flag" ||
4749	 test ! -s conftest.err
4750       } && test -s conftest.$ac_objext; then
4751  ac_cv_c_inline=$ac_kw
4752else
4753  echo "$as_me: failed program was:" >&5
4754sed 's/^/| /' conftest.$ac_ext >&5
4755
4756
4757fi
4758
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760  test "$ac_cv_c_inline" != no && break
4761done
4762
4763fi
4764{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4765echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4766
4767
4768case $ac_cv_c_inline in
4769  inline | yes) ;;
4770  *)
4771    case $ac_cv_c_inline in
4772      no) ac_val=;;
4773      *) ac_val=$ac_cv_c_inline;;
4774    esac
4775    cat >>confdefs.h <<_ACEOF
4776#ifndef __cplusplus
4777#define inline $ac_val
4778#endif
4779_ACEOF
4780    ;;
4781esac
4782
4783
4784saved_CFLAGS="$CFLAGS";
4785c99_init=no
4786if test x"$c99_init" = x"no"; then
4787    { echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
4788echo $ECHO_N "checking for C99 designated initializers... $ECHO_C" >&6; }
4789    CFLAGS="$saved_CFLAGS";
4790    cat >conftest.$ac_ext <<_ACEOF
4791/* confdefs.h.  */
4792_ACEOF
4793cat confdefs.h >>conftest.$ac_ext
4794cat >>conftest.$ac_ext <<_ACEOF
4795/* end confdefs.h.  */
4796#include <stdio.h>
4797int
4798main ()
4799{
4800 struct foo {int x;char y;};
4801       struct foo bar = { .y = 'X', .x = 1 };
4802
4803  ;
4804  return 0;
4805}
4806_ACEOF
4807rm -f conftest.$ac_objext
4808if { (ac_try="$ac_compile"
4809case "(($ac_try" in
4810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811  *) ac_try_echo=$ac_try;;
4812esac
4813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814  (eval "$ac_compile") 2>conftest.er1
4815  ac_status=$?
4816  grep -v '^ *+' conftest.er1 >conftest.err
4817  rm -f conftest.er1
4818  cat conftest.err >&5
4819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820  (exit $ac_status); } && {
4821	 test -z "$ac_c_werror_flag" ||
4822	 test ! -s conftest.err
4823       } && test -s conftest.$ac_objext; then
4824  { echo "$as_me:$LINENO: result: yes" >&5
4825echo "${ECHO_T}yes" >&6; }; c99_init=yes
4826else
4827  echo "$as_me: failed program was:" >&5
4828sed 's/^/| /' conftest.$ac_ext >&5
4829
4830	{ echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6; }
4832fi
4833
4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835fi
4836if test x"$c99_init" = x"no"; then
4837    { echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
4838echo $ECHO_N "checking for C99 designated initializers with -AC99... $ECHO_C" >&6; }
4839    CFLAGS="$saved_CFLAGS -AC99";
4840    cat >conftest.$ac_ext <<_ACEOF
4841/* confdefs.h.  */
4842_ACEOF
4843cat confdefs.h >>conftest.$ac_ext
4844cat >>conftest.$ac_ext <<_ACEOF
4845/* end confdefs.h.  */
4846#include <stdio.h>
4847int
4848main ()
4849{
4850 struct foo {int x;char y;};
4851       struct foo bar = { .y = 'X', .x = 1 };
4852
4853  ;
4854  return 0;
4855}
4856_ACEOF
4857rm -f conftest.$ac_objext
4858if { (ac_try="$ac_compile"
4859case "(($ac_try" in
4860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861  *) ac_try_echo=$ac_try;;
4862esac
4863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864  (eval "$ac_compile") 2>conftest.er1
4865  ac_status=$?
4866  grep -v '^ *+' conftest.er1 >conftest.err
4867  rm -f conftest.er1
4868  cat conftest.err >&5
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); } && {
4871	 test -z "$ac_c_werror_flag" ||
4872	 test ! -s conftest.err
4873       } && test -s conftest.$ac_objext; then
4874  { echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6; }; c99_init=yes
4876else
4877  echo "$as_me: failed program was:" >&5
4878sed 's/^/| /' conftest.$ac_ext >&5
4879
4880	{ echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6; }
4882fi
4883
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885fi
4886if test x"$c99_init" = x"no"; then
4887    { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
4888echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=extc99... $ECHO_C" >&6; }
4889    CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
4890    cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h.  */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h.  */
4896#include <stdio.h>
4897int
4898main ()
4899{
4900 struct foo {int x;char y;};
4901       struct foo bar = { .y = 'X', .x = 1 };
4902
4903  ;
4904  return 0;
4905}
4906_ACEOF
4907rm -f conftest.$ac_objext
4908if { (ac_try="$ac_compile"
4909case "(($ac_try" in
4910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911  *) ac_try_echo=$ac_try;;
4912esac
4913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914  (eval "$ac_compile") 2>conftest.er1
4915  ac_status=$?
4916  grep -v '^ *+' conftest.er1 >conftest.err
4917  rm -f conftest.er1
4918  cat conftest.err >&5
4919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920  (exit $ac_status); } && {
4921	 test -z "$ac_c_werror_flag" ||
4922	 test ! -s conftest.err
4923       } && test -s conftest.$ac_objext; then
4924  { echo "$as_me:$LINENO: result: yes" >&5
4925echo "${ECHO_T}yes" >&6; }; c99_init=yes
4926else
4927  echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930	{ echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6; }
4932fi
4933
4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935fi
4936if test x"$c99_init" = x"no"; then
4937    { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
4938echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=stdc99... $ECHO_C" >&6; }
4939    CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
4940    cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h.  */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h.  */
4946#include <stdio.h>
4947int
4948main ()
4949{
4950 struct foo {int x;char y;};
4951       struct foo bar = { .y = 'X', .x = 1 };
4952
4953  ;
4954  return 0;
4955}
4956_ACEOF
4957rm -f conftest.$ac_objext
4958if { (ac_try="$ac_compile"
4959case "(($ac_try" in
4960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961  *) ac_try_echo=$ac_try;;
4962esac
4963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964  (eval "$ac_compile") 2>conftest.er1
4965  ac_status=$?
4966  grep -v '^ *+' conftest.er1 >conftest.err
4967  rm -f conftest.er1
4968  cat conftest.err >&5
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); } && {
4971	 test -z "$ac_c_werror_flag" ||
4972	 test ! -s conftest.err
4973       } && test -s conftest.$ac_objext; then
4974  { echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6; }; c99_init=yes
4976else
4977  echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980	{ echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6; }
4982fi
4983
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985fi
4986if test x"$c99_init" = x"no"; then
4987    { echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
4988echo $ECHO_N "checking for C99 designated initializers with -c99... $ECHO_C" >&6; }
4989    CFLAGS="$saved_CFLAGS -c99"
4990    cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h.  */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h.  */
4996#include <stdio.h>
4997int
4998main ()
4999{
5000 struct foo {int x;char y;};
5001       struct foo bar = { .y = 'X', .x = 1 };
5002
5003  ;
5004  return 0;
5005}
5006_ACEOF
5007rm -f conftest.$ac_objext
5008if { (ac_try="$ac_compile"
5009case "(($ac_try" in
5010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011  *) ac_try_echo=$ac_try;;
5012esac
5013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014  (eval "$ac_compile") 2>conftest.er1
5015  ac_status=$?
5016  grep -v '^ *+' conftest.er1 >conftest.err
5017  rm -f conftest.er1
5018  cat conftest.err >&5
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); } && {
5021	 test -z "$ac_c_werror_flag" ||
5022	 test ! -s conftest.err
5023       } && test -s conftest.$ac_objext; then
5024  { echo "$as_me:$LINENO: result: yes" >&5
5025echo "${ECHO_T}yes" >&6; }; c99_init=yes
5026else
5027  echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030	{ echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6; }
5032fi
5033
5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035fi
5036
5037if test "`uname`" = "HP-UX"; then
5038  if test "$ac_cv_c_compiler_gnu" = no; then
5039	# special override for broken HP-UX compiler - I can't find a way to test
5040	# this properly (its a compiler bug)
5041	CFLAGS="$CFLAGS -AC99";
5042	c99_init=yes;
5043  fi
5044fi
5045
5046if test x"$c99_init" = x"yes"; then
5047    saved_CFLAGS=""
5048
5049else
5050    CFLAGS="$saved_CFLAGS"
5051    saved_CFLAGS=""
5052    { echo "$as_me:$LINENO: WARNING: c99 structure initializer are not supported" >&5
5053echo "$as_me: WARNING: c99 structure initializer are not supported" >&2;}
5054fi
5055
5056
5057# Find a good install program.  We prefer a C program (faster),
5058# so one script is as good as another.  But avoid the broken or
5059# incompatible versions:
5060# SysV /etc/install, /usr/sbin/install
5061# SunOS /usr/etc/install
5062# IRIX /sbin/install
5063# AIX /bin/install
5064# AmigaOS /C/install, which installs bootblocks on floppy discs
5065# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5066# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5067# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5068# OS/2's system install, which has a completely different semantic
5069# ./install, which can be erroneously created by make from ./install.sh.
5070{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5071echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5072if test -z "$INSTALL"; then
5073if test "${ac_cv_path_install+set}" = set; then
5074  echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079  IFS=$as_save_IFS
5080  test -z "$as_dir" && as_dir=.
5081  # Account for people who put trailing slashes in PATH elements.
5082case $as_dir/ in
5083  ./ | .// | /cC/* | \
5084  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5085  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5086  /usr/ucb/* ) ;;
5087  *)
5088    # OSF1 and SCO ODT 3.0 have their own names for install.
5089    # Don't use installbsd from OSF since it installs stuff as root
5090    # by default.
5091    for ac_prog in ginstall scoinst install; do
5092      for ac_exec_ext in '' $ac_executable_extensions; do
5093	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5094	  if test $ac_prog = install &&
5095	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5096	    # AIX install.  It has an incompatible calling convention.
5097	    :
5098	  elif test $ac_prog = install &&
5099	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5100	    # program-specific install script used by HP pwplus--don't use.
5101	    :
5102	  else
5103	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5104	    break 3
5105	  fi
5106	fi
5107      done
5108    done
5109    ;;
5110esac
5111done
5112IFS=$as_save_IFS
5113
5114
5115fi
5116  if test "${ac_cv_path_install+set}" = set; then
5117    INSTALL=$ac_cv_path_install
5118  else
5119    # As a last resort, use the slow shell script.  Don't cache a
5120    # value for INSTALL within a source directory, because that will
5121    # break other packages using the cache if that directory is
5122    # removed, or if the value is a relative name.
5123    INSTALL=$ac_install_sh
5124  fi
5125fi
5126{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5127echo "${ECHO_T}$INSTALL" >&6; }
5128
5129# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5130# It thinks the first close brace ends the variable substitution.
5131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5132
5133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5134
5135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5136
5137
5138{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
5139echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5140if test "${ac_cv_search_strerror+set}" = set; then
5141  echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143  ac_func_search_save_LIBS=$LIBS
5144cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150
5151/* Override any GCC internal prototype to avoid an error.
5152   Use char because int might match the return type of a GCC
5153   builtin and then its argument prototype would still apply.  */
5154#ifdef __cplusplus
5155extern "C"
5156#endif
5157char strerror ();
5158int
5159main ()
5160{
5161return strerror ();
5162  ;
5163  return 0;
5164}
5165_ACEOF
5166for ac_lib in '' cposix; do
5167  if test -z "$ac_lib"; then
5168    ac_res="none required"
5169  else
5170    ac_res=-l$ac_lib
5171    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5172  fi
5173  rm -f conftest.$ac_objext conftest$ac_exeext
5174if { (ac_try="$ac_link"
5175case "(($ac_try" in
5176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177  *) ac_try_echo=$ac_try;;
5178esac
5179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180  (eval "$ac_link") 2>conftest.er1
5181  ac_status=$?
5182  grep -v '^ *+' conftest.er1 >conftest.err
5183  rm -f conftest.er1
5184  cat conftest.err >&5
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); } && {
5187	 test -z "$ac_c_werror_flag" ||
5188	 test ! -s conftest.err
5189       } && test -s conftest$ac_exeext &&
5190       $as_test_x conftest$ac_exeext; then
5191  ac_cv_search_strerror=$ac_res
5192else
5193  echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196
5197fi
5198
5199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5200      conftest$ac_exeext
5201  if test "${ac_cv_search_strerror+set}" = set; then
5202  break
5203fi
5204done
5205if test "${ac_cv_search_strerror+set}" = set; then
5206  :
5207else
5208  ac_cv_search_strerror=no
5209fi
5210rm conftest.$ac_ext
5211LIBS=$ac_func_search_save_LIBS
5212fi
5213{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5214echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5215ac_res=$ac_cv_search_strerror
5216if test "$ac_res" != no; then
5217  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5218
5219fi
5220
5221
5222  cat >>confdefs.h <<\EOF
5223#ifndef _XOPEN_SOURCE_EXTENDED
5224# define _XOPEN_SOURCE_EXTENDED 1
5225#endif
5226EOF
5227
5228
5229
5230
5231  cat >>confdefs.h <<\EOF
5232#ifndef _OSF_SOURCE
5233# define _OSF_SOURCE 1
5234#endif
5235EOF
5236
5237
5238
5239
5240# Check whether --enable-largefile was given.
5241if test "${enable_largefile+set}" = set; then
5242  enableval=$enable_largefile;
5243fi
5244
5245if test "$enable_largefile" != no; then
5246
5247  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5248echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5249if test "${ac_cv_sys_largefile_CC+set}" = set; then
5250  echo $ECHO_N "(cached) $ECHO_C" >&6
5251else
5252  ac_cv_sys_largefile_CC=no
5253     if test "$GCC" != yes; then
5254       ac_save_CC=$CC
5255       while :; do
5256	 # IRIX 6.2 and later do not support large files by default,
5257	 # so use the C compiler's -n32 option if that helps.
5258	 cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h.  */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h.  */
5264#include <sys/types.h>
5265 /* Check that off_t can represent 2**63 - 1 correctly.
5266    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5267    since some C++ compilers masquerading as C compilers
5268    incorrectly reject 9223372036854775807.  */
5269#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5270  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5271		       && LARGE_OFF_T % 2147483647 == 1)
5272		      ? 1 : -1];
5273int
5274main ()
5275{
5276
5277  ;
5278  return 0;
5279}
5280_ACEOF
5281	 rm -f conftest.$ac_objext
5282if { (ac_try="$ac_compile"
5283case "(($ac_try" in
5284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285  *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288  (eval "$ac_compile") 2>conftest.er1
5289  ac_status=$?
5290  grep -v '^ *+' conftest.er1 >conftest.err
5291  rm -f conftest.er1
5292  cat conftest.err >&5
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); } && {
5295	 test -z "$ac_c_werror_flag" ||
5296	 test ! -s conftest.err
5297       } && test -s conftest.$ac_objext; then
5298  break
5299else
5300  echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303
5304fi
5305
5306rm -f core conftest.err conftest.$ac_objext
5307	 CC="$CC -n32"
5308	 rm -f conftest.$ac_objext
5309if { (ac_try="$ac_compile"
5310case "(($ac_try" in
5311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312  *) ac_try_echo=$ac_try;;
5313esac
5314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315  (eval "$ac_compile") 2>conftest.er1
5316  ac_status=$?
5317  grep -v '^ *+' conftest.er1 >conftest.err
5318  rm -f conftest.er1
5319  cat conftest.err >&5
5320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321  (exit $ac_status); } && {
5322	 test -z "$ac_c_werror_flag" ||
5323	 test ! -s conftest.err
5324       } && test -s conftest.$ac_objext; then
5325  ac_cv_sys_largefile_CC=' -n32'; break
5326else
5327  echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330
5331fi
5332
5333rm -f core conftest.err conftest.$ac_objext
5334	 break
5335       done
5336       CC=$ac_save_CC
5337       rm -f conftest.$ac_ext
5338    fi
5339fi
5340{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5341echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5342  if test "$ac_cv_sys_largefile_CC" != no; then
5343    CC=$CC$ac_cv_sys_largefile_CC
5344  fi
5345
5346  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5347echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5348if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5349  echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351  while :; do
5352  cat >conftest.$ac_ext <<_ACEOF
5353/* confdefs.h.  */
5354_ACEOF
5355cat confdefs.h >>conftest.$ac_ext
5356cat >>conftest.$ac_ext <<_ACEOF
5357/* end confdefs.h.  */
5358#include <sys/types.h>
5359 /* Check that off_t can represent 2**63 - 1 correctly.
5360    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5361    since some C++ compilers masquerading as C compilers
5362    incorrectly reject 9223372036854775807.  */
5363#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5364  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5365		       && LARGE_OFF_T % 2147483647 == 1)
5366		      ? 1 : -1];
5367int
5368main ()
5369{
5370
5371  ;
5372  return 0;
5373}
5374_ACEOF
5375rm -f conftest.$ac_objext
5376if { (ac_try="$ac_compile"
5377case "(($ac_try" in
5378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379  *) ac_try_echo=$ac_try;;
5380esac
5381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382  (eval "$ac_compile") 2>conftest.er1
5383  ac_status=$?
5384  grep -v '^ *+' conftest.er1 >conftest.err
5385  rm -f conftest.er1
5386  cat conftest.err >&5
5387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388  (exit $ac_status); } && {
5389	 test -z "$ac_c_werror_flag" ||
5390	 test ! -s conftest.err
5391       } && test -s conftest.$ac_objext; then
5392  ac_cv_sys_file_offset_bits=no; break
5393else
5394  echo "$as_me: failed program was:" >&5
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
5397
5398fi
5399
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401  cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h.  */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h.  */
5407#define _FILE_OFFSET_BITS 64
5408#include <sys/types.h>
5409 /* Check that off_t can represent 2**63 - 1 correctly.
5410    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5411    since some C++ compilers masquerading as C compilers
5412    incorrectly reject 9223372036854775807.  */
5413#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5414  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5415		       && LARGE_OFF_T % 2147483647 == 1)
5416		      ? 1 : -1];
5417int
5418main ()
5419{
5420
5421  ;
5422  return 0;
5423}
5424_ACEOF
5425rm -f conftest.$ac_objext
5426if { (ac_try="$ac_compile"
5427case "(($ac_try" in
5428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429  *) ac_try_echo=$ac_try;;
5430esac
5431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432  (eval "$ac_compile") 2>conftest.er1
5433  ac_status=$?
5434  grep -v '^ *+' conftest.er1 >conftest.err
5435  rm -f conftest.er1
5436  cat conftest.err >&5
5437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438  (exit $ac_status); } && {
5439	 test -z "$ac_c_werror_flag" ||
5440	 test ! -s conftest.err
5441       } && test -s conftest.$ac_objext; then
5442  ac_cv_sys_file_offset_bits=64; break
5443else
5444  echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447
5448fi
5449
5450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451  ac_cv_sys_file_offset_bits=unknown
5452  break
5453done
5454fi
5455{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5456echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5457case $ac_cv_sys_file_offset_bits in #(
5458  no | unknown) ;;
5459  *)
5460cat >>confdefs.h <<_ACEOF
5461#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5462_ACEOF
5463;;
5464esac
5465rm -f conftest*
5466  if test $ac_cv_sys_file_offset_bits = unknown; then
5467    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5468echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5469if test "${ac_cv_sys_large_files+set}" = set; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  while :; do
5473  cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h.  */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h.  */
5479#include <sys/types.h>
5480 /* Check that off_t can represent 2**63 - 1 correctly.
5481    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5482    since some C++ compilers masquerading as C compilers
5483    incorrectly reject 9223372036854775807.  */
5484#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5485  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5486		       && LARGE_OFF_T % 2147483647 == 1)
5487		      ? 1 : -1];
5488int
5489main ()
5490{
5491
5492  ;
5493  return 0;
5494}
5495_ACEOF
5496rm -f conftest.$ac_objext
5497if { (ac_try="$ac_compile"
5498case "(($ac_try" in
5499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500  *) ac_try_echo=$ac_try;;
5501esac
5502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503  (eval "$ac_compile") 2>conftest.er1
5504  ac_status=$?
5505  grep -v '^ *+' conftest.er1 >conftest.err
5506  rm -f conftest.er1
5507  cat conftest.err >&5
5508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509  (exit $ac_status); } && {
5510	 test -z "$ac_c_werror_flag" ||
5511	 test ! -s conftest.err
5512       } && test -s conftest.$ac_objext; then
5513  ac_cv_sys_large_files=no; break
5514else
5515  echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518
5519fi
5520
5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522  cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h.  */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h.  */
5528#define _LARGE_FILES 1
5529#include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532    since some C++ compilers masquerading as C compilers
5533    incorrectly reject 9223372036854775807.  */
5534#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536		       && LARGE_OFF_T % 2147483647 == 1)
5537		      ? 1 : -1];
5538int
5539main ()
5540{
5541
5542  ;
5543  return 0;
5544}
5545_ACEOF
5546rm -f conftest.$ac_objext
5547if { (ac_try="$ac_compile"
5548case "(($ac_try" in
5549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550  *) ac_try_echo=$ac_try;;
5551esac
5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553  (eval "$ac_compile") 2>conftest.er1
5554  ac_status=$?
5555  grep -v '^ *+' conftest.er1 >conftest.err
5556  rm -f conftest.er1
5557  cat conftest.err >&5
5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559  (exit $ac_status); } && {
5560	 test -z "$ac_c_werror_flag" ||
5561	 test ! -s conftest.err
5562       } && test -s conftest.$ac_objext; then
5563  ac_cv_sys_large_files=1; break
5564else
5565  echo "$as_me: failed program was:" >&5
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
5568
5569fi
5570
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572  ac_cv_sys_large_files=unknown
5573  break
5574done
5575fi
5576{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5577echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5578case $ac_cv_sys_large_files in #(
5579  no | unknown) ;;
5580  *)
5581cat >>confdefs.h <<_ACEOF
5582#define _LARGE_FILES $ac_cv_sys_large_files
5583_ACEOF
5584;;
5585esac
5586rm -f conftest*
5587  fi
5588fi
5589
5590
5591case "$host_os" in
5592	*irix6*) cat >> confdefs.h <<\EOF
5593#include <standards.h>
5594EOF
5595
5596		;;
5597	*hpux*)
5598		# mmap on HPUX is completely broken...
5599
5600cat >>confdefs.h <<\_ACEOF
5601#define MMAP_BLACKLIST 1
5602_ACEOF
5603
5604		if test "`uname -r`" = "B.11.11"; then
5605			{ echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.11 header bug workaround" >&5
5606echo "$as_me: WARNING: Enabling HPUX 11.11 header bug workaround" >&2;}
5607			CFLAGS="$CFLAGS -D_LARGEFILE64_SUPPORT -D__LP64__ -DO_LARGEFILE=04000"
5608		fi
5609		if test "`uname -r`" = "B.11.23"; then
5610			{ echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&5
5611echo "$as_me: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&2;}
5612			CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
5613		fi
5614		;;
5615	*aix*)
5616
5617cat >>confdefs.h <<\_ACEOF
5618#define BROKEN_STRNDUP 1
5619_ACEOF
5620
5621
5622cat >>confdefs.h <<\_ACEOF
5623#define BROKEN_STRNLEN 1
5624_ACEOF
5625
5626		if test "${GCC}" != "yes"; then
5627			## for funky AIX compiler using strncpy()
5628			CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
5629		fi
5630		;;
5631	#
5632	# VOS may need to have POSIX support and System V compatibility enabled.
5633	#
5634	*vos*)
5635		case "$CFLAGS" in
5636			*-D_POSIX_C_SOURCE*);;
5637			*)
5638				CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
5639
5640cat >>confdefs.h <<\_ACEOF
5641#define _POSIX_C_SOURCE 200112L
5642_ACEOF
5643
5644				;;
5645		esac
5646		case "$CFLAGS" in
5647			*-D_SYSV*|*-D_SVID_SOURCE*);;
5648			*)
5649				CFLAGS="$CFLAGS -D_SYSV"
5650
5651cat >>confdefs.h <<\_ACEOF
5652#define _SYSV 1
5653_ACEOF
5654
5655				;;
5656		esac
5657		;;
5658esac
5659
5660
5661
5662
5663for ac_header in standards.h
5664do
5665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5667  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5670  echo $ECHO_N "(cached) $ECHO_C" >&6
5671fi
5672ac_res=`eval echo '${'$as_ac_Header'}'`
5673	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5674echo "${ECHO_T}$ac_res" >&6; }
5675else
5676  # Is the header compilable?
5677{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685$ac_includes_default
5686#include <$ac_header>
5687_ACEOF
5688rm -f conftest.$ac_objext
5689if { (ac_try="$ac_compile"
5690case "(($ac_try" in
5691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692  *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695  (eval "$ac_compile") 2>conftest.er1
5696  ac_status=$?
5697  grep -v '^ *+' conftest.er1 >conftest.err
5698  rm -f conftest.er1
5699  cat conftest.err >&5
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); } && {
5702	 test -z "$ac_c_werror_flag" ||
5703	 test ! -s conftest.err
5704       } && test -s conftest.$ac_objext; then
5705  ac_header_compiler=yes
5706else
5707  echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710	ac_header_compiler=no
5711fi
5712
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5715echo "${ECHO_T}$ac_header_compiler" >&6; }
5716
5717# Is the header present?
5718{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5720cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h.  */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h.  */
5726#include <$ac_header>
5727_ACEOF
5728if { (ac_try="$ac_cpp conftest.$ac_ext"
5729case "(($ac_try" in
5730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731  *) ac_try_echo=$ac_try;;
5732esac
5733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5735  ac_status=$?
5736  grep -v '^ *+' conftest.er1 >conftest.err
5737  rm -f conftest.er1
5738  cat conftest.err >&5
5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740  (exit $ac_status); } >/dev/null && {
5741	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5742	 test ! -s conftest.err
5743       }; then
5744  ac_header_preproc=yes
5745else
5746  echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749  ac_header_preproc=no
5750fi
5751
5752rm -f conftest.err conftest.$ac_ext
5753{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5754echo "${ECHO_T}$ac_header_preproc" >&6; }
5755
5756# So?  What about this header?
5757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5758  yes:no: )
5759    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5761    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5763    ac_header_preproc=yes
5764    ;;
5765  no:yes:* )
5766    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5768    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5769echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5770    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5772    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5773echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5774    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5776    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5778
5779    ;;
5780esac
5781{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786  eval "$as_ac_Header=\$ac_header_preproc"
5787fi
5788ac_res=`eval echo '${'$as_ac_Header'}'`
5789	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5790echo "${ECHO_T}$ac_res" >&6; }
5791
5792fi
5793if test `eval echo '${'$as_ac_Header'}'` = yes; then
5794  cat >>confdefs.h <<_ACEOF
5795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5796_ACEOF
5797
5798fi
5799
5800done
5801
5802
5803# Solaris needs HAVE_LONG_LONG defined
5804{ echo "$as_me:$LINENO: checking for long long" >&5
5805echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5806if test "${ac_cv_type_long_long+set}" = set; then
5807  echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809  cat >conftest.$ac_ext <<_ACEOF
5810/* confdefs.h.  */
5811_ACEOF
5812cat confdefs.h >>conftest.$ac_ext
5813cat >>conftest.$ac_ext <<_ACEOF
5814/* end confdefs.h.  */
5815$ac_includes_default
5816typedef long long ac__type_new_;
5817int
5818main ()
5819{
5820if ((ac__type_new_ *) 0)
5821  return 0;
5822if (sizeof (ac__type_new_))
5823  return 0;
5824  ;
5825  return 0;
5826}
5827_ACEOF
5828rm -f conftest.$ac_objext
5829if { (ac_try="$ac_compile"
5830case "(($ac_try" in
5831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832  *) ac_try_echo=$ac_try;;
5833esac
5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835  (eval "$ac_compile") 2>conftest.er1
5836  ac_status=$?
5837  grep -v '^ *+' conftest.er1 >conftest.err
5838  rm -f conftest.er1
5839  cat conftest.err >&5
5840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841  (exit $ac_status); } && {
5842	 test -z "$ac_c_werror_flag" ||
5843	 test ! -s conftest.err
5844       } && test -s conftest.$ac_objext; then
5845  ac_cv_type_long_long=yes
5846else
5847  echo "$as_me: failed program was:" >&5
5848sed 's/^/| /' conftest.$ac_ext >&5
5849
5850	ac_cv_type_long_long=no
5851fi
5852
5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854fi
5855{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5856echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5857if test $ac_cv_type_long_long = yes; then
5858
5859cat >>confdefs.h <<_ACEOF
5860#define HAVE_LONG_LONG 1
5861_ACEOF
5862
5863
5864fi
5865
5866
5867{ echo "$as_me:$LINENO: checking for uint_t" >&5
5868echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
5869if test "${ac_cv_type_uint_t+set}" = set; then
5870  echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872  cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h.  */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h.  */
5878$ac_includes_default
5879typedef uint_t ac__type_new_;
5880int
5881main ()
5882{
5883if ((ac__type_new_ *) 0)
5884  return 0;
5885if (sizeof (ac__type_new_))
5886  return 0;
5887  ;
5888  return 0;
5889}
5890_ACEOF
5891rm -f conftest.$ac_objext
5892if { (ac_try="$ac_compile"
5893case "(($ac_try" in
5894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895  *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898  (eval "$ac_compile") 2>conftest.er1
5899  ac_status=$?
5900  grep -v '^ *+' conftest.er1 >conftest.err
5901  rm -f conftest.er1
5902  cat conftest.err >&5
5903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904  (exit $ac_status); } && {
5905	 test -z "$ac_c_werror_flag" ||
5906	 test ! -s conftest.err
5907       } && test -s conftest.$ac_objext; then
5908  ac_cv_type_uint_t=yes
5909else
5910  echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913	ac_cv_type_uint_t=no
5914fi
5915
5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917fi
5918{ echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
5919echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
5920if test $ac_cv_type_uint_t = yes; then
5921  :
5922else
5923
5924cat >>confdefs.h <<_ACEOF
5925#define uint_t unsigned int
5926_ACEOF
5927
5928fi
5929
5930{ echo "$as_me:$LINENO: checking for int8_t" >&5
5931echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5932if test "${ac_cv_type_int8_t+set}" = set; then
5933  echo $ECHO_N "(cached) $ECHO_C" >&6
5934else
5935  cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h.  */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h.  */
5941$ac_includes_default
5942typedef int8_t ac__type_new_;
5943int
5944main ()
5945{
5946if ((ac__type_new_ *) 0)
5947  return 0;
5948if (sizeof (ac__type_new_))
5949  return 0;
5950  ;
5951  return 0;
5952}
5953_ACEOF
5954rm -f conftest.$ac_objext
5955if { (ac_try="$ac_compile"
5956case "(($ac_try" in
5957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958  *) ac_try_echo=$ac_try;;
5959esac
5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961  (eval "$ac_compile") 2>conftest.er1
5962  ac_status=$?
5963  grep -v '^ *+' conftest.er1 >conftest.err
5964  rm -f conftest.er1
5965  cat conftest.err >&5
5966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967  (exit $ac_status); } && {
5968	 test -z "$ac_c_werror_flag" ||
5969	 test ! -s conftest.err
5970       } && test -s conftest.$ac_objext; then
5971  ac_cv_type_int8_t=yes
5972else
5973  echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976	ac_cv_type_int8_t=no
5977fi
5978
5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980fi
5981{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
5982echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
5983if test $ac_cv_type_int8_t = yes; then
5984  :
5985else
5986
5987cat >>confdefs.h <<_ACEOF
5988#define int8_t char
5989_ACEOF
5990
5991fi
5992
5993{ echo "$as_me:$LINENO: checking for uint8_t" >&5
5994echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5995if test "${ac_cv_type_uint8_t+set}" = set; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998  cat >conftest.$ac_ext <<_ACEOF
5999/* confdefs.h.  */
6000_ACEOF
6001cat confdefs.h >>conftest.$ac_ext
6002cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h.  */
6004$ac_includes_default
6005typedef uint8_t ac__type_new_;
6006int
6007main ()
6008{
6009if ((ac__type_new_ *) 0)
6010  return 0;
6011if (sizeof (ac__type_new_))
6012  return 0;
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (ac_try="$ac_compile"
6019case "(($ac_try" in
6020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021  *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024  (eval "$ac_compile") 2>conftest.er1
6025  ac_status=$?
6026  grep -v '^ *+' conftest.er1 >conftest.err
6027  rm -f conftest.er1
6028  cat conftest.err >&5
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); } && {
6031	 test -z "$ac_c_werror_flag" ||
6032	 test ! -s conftest.err
6033       } && test -s conftest.$ac_objext; then
6034  ac_cv_type_uint8_t=yes
6035else
6036  echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039	ac_cv_type_uint8_t=no
6040fi
6041
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043fi
6044{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6045echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
6046if test $ac_cv_type_uint8_t = yes; then
6047  :
6048else
6049
6050cat >>confdefs.h <<_ACEOF
6051#define uint8_t unsigned char
6052_ACEOF
6053
6054fi
6055
6056{ echo "$as_me:$LINENO: checking for int16_t" >&5
6057echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
6058if test "${ac_cv_type_int16_t+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061  cat >conftest.$ac_ext <<_ACEOF
6062/* confdefs.h.  */
6063_ACEOF
6064cat confdefs.h >>conftest.$ac_ext
6065cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h.  */
6067$ac_includes_default
6068typedef int16_t ac__type_new_;
6069int
6070main ()
6071{
6072if ((ac__type_new_ *) 0)
6073  return 0;
6074if (sizeof (ac__type_new_))
6075  return 0;
6076  ;
6077  return 0;
6078}
6079_ACEOF
6080rm -f conftest.$ac_objext
6081if { (ac_try="$ac_compile"
6082case "(($ac_try" in
6083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084  *) ac_try_echo=$ac_try;;
6085esac
6086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087  (eval "$ac_compile") 2>conftest.er1
6088  ac_status=$?
6089  grep -v '^ *+' conftest.er1 >conftest.err
6090  rm -f conftest.er1
6091  cat conftest.err >&5
6092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093  (exit $ac_status); } && {
6094	 test -z "$ac_c_werror_flag" ||
6095	 test ! -s conftest.err
6096       } && test -s conftest.$ac_objext; then
6097  ac_cv_type_int16_t=yes
6098else
6099  echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
6102	ac_cv_type_int16_t=no
6103fi
6104
6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106fi
6107{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6108echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
6109if test $ac_cv_type_int16_t = yes; then
6110  :
6111else
6112
6113cat >>confdefs.h <<_ACEOF
6114#define int16_t short
6115_ACEOF
6116
6117fi
6118
6119{ echo "$as_me:$LINENO: checking for uint16_t" >&5
6120echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6121if test "${ac_cv_type_uint16_t+set}" = set; then
6122  echo $ECHO_N "(cached) $ECHO_C" >&6
6123else
6124  cat >conftest.$ac_ext <<_ACEOF
6125/* confdefs.h.  */
6126_ACEOF
6127cat confdefs.h >>conftest.$ac_ext
6128cat >>conftest.$ac_ext <<_ACEOF
6129/* end confdefs.h.  */
6130$ac_includes_default
6131typedef uint16_t ac__type_new_;
6132int
6133main ()
6134{
6135if ((ac__type_new_ *) 0)
6136  return 0;
6137if (sizeof (ac__type_new_))
6138  return 0;
6139  ;
6140  return 0;
6141}
6142_ACEOF
6143rm -f conftest.$ac_objext
6144if { (ac_try="$ac_compile"
6145case "(($ac_try" in
6146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147  *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150  (eval "$ac_compile") 2>conftest.er1
6151  ac_status=$?
6152  grep -v '^ *+' conftest.er1 >conftest.err
6153  rm -f conftest.er1
6154  cat conftest.err >&5
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); } && {
6157	 test -z "$ac_c_werror_flag" ||
6158	 test ! -s conftest.err
6159       } && test -s conftest.$ac_objext; then
6160  ac_cv_type_uint16_t=yes
6161else
6162  echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165	ac_cv_type_uint16_t=no
6166fi
6167
6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169fi
6170{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6171echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6172if test $ac_cv_type_uint16_t = yes; then
6173  :
6174else
6175
6176cat >>confdefs.h <<_ACEOF
6177#define uint16_t unsigned short
6178_ACEOF
6179
6180fi
6181
6182{ echo "$as_me:$LINENO: checking for int32_t" >&5
6183echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
6184if test "${ac_cv_type_int32_t+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187  cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h.  */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h.  */
6193$ac_includes_default
6194typedef int32_t ac__type_new_;
6195int
6196main ()
6197{
6198if ((ac__type_new_ *) 0)
6199  return 0;
6200if (sizeof (ac__type_new_))
6201  return 0;
6202  ;
6203  return 0;
6204}
6205_ACEOF
6206rm -f conftest.$ac_objext
6207if { (ac_try="$ac_compile"
6208case "(($ac_try" in
6209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210  *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213  (eval "$ac_compile") 2>conftest.er1
6214  ac_status=$?
6215  grep -v '^ *+' conftest.er1 >conftest.err
6216  rm -f conftest.er1
6217  cat conftest.err >&5
6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); } && {
6220	 test -z "$ac_c_werror_flag" ||
6221	 test ! -s conftest.err
6222       } && test -s conftest.$ac_objext; then
6223  ac_cv_type_int32_t=yes
6224else
6225  echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228	ac_cv_type_int32_t=no
6229fi
6230
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232fi
6233{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6234echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
6235if test $ac_cv_type_int32_t = yes; then
6236  :
6237else
6238
6239cat >>confdefs.h <<_ACEOF
6240#define int32_t long
6241_ACEOF
6242
6243fi
6244
6245{ echo "$as_me:$LINENO: checking for uint32_t" >&5
6246echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6247if test "${ac_cv_type_uint32_t+set}" = set; then
6248  echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250  cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h.  */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h.  */
6256$ac_includes_default
6257typedef uint32_t ac__type_new_;
6258int
6259main ()
6260{
6261if ((ac__type_new_ *) 0)
6262  return 0;
6263if (sizeof (ac__type_new_))
6264  return 0;
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269rm -f conftest.$ac_objext
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273  *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276  (eval "$ac_compile") 2>conftest.er1
6277  ac_status=$?
6278  grep -v '^ *+' conftest.er1 >conftest.err
6279  rm -f conftest.er1
6280  cat conftest.err >&5
6281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282  (exit $ac_status); } && {
6283	 test -z "$ac_c_werror_flag" ||
6284	 test ! -s conftest.err
6285       } && test -s conftest.$ac_objext; then
6286  ac_cv_type_uint32_t=yes
6287else
6288  echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291	ac_cv_type_uint32_t=no
6292fi
6293
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295fi
6296{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6297echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6298if test $ac_cv_type_uint32_t = yes; then
6299  :
6300else
6301
6302cat >>confdefs.h <<_ACEOF
6303#define uint32_t unsigned long
6304_ACEOF
6305
6306fi
6307
6308{ echo "$as_me:$LINENO: checking for int64_t" >&5
6309echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
6310if test "${ac_cv_type_int64_t+set}" = set; then
6311  echo $ECHO_N "(cached) $ECHO_C" >&6
6312else
6313  cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h.  */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h.  */
6319$ac_includes_default
6320typedef int64_t ac__type_new_;
6321int
6322main ()
6323{
6324if ((ac__type_new_ *) 0)
6325  return 0;
6326if (sizeof (ac__type_new_))
6327  return 0;
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332rm -f conftest.$ac_objext
6333if { (ac_try="$ac_compile"
6334case "(($ac_try" in
6335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336  *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339  (eval "$ac_compile") 2>conftest.er1
6340  ac_status=$?
6341  grep -v '^ *+' conftest.er1 >conftest.err
6342  rm -f conftest.er1
6343  cat conftest.err >&5
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); } && {
6346	 test -z "$ac_c_werror_flag" ||
6347	 test ! -s conftest.err
6348       } && test -s conftest.$ac_objext; then
6349  ac_cv_type_int64_t=yes
6350else
6351  echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354	ac_cv_type_int64_t=no
6355fi
6356
6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358fi
6359{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6360echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
6361if test $ac_cv_type_int64_t = yes; then
6362  :
6363else
6364
6365cat >>confdefs.h <<_ACEOF
6366#define int64_t long long
6367_ACEOF
6368
6369fi
6370
6371{ echo "$as_me:$LINENO: checking for uint64_t" >&5
6372echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6373if test "${ac_cv_type_uint64_t+set}" = set; then
6374  echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376  cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h.  */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h.  */
6382$ac_includes_default
6383typedef uint64_t ac__type_new_;
6384int
6385main ()
6386{
6387if ((ac__type_new_ *) 0)
6388  return 0;
6389if (sizeof (ac__type_new_))
6390  return 0;
6391  ;
6392  return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (ac_try="$ac_compile"
6397case "(($ac_try" in
6398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399  *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402  (eval "$ac_compile") 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } && {
6409	 test -z "$ac_c_werror_flag" ||
6410	 test ! -s conftest.err
6411       } && test -s conftest.$ac_objext; then
6412  ac_cv_type_uint64_t=yes
6413else
6414  echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417	ac_cv_type_uint64_t=no
6418fi
6419
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421fi
6422{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6423echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6424if test $ac_cv_type_uint64_t = yes; then
6425  :
6426else
6427
6428cat >>confdefs.h <<_ACEOF
6429#define uint64_t unsigned long long
6430_ACEOF
6431
6432fi
6433
6434
6435{ echo "$as_me:$LINENO: checking for size_t" >&5
6436echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6437if test "${ac_cv_type_size_t+set}" = set; then
6438  echo $ECHO_N "(cached) $ECHO_C" >&6
6439else
6440  cat >conftest.$ac_ext <<_ACEOF
6441/* confdefs.h.  */
6442_ACEOF
6443cat confdefs.h >>conftest.$ac_ext
6444cat >>conftest.$ac_ext <<_ACEOF
6445/* end confdefs.h.  */
6446$ac_includes_default
6447typedef size_t ac__type_new_;
6448int
6449main ()
6450{
6451if ((ac__type_new_ *) 0)
6452  return 0;
6453if (sizeof (ac__type_new_))
6454  return 0;
6455  ;
6456  return 0;
6457}
6458_ACEOF
6459rm -f conftest.$ac_objext
6460if { (ac_try="$ac_compile"
6461case "(($ac_try" in
6462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463  *) ac_try_echo=$ac_try;;
6464esac
6465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466  (eval "$ac_compile") 2>conftest.er1
6467  ac_status=$?
6468  grep -v '^ *+' conftest.er1 >conftest.err
6469  rm -f conftest.er1
6470  cat conftest.err >&5
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); } && {
6473	 test -z "$ac_c_werror_flag" ||
6474	 test ! -s conftest.err
6475       } && test -s conftest.$ac_objext; then
6476  ac_cv_type_size_t=yes
6477else
6478  echo "$as_me: failed program was:" >&5
6479sed 's/^/| /' conftest.$ac_ext >&5
6480
6481	ac_cv_type_size_t=no
6482fi
6483
6484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485fi
6486{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6487echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6488if test $ac_cv_type_size_t = yes; then
6489  :
6490else
6491
6492cat >>confdefs.h <<_ACEOF
6493#define size_t unsigned int
6494_ACEOF
6495
6496fi
6497
6498{ echo "$as_me:$LINENO: checking for ssize_t" >&5
6499echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6500if test "${ac_cv_type_ssize_t+set}" = set; then
6501  echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503  cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509$ac_includes_default
6510typedef ssize_t ac__type_new_;
6511int
6512main ()
6513{
6514if ((ac__type_new_ *) 0)
6515  return 0;
6516if (sizeof (ac__type_new_))
6517  return 0;
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522rm -f conftest.$ac_objext
6523if { (ac_try="$ac_compile"
6524case "(($ac_try" in
6525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526  *) ac_try_echo=$ac_try;;
6527esac
6528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529  (eval "$ac_compile") 2>conftest.er1
6530  ac_status=$?
6531  grep -v '^ *+' conftest.er1 >conftest.err
6532  rm -f conftest.er1
6533  cat conftest.err >&5
6534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535  (exit $ac_status); } && {
6536	 test -z "$ac_c_werror_flag" ||
6537	 test ! -s conftest.err
6538       } && test -s conftest.$ac_objext; then
6539  ac_cv_type_ssize_t=yes
6540else
6541  echo "$as_me: failed program was:" >&5
6542sed 's/^/| /' conftest.$ac_ext >&5
6543
6544	ac_cv_type_ssize_t=no
6545fi
6546
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
6549{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6550echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6551if test $ac_cv_type_ssize_t = yes; then
6552  :
6553else
6554
6555cat >>confdefs.h <<_ACEOF
6556#define ssize_t int
6557_ACEOF
6558
6559fi
6560
6561
6562{ echo "$as_me:$LINENO: checking for int" >&5
6563echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6564if test "${ac_cv_type_int+set}" = set; then
6565  echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567  cat >conftest.$ac_ext <<_ACEOF
6568/* confdefs.h.  */
6569_ACEOF
6570cat confdefs.h >>conftest.$ac_ext
6571cat >>conftest.$ac_ext <<_ACEOF
6572/* end confdefs.h.  */
6573$ac_includes_default
6574typedef int ac__type_new_;
6575int
6576main ()
6577{
6578if ((ac__type_new_ *) 0)
6579  return 0;
6580if (sizeof (ac__type_new_))
6581  return 0;
6582  ;
6583  return 0;
6584}
6585_ACEOF
6586rm -f conftest.$ac_objext
6587if { (ac_try="$ac_compile"
6588case "(($ac_try" in
6589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590  *) ac_try_echo=$ac_try;;
6591esac
6592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593  (eval "$ac_compile") 2>conftest.er1
6594  ac_status=$?
6595  grep -v '^ *+' conftest.er1 >conftest.err
6596  rm -f conftest.er1
6597  cat conftest.err >&5
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); } && {
6600	 test -z "$ac_c_werror_flag" ||
6601	 test ! -s conftest.err
6602       } && test -s conftest.$ac_objext; then
6603  ac_cv_type_int=yes
6604else
6605  echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608	ac_cv_type_int=no
6609fi
6610
6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612fi
6613{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6614echo "${ECHO_T}$ac_cv_type_int" >&6; }
6615
6616# The cast to long int works around a bug in the HP C Compiler
6617# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6618# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6619# This bug is HP SR number 8606223364.
6620{ echo "$as_me:$LINENO: checking size of int" >&5
6621echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6622if test "${ac_cv_sizeof_int+set}" = set; then
6623  echo $ECHO_N "(cached) $ECHO_C" >&6
6624else
6625  if test "$cross_compiling" = yes; then
6626  # Depending upon the size, compute the lo and hi bounds.
6627cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633$ac_includes_default
6634   typedef int ac__type_sizeof_;
6635int
6636main ()
6637{
6638static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6639test_array [0] = 0
6640
6641  ;
6642  return 0;
6643}
6644_ACEOF
6645rm -f conftest.$ac_objext
6646if { (ac_try="$ac_compile"
6647case "(($ac_try" in
6648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649  *) ac_try_echo=$ac_try;;
6650esac
6651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652  (eval "$ac_compile") 2>conftest.er1
6653  ac_status=$?
6654  grep -v '^ *+' conftest.er1 >conftest.err
6655  rm -f conftest.er1
6656  cat conftest.err >&5
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); } && {
6659	 test -z "$ac_c_werror_flag" ||
6660	 test ! -s conftest.err
6661       } && test -s conftest.$ac_objext; then
6662  ac_lo=0 ac_mid=0
6663  while :; do
6664    cat >conftest.$ac_ext <<_ACEOF
6665/* confdefs.h.  */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
6669/* end confdefs.h.  */
6670$ac_includes_default
6671   typedef int ac__type_sizeof_;
6672int
6673main ()
6674{
6675static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6676test_array [0] = 0
6677
6678  ;
6679  return 0;
6680}
6681_ACEOF
6682rm -f conftest.$ac_objext
6683if { (ac_try="$ac_compile"
6684case "(($ac_try" in
6685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686  *) ac_try_echo=$ac_try;;
6687esac
6688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689  (eval "$ac_compile") 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } && {
6696	 test -z "$ac_c_werror_flag" ||
6697	 test ! -s conftest.err
6698       } && test -s conftest.$ac_objext; then
6699  ac_hi=$ac_mid; break
6700else
6701  echo "$as_me: failed program was:" >&5
6702sed 's/^/| /' conftest.$ac_ext >&5
6703
6704	ac_lo=`expr $ac_mid + 1`
6705			if test $ac_lo -le $ac_mid; then
6706			  ac_lo= ac_hi=
6707			  break
6708			fi
6709			ac_mid=`expr 2 '*' $ac_mid + 1`
6710fi
6711
6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713  done
6714else
6715  echo "$as_me: failed program was:" >&5
6716sed 's/^/| /' conftest.$ac_ext >&5
6717
6718	cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h.  */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h.  */
6724$ac_includes_default
6725   typedef int ac__type_sizeof_;
6726int
6727main ()
6728{
6729static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6730test_array [0] = 0
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736rm -f conftest.$ac_objext
6737if { (ac_try="$ac_compile"
6738case "(($ac_try" in
6739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740  *) ac_try_echo=$ac_try;;
6741esac
6742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743  (eval "$ac_compile") 2>conftest.er1
6744  ac_status=$?
6745  grep -v '^ *+' conftest.er1 >conftest.err
6746  rm -f conftest.er1
6747  cat conftest.err >&5
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); } && {
6750	 test -z "$ac_c_werror_flag" ||
6751	 test ! -s conftest.err
6752       } && test -s conftest.$ac_objext; then
6753  ac_hi=-1 ac_mid=-1
6754  while :; do
6755    cat >conftest.$ac_ext <<_ACEOF
6756/* confdefs.h.  */
6757_ACEOF
6758cat confdefs.h >>conftest.$ac_ext
6759cat >>conftest.$ac_ext <<_ACEOF
6760/* end confdefs.h.  */
6761$ac_includes_default
6762   typedef int ac__type_sizeof_;
6763int
6764main ()
6765{
6766static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6767test_array [0] = 0
6768
6769  ;
6770  return 0;
6771}
6772_ACEOF
6773rm -f conftest.$ac_objext
6774if { (ac_try="$ac_compile"
6775case "(($ac_try" in
6776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777  *) ac_try_echo=$ac_try;;
6778esac
6779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6780  (eval "$ac_compile") 2>conftest.er1
6781  ac_status=$?
6782  grep -v '^ *+' conftest.er1 >conftest.err
6783  rm -f conftest.er1
6784  cat conftest.err >&5
6785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786  (exit $ac_status); } && {
6787	 test -z "$ac_c_werror_flag" ||
6788	 test ! -s conftest.err
6789       } && test -s conftest.$ac_objext; then
6790  ac_lo=$ac_mid; break
6791else
6792  echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795	ac_hi=`expr '(' $ac_mid ')' - 1`
6796			if test $ac_mid -le $ac_hi; then
6797			  ac_lo= ac_hi=
6798			  break
6799			fi
6800			ac_mid=`expr 2 '*' $ac_mid`
6801fi
6802
6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804  done
6805else
6806  echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809	ac_lo= ac_hi=
6810fi
6811
6812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813fi
6814
6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816# Binary search between lo and hi bounds.
6817while test "x$ac_lo" != "x$ac_hi"; do
6818  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6819  cat >conftest.$ac_ext <<_ACEOF
6820/* confdefs.h.  */
6821_ACEOF
6822cat confdefs.h >>conftest.$ac_ext
6823cat >>conftest.$ac_ext <<_ACEOF
6824/* end confdefs.h.  */
6825$ac_includes_default
6826   typedef int ac__type_sizeof_;
6827int
6828main ()
6829{
6830static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6831test_array [0] = 0
6832
6833  ;
6834  return 0;
6835}
6836_ACEOF
6837rm -f conftest.$ac_objext
6838if { (ac_try="$ac_compile"
6839case "(($ac_try" in
6840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841  *) ac_try_echo=$ac_try;;
6842esac
6843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844  (eval "$ac_compile") 2>conftest.er1
6845  ac_status=$?
6846  grep -v '^ *+' conftest.er1 >conftest.err
6847  rm -f conftest.er1
6848  cat conftest.err >&5
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); } && {
6851	 test -z "$ac_c_werror_flag" ||
6852	 test ! -s conftest.err
6853       } && test -s conftest.$ac_objext; then
6854  ac_hi=$ac_mid
6855else
6856  echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
6858
6859	ac_lo=`expr '(' $ac_mid ')' + 1`
6860fi
6861
6862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863done
6864case $ac_lo in
6865?*) ac_cv_sizeof_int=$ac_lo;;
6866'') if test "$ac_cv_type_int" = yes; then
6867     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6868See \`config.log' for more details." >&5
6869echo "$as_me: error: cannot compute sizeof (int)
6870See \`config.log' for more details." >&2;}
6871   { (exit 77); exit 77; }; }
6872   else
6873     ac_cv_sizeof_int=0
6874   fi ;;
6875esac
6876else
6877  cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h.  */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h.  */
6883$ac_includes_default
6884   typedef int ac__type_sizeof_;
6885static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6886static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6887#include <stdio.h>
6888#include <stdlib.h>
6889int
6890main ()
6891{
6892
6893  FILE *f = fopen ("conftest.val", "w");
6894  if (! f)
6895    return 1;
6896  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6897    {
6898      long int i = longval ();
6899      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6900	return 1;
6901      fprintf (f, "%ld\n", i);
6902    }
6903  else
6904    {
6905      unsigned long int i = ulongval ();
6906      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6907	return 1;
6908      fprintf (f, "%lu\n", i);
6909    }
6910  return ferror (f) || fclose (f) != 0;
6911
6912  ;
6913  return 0;
6914}
6915_ACEOF
6916rm -f conftest$ac_exeext
6917if { (ac_try="$ac_link"
6918case "(($ac_try" in
6919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920  *) ac_try_echo=$ac_try;;
6921esac
6922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923  (eval "$ac_link") 2>&5
6924  ac_status=$?
6925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6927  { (case "(($ac_try" in
6928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929  *) ac_try_echo=$ac_try;;
6930esac
6931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932  (eval "$ac_try") 2>&5
6933  ac_status=$?
6934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); }; }; then
6936  ac_cv_sizeof_int=`cat conftest.val`
6937else
6938  echo "$as_me: program exited with status $ac_status" >&5
6939echo "$as_me: failed program was:" >&5
6940sed 's/^/| /' conftest.$ac_ext >&5
6941
6942( exit $ac_status )
6943if test "$ac_cv_type_int" = yes; then
6944     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6945See \`config.log' for more details." >&5
6946echo "$as_me: error: cannot compute sizeof (int)
6947See \`config.log' for more details." >&2;}
6948   { (exit 77); exit 77; }; }
6949   else
6950     ac_cv_sizeof_int=0
6951   fi
6952fi
6953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6954fi
6955rm -f conftest.val
6956fi
6957{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6958echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6959
6960
6961
6962cat >>confdefs.h <<_ACEOF
6963#define SIZEOF_INT $ac_cv_sizeof_int
6964_ACEOF
6965
6966
6967{ echo "$as_me:$LINENO: checking for char" >&5
6968echo $ECHO_N "checking for char... $ECHO_C" >&6; }
6969if test "${ac_cv_type_char+set}" = set; then
6970  echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972  cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h.  */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h.  */
6978$ac_includes_default
6979typedef char ac__type_new_;
6980int
6981main ()
6982{
6983if ((ac__type_new_ *) 0)
6984  return 0;
6985if (sizeof (ac__type_new_))
6986  return 0;
6987  ;
6988  return 0;
6989}
6990_ACEOF
6991rm -f conftest.$ac_objext
6992if { (ac_try="$ac_compile"
6993case "(($ac_try" in
6994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995  *) ac_try_echo=$ac_try;;
6996esac
6997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6998  (eval "$ac_compile") 2>conftest.er1
6999  ac_status=$?
7000  grep -v '^ *+' conftest.er1 >conftest.err
7001  rm -f conftest.er1
7002  cat conftest.err >&5
7003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004  (exit $ac_status); } && {
7005	 test -z "$ac_c_werror_flag" ||
7006	 test ! -s conftest.err
7007       } && test -s conftest.$ac_objext; then
7008  ac_cv_type_char=yes
7009else
7010  echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013	ac_cv_type_char=no
7014fi
7015
7016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017fi
7018{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7019echo "${ECHO_T}$ac_cv_type_char" >&6; }
7020
7021# The cast to long int works around a bug in the HP C Compiler
7022# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7023# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7024# This bug is HP SR number 8606223364.
7025{ echo "$as_me:$LINENO: checking size of char" >&5
7026echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
7027if test "${ac_cv_sizeof_char+set}" = set; then
7028  echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030  if test "$cross_compiling" = yes; then
7031  # Depending upon the size, compute the lo and hi bounds.
7032cat >conftest.$ac_ext <<_ACEOF
7033/* confdefs.h.  */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h.  */
7038$ac_includes_default
7039   typedef char ac__type_sizeof_;
7040int
7041main ()
7042{
7043static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7044test_array [0] = 0
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050rm -f conftest.$ac_objext
7051if { (ac_try="$ac_compile"
7052case "(($ac_try" in
7053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054  *) ac_try_echo=$ac_try;;
7055esac
7056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057  (eval "$ac_compile") 2>conftest.er1
7058  ac_status=$?
7059  grep -v '^ *+' conftest.er1 >conftest.err
7060  rm -f conftest.er1
7061  cat conftest.err >&5
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); } && {
7064	 test -z "$ac_c_werror_flag" ||
7065	 test ! -s conftest.err
7066       } && test -s conftest.$ac_objext; then
7067  ac_lo=0 ac_mid=0
7068  while :; do
7069    cat >conftest.$ac_ext <<_ACEOF
7070/* confdefs.h.  */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
7074/* end confdefs.h.  */
7075$ac_includes_default
7076   typedef char ac__type_sizeof_;
7077int
7078main ()
7079{
7080static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7081test_array [0] = 0
7082
7083  ;
7084  return 0;
7085}
7086_ACEOF
7087rm -f conftest.$ac_objext
7088if { (ac_try="$ac_compile"
7089case "(($ac_try" in
7090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091  *) ac_try_echo=$ac_try;;
7092esac
7093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094  (eval "$ac_compile") 2>conftest.er1
7095  ac_status=$?
7096  grep -v '^ *+' conftest.er1 >conftest.err
7097  rm -f conftest.er1
7098  cat conftest.err >&5
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); } && {
7101	 test -z "$ac_c_werror_flag" ||
7102	 test ! -s conftest.err
7103       } && test -s conftest.$ac_objext; then
7104  ac_hi=$ac_mid; break
7105else
7106  echo "$as_me: failed program was:" >&5
7107sed 's/^/| /' conftest.$ac_ext >&5
7108
7109	ac_lo=`expr $ac_mid + 1`
7110			if test $ac_lo -le $ac_mid; then
7111			  ac_lo= ac_hi=
7112			  break
7113			fi
7114			ac_mid=`expr 2 '*' $ac_mid + 1`
7115fi
7116
7117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118  done
7119else
7120  echo "$as_me: failed program was:" >&5
7121sed 's/^/| /' conftest.$ac_ext >&5
7122
7123	cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h.  */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h.  */
7129$ac_includes_default
7130   typedef char ac__type_sizeof_;
7131int
7132main ()
7133{
7134static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7135test_array [0] = 0
7136
7137  ;
7138  return 0;
7139}
7140_ACEOF
7141rm -f conftest.$ac_objext
7142if { (ac_try="$ac_compile"
7143case "(($ac_try" in
7144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145  *) ac_try_echo=$ac_try;;
7146esac
7147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148  (eval "$ac_compile") 2>conftest.er1
7149  ac_status=$?
7150  grep -v '^ *+' conftest.er1 >conftest.err
7151  rm -f conftest.er1
7152  cat conftest.err >&5
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); } && {
7155	 test -z "$ac_c_werror_flag" ||
7156	 test ! -s conftest.err
7157       } && test -s conftest.$ac_objext; then
7158  ac_hi=-1 ac_mid=-1
7159  while :; do
7160    cat >conftest.$ac_ext <<_ACEOF
7161/* confdefs.h.  */
7162_ACEOF
7163cat confdefs.h >>conftest.$ac_ext
7164cat >>conftest.$ac_ext <<_ACEOF
7165/* end confdefs.h.  */
7166$ac_includes_default
7167   typedef char ac__type_sizeof_;
7168int
7169main ()
7170{
7171static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7172test_array [0] = 0
7173
7174  ;
7175  return 0;
7176}
7177_ACEOF
7178rm -f conftest.$ac_objext
7179if { (ac_try="$ac_compile"
7180case "(($ac_try" in
7181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182  *) ac_try_echo=$ac_try;;
7183esac
7184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185  (eval "$ac_compile") 2>conftest.er1
7186  ac_status=$?
7187  grep -v '^ *+' conftest.er1 >conftest.err
7188  rm -f conftest.er1
7189  cat conftest.err >&5
7190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191  (exit $ac_status); } && {
7192	 test -z "$ac_c_werror_flag" ||
7193	 test ! -s conftest.err
7194       } && test -s conftest.$ac_objext; then
7195  ac_lo=$ac_mid; break
7196else
7197  echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200	ac_hi=`expr '(' $ac_mid ')' - 1`
7201			if test $ac_mid -le $ac_hi; then
7202			  ac_lo= ac_hi=
7203			  break
7204			fi
7205			ac_mid=`expr 2 '*' $ac_mid`
7206fi
7207
7208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209  done
7210else
7211  echo "$as_me: failed program was:" >&5
7212sed 's/^/| /' conftest.$ac_ext >&5
7213
7214	ac_lo= ac_hi=
7215fi
7216
7217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218fi
7219
7220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221# Binary search between lo and hi bounds.
7222while test "x$ac_lo" != "x$ac_hi"; do
7223  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7224  cat >conftest.$ac_ext <<_ACEOF
7225/* confdefs.h.  */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF
7229/* end confdefs.h.  */
7230$ac_includes_default
7231   typedef char ac__type_sizeof_;
7232int
7233main ()
7234{
7235static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7236test_array [0] = 0
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242rm -f conftest.$ac_objext
7243if { (ac_try="$ac_compile"
7244case "(($ac_try" in
7245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246  *) ac_try_echo=$ac_try;;
7247esac
7248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249  (eval "$ac_compile") 2>conftest.er1
7250  ac_status=$?
7251  grep -v '^ *+' conftest.er1 >conftest.err
7252  rm -f conftest.er1
7253  cat conftest.err >&5
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); } && {
7256	 test -z "$ac_c_werror_flag" ||
7257	 test ! -s conftest.err
7258       } && test -s conftest.$ac_objext; then
7259  ac_hi=$ac_mid
7260else
7261  echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
7263
7264	ac_lo=`expr '(' $ac_mid ')' + 1`
7265fi
7266
7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268done
7269case $ac_lo in
7270?*) ac_cv_sizeof_char=$ac_lo;;
7271'') if test "$ac_cv_type_char" = yes; then
7272     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7273See \`config.log' for more details." >&5
7274echo "$as_me: error: cannot compute sizeof (char)
7275See \`config.log' for more details." >&2;}
7276   { (exit 77); exit 77; }; }
7277   else
7278     ac_cv_sizeof_char=0
7279   fi ;;
7280esac
7281else
7282  cat >conftest.$ac_ext <<_ACEOF
7283/* confdefs.h.  */
7284_ACEOF
7285cat confdefs.h >>conftest.$ac_ext
7286cat >>conftest.$ac_ext <<_ACEOF
7287/* end confdefs.h.  */
7288$ac_includes_default
7289   typedef char ac__type_sizeof_;
7290static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7291static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7292#include <stdio.h>
7293#include <stdlib.h>
7294int
7295main ()
7296{
7297
7298  FILE *f = fopen ("conftest.val", "w");
7299  if (! f)
7300    return 1;
7301  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7302    {
7303      long int i = longval ();
7304      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7305	return 1;
7306      fprintf (f, "%ld\n", i);
7307    }
7308  else
7309    {
7310      unsigned long int i = ulongval ();
7311      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7312	return 1;
7313      fprintf (f, "%lu\n", i);
7314    }
7315  return ferror (f) || fclose (f) != 0;
7316
7317  ;
7318  return 0;
7319}
7320_ACEOF
7321rm -f conftest$ac_exeext
7322if { (ac_try="$ac_link"
7323case "(($ac_try" in
7324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325  *) ac_try_echo=$ac_try;;
7326esac
7327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328  (eval "$ac_link") 2>&5
7329  ac_status=$?
7330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7332  { (case "(($ac_try" in
7333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334  *) ac_try_echo=$ac_try;;
7335esac
7336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337  (eval "$ac_try") 2>&5
7338  ac_status=$?
7339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340  (exit $ac_status); }; }; then
7341  ac_cv_sizeof_char=`cat conftest.val`
7342else
7343  echo "$as_me: program exited with status $ac_status" >&5
7344echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
7347( exit $ac_status )
7348if test "$ac_cv_type_char" = yes; then
7349     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7350See \`config.log' for more details." >&5
7351echo "$as_me: error: cannot compute sizeof (char)
7352See \`config.log' for more details." >&2;}
7353   { (exit 77); exit 77; }; }
7354   else
7355     ac_cv_sizeof_char=0
7356   fi
7357fi
7358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7359fi
7360rm -f conftest.val
7361fi
7362{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7363echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
7364
7365
7366
7367cat >>confdefs.h <<_ACEOF
7368#define SIZEOF_CHAR $ac_cv_sizeof_char
7369_ACEOF
7370
7371
7372{ echo "$as_me:$LINENO: checking for short" >&5
7373echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7374if test "${ac_cv_type_short+set}" = set; then
7375  echo $ECHO_N "(cached) $ECHO_C" >&6
7376else
7377  cat >conftest.$ac_ext <<_ACEOF
7378/* confdefs.h.  */
7379_ACEOF
7380cat confdefs.h >>conftest.$ac_ext
7381cat >>conftest.$ac_ext <<_ACEOF
7382/* end confdefs.h.  */
7383$ac_includes_default
7384typedef short ac__type_new_;
7385int
7386main ()
7387{
7388if ((ac__type_new_ *) 0)
7389  return 0;
7390if (sizeof (ac__type_new_))
7391  return 0;
7392  ;
7393  return 0;
7394}
7395_ACEOF
7396rm -f conftest.$ac_objext
7397if { (ac_try="$ac_compile"
7398case "(($ac_try" in
7399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400  *) ac_try_echo=$ac_try;;
7401esac
7402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403  (eval "$ac_compile") 2>conftest.er1
7404  ac_status=$?
7405  grep -v '^ *+' conftest.er1 >conftest.err
7406  rm -f conftest.er1
7407  cat conftest.err >&5
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); } && {
7410	 test -z "$ac_c_werror_flag" ||
7411	 test ! -s conftest.err
7412       } && test -s conftest.$ac_objext; then
7413  ac_cv_type_short=yes
7414else
7415  echo "$as_me: failed program was:" >&5
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418	ac_cv_type_short=no
7419fi
7420
7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422fi
7423{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7424echo "${ECHO_T}$ac_cv_type_short" >&6; }
7425
7426# The cast to long int works around a bug in the HP C Compiler
7427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7429# This bug is HP SR number 8606223364.
7430{ echo "$as_me:$LINENO: checking size of short" >&5
7431echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7432if test "${ac_cv_sizeof_short+set}" = set; then
7433  echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435  if test "$cross_compiling" = yes; then
7436  # Depending upon the size, compute the lo and hi bounds.
7437cat >conftest.$ac_ext <<_ACEOF
7438/* confdefs.h.  */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h.  */
7443$ac_includes_default
7444   typedef short ac__type_sizeof_;
7445int
7446main ()
7447{
7448static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7449test_array [0] = 0
7450
7451  ;
7452  return 0;
7453}
7454_ACEOF
7455rm -f conftest.$ac_objext
7456if { (ac_try="$ac_compile"
7457case "(($ac_try" in
7458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459  *) ac_try_echo=$ac_try;;
7460esac
7461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462  (eval "$ac_compile") 2>conftest.er1
7463  ac_status=$?
7464  grep -v '^ *+' conftest.er1 >conftest.err
7465  rm -f conftest.er1
7466  cat conftest.err >&5
7467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468  (exit $ac_status); } && {
7469	 test -z "$ac_c_werror_flag" ||
7470	 test ! -s conftest.err
7471       } && test -s conftest.$ac_objext; then
7472  ac_lo=0 ac_mid=0
7473  while :; do
7474    cat >conftest.$ac_ext <<_ACEOF
7475/* confdefs.h.  */
7476_ACEOF
7477cat confdefs.h >>conftest.$ac_ext
7478cat >>conftest.$ac_ext <<_ACEOF
7479/* end confdefs.h.  */
7480$ac_includes_default
7481   typedef short ac__type_sizeof_;
7482int
7483main ()
7484{
7485static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7486test_array [0] = 0
7487
7488  ;
7489  return 0;
7490}
7491_ACEOF
7492rm -f conftest.$ac_objext
7493if { (ac_try="$ac_compile"
7494case "(($ac_try" in
7495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496  *) ac_try_echo=$ac_try;;
7497esac
7498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499  (eval "$ac_compile") 2>conftest.er1
7500  ac_status=$?
7501  grep -v '^ *+' conftest.er1 >conftest.err
7502  rm -f conftest.er1
7503  cat conftest.err >&5
7504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505  (exit $ac_status); } && {
7506	 test -z "$ac_c_werror_flag" ||
7507	 test ! -s conftest.err
7508       } && test -s conftest.$ac_objext; then
7509  ac_hi=$ac_mid; break
7510else
7511  echo "$as_me: failed program was:" >&5
7512sed 's/^/| /' conftest.$ac_ext >&5
7513
7514	ac_lo=`expr $ac_mid + 1`
7515			if test $ac_lo -le $ac_mid; then
7516			  ac_lo= ac_hi=
7517			  break
7518			fi
7519			ac_mid=`expr 2 '*' $ac_mid + 1`
7520fi
7521
7522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523  done
7524else
7525  echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528	cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h.  */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h.  */
7534$ac_includes_default
7535   typedef short ac__type_sizeof_;
7536int
7537main ()
7538{
7539static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7540test_array [0] = 0
7541
7542  ;
7543  return 0;
7544}
7545_ACEOF
7546rm -f conftest.$ac_objext
7547if { (ac_try="$ac_compile"
7548case "(($ac_try" in
7549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550  *) ac_try_echo=$ac_try;;
7551esac
7552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553  (eval "$ac_compile") 2>conftest.er1
7554  ac_status=$?
7555  grep -v '^ *+' conftest.er1 >conftest.err
7556  rm -f conftest.er1
7557  cat conftest.err >&5
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); } && {
7560	 test -z "$ac_c_werror_flag" ||
7561	 test ! -s conftest.err
7562       } && test -s conftest.$ac_objext; then
7563  ac_hi=-1 ac_mid=-1
7564  while :; do
7565    cat >conftest.$ac_ext <<_ACEOF
7566/* confdefs.h.  */
7567_ACEOF
7568cat confdefs.h >>conftest.$ac_ext
7569cat >>conftest.$ac_ext <<_ACEOF
7570/* end confdefs.h.  */
7571$ac_includes_default
7572   typedef short ac__type_sizeof_;
7573int
7574main ()
7575{
7576static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7577test_array [0] = 0
7578
7579  ;
7580  return 0;
7581}
7582_ACEOF
7583rm -f conftest.$ac_objext
7584if { (ac_try="$ac_compile"
7585case "(($ac_try" in
7586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587  *) ac_try_echo=$ac_try;;
7588esac
7589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590  (eval "$ac_compile") 2>conftest.er1
7591  ac_status=$?
7592  grep -v '^ *+' conftest.er1 >conftest.err
7593  rm -f conftest.er1
7594  cat conftest.err >&5
7595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596  (exit $ac_status); } && {
7597	 test -z "$ac_c_werror_flag" ||
7598	 test ! -s conftest.err
7599       } && test -s conftest.$ac_objext; then
7600  ac_lo=$ac_mid; break
7601else
7602  echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7605	ac_hi=`expr '(' $ac_mid ')' - 1`
7606			if test $ac_mid -le $ac_hi; then
7607			  ac_lo= ac_hi=
7608			  break
7609			fi
7610			ac_mid=`expr 2 '*' $ac_mid`
7611fi
7612
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614  done
7615else
7616  echo "$as_me: failed program was:" >&5
7617sed 's/^/| /' conftest.$ac_ext >&5
7618
7619	ac_lo= ac_hi=
7620fi
7621
7622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623fi
7624
7625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626# Binary search between lo and hi bounds.
7627while test "x$ac_lo" != "x$ac_hi"; do
7628  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7629  cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h.  */
7631_ACEOF
7632cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h.  */
7635$ac_includes_default
7636   typedef short ac__type_sizeof_;
7637int
7638main ()
7639{
7640static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7641test_array [0] = 0
7642
7643  ;
7644  return 0;
7645}
7646_ACEOF
7647rm -f conftest.$ac_objext
7648if { (ac_try="$ac_compile"
7649case "(($ac_try" in
7650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651  *) ac_try_echo=$ac_try;;
7652esac
7653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654  (eval "$ac_compile") 2>conftest.er1
7655  ac_status=$?
7656  grep -v '^ *+' conftest.er1 >conftest.err
7657  rm -f conftest.er1
7658  cat conftest.err >&5
7659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660  (exit $ac_status); } && {
7661	 test -z "$ac_c_werror_flag" ||
7662	 test ! -s conftest.err
7663       } && test -s conftest.$ac_objext; then
7664  ac_hi=$ac_mid
7665else
7666  echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669	ac_lo=`expr '(' $ac_mid ')' + 1`
7670fi
7671
7672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673done
7674case $ac_lo in
7675?*) ac_cv_sizeof_short=$ac_lo;;
7676'') if test "$ac_cv_type_short" = yes; then
7677     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7678See \`config.log' for more details." >&5
7679echo "$as_me: error: cannot compute sizeof (short)
7680See \`config.log' for more details." >&2;}
7681   { (exit 77); exit 77; }; }
7682   else
7683     ac_cv_sizeof_short=0
7684   fi ;;
7685esac
7686else
7687  cat >conftest.$ac_ext <<_ACEOF
7688/* confdefs.h.  */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h.  */
7693$ac_includes_default
7694   typedef short ac__type_sizeof_;
7695static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7696static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7697#include <stdio.h>
7698#include <stdlib.h>
7699int
7700main ()
7701{
7702
7703  FILE *f = fopen ("conftest.val", "w");
7704  if (! f)
7705    return 1;
7706  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7707    {
7708      long int i = longval ();
7709      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7710	return 1;
7711      fprintf (f, "%ld\n", i);
7712    }
7713  else
7714    {
7715      unsigned long int i = ulongval ();
7716      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7717	return 1;
7718      fprintf (f, "%lu\n", i);
7719    }
7720  return ferror (f) || fclose (f) != 0;
7721
7722  ;
7723  return 0;
7724}
7725_ACEOF
7726rm -f conftest$ac_exeext
7727if { (ac_try="$ac_link"
7728case "(($ac_try" in
7729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730  *) ac_try_echo=$ac_try;;
7731esac
7732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733  (eval "$ac_link") 2>&5
7734  ac_status=$?
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7737  { (case "(($ac_try" in
7738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739  *) ac_try_echo=$ac_try;;
7740esac
7741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742  (eval "$ac_try") 2>&5
7743  ac_status=$?
7744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745  (exit $ac_status); }; }; then
7746  ac_cv_sizeof_short=`cat conftest.val`
7747else
7748  echo "$as_me: program exited with status $ac_status" >&5
7749echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752( exit $ac_status )
7753if test "$ac_cv_type_short" = yes; then
7754     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7755See \`config.log' for more details." >&5
7756echo "$as_me: error: cannot compute sizeof (short)
7757See \`config.log' for more details." >&2;}
7758   { (exit 77); exit 77; }; }
7759   else
7760     ac_cv_sizeof_short=0
7761   fi
7762fi
7763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7764fi
7765rm -f conftest.val
7766fi
7767{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7768echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
7769
7770
7771
7772cat >>confdefs.h <<_ACEOF
7773#define SIZEOF_SHORT $ac_cv_sizeof_short
7774_ACEOF
7775
7776
7777{ echo "$as_me:$LINENO: checking for long" >&5
7778echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7779if test "${ac_cv_type_long+set}" = set; then
7780  echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782  cat >conftest.$ac_ext <<_ACEOF
7783/* confdefs.h.  */
7784_ACEOF
7785cat confdefs.h >>conftest.$ac_ext
7786cat >>conftest.$ac_ext <<_ACEOF
7787/* end confdefs.h.  */
7788$ac_includes_default
7789typedef long ac__type_new_;
7790int
7791main ()
7792{
7793if ((ac__type_new_ *) 0)
7794  return 0;
7795if (sizeof (ac__type_new_))
7796  return 0;
7797  ;
7798  return 0;
7799}
7800_ACEOF
7801rm -f conftest.$ac_objext
7802if { (ac_try="$ac_compile"
7803case "(($ac_try" in
7804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805  *) ac_try_echo=$ac_try;;
7806esac
7807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808  (eval "$ac_compile") 2>conftest.er1
7809  ac_status=$?
7810  grep -v '^ *+' conftest.er1 >conftest.err
7811  rm -f conftest.er1
7812  cat conftest.err >&5
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); } && {
7815	 test -z "$ac_c_werror_flag" ||
7816	 test ! -s conftest.err
7817       } && test -s conftest.$ac_objext; then
7818  ac_cv_type_long=yes
7819else
7820  echo "$as_me: failed program was:" >&5
7821sed 's/^/| /' conftest.$ac_ext >&5
7822
7823	ac_cv_type_long=no
7824fi
7825
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827fi
7828{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7829echo "${ECHO_T}$ac_cv_type_long" >&6; }
7830
7831# The cast to long int works around a bug in the HP C Compiler
7832# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7833# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7834# This bug is HP SR number 8606223364.
7835{ echo "$as_me:$LINENO: checking size of long" >&5
7836echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7837if test "${ac_cv_sizeof_long+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  if test "$cross_compiling" = yes; then
7841  # Depending upon the size, compute the lo and hi bounds.
7842cat >conftest.$ac_ext <<_ACEOF
7843/* confdefs.h.  */
7844_ACEOF
7845cat confdefs.h >>conftest.$ac_ext
7846cat >>conftest.$ac_ext <<_ACEOF
7847/* end confdefs.h.  */
7848$ac_includes_default
7849   typedef long ac__type_sizeof_;
7850int
7851main ()
7852{
7853static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7854test_array [0] = 0
7855
7856  ;
7857  return 0;
7858}
7859_ACEOF
7860rm -f conftest.$ac_objext
7861if { (ac_try="$ac_compile"
7862case "(($ac_try" in
7863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864  *) ac_try_echo=$ac_try;;
7865esac
7866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867  (eval "$ac_compile") 2>conftest.er1
7868  ac_status=$?
7869  grep -v '^ *+' conftest.er1 >conftest.err
7870  rm -f conftest.er1
7871  cat conftest.err >&5
7872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873  (exit $ac_status); } && {
7874	 test -z "$ac_c_werror_flag" ||
7875	 test ! -s conftest.err
7876       } && test -s conftest.$ac_objext; then
7877  ac_lo=0 ac_mid=0
7878  while :; do
7879    cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h.  */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
7884/* end confdefs.h.  */
7885$ac_includes_default
7886   typedef long ac__type_sizeof_;
7887int
7888main ()
7889{
7890static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7891test_array [0] = 0
7892
7893  ;
7894  return 0;
7895}
7896_ACEOF
7897rm -f conftest.$ac_objext
7898if { (ac_try="$ac_compile"
7899case "(($ac_try" in
7900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901  *) ac_try_echo=$ac_try;;
7902esac
7903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904  (eval "$ac_compile") 2>conftest.er1
7905  ac_status=$?
7906  grep -v '^ *+' conftest.er1 >conftest.err
7907  rm -f conftest.er1
7908  cat conftest.err >&5
7909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910  (exit $ac_status); } && {
7911	 test -z "$ac_c_werror_flag" ||
7912	 test ! -s conftest.err
7913       } && test -s conftest.$ac_objext; then
7914  ac_hi=$ac_mid; break
7915else
7916  echo "$as_me: failed program was:" >&5
7917sed 's/^/| /' conftest.$ac_ext >&5
7918
7919	ac_lo=`expr $ac_mid + 1`
7920			if test $ac_lo -le $ac_mid; then
7921			  ac_lo= ac_hi=
7922			  break
7923			fi
7924			ac_mid=`expr 2 '*' $ac_mid + 1`
7925fi
7926
7927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928  done
7929else
7930  echo "$as_me: failed program was:" >&5
7931sed 's/^/| /' conftest.$ac_ext >&5
7932
7933	cat >conftest.$ac_ext <<_ACEOF
7934/* confdefs.h.  */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h.  */
7939$ac_includes_default
7940   typedef long ac__type_sizeof_;
7941int
7942main ()
7943{
7944static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7945test_array [0] = 0
7946
7947  ;
7948  return 0;
7949}
7950_ACEOF
7951rm -f conftest.$ac_objext
7952if { (ac_try="$ac_compile"
7953case "(($ac_try" in
7954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955  *) ac_try_echo=$ac_try;;
7956esac
7957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958  (eval "$ac_compile") 2>conftest.er1
7959  ac_status=$?
7960  grep -v '^ *+' conftest.er1 >conftest.err
7961  rm -f conftest.er1
7962  cat conftest.err >&5
7963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964  (exit $ac_status); } && {
7965	 test -z "$ac_c_werror_flag" ||
7966	 test ! -s conftest.err
7967       } && test -s conftest.$ac_objext; then
7968  ac_hi=-1 ac_mid=-1
7969  while :; do
7970    cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h.  */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h.  */
7976$ac_includes_default
7977   typedef long ac__type_sizeof_;
7978int
7979main ()
7980{
7981static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7982test_array [0] = 0
7983
7984  ;
7985  return 0;
7986}
7987_ACEOF
7988rm -f conftest.$ac_objext
7989if { (ac_try="$ac_compile"
7990case "(($ac_try" in
7991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992  *) ac_try_echo=$ac_try;;
7993esac
7994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995  (eval "$ac_compile") 2>conftest.er1
7996  ac_status=$?
7997  grep -v '^ *+' conftest.er1 >conftest.err
7998  rm -f conftest.er1
7999  cat conftest.err >&5
8000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001  (exit $ac_status); } && {
8002	 test -z "$ac_c_werror_flag" ||
8003	 test ! -s conftest.err
8004       } && test -s conftest.$ac_objext; then
8005  ac_lo=$ac_mid; break
8006else
8007  echo "$as_me: failed program was:" >&5
8008sed 's/^/| /' conftest.$ac_ext >&5
8009
8010	ac_hi=`expr '(' $ac_mid ')' - 1`
8011			if test $ac_mid -le $ac_hi; then
8012			  ac_lo= ac_hi=
8013			  break
8014			fi
8015			ac_mid=`expr 2 '*' $ac_mid`
8016fi
8017
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019  done
8020else
8021  echo "$as_me: failed program was:" >&5
8022sed 's/^/| /' conftest.$ac_ext >&5
8023
8024	ac_lo= ac_hi=
8025fi
8026
8027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028fi
8029
8030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031# Binary search between lo and hi bounds.
8032while test "x$ac_lo" != "x$ac_hi"; do
8033  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8034  cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h.  */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h.  */
8040$ac_includes_default
8041   typedef long ac__type_sizeof_;
8042int
8043main ()
8044{
8045static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8046test_array [0] = 0
8047
8048  ;
8049  return 0;
8050}
8051_ACEOF
8052rm -f conftest.$ac_objext
8053if { (ac_try="$ac_compile"
8054case "(($ac_try" in
8055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056  *) ac_try_echo=$ac_try;;
8057esac
8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059  (eval "$ac_compile") 2>conftest.er1
8060  ac_status=$?
8061  grep -v '^ *+' conftest.er1 >conftest.err
8062  rm -f conftest.er1
8063  cat conftest.err >&5
8064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065  (exit $ac_status); } && {
8066	 test -z "$ac_c_werror_flag" ||
8067	 test ! -s conftest.err
8068       } && test -s conftest.$ac_objext; then
8069  ac_hi=$ac_mid
8070else
8071  echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
8074	ac_lo=`expr '(' $ac_mid ')' + 1`
8075fi
8076
8077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078done
8079case $ac_lo in
8080?*) ac_cv_sizeof_long=$ac_lo;;
8081'') if test "$ac_cv_type_long" = yes; then
8082     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8083See \`config.log' for more details." >&5
8084echo "$as_me: error: cannot compute sizeof (long)
8085See \`config.log' for more details." >&2;}
8086   { (exit 77); exit 77; }; }
8087   else
8088     ac_cv_sizeof_long=0
8089   fi ;;
8090esac
8091else
8092  cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h.  */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h.  */
8098$ac_includes_default
8099   typedef long ac__type_sizeof_;
8100static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8101static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8102#include <stdio.h>
8103#include <stdlib.h>
8104int
8105main ()
8106{
8107
8108  FILE *f = fopen ("conftest.val", "w");
8109  if (! f)
8110    return 1;
8111  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8112    {
8113      long int i = longval ();
8114      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8115	return 1;
8116      fprintf (f, "%ld\n", i);
8117    }
8118  else
8119    {
8120      unsigned long int i = ulongval ();
8121      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8122	return 1;
8123      fprintf (f, "%lu\n", i);
8124    }
8125  return ferror (f) || fclose (f) != 0;
8126
8127  ;
8128  return 0;
8129}
8130_ACEOF
8131rm -f conftest$ac_exeext
8132if { (ac_try="$ac_link"
8133case "(($ac_try" in
8134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135  *) ac_try_echo=$ac_try;;
8136esac
8137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138  (eval "$ac_link") 2>&5
8139  ac_status=$?
8140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8142  { (case "(($ac_try" in
8143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144  *) ac_try_echo=$ac_try;;
8145esac
8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147  (eval "$ac_try") 2>&5
8148  ac_status=$?
8149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150  (exit $ac_status); }; }; then
8151  ac_cv_sizeof_long=`cat conftest.val`
8152else
8153  echo "$as_me: program exited with status $ac_status" >&5
8154echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
8157( exit $ac_status )
8158if test "$ac_cv_type_long" = yes; then
8159     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8160See \`config.log' for more details." >&5
8161echo "$as_me: error: cannot compute sizeof (long)
8162See \`config.log' for more details." >&2;}
8163   { (exit 77); exit 77; }; }
8164   else
8165     ac_cv_sizeof_long=0
8166   fi
8167fi
8168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8169fi
8170rm -f conftest.val
8171fi
8172{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8173echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8174
8175
8176
8177cat >>confdefs.h <<_ACEOF
8178#define SIZEOF_LONG $ac_cv_sizeof_long
8179_ACEOF
8180
8181
8182{ echo "$as_me:$LINENO: checking for long long" >&5
8183echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8184if test "${ac_cv_type_long_long+set}" = set; then
8185  echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187  cat >conftest.$ac_ext <<_ACEOF
8188/* confdefs.h.  */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h.  */
8193$ac_includes_default
8194typedef long long ac__type_new_;
8195int
8196main ()
8197{
8198if ((ac__type_new_ *) 0)
8199  return 0;
8200if (sizeof (ac__type_new_))
8201  return 0;
8202  ;
8203  return 0;
8204}
8205_ACEOF
8206rm -f conftest.$ac_objext
8207if { (ac_try="$ac_compile"
8208case "(($ac_try" in
8209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210  *) ac_try_echo=$ac_try;;
8211esac
8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213  (eval "$ac_compile") 2>conftest.er1
8214  ac_status=$?
8215  grep -v '^ *+' conftest.er1 >conftest.err
8216  rm -f conftest.er1
8217  cat conftest.err >&5
8218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219  (exit $ac_status); } && {
8220	 test -z "$ac_c_werror_flag" ||
8221	 test ! -s conftest.err
8222       } && test -s conftest.$ac_objext; then
8223  ac_cv_type_long_long=yes
8224else
8225  echo "$as_me: failed program was:" >&5
8226sed 's/^/| /' conftest.$ac_ext >&5
8227
8228	ac_cv_type_long_long=no
8229fi
8230
8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232fi
8233{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8234echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8235
8236# The cast to long int works around a bug in the HP C Compiler
8237# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8238# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8239# This bug is HP SR number 8606223364.
8240{ echo "$as_me:$LINENO: checking size of long long" >&5
8241echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8242if test "${ac_cv_sizeof_long_long+set}" = set; then
8243  echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245  if test "$cross_compiling" = yes; then
8246  # Depending upon the size, compute the lo and hi bounds.
8247cat >conftest.$ac_ext <<_ACEOF
8248/* confdefs.h.  */
8249_ACEOF
8250cat confdefs.h >>conftest.$ac_ext
8251cat >>conftest.$ac_ext <<_ACEOF
8252/* end confdefs.h.  */
8253$ac_includes_default
8254   typedef long long ac__type_sizeof_;
8255int
8256main ()
8257{
8258static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8259test_array [0] = 0
8260
8261  ;
8262  return 0;
8263}
8264_ACEOF
8265rm -f conftest.$ac_objext
8266if { (ac_try="$ac_compile"
8267case "(($ac_try" in
8268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269  *) ac_try_echo=$ac_try;;
8270esac
8271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272  (eval "$ac_compile") 2>conftest.er1
8273  ac_status=$?
8274  grep -v '^ *+' conftest.er1 >conftest.err
8275  rm -f conftest.er1
8276  cat conftest.err >&5
8277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278  (exit $ac_status); } && {
8279	 test -z "$ac_c_werror_flag" ||
8280	 test ! -s conftest.err
8281       } && test -s conftest.$ac_objext; then
8282  ac_lo=0 ac_mid=0
8283  while :; do
8284    cat >conftest.$ac_ext <<_ACEOF
8285/* confdefs.h.  */
8286_ACEOF
8287cat confdefs.h >>conftest.$ac_ext
8288cat >>conftest.$ac_ext <<_ACEOF
8289/* end confdefs.h.  */
8290$ac_includes_default
8291   typedef long long ac__type_sizeof_;
8292int
8293main ()
8294{
8295static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8296test_array [0] = 0
8297
8298  ;
8299  return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext
8303if { (ac_try="$ac_compile"
8304case "(($ac_try" in
8305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306  *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309  (eval "$ac_compile") 2>conftest.er1
8310  ac_status=$?
8311  grep -v '^ *+' conftest.er1 >conftest.err
8312  rm -f conftest.er1
8313  cat conftest.err >&5
8314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315  (exit $ac_status); } && {
8316	 test -z "$ac_c_werror_flag" ||
8317	 test ! -s conftest.err
8318       } && test -s conftest.$ac_objext; then
8319  ac_hi=$ac_mid; break
8320else
8321  echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
8324	ac_lo=`expr $ac_mid + 1`
8325			if test $ac_lo -le $ac_mid; then
8326			  ac_lo= ac_hi=
8327			  break
8328			fi
8329			ac_mid=`expr 2 '*' $ac_mid + 1`
8330fi
8331
8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333  done
8334else
8335  echo "$as_me: failed program was:" >&5
8336sed 's/^/| /' conftest.$ac_ext >&5
8337
8338	cat >conftest.$ac_ext <<_ACEOF
8339/* confdefs.h.  */
8340_ACEOF
8341cat confdefs.h >>conftest.$ac_ext
8342cat >>conftest.$ac_ext <<_ACEOF
8343/* end confdefs.h.  */
8344$ac_includes_default
8345   typedef long long ac__type_sizeof_;
8346int
8347main ()
8348{
8349static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8350test_array [0] = 0
8351
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356rm -f conftest.$ac_objext
8357if { (ac_try="$ac_compile"
8358case "(($ac_try" in
8359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360  *) ac_try_echo=$ac_try;;
8361esac
8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363  (eval "$ac_compile") 2>conftest.er1
8364  ac_status=$?
8365  grep -v '^ *+' conftest.er1 >conftest.err
8366  rm -f conftest.er1
8367  cat conftest.err >&5
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); } && {
8370	 test -z "$ac_c_werror_flag" ||
8371	 test ! -s conftest.err
8372       } && test -s conftest.$ac_objext; then
8373  ac_hi=-1 ac_mid=-1
8374  while :; do
8375    cat >conftest.$ac_ext <<_ACEOF
8376/* confdefs.h.  */
8377_ACEOF
8378cat confdefs.h >>conftest.$ac_ext
8379cat >>conftest.$ac_ext <<_ACEOF
8380/* end confdefs.h.  */
8381$ac_includes_default
8382   typedef long long ac__type_sizeof_;
8383int
8384main ()
8385{
8386static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8387test_array [0] = 0
8388
8389  ;
8390  return 0;
8391}
8392_ACEOF
8393rm -f conftest.$ac_objext
8394if { (ac_try="$ac_compile"
8395case "(($ac_try" in
8396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397  *) ac_try_echo=$ac_try;;
8398esac
8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400  (eval "$ac_compile") 2>conftest.er1
8401  ac_status=$?
8402  grep -v '^ *+' conftest.er1 >conftest.err
8403  rm -f conftest.er1
8404  cat conftest.err >&5
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); } && {
8407	 test -z "$ac_c_werror_flag" ||
8408	 test ! -s conftest.err
8409       } && test -s conftest.$ac_objext; then
8410  ac_lo=$ac_mid; break
8411else
8412  echo "$as_me: failed program was:" >&5
8413sed 's/^/| /' conftest.$ac_ext >&5
8414
8415	ac_hi=`expr '(' $ac_mid ')' - 1`
8416			if test $ac_mid -le $ac_hi; then
8417			  ac_lo= ac_hi=
8418			  break
8419			fi
8420			ac_mid=`expr 2 '*' $ac_mid`
8421fi
8422
8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424  done
8425else
8426  echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429	ac_lo= ac_hi=
8430fi
8431
8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433fi
8434
8435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436# Binary search between lo and hi bounds.
8437while test "x$ac_lo" != "x$ac_hi"; do
8438  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8439  cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h.  */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h.  */
8445$ac_includes_default
8446   typedef long long ac__type_sizeof_;
8447int
8448main ()
8449{
8450static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8451test_array [0] = 0
8452
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457rm -f conftest.$ac_objext
8458if { (ac_try="$ac_compile"
8459case "(($ac_try" in
8460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461  *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464  (eval "$ac_compile") 2>conftest.er1
8465  ac_status=$?
8466  grep -v '^ *+' conftest.er1 >conftest.err
8467  rm -f conftest.er1
8468  cat conftest.err >&5
8469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470  (exit $ac_status); } && {
8471	 test -z "$ac_c_werror_flag" ||
8472	 test ! -s conftest.err
8473       } && test -s conftest.$ac_objext; then
8474  ac_hi=$ac_mid
8475else
8476  echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479	ac_lo=`expr '(' $ac_mid ')' + 1`
8480fi
8481
8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483done
8484case $ac_lo in
8485?*) ac_cv_sizeof_long_long=$ac_lo;;
8486'') if test "$ac_cv_type_long_long" = yes; then
8487     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8488See \`config.log' for more details." >&5
8489echo "$as_me: error: cannot compute sizeof (long long)
8490See \`config.log' for more details." >&2;}
8491   { (exit 77); exit 77; }; }
8492   else
8493     ac_cv_sizeof_long_long=0
8494   fi ;;
8495esac
8496else
8497  cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h.  */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h.  */
8503$ac_includes_default
8504   typedef long long ac__type_sizeof_;
8505static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8506static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8507#include <stdio.h>
8508#include <stdlib.h>
8509int
8510main ()
8511{
8512
8513  FILE *f = fopen ("conftest.val", "w");
8514  if (! f)
8515    return 1;
8516  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8517    {
8518      long int i = longval ();
8519      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8520	return 1;
8521      fprintf (f, "%ld\n", i);
8522    }
8523  else
8524    {
8525      unsigned long int i = ulongval ();
8526      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8527	return 1;
8528      fprintf (f, "%lu\n", i);
8529    }
8530  return ferror (f) || fclose (f) != 0;
8531
8532  ;
8533  return 0;
8534}
8535_ACEOF
8536rm -f conftest$ac_exeext
8537if { (ac_try="$ac_link"
8538case "(($ac_try" in
8539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540  *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543  (eval "$ac_link") 2>&5
8544  ac_status=$?
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8547  { (case "(($ac_try" in
8548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549  *) ac_try_echo=$ac_try;;
8550esac
8551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552  (eval "$ac_try") 2>&5
8553  ac_status=$?
8554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555  (exit $ac_status); }; }; then
8556  ac_cv_sizeof_long_long=`cat conftest.val`
8557else
8558  echo "$as_me: program exited with status $ac_status" >&5
8559echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562( exit $ac_status )
8563if test "$ac_cv_type_long_long" = yes; then
8564     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8565See \`config.log' for more details." >&5
8566echo "$as_me: error: cannot compute sizeof (long long)
8567See \`config.log' for more details." >&2;}
8568   { (exit 77); exit 77; }; }
8569   else
8570     ac_cv_sizeof_long_long=0
8571   fi
8572fi
8573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8574fi
8575rm -f conftest.val
8576fi
8577{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8578echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8579
8580
8581
8582cat >>confdefs.h <<_ACEOF
8583#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8584_ACEOF
8585
8586
8587
8588{ echo "$as_me:$LINENO: checking for off_t" >&5
8589echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8590if test "${ac_cv_type_off_t+set}" = set; then
8591  echo $ECHO_N "(cached) $ECHO_C" >&6
8592else
8593  cat >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
8600typedef off_t ac__type_new_;
8601int
8602main ()
8603{
8604if ((ac__type_new_ *) 0)
8605  return 0;
8606if (sizeof (ac__type_new_))
8607  return 0;
8608  ;
8609  return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext
8613if { (ac_try="$ac_compile"
8614case "(($ac_try" in
8615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616  *) ac_try_echo=$ac_try;;
8617esac
8618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619  (eval "$ac_compile") 2>conftest.er1
8620  ac_status=$?
8621  grep -v '^ *+' conftest.er1 >conftest.err
8622  rm -f conftest.er1
8623  cat conftest.err >&5
8624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625  (exit $ac_status); } && {
8626	 test -z "$ac_c_werror_flag" ||
8627	 test ! -s conftest.err
8628       } && test -s conftest.$ac_objext; then
8629  ac_cv_type_off_t=yes
8630else
8631  echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634	ac_cv_type_off_t=no
8635fi
8636
8637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638fi
8639{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8640echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8641
8642# The cast to long int works around a bug in the HP C Compiler
8643# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8644# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8645# This bug is HP SR number 8606223364.
8646{ echo "$as_me:$LINENO: checking size of off_t" >&5
8647echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
8648if test "${ac_cv_sizeof_off_t+set}" = set; then
8649  echo $ECHO_N "(cached) $ECHO_C" >&6
8650else
8651  if test "$cross_compiling" = yes; then
8652  # Depending upon the size, compute the lo and hi bounds.
8653cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h.  */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h.  */
8659$ac_includes_default
8660   typedef off_t ac__type_sizeof_;
8661int
8662main ()
8663{
8664static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8665test_array [0] = 0
8666
8667  ;
8668  return 0;
8669}
8670_ACEOF
8671rm -f conftest.$ac_objext
8672if { (ac_try="$ac_compile"
8673case "(($ac_try" in
8674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675  *) ac_try_echo=$ac_try;;
8676esac
8677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678  (eval "$ac_compile") 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } && {
8685	 test -z "$ac_c_werror_flag" ||
8686	 test ! -s conftest.err
8687       } && test -s conftest.$ac_objext; then
8688  ac_lo=0 ac_mid=0
8689  while :; do
8690    cat >conftest.$ac_ext <<_ACEOF
8691/* confdefs.h.  */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h.  */
8696$ac_includes_default
8697   typedef off_t ac__type_sizeof_;
8698int
8699main ()
8700{
8701static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8702test_array [0] = 0
8703
8704  ;
8705  return 0;
8706}
8707_ACEOF
8708rm -f conftest.$ac_objext
8709if { (ac_try="$ac_compile"
8710case "(($ac_try" in
8711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712  *) ac_try_echo=$ac_try;;
8713esac
8714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715  (eval "$ac_compile") 2>conftest.er1
8716  ac_status=$?
8717  grep -v '^ *+' conftest.er1 >conftest.err
8718  rm -f conftest.er1
8719  cat conftest.err >&5
8720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721  (exit $ac_status); } && {
8722	 test -z "$ac_c_werror_flag" ||
8723	 test ! -s conftest.err
8724       } && test -s conftest.$ac_objext; then
8725  ac_hi=$ac_mid; break
8726else
8727  echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730	ac_lo=`expr $ac_mid + 1`
8731			if test $ac_lo -le $ac_mid; then
8732			  ac_lo= ac_hi=
8733			  break
8734			fi
8735			ac_mid=`expr 2 '*' $ac_mid + 1`
8736fi
8737
8738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739  done
8740else
8741  echo "$as_me: failed program was:" >&5
8742sed 's/^/| /' conftest.$ac_ext >&5
8743
8744	cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h.  */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h.  */
8750$ac_includes_default
8751   typedef off_t ac__type_sizeof_;
8752int
8753main ()
8754{
8755static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8756test_array [0] = 0
8757
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762rm -f conftest.$ac_objext
8763if { (ac_try="$ac_compile"
8764case "(($ac_try" in
8765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766  *) ac_try_echo=$ac_try;;
8767esac
8768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769  (eval "$ac_compile") 2>conftest.er1
8770  ac_status=$?
8771  grep -v '^ *+' conftest.er1 >conftest.err
8772  rm -f conftest.er1
8773  cat conftest.err >&5
8774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775  (exit $ac_status); } && {
8776	 test -z "$ac_c_werror_flag" ||
8777	 test ! -s conftest.err
8778       } && test -s conftest.$ac_objext; then
8779  ac_hi=-1 ac_mid=-1
8780  while :; do
8781    cat >conftest.$ac_ext <<_ACEOF
8782/* confdefs.h.  */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h.  */
8787$ac_includes_default
8788   typedef off_t ac__type_sizeof_;
8789int
8790main ()
8791{
8792static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8793test_array [0] = 0
8794
8795  ;
8796  return 0;
8797}
8798_ACEOF
8799rm -f conftest.$ac_objext
8800if { (ac_try="$ac_compile"
8801case "(($ac_try" in
8802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803  *) ac_try_echo=$ac_try;;
8804esac
8805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806  (eval "$ac_compile") 2>conftest.er1
8807  ac_status=$?
8808  grep -v '^ *+' conftest.er1 >conftest.err
8809  rm -f conftest.er1
8810  cat conftest.err >&5
8811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812  (exit $ac_status); } && {
8813	 test -z "$ac_c_werror_flag" ||
8814	 test ! -s conftest.err
8815       } && test -s conftest.$ac_objext; then
8816  ac_lo=$ac_mid; break
8817else
8818  echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
8821	ac_hi=`expr '(' $ac_mid ')' - 1`
8822			if test $ac_mid -le $ac_hi; then
8823			  ac_lo= ac_hi=
8824			  break
8825			fi
8826			ac_mid=`expr 2 '*' $ac_mid`
8827fi
8828
8829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830  done
8831else
8832  echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
8834
8835	ac_lo= ac_hi=
8836fi
8837
8838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839fi
8840
8841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842# Binary search between lo and hi bounds.
8843while test "x$ac_lo" != "x$ac_hi"; do
8844  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8845  cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h.  */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h.  */
8851$ac_includes_default
8852   typedef off_t ac__type_sizeof_;
8853int
8854main ()
8855{
8856static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8857test_array [0] = 0
8858
8859  ;
8860  return 0;
8861}
8862_ACEOF
8863rm -f conftest.$ac_objext
8864if { (ac_try="$ac_compile"
8865case "(($ac_try" in
8866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867  *) ac_try_echo=$ac_try;;
8868esac
8869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870  (eval "$ac_compile") 2>conftest.er1
8871  ac_status=$?
8872  grep -v '^ *+' conftest.er1 >conftest.err
8873  rm -f conftest.er1
8874  cat conftest.err >&5
8875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876  (exit $ac_status); } && {
8877	 test -z "$ac_c_werror_flag" ||
8878	 test ! -s conftest.err
8879       } && test -s conftest.$ac_objext; then
8880  ac_hi=$ac_mid
8881else
8882  echo "$as_me: failed program was:" >&5
8883sed 's/^/| /' conftest.$ac_ext >&5
8884
8885	ac_lo=`expr '(' $ac_mid ')' + 1`
8886fi
8887
8888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889done
8890case $ac_lo in
8891?*) ac_cv_sizeof_off_t=$ac_lo;;
8892'') if test "$ac_cv_type_off_t" = yes; then
8893     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8894See \`config.log' for more details." >&5
8895echo "$as_me: error: cannot compute sizeof (off_t)
8896See \`config.log' for more details." >&2;}
8897   { (exit 77); exit 77; }; }
8898   else
8899     ac_cv_sizeof_off_t=0
8900   fi ;;
8901esac
8902else
8903  cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h.  */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h.  */
8909$ac_includes_default
8910   typedef off_t ac__type_sizeof_;
8911static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8912static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8913#include <stdio.h>
8914#include <stdlib.h>
8915int
8916main ()
8917{
8918
8919  FILE *f = fopen ("conftest.val", "w");
8920  if (! f)
8921    return 1;
8922  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8923    {
8924      long int i = longval ();
8925      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8926	return 1;
8927      fprintf (f, "%ld\n", i);
8928    }
8929  else
8930    {
8931      unsigned long int i = ulongval ();
8932      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8933	return 1;
8934      fprintf (f, "%lu\n", i);
8935    }
8936  return ferror (f) || fclose (f) != 0;
8937
8938  ;
8939  return 0;
8940}
8941_ACEOF
8942rm -f conftest$ac_exeext
8943if { (ac_try="$ac_link"
8944case "(($ac_try" in
8945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946  *) ac_try_echo=$ac_try;;
8947esac
8948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949  (eval "$ac_link") 2>&5
8950  ac_status=$?
8951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8953  { (case "(($ac_try" in
8954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955  *) ac_try_echo=$ac_try;;
8956esac
8957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958  (eval "$ac_try") 2>&5
8959  ac_status=$?
8960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961  (exit $ac_status); }; }; then
8962  ac_cv_sizeof_off_t=`cat conftest.val`
8963else
8964  echo "$as_me: program exited with status $ac_status" >&5
8965echo "$as_me: failed program was:" >&5
8966sed 's/^/| /' conftest.$ac_ext >&5
8967
8968( exit $ac_status )
8969if test "$ac_cv_type_off_t" = yes; then
8970     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8971See \`config.log' for more details." >&5
8972echo "$as_me: error: cannot compute sizeof (off_t)
8973See \`config.log' for more details." >&2;}
8974   { (exit 77); exit 77; }; }
8975   else
8976     ac_cv_sizeof_off_t=0
8977   fi
8978fi
8979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8980fi
8981rm -f conftest.val
8982fi
8983{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8984echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
8985
8986
8987
8988cat >>confdefs.h <<_ACEOF
8989#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8990_ACEOF
8991
8992
8993{ echo "$as_me:$LINENO: checking for size_t" >&5
8994echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8995if test "${ac_cv_type_size_t+set}" = set; then
8996  echo $ECHO_N "(cached) $ECHO_C" >&6
8997else
8998  cat >conftest.$ac_ext <<_ACEOF
8999/* confdefs.h.  */
9000_ACEOF
9001cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF
9003/* end confdefs.h.  */
9004$ac_includes_default
9005typedef size_t ac__type_new_;
9006int
9007main ()
9008{
9009if ((ac__type_new_ *) 0)
9010  return 0;
9011if (sizeof (ac__type_new_))
9012  return 0;
9013  ;
9014  return 0;
9015}
9016_ACEOF
9017rm -f conftest.$ac_objext
9018if { (ac_try="$ac_compile"
9019case "(($ac_try" in
9020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021  *) ac_try_echo=$ac_try;;
9022esac
9023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024  (eval "$ac_compile") 2>conftest.er1
9025  ac_status=$?
9026  grep -v '^ *+' conftest.er1 >conftest.err
9027  rm -f conftest.er1
9028  cat conftest.err >&5
9029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030  (exit $ac_status); } && {
9031	 test -z "$ac_c_werror_flag" ||
9032	 test ! -s conftest.err
9033       } && test -s conftest.$ac_objext; then
9034  ac_cv_type_size_t=yes
9035else
9036  echo "$as_me: failed program was:" >&5
9037sed 's/^/| /' conftest.$ac_ext >&5
9038
9039	ac_cv_type_size_t=no
9040fi
9041
9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043fi
9044{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9045echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9046
9047# The cast to long int works around a bug in the HP C Compiler
9048# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9049# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9050# This bug is HP SR number 8606223364.
9051{ echo "$as_me:$LINENO: checking size of size_t" >&5
9052echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9053if test "${ac_cv_sizeof_size_t+set}" = set; then
9054  echo $ECHO_N "(cached) $ECHO_C" >&6
9055else
9056  if test "$cross_compiling" = yes; then
9057  # Depending upon the size, compute the lo and hi bounds.
9058cat >conftest.$ac_ext <<_ACEOF
9059/* confdefs.h.  */
9060_ACEOF
9061cat confdefs.h >>conftest.$ac_ext
9062cat >>conftest.$ac_ext <<_ACEOF
9063/* end confdefs.h.  */
9064$ac_includes_default
9065   typedef size_t ac__type_sizeof_;
9066int
9067main ()
9068{
9069static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9070test_array [0] = 0
9071
9072  ;
9073  return 0;
9074}
9075_ACEOF
9076rm -f conftest.$ac_objext
9077if { (ac_try="$ac_compile"
9078case "(($ac_try" in
9079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080  *) ac_try_echo=$ac_try;;
9081esac
9082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083  (eval "$ac_compile") 2>conftest.er1
9084  ac_status=$?
9085  grep -v '^ *+' conftest.er1 >conftest.err
9086  rm -f conftest.er1
9087  cat conftest.err >&5
9088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089  (exit $ac_status); } && {
9090	 test -z "$ac_c_werror_flag" ||
9091	 test ! -s conftest.err
9092       } && test -s conftest.$ac_objext; then
9093  ac_lo=0 ac_mid=0
9094  while :; do
9095    cat >conftest.$ac_ext <<_ACEOF
9096/* confdefs.h.  */
9097_ACEOF
9098cat confdefs.h >>conftest.$ac_ext
9099cat >>conftest.$ac_ext <<_ACEOF
9100/* end confdefs.h.  */
9101$ac_includes_default
9102   typedef size_t ac__type_sizeof_;
9103int
9104main ()
9105{
9106static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9107test_array [0] = 0
9108
9109  ;
9110  return 0;
9111}
9112_ACEOF
9113rm -f conftest.$ac_objext
9114if { (ac_try="$ac_compile"
9115case "(($ac_try" in
9116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117  *) ac_try_echo=$ac_try;;
9118esac
9119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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	 test -z "$ac_c_werror_flag" ||
9128	 test ! -s conftest.err
9129       } && test -s conftest.$ac_objext; then
9130  ac_hi=$ac_mid; break
9131else
9132  echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135	ac_lo=`expr $ac_mid + 1`
9136			if test $ac_lo -le $ac_mid; then
9137			  ac_lo= ac_hi=
9138			  break
9139			fi
9140			ac_mid=`expr 2 '*' $ac_mid + 1`
9141fi
9142
9143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144  done
9145else
9146  echo "$as_me: failed program was:" >&5
9147sed 's/^/| /' conftest.$ac_ext >&5
9148
9149	cat >conftest.$ac_ext <<_ACEOF
9150/* confdefs.h.  */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h.  */
9155$ac_includes_default
9156   typedef size_t ac__type_sizeof_;
9157int
9158main ()
9159{
9160static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9161test_array [0] = 0
9162
9163  ;
9164  return 0;
9165}
9166_ACEOF
9167rm -f conftest.$ac_objext
9168if { (ac_try="$ac_compile"
9169case "(($ac_try" in
9170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171  *) ac_try_echo=$ac_try;;
9172esac
9173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174  (eval "$ac_compile") 2>conftest.er1
9175  ac_status=$?
9176  grep -v '^ *+' conftest.er1 >conftest.err
9177  rm -f conftest.er1
9178  cat conftest.err >&5
9179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180  (exit $ac_status); } && {
9181	 test -z "$ac_c_werror_flag" ||
9182	 test ! -s conftest.err
9183       } && test -s conftest.$ac_objext; then
9184  ac_hi=-1 ac_mid=-1
9185  while :; do
9186    cat >conftest.$ac_ext <<_ACEOF
9187/* confdefs.h.  */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h.  */
9192$ac_includes_default
9193   typedef size_t ac__type_sizeof_;
9194int
9195main ()
9196{
9197static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9198test_array [0] = 0
9199
9200  ;
9201  return 0;
9202}
9203_ACEOF
9204rm -f conftest.$ac_objext
9205if { (ac_try="$ac_compile"
9206case "(($ac_try" in
9207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208  *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211  (eval "$ac_compile") 2>conftest.er1
9212  ac_status=$?
9213  grep -v '^ *+' conftest.er1 >conftest.err
9214  rm -f conftest.er1
9215  cat conftest.err >&5
9216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217  (exit $ac_status); } && {
9218	 test -z "$ac_c_werror_flag" ||
9219	 test ! -s conftest.err
9220       } && test -s conftest.$ac_objext; then
9221  ac_lo=$ac_mid; break
9222else
9223  echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226	ac_hi=`expr '(' $ac_mid ')' - 1`
9227			if test $ac_mid -le $ac_hi; then
9228			  ac_lo= ac_hi=
9229			  break
9230			fi
9231			ac_mid=`expr 2 '*' $ac_mid`
9232fi
9233
9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235  done
9236else
9237  echo "$as_me: failed program was:" >&5
9238sed 's/^/| /' conftest.$ac_ext >&5
9239
9240	ac_lo= ac_hi=
9241fi
9242
9243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244fi
9245
9246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247# Binary search between lo and hi bounds.
9248while test "x$ac_lo" != "x$ac_hi"; do
9249  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9250  cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h.  */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h.  */
9256$ac_includes_default
9257   typedef size_t ac__type_sizeof_;
9258int
9259main ()
9260{
9261static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9262test_array [0] = 0
9263
9264  ;
9265  return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext
9269if { (ac_try="$ac_compile"
9270case "(($ac_try" in
9271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272  *) ac_try_echo=$ac_try;;
9273esac
9274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275  (eval "$ac_compile") 2>conftest.er1
9276  ac_status=$?
9277  grep -v '^ *+' conftest.er1 >conftest.err
9278  rm -f conftest.er1
9279  cat conftest.err >&5
9280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281  (exit $ac_status); } && {
9282	 test -z "$ac_c_werror_flag" ||
9283	 test ! -s conftest.err
9284       } && test -s conftest.$ac_objext; then
9285  ac_hi=$ac_mid
9286else
9287  echo "$as_me: failed program was:" >&5
9288sed 's/^/| /' conftest.$ac_ext >&5
9289
9290	ac_lo=`expr '(' $ac_mid ')' + 1`
9291fi
9292
9293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294done
9295case $ac_lo in
9296?*) ac_cv_sizeof_size_t=$ac_lo;;
9297'') if test "$ac_cv_type_size_t" = yes; then
9298     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
9299See \`config.log' for more details." >&5
9300echo "$as_me: error: cannot compute sizeof (size_t)
9301See \`config.log' for more details." >&2;}
9302   { (exit 77); exit 77; }; }
9303   else
9304     ac_cv_sizeof_size_t=0
9305   fi ;;
9306esac
9307else
9308  cat >conftest.$ac_ext <<_ACEOF
9309/* confdefs.h.  */
9310_ACEOF
9311cat confdefs.h >>conftest.$ac_ext
9312cat >>conftest.$ac_ext <<_ACEOF
9313/* end confdefs.h.  */
9314$ac_includes_default
9315   typedef size_t ac__type_sizeof_;
9316static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9317static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9318#include <stdio.h>
9319#include <stdlib.h>
9320int
9321main ()
9322{
9323
9324  FILE *f = fopen ("conftest.val", "w");
9325  if (! f)
9326    return 1;
9327  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9328    {
9329      long int i = longval ();
9330      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9331	return 1;
9332      fprintf (f, "%ld\n", i);
9333    }
9334  else
9335    {
9336      unsigned long int i = ulongval ();
9337      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9338	return 1;
9339      fprintf (f, "%lu\n", i);
9340    }
9341  return ferror (f) || fclose (f) != 0;
9342
9343  ;
9344  return 0;
9345}
9346_ACEOF
9347rm -f conftest$ac_exeext
9348if { (ac_try="$ac_link"
9349case "(($ac_try" in
9350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351  *) ac_try_echo=$ac_try;;
9352esac
9353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354  (eval "$ac_link") 2>&5
9355  ac_status=$?
9356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9358  { (case "(($ac_try" in
9359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360  *) ac_try_echo=$ac_try;;
9361esac
9362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363  (eval "$ac_try") 2>&5
9364  ac_status=$?
9365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366  (exit $ac_status); }; }; then
9367  ac_cv_sizeof_size_t=`cat conftest.val`
9368else
9369  echo "$as_me: program exited with status $ac_status" >&5
9370echo "$as_me: failed program was:" >&5
9371sed 's/^/| /' conftest.$ac_ext >&5
9372
9373( exit $ac_status )
9374if test "$ac_cv_type_size_t" = yes; then
9375     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
9376See \`config.log' for more details." >&5
9377echo "$as_me: error: cannot compute sizeof (size_t)
9378See \`config.log' for more details." >&2;}
9379   { (exit 77); exit 77; }; }
9380   else
9381     ac_cv_sizeof_size_t=0
9382   fi
9383fi
9384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9385fi
9386rm -f conftest.val
9387fi
9388{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9389echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
9390
9391
9392
9393cat >>confdefs.h <<_ACEOF
9394#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9395_ACEOF
9396
9397
9398{ echo "$as_me:$LINENO: checking for ssize_t" >&5
9399echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
9400if test "${ac_cv_type_ssize_t+set}" = set; then
9401  echo $ECHO_N "(cached) $ECHO_C" >&6
9402else
9403  cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h.  */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h.  */
9409$ac_includes_default
9410typedef ssize_t ac__type_new_;
9411int
9412main ()
9413{
9414if ((ac__type_new_ *) 0)
9415  return 0;
9416if (sizeof (ac__type_new_))
9417  return 0;
9418  ;
9419  return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext
9423if { (ac_try="$ac_compile"
9424case "(($ac_try" in
9425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426  *) ac_try_echo=$ac_try;;
9427esac
9428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429  (eval "$ac_compile") 2>conftest.er1
9430  ac_status=$?
9431  grep -v '^ *+' conftest.er1 >conftest.err
9432  rm -f conftest.er1
9433  cat conftest.err >&5
9434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435  (exit $ac_status); } && {
9436	 test -z "$ac_c_werror_flag" ||
9437	 test ! -s conftest.err
9438       } && test -s conftest.$ac_objext; then
9439  ac_cv_type_ssize_t=yes
9440else
9441  echo "$as_me: failed program was:" >&5
9442sed 's/^/| /' conftest.$ac_ext >&5
9443
9444	ac_cv_type_ssize_t=no
9445fi
9446
9447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448fi
9449{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9450echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
9451
9452# The cast to long int works around a bug in the HP C Compiler
9453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9455# This bug is HP SR number 8606223364.
9456{ echo "$as_me:$LINENO: checking size of ssize_t" >&5
9457echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
9458if test "${ac_cv_sizeof_ssize_t+set}" = set; then
9459  echo $ECHO_N "(cached) $ECHO_C" >&6
9460else
9461  if test "$cross_compiling" = yes; then
9462  # Depending upon the size, compute the lo and hi bounds.
9463cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h.  */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h.  */
9469$ac_includes_default
9470   typedef ssize_t ac__type_sizeof_;
9471int
9472main ()
9473{
9474static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9475test_array [0] = 0
9476
9477  ;
9478  return 0;
9479}
9480_ACEOF
9481rm -f conftest.$ac_objext
9482if { (ac_try="$ac_compile"
9483case "(($ac_try" in
9484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485  *) ac_try_echo=$ac_try;;
9486esac
9487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488  (eval "$ac_compile") 2>conftest.er1
9489  ac_status=$?
9490  grep -v '^ *+' conftest.er1 >conftest.err
9491  rm -f conftest.er1
9492  cat conftest.err >&5
9493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494  (exit $ac_status); } && {
9495	 test -z "$ac_c_werror_flag" ||
9496	 test ! -s conftest.err
9497       } && test -s conftest.$ac_objext; then
9498  ac_lo=0 ac_mid=0
9499  while :; do
9500    cat >conftest.$ac_ext <<_ACEOF
9501/* confdefs.h.  */
9502_ACEOF
9503cat confdefs.h >>conftest.$ac_ext
9504cat >>conftest.$ac_ext <<_ACEOF
9505/* end confdefs.h.  */
9506$ac_includes_default
9507   typedef ssize_t ac__type_sizeof_;
9508int
9509main ()
9510{
9511static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9512test_array [0] = 0
9513
9514  ;
9515  return 0;
9516}
9517_ACEOF
9518rm -f conftest.$ac_objext
9519if { (ac_try="$ac_compile"
9520case "(($ac_try" in
9521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522  *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525  (eval "$ac_compile") 2>conftest.er1
9526  ac_status=$?
9527  grep -v '^ *+' conftest.er1 >conftest.err
9528  rm -f conftest.er1
9529  cat conftest.err >&5
9530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531  (exit $ac_status); } && {
9532	 test -z "$ac_c_werror_flag" ||
9533	 test ! -s conftest.err
9534       } && test -s conftest.$ac_objext; then
9535  ac_hi=$ac_mid; break
9536else
9537  echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540	ac_lo=`expr $ac_mid + 1`
9541			if test $ac_lo -le $ac_mid; then
9542			  ac_lo= ac_hi=
9543			  break
9544			fi
9545			ac_mid=`expr 2 '*' $ac_mid + 1`
9546fi
9547
9548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549  done
9550else
9551  echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554	cat >conftest.$ac_ext <<_ACEOF
9555/* confdefs.h.  */
9556_ACEOF
9557cat confdefs.h >>conftest.$ac_ext
9558cat >>conftest.$ac_ext <<_ACEOF
9559/* end confdefs.h.  */
9560$ac_includes_default
9561   typedef ssize_t ac__type_sizeof_;
9562int
9563main ()
9564{
9565static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9566test_array [0] = 0
9567
9568  ;
9569  return 0;
9570}
9571_ACEOF
9572rm -f conftest.$ac_objext
9573if { (ac_try="$ac_compile"
9574case "(($ac_try" in
9575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576  *) ac_try_echo=$ac_try;;
9577esac
9578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579  (eval "$ac_compile") 2>conftest.er1
9580  ac_status=$?
9581  grep -v '^ *+' conftest.er1 >conftest.err
9582  rm -f conftest.er1
9583  cat conftest.err >&5
9584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585  (exit $ac_status); } && {
9586	 test -z "$ac_c_werror_flag" ||
9587	 test ! -s conftest.err
9588       } && test -s conftest.$ac_objext; then
9589  ac_hi=-1 ac_mid=-1
9590  while :; do
9591    cat >conftest.$ac_ext <<_ACEOF
9592/* confdefs.h.  */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
9596/* end confdefs.h.  */
9597$ac_includes_default
9598   typedef ssize_t ac__type_sizeof_;
9599int
9600main ()
9601{
9602static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9603test_array [0] = 0
9604
9605  ;
9606  return 0;
9607}
9608_ACEOF
9609rm -f conftest.$ac_objext
9610if { (ac_try="$ac_compile"
9611case "(($ac_try" in
9612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613  *) ac_try_echo=$ac_try;;
9614esac
9615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616  (eval "$ac_compile") 2>conftest.er1
9617  ac_status=$?
9618  grep -v '^ *+' conftest.er1 >conftest.err
9619  rm -f conftest.er1
9620  cat conftest.err >&5
9621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622  (exit $ac_status); } && {
9623	 test -z "$ac_c_werror_flag" ||
9624	 test ! -s conftest.err
9625       } && test -s conftest.$ac_objext; then
9626  ac_lo=$ac_mid; break
9627else
9628  echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
9631	ac_hi=`expr '(' $ac_mid ')' - 1`
9632			if test $ac_mid -le $ac_hi; then
9633			  ac_lo= ac_hi=
9634			  break
9635			fi
9636			ac_mid=`expr 2 '*' $ac_mid`
9637fi
9638
9639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640  done
9641else
9642  echo "$as_me: failed program was:" >&5
9643sed 's/^/| /' conftest.$ac_ext >&5
9644
9645	ac_lo= ac_hi=
9646fi
9647
9648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649fi
9650
9651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9652# Binary search between lo and hi bounds.
9653while test "x$ac_lo" != "x$ac_hi"; do
9654  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9655  cat >conftest.$ac_ext <<_ACEOF
9656/* confdefs.h.  */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h.  */
9661$ac_includes_default
9662   typedef ssize_t ac__type_sizeof_;
9663int
9664main ()
9665{
9666static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9667test_array [0] = 0
9668
9669  ;
9670  return 0;
9671}
9672_ACEOF
9673rm -f conftest.$ac_objext
9674if { (ac_try="$ac_compile"
9675case "(($ac_try" in
9676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677  *) ac_try_echo=$ac_try;;
9678esac
9679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680  (eval "$ac_compile") 2>conftest.er1
9681  ac_status=$?
9682  grep -v '^ *+' conftest.er1 >conftest.err
9683  rm -f conftest.er1
9684  cat conftest.err >&5
9685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686  (exit $ac_status); } && {
9687	 test -z "$ac_c_werror_flag" ||
9688	 test ! -s conftest.err
9689       } && test -s conftest.$ac_objext; then
9690  ac_hi=$ac_mid
9691else
9692  echo "$as_me: failed program was:" >&5
9693sed 's/^/| /' conftest.$ac_ext >&5
9694
9695	ac_lo=`expr '(' $ac_mid ')' + 1`
9696fi
9697
9698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699done
9700case $ac_lo in
9701?*) ac_cv_sizeof_ssize_t=$ac_lo;;
9702'') if test "$ac_cv_type_ssize_t" = yes; then
9703     { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
9704See \`config.log' for more details." >&5
9705echo "$as_me: error: cannot compute sizeof (ssize_t)
9706See \`config.log' for more details." >&2;}
9707   { (exit 77); exit 77; }; }
9708   else
9709     ac_cv_sizeof_ssize_t=0
9710   fi ;;
9711esac
9712else
9713  cat >conftest.$ac_ext <<_ACEOF
9714/* confdefs.h.  */
9715_ACEOF
9716cat confdefs.h >>conftest.$ac_ext
9717cat >>conftest.$ac_ext <<_ACEOF
9718/* end confdefs.h.  */
9719$ac_includes_default
9720   typedef ssize_t ac__type_sizeof_;
9721static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9722static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9723#include <stdio.h>
9724#include <stdlib.h>
9725int
9726main ()
9727{
9728
9729  FILE *f = fopen ("conftest.val", "w");
9730  if (! f)
9731    return 1;
9732  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9733    {
9734      long int i = longval ();
9735      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9736	return 1;
9737      fprintf (f, "%ld\n", i);
9738    }
9739  else
9740    {
9741      unsigned long int i = ulongval ();
9742      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9743	return 1;
9744      fprintf (f, "%lu\n", i);
9745    }
9746  return ferror (f) || fclose (f) != 0;
9747
9748  ;
9749  return 0;
9750}
9751_ACEOF
9752rm -f conftest$ac_exeext
9753if { (ac_try="$ac_link"
9754case "(($ac_try" in
9755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756  *) ac_try_echo=$ac_try;;
9757esac
9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759  (eval "$ac_link") 2>&5
9760  ac_status=$?
9761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9763  { (case "(($ac_try" in
9764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765  *) ac_try_echo=$ac_try;;
9766esac
9767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768  (eval "$ac_try") 2>&5
9769  ac_status=$?
9770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771  (exit $ac_status); }; }; then
9772  ac_cv_sizeof_ssize_t=`cat conftest.val`
9773else
9774  echo "$as_me: program exited with status $ac_status" >&5
9775echo "$as_me: failed program was:" >&5
9776sed 's/^/| /' conftest.$ac_ext >&5
9777
9778( exit $ac_status )
9779if test "$ac_cv_type_ssize_t" = yes; then
9780     { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
9781See \`config.log' for more details." >&5
9782echo "$as_me: error: cannot compute sizeof (ssize_t)
9783See \`config.log' for more details." >&2;}
9784   { (exit 77); exit 77; }; }
9785   else
9786     ac_cv_sizeof_ssize_t=0
9787   fi
9788fi
9789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9790fi
9791rm -f conftest.val
9792fi
9793{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
9794echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
9795
9796
9797
9798cat >>confdefs.h <<_ACEOF
9799#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
9800_ACEOF
9801
9802
9803
9804{ echo "$as_me:$LINENO: checking for intptr_t" >&5
9805echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
9806if test "${ac_cv_type_intptr_t+set}" = set; then
9807  echo $ECHO_N "(cached) $ECHO_C" >&6
9808else
9809  cat >conftest.$ac_ext <<_ACEOF
9810/* confdefs.h.  */
9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h.  */
9815$ac_includes_default
9816typedef intptr_t ac__type_new_;
9817int
9818main ()
9819{
9820if ((ac__type_new_ *) 0)
9821  return 0;
9822if (sizeof (ac__type_new_))
9823  return 0;
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext
9829if { (ac_try="$ac_compile"
9830case "(($ac_try" in
9831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832  *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835  (eval "$ac_compile") 2>conftest.er1
9836  ac_status=$?
9837  grep -v '^ *+' conftest.er1 >conftest.err
9838  rm -f conftest.er1
9839  cat conftest.err >&5
9840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841  (exit $ac_status); } && {
9842	 test -z "$ac_c_werror_flag" ||
9843	 test ! -s conftest.err
9844       } && test -s conftest.$ac_objext; then
9845  ac_cv_type_intptr_t=yes
9846else
9847  echo "$as_me: failed program was:" >&5
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
9850	ac_cv_type_intptr_t=no
9851fi
9852
9853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854fi
9855{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
9856echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
9857if test $ac_cv_type_intptr_t = yes; then
9858  :
9859else
9860
9861cat >>confdefs.h <<_ACEOF
9862#define intptr_t unsigned long long
9863_ACEOF
9864
9865fi
9866
9867{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9868echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9869if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9870  echo $ECHO_N "(cached) $ECHO_C" >&6
9871else
9872  cat >conftest.$ac_ext <<_ACEOF
9873/* confdefs.h.  */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h.  */
9878$ac_includes_default
9879typedef ptrdiff_t ac__type_new_;
9880int
9881main ()
9882{
9883if ((ac__type_new_ *) 0)
9884  return 0;
9885if (sizeof (ac__type_new_))
9886  return 0;
9887  ;
9888  return 0;
9889}
9890_ACEOF
9891rm -f conftest.$ac_objext
9892if { (ac_try="$ac_compile"
9893case "(($ac_try" in
9894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895  *) ac_try_echo=$ac_try;;
9896esac
9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898  (eval "$ac_compile") 2>conftest.er1
9899  ac_status=$?
9900  grep -v '^ *+' conftest.er1 >conftest.err
9901  rm -f conftest.er1
9902  cat conftest.err >&5
9903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904  (exit $ac_status); } && {
9905	 test -z "$ac_c_werror_flag" ||
9906	 test ! -s conftest.err
9907       } && test -s conftest.$ac_objext; then
9908  ac_cv_type_ptrdiff_t=yes
9909else
9910  echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
9913	ac_cv_type_ptrdiff_t=no
9914fi
9915
9916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917fi
9918{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9919echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9920if test $ac_cv_type_ptrdiff_t = yes; then
9921  :
9922else
9923
9924cat >>confdefs.h <<_ACEOF
9925#define ptrdiff_t unsigned long long
9926_ACEOF
9927
9928fi
9929
9930
9931if test x"$ac_cv_type_long_long" != x"yes";then
9932	{ { echo "$as_me:$LINENO: error: LIBREPLACE needs type 'long long'" >&5
9933echo "$as_me: error: LIBREPLACE needs type 'long long'" >&2;}
9934   { (exit 1); exit 1; }; }
9935fi
9936if test $ac_cv_sizeof_long_long -lt 8;then
9937	{ { echo "$as_me:$LINENO: error: LIBREPLACE needs sizeof(long long) >= 8" >&5
9938echo "$as_me: error: LIBREPLACE needs sizeof(long long) >= 8" >&2;}
9939   { (exit 1); exit 1; }; }
9940fi
9941
9942############################################
9943# check if the compiler can do immediate structures
9944
9945{ echo "$as_me:$LINENO: checking for immediate structures" >&5
9946echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6; }
9947if test "${libreplace_cv_immediate_structures+set}" = set; then
9948  echo $ECHO_N "(cached) $ECHO_C" >&6
9949else
9950
9951	cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h.  */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h.  */
9957
9958		#include <stdio.h>
9959
9960int
9961main ()
9962{
9963
9964		typedef struct {unsigned x;} FOOBAR;
9965		#define X_FOOBAR(x) ((FOOBAR) { x })
9966		#define FOO_ONE X_FOOBAR(1)
9967		FOOBAR f = FOO_ONE;
9968		static const struct {
9969			FOOBAR y;
9970		} f2[] = {
9971			{FOO_ONE}
9972		};
9973
9974  ;
9975  return 0;
9976}
9977_ACEOF
9978rm -f conftest.$ac_objext
9979if { (ac_try="$ac_compile"
9980case "(($ac_try" in
9981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982  *) ac_try_echo=$ac_try;;
9983esac
9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985  (eval "$ac_compile") 2>conftest.er1
9986  ac_status=$?
9987  grep -v '^ *+' conftest.er1 >conftest.err
9988  rm -f conftest.er1
9989  cat conftest.err >&5
9990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); } && {
9992	 test -z "$ac_c_werror_flag" ||
9993	 test ! -s conftest.err
9994       } && test -s conftest.$ac_objext; then
9995  libreplace_cv_immediate_structures=yes
9996else
9997  echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
9999
10000	libreplace_cv_immediate_structures=no
10001fi
10002
10003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004
10005fi
10006{ echo "$as_me:$LINENO: result: $libreplace_cv_immediate_structures" >&5
10007echo "${ECHO_T}$libreplace_cv_immediate_structures" >&6; }
10008if test x"$libreplace_cv_immediate_structures" = x"yes"; then
10009
10010cat >>confdefs.h <<\_ACEOF
10011#define HAVE_IMMEDIATE_STRUCTURES 1
10012_ACEOF
10013
10014fi
10015
10016
10017echo "LIBREPLACE_CC_CHECKS: END"
10018
10019
10020
10021# Check whether --enable-socket-wrapper was given.
10022if test "${enable_socket_wrapper+set}" = set; then
10023  enableval=$enable_socket_wrapper;
10024fi
10025
10026
10027DEFAULT_TEST_TARGET=test-noswrap
10028HAVE_SOCKET_WRAPPER=no
10029
10030if eval "test x$developer = xyes"; then
10031	enable_socket_wrapper=yes
10032fi
10033
10034if eval "test x$enable_socket_wrapper = xyes"; then
10035
10036cat >>confdefs.h <<\_ACEOF
10037#define SOCKET_WRAPPER 1
10038_ACEOF
10039
10040	DEFAULT_TEST_TARGET=test-swrap
10041	HAVE_SOCKET_WRAPPER=yes
10042
10043	# this is only used for samba3
10044	SOCKET_WRAPPER_OBJS="lib/socket_wrapper/socket_wrapper.o"
10045fi
10046
10047
10048
10049
10050
10051
10052#################################################
10053# set prefix for 'make test'
10054selftest_prefix="./"
10055
10056
10057# Check whether --with-selftest-prefix was given.
10058if test "${with_selftest_prefix+set}" = set; then
10059  withval=$with_selftest_prefix;  case "$withval" in
10060  yes|no)
10061    { echo "$as_me:$LINENO: WARNING: --with-selftest-prefix called without argument - will use default" >&5
10062echo "$as_me: WARNING: --with-selftest-prefix called without argument - will use default" >&2;}
10063  ;;
10064  * )
10065    selftest_prefix="$withval"
10066    ;;
10067  esac
10068
10069fi
10070
10071
10072#################################################
10073# set path of samba4's smbtorture
10074smbtorture4_path=""
10075
10076
10077# Check whether --with-smbtorture4_path was given.
10078if test "${with_smbtorture4_path+set}" = set; then
10079  withval=$with_smbtorture4_path;  case "$withval" in
10080  yes|no)
10081    { { echo "$as_me:$LINENO: error: --with-smbtorture4-path should take a path" >&5
10082echo "$as_me: error: --with-smbtorture4-path should take a path" >&2;}
10083   { (exit 1); exit 1; }; }
10084  ;;
10085  * )
10086    smbtorture4_path="$withval"
10087    if test -z "$smbtorture4_path" -a ! -f $smbtorture4_path; then
10088    	{ { echo "$as_me:$LINENO: error: '$smbtorture_path' does not  exist!" >&5
10089echo "$as_me: error: '$smbtorture_path' does not  exist!" >&2;}
10090   { (exit 1); exit 1; }; }
10091    fi
10092  ;;
10093 esac
10094
10095fi
10096
10097
10098# Check whether --enable-developer was given.
10099if test "${enable_developer+set}" = set; then
10100  enableval=$enable_developer; if eval "test x$enable_developer = xyes"; then
10101        developer=yes
10102    	CFLAGS="${CFLAGS} -gstabs -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
10103	# Add -Wdeclaration-after-statement if compiler supports it
10104	{ echo "$as_me:$LINENO: checking that the C compiler understands -Wdeclaration-after-statement" >&5
10105echo $ECHO_N "checking that the C compiler understands -Wdeclaration-after-statement... $ECHO_C" >&6; }
10106if test "${samba_cv_HAVE_Wdeclaration_after_statement+set}" = set; then
10107  echo $ECHO_N "(cached) $ECHO_C" >&6
10108else
10109
10110
10111	old_CFLAGS="$CFLAGS";
10112	CFLAGS="-Wdeclaration-after-statement";
10113	export CFLAGS;
10114	old_CPPFLAGS="$CPPFLAGS";
10115	CPPFLAGS="$CPPFLAGS";
10116	export CPPFLAGS;
10117	old_LDFLAGS="$LDFLAGS";
10118	LDFLAGS="$LDFLAGS";
10119	export LDFLAGS;
10120	if test "$cross_compiling" = yes; then
10121  samba_cv_HAVE_Wdeclaration_after_statement=cross
10122else
10123  cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h.  */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h.  */
10129
10130	    int main(void)
10131	    {
10132	    	return 0;
10133	    }
10134_ACEOF
10135rm -f conftest$ac_exeext
10136if { (ac_try="$ac_link"
10137case "(($ac_try" in
10138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139  *) ac_try_echo=$ac_try;;
10140esac
10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142  (eval "$ac_link") 2>&5
10143  ac_status=$?
10144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10146  { (case "(($ac_try" in
10147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148  *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151  (eval "$ac_try") 2>&5
10152  ac_status=$?
10153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154  (exit $ac_status); }; }; then
10155  samba_cv_HAVE_Wdeclaration_after_statement=yes
10156else
10157  echo "$as_me: program exited with status $ac_status" >&5
10158echo "$as_me: failed program was:" >&5
10159sed 's/^/| /' conftest.$ac_ext >&5
10160
10161( exit $ac_status )
10162samba_cv_HAVE_Wdeclaration_after_statement=no
10163fi
10164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10165fi
10166
10167
10168	CFLAGS="$old_CFLAGS";
10169	old_CFLAGS="";
10170	export CFLAGS;
10171	CPPFLAGS="$old_CPPFLAGS";
10172	old_CPPFLAGS="";
10173	export CPPFLAGS;
10174	LDFLAGS="$old_LDFLAGS";
10175	old_LDFLAGS="";
10176	export LDFLAGS;
10177
10178
10179fi
10180{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_Wdeclaration_after_statement" >&5
10181echo "${ECHO_T}$samba_cv_HAVE_Wdeclaration_after_statement" >&6; }
10182       if test x"$samba_cv_HAVE_Wdeclaration_after_statement" = x"yes"; then
10183	    CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
10184       fi
10185    fi
10186fi
10187
10188
10189# Check whether --enable-krb5developer was given.
10190if test "${enable_krb5developer+set}" = set; then
10191  enableval=$enable_krb5developer; if eval "test x$enable_krb5developer = xyes"; then
10192        developer=yes
10193	CFLAGS="${CFLAGS} -gstabs -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
10194    fi
10195fi
10196
10197
10198# Check whether --enable-dmalloc was given.
10199if test "${enable_dmalloc+set}" = set; then
10200  enableval=$enable_dmalloc;
10201fi
10202
10203
10204if test "x$enable_dmalloc" = xyes
10205then
10206
10207cat >>confdefs.h <<\_ACEOF
10208#define ENABLE_DMALLOC 1
10209_ACEOF
10210
10211
10212cat >>confdefs.h <<\_ACEOF
10213#define DMALLOC_FUNC_CHECK 1
10214_ACEOF
10215
10216	LIBS="$LIBS -ldmalloc"
10217fi
10218
10219#################################################
10220# check for a shared memory profiling support
10221{ echo "$as_me:$LINENO: checking whether to use profiling" >&5
10222echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6; }
10223
10224# Check whether --with-profiling-data was given.
10225if test "${with_profiling_data+set}" = set; then
10226  withval=$with_profiling_data;  case "$withval" in
10227  yes)
10228    { echo "$as_me:$LINENO: result: yes" >&5
10229echo "${ECHO_T}yes" >&6; }
10230
10231cat >>confdefs.h <<\_ACEOF
10232#define WITH_PROFILE 1
10233_ACEOF
10234
10235    samba_cv_WITH_PROFILE=yes
10236    ;;
10237  *)
10238    { echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6; }
10240    samba_cv_WITH_PROFILE=no
10241    ;;
10242  esac
10243else
10244  { echo "$as_me:$LINENO: result: no" >&5
10245echo "${ECHO_T}no" >&6; }
10246
10247fi
10248
10249
10250
10251# Find a good install program.  We prefer a C program (faster),
10252# so one script is as good as another.  But avoid the broken or
10253# incompatible versions:
10254# SysV /etc/install, /usr/sbin/install
10255# SunOS /usr/etc/install
10256# IRIX /sbin/install
10257# AIX /bin/install
10258# AmigaOS /C/install, which installs bootblocks on floppy discs
10259# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10260# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10261# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10262# OS/2's system install, which has a completely different semantic
10263# ./install, which can be erroneously created by make from ./install.sh.
10264{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10265echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10266if test -z "$INSTALL"; then
10267if test "${ac_cv_path_install+set}" = set; then
10268  echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271for as_dir in $PATH
10272do
10273  IFS=$as_save_IFS
10274  test -z "$as_dir" && as_dir=.
10275  # Account for people who put trailing slashes in PATH elements.
10276case $as_dir/ in
10277  ./ | .// | /cC/* | \
10278  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10279  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10280  /usr/ucb/* ) ;;
10281  *)
10282    # OSF1 and SCO ODT 3.0 have their own names for install.
10283    # Don't use installbsd from OSF since it installs stuff as root
10284    # by default.
10285    for ac_prog in ginstall scoinst install; do
10286      for ac_exec_ext in '' $ac_executable_extensions; do
10287	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10288	  if test $ac_prog = install &&
10289	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10290	    # AIX install.  It has an incompatible calling convention.
10291	    :
10292	  elif test $ac_prog = install &&
10293	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10294	    # program-specific install script used by HP pwplus--don't use.
10295	    :
10296	  else
10297	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10298	    break 3
10299	  fi
10300	fi
10301      done
10302    done
10303    ;;
10304esac
10305done
10306IFS=$as_save_IFS
10307
10308
10309fi
10310  if test "${ac_cv_path_install+set}" = set; then
10311    INSTALL=$ac_cv_path_install
10312  else
10313    # As a last resort, use the slow shell script.  Don't cache a
10314    # value for INSTALL within a source directory, because that will
10315    # break other packages using the cache if that directory is
10316    # removed, or if the value is a relative name.
10317    INSTALL=$ac_install_sh
10318  fi
10319fi
10320{ echo "$as_me:$LINENO: result: $INSTALL" >&5
10321echo "${ECHO_T}$INSTALL" >&6; }
10322
10323# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10324# It thinks the first close brace ends the variable substitution.
10325test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10326
10327test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10328
10329test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10330
10331for ac_prog in gawk mawk nawk awk
10332do
10333  # Extract the first word of "$ac_prog", so it can be a program name with args.
10334set dummy $ac_prog; ac_word=$2
10335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10337if test "${ac_cv_prog_AWK+set}" = set; then
10338  echo $ECHO_N "(cached) $ECHO_C" >&6
10339else
10340  if test -n "$AWK"; then
10341  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10342else
10343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344for as_dir in $PATH
10345do
10346  IFS=$as_save_IFS
10347  test -z "$as_dir" && as_dir=.
10348  for ac_exec_ext in '' $ac_executable_extensions; do
10349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10350    ac_cv_prog_AWK="$ac_prog"
10351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10352    break 2
10353  fi
10354done
10355done
10356IFS=$as_save_IFS
10357
10358fi
10359fi
10360AWK=$ac_cv_prog_AWK
10361if test -n "$AWK"; then
10362  { echo "$as_me:$LINENO: result: $AWK" >&5
10363echo "${ECHO_T}$AWK" >&6; }
10364else
10365  { echo "$as_me:$LINENO: result: no" >&5
10366echo "${ECHO_T}no" >&6; }
10367fi
10368
10369
10370  test -n "$AWK" && break
10371done
10372
10373# Extract the first word of "perl", so it can be a program name with args.
10374set dummy perl; ac_word=$2
10375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10377if test "${ac_cv_path_PERL+set}" = set; then
10378  echo $ECHO_N "(cached) $ECHO_C" >&6
10379else
10380  case $PERL in
10381  [\\/]* | ?:[\\/]*)
10382  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10383  ;;
10384  *)
10385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388  IFS=$as_save_IFS
10389  test -z "$as_dir" && as_dir=.
10390  for ac_exec_ext in '' $ac_executable_extensions; do
10391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10394    break 2
10395  fi
10396done
10397done
10398IFS=$as_save_IFS
10399
10400  ;;
10401esac
10402fi
10403PERL=$ac_cv_path_PERL
10404if test -n "$PERL"; then
10405  { echo "$as_me:$LINENO: result: $PERL" >&5
10406echo "${ECHO_T}$PERL" >&6; }
10407else
10408  { echo "$as_me:$LINENO: result: no" >&5
10409echo "${ECHO_T}no" >&6; }
10410fi
10411
10412
10413
10414if test -n "$ac_tool_prefix"; then
10415  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10416set dummy ${ac_tool_prefix}ar; ac_word=$2
10417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10419if test "${ac_cv_prog_AR+set}" = set; then
10420  echo $ECHO_N "(cached) $ECHO_C" >&6
10421else
10422  if test -n "$AR"; then
10423  ac_cv_prog_AR="$AR" # Let the user override the test.
10424else
10425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426for as_dir in $PATH
10427do
10428  IFS=$as_save_IFS
10429  test -z "$as_dir" && as_dir=.
10430  for ac_exec_ext in '' $ac_executable_extensions; do
10431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432    ac_cv_prog_AR="${ac_tool_prefix}ar"
10433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10434    break 2
10435  fi
10436done
10437done
10438IFS=$as_save_IFS
10439
10440fi
10441fi
10442AR=$ac_cv_prog_AR
10443if test -n "$AR"; then
10444  { echo "$as_me:$LINENO: result: $AR" >&5
10445echo "${ECHO_T}$AR" >&6; }
10446else
10447  { echo "$as_me:$LINENO: result: no" >&5
10448echo "${ECHO_T}no" >&6; }
10449fi
10450
10451
10452fi
10453if test -z "$ac_cv_prog_AR"; then
10454  ac_ct_AR=$AR
10455  # Extract the first word of "ar", so it can be a program name with args.
10456set dummy ar; ac_word=$2
10457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10459if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10460  echo $ECHO_N "(cached) $ECHO_C" >&6
10461else
10462  if test -n "$ac_ct_AR"; then
10463  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10464else
10465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466for as_dir in $PATH
10467do
10468  IFS=$as_save_IFS
10469  test -z "$as_dir" && as_dir=.
10470  for ac_exec_ext in '' $ac_executable_extensions; do
10471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472    ac_cv_prog_ac_ct_AR="ar"
10473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10474    break 2
10475  fi
10476done
10477done
10478IFS=$as_save_IFS
10479
10480fi
10481fi
10482ac_ct_AR=$ac_cv_prog_ac_ct_AR
10483if test -n "$ac_ct_AR"; then
10484  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10485echo "${ECHO_T}$ac_ct_AR" >&6; }
10486else
10487  { echo "$as_me:$LINENO: result: no" >&5
10488echo "${ECHO_T}no" >&6; }
10489fi
10490
10491  if test "x$ac_ct_AR" = x; then
10492    AR=""
10493  else
10494    case $cross_compiling:$ac_tool_warned in
10495yes:)
10496{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10497whose name does not start with the host triplet.  If you think this
10498configuration is useful to you, please write to autoconf@gnu.org." >&5
10499echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10500whose name does not start with the host triplet.  If you think this
10501configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10502ac_tool_warned=yes ;;
10503esac
10504    AR=$ac_ct_AR
10505  fi
10506else
10507  AR="$ac_cv_prog_AR"
10508fi
10509
10510
10511LD=ld
10512{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10513echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10514if test "${ac_cv_prog_gnu_ld+set}" = set; then
10515  echo $ECHO_N "(cached) $ECHO_C" >&6
10516else
10517  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10518if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10519  ac_cv_prog_gnu_ld=yes
10520else
10521  ac_cv_prog_gnu_ld=no
10522fi
10523fi
10524{ echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
10525echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
10526
10527
10528if test "$ac_cv_prog_gnu_ld" = "yes"; then
10529	ac_cv_gnu_ld_version=`$LD -v 2>/dev/null | head -1`
10530	{ echo "$as_me:$LINENO: checking GNU ld release date" >&5
10531echo $ECHO_N "checking GNU ld release date... $ECHO_C" >&6; }
10532		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'`
10533		{ echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_date}" >&5
10534echo "${ECHO_T}${ac_cv_gnu_ld_date}" >&6; }
10535        if test -n "$ac_cv_gnu_ld_date"; then
10536 	if test "$ac_cv_gnu_ld_date" -lt 20030217; then
10537 		ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
10538 	fi
10539        else
10540           { echo "$as_me:$LINENO: checking GNU ld release version" >&5
10541echo $ECHO_N "checking GNU ld release version... $ECHO_C" >&6; }
10542                      ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
10543           ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1`
10544           ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2`
10545                      { echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr}" >&5
10546echo "${ECHO_T}${ac_cv_gnu_ld_vernr}" >&6; }
10547           { echo "$as_me:$LINENO: checking GNU ld release version major" >&5
10548echo $ECHO_N "checking GNU ld release version major... $ECHO_C" >&6; }
10549           { echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr_major}" >&5
10550echo "${ECHO_T}${ac_cv_gnu_ld_vernr_major}" >&6; }
10551           { echo "$as_me:$LINENO: checking GNU ld release version minor" >&5
10552echo $ECHO_N "checking GNU ld release version minor... $ECHO_C" >&6; }
10553           { echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr_minor}" >&5
10554echo "${ECHO_T}${ac_cv_gnu_ld_vernr_minor}" >&6; }
10555           if test "$ac_cv_gnu_ld_vernr_major" -lt 2 || test "$ac_cv_gnu_ld_vernr_minor" -lt 14; then
10556             ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
10557           fi
10558        fi
10559fi
10560
10561
10562
10563if test "x$CC" != xcc; then
10564  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
10565echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
10566else
10567  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
10568echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
10569fi
10570set dummy $CC; ac_cc=`echo $2 |
10571		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10572if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
10573  echo $ECHO_N "(cached) $ECHO_C" >&6
10574else
10575  cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h.  */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h.  */
10581
10582int
10583main ()
10584{
10585
10586  ;
10587  return 0;
10588}
10589_ACEOF
10590# Make sure it works both with $CC and with simple cc.
10591# We do the test twice because some compilers refuse to overwrite an
10592# existing .o file with -o, though they will create one.
10593ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10594rm -f conftest2.*
10595if { (case "(($ac_try" in
10596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597  *) ac_try_echo=$ac_try;;
10598esac
10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600  (eval "$ac_try") 2>&5
10601  ac_status=$?
10602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); } &&
10604   test -f conftest2.$ac_objext && { (case "(($ac_try" in
10605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606  *) ac_try_echo=$ac_try;;
10607esac
10608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609  (eval "$ac_try") 2>&5
10610  ac_status=$?
10611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612  (exit $ac_status); };
10613then
10614  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10615  if test "x$CC" != xcc; then
10616    # Test first that cc exists at all.
10617    if { ac_try='cc -c conftest.$ac_ext >&5'
10618  { (case "(($ac_try" in
10619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620  *) ac_try_echo=$ac_try;;
10621esac
10622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623  (eval "$ac_try") 2>&5
10624  ac_status=$?
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); }; }; then
10627      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10628      rm -f conftest2.*
10629      if { (case "(($ac_try" in
10630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631  *) ac_try_echo=$ac_try;;
10632esac
10633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634  (eval "$ac_try") 2>&5
10635  ac_status=$?
10636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637  (exit $ac_status); } &&
10638	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
10639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640  *) ac_try_echo=$ac_try;;
10641esac
10642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643  (eval "$ac_try") 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); };
10647      then
10648	# cc works too.
10649	:
10650      else
10651	# cc exists but doesn't like -o.
10652	eval ac_cv_prog_cc_${ac_cc}_c_o=no
10653      fi
10654    fi
10655  fi
10656else
10657  eval ac_cv_prog_cc_${ac_cc}_c_o=no
10658fi
10659rm -f core conftest*
10660
10661fi
10662if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
10663  { echo "$as_me:$LINENO: result: yes" >&5
10664echo "${ECHO_T}yes" >&6; }
10665else
10666  { echo "$as_me:$LINENO: result: no" >&5
10667echo "${ECHO_T}no" >&6; }
10668
10669cat >>confdefs.h <<\_ACEOF
10670#define NO_MINUS_C_MINUS_O 1
10671_ACEOF
10672
10673fi
10674
10675if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
10676      BROKEN_CC=
10677else
10678      BROKEN_CC=#
10679fi
10680
10681
10682{ echo "$as_me:$LINENO: checking that the C compiler understands -Werror" >&5
10683echo $ECHO_N "checking that the C compiler understands -Werror... $ECHO_C" >&6; }
10684if test "${samba_cv_HAVE_Werror+set}" = set; then
10685  echo $ECHO_N "(cached) $ECHO_C" >&6
10686else
10687
10688
10689	old_CFLAGS="$CFLAGS";
10690	CFLAGS="-Werror";
10691	export CFLAGS;
10692	old_CPPFLAGS="$CPPFLAGS";
10693	CPPFLAGS="$CPPFLAGS";
10694	export CPPFLAGS;
10695	old_LDFLAGS="$LDFLAGS";
10696	LDFLAGS="$LDFLAGS";
10697	export LDFLAGS;
10698	if test "$cross_compiling" = yes; then
10699  samba_cv_HAVE_Werror=cross
10700else
10701  cat >conftest.$ac_ext <<_ACEOF
10702/* confdefs.h.  */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h.  */
10707
10708  int main(void)
10709  {
10710  	return 0;
10711  }
10712_ACEOF
10713rm -f conftest$ac_exeext
10714if { (ac_try="$ac_link"
10715case "(($ac_try" in
10716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717  *) ac_try_echo=$ac_try;;
10718esac
10719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720  (eval "$ac_link") 2>&5
10721  ac_status=$?
10722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10724  { (case "(($ac_try" in
10725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726  *) ac_try_echo=$ac_try;;
10727esac
10728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729  (eval "$ac_try") 2>&5
10730  ac_status=$?
10731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732  (exit $ac_status); }; }; then
10733  samba_cv_HAVE_Werror=yes
10734else
10735  echo "$as_me: program exited with status $ac_status" >&5
10736echo "$as_me: failed program was:" >&5
10737sed 's/^/| /' conftest.$ac_ext >&5
10738
10739( exit $ac_status )
10740samba_cv_HAVE_Werror=no
10741fi
10742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10743fi
10744
10745
10746	CFLAGS="$old_CFLAGS";
10747	old_CFLAGS="";
10748	export CFLAGS;
10749	CPPFLAGS="$old_CPPFLAGS";
10750	old_CPPFLAGS="";
10751	export CPPFLAGS;
10752	LDFLAGS="$old_LDFLAGS";
10753	old_LDFLAGS="";
10754	export LDFLAGS;
10755
10756fi
10757{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_Werror" >&5
10758echo "${ECHO_T}$samba_cv_HAVE_Werror" >&6; }
10759if test x"$samba_cv_HAVE_Werror" = x"yes"; then
10760   Werror_FLAGS="-Werror"
10761else
10762{ echo "$as_me:$LINENO: checking that the C compiler understands -w2" >&5
10763echo $ECHO_N "checking that the C compiler understands -w2... $ECHO_C" >&6; }
10764if test "${samba_cv_HAVE_w2+set}" = set; then
10765  echo $ECHO_N "(cached) $ECHO_C" >&6
10766else
10767
10768
10769	old_CFLAGS="$CFLAGS";
10770	CFLAGS="-w2";
10771	export CFLAGS;
10772	old_CPPFLAGS="$CPPFLAGS";
10773	CPPFLAGS="$CPPFLAGS";
10774	export CPPFLAGS;
10775	old_LDFLAGS="$LDFLAGS";
10776	LDFLAGS="$LDFLAGS";
10777	export LDFLAGS;
10778	if test "$cross_compiling" = yes; then
10779  samba_cv_HAVE_w2=cross
10780else
10781  cat >conftest.$ac_ext <<_ACEOF
10782/* confdefs.h.  */
10783_ACEOF
10784cat confdefs.h >>conftest.$ac_ext
10785cat >>conftest.$ac_ext <<_ACEOF
10786/* end confdefs.h.  */
10787
10788  int main(void)
10789  {
10790  	return 0;
10791  }
10792_ACEOF
10793rm -f conftest$ac_exeext
10794if { (ac_try="$ac_link"
10795case "(($ac_try" in
10796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797  *) ac_try_echo=$ac_try;;
10798esac
10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800  (eval "$ac_link") 2>&5
10801  ac_status=$?
10802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10804  { (case "(($ac_try" in
10805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806  *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809  (eval "$ac_try") 2>&5
10810  ac_status=$?
10811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812  (exit $ac_status); }; }; then
10813  samba_cv_HAVE_w2=yes
10814else
10815  echo "$as_me: program exited with status $ac_status" >&5
10816echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
10819( exit $ac_status )
10820samba_cv_HAVE_w2=no
10821fi
10822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10823fi
10824
10825
10826	CFLAGS="$old_CFLAGS";
10827	old_CFLAGS="";
10828	export CFLAGS;
10829	CPPFLAGS="$old_CPPFLAGS";
10830	old_CPPFLAGS="";
10831	export CPPFLAGS;
10832	LDFLAGS="$old_LDFLAGS";
10833	old_LDFLAGS="";
10834	export LDFLAGS;
10835
10836fi
10837{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_w2" >&5
10838echo "${ECHO_T}$samba_cv_HAVE_w2" >&6; }
10839if test x"$samba_cv_HAVE_w2" = x"yes"; then
10840   Werror_FLAGS="-w2"
10841fi
10842fi
10843
10844{ echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
10845echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6; }
10846if test "${samba_cv_volatile+set}" = set; then
10847  echo $ECHO_N "(cached) $ECHO_C" >&6
10848else
10849
10850    cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h.  */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h.  */
10856#include <sys/types.h>
10857int
10858main ()
10859{
10860volatile int i = 0
10861  ;
10862  return 0;
10863}
10864_ACEOF
10865rm -f conftest.$ac_objext
10866if { (ac_try="$ac_compile"
10867case "(($ac_try" in
10868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869  *) ac_try_echo=$ac_try;;
10870esac
10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872  (eval "$ac_compile") 2>conftest.er1
10873  ac_status=$?
10874  grep -v '^ *+' conftest.er1 >conftest.err
10875  rm -f conftest.er1
10876  cat conftest.err >&5
10877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878  (exit $ac_status); } && {
10879	 test -z "$ac_c_werror_flag" ||
10880	 test ! -s conftest.err
10881       } && test -s conftest.$ac_objext; then
10882  samba_cv_volatile=yes
10883else
10884  echo "$as_me: failed program was:" >&5
10885sed 's/^/| /' conftest.$ac_ext >&5
10886
10887	samba_cv_volatile=no
10888fi
10889
10890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891fi
10892{ echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
10893echo "${ECHO_T}$samba_cv_volatile" >&6; }
10894if test x"$samba_cv_volatile" = x"yes"; then
10895
10896cat >>confdefs.h <<\_ACEOF
10897#define HAVE_VOLATILE 1
10898_ACEOF
10899
10900fi
10901
10902############################################
10903# check if the compiler can handle negative enum values
10904# and don't truncate the values to INT_MAX
10905# a runtime test is needed here
10906
10907{ echo "$as_me:$LINENO: checking that the C compiler understands negative enum values" >&5
10908echo $ECHO_N "checking that the C compiler understands negative enum values... $ECHO_C" >&6; }
10909if test "${SMB_BUILD_CC_NEGATIVE_ENUM_VALUES+set}" = set; then
10910  echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912
10913    if test "$cross_compiling" = yes; then
10914  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10915See \`config.log' for more details." >&5
10916echo "$as_me: error: cannot run test program while cross compiling
10917See \`config.log' for more details." >&2;}
10918   { (exit 1); exit 1; }; }
10919else
10920  cat >conftest.$ac_ext <<_ACEOF
10921/* confdefs.h.  */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h.  */
10926
10927	#include <stdio.h>
10928	enum negative_values { NEGATIVE_VALUE = 0xFFFFFFFF };
10929	int main(void) {
10930		enum negative_values v1 = NEGATIVE_VALUE;
10931		unsigned v2 = NEGATIVE_VALUE;
10932
10933		if (v1 != 0xFFFFFFFF) {
10934			printf("%u != 0xFFFFFFFF\n", v1);
10935			return 1;
10936		}
10937		if (v2 != 0xFFFFFFFF) {
10938			printf("%u != 0xFFFFFFFF\n", v2);
10939			return 1;
10940		}
10941
10942		return 0;
10943	}
10944
10945_ACEOF
10946rm -f conftest$ac_exeext
10947if { (ac_try="$ac_link"
10948case "(($ac_try" in
10949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950  *) ac_try_echo=$ac_try;;
10951esac
10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953  (eval "$ac_link") 2>&5
10954  ac_status=$?
10955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10957  { (case "(($ac_try" in
10958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959  *) ac_try_echo=$ac_try;;
10960esac
10961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962  (eval "$ac_try") 2>&5
10963  ac_status=$?
10964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965  (exit $ac_status); }; }; then
10966  SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes
10967else
10968  echo "$as_me: program exited with status $ac_status" >&5
10969echo "$as_me: failed program was:" >&5
10970sed 's/^/| /' conftest.$ac_ext >&5
10971
10972( exit $ac_status )
10973SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=no
10974fi
10975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10976fi
10977
10978
10979fi
10980{ echo "$as_me:$LINENO: result: $SMB_BUILD_CC_NEGATIVE_ENUM_VALUES" >&5
10981echo "${ECHO_T}$SMB_BUILD_CC_NEGATIVE_ENUM_VALUES" >&6; }
10982if test x"$SMB_BUILD_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then
10983	{ echo "$as_me:$LINENO: WARNING: using --unit-enums for pidl" >&5
10984echo "$as_me: WARNING: using --unit-enums for pidl" >&2;}
10985	PIDL_ARGS="$PIDL_ARGS --uint-enums"
10986fi
10987
10988
10989
10990saved_CFLAGS="$CFLAGS";
10991c99_init=no
10992if test x"$c99_init" = x"no"; then
10993    { echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
10994echo $ECHO_N "checking for C99 designated initializers... $ECHO_C" >&6; }
10995    CFLAGS="$saved_CFLAGS";
10996    cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h.  */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h.  */
11002#include <stdio.h>
11003int
11004main ()
11005{
11006 struct foo {int x;char y;};
11007       struct foo bar = { .y = 'X', .x = 1 };
11008
11009  ;
11010  return 0;
11011}
11012_ACEOF
11013rm -f conftest.$ac_objext
11014if { (ac_try="$ac_compile"
11015case "(($ac_try" in
11016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017  *) ac_try_echo=$ac_try;;
11018esac
11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020  (eval "$ac_compile") 2>conftest.er1
11021  ac_status=$?
11022  grep -v '^ *+' conftest.er1 >conftest.err
11023  rm -f conftest.er1
11024  cat conftest.err >&5
11025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026  (exit $ac_status); } && {
11027	 test -z "$ac_c_werror_flag" ||
11028	 test ! -s conftest.err
11029       } && test -s conftest.$ac_objext; then
11030  { echo "$as_me:$LINENO: result: yes" >&5
11031echo "${ECHO_T}yes" >&6; }; c99_init=yes
11032else
11033  echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036	{ echo "$as_me:$LINENO: result: no" >&5
11037echo "${ECHO_T}no" >&6; }
11038fi
11039
11040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11041fi
11042if test x"$c99_init" = x"no"; then
11043    { echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
11044echo $ECHO_N "checking for C99 designated initializers with -AC99... $ECHO_C" >&6; }
11045    CFLAGS="$saved_CFLAGS -AC99";
11046    cat >conftest.$ac_ext <<_ACEOF
11047/* confdefs.h.  */
11048_ACEOF
11049cat confdefs.h >>conftest.$ac_ext
11050cat >>conftest.$ac_ext <<_ACEOF
11051/* end confdefs.h.  */
11052#include <stdio.h>
11053int
11054main ()
11055{
11056 struct foo {int x;char y;};
11057       struct foo bar = { .y = 'X', .x = 1 };
11058
11059  ;
11060  return 0;
11061}
11062_ACEOF
11063rm -f conftest.$ac_objext
11064if { (ac_try="$ac_compile"
11065case "(($ac_try" in
11066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067  *) ac_try_echo=$ac_try;;
11068esac
11069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070  (eval "$ac_compile") 2>conftest.er1
11071  ac_status=$?
11072  grep -v '^ *+' conftest.er1 >conftest.err
11073  rm -f conftest.er1
11074  cat conftest.err >&5
11075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076  (exit $ac_status); } && {
11077	 test -z "$ac_c_werror_flag" ||
11078	 test ! -s conftest.err
11079       } && test -s conftest.$ac_objext; then
11080  { echo "$as_me:$LINENO: result: yes" >&5
11081echo "${ECHO_T}yes" >&6; }; c99_init=yes
11082else
11083  echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086	{ echo "$as_me:$LINENO: result: no" >&5
11087echo "${ECHO_T}no" >&6; }
11088fi
11089
11090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091fi
11092if test x"$c99_init" = x"no"; then
11093    { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
11094echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=extc99... $ECHO_C" >&6; }
11095    CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
11096    cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h.  */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h.  */
11102#include <stdio.h>
11103int
11104main ()
11105{
11106 struct foo {int x;char y;};
11107       struct foo bar = { .y = 'X', .x = 1 };
11108
11109  ;
11110  return 0;
11111}
11112_ACEOF
11113rm -f conftest.$ac_objext
11114if { (ac_try="$ac_compile"
11115case "(($ac_try" in
11116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117  *) ac_try_echo=$ac_try;;
11118esac
11119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120  (eval "$ac_compile") 2>conftest.er1
11121  ac_status=$?
11122  grep -v '^ *+' conftest.er1 >conftest.err
11123  rm -f conftest.er1
11124  cat conftest.err >&5
11125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126  (exit $ac_status); } && {
11127	 test -z "$ac_c_werror_flag" ||
11128	 test ! -s conftest.err
11129       } && test -s conftest.$ac_objext; then
11130  { echo "$as_me:$LINENO: result: yes" >&5
11131echo "${ECHO_T}yes" >&6; }; c99_init=yes
11132else
11133  echo "$as_me: failed program was:" >&5
11134sed 's/^/| /' conftest.$ac_ext >&5
11135
11136	{ echo "$as_me:$LINENO: result: no" >&5
11137echo "${ECHO_T}no" >&6; }
11138fi
11139
11140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11141fi
11142if test x"$c99_init" = x"no"; then
11143    { echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
11144echo $ECHO_N "checking for C99 designated initializers with -qlanglvl=stdc99... $ECHO_C" >&6; }
11145    CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
11146    cat >conftest.$ac_ext <<_ACEOF
11147/* confdefs.h.  */
11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h.  */
11152#include <stdio.h>
11153int
11154main ()
11155{
11156 struct foo {int x;char y;};
11157       struct foo bar = { .y = 'X', .x = 1 };
11158
11159  ;
11160  return 0;
11161}
11162_ACEOF
11163rm -f conftest.$ac_objext
11164if { (ac_try="$ac_compile"
11165case "(($ac_try" in
11166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167  *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170  (eval "$ac_compile") 2>conftest.er1
11171  ac_status=$?
11172  grep -v '^ *+' conftest.er1 >conftest.err
11173  rm -f conftest.er1
11174  cat conftest.err >&5
11175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176  (exit $ac_status); } && {
11177	 test -z "$ac_c_werror_flag" ||
11178	 test ! -s conftest.err
11179       } && test -s conftest.$ac_objext; then
11180  { echo "$as_me:$LINENO: result: yes" >&5
11181echo "${ECHO_T}yes" >&6; }; c99_init=yes
11182else
11183  echo "$as_me: failed program was:" >&5
11184sed 's/^/| /' conftest.$ac_ext >&5
11185
11186	{ echo "$as_me:$LINENO: result: no" >&5
11187echo "${ECHO_T}no" >&6; }
11188fi
11189
11190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191fi
11192if test x"$c99_init" = x"no"; then
11193    { echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
11194echo $ECHO_N "checking for C99 designated initializers with -c99... $ECHO_C" >&6; }
11195    CFLAGS="$saved_CFLAGS -c99"
11196    cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h.  */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h.  */
11202#include <stdio.h>
11203int
11204main ()
11205{
11206 struct foo {int x;char y;};
11207       struct foo bar = { .y = 'X', .x = 1 };
11208
11209  ;
11210  return 0;
11211}
11212_ACEOF
11213rm -f conftest.$ac_objext
11214if { (ac_try="$ac_compile"
11215case "(($ac_try" in
11216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217  *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220  (eval "$ac_compile") 2>conftest.er1
11221  ac_status=$?
11222  grep -v '^ *+' conftest.er1 >conftest.err
11223  rm -f conftest.er1
11224  cat conftest.err >&5
11225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226  (exit $ac_status); } && {
11227	 test -z "$ac_c_werror_flag" ||
11228	 test ! -s conftest.err
11229       } && test -s conftest.$ac_objext; then
11230  { echo "$as_me:$LINENO: result: yes" >&5
11231echo "${ECHO_T}yes" >&6; }; c99_init=yes
11232else
11233  echo "$as_me: failed program was:" >&5
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
11236	{ echo "$as_me:$LINENO: result: no" >&5
11237echo "${ECHO_T}no" >&6; }
11238fi
11239
11240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241fi
11242
11243if test "`uname`" = "HP-UX"; then
11244  if test "$ac_cv_c_compiler_gnu" = no; then
11245	# special override for broken HP-UX compiler - I can't find a way to test
11246	# this properly (its a compiler bug)
11247	CFLAGS="$CFLAGS -AC99";
11248	c99_init=yes;
11249  fi
11250fi
11251
11252if test x"$c99_init" = x"yes"; then
11253    saved_CFLAGS=""
11254
11255else
11256    CFLAGS="$saved_CFLAGS"
11257    saved_CFLAGS=""
11258    { { echo "$as_me:$LINENO: error: c99 structure initializer are not supported" >&5
11259echo "$as_me: error: c99 structure initializer are not supported" >&2;}
11260   { (exit 1); exit 1; }; }
11261fi
11262
11263
11264UNAME_S=`(uname -s) 2>/dev/null` || UNAME_S="unknown"
11265{ echo "$as_me:$LINENO: checking uname -s" >&5
11266echo $ECHO_N "checking uname -s... $ECHO_C" >&6; }
11267{ echo "$as_me:$LINENO: result: ${UNAME_S}" >&5
11268echo "${ECHO_T}${UNAME_S}" >&6; }
11269
11270UNAME_R=`(uname -r) 2>/dev/null` || UNAME_R="unknown"
11271{ echo "$as_me:$LINENO: checking uname -r" >&5
11272echo $ECHO_N "checking uname -r... $ECHO_C" >&6; }
11273{ echo "$as_me:$LINENO: result: ${UNAME_R}" >&5
11274echo "${ECHO_T}${UNAME_R}" >&6; }
11275
11276UNAME_M=`(uname -m) 2>/dev/null` || UNAME_M="unknown"
11277{ echo "$as_me:$LINENO: checking uname -m" >&5
11278echo $ECHO_N "checking uname -m... $ECHO_C" >&6; }
11279{ echo "$as_me:$LINENO: result: ${UNAME_M}" >&5
11280echo "${ECHO_T}${UNAME_M}" >&6; }
11281
11282UNAME_P=`(uname -p) 2>/dev/null` || UNAME_P="unknown"
11283{ echo "$as_me:$LINENO: checking uname -p" >&5
11284echo $ECHO_N "checking uname -p... $ECHO_C" >&6; }
11285{ echo "$as_me:$LINENO: result: ${UNAME_P}" >&5
11286echo "${ECHO_T}${UNAME_P}" >&6; }
11287
11288  case "$host_os" in
11289	*irix6*)
11290		#TODO add to libreplace
11291		if test x"$ac_cv_c_compiler_gnu" != x"yes" ; then
11292																								CFLAGS="$CFLAGS -diag_error 1035"
11293												CFLAGS="$CFLAGS -woff 1209,1174,3201"
11294		fi
11295	;;
11296esac
11297
11298DYNEXP=
11299
11300
11301default_static_modules="pdb_smbpasswd pdb_tdbsam rpc_lsa rpc_samr rpc_reg rpc_shutdown rpc_lsa_ds rpc_wkssvc rpc_svcctl rpc_ntsvcs rpc_net rpc_netdfs rpc_srvsvc rpc_spoolss rpc_eventlog rpc_echo auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin vfs_default nss_info_template"
11302
11303default_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 auth_script vfs_readahead"
11304
11305if test "x$developer" = xyes; then
11306   default_static_modules="$default_static_modules rpc_rpcecho"
11307   default_shared_modules="$default_shared_modules charset_weird"
11308fi
11309
11310#
11311# Config CPPFLAG settings for strange OS's that must be set
11312# before other tests. Do NOT invoke AC_CHECK_HEADERS within this
11313# case statement; its first reference must be unconditional.
11314#
11315case "$host_os" in
11316    *hpux*)
11317#
11318# Defines needed for HPUX support.
11319# HPUX has bigcrypt but (sometimes?) doesn't use it for
11320# password hashing - hence the USE_BOTH_CRYPT_CALLS define.
11321#
11322      case `uname -r` in
11323			*9*|*10*)
11324				CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
11325
11326cat >>confdefs.h <<\_ACEOF
11327#define USE_BOTH_CRYPT_CALLS 1
11328_ACEOF
11329
11330
11331cat >>confdefs.h <<\_ACEOF
11332#define _HPUX_SOURCE 1
11333_ACEOF
11334
11335
11336cat >>confdefs.h <<\_ACEOF
11337#define _POSIX_SOURCE 1
11338_ACEOF
11339
11340
11341cat >>confdefs.h <<\_ACEOF
11342#define _ALIGNMENT_REQUIRED 1
11343_ACEOF
11344
11345
11346cat >>confdefs.h <<\_ACEOF
11347#define _MAX_ALIGNMENT 4
11348_ACEOF
11349
11350				;;
11351			*11*)
11352				CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
11353
11354cat >>confdefs.h <<\_ACEOF
11355#define USE_BOTH_CRYPT_CALLS 1
11356_ACEOF
11357
11358
11359cat >>confdefs.h <<\_ACEOF
11360#define _HPUX_SOURCE 1
11361_ACEOF
11362
11363
11364cat >>confdefs.h <<\_ACEOF
11365#define _POSIX_SOURCE 1
11366_ACEOF
11367
11368
11369cat >>confdefs.h <<\_ACEOF
11370#define _LARGEFILE64_SOURCE 1
11371_ACEOF
11372
11373
11374cat >>confdefs.h <<\_ACEOF
11375#define _ALIGNMENT_REQUIRED 1
11376_ACEOF
11377
11378
11379cat >>confdefs.h <<\_ACEOF
11380#define _MAX_ALIGNMENT 4
11381_ACEOF
11382
11383
11384cat >>confdefs.h <<\_ACEOF
11385#define _XOPEN_SOURCE_EXTENDED 1
11386_ACEOF
11387
11388				;;
11389      esac
11390      ;;
11391
11392#
11393# CRAY Unicos has broken const handling
11394       *unicos*)
11395	  { echo "$as_me:$LINENO: result: disabling const" >&5
11396echo "${ECHO_T}disabling const" >&6; }
11397	  CPPFLAGS="$CPPFLAGS -Dconst="
11398	  ;;
11399
11400#
11401# AIX4.x doesn't even admit to having large
11402# files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
11403#
11404    *aix4*)
11405	  { echo "$as_me:$LINENO: result: enabling large file support" >&5
11406echo "${ECHO_T}enabling large file support" >&6; }
11407      CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
11408
11409cat >>confdefs.h <<\_ACEOF
11410#define _LARGE_FILES 1
11411_ACEOF
11412
11413      ;;
11414#
11415# Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
11416# to the existance of large files..
11417# Note that -D_LARGEFILE64_SOURCE is different from the Sun
11418# recommendations on large file support, however it makes the
11419# compile work using gcc 2.7 and 2.8, whereas using the Sun
11420# recommendation makes the compile fail on gcc2.7. JRA.
11421#
11422# Solaris uses SYSV printing.  Make sure to set that here.  --jerry
11423#
11424	*solaris*)
11425
11426cat >>confdefs.h <<\_ACEOF
11427#define SYSV 1
11428_ACEOF
11429
11430		case `uname -r` in
11431			5.0|5.0.*|5.1|5.1.*|5.2|5.2.*|5.3|5.3.*|5.5|5.5.*)
11432	  			{ echo "$as_me:$LINENO: result: no large file support" >&5
11433echo "${ECHO_T}no large file support" >&6; }
11434				;;
11435			5.*)
11436			{ echo "$as_me:$LINENO: result: enabling large file support" >&5
11437echo "${ECHO_T}enabling large file support" >&6; }
11438			if test "$ac_cv_c_compiler_gnu" = yes; then
11439				${CC-cc} -v >conftest.c 2>&1
11440				ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
11441				rm -fr conftest.c
11442				case "$ac_cv_gcc_compiler_version_number" in
11443					*"gcc version 2.6"*|*"gcc version 2.7"*)
11444						CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -D_REENTRANT"
11445						LDFLAGS="$LDFLAGS -lthread"
11446
11447cat >>confdefs.h <<\_ACEOF
11448#define _LARGEFILE64_SOURCE 1
11449_ACEOF
11450
11451						;;
11452					*)
11453						CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
11454						LDFLAGS="$LDFLAGS -lthread"
11455
11456cat >>confdefs.h <<\_ACEOF
11457#define _LARGEFILE64_SOURCE 1
11458_ACEOF
11459
11460
11461cat >>confdefs.h <<\_ACEOF
11462#define _FILE_OFFSET_BITS 64
11463_ACEOF
11464
11465						;;
11466				esac
11467			else
11468				CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
11469				LDFLAGS="$LDFLAGS -lthread"
11470
11471cat >>confdefs.h <<\_ACEOF
11472#define _LARGEFILE64_SOURCE 1
11473_ACEOF
11474
11475
11476cat >>confdefs.h <<\_ACEOF
11477#define _FILE_OFFSET_BITS 64
11478_ACEOF
11479
11480			fi
11481			;;
11482		esac
11483		;;
11484#
11485# IRIX uses SYSV printing.  Make sure to set that here
11486#
11487	*irix*)
11488
11489cat >>confdefs.h <<\_ACEOF
11490#define SYSV 1
11491_ACEOF
11492
11493		;;
11494	*freebsd*|*dragonfly*)
11495
11496cat >>confdefs.h <<\_ACEOF
11497#define FREEBSD 1
11498_ACEOF
11499
11500		;;
11501#
11502# VOS may need to have POSIX support and System V compatibility enabled.
11503#
11504    *vos*)
11505    case "$CPPFLAGS" in
11506	  *-D_POSIX_C_SOURCE*)
11507		;;
11508	  *)
11509		CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
11510
11511cat >>confdefs.h <<\_ACEOF
11512#define _POSIX_C_SOURCE 200112L
11513_ACEOF
11514
11515		;;
11516    esac
11517    case "$CPPFLAGS" in
11518	  *-D_SYSV*|*-D_SVID_SOURCE*)
11519		;;
11520	  *)
11521		CPPFLAGS="$CPPFLAGS -D_SYSV"
11522
11523cat >>confdefs.h <<\_ACEOF
11524#define _SYSV 1
11525_ACEOF
11526
11527    esac
11528    ;;
11529#
11530# Tests needed for SINIX large file support.
11531#
11532    *sysv4*)
11533      if test $host = mips-sni-sysv4 ; then
11534        { echo "$as_me:$LINENO: checking for LFS support" >&5
11535echo $ECHO_N "checking for LFS support... $ECHO_C" >&6; }
11536        old_CPPFLAGS="$CPPFLAGS"
11537        CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
11538        if test "$cross_compiling" = yes; then
11539  SINIX_LFS_SUPPORT=cross
11540else
11541  cat >conftest.$ac_ext <<_ACEOF
11542/* confdefs.h.  */
11543_ACEOF
11544cat confdefs.h >>conftest.$ac_ext
11545cat >>conftest.$ac_ext <<_ACEOF
11546/* end confdefs.h.  */
11547
11548#include <unistd.h>
11549main () {
11550#if _LFS64_LARGEFILE == 1
11551exit(0);
11552#else
11553exit(1);
11554#endif
11555}
11556_ACEOF
11557rm -f conftest$ac_exeext
11558if { (ac_try="$ac_link"
11559case "(($ac_try" in
11560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561  *) ac_try_echo=$ac_try;;
11562esac
11563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564  (eval "$ac_link") 2>&5
11565  ac_status=$?
11566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11568  { (case "(($ac_try" in
11569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570  *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573  (eval "$ac_try") 2>&5
11574  ac_status=$?
11575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576  (exit $ac_status); }; }; then
11577  SINIX_LFS_SUPPORT=yes
11578else
11579  echo "$as_me: program exited with status $ac_status" >&5
11580echo "$as_me: failed program was:" >&5
11581sed 's/^/| /' conftest.$ac_ext >&5
11582
11583( exit $ac_status )
11584SINIX_LFS_SUPPORT=no
11585fi
11586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11587fi
11588
11589
11590        CPPFLAGS="$old_CPPFLAGS"
11591        if test x$SINIX_LFS_SUPPORT = xyes ; then
11592          CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
11593
11594cat >>confdefs.h <<\_ACEOF
11595#define _LARGEFILE64_SOURCE 1
11596_ACEOF
11597
11598          CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
11599          LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
11600          LIBS="`getconf LFS64_LIBS` $LIBS"
11601        fi
11602      { echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
11603echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6; }
11604      fi
11605    ;;
11606
11607# Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
11608#
11609    *linux*)
11610        { echo "$as_me:$LINENO: checking for LFS support" >&5
11611echo $ECHO_N "checking for LFS support... $ECHO_C" >&6; }
11612        old_CPPFLAGS="$CPPFLAGS"
11613        CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
11614       if test "$cross_compiling" = yes; then
11615  LINUX_LFS_SUPPORT=cross
11616else
11617  cat >conftest.$ac_ext <<_ACEOF
11618/* confdefs.h.  */
11619_ACEOF
11620cat confdefs.h >>conftest.$ac_ext
11621cat >>conftest.$ac_ext <<_ACEOF
11622/* end confdefs.h.  */
11623
11624#include <unistd.h>
11625#include <sys/utsname.h>
11626#include <string.h>
11627#include <stdlib.h>
11628main() {
11629#if _LFS64_LARGEFILE == 1
11630       struct utsname uts;
11631       char *release;
11632       int major, minor;
11633
11634       /* Ensure this is glibc 2.2 or higher */
11635#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
11636       int libc_major = __GLIBC__;
11637       int libc_minor = __GLIBC_MINOR__;
11638
11639       if (libc_major < 2)
11640              exit(1);
11641       if (libc_minor < 2)
11642              exit(1);
11643#endif
11644
11645       /* Ensure this is kernel 2.4 or higher */
11646
11647       uname(&uts);
11648       release = strdup(uts.release);
11649       major = atoi(strsep(&release, "."));
11650       minor = atoi(strsep(&release, "."));
11651
11652       if (major > 2 || (major == 2 && minor > 3))
11653               exit(0);
11654       exit(1);
11655#else
11656       exit(1);
11657#endif
11658}
11659
11660_ACEOF
11661rm -f conftest$ac_exeext
11662if { (ac_try="$ac_link"
11663case "(($ac_try" in
11664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665  *) ac_try_echo=$ac_try;;
11666esac
11667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668  (eval "$ac_link") 2>&5
11669  ac_status=$?
11670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11672  { (case "(($ac_try" in
11673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674  *) ac_try_echo=$ac_try;;
11675esac
11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677  (eval "$ac_try") 2>&5
11678  ac_status=$?
11679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680  (exit $ac_status); }; }; then
11681  LINUX_LFS_SUPPORT=yes
11682else
11683  echo "$as_me: program exited with status $ac_status" >&5
11684echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687( exit $ac_status )
11688LINUX_LFS_SUPPORT=no
11689fi
11690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11691fi
11692
11693
11694	CPPFLAGS="$old_CPPFLAGS"
11695	if test x$LINUX_LFS_SUPPORT = xyes ; then
11696		CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
11697
11698cat >>confdefs.h <<\_ACEOF
11699#define _LARGEFILE64_SOURCE 1
11700_ACEOF
11701
11702
11703cat >>confdefs.h <<\_ACEOF
11704#define _FILE_OFFSET_BITS 64
11705_ACEOF
11706
11707
11708cat >>confdefs.h <<\_ACEOF
11709#define _GNU_SOURCE 1
11710_ACEOF
11711
11712	fi
11713	{ echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
11714echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6; }
11715	;;
11716
11717#
11718# MacOS X is the *only* system that uses compose character in utf8. This
11719# is so horribly broken....
11720#
11721    *darwin*)
11722
11723cat >>confdefs.h <<\_ACEOF
11724#define BROKEN_UNICODE_COMPOSE_CHARACTERS 1
11725_ACEOF
11726
11727
11728# Add a system specific charset module.
11729	default_shared_modules="$default_shared_modules charset_macosxfs"
11730
11731	;;
11732    *hurd*)
11733        { echo "$as_me:$LINENO: checking for LFS support" >&5
11734echo $ECHO_N "checking for LFS support... $ECHO_C" >&6; }
11735        old_CPPFLAGS="$CPPFLAGS"
11736        CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
11737        if test "$cross_compiling" = yes; then
11738  GLIBC_LFS_SUPPORT=cross
11739else
11740  cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h.  */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h.  */
11746
11747#include <unistd.h>
11748main () {
11749#if _LFS64_LARGEFILE == 1
11750exit(0);
11751#else
11752exit(1);
11753#endif
11754}
11755_ACEOF
11756rm -f conftest$ac_exeext
11757if { (ac_try="$ac_link"
11758case "(($ac_try" in
11759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760  *) ac_try_echo=$ac_try;;
11761esac
11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763  (eval "$ac_link") 2>&5
11764  ac_status=$?
11765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11767  { (case "(($ac_try" in
11768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769  *) ac_try_echo=$ac_try;;
11770esac
11771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772  (eval "$ac_try") 2>&5
11773  ac_status=$?
11774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775  (exit $ac_status); }; }; then
11776  GLIBC_LFS_SUPPORT=yes
11777else
11778  echo "$as_me: program exited with status $ac_status" >&5
11779echo "$as_me: failed program was:" >&5
11780sed 's/^/| /' conftest.$ac_ext >&5
11781
11782( exit $ac_status )
11783GLIBC_LFS_SUPPORT=no
11784fi
11785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11786fi
11787
11788
11789        CPPFLAGS="$old_CPPFLAGS"
11790        if test x$GLIBC_LFS_SUPPORT = xyes ; then
11791          CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
11792
11793cat >>confdefs.h <<\_ACEOF
11794#define _LARGEFILE64_SOURCE 1
11795_ACEOF
11796
11797
11798cat >>confdefs.h <<\_ACEOF
11799#define _GNU_SOURCE 1
11800_ACEOF
11801
11802        fi
11803      { echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
11804echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6; }
11805    ;;
11806
11807esac
11808
11809
11810echo "LIBREPLACE_BROKEN_CHECKS: START"
11811
11812libreplacedir=""
11813for d in "$srcdir" "$srcdir/lib/replace" "$srcdir/libreplace" "$srcdir/../libreplace" "$srcdir/../replace"; do
11814	if test -f "$d/replace.c"; then
11815		libreplacedir="$d"
11816
11817		break;
11818	fi
11819done
11820LIBREPLACEOBJ="replace.o"
11821
11822
11823LIBREPLACEOBJ="${LIBREPLACEOBJ} snprintf.o"
11824
11825{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11826echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11827if test "${ac_cv_type_signal+set}" = set; then
11828  echo $ECHO_N "(cached) $ECHO_C" >&6
11829else
11830  cat >conftest.$ac_ext <<_ACEOF
11831/* confdefs.h.  */
11832_ACEOF
11833cat confdefs.h >>conftest.$ac_ext
11834cat >>conftest.$ac_ext <<_ACEOF
11835/* end confdefs.h.  */
11836#include <sys/types.h>
11837#include <signal.h>
11838
11839int
11840main ()
11841{
11842return *(signal (0, 0)) (0) == 1;
11843  ;
11844  return 0;
11845}
11846_ACEOF
11847rm -f conftest.$ac_objext
11848if { (ac_try="$ac_compile"
11849case "(($ac_try" in
11850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851  *) ac_try_echo=$ac_try;;
11852esac
11853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854  (eval "$ac_compile") 2>conftest.er1
11855  ac_status=$?
11856  grep -v '^ *+' conftest.er1 >conftest.err
11857  rm -f conftest.er1
11858  cat conftest.err >&5
11859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860  (exit $ac_status); } && {
11861	 test -z "$ac_c_werror_flag" ||
11862	 test ! -s conftest.err
11863       } && test -s conftest.$ac_objext; then
11864  ac_cv_type_signal=int
11865else
11866  echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
11869	ac_cv_type_signal=void
11870fi
11871
11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873fi
11874{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11875echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11876
11877cat >>confdefs.h <<_ACEOF
11878#define RETSIGTYPE $ac_cv_type_signal
11879_ACEOF
11880
11881
11882{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11883echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11884if test "${ac_cv_type_uid_t+set}" = set; then
11885  echo $ECHO_N "(cached) $ECHO_C" >&6
11886else
11887  cat >conftest.$ac_ext <<_ACEOF
11888/* confdefs.h.  */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h.  */
11893#include <sys/types.h>
11894
11895_ACEOF
11896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11897  $EGREP "uid_t" >/dev/null 2>&1; then
11898  ac_cv_type_uid_t=yes
11899else
11900  ac_cv_type_uid_t=no
11901fi
11902rm -f conftest*
11903
11904fi
11905{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11906echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11907if test $ac_cv_type_uid_t = no; then
11908
11909cat >>confdefs.h <<\_ACEOF
11910#define uid_t int
11911_ACEOF
11912
11913
11914cat >>confdefs.h <<\_ACEOF
11915#define gid_t int
11916_ACEOF
11917
11918fi
11919
11920{ echo "$as_me:$LINENO: checking for mode_t" >&5
11921echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11922if test "${ac_cv_type_mode_t+set}" = set; then
11923  echo $ECHO_N "(cached) $ECHO_C" >&6
11924else
11925  cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h.  */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h.  */
11931$ac_includes_default
11932typedef mode_t ac__type_new_;
11933int
11934main ()
11935{
11936if ((ac__type_new_ *) 0)
11937  return 0;
11938if (sizeof (ac__type_new_))
11939  return 0;
11940  ;
11941  return 0;
11942}
11943_ACEOF
11944rm -f conftest.$ac_objext
11945if { (ac_try="$ac_compile"
11946case "(($ac_try" in
11947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948  *) ac_try_echo=$ac_try;;
11949esac
11950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951  (eval "$ac_compile") 2>conftest.er1
11952  ac_status=$?
11953  grep -v '^ *+' conftest.er1 >conftest.err
11954  rm -f conftest.er1
11955  cat conftest.err >&5
11956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957  (exit $ac_status); } && {
11958	 test -z "$ac_c_werror_flag" ||
11959	 test ! -s conftest.err
11960       } && test -s conftest.$ac_objext; then
11961  ac_cv_type_mode_t=yes
11962else
11963  echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966	ac_cv_type_mode_t=no
11967fi
11968
11969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970fi
11971{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11972echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11973if test $ac_cv_type_mode_t = yes; then
11974  :
11975else
11976
11977cat >>confdefs.h <<_ACEOF
11978#define mode_t int
11979_ACEOF
11980
11981fi
11982
11983{ echo "$as_me:$LINENO: checking for off_t" >&5
11984echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11985if test "${ac_cv_type_off_t+set}" = set; then
11986  echo $ECHO_N "(cached) $ECHO_C" >&6
11987else
11988  cat >conftest.$ac_ext <<_ACEOF
11989/* confdefs.h.  */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h.  */
11994$ac_includes_default
11995typedef off_t ac__type_new_;
11996int
11997main ()
11998{
11999if ((ac__type_new_ *) 0)
12000  return 0;
12001if (sizeof (ac__type_new_))
12002  return 0;
12003  ;
12004  return 0;
12005}
12006_ACEOF
12007rm -f conftest.$ac_objext
12008if { (ac_try="$ac_compile"
12009case "(($ac_try" in
12010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011  *) ac_try_echo=$ac_try;;
12012esac
12013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014  (eval "$ac_compile") 2>conftest.er1
12015  ac_status=$?
12016  grep -v '^ *+' conftest.er1 >conftest.err
12017  rm -f conftest.er1
12018  cat conftest.err >&5
12019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020  (exit $ac_status); } && {
12021	 test -z "$ac_c_werror_flag" ||
12022	 test ! -s conftest.err
12023       } && test -s conftest.$ac_objext; then
12024  ac_cv_type_off_t=yes
12025else
12026  echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029	ac_cv_type_off_t=no
12030fi
12031
12032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033fi
12034{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12035echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
12036if test $ac_cv_type_off_t = yes; then
12037  :
12038else
12039
12040cat >>confdefs.h <<_ACEOF
12041#define off_t long int
12042_ACEOF
12043
12044fi
12045
12046{ echo "$as_me:$LINENO: checking for size_t" >&5
12047echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
12048if test "${ac_cv_type_size_t+set}" = set; then
12049  echo $ECHO_N "(cached) $ECHO_C" >&6
12050else
12051  cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h.  */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h.  */
12057$ac_includes_default
12058typedef size_t ac__type_new_;
12059int
12060main ()
12061{
12062if ((ac__type_new_ *) 0)
12063  return 0;
12064if (sizeof (ac__type_new_))
12065  return 0;
12066  ;
12067  return 0;
12068}
12069_ACEOF
12070rm -f conftest.$ac_objext
12071if { (ac_try="$ac_compile"
12072case "(($ac_try" in
12073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074  *) ac_try_echo=$ac_try;;
12075esac
12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077  (eval "$ac_compile") 2>conftest.er1
12078  ac_status=$?
12079  grep -v '^ *+' conftest.er1 >conftest.err
12080  rm -f conftest.er1
12081  cat conftest.err >&5
12082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083  (exit $ac_status); } && {
12084	 test -z "$ac_c_werror_flag" ||
12085	 test ! -s conftest.err
12086       } && test -s conftest.$ac_objext; then
12087  ac_cv_type_size_t=yes
12088else
12089  echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
12092	ac_cv_type_size_t=no
12093fi
12094
12095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096fi
12097{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12098echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12099if test $ac_cv_type_size_t = yes; then
12100  :
12101else
12102
12103cat >>confdefs.h <<_ACEOF
12104#define size_t unsigned int
12105_ACEOF
12106
12107fi
12108
12109{ echo "$as_me:$LINENO: checking for pid_t" >&5
12110echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
12111if test "${ac_cv_type_pid_t+set}" = set; then
12112  echo $ECHO_N "(cached) $ECHO_C" >&6
12113else
12114  cat >conftest.$ac_ext <<_ACEOF
12115/* confdefs.h.  */
12116_ACEOF
12117cat confdefs.h >>conftest.$ac_ext
12118cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h.  */
12120$ac_includes_default
12121typedef pid_t ac__type_new_;
12122int
12123main ()
12124{
12125if ((ac__type_new_ *) 0)
12126  return 0;
12127if (sizeof (ac__type_new_))
12128  return 0;
12129  ;
12130  return 0;
12131}
12132_ACEOF
12133rm -f conftest.$ac_objext
12134if { (ac_try="$ac_compile"
12135case "(($ac_try" in
12136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137  *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140  (eval "$ac_compile") 2>conftest.er1
12141  ac_status=$?
12142  grep -v '^ *+' conftest.er1 >conftest.err
12143  rm -f conftest.er1
12144  cat conftest.err >&5
12145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146  (exit $ac_status); } && {
12147	 test -z "$ac_c_werror_flag" ||
12148	 test ! -s conftest.err
12149       } && test -s conftest.$ac_objext; then
12150  ac_cv_type_pid_t=yes
12151else
12152  echo "$as_me: failed program was:" >&5
12153sed 's/^/| /' conftest.$ac_ext >&5
12154
12155	ac_cv_type_pid_t=no
12156fi
12157
12158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159fi
12160{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12161echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
12162if test $ac_cv_type_pid_t = yes; then
12163  :
12164else
12165
12166cat >>confdefs.h <<_ACEOF
12167#define pid_t int
12168_ACEOF
12169
12170fi
12171
12172{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12173echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
12174if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12175  echo $ECHO_N "(cached) $ECHO_C" >&6
12176else
12177  cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h.  */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h.  */
12183$ac_includes_default
12184int
12185main ()
12186{
12187static struct stat ac_aggr;
12188if (ac_aggr.st_rdev)
12189return 0;
12190  ;
12191  return 0;
12192}
12193_ACEOF
12194rm -f conftest.$ac_objext
12195if { (ac_try="$ac_compile"
12196case "(($ac_try" in
12197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198  *) ac_try_echo=$ac_try;;
12199esac
12200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201  (eval "$ac_compile") 2>conftest.er1
12202  ac_status=$?
12203  grep -v '^ *+' conftest.er1 >conftest.err
12204  rm -f conftest.er1
12205  cat conftest.err >&5
12206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207  (exit $ac_status); } && {
12208	 test -z "$ac_c_werror_flag" ||
12209	 test ! -s conftest.err
12210       } && test -s conftest.$ac_objext; then
12211  ac_cv_member_struct_stat_st_rdev=yes
12212else
12213  echo "$as_me: failed program was:" >&5
12214sed 's/^/| /' conftest.$ac_ext >&5
12215
12216	cat >conftest.$ac_ext <<_ACEOF
12217/* confdefs.h.  */
12218_ACEOF
12219cat confdefs.h >>conftest.$ac_ext
12220cat >>conftest.$ac_ext <<_ACEOF
12221/* end confdefs.h.  */
12222$ac_includes_default
12223int
12224main ()
12225{
12226static struct stat ac_aggr;
12227if (sizeof ac_aggr.st_rdev)
12228return 0;
12229  ;
12230  return 0;
12231}
12232_ACEOF
12233rm -f conftest.$ac_objext
12234if { (ac_try="$ac_compile"
12235case "(($ac_try" in
12236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237  *) ac_try_echo=$ac_try;;
12238esac
12239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240  (eval "$ac_compile") 2>conftest.er1
12241  ac_status=$?
12242  grep -v '^ *+' conftest.er1 >conftest.err
12243  rm -f conftest.er1
12244  cat conftest.err >&5
12245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246  (exit $ac_status); } && {
12247	 test -z "$ac_c_werror_flag" ||
12248	 test ! -s conftest.err
12249       } && test -s conftest.$ac_objext; then
12250  ac_cv_member_struct_stat_st_rdev=yes
12251else
12252  echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255	ac_cv_member_struct_stat_st_rdev=no
12256fi
12257
12258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259fi
12260
12261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262fi
12263{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12264echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
12265if test $ac_cv_member_struct_stat_st_rdev = yes; then
12266
12267cat >>confdefs.h <<_ACEOF
12268#define HAVE_STRUCT_STAT_ST_RDEV 1
12269_ACEOF
12270
12271
12272cat >>confdefs.h <<\_ACEOF
12273#define HAVE_ST_RDEV 1
12274_ACEOF
12275
12276fi
12277
12278
12279{ echo "$as_me:$LINENO: checking for ino_t" >&5
12280echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12281if test "${ac_cv_type_ino_t+set}" = set; then
12282  echo $ECHO_N "(cached) $ECHO_C" >&6
12283else
12284  cat >conftest.$ac_ext <<_ACEOF
12285/* confdefs.h.  */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h.  */
12290$ac_includes_default
12291typedef ino_t ac__type_new_;
12292int
12293main ()
12294{
12295if ((ac__type_new_ *) 0)
12296  return 0;
12297if (sizeof (ac__type_new_))
12298  return 0;
12299  ;
12300  return 0;
12301}
12302_ACEOF
12303rm -f conftest.$ac_objext
12304if { (ac_try="$ac_compile"
12305case "(($ac_try" in
12306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307  *) ac_try_echo=$ac_try;;
12308esac
12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310  (eval "$ac_compile") 2>conftest.er1
12311  ac_status=$?
12312  grep -v '^ *+' conftest.er1 >conftest.err
12313  rm -f conftest.er1
12314  cat conftest.err >&5
12315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316  (exit $ac_status); } && {
12317	 test -z "$ac_c_werror_flag" ||
12318	 test ! -s conftest.err
12319       } && test -s conftest.$ac_objext; then
12320  ac_cv_type_ino_t=yes
12321else
12322  echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325	ac_cv_type_ino_t=no
12326fi
12327
12328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329fi
12330{ echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12331echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12332if test $ac_cv_type_ino_t = yes; then
12333  :
12334else
12335
12336cat >>confdefs.h <<_ACEOF
12337#define ino_t unsigned
12338_ACEOF
12339
12340fi
12341
12342{ echo "$as_me:$LINENO: checking for loff_t" >&5
12343echo $ECHO_N "checking for loff_t... $ECHO_C" >&6; }
12344if test "${ac_cv_type_loff_t+set}" = set; then
12345  echo $ECHO_N "(cached) $ECHO_C" >&6
12346else
12347  cat >conftest.$ac_ext <<_ACEOF
12348/* confdefs.h.  */
12349_ACEOF
12350cat confdefs.h >>conftest.$ac_ext
12351cat >>conftest.$ac_ext <<_ACEOF
12352/* end confdefs.h.  */
12353$ac_includes_default
12354typedef loff_t ac__type_new_;
12355int
12356main ()
12357{
12358if ((ac__type_new_ *) 0)
12359  return 0;
12360if (sizeof (ac__type_new_))
12361  return 0;
12362  ;
12363  return 0;
12364}
12365_ACEOF
12366rm -f conftest.$ac_objext
12367if { (ac_try="$ac_compile"
12368case "(($ac_try" in
12369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370  *) ac_try_echo=$ac_try;;
12371esac
12372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373  (eval "$ac_compile") 2>conftest.er1
12374  ac_status=$?
12375  grep -v '^ *+' conftest.er1 >conftest.err
12376  rm -f conftest.er1
12377  cat conftest.err >&5
12378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379  (exit $ac_status); } && {
12380	 test -z "$ac_c_werror_flag" ||
12381	 test ! -s conftest.err
12382       } && test -s conftest.$ac_objext; then
12383  ac_cv_type_loff_t=yes
12384else
12385  echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388	ac_cv_type_loff_t=no
12389fi
12390
12391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392fi
12393{ echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
12394echo "${ECHO_T}$ac_cv_type_loff_t" >&6; }
12395if test $ac_cv_type_loff_t = yes; then
12396  :
12397else
12398
12399cat >>confdefs.h <<_ACEOF
12400#define loff_t off_t
12401_ACEOF
12402
12403fi
12404
12405{ echo "$as_me:$LINENO: checking for offset_t" >&5
12406echo $ECHO_N "checking for offset_t... $ECHO_C" >&6; }
12407if test "${ac_cv_type_offset_t+set}" = set; then
12408  echo $ECHO_N "(cached) $ECHO_C" >&6
12409else
12410  cat >conftest.$ac_ext <<_ACEOF
12411/* confdefs.h.  */
12412_ACEOF
12413cat confdefs.h >>conftest.$ac_ext
12414cat >>conftest.$ac_ext <<_ACEOF
12415/* end confdefs.h.  */
12416$ac_includes_default
12417typedef offset_t ac__type_new_;
12418int
12419main ()
12420{
12421if ((ac__type_new_ *) 0)
12422  return 0;
12423if (sizeof (ac__type_new_))
12424  return 0;
12425  ;
12426  return 0;
12427}
12428_ACEOF
12429rm -f conftest.$ac_objext
12430if { (ac_try="$ac_compile"
12431case "(($ac_try" in
12432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433  *) ac_try_echo=$ac_try;;
12434esac
12435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436  (eval "$ac_compile") 2>conftest.er1
12437  ac_status=$?
12438  grep -v '^ *+' conftest.er1 >conftest.err
12439  rm -f conftest.er1
12440  cat conftest.err >&5
12441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442  (exit $ac_status); } && {
12443	 test -z "$ac_c_werror_flag" ||
12444	 test ! -s conftest.err
12445       } && test -s conftest.$ac_objext; then
12446  ac_cv_type_offset_t=yes
12447else
12448  echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
12451	ac_cv_type_offset_t=no
12452fi
12453
12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455fi
12456{ echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
12457echo "${ECHO_T}$ac_cv_type_offset_t" >&6; }
12458if test $ac_cv_type_offset_t = yes; then
12459  :
12460else
12461
12462cat >>confdefs.h <<_ACEOF
12463#define offset_t loff_t
12464_ACEOF
12465
12466fi
12467
12468
12469{ echo "$as_me:$LINENO: checking for working memcmp" >&5
12470echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12471if test "${ac_cv_func_memcmp_working+set}" = set; then
12472  echo $ECHO_N "(cached) $ECHO_C" >&6
12473else
12474  if test "$cross_compiling" = yes; then
12475  ac_cv_func_memcmp_working=no
12476else
12477  cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h.  */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h.  */
12483$ac_includes_default
12484int
12485main ()
12486{
12487
12488  /* Some versions of memcmp are not 8-bit clean.  */
12489  char c0 = '\100', c1 = '\200', c2 = '\201';
12490  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12491    return 1;
12492
12493  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12494     or more and with at least one buffer not starting on a 4-byte boundary.
12495     William Lewis provided this test program.   */
12496  {
12497    char foo[21];
12498    char bar[21];
12499    int i;
12500    for (i = 0; i < 4; i++)
12501      {
12502	char *a = foo + i;
12503	char *b = bar + i;
12504	strcpy (a, "--------01111111");
12505	strcpy (b, "--------10000000");
12506	if (memcmp (a, b, 16) >= 0)
12507	  return 1;
12508      }
12509    return 0;
12510  }
12511
12512  ;
12513  return 0;
12514}
12515_ACEOF
12516rm -f conftest$ac_exeext
12517if { (ac_try="$ac_link"
12518case "(($ac_try" in
12519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520  *) ac_try_echo=$ac_try;;
12521esac
12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523  (eval "$ac_link") 2>&5
12524  ac_status=$?
12525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12527  { (case "(($ac_try" in
12528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529  *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532  (eval "$ac_try") 2>&5
12533  ac_status=$?
12534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535  (exit $ac_status); }; }; then
12536  ac_cv_func_memcmp_working=yes
12537else
12538  echo "$as_me: program exited with status $ac_status" >&5
12539echo "$as_me: failed program was:" >&5
12540sed 's/^/| /' conftest.$ac_ext >&5
12541
12542( exit $ac_status )
12543ac_cv_func_memcmp_working=no
12544fi
12545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12546fi
12547
12548
12549fi
12550{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12551echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12552test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12553  *" memcmp.$ac_objext "* ) ;;
12554  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12555 ;;
12556esac
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570for ac_func in pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp
12571do
12572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12575if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12576  echo $ECHO_N "(cached) $ECHO_C" >&6
12577else
12578  cat >conftest.$ac_ext <<_ACEOF
12579/* confdefs.h.  */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h.  */
12584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12585   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12586#define $ac_func innocuous_$ac_func
12587
12588/* System header to define __stub macros and hopefully few prototypes,
12589    which can conflict with char $ac_func (); below.
12590    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591    <limits.h> exists even on freestanding compilers.  */
12592
12593#ifdef __STDC__
12594# include <limits.h>
12595#else
12596# include <assert.h>
12597#endif
12598
12599#undef $ac_func
12600
12601/* Override any GCC internal prototype to avoid an error.
12602   Use char because int might match the return type of a GCC
12603   builtin and then its argument prototype would still apply.  */
12604#ifdef __cplusplus
12605extern "C"
12606#endif
12607char $ac_func ();
12608/* The GNU C library defines this for functions which it implements
12609    to always fail with ENOSYS.  Some functions are actually named
12610    something starting with __ and the normal name is an alias.  */
12611#if defined __stub_$ac_func || defined __stub___$ac_func
12612choke me
12613#endif
12614
12615int
12616main ()
12617{
12618return $ac_func ();
12619  ;
12620  return 0;
12621}
12622_ACEOF
12623rm -f conftest.$ac_objext conftest$ac_exeext
12624if { (ac_try="$ac_link"
12625case "(($ac_try" in
12626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627  *) ac_try_echo=$ac_try;;
12628esac
12629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630  (eval "$ac_link") 2>conftest.er1
12631  ac_status=$?
12632  grep -v '^ *+' conftest.er1 >conftest.err
12633  rm -f conftest.er1
12634  cat conftest.err >&5
12635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636  (exit $ac_status); } && {
12637	 test -z "$ac_c_werror_flag" ||
12638	 test ! -s conftest.err
12639       } && test -s conftest$ac_exeext &&
12640       $as_test_x conftest$ac_exeext; then
12641  eval "$as_ac_var=yes"
12642else
12643  echo "$as_me: failed program was:" >&5
12644sed 's/^/| /' conftest.$ac_ext >&5
12645
12646	eval "$as_ac_var=no"
12647fi
12648
12649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12650      conftest$ac_exeext conftest.$ac_ext
12651fi
12652ac_res=`eval echo '${'$as_ac_var'}'`
12653	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12654echo "${ECHO_T}$ac_res" >&6; }
12655if test `eval echo '${'$as_ac_var'}'` = yes; then
12656  cat >>confdefs.h <<_ACEOF
12657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12658_ACEOF
12659
12660fi
12661done
12662
12663
12664
12665
12666
12667for ac_header in stdbool.h stdint.h sys/select.h
12668do
12669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12671  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12674  echo $ECHO_N "(cached) $ECHO_C" >&6
12675fi
12676ac_res=`eval echo '${'$as_ac_Header'}'`
12677	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12678echo "${ECHO_T}$ac_res" >&6; }
12679else
12680  # Is the header compilable?
12681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12683cat >conftest.$ac_ext <<_ACEOF
12684/* confdefs.h.  */
12685_ACEOF
12686cat confdefs.h >>conftest.$ac_ext
12687cat >>conftest.$ac_ext <<_ACEOF
12688/* end confdefs.h.  */
12689$ac_includes_default
12690#include <$ac_header>
12691_ACEOF
12692rm -f conftest.$ac_objext
12693if { (ac_try="$ac_compile"
12694case "(($ac_try" in
12695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696  *) ac_try_echo=$ac_try;;
12697esac
12698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699  (eval "$ac_compile") 2>conftest.er1
12700  ac_status=$?
12701  grep -v '^ *+' conftest.er1 >conftest.err
12702  rm -f conftest.er1
12703  cat conftest.err >&5
12704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705  (exit $ac_status); } && {
12706	 test -z "$ac_c_werror_flag" ||
12707	 test ! -s conftest.err
12708       } && test -s conftest.$ac_objext; then
12709  ac_header_compiler=yes
12710else
12711  echo "$as_me: failed program was:" >&5
12712sed 's/^/| /' conftest.$ac_ext >&5
12713
12714	ac_header_compiler=no
12715fi
12716
12717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12719echo "${ECHO_T}$ac_header_compiler" >&6; }
12720
12721# Is the header present?
12722{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12724cat >conftest.$ac_ext <<_ACEOF
12725/* confdefs.h.  */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h.  */
12730#include <$ac_header>
12731_ACEOF
12732if { (ac_try="$ac_cpp conftest.$ac_ext"
12733case "(($ac_try" in
12734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735  *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12739  ac_status=$?
12740  grep -v '^ *+' conftest.er1 >conftest.err
12741  rm -f conftest.er1
12742  cat conftest.err >&5
12743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744  (exit $ac_status); } >/dev/null && {
12745	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12746	 test ! -s conftest.err
12747       }; then
12748  ac_header_preproc=yes
12749else
12750  echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753  ac_header_preproc=no
12754fi
12755
12756rm -f conftest.err conftest.$ac_ext
12757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12758echo "${ECHO_T}$ac_header_preproc" >&6; }
12759
12760# So?  What about this header?
12761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12762  yes:no: )
12763    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12765    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12767    ac_header_preproc=yes
12768    ;;
12769  no:yes:* )
12770    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12772    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12773echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12774    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12776    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12777echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12778    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12780    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12782
12783    ;;
12784esac
12785{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12788  echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
12790  eval "$as_ac_Header=\$ac_header_preproc"
12791fi
12792ac_res=`eval echo '${'$as_ac_Header'}'`
12793	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12794echo "${ECHO_T}$ac_res" >&6; }
12795
12796fi
12797if test `eval echo '${'$as_ac_Header'}'` = yes; then
12798  cat >>confdefs.h <<_ACEOF
12799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12800_ACEOF
12801
12802fi
12803
12804done
12805
12806
12807for ac_header in setjmp.h
12808do
12809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12811  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12814  echo $ECHO_N "(cached) $ECHO_C" >&6
12815fi
12816ac_res=`eval echo '${'$as_ac_Header'}'`
12817	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12818echo "${ECHO_T}$ac_res" >&6; }
12819else
12820  # Is the header compilable?
12821{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12823cat >conftest.$ac_ext <<_ACEOF
12824/* confdefs.h.  */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h.  */
12829$ac_includes_default
12830#include <$ac_header>
12831_ACEOF
12832rm -f conftest.$ac_objext
12833if { (ac_try="$ac_compile"
12834case "(($ac_try" in
12835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836  *) ac_try_echo=$ac_try;;
12837esac
12838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839  (eval "$ac_compile") 2>conftest.er1
12840  ac_status=$?
12841  grep -v '^ *+' conftest.er1 >conftest.err
12842  rm -f conftest.er1
12843  cat conftest.err >&5
12844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845  (exit $ac_status); } && {
12846	 test -z "$ac_c_werror_flag" ||
12847	 test ! -s conftest.err
12848       } && test -s conftest.$ac_objext; then
12849  ac_header_compiler=yes
12850else
12851  echo "$as_me: failed program was:" >&5
12852sed 's/^/| /' conftest.$ac_ext >&5
12853
12854	ac_header_compiler=no
12855fi
12856
12857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859echo "${ECHO_T}$ac_header_compiler" >&6; }
12860
12861# Is the header present?
12862{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12864cat >conftest.$ac_ext <<_ACEOF
12865/* confdefs.h.  */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h.  */
12870#include <$ac_header>
12871_ACEOF
12872if { (ac_try="$ac_cpp conftest.$ac_ext"
12873case "(($ac_try" in
12874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875  *) ac_try_echo=$ac_try;;
12876esac
12877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12879  ac_status=$?
12880  grep -v '^ *+' conftest.er1 >conftest.err
12881  rm -f conftest.er1
12882  cat conftest.err >&5
12883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884  (exit $ac_status); } >/dev/null && {
12885	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12886	 test ! -s conftest.err
12887       }; then
12888  ac_header_preproc=yes
12889else
12890  echo "$as_me: failed program was:" >&5
12891sed 's/^/| /' conftest.$ac_ext >&5
12892
12893  ac_header_preproc=no
12894fi
12895
12896rm -f conftest.err conftest.$ac_ext
12897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12898echo "${ECHO_T}$ac_header_preproc" >&6; }
12899
12900# So?  What about this header?
12901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12902  yes:no: )
12903    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12905    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12907    ac_header_preproc=yes
12908    ;;
12909  no:yes:* )
12910    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12912    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12913echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12914    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12916    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12917echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12918    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12920    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12922
12923    ;;
12924esac
12925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12928  echo $ECHO_N "(cached) $ECHO_C" >&6
12929else
12930  eval "$as_ac_Header=\$ac_header_preproc"
12931fi
12932ac_res=`eval echo '${'$as_ac_Header'}'`
12933	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12934echo "${ECHO_T}$ac_res" >&6; }
12935
12936fi
12937if test `eval echo '${'$as_ac_Header'}'` = yes; then
12938  cat >>confdefs.h <<_ACEOF
12939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12940_ACEOF
12941
12942fi
12943
12944done
12945
12946
12947if test "${ac_cv_header_stdint_h+set}" = set; then
12948  { echo "$as_me:$LINENO: checking for stdint.h" >&5
12949echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
12950if test "${ac_cv_header_stdint_h+set}" = set; then
12951  echo $ECHO_N "(cached) $ECHO_C" >&6
12952fi
12953{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
12954echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
12955else
12956  # Is the header compilable?
12957{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
12958echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
12959cat >conftest.$ac_ext <<_ACEOF
12960/* confdefs.h.  */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
12964/* end confdefs.h.  */
12965$ac_includes_default
12966#include <stdint.h>
12967_ACEOF
12968rm -f conftest.$ac_objext
12969if { (ac_try="$ac_compile"
12970case "(($ac_try" in
12971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972  *) ac_try_echo=$ac_try;;
12973esac
12974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975  (eval "$ac_compile") 2>conftest.er1
12976  ac_status=$?
12977  grep -v '^ *+' conftest.er1 >conftest.err
12978  rm -f conftest.er1
12979  cat conftest.err >&5
12980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981  (exit $ac_status); } && {
12982	 test -z "$ac_c_werror_flag" ||
12983	 test ! -s conftest.err
12984       } && test -s conftest.$ac_objext; then
12985  ac_header_compiler=yes
12986else
12987  echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
12990	ac_header_compiler=no
12991fi
12992
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12995echo "${ECHO_T}$ac_header_compiler" >&6; }
12996
12997# Is the header present?
12998{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
12999echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
13000cat >conftest.$ac_ext <<_ACEOF
13001/* confdefs.h.  */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
13005/* end confdefs.h.  */
13006#include <stdint.h>
13007_ACEOF
13008if { (ac_try="$ac_cpp conftest.$ac_ext"
13009case "(($ac_try" in
13010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011  *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13015  ac_status=$?
13016  grep -v '^ *+' conftest.er1 >conftest.err
13017  rm -f conftest.er1
13018  cat conftest.err >&5
13019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020  (exit $ac_status); } >/dev/null && {
13021	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13022	 test ! -s conftest.err
13023       }; then
13024  ac_header_preproc=yes
13025else
13026  echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
13029  ac_header_preproc=no
13030fi
13031
13032rm -f conftest.err conftest.$ac_ext
13033{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13034echo "${ECHO_T}$ac_header_preproc" >&6; }
13035
13036# So?  What about this header?
13037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13038  yes:no: )
13039    { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
13040echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13041    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
13042echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
13043    ac_header_preproc=yes
13044    ;;
13045  no:yes:* )
13046    { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
13047echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
13048    { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
13049echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
13050    { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
13051echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
13052    { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
13053echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13054    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
13055echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
13056    { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
13057echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
13058
13059    ;;
13060esac
13061{ echo "$as_me:$LINENO: checking for stdint.h" >&5
13062echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
13063if test "${ac_cv_header_stdint_h+set}" = set; then
13064  echo $ECHO_N "(cached) $ECHO_C" >&6
13065else
13066  ac_cv_header_stdint_h=$ac_header_preproc
13067fi
13068{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
13069echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
13070
13071fi
13072if test $ac_cv_header_stdint_h = yes; then
13073   ac_config_commands="$ac_config_commands rm-stdint.h"
13074
13075else
13076   ac_config_commands="$ac_config_commands mk-stdint.h"
13077
13078
13079fi
13080
13081
13082
13083if test "${ac_cv_header_stdbool_h+set}" = set; then
13084  { echo "$as_me:$LINENO: checking for stdbool.h" >&5
13085echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6; }
13086if test "${ac_cv_header_stdbool_h+set}" = set; then
13087  echo $ECHO_N "(cached) $ECHO_C" >&6
13088fi
13089{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
13090echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
13091else
13092  # Is the header compilable?
13093{ echo "$as_me:$LINENO: checking stdbool.h usability" >&5
13094echo $ECHO_N "checking stdbool.h usability... $ECHO_C" >&6; }
13095cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h.  */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h.  */
13101$ac_includes_default
13102#include <stdbool.h>
13103_ACEOF
13104rm -f conftest.$ac_objext
13105if { (ac_try="$ac_compile"
13106case "(($ac_try" in
13107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108  *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111  (eval "$ac_compile") 2>conftest.er1
13112  ac_status=$?
13113  grep -v '^ *+' conftest.er1 >conftest.err
13114  rm -f conftest.er1
13115  cat conftest.err >&5
13116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117  (exit $ac_status); } && {
13118	 test -z "$ac_c_werror_flag" ||
13119	 test ! -s conftest.err
13120       } && test -s conftest.$ac_objext; then
13121  ac_header_compiler=yes
13122else
13123  echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126	ac_header_compiler=no
13127fi
13128
13129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13131echo "${ECHO_T}$ac_header_compiler" >&6; }
13132
13133# Is the header present?
13134{ echo "$as_me:$LINENO: checking stdbool.h presence" >&5
13135echo $ECHO_N "checking stdbool.h presence... $ECHO_C" >&6; }
13136cat >conftest.$ac_ext <<_ACEOF
13137/* confdefs.h.  */
13138_ACEOF
13139cat confdefs.h >>conftest.$ac_ext
13140cat >>conftest.$ac_ext <<_ACEOF
13141/* end confdefs.h.  */
13142#include <stdbool.h>
13143_ACEOF
13144if { (ac_try="$ac_cpp conftest.$ac_ext"
13145case "(($ac_try" in
13146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147  *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13151  ac_status=$?
13152  grep -v '^ *+' conftest.er1 >conftest.err
13153  rm -f conftest.er1
13154  cat conftest.err >&5
13155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156  (exit $ac_status); } >/dev/null && {
13157	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13158	 test ! -s conftest.err
13159       }; then
13160  ac_header_preproc=yes
13161else
13162  echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
13165  ac_header_preproc=no
13166fi
13167
13168rm -f conftest.err conftest.$ac_ext
13169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13170echo "${ECHO_T}$ac_header_preproc" >&6; }
13171
13172# So?  What about this header?
13173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13174  yes:no: )
13175    { echo "$as_me:$LINENO: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&5
13176echo "$as_me: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13177    { echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the compiler's result" >&5
13178echo "$as_me: WARNING: stdbool.h: proceeding with the compiler's result" >&2;}
13179    ac_header_preproc=yes
13180    ;;
13181  no:yes:* )
13182    { echo "$as_me:$LINENO: WARNING: stdbool.h: present but cannot be compiled" >&5
13183echo "$as_me: WARNING: stdbool.h: present but cannot be compiled" >&2;}
13184    { echo "$as_me:$LINENO: WARNING: stdbool.h:     check for missing prerequisite headers?" >&5
13185echo "$as_me: WARNING: stdbool.h:     check for missing prerequisite headers?" >&2;}
13186    { echo "$as_me:$LINENO: WARNING: stdbool.h: see the Autoconf documentation" >&5
13187echo "$as_me: WARNING: stdbool.h: see the Autoconf documentation" >&2;}
13188    { echo "$as_me:$LINENO: WARNING: stdbool.h:     section \"Present But Cannot Be Compiled\"" >&5
13189echo "$as_me: WARNING: stdbool.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13190    { echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the preprocessor's result" >&5
13191echo "$as_me: WARNING: stdbool.h: proceeding with the preprocessor's result" >&2;}
13192    { echo "$as_me:$LINENO: WARNING: stdbool.h: in the future, the compiler will take precedence" >&5
13193echo "$as_me: WARNING: stdbool.h: in the future, the compiler will take precedence" >&2;}
13194
13195    ;;
13196esac
13197{ echo "$as_me:$LINENO: checking for stdbool.h" >&5
13198echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6; }
13199if test "${ac_cv_header_stdbool_h+set}" = set; then
13200  echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202  ac_cv_header_stdbool_h=$ac_header_preproc
13203fi
13204{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
13205echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
13206
13207fi
13208if test $ac_cv_header_stdbool_h = yes; then
13209   ac_config_commands="$ac_config_commands rm-stdbool.h"
13210
13211else
13212   ac_config_commands="$ac_config_commands mk-stdbool.h"
13213
13214
13215fi
13216
13217
13218
13219
13220{ echo "$as_me:$LINENO: checking for bool" >&5
13221echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
13222if test "${ac_cv_type_bool+set}" = set; then
13223  echo $ECHO_N "(cached) $ECHO_C" >&6
13224else
13225  cat >conftest.$ac_ext <<_ACEOF
13226/* confdefs.h.  */
13227_ACEOF
13228cat confdefs.h >>conftest.$ac_ext
13229cat >>conftest.$ac_ext <<_ACEOF
13230/* end confdefs.h.  */
13231
13232$ac_includes_default
13233#ifdef HAVE_STDBOOL_H
13234#include <stdbool.h>
13235#endif
13236
13237
13238typedef bool ac__type_new_;
13239int
13240main ()
13241{
13242if ((ac__type_new_ *) 0)
13243  return 0;
13244if (sizeof (ac__type_new_))
13245  return 0;
13246  ;
13247  return 0;
13248}
13249_ACEOF
13250rm -f conftest.$ac_objext
13251if { (ac_try="$ac_compile"
13252case "(($ac_try" in
13253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254  *) ac_try_echo=$ac_try;;
13255esac
13256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257  (eval "$ac_compile") 2>conftest.er1
13258  ac_status=$?
13259  grep -v '^ *+' conftest.er1 >conftest.err
13260  rm -f conftest.er1
13261  cat conftest.err >&5
13262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263  (exit $ac_status); } && {
13264	 test -z "$ac_c_werror_flag" ||
13265	 test ! -s conftest.err
13266       } && test -s conftest.$ac_objext; then
13267  ac_cv_type_bool=yes
13268else
13269  echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272	ac_cv_type_bool=no
13273fi
13274
13275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276fi
13277{ echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
13278echo "${ECHO_T}$ac_cv_type_bool" >&6; }
13279if test $ac_cv_type_bool = yes; then
13280
13281cat >>confdefs.h <<\_ACEOF
13282#define HAVE_BOOL 1
13283_ACEOF
13284
13285fi
13286
13287
13288{ echo "$as_me:$LINENO: checking for _Bool" >&5
13289echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
13290if test "${ac_cv_type__Bool+set}" = set; then
13291  echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293  cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h.  */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h.  */
13299
13300$ac_includes_default
13301#ifdef HAVE_STDBOOL_H
13302#include <stdbool.h>
13303#endif
13304
13305
13306typedef _Bool ac__type_new_;
13307int
13308main ()
13309{
13310if ((ac__type_new_ *) 0)
13311  return 0;
13312if (sizeof (ac__type_new_))
13313  return 0;
13314  ;
13315  return 0;
13316}
13317_ACEOF
13318rm -f conftest.$ac_objext
13319if { (ac_try="$ac_compile"
13320case "(($ac_try" in
13321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322  *) ac_try_echo=$ac_try;;
13323esac
13324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325  (eval "$ac_compile") 2>conftest.er1
13326  ac_status=$?
13327  grep -v '^ *+' conftest.er1 >conftest.err
13328  rm -f conftest.er1
13329  cat conftest.err >&5
13330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331  (exit $ac_status); } && {
13332	 test -z "$ac_c_werror_flag" ||
13333	 test ! -s conftest.err
13334       } && test -s conftest.$ac_objext; then
13335  ac_cv_type__Bool=yes
13336else
13337  echo "$as_me: failed program was:" >&5
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
13340	ac_cv_type__Bool=no
13341fi
13342
13343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344fi
13345{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
13346echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
13347if test $ac_cv_type__Bool = yes; then
13348
13349cat >>confdefs.h <<\_ACEOF
13350#define HAVE__Bool 1
13351_ACEOF
13352
13353fi
13354
13355
13356{ echo "$as_me:$LINENO: checking for working mmap" >&5
13357echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13358if test "${samba_cv_HAVE_MMAP+set}" = set; then
13359  echo $ECHO_N "(cached) $ECHO_C" >&6
13360else
13361
13362if test "$cross_compiling" = yes; then
13363  samba_cv_HAVE_MMAP=cross
13364else
13365  cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h.  */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h.  */
13371#include "$libreplacedir/test/shared_mmap.c"
13372_ACEOF
13373rm -f conftest$ac_exeext
13374if { (ac_try="$ac_link"
13375case "(($ac_try" in
13376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377  *) ac_try_echo=$ac_try;;
13378esac
13379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380  (eval "$ac_link") 2>&5
13381  ac_status=$?
13382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13384  { (case "(($ac_try" in
13385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386  *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389  (eval "$ac_try") 2>&5
13390  ac_status=$?
13391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392  (exit $ac_status); }; }; then
13393  samba_cv_HAVE_MMAP=yes
13394else
13395  echo "$as_me: program exited with status $ac_status" >&5
13396echo "$as_me: failed program was:" >&5
13397sed 's/^/| /' conftest.$ac_ext >&5
13398
13399( exit $ac_status )
13400samba_cv_HAVE_MMAP=no
13401fi
13402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13403fi
13404
13405
13406fi
13407{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
13408echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6; }
13409if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
13410
13411cat >>confdefs.h <<\_ACEOF
13412#define HAVE_MMAP 1
13413_ACEOF
13414
13415fi
13416
13417
13418
13419
13420for ac_header in sys/syslog.h syslog.h
13421do
13422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13424  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13427  echo $ECHO_N "(cached) $ECHO_C" >&6
13428fi
13429ac_res=`eval echo '${'$as_ac_Header'}'`
13430	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13431echo "${ECHO_T}$ac_res" >&6; }
13432else
13433  # Is the header compilable?
13434{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13436cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h.  */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
13441/* end confdefs.h.  */
13442$ac_includes_default
13443#include <$ac_header>
13444_ACEOF
13445rm -f conftest.$ac_objext
13446if { (ac_try="$ac_compile"
13447case "(($ac_try" in
13448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449  *) ac_try_echo=$ac_try;;
13450esac
13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452  (eval "$ac_compile") 2>conftest.er1
13453  ac_status=$?
13454  grep -v '^ *+' conftest.er1 >conftest.err
13455  rm -f conftest.er1
13456  cat conftest.err >&5
13457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458  (exit $ac_status); } && {
13459	 test -z "$ac_c_werror_flag" ||
13460	 test ! -s conftest.err
13461       } && test -s conftest.$ac_objext; then
13462  ac_header_compiler=yes
13463else
13464  echo "$as_me: failed program was:" >&5
13465sed 's/^/| /' conftest.$ac_ext >&5
13466
13467	ac_header_compiler=no
13468fi
13469
13470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13471{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13472echo "${ECHO_T}$ac_header_compiler" >&6; }
13473
13474# Is the header present?
13475{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13477cat >conftest.$ac_ext <<_ACEOF
13478/* confdefs.h.  */
13479_ACEOF
13480cat confdefs.h >>conftest.$ac_ext
13481cat >>conftest.$ac_ext <<_ACEOF
13482/* end confdefs.h.  */
13483#include <$ac_header>
13484_ACEOF
13485if { (ac_try="$ac_cpp conftest.$ac_ext"
13486case "(($ac_try" in
13487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488  *) ac_try_echo=$ac_try;;
13489esac
13490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13492  ac_status=$?
13493  grep -v '^ *+' conftest.er1 >conftest.err
13494  rm -f conftest.er1
13495  cat conftest.err >&5
13496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497  (exit $ac_status); } >/dev/null && {
13498	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13499	 test ! -s conftest.err
13500       }; then
13501  ac_header_preproc=yes
13502else
13503  echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
13506  ac_header_preproc=no
13507fi
13508
13509rm -f conftest.err conftest.$ac_ext
13510{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13511echo "${ECHO_T}$ac_header_preproc" >&6; }
13512
13513# So?  What about this header?
13514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13515  yes:no: )
13516    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13518    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13520    ac_header_preproc=yes
13521    ;;
13522  no:yes:* )
13523    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13525    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13526echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13527    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13529    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13530echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13531    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13533    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13535
13536    ;;
13537esac
13538{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13541  echo $ECHO_N "(cached) $ECHO_C" >&6
13542else
13543  eval "$as_ac_Header=\$ac_header_preproc"
13544fi
13545ac_res=`eval echo '${'$as_ac_Header'}'`
13546	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13547echo "${ECHO_T}$ac_res" >&6; }
13548
13549fi
13550if test `eval echo '${'$as_ac_Header'}'` = yes; then
13551  cat >>confdefs.h <<_ACEOF
13552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13553_ACEOF
13554
13555fi
13556
13557done
13558
13559
13560
13561for ac_header in sys/time.h time.h
13562do
13563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13565  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13568  echo $ECHO_N "(cached) $ECHO_C" >&6
13569fi
13570ac_res=`eval echo '${'$as_ac_Header'}'`
13571	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13572echo "${ECHO_T}$ac_res" >&6; }
13573else
13574  # Is the header compilable?
13575{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13577cat >conftest.$ac_ext <<_ACEOF
13578/* confdefs.h.  */
13579_ACEOF
13580cat confdefs.h >>conftest.$ac_ext
13581cat >>conftest.$ac_ext <<_ACEOF
13582/* end confdefs.h.  */
13583$ac_includes_default
13584#include <$ac_header>
13585_ACEOF
13586rm -f conftest.$ac_objext
13587if { (ac_try="$ac_compile"
13588case "(($ac_try" in
13589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590  *) ac_try_echo=$ac_try;;
13591esac
13592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593  (eval "$ac_compile") 2>conftest.er1
13594  ac_status=$?
13595  grep -v '^ *+' conftest.er1 >conftest.err
13596  rm -f conftest.er1
13597  cat conftest.err >&5
13598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599  (exit $ac_status); } && {
13600	 test -z "$ac_c_werror_flag" ||
13601	 test ! -s conftest.err
13602       } && test -s conftest.$ac_objext; then
13603  ac_header_compiler=yes
13604else
13605  echo "$as_me: failed program was:" >&5
13606sed 's/^/| /' conftest.$ac_ext >&5
13607
13608	ac_header_compiler=no
13609fi
13610
13611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13613echo "${ECHO_T}$ac_header_compiler" >&6; }
13614
13615# Is the header present?
13616{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13618cat >conftest.$ac_ext <<_ACEOF
13619/* confdefs.h.  */
13620_ACEOF
13621cat confdefs.h >>conftest.$ac_ext
13622cat >>conftest.$ac_ext <<_ACEOF
13623/* end confdefs.h.  */
13624#include <$ac_header>
13625_ACEOF
13626if { (ac_try="$ac_cpp conftest.$ac_ext"
13627case "(($ac_try" in
13628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629  *) ac_try_echo=$ac_try;;
13630esac
13631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13633  ac_status=$?
13634  grep -v '^ *+' conftest.er1 >conftest.err
13635  rm -f conftest.er1
13636  cat conftest.err >&5
13637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638  (exit $ac_status); } >/dev/null && {
13639	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13640	 test ! -s conftest.err
13641       }; then
13642  ac_header_preproc=yes
13643else
13644  echo "$as_me: failed program was:" >&5
13645sed 's/^/| /' conftest.$ac_ext >&5
13646
13647  ac_header_preproc=no
13648fi
13649
13650rm -f conftest.err conftest.$ac_ext
13651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13652echo "${ECHO_T}$ac_header_preproc" >&6; }
13653
13654# So?  What about this header?
13655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13656  yes:no: )
13657    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13659    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13661    ac_header_preproc=yes
13662    ;;
13663  no:yes:* )
13664    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13666    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13667echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13668    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13670    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13671echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13672    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13674    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13676
13677    ;;
13678esac
13679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13682  echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684  eval "$as_ac_Header=\$ac_header_preproc"
13685fi
13686ac_res=`eval echo '${'$as_ac_Header'}'`
13687	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13688echo "${ECHO_T}$ac_res" >&6; }
13689
13690fi
13691if test `eval echo '${'$as_ac_Header'}'` = yes; then
13692  cat >>confdefs.h <<_ACEOF
13693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13694_ACEOF
13695
13696fi
13697
13698done
13699
13700
13701
13702for ac_header in stdarg.h vararg.h
13703do
13704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13706  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13709  echo $ECHO_N "(cached) $ECHO_C" >&6
13710fi
13711ac_res=`eval echo '${'$as_ac_Header'}'`
13712	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13713echo "${ECHO_T}$ac_res" >&6; }
13714else
13715  # Is the header compilable?
13716{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13718cat >conftest.$ac_ext <<_ACEOF
13719/* confdefs.h.  */
13720_ACEOF
13721cat confdefs.h >>conftest.$ac_ext
13722cat >>conftest.$ac_ext <<_ACEOF
13723/* end confdefs.h.  */
13724$ac_includes_default
13725#include <$ac_header>
13726_ACEOF
13727rm -f conftest.$ac_objext
13728if { (ac_try="$ac_compile"
13729case "(($ac_try" in
13730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731  *) ac_try_echo=$ac_try;;
13732esac
13733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734  (eval "$ac_compile") 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); } && {
13741	 test -z "$ac_c_werror_flag" ||
13742	 test ! -s conftest.err
13743       } && test -s conftest.$ac_objext; then
13744  ac_header_compiler=yes
13745else
13746  echo "$as_me: failed program was:" >&5
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
13749	ac_header_compiler=no
13750fi
13751
13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13754echo "${ECHO_T}$ac_header_compiler" >&6; }
13755
13756# Is the header present?
13757{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13759cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h.  */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h.  */
13765#include <$ac_header>
13766_ACEOF
13767if { (ac_try="$ac_cpp conftest.$ac_ext"
13768case "(($ac_try" in
13769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770  *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13774  ac_status=$?
13775  grep -v '^ *+' conftest.er1 >conftest.err
13776  rm -f conftest.er1
13777  cat conftest.err >&5
13778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779  (exit $ac_status); } >/dev/null && {
13780	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13781	 test ! -s conftest.err
13782       }; then
13783  ac_header_preproc=yes
13784else
13785  echo "$as_me: failed program was:" >&5
13786sed 's/^/| /' conftest.$ac_ext >&5
13787
13788  ac_header_preproc=no
13789fi
13790
13791rm -f conftest.err conftest.$ac_ext
13792{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13793echo "${ECHO_T}$ac_header_preproc" >&6; }
13794
13795# So?  What about this header?
13796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13797  yes:no: )
13798    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13800    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13802    ac_header_preproc=yes
13803    ;;
13804  no:yes:* )
13805    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13807    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13808echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13809    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13811    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13812echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13813    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13815    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13817
13818    ;;
13819esac
13820{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13823  echo $ECHO_N "(cached) $ECHO_C" >&6
13824else
13825  eval "$as_ac_Header=\$ac_header_preproc"
13826fi
13827ac_res=`eval echo '${'$as_ac_Header'}'`
13828	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13829echo "${ECHO_T}$ac_res" >&6; }
13830
13831fi
13832if test `eval echo '${'$as_ac_Header'}'` = yes; then
13833  cat >>confdefs.h <<_ACEOF
13834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13835_ACEOF
13836
13837fi
13838
13839done
13840
13841
13842
13843
13844
13845for ac_header in sys/socket.h netinet/in.h netdb.h arpa/inet.h
13846do
13847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13849  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13852  echo $ECHO_N "(cached) $ECHO_C" >&6
13853fi
13854ac_res=`eval echo '${'$as_ac_Header'}'`
13855	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13856echo "${ECHO_T}$ac_res" >&6; }
13857else
13858  # Is the header compilable?
13859{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13861cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h.  */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h.  */
13867$ac_includes_default
13868#include <$ac_header>
13869_ACEOF
13870rm -f conftest.$ac_objext
13871if { (ac_try="$ac_compile"
13872case "(($ac_try" in
13873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874  *) ac_try_echo=$ac_try;;
13875esac
13876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877  (eval "$ac_compile") 2>conftest.er1
13878  ac_status=$?
13879  grep -v '^ *+' conftest.er1 >conftest.err
13880  rm -f conftest.er1
13881  cat conftest.err >&5
13882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883  (exit $ac_status); } && {
13884	 test -z "$ac_c_werror_flag" ||
13885	 test ! -s conftest.err
13886       } && test -s conftest.$ac_objext; then
13887  ac_header_compiler=yes
13888else
13889  echo "$as_me: failed program was:" >&5
13890sed 's/^/| /' conftest.$ac_ext >&5
13891
13892	ac_header_compiler=no
13893fi
13894
13895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13897echo "${ECHO_T}$ac_header_compiler" >&6; }
13898
13899# Is the header present?
13900{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13902cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h.  */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h.  */
13908#include <$ac_header>
13909_ACEOF
13910if { (ac_try="$ac_cpp conftest.$ac_ext"
13911case "(($ac_try" in
13912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913  *) ac_try_echo=$ac_try;;
13914esac
13915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13917  ac_status=$?
13918  grep -v '^ *+' conftest.er1 >conftest.err
13919  rm -f conftest.er1
13920  cat conftest.err >&5
13921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922  (exit $ac_status); } >/dev/null && {
13923	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13924	 test ! -s conftest.err
13925       }; then
13926  ac_header_preproc=yes
13927else
13928  echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
13931  ac_header_preproc=no
13932fi
13933
13934rm -f conftest.err conftest.$ac_ext
13935{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13936echo "${ECHO_T}$ac_header_preproc" >&6; }
13937
13938# So?  What about this header?
13939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13940  yes:no: )
13941    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13942echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13943    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13944echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13945    ac_header_preproc=yes
13946    ;;
13947  no:yes:* )
13948    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13949echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13950    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13951echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13952    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13953echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13954    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13955echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13956    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13957echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13958    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13959echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13960
13961    ;;
13962esac
13963{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13966  echo $ECHO_N "(cached) $ECHO_C" >&6
13967else
13968  eval "$as_ac_Header=\$ac_header_preproc"
13969fi
13970ac_res=`eval echo '${'$as_ac_Header'}'`
13971	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13972echo "${ECHO_T}$ac_res" >&6; }
13973
13974fi
13975if test `eval echo '${'$as_ac_Header'}'` = yes; then
13976  cat >>confdefs.h <<_ACEOF
13977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13978_ACEOF
13979
13980fi
13981
13982done
13983
13984
13985
13986
13987
13988for ac_header in netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
13989do
13990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13992  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13995  echo $ECHO_N "(cached) $ECHO_C" >&6
13996fi
13997ac_res=`eval echo '${'$as_ac_Header'}'`
13998	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13999echo "${ECHO_T}$ac_res" >&6; }
14000else
14001  # Is the header compilable?
14002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14004cat >conftest.$ac_ext <<_ACEOF
14005/* confdefs.h.  */
14006_ACEOF
14007cat confdefs.h >>conftest.$ac_ext
14008cat >>conftest.$ac_ext <<_ACEOF
14009/* end confdefs.h.  */
14010$ac_includes_default
14011#include <$ac_header>
14012_ACEOF
14013rm -f conftest.$ac_objext
14014if { (ac_try="$ac_compile"
14015case "(($ac_try" in
14016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017  *) ac_try_echo=$ac_try;;
14018esac
14019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020  (eval "$ac_compile") 2>conftest.er1
14021  ac_status=$?
14022  grep -v '^ *+' conftest.er1 >conftest.err
14023  rm -f conftest.er1
14024  cat conftest.err >&5
14025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026  (exit $ac_status); } && {
14027	 test -z "$ac_c_werror_flag" ||
14028	 test ! -s conftest.err
14029       } && test -s conftest.$ac_objext; then
14030  ac_header_compiler=yes
14031else
14032  echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035	ac_header_compiler=no
14036fi
14037
14038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14040echo "${ECHO_T}$ac_header_compiler" >&6; }
14041
14042# Is the header present?
14043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14045cat >conftest.$ac_ext <<_ACEOF
14046/* confdefs.h.  */
14047_ACEOF
14048cat confdefs.h >>conftest.$ac_ext
14049cat >>conftest.$ac_ext <<_ACEOF
14050/* end confdefs.h.  */
14051#include <$ac_header>
14052_ACEOF
14053if { (ac_try="$ac_cpp conftest.$ac_ext"
14054case "(($ac_try" in
14055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056  *) ac_try_echo=$ac_try;;
14057esac
14058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14060  ac_status=$?
14061  grep -v '^ *+' conftest.er1 >conftest.err
14062  rm -f conftest.er1
14063  cat conftest.err >&5
14064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065  (exit $ac_status); } >/dev/null && {
14066	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14067	 test ! -s conftest.err
14068       }; then
14069  ac_header_preproc=yes
14070else
14071  echo "$as_me: failed program was:" >&5
14072sed 's/^/| /' conftest.$ac_ext >&5
14073
14074  ac_header_preproc=no
14075fi
14076
14077rm -f conftest.err conftest.$ac_ext
14078{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14079echo "${ECHO_T}$ac_header_preproc" >&6; }
14080
14081# So?  What about this header?
14082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14083  yes:no: )
14084    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14086    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14088    ac_header_preproc=yes
14089    ;;
14090  no:yes:* )
14091    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14093    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14094echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14095    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14097    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14098echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14099    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14101    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14103
14104    ;;
14105esac
14106{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14109  echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111  eval "$as_ac_Header=\$ac_header_preproc"
14112fi
14113ac_res=`eval echo '${'$as_ac_Header'}'`
14114	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14115echo "${ECHO_T}$ac_res" >&6; }
14116
14117fi
14118if test `eval echo '${'$as_ac_Header'}'` = yes; then
14119  cat >>confdefs.h <<_ACEOF
14120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14121_ACEOF
14122
14123fi
14124
14125done
14126
14127
14128
14129for ac_header in sys/sockio.h sys/un.h
14130do
14131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14133  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14136  echo $ECHO_N "(cached) $ECHO_C" >&6
14137fi
14138ac_res=`eval echo '${'$as_ac_Header'}'`
14139	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14140echo "${ECHO_T}$ac_res" >&6; }
14141else
14142  # Is the header compilable?
14143{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14145cat >conftest.$ac_ext <<_ACEOF
14146/* confdefs.h.  */
14147_ACEOF
14148cat confdefs.h >>conftest.$ac_ext
14149cat >>conftest.$ac_ext <<_ACEOF
14150/* end confdefs.h.  */
14151$ac_includes_default
14152#include <$ac_header>
14153_ACEOF
14154rm -f conftest.$ac_objext
14155if { (ac_try="$ac_compile"
14156case "(($ac_try" in
14157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158  *) ac_try_echo=$ac_try;;
14159esac
14160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161  (eval "$ac_compile") 2>conftest.er1
14162  ac_status=$?
14163  grep -v '^ *+' conftest.er1 >conftest.err
14164  rm -f conftest.er1
14165  cat conftest.err >&5
14166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167  (exit $ac_status); } && {
14168	 test -z "$ac_c_werror_flag" ||
14169	 test ! -s conftest.err
14170       } && test -s conftest.$ac_objext; then
14171  ac_header_compiler=yes
14172else
14173  echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176	ac_header_compiler=no
14177fi
14178
14179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14181echo "${ECHO_T}$ac_header_compiler" >&6; }
14182
14183# Is the header present?
14184{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14185echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14186cat >conftest.$ac_ext <<_ACEOF
14187/* confdefs.h.  */
14188_ACEOF
14189cat confdefs.h >>conftest.$ac_ext
14190cat >>conftest.$ac_ext <<_ACEOF
14191/* end confdefs.h.  */
14192#include <$ac_header>
14193_ACEOF
14194if { (ac_try="$ac_cpp conftest.$ac_ext"
14195case "(($ac_try" in
14196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197  *) ac_try_echo=$ac_try;;
14198esac
14199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14201  ac_status=$?
14202  grep -v '^ *+' conftest.er1 >conftest.err
14203  rm -f conftest.er1
14204  cat conftest.err >&5
14205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206  (exit $ac_status); } >/dev/null && {
14207	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14208	 test ! -s conftest.err
14209       }; then
14210  ac_header_preproc=yes
14211else
14212  echo "$as_me: failed program was:" >&5
14213sed 's/^/| /' conftest.$ac_ext >&5
14214
14215  ac_header_preproc=no
14216fi
14217
14218rm -f conftest.err conftest.$ac_ext
14219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14220echo "${ECHO_T}$ac_header_preproc" >&6; }
14221
14222# So?  What about this header?
14223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14224  yes:no: )
14225    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14227    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14229    ac_header_preproc=yes
14230    ;;
14231  no:yes:* )
14232    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14234    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14235echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14236    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14238    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14239echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14240    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14242    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14244
14245    ;;
14246esac
14247{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14250  echo $ECHO_N "(cached) $ECHO_C" >&6
14251else
14252  eval "$as_ac_Header=\$ac_header_preproc"
14253fi
14254ac_res=`eval echo '${'$as_ac_Header'}'`
14255	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14256echo "${ECHO_T}$ac_res" >&6; }
14257
14258fi
14259if test `eval echo '${'$as_ac_Header'}'` = yes; then
14260  cat >>confdefs.h <<_ACEOF
14261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14262_ACEOF
14263
14264fi
14265
14266done
14267
14268
14269
14270{ echo "$as_me:$LINENO: checking for usable net/if.h" >&5
14271echo $ECHO_N "checking for usable net/if.h... $ECHO_C" >&6; }
14272if test "${libreplace_cv_USABLE_NET_IF_H+set}" = set; then
14273  echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275
14276	cat >conftest.$ac_ext <<_ACEOF
14277/* confdefs.h.  */
14278_ACEOF
14279cat confdefs.h >>conftest.$ac_ext
14280cat >>conftest.$ac_ext <<_ACEOF
14281/* end confdefs.h.  */
14282
14283		$ac_includes_default
14284		#if HAVE_SYS_SOCKET_H
14285		# include <sys/socket.h>
14286		#endif
14287		#include <net/if.h>
14288		int main(void) {return 0;}
14289_ACEOF
14290rm -f conftest.$ac_objext
14291if { (ac_try="$ac_compile"
14292case "(($ac_try" in
14293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294  *) ac_try_echo=$ac_try;;
14295esac
14296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297  (eval "$ac_compile") 2>conftest.er1
14298  ac_status=$?
14299  grep -v '^ *+' conftest.er1 >conftest.err
14300  rm -f conftest.er1
14301  cat conftest.err >&5
14302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303  (exit $ac_status); } && {
14304	 test -z "$ac_c_werror_flag" ||
14305	 test ! -s conftest.err
14306       } && test -s conftest.$ac_objext; then
14307  libreplace_cv_USABLE_NET_IF_H=yes
14308else
14309  echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312	libreplace_cv_USABLE_NET_IF_H=no
14313
14314fi
14315
14316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317
14318fi
14319{ echo "$as_me:$LINENO: result: $libreplace_cv_USABLE_NET_IF_H" >&5
14320echo "${ECHO_T}$libreplace_cv_USABLE_NET_IF_H" >&6; }
14321if test x"$libreplace_cv_USABLE_NET_IF_H" = x"yes";then
14322
14323cat >>confdefs.h <<\_ACEOF
14324#define HAVE_NET_IF_H 1
14325_ACEOF
14326
14327fi
14328
14329{ echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
14330echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6; }
14331if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
14332  echo $ECHO_N "(cached) $ECHO_C" >&6
14333else
14334
14335if test "$cross_compiling" = yes; then
14336  samba_cv_REPLACE_INET_NTOA=cross
14337else
14338  cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h.  */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h.  */
14344
14345#include <stdio.h>
14346#include <unistd.h>
14347#include <sys/types.h>
14348#include <netinet/in.h>
14349#ifdef HAVE_ARPA_INET_H
14350#include <arpa/inet.h>
14351#endif
14352main() { struct in_addr ip; ip.s_addr = 0x12345678;
14353if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
14354    strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
14355exit(1);}
14356_ACEOF
14357rm -f conftest$ac_exeext
14358if { (ac_try="$ac_link"
14359case "(($ac_try" in
14360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361  *) ac_try_echo=$ac_try;;
14362esac
14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364  (eval "$ac_link") 2>&5
14365  ac_status=$?
14366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14368  { (case "(($ac_try" in
14369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370  *) ac_try_echo=$ac_try;;
14371esac
14372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373  (eval "$ac_try") 2>&5
14374  ac_status=$?
14375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376  (exit $ac_status); }; }; then
14377  samba_cv_REPLACE_INET_NTOA=yes
14378else
14379  echo "$as_me: program exited with status $ac_status" >&5
14380echo "$as_me: failed program was:" >&5
14381sed 's/^/| /' conftest.$ac_ext >&5
14382
14383( exit $ac_status )
14384samba_cv_REPLACE_INET_NTOA=no
14385fi
14386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14387fi
14388
14389
14390fi
14391{ echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
14392echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6; }
14393if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
14394
14395cat >>confdefs.h <<\_ACEOF
14396#define REPLACE_INET_NTOA 1
14397_ACEOF
14398
14399fi
14400
14401cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h.  */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h.  */
14407
14408#include <sys/types.h>
14409#if STDC_HEADERS
14410#include <stdlib.h>
14411#include <stddef.h>
14412#endif
14413#include <sys/socket.h>
14414int
14415main ()
14416{
14417socklen_t foo;
14418  ;
14419  return 0;
14420}
14421_ACEOF
14422rm -f conftest.$ac_objext
14423if { (ac_try="$ac_compile"
14424case "(($ac_try" in
14425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426  *) ac_try_echo=$ac_try;;
14427esac
14428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429  (eval "$ac_compile") 2>conftest.er1
14430  ac_status=$?
14431  grep -v '^ *+' conftest.er1 >conftest.err
14432  rm -f conftest.er1
14433  cat conftest.err >&5
14434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435  (exit $ac_status); } && {
14436	 test -z "$ac_c_werror_flag" ||
14437	 test ! -s conftest.err
14438       } && test -s conftest.$ac_objext; then
14439  :
14440else
14441  echo "$as_me: failed program was:" >&5
14442sed 's/^/| /' conftest.$ac_ext >&5
14443
14444
14445cat >>confdefs.h <<\_ACEOF
14446#define socklen_t int
14447_ACEOF
14448
14449fi
14450
14451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452
14453
14454
14455
14456
14457
14458
14459
14460for ac_func in seteuid setresuid setegid setresgid chroot bzero strerror
14461do
14462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14463{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14465if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14466  echo $ECHO_N "(cached) $ECHO_C" >&6
14467else
14468  cat >conftest.$ac_ext <<_ACEOF
14469/* confdefs.h.  */
14470_ACEOF
14471cat confdefs.h >>conftest.$ac_ext
14472cat >>conftest.$ac_ext <<_ACEOF
14473/* end confdefs.h.  */
14474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14475   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14476#define $ac_func innocuous_$ac_func
14477
14478/* System header to define __stub macros and hopefully few prototypes,
14479    which can conflict with char $ac_func (); below.
14480    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14481    <limits.h> exists even on freestanding compilers.  */
14482
14483#ifdef __STDC__
14484# include <limits.h>
14485#else
14486# include <assert.h>
14487#endif
14488
14489#undef $ac_func
14490
14491/* Override any GCC internal prototype to avoid an error.
14492   Use char because int might match the return type of a GCC
14493   builtin and then its argument prototype would still apply.  */
14494#ifdef __cplusplus
14495extern "C"
14496#endif
14497char $ac_func ();
14498/* The GNU C library defines this for functions which it implements
14499    to always fail with ENOSYS.  Some functions are actually named
14500    something starting with __ and the normal name is an alias.  */
14501#if defined __stub_$ac_func || defined __stub___$ac_func
14502choke me
14503#endif
14504
14505int
14506main ()
14507{
14508return $ac_func ();
14509  ;
14510  return 0;
14511}
14512_ACEOF
14513rm -f conftest.$ac_objext conftest$ac_exeext
14514if { (ac_try="$ac_link"
14515case "(($ac_try" in
14516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517  *) ac_try_echo=$ac_try;;
14518esac
14519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520  (eval "$ac_link") 2>conftest.er1
14521  ac_status=$?
14522  grep -v '^ *+' conftest.er1 >conftest.err
14523  rm -f conftest.er1
14524  cat conftest.err >&5
14525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526  (exit $ac_status); } && {
14527	 test -z "$ac_c_werror_flag" ||
14528	 test ! -s conftest.err
14529       } && test -s conftest$ac_exeext &&
14530       $as_test_x conftest$ac_exeext; then
14531  eval "$as_ac_var=yes"
14532else
14533  echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
14536	eval "$as_ac_var=no"
14537fi
14538
14539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14540      conftest$ac_exeext conftest.$ac_ext
14541fi
14542ac_res=`eval echo '${'$as_ac_var'}'`
14543	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14544echo "${ECHO_T}$ac_res" >&6; }
14545if test `eval echo '${'$as_ac_var'}'` = yes; then
14546  cat >>confdefs.h <<_ACEOF
14547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14548_ACEOF
14549
14550fi
14551done
14552
14553
14554
14555
14556
14557
14558
14559for ac_func in vsyslog setlinebuf mktime ftruncate chsize rename
14560do
14561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14562{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14564if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14565  echo $ECHO_N "(cached) $ECHO_C" >&6
14566else
14567  cat >conftest.$ac_ext <<_ACEOF
14568/* confdefs.h.  */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
14572/* end confdefs.h.  */
14573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14574   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14575#define $ac_func innocuous_$ac_func
14576
14577/* System header to define __stub macros and hopefully few prototypes,
14578    which can conflict with char $ac_func (); below.
14579    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14580    <limits.h> exists even on freestanding compilers.  */
14581
14582#ifdef __STDC__
14583# include <limits.h>
14584#else
14585# include <assert.h>
14586#endif
14587
14588#undef $ac_func
14589
14590/* Override any GCC internal prototype to avoid an error.
14591   Use char because int might match the return type of a GCC
14592   builtin and then its argument prototype would still apply.  */
14593#ifdef __cplusplus
14594extern "C"
14595#endif
14596char $ac_func ();
14597/* The GNU C library defines this for functions which it implements
14598    to always fail with ENOSYS.  Some functions are actually named
14599    something starting with __ and the normal name is an alias.  */
14600#if defined __stub_$ac_func || defined __stub___$ac_func
14601choke me
14602#endif
14603
14604int
14605main ()
14606{
14607return $ac_func ();
14608  ;
14609  return 0;
14610}
14611_ACEOF
14612rm -f conftest.$ac_objext conftest$ac_exeext
14613if { (ac_try="$ac_link"
14614case "(($ac_try" in
14615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616  *) ac_try_echo=$ac_try;;
14617esac
14618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619  (eval "$ac_link") 2>conftest.er1
14620  ac_status=$?
14621  grep -v '^ *+' conftest.er1 >conftest.err
14622  rm -f conftest.er1
14623  cat conftest.err >&5
14624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625  (exit $ac_status); } && {
14626	 test -z "$ac_c_werror_flag" ||
14627	 test ! -s conftest.err
14628       } && test -s conftest$ac_exeext &&
14629       $as_test_x conftest$ac_exeext; then
14630  eval "$as_ac_var=yes"
14631else
14632  echo "$as_me: failed program was:" >&5
14633sed 's/^/| /' conftest.$ac_ext >&5
14634
14635	eval "$as_ac_var=no"
14636fi
14637
14638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14639      conftest$ac_exeext conftest.$ac_ext
14640fi
14641ac_res=`eval echo '${'$as_ac_var'}'`
14642	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14643echo "${ECHO_T}$ac_res" >&6; }
14644if test `eval echo '${'$as_ac_var'}'` = yes; then
14645  cat >>confdefs.h <<_ACEOF
14646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14647_ACEOF
14648
14649fi
14650done
14651
14652
14653
14654
14655
14656
14657
14658for ac_func in waitpid strlcpy strlcat initgroups memmove strdup
14659do
14660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14661{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14663if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14664  echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
14666  cat >conftest.$ac_ext <<_ACEOF
14667/* confdefs.h.  */
14668_ACEOF
14669cat confdefs.h >>conftest.$ac_ext
14670cat >>conftest.$ac_ext <<_ACEOF
14671/* end confdefs.h.  */
14672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14673   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14674#define $ac_func innocuous_$ac_func
14675
14676/* System header to define __stub macros and hopefully few prototypes,
14677    which can conflict with char $ac_func (); below.
14678    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14679    <limits.h> exists even on freestanding compilers.  */
14680
14681#ifdef __STDC__
14682# include <limits.h>
14683#else
14684# include <assert.h>
14685#endif
14686
14687#undef $ac_func
14688
14689/* Override any GCC internal prototype to avoid an error.
14690   Use char because int might match the return type of a GCC
14691   builtin and then its argument prototype would still apply.  */
14692#ifdef __cplusplus
14693extern "C"
14694#endif
14695char $ac_func ();
14696/* The GNU C library defines this for functions which it implements
14697    to always fail with ENOSYS.  Some functions are actually named
14698    something starting with __ and the normal name is an alias.  */
14699#if defined __stub_$ac_func || defined __stub___$ac_func
14700choke me
14701#endif
14702
14703int
14704main ()
14705{
14706return $ac_func ();
14707  ;
14708  return 0;
14709}
14710_ACEOF
14711rm -f conftest.$ac_objext conftest$ac_exeext
14712if { (ac_try="$ac_link"
14713case "(($ac_try" in
14714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715  *) ac_try_echo=$ac_try;;
14716esac
14717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718  (eval "$ac_link") 2>conftest.er1
14719  ac_status=$?
14720  grep -v '^ *+' conftest.er1 >conftest.err
14721  rm -f conftest.er1
14722  cat conftest.err >&5
14723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724  (exit $ac_status); } && {
14725	 test -z "$ac_c_werror_flag" ||
14726	 test ! -s conftest.err
14727       } && test -s conftest$ac_exeext &&
14728       $as_test_x conftest$ac_exeext; then
14729  eval "$as_ac_var=yes"
14730else
14731  echo "$as_me: failed program was:" >&5
14732sed 's/^/| /' conftest.$ac_ext >&5
14733
14734	eval "$as_ac_var=no"
14735fi
14736
14737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14738      conftest$ac_exeext conftest.$ac_ext
14739fi
14740ac_res=`eval echo '${'$as_ac_var'}'`
14741	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14742echo "${ECHO_T}$ac_res" >&6; }
14743if test `eval echo '${'$as_ac_var'}'` = yes; then
14744  cat >>confdefs.h <<_ACEOF
14745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14746_ACEOF
14747
14748fi
14749done
14750
14751
14752
14753
14754
14755
14756
14757
14758for ac_func in pread pwrite strndup strcasestr strtok_r mkdtemp socketpair
14759do
14760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14761{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14763if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14764  echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766  cat >conftest.$ac_ext <<_ACEOF
14767/* confdefs.h.  */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h.  */
14772/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14773   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14774#define $ac_func innocuous_$ac_func
14775
14776/* System header to define __stub macros and hopefully few prototypes,
14777    which can conflict with char $ac_func (); below.
14778    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14779    <limits.h> exists even on freestanding compilers.  */
14780
14781#ifdef __STDC__
14782# include <limits.h>
14783#else
14784# include <assert.h>
14785#endif
14786
14787#undef $ac_func
14788
14789/* Override any GCC internal prototype to avoid an error.
14790   Use char because int might match the return type of a GCC
14791   builtin and then its argument prototype would still apply.  */
14792#ifdef __cplusplus
14793extern "C"
14794#endif
14795char $ac_func ();
14796/* The GNU C library defines this for functions which it implements
14797    to always fail with ENOSYS.  Some functions are actually named
14798    something starting with __ and the normal name is an alias.  */
14799#if defined __stub_$ac_func || defined __stub___$ac_func
14800choke me
14801#endif
14802
14803int
14804main ()
14805{
14806return $ac_func ();
14807  ;
14808  return 0;
14809}
14810_ACEOF
14811rm -f conftest.$ac_objext conftest$ac_exeext
14812if { (ac_try="$ac_link"
14813case "(($ac_try" in
14814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815  *) ac_try_echo=$ac_try;;
14816esac
14817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818  (eval "$ac_link") 2>conftest.er1
14819  ac_status=$?
14820  grep -v '^ *+' conftest.er1 >conftest.err
14821  rm -f conftest.er1
14822  cat conftest.err >&5
14823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824  (exit $ac_status); } && {
14825	 test -z "$ac_c_werror_flag" ||
14826	 test ! -s conftest.err
14827       } && test -s conftest$ac_exeext &&
14828       $as_test_x conftest$ac_exeext; then
14829  eval "$as_ac_var=yes"
14830else
14831  echo "$as_me: failed program was:" >&5
14832sed 's/^/| /' conftest.$ac_ext >&5
14833
14834	eval "$as_ac_var=no"
14835fi
14836
14837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14838      conftest$ac_exeext conftest.$ac_ext
14839fi
14840ac_res=`eval echo '${'$as_ac_var'}'`
14841	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14842echo "${ECHO_T}$ac_res" >&6; }
14843if test `eval echo '${'$as_ac_var'}'` = yes; then
14844  cat >>confdefs.h <<_ACEOF
14845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14846_ACEOF
14847
14848fi
14849done
14850
14851
14852 { echo "$as_me:$LINENO: checking for setresuid declaration" >&5
14853echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6; }
14854if test "${ac_cv_have_setresuid_decl+set}" = set; then
14855  echo $ECHO_N "(cached) $ECHO_C" >&6
14856else
14857
14858    cat >conftest.$ac_ext <<_ACEOF
14859/* confdefs.h.  */
14860_ACEOF
14861cat confdefs.h >>conftest.$ac_ext
14862cat >>conftest.$ac_ext <<_ACEOF
14863/* end confdefs.h.  */
14864#include <unistd.h>
14865int
14866main ()
14867{
14868int i = (int)setresuid
14869  ;
14870  return 0;
14871}
14872_ACEOF
14873rm -f conftest.$ac_objext
14874if { (ac_try="$ac_compile"
14875case "(($ac_try" in
14876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877  *) ac_try_echo=$ac_try;;
14878esac
14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880  (eval "$ac_compile") 2>conftest.er1
14881  ac_status=$?
14882  grep -v '^ *+' conftest.er1 >conftest.err
14883  rm -f conftest.er1
14884  cat conftest.err >&5
14885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886  (exit $ac_status); } && {
14887	 test -z "$ac_c_werror_flag" ||
14888	 test ! -s conftest.err
14889       } && test -s conftest.$ac_objext; then
14890  ac_cv_have_setresuid_decl=yes
14891else
14892  echo "$as_me: failed program was:" >&5
14893sed 's/^/| /' conftest.$ac_ext >&5
14894
14895	ac_cv_have_setresuid_decl=no
14896fi
14897
14898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899fi
14900{ echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
14901echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6; }
14902 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
14903
14904cat >>confdefs.h <<\_ACEOF
14905#define HAVE_SETRESUID_DECL 1
14906_ACEOF
14907
14908 fi
14909
14910
14911 { echo "$as_me:$LINENO: checking for setresgid declaration" >&5
14912echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6; }
14913if test "${ac_cv_have_setresgid_decl+set}" = set; then
14914  echo $ECHO_N "(cached) $ECHO_C" >&6
14915else
14916
14917    cat >conftest.$ac_ext <<_ACEOF
14918/* confdefs.h.  */
14919_ACEOF
14920cat confdefs.h >>conftest.$ac_ext
14921cat >>conftest.$ac_ext <<_ACEOF
14922/* end confdefs.h.  */
14923#include <unistd.h>
14924int
14925main ()
14926{
14927int i = (int)setresgid
14928  ;
14929  return 0;
14930}
14931_ACEOF
14932rm -f conftest.$ac_objext
14933if { (ac_try="$ac_compile"
14934case "(($ac_try" in
14935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936  *) ac_try_echo=$ac_try;;
14937esac
14938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939  (eval "$ac_compile") 2>conftest.er1
14940  ac_status=$?
14941  grep -v '^ *+' conftest.er1 >conftest.err
14942  rm -f conftest.er1
14943  cat conftest.err >&5
14944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945  (exit $ac_status); } && {
14946	 test -z "$ac_c_werror_flag" ||
14947	 test ! -s conftest.err
14948       } && test -s conftest.$ac_objext; then
14949  ac_cv_have_setresgid_decl=yes
14950else
14951  echo "$as_me: failed program was:" >&5
14952sed 's/^/| /' conftest.$ac_ext >&5
14953
14954	ac_cv_have_setresgid_decl=no
14955fi
14956
14957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958fi
14959{ echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
14960echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6; }
14961 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
14962
14963cat >>confdefs.h <<\_ACEOF
14964#define HAVE_SETRESGID_DECL 1
14965_ACEOF
14966
14967 fi
14968
14969
14970 { echo "$as_me:$LINENO: checking for errno declaration" >&5
14971echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6; }
14972if test "${ac_cv_have_errno_decl+set}" = set; then
14973  echo $ECHO_N "(cached) $ECHO_C" >&6
14974else
14975
14976    cat >conftest.$ac_ext <<_ACEOF
14977/* confdefs.h.  */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h.  */
14982#include <errno.h>
14983int
14984main ()
14985{
14986int i = (int)errno
14987  ;
14988  return 0;
14989}
14990_ACEOF
14991rm -f conftest.$ac_objext
14992if { (ac_try="$ac_compile"
14993case "(($ac_try" in
14994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995  *) ac_try_echo=$ac_try;;
14996esac
14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998  (eval "$ac_compile") 2>conftest.er1
14999  ac_status=$?
15000  grep -v '^ *+' conftest.er1 >conftest.err
15001  rm -f conftest.er1
15002  cat conftest.err >&5
15003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004  (exit $ac_status); } && {
15005	 test -z "$ac_c_werror_flag" ||
15006	 test ! -s conftest.err
15007       } && test -s conftest.$ac_objext; then
15008  ac_cv_have_errno_decl=yes
15009else
15010  echo "$as_me: failed program was:" >&5
15011sed 's/^/| /' conftest.$ac_ext >&5
15012
15013	ac_cv_have_errno_decl=no
15014fi
15015
15016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15017fi
15018{ echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
15019echo "${ECHO_T}$ac_cv_have_errno_decl" >&6; }
15020 if test x"$ac_cv_have_errno_decl" = x"yes"; then
15021
15022cat >>confdefs.h <<\_ACEOF
15023#define HAVE_ERRNO_DECL 1
15024_ACEOF
15025
15026 fi
15027
15028
15029{ echo "$as_me:$LINENO: checking for secure mkstemp" >&5
15030echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6; }
15031if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
15032  echo $ECHO_N "(cached) $ECHO_C" >&6
15033else
15034
15035if test "$cross_compiling" = yes; then
15036  samba_cv_HAVE_SECURE_MKSTEMP=cross
15037else
15038  cat >conftest.$ac_ext <<_ACEOF
15039/* confdefs.h.  */
15040_ACEOF
15041cat confdefs.h >>conftest.$ac_ext
15042cat >>conftest.$ac_ext <<_ACEOF
15043/* end confdefs.h.  */
15044#include <stdlib.h>
15045#include <sys/types.h>
15046#include <sys/stat.h>
15047#include <unistd.h>
15048main() {
15049  struct stat st;
15050  char tpl[20]="/tmp/test.XXXXXX";
15051  int fd = mkstemp(tpl);
15052  if (fd == -1) exit(1);
15053  unlink(tpl);
15054  if (fstat(fd, &st) != 0) exit(1);
15055  if ((st.st_mode & 0777) != 0600) exit(1);
15056  exit(0);
15057}
15058_ACEOF
15059rm -f conftest$ac_exeext
15060if { (ac_try="$ac_link"
15061case "(($ac_try" in
15062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063  *) ac_try_echo=$ac_try;;
15064esac
15065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066  (eval "$ac_link") 2>&5
15067  ac_status=$?
15068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15070  { (case "(($ac_try" in
15071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072  *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075  (eval "$ac_try") 2>&5
15076  ac_status=$?
15077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078  (exit $ac_status); }; }; then
15079  samba_cv_HAVE_SECURE_MKSTEMP=yes
15080else
15081  echo "$as_me: program exited with status $ac_status" >&5
15082echo "$as_me: failed program was:" >&5
15083sed 's/^/| /' conftest.$ac_ext >&5
15084
15085( exit $ac_status )
15086samba_cv_HAVE_SECURE_MKSTEMP=no
15087fi
15088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15089fi
15090
15091
15092fi
15093{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
15094echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6; }
15095if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
15096
15097cat >>confdefs.h <<\_ACEOF
15098#define HAVE_SECURE_MKSTEMP 1
15099_ACEOF
15100
15101fi
15102
15103
15104
15105for ac_header in stdio.h strings.h
15106do
15107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112  echo $ECHO_N "(cached) $ECHO_C" >&6
15113fi
15114ac_res=`eval echo '${'$as_ac_Header'}'`
15115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15116echo "${ECHO_T}$ac_res" >&6; }
15117else
15118  # Is the header compilable?
15119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h.  */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h.  */
15127$ac_includes_default
15128#include <$ac_header>
15129_ACEOF
15130rm -f conftest.$ac_objext
15131if { (ac_try="$ac_compile"
15132case "(($ac_try" in
15133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134  *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137  (eval "$ac_compile") 2>conftest.er1
15138  ac_status=$?
15139  grep -v '^ *+' conftest.er1 >conftest.err
15140  rm -f conftest.er1
15141  cat conftest.err >&5
15142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143  (exit $ac_status); } && {
15144	 test -z "$ac_c_werror_flag" ||
15145	 test ! -s conftest.err
15146       } && test -s conftest.$ac_objext; then
15147  ac_header_compiler=yes
15148else
15149  echo "$as_me: failed program was:" >&5
15150sed 's/^/| /' conftest.$ac_ext >&5
15151
15152	ac_header_compiler=no
15153fi
15154
15155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15157echo "${ECHO_T}$ac_header_compiler" >&6; }
15158
15159# Is the header present?
15160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15162cat >conftest.$ac_ext <<_ACEOF
15163/* confdefs.h.  */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h.  */
15168#include <$ac_header>
15169_ACEOF
15170if { (ac_try="$ac_cpp conftest.$ac_ext"
15171case "(($ac_try" in
15172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173  *) ac_try_echo=$ac_try;;
15174esac
15175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15177  ac_status=$?
15178  grep -v '^ *+' conftest.er1 >conftest.err
15179  rm -f conftest.er1
15180  cat conftest.err >&5
15181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182  (exit $ac_status); } >/dev/null && {
15183	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15184	 test ! -s conftest.err
15185       }; then
15186  ac_header_preproc=yes
15187else
15188  echo "$as_me: failed program was:" >&5
15189sed 's/^/| /' conftest.$ac_ext >&5
15190
15191  ac_header_preproc=no
15192fi
15193
15194rm -f conftest.err conftest.$ac_ext
15195{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15196echo "${ECHO_T}$ac_header_preproc" >&6; }
15197
15198# So?  What about this header?
15199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15200  yes:no: )
15201    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15203    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15205    ac_header_preproc=yes
15206    ;;
15207  no:yes:* )
15208    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15210    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15211echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15212    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15214    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15215echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15218    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15220
15221    ;;
15222esac
15223{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226  echo $ECHO_N "(cached) $ECHO_C" >&6
15227else
15228  eval "$as_ac_Header=\$ac_header_preproc"
15229fi
15230ac_res=`eval echo '${'$as_ac_Header'}'`
15231	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15232echo "${ECHO_T}$ac_res" >&6; }
15233
15234fi
15235if test `eval echo '${'$as_ac_Header'}'` = yes; then
15236  cat >>confdefs.h <<_ACEOF
15237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15238_ACEOF
15239
15240fi
15241
15242done
15243
15244{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15245echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
15246if test "${ac_cv_have_decl_snprintf+set}" = set; then
15247  echo $ECHO_N "(cached) $ECHO_C" >&6
15248else
15249  cat >conftest.$ac_ext <<_ACEOF
15250/* confdefs.h.  */
15251_ACEOF
15252cat confdefs.h >>conftest.$ac_ext
15253cat >>conftest.$ac_ext <<_ACEOF
15254/* end confdefs.h.  */
15255$ac_includes_default
15256int
15257main ()
15258{
15259#ifndef snprintf
15260  (void) snprintf;
15261#endif
15262
15263  ;
15264  return 0;
15265}
15266_ACEOF
15267rm -f conftest.$ac_objext
15268if { (ac_try="$ac_compile"
15269case "(($ac_try" in
15270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271  *) ac_try_echo=$ac_try;;
15272esac
15273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274  (eval "$ac_compile") 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	 test -z "$ac_c_werror_flag" ||
15282	 test ! -s conftest.err
15283       } && test -s conftest.$ac_objext; then
15284  ac_cv_have_decl_snprintf=yes
15285else
15286  echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
15289	ac_cv_have_decl_snprintf=no
15290fi
15291
15292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15293fi
15294{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15295echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
15296if test $ac_cv_have_decl_snprintf = yes; then
15297
15298cat >>confdefs.h <<_ACEOF
15299#define HAVE_DECL_SNPRINTF 1
15300_ACEOF
15301
15302
15303else
15304  cat >>confdefs.h <<_ACEOF
15305#define HAVE_DECL_SNPRINTF 0
15306_ACEOF
15307
15308
15309fi
15310{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15311echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
15312if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15313  echo $ECHO_N "(cached) $ECHO_C" >&6
15314else
15315  cat >conftest.$ac_ext <<_ACEOF
15316/* confdefs.h.  */
15317_ACEOF
15318cat confdefs.h >>conftest.$ac_ext
15319cat >>conftest.$ac_ext <<_ACEOF
15320/* end confdefs.h.  */
15321$ac_includes_default
15322int
15323main ()
15324{
15325#ifndef vsnprintf
15326  (void) vsnprintf;
15327#endif
15328
15329  ;
15330  return 0;
15331}
15332_ACEOF
15333rm -f conftest.$ac_objext
15334if { (ac_try="$ac_compile"
15335case "(($ac_try" in
15336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337  *) ac_try_echo=$ac_try;;
15338esac
15339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340  (eval "$ac_compile") 2>conftest.er1
15341  ac_status=$?
15342  grep -v '^ *+' conftest.er1 >conftest.err
15343  rm -f conftest.er1
15344  cat conftest.err >&5
15345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346  (exit $ac_status); } && {
15347	 test -z "$ac_c_werror_flag" ||
15348	 test ! -s conftest.err
15349       } && test -s conftest.$ac_objext; then
15350  ac_cv_have_decl_vsnprintf=yes
15351else
15352  echo "$as_me: failed program was:" >&5
15353sed 's/^/| /' conftest.$ac_ext >&5
15354
15355	ac_cv_have_decl_vsnprintf=no
15356fi
15357
15358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359fi
15360{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15361echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
15362if test $ac_cv_have_decl_vsnprintf = yes; then
15363
15364cat >>confdefs.h <<_ACEOF
15365#define HAVE_DECL_VSNPRINTF 1
15366_ACEOF
15367
15368
15369else
15370  cat >>confdefs.h <<_ACEOF
15371#define HAVE_DECL_VSNPRINTF 0
15372_ACEOF
15373
15374
15375fi
15376{ echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
15377echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6; }
15378if test "${ac_cv_have_decl_asprintf+set}" = set; then
15379  echo $ECHO_N "(cached) $ECHO_C" >&6
15380else
15381  cat >conftest.$ac_ext <<_ACEOF
15382/* confdefs.h.  */
15383_ACEOF
15384cat confdefs.h >>conftest.$ac_ext
15385cat >>conftest.$ac_ext <<_ACEOF
15386/* end confdefs.h.  */
15387$ac_includes_default
15388int
15389main ()
15390{
15391#ifndef asprintf
15392  (void) asprintf;
15393#endif
15394
15395  ;
15396  return 0;
15397}
15398_ACEOF
15399rm -f conftest.$ac_objext
15400if { (ac_try="$ac_compile"
15401case "(($ac_try" in
15402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403  *) ac_try_echo=$ac_try;;
15404esac
15405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406  (eval "$ac_compile") 2>conftest.er1
15407  ac_status=$?
15408  grep -v '^ *+' conftest.er1 >conftest.err
15409  rm -f conftest.er1
15410  cat conftest.err >&5
15411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412  (exit $ac_status); } && {
15413	 test -z "$ac_c_werror_flag" ||
15414	 test ! -s conftest.err
15415       } && test -s conftest.$ac_objext; then
15416  ac_cv_have_decl_asprintf=yes
15417else
15418  echo "$as_me: failed program was:" >&5
15419sed 's/^/| /' conftest.$ac_ext >&5
15420
15421	ac_cv_have_decl_asprintf=no
15422fi
15423
15424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15425fi
15426{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
15427echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6; }
15428if test $ac_cv_have_decl_asprintf = yes; then
15429
15430cat >>confdefs.h <<_ACEOF
15431#define HAVE_DECL_ASPRINTF 1
15432_ACEOF
15433
15434
15435else
15436  cat >>confdefs.h <<_ACEOF
15437#define HAVE_DECL_ASPRINTF 0
15438_ACEOF
15439
15440
15441fi
15442{ echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
15443echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6; }
15444if test "${ac_cv_have_decl_vasprintf+set}" = set; then
15445  echo $ECHO_N "(cached) $ECHO_C" >&6
15446else
15447  cat >conftest.$ac_ext <<_ACEOF
15448/* confdefs.h.  */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h.  */
15453$ac_includes_default
15454int
15455main ()
15456{
15457#ifndef vasprintf
15458  (void) vasprintf;
15459#endif
15460
15461  ;
15462  return 0;
15463}
15464_ACEOF
15465rm -f conftest.$ac_objext
15466if { (ac_try="$ac_compile"
15467case "(($ac_try" in
15468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469  *) ac_try_echo=$ac_try;;
15470esac
15471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472  (eval "$ac_compile") 2>conftest.er1
15473  ac_status=$?
15474  grep -v '^ *+' conftest.er1 >conftest.err
15475  rm -f conftest.er1
15476  cat conftest.err >&5
15477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478  (exit $ac_status); } && {
15479	 test -z "$ac_c_werror_flag" ||
15480	 test ! -s conftest.err
15481       } && test -s conftest.$ac_objext; then
15482  ac_cv_have_decl_vasprintf=yes
15483else
15484  echo "$as_me: failed program was:" >&5
15485sed 's/^/| /' conftest.$ac_ext >&5
15486
15487	ac_cv_have_decl_vasprintf=no
15488fi
15489
15490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491fi
15492{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
15493echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6; }
15494if test $ac_cv_have_decl_vasprintf = yes; then
15495
15496cat >>confdefs.h <<_ACEOF
15497#define HAVE_DECL_VASPRINTF 1
15498_ACEOF
15499
15500
15501else
15502  cat >>confdefs.h <<_ACEOF
15503#define HAVE_DECL_VASPRINTF 0
15504_ACEOF
15505
15506
15507fi
15508
15509
15510
15511
15512
15513
15514for ac_func in snprintf vsnprintf asprintf vasprintf
15515do
15516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15517{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15519if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15520  echo $ECHO_N "(cached) $ECHO_C" >&6
15521else
15522  cat >conftest.$ac_ext <<_ACEOF
15523/* confdefs.h.  */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h.  */
15528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15529   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15530#define $ac_func innocuous_$ac_func
15531
15532/* System header to define __stub macros and hopefully few prototypes,
15533    which can conflict with char $ac_func (); below.
15534    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15535    <limits.h> exists even on freestanding compilers.  */
15536
15537#ifdef __STDC__
15538# include <limits.h>
15539#else
15540# include <assert.h>
15541#endif
15542
15543#undef $ac_func
15544
15545/* Override any GCC internal prototype to avoid an error.
15546   Use char because int might match the return type of a GCC
15547   builtin and then its argument prototype would still apply.  */
15548#ifdef __cplusplus
15549extern "C"
15550#endif
15551char $ac_func ();
15552/* The GNU C library defines this for functions which it implements
15553    to always fail with ENOSYS.  Some functions are actually named
15554    something starting with __ and the normal name is an alias.  */
15555#if defined __stub_$ac_func || defined __stub___$ac_func
15556choke me
15557#endif
15558
15559int
15560main ()
15561{
15562return $ac_func ();
15563  ;
15564  return 0;
15565}
15566_ACEOF
15567rm -f conftest.$ac_objext conftest$ac_exeext
15568if { (ac_try="$ac_link"
15569case "(($ac_try" in
15570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571  *) ac_try_echo=$ac_try;;
15572esac
15573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574  (eval "$ac_link") 2>conftest.er1
15575  ac_status=$?
15576  grep -v '^ *+' conftest.er1 >conftest.err
15577  rm -f conftest.er1
15578  cat conftest.err >&5
15579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580  (exit $ac_status); } && {
15581	 test -z "$ac_c_werror_flag" ||
15582	 test ! -s conftest.err
15583       } && test -s conftest$ac_exeext &&
15584       $as_test_x conftest$ac_exeext; then
15585  eval "$as_ac_var=yes"
15586else
15587  echo "$as_me: failed program was:" >&5
15588sed 's/^/| /' conftest.$ac_ext >&5
15589
15590	eval "$as_ac_var=no"
15591fi
15592
15593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15594      conftest$ac_exeext conftest.$ac_ext
15595fi
15596ac_res=`eval echo '${'$as_ac_var'}'`
15597	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15598echo "${ECHO_T}$ac_res" >&6; }
15599if test `eval echo '${'$as_ac_var'}'` = yes; then
15600  cat >>confdefs.h <<_ACEOF
15601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15602_ACEOF
15603
15604fi
15605done
15606
15607
15608{ echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
15609echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
15610if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
15611  echo $ECHO_N "(cached) $ECHO_C" >&6
15612else
15613
15614if test "$cross_compiling" = yes; then
15615  samba_cv_HAVE_C99_VSNPRINTF=cross
15616else
15617  cat >conftest.$ac_ext <<_ACEOF
15618/* confdefs.h.  */
15619_ACEOF
15620cat confdefs.h >>conftest.$ac_ext
15621cat >>conftest.$ac_ext <<_ACEOF
15622/* end confdefs.h.  */
15623
15624#include <sys/types.h>
15625#include <stdio.h>
15626#include <stdarg.h>
15627#include <stdlib.h>
15628void foo(const char *format, ...) {
15629       va_list ap;
15630       int len;
15631       char buf[20];
15632       long long l = 1234567890;
15633       l *= 100;
15634
15635       va_start(ap, format);
15636       len = vsnprintf(buf, 0, format, ap);
15637       va_end(ap);
15638       if (len != 5) exit(1);
15639
15640       va_start(ap, format);
15641       len = vsnprintf(0, 0, format, ap);
15642       va_end(ap);
15643       if (len != 5) exit(2);
15644
15645       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
15646
15647       if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
15648       if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
15649       if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
15650       if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
15651
15652       exit(0);
15653}
15654main() { foo("hello"); }
15655
15656_ACEOF
15657rm -f conftest$ac_exeext
15658if { (ac_try="$ac_link"
15659case "(($ac_try" in
15660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661  *) ac_try_echo=$ac_try;;
15662esac
15663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664  (eval "$ac_link") 2>&5
15665  ac_status=$?
15666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15668  { (case "(($ac_try" in
15669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670  *) ac_try_echo=$ac_try;;
15671esac
15672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673  (eval "$ac_try") 2>&5
15674  ac_status=$?
15675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676  (exit $ac_status); }; }; then
15677  samba_cv_HAVE_C99_VSNPRINTF=yes
15678else
15679  echo "$as_me: program exited with status $ac_status" >&5
15680echo "$as_me: failed program was:" >&5
15681sed 's/^/| /' conftest.$ac_ext >&5
15682
15683( exit $ac_status )
15684samba_cv_HAVE_C99_VSNPRINTF=no
15685fi
15686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15687fi
15688
15689
15690fi
15691{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
15692echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6; }
15693if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
15694
15695cat >>confdefs.h <<\_ACEOF
15696#define HAVE_C99_VSNPRINTF 1
15697_ACEOF
15698
15699fi
15700
15701
15702{ echo "$as_me:$LINENO: checking for va_copy" >&5
15703echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
15704if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
15705  echo $ECHO_N "(cached) $ECHO_C" >&6
15706else
15707
15708cat >conftest.$ac_ext <<_ACEOF
15709/* confdefs.h.  */
15710_ACEOF
15711cat confdefs.h >>conftest.$ac_ext
15712cat >>conftest.$ac_ext <<_ACEOF
15713/* end confdefs.h.  */
15714#include <stdarg.h>
15715va_list ap1,ap2;
15716int
15717main ()
15718{
15719va_copy(ap1,ap2);
15720  ;
15721  return 0;
15722}
15723_ACEOF
15724rm -f conftest.$ac_objext conftest$ac_exeext
15725if { (ac_try="$ac_link"
15726case "(($ac_try" in
15727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728  *) ac_try_echo=$ac_try;;
15729esac
15730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731  (eval "$ac_link") 2>conftest.er1
15732  ac_status=$?
15733  grep -v '^ *+' conftest.er1 >conftest.err
15734  rm -f conftest.er1
15735  cat conftest.err >&5
15736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737  (exit $ac_status); } && {
15738	 test -z "$ac_c_werror_flag" ||
15739	 test ! -s conftest.err
15740       } && test -s conftest$ac_exeext &&
15741       $as_test_x conftest$ac_exeext; then
15742  samba_cv_HAVE_VA_COPY=yes
15743else
15744  echo "$as_me: failed program was:" >&5
15745sed 's/^/| /' conftest.$ac_ext >&5
15746
15747	samba_cv_HAVE_VA_COPY=no
15748fi
15749
15750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15751      conftest$ac_exeext conftest.$ac_ext
15752fi
15753{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
15754echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6; }
15755if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
15756
15757cat >>confdefs.h <<\_ACEOF
15758#define HAVE_VA_COPY 1
15759_ACEOF
15760
15761fi
15762
15763if test x"$samba_cv_HAVE_VA_COPY" != x"yes"; then
15764{ echo "$as_me:$LINENO: checking for __va_copy" >&5
15765echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
15766if test "${samba_cv_HAVE___VA_COPY+set}" = set; then
15767  echo $ECHO_N "(cached) $ECHO_C" >&6
15768else
15769
15770cat >conftest.$ac_ext <<_ACEOF
15771/* confdefs.h.  */
15772_ACEOF
15773cat confdefs.h >>conftest.$ac_ext
15774cat >>conftest.$ac_ext <<_ACEOF
15775/* end confdefs.h.  */
15776#include <stdarg.h>
15777va_list ap1,ap2;
15778int
15779main ()
15780{
15781__va_copy(ap1,ap2);
15782  ;
15783  return 0;
15784}
15785_ACEOF
15786rm -f conftest.$ac_objext conftest$ac_exeext
15787if { (ac_try="$ac_link"
15788case "(($ac_try" in
15789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790  *) ac_try_echo=$ac_try;;
15791esac
15792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793  (eval "$ac_link") 2>conftest.er1
15794  ac_status=$?
15795  grep -v '^ *+' conftest.er1 >conftest.err
15796  rm -f conftest.er1
15797  cat conftest.err >&5
15798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799  (exit $ac_status); } && {
15800	 test -z "$ac_c_werror_flag" ||
15801	 test ! -s conftest.err
15802       } && test -s conftest$ac_exeext &&
15803       $as_test_x conftest$ac_exeext; then
15804  samba_cv_HAVE___VA_COPY=yes
15805else
15806  echo "$as_me: failed program was:" >&5
15807sed 's/^/| /' conftest.$ac_ext >&5
15808
15809	samba_cv_HAVE___VA_COPY=no
15810fi
15811
15812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15813      conftest$ac_exeext conftest.$ac_ext
15814fi
15815{ echo "$as_me:$LINENO: result: $samba_cv_HAVE___VA_COPY" >&5
15816echo "${ECHO_T}$samba_cv_HAVE___VA_COPY" >&6; }
15817if test x"$samba_cv_HAVE___VA_COPY" = x"yes"; then
15818
15819cat >>confdefs.h <<\_ACEOF
15820#define HAVE___VA_COPY 1
15821_ACEOF
15822
15823fi
15824fi
15825
15826{ echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
15827echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6; }
15828if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
15829  echo $ECHO_N "(cached) $ECHO_C" >&6
15830else
15831
15832cat >conftest.$ac_ext <<_ACEOF
15833/* confdefs.h.  */
15834_ACEOF
15835cat confdefs.h >>conftest.$ac_ext
15836cat >>conftest.$ac_ext <<_ACEOF
15837/* end confdefs.h.  */
15838#include <stdio.h>
15839int
15840main ()
15841{
15842printf("%s\n", __FUNCTION__);
15843  ;
15844  return 0;
15845}
15846_ACEOF
15847rm -f conftest.$ac_objext
15848if { (ac_try="$ac_compile"
15849case "(($ac_try" in
15850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851  *) ac_try_echo=$ac_try;;
15852esac
15853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854  (eval "$ac_compile") 2>conftest.er1
15855  ac_status=$?
15856  grep -v '^ *+' conftest.er1 >conftest.err
15857  rm -f conftest.er1
15858  cat conftest.err >&5
15859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860  (exit $ac_status); } && {
15861	 test -z "$ac_c_werror_flag" ||
15862	 test ! -s conftest.err
15863       } && test -s conftest.$ac_objext; then
15864  samba_cv_HAVE_FUNCTION_MACRO=yes
15865else
15866  echo "$as_me: failed program was:" >&5
15867sed 's/^/| /' conftest.$ac_ext >&5
15868
15869	samba_cv_HAVE_FUNCTION_MACRO=no
15870fi
15871
15872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873fi
15874{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
15875echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6; }
15876if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
15877
15878cat >>confdefs.h <<\_ACEOF
15879#define HAVE_FUNCTION_MACRO 1
15880_ACEOF
15881
15882else
15883        { echo "$as_me:$LINENO: checking for __func__ macro" >&5
15884echo $ECHO_N "checking for __func__ macro... $ECHO_C" >&6; }
15885if test "${samba_cv_HAVE_func_MACRO+set}" = set; then
15886  echo $ECHO_N "(cached) $ECHO_C" >&6
15887else
15888
15889    cat >conftest.$ac_ext <<_ACEOF
15890/* confdefs.h.  */
15891_ACEOF
15892cat confdefs.h >>conftest.$ac_ext
15893cat >>conftest.$ac_ext <<_ACEOF
15894/* end confdefs.h.  */
15895#include <stdio.h>
15896int
15897main ()
15898{
15899printf("%s\n", __func__);
15900  ;
15901  return 0;
15902}
15903_ACEOF
15904rm -f conftest.$ac_objext
15905if { (ac_try="$ac_compile"
15906case "(($ac_try" in
15907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908  *) ac_try_echo=$ac_try;;
15909esac
15910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911  (eval "$ac_compile") 2>conftest.er1
15912  ac_status=$?
15913  grep -v '^ *+' conftest.er1 >conftest.err
15914  rm -f conftest.er1
15915  cat conftest.err >&5
15916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917  (exit $ac_status); } && {
15918	 test -z "$ac_c_werror_flag" ||
15919	 test ! -s conftest.err
15920       } && test -s conftest.$ac_objext; then
15921  samba_cv_HAVE_func_MACRO=yes
15922else
15923  echo "$as_me: failed program was:" >&5
15924sed 's/^/| /' conftest.$ac_ext >&5
15925
15926	samba_cv_HAVE_func_MACRO=no
15927fi
15928
15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930fi
15931{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_func_MACRO" >&5
15932echo "${ECHO_T}$samba_cv_HAVE_func_MACRO" >&6; }
15933    if test x"$samba_cv_HAVE_func_MACRO" = x"yes"; then
15934
15935cat >>confdefs.h <<\_ACEOF
15936#define HAVE_func_MACRO 1
15937_ACEOF
15938
15939    fi
15940fi
15941
15942
15943
15944for ac_header in sys/param.h limits.h
15945do
15946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15948  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15951  echo $ECHO_N "(cached) $ECHO_C" >&6
15952fi
15953ac_res=`eval echo '${'$as_ac_Header'}'`
15954	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15955echo "${ECHO_T}$ac_res" >&6; }
15956else
15957  # Is the header compilable?
15958{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15960cat >conftest.$ac_ext <<_ACEOF
15961/* confdefs.h.  */
15962_ACEOF
15963cat confdefs.h >>conftest.$ac_ext
15964cat >>conftest.$ac_ext <<_ACEOF
15965/* end confdefs.h.  */
15966$ac_includes_default
15967#include <$ac_header>
15968_ACEOF
15969rm -f conftest.$ac_objext
15970if { (ac_try="$ac_compile"
15971case "(($ac_try" in
15972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973  *) ac_try_echo=$ac_try;;
15974esac
15975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976  (eval "$ac_compile") 2>conftest.er1
15977  ac_status=$?
15978  grep -v '^ *+' conftest.er1 >conftest.err
15979  rm -f conftest.er1
15980  cat conftest.err >&5
15981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982  (exit $ac_status); } && {
15983	 test -z "$ac_c_werror_flag" ||
15984	 test ! -s conftest.err
15985       } && test -s conftest.$ac_objext; then
15986  ac_header_compiler=yes
15987else
15988  echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991	ac_header_compiler=no
15992fi
15993
15994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15996echo "${ECHO_T}$ac_header_compiler" >&6; }
15997
15998# Is the header present?
15999{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16001cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h.  */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h.  */
16007#include <$ac_header>
16008_ACEOF
16009if { (ac_try="$ac_cpp conftest.$ac_ext"
16010case "(($ac_try" in
16011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012  *) ac_try_echo=$ac_try;;
16013esac
16014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16016  ac_status=$?
16017  grep -v '^ *+' conftest.er1 >conftest.err
16018  rm -f conftest.er1
16019  cat conftest.err >&5
16020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021  (exit $ac_status); } >/dev/null && {
16022	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16023	 test ! -s conftest.err
16024       }; then
16025  ac_header_preproc=yes
16026else
16027  echo "$as_me: failed program was:" >&5
16028sed 's/^/| /' conftest.$ac_ext >&5
16029
16030  ac_header_preproc=no
16031fi
16032
16033rm -f conftest.err conftest.$ac_ext
16034{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16035echo "${ECHO_T}$ac_header_preproc" >&6; }
16036
16037# So?  What about this header?
16038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16039  yes:no: )
16040    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16044    ac_header_preproc=yes
16045    ;;
16046  no:yes:* )
16047    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16049    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16050echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16051    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16053    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16054echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16057    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16059
16060    ;;
16061esac
16062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16065  echo $ECHO_N "(cached) $ECHO_C" >&6
16066else
16067  eval "$as_ac_Header=\$ac_header_preproc"
16068fi
16069ac_res=`eval echo '${'$as_ac_Header'}'`
16070	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16071echo "${ECHO_T}$ac_res" >&6; }
16072
16073fi
16074if test `eval echo '${'$as_ac_Header'}'` = yes; then
16075  cat >>confdefs.h <<_ACEOF
16076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16077_ACEOF
16078
16079fi
16080
16081done
16082
16083
16084{ echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
16085echo $ECHO_N "checking for comparison_fn_t... $ECHO_C" >&6; }
16086if test "${ac_cv_type_comparison_fn_t+set}" = set; then
16087  echo $ECHO_N "(cached) $ECHO_C" >&6
16088else
16089  cat >conftest.$ac_ext <<_ACEOF
16090/* confdefs.h.  */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h.  */
16095$ac_includes_default
16096typedef comparison_fn_t ac__type_new_;
16097int
16098main ()
16099{
16100if ((ac__type_new_ *) 0)
16101  return 0;
16102if (sizeof (ac__type_new_))
16103  return 0;
16104  ;
16105  return 0;
16106}
16107_ACEOF
16108rm -f conftest.$ac_objext
16109if { (ac_try="$ac_compile"
16110case "(($ac_try" in
16111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112  *) ac_try_echo=$ac_try;;
16113esac
16114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115  (eval "$ac_compile") 2>conftest.er1
16116  ac_status=$?
16117  grep -v '^ *+' conftest.er1 >conftest.err
16118  rm -f conftest.er1
16119  cat conftest.err >&5
16120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121  (exit $ac_status); } && {
16122	 test -z "$ac_c_werror_flag" ||
16123	 test ! -s conftest.err
16124       } && test -s conftest.$ac_objext; then
16125  ac_cv_type_comparison_fn_t=yes
16126else
16127  echo "$as_me: failed program was:" >&5
16128sed 's/^/| /' conftest.$ac_ext >&5
16129
16130	ac_cv_type_comparison_fn_t=no
16131fi
16132
16133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134fi
16135{ echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
16136echo "${ECHO_T}$ac_cv_type_comparison_fn_t" >&6; }
16137if test $ac_cv_type_comparison_fn_t = yes; then
16138
16139cat >>confdefs.h <<\_ACEOF
16140#define HAVE_COMPARISON_FN_T 1
16141_ACEOF
16142
16143fi
16144
16145
16146
16147 { echo "$as_me:$LINENO: checking for setenv declaration" >&5
16148echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6; }
16149if test "${ac_cv_have_setenv_decl+set}" = set; then
16150  echo $ECHO_N "(cached) $ECHO_C" >&6
16151else
16152
16153    cat >conftest.$ac_ext <<_ACEOF
16154/* confdefs.h.  */
16155_ACEOF
16156cat confdefs.h >>conftest.$ac_ext
16157cat >>conftest.$ac_ext <<_ACEOF
16158/* end confdefs.h.  */
16159#include <stdlib.h>
16160int
16161main ()
16162{
16163int i = (int)setenv
16164  ;
16165  return 0;
16166}
16167_ACEOF
16168rm -f conftest.$ac_objext
16169if { (ac_try="$ac_compile"
16170case "(($ac_try" in
16171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172  *) ac_try_echo=$ac_try;;
16173esac
16174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175  (eval "$ac_compile") 2>conftest.er1
16176  ac_status=$?
16177  grep -v '^ *+' conftest.er1 >conftest.err
16178  rm -f conftest.er1
16179  cat conftest.err >&5
16180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181  (exit $ac_status); } && {
16182	 test -z "$ac_c_werror_flag" ||
16183	 test ! -s conftest.err
16184       } && test -s conftest.$ac_objext; then
16185  ac_cv_have_setenv_decl=yes
16186else
16187  echo "$as_me: failed program was:" >&5
16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190	ac_cv_have_setenv_decl=no
16191fi
16192
16193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16194fi
16195{ echo "$as_me:$LINENO: result: $ac_cv_have_setenv_decl" >&5
16196echo "${ECHO_T}$ac_cv_have_setenv_decl" >&6; }
16197 if test x"$ac_cv_have_setenv_decl" = x"yes"; then
16198
16199cat >>confdefs.h <<\_ACEOF
16200#define HAVE_SETENV_DECL 1
16201_ACEOF
16202
16203 fi
16204
16205
16206
16207for ac_func in setenv unsetenv
16208do
16209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16210{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16213  echo $ECHO_N "(cached) $ECHO_C" >&6
16214else
16215  cat >conftest.$ac_ext <<_ACEOF
16216/* confdefs.h.  */
16217_ACEOF
16218cat confdefs.h >>conftest.$ac_ext
16219cat >>conftest.$ac_ext <<_ACEOF
16220/* end confdefs.h.  */
16221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16222   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16223#define $ac_func innocuous_$ac_func
16224
16225/* System header to define __stub macros and hopefully few prototypes,
16226    which can conflict with char $ac_func (); below.
16227    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16228    <limits.h> exists even on freestanding compilers.  */
16229
16230#ifdef __STDC__
16231# include <limits.h>
16232#else
16233# include <assert.h>
16234#endif
16235
16236#undef $ac_func
16237
16238/* Override any GCC internal prototype to avoid an error.
16239   Use char because int might match the return type of a GCC
16240   builtin and then its argument prototype would still apply.  */
16241#ifdef __cplusplus
16242extern "C"
16243#endif
16244char $ac_func ();
16245/* The GNU C library defines this for functions which it implements
16246    to always fail with ENOSYS.  Some functions are actually named
16247    something starting with __ and the normal name is an alias.  */
16248#if defined __stub_$ac_func || defined __stub___$ac_func
16249choke me
16250#endif
16251
16252int
16253main ()
16254{
16255return $ac_func ();
16256  ;
16257  return 0;
16258}
16259_ACEOF
16260rm -f conftest.$ac_objext conftest$ac_exeext
16261if { (ac_try="$ac_link"
16262case "(($ac_try" in
16263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264  *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267  (eval "$ac_link") 2>conftest.er1
16268  ac_status=$?
16269  grep -v '^ *+' conftest.er1 >conftest.err
16270  rm -f conftest.er1
16271  cat conftest.err >&5
16272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273  (exit $ac_status); } && {
16274	 test -z "$ac_c_werror_flag" ||
16275	 test ! -s conftest.err
16276       } && test -s conftest$ac_exeext &&
16277       $as_test_x conftest$ac_exeext; then
16278  eval "$as_ac_var=yes"
16279else
16280  echo "$as_me: failed program was:" >&5
16281sed 's/^/| /' conftest.$ac_ext >&5
16282
16283	eval "$as_ac_var=no"
16284fi
16285
16286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16287      conftest$ac_exeext conftest.$ac_ext
16288fi
16289ac_res=`eval echo '${'$as_ac_var'}'`
16290	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16291echo "${ECHO_T}$ac_res" >&6; }
16292if test `eval echo '${'$as_ac_var'}'` = yes; then
16293  cat >>confdefs.h <<_ACEOF
16294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16295_ACEOF
16296
16297fi
16298done
16299
16300
16301
16302for ac_func in strnlen
16303do
16304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16305{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16307if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16308  echo $ECHO_N "(cached) $ECHO_C" >&6
16309else
16310  cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h.  */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h.  */
16316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16317   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16318#define $ac_func innocuous_$ac_func
16319
16320/* System header to define __stub macros and hopefully few prototypes,
16321    which can conflict with char $ac_func (); below.
16322    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16323    <limits.h> exists even on freestanding compilers.  */
16324
16325#ifdef __STDC__
16326# include <limits.h>
16327#else
16328# include <assert.h>
16329#endif
16330
16331#undef $ac_func
16332
16333/* Override any GCC internal prototype to avoid an error.
16334   Use char because int might match the return type of a GCC
16335   builtin and then its argument prototype would still apply.  */
16336#ifdef __cplusplus
16337extern "C"
16338#endif
16339char $ac_func ();
16340/* The GNU C library defines this for functions which it implements
16341    to always fail with ENOSYS.  Some functions are actually named
16342    something starting with __ and the normal name is an alias.  */
16343#if defined __stub_$ac_func || defined __stub___$ac_func
16344choke me
16345#endif
16346
16347int
16348main ()
16349{
16350return $ac_func ();
16351  ;
16352  return 0;
16353}
16354_ACEOF
16355rm -f conftest.$ac_objext conftest$ac_exeext
16356if { (ac_try="$ac_link"
16357case "(($ac_try" in
16358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359  *) ac_try_echo=$ac_try;;
16360esac
16361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362  (eval "$ac_link") 2>conftest.er1
16363  ac_status=$?
16364  grep -v '^ *+' conftest.er1 >conftest.err
16365  rm -f conftest.er1
16366  cat conftest.err >&5
16367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368  (exit $ac_status); } && {
16369	 test -z "$ac_c_werror_flag" ||
16370	 test ! -s conftest.err
16371       } && test -s conftest$ac_exeext &&
16372       $as_test_x conftest$ac_exeext; then
16373  eval "$as_ac_var=yes"
16374else
16375  echo "$as_me: failed program was:" >&5
16376sed 's/^/| /' conftest.$ac_ext >&5
16377
16378	eval "$as_ac_var=no"
16379fi
16380
16381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16382      conftest$ac_exeext conftest.$ac_ext
16383fi
16384ac_res=`eval echo '${'$as_ac_var'}'`
16385	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16386echo "${ECHO_T}$ac_res" >&6; }
16387if test `eval echo '${'$as_ac_var'}'` = yes; then
16388  cat >>confdefs.h <<_ACEOF
16389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16390_ACEOF
16391
16392fi
16393done
16394
16395
16396
16397
16398
16399
16400
16401for ac_func in strtoull __strtoull strtouq strtoll __strtoll strtoq
16402do
16403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16404{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16407  echo $ECHO_N "(cached) $ECHO_C" >&6
16408else
16409  cat >conftest.$ac_ext <<_ACEOF
16410/* confdefs.h.  */
16411_ACEOF
16412cat confdefs.h >>conftest.$ac_ext
16413cat >>conftest.$ac_ext <<_ACEOF
16414/* end confdefs.h.  */
16415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16416   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16417#define $ac_func innocuous_$ac_func
16418
16419/* System header to define __stub macros and hopefully few prototypes,
16420    which can conflict with char $ac_func (); below.
16421    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16422    <limits.h> exists even on freestanding compilers.  */
16423
16424#ifdef __STDC__
16425# include <limits.h>
16426#else
16427# include <assert.h>
16428#endif
16429
16430#undef $ac_func
16431
16432/* Override any GCC internal prototype to avoid an error.
16433   Use char because int might match the return type of a GCC
16434   builtin and then its argument prototype would still apply.  */
16435#ifdef __cplusplus
16436extern "C"
16437#endif
16438char $ac_func ();
16439/* The GNU C library defines this for functions which it implements
16440    to always fail with ENOSYS.  Some functions are actually named
16441    something starting with __ and the normal name is an alias.  */
16442#if defined __stub_$ac_func || defined __stub___$ac_func
16443choke me
16444#endif
16445
16446int
16447main ()
16448{
16449return $ac_func ();
16450  ;
16451  return 0;
16452}
16453_ACEOF
16454rm -f conftest.$ac_objext conftest$ac_exeext
16455if { (ac_try="$ac_link"
16456case "(($ac_try" in
16457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458  *) ac_try_echo=$ac_try;;
16459esac
16460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461  (eval "$ac_link") 2>conftest.er1
16462  ac_status=$?
16463  grep -v '^ *+' conftest.er1 >conftest.err
16464  rm -f conftest.er1
16465  cat conftest.err >&5
16466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467  (exit $ac_status); } && {
16468	 test -z "$ac_c_werror_flag" ||
16469	 test ! -s conftest.err
16470       } && test -s conftest$ac_exeext &&
16471       $as_test_x conftest$ac_exeext; then
16472  eval "$as_ac_var=yes"
16473else
16474  echo "$as_me: failed program was:" >&5
16475sed 's/^/| /' conftest.$ac_ext >&5
16476
16477	eval "$as_ac_var=no"
16478fi
16479
16480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16481      conftest$ac_exeext conftest.$ac_ext
16482fi
16483ac_res=`eval echo '${'$as_ac_var'}'`
16484	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16485echo "${ECHO_T}$ac_res" >&6; }
16486if test `eval echo '${'$as_ac_var'}'` = yes; then
16487  cat >>confdefs.h <<_ACEOF
16488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16489_ACEOF
16490
16491fi
16492done
16493
16494
16495# this test disabled as we don't actually need __VA_ARGS__ yet
16496cat >conftest.$ac_ext <<_ACEOF
16497/* confdefs.h.  */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
16501/* end confdefs.h.  */
16502
16503#define eprintf(...) fprintf(stderr, __VA_ARGS__)
16504eprintf("bla", "bar");
16505
16506_ACEOF
16507if { (ac_try="$ac_cpp conftest.$ac_ext"
16508case "(($ac_try" in
16509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510  *) ac_try_echo=$ac_try;;
16511esac
16512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16514  ac_status=$?
16515  grep -v '^ *+' conftest.er1 >conftest.err
16516  rm -f conftest.er1
16517  cat conftest.err >&5
16518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519  (exit $ac_status); } >/dev/null && {
16520	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16521	 test ! -s conftest.err
16522       }; then
16523
16524cat >>confdefs.h <<\_ACEOF
16525#define HAVE__VA_ARGS__MACRO 1
16526_ACEOF
16527
16528else
16529  echo "$as_me: failed program was:" >&5
16530sed 's/^/| /' conftest.$ac_ext >&5
16531
16532
16533fi
16534
16535rm -f conftest.err conftest.$ac_ext
16536
16537# Check prerequisites
16538
16539
16540
16541for ac_func in memset printf syslog
16542do
16543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16544{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16546if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16547  echo $ECHO_N "(cached) $ECHO_C" >&6
16548else
16549  cat >conftest.$ac_ext <<_ACEOF
16550/* confdefs.h.  */
16551_ACEOF
16552cat confdefs.h >>conftest.$ac_ext
16553cat >>conftest.$ac_ext <<_ACEOF
16554/* end confdefs.h.  */
16555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16556   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16557#define $ac_func innocuous_$ac_func
16558
16559/* System header to define __stub macros and hopefully few prototypes,
16560    which can conflict with char $ac_func (); below.
16561    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16562    <limits.h> exists even on freestanding compilers.  */
16563
16564#ifdef __STDC__
16565# include <limits.h>
16566#else
16567# include <assert.h>
16568#endif
16569
16570#undef $ac_func
16571
16572/* Override any GCC internal prototype to avoid an error.
16573   Use char because int might match the return type of a GCC
16574   builtin and then its argument prototype would still apply.  */
16575#ifdef __cplusplus
16576extern "C"
16577#endif
16578char $ac_func ();
16579/* The GNU C library defines this for functions which it implements
16580    to always fail with ENOSYS.  Some functions are actually named
16581    something starting with __ and the normal name is an alias.  */
16582#if defined __stub_$ac_func || defined __stub___$ac_func
16583choke me
16584#endif
16585
16586int
16587main ()
16588{
16589return $ac_func ();
16590  ;
16591  return 0;
16592}
16593_ACEOF
16594rm -f conftest.$ac_objext conftest$ac_exeext
16595if { (ac_try="$ac_link"
16596case "(($ac_try" in
16597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598  *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601  (eval "$ac_link") 2>conftest.er1
16602  ac_status=$?
16603  grep -v '^ *+' conftest.er1 >conftest.err
16604  rm -f conftest.er1
16605  cat conftest.err >&5
16606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607  (exit $ac_status); } && {
16608	 test -z "$ac_c_werror_flag" ||
16609	 test ! -s conftest.err
16610       } && test -s conftest$ac_exeext &&
16611       $as_test_x conftest$ac_exeext; then
16612  eval "$as_ac_var=yes"
16613else
16614  echo "$as_me: failed program was:" >&5
16615sed 's/^/| /' conftest.$ac_ext >&5
16616
16617	eval "$as_ac_var=no"
16618fi
16619
16620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16621      conftest$ac_exeext conftest.$ac_ext
16622fi
16623ac_res=`eval echo '${'$as_ac_var'}'`
16624	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16625echo "${ECHO_T}$ac_res" >&6; }
16626if test `eval echo '${'$as_ac_var'}'` = yes; then
16627  cat >>confdefs.h <<_ACEOF
16628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16629_ACEOF
16630
16631else
16632   { { echo "$as_me:$LINENO: error: Required function not found" >&5
16633echo "$as_me: error: Required function not found" >&2;}
16634   { (exit 1); exit 1; }; }
16635fi
16636done
16637
16638
16639{ echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
16640echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6; }
16641if test "${samba_cv_sig_atomic_t+set}" = set; then
16642  echo $ECHO_N "(cached) $ECHO_C" >&6
16643else
16644
16645    cat >conftest.$ac_ext <<_ACEOF
16646/* confdefs.h.  */
16647_ACEOF
16648cat confdefs.h >>conftest.$ac_ext
16649cat >>conftest.$ac_ext <<_ACEOF
16650/* end confdefs.h.  */
16651
16652#include <sys/types.h>
16653#if STDC_HEADERS
16654#include <stdlib.h>
16655#include <stddef.h>
16656#endif
16657#include <signal.h>
16658int
16659main ()
16660{
16661sig_atomic_t i = 0
16662  ;
16663  return 0;
16664}
16665_ACEOF
16666rm -f conftest.$ac_objext
16667if { (ac_try="$ac_compile"
16668case "(($ac_try" in
16669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670  *) ac_try_echo=$ac_try;;
16671esac
16672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673  (eval "$ac_compile") 2>conftest.er1
16674  ac_status=$?
16675  grep -v '^ *+' conftest.er1 >conftest.err
16676  rm -f conftest.er1
16677  cat conftest.err >&5
16678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679  (exit $ac_status); } && {
16680	 test -z "$ac_c_werror_flag" ||
16681	 test ! -s conftest.err
16682       } && test -s conftest.$ac_objext; then
16683  samba_cv_sig_atomic_t=yes
16684else
16685  echo "$as_me: failed program was:" >&5
16686sed 's/^/| /' conftest.$ac_ext >&5
16687
16688	samba_cv_sig_atomic_t=no
16689fi
16690
16691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692fi
16693{ echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
16694echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6; }
16695if test x"$samba_cv_sig_atomic_t" = x"yes"; then
16696
16697cat >>confdefs.h <<\_ACEOF
16698#define HAVE_SIG_ATOMIC_T_TYPE 1
16699_ACEOF
16700
16701fi
16702
16703
16704{ echo "$as_me:$LINENO: checking for O_DIRECT flag to open(2)" >&5
16705echo $ECHO_N "checking for O_DIRECT flag to open(2)... $ECHO_C" >&6; }
16706if test "${samba_cv_HAVE_OPEN_O_DIRECT+set}" = set; then
16707  echo $ECHO_N "(cached) $ECHO_C" >&6
16708else
16709
16710cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h.  */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h.  */
16716
16717#include <unistd.h>
16718#ifdef HAVE_FCNTL_H
16719#include <fcntl.h>
16720#endif
16721int
16722main ()
16723{
16724int fd = open("/dev/null", O_DIRECT);
16725  ;
16726  return 0;
16727}
16728_ACEOF
16729rm -f conftest.$ac_objext
16730if { (ac_try="$ac_compile"
16731case "(($ac_try" in
16732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733  *) ac_try_echo=$ac_try;;
16734esac
16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736  (eval "$ac_compile") 2>conftest.er1
16737  ac_status=$?
16738  grep -v '^ *+' conftest.er1 >conftest.err
16739  rm -f conftest.er1
16740  cat conftest.err >&5
16741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742  (exit $ac_status); } && {
16743	 test -z "$ac_c_werror_flag" ||
16744	 test ! -s conftest.err
16745       } && test -s conftest.$ac_objext; then
16746  samba_cv_HAVE_OPEN_O_DIRECT=yes
16747else
16748  echo "$as_me: failed program was:" >&5
16749sed 's/^/| /' conftest.$ac_ext >&5
16750
16751	samba_cv_HAVE_OPEN_O_DIRECT=no
16752fi
16753
16754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755fi
16756{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_OPEN_O_DIRECT" >&5
16757echo "${ECHO_T}$samba_cv_HAVE_OPEN_O_DIRECT" >&6; }
16758if test x"$samba_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
16759
16760cat >>confdefs.h <<\_ACEOF
16761#define HAVE_OPEN_O_DIRECT 1
16762_ACEOF
16763
16764fi
16765
16766
16767{ echo "$as_me:$LINENO: checking that the C compiler can precompile header files" >&5
16768echo $ECHO_N "checking that the C compiler can precompile header files... $ECHO_C" >&6; }
16769if test "${samba_cv_precompiled_headers+set}" = set; then
16770  echo $ECHO_N "(cached) $ECHO_C" >&6
16771else
16772
16773		touch conftest.h
16774	if ${CC-cc} conftest.h 2> /dev/null && test -f conftest.h.gch; then
16775		precompiled_headers=yes
16776	else
16777		precompiled_headers=no
16778	fi
16779fi
16780{ echo "$as_me:$LINENO: result: $samba_cv_precompiled_headers" >&5
16781echo "${ECHO_T}$samba_cv_precompiled_headers" >&6; }
16782
16783
16784
16785{ echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
16786echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6; }
16787if test "${samba_cv_volatile+set}" = set; then
16788  echo $ECHO_N "(cached) $ECHO_C" >&6
16789else
16790
16791	cat >conftest.$ac_ext <<_ACEOF
16792/* confdefs.h.  */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h.  */
16797#include <sys/types.h>
16798int
16799main ()
16800{
16801volatile int i = 0
16802  ;
16803  return 0;
16804}
16805_ACEOF
16806rm -f conftest.$ac_objext
16807if { (ac_try="$ac_compile"
16808case "(($ac_try" in
16809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810  *) ac_try_echo=$ac_try;;
16811esac
16812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813  (eval "$ac_compile") 2>conftest.er1
16814  ac_status=$?
16815  grep -v '^ *+' conftest.er1 >conftest.err
16816  rm -f conftest.er1
16817  cat conftest.err >&5
16818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819  (exit $ac_status); } && {
16820	 test -z "$ac_c_werror_flag" ||
16821	 test ! -s conftest.err
16822       } && test -s conftest.$ac_objext; then
16823  samba_cv_volatile=yes
16824else
16825  echo "$as_me: failed program was:" >&5
16826sed 's/^/| /' conftest.$ac_ext >&5
16827
16828	samba_cv_volatile=no
16829fi
16830
16831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832fi
16833{ echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
16834echo "${ECHO_T}$samba_cv_volatile" >&6; }
16835if test x"$samba_cv_volatile" = x"yes"; then
16836
16837cat >>confdefs.h <<\_ACEOF
16838#define HAVE_VOLATILE 1
16839_ACEOF
16840
16841fi
16842
16843# filesys
16844
16845
16846
16847
16848
16849ac_header_dirent=no
16850for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16851  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16852{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16853echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16855  echo $ECHO_N "(cached) $ECHO_C" >&6
16856else
16857  cat >conftest.$ac_ext <<_ACEOF
16858/* confdefs.h.  */
16859_ACEOF
16860cat confdefs.h >>conftest.$ac_ext
16861cat >>conftest.$ac_ext <<_ACEOF
16862/* end confdefs.h.  */
16863#include <sys/types.h>
16864#include <$ac_hdr>
16865
16866int
16867main ()
16868{
16869if ((DIR *) 0)
16870return 0;
16871  ;
16872  return 0;
16873}
16874_ACEOF
16875rm -f conftest.$ac_objext
16876if { (ac_try="$ac_compile"
16877case "(($ac_try" in
16878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879  *) ac_try_echo=$ac_try;;
16880esac
16881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882  (eval "$ac_compile") 2>conftest.er1
16883  ac_status=$?
16884  grep -v '^ *+' conftest.er1 >conftest.err
16885  rm -f conftest.er1
16886  cat conftest.err >&5
16887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888  (exit $ac_status); } && {
16889	 test -z "$ac_c_werror_flag" ||
16890	 test ! -s conftest.err
16891       } && test -s conftest.$ac_objext; then
16892  eval "$as_ac_Header=yes"
16893else
16894  echo "$as_me: failed program was:" >&5
16895sed 's/^/| /' conftest.$ac_ext >&5
16896
16897	eval "$as_ac_Header=no"
16898fi
16899
16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901fi
16902ac_res=`eval echo '${'$as_ac_Header'}'`
16903	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16904echo "${ECHO_T}$ac_res" >&6; }
16905if test `eval echo '${'$as_ac_Header'}'` = yes; then
16906  cat >>confdefs.h <<_ACEOF
16907#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16908_ACEOF
16909
16910ac_header_dirent=$ac_hdr; break
16911fi
16912
16913done
16914# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16915if test $ac_header_dirent = dirent.h; then
16916  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16917echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16918if test "${ac_cv_search_opendir+set}" = set; then
16919  echo $ECHO_N "(cached) $ECHO_C" >&6
16920else
16921  ac_func_search_save_LIBS=$LIBS
16922cat >conftest.$ac_ext <<_ACEOF
16923/* confdefs.h.  */
16924_ACEOF
16925cat confdefs.h >>conftest.$ac_ext
16926cat >>conftest.$ac_ext <<_ACEOF
16927/* end confdefs.h.  */
16928
16929/* Override any GCC internal prototype to avoid an error.
16930   Use char because int might match the return type of a GCC
16931   builtin and then its argument prototype would still apply.  */
16932#ifdef __cplusplus
16933extern "C"
16934#endif
16935char opendir ();
16936int
16937main ()
16938{
16939return opendir ();
16940  ;
16941  return 0;
16942}
16943_ACEOF
16944for ac_lib in '' dir; do
16945  if test -z "$ac_lib"; then
16946    ac_res="none required"
16947  else
16948    ac_res=-l$ac_lib
16949    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16950  fi
16951  rm -f conftest.$ac_objext conftest$ac_exeext
16952if { (ac_try="$ac_link"
16953case "(($ac_try" in
16954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955  *) ac_try_echo=$ac_try;;
16956esac
16957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958  (eval "$ac_link") 2>conftest.er1
16959  ac_status=$?
16960  grep -v '^ *+' conftest.er1 >conftest.err
16961  rm -f conftest.er1
16962  cat conftest.err >&5
16963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964  (exit $ac_status); } && {
16965	 test -z "$ac_c_werror_flag" ||
16966	 test ! -s conftest.err
16967       } && test -s conftest$ac_exeext &&
16968       $as_test_x conftest$ac_exeext; then
16969  ac_cv_search_opendir=$ac_res
16970else
16971  echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
16974
16975fi
16976
16977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16978      conftest$ac_exeext
16979  if test "${ac_cv_search_opendir+set}" = set; then
16980  break
16981fi
16982done
16983if test "${ac_cv_search_opendir+set}" = set; then
16984  :
16985else
16986  ac_cv_search_opendir=no
16987fi
16988rm conftest.$ac_ext
16989LIBS=$ac_func_search_save_LIBS
16990fi
16991{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16992echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16993ac_res=$ac_cv_search_opendir
16994if test "$ac_res" != no; then
16995  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16996
16997fi
16998
16999else
17000  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
17001echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
17002if test "${ac_cv_search_opendir+set}" = set; then
17003  echo $ECHO_N "(cached) $ECHO_C" >&6
17004else
17005  ac_func_search_save_LIBS=$LIBS
17006cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h.  */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h.  */
17012
17013/* Override any GCC internal prototype to avoid an error.
17014   Use char because int might match the return type of a GCC
17015   builtin and then its argument prototype would still apply.  */
17016#ifdef __cplusplus
17017extern "C"
17018#endif
17019char opendir ();
17020int
17021main ()
17022{
17023return opendir ();
17024  ;
17025  return 0;
17026}
17027_ACEOF
17028for ac_lib in '' x; do
17029  if test -z "$ac_lib"; then
17030    ac_res="none required"
17031  else
17032    ac_res=-l$ac_lib
17033    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17034  fi
17035  rm -f conftest.$ac_objext conftest$ac_exeext
17036if { (ac_try="$ac_link"
17037case "(($ac_try" in
17038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039  *) ac_try_echo=$ac_try;;
17040esac
17041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042  (eval "$ac_link") 2>conftest.er1
17043  ac_status=$?
17044  grep -v '^ *+' conftest.er1 >conftest.err
17045  rm -f conftest.er1
17046  cat conftest.err >&5
17047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048  (exit $ac_status); } && {
17049	 test -z "$ac_c_werror_flag" ||
17050	 test ! -s conftest.err
17051       } && test -s conftest$ac_exeext &&
17052       $as_test_x conftest$ac_exeext; then
17053  ac_cv_search_opendir=$ac_res
17054else
17055  echo "$as_me: failed program was:" >&5
17056sed 's/^/| /' conftest.$ac_ext >&5
17057
17058
17059fi
17060
17061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17062      conftest$ac_exeext
17063  if test "${ac_cv_search_opendir+set}" = set; then
17064  break
17065fi
17066done
17067if test "${ac_cv_search_opendir+set}" = set; then
17068  :
17069else
17070  ac_cv_search_opendir=no
17071fi
17072rm conftest.$ac_ext
17073LIBS=$ac_func_search_save_LIBS
17074fi
17075{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17076echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
17077ac_res=$ac_cv_search_opendir
17078if test "$ac_res" != no; then
17079  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17080
17081fi
17082
17083fi
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093for ac_header in fcntl.h sys/fcntl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h
17094do
17095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17097  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17100  echo $ECHO_N "(cached) $ECHO_C" >&6
17101fi
17102ac_res=`eval echo '${'$as_ac_Header'}'`
17103	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17104echo "${ECHO_T}$ac_res" >&6; }
17105else
17106  # Is the header compilable?
17107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17109cat >conftest.$ac_ext <<_ACEOF
17110/* confdefs.h.  */
17111_ACEOF
17112cat confdefs.h >>conftest.$ac_ext
17113cat >>conftest.$ac_ext <<_ACEOF
17114/* end confdefs.h.  */
17115$ac_includes_default
17116#include <$ac_header>
17117_ACEOF
17118rm -f conftest.$ac_objext
17119if { (ac_try="$ac_compile"
17120case "(($ac_try" in
17121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122  *) ac_try_echo=$ac_try;;
17123esac
17124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125  (eval "$ac_compile") 2>conftest.er1
17126  ac_status=$?
17127  grep -v '^ *+' conftest.er1 >conftest.err
17128  rm -f conftest.er1
17129  cat conftest.err >&5
17130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131  (exit $ac_status); } && {
17132	 test -z "$ac_c_werror_flag" ||
17133	 test ! -s conftest.err
17134       } && test -s conftest.$ac_objext; then
17135  ac_header_compiler=yes
17136else
17137  echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
17140	ac_header_compiler=no
17141fi
17142
17143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17145echo "${ECHO_T}$ac_header_compiler" >&6; }
17146
17147# Is the header present?
17148{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17150cat >conftest.$ac_ext <<_ACEOF
17151/* confdefs.h.  */
17152_ACEOF
17153cat confdefs.h >>conftest.$ac_ext
17154cat >>conftest.$ac_ext <<_ACEOF
17155/* end confdefs.h.  */
17156#include <$ac_header>
17157_ACEOF
17158if { (ac_try="$ac_cpp conftest.$ac_ext"
17159case "(($ac_try" in
17160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161  *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17165  ac_status=$?
17166  grep -v '^ *+' conftest.er1 >conftest.err
17167  rm -f conftest.er1
17168  cat conftest.err >&5
17169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170  (exit $ac_status); } >/dev/null && {
17171	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17172	 test ! -s conftest.err
17173       }; then
17174  ac_header_preproc=yes
17175else
17176  echo "$as_me: failed program was:" >&5
17177sed 's/^/| /' conftest.$ac_ext >&5
17178
17179  ac_header_preproc=no
17180fi
17181
17182rm -f conftest.err conftest.$ac_ext
17183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17184echo "${ECHO_T}$ac_header_preproc" >&6; }
17185
17186# So?  What about this header?
17187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17188  yes:no: )
17189    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17191    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17193    ac_header_preproc=yes
17194    ;;
17195  no:yes:* )
17196    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17198    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17199echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17200    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17202    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17203echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17204    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17206    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17208
17209    ;;
17210esac
17211{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17214  echo $ECHO_N "(cached) $ECHO_C" >&6
17215else
17216  eval "$as_ac_Header=\$ac_header_preproc"
17217fi
17218ac_res=`eval echo '${'$as_ac_Header'}'`
17219	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17220echo "${ECHO_T}$ac_res" >&6; }
17221
17222fi
17223if test `eval echo '${'$as_ac_Header'}'` = yes; then
17224  cat >>confdefs.h <<_ACEOF
17225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17226_ACEOF
17227
17228fi
17229
17230done
17231
17232
17233
17234for ac_header in sys/acl.h acl/libacl.h
17235do
17236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17238  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17241  echo $ECHO_N "(cached) $ECHO_C" >&6
17242fi
17243ac_res=`eval echo '${'$as_ac_Header'}'`
17244	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17245echo "${ECHO_T}$ac_res" >&6; }
17246else
17247  # Is the header compilable?
17248{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17250cat >conftest.$ac_ext <<_ACEOF
17251/* confdefs.h.  */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h.  */
17256$ac_includes_default
17257#include <$ac_header>
17258_ACEOF
17259rm -f conftest.$ac_objext
17260if { (ac_try="$ac_compile"
17261case "(($ac_try" in
17262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263  *) ac_try_echo=$ac_try;;
17264esac
17265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266  (eval "$ac_compile") 2>conftest.er1
17267  ac_status=$?
17268  grep -v '^ *+' conftest.er1 >conftest.err
17269  rm -f conftest.er1
17270  cat conftest.err >&5
17271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272  (exit $ac_status); } && {
17273	 test -z "$ac_c_werror_flag" ||
17274	 test ! -s conftest.err
17275       } && test -s conftest.$ac_objext; then
17276  ac_header_compiler=yes
17277else
17278  echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281	ac_header_compiler=no
17282fi
17283
17284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17286echo "${ECHO_T}$ac_header_compiler" >&6; }
17287
17288# Is the header present?
17289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17291cat >conftest.$ac_ext <<_ACEOF
17292/* confdefs.h.  */
17293_ACEOF
17294cat confdefs.h >>conftest.$ac_ext
17295cat >>conftest.$ac_ext <<_ACEOF
17296/* end confdefs.h.  */
17297#include <$ac_header>
17298_ACEOF
17299if { (ac_try="$ac_cpp conftest.$ac_ext"
17300case "(($ac_try" in
17301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302  *) ac_try_echo=$ac_try;;
17303esac
17304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17306  ac_status=$?
17307  grep -v '^ *+' conftest.er1 >conftest.err
17308  rm -f conftest.er1
17309  cat conftest.err >&5
17310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311  (exit $ac_status); } >/dev/null && {
17312	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17313	 test ! -s conftest.err
17314       }; then
17315  ac_header_preproc=yes
17316else
17317  echo "$as_me: failed program was:" >&5
17318sed 's/^/| /' conftest.$ac_ext >&5
17319
17320  ac_header_preproc=no
17321fi
17322
17323rm -f conftest.err conftest.$ac_ext
17324{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17325echo "${ECHO_T}$ac_header_preproc" >&6; }
17326
17327# So?  What about this header?
17328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17329  yes:no: )
17330    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17332    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17334    ac_header_preproc=yes
17335    ;;
17336  no:yes:* )
17337    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17339    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17340echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17341    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17343    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17344echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17347    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17349
17350    ;;
17351esac
17352{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17355  echo $ECHO_N "(cached) $ECHO_C" >&6
17356else
17357  eval "$as_ac_Header=\$ac_header_preproc"
17358fi
17359ac_res=`eval echo '${'$as_ac_Header'}'`
17360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17361echo "${ECHO_T}$ac_res" >&6; }
17362
17363fi
17364if test `eval echo '${'$as_ac_Header'}'` = yes; then
17365  cat >>confdefs.h <<_ACEOF
17366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17367_ACEOF
17368
17369fi
17370
17371done
17372
17373
17374# select
17375
17376for ac_header in sys/select.h
17377do
17378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17380  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17383  echo $ECHO_N "(cached) $ECHO_C" >&6
17384fi
17385ac_res=`eval echo '${'$as_ac_Header'}'`
17386	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17387echo "${ECHO_T}$ac_res" >&6; }
17388else
17389  # Is the header compilable?
17390{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17392cat >conftest.$ac_ext <<_ACEOF
17393/* confdefs.h.  */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h.  */
17398$ac_includes_default
17399#include <$ac_header>
17400_ACEOF
17401rm -f conftest.$ac_objext
17402if { (ac_try="$ac_compile"
17403case "(($ac_try" in
17404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405  *) ac_try_echo=$ac_try;;
17406esac
17407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408  (eval "$ac_compile") 2>conftest.er1
17409  ac_status=$?
17410  grep -v '^ *+' conftest.er1 >conftest.err
17411  rm -f conftest.er1
17412  cat conftest.err >&5
17413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414  (exit $ac_status); } && {
17415	 test -z "$ac_c_werror_flag" ||
17416	 test ! -s conftest.err
17417       } && test -s conftest.$ac_objext; then
17418  ac_header_compiler=yes
17419else
17420  echo "$as_me: failed program was:" >&5
17421sed 's/^/| /' conftest.$ac_ext >&5
17422
17423	ac_header_compiler=no
17424fi
17425
17426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17428echo "${ECHO_T}$ac_header_compiler" >&6; }
17429
17430# Is the header present?
17431{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17432echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17433cat >conftest.$ac_ext <<_ACEOF
17434/* confdefs.h.  */
17435_ACEOF
17436cat confdefs.h >>conftest.$ac_ext
17437cat >>conftest.$ac_ext <<_ACEOF
17438/* end confdefs.h.  */
17439#include <$ac_header>
17440_ACEOF
17441if { (ac_try="$ac_cpp conftest.$ac_ext"
17442case "(($ac_try" in
17443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444  *) ac_try_echo=$ac_try;;
17445esac
17446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17448  ac_status=$?
17449  grep -v '^ *+' conftest.er1 >conftest.err
17450  rm -f conftest.er1
17451  cat conftest.err >&5
17452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453  (exit $ac_status); } >/dev/null && {
17454	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17455	 test ! -s conftest.err
17456       }; then
17457  ac_header_preproc=yes
17458else
17459  echo "$as_me: failed program was:" >&5
17460sed 's/^/| /' conftest.$ac_ext >&5
17461
17462  ac_header_preproc=no
17463fi
17464
17465rm -f conftest.err conftest.$ac_ext
17466{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17467echo "${ECHO_T}$ac_header_preproc" >&6; }
17468
17469# So?  What about this header?
17470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17471  yes:no: )
17472    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17474    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17476    ac_header_preproc=yes
17477    ;;
17478  no:yes:* )
17479    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17481    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17482echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17483    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17485    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17486echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17487    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17489    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17491
17492    ;;
17493esac
17494{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17497  echo $ECHO_N "(cached) $ECHO_C" >&6
17498else
17499  eval "$as_ac_Header=\$ac_header_preproc"
17500fi
17501ac_res=`eval echo '${'$as_ac_Header'}'`
17502	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17503echo "${ECHO_T}$ac_res" >&6; }
17504
17505fi
17506if test `eval echo '${'$as_ac_Header'}'` = yes; then
17507  cat >>confdefs.h <<_ACEOF
17508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17509_ACEOF
17510
17511fi
17512
17513done
17514
17515
17516# time
17517
17518
17519for ac_header in sys/time.h utime.h
17520do
17521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17523  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17526  echo $ECHO_N "(cached) $ECHO_C" >&6
17527fi
17528ac_res=`eval echo '${'$as_ac_Header'}'`
17529	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17530echo "${ECHO_T}$ac_res" >&6; }
17531else
17532  # Is the header compilable?
17533{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17535cat >conftest.$ac_ext <<_ACEOF
17536/* confdefs.h.  */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
17540/* end confdefs.h.  */
17541$ac_includes_default
17542#include <$ac_header>
17543_ACEOF
17544rm -f conftest.$ac_objext
17545if { (ac_try="$ac_compile"
17546case "(($ac_try" in
17547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548  *) ac_try_echo=$ac_try;;
17549esac
17550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551  (eval "$ac_compile") 2>conftest.er1
17552  ac_status=$?
17553  grep -v '^ *+' conftest.er1 >conftest.err
17554  rm -f conftest.er1
17555  cat conftest.err >&5
17556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557  (exit $ac_status); } && {
17558	 test -z "$ac_c_werror_flag" ||
17559	 test ! -s conftest.err
17560       } && test -s conftest.$ac_objext; then
17561  ac_header_compiler=yes
17562else
17563  echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
17566	ac_header_compiler=no
17567fi
17568
17569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17571echo "${ECHO_T}$ac_header_compiler" >&6; }
17572
17573# Is the header present?
17574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17576cat >conftest.$ac_ext <<_ACEOF
17577/* confdefs.h.  */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h.  */
17582#include <$ac_header>
17583_ACEOF
17584if { (ac_try="$ac_cpp conftest.$ac_ext"
17585case "(($ac_try" in
17586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587  *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17591  ac_status=$?
17592  grep -v '^ *+' conftest.er1 >conftest.err
17593  rm -f conftest.er1
17594  cat conftest.err >&5
17595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596  (exit $ac_status); } >/dev/null && {
17597	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17598	 test ! -s conftest.err
17599       }; then
17600  ac_header_preproc=yes
17601else
17602  echo "$as_me: failed program was:" >&5
17603sed 's/^/| /' conftest.$ac_ext >&5
17604
17605  ac_header_preproc=no
17606fi
17607
17608rm -f conftest.err conftest.$ac_ext
17609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17610echo "${ECHO_T}$ac_header_preproc" >&6; }
17611
17612# So?  What about this header?
17613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17614  yes:no: )
17615    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17617    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17619    ac_header_preproc=yes
17620    ;;
17621  no:yes:* )
17622    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17624    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17625echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17626    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17628    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17629echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17630    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17632    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17634
17635    ;;
17636esac
17637{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17640  echo $ECHO_N "(cached) $ECHO_C" >&6
17641else
17642  eval "$as_ac_Header=\$ac_header_preproc"
17643fi
17644ac_res=`eval echo '${'$as_ac_Header'}'`
17645	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17646echo "${ECHO_T}$ac_res" >&6; }
17647
17648fi
17649if test `eval echo '${'$as_ac_Header'}'` = yes; then
17650  cat >>confdefs.h <<_ACEOF
17651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17652_ACEOF
17653
17654fi
17655
17656done
17657
17658{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17659echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17660if test "${ac_cv_header_time+set}" = set; then
17661  echo $ECHO_N "(cached) $ECHO_C" >&6
17662else
17663  cat >conftest.$ac_ext <<_ACEOF
17664/* confdefs.h.  */
17665_ACEOF
17666cat confdefs.h >>conftest.$ac_ext
17667cat >>conftest.$ac_ext <<_ACEOF
17668/* end confdefs.h.  */
17669#include <sys/types.h>
17670#include <sys/time.h>
17671#include <time.h>
17672
17673int
17674main ()
17675{
17676if ((struct tm *) 0)
17677return 0;
17678  ;
17679  return 0;
17680}
17681_ACEOF
17682rm -f conftest.$ac_objext
17683if { (ac_try="$ac_compile"
17684case "(($ac_try" in
17685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686  *) ac_try_echo=$ac_try;;
17687esac
17688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689  (eval "$ac_compile") 2>conftest.er1
17690  ac_status=$?
17691  grep -v '^ *+' conftest.er1 >conftest.err
17692  rm -f conftest.er1
17693  cat conftest.err >&5
17694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695  (exit $ac_status); } && {
17696	 test -z "$ac_c_werror_flag" ||
17697	 test ! -s conftest.err
17698       } && test -s conftest.$ac_objext; then
17699  ac_cv_header_time=yes
17700else
17701  echo "$as_me: failed program was:" >&5
17702sed 's/^/| /' conftest.$ac_ext >&5
17703
17704	ac_cv_header_time=no
17705fi
17706
17707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17708fi
17709{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17710echo "${ECHO_T}$ac_cv_header_time" >&6; }
17711if test $ac_cv_header_time = yes; then
17712
17713cat >>confdefs.h <<\_ACEOF
17714#define TIME_WITH_SYS_TIME 1
17715_ACEOF
17716
17717fi
17718
17719
17720# wait
17721{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
17722echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
17723if test "${ac_cv_header_sys_wait_h+set}" = set; then
17724  echo $ECHO_N "(cached) $ECHO_C" >&6
17725else
17726  cat >conftest.$ac_ext <<_ACEOF
17727/* confdefs.h.  */
17728_ACEOF
17729cat confdefs.h >>conftest.$ac_ext
17730cat >>conftest.$ac_ext <<_ACEOF
17731/* end confdefs.h.  */
17732#include <sys/types.h>
17733#include <sys/wait.h>
17734#ifndef WEXITSTATUS
17735# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17736#endif
17737#ifndef WIFEXITED
17738# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17739#endif
17740
17741int
17742main ()
17743{
17744  int s;
17745  wait (&s);
17746  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17747  ;
17748  return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext
17752if { (ac_try="$ac_compile"
17753case "(($ac_try" in
17754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755  *) ac_try_echo=$ac_try;;
17756esac
17757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758  (eval "$ac_compile") 2>conftest.er1
17759  ac_status=$?
17760  grep -v '^ *+' conftest.er1 >conftest.err
17761  rm -f conftest.er1
17762  cat conftest.err >&5
17763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764  (exit $ac_status); } && {
17765	 test -z "$ac_c_werror_flag" ||
17766	 test ! -s conftest.err
17767       } && test -s conftest.$ac_objext; then
17768  ac_cv_header_sys_wait_h=yes
17769else
17770  echo "$as_me: failed program was:" >&5
17771sed 's/^/| /' conftest.$ac_ext >&5
17772
17773	ac_cv_header_sys_wait_h=no
17774fi
17775
17776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777fi
17778{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
17779echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
17780if test $ac_cv_header_sys_wait_h = yes; then
17781
17782cat >>confdefs.h <<\_ACEOF
17783#define HAVE_SYS_WAIT_H 1
17784_ACEOF
17785
17786fi
17787
17788
17789# capability
17790
17791for ac_header in sys/capability.h
17792do
17793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17795  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17798  echo $ECHO_N "(cached) $ECHO_C" >&6
17799fi
17800ac_res=`eval echo '${'$as_ac_Header'}'`
17801	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17802echo "${ECHO_T}$ac_res" >&6; }
17803else
17804  # Is the header compilable?
17805{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17807cat >conftest.$ac_ext <<_ACEOF
17808/* confdefs.h.  */
17809_ACEOF
17810cat confdefs.h >>conftest.$ac_ext
17811cat >>conftest.$ac_ext <<_ACEOF
17812/* end confdefs.h.  */
17813$ac_includes_default
17814#include <$ac_header>
17815_ACEOF
17816rm -f conftest.$ac_objext
17817if { (ac_try="$ac_compile"
17818case "(($ac_try" in
17819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820  *) ac_try_echo=$ac_try;;
17821esac
17822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823  (eval "$ac_compile") 2>conftest.er1
17824  ac_status=$?
17825  grep -v '^ *+' conftest.er1 >conftest.err
17826  rm -f conftest.er1
17827  cat conftest.err >&5
17828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829  (exit $ac_status); } && {
17830	 test -z "$ac_c_werror_flag" ||
17831	 test ! -s conftest.err
17832       } && test -s conftest.$ac_objext; then
17833  ac_header_compiler=yes
17834else
17835  echo "$as_me: failed program was:" >&5
17836sed 's/^/| /' conftest.$ac_ext >&5
17837
17838	ac_header_compiler=no
17839fi
17840
17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17843echo "${ECHO_T}$ac_header_compiler" >&6; }
17844
17845# Is the header present?
17846{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17848cat >conftest.$ac_ext <<_ACEOF
17849/* confdefs.h.  */
17850_ACEOF
17851cat confdefs.h >>conftest.$ac_ext
17852cat >>conftest.$ac_ext <<_ACEOF
17853/* end confdefs.h.  */
17854#include <$ac_header>
17855_ACEOF
17856if { (ac_try="$ac_cpp conftest.$ac_ext"
17857case "(($ac_try" in
17858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859  *) ac_try_echo=$ac_try;;
17860esac
17861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17863  ac_status=$?
17864  grep -v '^ *+' conftest.er1 >conftest.err
17865  rm -f conftest.er1
17866  cat conftest.err >&5
17867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868  (exit $ac_status); } >/dev/null && {
17869	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17870	 test ! -s conftest.err
17871       }; then
17872  ac_header_preproc=yes
17873else
17874  echo "$as_me: failed program was:" >&5
17875sed 's/^/| /' conftest.$ac_ext >&5
17876
17877  ac_header_preproc=no
17878fi
17879
17880rm -f conftest.err conftest.$ac_ext
17881{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17882echo "${ECHO_T}$ac_header_preproc" >&6; }
17883
17884# So?  What about this header?
17885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17886  yes:no: )
17887    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17889    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17891    ac_header_preproc=yes
17892    ;;
17893  no:yes:* )
17894    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17896    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17897echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17898    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17900    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17901echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17904    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17906
17907    ;;
17908esac
17909{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17912  echo $ECHO_N "(cached) $ECHO_C" >&6
17913else
17914  eval "$as_ac_Header=\$ac_header_preproc"
17915fi
17916ac_res=`eval echo '${'$as_ac_Header'}'`
17917	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17918echo "${ECHO_T}$ac_res" >&6; }
17919
17920fi
17921if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922  cat >>confdefs.h <<_ACEOF
17923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17924_ACEOF
17925
17926fi
17927
17928done
17929
17930
17931# passwd
17932
17933
17934
17935
17936
17937
17938
17939for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
17940do
17941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17943  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17946  echo $ECHO_N "(cached) $ECHO_C" >&6
17947fi
17948ac_res=`eval echo '${'$as_ac_Header'}'`
17949	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17950echo "${ECHO_T}$ac_res" >&6; }
17951else
17952  # Is the header compilable?
17953{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17955cat >conftest.$ac_ext <<_ACEOF
17956/* confdefs.h.  */
17957_ACEOF
17958cat confdefs.h >>conftest.$ac_ext
17959cat >>conftest.$ac_ext <<_ACEOF
17960/* end confdefs.h.  */
17961$ac_includes_default
17962#include <$ac_header>
17963_ACEOF
17964rm -f conftest.$ac_objext
17965if { (ac_try="$ac_compile"
17966case "(($ac_try" in
17967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968  *) ac_try_echo=$ac_try;;
17969esac
17970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971  (eval "$ac_compile") 2>conftest.er1
17972  ac_status=$?
17973  grep -v '^ *+' conftest.er1 >conftest.err
17974  rm -f conftest.er1
17975  cat conftest.err >&5
17976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977  (exit $ac_status); } && {
17978	 test -z "$ac_c_werror_flag" ||
17979	 test ! -s conftest.err
17980       } && test -s conftest.$ac_objext; then
17981  ac_header_compiler=yes
17982else
17983  echo "$as_me: failed program was:" >&5
17984sed 's/^/| /' conftest.$ac_ext >&5
17985
17986	ac_header_compiler=no
17987fi
17988
17989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17991echo "${ECHO_T}$ac_header_compiler" >&6; }
17992
17993# Is the header present?
17994{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17996cat >conftest.$ac_ext <<_ACEOF
17997/* confdefs.h.  */
17998_ACEOF
17999cat confdefs.h >>conftest.$ac_ext
18000cat >>conftest.$ac_ext <<_ACEOF
18001/* end confdefs.h.  */
18002#include <$ac_header>
18003_ACEOF
18004if { (ac_try="$ac_cpp conftest.$ac_ext"
18005case "(($ac_try" in
18006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007  *) ac_try_echo=$ac_try;;
18008esac
18009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18011  ac_status=$?
18012  grep -v '^ *+' conftest.er1 >conftest.err
18013  rm -f conftest.er1
18014  cat conftest.err >&5
18015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016  (exit $ac_status); } >/dev/null && {
18017	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18018	 test ! -s conftest.err
18019       }; then
18020  ac_header_preproc=yes
18021else
18022  echo "$as_me: failed program was:" >&5
18023sed 's/^/| /' conftest.$ac_ext >&5
18024
18025  ac_header_preproc=no
18026fi
18027
18028rm -f conftest.err conftest.$ac_ext
18029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18030echo "${ECHO_T}$ac_header_preproc" >&6; }
18031
18032# So?  What about this header?
18033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18034  yes:no: )
18035    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18037    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18039    ac_header_preproc=yes
18040    ;;
18041  no:yes:* )
18042    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18044    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18045echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18046    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18048    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18049echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18050    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18052    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18054
18055    ;;
18056esac
18057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18060  echo $ECHO_N "(cached) $ECHO_C" >&6
18061else
18062  eval "$as_ac_Header=\$ac_header_preproc"
18063fi
18064ac_res=`eval echo '${'$as_ac_Header'}'`
18065	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18066echo "${ECHO_T}$ac_res" >&6; }
18067
18068fi
18069if test `eval echo '${'$as_ac_Header'}'` = yes; then
18070  cat >>confdefs.h <<_ACEOF
18071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18072_ACEOF
18073
18074fi
18075
18076done
18077
18078
18079# locale
18080
18081
18082for ac_header in ctype.h locale.h
18083do
18084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18086  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18089  echo $ECHO_N "(cached) $ECHO_C" >&6
18090fi
18091ac_res=`eval echo '${'$as_ac_Header'}'`
18092	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18093echo "${ECHO_T}$ac_res" >&6; }
18094else
18095  # Is the header compilable?
18096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18098cat >conftest.$ac_ext <<_ACEOF
18099/* confdefs.h.  */
18100_ACEOF
18101cat confdefs.h >>conftest.$ac_ext
18102cat >>conftest.$ac_ext <<_ACEOF
18103/* end confdefs.h.  */
18104$ac_includes_default
18105#include <$ac_header>
18106_ACEOF
18107rm -f conftest.$ac_objext
18108if { (ac_try="$ac_compile"
18109case "(($ac_try" in
18110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111  *) ac_try_echo=$ac_try;;
18112esac
18113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114  (eval "$ac_compile") 2>conftest.er1
18115  ac_status=$?
18116  grep -v '^ *+' conftest.er1 >conftest.err
18117  rm -f conftest.er1
18118  cat conftest.err >&5
18119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120  (exit $ac_status); } && {
18121	 test -z "$ac_c_werror_flag" ||
18122	 test ! -s conftest.err
18123       } && test -s conftest.$ac_objext; then
18124  ac_header_compiler=yes
18125else
18126  echo "$as_me: failed program was:" >&5
18127sed 's/^/| /' conftest.$ac_ext >&5
18128
18129	ac_header_compiler=no
18130fi
18131
18132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18134echo "${ECHO_T}$ac_header_compiler" >&6; }
18135
18136# Is the header present?
18137{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18139cat >conftest.$ac_ext <<_ACEOF
18140/* confdefs.h.  */
18141_ACEOF
18142cat confdefs.h >>conftest.$ac_ext
18143cat >>conftest.$ac_ext <<_ACEOF
18144/* end confdefs.h.  */
18145#include <$ac_header>
18146_ACEOF
18147if { (ac_try="$ac_cpp conftest.$ac_ext"
18148case "(($ac_try" in
18149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150  *) ac_try_echo=$ac_try;;
18151esac
18152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18154  ac_status=$?
18155  grep -v '^ *+' conftest.er1 >conftest.err
18156  rm -f conftest.er1
18157  cat conftest.err >&5
18158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159  (exit $ac_status); } >/dev/null && {
18160	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18161	 test ! -s conftest.err
18162       }; then
18163  ac_header_preproc=yes
18164else
18165  echo "$as_me: failed program was:" >&5
18166sed 's/^/| /' conftest.$ac_ext >&5
18167
18168  ac_header_preproc=no
18169fi
18170
18171rm -f conftest.err conftest.$ac_ext
18172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18173echo "${ECHO_T}$ac_header_preproc" >&6; }
18174
18175# So?  What about this header?
18176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18177  yes:no: )
18178    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18180    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18182    ac_header_preproc=yes
18183    ;;
18184  no:yes:* )
18185    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18187    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18188echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18189    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18191    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18192echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18193    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18195    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18197
18198    ;;
18199esac
18200{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18203  echo $ECHO_N "(cached) $ECHO_C" >&6
18204else
18205  eval "$as_ac_Header=\$ac_header_preproc"
18206fi
18207ac_res=`eval echo '${'$as_ac_Header'}'`
18208	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18209echo "${ECHO_T}$ac_res" >&6; }
18210
18211fi
18212if test `eval echo '${'$as_ac_Header'}'` = yes; then
18213  cat >>confdefs.h <<_ACEOF
18214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18215_ACEOF
18216
18217fi
18218
18219done
18220
18221
18222# glob
18223
18224for ac_header in fnmatch.h
18225do
18226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18228  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18231  echo $ECHO_N "(cached) $ECHO_C" >&6
18232fi
18233ac_res=`eval echo '${'$as_ac_Header'}'`
18234	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18235echo "${ECHO_T}$ac_res" >&6; }
18236else
18237  # Is the header compilable?
18238{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18240cat >conftest.$ac_ext <<_ACEOF
18241/* confdefs.h.  */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h.  */
18246$ac_includes_default
18247#include <$ac_header>
18248_ACEOF
18249rm -f conftest.$ac_objext
18250if { (ac_try="$ac_compile"
18251case "(($ac_try" in
18252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253  *) ac_try_echo=$ac_try;;
18254esac
18255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256  (eval "$ac_compile") 2>conftest.er1
18257  ac_status=$?
18258  grep -v '^ *+' conftest.er1 >conftest.err
18259  rm -f conftest.er1
18260  cat conftest.err >&5
18261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262  (exit $ac_status); } && {
18263	 test -z "$ac_c_werror_flag" ||
18264	 test ! -s conftest.err
18265       } && test -s conftest.$ac_objext; then
18266  ac_header_compiler=yes
18267else
18268  echo "$as_me: failed program was:" >&5
18269sed 's/^/| /' conftest.$ac_ext >&5
18270
18271	ac_header_compiler=no
18272fi
18273
18274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18275{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18276echo "${ECHO_T}$ac_header_compiler" >&6; }
18277
18278# Is the header present?
18279{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18280echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18281cat >conftest.$ac_ext <<_ACEOF
18282/* confdefs.h.  */
18283_ACEOF
18284cat confdefs.h >>conftest.$ac_ext
18285cat >>conftest.$ac_ext <<_ACEOF
18286/* end confdefs.h.  */
18287#include <$ac_header>
18288_ACEOF
18289if { (ac_try="$ac_cpp conftest.$ac_ext"
18290case "(($ac_try" in
18291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292  *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18296  ac_status=$?
18297  grep -v '^ *+' conftest.er1 >conftest.err
18298  rm -f conftest.er1
18299  cat conftest.err >&5
18300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301  (exit $ac_status); } >/dev/null && {
18302	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18303	 test ! -s conftest.err
18304       }; then
18305  ac_header_preproc=yes
18306else
18307  echo "$as_me: failed program was:" >&5
18308sed 's/^/| /' conftest.$ac_ext >&5
18309
18310  ac_header_preproc=no
18311fi
18312
18313rm -f conftest.err conftest.$ac_ext
18314{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18315echo "${ECHO_T}$ac_header_preproc" >&6; }
18316
18317# So?  What about this header?
18318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18319  yes:no: )
18320    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18321echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18322    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18323echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18324    ac_header_preproc=yes
18325    ;;
18326  no:yes:* )
18327    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18328echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18329    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18330echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18331    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18332echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18333    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18334echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18335    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18336echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18337    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18338echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18339
18340    ;;
18341esac
18342{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18345  echo $ECHO_N "(cached) $ECHO_C" >&6
18346else
18347  eval "$as_ac_Header=\$ac_header_preproc"
18348fi
18349ac_res=`eval echo '${'$as_ac_Header'}'`
18350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18351echo "${ECHO_T}$ac_res" >&6; }
18352
18353fi
18354if test `eval echo '${'$as_ac_Header'}'` = yes; then
18355  cat >>confdefs.h <<_ACEOF
18356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18357_ACEOF
18358
18359fi
18360
18361done
18362
18363
18364# shmem
18365
18366
18367
18368for ac_header in sys/ipc.h sys/mman.h sys/shm.h
18369do
18370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18372  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18375  echo $ECHO_N "(cached) $ECHO_C" >&6
18376fi
18377ac_res=`eval echo '${'$as_ac_Header'}'`
18378	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18379echo "${ECHO_T}$ac_res" >&6; }
18380else
18381  # Is the header compilable?
18382{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18384cat >conftest.$ac_ext <<_ACEOF
18385/* confdefs.h.  */
18386_ACEOF
18387cat confdefs.h >>conftest.$ac_ext
18388cat >>conftest.$ac_ext <<_ACEOF
18389/* end confdefs.h.  */
18390$ac_includes_default
18391#include <$ac_header>
18392_ACEOF
18393rm -f conftest.$ac_objext
18394if { (ac_try="$ac_compile"
18395case "(($ac_try" in
18396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397  *) ac_try_echo=$ac_try;;
18398esac
18399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400  (eval "$ac_compile") 2>conftest.er1
18401  ac_status=$?
18402  grep -v '^ *+' conftest.er1 >conftest.err
18403  rm -f conftest.er1
18404  cat conftest.err >&5
18405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406  (exit $ac_status); } && {
18407	 test -z "$ac_c_werror_flag" ||
18408	 test ! -s conftest.err
18409       } && test -s conftest.$ac_objext; then
18410  ac_header_compiler=yes
18411else
18412  echo "$as_me: failed program was:" >&5
18413sed 's/^/| /' conftest.$ac_ext >&5
18414
18415	ac_header_compiler=no
18416fi
18417
18418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18420echo "${ECHO_T}$ac_header_compiler" >&6; }
18421
18422# Is the header present?
18423{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18425cat >conftest.$ac_ext <<_ACEOF
18426/* confdefs.h.  */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
18430/* end confdefs.h.  */
18431#include <$ac_header>
18432_ACEOF
18433if { (ac_try="$ac_cpp conftest.$ac_ext"
18434case "(($ac_try" in
18435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436  *) ac_try_echo=$ac_try;;
18437esac
18438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18440  ac_status=$?
18441  grep -v '^ *+' conftest.er1 >conftest.err
18442  rm -f conftest.er1
18443  cat conftest.err >&5
18444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445  (exit $ac_status); } >/dev/null && {
18446	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18447	 test ! -s conftest.err
18448       }; then
18449  ac_header_preproc=yes
18450else
18451  echo "$as_me: failed program was:" >&5
18452sed 's/^/| /' conftest.$ac_ext >&5
18453
18454  ac_header_preproc=no
18455fi
18456
18457rm -f conftest.err conftest.$ac_ext
18458{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18459echo "${ECHO_T}$ac_header_preproc" >&6; }
18460
18461# So?  What about this header?
18462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18463  yes:no: )
18464    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18468    ac_header_preproc=yes
18469    ;;
18470  no:yes:* )
18471    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18473    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18474echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18475    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18477    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18478echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18479    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18481    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18483
18484    ;;
18485esac
18486{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18489  echo $ECHO_N "(cached) $ECHO_C" >&6
18490else
18491  eval "$as_ac_Header=\$ac_header_preproc"
18492fi
18493ac_res=`eval echo '${'$as_ac_Header'}'`
18494	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18495echo "${ECHO_T}$ac_res" >&6; }
18496
18497fi
18498if test `eval echo '${'$as_ac_Header'}'` = yes; then
18499  cat >>confdefs.h <<_ACEOF
18500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18501_ACEOF
18502
18503fi
18504
18505done
18506
18507
18508# terminal
18509
18510
18511
18512for ac_header in termios.h termio.h sys/termio.h
18513do
18514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18516  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18519  echo $ECHO_N "(cached) $ECHO_C" >&6
18520fi
18521ac_res=`eval echo '${'$as_ac_Header'}'`
18522	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18523echo "${ECHO_T}$ac_res" >&6; }
18524else
18525  # Is the header compilable?
18526{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18528cat >conftest.$ac_ext <<_ACEOF
18529/* confdefs.h.  */
18530_ACEOF
18531cat confdefs.h >>conftest.$ac_ext
18532cat >>conftest.$ac_ext <<_ACEOF
18533/* end confdefs.h.  */
18534$ac_includes_default
18535#include <$ac_header>
18536_ACEOF
18537rm -f conftest.$ac_objext
18538if { (ac_try="$ac_compile"
18539case "(($ac_try" in
18540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541  *) ac_try_echo=$ac_try;;
18542esac
18543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544  (eval "$ac_compile") 2>conftest.er1
18545  ac_status=$?
18546  grep -v '^ *+' conftest.er1 >conftest.err
18547  rm -f conftest.er1
18548  cat conftest.err >&5
18549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550  (exit $ac_status); } && {
18551	 test -z "$ac_c_werror_flag" ||
18552	 test ! -s conftest.err
18553       } && test -s conftest.$ac_objext; then
18554  ac_header_compiler=yes
18555else
18556  echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559	ac_header_compiler=no
18560fi
18561
18562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18564echo "${ECHO_T}$ac_header_compiler" >&6; }
18565
18566# Is the header present?
18567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18569cat >conftest.$ac_ext <<_ACEOF
18570/* confdefs.h.  */
18571_ACEOF
18572cat confdefs.h >>conftest.$ac_ext
18573cat >>conftest.$ac_ext <<_ACEOF
18574/* end confdefs.h.  */
18575#include <$ac_header>
18576_ACEOF
18577if { (ac_try="$ac_cpp conftest.$ac_ext"
18578case "(($ac_try" in
18579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580  *) ac_try_echo=$ac_try;;
18581esac
18582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18584  ac_status=$?
18585  grep -v '^ *+' conftest.er1 >conftest.err
18586  rm -f conftest.er1
18587  cat conftest.err >&5
18588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589  (exit $ac_status); } >/dev/null && {
18590	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18591	 test ! -s conftest.err
18592       }; then
18593  ac_header_preproc=yes
18594else
18595  echo "$as_me: failed program was:" >&5
18596sed 's/^/| /' conftest.$ac_ext >&5
18597
18598  ac_header_preproc=no
18599fi
18600
18601rm -f conftest.err conftest.$ac_ext
18602{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18603echo "${ECHO_T}$ac_header_preproc" >&6; }
18604
18605# So?  What about this header?
18606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18607  yes:no: )
18608    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18610    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18612    ac_header_preproc=yes
18613    ;;
18614  no:yes:* )
18615    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18617    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18618echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18619    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18621    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18622echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18623    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18625    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18627
18628    ;;
18629esac
18630{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18633  echo $ECHO_N "(cached) $ECHO_C" >&6
18634else
18635  eval "$as_ac_Header=\$ac_header_preproc"
18636fi
18637ac_res=`eval echo '${'$as_ac_Header'}'`
18638	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18639echo "${ECHO_T}$ac_res" >&6; }
18640
18641fi
18642if test `eval echo '${'$as_ac_Header'}'` = yes; then
18643  cat >>confdefs.h <<_ACEOF
18644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18645_ACEOF
18646
18647fi
18648
18649done
18650
18651
18652
18653save_LIBS="$LIBS"
18654LIBS=""
18655
18656libreplace_cv_dlfcn=no
18657{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18658echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18659if test "${ac_cv_search_dlopen+set}" = set; then
18660  echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662  ac_func_search_save_LIBS=$LIBS
18663cat >conftest.$ac_ext <<_ACEOF
18664/* confdefs.h.  */
18665_ACEOF
18666cat confdefs.h >>conftest.$ac_ext
18667cat >>conftest.$ac_ext <<_ACEOF
18668/* end confdefs.h.  */
18669
18670/* Override any GCC internal prototype to avoid an error.
18671   Use char because int might match the return type of a GCC
18672   builtin and then its argument prototype would still apply.  */
18673#ifdef __cplusplus
18674extern "C"
18675#endif
18676char dlopen ();
18677int
18678main ()
18679{
18680return dlopen ();
18681  ;
18682  return 0;
18683}
18684_ACEOF
18685for ac_lib in '' dl; do
18686  if test -z "$ac_lib"; then
18687    ac_res="none required"
18688  else
18689    ac_res=-l$ac_lib
18690    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18691  fi
18692  rm -f conftest.$ac_objext conftest$ac_exeext
18693if { (ac_try="$ac_link"
18694case "(($ac_try" in
18695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696  *) ac_try_echo=$ac_try;;
18697esac
18698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699  (eval "$ac_link") 2>conftest.er1
18700  ac_status=$?
18701  grep -v '^ *+' conftest.er1 >conftest.err
18702  rm -f conftest.er1
18703  cat conftest.err >&5
18704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705  (exit $ac_status); } && {
18706	 test -z "$ac_c_werror_flag" ||
18707	 test ! -s conftest.err
18708       } && test -s conftest$ac_exeext &&
18709       $as_test_x conftest$ac_exeext; then
18710  ac_cv_search_dlopen=$ac_res
18711else
18712  echo "$as_me: failed program was:" >&5
18713sed 's/^/| /' conftest.$ac_ext >&5
18714
18715
18716fi
18717
18718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719      conftest$ac_exeext
18720  if test "${ac_cv_search_dlopen+set}" = set; then
18721  break
18722fi
18723done
18724if test "${ac_cv_search_dlopen+set}" = set; then
18725  :
18726else
18727  ac_cv_search_dlopen=no
18728fi
18729rm conftest.$ac_ext
18730LIBS=$ac_func_search_save_LIBS
18731fi
18732{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18733echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18734ac_res=$ac_cv_search_dlopen
18735if test "$ac_res" != no; then
18736  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18737
18738fi
18739
18740
18741if test x"${ac_cv_search_dlopen}" = x"no"; then
18742	libreplace_cv_dlfcn=yes
18743else
18744
18745for ac_header in dlfcn.h
18746do
18747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18749  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18752  echo $ECHO_N "(cached) $ECHO_C" >&6
18753fi
18754ac_res=`eval echo '${'$as_ac_Header'}'`
18755	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18756echo "${ECHO_T}$ac_res" >&6; }
18757else
18758  # Is the header compilable?
18759{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18761cat >conftest.$ac_ext <<_ACEOF
18762/* confdefs.h.  */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h.  */
18767$ac_includes_default
18768#include <$ac_header>
18769_ACEOF
18770rm -f conftest.$ac_objext
18771if { (ac_try="$ac_compile"
18772case "(($ac_try" in
18773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774  *) ac_try_echo=$ac_try;;
18775esac
18776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777  (eval "$ac_compile") 2>conftest.er1
18778  ac_status=$?
18779  grep -v '^ *+' conftest.er1 >conftest.err
18780  rm -f conftest.er1
18781  cat conftest.err >&5
18782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783  (exit $ac_status); } && {
18784	 test -z "$ac_c_werror_flag" ||
18785	 test ! -s conftest.err
18786       } && test -s conftest.$ac_objext; then
18787  ac_header_compiler=yes
18788else
18789  echo "$as_me: failed program was:" >&5
18790sed 's/^/| /' conftest.$ac_ext >&5
18791
18792	ac_header_compiler=no
18793fi
18794
18795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18796{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18797echo "${ECHO_T}$ac_header_compiler" >&6; }
18798
18799# Is the header present?
18800{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18802cat >conftest.$ac_ext <<_ACEOF
18803/* confdefs.h.  */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h.  */
18808#include <$ac_header>
18809_ACEOF
18810if { (ac_try="$ac_cpp conftest.$ac_ext"
18811case "(($ac_try" in
18812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813  *) ac_try_echo=$ac_try;;
18814esac
18815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18817  ac_status=$?
18818  grep -v '^ *+' conftest.er1 >conftest.err
18819  rm -f conftest.er1
18820  cat conftest.err >&5
18821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822  (exit $ac_status); } >/dev/null && {
18823	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18824	 test ! -s conftest.err
18825       }; then
18826  ac_header_preproc=yes
18827else
18828  echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831  ac_header_preproc=no
18832fi
18833
18834rm -f conftest.err conftest.$ac_ext
18835{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18836echo "${ECHO_T}$ac_header_preproc" >&6; }
18837
18838# So?  What about this header?
18839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18840  yes:no: )
18841    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18842echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18843    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18844echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18845    ac_header_preproc=yes
18846    ;;
18847  no:yes:* )
18848    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18849echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18850    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18851echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18852    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18853echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18854    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18855echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18856    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18858    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18859echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18860
18861    ;;
18862esac
18863{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18866  echo $ECHO_N "(cached) $ECHO_C" >&6
18867else
18868  eval "$as_ac_Header=\$ac_header_preproc"
18869fi
18870ac_res=`eval echo '${'$as_ac_Header'}'`
18871	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18872echo "${ECHO_T}$ac_res" >&6; }
18873
18874fi
18875if test `eval echo '${'$as_ac_Header'}'` = yes; then
18876  cat >>confdefs.h <<_ACEOF
18877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18878_ACEOF
18879
18880fi
18881
18882done
18883
18884
18885
18886
18887
18888for ac_func in dlopen dlsym dlerror dlclose
18889do
18890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18891{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18893if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18894  echo $ECHO_N "(cached) $ECHO_C" >&6
18895else
18896  cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h.  */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h.  */
18902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18904#define $ac_func innocuous_$ac_func
18905
18906/* System header to define __stub macros and hopefully few prototypes,
18907    which can conflict with char $ac_func (); below.
18908    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18909    <limits.h> exists even on freestanding compilers.  */
18910
18911#ifdef __STDC__
18912# include <limits.h>
18913#else
18914# include <assert.h>
18915#endif
18916
18917#undef $ac_func
18918
18919/* Override any GCC internal prototype to avoid an error.
18920   Use char because int might match the return type of a GCC
18921   builtin and then its argument prototype would still apply.  */
18922#ifdef __cplusplus
18923extern "C"
18924#endif
18925char $ac_func ();
18926/* The GNU C library defines this for functions which it implements
18927    to always fail with ENOSYS.  Some functions are actually named
18928    something starting with __ and the normal name is an alias.  */
18929#if defined __stub_$ac_func || defined __stub___$ac_func
18930choke me
18931#endif
18932
18933int
18934main ()
18935{
18936return $ac_func ();
18937  ;
18938  return 0;
18939}
18940_ACEOF
18941rm -f conftest.$ac_objext conftest$ac_exeext
18942if { (ac_try="$ac_link"
18943case "(($ac_try" in
18944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945  *) ac_try_echo=$ac_try;;
18946esac
18947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948  (eval "$ac_link") 2>conftest.er1
18949  ac_status=$?
18950  grep -v '^ *+' conftest.er1 >conftest.err
18951  rm -f conftest.er1
18952  cat conftest.err >&5
18953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954  (exit $ac_status); } && {
18955	 test -z "$ac_c_werror_flag" ||
18956	 test ! -s conftest.err
18957       } && test -s conftest$ac_exeext &&
18958       $as_test_x conftest$ac_exeext; then
18959  eval "$as_ac_var=yes"
18960else
18961  echo "$as_me: failed program was:" >&5
18962sed 's/^/| /' conftest.$ac_ext >&5
18963
18964	eval "$as_ac_var=no"
18965fi
18966
18967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18968      conftest$ac_exeext conftest.$ac_ext
18969fi
18970ac_res=`eval echo '${'$as_ac_var'}'`
18971	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18972echo "${ECHO_T}$ac_res" >&6; }
18973if test `eval echo '${'$as_ac_var'}'` = yes; then
18974  cat >>confdefs.h <<_ACEOF
18975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18976_ACEOF
18977
18978else
18979  libreplace_cv_dlfcn=yes
18980fi
18981done
18982
18983fi
18984
18985if test x"${libreplace_cv_dlfcn}" = x"yes";then
18986	LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
18987fi
18988
18989LIBDL="$LIBS"
18990
18991LIBS="$save_LIBS"
18992
18993{ echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
18994echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6; }
18995if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
18996  echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
18998
18999SAVE_CPPFLAGS="$CPPFLAGS"
19000CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
19001cat >conftest.$ac_ext <<_ACEOF
19002/* confdefs.h.  */
19003_ACEOF
19004cat confdefs.h >>conftest.$ac_ext
19005cat >>conftest.$ac_ext <<_ACEOF
19006/* end confdefs.h.  */
19007
19008#include "confdefs.h"
19009#define _LIBREPLACE_REPLACE_H
19010#define REPLACE_GETPASS 1
19011#define main dont_declare_main
19012#include "$libreplacedir/getpass.c"
19013#undef main
19014
19015int
19016main ()
19017{
19018
19019  ;
19020  return 0;
19021}
19022_ACEOF
19023rm -f conftest.$ac_objext
19024if { (ac_try="$ac_compile"
19025case "(($ac_try" in
19026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027  *) ac_try_echo=$ac_try;;
19028esac
19029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030  (eval "$ac_compile") 2>conftest.er1
19031  ac_status=$?
19032  grep -v '^ *+' conftest.er1 >conftest.err
19033  rm -f conftest.er1
19034  cat conftest.err >&5
19035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036  (exit $ac_status); } && {
19037	 test -z "$ac_c_werror_flag" ||
19038	 test ! -s conftest.err
19039       } && test -s conftest.$ac_objext; then
19040  samba_cv_REPLACE_GETPASS=yes
19041else
19042  echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045	samba_cv_REPLACE_GETPASS=no
19046fi
19047
19048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19049CPPFLAGS="$SAVE_CPPFLAGS"
19050
19051fi
19052{ echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19053echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6; }
19054if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19055
19056cat >>confdefs.h <<\_ACEOF
19057#define REPLACE_GETPASS 1
19058_ACEOF
19059
19060	LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
19061fi
19062
19063{ echo "$as_me:$LINENO: checking whether strptime is available and works" >&5
19064echo $ECHO_N "checking whether strptime is available and works... $ECHO_C" >&6; }
19065if test "${libreplace_cv_STRPTIME_OK+set}" = set; then
19066  echo $ECHO_N "(cached) $ECHO_C" >&6
19067else
19068
19069	if test "$cross_compiling" = yes; then
19070  libreplace_cv_STRPTIME_OK="assuming not"
19071else
19072  cat >conftest.$ac_ext <<_ACEOF
19073/* confdefs.h.  */
19074_ACEOF
19075cat confdefs.h >>conftest.$ac_ext
19076cat >>conftest.$ac_ext <<_ACEOF
19077/* end confdefs.h.  */
19078
19079		#define LIBREPLACE_CONFIGURE_TEST_STRPTIME
19080		#include "$libreplacedir/test/strptime.c"
19081
19082_ACEOF
19083rm -f conftest$ac_exeext
19084if { (ac_try="$ac_link"
19085case "(($ac_try" in
19086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19087  *) ac_try_echo=$ac_try;;
19088esac
19089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19090  (eval "$ac_link") 2>&5
19091  ac_status=$?
19092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19094  { (case "(($ac_try" in
19095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096  *) ac_try_echo=$ac_try;;
19097esac
19098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099  (eval "$ac_try") 2>&5
19100  ac_status=$?
19101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102  (exit $ac_status); }; }; then
19103  libreplace_cv_STRPTIME_OK=yes
19104else
19105  echo "$as_me: program exited with status $ac_status" >&5
19106echo "$as_me: failed program was:" >&5
19107sed 's/^/| /' conftest.$ac_ext >&5
19108
19109( exit $ac_status )
19110libreplace_cv_STRPTIME_OK=no
19111fi
19112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19113fi
19114
19115
19116
19117fi
19118{ echo "$as_me:$LINENO: result: $libreplace_cv_STRPTIME_OK" >&5
19119echo "${ECHO_T}$libreplace_cv_STRPTIME_OK" >&6; }
19120if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then
19121
19122cat >>confdefs.h <<\_ACEOF
19123#define REPLACE_STRPTIME 1
19124_ACEOF
19125
19126        LIBREPLACEOBJ="${LIBREPLACEOBJ} strptime.o"
19127fi
19128
19129
19130
19131
19132
19133for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
19134do
19135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19137  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19140  echo $ECHO_N "(cached) $ECHO_C" >&6
19141fi
19142ac_res=`eval echo '${'$as_ac_Header'}'`
19143	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19144echo "${ECHO_T}$ac_res" >&6; }
19145else
19146  # Is the header compilable?
19147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19149cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h.  */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h.  */
19155$ac_includes_default
19156#include <$ac_header>
19157_ACEOF
19158rm -f conftest.$ac_objext
19159if { (ac_try="$ac_compile"
19160case "(($ac_try" in
19161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162  *) ac_try_echo=$ac_try;;
19163esac
19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165  (eval "$ac_compile") 2>conftest.er1
19166  ac_status=$?
19167  grep -v '^ *+' conftest.er1 >conftest.err
19168  rm -f conftest.er1
19169  cat conftest.err >&5
19170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171  (exit $ac_status); } && {
19172	 test -z "$ac_c_werror_flag" ||
19173	 test ! -s conftest.err
19174       } && test -s conftest.$ac_objext; then
19175  ac_header_compiler=yes
19176else
19177  echo "$as_me: failed program was:" >&5
19178sed 's/^/| /' conftest.$ac_ext >&5
19179
19180	ac_header_compiler=no
19181fi
19182
19183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19185echo "${ECHO_T}$ac_header_compiler" >&6; }
19186
19187# Is the header present?
19188{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19190cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h.  */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h.  */
19196#include <$ac_header>
19197_ACEOF
19198if { (ac_try="$ac_cpp conftest.$ac_ext"
19199case "(($ac_try" in
19200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201  *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19205  ac_status=$?
19206  grep -v '^ *+' conftest.er1 >conftest.err
19207  rm -f conftest.er1
19208  cat conftest.err >&5
19209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210  (exit $ac_status); } >/dev/null && {
19211	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19212	 test ! -s conftest.err
19213       }; then
19214  ac_header_preproc=yes
19215else
19216  echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219  ac_header_preproc=no
19220fi
19221
19222rm -f conftest.err conftest.$ac_ext
19223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19224echo "${ECHO_T}$ac_header_preproc" >&6; }
19225
19226# So?  What about this header?
19227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19228  yes:no: )
19229    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19231    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19233    ac_header_preproc=yes
19234    ;;
19235  no:yes:* )
19236    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19238    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19239echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19240    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19242    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19243echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19244    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19246    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19248
19249    ;;
19250esac
19251{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19254  echo $ECHO_N "(cached) $ECHO_C" >&6
19255else
19256  eval "$as_ac_Header=\$ac_header_preproc"
19257fi
19258ac_res=`eval echo '${'$as_ac_Header'}'`
19259	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19260echo "${ECHO_T}$ac_res" >&6; }
19261
19262fi
19263if test `eval echo '${'$as_ac_Header'}'` = yes; then
19264  cat >>confdefs.h <<_ACEOF
19265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19266_ACEOF
19267
19268fi
19269
19270done
19271
19272
19273#######################################
19274# Check for mkdir mode
19275{ echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
19276echo $ECHO_N "checking whether mkdir supports mode... $ECHO_C" >&6; }
19277if test "${ac_mkdir_has_mode+set}" = set; then
19278  echo $ECHO_N "(cached) $ECHO_C" >&6
19279else
19280  cat >conftest.$ac_ext <<_ACEOF
19281/* confdefs.h.  */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h.  */
19286
19287		#include <stdio.h>
19288		#ifdef HAVE_DIRECT_H
19289		#include <direct.h>
19290		#endif
19291int
19292main ()
19293{
19294
19295			mkdir("foo",0777);
19296			return 0;
19297
19298  ;
19299  return 0;
19300}
19301_ACEOF
19302rm -f conftest.$ac_objext
19303if { (ac_try="$ac_compile"
19304case "(($ac_try" in
19305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306  *) ac_try_echo=$ac_try;;
19307esac
19308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309  (eval "$ac_compile") 2>conftest.er1
19310  ac_status=$?
19311  grep -v '^ *+' conftest.er1 >conftest.err
19312  rm -f conftest.er1
19313  cat conftest.err >&5
19314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315  (exit $ac_status); } && {
19316	 test -z "$ac_c_werror_flag" ||
19317	 test ! -s conftest.err
19318       } && test -s conftest.$ac_objext; then
19319  ac_mkdir_has_mode="yes"
19320else
19321  echo "$as_me: failed program was:" >&5
19322sed 's/^/| /' conftest.$ac_ext >&5
19323
19324	ac_mkdir_has_mode="no"
19325fi
19326
19327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328fi
19329{ echo "$as_me:$LINENO: result: $ac_mkdir_has_mode" >&5
19330echo "${ECHO_T}$ac_mkdir_has_mode" >&6; }
19331
19332if test "$ac_mkdir_has_mode" = "yes"
19333then
19334
19335cat >>confdefs.h <<\_ACEOF
19336#define HAVE_MKDIR_MODE 1
19337_ACEOF
19338
19339fi
19340
19341
19342for ac_func in timegm
19343do
19344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19345{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19348  echo $ECHO_N "(cached) $ECHO_C" >&6
19349else
19350  cat >conftest.$ac_ext <<_ACEOF
19351/* confdefs.h.  */
19352_ACEOF
19353cat confdefs.h >>conftest.$ac_ext
19354cat >>conftest.$ac_ext <<_ACEOF
19355/* end confdefs.h.  */
19356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19357   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19358#define $ac_func innocuous_$ac_func
19359
19360/* System header to define __stub macros and hopefully few prototypes,
19361    which can conflict with char $ac_func (); below.
19362    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19363    <limits.h> exists even on freestanding compilers.  */
19364
19365#ifdef __STDC__
19366# include <limits.h>
19367#else
19368# include <assert.h>
19369#endif
19370
19371#undef $ac_func
19372
19373/* Override any GCC internal prototype to avoid an error.
19374   Use char because int might match the return type of a GCC
19375   builtin and then its argument prototype would still apply.  */
19376#ifdef __cplusplus
19377extern "C"
19378#endif
19379char $ac_func ();
19380/* The GNU C library defines this for functions which it implements
19381    to always fail with ENOSYS.  Some functions are actually named
19382    something starting with __ and the normal name is an alias.  */
19383#if defined __stub_$ac_func || defined __stub___$ac_func
19384choke me
19385#endif
19386
19387int
19388main ()
19389{
19390return $ac_func ();
19391  ;
19392  return 0;
19393}
19394_ACEOF
19395rm -f conftest.$ac_objext conftest$ac_exeext
19396if { (ac_try="$ac_link"
19397case "(($ac_try" in
19398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399  *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402  (eval "$ac_link") 2>conftest.er1
19403  ac_status=$?
19404  grep -v '^ *+' conftest.er1 >conftest.err
19405  rm -f conftest.er1
19406  cat conftest.err >&5
19407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408  (exit $ac_status); } && {
19409	 test -z "$ac_c_werror_flag" ||
19410	 test ! -s conftest.err
19411       } && test -s conftest$ac_exeext &&
19412       $as_test_x conftest$ac_exeext; then
19413  eval "$as_ac_var=yes"
19414else
19415  echo "$as_me: failed program was:" >&5
19416sed 's/^/| /' conftest.$ac_ext >&5
19417
19418	eval "$as_ac_var=no"
19419fi
19420
19421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19422      conftest$ac_exeext conftest.$ac_ext
19423fi
19424ac_res=`eval echo '${'$as_ac_var'}'`
19425	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19426echo "${ECHO_T}$ac_res" >&6; }
19427if test `eval echo '${'$as_ac_var'}'` = yes; then
19428  cat >>confdefs.h <<_ACEOF
19429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19430_ACEOF
19431
19432else
19433  LIBREPLACEOBJ="${LIBREPLACEOBJ} timegm.o"
19434fi
19435done
19436
19437
19438{ echo "$as_me:$LINENO: checking for broken readdir" >&5
19439echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
19440if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
19441  echo $ECHO_N "(cached) $ECHO_C" >&6
19442else
19443
19444	if test "$cross_compiling" = yes; then
19445  libreplace_cv_READDIR_NEEDED="assuming not"
19446else
19447  cat >conftest.$ac_ext <<_ACEOF
19448/* confdefs.h.  */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h.  */
19453
19454#define test_readdir_os2_delete main
19455#include "$libreplacedir/test/os2_delete.c"
19456_ACEOF
19457rm -f conftest$ac_exeext
19458if { (ac_try="$ac_link"
19459case "(($ac_try" in
19460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461  *) ac_try_echo=$ac_try;;
19462esac
19463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464  (eval "$ac_link") 2>&5
19465  ac_status=$?
19466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19468  { (case "(($ac_try" in
19469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470  *) ac_try_echo=$ac_try;;
19471esac
19472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473  (eval "$ac_try") 2>&5
19474  ac_status=$?
19475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476  (exit $ac_status); }; }; then
19477  libreplace_cv_READDIR_NEEDED=no
19478else
19479  echo "$as_me: program exited with status $ac_status" >&5
19480echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483( exit $ac_status )
19484libreplace_cv_READDIR_NEEDED=yes
19485fi
19486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19487fi
19488
19489
19490
19491fi
19492{ echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
19493echo "${ECHO_T}$libreplace_cv_READDIR_NEEDED" >&6; }
19494
19495#
19496# try to replace with getdirentries() if needed
19497#
19498if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19499
19500for ac_func in getdirentries
19501do
19502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19503{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19505if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19506  echo $ECHO_N "(cached) $ECHO_C" >&6
19507else
19508  cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h.  */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h.  */
19514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19515   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19516#define $ac_func innocuous_$ac_func
19517
19518/* System header to define __stub macros and hopefully few prototypes,
19519    which can conflict with char $ac_func (); below.
19520    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19521    <limits.h> exists even on freestanding compilers.  */
19522
19523#ifdef __STDC__
19524# include <limits.h>
19525#else
19526# include <assert.h>
19527#endif
19528
19529#undef $ac_func
19530
19531/* Override any GCC internal prototype to avoid an error.
19532   Use char because int might match the return type of a GCC
19533   builtin and then its argument prototype would still apply.  */
19534#ifdef __cplusplus
19535extern "C"
19536#endif
19537char $ac_func ();
19538/* The GNU C library defines this for functions which it implements
19539    to always fail with ENOSYS.  Some functions are actually named
19540    something starting with __ and the normal name is an alias.  */
19541#if defined __stub_$ac_func || defined __stub___$ac_func
19542choke me
19543#endif
19544
19545int
19546main ()
19547{
19548return $ac_func ();
19549  ;
19550  return 0;
19551}
19552_ACEOF
19553rm -f conftest.$ac_objext conftest$ac_exeext
19554if { (ac_try="$ac_link"
19555case "(($ac_try" in
19556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557  *) ac_try_echo=$ac_try;;
19558esac
19559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560  (eval "$ac_link") 2>conftest.er1
19561  ac_status=$?
19562  grep -v '^ *+' conftest.er1 >conftest.err
19563  rm -f conftest.er1
19564  cat conftest.err >&5
19565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566  (exit $ac_status); } && {
19567	 test -z "$ac_c_werror_flag" ||
19568	 test ! -s conftest.err
19569       } && test -s conftest$ac_exeext &&
19570       $as_test_x conftest$ac_exeext; then
19571  eval "$as_ac_var=yes"
19572else
19573  echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576	eval "$as_ac_var=no"
19577fi
19578
19579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580      conftest$ac_exeext conftest.$ac_ext
19581fi
19582ac_res=`eval echo '${'$as_ac_var'}'`
19583	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19584echo "${ECHO_T}$ac_res" >&6; }
19585if test `eval echo '${'$as_ac_var'}'` = yes; then
19586  cat >>confdefs.h <<_ACEOF
19587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19588_ACEOF
19589
19590fi
19591done
19592
19593{ echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
19594echo $ECHO_N "checking for prototype long telldir(const DIR *dir)... $ECHO_C" >&6; }
19595if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
19596  echo $ECHO_N "(cached) $ECHO_C" >&6
19597else
19598  cat >conftest.$ac_ext <<_ACEOF
19599
19600		$ac_includes_default
19601
19602	#include <dirent.h>
19603
19604		long telldir(const DIR *dir)
19605		{
19606
19607	return 0;
19608
19609		}
19610
19611_ACEOF
19612rm -f conftest.$ac_objext
19613if { (ac_try="$ac_compile"
19614case "(($ac_try" in
19615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616  *) ac_try_echo=$ac_try;;
19617esac
19618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619  (eval "$ac_compile") 2>conftest.er1
19620  ac_status=$?
19621  grep -v '^ *+' conftest.er1 >conftest.err
19622  rm -f conftest.er1
19623  cat conftest.err >&5
19624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625  (exit $ac_status); } && {
19626	 test -z "$ac_c_werror_flag" ||
19627	 test ! -s conftest.err
19628       } && test -s conftest.$ac_objext; then
19629
19630		ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
19631
19632else
19633  echo "$as_me: failed program was:" >&5
19634sed 's/^/| /' conftest.$ac_ext >&5
19635
19636
19637		ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
19638
19639fi
19640
19641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642
19643fi
19644{ echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
19645echo "${ECHO_T}$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
19646if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
19647
19648
19649cat >>confdefs.h <<\_ACEOF
19650#define TELLDIR_TAKES_CONST_DIR 1
19651_ACEOF
19652
19653
19654fi
19655
19656
19657
19658{ echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
19659echo $ECHO_N "checking for prototype int seekdir(DIR *dir, long ofs)... $ECHO_C" >&6; }
19660if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
19661  echo $ECHO_N "(cached) $ECHO_C" >&6
19662else
19663  cat >conftest.$ac_ext <<_ACEOF
19664
19665		$ac_includes_default
19666
19667	#include <dirent.h>
19668
19669		int seekdir(DIR *dir, long ofs)
19670		{
19671
19672	return 0;
19673
19674		}
19675
19676_ACEOF
19677rm -f conftest.$ac_objext
19678if { (ac_try="$ac_compile"
19679case "(($ac_try" in
19680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681  *) ac_try_echo=$ac_try;;
19682esac
19683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684  (eval "$ac_compile") 2>conftest.er1
19685  ac_status=$?
19686  grep -v '^ *+' conftest.er1 >conftest.err
19687  rm -f conftest.er1
19688  cat conftest.err >&5
19689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690  (exit $ac_status); } && {
19691	 test -z "$ac_c_werror_flag" ||
19692	 test ! -s conftest.err
19693       } && test -s conftest.$ac_objext; then
19694
19695		ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
19696
19697else
19698  echo "$as_me: failed program was:" >&5
19699sed 's/^/| /' conftest.$ac_ext >&5
19700
19701
19702		ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
19703
19704fi
19705
19706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19707
19708fi
19709{ echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
19710echo "${ECHO_T}$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
19711if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
19712
19713
19714cat >>confdefs.h <<\_ACEOF
19715#define SEEKDIR_RETURNS_INT 1
19716_ACEOF
19717
19718
19719fi
19720
19721
19722{ echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
19723echo $ECHO_N "checking for replacing readdir using getdirentries()... $ECHO_C" >&6; }
19724if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
19725  echo $ECHO_N "(cached) $ECHO_C" >&6
19726else
19727
19728	if test "$cross_compiling" = yes; then
19729  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19730See \`config.log' for more details." >&5
19731echo "$as_me: error: cannot run test program while cross compiling
19732See \`config.log' for more details." >&2;}
19733   { (exit 1); exit 1; }; }
19734else
19735  cat >conftest.$ac_ext <<_ACEOF
19736/* confdefs.h.  */
19737_ACEOF
19738cat confdefs.h >>conftest.$ac_ext
19739cat >>conftest.$ac_ext <<_ACEOF
19740/* end confdefs.h.  */
19741
19742#define _LIBREPLACE_REPLACE_H
19743#include "$libreplacedir/repdir_getdirentries.c"
19744#define test_readdir_os2_delete main
19745#include "$libreplacedir/test/os2_delete.c"
19746_ACEOF
19747rm -f conftest$ac_exeext
19748if { (ac_try="$ac_link"
19749case "(($ac_try" in
19750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751  *) ac_try_echo=$ac_try;;
19752esac
19753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754  (eval "$ac_link") 2>&5
19755  ac_status=$?
19756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19758  { (case "(($ac_try" in
19759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760  *) ac_try_echo=$ac_try;;
19761esac
19762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763  (eval "$ac_try") 2>&5
19764  ac_status=$?
19765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766  (exit $ac_status); }; }; then
19767  libreplace_cv_READDIR_GETDIRENTRIES=yes
19768else
19769  echo "$as_me: program exited with status $ac_status" >&5
19770echo "$as_me: failed program was:" >&5
19771sed 's/^/| /' conftest.$ac_ext >&5
19772
19773( exit $ac_status )
19774libreplace_cv_READDIR_GETDIRENTRIES=no
19775fi
19776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19777fi
19778
19779
19780
19781fi
19782{ echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
19783echo "${ECHO_T}$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
19784fi
19785if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
19786
19787cat >>confdefs.h <<\_ACEOF
19788#define REPLACE_READDIR 1
19789_ACEOF
19790
19791
19792cat >>confdefs.h <<\_ACEOF
19793#define REPLACE_READDIR_GETDIRENTRIES 1
19794_ACEOF
19795
19796	LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdirentries.o"
19797	libreplace_cv_READDIR_NEEDED=no
19798fi
19799
19800#
19801# try to replace with getdents() if needed
19802#
19803if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19804
19805for ac_func in getdents
19806do
19807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19808{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19810if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19811  echo $ECHO_N "(cached) $ECHO_C" >&6
19812else
19813  cat >conftest.$ac_ext <<_ACEOF
19814/* confdefs.h.  */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h.  */
19819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19820   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19821#define $ac_func innocuous_$ac_func
19822
19823/* System header to define __stub macros and hopefully few prototypes,
19824    which can conflict with char $ac_func (); below.
19825    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19826    <limits.h> exists even on freestanding compilers.  */
19827
19828#ifdef __STDC__
19829# include <limits.h>
19830#else
19831# include <assert.h>
19832#endif
19833
19834#undef $ac_func
19835
19836/* Override any GCC internal prototype to avoid an error.
19837   Use char because int might match the return type of a GCC
19838   builtin and then its argument prototype would still apply.  */
19839#ifdef __cplusplus
19840extern "C"
19841#endif
19842char $ac_func ();
19843/* The GNU C library defines this for functions which it implements
19844    to always fail with ENOSYS.  Some functions are actually named
19845    something starting with __ and the normal name is an alias.  */
19846#if defined __stub_$ac_func || defined __stub___$ac_func
19847choke me
19848#endif
19849
19850int
19851main ()
19852{
19853return $ac_func ();
19854  ;
19855  return 0;
19856}
19857_ACEOF
19858rm -f conftest.$ac_objext conftest$ac_exeext
19859if { (ac_try="$ac_link"
19860case "(($ac_try" in
19861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862  *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865  (eval "$ac_link") 2>conftest.er1
19866  ac_status=$?
19867  grep -v '^ *+' conftest.er1 >conftest.err
19868  rm -f conftest.er1
19869  cat conftest.err >&5
19870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871  (exit $ac_status); } && {
19872	 test -z "$ac_c_werror_flag" ||
19873	 test ! -s conftest.err
19874       } && test -s conftest$ac_exeext &&
19875       $as_test_x conftest$ac_exeext; then
19876  eval "$as_ac_var=yes"
19877else
19878  echo "$as_me: failed program was:" >&5
19879sed 's/^/| /' conftest.$ac_ext >&5
19880
19881	eval "$as_ac_var=no"
19882fi
19883
19884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19885      conftest$ac_exeext conftest.$ac_ext
19886fi
19887ac_res=`eval echo '${'$as_ac_var'}'`
19888	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19889echo "${ECHO_T}$ac_res" >&6; }
19890if test `eval echo '${'$as_ac_var'}'` = yes; then
19891  cat >>confdefs.h <<_ACEOF
19892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19893_ACEOF
19894
19895fi
19896done
19897
19898{ echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
19899echo $ECHO_N "checking for replacing readdir using getdents()... $ECHO_C" >&6; }
19900if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
19901  echo $ECHO_N "(cached) $ECHO_C" >&6
19902else
19903
19904	if test "$cross_compiling" = yes; then
19905  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19906See \`config.log' for more details." >&5
19907echo "$as_me: error: cannot run test program while cross compiling
19908See \`config.log' for more details." >&2;}
19909   { (exit 1); exit 1; }; }
19910else
19911  cat >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#define _LIBREPLACE_REPLACE_H
19919#error _donot_use_getdents_replacement_anymore
19920#include "$libreplacedir/repdir_getdents.c"
19921#define test_readdir_os2_delete main
19922#include "$libreplacedir/test/os2_delete.c"
19923_ACEOF
19924rm -f conftest$ac_exeext
19925if { (ac_try="$ac_link"
19926case "(($ac_try" in
19927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928  *) ac_try_echo=$ac_try;;
19929esac
19930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931  (eval "$ac_link") 2>&5
19932  ac_status=$?
19933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19935  { (case "(($ac_try" in
19936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937  *) ac_try_echo=$ac_try;;
19938esac
19939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940  (eval "$ac_try") 2>&5
19941  ac_status=$?
19942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943  (exit $ac_status); }; }; then
19944  libreplace_cv_READDIR_GETDENTS=yes
19945else
19946  echo "$as_me: program exited with status $ac_status" >&5
19947echo "$as_me: failed program was:" >&5
19948sed 's/^/| /' conftest.$ac_ext >&5
19949
19950( exit $ac_status )
19951libreplace_cv_READDIR_GETDENTS=no
19952fi
19953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19954fi
19955
19956
19957
19958fi
19959{ echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
19960echo "${ECHO_T}$libreplace_cv_READDIR_GETDENTS" >&6; }
19961fi
19962if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
19963
19964cat >>confdefs.h <<\_ACEOF
19965#define REPLACE_READDIR 1
19966_ACEOF
19967
19968
19969cat >>confdefs.h <<\_ACEOF
19970#define REPLACE_READDIR_GETDENTS 1
19971_ACEOF
19972
19973	LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdents.o"
19974	libreplace_cv_READDIR_NEEDED=no
19975fi
19976
19977{ echo "$as_me:$LINENO: checking a usable readdir()" >&5
19978echo $ECHO_N "checking a usable readdir()... $ECHO_C" >&6; }
19979if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
19980	{ echo "$as_me:$LINENO: result: no" >&5
19981echo "${ECHO_T}no" >&6; }
19982	{ echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
19983echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
19984else
19985	{ echo "$as_me:$LINENO: result: yes" >&5
19986echo "${ECHO_T}yes" >&6; }
19987fi
19988
19989
19990
19991
19992
19993for ac_func in syslog memset memcpy
19994do
19995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19999  echo $ECHO_N "(cached) $ECHO_C" >&6
20000else
20001  cat >conftest.$ac_ext <<_ACEOF
20002/* confdefs.h.  */
20003_ACEOF
20004cat confdefs.h >>conftest.$ac_ext
20005cat >>conftest.$ac_ext <<_ACEOF
20006/* end confdefs.h.  */
20007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20008   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20009#define $ac_func innocuous_$ac_func
20010
20011/* System header to define __stub macros and hopefully few prototypes,
20012    which can conflict with char $ac_func (); below.
20013    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20014    <limits.h> exists even on freestanding compilers.  */
20015
20016#ifdef __STDC__
20017# include <limits.h>
20018#else
20019# include <assert.h>
20020#endif
20021
20022#undef $ac_func
20023
20024/* Override any GCC internal prototype to avoid an error.
20025   Use char because int might match the return type of a GCC
20026   builtin and then its argument prototype would still apply.  */
20027#ifdef __cplusplus
20028extern "C"
20029#endif
20030char $ac_func ();
20031/* The GNU C library defines this for functions which it implements
20032    to always fail with ENOSYS.  Some functions are actually named
20033    something starting with __ and the normal name is an alias.  */
20034#if defined __stub_$ac_func || defined __stub___$ac_func
20035choke me
20036#endif
20037
20038int
20039main ()
20040{
20041return $ac_func ();
20042  ;
20043  return 0;
20044}
20045_ACEOF
20046rm -f conftest.$ac_objext conftest$ac_exeext
20047if { (ac_try="$ac_link"
20048case "(($ac_try" in
20049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050  *) ac_try_echo=$ac_try;;
20051esac
20052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053  (eval "$ac_link") 2>conftest.er1
20054  ac_status=$?
20055  grep -v '^ *+' conftest.er1 >conftest.err
20056  rm -f conftest.er1
20057  cat conftest.err >&5
20058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059  (exit $ac_status); } && {
20060	 test -z "$ac_c_werror_flag" ||
20061	 test ! -s conftest.err
20062       } && test -s conftest$ac_exeext &&
20063       $as_test_x conftest$ac_exeext; then
20064  eval "$as_ac_var=yes"
20065else
20066  echo "$as_me: failed program was:" >&5
20067sed 's/^/| /' conftest.$ac_ext >&5
20068
20069	eval "$as_ac_var=no"
20070fi
20071
20072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20073      conftest$ac_exeext conftest.$ac_ext
20074fi
20075ac_res=`eval echo '${'$as_ac_var'}'`
20076	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20077echo "${ECHO_T}$ac_res" >&6; }
20078if test `eval echo '${'$as_ac_var'}'` = yes; then
20079  cat >>confdefs.h <<_ACEOF
20080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20081_ACEOF
20082
20083else
20084  { { echo "$as_me:$LINENO: error: Required function not found" >&5
20085echo "$as_me: error: Required function not found" >&2;}
20086   { (exit 1); exit 1; }; }
20087fi
20088done
20089
20090
20091echo "LIBREPLACE_BROKEN_CHECKS: END"
20092
20093
20094LIBREPLACE_DIR=`echo ${libreplacedir} | sed -e "s;${srcdir};;" -e "s;^/;;"`
20095
20096LIBREPLACE_OBJS=""
20097for obj in ${LIBREPLACEOBJ}; do
20098	LIBREPLACE_OBJS="${LIBREPLACE_OBJS} ${LIBREPLACE_DIR}/${obj}"
20099done
20100
20101
20102# add -ldl to the global LIBS
20103LIBS="${LIBS} ${LIBDL}"
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113for ac_header in aio.h arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h rpc/nettype.h
20114do
20115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20116if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20117  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20120  echo $ECHO_N "(cached) $ECHO_C" >&6
20121fi
20122ac_res=`eval echo '${'$as_ac_Header'}'`
20123	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20124echo "${ECHO_T}$ac_res" >&6; }
20125else
20126  # Is the header compilable?
20127{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20129cat >conftest.$ac_ext <<_ACEOF
20130/* confdefs.h.  */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h.  */
20135$ac_includes_default
20136#include <$ac_header>
20137_ACEOF
20138rm -f conftest.$ac_objext
20139if { (ac_try="$ac_compile"
20140case "(($ac_try" in
20141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142  *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145  (eval "$ac_compile") 2>conftest.er1
20146  ac_status=$?
20147  grep -v '^ *+' conftest.er1 >conftest.err
20148  rm -f conftest.er1
20149  cat conftest.err >&5
20150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151  (exit $ac_status); } && {
20152	 test -z "$ac_c_werror_flag" ||
20153	 test ! -s conftest.err
20154       } && test -s conftest.$ac_objext; then
20155  ac_header_compiler=yes
20156else
20157  echo "$as_me: failed program was:" >&5
20158sed 's/^/| /' conftest.$ac_ext >&5
20159
20160	ac_header_compiler=no
20161fi
20162
20163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20165echo "${ECHO_T}$ac_header_compiler" >&6; }
20166
20167# Is the header present?
20168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20170cat >conftest.$ac_ext <<_ACEOF
20171/* confdefs.h.  */
20172_ACEOF
20173cat confdefs.h >>conftest.$ac_ext
20174cat >>conftest.$ac_ext <<_ACEOF
20175/* end confdefs.h.  */
20176#include <$ac_header>
20177_ACEOF
20178if { (ac_try="$ac_cpp conftest.$ac_ext"
20179case "(($ac_try" in
20180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181  *) ac_try_echo=$ac_try;;
20182esac
20183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20185  ac_status=$?
20186  grep -v '^ *+' conftest.er1 >conftest.err
20187  rm -f conftest.er1
20188  cat conftest.err >&5
20189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190  (exit $ac_status); } >/dev/null && {
20191	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20192	 test ! -s conftest.err
20193       }; then
20194  ac_header_preproc=yes
20195else
20196  echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199  ac_header_preproc=no
20200fi
20201
20202rm -f conftest.err conftest.$ac_ext
20203{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20204echo "${ECHO_T}$ac_header_preproc" >&6; }
20205
20206# So?  What about this header?
20207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20208  yes:no: )
20209    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20211    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20213    ac_header_preproc=yes
20214    ;;
20215  no:yes:* )
20216    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20218    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20219echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20220    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20222    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20223echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20224    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20226    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20228
20229    ;;
20230esac
20231{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20234  echo $ECHO_N "(cached) $ECHO_C" >&6
20235else
20236  eval "$as_ac_Header=\$ac_header_preproc"
20237fi
20238ac_res=`eval echo '${'$as_ac_Header'}'`
20239	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20240echo "${ECHO_T}$ac_res" >&6; }
20241
20242fi
20243if test `eval echo '${'$as_ac_Header'}'` = yes; then
20244  cat >>confdefs.h <<_ACEOF
20245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20246_ACEOF
20247
20248fi
20249
20250done
20251
20252
20253
20254
20255
20256
20257
20258for ac_header in unistd.h utime.h grp.h sys/id.h memory.h alloca.h
20259do
20260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20262  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265  echo $ECHO_N "(cached) $ECHO_C" >&6
20266fi
20267ac_res=`eval echo '${'$as_ac_Header'}'`
20268	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20269echo "${ECHO_T}$ac_res" >&6; }
20270else
20271  # Is the header compilable?
20272{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20274cat >conftest.$ac_ext <<_ACEOF
20275/* confdefs.h.  */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h.  */
20280$ac_includes_default
20281#include <$ac_header>
20282_ACEOF
20283rm -f conftest.$ac_objext
20284if { (ac_try="$ac_compile"
20285case "(($ac_try" in
20286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287  *) ac_try_echo=$ac_try;;
20288esac
20289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290  (eval "$ac_compile") 2>conftest.er1
20291  ac_status=$?
20292  grep -v '^ *+' conftest.er1 >conftest.err
20293  rm -f conftest.er1
20294  cat conftest.err >&5
20295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296  (exit $ac_status); } && {
20297	 test -z "$ac_c_werror_flag" ||
20298	 test ! -s conftest.err
20299       } && test -s conftest.$ac_objext; then
20300  ac_header_compiler=yes
20301else
20302  echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305	ac_header_compiler=no
20306fi
20307
20308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20310echo "${ECHO_T}$ac_header_compiler" >&6; }
20311
20312# Is the header present?
20313{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20315cat >conftest.$ac_ext <<_ACEOF
20316/* confdefs.h.  */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h.  */
20321#include <$ac_header>
20322_ACEOF
20323if { (ac_try="$ac_cpp conftest.$ac_ext"
20324case "(($ac_try" in
20325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326  *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20330  ac_status=$?
20331  grep -v '^ *+' conftest.er1 >conftest.err
20332  rm -f conftest.er1
20333  cat conftest.err >&5
20334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); } >/dev/null && {
20336	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20337	 test ! -s conftest.err
20338       }; then
20339  ac_header_preproc=yes
20340else
20341  echo "$as_me: failed program was:" >&5
20342sed 's/^/| /' conftest.$ac_ext >&5
20343
20344  ac_header_preproc=no
20345fi
20346
20347rm -f conftest.err conftest.$ac_ext
20348{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349echo "${ECHO_T}$ac_header_preproc" >&6; }
20350
20351# So?  What about this header?
20352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353  yes:no: )
20354    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20358    ac_header_preproc=yes
20359    ;;
20360  no:yes:* )
20361    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20363    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20364echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20365    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20367    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20368echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20369    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20371    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20373
20374    ;;
20375esac
20376{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20379  echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381  eval "$as_ac_Header=\$ac_header_preproc"
20382fi
20383ac_res=`eval echo '${'$as_ac_Header'}'`
20384	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20385echo "${ECHO_T}$ac_res" >&6; }
20386
20387fi
20388if test `eval echo '${'$as_ac_Header'}'` = yes; then
20389  cat >>confdefs.h <<_ACEOF
20390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20391_ACEOF
20392
20393fi
20394
20395done
20396
20397
20398
20399for ac_header in limits.h float.h
20400do
20401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20403  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20406  echo $ECHO_N "(cached) $ECHO_C" >&6
20407fi
20408ac_res=`eval echo '${'$as_ac_Header'}'`
20409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20410echo "${ECHO_T}$ac_res" >&6; }
20411else
20412  # Is the header compilable?
20413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20415cat >conftest.$ac_ext <<_ACEOF
20416/* confdefs.h.  */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
20420/* end confdefs.h.  */
20421$ac_includes_default
20422#include <$ac_header>
20423_ACEOF
20424rm -f conftest.$ac_objext
20425if { (ac_try="$ac_compile"
20426case "(($ac_try" in
20427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428  *) ac_try_echo=$ac_try;;
20429esac
20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431  (eval "$ac_compile") 2>conftest.er1
20432  ac_status=$?
20433  grep -v '^ *+' conftest.er1 >conftest.err
20434  rm -f conftest.er1
20435  cat conftest.err >&5
20436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437  (exit $ac_status); } && {
20438	 test -z "$ac_c_werror_flag" ||
20439	 test ! -s conftest.err
20440       } && test -s conftest.$ac_objext; then
20441  ac_header_compiler=yes
20442else
20443  echo "$as_me: failed program was:" >&5
20444sed 's/^/| /' conftest.$ac_ext >&5
20445
20446	ac_header_compiler=no
20447fi
20448
20449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20451echo "${ECHO_T}$ac_header_compiler" >&6; }
20452
20453# Is the header present?
20454{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20456cat >conftest.$ac_ext <<_ACEOF
20457/* confdefs.h.  */
20458_ACEOF
20459cat confdefs.h >>conftest.$ac_ext
20460cat >>conftest.$ac_ext <<_ACEOF
20461/* end confdefs.h.  */
20462#include <$ac_header>
20463_ACEOF
20464if { (ac_try="$ac_cpp conftest.$ac_ext"
20465case "(($ac_try" in
20466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467  *) ac_try_echo=$ac_try;;
20468esac
20469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20471  ac_status=$?
20472  grep -v '^ *+' conftest.er1 >conftest.err
20473  rm -f conftest.er1
20474  cat conftest.err >&5
20475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476  (exit $ac_status); } >/dev/null && {
20477	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20478	 test ! -s conftest.err
20479       }; then
20480  ac_header_preproc=yes
20481else
20482  echo "$as_me: failed program was:" >&5
20483sed 's/^/| /' conftest.$ac_ext >&5
20484
20485  ac_header_preproc=no
20486fi
20487
20488rm -f conftest.err conftest.$ac_ext
20489{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20490echo "${ECHO_T}$ac_header_preproc" >&6; }
20491
20492# So?  What about this header?
20493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20494  yes:no: )
20495    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20497    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20499    ac_header_preproc=yes
20500    ;;
20501  no:yes:* )
20502    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20504    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20505echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20506    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20508    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20509echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20510    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20512    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20514
20515    ;;
20516esac
20517{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20520  echo $ECHO_N "(cached) $ECHO_C" >&6
20521else
20522  eval "$as_ac_Header=\$ac_header_preproc"
20523fi
20524ac_res=`eval echo '${'$as_ac_Header'}'`
20525	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20526echo "${ECHO_T}$ac_res" >&6; }
20527
20528fi
20529if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530  cat >>confdefs.h <<_ACEOF
20531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20532_ACEOF
20533
20534fi
20535
20536done
20537
20538
20539
20540
20541for ac_header in rpc/rpc.h rpcsvc/nis.h rpcsvc/ypclnt.h
20542do
20543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20545  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20548  echo $ECHO_N "(cached) $ECHO_C" >&6
20549fi
20550ac_res=`eval echo '${'$as_ac_Header'}'`
20551	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20552echo "${ECHO_T}$ac_res" >&6; }
20553else
20554  # Is the header compilable?
20555{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20557cat >conftest.$ac_ext <<_ACEOF
20558/* confdefs.h.  */
20559_ACEOF
20560cat confdefs.h >>conftest.$ac_ext
20561cat >>conftest.$ac_ext <<_ACEOF
20562/* end confdefs.h.  */
20563$ac_includes_default
20564#include <$ac_header>
20565_ACEOF
20566rm -f conftest.$ac_objext
20567if { (ac_try="$ac_compile"
20568case "(($ac_try" in
20569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570  *) ac_try_echo=$ac_try;;
20571esac
20572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573  (eval "$ac_compile") 2>conftest.er1
20574  ac_status=$?
20575  grep -v '^ *+' conftest.er1 >conftest.err
20576  rm -f conftest.er1
20577  cat conftest.err >&5
20578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579  (exit $ac_status); } && {
20580	 test -z "$ac_c_werror_flag" ||
20581	 test ! -s conftest.err
20582       } && test -s conftest.$ac_objext; then
20583  ac_header_compiler=yes
20584else
20585  echo "$as_me: failed program was:" >&5
20586sed 's/^/| /' conftest.$ac_ext >&5
20587
20588	ac_header_compiler=no
20589fi
20590
20591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20593echo "${ECHO_T}$ac_header_compiler" >&6; }
20594
20595# Is the header present?
20596{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20598cat >conftest.$ac_ext <<_ACEOF
20599/* confdefs.h.  */
20600_ACEOF
20601cat confdefs.h >>conftest.$ac_ext
20602cat >>conftest.$ac_ext <<_ACEOF
20603/* end confdefs.h.  */
20604#include <$ac_header>
20605_ACEOF
20606if { (ac_try="$ac_cpp conftest.$ac_ext"
20607case "(($ac_try" in
20608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609  *) ac_try_echo=$ac_try;;
20610esac
20611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20613  ac_status=$?
20614  grep -v '^ *+' conftest.er1 >conftest.err
20615  rm -f conftest.er1
20616  cat conftest.err >&5
20617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618  (exit $ac_status); } >/dev/null && {
20619	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20620	 test ! -s conftest.err
20621       }; then
20622  ac_header_preproc=yes
20623else
20624  echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627  ac_header_preproc=no
20628fi
20629
20630rm -f conftest.err conftest.$ac_ext
20631{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20632echo "${ECHO_T}$ac_header_preproc" >&6; }
20633
20634# So?  What about this header?
20635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20636  yes:no: )
20637    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20639    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20641    ac_header_preproc=yes
20642    ;;
20643  no:yes:* )
20644    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20646    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20647echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20648    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20650    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20651echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20652    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20654    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20656
20657    ;;
20658esac
20659{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20662  echo $ECHO_N "(cached) $ECHO_C" >&6
20663else
20664  eval "$as_ac_Header=\$ac_header_preproc"
20665fi
20666ac_res=`eval echo '${'$as_ac_Header'}'`
20667	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20668echo "${ECHO_T}$ac_res" >&6; }
20669
20670fi
20671if test `eval echo '${'$as_ac_Header'}'` = yes; then
20672  cat >>confdefs.h <<_ACEOF
20673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20674_ACEOF
20675
20676fi
20677
20678done
20679
20680
20681
20682
20683
20684
20685
20686
20687for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/prctl.h
20688do
20689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20691  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20694  echo $ECHO_N "(cached) $ECHO_C" >&6
20695fi
20696ac_res=`eval echo '${'$as_ac_Header'}'`
20697	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20698echo "${ECHO_T}$ac_res" >&6; }
20699else
20700  # Is the header compilable?
20701{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20702echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20703cat >conftest.$ac_ext <<_ACEOF
20704/* confdefs.h.  */
20705_ACEOF
20706cat confdefs.h >>conftest.$ac_ext
20707cat >>conftest.$ac_ext <<_ACEOF
20708/* end confdefs.h.  */
20709$ac_includes_default
20710#include <$ac_header>
20711_ACEOF
20712rm -f conftest.$ac_objext
20713if { (ac_try="$ac_compile"
20714case "(($ac_try" in
20715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716  *) ac_try_echo=$ac_try;;
20717esac
20718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719  (eval "$ac_compile") 2>conftest.er1
20720  ac_status=$?
20721  grep -v '^ *+' conftest.er1 >conftest.err
20722  rm -f conftest.er1
20723  cat conftest.err >&5
20724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725  (exit $ac_status); } && {
20726	 test -z "$ac_c_werror_flag" ||
20727	 test ! -s conftest.err
20728       } && test -s conftest.$ac_objext; then
20729  ac_header_compiler=yes
20730else
20731  echo "$as_me: failed program was:" >&5
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
20734	ac_header_compiler=no
20735fi
20736
20737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20739echo "${ECHO_T}$ac_header_compiler" >&6; }
20740
20741# Is the header present?
20742{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20744cat >conftest.$ac_ext <<_ACEOF
20745/* confdefs.h.  */
20746_ACEOF
20747cat confdefs.h >>conftest.$ac_ext
20748cat >>conftest.$ac_ext <<_ACEOF
20749/* end confdefs.h.  */
20750#include <$ac_header>
20751_ACEOF
20752if { (ac_try="$ac_cpp conftest.$ac_ext"
20753case "(($ac_try" in
20754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755  *) ac_try_echo=$ac_try;;
20756esac
20757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20759  ac_status=$?
20760  grep -v '^ *+' conftest.er1 >conftest.err
20761  rm -f conftest.er1
20762  cat conftest.err >&5
20763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764  (exit $ac_status); } >/dev/null && {
20765	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20766	 test ! -s conftest.err
20767       }; then
20768  ac_header_preproc=yes
20769else
20770  echo "$as_me: failed program was:" >&5
20771sed 's/^/| /' conftest.$ac_ext >&5
20772
20773  ac_header_preproc=no
20774fi
20775
20776rm -f conftest.err conftest.$ac_ext
20777{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20778echo "${ECHO_T}$ac_header_preproc" >&6; }
20779
20780# So?  What about this header?
20781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20782  yes:no: )
20783    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20784echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20785    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20786echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20787    ac_header_preproc=yes
20788    ;;
20789  no:yes:* )
20790    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20792    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20793echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20794    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20795echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20796    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20797echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20798    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20800    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20801echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20802
20803    ;;
20804esac
20805{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20808  echo $ECHO_N "(cached) $ECHO_C" >&6
20809else
20810  eval "$as_ac_Header=\$ac_header_preproc"
20811fi
20812ac_res=`eval echo '${'$as_ac_Header'}'`
20813	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20814echo "${ECHO_T}$ac_res" >&6; }
20815
20816fi
20817if test `eval echo '${'$as_ac_Header'}'` = yes; then
20818  cat >>confdefs.h <<_ACEOF
20819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20820_ACEOF
20821
20822fi
20823
20824done
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
20835do
20836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20838  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20841  echo $ECHO_N "(cached) $ECHO_C" >&6
20842fi
20843ac_res=`eval echo '${'$as_ac_Header'}'`
20844	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20845echo "${ECHO_T}$ac_res" >&6; }
20846else
20847  # Is the header compilable?
20848{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20849echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20850cat >conftest.$ac_ext <<_ACEOF
20851/* confdefs.h.  */
20852_ACEOF
20853cat confdefs.h >>conftest.$ac_ext
20854cat >>conftest.$ac_ext <<_ACEOF
20855/* end confdefs.h.  */
20856$ac_includes_default
20857#include <$ac_header>
20858_ACEOF
20859rm -f conftest.$ac_objext
20860if { (ac_try="$ac_compile"
20861case "(($ac_try" in
20862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863  *) ac_try_echo=$ac_try;;
20864esac
20865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866  (eval "$ac_compile") 2>conftest.er1
20867  ac_status=$?
20868  grep -v '^ *+' conftest.er1 >conftest.err
20869  rm -f conftest.er1
20870  cat conftest.err >&5
20871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872  (exit $ac_status); } && {
20873	 test -z "$ac_c_werror_flag" ||
20874	 test ! -s conftest.err
20875       } && test -s conftest.$ac_objext; then
20876  ac_header_compiler=yes
20877else
20878  echo "$as_me: failed program was:" >&5
20879sed 's/^/| /' conftest.$ac_ext >&5
20880
20881	ac_header_compiler=no
20882fi
20883
20884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20886echo "${ECHO_T}$ac_header_compiler" >&6; }
20887
20888# Is the header present?
20889{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20891cat >conftest.$ac_ext <<_ACEOF
20892/* confdefs.h.  */
20893_ACEOF
20894cat confdefs.h >>conftest.$ac_ext
20895cat >>conftest.$ac_ext <<_ACEOF
20896/* end confdefs.h.  */
20897#include <$ac_header>
20898_ACEOF
20899if { (ac_try="$ac_cpp conftest.$ac_ext"
20900case "(($ac_try" in
20901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902  *) ac_try_echo=$ac_try;;
20903esac
20904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20906  ac_status=$?
20907  grep -v '^ *+' conftest.er1 >conftest.err
20908  rm -f conftest.er1
20909  cat conftest.err >&5
20910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911  (exit $ac_status); } >/dev/null && {
20912	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20913	 test ! -s conftest.err
20914       }; then
20915  ac_header_preproc=yes
20916else
20917  echo "$as_me: failed program was:" >&5
20918sed 's/^/| /' conftest.$ac_ext >&5
20919
20920  ac_header_preproc=no
20921fi
20922
20923rm -f conftest.err conftest.$ac_ext
20924{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20925echo "${ECHO_T}$ac_header_preproc" >&6; }
20926
20927# So?  What about this header?
20928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20929  yes:no: )
20930    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20932    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20934    ac_header_preproc=yes
20935    ;;
20936  no:yes:* )
20937    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20939    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20940echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20941    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20943    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20944echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20945    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20947    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20949
20950    ;;
20951esac
20952{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20955  echo $ECHO_N "(cached) $ECHO_C" >&6
20956else
20957  eval "$as_ac_Header=\$ac_header_preproc"
20958fi
20959ac_res=`eval echo '${'$as_ac_Header'}'`
20960	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20961echo "${ECHO_T}$ac_res" >&6; }
20962
20963fi
20964if test `eval echo '${'$as_ac_Header'}'` = yes; then
20965  cat >>confdefs.h <<_ACEOF
20966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20967_ACEOF
20968
20969fi
20970
20971done
20972
20973
20974for ac_header in sys/un.h
20975do
20976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20978  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20981  echo $ECHO_N "(cached) $ECHO_C" >&6
20982fi
20983ac_res=`eval echo '${'$as_ac_Header'}'`
20984	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20985echo "${ECHO_T}$ac_res" >&6; }
20986else
20987  # Is the header compilable?
20988{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20990cat >conftest.$ac_ext <<_ACEOF
20991/* confdefs.h.  */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
20995/* end confdefs.h.  */
20996$ac_includes_default
20997#include <$ac_header>
20998_ACEOF
20999rm -f conftest.$ac_objext
21000if { (ac_try="$ac_compile"
21001case "(($ac_try" in
21002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003  *) ac_try_echo=$ac_try;;
21004esac
21005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006  (eval "$ac_compile") 2>conftest.er1
21007  ac_status=$?
21008  grep -v '^ *+' conftest.er1 >conftest.err
21009  rm -f conftest.er1
21010  cat conftest.err >&5
21011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012  (exit $ac_status); } && {
21013	 test -z "$ac_c_werror_flag" ||
21014	 test ! -s conftest.err
21015       } && test -s conftest.$ac_objext; then
21016  ac_header_compiler=yes
21017else
21018  echo "$as_me: failed program was:" >&5
21019sed 's/^/| /' conftest.$ac_ext >&5
21020
21021	ac_header_compiler=no
21022fi
21023
21024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21026echo "${ECHO_T}$ac_header_compiler" >&6; }
21027
21028# Is the header present?
21029{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21031cat >conftest.$ac_ext <<_ACEOF
21032/* confdefs.h.  */
21033_ACEOF
21034cat confdefs.h >>conftest.$ac_ext
21035cat >>conftest.$ac_ext <<_ACEOF
21036/* end confdefs.h.  */
21037#include <$ac_header>
21038_ACEOF
21039if { (ac_try="$ac_cpp conftest.$ac_ext"
21040case "(($ac_try" in
21041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042  *) ac_try_echo=$ac_try;;
21043esac
21044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21046  ac_status=$?
21047  grep -v '^ *+' conftest.er1 >conftest.err
21048  rm -f conftest.er1
21049  cat conftest.err >&5
21050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051  (exit $ac_status); } >/dev/null && {
21052	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21053	 test ! -s conftest.err
21054       }; then
21055  ac_header_preproc=yes
21056else
21057  echo "$as_me: failed program was:" >&5
21058sed 's/^/| /' conftest.$ac_ext >&5
21059
21060  ac_header_preproc=no
21061fi
21062
21063rm -f conftest.err conftest.$ac_ext
21064{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21065echo "${ECHO_T}$ac_header_preproc" >&6; }
21066
21067# So?  What about this header?
21068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21069  yes:no: )
21070    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21074    ac_header_preproc=yes
21075    ;;
21076  no:yes:* )
21077    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21079    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21080echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21081    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21083    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21084echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21085    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21087    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21089
21090    ;;
21091esac
21092{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095  echo $ECHO_N "(cached) $ECHO_C" >&6
21096else
21097  eval "$as_ac_Header=\$ac_header_preproc"
21098fi
21099ac_res=`eval echo '${'$as_ac_Header'}'`
21100	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21101echo "${ECHO_T}$ac_res" >&6; }
21102
21103fi
21104if test `eval echo '${'$as_ac_Header'}'` = yes; then
21105  cat >>confdefs.h <<_ACEOF
21106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21107_ACEOF
21108
21109fi
21110
21111done
21112
21113
21114
21115
21116
21117
21118
21119for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
21120do
21121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21123  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21126  echo $ECHO_N "(cached) $ECHO_C" >&6
21127fi
21128ac_res=`eval echo '${'$as_ac_Header'}'`
21129	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21130echo "${ECHO_T}$ac_res" >&6; }
21131else
21132  # Is the header compilable?
21133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21135cat >conftest.$ac_ext <<_ACEOF
21136/* confdefs.h.  */
21137_ACEOF
21138cat confdefs.h >>conftest.$ac_ext
21139cat >>conftest.$ac_ext <<_ACEOF
21140/* end confdefs.h.  */
21141$ac_includes_default
21142#include <$ac_header>
21143_ACEOF
21144rm -f conftest.$ac_objext
21145if { (ac_try="$ac_compile"
21146case "(($ac_try" in
21147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148  *) ac_try_echo=$ac_try;;
21149esac
21150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151  (eval "$ac_compile") 2>conftest.er1
21152  ac_status=$?
21153  grep -v '^ *+' conftest.er1 >conftest.err
21154  rm -f conftest.er1
21155  cat conftest.err >&5
21156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157  (exit $ac_status); } && {
21158	 test -z "$ac_c_werror_flag" ||
21159	 test ! -s conftest.err
21160       } && test -s conftest.$ac_objext; then
21161  ac_header_compiler=yes
21162else
21163  echo "$as_me: failed program was:" >&5
21164sed 's/^/| /' conftest.$ac_ext >&5
21165
21166	ac_header_compiler=no
21167fi
21168
21169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21171echo "${ECHO_T}$ac_header_compiler" >&6; }
21172
21173# Is the header present?
21174{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21176cat >conftest.$ac_ext <<_ACEOF
21177/* confdefs.h.  */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h.  */
21182#include <$ac_header>
21183_ACEOF
21184if { (ac_try="$ac_cpp conftest.$ac_ext"
21185case "(($ac_try" in
21186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187  *) ac_try_echo=$ac_try;;
21188esac
21189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21191  ac_status=$?
21192  grep -v '^ *+' conftest.er1 >conftest.err
21193  rm -f conftest.er1
21194  cat conftest.err >&5
21195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196  (exit $ac_status); } >/dev/null && {
21197	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21198	 test ! -s conftest.err
21199       }; then
21200  ac_header_preproc=yes
21201else
21202  echo "$as_me: failed program was:" >&5
21203sed 's/^/| /' conftest.$ac_ext >&5
21204
21205  ac_header_preproc=no
21206fi
21207
21208rm -f conftest.err conftest.$ac_ext
21209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21210echo "${ECHO_T}$ac_header_preproc" >&6; }
21211
21212# So?  What about this header?
21213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21214  yes:no: )
21215    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21219    ac_header_preproc=yes
21220    ;;
21221  no:yes:* )
21222    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21224    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21225echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21226    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21228    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21229echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21232    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21234
21235    ;;
21236esac
21237{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21240  echo $ECHO_N "(cached) $ECHO_C" >&6
21241else
21242  eval "$as_ac_Header=\$ac_header_preproc"
21243fi
21244ac_res=`eval echo '${'$as_ac_Header'}'`
21245	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21246echo "${ECHO_T}$ac_res" >&6; }
21247
21248fi
21249if test `eval echo '${'$as_ac_Header'}'` = yes; then
21250  cat >>confdefs.h <<_ACEOF
21251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21252_ACEOF
21253
21254fi
21255
21256done
21257
21258
21259
21260
21261
21262
21263
21264for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
21265do
21266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21268  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21271  echo $ECHO_N "(cached) $ECHO_C" >&6
21272fi
21273ac_res=`eval echo '${'$as_ac_Header'}'`
21274	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21275echo "${ECHO_T}$ac_res" >&6; }
21276else
21277  # Is the header compilable?
21278{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21280cat >conftest.$ac_ext <<_ACEOF
21281/* confdefs.h.  */
21282_ACEOF
21283cat confdefs.h >>conftest.$ac_ext
21284cat >>conftest.$ac_ext <<_ACEOF
21285/* end confdefs.h.  */
21286$ac_includes_default
21287#include <$ac_header>
21288_ACEOF
21289rm -f conftest.$ac_objext
21290if { (ac_try="$ac_compile"
21291case "(($ac_try" in
21292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293  *) ac_try_echo=$ac_try;;
21294esac
21295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296  (eval "$ac_compile") 2>conftest.er1
21297  ac_status=$?
21298  grep -v '^ *+' conftest.er1 >conftest.err
21299  rm -f conftest.er1
21300  cat conftest.err >&5
21301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302  (exit $ac_status); } && {
21303	 test -z "$ac_c_werror_flag" ||
21304	 test ! -s conftest.err
21305       } && test -s conftest.$ac_objext; then
21306  ac_header_compiler=yes
21307else
21308  echo "$as_me: failed program was:" >&5
21309sed 's/^/| /' conftest.$ac_ext >&5
21310
21311	ac_header_compiler=no
21312fi
21313
21314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21316echo "${ECHO_T}$ac_header_compiler" >&6; }
21317
21318# Is the header present?
21319{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21321cat >conftest.$ac_ext <<_ACEOF
21322/* confdefs.h.  */
21323_ACEOF
21324cat confdefs.h >>conftest.$ac_ext
21325cat >>conftest.$ac_ext <<_ACEOF
21326/* end confdefs.h.  */
21327#include <$ac_header>
21328_ACEOF
21329if { (ac_try="$ac_cpp conftest.$ac_ext"
21330case "(($ac_try" in
21331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332  *) ac_try_echo=$ac_try;;
21333esac
21334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21336  ac_status=$?
21337  grep -v '^ *+' conftest.er1 >conftest.err
21338  rm -f conftest.er1
21339  cat conftest.err >&5
21340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341  (exit $ac_status); } >/dev/null && {
21342	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21343	 test ! -s conftest.err
21344       }; then
21345  ac_header_preproc=yes
21346else
21347  echo "$as_me: failed program was:" >&5
21348sed 's/^/| /' conftest.$ac_ext >&5
21349
21350  ac_header_preproc=no
21351fi
21352
21353rm -f conftest.err conftest.$ac_ext
21354{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21355echo "${ECHO_T}$ac_header_preproc" >&6; }
21356
21357# So?  What about this header?
21358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21359  yes:no: )
21360    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21361echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21362    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21363echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21364    ac_header_preproc=yes
21365    ;;
21366  no:yes:* )
21367    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21368echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21369    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21370echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21371    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21372echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21373    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21374echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21375    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21376echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21377    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21378echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21379
21380    ;;
21381esac
21382{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21385  echo $ECHO_N "(cached) $ECHO_C" >&6
21386else
21387  eval "$as_ac_Header=\$ac_header_preproc"
21388fi
21389ac_res=`eval echo '${'$as_ac_Header'}'`
21390	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21391echo "${ECHO_T}$ac_res" >&6; }
21392
21393fi
21394if test `eval echo '${'$as_ac_Header'}'` = yes; then
21395  cat >>confdefs.h <<_ACEOF
21396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21397_ACEOF
21398
21399fi
21400
21401done
21402
21403
21404for ac_header in sys/sysmacros.h
21405do
21406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21411  echo $ECHO_N "(cached) $ECHO_C" >&6
21412fi
21413ac_res=`eval echo '${'$as_ac_Header'}'`
21414	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21415echo "${ECHO_T}$ac_res" >&6; }
21416else
21417  # Is the header compilable?
21418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21420cat >conftest.$ac_ext <<_ACEOF
21421/* confdefs.h.  */
21422_ACEOF
21423cat confdefs.h >>conftest.$ac_ext
21424cat >>conftest.$ac_ext <<_ACEOF
21425/* end confdefs.h.  */
21426$ac_includes_default
21427#include <$ac_header>
21428_ACEOF
21429rm -f conftest.$ac_objext
21430if { (ac_try="$ac_compile"
21431case "(($ac_try" in
21432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433  *) ac_try_echo=$ac_try;;
21434esac
21435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436  (eval "$ac_compile") 2>conftest.er1
21437  ac_status=$?
21438  grep -v '^ *+' conftest.er1 >conftest.err
21439  rm -f conftest.er1
21440  cat conftest.err >&5
21441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442  (exit $ac_status); } && {
21443	 test -z "$ac_c_werror_flag" ||
21444	 test ! -s conftest.err
21445       } && test -s conftest.$ac_objext; then
21446  ac_header_compiler=yes
21447else
21448  echo "$as_me: failed program was:" >&5
21449sed 's/^/| /' conftest.$ac_ext >&5
21450
21451	ac_header_compiler=no
21452fi
21453
21454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21456echo "${ECHO_T}$ac_header_compiler" >&6; }
21457
21458# Is the header present?
21459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21461cat >conftest.$ac_ext <<_ACEOF
21462/* confdefs.h.  */
21463_ACEOF
21464cat confdefs.h >>conftest.$ac_ext
21465cat >>conftest.$ac_ext <<_ACEOF
21466/* end confdefs.h.  */
21467#include <$ac_header>
21468_ACEOF
21469if { (ac_try="$ac_cpp conftest.$ac_ext"
21470case "(($ac_try" in
21471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472  *) ac_try_echo=$ac_try;;
21473esac
21474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21476  ac_status=$?
21477  grep -v '^ *+' conftest.er1 >conftest.err
21478  rm -f conftest.er1
21479  cat conftest.err >&5
21480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481  (exit $ac_status); } >/dev/null && {
21482	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21483	 test ! -s conftest.err
21484       }; then
21485  ac_header_preproc=yes
21486else
21487  echo "$as_me: failed program was:" >&5
21488sed 's/^/| /' conftest.$ac_ext >&5
21489
21490  ac_header_preproc=no
21491fi
21492
21493rm -f conftest.err conftest.$ac_ext
21494{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21495echo "${ECHO_T}$ac_header_preproc" >&6; }
21496
21497# So?  What about this header?
21498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21499  yes:no: )
21500    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21502    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21504    ac_header_preproc=yes
21505    ;;
21506  no:yes:* )
21507    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21509    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21510echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21511    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21513    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21514echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21515    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21517    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21519
21520    ;;
21521esac
21522{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525  echo $ECHO_N "(cached) $ECHO_C" >&6
21526else
21527  eval "$as_ac_Header=\$ac_header_preproc"
21528fi
21529ac_res=`eval echo '${'$as_ac_Header'}'`
21530	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21531echo "${ECHO_T}$ac_res" >&6; }
21532
21533fi
21534if test `eval echo '${'$as_ac_Header'}'` = yes; then
21535  cat >>confdefs.h <<_ACEOF
21536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21537_ACEOF
21538
21539fi
21540
21541done
21542
21543
21544
21545for ac_header in sys/syslog.h syslog.h
21546do
21547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21549  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21552  echo $ECHO_N "(cached) $ECHO_C" >&6
21553fi
21554ac_res=`eval echo '${'$as_ac_Header'}'`
21555	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21556echo "${ECHO_T}$ac_res" >&6; }
21557else
21558  # Is the header compilable?
21559{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21560echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21561cat >conftest.$ac_ext <<_ACEOF
21562/* confdefs.h.  */
21563_ACEOF
21564cat confdefs.h >>conftest.$ac_ext
21565cat >>conftest.$ac_ext <<_ACEOF
21566/* end confdefs.h.  */
21567$ac_includes_default
21568#include <$ac_header>
21569_ACEOF
21570rm -f conftest.$ac_objext
21571if { (ac_try="$ac_compile"
21572case "(($ac_try" in
21573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574  *) ac_try_echo=$ac_try;;
21575esac
21576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577  (eval "$ac_compile") 2>conftest.er1
21578  ac_status=$?
21579  grep -v '^ *+' conftest.er1 >conftest.err
21580  rm -f conftest.er1
21581  cat conftest.err >&5
21582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583  (exit $ac_status); } && {
21584	 test -z "$ac_c_werror_flag" ||
21585	 test ! -s conftest.err
21586       } && test -s conftest.$ac_objext; then
21587  ac_header_compiler=yes
21588else
21589  echo "$as_me: failed program was:" >&5
21590sed 's/^/| /' conftest.$ac_ext >&5
21591
21592	ac_header_compiler=no
21593fi
21594
21595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21597echo "${ECHO_T}$ac_header_compiler" >&6; }
21598
21599# Is the header present?
21600{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21602cat >conftest.$ac_ext <<_ACEOF
21603/* confdefs.h.  */
21604_ACEOF
21605cat confdefs.h >>conftest.$ac_ext
21606cat >>conftest.$ac_ext <<_ACEOF
21607/* end confdefs.h.  */
21608#include <$ac_header>
21609_ACEOF
21610if { (ac_try="$ac_cpp conftest.$ac_ext"
21611case "(($ac_try" in
21612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613  *) ac_try_echo=$ac_try;;
21614esac
21615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21617  ac_status=$?
21618  grep -v '^ *+' conftest.er1 >conftest.err
21619  rm -f conftest.er1
21620  cat conftest.err >&5
21621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622  (exit $ac_status); } >/dev/null && {
21623	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21624	 test ! -s conftest.err
21625       }; then
21626  ac_header_preproc=yes
21627else
21628  echo "$as_me: failed program was:" >&5
21629sed 's/^/| /' conftest.$ac_ext >&5
21630
21631  ac_header_preproc=no
21632fi
21633
21634rm -f conftest.err conftest.$ac_ext
21635{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21636echo "${ECHO_T}$ac_header_preproc" >&6; }
21637
21638# So?  What about this header?
21639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21640  yes:no: )
21641    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21643    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21645    ac_header_preproc=yes
21646    ;;
21647  no:yes:* )
21648    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21650    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21651echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21652    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21654    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21655echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21656    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21658    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21660
21661    ;;
21662esac
21663{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666  echo $ECHO_N "(cached) $ECHO_C" >&6
21667else
21668  eval "$as_ac_Header=\$ac_header_preproc"
21669fi
21670ac_res=`eval echo '${'$as_ac_Header'}'`
21671	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21672echo "${ECHO_T}$ac_res" >&6; }
21673
21674fi
21675if test `eval echo '${'$as_ac_Header'}'` = yes; then
21676  cat >>confdefs.h <<_ACEOF
21677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21678_ACEOF
21679
21680fi
21681
21682done
21683
21684
21685
21686for ac_header in langinfo.h locale.h
21687do
21688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21690  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21693  echo $ECHO_N "(cached) $ECHO_C" >&6
21694fi
21695ac_res=`eval echo '${'$as_ac_Header'}'`
21696	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21697echo "${ECHO_T}$ac_res" >&6; }
21698else
21699  # Is the header compilable?
21700{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21702cat >conftest.$ac_ext <<_ACEOF
21703/* confdefs.h.  */
21704_ACEOF
21705cat confdefs.h >>conftest.$ac_ext
21706cat >>conftest.$ac_ext <<_ACEOF
21707/* end confdefs.h.  */
21708$ac_includes_default
21709#include <$ac_header>
21710_ACEOF
21711rm -f conftest.$ac_objext
21712if { (ac_try="$ac_compile"
21713case "(($ac_try" in
21714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715  *) ac_try_echo=$ac_try;;
21716esac
21717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21718  (eval "$ac_compile") 2>conftest.er1
21719  ac_status=$?
21720  grep -v '^ *+' conftest.er1 >conftest.err
21721  rm -f conftest.er1
21722  cat conftest.err >&5
21723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724  (exit $ac_status); } && {
21725	 test -z "$ac_c_werror_flag" ||
21726	 test ! -s conftest.err
21727       } && test -s conftest.$ac_objext; then
21728  ac_header_compiler=yes
21729else
21730  echo "$as_me: failed program was:" >&5
21731sed 's/^/| /' conftest.$ac_ext >&5
21732
21733	ac_header_compiler=no
21734fi
21735
21736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21738echo "${ECHO_T}$ac_header_compiler" >&6; }
21739
21740# Is the header present?
21741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21743cat >conftest.$ac_ext <<_ACEOF
21744/* confdefs.h.  */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
21748/* end confdefs.h.  */
21749#include <$ac_header>
21750_ACEOF
21751if { (ac_try="$ac_cpp conftest.$ac_ext"
21752case "(($ac_try" in
21753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754  *) ac_try_echo=$ac_try;;
21755esac
21756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21758  ac_status=$?
21759  grep -v '^ *+' conftest.er1 >conftest.err
21760  rm -f conftest.er1
21761  cat conftest.err >&5
21762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763  (exit $ac_status); } >/dev/null && {
21764	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21765	 test ! -s conftest.err
21766       }; then
21767  ac_header_preproc=yes
21768else
21769  echo "$as_me: failed program was:" >&5
21770sed 's/^/| /' conftest.$ac_ext >&5
21771
21772  ac_header_preproc=no
21773fi
21774
21775rm -f conftest.err conftest.$ac_ext
21776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21777echo "${ECHO_T}$ac_header_preproc" >&6; }
21778
21779# So?  What about this header?
21780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21781  yes:no: )
21782    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21786    ac_header_preproc=yes
21787    ;;
21788  no:yes:* )
21789    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21791    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21792echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21793    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21795    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21796echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21799    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21801
21802    ;;
21803esac
21804{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807  echo $ECHO_N "(cached) $ECHO_C" >&6
21808else
21809  eval "$as_ac_Header=\$ac_header_preproc"
21810fi
21811ac_res=`eval echo '${'$as_ac_Header'}'`
21812	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21813echo "${ECHO_T}$ac_res" >&6; }
21814
21815fi
21816if test `eval echo '${'$as_ac_Header'}'` = yes; then
21817  cat >>confdefs.h <<_ACEOF
21818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21819_ACEOF
21820
21821fi
21822
21823done
21824
21825
21826for ac_header in xfs/libxfs.h
21827do
21828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21830  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833  echo $ECHO_N "(cached) $ECHO_C" >&6
21834fi
21835ac_res=`eval echo '${'$as_ac_Header'}'`
21836	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21837echo "${ECHO_T}$ac_res" >&6; }
21838else
21839  # Is the header compilable?
21840{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21842cat >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$ac_includes_default
21849#include <$ac_header>
21850_ACEOF
21851rm -f conftest.$ac_objext
21852if { (ac_try="$ac_compile"
21853case "(($ac_try" in
21854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855  *) ac_try_echo=$ac_try;;
21856esac
21857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858  (eval "$ac_compile") 2>conftest.er1
21859  ac_status=$?
21860  grep -v '^ *+' conftest.er1 >conftest.err
21861  rm -f conftest.er1
21862  cat conftest.err >&5
21863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864  (exit $ac_status); } && {
21865	 test -z "$ac_c_werror_flag" ||
21866	 test ! -s conftest.err
21867       } && test -s conftest.$ac_objext; then
21868  ac_header_compiler=yes
21869else
21870  echo "$as_me: failed program was:" >&5
21871sed 's/^/| /' conftest.$ac_ext >&5
21872
21873	ac_header_compiler=no
21874fi
21875
21876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21878echo "${ECHO_T}$ac_header_compiler" >&6; }
21879
21880# Is the header present?
21881{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21883cat >conftest.$ac_ext <<_ACEOF
21884/* confdefs.h.  */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h.  */
21889#include <$ac_header>
21890_ACEOF
21891if { (ac_try="$ac_cpp conftest.$ac_ext"
21892case "(($ac_try" in
21893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894  *) ac_try_echo=$ac_try;;
21895esac
21896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21898  ac_status=$?
21899  grep -v '^ *+' conftest.er1 >conftest.err
21900  rm -f conftest.er1
21901  cat conftest.err >&5
21902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903  (exit $ac_status); } >/dev/null && {
21904	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21905	 test ! -s conftest.err
21906       }; then
21907  ac_header_preproc=yes
21908else
21909  echo "$as_me: failed program was:" >&5
21910sed 's/^/| /' conftest.$ac_ext >&5
21911
21912  ac_header_preproc=no
21913fi
21914
21915rm -f conftest.err conftest.$ac_ext
21916{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21917echo "${ECHO_T}$ac_header_preproc" >&6; }
21918
21919# So?  What about this header?
21920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21921  yes:no: )
21922    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21926    ac_header_preproc=yes
21927    ;;
21928  no:yes:* )
21929    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21931    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21932echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21933    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21935    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21936echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21937    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21939    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21941
21942    ;;
21943esac
21944{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21947  echo $ECHO_N "(cached) $ECHO_C" >&6
21948else
21949  eval "$as_ac_Header=\$ac_header_preproc"
21950fi
21951ac_res=`eval echo '${'$as_ac_Header'}'`
21952	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21953echo "${ECHO_T}$ac_res" >&6; }
21954
21955fi
21956if test `eval echo '${'$as_ac_Header'}'` = yes; then
21957  cat >>confdefs.h <<_ACEOF
21958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21959_ACEOF
21960
21961fi
21962
21963done
21964
21965
21966
21967for ac_header in rpcsvc/yp_prot.h
21968do
21969as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21970{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21973  echo $ECHO_N "(cached) $ECHO_C" >&6
21974else
21975  cat >conftest.$ac_ext <<_ACEOF
21976/* confdefs.h.  */
21977_ACEOF
21978cat confdefs.h >>conftest.$ac_ext
21979cat >>conftest.$ac_ext <<_ACEOF
21980/* end confdefs.h.  */
21981
21982#if HAVE_RPC_RPC_H
21983#include <rpc/rpc.h>
21984#endif
21985
21986
21987#include <$ac_header>
21988_ACEOF
21989rm -f conftest.$ac_objext
21990if { (ac_try="$ac_compile"
21991case "(($ac_try" in
21992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993  *) ac_try_echo=$ac_try;;
21994esac
21995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996  (eval "$ac_compile") 2>conftest.er1
21997  ac_status=$?
21998  grep -v '^ *+' conftest.er1 >conftest.err
21999  rm -f conftest.er1
22000  cat conftest.err >&5
22001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002  (exit $ac_status); } && {
22003	 test -z "$ac_c_werror_flag" ||
22004	 test ! -s conftest.err
22005       } && test -s conftest.$ac_objext; then
22006  eval "$as_ac_Header=yes"
22007else
22008  echo "$as_me: failed program was:" >&5
22009sed 's/^/| /' conftest.$ac_ext >&5
22010
22011	eval "$as_ac_Header=no"
22012fi
22013
22014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015fi
22016ac_res=`eval echo '${'$as_ac_Header'}'`
22017	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22018echo "${ECHO_T}$ac_res" >&6; }
22019if test `eval echo '${'$as_ac_Header'}'` = yes; then
22020  cat >>confdefs.h <<_ACEOF
22021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22022_ACEOF
22023
22024fi
22025
22026done
22027
22028
22029## These fail to compile on IRIX so just check for their presence
22030
22031for ac_header in sys/mode.h
22032do
22033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22035  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22038  echo $ECHO_N "(cached) $ECHO_C" >&6
22039fi
22040ac_res=`eval echo '${'$as_ac_Header'}'`
22041	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22042echo "${ECHO_T}$ac_res" >&6; }
22043else
22044  # Is the header compilable?
22045{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22047cat >conftest.$ac_ext <<_ACEOF
22048/* confdefs.h.  */
22049_ACEOF
22050cat confdefs.h >>conftest.$ac_ext
22051cat >>conftest.$ac_ext <<_ACEOF
22052/* end confdefs.h.  */
22053$ac_includes_default
22054#include <$ac_header>
22055_ACEOF
22056rm -f conftest.$ac_objext
22057if { (ac_try="$ac_compile"
22058case "(($ac_try" in
22059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060  *) ac_try_echo=$ac_try;;
22061esac
22062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063  (eval "$ac_compile") 2>conftest.er1
22064  ac_status=$?
22065  grep -v '^ *+' conftest.er1 >conftest.err
22066  rm -f conftest.er1
22067  cat conftest.err >&5
22068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069  (exit $ac_status); } && {
22070	 test -z "$ac_c_werror_flag" ||
22071	 test ! -s conftest.err
22072       } && test -s conftest.$ac_objext; then
22073  ac_header_compiler=yes
22074else
22075  echo "$as_me: failed program was:" >&5
22076sed 's/^/| /' conftest.$ac_ext >&5
22077
22078	ac_header_compiler=no
22079fi
22080
22081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22083echo "${ECHO_T}$ac_header_compiler" >&6; }
22084
22085# Is the header present?
22086{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22088cat >conftest.$ac_ext <<_ACEOF
22089/* confdefs.h.  */
22090_ACEOF
22091cat confdefs.h >>conftest.$ac_ext
22092cat >>conftest.$ac_ext <<_ACEOF
22093/* end confdefs.h.  */
22094#include <$ac_header>
22095_ACEOF
22096if { (ac_try="$ac_cpp conftest.$ac_ext"
22097case "(($ac_try" in
22098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099  *) ac_try_echo=$ac_try;;
22100esac
22101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22103  ac_status=$?
22104  grep -v '^ *+' conftest.er1 >conftest.err
22105  rm -f conftest.er1
22106  cat conftest.err >&5
22107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108  (exit $ac_status); } >/dev/null && {
22109	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22110	 test ! -s conftest.err
22111       }; then
22112  ac_header_preproc=yes
22113else
22114  echo "$as_me: failed program was:" >&5
22115sed 's/^/| /' conftest.$ac_ext >&5
22116
22117  ac_header_preproc=no
22118fi
22119
22120rm -f conftest.err conftest.$ac_ext
22121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22122echo "${ECHO_T}$ac_header_preproc" >&6; }
22123
22124# So?  What about this header?
22125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22126  yes:no: )
22127    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22129    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22131    ac_header_preproc=yes
22132    ;;
22133  no:yes:* )
22134    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22136    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22137echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22138    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22140    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22141echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22142    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22144    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22146
22147    ;;
22148esac
22149{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22152  echo $ECHO_N "(cached) $ECHO_C" >&6
22153else
22154  eval "$as_ac_Header=\$ac_header_preproc"
22155fi
22156ac_res=`eval echo '${'$as_ac_Header'}'`
22157	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22158echo "${ECHO_T}$ac_res" >&6; }
22159
22160fi
22161if test `eval echo '${'$as_ac_Header'}'` = yes; then
22162  cat >>confdefs.h <<_ACEOF
22163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22164_ACEOF
22165
22166fi
22167
22168done
22169
22170
22171# Look for Darwin headers
22172old_CPPFLAGS="$CPPFLAGS"
22173CPPFLAGS="-Iinclude $CPPFLAGS"
22174
22175for ac_header in CoreFoundation/CFStringEncodingConverter.h
22176do
22177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22179  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22182  echo $ECHO_N "(cached) $ECHO_C" >&6
22183fi
22184ac_res=`eval echo '${'$as_ac_Header'}'`
22185	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22186echo "${ECHO_T}$ac_res" >&6; }
22187else
22188  # Is the header compilable?
22189{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22191cat >conftest.$ac_ext <<_ACEOF
22192/* confdefs.h.  */
22193_ACEOF
22194cat confdefs.h >>conftest.$ac_ext
22195cat >>conftest.$ac_ext <<_ACEOF
22196/* end confdefs.h.  */
22197$ac_includes_default
22198#include <$ac_header>
22199_ACEOF
22200rm -f conftest.$ac_objext
22201if { (ac_try="$ac_compile"
22202case "(($ac_try" in
22203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204  *) ac_try_echo=$ac_try;;
22205esac
22206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207  (eval "$ac_compile") 2>conftest.er1
22208  ac_status=$?
22209  grep -v '^ *+' conftest.er1 >conftest.err
22210  rm -f conftest.er1
22211  cat conftest.err >&5
22212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213  (exit $ac_status); } && {
22214	 test -z "$ac_c_werror_flag" ||
22215	 test ! -s conftest.err
22216       } && test -s conftest.$ac_objext; then
22217  ac_header_compiler=yes
22218else
22219  echo "$as_me: failed program was:" >&5
22220sed 's/^/| /' conftest.$ac_ext >&5
22221
22222	ac_header_compiler=no
22223fi
22224
22225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22226{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22227echo "${ECHO_T}$ac_header_compiler" >&6; }
22228
22229# Is the header present?
22230{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22232cat >conftest.$ac_ext <<_ACEOF
22233/* confdefs.h.  */
22234_ACEOF
22235cat confdefs.h >>conftest.$ac_ext
22236cat >>conftest.$ac_ext <<_ACEOF
22237/* end confdefs.h.  */
22238#include <$ac_header>
22239_ACEOF
22240if { (ac_try="$ac_cpp conftest.$ac_ext"
22241case "(($ac_try" in
22242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243  *) ac_try_echo=$ac_try;;
22244esac
22245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22247  ac_status=$?
22248  grep -v '^ *+' conftest.er1 >conftest.err
22249  rm -f conftest.er1
22250  cat conftest.err >&5
22251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252  (exit $ac_status); } >/dev/null && {
22253	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22254	 test ! -s conftest.err
22255       }; then
22256  ac_header_preproc=yes
22257else
22258  echo "$as_me: failed program was:" >&5
22259sed 's/^/| /' conftest.$ac_ext >&5
22260
22261  ac_header_preproc=no
22262fi
22263
22264rm -f conftest.err conftest.$ac_ext
22265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22266echo "${ECHO_T}$ac_header_preproc" >&6; }
22267
22268# So?  What about this header?
22269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22270  yes:no: )
22271    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22273    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22275    ac_header_preproc=yes
22276    ;;
22277  no:yes:* )
22278    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22280    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22281echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22282    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22284    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22285echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22286    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22288    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22290
22291    ;;
22292esac
22293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22296  echo $ECHO_N "(cached) $ECHO_C" >&6
22297else
22298  eval "$as_ac_Header=\$ac_header_preproc"
22299fi
22300ac_res=`eval echo '${'$as_ac_Header'}'`
22301	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22302echo "${ECHO_T}$ac_res" >&6; }
22303
22304fi
22305if test `eval echo '${'$as_ac_Header'}'` = yes; then
22306  cat >>confdefs.h <<_ACEOF
22307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22308_ACEOF
22309
22310else
22311
22312for ac_header in CFStringEncodingConverter.h
22313do
22314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22316  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22319  echo $ECHO_N "(cached) $ECHO_C" >&6
22320fi
22321ac_res=`eval echo '${'$as_ac_Header'}'`
22322	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22323echo "${ECHO_T}$ac_res" >&6; }
22324else
22325  # Is the header compilable?
22326{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22328cat >conftest.$ac_ext <<_ACEOF
22329/* confdefs.h.  */
22330_ACEOF
22331cat confdefs.h >>conftest.$ac_ext
22332cat >>conftest.$ac_ext <<_ACEOF
22333/* end confdefs.h.  */
22334$ac_includes_default
22335#include <$ac_header>
22336_ACEOF
22337rm -f conftest.$ac_objext
22338if { (ac_try="$ac_compile"
22339case "(($ac_try" in
22340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341  *) ac_try_echo=$ac_try;;
22342esac
22343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344  (eval "$ac_compile") 2>conftest.er1
22345  ac_status=$?
22346  grep -v '^ *+' conftest.er1 >conftest.err
22347  rm -f conftest.er1
22348  cat conftest.err >&5
22349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350  (exit $ac_status); } && {
22351	 test -z "$ac_c_werror_flag" ||
22352	 test ! -s conftest.err
22353       } && test -s conftest.$ac_objext; then
22354  ac_header_compiler=yes
22355else
22356  echo "$as_me: failed program was:" >&5
22357sed 's/^/| /' conftest.$ac_ext >&5
22358
22359	ac_header_compiler=no
22360fi
22361
22362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22364echo "${ECHO_T}$ac_header_compiler" >&6; }
22365
22366# Is the header present?
22367{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22369cat >conftest.$ac_ext <<_ACEOF
22370/* confdefs.h.  */
22371_ACEOF
22372cat confdefs.h >>conftest.$ac_ext
22373cat >>conftest.$ac_ext <<_ACEOF
22374/* end confdefs.h.  */
22375#include <$ac_header>
22376_ACEOF
22377if { (ac_try="$ac_cpp conftest.$ac_ext"
22378case "(($ac_try" in
22379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380  *) ac_try_echo=$ac_try;;
22381esac
22382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22384  ac_status=$?
22385  grep -v '^ *+' conftest.er1 >conftest.err
22386  rm -f conftest.er1
22387  cat conftest.err >&5
22388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389  (exit $ac_status); } >/dev/null && {
22390	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22391	 test ! -s conftest.err
22392       }; then
22393  ac_header_preproc=yes
22394else
22395  echo "$as_me: failed program was:" >&5
22396sed 's/^/| /' conftest.$ac_ext >&5
22397
22398  ac_header_preproc=no
22399fi
22400
22401rm -f conftest.err conftest.$ac_ext
22402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22403echo "${ECHO_T}$ac_header_preproc" >&6; }
22404
22405# So?  What about this header?
22406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22407  yes:no: )
22408    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22412    ac_header_preproc=yes
22413    ;;
22414  no:yes:* )
22415    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22417    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22418echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22419    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22421    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22422echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22423    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22425    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22427
22428    ;;
22429esac
22430{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22433  echo $ECHO_N "(cached) $ECHO_C" >&6
22434else
22435  eval "$as_ac_Header=\$ac_header_preproc"
22436fi
22437ac_res=`eval echo '${'$as_ac_Header'}'`
22438	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22439echo "${ECHO_T}$ac_res" >&6; }
22440
22441fi
22442if test `eval echo '${'$as_ac_Header'}'` = yes; then
22443  cat >>confdefs.h <<_ACEOF
22444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22445_ACEOF
22446
22447fi
22448
22449done
22450
22451fi
22452
22453done
22454
22455CPPFLAGS="$old_CPPFLAGS"
22456
22457# In valgrind 1.0.x, it's just valgrind.h.  In 1.9.x+ there's a
22458# subdirectory of headers.
22459
22460
22461
22462for ac_header in valgrind.h valgrind/valgrind.h valgrind/memcheck.h
22463do
22464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22466  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22469  echo $ECHO_N "(cached) $ECHO_C" >&6
22470fi
22471ac_res=`eval echo '${'$as_ac_Header'}'`
22472	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22473echo "${ECHO_T}$ac_res" >&6; }
22474else
22475  # Is the header compilable?
22476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22478cat >conftest.$ac_ext <<_ACEOF
22479/* confdefs.h.  */
22480_ACEOF
22481cat confdefs.h >>conftest.$ac_ext
22482cat >>conftest.$ac_ext <<_ACEOF
22483/* end confdefs.h.  */
22484$ac_includes_default
22485#include <$ac_header>
22486_ACEOF
22487rm -f conftest.$ac_objext
22488if { (ac_try="$ac_compile"
22489case "(($ac_try" in
22490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491  *) ac_try_echo=$ac_try;;
22492esac
22493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494  (eval "$ac_compile") 2>conftest.er1
22495  ac_status=$?
22496  grep -v '^ *+' conftest.er1 >conftest.err
22497  rm -f conftest.er1
22498  cat conftest.err >&5
22499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500  (exit $ac_status); } && {
22501	 test -z "$ac_c_werror_flag" ||
22502	 test ! -s conftest.err
22503       } && test -s conftest.$ac_objext; then
22504  ac_header_compiler=yes
22505else
22506  echo "$as_me: failed program was:" >&5
22507sed 's/^/| /' conftest.$ac_ext >&5
22508
22509	ac_header_compiler=no
22510fi
22511
22512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22514echo "${ECHO_T}$ac_header_compiler" >&6; }
22515
22516# Is the header present?
22517{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22519cat >conftest.$ac_ext <<_ACEOF
22520/* confdefs.h.  */
22521_ACEOF
22522cat confdefs.h >>conftest.$ac_ext
22523cat >>conftest.$ac_ext <<_ACEOF
22524/* end confdefs.h.  */
22525#include <$ac_header>
22526_ACEOF
22527if { (ac_try="$ac_cpp conftest.$ac_ext"
22528case "(($ac_try" in
22529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530  *) ac_try_echo=$ac_try;;
22531esac
22532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22534  ac_status=$?
22535  grep -v '^ *+' conftest.er1 >conftest.err
22536  rm -f conftest.er1
22537  cat conftest.err >&5
22538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539  (exit $ac_status); } >/dev/null && {
22540	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22541	 test ! -s conftest.err
22542       }; then
22543  ac_header_preproc=yes
22544else
22545  echo "$as_me: failed program was:" >&5
22546sed 's/^/| /' conftest.$ac_ext >&5
22547
22548  ac_header_preproc=no
22549fi
22550
22551rm -f conftest.err conftest.$ac_ext
22552{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22553echo "${ECHO_T}$ac_header_preproc" >&6; }
22554
22555# So?  What about this header?
22556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22557  yes:no: )
22558    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22560    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22562    ac_header_preproc=yes
22563    ;;
22564  no:yes:* )
22565    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22567    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22568echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22569    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22571    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22572echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22573    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22575    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22577
22578    ;;
22579esac
22580{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22583  echo $ECHO_N "(cached) $ECHO_C" >&6
22584else
22585  eval "$as_ac_Header=\$ac_header_preproc"
22586fi
22587ac_res=`eval echo '${'$as_ac_Header'}'`
22588	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22589echo "${ECHO_T}$ac_res" >&6; }
22590
22591fi
22592if test `eval echo '${'$as_ac_Header'}'` = yes; then
22593  cat >>confdefs.h <<_ACEOF
22594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22595_ACEOF
22596
22597fi
22598
22599done
22600
22601
22602# check for linux on amd64 since valgrind is not quite there yet
22603case "$host_os" in
22604	*linux*)
22605		case "$UNAME_P" in
22606			*x86_64*)
22607
22608cat >>confdefs.h <<\_ACEOF
22609#define HAVE_64BIT_LINUX 1
22610_ACEOF
22611
22612				;;
22613		esac
22614		;;
22615esac
22616
22617
22618#
22619# HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
22620# This causes configure to fail to detect it. Check for shadow separately on HPUX.
22621#
22622case "$host_os" in
22623    *hpux*)
22624		cat >conftest.$ac_ext <<_ACEOF
22625/* confdefs.h.  */
22626_ACEOF
22627cat confdefs.h >>conftest.$ac_ext
22628cat >>conftest.$ac_ext <<_ACEOF
22629/* end confdefs.h.  */
22630#include <shadow.h>
22631int
22632main ()
22633{
22634struct spwd testme
22635  ;
22636  return 0;
22637}
22638_ACEOF
22639rm -f conftest.$ac_objext
22640if { (ac_try="$ac_compile"
22641case "(($ac_try" in
22642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643  *) ac_try_echo=$ac_try;;
22644esac
22645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646  (eval "$ac_compile") 2>conftest.er1
22647  ac_status=$?
22648  grep -v '^ *+' conftest.er1 >conftest.err
22649  rm -f conftest.er1
22650  cat conftest.err >&5
22651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652  (exit $ac_status); } && {
22653	 test -z "$ac_c_werror_flag" ||
22654	 test ! -s conftest.err
22655       } && test -s conftest.$ac_objext; then
22656  ac_cv_header_shadow_h=yes
22657else
22658  echo "$as_me: failed program was:" >&5
22659sed 's/^/| /' conftest.$ac_ext >&5
22660
22661	ac_cv_header_shadow_h=no
22662fi
22663
22664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665		if test x"$ac_cv_header_shadow_h" = x"yes"; then
22666
22667cat >>confdefs.h <<\_ACEOF
22668#define HAVE_SHADOW_H 1
22669_ACEOF
22670
22671		fi
22672	;;
22673esac
22674
22675for ac_header in shadow.h
22676do
22677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22679  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22682  echo $ECHO_N "(cached) $ECHO_C" >&6
22683fi
22684ac_res=`eval echo '${'$as_ac_Header'}'`
22685	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22686echo "${ECHO_T}$ac_res" >&6; }
22687else
22688  # Is the header compilable?
22689{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22691cat >conftest.$ac_ext <<_ACEOF
22692/* confdefs.h.  */
22693_ACEOF
22694cat confdefs.h >>conftest.$ac_ext
22695cat >>conftest.$ac_ext <<_ACEOF
22696/* end confdefs.h.  */
22697$ac_includes_default
22698#include <$ac_header>
22699_ACEOF
22700rm -f conftest.$ac_objext
22701if { (ac_try="$ac_compile"
22702case "(($ac_try" in
22703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704  *) ac_try_echo=$ac_try;;
22705esac
22706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707  (eval "$ac_compile") 2>conftest.er1
22708  ac_status=$?
22709  grep -v '^ *+' conftest.er1 >conftest.err
22710  rm -f conftest.er1
22711  cat conftest.err >&5
22712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713  (exit $ac_status); } && {
22714	 test -z "$ac_c_werror_flag" ||
22715	 test ! -s conftest.err
22716       } && test -s conftest.$ac_objext; then
22717  ac_header_compiler=yes
22718else
22719  echo "$as_me: failed program was:" >&5
22720sed 's/^/| /' conftest.$ac_ext >&5
22721
22722	ac_header_compiler=no
22723fi
22724
22725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22727echo "${ECHO_T}$ac_header_compiler" >&6; }
22728
22729# Is the header present?
22730{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22732cat >conftest.$ac_ext <<_ACEOF
22733/* confdefs.h.  */
22734_ACEOF
22735cat confdefs.h >>conftest.$ac_ext
22736cat >>conftest.$ac_ext <<_ACEOF
22737/* end confdefs.h.  */
22738#include <$ac_header>
22739_ACEOF
22740if { (ac_try="$ac_cpp conftest.$ac_ext"
22741case "(($ac_try" in
22742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743  *) ac_try_echo=$ac_try;;
22744esac
22745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22747  ac_status=$?
22748  grep -v '^ *+' conftest.er1 >conftest.err
22749  rm -f conftest.er1
22750  cat conftest.err >&5
22751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752  (exit $ac_status); } >/dev/null && {
22753	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22754	 test ! -s conftest.err
22755       }; then
22756  ac_header_preproc=yes
22757else
22758  echo "$as_me: failed program was:" >&5
22759sed 's/^/| /' conftest.$ac_ext >&5
22760
22761  ac_header_preproc=no
22762fi
22763
22764rm -f conftest.err conftest.$ac_ext
22765{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22766echo "${ECHO_T}$ac_header_preproc" >&6; }
22767
22768# So?  What about this header?
22769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22770  yes:no: )
22771    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22773    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22775    ac_header_preproc=yes
22776    ;;
22777  no:yes:* )
22778    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22780    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22781echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22782    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22784    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22785echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22786    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22788    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22790
22791    ;;
22792esac
22793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22796  echo $ECHO_N "(cached) $ECHO_C" >&6
22797else
22798  eval "$as_ac_Header=\$ac_header_preproc"
22799fi
22800ac_res=`eval echo '${'$as_ac_Header'}'`
22801	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22802echo "${ECHO_T}$ac_res" >&6; }
22803
22804fi
22805if test `eval echo '${'$as_ac_Header'}'` = yes; then
22806  cat >>confdefs.h <<_ACEOF
22807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22808_ACEOF
22809
22810fi
22811
22812done
22813
22814
22815
22816
22817
22818
22819for ac_header in nss.h nss_common.h nsswitch.h ns_api.h sys/security.h
22820do
22821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22823  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22826  echo $ECHO_N "(cached) $ECHO_C" >&6
22827fi
22828ac_res=`eval echo '${'$as_ac_Header'}'`
22829	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22830echo "${ECHO_T}$ac_res" >&6; }
22831else
22832  # Is the header compilable?
22833{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22835cat >conftest.$ac_ext <<_ACEOF
22836/* confdefs.h.  */
22837_ACEOF
22838cat confdefs.h >>conftest.$ac_ext
22839cat >>conftest.$ac_ext <<_ACEOF
22840/* end confdefs.h.  */
22841$ac_includes_default
22842#include <$ac_header>
22843_ACEOF
22844rm -f conftest.$ac_objext
22845if { (ac_try="$ac_compile"
22846case "(($ac_try" in
22847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22848  *) ac_try_echo=$ac_try;;
22849esac
22850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22851  (eval "$ac_compile") 2>conftest.er1
22852  ac_status=$?
22853  grep -v '^ *+' conftest.er1 >conftest.err
22854  rm -f conftest.er1
22855  cat conftest.err >&5
22856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857  (exit $ac_status); } && {
22858	 test -z "$ac_c_werror_flag" ||
22859	 test ! -s conftest.err
22860       } && test -s conftest.$ac_objext; then
22861  ac_header_compiler=yes
22862else
22863  echo "$as_me: failed program was:" >&5
22864sed 's/^/| /' conftest.$ac_ext >&5
22865
22866	ac_header_compiler=no
22867fi
22868
22869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22870{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22871echo "${ECHO_T}$ac_header_compiler" >&6; }
22872
22873# Is the header present?
22874{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22876cat >conftest.$ac_ext <<_ACEOF
22877/* confdefs.h.  */
22878_ACEOF
22879cat confdefs.h >>conftest.$ac_ext
22880cat >>conftest.$ac_ext <<_ACEOF
22881/* end confdefs.h.  */
22882#include <$ac_header>
22883_ACEOF
22884if { (ac_try="$ac_cpp conftest.$ac_ext"
22885case "(($ac_try" in
22886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887  *) ac_try_echo=$ac_try;;
22888esac
22889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22891  ac_status=$?
22892  grep -v '^ *+' conftest.er1 >conftest.err
22893  rm -f conftest.er1
22894  cat conftest.err >&5
22895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896  (exit $ac_status); } >/dev/null && {
22897	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22898	 test ! -s conftest.err
22899       }; then
22900  ac_header_preproc=yes
22901else
22902  echo "$as_me: failed program was:" >&5
22903sed 's/^/| /' conftest.$ac_ext >&5
22904
22905  ac_header_preproc=no
22906fi
22907
22908rm -f conftest.err conftest.$ac_ext
22909{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22910echo "${ECHO_T}$ac_header_preproc" >&6; }
22911
22912# So?  What about this header?
22913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22914  yes:no: )
22915    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22916echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22917    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22918echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22919    ac_header_preproc=yes
22920    ;;
22921  no:yes:* )
22922    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22924    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22925echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22926    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22927echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22928    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22929echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22930    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22931echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22932    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22933echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22934
22935    ;;
22936esac
22937{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22940  echo $ECHO_N "(cached) $ECHO_C" >&6
22941else
22942  eval "$as_ac_Header=\$ac_header_preproc"
22943fi
22944ac_res=`eval echo '${'$as_ac_Header'}'`
22945	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22946echo "${ECHO_T}$ac_res" >&6; }
22947
22948fi
22949if test `eval echo '${'$as_ac_Header'}'` = yes; then
22950  cat >>confdefs.h <<_ACEOF
22951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22952_ACEOF
22953
22954fi
22955
22956done
22957
22958
22959
22960for ac_header in syscall.h sys/syscall.h
22961do
22962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22964  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22967  echo $ECHO_N "(cached) $ECHO_C" >&6
22968fi
22969ac_res=`eval echo '${'$as_ac_Header'}'`
22970	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22971echo "${ECHO_T}$ac_res" >&6; }
22972else
22973  # Is the header compilable?
22974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22976cat >conftest.$ac_ext <<_ACEOF
22977/* confdefs.h.  */
22978_ACEOF
22979cat confdefs.h >>conftest.$ac_ext
22980cat >>conftest.$ac_ext <<_ACEOF
22981/* end confdefs.h.  */
22982$ac_includes_default
22983#include <$ac_header>
22984_ACEOF
22985rm -f conftest.$ac_objext
22986if { (ac_try="$ac_compile"
22987case "(($ac_try" in
22988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989  *) ac_try_echo=$ac_try;;
22990esac
22991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992  (eval "$ac_compile") 2>conftest.er1
22993  ac_status=$?
22994  grep -v '^ *+' conftest.er1 >conftest.err
22995  rm -f conftest.er1
22996  cat conftest.err >&5
22997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998  (exit $ac_status); } && {
22999	 test -z "$ac_c_werror_flag" ||
23000	 test ! -s conftest.err
23001       } && test -s conftest.$ac_objext; then
23002  ac_header_compiler=yes
23003else
23004  echo "$as_me: failed program was:" >&5
23005sed 's/^/| /' conftest.$ac_ext >&5
23006
23007	ac_header_compiler=no
23008fi
23009
23010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23012echo "${ECHO_T}$ac_header_compiler" >&6; }
23013
23014# Is the header present?
23015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23017cat >conftest.$ac_ext <<_ACEOF
23018/* confdefs.h.  */
23019_ACEOF
23020cat confdefs.h >>conftest.$ac_ext
23021cat >>conftest.$ac_ext <<_ACEOF
23022/* end confdefs.h.  */
23023#include <$ac_header>
23024_ACEOF
23025if { (ac_try="$ac_cpp conftest.$ac_ext"
23026case "(($ac_try" in
23027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028  *) ac_try_echo=$ac_try;;
23029esac
23030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23032  ac_status=$?
23033  grep -v '^ *+' conftest.er1 >conftest.err
23034  rm -f conftest.er1
23035  cat conftest.err >&5
23036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037  (exit $ac_status); } >/dev/null && {
23038	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23039	 test ! -s conftest.err
23040       }; then
23041  ac_header_preproc=yes
23042else
23043  echo "$as_me: failed program was:" >&5
23044sed 's/^/| /' conftest.$ac_ext >&5
23045
23046  ac_header_preproc=no
23047fi
23048
23049rm -f conftest.err conftest.$ac_ext
23050{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23051echo "${ECHO_T}$ac_header_preproc" >&6; }
23052
23053# So?  What about this header?
23054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23055  yes:no: )
23056    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23058    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23060    ac_header_preproc=yes
23061    ;;
23062  no:yes:* )
23063    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23065    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23066echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23067    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23069    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23070echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23071    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23073    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23075
23076    ;;
23077esac
23078{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23081  echo $ECHO_N "(cached) $ECHO_C" >&6
23082else
23083  eval "$as_ac_Header=\$ac_header_preproc"
23084fi
23085ac_res=`eval echo '${'$as_ac_Header'}'`
23086	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23087echo "${ECHO_T}$ac_res" >&6; }
23088
23089fi
23090if test `eval echo '${'$as_ac_Header'}'` = yes; then
23091  cat >>confdefs.h <<_ACEOF
23092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23093_ACEOF
23094
23095fi
23096
23097done
23098
23099
23100
23101
23102
23103
23104
23105for ac_header in sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h
23106do
23107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23109  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23112  echo $ECHO_N "(cached) $ECHO_C" >&6
23113fi
23114ac_res=`eval echo '${'$as_ac_Header'}'`
23115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23116echo "${ECHO_T}$ac_res" >&6; }
23117else
23118  # Is the header compilable?
23119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23121cat >conftest.$ac_ext <<_ACEOF
23122/* confdefs.h.  */
23123_ACEOF
23124cat confdefs.h >>conftest.$ac_ext
23125cat >>conftest.$ac_ext <<_ACEOF
23126/* end confdefs.h.  */
23127$ac_includes_default
23128#include <$ac_header>
23129_ACEOF
23130rm -f conftest.$ac_objext
23131if { (ac_try="$ac_compile"
23132case "(($ac_try" in
23133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134  *) ac_try_echo=$ac_try;;
23135esac
23136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137  (eval "$ac_compile") 2>conftest.er1
23138  ac_status=$?
23139  grep -v '^ *+' conftest.er1 >conftest.err
23140  rm -f conftest.er1
23141  cat conftest.err >&5
23142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143  (exit $ac_status); } && {
23144	 test -z "$ac_c_werror_flag" ||
23145	 test ! -s conftest.err
23146       } && test -s conftest.$ac_objext; then
23147  ac_header_compiler=yes
23148else
23149  echo "$as_me: failed program was:" >&5
23150sed 's/^/| /' conftest.$ac_ext >&5
23151
23152	ac_header_compiler=no
23153fi
23154
23155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23157echo "${ECHO_T}$ac_header_compiler" >&6; }
23158
23159# Is the header present?
23160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23162cat >conftest.$ac_ext <<_ACEOF
23163/* confdefs.h.  */
23164_ACEOF
23165cat confdefs.h >>conftest.$ac_ext
23166cat >>conftest.$ac_ext <<_ACEOF
23167/* end confdefs.h.  */
23168#include <$ac_header>
23169_ACEOF
23170if { (ac_try="$ac_cpp conftest.$ac_ext"
23171case "(($ac_try" in
23172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173  *) ac_try_echo=$ac_try;;
23174esac
23175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23176  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23177  ac_status=$?
23178  grep -v '^ *+' conftest.er1 >conftest.err
23179  rm -f conftest.er1
23180  cat conftest.err >&5
23181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182  (exit $ac_status); } >/dev/null && {
23183	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23184	 test ! -s conftest.err
23185       }; then
23186  ac_header_preproc=yes
23187else
23188  echo "$as_me: failed program was:" >&5
23189sed 's/^/| /' conftest.$ac_ext >&5
23190
23191  ac_header_preproc=no
23192fi
23193
23194rm -f conftest.err conftest.$ac_ext
23195{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23196echo "${ECHO_T}$ac_header_preproc" >&6; }
23197
23198# So?  What about this header?
23199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23200  yes:no: )
23201    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23203    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23205    ac_header_preproc=yes
23206    ;;
23207  no:yes:* )
23208    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23210    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23211echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23212    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23214    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23215echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23218    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23220
23221    ;;
23222esac
23223{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23226  echo $ECHO_N "(cached) $ECHO_C" >&6
23227else
23228  eval "$as_ac_Header=\$ac_header_preproc"
23229fi
23230ac_res=`eval echo '${'$as_ac_Header'}'`
23231	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23232echo "${ECHO_T}$ac_res" >&6; }
23233
23234fi
23235if test `eval echo '${'$as_ac_Header'}'` = yes; then
23236  cat >>confdefs.h <<_ACEOF
23237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23238_ACEOF
23239
23240fi
23241
23242done
23243
23244
23245
23246for ac_header in sys/ea.h sys/proplist.h
23247do
23248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23250  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23253  echo $ECHO_N "(cached) $ECHO_C" >&6
23254fi
23255ac_res=`eval echo '${'$as_ac_Header'}'`
23256	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23257echo "${ECHO_T}$ac_res" >&6; }
23258else
23259  # Is the header compilable?
23260{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23262cat >conftest.$ac_ext <<_ACEOF
23263/* confdefs.h.  */
23264_ACEOF
23265cat confdefs.h >>conftest.$ac_ext
23266cat >>conftest.$ac_ext <<_ACEOF
23267/* end confdefs.h.  */
23268$ac_includes_default
23269#include <$ac_header>
23270_ACEOF
23271rm -f conftest.$ac_objext
23272if { (ac_try="$ac_compile"
23273case "(($ac_try" in
23274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275  *) ac_try_echo=$ac_try;;
23276esac
23277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278  (eval "$ac_compile") 2>conftest.er1
23279  ac_status=$?
23280  grep -v '^ *+' conftest.er1 >conftest.err
23281  rm -f conftest.er1
23282  cat conftest.err >&5
23283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284  (exit $ac_status); } && {
23285	 test -z "$ac_c_werror_flag" ||
23286	 test ! -s conftest.err
23287       } && test -s conftest.$ac_objext; then
23288  ac_header_compiler=yes
23289else
23290  echo "$as_me: failed program was:" >&5
23291sed 's/^/| /' conftest.$ac_ext >&5
23292
23293	ac_header_compiler=no
23294fi
23295
23296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23298echo "${ECHO_T}$ac_header_compiler" >&6; }
23299
23300# Is the header present?
23301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23303cat >conftest.$ac_ext <<_ACEOF
23304/* confdefs.h.  */
23305_ACEOF
23306cat confdefs.h >>conftest.$ac_ext
23307cat >>conftest.$ac_ext <<_ACEOF
23308/* end confdefs.h.  */
23309#include <$ac_header>
23310_ACEOF
23311if { (ac_try="$ac_cpp conftest.$ac_ext"
23312case "(($ac_try" in
23313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314  *) ac_try_echo=$ac_try;;
23315esac
23316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23318  ac_status=$?
23319  grep -v '^ *+' conftest.er1 >conftest.err
23320  rm -f conftest.er1
23321  cat conftest.err >&5
23322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323  (exit $ac_status); } >/dev/null && {
23324	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23325	 test ! -s conftest.err
23326       }; then
23327  ac_header_preproc=yes
23328else
23329  echo "$as_me: failed program was:" >&5
23330sed 's/^/| /' conftest.$ac_ext >&5
23331
23332  ac_header_preproc=no
23333fi
23334
23335rm -f conftest.err conftest.$ac_ext
23336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23337echo "${ECHO_T}$ac_header_preproc" >&6; }
23338
23339# So?  What about this header?
23340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23341  yes:no: )
23342    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23344    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23346    ac_header_preproc=yes
23347    ;;
23348  no:yes:* )
23349    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23351    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23352echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23353    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23355    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23356echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23359    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23361
23362    ;;
23363esac
23364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23367  echo $ECHO_N "(cached) $ECHO_C" >&6
23368else
23369  eval "$as_ac_Header=\$ac_header_preproc"
23370fi
23371ac_res=`eval echo '${'$as_ac_Header'}'`
23372	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23373echo "${ECHO_T}$ac_res" >&6; }
23374
23375fi
23376if test `eval echo '${'$as_ac_Header'}'` = yes; then
23377  cat >>confdefs.h <<_ACEOF
23378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23379_ACEOF
23380
23381fi
23382
23383done
23384
23385
23386
23387
23388for ac_header in sys/cdefs.h glob.h
23389do
23390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23392  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23395  echo $ECHO_N "(cached) $ECHO_C" >&6
23396fi
23397ac_res=`eval echo '${'$as_ac_Header'}'`
23398	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23399echo "${ECHO_T}$ac_res" >&6; }
23400else
23401  # Is the header compilable?
23402{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23404cat >conftest.$ac_ext <<_ACEOF
23405/* confdefs.h.  */
23406_ACEOF
23407cat confdefs.h >>conftest.$ac_ext
23408cat >>conftest.$ac_ext <<_ACEOF
23409/* end confdefs.h.  */
23410$ac_includes_default
23411#include <$ac_header>
23412_ACEOF
23413rm -f conftest.$ac_objext
23414if { (ac_try="$ac_compile"
23415case "(($ac_try" in
23416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417  *) ac_try_echo=$ac_try;;
23418esac
23419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420  (eval "$ac_compile") 2>conftest.er1
23421  ac_status=$?
23422  grep -v '^ *+' conftest.er1 >conftest.err
23423  rm -f conftest.er1
23424  cat conftest.err >&5
23425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426  (exit $ac_status); } && {
23427	 test -z "$ac_c_werror_flag" ||
23428	 test ! -s conftest.err
23429       } && test -s conftest.$ac_objext; then
23430  ac_header_compiler=yes
23431else
23432  echo "$as_me: failed program was:" >&5
23433sed 's/^/| /' conftest.$ac_ext >&5
23434
23435	ac_header_compiler=no
23436fi
23437
23438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23440echo "${ECHO_T}$ac_header_compiler" >&6; }
23441
23442# Is the header present?
23443{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23445cat >conftest.$ac_ext <<_ACEOF
23446/* confdefs.h.  */
23447_ACEOF
23448cat confdefs.h >>conftest.$ac_ext
23449cat >>conftest.$ac_ext <<_ACEOF
23450/* end confdefs.h.  */
23451#include <$ac_header>
23452_ACEOF
23453if { (ac_try="$ac_cpp conftest.$ac_ext"
23454case "(($ac_try" in
23455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456  *) ac_try_echo=$ac_try;;
23457esac
23458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23460  ac_status=$?
23461  grep -v '^ *+' conftest.er1 >conftest.err
23462  rm -f conftest.er1
23463  cat conftest.err >&5
23464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465  (exit $ac_status); } >/dev/null && {
23466	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23467	 test ! -s conftest.err
23468       }; then
23469  ac_header_preproc=yes
23470else
23471  echo "$as_me: failed program was:" >&5
23472sed 's/^/| /' conftest.$ac_ext >&5
23473
23474  ac_header_preproc=no
23475fi
23476
23477rm -f conftest.err conftest.$ac_ext
23478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23479echo "${ECHO_T}$ac_header_preproc" >&6; }
23480
23481# So?  What about this header?
23482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23483  yes:no: )
23484    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23486    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23488    ac_header_preproc=yes
23489    ;;
23490  no:yes:* )
23491    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23493    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23494echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23495    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23497    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23498echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23499    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23501    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23503
23504    ;;
23505esac
23506{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23509  echo $ECHO_N "(cached) $ECHO_C" >&6
23510else
23511  eval "$as_ac_Header=\$ac_header_preproc"
23512fi
23513ac_res=`eval echo '${'$as_ac_Header'}'`
23514	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23515echo "${ECHO_T}$ac_res" >&6; }
23516
23517fi
23518if test `eval echo '${'$as_ac_Header'}'` = yes; then
23519  cat >>confdefs.h <<_ACEOF
23520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23521_ACEOF
23522
23523fi
23524
23525done
23526
23527
23528# For experimental utmp support (lastlog on some BSD-like systems)
23529
23530
23531
23532for ac_header in utmp.h utmpx.h lastlog.h
23533do
23534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23536  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23539  echo $ECHO_N "(cached) $ECHO_C" >&6
23540fi
23541ac_res=`eval echo '${'$as_ac_Header'}'`
23542	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23543echo "${ECHO_T}$ac_res" >&6; }
23544else
23545  # Is the header compilable?
23546{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23548cat >conftest.$ac_ext <<_ACEOF
23549/* confdefs.h.  */
23550_ACEOF
23551cat confdefs.h >>conftest.$ac_ext
23552cat >>conftest.$ac_ext <<_ACEOF
23553/* end confdefs.h.  */
23554$ac_includes_default
23555#include <$ac_header>
23556_ACEOF
23557rm -f conftest.$ac_objext
23558if { (ac_try="$ac_compile"
23559case "(($ac_try" in
23560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561  *) ac_try_echo=$ac_try;;
23562esac
23563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564  (eval "$ac_compile") 2>conftest.er1
23565  ac_status=$?
23566  grep -v '^ *+' conftest.er1 >conftest.err
23567  rm -f conftest.er1
23568  cat conftest.err >&5
23569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570  (exit $ac_status); } && {
23571	 test -z "$ac_c_werror_flag" ||
23572	 test ! -s conftest.err
23573       } && test -s conftest.$ac_objext; then
23574  ac_header_compiler=yes
23575else
23576  echo "$as_me: failed program was:" >&5
23577sed 's/^/| /' conftest.$ac_ext >&5
23578
23579	ac_header_compiler=no
23580fi
23581
23582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23584echo "${ECHO_T}$ac_header_compiler" >&6; }
23585
23586# Is the header present?
23587{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23589cat >conftest.$ac_ext <<_ACEOF
23590/* confdefs.h.  */
23591_ACEOF
23592cat confdefs.h >>conftest.$ac_ext
23593cat >>conftest.$ac_ext <<_ACEOF
23594/* end confdefs.h.  */
23595#include <$ac_header>
23596_ACEOF
23597if { (ac_try="$ac_cpp conftest.$ac_ext"
23598case "(($ac_try" in
23599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600  *) ac_try_echo=$ac_try;;
23601esac
23602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23604  ac_status=$?
23605  grep -v '^ *+' conftest.er1 >conftest.err
23606  rm -f conftest.er1
23607  cat conftest.err >&5
23608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609  (exit $ac_status); } >/dev/null && {
23610	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23611	 test ! -s conftest.err
23612       }; then
23613  ac_header_preproc=yes
23614else
23615  echo "$as_me: failed program was:" >&5
23616sed 's/^/| /' conftest.$ac_ext >&5
23617
23618  ac_header_preproc=no
23619fi
23620
23621rm -f conftest.err conftest.$ac_ext
23622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23623echo "${ECHO_T}$ac_header_preproc" >&6; }
23624
23625# So?  What about this header?
23626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23627  yes:no: )
23628    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23630    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23632    ac_header_preproc=yes
23633    ;;
23634  no:yes:* )
23635    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23637    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23638echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23639    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23641    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23642echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23643    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23645    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23647
23648    ;;
23649esac
23650{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23653  echo $ECHO_N "(cached) $ECHO_C" >&6
23654else
23655  eval "$as_ac_Header=\$ac_header_preproc"
23656fi
23657ac_res=`eval echo '${'$as_ac_Header'}'`
23658	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23659echo "${ECHO_T}$ac_res" >&6; }
23660
23661fi
23662if test `eval echo '${'$as_ac_Header'}'` = yes; then
23663  cat >>confdefs.h <<_ACEOF
23664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23665_ACEOF
23666
23667fi
23668
23669done
23670
23671
23672{ echo "$as_me:$LINENO: checking for int" >&5
23673echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23674if test "${ac_cv_type_int+set}" = set; then
23675  echo $ECHO_N "(cached) $ECHO_C" >&6
23676else
23677  cat >conftest.$ac_ext <<_ACEOF
23678/* confdefs.h.  */
23679_ACEOF
23680cat confdefs.h >>conftest.$ac_ext
23681cat >>conftest.$ac_ext <<_ACEOF
23682/* end confdefs.h.  */
23683$ac_includes_default
23684typedef int ac__type_new_;
23685int
23686main ()
23687{
23688if ((ac__type_new_ *) 0)
23689  return 0;
23690if (sizeof (ac__type_new_))
23691  return 0;
23692  ;
23693  return 0;
23694}
23695_ACEOF
23696rm -f conftest.$ac_objext
23697if { (ac_try="$ac_compile"
23698case "(($ac_try" in
23699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23700  *) ac_try_echo=$ac_try;;
23701esac
23702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23703  (eval "$ac_compile") 2>conftest.er1
23704  ac_status=$?
23705  grep -v '^ *+' conftest.er1 >conftest.err
23706  rm -f conftest.er1
23707  cat conftest.err >&5
23708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709  (exit $ac_status); } && {
23710	 test -z "$ac_c_werror_flag" ||
23711	 test ! -s conftest.err
23712       } && test -s conftest.$ac_objext; then
23713  ac_cv_type_int=yes
23714else
23715  echo "$as_me: failed program was:" >&5
23716sed 's/^/| /' conftest.$ac_ext >&5
23717
23718	ac_cv_type_int=no
23719fi
23720
23721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722fi
23723{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23724echo "${ECHO_T}$ac_cv_type_int" >&6; }
23725
23726# The cast to long int works around a bug in the HP C Compiler
23727# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23728# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23729# This bug is HP SR number 8606223364.
23730{ echo "$as_me:$LINENO: checking size of int" >&5
23731echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23732if test "${ac_cv_sizeof_int+set}" = set; then
23733  echo $ECHO_N "(cached) $ECHO_C" >&6
23734else
23735  if test "$cross_compiling" = yes; then
23736  # Depending upon the size, compute the lo and hi bounds.
23737cat >conftest.$ac_ext <<_ACEOF
23738/* confdefs.h.  */
23739_ACEOF
23740cat confdefs.h >>conftest.$ac_ext
23741cat >>conftest.$ac_ext <<_ACEOF
23742/* end confdefs.h.  */
23743$ac_includes_default
23744   typedef int ac__type_sizeof_;
23745int
23746main ()
23747{
23748static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23749test_array [0] = 0
23750
23751  ;
23752  return 0;
23753}
23754_ACEOF
23755rm -f conftest.$ac_objext
23756if { (ac_try="$ac_compile"
23757case "(($ac_try" in
23758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759  *) ac_try_echo=$ac_try;;
23760esac
23761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762  (eval "$ac_compile") 2>conftest.er1
23763  ac_status=$?
23764  grep -v '^ *+' conftest.er1 >conftest.err
23765  rm -f conftest.er1
23766  cat conftest.err >&5
23767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768  (exit $ac_status); } && {
23769	 test -z "$ac_c_werror_flag" ||
23770	 test ! -s conftest.err
23771       } && test -s conftest.$ac_objext; then
23772  ac_lo=0 ac_mid=0
23773  while :; do
23774    cat >conftest.$ac_ext <<_ACEOF
23775/* confdefs.h.  */
23776_ACEOF
23777cat confdefs.h >>conftest.$ac_ext
23778cat >>conftest.$ac_ext <<_ACEOF
23779/* end confdefs.h.  */
23780$ac_includes_default
23781   typedef int ac__type_sizeof_;
23782int
23783main ()
23784{
23785static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23786test_array [0] = 0
23787
23788  ;
23789  return 0;
23790}
23791_ACEOF
23792rm -f conftest.$ac_objext
23793if { (ac_try="$ac_compile"
23794case "(($ac_try" in
23795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796  *) ac_try_echo=$ac_try;;
23797esac
23798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799  (eval "$ac_compile") 2>conftest.er1
23800  ac_status=$?
23801  grep -v '^ *+' conftest.er1 >conftest.err
23802  rm -f conftest.er1
23803  cat conftest.err >&5
23804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805  (exit $ac_status); } && {
23806	 test -z "$ac_c_werror_flag" ||
23807	 test ! -s conftest.err
23808       } && test -s conftest.$ac_objext; then
23809  ac_hi=$ac_mid; break
23810else
23811  echo "$as_me: failed program was:" >&5
23812sed 's/^/| /' conftest.$ac_ext >&5
23813
23814	ac_lo=`expr $ac_mid + 1`
23815			if test $ac_lo -le $ac_mid; then
23816			  ac_lo= ac_hi=
23817			  break
23818			fi
23819			ac_mid=`expr 2 '*' $ac_mid + 1`
23820fi
23821
23822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23823  done
23824else
23825  echo "$as_me: failed program was:" >&5
23826sed 's/^/| /' conftest.$ac_ext >&5
23827
23828	cat >conftest.$ac_ext <<_ACEOF
23829/* confdefs.h.  */
23830_ACEOF
23831cat confdefs.h >>conftest.$ac_ext
23832cat >>conftest.$ac_ext <<_ACEOF
23833/* end confdefs.h.  */
23834$ac_includes_default
23835   typedef int ac__type_sizeof_;
23836int
23837main ()
23838{
23839static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23840test_array [0] = 0
23841
23842  ;
23843  return 0;
23844}
23845_ACEOF
23846rm -f conftest.$ac_objext
23847if { (ac_try="$ac_compile"
23848case "(($ac_try" in
23849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850  *) ac_try_echo=$ac_try;;
23851esac
23852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853  (eval "$ac_compile") 2>conftest.er1
23854  ac_status=$?
23855  grep -v '^ *+' conftest.er1 >conftest.err
23856  rm -f conftest.er1
23857  cat conftest.err >&5
23858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859  (exit $ac_status); } && {
23860	 test -z "$ac_c_werror_flag" ||
23861	 test ! -s conftest.err
23862       } && test -s conftest.$ac_objext; then
23863  ac_hi=-1 ac_mid=-1
23864  while :; do
23865    cat >conftest.$ac_ext <<_ACEOF
23866/* confdefs.h.  */
23867_ACEOF
23868cat confdefs.h >>conftest.$ac_ext
23869cat >>conftest.$ac_ext <<_ACEOF
23870/* end confdefs.h.  */
23871$ac_includes_default
23872   typedef int ac__type_sizeof_;
23873int
23874main ()
23875{
23876static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23877test_array [0] = 0
23878
23879  ;
23880  return 0;
23881}
23882_ACEOF
23883rm -f conftest.$ac_objext
23884if { (ac_try="$ac_compile"
23885case "(($ac_try" in
23886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887  *) ac_try_echo=$ac_try;;
23888esac
23889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23890  (eval "$ac_compile") 2>conftest.er1
23891  ac_status=$?
23892  grep -v '^ *+' conftest.er1 >conftest.err
23893  rm -f conftest.er1
23894  cat conftest.err >&5
23895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896  (exit $ac_status); } && {
23897	 test -z "$ac_c_werror_flag" ||
23898	 test ! -s conftest.err
23899       } && test -s conftest.$ac_objext; then
23900  ac_lo=$ac_mid; break
23901else
23902  echo "$as_me: failed program was:" >&5
23903sed 's/^/| /' conftest.$ac_ext >&5
23904
23905	ac_hi=`expr '(' $ac_mid ')' - 1`
23906			if test $ac_mid -le $ac_hi; then
23907			  ac_lo= ac_hi=
23908			  break
23909			fi
23910			ac_mid=`expr 2 '*' $ac_mid`
23911fi
23912
23913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914  done
23915else
23916  echo "$as_me: failed program was:" >&5
23917sed 's/^/| /' conftest.$ac_ext >&5
23918
23919	ac_lo= ac_hi=
23920fi
23921
23922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923fi
23924
23925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23926# Binary search between lo and hi bounds.
23927while test "x$ac_lo" != "x$ac_hi"; do
23928  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23929  cat >conftest.$ac_ext <<_ACEOF
23930/* confdefs.h.  */
23931_ACEOF
23932cat confdefs.h >>conftest.$ac_ext
23933cat >>conftest.$ac_ext <<_ACEOF
23934/* end confdefs.h.  */
23935$ac_includes_default
23936   typedef int ac__type_sizeof_;
23937int
23938main ()
23939{
23940static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23941test_array [0] = 0
23942
23943  ;
23944  return 0;
23945}
23946_ACEOF
23947rm -f conftest.$ac_objext
23948if { (ac_try="$ac_compile"
23949case "(($ac_try" in
23950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951  *) ac_try_echo=$ac_try;;
23952esac
23953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23954  (eval "$ac_compile") 2>conftest.er1
23955  ac_status=$?
23956  grep -v '^ *+' conftest.er1 >conftest.err
23957  rm -f conftest.er1
23958  cat conftest.err >&5
23959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960  (exit $ac_status); } && {
23961	 test -z "$ac_c_werror_flag" ||
23962	 test ! -s conftest.err
23963       } && test -s conftest.$ac_objext; then
23964  ac_hi=$ac_mid
23965else
23966  echo "$as_me: failed program was:" >&5
23967sed 's/^/| /' conftest.$ac_ext >&5
23968
23969	ac_lo=`expr '(' $ac_mid ')' + 1`
23970fi
23971
23972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23973done
23974case $ac_lo in
23975?*) ac_cv_sizeof_int=$ac_lo;;
23976'') if test "$ac_cv_type_int" = yes; then
23977     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23978See \`config.log' for more details." >&5
23979echo "$as_me: error: cannot compute sizeof (int)
23980See \`config.log' for more details." >&2;}
23981   { (exit 77); exit 77; }; }
23982   else
23983     ac_cv_sizeof_int=0
23984   fi ;;
23985esac
23986else
23987  cat >conftest.$ac_ext <<_ACEOF
23988/* confdefs.h.  */
23989_ACEOF
23990cat confdefs.h >>conftest.$ac_ext
23991cat >>conftest.$ac_ext <<_ACEOF
23992/* end confdefs.h.  */
23993$ac_includes_default
23994   typedef int ac__type_sizeof_;
23995static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23996static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23997#include <stdio.h>
23998#include <stdlib.h>
23999int
24000main ()
24001{
24002
24003  FILE *f = fopen ("conftest.val", "w");
24004  if (! f)
24005    return 1;
24006  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24007    {
24008      long int i = longval ();
24009      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24010	return 1;
24011      fprintf (f, "%ld\n", i);
24012    }
24013  else
24014    {
24015      unsigned long int i = ulongval ();
24016      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24017	return 1;
24018      fprintf (f, "%lu\n", i);
24019    }
24020  return ferror (f) || fclose (f) != 0;
24021
24022  ;
24023  return 0;
24024}
24025_ACEOF
24026rm -f conftest$ac_exeext
24027if { (ac_try="$ac_link"
24028case "(($ac_try" in
24029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030  *) ac_try_echo=$ac_try;;
24031esac
24032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033  (eval "$ac_link") 2>&5
24034  ac_status=$?
24035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24037  { (case "(($ac_try" in
24038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039  *) ac_try_echo=$ac_try;;
24040esac
24041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042  (eval "$ac_try") 2>&5
24043  ac_status=$?
24044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045  (exit $ac_status); }; }; then
24046  ac_cv_sizeof_int=`cat conftest.val`
24047else
24048  echo "$as_me: program exited with status $ac_status" >&5
24049echo "$as_me: failed program was:" >&5
24050sed 's/^/| /' conftest.$ac_ext >&5
24051
24052( exit $ac_status )
24053if test "$ac_cv_type_int" = yes; then
24054     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24055See \`config.log' for more details." >&5
24056echo "$as_me: error: cannot compute sizeof (int)
24057See \`config.log' for more details." >&2;}
24058   { (exit 77); exit 77; }; }
24059   else
24060     ac_cv_sizeof_int=0
24061   fi
24062fi
24063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24064fi
24065rm -f conftest.val
24066fi
24067{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24068echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24069
24070
24071
24072cat >>confdefs.h <<_ACEOF
24073#define SIZEOF_INT $ac_cv_sizeof_int
24074_ACEOF
24075
24076
24077{ echo "$as_me:$LINENO: checking for long" >&5
24078echo $ECHO_N "checking for long... $ECHO_C" >&6; }
24079if test "${ac_cv_type_long+set}" = set; then
24080  echo $ECHO_N "(cached) $ECHO_C" >&6
24081else
24082  cat >conftest.$ac_ext <<_ACEOF
24083/* confdefs.h.  */
24084_ACEOF
24085cat confdefs.h >>conftest.$ac_ext
24086cat >>conftest.$ac_ext <<_ACEOF
24087/* end confdefs.h.  */
24088$ac_includes_default
24089typedef long ac__type_new_;
24090int
24091main ()
24092{
24093if ((ac__type_new_ *) 0)
24094  return 0;
24095if (sizeof (ac__type_new_))
24096  return 0;
24097  ;
24098  return 0;
24099}
24100_ACEOF
24101rm -f conftest.$ac_objext
24102if { (ac_try="$ac_compile"
24103case "(($ac_try" in
24104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105  *) ac_try_echo=$ac_try;;
24106esac
24107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108  (eval "$ac_compile") 2>conftest.er1
24109  ac_status=$?
24110  grep -v '^ *+' conftest.er1 >conftest.err
24111  rm -f conftest.er1
24112  cat conftest.err >&5
24113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114  (exit $ac_status); } && {
24115	 test -z "$ac_c_werror_flag" ||
24116	 test ! -s conftest.err
24117       } && test -s conftest.$ac_objext; then
24118  ac_cv_type_long=yes
24119else
24120  echo "$as_me: failed program was:" >&5
24121sed 's/^/| /' conftest.$ac_ext >&5
24122
24123	ac_cv_type_long=no
24124fi
24125
24126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127fi
24128{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
24129echo "${ECHO_T}$ac_cv_type_long" >&6; }
24130
24131# The cast to long int works around a bug in the HP C Compiler
24132# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24133# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24134# This bug is HP SR number 8606223364.
24135{ echo "$as_me:$LINENO: checking size of long" >&5
24136echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
24137if test "${ac_cv_sizeof_long+set}" = set; then
24138  echo $ECHO_N "(cached) $ECHO_C" >&6
24139else
24140  if test "$cross_compiling" = yes; then
24141  # Depending upon the size, compute the lo and hi bounds.
24142cat >conftest.$ac_ext <<_ACEOF
24143/* confdefs.h.  */
24144_ACEOF
24145cat confdefs.h >>conftest.$ac_ext
24146cat >>conftest.$ac_ext <<_ACEOF
24147/* end confdefs.h.  */
24148$ac_includes_default
24149   typedef long ac__type_sizeof_;
24150int
24151main ()
24152{
24153static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24154test_array [0] = 0
24155
24156  ;
24157  return 0;
24158}
24159_ACEOF
24160rm -f conftest.$ac_objext
24161if { (ac_try="$ac_compile"
24162case "(($ac_try" in
24163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24164  *) ac_try_echo=$ac_try;;
24165esac
24166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24167  (eval "$ac_compile") 2>conftest.er1
24168  ac_status=$?
24169  grep -v '^ *+' conftest.er1 >conftest.err
24170  rm -f conftest.er1
24171  cat conftest.err >&5
24172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173  (exit $ac_status); } && {
24174	 test -z "$ac_c_werror_flag" ||
24175	 test ! -s conftest.err
24176       } && test -s conftest.$ac_objext; then
24177  ac_lo=0 ac_mid=0
24178  while :; do
24179    cat >conftest.$ac_ext <<_ACEOF
24180/* confdefs.h.  */
24181_ACEOF
24182cat confdefs.h >>conftest.$ac_ext
24183cat >>conftest.$ac_ext <<_ACEOF
24184/* end confdefs.h.  */
24185$ac_includes_default
24186   typedef long ac__type_sizeof_;
24187int
24188main ()
24189{
24190static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24191test_array [0] = 0
24192
24193  ;
24194  return 0;
24195}
24196_ACEOF
24197rm -f conftest.$ac_objext
24198if { (ac_try="$ac_compile"
24199case "(($ac_try" in
24200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201  *) ac_try_echo=$ac_try;;
24202esac
24203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24204  (eval "$ac_compile") 2>conftest.er1
24205  ac_status=$?
24206  grep -v '^ *+' conftest.er1 >conftest.err
24207  rm -f conftest.er1
24208  cat conftest.err >&5
24209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210  (exit $ac_status); } && {
24211	 test -z "$ac_c_werror_flag" ||
24212	 test ! -s conftest.err
24213       } && test -s conftest.$ac_objext; then
24214  ac_hi=$ac_mid; break
24215else
24216  echo "$as_me: failed program was:" >&5
24217sed 's/^/| /' conftest.$ac_ext >&5
24218
24219	ac_lo=`expr $ac_mid + 1`
24220			if test $ac_lo -le $ac_mid; then
24221			  ac_lo= ac_hi=
24222			  break
24223			fi
24224			ac_mid=`expr 2 '*' $ac_mid + 1`
24225fi
24226
24227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228  done
24229else
24230  echo "$as_me: failed program was:" >&5
24231sed 's/^/| /' conftest.$ac_ext >&5
24232
24233	cat >conftest.$ac_ext <<_ACEOF
24234/* confdefs.h.  */
24235_ACEOF
24236cat confdefs.h >>conftest.$ac_ext
24237cat >>conftest.$ac_ext <<_ACEOF
24238/* end confdefs.h.  */
24239$ac_includes_default
24240   typedef long ac__type_sizeof_;
24241int
24242main ()
24243{
24244static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24245test_array [0] = 0
24246
24247  ;
24248  return 0;
24249}
24250_ACEOF
24251rm -f conftest.$ac_objext
24252if { (ac_try="$ac_compile"
24253case "(($ac_try" in
24254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255  *) ac_try_echo=$ac_try;;
24256esac
24257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24258  (eval "$ac_compile") 2>conftest.er1
24259  ac_status=$?
24260  grep -v '^ *+' conftest.er1 >conftest.err
24261  rm -f conftest.er1
24262  cat conftest.err >&5
24263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264  (exit $ac_status); } && {
24265	 test -z "$ac_c_werror_flag" ||
24266	 test ! -s conftest.err
24267       } && test -s conftest.$ac_objext; then
24268  ac_hi=-1 ac_mid=-1
24269  while :; do
24270    cat >conftest.$ac_ext <<_ACEOF
24271/* confdefs.h.  */
24272_ACEOF
24273cat confdefs.h >>conftest.$ac_ext
24274cat >>conftest.$ac_ext <<_ACEOF
24275/* end confdefs.h.  */
24276$ac_includes_default
24277   typedef long ac__type_sizeof_;
24278int
24279main ()
24280{
24281static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24282test_array [0] = 0
24283
24284  ;
24285  return 0;
24286}
24287_ACEOF
24288rm -f conftest.$ac_objext
24289if { (ac_try="$ac_compile"
24290case "(($ac_try" in
24291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292  *) ac_try_echo=$ac_try;;
24293esac
24294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295  (eval "$ac_compile") 2>conftest.er1
24296  ac_status=$?
24297  grep -v '^ *+' conftest.er1 >conftest.err
24298  rm -f conftest.er1
24299  cat conftest.err >&5
24300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301  (exit $ac_status); } && {
24302	 test -z "$ac_c_werror_flag" ||
24303	 test ! -s conftest.err
24304       } && test -s conftest.$ac_objext; then
24305  ac_lo=$ac_mid; break
24306else
24307  echo "$as_me: failed program was:" >&5
24308sed 's/^/| /' conftest.$ac_ext >&5
24309
24310	ac_hi=`expr '(' $ac_mid ')' - 1`
24311			if test $ac_mid -le $ac_hi; then
24312			  ac_lo= ac_hi=
24313			  break
24314			fi
24315			ac_mid=`expr 2 '*' $ac_mid`
24316fi
24317
24318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24319  done
24320else
24321  echo "$as_me: failed program was:" >&5
24322sed 's/^/| /' conftest.$ac_ext >&5
24323
24324	ac_lo= ac_hi=
24325fi
24326
24327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24328fi
24329
24330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24331# Binary search between lo and hi bounds.
24332while test "x$ac_lo" != "x$ac_hi"; do
24333  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24334  cat >conftest.$ac_ext <<_ACEOF
24335/* confdefs.h.  */
24336_ACEOF
24337cat confdefs.h >>conftest.$ac_ext
24338cat >>conftest.$ac_ext <<_ACEOF
24339/* end confdefs.h.  */
24340$ac_includes_default
24341   typedef long ac__type_sizeof_;
24342int
24343main ()
24344{
24345static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24346test_array [0] = 0
24347
24348  ;
24349  return 0;
24350}
24351_ACEOF
24352rm -f conftest.$ac_objext
24353if { (ac_try="$ac_compile"
24354case "(($ac_try" in
24355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24356  *) ac_try_echo=$ac_try;;
24357esac
24358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24359  (eval "$ac_compile") 2>conftest.er1
24360  ac_status=$?
24361  grep -v '^ *+' conftest.er1 >conftest.err
24362  rm -f conftest.er1
24363  cat conftest.err >&5
24364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365  (exit $ac_status); } && {
24366	 test -z "$ac_c_werror_flag" ||
24367	 test ! -s conftest.err
24368       } && test -s conftest.$ac_objext; then
24369  ac_hi=$ac_mid
24370else
24371  echo "$as_me: failed program was:" >&5
24372sed 's/^/| /' conftest.$ac_ext >&5
24373
24374	ac_lo=`expr '(' $ac_mid ')' + 1`
24375fi
24376
24377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24378done
24379case $ac_lo in
24380?*) ac_cv_sizeof_long=$ac_lo;;
24381'') if test "$ac_cv_type_long" = yes; then
24382     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24383See \`config.log' for more details." >&5
24384echo "$as_me: error: cannot compute sizeof (long)
24385See \`config.log' for more details." >&2;}
24386   { (exit 77); exit 77; }; }
24387   else
24388     ac_cv_sizeof_long=0
24389   fi ;;
24390esac
24391else
24392  cat >conftest.$ac_ext <<_ACEOF
24393/* confdefs.h.  */
24394_ACEOF
24395cat confdefs.h >>conftest.$ac_ext
24396cat >>conftest.$ac_ext <<_ACEOF
24397/* end confdefs.h.  */
24398$ac_includes_default
24399   typedef long ac__type_sizeof_;
24400static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24401static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24402#include <stdio.h>
24403#include <stdlib.h>
24404int
24405main ()
24406{
24407
24408  FILE *f = fopen ("conftest.val", "w");
24409  if (! f)
24410    return 1;
24411  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24412    {
24413      long int i = longval ();
24414      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24415	return 1;
24416      fprintf (f, "%ld\n", i);
24417    }
24418  else
24419    {
24420      unsigned long int i = ulongval ();
24421      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24422	return 1;
24423      fprintf (f, "%lu\n", i);
24424    }
24425  return ferror (f) || fclose (f) != 0;
24426
24427  ;
24428  return 0;
24429}
24430_ACEOF
24431rm -f conftest$ac_exeext
24432if { (ac_try="$ac_link"
24433case "(($ac_try" in
24434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435  *) ac_try_echo=$ac_try;;
24436esac
24437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438  (eval "$ac_link") 2>&5
24439  ac_status=$?
24440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24442  { (case "(($ac_try" in
24443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444  *) ac_try_echo=$ac_try;;
24445esac
24446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447  (eval "$ac_try") 2>&5
24448  ac_status=$?
24449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450  (exit $ac_status); }; }; then
24451  ac_cv_sizeof_long=`cat conftest.val`
24452else
24453  echo "$as_me: program exited with status $ac_status" >&5
24454echo "$as_me: failed program was:" >&5
24455sed 's/^/| /' conftest.$ac_ext >&5
24456
24457( exit $ac_status )
24458if test "$ac_cv_type_long" = yes; then
24459     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24460See \`config.log' for more details." >&5
24461echo "$as_me: error: cannot compute sizeof (long)
24462See \`config.log' for more details." >&2;}
24463   { (exit 77); exit 77; }; }
24464   else
24465     ac_cv_sizeof_long=0
24466   fi
24467fi
24468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24469fi
24470rm -f conftest.val
24471fi
24472{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24473echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
24474
24475
24476
24477cat >>confdefs.h <<_ACEOF
24478#define SIZEOF_LONG $ac_cv_sizeof_long
24479_ACEOF
24480
24481
24482{ echo "$as_me:$LINENO: checking for long long" >&5
24483echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24484if test "${ac_cv_type_long_long+set}" = set; then
24485  echo $ECHO_N "(cached) $ECHO_C" >&6
24486else
24487  cat >conftest.$ac_ext <<_ACEOF
24488/* confdefs.h.  */
24489_ACEOF
24490cat confdefs.h >>conftest.$ac_ext
24491cat >>conftest.$ac_ext <<_ACEOF
24492/* end confdefs.h.  */
24493$ac_includes_default
24494typedef long long ac__type_new_;
24495int
24496main ()
24497{
24498if ((ac__type_new_ *) 0)
24499  return 0;
24500if (sizeof (ac__type_new_))
24501  return 0;
24502  ;
24503  return 0;
24504}
24505_ACEOF
24506rm -f conftest.$ac_objext
24507if { (ac_try="$ac_compile"
24508case "(($ac_try" in
24509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24510  *) ac_try_echo=$ac_try;;
24511esac
24512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24513  (eval "$ac_compile") 2>conftest.er1
24514  ac_status=$?
24515  grep -v '^ *+' conftest.er1 >conftest.err
24516  rm -f conftest.er1
24517  cat conftest.err >&5
24518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519  (exit $ac_status); } && {
24520	 test -z "$ac_c_werror_flag" ||
24521	 test ! -s conftest.err
24522       } && test -s conftest.$ac_objext; then
24523  ac_cv_type_long_long=yes
24524else
24525  echo "$as_me: failed program was:" >&5
24526sed 's/^/| /' conftest.$ac_ext >&5
24527
24528	ac_cv_type_long_long=no
24529fi
24530
24531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532fi
24533{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24534echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24535
24536# The cast to long int works around a bug in the HP C Compiler
24537# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24538# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24539# This bug is HP SR number 8606223364.
24540{ echo "$as_me:$LINENO: checking size of long long" >&5
24541echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24542if test "${ac_cv_sizeof_long_long+set}" = set; then
24543  echo $ECHO_N "(cached) $ECHO_C" >&6
24544else
24545  if test "$cross_compiling" = yes; then
24546  # Depending upon the size, compute the lo and hi bounds.
24547cat >conftest.$ac_ext <<_ACEOF
24548/* confdefs.h.  */
24549_ACEOF
24550cat confdefs.h >>conftest.$ac_ext
24551cat >>conftest.$ac_ext <<_ACEOF
24552/* end confdefs.h.  */
24553$ac_includes_default
24554   typedef long long ac__type_sizeof_;
24555int
24556main ()
24557{
24558static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24559test_array [0] = 0
24560
24561  ;
24562  return 0;
24563}
24564_ACEOF
24565rm -f conftest.$ac_objext
24566if { (ac_try="$ac_compile"
24567case "(($ac_try" in
24568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569  *) ac_try_echo=$ac_try;;
24570esac
24571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572  (eval "$ac_compile") 2>conftest.er1
24573  ac_status=$?
24574  grep -v '^ *+' conftest.er1 >conftest.err
24575  rm -f conftest.er1
24576  cat conftest.err >&5
24577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578  (exit $ac_status); } && {
24579	 test -z "$ac_c_werror_flag" ||
24580	 test ! -s conftest.err
24581       } && test -s conftest.$ac_objext; then
24582  ac_lo=0 ac_mid=0
24583  while :; do
24584    cat >conftest.$ac_ext <<_ACEOF
24585/* confdefs.h.  */
24586_ACEOF
24587cat confdefs.h >>conftest.$ac_ext
24588cat >>conftest.$ac_ext <<_ACEOF
24589/* end confdefs.h.  */
24590$ac_includes_default
24591   typedef long long ac__type_sizeof_;
24592int
24593main ()
24594{
24595static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24596test_array [0] = 0
24597
24598  ;
24599  return 0;
24600}
24601_ACEOF
24602rm -f conftest.$ac_objext
24603if { (ac_try="$ac_compile"
24604case "(($ac_try" in
24605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24606  *) ac_try_echo=$ac_try;;
24607esac
24608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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	 test -z "$ac_c_werror_flag" ||
24617	 test ! -s conftest.err
24618       } && test -s conftest.$ac_objext; then
24619  ac_hi=$ac_mid; break
24620else
24621  echo "$as_me: failed program was:" >&5
24622sed 's/^/| /' conftest.$ac_ext >&5
24623
24624	ac_lo=`expr $ac_mid + 1`
24625			if test $ac_lo -le $ac_mid; then
24626			  ac_lo= ac_hi=
24627			  break
24628			fi
24629			ac_mid=`expr 2 '*' $ac_mid + 1`
24630fi
24631
24632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633  done
24634else
24635  echo "$as_me: failed program was:" >&5
24636sed 's/^/| /' conftest.$ac_ext >&5
24637
24638	cat >conftest.$ac_ext <<_ACEOF
24639/* confdefs.h.  */
24640_ACEOF
24641cat confdefs.h >>conftest.$ac_ext
24642cat >>conftest.$ac_ext <<_ACEOF
24643/* end confdefs.h.  */
24644$ac_includes_default
24645   typedef long long ac__type_sizeof_;
24646int
24647main ()
24648{
24649static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24650test_array [0] = 0
24651
24652  ;
24653  return 0;
24654}
24655_ACEOF
24656rm -f conftest.$ac_objext
24657if { (ac_try="$ac_compile"
24658case "(($ac_try" in
24659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660  *) ac_try_echo=$ac_try;;
24661esac
24662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24663  (eval "$ac_compile") 2>conftest.er1
24664  ac_status=$?
24665  grep -v '^ *+' conftest.er1 >conftest.err
24666  rm -f conftest.er1
24667  cat conftest.err >&5
24668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669  (exit $ac_status); } && {
24670	 test -z "$ac_c_werror_flag" ||
24671	 test ! -s conftest.err
24672       } && test -s conftest.$ac_objext; then
24673  ac_hi=-1 ac_mid=-1
24674  while :; do
24675    cat >conftest.$ac_ext <<_ACEOF
24676/* confdefs.h.  */
24677_ACEOF
24678cat confdefs.h >>conftest.$ac_ext
24679cat >>conftest.$ac_ext <<_ACEOF
24680/* end confdefs.h.  */
24681$ac_includes_default
24682   typedef long long ac__type_sizeof_;
24683int
24684main ()
24685{
24686static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24687test_array [0] = 0
24688
24689  ;
24690  return 0;
24691}
24692_ACEOF
24693rm -f conftest.$ac_objext
24694if { (ac_try="$ac_compile"
24695case "(($ac_try" in
24696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697  *) ac_try_echo=$ac_try;;
24698esac
24699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700  (eval "$ac_compile") 2>conftest.er1
24701  ac_status=$?
24702  grep -v '^ *+' conftest.er1 >conftest.err
24703  rm -f conftest.er1
24704  cat conftest.err >&5
24705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706  (exit $ac_status); } && {
24707	 test -z "$ac_c_werror_flag" ||
24708	 test ! -s conftest.err
24709       } && test -s conftest.$ac_objext; then
24710  ac_lo=$ac_mid; break
24711else
24712  echo "$as_me: failed program was:" >&5
24713sed 's/^/| /' conftest.$ac_ext >&5
24714
24715	ac_hi=`expr '(' $ac_mid ')' - 1`
24716			if test $ac_mid -le $ac_hi; then
24717			  ac_lo= ac_hi=
24718			  break
24719			fi
24720			ac_mid=`expr 2 '*' $ac_mid`
24721fi
24722
24723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724  done
24725else
24726  echo "$as_me: failed program was:" >&5
24727sed 's/^/| /' conftest.$ac_ext >&5
24728
24729	ac_lo= ac_hi=
24730fi
24731
24732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24733fi
24734
24735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736# Binary search between lo and hi bounds.
24737while test "x$ac_lo" != "x$ac_hi"; do
24738  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24739  cat >conftest.$ac_ext <<_ACEOF
24740/* confdefs.h.  */
24741_ACEOF
24742cat confdefs.h >>conftest.$ac_ext
24743cat >>conftest.$ac_ext <<_ACEOF
24744/* end confdefs.h.  */
24745$ac_includes_default
24746   typedef long long ac__type_sizeof_;
24747int
24748main ()
24749{
24750static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24751test_array [0] = 0
24752
24753  ;
24754  return 0;
24755}
24756_ACEOF
24757rm -f conftest.$ac_objext
24758if { (ac_try="$ac_compile"
24759case "(($ac_try" in
24760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761  *) ac_try_echo=$ac_try;;
24762esac
24763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24764  (eval "$ac_compile") 2>conftest.er1
24765  ac_status=$?
24766  grep -v '^ *+' conftest.er1 >conftest.err
24767  rm -f conftest.er1
24768  cat conftest.err >&5
24769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770  (exit $ac_status); } && {
24771	 test -z "$ac_c_werror_flag" ||
24772	 test ! -s conftest.err
24773       } && test -s conftest.$ac_objext; then
24774  ac_hi=$ac_mid
24775else
24776  echo "$as_me: failed program was:" >&5
24777sed 's/^/| /' conftest.$ac_ext >&5
24778
24779	ac_lo=`expr '(' $ac_mid ')' + 1`
24780fi
24781
24782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783done
24784case $ac_lo in
24785?*) ac_cv_sizeof_long_long=$ac_lo;;
24786'') if test "$ac_cv_type_long_long" = yes; then
24787     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24788See \`config.log' for more details." >&5
24789echo "$as_me: error: cannot compute sizeof (long long)
24790See \`config.log' for more details." >&2;}
24791   { (exit 77); exit 77; }; }
24792   else
24793     ac_cv_sizeof_long_long=0
24794   fi ;;
24795esac
24796else
24797  cat >conftest.$ac_ext <<_ACEOF
24798/* confdefs.h.  */
24799_ACEOF
24800cat confdefs.h >>conftest.$ac_ext
24801cat >>conftest.$ac_ext <<_ACEOF
24802/* end confdefs.h.  */
24803$ac_includes_default
24804   typedef long long ac__type_sizeof_;
24805static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24806static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24807#include <stdio.h>
24808#include <stdlib.h>
24809int
24810main ()
24811{
24812
24813  FILE *f = fopen ("conftest.val", "w");
24814  if (! f)
24815    return 1;
24816  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24817    {
24818      long int i = longval ();
24819      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24820	return 1;
24821      fprintf (f, "%ld\n", i);
24822    }
24823  else
24824    {
24825      unsigned long int i = ulongval ();
24826      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24827	return 1;
24828      fprintf (f, "%lu\n", i);
24829    }
24830  return ferror (f) || fclose (f) != 0;
24831
24832  ;
24833  return 0;
24834}
24835_ACEOF
24836rm -f conftest$ac_exeext
24837if { (ac_try="$ac_link"
24838case "(($ac_try" in
24839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840  *) ac_try_echo=$ac_try;;
24841esac
24842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843  (eval "$ac_link") 2>&5
24844  ac_status=$?
24845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24847  { (case "(($ac_try" in
24848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849  *) ac_try_echo=$ac_try;;
24850esac
24851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852  (eval "$ac_try") 2>&5
24853  ac_status=$?
24854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855  (exit $ac_status); }; }; then
24856  ac_cv_sizeof_long_long=`cat conftest.val`
24857else
24858  echo "$as_me: program exited with status $ac_status" >&5
24859echo "$as_me: failed program was:" >&5
24860sed 's/^/| /' conftest.$ac_ext >&5
24861
24862( exit $ac_status )
24863if test "$ac_cv_type_long_long" = yes; then
24864     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24865See \`config.log' for more details." >&5
24866echo "$as_me: error: cannot compute sizeof (long long)
24867See \`config.log' for more details." >&2;}
24868   { (exit 77); exit 77; }; }
24869   else
24870     ac_cv_sizeof_long_long=0
24871   fi
24872fi
24873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24874fi
24875rm -f conftest.val
24876fi
24877{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24878echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24879
24880
24881
24882cat >>confdefs.h <<_ACEOF
24883#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24884_ACEOF
24885
24886
24887{ echo "$as_me:$LINENO: checking for short" >&5
24888echo $ECHO_N "checking for short... $ECHO_C" >&6; }
24889if test "${ac_cv_type_short+set}" = set; then
24890  echo $ECHO_N "(cached) $ECHO_C" >&6
24891else
24892  cat >conftest.$ac_ext <<_ACEOF
24893/* confdefs.h.  */
24894_ACEOF
24895cat confdefs.h >>conftest.$ac_ext
24896cat >>conftest.$ac_ext <<_ACEOF
24897/* end confdefs.h.  */
24898$ac_includes_default
24899typedef short ac__type_new_;
24900int
24901main ()
24902{
24903if ((ac__type_new_ *) 0)
24904  return 0;
24905if (sizeof (ac__type_new_))
24906  return 0;
24907  ;
24908  return 0;
24909}
24910_ACEOF
24911rm -f conftest.$ac_objext
24912if { (ac_try="$ac_compile"
24913case "(($ac_try" in
24914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915  *) ac_try_echo=$ac_try;;
24916esac
24917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918  (eval "$ac_compile") 2>conftest.er1
24919  ac_status=$?
24920  grep -v '^ *+' conftest.er1 >conftest.err
24921  rm -f conftest.er1
24922  cat conftest.err >&5
24923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924  (exit $ac_status); } && {
24925	 test -z "$ac_c_werror_flag" ||
24926	 test ! -s conftest.err
24927       } && test -s conftest.$ac_objext; then
24928  ac_cv_type_short=yes
24929else
24930  echo "$as_me: failed program was:" >&5
24931sed 's/^/| /' conftest.$ac_ext >&5
24932
24933	ac_cv_type_short=no
24934fi
24935
24936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937fi
24938{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
24939echo "${ECHO_T}$ac_cv_type_short" >&6; }
24940
24941# The cast to long int works around a bug in the HP C Compiler
24942# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24943# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24944# This bug is HP SR number 8606223364.
24945{ echo "$as_me:$LINENO: checking size of short" >&5
24946echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
24947if test "${ac_cv_sizeof_short+set}" = set; then
24948  echo $ECHO_N "(cached) $ECHO_C" >&6
24949else
24950  if test "$cross_compiling" = yes; then
24951  # Depending upon the size, compute the lo and hi bounds.
24952cat >conftest.$ac_ext <<_ACEOF
24953/* confdefs.h.  */
24954_ACEOF
24955cat confdefs.h >>conftest.$ac_ext
24956cat >>conftest.$ac_ext <<_ACEOF
24957/* end confdefs.h.  */
24958$ac_includes_default
24959   typedef short ac__type_sizeof_;
24960int
24961main ()
24962{
24963static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24964test_array [0] = 0
24965
24966  ;
24967  return 0;
24968}
24969_ACEOF
24970rm -f conftest.$ac_objext
24971if { (ac_try="$ac_compile"
24972case "(($ac_try" in
24973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974  *) ac_try_echo=$ac_try;;
24975esac
24976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24977  (eval "$ac_compile") 2>conftest.er1
24978  ac_status=$?
24979  grep -v '^ *+' conftest.er1 >conftest.err
24980  rm -f conftest.er1
24981  cat conftest.err >&5
24982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983  (exit $ac_status); } && {
24984	 test -z "$ac_c_werror_flag" ||
24985	 test ! -s conftest.err
24986       } && test -s conftest.$ac_objext; then
24987  ac_lo=0 ac_mid=0
24988  while :; do
24989    cat >conftest.$ac_ext <<_ACEOF
24990/* confdefs.h.  */
24991_ACEOF
24992cat confdefs.h >>conftest.$ac_ext
24993cat >>conftest.$ac_ext <<_ACEOF
24994/* end confdefs.h.  */
24995$ac_includes_default
24996   typedef short ac__type_sizeof_;
24997int
24998main ()
24999{
25000static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25001test_array [0] = 0
25002
25003  ;
25004  return 0;
25005}
25006_ACEOF
25007rm -f conftest.$ac_objext
25008if { (ac_try="$ac_compile"
25009case "(($ac_try" in
25010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25011  *) ac_try_echo=$ac_try;;
25012esac
25013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25014  (eval "$ac_compile") 2>conftest.er1
25015  ac_status=$?
25016  grep -v '^ *+' conftest.er1 >conftest.err
25017  rm -f conftest.er1
25018  cat conftest.err >&5
25019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020  (exit $ac_status); } && {
25021	 test -z "$ac_c_werror_flag" ||
25022	 test ! -s conftest.err
25023       } && test -s conftest.$ac_objext; then
25024  ac_hi=$ac_mid; break
25025else
25026  echo "$as_me: failed program was:" >&5
25027sed 's/^/| /' conftest.$ac_ext >&5
25028
25029	ac_lo=`expr $ac_mid + 1`
25030			if test $ac_lo -le $ac_mid; then
25031			  ac_lo= ac_hi=
25032			  break
25033			fi
25034			ac_mid=`expr 2 '*' $ac_mid + 1`
25035fi
25036
25037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25038  done
25039else
25040  echo "$as_me: failed program was:" >&5
25041sed 's/^/| /' conftest.$ac_ext >&5
25042
25043	cat >conftest.$ac_ext <<_ACEOF
25044/* confdefs.h.  */
25045_ACEOF
25046cat confdefs.h >>conftest.$ac_ext
25047cat >>conftest.$ac_ext <<_ACEOF
25048/* end confdefs.h.  */
25049$ac_includes_default
25050   typedef short ac__type_sizeof_;
25051int
25052main ()
25053{
25054static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25055test_array [0] = 0
25056
25057  ;
25058  return 0;
25059}
25060_ACEOF
25061rm -f conftest.$ac_objext
25062if { (ac_try="$ac_compile"
25063case "(($ac_try" in
25064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065  *) ac_try_echo=$ac_try;;
25066esac
25067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068  (eval "$ac_compile") 2>conftest.er1
25069  ac_status=$?
25070  grep -v '^ *+' conftest.er1 >conftest.err
25071  rm -f conftest.er1
25072  cat conftest.err >&5
25073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074  (exit $ac_status); } && {
25075	 test -z "$ac_c_werror_flag" ||
25076	 test ! -s conftest.err
25077       } && test -s conftest.$ac_objext; then
25078  ac_hi=-1 ac_mid=-1
25079  while :; do
25080    cat >conftest.$ac_ext <<_ACEOF
25081/* confdefs.h.  */
25082_ACEOF
25083cat confdefs.h >>conftest.$ac_ext
25084cat >>conftest.$ac_ext <<_ACEOF
25085/* end confdefs.h.  */
25086$ac_includes_default
25087   typedef short ac__type_sizeof_;
25088int
25089main ()
25090{
25091static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25092test_array [0] = 0
25093
25094  ;
25095  return 0;
25096}
25097_ACEOF
25098rm -f conftest.$ac_objext
25099if { (ac_try="$ac_compile"
25100case "(($ac_try" in
25101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102  *) ac_try_echo=$ac_try;;
25103esac
25104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105  (eval "$ac_compile") 2>conftest.er1
25106  ac_status=$?
25107  grep -v '^ *+' conftest.er1 >conftest.err
25108  rm -f conftest.er1
25109  cat conftest.err >&5
25110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111  (exit $ac_status); } && {
25112	 test -z "$ac_c_werror_flag" ||
25113	 test ! -s conftest.err
25114       } && test -s conftest.$ac_objext; then
25115  ac_lo=$ac_mid; break
25116else
25117  echo "$as_me: failed program was:" >&5
25118sed 's/^/| /' conftest.$ac_ext >&5
25119
25120	ac_hi=`expr '(' $ac_mid ')' - 1`
25121			if test $ac_mid -le $ac_hi; then
25122			  ac_lo= ac_hi=
25123			  break
25124			fi
25125			ac_mid=`expr 2 '*' $ac_mid`
25126fi
25127
25128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129  done
25130else
25131  echo "$as_me: failed program was:" >&5
25132sed 's/^/| /' conftest.$ac_ext >&5
25133
25134	ac_lo= ac_hi=
25135fi
25136
25137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25138fi
25139
25140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25141# Binary search between lo and hi bounds.
25142while test "x$ac_lo" != "x$ac_hi"; do
25143  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25144  cat >conftest.$ac_ext <<_ACEOF
25145/* confdefs.h.  */
25146_ACEOF
25147cat confdefs.h >>conftest.$ac_ext
25148cat >>conftest.$ac_ext <<_ACEOF
25149/* end confdefs.h.  */
25150$ac_includes_default
25151   typedef short ac__type_sizeof_;
25152int
25153main ()
25154{
25155static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25156test_array [0] = 0
25157
25158  ;
25159  return 0;
25160}
25161_ACEOF
25162rm -f conftest.$ac_objext
25163if { (ac_try="$ac_compile"
25164case "(($ac_try" in
25165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25166  *) ac_try_echo=$ac_try;;
25167esac
25168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25169  (eval "$ac_compile") 2>conftest.er1
25170  ac_status=$?
25171  grep -v '^ *+' conftest.er1 >conftest.err
25172  rm -f conftest.er1
25173  cat conftest.err >&5
25174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175  (exit $ac_status); } && {
25176	 test -z "$ac_c_werror_flag" ||
25177	 test ! -s conftest.err
25178       } && test -s conftest.$ac_objext; then
25179  ac_hi=$ac_mid
25180else
25181  echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184	ac_lo=`expr '(' $ac_mid ')' + 1`
25185fi
25186
25187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25188done
25189case $ac_lo in
25190?*) ac_cv_sizeof_short=$ac_lo;;
25191'') if test "$ac_cv_type_short" = yes; then
25192     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
25193See \`config.log' for more details." >&5
25194echo "$as_me: error: cannot compute sizeof (short)
25195See \`config.log' for more details." >&2;}
25196   { (exit 77); exit 77; }; }
25197   else
25198     ac_cv_sizeof_short=0
25199   fi ;;
25200esac
25201else
25202  cat >conftest.$ac_ext <<_ACEOF
25203/* confdefs.h.  */
25204_ACEOF
25205cat confdefs.h >>conftest.$ac_ext
25206cat >>conftest.$ac_ext <<_ACEOF
25207/* end confdefs.h.  */
25208$ac_includes_default
25209   typedef short ac__type_sizeof_;
25210static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25211static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25212#include <stdio.h>
25213#include <stdlib.h>
25214int
25215main ()
25216{
25217
25218  FILE *f = fopen ("conftest.val", "w");
25219  if (! f)
25220    return 1;
25221  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25222    {
25223      long int i = longval ();
25224      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25225	return 1;
25226      fprintf (f, "%ld\n", i);
25227    }
25228  else
25229    {
25230      unsigned long int i = ulongval ();
25231      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25232	return 1;
25233      fprintf (f, "%lu\n", i);
25234    }
25235  return ferror (f) || fclose (f) != 0;
25236
25237  ;
25238  return 0;
25239}
25240_ACEOF
25241rm -f conftest$ac_exeext
25242if { (ac_try="$ac_link"
25243case "(($ac_try" in
25244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245  *) ac_try_echo=$ac_try;;
25246esac
25247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248  (eval "$ac_link") 2>&5
25249  ac_status=$?
25250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25252  { (case "(($ac_try" in
25253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254  *) ac_try_echo=$ac_try;;
25255esac
25256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25257  (eval "$ac_try") 2>&5
25258  ac_status=$?
25259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260  (exit $ac_status); }; }; then
25261  ac_cv_sizeof_short=`cat conftest.val`
25262else
25263  echo "$as_me: program exited with status $ac_status" >&5
25264echo "$as_me: failed program was:" >&5
25265sed 's/^/| /' conftest.$ac_ext >&5
25266
25267( exit $ac_status )
25268if test "$ac_cv_type_short" = yes; then
25269     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
25270See \`config.log' for more details." >&5
25271echo "$as_me: error: cannot compute sizeof (short)
25272See \`config.log' for more details." >&2;}
25273   { (exit 77); exit 77; }; }
25274   else
25275     ac_cv_sizeof_short=0
25276   fi
25277fi
25278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25279fi
25280rm -f conftest.val
25281fi
25282{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25283echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
25284
25285
25286
25287cat >>confdefs.h <<_ACEOF
25288#define SIZEOF_SHORT $ac_cv_sizeof_short
25289_ACEOF
25290
25291
25292
25293{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25294echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25295if test "${ac_cv_c_const+set}" = set; then
25296  echo $ECHO_N "(cached) $ECHO_C" >&6
25297else
25298  cat >conftest.$ac_ext <<_ACEOF
25299/* confdefs.h.  */
25300_ACEOF
25301cat confdefs.h >>conftest.$ac_ext
25302cat >>conftest.$ac_ext <<_ACEOF
25303/* end confdefs.h.  */
25304
25305int
25306main ()
25307{
25308/* FIXME: Include the comments suggested by Paul. */
25309#ifndef __cplusplus
25310  /* Ultrix mips cc rejects this.  */
25311  typedef int charset[2];
25312  const charset cs;
25313  /* SunOS 4.1.1 cc rejects this.  */
25314  char const *const *pcpcc;
25315  char **ppc;
25316  /* NEC SVR4.0.2 mips cc rejects this.  */
25317  struct point {int x, y;};
25318  static struct point const zero = {0,0};
25319  /* AIX XL C 1.02.0.0 rejects this.
25320     It does not let you subtract one const X* pointer from another in
25321     an arm of an if-expression whose if-part is not a constant
25322     expression */
25323  const char *g = "string";
25324  pcpcc = &g + (g ? g-g : 0);
25325  /* HPUX 7.0 cc rejects these. */
25326  ++pcpcc;
25327  ppc = (char**) pcpcc;
25328  pcpcc = (char const *const *) ppc;
25329  { /* SCO 3.2v4 cc rejects this.  */
25330    char *t;
25331    char const *s = 0 ? (char *) 0 : (char const *) 0;
25332
25333    *t++ = 0;
25334    if (s) return 0;
25335  }
25336  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25337    int x[] = {25, 17};
25338    const int *foo = &x[0];
25339    ++foo;
25340  }
25341  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25342    typedef const int *iptr;
25343    iptr p = 0;
25344    ++p;
25345  }
25346  { /* AIX XL C 1.02.0.0 rejects this saying
25347       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25348    struct s { int j; const int *ap[3]; };
25349    struct s *b; b->j = 5;
25350  }
25351  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25352    const int foo = 10;
25353    if (!foo) return 0;
25354  }
25355  return !cs[0] && !zero.x;
25356#endif
25357
25358  ;
25359  return 0;
25360}
25361_ACEOF
25362rm -f conftest.$ac_objext
25363if { (ac_try="$ac_compile"
25364case "(($ac_try" in
25365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25366  *) ac_try_echo=$ac_try;;
25367esac
25368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25369  (eval "$ac_compile") 2>conftest.er1
25370  ac_status=$?
25371  grep -v '^ *+' conftest.er1 >conftest.err
25372  rm -f conftest.er1
25373  cat conftest.err >&5
25374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375  (exit $ac_status); } && {
25376	 test -z "$ac_c_werror_flag" ||
25377	 test ! -s conftest.err
25378       } && test -s conftest.$ac_objext; then
25379  ac_cv_c_const=yes
25380else
25381  echo "$as_me: failed program was:" >&5
25382sed 's/^/| /' conftest.$ac_ext >&5
25383
25384	ac_cv_c_const=no
25385fi
25386
25387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25388fi
25389{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25390echo "${ECHO_T}$ac_cv_c_const" >&6; }
25391if test $ac_cv_c_const = no; then
25392
25393cat >>confdefs.h <<\_ACEOF
25394#define const
25395_ACEOF
25396
25397fi
25398
25399{ echo "$as_me:$LINENO: checking for inline" >&5
25400echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
25401if test "${ac_cv_c_inline+set}" = set; then
25402  echo $ECHO_N "(cached) $ECHO_C" >&6
25403else
25404  ac_cv_c_inline=no
25405for ac_kw in inline __inline__ __inline; do
25406  cat >conftest.$ac_ext <<_ACEOF
25407/* confdefs.h.  */
25408_ACEOF
25409cat confdefs.h >>conftest.$ac_ext
25410cat >>conftest.$ac_ext <<_ACEOF
25411/* end confdefs.h.  */
25412#ifndef __cplusplus
25413typedef int foo_t;
25414static $ac_kw foo_t static_foo () {return 0; }
25415$ac_kw foo_t foo () {return 0; }
25416#endif
25417
25418_ACEOF
25419rm -f conftest.$ac_objext
25420if { (ac_try="$ac_compile"
25421case "(($ac_try" in
25422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423  *) ac_try_echo=$ac_try;;
25424esac
25425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426  (eval "$ac_compile") 2>conftest.er1
25427  ac_status=$?
25428  grep -v '^ *+' conftest.er1 >conftest.err
25429  rm -f conftest.er1
25430  cat conftest.err >&5
25431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432  (exit $ac_status); } && {
25433	 test -z "$ac_c_werror_flag" ||
25434	 test ! -s conftest.err
25435       } && test -s conftest.$ac_objext; then
25436  ac_cv_c_inline=$ac_kw
25437else
25438  echo "$as_me: failed program was:" >&5
25439sed 's/^/| /' conftest.$ac_ext >&5
25440
25441
25442fi
25443
25444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25445  test "$ac_cv_c_inline" != no && break
25446done
25447
25448fi
25449{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
25450echo "${ECHO_T}$ac_cv_c_inline" >&6; }
25451
25452
25453case $ac_cv_c_inline in
25454  inline | yes) ;;
25455  *)
25456    case $ac_cv_c_inline in
25457      no) ac_val=;;
25458      *) ac_val=$ac_cv_c_inline;;
25459    esac
25460    cat >>confdefs.h <<_ACEOF
25461#ifndef __cplusplus
25462#define inline $ac_val
25463#endif
25464_ACEOF
25465    ;;
25466esac
25467
25468{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25469echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25470if test "${ac_cv_c_bigendian+set}" = set; then
25471  echo $ECHO_N "(cached) $ECHO_C" >&6
25472else
25473  # See if sys/param.h defines the BYTE_ORDER macro.
25474cat >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#include <sys/types.h>
25481#include <sys/param.h>
25482
25483int
25484main ()
25485{
25486#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25487	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25488 bogus endian macros
25489#endif
25490
25491  ;
25492  return 0;
25493}
25494_ACEOF
25495rm -f conftest.$ac_objext
25496if { (ac_try="$ac_compile"
25497case "(($ac_try" in
25498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499  *) ac_try_echo=$ac_try;;
25500esac
25501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25502  (eval "$ac_compile") 2>conftest.er1
25503  ac_status=$?
25504  grep -v '^ *+' conftest.er1 >conftest.err
25505  rm -f conftest.er1
25506  cat conftest.err >&5
25507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508  (exit $ac_status); } && {
25509	 test -z "$ac_c_werror_flag" ||
25510	 test ! -s conftest.err
25511       } && test -s conftest.$ac_objext; then
25512  # It does; now see whether it defined to BIG_ENDIAN or not.
25513cat >conftest.$ac_ext <<_ACEOF
25514/* confdefs.h.  */
25515_ACEOF
25516cat confdefs.h >>conftest.$ac_ext
25517cat >>conftest.$ac_ext <<_ACEOF
25518/* end confdefs.h.  */
25519#include <sys/types.h>
25520#include <sys/param.h>
25521
25522int
25523main ()
25524{
25525#if BYTE_ORDER != BIG_ENDIAN
25526 not big endian
25527#endif
25528
25529  ;
25530  return 0;
25531}
25532_ACEOF
25533rm -f conftest.$ac_objext
25534if { (ac_try="$ac_compile"
25535case "(($ac_try" in
25536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537  *) ac_try_echo=$ac_try;;
25538esac
25539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540  (eval "$ac_compile") 2>conftest.er1
25541  ac_status=$?
25542  grep -v '^ *+' conftest.er1 >conftest.err
25543  rm -f conftest.er1
25544  cat conftest.err >&5
25545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546  (exit $ac_status); } && {
25547	 test -z "$ac_c_werror_flag" ||
25548	 test ! -s conftest.err
25549       } && test -s conftest.$ac_objext; then
25550  ac_cv_c_bigendian=yes
25551else
25552  echo "$as_me: failed program was:" >&5
25553sed 's/^/| /' conftest.$ac_ext >&5
25554
25555	ac_cv_c_bigendian=no
25556fi
25557
25558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25559else
25560  echo "$as_me: failed program was:" >&5
25561sed 's/^/| /' conftest.$ac_ext >&5
25562
25563	# It does not; compile a test program.
25564if test "$cross_compiling" = yes; then
25565  # try to guess the endianness by grepping values into an object file
25566  ac_cv_c_bigendian=unknown
25567  cat >conftest.$ac_ext <<_ACEOF
25568/* confdefs.h.  */
25569_ACEOF
25570cat confdefs.h >>conftest.$ac_ext
25571cat >>conftest.$ac_ext <<_ACEOF
25572/* end confdefs.h.  */
25573short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25574short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25575void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25576short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25577short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25578void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25579int
25580main ()
25581{
25582 _ascii (); _ebcdic ();
25583  ;
25584  return 0;
25585}
25586_ACEOF
25587rm -f conftest.$ac_objext
25588if { (ac_try="$ac_compile"
25589case "(($ac_try" in
25590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591  *) ac_try_echo=$ac_try;;
25592esac
25593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594  (eval "$ac_compile") 2>conftest.er1
25595  ac_status=$?
25596  grep -v '^ *+' conftest.er1 >conftest.err
25597  rm -f conftest.er1
25598  cat conftest.err >&5
25599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600  (exit $ac_status); } && {
25601	 test -z "$ac_c_werror_flag" ||
25602	 test ! -s conftest.err
25603       } && test -s conftest.$ac_objext; then
25604  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25605  ac_cv_c_bigendian=yes
25606fi
25607if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25608  if test "$ac_cv_c_bigendian" = unknown; then
25609    ac_cv_c_bigendian=no
25610  else
25611    # finding both strings is unlikely to happen, but who knows?
25612    ac_cv_c_bigendian=unknown
25613  fi
25614fi
25615else
25616  echo "$as_me: failed program was:" >&5
25617sed 's/^/| /' conftest.$ac_ext >&5
25618
25619
25620fi
25621
25622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25623else
25624  cat >conftest.$ac_ext <<_ACEOF
25625/* confdefs.h.  */
25626_ACEOF
25627cat confdefs.h >>conftest.$ac_ext
25628cat >>conftest.$ac_ext <<_ACEOF
25629/* end confdefs.h.  */
25630$ac_includes_default
25631int
25632main ()
25633{
25634
25635  /* Are we little or big endian?  From Harbison&Steele.  */
25636  union
25637  {
25638    long int l;
25639    char c[sizeof (long int)];
25640  } u;
25641  u.l = 1;
25642  return u.c[sizeof (long int) - 1] == 1;
25643
25644  ;
25645  return 0;
25646}
25647_ACEOF
25648rm -f conftest$ac_exeext
25649if { (ac_try="$ac_link"
25650case "(($ac_try" in
25651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25652  *) ac_try_echo=$ac_try;;
25653esac
25654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25655  (eval "$ac_link") 2>&5
25656  ac_status=$?
25657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25659  { (case "(($ac_try" in
25660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661  *) ac_try_echo=$ac_try;;
25662esac
25663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25664  (eval "$ac_try") 2>&5
25665  ac_status=$?
25666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667  (exit $ac_status); }; }; then
25668  ac_cv_c_bigendian=no
25669else
25670  echo "$as_me: program exited with status $ac_status" >&5
25671echo "$as_me: failed program was:" >&5
25672sed 's/^/| /' conftest.$ac_ext >&5
25673
25674( exit $ac_status )
25675ac_cv_c_bigendian=yes
25676fi
25677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25678fi
25679
25680
25681fi
25682
25683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25684fi
25685{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25686echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25687case $ac_cv_c_bigendian in
25688  yes)
25689
25690cat >>confdefs.h <<\_ACEOF
25691#define WORDS_BIGENDIAN 1
25692_ACEOF
25693 ;;
25694  no)
25695     ;;
25696  *)
25697    { { echo "$as_me:$LINENO: error: unknown endianness
25698presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25699echo "$as_me: error: unknown endianness
25700presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25701   { (exit 1); exit 1; }; } ;;
25702esac
25703
25704
25705{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
25706echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
25707if test "${ac_cv_c_char_unsigned+set}" = set; then
25708  echo $ECHO_N "(cached) $ECHO_C" >&6
25709else
25710  cat >conftest.$ac_ext <<_ACEOF
25711/* confdefs.h.  */
25712_ACEOF
25713cat confdefs.h >>conftest.$ac_ext
25714cat >>conftest.$ac_ext <<_ACEOF
25715/* end confdefs.h.  */
25716$ac_includes_default
25717int
25718main ()
25719{
25720static int test_array [1 - 2 * !(((char) -1) < 0)];
25721test_array [0] = 0
25722
25723  ;
25724  return 0;
25725}
25726_ACEOF
25727rm -f conftest.$ac_objext
25728if { (ac_try="$ac_compile"
25729case "(($ac_try" in
25730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25731  *) ac_try_echo=$ac_try;;
25732esac
25733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25734  (eval "$ac_compile") 2>conftest.er1
25735  ac_status=$?
25736  grep -v '^ *+' conftest.er1 >conftest.err
25737  rm -f conftest.er1
25738  cat conftest.err >&5
25739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740  (exit $ac_status); } && {
25741	 test -z "$ac_c_werror_flag" ||
25742	 test ! -s conftest.err
25743       } && test -s conftest.$ac_objext; then
25744  ac_cv_c_char_unsigned=no
25745else
25746  echo "$as_me: failed program was:" >&5
25747sed 's/^/| /' conftest.$ac_ext >&5
25748
25749	ac_cv_c_char_unsigned=yes
25750fi
25751
25752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25753fi
25754{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
25755echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
25756if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
25757  cat >>confdefs.h <<\_ACEOF
25758#define __CHAR_UNSIGNED__ 1
25759_ACEOF
25760
25761fi
25762
25763
25764{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25765echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
25766if test "${ac_cv_type_signal+set}" = set; then
25767  echo $ECHO_N "(cached) $ECHO_C" >&6
25768else
25769  cat >conftest.$ac_ext <<_ACEOF
25770/* confdefs.h.  */
25771_ACEOF
25772cat confdefs.h >>conftest.$ac_ext
25773cat >>conftest.$ac_ext <<_ACEOF
25774/* end confdefs.h.  */
25775#include <sys/types.h>
25776#include <signal.h>
25777
25778int
25779main ()
25780{
25781return *(signal (0, 0)) (0) == 1;
25782  ;
25783  return 0;
25784}
25785_ACEOF
25786rm -f conftest.$ac_objext
25787if { (ac_try="$ac_compile"
25788case "(($ac_try" in
25789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25790  *) ac_try_echo=$ac_try;;
25791esac
25792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25793  (eval "$ac_compile") 2>conftest.er1
25794  ac_status=$?
25795  grep -v '^ *+' conftest.er1 >conftest.err
25796  rm -f conftest.er1
25797  cat conftest.err >&5
25798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799  (exit $ac_status); } && {
25800	 test -z "$ac_c_werror_flag" ||
25801	 test ! -s conftest.err
25802       } && test -s conftest.$ac_objext; then
25803  ac_cv_type_signal=int
25804else
25805  echo "$as_me: failed program was:" >&5
25806sed 's/^/| /' conftest.$ac_ext >&5
25807
25808	ac_cv_type_signal=void
25809fi
25810
25811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25812fi
25813{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25814echo "${ECHO_T}$ac_cv_type_signal" >&6; }
25815
25816cat >>confdefs.h <<_ACEOF
25817#define RETSIGTYPE $ac_cv_type_signal
25818_ACEOF
25819
25820
25821{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25822echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
25823if test "${ac_cv_type_uid_t+set}" = set; then
25824  echo $ECHO_N "(cached) $ECHO_C" >&6
25825else
25826  cat >conftest.$ac_ext <<_ACEOF
25827/* confdefs.h.  */
25828_ACEOF
25829cat confdefs.h >>conftest.$ac_ext
25830cat >>conftest.$ac_ext <<_ACEOF
25831/* end confdefs.h.  */
25832#include <sys/types.h>
25833
25834_ACEOF
25835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25836  $EGREP "uid_t" >/dev/null 2>&1; then
25837  ac_cv_type_uid_t=yes
25838else
25839  ac_cv_type_uid_t=no
25840fi
25841rm -f conftest*
25842
25843fi
25844{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25845echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
25846if test $ac_cv_type_uid_t = no; then
25847
25848cat >>confdefs.h <<\_ACEOF
25849#define uid_t int
25850_ACEOF
25851
25852
25853cat >>confdefs.h <<\_ACEOF
25854#define gid_t int
25855_ACEOF
25856
25857fi
25858
25859{ echo "$as_me:$LINENO: checking for mode_t" >&5
25860echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
25861if test "${ac_cv_type_mode_t+set}" = set; then
25862  echo $ECHO_N "(cached) $ECHO_C" >&6
25863else
25864  cat >conftest.$ac_ext <<_ACEOF
25865/* confdefs.h.  */
25866_ACEOF
25867cat confdefs.h >>conftest.$ac_ext
25868cat >>conftest.$ac_ext <<_ACEOF
25869/* end confdefs.h.  */
25870$ac_includes_default
25871typedef mode_t ac__type_new_;
25872int
25873main ()
25874{
25875if ((ac__type_new_ *) 0)
25876  return 0;
25877if (sizeof (ac__type_new_))
25878  return 0;
25879  ;
25880  return 0;
25881}
25882_ACEOF
25883rm -f conftest.$ac_objext
25884if { (ac_try="$ac_compile"
25885case "(($ac_try" in
25886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887  *) ac_try_echo=$ac_try;;
25888esac
25889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890  (eval "$ac_compile") 2>conftest.er1
25891  ac_status=$?
25892  grep -v '^ *+' conftest.er1 >conftest.err
25893  rm -f conftest.er1
25894  cat conftest.err >&5
25895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896  (exit $ac_status); } && {
25897	 test -z "$ac_c_werror_flag" ||
25898	 test ! -s conftest.err
25899       } && test -s conftest.$ac_objext; then
25900  ac_cv_type_mode_t=yes
25901else
25902  echo "$as_me: failed program was:" >&5
25903sed 's/^/| /' conftest.$ac_ext >&5
25904
25905	ac_cv_type_mode_t=no
25906fi
25907
25908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25909fi
25910{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25911echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
25912if test $ac_cv_type_mode_t = yes; then
25913  :
25914else
25915
25916cat >>confdefs.h <<_ACEOF
25917#define mode_t int
25918_ACEOF
25919
25920fi
25921
25922{ echo "$as_me:$LINENO: checking for off_t" >&5
25923echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25924if test "${ac_cv_type_off_t+set}" = set; then
25925  echo $ECHO_N "(cached) $ECHO_C" >&6
25926else
25927  cat >conftest.$ac_ext <<_ACEOF
25928/* confdefs.h.  */
25929_ACEOF
25930cat confdefs.h >>conftest.$ac_ext
25931cat >>conftest.$ac_ext <<_ACEOF
25932/* end confdefs.h.  */
25933$ac_includes_default
25934typedef off_t ac__type_new_;
25935int
25936main ()
25937{
25938if ((ac__type_new_ *) 0)
25939  return 0;
25940if (sizeof (ac__type_new_))
25941  return 0;
25942  ;
25943  return 0;
25944}
25945_ACEOF
25946rm -f conftest.$ac_objext
25947if { (ac_try="$ac_compile"
25948case "(($ac_try" in
25949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950  *) ac_try_echo=$ac_try;;
25951esac
25952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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	 test -z "$ac_c_werror_flag" ||
25961	 test ! -s conftest.err
25962       } && test -s conftest.$ac_objext; then
25963  ac_cv_type_off_t=yes
25964else
25965  echo "$as_me: failed program was:" >&5
25966sed 's/^/| /' conftest.$ac_ext >&5
25967
25968	ac_cv_type_off_t=no
25969fi
25970
25971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972fi
25973{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25974echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25975if test $ac_cv_type_off_t = yes; then
25976  :
25977else
25978
25979cat >>confdefs.h <<_ACEOF
25980#define off_t long int
25981_ACEOF
25982
25983fi
25984
25985{ echo "$as_me:$LINENO: checking for size_t" >&5
25986echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
25987if test "${ac_cv_type_size_t+set}" = set; then
25988  echo $ECHO_N "(cached) $ECHO_C" >&6
25989else
25990  cat >conftest.$ac_ext <<_ACEOF
25991/* confdefs.h.  */
25992_ACEOF
25993cat confdefs.h >>conftest.$ac_ext
25994cat >>conftest.$ac_ext <<_ACEOF
25995/* end confdefs.h.  */
25996$ac_includes_default
25997typedef size_t ac__type_new_;
25998int
25999main ()
26000{
26001if ((ac__type_new_ *) 0)
26002  return 0;
26003if (sizeof (ac__type_new_))
26004  return 0;
26005  ;
26006  return 0;
26007}
26008_ACEOF
26009rm -f conftest.$ac_objext
26010if { (ac_try="$ac_compile"
26011case "(($ac_try" in
26012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26013  *) ac_try_echo=$ac_try;;
26014esac
26015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26016  (eval "$ac_compile") 2>conftest.er1
26017  ac_status=$?
26018  grep -v '^ *+' conftest.er1 >conftest.err
26019  rm -f conftest.er1
26020  cat conftest.err >&5
26021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022  (exit $ac_status); } && {
26023	 test -z "$ac_c_werror_flag" ||
26024	 test ! -s conftest.err
26025       } && test -s conftest.$ac_objext; then
26026  ac_cv_type_size_t=yes
26027else
26028  echo "$as_me: failed program was:" >&5
26029sed 's/^/| /' conftest.$ac_ext >&5
26030
26031	ac_cv_type_size_t=no
26032fi
26033
26034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26035fi
26036{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26037echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
26038if test $ac_cv_type_size_t = yes; then
26039  :
26040else
26041
26042cat >>confdefs.h <<_ACEOF
26043#define size_t unsigned int
26044_ACEOF
26045
26046fi
26047
26048{ echo "$as_me:$LINENO: checking for pid_t" >&5
26049echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
26050if test "${ac_cv_type_pid_t+set}" = set; then
26051  echo $ECHO_N "(cached) $ECHO_C" >&6
26052else
26053  cat >conftest.$ac_ext <<_ACEOF
26054/* confdefs.h.  */
26055_ACEOF
26056cat confdefs.h >>conftest.$ac_ext
26057cat >>conftest.$ac_ext <<_ACEOF
26058/* end confdefs.h.  */
26059$ac_includes_default
26060typedef pid_t ac__type_new_;
26061int
26062main ()
26063{
26064if ((ac__type_new_ *) 0)
26065  return 0;
26066if (sizeof (ac__type_new_))
26067  return 0;
26068  ;
26069  return 0;
26070}
26071_ACEOF
26072rm -f conftest.$ac_objext
26073if { (ac_try="$ac_compile"
26074case "(($ac_try" in
26075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26076  *) ac_try_echo=$ac_try;;
26077esac
26078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26079  (eval "$ac_compile") 2>conftest.er1
26080  ac_status=$?
26081  grep -v '^ *+' conftest.er1 >conftest.err
26082  rm -f conftest.er1
26083  cat conftest.err >&5
26084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085  (exit $ac_status); } && {
26086	 test -z "$ac_c_werror_flag" ||
26087	 test ! -s conftest.err
26088       } && test -s conftest.$ac_objext; then
26089  ac_cv_type_pid_t=yes
26090else
26091  echo "$as_me: failed program was:" >&5
26092sed 's/^/| /' conftest.$ac_ext >&5
26093
26094	ac_cv_type_pid_t=no
26095fi
26096
26097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098fi
26099{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26100echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
26101if test $ac_cv_type_pid_t = yes; then
26102  :
26103else
26104
26105cat >>confdefs.h <<_ACEOF
26106#define pid_t int
26107_ACEOF
26108
26109fi
26110
26111{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
26112echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
26113if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
26114  echo $ECHO_N "(cached) $ECHO_C" >&6
26115else
26116  cat >conftest.$ac_ext <<_ACEOF
26117/* confdefs.h.  */
26118_ACEOF
26119cat confdefs.h >>conftest.$ac_ext
26120cat >>conftest.$ac_ext <<_ACEOF
26121/* end confdefs.h.  */
26122$ac_includes_default
26123int
26124main ()
26125{
26126static struct stat ac_aggr;
26127if (ac_aggr.st_rdev)
26128return 0;
26129  ;
26130  return 0;
26131}
26132_ACEOF
26133rm -f conftest.$ac_objext
26134if { (ac_try="$ac_compile"
26135case "(($ac_try" in
26136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26137  *) ac_try_echo=$ac_try;;
26138esac
26139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26140  (eval "$ac_compile") 2>conftest.er1
26141  ac_status=$?
26142  grep -v '^ *+' conftest.er1 >conftest.err
26143  rm -f conftest.er1
26144  cat conftest.err >&5
26145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146  (exit $ac_status); } && {
26147	 test -z "$ac_c_werror_flag" ||
26148	 test ! -s conftest.err
26149       } && test -s conftest.$ac_objext; then
26150  ac_cv_member_struct_stat_st_rdev=yes
26151else
26152  echo "$as_me: failed program was:" >&5
26153sed 's/^/| /' conftest.$ac_ext >&5
26154
26155	cat >conftest.$ac_ext <<_ACEOF
26156/* confdefs.h.  */
26157_ACEOF
26158cat confdefs.h >>conftest.$ac_ext
26159cat >>conftest.$ac_ext <<_ACEOF
26160/* end confdefs.h.  */
26161$ac_includes_default
26162int
26163main ()
26164{
26165static struct stat ac_aggr;
26166if (sizeof ac_aggr.st_rdev)
26167return 0;
26168  ;
26169  return 0;
26170}
26171_ACEOF
26172rm -f conftest.$ac_objext
26173if { (ac_try="$ac_compile"
26174case "(($ac_try" in
26175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26176  *) ac_try_echo=$ac_try;;
26177esac
26178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26179  (eval "$ac_compile") 2>conftest.er1
26180  ac_status=$?
26181  grep -v '^ *+' conftest.er1 >conftest.err
26182  rm -f conftest.er1
26183  cat conftest.err >&5
26184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185  (exit $ac_status); } && {
26186	 test -z "$ac_c_werror_flag" ||
26187	 test ! -s conftest.err
26188       } && test -s conftest.$ac_objext; then
26189  ac_cv_member_struct_stat_st_rdev=yes
26190else
26191  echo "$as_me: failed program was:" >&5
26192sed 's/^/| /' conftest.$ac_ext >&5
26193
26194	ac_cv_member_struct_stat_st_rdev=no
26195fi
26196
26197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26198fi
26199
26200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26201fi
26202{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
26203echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
26204if test $ac_cv_member_struct_stat_st_rdev = yes; then
26205
26206cat >>confdefs.h <<_ACEOF
26207#define HAVE_STRUCT_STAT_ST_RDEV 1
26208_ACEOF
26209
26210
26211cat >>confdefs.h <<\_ACEOF
26212#define HAVE_ST_RDEV 1
26213_ACEOF
26214
26215fi
26216
26217
26218{ echo "$as_me:$LINENO: checking for d_off in dirent" >&5
26219echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6; }
26220if test "${ac_cv_dirent_d_off+set}" = set; then
26221  echo $ECHO_N "(cached) $ECHO_C" >&6
26222else
26223  cat >conftest.$ac_ext <<_ACEOF
26224/* confdefs.h.  */
26225_ACEOF
26226cat confdefs.h >>conftest.$ac_ext
26227cat >>conftest.$ac_ext <<_ACEOF
26228/* end confdefs.h.  */
26229
26230#include <unistd.h>
26231#include <sys/types.h>
26232#include <dirent.h>
26233int
26234main ()
26235{
26236struct dirent d; d.d_off;
26237  ;
26238  return 0;
26239}
26240_ACEOF
26241rm -f conftest.$ac_objext
26242if { (ac_try="$ac_compile"
26243case "(($ac_try" in
26244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245  *) ac_try_echo=$ac_try;;
26246esac
26247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248  (eval "$ac_compile") 2>conftest.er1
26249  ac_status=$?
26250  grep -v '^ *+' conftest.er1 >conftest.err
26251  rm -f conftest.er1
26252  cat conftest.err >&5
26253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254  (exit $ac_status); } && {
26255	 test -z "$ac_c_werror_flag" ||
26256	 test ! -s conftest.err
26257       } && test -s conftest.$ac_objext; then
26258  ac_cv_dirent_d_off=yes
26259else
26260  echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263	ac_cv_dirent_d_off=no
26264fi
26265
26266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26267fi
26268{ echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
26269echo "${ECHO_T}$ac_cv_dirent_d_off" >&6; }
26270if test $ac_cv_dirent_d_off = yes; then
26271
26272cat >>confdefs.h <<\_ACEOF
26273#define HAVE_DIRENT_D_OFF 1
26274_ACEOF
26275
26276fi
26277
26278{ echo "$as_me:$LINENO: checking for ino_t" >&5
26279echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
26280if test "${ac_cv_type_ino_t+set}" = set; then
26281  echo $ECHO_N "(cached) $ECHO_C" >&6
26282else
26283  cat >conftest.$ac_ext <<_ACEOF
26284/* confdefs.h.  */
26285_ACEOF
26286cat confdefs.h >>conftest.$ac_ext
26287cat >>conftest.$ac_ext <<_ACEOF
26288/* end confdefs.h.  */
26289$ac_includes_default
26290typedef ino_t ac__type_new_;
26291int
26292main ()
26293{
26294if ((ac__type_new_ *) 0)
26295  return 0;
26296if (sizeof (ac__type_new_))
26297  return 0;
26298  ;
26299  return 0;
26300}
26301_ACEOF
26302rm -f conftest.$ac_objext
26303if { (ac_try="$ac_compile"
26304case "(($ac_try" in
26305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306  *) ac_try_echo=$ac_try;;
26307esac
26308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26309  (eval "$ac_compile") 2>conftest.er1
26310  ac_status=$?
26311  grep -v '^ *+' conftest.er1 >conftest.err
26312  rm -f conftest.er1
26313  cat conftest.err >&5
26314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315  (exit $ac_status); } && {
26316	 test -z "$ac_c_werror_flag" ||
26317	 test ! -s conftest.err
26318       } && test -s conftest.$ac_objext; then
26319  ac_cv_type_ino_t=yes
26320else
26321  echo "$as_me: failed program was:" >&5
26322sed 's/^/| /' conftest.$ac_ext >&5
26323
26324	ac_cv_type_ino_t=no
26325fi
26326
26327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26328fi
26329{ echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
26330echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
26331if test $ac_cv_type_ino_t = yes; then
26332  :
26333else
26334
26335cat >>confdefs.h <<_ACEOF
26336#define ino_t unsigned
26337_ACEOF
26338
26339fi
26340
26341{ echo "$as_me:$LINENO: checking for loff_t" >&5
26342echo $ECHO_N "checking for loff_t... $ECHO_C" >&6; }
26343if test "${ac_cv_type_loff_t+set}" = set; then
26344  echo $ECHO_N "(cached) $ECHO_C" >&6
26345else
26346  cat >conftest.$ac_ext <<_ACEOF
26347/* confdefs.h.  */
26348_ACEOF
26349cat confdefs.h >>conftest.$ac_ext
26350cat >>conftest.$ac_ext <<_ACEOF
26351/* end confdefs.h.  */
26352$ac_includes_default
26353typedef loff_t ac__type_new_;
26354int
26355main ()
26356{
26357if ((ac__type_new_ *) 0)
26358  return 0;
26359if (sizeof (ac__type_new_))
26360  return 0;
26361  ;
26362  return 0;
26363}
26364_ACEOF
26365rm -f conftest.$ac_objext
26366if { (ac_try="$ac_compile"
26367case "(($ac_try" in
26368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26369  *) ac_try_echo=$ac_try;;
26370esac
26371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26372  (eval "$ac_compile") 2>conftest.er1
26373  ac_status=$?
26374  grep -v '^ *+' conftest.er1 >conftest.err
26375  rm -f conftest.er1
26376  cat conftest.err >&5
26377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378  (exit $ac_status); } && {
26379	 test -z "$ac_c_werror_flag" ||
26380	 test ! -s conftest.err
26381       } && test -s conftest.$ac_objext; then
26382  ac_cv_type_loff_t=yes
26383else
26384  echo "$as_me: failed program was:" >&5
26385sed 's/^/| /' conftest.$ac_ext >&5
26386
26387	ac_cv_type_loff_t=no
26388fi
26389
26390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26391fi
26392{ echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
26393echo "${ECHO_T}$ac_cv_type_loff_t" >&6; }
26394if test $ac_cv_type_loff_t = yes; then
26395  :
26396else
26397
26398cat >>confdefs.h <<_ACEOF
26399#define loff_t off_t
26400_ACEOF
26401
26402fi
26403
26404{ echo "$as_me:$LINENO: checking for offset_t" >&5
26405echo $ECHO_N "checking for offset_t... $ECHO_C" >&6; }
26406if test "${ac_cv_type_offset_t+set}" = set; then
26407  echo $ECHO_N "(cached) $ECHO_C" >&6
26408else
26409  cat >conftest.$ac_ext <<_ACEOF
26410/* confdefs.h.  */
26411_ACEOF
26412cat confdefs.h >>conftest.$ac_ext
26413cat >>conftest.$ac_ext <<_ACEOF
26414/* end confdefs.h.  */
26415$ac_includes_default
26416typedef offset_t ac__type_new_;
26417int
26418main ()
26419{
26420if ((ac__type_new_ *) 0)
26421  return 0;
26422if (sizeof (ac__type_new_))
26423  return 0;
26424  ;
26425  return 0;
26426}
26427_ACEOF
26428rm -f conftest.$ac_objext
26429if { (ac_try="$ac_compile"
26430case "(($ac_try" in
26431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26432  *) ac_try_echo=$ac_try;;
26433esac
26434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26435  (eval "$ac_compile") 2>conftest.er1
26436  ac_status=$?
26437  grep -v '^ *+' conftest.er1 >conftest.err
26438  rm -f conftest.er1
26439  cat conftest.err >&5
26440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441  (exit $ac_status); } && {
26442	 test -z "$ac_c_werror_flag" ||
26443	 test ! -s conftest.err
26444       } && test -s conftest.$ac_objext; then
26445  ac_cv_type_offset_t=yes
26446else
26447  echo "$as_me: failed program was:" >&5
26448sed 's/^/| /' conftest.$ac_ext >&5
26449
26450	ac_cv_type_offset_t=no
26451fi
26452
26453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26454fi
26455{ echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
26456echo "${ECHO_T}$ac_cv_type_offset_t" >&6; }
26457if test $ac_cv_type_offset_t = yes; then
26458  :
26459else
26460
26461cat >>confdefs.h <<_ACEOF
26462#define offset_t loff_t
26463_ACEOF
26464
26465fi
26466
26467{ echo "$as_me:$LINENO: checking for ssize_t" >&5
26468echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
26469if test "${ac_cv_type_ssize_t+set}" = set; then
26470  echo $ECHO_N "(cached) $ECHO_C" >&6
26471else
26472  cat >conftest.$ac_ext <<_ACEOF
26473/* confdefs.h.  */
26474_ACEOF
26475cat confdefs.h >>conftest.$ac_ext
26476cat >>conftest.$ac_ext <<_ACEOF
26477/* end confdefs.h.  */
26478$ac_includes_default
26479typedef ssize_t ac__type_new_;
26480int
26481main ()
26482{
26483if ((ac__type_new_ *) 0)
26484  return 0;
26485if (sizeof (ac__type_new_))
26486  return 0;
26487  ;
26488  return 0;
26489}
26490_ACEOF
26491rm -f conftest.$ac_objext
26492if { (ac_try="$ac_compile"
26493case "(($ac_try" in
26494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26495  *) ac_try_echo=$ac_try;;
26496esac
26497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26498  (eval "$ac_compile") 2>conftest.er1
26499  ac_status=$?
26500  grep -v '^ *+' conftest.er1 >conftest.err
26501  rm -f conftest.er1
26502  cat conftest.err >&5
26503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504  (exit $ac_status); } && {
26505	 test -z "$ac_c_werror_flag" ||
26506	 test ! -s conftest.err
26507       } && test -s conftest.$ac_objext; then
26508  ac_cv_type_ssize_t=yes
26509else
26510  echo "$as_me: failed program was:" >&5
26511sed 's/^/| /' conftest.$ac_ext >&5
26512
26513	ac_cv_type_ssize_t=no
26514fi
26515
26516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26517fi
26518{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26519echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
26520if test $ac_cv_type_ssize_t = yes; then
26521  :
26522else
26523
26524cat >>confdefs.h <<_ACEOF
26525#define ssize_t int
26526_ACEOF
26527
26528fi
26529
26530{ echo "$as_me:$LINENO: checking for wchar_t" >&5
26531echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
26532if test "${ac_cv_type_wchar_t+set}" = set; then
26533  echo $ECHO_N "(cached) $ECHO_C" >&6
26534else
26535  cat >conftest.$ac_ext <<_ACEOF
26536/* confdefs.h.  */
26537_ACEOF
26538cat confdefs.h >>conftest.$ac_ext
26539cat >>conftest.$ac_ext <<_ACEOF
26540/* end confdefs.h.  */
26541$ac_includes_default
26542typedef wchar_t ac__type_new_;
26543int
26544main ()
26545{
26546if ((ac__type_new_ *) 0)
26547  return 0;
26548if (sizeof (ac__type_new_))
26549  return 0;
26550  ;
26551  return 0;
26552}
26553_ACEOF
26554rm -f conftest.$ac_objext
26555if { (ac_try="$ac_compile"
26556case "(($ac_try" in
26557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26558  *) ac_try_echo=$ac_try;;
26559esac
26560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26561  (eval "$ac_compile") 2>conftest.er1
26562  ac_status=$?
26563  grep -v '^ *+' conftest.er1 >conftest.err
26564  rm -f conftest.er1
26565  cat conftest.err >&5
26566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567  (exit $ac_status); } && {
26568	 test -z "$ac_c_werror_flag" ||
26569	 test ! -s conftest.err
26570       } && test -s conftest.$ac_objext; then
26571  ac_cv_type_wchar_t=yes
26572else
26573  echo "$as_me: failed program was:" >&5
26574sed 's/^/| /' conftest.$ac_ext >&5
26575
26576	ac_cv_type_wchar_t=no
26577fi
26578
26579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26580fi
26581{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
26582echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
26583if test $ac_cv_type_wchar_t = yes; then
26584  :
26585else
26586
26587cat >>confdefs.h <<_ACEOF
26588#define wchar_t unsigned short
26589_ACEOF
26590
26591fi
26592
26593{ echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
26594echo $ECHO_N "checking for comparison_fn_t... $ECHO_C" >&6; }
26595if test "${ac_cv_type_comparison_fn_t+set}" = set; then
26596  echo $ECHO_N "(cached) $ECHO_C" >&6
26597else
26598  cat >conftest.$ac_ext <<_ACEOF
26599/* confdefs.h.  */
26600_ACEOF
26601cat confdefs.h >>conftest.$ac_ext
26602cat >>conftest.$ac_ext <<_ACEOF
26603/* end confdefs.h.  */
26604$ac_includes_default
26605typedef comparison_fn_t ac__type_new_;
26606int
26607main ()
26608{
26609if ((ac__type_new_ *) 0)
26610  return 0;
26611if (sizeof (ac__type_new_))
26612  return 0;
26613  ;
26614  return 0;
26615}
26616_ACEOF
26617rm -f conftest.$ac_objext
26618if { (ac_try="$ac_compile"
26619case "(($ac_try" in
26620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26621  *) ac_try_echo=$ac_try;;
26622esac
26623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26624  (eval "$ac_compile") 2>conftest.er1
26625  ac_status=$?
26626  grep -v '^ *+' conftest.er1 >conftest.err
26627  rm -f conftest.er1
26628  cat conftest.err >&5
26629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630  (exit $ac_status); } && {
26631	 test -z "$ac_c_werror_flag" ||
26632	 test ! -s conftest.err
26633       } && test -s conftest.$ac_objext; then
26634  ac_cv_type_comparison_fn_t=yes
26635else
26636  echo "$as_me: failed program was:" >&5
26637sed 's/^/| /' conftest.$ac_ext >&5
26638
26639	ac_cv_type_comparison_fn_t=no
26640fi
26641
26642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26643fi
26644{ echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
26645echo "${ECHO_T}$ac_cv_type_comparison_fn_t" >&6; }
26646if test $ac_cv_type_comparison_fn_t = yes; then
26647
26648cat >>confdefs.h <<\_ACEOF
26649#define HAVE_COMPARISON_FN_T 1
26650_ACEOF
26651
26652fi
26653
26654
26655############################################
26656# for cups support we need libcups, and a handful of header files
26657
26658# Check whether --enable-cups was given.
26659if test "${enable_cups+set}" = set; then
26660  enableval=$enable_cups;
26661fi
26662
26663
26664if test x$enable_cups != xno; then
26665	# Extract the first word of "cups-config", so it can be a program name with args.
26666set dummy cups-config; ac_word=$2
26667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26669if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
26670  echo $ECHO_N "(cached) $ECHO_C" >&6
26671else
26672  case $CUPS_CONFIG in
26673  [\\/]* | ?:[\\/]*)
26674  ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
26675  ;;
26676  *)
26677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26678for as_dir in $PATH
26679do
26680  IFS=$as_save_IFS
26681  test -z "$as_dir" && as_dir=.
26682  for ac_exec_ext in '' $ac_executable_extensions; do
26683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26684    ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26686    break 2
26687  fi
26688done
26689done
26690IFS=$as_save_IFS
26691
26692  ;;
26693esac
26694fi
26695CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
26696if test -n "$CUPS_CONFIG"; then
26697  { echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
26698echo "${ECHO_T}$CUPS_CONFIG" >&6; }
26699else
26700  { echo "$as_me:$LINENO: result: no" >&5
26701echo "${ECHO_T}no" >&6; }
26702fi
26703
26704
26705
26706        if test "x$CUPS_CONFIG" != x; then
26707
26708cat >>confdefs.h <<\_ACEOF
26709#define HAVE_CUPS 1
26710_ACEOF
26711
26712		CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
26713		LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
26714		PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`"
26715	elif test x"$enable_cups" = x"yes"; then
26716		{ { echo "$as_me:$LINENO: error: Cups support required but cups-config not located.  Make sure cups-devel related files are installed." >&5
26717echo "$as_me: error: Cups support required but cups-config not located.  Make sure cups-devel related files are installed." >&2;}
26718   { (exit 1); exit 1; }; }
26719        fi
26720fi
26721
26722# Check whether --enable-iprint was given.
26723if test "${enable_iprint+set}" = set; then
26724  enableval=$enable_iprint;
26725fi
26726
26727
26728if test x$enable_iprint != xno; then
26729	if test "x$CUPS_CONFIG" != x; then
26730
26731cat >>confdefs.h <<\_ACEOF
26732#define HAVE_IPRINT 1
26733_ACEOF
26734
26735	elif test x"$enable_iprint" = x"yes"; then
26736		{ { echo "$as_me:$LINENO: error: iPrint support required but cups not enabled.  Make sure cups-devel related files are installed and that cups is enabled." >&5
26737echo "$as_me: error: iPrint support required but cups not enabled.  Make sure cups-devel related files are installed and that cups is enabled." >&2;}
26738   { (exit 1); exit 1; }; }
26739        fi
26740fi
26741
26742############################################
26743# check if the compiler will optimize out function calls
26744{ echo "$as_me:$LINENO: checking if the compiler will optimize out function calls" >&5
26745echo $ECHO_N "checking if the compiler will optimize out function calls... $ECHO_C" >&6; }
26746if test "${samba_cv_optimize_out_funcation_calls+set}" = set; then
26747  echo $ECHO_N "(cached) $ECHO_C" >&6
26748else
26749
26750    cat >conftest.$ac_ext <<_ACEOF
26751/* confdefs.h.  */
26752_ACEOF
26753cat confdefs.h >>conftest.$ac_ext
26754cat >>conftest.$ac_ext <<_ACEOF
26755/* end confdefs.h.  */
26756
26757#include <stdio.h>
26758int
26759main ()
26760{
26761
26762		if (0) {
26763		   this_function_does_not_exist();
26764		} else {
26765		  return 1;
26766		}
26767
26768
26769  ;
26770  return 0;
26771}
26772_ACEOF
26773rm -f conftest.$ac_objext conftest$ac_exeext
26774if { (ac_try="$ac_link"
26775case "(($ac_try" in
26776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777  *) ac_try_echo=$ac_try;;
26778esac
26779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780  (eval "$ac_link") 2>conftest.er1
26781  ac_status=$?
26782  grep -v '^ *+' conftest.er1 >conftest.err
26783  rm -f conftest.er1
26784  cat conftest.err >&5
26785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786  (exit $ac_status); } && {
26787	 test -z "$ac_c_werror_flag" ||
26788	 test ! -s conftest.err
26789       } && test -s conftest$ac_exeext &&
26790       $as_test_x conftest$ac_exeext; then
26791  samba_cv_optimize_out_funcation_calls=yes
26792else
26793  echo "$as_me: failed program was:" >&5
26794sed 's/^/| /' conftest.$ac_ext >&5
26795
26796	samba_cv_optimize_out_funcation_calls=no
26797fi
26798
26799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26800      conftest$ac_exeext conftest.$ac_ext
26801fi
26802{ echo "$as_me:$LINENO: result: $samba_cv_optimize_out_funcation_calls" >&5
26803echo "${ECHO_T}$samba_cv_optimize_out_funcation_calls" >&6; }
26804if test x"$samba_cv_optimize_out_funcation_calls" = x"yes"; then
26805
26806cat >>confdefs.h <<\_ACEOF
26807#define HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS 1
26808_ACEOF
26809
26810fi
26811
26812############################################
26813# check for unix domain sockets
26814{ echo "$as_me:$LINENO: checking for unix domain sockets" >&5
26815echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6; }
26816if test "${samba_cv_unixsocket+set}" = set; then
26817  echo $ECHO_N "(cached) $ECHO_C" >&6
26818else
26819
26820    cat >conftest.$ac_ext <<_ACEOF
26821/* confdefs.h.  */
26822_ACEOF
26823cat confdefs.h >>conftest.$ac_ext
26824cat >>conftest.$ac_ext <<_ACEOF
26825/* end confdefs.h.  */
26826
26827#include <sys/types.h>
26828#include <stdlib.h>
26829#include <stddef.h>
26830#include <sys/socket.h>
26831#include <sys/un.h>
26832int
26833main ()
26834{
26835
26836  struct sockaddr_un sunaddr;
26837  sunaddr.sun_family = AF_UNIX;
26838
26839  ;
26840  return 0;
26841}
26842_ACEOF
26843rm -f conftest.$ac_objext
26844if { (ac_try="$ac_compile"
26845case "(($ac_try" in
26846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26847  *) ac_try_echo=$ac_try;;
26848esac
26849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26850  (eval "$ac_compile") 2>conftest.er1
26851  ac_status=$?
26852  grep -v '^ *+' conftest.er1 >conftest.err
26853  rm -f conftest.er1
26854  cat conftest.err >&5
26855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856  (exit $ac_status); } && {
26857	 test -z "$ac_c_werror_flag" ||
26858	 test ! -s conftest.err
26859       } && test -s conftest.$ac_objext; then
26860  samba_cv_unixsocket=yes
26861else
26862  echo "$as_me: failed program was:" >&5
26863sed 's/^/| /' conftest.$ac_ext >&5
26864
26865	samba_cv_unixsocket=no
26866fi
26867
26868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26869fi
26870{ echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
26871echo "${ECHO_T}$samba_cv_unixsocket" >&6; }
26872if test x"$samba_cv_unixsocket" = x"yes"; then
26873
26874cat >>confdefs.h <<\_ACEOF
26875#define HAVE_UNIXSOCKET 1
26876_ACEOF
26877
26878fi
26879
26880
26881{ echo "$as_me:$LINENO: checking for socklen_t type" >&5
26882echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6; }
26883if test "${samba_cv_socklen_t+set}" = set; then
26884  echo $ECHO_N "(cached) $ECHO_C" >&6
26885else
26886
26887    cat >conftest.$ac_ext <<_ACEOF
26888/* confdefs.h.  */
26889_ACEOF
26890cat confdefs.h >>conftest.$ac_ext
26891cat >>conftest.$ac_ext <<_ACEOF
26892/* end confdefs.h.  */
26893
26894#include <sys/types.h>
26895#if STDC_HEADERS
26896#include <stdlib.h>
26897#include <stddef.h>
26898#endif
26899#include <sys/socket.h>
26900int
26901main ()
26902{
26903socklen_t i = 0
26904  ;
26905  return 0;
26906}
26907_ACEOF
26908rm -f conftest.$ac_objext
26909if { (ac_try="$ac_compile"
26910case "(($ac_try" in
26911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26912  *) ac_try_echo=$ac_try;;
26913esac
26914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26915  (eval "$ac_compile") 2>conftest.er1
26916  ac_status=$?
26917  grep -v '^ *+' conftest.er1 >conftest.err
26918  rm -f conftest.er1
26919  cat conftest.err >&5
26920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921  (exit $ac_status); } && {
26922	 test -z "$ac_c_werror_flag" ||
26923	 test ! -s conftest.err
26924       } && test -s conftest.$ac_objext; then
26925  samba_cv_socklen_t=yes
26926else
26927  echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930	samba_cv_socklen_t=no
26931fi
26932
26933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26934fi
26935{ echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
26936echo "${ECHO_T}$samba_cv_socklen_t" >&6; }
26937if test x"$samba_cv_socklen_t" = x"yes"; then
26938
26939cat >>confdefs.h <<\_ACEOF
26940#define HAVE_SOCKLEN_T_TYPE 1
26941_ACEOF
26942
26943fi
26944
26945{ echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
26946echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6; }
26947if test "${samba_cv_sig_atomic_t+set}" = set; then
26948  echo $ECHO_N "(cached) $ECHO_C" >&6
26949else
26950
26951    cat >conftest.$ac_ext <<_ACEOF
26952/* confdefs.h.  */
26953_ACEOF
26954cat confdefs.h >>conftest.$ac_ext
26955cat >>conftest.$ac_ext <<_ACEOF
26956/* end confdefs.h.  */
26957
26958#include <sys/types.h>
26959#if STDC_HEADERS
26960#include <stdlib.h>
26961#include <stddef.h>
26962#endif
26963#include <signal.h>
26964int
26965main ()
26966{
26967sig_atomic_t i = 0
26968  ;
26969  return 0;
26970}
26971_ACEOF
26972rm -f conftest.$ac_objext
26973if { (ac_try="$ac_compile"
26974case "(($ac_try" in
26975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976  *) ac_try_echo=$ac_try;;
26977esac
26978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979  (eval "$ac_compile") 2>conftest.er1
26980  ac_status=$?
26981  grep -v '^ *+' conftest.er1 >conftest.err
26982  rm -f conftest.er1
26983  cat conftest.err >&5
26984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985  (exit $ac_status); } && {
26986	 test -z "$ac_c_werror_flag" ||
26987	 test ! -s conftest.err
26988       } && test -s conftest.$ac_objext; then
26989  samba_cv_sig_atomic_t=yes
26990else
26991  echo "$as_me: failed program was:" >&5
26992sed 's/^/| /' conftest.$ac_ext >&5
26993
26994	samba_cv_sig_atomic_t=no
26995fi
26996
26997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26998fi
26999{ echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
27000echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6; }
27001if test x"$samba_cv_sig_atomic_t" = x"yes"; then
27002
27003cat >>confdefs.h <<\_ACEOF
27004#define HAVE_SIG_ATOMIC_T_TYPE 1
27005_ACEOF
27006
27007fi
27008
27009{ echo "$as_me:$LINENO: checking for struct timespec type" >&5
27010echo $ECHO_N "checking for struct timespec type... $ECHO_C" >&6; }
27011if test "${samba_cv_struct_timespec+set}" = set; then
27012  echo $ECHO_N "(cached) $ECHO_C" >&6
27013else
27014
27015    cat >conftest.$ac_ext <<_ACEOF
27016/* confdefs.h.  */
27017_ACEOF
27018cat confdefs.h >>conftest.$ac_ext
27019cat >>conftest.$ac_ext <<_ACEOF
27020/* end confdefs.h.  */
27021
27022#include <sys/types.h>
27023#if STDC_HEADERS
27024#include <stdlib.h>
27025#include <stddef.h>
27026#endif
27027#if TIME_WITH_SYS_TIME
27028# include <sys/time.h>
27029# include <time.h>
27030#else
27031# if HAVE_SYS_TIME_H
27032#  include <sys/time.h>
27033# else
27034#  include <time.h>
27035# endif
27036#endif
27037
27038int
27039main ()
27040{
27041struct timespec ts;
27042  ;
27043  return 0;
27044}
27045_ACEOF
27046rm -f conftest.$ac_objext
27047if { (ac_try="$ac_compile"
27048case "(($ac_try" in
27049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050  *) ac_try_echo=$ac_try;;
27051esac
27052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053  (eval "$ac_compile") 2>conftest.er1
27054  ac_status=$?
27055  grep -v '^ *+' conftest.er1 >conftest.err
27056  rm -f conftest.er1
27057  cat conftest.err >&5
27058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059  (exit $ac_status); } && {
27060	 test -z "$ac_c_werror_flag" ||
27061	 test ! -s conftest.err
27062       } && test -s conftest.$ac_objext; then
27063  samba_cv_struct_timespec=yes
27064else
27065  echo "$as_me: failed program was:" >&5
27066sed 's/^/| /' conftest.$ac_ext >&5
27067
27068	samba_cv_struct_timespec=no
27069fi
27070
27071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27072fi
27073{ echo "$as_me:$LINENO: result: $samba_cv_struct_timespec" >&5
27074echo "${ECHO_T}$samba_cv_struct_timespec" >&6; }
27075if test x"$samba_cv_struct_timespec" = x"yes"; then
27076
27077cat >>confdefs.h <<\_ACEOF
27078#define HAVE_STRUCT_TIMESPEC 1
27079_ACEOF
27080
27081fi
27082
27083# stupid headers have the functions but no declaration. grrrr.
27084
27085 { echo "$as_me:$LINENO: checking for errno declaration" >&5
27086echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6; }
27087if test "${ac_cv_have_errno_decl+set}" = set; then
27088  echo $ECHO_N "(cached) $ECHO_C" >&6
27089else
27090
27091    cat >conftest.$ac_ext <<_ACEOF
27092/* confdefs.h.  */
27093_ACEOF
27094cat confdefs.h >>conftest.$ac_ext
27095cat >>conftest.$ac_ext <<_ACEOF
27096/* end confdefs.h.  */
27097#include <errno.h>
27098int
27099main ()
27100{
27101int i = (int)errno
27102  ;
27103  return 0;
27104}
27105_ACEOF
27106rm -f conftest.$ac_objext
27107if { (ac_try="$ac_compile"
27108case "(($ac_try" in
27109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110  *) ac_try_echo=$ac_try;;
27111esac
27112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113  (eval "$ac_compile") 2>conftest.er1
27114  ac_status=$?
27115  grep -v '^ *+' conftest.er1 >conftest.err
27116  rm -f conftest.er1
27117  cat conftest.err >&5
27118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119  (exit $ac_status); } && {
27120	 test -z "$ac_c_werror_flag" ||
27121	 test ! -s conftest.err
27122       } && test -s conftest.$ac_objext; then
27123  ac_cv_have_errno_decl=yes
27124else
27125  echo "$as_me: failed program was:" >&5
27126sed 's/^/| /' conftest.$ac_ext >&5
27127
27128	ac_cv_have_errno_decl=no
27129fi
27130
27131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27132fi
27133{ echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
27134echo "${ECHO_T}$ac_cv_have_errno_decl" >&6; }
27135 if test x"$ac_cv_have_errno_decl" = x"yes"; then
27136
27137cat >>confdefs.h <<\_ACEOF
27138#define HAVE_ERRNO_DECL 1
27139_ACEOF
27140
27141 fi
27142
27143
27144 { echo "$as_me:$LINENO: checking for setresuid declaration" >&5
27145echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6; }
27146if test "${ac_cv_have_setresuid_decl+set}" = set; then
27147  echo $ECHO_N "(cached) $ECHO_C" >&6
27148else
27149
27150    cat >conftest.$ac_ext <<_ACEOF
27151/* confdefs.h.  */
27152_ACEOF
27153cat confdefs.h >>conftest.$ac_ext
27154cat >>conftest.$ac_ext <<_ACEOF
27155/* end confdefs.h.  */
27156#include <unistd.h>
27157int
27158main ()
27159{
27160int i = (int)setresuid
27161  ;
27162  return 0;
27163}
27164_ACEOF
27165rm -f conftest.$ac_objext
27166if { (ac_try="$ac_compile"
27167case "(($ac_try" in
27168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169  *) ac_try_echo=$ac_try;;
27170esac
27171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172  (eval "$ac_compile") 2>conftest.er1
27173  ac_status=$?
27174  grep -v '^ *+' conftest.er1 >conftest.err
27175  rm -f conftest.er1
27176  cat conftest.err >&5
27177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178  (exit $ac_status); } && {
27179	 test -z "$ac_c_werror_flag" ||
27180	 test ! -s conftest.err
27181       } && test -s conftest.$ac_objext; then
27182  ac_cv_have_setresuid_decl=yes
27183else
27184  echo "$as_me: failed program was:" >&5
27185sed 's/^/| /' conftest.$ac_ext >&5
27186
27187	ac_cv_have_setresuid_decl=no
27188fi
27189
27190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27191fi
27192{ echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
27193echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6; }
27194 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
27195
27196cat >>confdefs.h <<\_ACEOF
27197#define HAVE_SETRESUID_DECL 1
27198_ACEOF
27199
27200 fi
27201
27202
27203 { echo "$as_me:$LINENO: checking for setresgid declaration" >&5
27204echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6; }
27205if test "${ac_cv_have_setresgid_decl+set}" = set; then
27206  echo $ECHO_N "(cached) $ECHO_C" >&6
27207else
27208
27209    cat >conftest.$ac_ext <<_ACEOF
27210/* confdefs.h.  */
27211_ACEOF
27212cat confdefs.h >>conftest.$ac_ext
27213cat >>conftest.$ac_ext <<_ACEOF
27214/* end confdefs.h.  */
27215#include <unistd.h>
27216int
27217main ()
27218{
27219int i = (int)setresgid
27220  ;
27221  return 0;
27222}
27223_ACEOF
27224rm -f conftest.$ac_objext
27225if { (ac_try="$ac_compile"
27226case "(($ac_try" in
27227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228  *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231  (eval "$ac_compile") 2>conftest.er1
27232  ac_status=$?
27233  grep -v '^ *+' conftest.er1 >conftest.err
27234  rm -f conftest.er1
27235  cat conftest.err >&5
27236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237  (exit $ac_status); } && {
27238	 test -z "$ac_c_werror_flag" ||
27239	 test ! -s conftest.err
27240       } && test -s conftest.$ac_objext; then
27241  ac_cv_have_setresgid_decl=yes
27242else
27243  echo "$as_me: failed program was:" >&5
27244sed 's/^/| /' conftest.$ac_ext >&5
27245
27246	ac_cv_have_setresgid_decl=no
27247fi
27248
27249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27250fi
27251{ echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
27252echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6; }
27253 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
27254
27255cat >>confdefs.h <<\_ACEOF
27256#define HAVE_SETRESGID_DECL 1
27257_ACEOF
27258
27259 fi
27260
27261
27262 { echo "$as_me:$LINENO: checking for asprintf declaration" >&5
27263echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6; }
27264if test "${ac_cv_have_asprintf_decl+set}" = set; then
27265  echo $ECHO_N "(cached) $ECHO_C" >&6
27266else
27267
27268    cat >conftest.$ac_ext <<_ACEOF
27269/* confdefs.h.  */
27270_ACEOF
27271cat confdefs.h >>conftest.$ac_ext
27272cat >>conftest.$ac_ext <<_ACEOF
27273/* end confdefs.h.  */
27274#include <stdio.h>
27275int
27276main ()
27277{
27278int i = (int)asprintf
27279  ;
27280  return 0;
27281}
27282_ACEOF
27283rm -f conftest.$ac_objext
27284if { (ac_try="$ac_compile"
27285case "(($ac_try" in
27286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287  *) ac_try_echo=$ac_try;;
27288esac
27289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290  (eval "$ac_compile") 2>conftest.er1
27291  ac_status=$?
27292  grep -v '^ *+' conftest.er1 >conftest.err
27293  rm -f conftest.er1
27294  cat conftest.err >&5
27295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296  (exit $ac_status); } && {
27297	 test -z "$ac_c_werror_flag" ||
27298	 test ! -s conftest.err
27299       } && test -s conftest.$ac_objext; then
27300  ac_cv_have_asprintf_decl=yes
27301else
27302  echo "$as_me: failed program was:" >&5
27303sed 's/^/| /' conftest.$ac_ext >&5
27304
27305	ac_cv_have_asprintf_decl=no
27306fi
27307
27308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27309fi
27310{ echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
27311echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6; }
27312 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
27313
27314cat >>confdefs.h <<\_ACEOF
27315#define HAVE_ASPRINTF_DECL 1
27316_ACEOF
27317
27318 fi
27319
27320
27321 { echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
27322echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6; }
27323if test "${ac_cv_have_vasprintf_decl+set}" = set; then
27324  echo $ECHO_N "(cached) $ECHO_C" >&6
27325else
27326
27327    cat >conftest.$ac_ext <<_ACEOF
27328/* confdefs.h.  */
27329_ACEOF
27330cat confdefs.h >>conftest.$ac_ext
27331cat >>conftest.$ac_ext <<_ACEOF
27332/* end confdefs.h.  */
27333#include <stdio.h>
27334int
27335main ()
27336{
27337int i = (int)vasprintf
27338  ;
27339  return 0;
27340}
27341_ACEOF
27342rm -f conftest.$ac_objext
27343if { (ac_try="$ac_compile"
27344case "(($ac_try" in
27345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346  *) ac_try_echo=$ac_try;;
27347esac
27348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349  (eval "$ac_compile") 2>conftest.er1
27350  ac_status=$?
27351  grep -v '^ *+' conftest.er1 >conftest.err
27352  rm -f conftest.er1
27353  cat conftest.err >&5
27354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355  (exit $ac_status); } && {
27356	 test -z "$ac_c_werror_flag" ||
27357	 test ! -s conftest.err
27358       } && test -s conftest.$ac_objext; then
27359  ac_cv_have_vasprintf_decl=yes
27360else
27361  echo "$as_me: failed program was:" >&5
27362sed 's/^/| /' conftest.$ac_ext >&5
27363
27364	ac_cv_have_vasprintf_decl=no
27365fi
27366
27367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27368fi
27369{ echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
27370echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6; }
27371 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
27372
27373cat >>confdefs.h <<\_ACEOF
27374#define HAVE_VASPRINTF_DECL 1
27375_ACEOF
27376
27377 fi
27378
27379
27380 { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
27381echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
27382if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
27383  echo $ECHO_N "(cached) $ECHO_C" >&6
27384else
27385
27386    cat >conftest.$ac_ext <<_ACEOF
27387/* confdefs.h.  */
27388_ACEOF
27389cat confdefs.h >>conftest.$ac_ext
27390cat >>conftest.$ac_ext <<_ACEOF
27391/* end confdefs.h.  */
27392#include <stdio.h>
27393int
27394main ()
27395{
27396int i = (int)vsnprintf
27397  ;
27398  return 0;
27399}
27400_ACEOF
27401rm -f conftest.$ac_objext
27402if { (ac_try="$ac_compile"
27403case "(($ac_try" in
27404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27405  *) ac_try_echo=$ac_try;;
27406esac
27407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27408  (eval "$ac_compile") 2>conftest.er1
27409  ac_status=$?
27410  grep -v '^ *+' conftest.er1 >conftest.err
27411  rm -f conftest.er1
27412  cat conftest.err >&5
27413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414  (exit $ac_status); } && {
27415	 test -z "$ac_c_werror_flag" ||
27416	 test ! -s conftest.err
27417       } && test -s conftest.$ac_objext; then
27418  ac_cv_have_vsnprintf_decl=yes
27419else
27420  echo "$as_me: failed program was:" >&5
27421sed 's/^/| /' conftest.$ac_ext >&5
27422
27423	ac_cv_have_vsnprintf_decl=no
27424fi
27425
27426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27427fi
27428{ echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
27429echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6; }
27430 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
27431
27432cat >>confdefs.h <<\_ACEOF
27433#define HAVE_VSNPRINTF_DECL 1
27434_ACEOF
27435
27436 fi
27437
27438
27439 { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
27440echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
27441if test "${ac_cv_have_snprintf_decl+set}" = set; then
27442  echo $ECHO_N "(cached) $ECHO_C" >&6
27443else
27444
27445    cat >conftest.$ac_ext <<_ACEOF
27446/* confdefs.h.  */
27447_ACEOF
27448cat confdefs.h >>conftest.$ac_ext
27449cat >>conftest.$ac_ext <<_ACEOF
27450/* end confdefs.h.  */
27451#include <stdio.h>
27452int
27453main ()
27454{
27455int i = (int)snprintf
27456  ;
27457  return 0;
27458}
27459_ACEOF
27460rm -f conftest.$ac_objext
27461if { (ac_try="$ac_compile"
27462case "(($ac_try" in
27463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464  *) ac_try_echo=$ac_try;;
27465esac
27466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467  (eval "$ac_compile") 2>conftest.er1
27468  ac_status=$?
27469  grep -v '^ *+' conftest.er1 >conftest.err
27470  rm -f conftest.er1
27471  cat conftest.err >&5
27472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473  (exit $ac_status); } && {
27474	 test -z "$ac_c_werror_flag" ||
27475	 test ! -s conftest.err
27476       } && test -s conftest.$ac_objext; then
27477  ac_cv_have_snprintf_decl=yes
27478else
27479  echo "$as_me: failed program was:" >&5
27480sed 's/^/| /' conftest.$ac_ext >&5
27481
27482	ac_cv_have_snprintf_decl=no
27483fi
27484
27485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486fi
27487{ echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
27488echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6; }
27489 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
27490
27491cat >>confdefs.h <<\_ACEOF
27492#define HAVE_SNPRINTF_DECL 1
27493_ACEOF
27494
27495 fi
27496
27497
27498# and glibc has setresuid under linux but the function does
27499# nothing until kernel 2.1.44! very dumb.
27500{ echo "$as_me:$LINENO: checking for real setresuid" >&5
27501echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6; }
27502if test "${samba_cv_have_setresuid+set}" = set; then
27503  echo $ECHO_N "(cached) $ECHO_C" >&6
27504else
27505
27506    if test "$cross_compiling" = yes; then
27507  samba_cv_have_setresuid=cross
27508else
27509  cat >conftest.$ac_ext <<_ACEOF
27510/* confdefs.h.  */
27511_ACEOF
27512cat confdefs.h >>conftest.$ac_ext
27513cat >>conftest.$ac_ext <<_ACEOF
27514/* end confdefs.h.  */
27515#include <errno.h>
27516main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
27517_ACEOF
27518rm -f conftest$ac_exeext
27519if { (ac_try="$ac_link"
27520case "(($ac_try" in
27521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522  *) ac_try_echo=$ac_try;;
27523esac
27524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525  (eval "$ac_link") 2>&5
27526  ac_status=$?
27527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27529  { (case "(($ac_try" in
27530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531  *) ac_try_echo=$ac_try;;
27532esac
27533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27534  (eval "$ac_try") 2>&5
27535  ac_status=$?
27536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537  (exit $ac_status); }; }; then
27538  samba_cv_have_setresuid=yes
27539else
27540  echo "$as_me: program exited with status $ac_status" >&5
27541echo "$as_me: failed program was:" >&5
27542sed 's/^/| /' conftest.$ac_ext >&5
27543
27544( exit $ac_status )
27545samba_cv_have_setresuid=no
27546fi
27547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27548fi
27549
27550
27551fi
27552{ echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
27553echo "${ECHO_T}$samba_cv_have_setresuid" >&6; }
27554if test x"$samba_cv_have_setresuid" = x"yes"; then
27555
27556cat >>confdefs.h <<\_ACEOF
27557#define HAVE_SETRESUID 1
27558_ACEOF
27559
27560fi
27561
27562# Do the same check for setresguid...
27563#
27564{ echo "$as_me:$LINENO: checking for real setresgid" >&5
27565echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6; }
27566if test "${samba_cv_have_setresgid+set}" = set; then
27567  echo $ECHO_N "(cached) $ECHO_C" >&6
27568else
27569
27570    if test "$cross_compiling" = yes; then
27571  samba_cv_have_setresgid=cross
27572else
27573  cat >conftest.$ac_ext <<_ACEOF
27574/* confdefs.h.  */
27575_ACEOF
27576cat confdefs.h >>conftest.$ac_ext
27577cat >>conftest.$ac_ext <<_ACEOF
27578/* end confdefs.h.  */
27579#include <unistd.h>
27580#include <errno.h>
27581main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
27582_ACEOF
27583rm -f conftest$ac_exeext
27584if { (ac_try="$ac_link"
27585case "(($ac_try" in
27586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587  *) ac_try_echo=$ac_try;;
27588esac
27589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590  (eval "$ac_link") 2>&5
27591  ac_status=$?
27592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27594  { (case "(($ac_try" in
27595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27596  *) ac_try_echo=$ac_try;;
27597esac
27598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27599  (eval "$ac_try") 2>&5
27600  ac_status=$?
27601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602  (exit $ac_status); }; }; then
27603  samba_cv_have_setresgid=yes
27604else
27605  echo "$as_me: program exited with status $ac_status" >&5
27606echo "$as_me: failed program was:" >&5
27607sed 's/^/| /' conftest.$ac_ext >&5
27608
27609( exit $ac_status )
27610samba_cv_have_setresgid=no
27611fi
27612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27613fi
27614
27615
27616fi
27617{ echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
27618echo "${ECHO_T}$samba_cv_have_setresgid" >&6; }
27619if test x"$samba_cv_have_setresgid" = x"yes"; then
27620
27621cat >>confdefs.h <<\_ACEOF
27622#define HAVE_SETRESGID 1
27623_ACEOF
27624
27625fi
27626
27627{ echo "$as_me:$LINENO: checking for working memcmp" >&5
27628echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27629if test "${ac_cv_func_memcmp_working+set}" = set; then
27630  echo $ECHO_N "(cached) $ECHO_C" >&6
27631else
27632  if test "$cross_compiling" = yes; then
27633  ac_cv_func_memcmp_working=no
27634else
27635  cat >conftest.$ac_ext <<_ACEOF
27636/* confdefs.h.  */
27637_ACEOF
27638cat confdefs.h >>conftest.$ac_ext
27639cat >>conftest.$ac_ext <<_ACEOF
27640/* end confdefs.h.  */
27641$ac_includes_default
27642int
27643main ()
27644{
27645
27646  /* Some versions of memcmp are not 8-bit clean.  */
27647  char c0 = '\100', c1 = '\200', c2 = '\201';
27648  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27649    return 1;
27650
27651  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27652     or more and with at least one buffer not starting on a 4-byte boundary.
27653     William Lewis provided this test program.   */
27654  {
27655    char foo[21];
27656    char bar[21];
27657    int i;
27658    for (i = 0; i < 4; i++)
27659      {
27660	char *a = foo + i;
27661	char *b = bar + i;
27662	strcpy (a, "--------01111111");
27663	strcpy (b, "--------10000000");
27664	if (memcmp (a, b, 16) >= 0)
27665	  return 1;
27666      }
27667    return 0;
27668  }
27669
27670  ;
27671  return 0;
27672}
27673_ACEOF
27674rm -f conftest$ac_exeext
27675if { (ac_try="$ac_link"
27676case "(($ac_try" in
27677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678  *) ac_try_echo=$ac_try;;
27679esac
27680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681  (eval "$ac_link") 2>&5
27682  ac_status=$?
27683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27685  { (case "(($ac_try" in
27686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687  *) ac_try_echo=$ac_try;;
27688esac
27689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690  (eval "$ac_try") 2>&5
27691  ac_status=$?
27692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693  (exit $ac_status); }; }; then
27694  ac_cv_func_memcmp_working=yes
27695else
27696  echo "$as_me: program exited with status $ac_status" >&5
27697echo "$as_me: failed program was:" >&5
27698sed 's/^/| /' conftest.$ac_ext >&5
27699
27700( exit $ac_status )
27701ac_cv_func_memcmp_working=no
27702fi
27703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27704fi
27705
27706
27707fi
27708{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27709echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27710test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27711  *" memcmp.$ac_objext "* ) ;;
27712  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27713 ;;
27714esac
27715
27716
27717
27718###############################################
27719# Readline included by default unless explicitly asked not to
27720test "${with_readline+set}" != "set" && with_readline=yes
27721
27722# test for where we get readline() from
27723{ echo "$as_me:$LINENO: checking whether to use readline" >&5
27724echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
27725
27726# Check whether --with-readline was given.
27727if test "${with_readline+set}" = set; then
27728  withval=$with_readline;   case "$with_readline" in
27729  yes)
27730    { echo "$as_me:$LINENO: result: yes" >&5
27731echo "${ECHO_T}yes" >&6; }
27732
27733
27734
27735
27736for ac_header in readline.h history.h readline/readline.h
27737do
27738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27740  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27743  echo $ECHO_N "(cached) $ECHO_C" >&6
27744fi
27745ac_res=`eval echo '${'$as_ac_Header'}'`
27746	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27747echo "${ECHO_T}$ac_res" >&6; }
27748else
27749  # Is the header compilable?
27750{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27752cat >conftest.$ac_ext <<_ACEOF
27753/* confdefs.h.  */
27754_ACEOF
27755cat confdefs.h >>conftest.$ac_ext
27756cat >>conftest.$ac_ext <<_ACEOF
27757/* end confdefs.h.  */
27758$ac_includes_default
27759#include <$ac_header>
27760_ACEOF
27761rm -f conftest.$ac_objext
27762if { (ac_try="$ac_compile"
27763case "(($ac_try" in
27764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765  *) ac_try_echo=$ac_try;;
27766esac
27767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768  (eval "$ac_compile") 2>conftest.er1
27769  ac_status=$?
27770  grep -v '^ *+' conftest.er1 >conftest.err
27771  rm -f conftest.er1
27772  cat conftest.err >&5
27773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774  (exit $ac_status); } && {
27775	 test -z "$ac_c_werror_flag" ||
27776	 test ! -s conftest.err
27777       } && test -s conftest.$ac_objext; then
27778  ac_header_compiler=yes
27779else
27780  echo "$as_me: failed program was:" >&5
27781sed 's/^/| /' conftest.$ac_ext >&5
27782
27783	ac_header_compiler=no
27784fi
27785
27786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27787{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27788echo "${ECHO_T}$ac_header_compiler" >&6; }
27789
27790# Is the header present?
27791{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27793cat >conftest.$ac_ext <<_ACEOF
27794/* confdefs.h.  */
27795_ACEOF
27796cat confdefs.h >>conftest.$ac_ext
27797cat >>conftest.$ac_ext <<_ACEOF
27798/* end confdefs.h.  */
27799#include <$ac_header>
27800_ACEOF
27801if { (ac_try="$ac_cpp conftest.$ac_ext"
27802case "(($ac_try" in
27803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804  *) ac_try_echo=$ac_try;;
27805esac
27806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27808  ac_status=$?
27809  grep -v '^ *+' conftest.er1 >conftest.err
27810  rm -f conftest.er1
27811  cat conftest.err >&5
27812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813  (exit $ac_status); } >/dev/null && {
27814	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27815	 test ! -s conftest.err
27816       }; then
27817  ac_header_preproc=yes
27818else
27819  echo "$as_me: failed program was:" >&5
27820sed 's/^/| /' conftest.$ac_ext >&5
27821
27822  ac_header_preproc=no
27823fi
27824
27825rm -f conftest.err conftest.$ac_ext
27826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27827echo "${ECHO_T}$ac_header_preproc" >&6; }
27828
27829# So?  What about this header?
27830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27831  yes:no: )
27832    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27834    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27836    ac_header_preproc=yes
27837    ;;
27838  no:yes:* )
27839    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27841    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27842echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27843    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27845    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27846echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27847    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27849    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27851
27852    ;;
27853esac
27854{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27857  echo $ECHO_N "(cached) $ECHO_C" >&6
27858else
27859  eval "$as_ac_Header=\$ac_header_preproc"
27860fi
27861ac_res=`eval echo '${'$as_ac_Header'}'`
27862	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27863echo "${ECHO_T}$ac_res" >&6; }
27864
27865fi
27866if test `eval echo '${'$as_ac_Header'}'` = yes; then
27867  cat >>confdefs.h <<_ACEOF
27868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27869_ACEOF
27870
27871fi
27872
27873done
27874
27875
27876for ac_header in readline/history.h
27877do
27878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27880  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27883  echo $ECHO_N "(cached) $ECHO_C" >&6
27884fi
27885ac_res=`eval echo '${'$as_ac_Header'}'`
27886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27887echo "${ECHO_T}$ac_res" >&6; }
27888else
27889  # Is the header compilable?
27890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27892cat >conftest.$ac_ext <<_ACEOF
27893/* confdefs.h.  */
27894_ACEOF
27895cat confdefs.h >>conftest.$ac_ext
27896cat >>conftest.$ac_ext <<_ACEOF
27897/* end confdefs.h.  */
27898$ac_includes_default
27899#include <$ac_header>
27900_ACEOF
27901rm -f conftest.$ac_objext
27902if { (ac_try="$ac_compile"
27903case "(($ac_try" in
27904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905  *) ac_try_echo=$ac_try;;
27906esac
27907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908  (eval "$ac_compile") 2>conftest.er1
27909  ac_status=$?
27910  grep -v '^ *+' conftest.er1 >conftest.err
27911  rm -f conftest.er1
27912  cat conftest.err >&5
27913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914  (exit $ac_status); } && {
27915	 test -z "$ac_c_werror_flag" ||
27916	 test ! -s conftest.err
27917       } && test -s conftest.$ac_objext; then
27918  ac_header_compiler=yes
27919else
27920  echo "$as_me: failed program was:" >&5
27921sed 's/^/| /' conftest.$ac_ext >&5
27922
27923	ac_header_compiler=no
27924fi
27925
27926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27928echo "${ECHO_T}$ac_header_compiler" >&6; }
27929
27930# Is the header present?
27931{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27933cat >conftest.$ac_ext <<_ACEOF
27934/* confdefs.h.  */
27935_ACEOF
27936cat confdefs.h >>conftest.$ac_ext
27937cat >>conftest.$ac_ext <<_ACEOF
27938/* end confdefs.h.  */
27939#include <$ac_header>
27940_ACEOF
27941if { (ac_try="$ac_cpp conftest.$ac_ext"
27942case "(($ac_try" in
27943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944  *) ac_try_echo=$ac_try;;
27945esac
27946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27948  ac_status=$?
27949  grep -v '^ *+' conftest.er1 >conftest.err
27950  rm -f conftest.er1
27951  cat conftest.err >&5
27952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953  (exit $ac_status); } >/dev/null && {
27954	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27955	 test ! -s conftest.err
27956       }; then
27957  ac_header_preproc=yes
27958else
27959  echo "$as_me: failed program was:" >&5
27960sed 's/^/| /' conftest.$ac_ext >&5
27961
27962  ac_header_preproc=no
27963fi
27964
27965rm -f conftest.err conftest.$ac_ext
27966{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27967echo "${ECHO_T}$ac_header_preproc" >&6; }
27968
27969# So?  What about this header?
27970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27971  yes:no: )
27972    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27974    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27976    ac_header_preproc=yes
27977    ;;
27978  no:yes:* )
27979    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27981    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27982echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27983    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27985    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27986echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27987    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27989    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27991
27992    ;;
27993esac
27994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27997  echo $ECHO_N "(cached) $ECHO_C" >&6
27998else
27999  eval "$as_ac_Header=\$ac_header_preproc"
28000fi
28001ac_res=`eval echo '${'$as_ac_Header'}'`
28002	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28003echo "${ECHO_T}$ac_res" >&6; }
28004
28005fi
28006if test `eval echo '${'$as_ac_Header'}'` = yes; then
28007  cat >>confdefs.h <<_ACEOF
28008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28009_ACEOF
28010
28011fi
28012
28013done
28014
28015
28016
28017
28018for ac_header in readline.h readline/readline.h
28019do
28020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28022  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28025  echo $ECHO_N "(cached) $ECHO_C" >&6
28026fi
28027ac_res=`eval echo '${'$as_ac_Header'}'`
28028	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28029echo "${ECHO_T}$ac_res" >&6; }
28030else
28031  # Is the header compilable?
28032{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28034cat >conftest.$ac_ext <<_ACEOF
28035/* confdefs.h.  */
28036_ACEOF
28037cat confdefs.h >>conftest.$ac_ext
28038cat >>conftest.$ac_ext <<_ACEOF
28039/* end confdefs.h.  */
28040$ac_includes_default
28041#include <$ac_header>
28042_ACEOF
28043rm -f conftest.$ac_objext
28044if { (ac_try="$ac_compile"
28045case "(($ac_try" in
28046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047  *) ac_try_echo=$ac_try;;
28048esac
28049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050  (eval "$ac_compile") 2>conftest.er1
28051  ac_status=$?
28052  grep -v '^ *+' conftest.er1 >conftest.err
28053  rm -f conftest.er1
28054  cat conftest.err >&5
28055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056  (exit $ac_status); } && {
28057	 test -z "$ac_c_werror_flag" ||
28058	 test ! -s conftest.err
28059       } && test -s conftest.$ac_objext; then
28060  ac_header_compiler=yes
28061else
28062  echo "$as_me: failed program was:" >&5
28063sed 's/^/| /' conftest.$ac_ext >&5
28064
28065	ac_header_compiler=no
28066fi
28067
28068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28069{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28070echo "${ECHO_T}$ac_header_compiler" >&6; }
28071
28072# Is the header present?
28073{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28075cat >conftest.$ac_ext <<_ACEOF
28076/* confdefs.h.  */
28077_ACEOF
28078cat confdefs.h >>conftest.$ac_ext
28079cat >>conftest.$ac_ext <<_ACEOF
28080/* end confdefs.h.  */
28081#include <$ac_header>
28082_ACEOF
28083if { (ac_try="$ac_cpp conftest.$ac_ext"
28084case "(($ac_try" in
28085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086  *) ac_try_echo=$ac_try;;
28087esac
28088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28090  ac_status=$?
28091  grep -v '^ *+' conftest.er1 >conftest.err
28092  rm -f conftest.er1
28093  cat conftest.err >&5
28094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095  (exit $ac_status); } >/dev/null && {
28096	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28097	 test ! -s conftest.err
28098       }; then
28099  ac_header_preproc=yes
28100else
28101  echo "$as_me: failed program was:" >&5
28102sed 's/^/| /' conftest.$ac_ext >&5
28103
28104  ac_header_preproc=no
28105fi
28106
28107rm -f conftest.err conftest.$ac_ext
28108{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28109echo "${ECHO_T}$ac_header_preproc" >&6; }
28110
28111# So?  What about this header?
28112case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28113  yes:no: )
28114    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28115echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28116    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28117echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28118    ac_header_preproc=yes
28119    ;;
28120  no:yes:* )
28121    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28122echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28123    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28124echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28125    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28126echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28127    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28128echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28129    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28130echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28131    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28132echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28133
28134    ;;
28135esac
28136{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28139  echo $ECHO_N "(cached) $ECHO_C" >&6
28140else
28141  eval "$as_ac_Header=\$ac_header_preproc"
28142fi
28143ac_res=`eval echo '${'$as_ac_Header'}'`
28144	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28145echo "${ECHO_T}$ac_res" >&6; }
28146
28147fi
28148if test `eval echo '${'$as_ac_Header'}'` = yes; then
28149  cat >>confdefs.h <<_ACEOF
28150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28151_ACEOF
28152
28153      for termlib in ncurses curses termcap terminfo termlib tinfo; do
28154       as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
28155{ echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
28156echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6; }
28157if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28158  echo $ECHO_N "(cached) $ECHO_C" >&6
28159else
28160  ac_check_lib_save_LIBS=$LIBS
28161LIBS="-l${termlib}  $LIBS"
28162cat >conftest.$ac_ext <<_ACEOF
28163/* confdefs.h.  */
28164_ACEOF
28165cat confdefs.h >>conftest.$ac_ext
28166cat >>conftest.$ac_ext <<_ACEOF
28167/* end confdefs.h.  */
28168
28169/* Override any GCC internal prototype to avoid an error.
28170   Use char because int might match the return type of a GCC
28171   builtin and then its argument prototype would still apply.  */
28172#ifdef __cplusplus
28173extern "C"
28174#endif
28175char tgetent ();
28176int
28177main ()
28178{
28179return tgetent ();
28180  ;
28181  return 0;
28182}
28183_ACEOF
28184rm -f conftest.$ac_objext conftest$ac_exeext
28185if { (ac_try="$ac_link"
28186case "(($ac_try" in
28187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188  *) ac_try_echo=$ac_try;;
28189esac
28190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191  (eval "$ac_link") 2>conftest.er1
28192  ac_status=$?
28193  grep -v '^ *+' conftest.er1 >conftest.err
28194  rm -f conftest.er1
28195  cat conftest.err >&5
28196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197  (exit $ac_status); } && {
28198	 test -z "$ac_c_werror_flag" ||
28199	 test ! -s conftest.err
28200       } && test -s conftest$ac_exeext &&
28201       $as_test_x conftest$ac_exeext; then
28202  eval "$as_ac_Lib=yes"
28203else
28204  echo "$as_me: failed program was:" >&5
28205sed 's/^/| /' conftest.$ac_ext >&5
28206
28207	eval "$as_ac_Lib=no"
28208fi
28209
28210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28211      conftest$ac_exeext conftest.$ac_ext
28212LIBS=$ac_check_lib_save_LIBS
28213fi
28214ac_res=`eval echo '${'$as_ac_Lib'}'`
28215	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28216echo "${ECHO_T}$ac_res" >&6; }
28217if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28218  TERMLIBS="-l${termlib}"; break
28219fi
28220
28221      done
28222      { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
28223echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
28224if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
28225  echo $ECHO_N "(cached) $ECHO_C" >&6
28226else
28227  ac_check_lib_save_LIBS=$LIBS
28228LIBS="-lreadline $TERMLIBS $LIBS"
28229cat >conftest.$ac_ext <<_ACEOF
28230/* confdefs.h.  */
28231_ACEOF
28232cat confdefs.h >>conftest.$ac_ext
28233cat >>conftest.$ac_ext <<_ACEOF
28234/* end confdefs.h.  */
28235
28236/* Override any GCC internal prototype to avoid an error.
28237   Use char because int might match the return type of a GCC
28238   builtin and then its argument prototype would still apply.  */
28239#ifdef __cplusplus
28240extern "C"
28241#endif
28242char rl_callback_handler_install ();
28243int
28244main ()
28245{
28246return rl_callback_handler_install ();
28247  ;
28248  return 0;
28249}
28250_ACEOF
28251rm -f conftest.$ac_objext conftest$ac_exeext
28252if { (ac_try="$ac_link"
28253case "(($ac_try" in
28254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255  *) ac_try_echo=$ac_try;;
28256esac
28257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28258  (eval "$ac_link") 2>conftest.er1
28259  ac_status=$?
28260  grep -v '^ *+' conftest.er1 >conftest.err
28261  rm -f conftest.er1
28262  cat conftest.err >&5
28263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264  (exit $ac_status); } && {
28265	 test -z "$ac_c_werror_flag" ||
28266	 test ! -s conftest.err
28267       } && test -s conftest$ac_exeext &&
28268       $as_test_x conftest$ac_exeext; then
28269  ac_cv_lib_readline_rl_callback_handler_install=yes
28270else
28271  echo "$as_me: failed program was:" >&5
28272sed 's/^/| /' conftest.$ac_ext >&5
28273
28274	ac_cv_lib_readline_rl_callback_handler_install=no
28275fi
28276
28277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28278      conftest$ac_exeext conftest.$ac_ext
28279LIBS=$ac_check_lib_save_LIBS
28280fi
28281{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
28282echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
28283if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
28284  TERMLIBS="-lreadline $TERMLIBS"
28285
28286cat >>confdefs.h <<\_ACEOF
28287#define HAVE_LIBREADLINE 1
28288_ACEOF
28289
28290       break
28291else
28292  TERMLIBS=
28293fi
28294
28295fi
28296
28297done
28298
28299    ;;
28300  no)
28301    { echo "$as_me:$LINENO: result: no" >&5
28302echo "${ECHO_T}no" >&6; }
28303    ;;
28304  *)
28305    { echo "$as_me:$LINENO: result: yes" >&5
28306echo "${ECHO_T}yes" >&6; }
28307
28308    # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
28309    # alternate readline path
28310    _ldflags=${LDFLAGS}
28311    _cppflags=${CPPFLAGS}
28312
28313    # Add additional search path
28314    LDFLAGS="-L$with_readline/lib $LDFLAGS"
28315    CPPFLAGS="-I$with_readline/include $CPPFLAGS"
28316
28317
28318
28319
28320for ac_header in readline.h history.h readline/readline.h
28321do
28322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28324  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28327  echo $ECHO_N "(cached) $ECHO_C" >&6
28328fi
28329ac_res=`eval echo '${'$as_ac_Header'}'`
28330	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28331echo "${ECHO_T}$ac_res" >&6; }
28332else
28333  # Is the header compilable?
28334{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28336cat >conftest.$ac_ext <<_ACEOF
28337/* confdefs.h.  */
28338_ACEOF
28339cat confdefs.h >>conftest.$ac_ext
28340cat >>conftest.$ac_ext <<_ACEOF
28341/* end confdefs.h.  */
28342$ac_includes_default
28343#include <$ac_header>
28344_ACEOF
28345rm -f conftest.$ac_objext
28346if { (ac_try="$ac_compile"
28347case "(($ac_try" in
28348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349  *) ac_try_echo=$ac_try;;
28350esac
28351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352  (eval "$ac_compile") 2>conftest.er1
28353  ac_status=$?
28354  grep -v '^ *+' conftest.er1 >conftest.err
28355  rm -f conftest.er1
28356  cat conftest.err >&5
28357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358  (exit $ac_status); } && {
28359	 test -z "$ac_c_werror_flag" ||
28360	 test ! -s conftest.err
28361       } && test -s conftest.$ac_objext; then
28362  ac_header_compiler=yes
28363else
28364  echo "$as_me: failed program was:" >&5
28365sed 's/^/| /' conftest.$ac_ext >&5
28366
28367	ac_header_compiler=no
28368fi
28369
28370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28372echo "${ECHO_T}$ac_header_compiler" >&6; }
28373
28374# Is the header present?
28375{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28377cat >conftest.$ac_ext <<_ACEOF
28378/* confdefs.h.  */
28379_ACEOF
28380cat confdefs.h >>conftest.$ac_ext
28381cat >>conftest.$ac_ext <<_ACEOF
28382/* end confdefs.h.  */
28383#include <$ac_header>
28384_ACEOF
28385if { (ac_try="$ac_cpp conftest.$ac_ext"
28386case "(($ac_try" in
28387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388  *) ac_try_echo=$ac_try;;
28389esac
28390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28392  ac_status=$?
28393  grep -v '^ *+' conftest.er1 >conftest.err
28394  rm -f conftest.er1
28395  cat conftest.err >&5
28396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397  (exit $ac_status); } >/dev/null && {
28398	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28399	 test ! -s conftest.err
28400       }; then
28401  ac_header_preproc=yes
28402else
28403  echo "$as_me: failed program was:" >&5
28404sed 's/^/| /' conftest.$ac_ext >&5
28405
28406  ac_header_preproc=no
28407fi
28408
28409rm -f conftest.err conftest.$ac_ext
28410{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28411echo "${ECHO_T}$ac_header_preproc" >&6; }
28412
28413# So?  What about this header?
28414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28415  yes:no: )
28416    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28420    ac_header_preproc=yes
28421    ;;
28422  no:yes:* )
28423    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28425    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28426echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28427    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28429    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28430echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28431    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28433    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28435
28436    ;;
28437esac
28438{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28441  echo $ECHO_N "(cached) $ECHO_C" >&6
28442else
28443  eval "$as_ac_Header=\$ac_header_preproc"
28444fi
28445ac_res=`eval echo '${'$as_ac_Header'}'`
28446	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28447echo "${ECHO_T}$ac_res" >&6; }
28448
28449fi
28450if test `eval echo '${'$as_ac_Header'}'` = yes; then
28451  cat >>confdefs.h <<_ACEOF
28452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28453_ACEOF
28454
28455fi
28456
28457done
28458
28459
28460for ac_header in readline/history.h
28461do
28462as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28464  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28467  echo $ECHO_N "(cached) $ECHO_C" >&6
28468fi
28469ac_res=`eval echo '${'$as_ac_Header'}'`
28470	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28471echo "${ECHO_T}$ac_res" >&6; }
28472else
28473  # Is the header compilable?
28474{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28476cat >conftest.$ac_ext <<_ACEOF
28477/* confdefs.h.  */
28478_ACEOF
28479cat confdefs.h >>conftest.$ac_ext
28480cat >>conftest.$ac_ext <<_ACEOF
28481/* end confdefs.h.  */
28482$ac_includes_default
28483#include <$ac_header>
28484_ACEOF
28485rm -f conftest.$ac_objext
28486if { (ac_try="$ac_compile"
28487case "(($ac_try" in
28488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489  *) ac_try_echo=$ac_try;;
28490esac
28491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492  (eval "$ac_compile") 2>conftest.er1
28493  ac_status=$?
28494  grep -v '^ *+' conftest.er1 >conftest.err
28495  rm -f conftest.er1
28496  cat conftest.err >&5
28497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498  (exit $ac_status); } && {
28499	 test -z "$ac_c_werror_flag" ||
28500	 test ! -s conftest.err
28501       } && test -s conftest.$ac_objext; then
28502  ac_header_compiler=yes
28503else
28504  echo "$as_me: failed program was:" >&5
28505sed 's/^/| /' conftest.$ac_ext >&5
28506
28507	ac_header_compiler=no
28508fi
28509
28510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28511{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28512echo "${ECHO_T}$ac_header_compiler" >&6; }
28513
28514# Is the header present?
28515{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28517cat >conftest.$ac_ext <<_ACEOF
28518/* confdefs.h.  */
28519_ACEOF
28520cat confdefs.h >>conftest.$ac_ext
28521cat >>conftest.$ac_ext <<_ACEOF
28522/* end confdefs.h.  */
28523#include <$ac_header>
28524_ACEOF
28525if { (ac_try="$ac_cpp conftest.$ac_ext"
28526case "(($ac_try" in
28527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528  *) ac_try_echo=$ac_try;;
28529esac
28530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28532  ac_status=$?
28533  grep -v '^ *+' conftest.er1 >conftest.err
28534  rm -f conftest.er1
28535  cat conftest.err >&5
28536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537  (exit $ac_status); } >/dev/null && {
28538	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28539	 test ! -s conftest.err
28540       }; then
28541  ac_header_preproc=yes
28542else
28543  echo "$as_me: failed program was:" >&5
28544sed 's/^/| /' conftest.$ac_ext >&5
28545
28546  ac_header_preproc=no
28547fi
28548
28549rm -f conftest.err conftest.$ac_ext
28550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28551echo "${ECHO_T}$ac_header_preproc" >&6; }
28552
28553# So?  What about this header?
28554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28555  yes:no: )
28556    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28558    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28560    ac_header_preproc=yes
28561    ;;
28562  no:yes:* )
28563    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28565    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28566echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28567    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28569    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28570echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28571    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28573    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28575
28576    ;;
28577esac
28578{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28581  echo $ECHO_N "(cached) $ECHO_C" >&6
28582else
28583  eval "$as_ac_Header=\$ac_header_preproc"
28584fi
28585ac_res=`eval echo '${'$as_ac_Header'}'`
28586	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28587echo "${ECHO_T}$ac_res" >&6; }
28588
28589fi
28590if test `eval echo '${'$as_ac_Header'}'` = yes; then
28591  cat >>confdefs.h <<_ACEOF
28592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28593_ACEOF
28594
28595fi
28596
28597done
28598
28599
28600
28601
28602for ac_header in readline.h readline/readline.h
28603do
28604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28606  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28609  echo $ECHO_N "(cached) $ECHO_C" >&6
28610fi
28611ac_res=`eval echo '${'$as_ac_Header'}'`
28612	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28613echo "${ECHO_T}$ac_res" >&6; }
28614else
28615  # Is the header compilable?
28616{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28618cat >conftest.$ac_ext <<_ACEOF
28619/* confdefs.h.  */
28620_ACEOF
28621cat confdefs.h >>conftest.$ac_ext
28622cat >>conftest.$ac_ext <<_ACEOF
28623/* end confdefs.h.  */
28624$ac_includes_default
28625#include <$ac_header>
28626_ACEOF
28627rm -f conftest.$ac_objext
28628if { (ac_try="$ac_compile"
28629case "(($ac_try" in
28630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631  *) ac_try_echo=$ac_try;;
28632esac
28633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634  (eval "$ac_compile") 2>conftest.er1
28635  ac_status=$?
28636  grep -v '^ *+' conftest.er1 >conftest.err
28637  rm -f conftest.er1
28638  cat conftest.err >&5
28639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640  (exit $ac_status); } && {
28641	 test -z "$ac_c_werror_flag" ||
28642	 test ! -s conftest.err
28643       } && test -s conftest.$ac_objext; then
28644  ac_header_compiler=yes
28645else
28646  echo "$as_me: failed program was:" >&5
28647sed 's/^/| /' conftest.$ac_ext >&5
28648
28649	ac_header_compiler=no
28650fi
28651
28652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28654echo "${ECHO_T}$ac_header_compiler" >&6; }
28655
28656# Is the header present?
28657{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28659cat >conftest.$ac_ext <<_ACEOF
28660/* confdefs.h.  */
28661_ACEOF
28662cat confdefs.h >>conftest.$ac_ext
28663cat >>conftest.$ac_ext <<_ACEOF
28664/* end confdefs.h.  */
28665#include <$ac_header>
28666_ACEOF
28667if { (ac_try="$ac_cpp conftest.$ac_ext"
28668case "(($ac_try" in
28669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670  *) ac_try_echo=$ac_try;;
28671esac
28672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28674  ac_status=$?
28675  grep -v '^ *+' conftest.er1 >conftest.err
28676  rm -f conftest.er1
28677  cat conftest.err >&5
28678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679  (exit $ac_status); } >/dev/null && {
28680	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28681	 test ! -s conftest.err
28682       }; then
28683  ac_header_preproc=yes
28684else
28685  echo "$as_me: failed program was:" >&5
28686sed 's/^/| /' conftest.$ac_ext >&5
28687
28688  ac_header_preproc=no
28689fi
28690
28691rm -f conftest.err conftest.$ac_ext
28692{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28693echo "${ECHO_T}$ac_header_preproc" >&6; }
28694
28695# So?  What about this header?
28696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28697  yes:no: )
28698    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28700    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28702    ac_header_preproc=yes
28703    ;;
28704  no:yes:* )
28705    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28707    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28708echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28709    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28711    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28712echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28713    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28715    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28717
28718    ;;
28719esac
28720{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28723  echo $ECHO_N "(cached) $ECHO_C" >&6
28724else
28725  eval "$as_ac_Header=\$ac_header_preproc"
28726fi
28727ac_res=`eval echo '${'$as_ac_Header'}'`
28728	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28729echo "${ECHO_T}$ac_res" >&6; }
28730
28731fi
28732if test `eval echo '${'$as_ac_Header'}'` = yes; then
28733  cat >>confdefs.h <<_ACEOF
28734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28735_ACEOF
28736
28737      for termlib in ncurses curses termcap terminfo termlib; do
28738       as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
28739{ echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
28740echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6; }
28741if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28742  echo $ECHO_N "(cached) $ECHO_C" >&6
28743else
28744  ac_check_lib_save_LIBS=$LIBS
28745LIBS="-l${termlib}  $LIBS"
28746cat >conftest.$ac_ext <<_ACEOF
28747/* confdefs.h.  */
28748_ACEOF
28749cat confdefs.h >>conftest.$ac_ext
28750cat >>conftest.$ac_ext <<_ACEOF
28751/* end confdefs.h.  */
28752
28753/* Override any GCC internal prototype to avoid an error.
28754   Use char because int might match the return type of a GCC
28755   builtin and then its argument prototype would still apply.  */
28756#ifdef __cplusplus
28757extern "C"
28758#endif
28759char tgetent ();
28760int
28761main ()
28762{
28763return tgetent ();
28764  ;
28765  return 0;
28766}
28767_ACEOF
28768rm -f conftest.$ac_objext conftest$ac_exeext
28769if { (ac_try="$ac_link"
28770case "(($ac_try" in
28771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28772  *) ac_try_echo=$ac_try;;
28773esac
28774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28775  (eval "$ac_link") 2>conftest.er1
28776  ac_status=$?
28777  grep -v '^ *+' conftest.er1 >conftest.err
28778  rm -f conftest.er1
28779  cat conftest.err >&5
28780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781  (exit $ac_status); } && {
28782	 test -z "$ac_c_werror_flag" ||
28783	 test ! -s conftest.err
28784       } && test -s conftest$ac_exeext &&
28785       $as_test_x conftest$ac_exeext; then
28786  eval "$as_ac_Lib=yes"
28787else
28788  echo "$as_me: failed program was:" >&5
28789sed 's/^/| /' conftest.$ac_ext >&5
28790
28791	eval "$as_ac_Lib=no"
28792fi
28793
28794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28795      conftest$ac_exeext conftest.$ac_ext
28796LIBS=$ac_check_lib_save_LIBS
28797fi
28798ac_res=`eval echo '${'$as_ac_Lib'}'`
28799	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28800echo "${ECHO_T}$ac_res" >&6; }
28801if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28802  TERMLIBS="-l${termlib}"; break
28803fi
28804
28805      done
28806      { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
28807echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
28808if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
28809  echo $ECHO_N "(cached) $ECHO_C" >&6
28810else
28811  ac_check_lib_save_LIBS=$LIBS
28812LIBS="-lreadline $TERMLIBS $LIBS"
28813cat >conftest.$ac_ext <<_ACEOF
28814/* confdefs.h.  */
28815_ACEOF
28816cat confdefs.h >>conftest.$ac_ext
28817cat >>conftest.$ac_ext <<_ACEOF
28818/* end confdefs.h.  */
28819
28820/* Override any GCC internal prototype to avoid an error.
28821   Use char because int might match the return type of a GCC
28822   builtin and then its argument prototype would still apply.  */
28823#ifdef __cplusplus
28824extern "C"
28825#endif
28826char rl_callback_handler_install ();
28827int
28828main ()
28829{
28830return rl_callback_handler_install ();
28831  ;
28832  return 0;
28833}
28834_ACEOF
28835rm -f conftest.$ac_objext conftest$ac_exeext
28836if { (ac_try="$ac_link"
28837case "(($ac_try" in
28838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839  *) ac_try_echo=$ac_try;;
28840esac
28841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842  (eval "$ac_link") 2>conftest.er1
28843  ac_status=$?
28844  grep -v '^ *+' conftest.er1 >conftest.err
28845  rm -f conftest.er1
28846  cat conftest.err >&5
28847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848  (exit $ac_status); } && {
28849	 test -z "$ac_c_werror_flag" ||
28850	 test ! -s conftest.err
28851       } && test -s conftest$ac_exeext &&
28852       $as_test_x conftest$ac_exeext; then
28853  ac_cv_lib_readline_rl_callback_handler_install=yes
28854else
28855  echo "$as_me: failed program was:" >&5
28856sed 's/^/| /' conftest.$ac_ext >&5
28857
28858	ac_cv_lib_readline_rl_callback_handler_install=no
28859fi
28860
28861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28862      conftest$ac_exeext conftest.$ac_ext
28863LIBS=$ac_check_lib_save_LIBS
28864fi
28865{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
28866echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
28867if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
28868  TERMLDFLAGS="-L$with_readline/lib"
28869       TERMCPPFLAGS="-I$with_readline/include"
28870       CPPFLAGS="-I$with_readline/include $CPPFLAGS"
28871       TERMLIBS="-lreadline $TERMLIBS"
28872
28873cat >>confdefs.h <<\_ACEOF
28874#define HAVE_LIBREADLINE 1
28875_ACEOF
28876
28877       break
28878else
28879  TERMLIBS= CPPFLAGS=$_cppflags
28880fi
28881
28882fi
28883
28884done
28885
28886
28887    LDFLAGS=$_ldflags
28888    ;;
28889  esac
28890else
28891  { echo "$as_me:$LINENO: result: no" >&5
28892echo "${ECHO_T}no" >&6; }
28893
28894fi
28895
28896
28897
28898
28899# The readline API changed slightly from readline3 to readline4, so
28900# code will generate warnings on one of them unless we have a few
28901# special cases.
28902{ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
28903echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
28904if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
28905  echo $ECHO_N "(cached) $ECHO_C" >&6
28906else
28907  ac_check_lib_save_LIBS=$LIBS
28908LIBS="-lreadline $TERMLIBS $LIBS"
28909cat >conftest.$ac_ext <<_ACEOF
28910/* confdefs.h.  */
28911_ACEOF
28912cat confdefs.h >>conftest.$ac_ext
28913cat >>conftest.$ac_ext <<_ACEOF
28914/* end confdefs.h.  */
28915
28916/* Override any GCC internal prototype to avoid an error.
28917   Use char because int might match the return type of a GCC
28918   builtin and then its argument prototype would still apply.  */
28919#ifdef __cplusplus
28920extern "C"
28921#endif
28922char rl_completion_matches ();
28923int
28924main ()
28925{
28926return rl_completion_matches ();
28927  ;
28928  return 0;
28929}
28930_ACEOF
28931rm -f conftest.$ac_objext conftest$ac_exeext
28932if { (ac_try="$ac_link"
28933case "(($ac_try" in
28934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935  *) ac_try_echo=$ac_try;;
28936esac
28937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938  (eval "$ac_link") 2>conftest.er1
28939  ac_status=$?
28940  grep -v '^ *+' conftest.er1 >conftest.err
28941  rm -f conftest.er1
28942  cat conftest.err >&5
28943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944  (exit $ac_status); } && {
28945	 test -z "$ac_c_werror_flag" ||
28946	 test ! -s conftest.err
28947       } && test -s conftest$ac_exeext &&
28948       $as_test_x conftest$ac_exeext; then
28949  ac_cv_lib_readline_rl_completion_matches=yes
28950else
28951  echo "$as_me: failed program was:" >&5
28952sed 's/^/| /' conftest.$ac_ext >&5
28953
28954	ac_cv_lib_readline_rl_completion_matches=no
28955fi
28956
28957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28958      conftest$ac_exeext conftest.$ac_ext
28959LIBS=$ac_check_lib_save_LIBS
28960fi
28961{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
28962echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
28963if test $ac_cv_lib_readline_rl_completion_matches = yes; then
28964
28965cat >>confdefs.h <<\_ACEOF
28966#define HAVE_NEW_LIBREADLINE 1
28967_ACEOF
28968
28969fi
28970
28971
28972# not all readline libs have rl_event_hook or history_list
28973{ echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
28974echo $ECHO_N "checking whether rl_event_hook is declared... $ECHO_C" >&6; }
28975if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
28976  echo $ECHO_N "(cached) $ECHO_C" >&6
28977else
28978  cat >conftest.$ac_ext <<_ACEOF
28979/* confdefs.h.  */
28980_ACEOF
28981cat confdefs.h >>conftest.$ac_ext
28982cat >>conftest.$ac_ext <<_ACEOF
28983/* end confdefs.h.  */
28984#include <readline/readline.h>
28985
28986int
28987main ()
28988{
28989#ifndef rl_event_hook
28990  (void) rl_event_hook;
28991#endif
28992
28993  ;
28994  return 0;
28995}
28996_ACEOF
28997rm -f conftest.$ac_objext
28998if { (ac_try="$ac_compile"
28999case "(($ac_try" in
29000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001  *) ac_try_echo=$ac_try;;
29002esac
29003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004  (eval "$ac_compile") 2>conftest.er1
29005  ac_status=$?
29006  grep -v '^ *+' conftest.er1 >conftest.err
29007  rm -f conftest.er1
29008  cat conftest.err >&5
29009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010  (exit $ac_status); } && {
29011	 test -z "$ac_c_werror_flag" ||
29012	 test ! -s conftest.err
29013       } && test -s conftest.$ac_objext; then
29014  ac_cv_have_decl_rl_event_hook=yes
29015else
29016  echo "$as_me: failed program was:" >&5
29017sed 's/^/| /' conftest.$ac_ext >&5
29018
29019	ac_cv_have_decl_rl_event_hook=no
29020fi
29021
29022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29023fi
29024{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
29025echo "${ECHO_T}$ac_cv_have_decl_rl_event_hook" >&6; }
29026if test $ac_cv_have_decl_rl_event_hook = yes; then
29027
29028cat >>confdefs.h <<_ACEOF
29029#define HAVE_DECL_RL_EVENT_HOOK 1
29030_ACEOF
29031
29032
29033else
29034  cat >>confdefs.h <<_ACEOF
29035#define HAVE_DECL_RL_EVENT_HOOK 0
29036_ACEOF
29037
29038
29039fi
29040
29041
29042{ echo "$as_me:$LINENO: checking for history_list in -lreadline" >&5
29043echo $ECHO_N "checking for history_list in -lreadline... $ECHO_C" >&6; }
29044if test "${ac_cv_lib_readline_history_list+set}" = set; then
29045  echo $ECHO_N "(cached) $ECHO_C" >&6
29046else
29047  ac_check_lib_save_LIBS=$LIBS
29048LIBS="-lreadline $TERMLIBS $LIBS"
29049cat >conftest.$ac_ext <<_ACEOF
29050/* confdefs.h.  */
29051_ACEOF
29052cat confdefs.h >>conftest.$ac_ext
29053cat >>conftest.$ac_ext <<_ACEOF
29054/* end confdefs.h.  */
29055
29056/* Override any GCC internal prototype to avoid an error.
29057   Use char because int might match the return type of a GCC
29058   builtin and then its argument prototype would still apply.  */
29059#ifdef __cplusplus
29060extern "C"
29061#endif
29062char history_list ();
29063int
29064main ()
29065{
29066return history_list ();
29067  ;
29068  return 0;
29069}
29070_ACEOF
29071rm -f conftest.$ac_objext conftest$ac_exeext
29072if { (ac_try="$ac_link"
29073case "(($ac_try" in
29074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075  *) ac_try_echo=$ac_try;;
29076esac
29077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078  (eval "$ac_link") 2>conftest.er1
29079  ac_status=$?
29080  grep -v '^ *+' conftest.er1 >conftest.err
29081  rm -f conftest.er1
29082  cat conftest.err >&5
29083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084  (exit $ac_status); } && {
29085	 test -z "$ac_c_werror_flag" ||
29086	 test ! -s conftest.err
29087       } && test -s conftest$ac_exeext &&
29088       $as_test_x conftest$ac_exeext; then
29089  ac_cv_lib_readline_history_list=yes
29090else
29091  echo "$as_me: failed program was:" >&5
29092sed 's/^/| /' conftest.$ac_ext >&5
29093
29094	ac_cv_lib_readline_history_list=no
29095fi
29096
29097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29098      conftest$ac_exeext conftest.$ac_ext
29099LIBS=$ac_check_lib_save_LIBS
29100fi
29101{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history_list" >&5
29102echo "${ECHO_T}$ac_cv_lib_readline_history_list" >&6; }
29103if test $ac_cv_lib_readline_history_list = yes; then
29104
29105cat >>confdefs.h <<\_ACEOF
29106#define HAVE_HISTORY_LIST 1
29107_ACEOF
29108
29109fi
29110
29111
29112# The following test taken from the cvs sources
29113# If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
29114# The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
29115# libsocket.so which has a bad implementation of gethostbyname (it
29116# only looks in /etc/hosts), so we only look for -lsocket if we need
29117# it.
29118
29119for ac_func in connect
29120do
29121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29122{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29125  echo $ECHO_N "(cached) $ECHO_C" >&6
29126else
29127  cat >conftest.$ac_ext <<_ACEOF
29128/* confdefs.h.  */
29129_ACEOF
29130cat confdefs.h >>conftest.$ac_ext
29131cat >>conftest.$ac_ext <<_ACEOF
29132/* end confdefs.h.  */
29133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29134   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29135#define $ac_func innocuous_$ac_func
29136
29137/* System header to define __stub macros and hopefully few prototypes,
29138    which can conflict with char $ac_func (); below.
29139    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29140    <limits.h> exists even on freestanding compilers.  */
29141
29142#ifdef __STDC__
29143# include <limits.h>
29144#else
29145# include <assert.h>
29146#endif
29147
29148#undef $ac_func
29149
29150/* Override any GCC internal prototype to avoid an error.
29151   Use char because int might match the return type of a GCC
29152   builtin and then its argument prototype would still apply.  */
29153#ifdef __cplusplus
29154extern "C"
29155#endif
29156char $ac_func ();
29157/* The GNU C library defines this for functions which it implements
29158    to always fail with ENOSYS.  Some functions are actually named
29159    something starting with __ and the normal name is an alias.  */
29160#if defined __stub_$ac_func || defined __stub___$ac_func
29161choke me
29162#endif
29163
29164int
29165main ()
29166{
29167return $ac_func ();
29168  ;
29169  return 0;
29170}
29171_ACEOF
29172rm -f conftest.$ac_objext conftest$ac_exeext
29173if { (ac_try="$ac_link"
29174case "(($ac_try" in
29175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176  *) ac_try_echo=$ac_try;;
29177esac
29178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179  (eval "$ac_link") 2>conftest.er1
29180  ac_status=$?
29181  grep -v '^ *+' conftest.er1 >conftest.err
29182  rm -f conftest.er1
29183  cat conftest.err >&5
29184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185  (exit $ac_status); } && {
29186	 test -z "$ac_c_werror_flag" ||
29187	 test ! -s conftest.err
29188       } && test -s conftest$ac_exeext &&
29189       $as_test_x conftest$ac_exeext; then
29190  eval "$as_ac_var=yes"
29191else
29192  echo "$as_me: failed program was:" >&5
29193sed 's/^/| /' conftest.$ac_ext >&5
29194
29195	eval "$as_ac_var=no"
29196fi
29197
29198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29199      conftest$ac_exeext conftest.$ac_ext
29200fi
29201ac_res=`eval echo '${'$as_ac_var'}'`
29202	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29203echo "${ECHO_T}$ac_res" >&6; }
29204if test `eval echo '${'$as_ac_var'}'` = yes; then
29205  cat >>confdefs.h <<_ACEOF
29206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29207_ACEOF
29208
29209fi
29210done
29211
29212if test x"$ac_cv_func_connect" = x"no"; then
29213    case "$LIBS" in
29214    *-lnsl*) ;;
29215    *)
29216{ echo "$as_me:$LINENO: checking for connect in -lnsl_s" >&5
29217echo $ECHO_N "checking for connect in -lnsl_s... $ECHO_C" >&6; }
29218if test "${ac_cv_lib_nsl_s_connect+set}" = set; then
29219  echo $ECHO_N "(cached) $ECHO_C" >&6
29220else
29221  ac_check_lib_save_LIBS=$LIBS
29222LIBS="-lnsl_s  $LIBS"
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
29230/* Override any GCC internal prototype to avoid an error.
29231   Use char because int might match the return type of a GCC
29232   builtin and then its argument prototype would still apply.  */
29233#ifdef __cplusplus
29234extern "C"
29235#endif
29236char connect ();
29237int
29238main ()
29239{
29240return connect ();
29241  ;
29242  return 0;
29243}
29244_ACEOF
29245rm -f conftest.$ac_objext conftest$ac_exeext
29246if { (ac_try="$ac_link"
29247case "(($ac_try" in
29248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249  *) ac_try_echo=$ac_try;;
29250esac
29251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252  (eval "$ac_link") 2>conftest.er1
29253  ac_status=$?
29254  grep -v '^ *+' conftest.er1 >conftest.err
29255  rm -f conftest.er1
29256  cat conftest.err >&5
29257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258  (exit $ac_status); } && {
29259	 test -z "$ac_c_werror_flag" ||
29260	 test ! -s conftest.err
29261       } && test -s conftest$ac_exeext &&
29262       $as_test_x conftest$ac_exeext; then
29263  ac_cv_lib_nsl_s_connect=yes
29264else
29265  echo "$as_me: failed program was:" >&5
29266sed 's/^/| /' conftest.$ac_ext >&5
29267
29268	ac_cv_lib_nsl_s_connect=no
29269fi
29270
29271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29272      conftest$ac_exeext conftest.$ac_ext
29273LIBS=$ac_check_lib_save_LIBS
29274fi
29275{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_connect" >&5
29276echo "${ECHO_T}$ac_cv_lib_nsl_s_connect" >&6; }
29277if test $ac_cv_lib_nsl_s_connect = yes; then
29278  cat >>confdefs.h <<_ACEOF
29279#define HAVE_LIBNSL_S 1
29280_ACEOF
29281
29282  LIBS="-lnsl_s $LIBS"
29283
29284fi
29285 ;;
29286    esac
29287    case "$LIBS" in
29288    *-lnsl*) ;;
29289    *)
29290{ echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
29291echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6; }
29292if test "${ac_cv_lib_nsl_connect+set}" = set; then
29293  echo $ECHO_N "(cached) $ECHO_C" >&6
29294else
29295  ac_check_lib_save_LIBS=$LIBS
29296LIBS="-lnsl  $LIBS"
29297cat >conftest.$ac_ext <<_ACEOF
29298/* confdefs.h.  */
29299_ACEOF
29300cat confdefs.h >>conftest.$ac_ext
29301cat >>conftest.$ac_ext <<_ACEOF
29302/* end confdefs.h.  */
29303
29304/* Override any GCC internal prototype to avoid an error.
29305   Use char because int might match the return type of a GCC
29306   builtin and then its argument prototype would still apply.  */
29307#ifdef __cplusplus
29308extern "C"
29309#endif
29310char connect ();
29311int
29312main ()
29313{
29314return connect ();
29315  ;
29316  return 0;
29317}
29318_ACEOF
29319rm -f conftest.$ac_objext conftest$ac_exeext
29320if { (ac_try="$ac_link"
29321case "(($ac_try" in
29322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323  *) ac_try_echo=$ac_try;;
29324esac
29325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29326  (eval "$ac_link") 2>conftest.er1
29327  ac_status=$?
29328  grep -v '^ *+' conftest.er1 >conftest.err
29329  rm -f conftest.er1
29330  cat conftest.err >&5
29331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332  (exit $ac_status); } && {
29333	 test -z "$ac_c_werror_flag" ||
29334	 test ! -s conftest.err
29335       } && test -s conftest$ac_exeext &&
29336       $as_test_x conftest$ac_exeext; then
29337  ac_cv_lib_nsl_connect=yes
29338else
29339  echo "$as_me: failed program was:" >&5
29340sed 's/^/| /' conftest.$ac_ext >&5
29341
29342	ac_cv_lib_nsl_connect=no
29343fi
29344
29345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29346      conftest$ac_exeext conftest.$ac_ext
29347LIBS=$ac_check_lib_save_LIBS
29348fi
29349{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
29350echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6; }
29351if test $ac_cv_lib_nsl_connect = yes; then
29352  cat >>confdefs.h <<_ACEOF
29353#define HAVE_LIBNSL 1
29354_ACEOF
29355
29356  LIBS="-lnsl $LIBS"
29357
29358fi
29359 ;;
29360    esac
29361    case "$LIBS" in
29362    *-lsocket*) ;;
29363    *)
29364{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29365echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29366if test "${ac_cv_lib_socket_connect+set}" = set; then
29367  echo $ECHO_N "(cached) $ECHO_C" >&6
29368else
29369  ac_check_lib_save_LIBS=$LIBS
29370LIBS="-lsocket  $LIBS"
29371cat >conftest.$ac_ext <<_ACEOF
29372/* confdefs.h.  */
29373_ACEOF
29374cat confdefs.h >>conftest.$ac_ext
29375cat >>conftest.$ac_ext <<_ACEOF
29376/* end confdefs.h.  */
29377
29378/* Override any GCC internal prototype to avoid an error.
29379   Use char because int might match the return type of a GCC
29380   builtin and then its argument prototype would still apply.  */
29381#ifdef __cplusplus
29382extern "C"
29383#endif
29384char connect ();
29385int
29386main ()
29387{
29388return connect ();
29389  ;
29390  return 0;
29391}
29392_ACEOF
29393rm -f conftest.$ac_objext conftest$ac_exeext
29394if { (ac_try="$ac_link"
29395case "(($ac_try" in
29396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397  *) ac_try_echo=$ac_try;;
29398esac
29399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400  (eval "$ac_link") 2>conftest.er1
29401  ac_status=$?
29402  grep -v '^ *+' conftest.er1 >conftest.err
29403  rm -f conftest.er1
29404  cat conftest.err >&5
29405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406  (exit $ac_status); } && {
29407	 test -z "$ac_c_werror_flag" ||
29408	 test ! -s conftest.err
29409       } && test -s conftest$ac_exeext &&
29410       $as_test_x conftest$ac_exeext; then
29411  ac_cv_lib_socket_connect=yes
29412else
29413  echo "$as_me: failed program was:" >&5
29414sed 's/^/| /' conftest.$ac_ext >&5
29415
29416	ac_cv_lib_socket_connect=no
29417fi
29418
29419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29420      conftest$ac_exeext conftest.$ac_ext
29421LIBS=$ac_check_lib_save_LIBS
29422fi
29423{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29424echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
29425if test $ac_cv_lib_socket_connect = yes; then
29426  cat >>confdefs.h <<_ACEOF
29427#define HAVE_LIBSOCKET 1
29428_ACEOF
29429
29430  LIBS="-lsocket $LIBS"
29431
29432fi
29433 ;;
29434    esac
29435    case "$LIBS" in
29436    *-linet*) ;;
29437    *)
29438{ echo "$as_me:$LINENO: checking for connect in -linet" >&5
29439echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6; }
29440if test "${ac_cv_lib_inet_connect+set}" = set; then
29441  echo $ECHO_N "(cached) $ECHO_C" >&6
29442else
29443  ac_check_lib_save_LIBS=$LIBS
29444LIBS="-linet  $LIBS"
29445cat >conftest.$ac_ext <<_ACEOF
29446/* confdefs.h.  */
29447_ACEOF
29448cat confdefs.h >>conftest.$ac_ext
29449cat >>conftest.$ac_ext <<_ACEOF
29450/* end confdefs.h.  */
29451
29452/* Override any GCC internal prototype to avoid an error.
29453   Use char because int might match the return type of a GCC
29454   builtin and then its argument prototype would still apply.  */
29455#ifdef __cplusplus
29456extern "C"
29457#endif
29458char connect ();
29459int
29460main ()
29461{
29462return connect ();
29463  ;
29464  return 0;
29465}
29466_ACEOF
29467rm -f conftest.$ac_objext conftest$ac_exeext
29468if { (ac_try="$ac_link"
29469case "(($ac_try" in
29470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29471  *) ac_try_echo=$ac_try;;
29472esac
29473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29474  (eval "$ac_link") 2>conftest.er1
29475  ac_status=$?
29476  grep -v '^ *+' conftest.er1 >conftest.err
29477  rm -f conftest.er1
29478  cat conftest.err >&5
29479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480  (exit $ac_status); } && {
29481	 test -z "$ac_c_werror_flag" ||
29482	 test ! -s conftest.err
29483       } && test -s conftest$ac_exeext &&
29484       $as_test_x conftest$ac_exeext; then
29485  ac_cv_lib_inet_connect=yes
29486else
29487  echo "$as_me: failed program was:" >&5
29488sed 's/^/| /' conftest.$ac_ext >&5
29489
29490	ac_cv_lib_inet_connect=no
29491fi
29492
29493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29494      conftest$ac_exeext conftest.$ac_ext
29495LIBS=$ac_check_lib_save_LIBS
29496fi
29497{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
29498echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6; }
29499if test $ac_cv_lib_inet_connect = yes; then
29500  cat >>confdefs.h <<_ACEOF
29501#define HAVE_LIBINET 1
29502_ACEOF
29503
29504  LIBS="-linet $LIBS"
29505
29506fi
29507 ;;
29508    esac
29509            if test x"$ac_cv_lib_socket_connect" = x"yes" ||
29510       test x"$ac_cv_lib_inet_connect" = x"yes"; then
29511        # ac_cv_func_connect=yes
29512        # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run
29513
29514cat >>confdefs.h <<\_ACEOF
29515#define HAVE_CONNECT 1
29516_ACEOF
29517
29518    fi
29519fi
29520
29521###############################################
29522# test for where we get yp_get_default_domain() from
29523{ echo "$as_me:$LINENO: checking for library containing yp_get_default_domain" >&5
29524echo $ECHO_N "checking for library containing yp_get_default_domain... $ECHO_C" >&6; }
29525if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
29526  echo $ECHO_N "(cached) $ECHO_C" >&6
29527else
29528  ac_func_search_save_LIBS=$LIBS
29529cat >conftest.$ac_ext <<_ACEOF
29530/* confdefs.h.  */
29531_ACEOF
29532cat confdefs.h >>conftest.$ac_ext
29533cat >>conftest.$ac_ext <<_ACEOF
29534/* end confdefs.h.  */
29535
29536/* Override any GCC internal prototype to avoid an error.
29537   Use char because int might match the return type of a GCC
29538   builtin and then its argument prototype would still apply.  */
29539#ifdef __cplusplus
29540extern "C"
29541#endif
29542char yp_get_default_domain ();
29543int
29544main ()
29545{
29546return yp_get_default_domain ();
29547  ;
29548  return 0;
29549}
29550_ACEOF
29551for ac_lib in '' nsl; do
29552  if test -z "$ac_lib"; then
29553    ac_res="none required"
29554  else
29555    ac_res=-l$ac_lib
29556    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29557  fi
29558  rm -f conftest.$ac_objext conftest$ac_exeext
29559if { (ac_try="$ac_link"
29560case "(($ac_try" in
29561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29562  *) ac_try_echo=$ac_try;;
29563esac
29564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29565  (eval "$ac_link") 2>conftest.er1
29566  ac_status=$?
29567  grep -v '^ *+' conftest.er1 >conftest.err
29568  rm -f conftest.er1
29569  cat conftest.err >&5
29570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571  (exit $ac_status); } && {
29572	 test -z "$ac_c_werror_flag" ||
29573	 test ! -s conftest.err
29574       } && test -s conftest$ac_exeext &&
29575       $as_test_x conftest$ac_exeext; then
29576  ac_cv_search_yp_get_default_domain=$ac_res
29577else
29578  echo "$as_me: failed program was:" >&5
29579sed 's/^/| /' conftest.$ac_ext >&5
29580
29581
29582fi
29583
29584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29585      conftest$ac_exeext
29586  if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
29587  break
29588fi
29589done
29590if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
29591  :
29592else
29593  ac_cv_search_yp_get_default_domain=no
29594fi
29595rm conftest.$ac_ext
29596LIBS=$ac_func_search_save_LIBS
29597fi
29598{ echo "$as_me:$LINENO: result: $ac_cv_search_yp_get_default_domain" >&5
29599echo "${ECHO_T}$ac_cv_search_yp_get_default_domain" >&6; }
29600ac_res=$ac_cv_search_yp_get_default_domain
29601if test "$ac_res" != no; then
29602  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29603
29604fi
29605
29606
29607for ac_func in yp_get_default_domain
29608do
29609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29610{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29612if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29613  echo $ECHO_N "(cached) $ECHO_C" >&6
29614else
29615  cat >conftest.$ac_ext <<_ACEOF
29616/* confdefs.h.  */
29617_ACEOF
29618cat confdefs.h >>conftest.$ac_ext
29619cat >>conftest.$ac_ext <<_ACEOF
29620/* end confdefs.h.  */
29621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29622   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29623#define $ac_func innocuous_$ac_func
29624
29625/* System header to define __stub macros and hopefully few prototypes,
29626    which can conflict with char $ac_func (); below.
29627    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29628    <limits.h> exists even on freestanding compilers.  */
29629
29630#ifdef __STDC__
29631# include <limits.h>
29632#else
29633# include <assert.h>
29634#endif
29635
29636#undef $ac_func
29637
29638/* Override any GCC internal prototype to avoid an error.
29639   Use char because int might match the return type of a GCC
29640   builtin and then its argument prototype would still apply.  */
29641#ifdef __cplusplus
29642extern "C"
29643#endif
29644char $ac_func ();
29645/* The GNU C library defines this for functions which it implements
29646    to always fail with ENOSYS.  Some functions are actually named
29647    something starting with __ and the normal name is an alias.  */
29648#if defined __stub_$ac_func || defined __stub___$ac_func
29649choke me
29650#endif
29651
29652int
29653main ()
29654{
29655return $ac_func ();
29656  ;
29657  return 0;
29658}
29659_ACEOF
29660rm -f conftest.$ac_objext conftest$ac_exeext
29661if { (ac_try="$ac_link"
29662case "(($ac_try" in
29663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664  *) ac_try_echo=$ac_try;;
29665esac
29666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667  (eval "$ac_link") 2>conftest.er1
29668  ac_status=$?
29669  grep -v '^ *+' conftest.er1 >conftest.err
29670  rm -f conftest.er1
29671  cat conftest.err >&5
29672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673  (exit $ac_status); } && {
29674	 test -z "$ac_c_werror_flag" ||
29675	 test ! -s conftest.err
29676       } && test -s conftest$ac_exeext &&
29677       $as_test_x conftest$ac_exeext; then
29678  eval "$as_ac_var=yes"
29679else
29680  echo "$as_me: failed program was:" >&5
29681sed 's/^/| /' conftest.$ac_ext >&5
29682
29683	eval "$as_ac_var=no"
29684fi
29685
29686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29687      conftest$ac_exeext conftest.$ac_ext
29688fi
29689ac_res=`eval echo '${'$as_ac_var'}'`
29690	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29691echo "${ECHO_T}$ac_res" >&6; }
29692if test `eval echo '${'$as_ac_var'}'` = yes; then
29693  cat >>confdefs.h <<_ACEOF
29694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29695_ACEOF
29696
29697fi
29698done
29699
29700
29701# Check if we have execl, if not we need to compile smbrun.
29702
29703for ac_func in execl
29704do
29705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29709  echo $ECHO_N "(cached) $ECHO_C" >&6
29710else
29711  cat >conftest.$ac_ext <<_ACEOF
29712/* confdefs.h.  */
29713_ACEOF
29714cat confdefs.h >>conftest.$ac_ext
29715cat >>conftest.$ac_ext <<_ACEOF
29716/* end confdefs.h.  */
29717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29718   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29719#define $ac_func innocuous_$ac_func
29720
29721/* System header to define __stub macros and hopefully few prototypes,
29722    which can conflict with char $ac_func (); below.
29723    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29724    <limits.h> exists even on freestanding compilers.  */
29725
29726#ifdef __STDC__
29727# include <limits.h>
29728#else
29729# include <assert.h>
29730#endif
29731
29732#undef $ac_func
29733
29734/* Override any GCC internal prototype to avoid an error.
29735   Use char because int might match the return type of a GCC
29736   builtin and then its argument prototype would still apply.  */
29737#ifdef __cplusplus
29738extern "C"
29739#endif
29740char $ac_func ();
29741/* The GNU C library defines this for functions which it implements
29742    to always fail with ENOSYS.  Some functions are actually named
29743    something starting with __ and the normal name is an alias.  */
29744#if defined __stub_$ac_func || defined __stub___$ac_func
29745choke me
29746#endif
29747
29748int
29749main ()
29750{
29751return $ac_func ();
29752  ;
29753  return 0;
29754}
29755_ACEOF
29756rm -f conftest.$ac_objext conftest$ac_exeext
29757if { (ac_try="$ac_link"
29758case "(($ac_try" in
29759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760  *) ac_try_echo=$ac_try;;
29761esac
29762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763  (eval "$ac_link") 2>conftest.er1
29764  ac_status=$?
29765  grep -v '^ *+' conftest.er1 >conftest.err
29766  rm -f conftest.er1
29767  cat conftest.err >&5
29768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769  (exit $ac_status); } && {
29770	 test -z "$ac_c_werror_flag" ||
29771	 test ! -s conftest.err
29772       } && test -s conftest$ac_exeext &&
29773       $as_test_x conftest$ac_exeext; then
29774  eval "$as_ac_var=yes"
29775else
29776  echo "$as_me: failed program was:" >&5
29777sed 's/^/| /' conftest.$ac_ext >&5
29778
29779	eval "$as_ac_var=no"
29780fi
29781
29782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29783      conftest$ac_exeext conftest.$ac_ext
29784fi
29785ac_res=`eval echo '${'$as_ac_var'}'`
29786	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29787echo "${ECHO_T}$ac_res" >&6; }
29788if test `eval echo '${'$as_ac_var'}'` = yes; then
29789  cat >>confdefs.h <<_ACEOF
29790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29791_ACEOF
29792
29793fi
29794done
29795
29796if test x"$ac_cv_func_execl" = x"no"; then
29797    EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
29798fi
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814for ac_func in waitpid getcwd strdup strndup strnlen strerror chown fchown chmod fchmod chroot link mknod mknod64
29815do
29816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29820  echo $ECHO_N "(cached) $ECHO_C" >&6
29821else
29822  cat >conftest.$ac_ext <<_ACEOF
29823/* confdefs.h.  */
29824_ACEOF
29825cat confdefs.h >>conftest.$ac_ext
29826cat >>conftest.$ac_ext <<_ACEOF
29827/* end confdefs.h.  */
29828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29830#define $ac_func innocuous_$ac_func
29831
29832/* System header to define __stub macros and hopefully few prototypes,
29833    which can conflict with char $ac_func (); below.
29834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29835    <limits.h> exists even on freestanding compilers.  */
29836
29837#ifdef __STDC__
29838# include <limits.h>
29839#else
29840# include <assert.h>
29841#endif
29842
29843#undef $ac_func
29844
29845/* Override any GCC internal prototype to avoid an error.
29846   Use char because int might match the return type of a GCC
29847   builtin and then its argument prototype would still apply.  */
29848#ifdef __cplusplus
29849extern "C"
29850#endif
29851char $ac_func ();
29852/* The GNU C library defines this for functions which it implements
29853    to always fail with ENOSYS.  Some functions are actually named
29854    something starting with __ and the normal name is an alias.  */
29855#if defined __stub_$ac_func || defined __stub___$ac_func
29856choke me
29857#endif
29858
29859int
29860main ()
29861{
29862return $ac_func ();
29863  ;
29864  return 0;
29865}
29866_ACEOF
29867rm -f conftest.$ac_objext conftest$ac_exeext
29868if { (ac_try="$ac_link"
29869case "(($ac_try" in
29870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871  *) ac_try_echo=$ac_try;;
29872esac
29873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874  (eval "$ac_link") 2>conftest.er1
29875  ac_status=$?
29876  grep -v '^ *+' conftest.er1 >conftest.err
29877  rm -f conftest.er1
29878  cat conftest.err >&5
29879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880  (exit $ac_status); } && {
29881	 test -z "$ac_c_werror_flag" ||
29882	 test ! -s conftest.err
29883       } && test -s conftest$ac_exeext &&
29884       $as_test_x conftest$ac_exeext; then
29885  eval "$as_ac_var=yes"
29886else
29887  echo "$as_me: failed program was:" >&5
29888sed 's/^/| /' conftest.$ac_ext >&5
29889
29890	eval "$as_ac_var=no"
29891fi
29892
29893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29894      conftest$ac_exeext conftest.$ac_ext
29895fi
29896ac_res=`eval echo '${'$as_ac_var'}'`
29897	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29898echo "${ECHO_T}$ac_res" >&6; }
29899if test `eval echo '${'$as_ac_var'}'` = yes; then
29900  cat >>confdefs.h <<_ACEOF
29901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29902_ACEOF
29903
29904fi
29905done
29906
29907
29908
29909
29910
29911
29912
29913for ac_func in strtol strtoll strtoul strtoull strtouq __strtoull
29914do
29915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29919  echo $ECHO_N "(cached) $ECHO_C" >&6
29920else
29921  cat >conftest.$ac_ext <<_ACEOF
29922/* confdefs.h.  */
29923_ACEOF
29924cat confdefs.h >>conftest.$ac_ext
29925cat >>conftest.$ac_ext <<_ACEOF
29926/* end confdefs.h.  */
29927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29928   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29929#define $ac_func innocuous_$ac_func
29930
29931/* System header to define __stub macros and hopefully few prototypes,
29932    which can conflict with char $ac_func (); below.
29933    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29934    <limits.h> exists even on freestanding compilers.  */
29935
29936#ifdef __STDC__
29937# include <limits.h>
29938#else
29939# include <assert.h>
29940#endif
29941
29942#undef $ac_func
29943
29944/* Override any GCC internal prototype to avoid an error.
29945   Use char because int might match the return type of a GCC
29946   builtin and then its argument prototype would still apply.  */
29947#ifdef __cplusplus
29948extern "C"
29949#endif
29950char $ac_func ();
29951/* The GNU C library defines this for functions which it implements
29952    to always fail with ENOSYS.  Some functions are actually named
29953    something starting with __ and the normal name is an alias.  */
29954#if defined __stub_$ac_func || defined __stub___$ac_func
29955choke me
29956#endif
29957
29958int
29959main ()
29960{
29961return $ac_func ();
29962  ;
29963  return 0;
29964}
29965_ACEOF
29966rm -f conftest.$ac_objext conftest$ac_exeext
29967if { (ac_try="$ac_link"
29968case "(($ac_try" in
29969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970  *) ac_try_echo=$ac_try;;
29971esac
29972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973  (eval "$ac_link") 2>conftest.er1
29974  ac_status=$?
29975  grep -v '^ *+' conftest.er1 >conftest.err
29976  rm -f conftest.er1
29977  cat conftest.err >&5
29978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979  (exit $ac_status); } && {
29980	 test -z "$ac_c_werror_flag" ||
29981	 test ! -s conftest.err
29982       } && test -s conftest$ac_exeext &&
29983       $as_test_x conftest$ac_exeext; then
29984  eval "$as_ac_var=yes"
29985else
29986  echo "$as_me: failed program was:" >&5
29987sed 's/^/| /' conftest.$ac_ext >&5
29988
29989	eval "$as_ac_var=no"
29990fi
29991
29992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29993      conftest$ac_exeext conftest.$ac_ext
29994fi
29995ac_res=`eval echo '${'$as_ac_var'}'`
29996	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29997echo "${ECHO_T}$ac_res" >&6; }
29998if test `eval echo '${'$as_ac_var'}'` = yes; then
29999  cat >>confdefs.h <<_ACEOF
30000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30001_ACEOF
30002
30003fi
30004done
30005
30006
30007
30008
30009
30010
30011for ac_func in fstat strchr utime utimes chflags
30012do
30013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30014{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30016if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30017  echo $ECHO_N "(cached) $ECHO_C" >&6
30018else
30019  cat >conftest.$ac_ext <<_ACEOF
30020/* confdefs.h.  */
30021_ACEOF
30022cat confdefs.h >>conftest.$ac_ext
30023cat >>conftest.$ac_ext <<_ACEOF
30024/* end confdefs.h.  */
30025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30026   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30027#define $ac_func innocuous_$ac_func
30028
30029/* System header to define __stub macros and hopefully few prototypes,
30030    which can conflict with char $ac_func (); below.
30031    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30032    <limits.h> exists even on freestanding compilers.  */
30033
30034#ifdef __STDC__
30035# include <limits.h>
30036#else
30037# include <assert.h>
30038#endif
30039
30040#undef $ac_func
30041
30042/* Override any GCC internal prototype to avoid an error.
30043   Use char because int might match the return type of a GCC
30044   builtin and then its argument prototype would still apply.  */
30045#ifdef __cplusplus
30046extern "C"
30047#endif
30048char $ac_func ();
30049/* The GNU C library defines this for functions which it implements
30050    to always fail with ENOSYS.  Some functions are actually named
30051    something starting with __ and the normal name is an alias.  */
30052#if defined __stub_$ac_func || defined __stub___$ac_func
30053choke me
30054#endif
30055
30056int
30057main ()
30058{
30059return $ac_func ();
30060  ;
30061  return 0;
30062}
30063_ACEOF
30064rm -f conftest.$ac_objext conftest$ac_exeext
30065if { (ac_try="$ac_link"
30066case "(($ac_try" in
30067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068  *) ac_try_echo=$ac_try;;
30069esac
30070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071  (eval "$ac_link") 2>conftest.er1
30072  ac_status=$?
30073  grep -v '^ *+' conftest.er1 >conftest.err
30074  rm -f conftest.er1
30075  cat conftest.err >&5
30076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077  (exit $ac_status); } && {
30078	 test -z "$ac_c_werror_flag" ||
30079	 test ! -s conftest.err
30080       } && test -s conftest$ac_exeext &&
30081       $as_test_x conftest$ac_exeext; then
30082  eval "$as_ac_var=yes"
30083else
30084  echo "$as_me: failed program was:" >&5
30085sed 's/^/| /' conftest.$ac_ext >&5
30086
30087	eval "$as_ac_var=no"
30088fi
30089
30090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30091      conftest$ac_exeext conftest.$ac_ext
30092fi
30093ac_res=`eval echo '${'$as_ac_var'}'`
30094	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30095echo "${ECHO_T}$ac_res" >&6; }
30096if test `eval echo '${'$as_ac_var'}'` = yes; then
30097  cat >>confdefs.h <<_ACEOF
30098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30099_ACEOF
30100
30101fi
30102done
30103
30104
30105
30106
30107
30108
30109
30110for ac_func in getrlimit fsync memset strlcpy strlcat setpgid
30111do
30112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30113{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30115if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30116  echo $ECHO_N "(cached) $ECHO_C" >&6
30117else
30118  cat >conftest.$ac_ext <<_ACEOF
30119/* confdefs.h.  */
30120_ACEOF
30121cat confdefs.h >>conftest.$ac_ext
30122cat >>conftest.$ac_ext <<_ACEOF
30123/* end confdefs.h.  */
30124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30125   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30126#define $ac_func innocuous_$ac_func
30127
30128/* System header to define __stub macros and hopefully few prototypes,
30129    which can conflict with char $ac_func (); below.
30130    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30131    <limits.h> exists even on freestanding compilers.  */
30132
30133#ifdef __STDC__
30134# include <limits.h>
30135#else
30136# include <assert.h>
30137#endif
30138
30139#undef $ac_func
30140
30141/* Override any GCC internal prototype to avoid an error.
30142   Use char because int might match the return type of a GCC
30143   builtin and then its argument prototype would still apply.  */
30144#ifdef __cplusplus
30145extern "C"
30146#endif
30147char $ac_func ();
30148/* The GNU C library defines this for functions which it implements
30149    to always fail with ENOSYS.  Some functions are actually named
30150    something starting with __ and the normal name is an alias.  */
30151#if defined __stub_$ac_func || defined __stub___$ac_func
30152choke me
30153#endif
30154
30155int
30156main ()
30157{
30158return $ac_func ();
30159  ;
30160  return 0;
30161}
30162_ACEOF
30163rm -f conftest.$ac_objext conftest$ac_exeext
30164if { (ac_try="$ac_link"
30165case "(($ac_try" in
30166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167  *) ac_try_echo=$ac_try;;
30168esac
30169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170  (eval "$ac_link") 2>conftest.er1
30171  ac_status=$?
30172  grep -v '^ *+' conftest.er1 >conftest.err
30173  rm -f conftest.er1
30174  cat conftest.err >&5
30175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176  (exit $ac_status); } && {
30177	 test -z "$ac_c_werror_flag" ||
30178	 test ! -s conftest.err
30179       } && test -s conftest$ac_exeext &&
30180       $as_test_x conftest$ac_exeext; then
30181  eval "$as_ac_var=yes"
30182else
30183  echo "$as_me: failed program was:" >&5
30184sed 's/^/| /' conftest.$ac_ext >&5
30185
30186	eval "$as_ac_var=no"
30187fi
30188
30189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30190      conftest$ac_exeext conftest.$ac_ext
30191fi
30192ac_res=`eval echo '${'$as_ac_var'}'`
30193	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30194echo "${ECHO_T}$ac_res" >&6; }
30195if test `eval echo '${'$as_ac_var'}'` = yes; then
30196  cat >>confdefs.h <<_ACEOF
30197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30198_ACEOF
30199
30200fi
30201done
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
30215do
30216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30217{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30219if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30220  echo $ECHO_N "(cached) $ECHO_C" >&6
30221else
30222  cat >conftest.$ac_ext <<_ACEOF
30223/* confdefs.h.  */
30224_ACEOF
30225cat confdefs.h >>conftest.$ac_ext
30226cat >>conftest.$ac_ext <<_ACEOF
30227/* end confdefs.h.  */
30228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30229   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30230#define $ac_func innocuous_$ac_func
30231
30232/* System header to define __stub macros and hopefully few prototypes,
30233    which can conflict with char $ac_func (); below.
30234    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30235    <limits.h> exists even on freestanding compilers.  */
30236
30237#ifdef __STDC__
30238# include <limits.h>
30239#else
30240# include <assert.h>
30241#endif
30242
30243#undef $ac_func
30244
30245/* Override any GCC internal prototype to avoid an error.
30246   Use char because int might match the return type of a GCC
30247   builtin and then its argument prototype would still apply.  */
30248#ifdef __cplusplus
30249extern "C"
30250#endif
30251char $ac_func ();
30252/* The GNU C library defines this for functions which it implements
30253    to always fail with ENOSYS.  Some functions are actually named
30254    something starting with __ and the normal name is an alias.  */
30255#if defined __stub_$ac_func || defined __stub___$ac_func
30256choke me
30257#endif
30258
30259int
30260main ()
30261{
30262return $ac_func ();
30263  ;
30264  return 0;
30265}
30266_ACEOF
30267rm -f conftest.$ac_objext conftest$ac_exeext
30268if { (ac_try="$ac_link"
30269case "(($ac_try" in
30270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271  *) ac_try_echo=$ac_try;;
30272esac
30273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274  (eval "$ac_link") 2>conftest.er1
30275  ac_status=$?
30276  grep -v '^ *+' conftest.er1 >conftest.err
30277  rm -f conftest.er1
30278  cat conftest.err >&5
30279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280  (exit $ac_status); } && {
30281	 test -z "$ac_c_werror_flag" ||
30282	 test ! -s conftest.err
30283       } && test -s conftest$ac_exeext &&
30284       $as_test_x conftest$ac_exeext; then
30285  eval "$as_ac_var=yes"
30286else
30287  echo "$as_me: failed program was:" >&5
30288sed 's/^/| /' conftest.$ac_ext >&5
30289
30290	eval "$as_ac_var=no"
30291fi
30292
30293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30294      conftest$ac_exeext conftest.$ac_ext
30295fi
30296ac_res=`eval echo '${'$as_ac_var'}'`
30297	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30298echo "${ECHO_T}$ac_res" >&6; }
30299if test `eval echo '${'$as_ac_var'}'` = yes; then
30300  cat >>confdefs.h <<_ACEOF
30301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30302_ACEOF
30303
30304fi
30305done
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
30317do
30318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30319{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30322  echo $ECHO_N "(cached) $ECHO_C" >&6
30323else
30324  cat >conftest.$ac_ext <<_ACEOF
30325/* confdefs.h.  */
30326_ACEOF
30327cat confdefs.h >>conftest.$ac_ext
30328cat >>conftest.$ac_ext <<_ACEOF
30329/* end confdefs.h.  */
30330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30331   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30332#define $ac_func innocuous_$ac_func
30333
30334/* System header to define __stub macros and hopefully few prototypes,
30335    which can conflict with char $ac_func (); below.
30336    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30337    <limits.h> exists even on freestanding compilers.  */
30338
30339#ifdef __STDC__
30340# include <limits.h>
30341#else
30342# include <assert.h>
30343#endif
30344
30345#undef $ac_func
30346
30347/* Override any GCC internal prototype to avoid an error.
30348   Use char because int might match the return type of a GCC
30349   builtin and then its argument prototype would still apply.  */
30350#ifdef __cplusplus
30351extern "C"
30352#endif
30353char $ac_func ();
30354/* The GNU C library defines this for functions which it implements
30355    to always fail with ENOSYS.  Some functions are actually named
30356    something starting with __ and the normal name is an alias.  */
30357#if defined __stub_$ac_func || defined __stub___$ac_func
30358choke me
30359#endif
30360
30361int
30362main ()
30363{
30364return $ac_func ();
30365  ;
30366  return 0;
30367}
30368_ACEOF
30369rm -f conftest.$ac_objext conftest$ac_exeext
30370if { (ac_try="$ac_link"
30371case "(($ac_try" in
30372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373  *) ac_try_echo=$ac_try;;
30374esac
30375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376  (eval "$ac_link") 2>conftest.er1
30377  ac_status=$?
30378  grep -v '^ *+' conftest.er1 >conftest.err
30379  rm -f conftest.er1
30380  cat conftest.err >&5
30381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382  (exit $ac_status); } && {
30383	 test -z "$ac_c_werror_flag" ||
30384	 test ! -s conftest.err
30385       } && test -s conftest$ac_exeext &&
30386       $as_test_x conftest$ac_exeext; then
30387  eval "$as_ac_var=yes"
30388else
30389  echo "$as_me: failed program was:" >&5
30390sed 's/^/| /' conftest.$ac_ext >&5
30391
30392	eval "$as_ac_var=no"
30393fi
30394
30395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30396      conftest$ac_exeext conftest.$ac_ext
30397fi
30398ac_res=`eval echo '${'$as_ac_var'}'`
30399	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30400echo "${ECHO_T}$ac_res" >&6; }
30401if test `eval echo '${'$as_ac_var'}'` = yes; then
30402  cat >>confdefs.h <<_ACEOF
30403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30404_ACEOF
30405
30406fi
30407done
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
30418do
30419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30420{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30423  echo $ECHO_N "(cached) $ECHO_C" >&6
30424else
30425  cat >conftest.$ac_ext <<_ACEOF
30426/* confdefs.h.  */
30427_ACEOF
30428cat confdefs.h >>conftest.$ac_ext
30429cat >>conftest.$ac_ext <<_ACEOF
30430/* end confdefs.h.  */
30431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30433#define $ac_func innocuous_$ac_func
30434
30435/* System header to define __stub macros and hopefully few prototypes,
30436    which can conflict with char $ac_func (); below.
30437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30438    <limits.h> exists even on freestanding compilers.  */
30439
30440#ifdef __STDC__
30441# include <limits.h>
30442#else
30443# include <assert.h>
30444#endif
30445
30446#undef $ac_func
30447
30448/* Override any GCC internal prototype to avoid an error.
30449   Use char because int might match the return type of a GCC
30450   builtin and then its argument prototype would still apply.  */
30451#ifdef __cplusplus
30452extern "C"
30453#endif
30454char $ac_func ();
30455/* The GNU C library defines this for functions which it implements
30456    to always fail with ENOSYS.  Some functions are actually named
30457    something starting with __ and the normal name is an alias.  */
30458#if defined __stub_$ac_func || defined __stub___$ac_func
30459choke me
30460#endif
30461
30462int
30463main ()
30464{
30465return $ac_func ();
30466  ;
30467  return 0;
30468}
30469_ACEOF
30470rm -f conftest.$ac_objext conftest$ac_exeext
30471if { (ac_try="$ac_link"
30472case "(($ac_try" in
30473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474  *) ac_try_echo=$ac_try;;
30475esac
30476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477  (eval "$ac_link") 2>conftest.er1
30478  ac_status=$?
30479  grep -v '^ *+' conftest.er1 >conftest.err
30480  rm -f conftest.er1
30481  cat conftest.err >&5
30482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483  (exit $ac_status); } && {
30484	 test -z "$ac_c_werror_flag" ||
30485	 test ! -s conftest.err
30486       } && test -s conftest$ac_exeext &&
30487       $as_test_x conftest$ac_exeext; then
30488  eval "$as_ac_var=yes"
30489else
30490  echo "$as_me: failed program was:" >&5
30491sed 's/^/| /' conftest.$ac_ext >&5
30492
30493	eval "$as_ac_var=no"
30494fi
30495
30496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30497      conftest$ac_exeext conftest.$ac_ext
30498fi
30499ac_res=`eval echo '${'$as_ac_var'}'`
30500	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30501echo "${ECHO_T}$ac_res" >&6; }
30502if test `eval echo '${'$as_ac_var'}'` = yes; then
30503  cat >>confdefs.h <<_ACEOF
30504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30505_ACEOF
30506
30507fi
30508done
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate chsize stat64 fstat64
30522do
30523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30524{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30526if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30527  echo $ECHO_N "(cached) $ECHO_C" >&6
30528else
30529  cat >conftest.$ac_ext <<_ACEOF
30530/* confdefs.h.  */
30531_ACEOF
30532cat confdefs.h >>conftest.$ac_ext
30533cat >>conftest.$ac_ext <<_ACEOF
30534/* end confdefs.h.  */
30535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30536   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30537#define $ac_func innocuous_$ac_func
30538
30539/* System header to define __stub macros and hopefully few prototypes,
30540    which can conflict with char $ac_func (); below.
30541    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30542    <limits.h> exists even on freestanding compilers.  */
30543
30544#ifdef __STDC__
30545# include <limits.h>
30546#else
30547# include <assert.h>
30548#endif
30549
30550#undef $ac_func
30551
30552/* Override any GCC internal prototype to avoid an error.
30553   Use char because int might match the return type of a GCC
30554   builtin and then its argument prototype would still apply.  */
30555#ifdef __cplusplus
30556extern "C"
30557#endif
30558char $ac_func ();
30559/* The GNU C library defines this for functions which it implements
30560    to always fail with ENOSYS.  Some functions are actually named
30561    something starting with __ and the normal name is an alias.  */
30562#if defined __stub_$ac_func || defined __stub___$ac_func
30563choke me
30564#endif
30565
30566int
30567main ()
30568{
30569return $ac_func ();
30570  ;
30571  return 0;
30572}
30573_ACEOF
30574rm -f conftest.$ac_objext conftest$ac_exeext
30575if { (ac_try="$ac_link"
30576case "(($ac_try" in
30577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578  *) ac_try_echo=$ac_try;;
30579esac
30580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581  (eval "$ac_link") 2>conftest.er1
30582  ac_status=$?
30583  grep -v '^ *+' conftest.er1 >conftest.err
30584  rm -f conftest.er1
30585  cat conftest.err >&5
30586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587  (exit $ac_status); } && {
30588	 test -z "$ac_c_werror_flag" ||
30589	 test ! -s conftest.err
30590       } && test -s conftest$ac_exeext &&
30591       $as_test_x conftest$ac_exeext; then
30592  eval "$as_ac_var=yes"
30593else
30594  echo "$as_me: failed program was:" >&5
30595sed 's/^/| /' conftest.$ac_ext >&5
30596
30597	eval "$as_ac_var=no"
30598fi
30599
30600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30601      conftest$ac_exeext conftest.$ac_ext
30602fi
30603ac_res=`eval echo '${'$as_ac_var'}'`
30604	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30605echo "${ECHO_T}$ac_res" >&6; }
30606if test `eval echo '${'$as_ac_var'}'` = yes; then
30607  cat >>confdefs.h <<_ACEOF
30608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30609_ACEOF
30610
30611fi
30612done
30613
30614
30615
30616
30617
30618
30619
30620
30621for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64
30622do
30623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30624{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30626if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30627  echo $ECHO_N "(cached) $ECHO_C" >&6
30628else
30629  cat >conftest.$ac_ext <<_ACEOF
30630/* confdefs.h.  */
30631_ACEOF
30632cat confdefs.h >>conftest.$ac_ext
30633cat >>conftest.$ac_ext <<_ACEOF
30634/* end confdefs.h.  */
30635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30636   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30637#define $ac_func innocuous_$ac_func
30638
30639/* System header to define __stub macros and hopefully few prototypes,
30640    which can conflict with char $ac_func (); below.
30641    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30642    <limits.h> exists even on freestanding compilers.  */
30643
30644#ifdef __STDC__
30645# include <limits.h>
30646#else
30647# include <assert.h>
30648#endif
30649
30650#undef $ac_func
30651
30652/* Override any GCC internal prototype to avoid an error.
30653   Use char because int might match the return type of a GCC
30654   builtin and then its argument prototype would still apply.  */
30655#ifdef __cplusplus
30656extern "C"
30657#endif
30658char $ac_func ();
30659/* The GNU C library defines this for functions which it implements
30660    to always fail with ENOSYS.  Some functions are actually named
30661    something starting with __ and the normal name is an alias.  */
30662#if defined __stub_$ac_func || defined __stub___$ac_func
30663choke me
30664#endif
30665
30666int
30667main ()
30668{
30669return $ac_func ();
30670  ;
30671  return 0;
30672}
30673_ACEOF
30674rm -f conftest.$ac_objext conftest$ac_exeext
30675if { (ac_try="$ac_link"
30676case "(($ac_try" in
30677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678  *) ac_try_echo=$ac_try;;
30679esac
30680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681  (eval "$ac_link") 2>conftest.er1
30682  ac_status=$?
30683  grep -v '^ *+' conftest.er1 >conftest.err
30684  rm -f conftest.er1
30685  cat conftest.err >&5
30686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687  (exit $ac_status); } && {
30688	 test -z "$ac_c_werror_flag" ||
30689	 test ! -s conftest.err
30690       } && test -s conftest$ac_exeext &&
30691       $as_test_x conftest$ac_exeext; then
30692  eval "$as_ac_var=yes"
30693else
30694  echo "$as_me: failed program was:" >&5
30695sed 's/^/| /' conftest.$ac_ext >&5
30696
30697	eval "$as_ac_var=no"
30698fi
30699
30700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30701      conftest$ac_exeext conftest.$ac_ext
30702fi
30703ac_res=`eval echo '${'$as_ac_var'}'`
30704	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30705echo "${ECHO_T}$ac_res" >&6; }
30706if test `eval echo '${'$as_ac_var'}'` = yes; then
30707  cat >>confdefs.h <<_ACEOF
30708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30709_ACEOF
30710
30711fi
30712done
30713
30714
30715
30716
30717
30718
30719
30720
30721for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
30722do
30723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30727  echo $ECHO_N "(cached) $ECHO_C" >&6
30728else
30729  cat >conftest.$ac_ext <<_ACEOF
30730/* confdefs.h.  */
30731_ACEOF
30732cat confdefs.h >>conftest.$ac_ext
30733cat >>conftest.$ac_ext <<_ACEOF
30734/* end confdefs.h.  */
30735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30737#define $ac_func innocuous_$ac_func
30738
30739/* System header to define __stub macros and hopefully few prototypes,
30740    which can conflict with char $ac_func (); below.
30741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30742    <limits.h> exists even on freestanding compilers.  */
30743
30744#ifdef __STDC__
30745# include <limits.h>
30746#else
30747# include <assert.h>
30748#endif
30749
30750#undef $ac_func
30751
30752/* Override any GCC internal prototype to avoid an error.
30753   Use char because int might match the return type of a GCC
30754   builtin and then its argument prototype would still apply.  */
30755#ifdef __cplusplus
30756extern "C"
30757#endif
30758char $ac_func ();
30759/* The GNU C library defines this for functions which it implements
30760    to always fail with ENOSYS.  Some functions are actually named
30761    something starting with __ and the normal name is an alias.  */
30762#if defined __stub_$ac_func || defined __stub___$ac_func
30763choke me
30764#endif
30765
30766int
30767main ()
30768{
30769return $ac_func ();
30770  ;
30771  return 0;
30772}
30773_ACEOF
30774rm -f conftest.$ac_objext conftest$ac_exeext
30775if { (ac_try="$ac_link"
30776case "(($ac_try" in
30777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778  *) ac_try_echo=$ac_try;;
30779esac
30780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781  (eval "$ac_link") 2>conftest.er1
30782  ac_status=$?
30783  grep -v '^ *+' conftest.er1 >conftest.err
30784  rm -f conftest.er1
30785  cat conftest.err >&5
30786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787  (exit $ac_status); } && {
30788	 test -z "$ac_c_werror_flag" ||
30789	 test ! -s conftest.err
30790       } && test -s conftest$ac_exeext &&
30791       $as_test_x conftest$ac_exeext; then
30792  eval "$as_ac_var=yes"
30793else
30794  echo "$as_me: failed program was:" >&5
30795sed 's/^/| /' conftest.$ac_ext >&5
30796
30797	eval "$as_ac_var=no"
30798fi
30799
30800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30801      conftest$ac_exeext conftest.$ac_ext
30802fi
30803ac_res=`eval echo '${'$as_ac_var'}'`
30804	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30805echo "${ECHO_T}$ac_res" >&6; }
30806if test `eval echo '${'$as_ac_var'}'` = yes; then
30807  cat >>confdefs.h <<_ACEOF
30808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30809_ACEOF
30810
30811fi
30812done
30813
30814
30815
30816
30817
30818
30819
30820for ac_func in opendir64 readdir64 seekdir64 telldir64 rewinddir64 closedir64
30821do
30822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30826  echo $ECHO_N "(cached) $ECHO_C" >&6
30827else
30828  cat >conftest.$ac_ext <<_ACEOF
30829/* confdefs.h.  */
30830_ACEOF
30831cat confdefs.h >>conftest.$ac_ext
30832cat >>conftest.$ac_ext <<_ACEOF
30833/* end confdefs.h.  */
30834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30836#define $ac_func innocuous_$ac_func
30837
30838/* System header to define __stub macros and hopefully few prototypes,
30839    which can conflict with char $ac_func (); below.
30840    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841    <limits.h> exists even on freestanding compilers.  */
30842
30843#ifdef __STDC__
30844# include <limits.h>
30845#else
30846# include <assert.h>
30847#endif
30848
30849#undef $ac_func
30850
30851/* Override any GCC internal prototype to avoid an error.
30852   Use char because int might match the return type of a GCC
30853   builtin and then its argument prototype would still apply.  */
30854#ifdef __cplusplus
30855extern "C"
30856#endif
30857char $ac_func ();
30858/* The GNU C library defines this for functions which it implements
30859    to always fail with ENOSYS.  Some functions are actually named
30860    something starting with __ and the normal name is an alias.  */
30861#if defined __stub_$ac_func || defined __stub___$ac_func
30862choke me
30863#endif
30864
30865int
30866main ()
30867{
30868return $ac_func ();
30869  ;
30870  return 0;
30871}
30872_ACEOF
30873rm -f conftest.$ac_objext conftest$ac_exeext
30874if { (ac_try="$ac_link"
30875case "(($ac_try" in
30876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877  *) ac_try_echo=$ac_try;;
30878esac
30879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880  (eval "$ac_link") 2>conftest.er1
30881  ac_status=$?
30882  grep -v '^ *+' conftest.er1 >conftest.err
30883  rm -f conftest.er1
30884  cat conftest.err >&5
30885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886  (exit $ac_status); } && {
30887	 test -z "$ac_c_werror_flag" ||
30888	 test ! -s conftest.err
30889       } && test -s conftest$ac_exeext &&
30890       $as_test_x conftest$ac_exeext; then
30891  eval "$as_ac_var=yes"
30892else
30893  echo "$as_me: failed program was:" >&5
30894sed 's/^/| /' conftest.$ac_ext >&5
30895
30896	eval "$as_ac_var=no"
30897fi
30898
30899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30900      conftest$ac_exeext conftest.$ac_ext
30901fi
30902ac_res=`eval echo '${'$as_ac_var'}'`
30903	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30904echo "${ECHO_T}$ac_res" >&6; }
30905if test `eval echo '${'$as_ac_var'}'` = yes; then
30906  cat >>confdefs.h <<_ACEOF
30907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30908_ACEOF
30909
30910fi
30911done
30912
30913
30914for ac_func in getpwent_r
30915do
30916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30920  echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
30922  cat >conftest.$ac_ext <<_ACEOF
30923/* confdefs.h.  */
30924_ACEOF
30925cat confdefs.h >>conftest.$ac_ext
30926cat >>conftest.$ac_ext <<_ACEOF
30927/* end confdefs.h.  */
30928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30929   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30930#define $ac_func innocuous_$ac_func
30931
30932/* System header to define __stub macros and hopefully few prototypes,
30933    which can conflict with char $ac_func (); below.
30934    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935    <limits.h> exists even on freestanding compilers.  */
30936
30937#ifdef __STDC__
30938# include <limits.h>
30939#else
30940# include <assert.h>
30941#endif
30942
30943#undef $ac_func
30944
30945/* Override any GCC internal prototype to avoid an error.
30946   Use char because int might match the return type of a GCC
30947   builtin and then its argument prototype would still apply.  */
30948#ifdef __cplusplus
30949extern "C"
30950#endif
30951char $ac_func ();
30952/* The GNU C library defines this for functions which it implements
30953    to always fail with ENOSYS.  Some functions are actually named
30954    something starting with __ and the normal name is an alias.  */
30955#if defined __stub_$ac_func || defined __stub___$ac_func
30956choke me
30957#endif
30958
30959int
30960main ()
30961{
30962return $ac_func ();
30963  ;
30964  return 0;
30965}
30966_ACEOF
30967rm -f conftest.$ac_objext conftest$ac_exeext
30968if { (ac_try="$ac_link"
30969case "(($ac_try" in
30970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971  *) ac_try_echo=$ac_try;;
30972esac
30973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974  (eval "$ac_link") 2>conftest.er1
30975  ac_status=$?
30976  grep -v '^ *+' conftest.er1 >conftest.err
30977  rm -f conftest.er1
30978  cat conftest.err >&5
30979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980  (exit $ac_status); } && {
30981	 test -z "$ac_c_werror_flag" ||
30982	 test ! -s conftest.err
30983       } && test -s conftest$ac_exeext &&
30984       $as_test_x conftest$ac_exeext; then
30985  eval "$as_ac_var=yes"
30986else
30987  echo "$as_me: failed program was:" >&5
30988sed 's/^/| /' conftest.$ac_ext >&5
30989
30990	eval "$as_ac_var=no"
30991fi
30992
30993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30994      conftest$ac_exeext conftest.$ac_ext
30995fi
30996ac_res=`eval echo '${'$as_ac_var'}'`
30997	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30998echo "${ECHO_T}$ac_res" >&6; }
30999if test `eval echo '${'$as_ac_var'}'` = yes; then
31000  cat >>confdefs.h <<_ACEOF
31001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31002_ACEOF
31003
31004fi
31005done
31006
31007
31008
31009for ac_func in getdents getdents64
31010do
31011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31012{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31014if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31015  echo $ECHO_N "(cached) $ECHO_C" >&6
31016else
31017  cat >conftest.$ac_ext <<_ACEOF
31018/* confdefs.h.  */
31019_ACEOF
31020cat confdefs.h >>conftest.$ac_ext
31021cat >>conftest.$ac_ext <<_ACEOF
31022/* end confdefs.h.  */
31023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31024   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31025#define $ac_func innocuous_$ac_func
31026
31027/* System header to define __stub macros and hopefully few prototypes,
31028    which can conflict with char $ac_func (); below.
31029    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31030    <limits.h> exists even on freestanding compilers.  */
31031
31032#ifdef __STDC__
31033# include <limits.h>
31034#else
31035# include <assert.h>
31036#endif
31037
31038#undef $ac_func
31039
31040/* Override any GCC internal prototype to avoid an error.
31041   Use char because int might match the return type of a GCC
31042   builtin and then its argument prototype would still apply.  */
31043#ifdef __cplusplus
31044extern "C"
31045#endif
31046char $ac_func ();
31047/* The GNU C library defines this for functions which it implements
31048    to always fail with ENOSYS.  Some functions are actually named
31049    something starting with __ and the normal name is an alias.  */
31050#if defined __stub_$ac_func || defined __stub___$ac_func
31051choke me
31052#endif
31053
31054int
31055main ()
31056{
31057return $ac_func ();
31058  ;
31059  return 0;
31060}
31061_ACEOF
31062rm -f conftest.$ac_objext conftest$ac_exeext
31063if { (ac_try="$ac_link"
31064case "(($ac_try" in
31065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31066  *) ac_try_echo=$ac_try;;
31067esac
31068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31069  (eval "$ac_link") 2>conftest.er1
31070  ac_status=$?
31071  grep -v '^ *+' conftest.er1 >conftest.err
31072  rm -f conftest.er1
31073  cat conftest.err >&5
31074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31075  (exit $ac_status); } && {
31076	 test -z "$ac_c_werror_flag" ||
31077	 test ! -s conftest.err
31078       } && test -s conftest$ac_exeext &&
31079       $as_test_x conftest$ac_exeext; then
31080  eval "$as_ac_var=yes"
31081else
31082  echo "$as_me: failed program was:" >&5
31083sed 's/^/| /' conftest.$ac_ext >&5
31084
31085	eval "$as_ac_var=no"
31086fi
31087
31088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31089      conftest$ac_exeext conftest.$ac_ext
31090fi
31091ac_res=`eval echo '${'$as_ac_var'}'`
31092	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31093echo "${ECHO_T}$ac_res" >&6; }
31094if test `eval echo '${'$as_ac_var'}'` = yes; then
31095  cat >>confdefs.h <<_ACEOF
31096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31097_ACEOF
31098
31099fi
31100done
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
31114do
31115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31116{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31119  echo $ECHO_N "(cached) $ECHO_C" >&6
31120else
31121  cat >conftest.$ac_ext <<_ACEOF
31122/* confdefs.h.  */
31123_ACEOF
31124cat confdefs.h >>conftest.$ac_ext
31125cat >>conftest.$ac_ext <<_ACEOF
31126/* end confdefs.h.  */
31127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31128   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31129#define $ac_func innocuous_$ac_func
31130
31131/* System header to define __stub macros and hopefully few prototypes,
31132    which can conflict with char $ac_func (); below.
31133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31134    <limits.h> exists even on freestanding compilers.  */
31135
31136#ifdef __STDC__
31137# include <limits.h>
31138#else
31139# include <assert.h>
31140#endif
31141
31142#undef $ac_func
31143
31144/* Override any GCC internal prototype to avoid an error.
31145   Use char because int might match the return type of a GCC
31146   builtin and then its argument prototype would still apply.  */
31147#ifdef __cplusplus
31148extern "C"
31149#endif
31150char $ac_func ();
31151/* The GNU C library defines this for functions which it implements
31152    to always fail with ENOSYS.  Some functions are actually named
31153    something starting with __ and the normal name is an alias.  */
31154#if defined __stub_$ac_func || defined __stub___$ac_func
31155choke me
31156#endif
31157
31158int
31159main ()
31160{
31161return $ac_func ();
31162  ;
31163  return 0;
31164}
31165_ACEOF
31166rm -f conftest.$ac_objext conftest$ac_exeext
31167if { (ac_try="$ac_link"
31168case "(($ac_try" in
31169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170  *) ac_try_echo=$ac_try;;
31171esac
31172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173  (eval "$ac_link") 2>conftest.er1
31174  ac_status=$?
31175  grep -v '^ *+' conftest.er1 >conftest.err
31176  rm -f conftest.er1
31177  cat conftest.err >&5
31178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179  (exit $ac_status); } && {
31180	 test -z "$ac_c_werror_flag" ||
31181	 test ! -s conftest.err
31182       } && test -s conftest$ac_exeext &&
31183       $as_test_x conftest$ac_exeext; then
31184  eval "$as_ac_var=yes"
31185else
31186  echo "$as_me: failed program was:" >&5
31187sed 's/^/| /' conftest.$ac_ext >&5
31188
31189	eval "$as_ac_var=no"
31190fi
31191
31192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31193      conftest$ac_exeext conftest.$ac_ext
31194fi
31195ac_res=`eval echo '${'$as_ac_var'}'`
31196	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31197echo "${ECHO_T}$ac_res" >&6; }
31198if test `eval echo '${'$as_ac_var'}'` = yes; then
31199  cat >>confdefs.h <<_ACEOF
31200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31201_ACEOF
31202
31203fi
31204done
31205
31206
31207
31208
31209for ac_func in syslog vsyslog timegm
31210do
31211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31212{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31214if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31215  echo $ECHO_N "(cached) $ECHO_C" >&6
31216else
31217  cat >conftest.$ac_ext <<_ACEOF
31218/* confdefs.h.  */
31219_ACEOF
31220cat confdefs.h >>conftest.$ac_ext
31221cat >>conftest.$ac_ext <<_ACEOF
31222/* end confdefs.h.  */
31223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31224   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31225#define $ac_func innocuous_$ac_func
31226
31227/* System header to define __stub macros and hopefully few prototypes,
31228    which can conflict with char $ac_func (); below.
31229    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31230    <limits.h> exists even on freestanding compilers.  */
31231
31232#ifdef __STDC__
31233# include <limits.h>
31234#else
31235# include <assert.h>
31236#endif
31237
31238#undef $ac_func
31239
31240/* Override any GCC internal prototype to avoid an error.
31241   Use char because int might match the return type of a GCC
31242   builtin and then its argument prototype would still apply.  */
31243#ifdef __cplusplus
31244extern "C"
31245#endif
31246char $ac_func ();
31247/* The GNU C library defines this for functions which it implements
31248    to always fail with ENOSYS.  Some functions are actually named
31249    something starting with __ and the normal name is an alias.  */
31250#if defined __stub_$ac_func || defined __stub___$ac_func
31251choke me
31252#endif
31253
31254int
31255main ()
31256{
31257return $ac_func ();
31258  ;
31259  return 0;
31260}
31261_ACEOF
31262rm -f conftest.$ac_objext conftest$ac_exeext
31263if { (ac_try="$ac_link"
31264case "(($ac_try" in
31265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266  *) ac_try_echo=$ac_try;;
31267esac
31268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269  (eval "$ac_link") 2>conftest.er1
31270  ac_status=$?
31271  grep -v '^ *+' conftest.er1 >conftest.err
31272  rm -f conftest.er1
31273  cat conftest.err >&5
31274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275  (exit $ac_status); } && {
31276	 test -z "$ac_c_werror_flag" ||
31277	 test ! -s conftest.err
31278       } && test -s conftest$ac_exeext &&
31279       $as_test_x conftest$ac_exeext; then
31280  eval "$as_ac_var=yes"
31281else
31282  echo "$as_me: failed program was:" >&5
31283sed 's/^/| /' conftest.$ac_ext >&5
31284
31285	eval "$as_ac_var=no"
31286fi
31287
31288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31289      conftest$ac_exeext conftest.$ac_ext
31290fi
31291ac_res=`eval echo '${'$as_ac_var'}'`
31292	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31293echo "${ECHO_T}$ac_res" >&6; }
31294if test `eval echo '${'$as_ac_var'}'` = yes; then
31295  cat >>confdefs.h <<_ACEOF
31296#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31297_ACEOF
31298
31299fi
31300done
31301
31302
31303
31304for ac_func in setlocale nl_langinfo
31305do
31306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31307{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31309if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31310  echo $ECHO_N "(cached) $ECHO_C" >&6
31311else
31312  cat >conftest.$ac_ext <<_ACEOF
31313/* confdefs.h.  */
31314_ACEOF
31315cat confdefs.h >>conftest.$ac_ext
31316cat >>conftest.$ac_ext <<_ACEOF
31317/* end confdefs.h.  */
31318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31319   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31320#define $ac_func innocuous_$ac_func
31321
31322/* System header to define __stub macros and hopefully few prototypes,
31323    which can conflict with char $ac_func (); below.
31324    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31325    <limits.h> exists even on freestanding compilers.  */
31326
31327#ifdef __STDC__
31328# include <limits.h>
31329#else
31330# include <assert.h>
31331#endif
31332
31333#undef $ac_func
31334
31335/* Override any GCC internal prototype to avoid an error.
31336   Use char because int might match the return type of a GCC
31337   builtin and then its argument prototype would still apply.  */
31338#ifdef __cplusplus
31339extern "C"
31340#endif
31341char $ac_func ();
31342/* The GNU C library defines this for functions which it implements
31343    to always fail with ENOSYS.  Some functions are actually named
31344    something starting with __ and the normal name is an alias.  */
31345#if defined __stub_$ac_func || defined __stub___$ac_func
31346choke me
31347#endif
31348
31349int
31350main ()
31351{
31352return $ac_func ();
31353  ;
31354  return 0;
31355}
31356_ACEOF
31357rm -f conftest.$ac_objext conftest$ac_exeext
31358if { (ac_try="$ac_link"
31359case "(($ac_try" in
31360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361  *) ac_try_echo=$ac_try;;
31362esac
31363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364  (eval "$ac_link") 2>conftest.er1
31365  ac_status=$?
31366  grep -v '^ *+' conftest.er1 >conftest.err
31367  rm -f conftest.er1
31368  cat conftest.err >&5
31369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370  (exit $ac_status); } && {
31371	 test -z "$ac_c_werror_flag" ||
31372	 test ! -s conftest.err
31373       } && test -s conftest$ac_exeext &&
31374       $as_test_x conftest$ac_exeext; then
31375  eval "$as_ac_var=yes"
31376else
31377  echo "$as_me: failed program was:" >&5
31378sed 's/^/| /' conftest.$ac_ext >&5
31379
31380	eval "$as_ac_var=no"
31381fi
31382
31383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31384      conftest$ac_exeext conftest.$ac_ext
31385fi
31386ac_res=`eval echo '${'$as_ac_var'}'`
31387	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31388echo "${ECHO_T}$ac_res" >&6; }
31389if test `eval echo '${'$as_ac_var'}'` = yes; then
31390  cat >>confdefs.h <<_ACEOF
31391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31392_ACEOF
31393
31394fi
31395done
31396
31397
31398for ac_func in nanosleep
31399do
31400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31401{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31403if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31404  echo $ECHO_N "(cached) $ECHO_C" >&6
31405else
31406  cat >conftest.$ac_ext <<_ACEOF
31407/* confdefs.h.  */
31408_ACEOF
31409cat confdefs.h >>conftest.$ac_ext
31410cat >>conftest.$ac_ext <<_ACEOF
31411/* end confdefs.h.  */
31412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31413   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31414#define $ac_func innocuous_$ac_func
31415
31416/* System header to define __stub macros and hopefully few prototypes,
31417    which can conflict with char $ac_func (); below.
31418    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31419    <limits.h> exists even on freestanding compilers.  */
31420
31421#ifdef __STDC__
31422# include <limits.h>
31423#else
31424# include <assert.h>
31425#endif
31426
31427#undef $ac_func
31428
31429/* Override any GCC internal prototype to avoid an error.
31430   Use char because int might match the return type of a GCC
31431   builtin and then its argument prototype would still apply.  */
31432#ifdef __cplusplus
31433extern "C"
31434#endif
31435char $ac_func ();
31436/* The GNU C library defines this for functions which it implements
31437    to always fail with ENOSYS.  Some functions are actually named
31438    something starting with __ and the normal name is an alias.  */
31439#if defined __stub_$ac_func || defined __stub___$ac_func
31440choke me
31441#endif
31442
31443int
31444main ()
31445{
31446return $ac_func ();
31447  ;
31448  return 0;
31449}
31450_ACEOF
31451rm -f conftest.$ac_objext conftest$ac_exeext
31452if { (ac_try="$ac_link"
31453case "(($ac_try" in
31454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455  *) ac_try_echo=$ac_try;;
31456esac
31457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458  (eval "$ac_link") 2>conftest.er1
31459  ac_status=$?
31460  grep -v '^ *+' conftest.er1 >conftest.err
31461  rm -f conftest.er1
31462  cat conftest.err >&5
31463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464  (exit $ac_status); } && {
31465	 test -z "$ac_c_werror_flag" ||
31466	 test ! -s conftest.err
31467       } && test -s conftest$ac_exeext &&
31468       $as_test_x conftest$ac_exeext; then
31469  eval "$as_ac_var=yes"
31470else
31471  echo "$as_me: failed program was:" >&5
31472sed 's/^/| /' conftest.$ac_ext >&5
31473
31474	eval "$as_ac_var=no"
31475fi
31476
31477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31478      conftest$ac_exeext conftest.$ac_ext
31479fi
31480ac_res=`eval echo '${'$as_ac_var'}'`
31481	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31482echo "${ECHO_T}$ac_res" >&6; }
31483if test `eval echo '${'$as_ac_var'}'` = yes; then
31484  cat >>confdefs.h <<_ACEOF
31485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31486_ACEOF
31487
31488fi
31489done
31490
31491
31492
31493
31494
31495for ac_func in mlock munlock mlockall munlockall
31496do
31497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31498{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31501  echo $ECHO_N "(cached) $ECHO_C" >&6
31502else
31503  cat >conftest.$ac_ext <<_ACEOF
31504/* confdefs.h.  */
31505_ACEOF
31506cat confdefs.h >>conftest.$ac_ext
31507cat >>conftest.$ac_ext <<_ACEOF
31508/* end confdefs.h.  */
31509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31510   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31511#define $ac_func innocuous_$ac_func
31512
31513/* System header to define __stub macros and hopefully few prototypes,
31514    which can conflict with char $ac_func (); below.
31515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31516    <limits.h> exists even on freestanding compilers.  */
31517
31518#ifdef __STDC__
31519# include <limits.h>
31520#else
31521# include <assert.h>
31522#endif
31523
31524#undef $ac_func
31525
31526/* Override any GCC internal prototype to avoid an error.
31527   Use char because int might match the return type of a GCC
31528   builtin and then its argument prototype would still apply.  */
31529#ifdef __cplusplus
31530extern "C"
31531#endif
31532char $ac_func ();
31533/* The GNU C library defines this for functions which it implements
31534    to always fail with ENOSYS.  Some functions are actually named
31535    something starting with __ and the normal name is an alias.  */
31536#if defined __stub_$ac_func || defined __stub___$ac_func
31537choke me
31538#endif
31539
31540int
31541main ()
31542{
31543return $ac_func ();
31544  ;
31545  return 0;
31546}
31547_ACEOF
31548rm -f conftest.$ac_objext conftest$ac_exeext
31549if { (ac_try="$ac_link"
31550case "(($ac_try" in
31551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552  *) ac_try_echo=$ac_try;;
31553esac
31554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555  (eval "$ac_link") 2>conftest.er1
31556  ac_status=$?
31557  grep -v '^ *+' conftest.er1 >conftest.err
31558  rm -f conftest.er1
31559  cat conftest.err >&5
31560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561  (exit $ac_status); } && {
31562	 test -z "$ac_c_werror_flag" ||
31563	 test ! -s conftest.err
31564       } && test -s conftest$ac_exeext &&
31565       $as_test_x conftest$ac_exeext; then
31566  eval "$as_ac_var=yes"
31567else
31568  echo "$as_me: failed program was:" >&5
31569sed 's/^/| /' conftest.$ac_ext >&5
31570
31571	eval "$as_ac_var=no"
31572fi
31573
31574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31575      conftest$ac_exeext conftest.$ac_ext
31576fi
31577ac_res=`eval echo '${'$as_ac_var'}'`
31578	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31579echo "${ECHO_T}$ac_res" >&6; }
31580if test `eval echo '${'$as_ac_var'}'` = yes; then
31581  cat >>confdefs.h <<_ACEOF
31582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31583_ACEOF
31584
31585fi
31586done
31587
31588
31589
31590for ac_func in memalign posix_memalign
31591do
31592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31593{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31595if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31596  echo $ECHO_N "(cached) $ECHO_C" >&6
31597else
31598  cat >conftest.$ac_ext <<_ACEOF
31599/* confdefs.h.  */
31600_ACEOF
31601cat confdefs.h >>conftest.$ac_ext
31602cat >>conftest.$ac_ext <<_ACEOF
31603/* end confdefs.h.  */
31604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31605   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31606#define $ac_func innocuous_$ac_func
31607
31608/* System header to define __stub macros and hopefully few prototypes,
31609    which can conflict with char $ac_func (); below.
31610    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31611    <limits.h> exists even on freestanding compilers.  */
31612
31613#ifdef __STDC__
31614# include <limits.h>
31615#else
31616# include <assert.h>
31617#endif
31618
31619#undef $ac_func
31620
31621/* Override any GCC internal prototype to avoid an error.
31622   Use char because int might match the return type of a GCC
31623   builtin and then its argument prototype would still apply.  */
31624#ifdef __cplusplus
31625extern "C"
31626#endif
31627char $ac_func ();
31628/* The GNU C library defines this for functions which it implements
31629    to always fail with ENOSYS.  Some functions are actually named
31630    something starting with __ and the normal name is an alias.  */
31631#if defined __stub_$ac_func || defined __stub___$ac_func
31632choke me
31633#endif
31634
31635int
31636main ()
31637{
31638return $ac_func ();
31639  ;
31640  return 0;
31641}
31642_ACEOF
31643rm -f conftest.$ac_objext conftest$ac_exeext
31644if { (ac_try="$ac_link"
31645case "(($ac_try" in
31646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31647  *) ac_try_echo=$ac_try;;
31648esac
31649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31650  (eval "$ac_link") 2>conftest.er1
31651  ac_status=$?
31652  grep -v '^ *+' conftest.er1 >conftest.err
31653  rm -f conftest.er1
31654  cat conftest.err >&5
31655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656  (exit $ac_status); } && {
31657	 test -z "$ac_c_werror_flag" ||
31658	 test ! -s conftest.err
31659       } && test -s conftest$ac_exeext &&
31660       $as_test_x conftest$ac_exeext; then
31661  eval "$as_ac_var=yes"
31662else
31663  echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
31666	eval "$as_ac_var=no"
31667fi
31668
31669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31670      conftest$ac_exeext conftest.$ac_ext
31671fi
31672ac_res=`eval echo '${'$as_ac_var'}'`
31673	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31674echo "${ECHO_T}$ac_res" >&6; }
31675if test `eval echo '${'$as_ac_var'}'` = yes; then
31676  cat >>confdefs.h <<_ACEOF
31677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31678_ACEOF
31679
31680fi
31681done
31682
31683
31684for ac_header in sys/mman.h
31685do
31686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31688  { echo "$as_me:$LINENO: checking for $ac_header" >&5
31689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31691  echo $ECHO_N "(cached) $ECHO_C" >&6
31692fi
31693ac_res=`eval echo '${'$as_ac_Header'}'`
31694	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31695echo "${ECHO_T}$ac_res" >&6; }
31696else
31697  # Is the header compilable?
31698{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31700cat >conftest.$ac_ext <<_ACEOF
31701/* confdefs.h.  */
31702_ACEOF
31703cat confdefs.h >>conftest.$ac_ext
31704cat >>conftest.$ac_ext <<_ACEOF
31705/* end confdefs.h.  */
31706$ac_includes_default
31707#include <$ac_header>
31708_ACEOF
31709rm -f conftest.$ac_objext
31710if { (ac_try="$ac_compile"
31711case "(($ac_try" in
31712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713  *) ac_try_echo=$ac_try;;
31714esac
31715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716  (eval "$ac_compile") 2>conftest.er1
31717  ac_status=$?
31718  grep -v '^ *+' conftest.er1 >conftest.err
31719  rm -f conftest.er1
31720  cat conftest.err >&5
31721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722  (exit $ac_status); } && {
31723	 test -z "$ac_c_werror_flag" ||
31724	 test ! -s conftest.err
31725       } && test -s conftest.$ac_objext; then
31726  ac_header_compiler=yes
31727else
31728  echo "$as_me: failed program was:" >&5
31729sed 's/^/| /' conftest.$ac_ext >&5
31730
31731	ac_header_compiler=no
31732fi
31733
31734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31736echo "${ECHO_T}$ac_header_compiler" >&6; }
31737
31738# Is the header present?
31739{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31741cat >conftest.$ac_ext <<_ACEOF
31742/* confdefs.h.  */
31743_ACEOF
31744cat confdefs.h >>conftest.$ac_ext
31745cat >>conftest.$ac_ext <<_ACEOF
31746/* end confdefs.h.  */
31747#include <$ac_header>
31748_ACEOF
31749if { (ac_try="$ac_cpp conftest.$ac_ext"
31750case "(($ac_try" in
31751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752  *) ac_try_echo=$ac_try;;
31753esac
31754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31756  ac_status=$?
31757  grep -v '^ *+' conftest.er1 >conftest.err
31758  rm -f conftest.er1
31759  cat conftest.err >&5
31760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761  (exit $ac_status); } >/dev/null && {
31762	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31763	 test ! -s conftest.err
31764       }; then
31765  ac_header_preproc=yes
31766else
31767  echo "$as_me: failed program was:" >&5
31768sed 's/^/| /' conftest.$ac_ext >&5
31769
31770  ac_header_preproc=no
31771fi
31772
31773rm -f conftest.err conftest.$ac_ext
31774{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31775echo "${ECHO_T}$ac_header_preproc" >&6; }
31776
31777# So?  What about this header?
31778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31779  yes:no: )
31780    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31784    ac_header_preproc=yes
31785    ;;
31786  no:yes:* )
31787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31789    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31790echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31791    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31793    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31794echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31797    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31799
31800    ;;
31801esac
31802{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31805  echo $ECHO_N "(cached) $ECHO_C" >&6
31806else
31807  eval "$as_ac_Header=\$ac_header_preproc"
31808fi
31809ac_res=`eval echo '${'$as_ac_Header'}'`
31810	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31811echo "${ECHO_T}$ac_res" >&6; }
31812
31813fi
31814if test `eval echo '${'$as_ac_Header'}'` = yes; then
31815  cat >>confdefs.h <<_ACEOF
31816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31817_ACEOF
31818
31819fi
31820
31821done
31822
31823# setbuffer, shmget, shm_open are needed for smbtorture
31824
31825
31826
31827for ac_func in setbuffer shmget shm_open
31828do
31829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31830{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31833  echo $ECHO_N "(cached) $ECHO_C" >&6
31834else
31835  cat >conftest.$ac_ext <<_ACEOF
31836/* confdefs.h.  */
31837_ACEOF
31838cat confdefs.h >>conftest.$ac_ext
31839cat >>conftest.$ac_ext <<_ACEOF
31840/* end confdefs.h.  */
31841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31842   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31843#define $ac_func innocuous_$ac_func
31844
31845/* System header to define __stub macros and hopefully few prototypes,
31846    which can conflict with char $ac_func (); below.
31847    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31848    <limits.h> exists even on freestanding compilers.  */
31849
31850#ifdef __STDC__
31851# include <limits.h>
31852#else
31853# include <assert.h>
31854#endif
31855
31856#undef $ac_func
31857
31858/* Override any GCC internal prototype to avoid an error.
31859   Use char because int might match the return type of a GCC
31860   builtin and then its argument prototype would still apply.  */
31861#ifdef __cplusplus
31862extern "C"
31863#endif
31864char $ac_func ();
31865/* The GNU C library defines this for functions which it implements
31866    to always fail with ENOSYS.  Some functions are actually named
31867    something starting with __ and the normal name is an alias.  */
31868#if defined __stub_$ac_func || defined __stub___$ac_func
31869choke me
31870#endif
31871
31872int
31873main ()
31874{
31875return $ac_func ();
31876  ;
31877  return 0;
31878}
31879_ACEOF
31880rm -f conftest.$ac_objext conftest$ac_exeext
31881if { (ac_try="$ac_link"
31882case "(($ac_try" in
31883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884  *) ac_try_echo=$ac_try;;
31885esac
31886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887  (eval "$ac_link") 2>conftest.er1
31888  ac_status=$?
31889  grep -v '^ *+' conftest.er1 >conftest.err
31890  rm -f conftest.er1
31891  cat conftest.err >&5
31892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893  (exit $ac_status); } && {
31894	 test -z "$ac_c_werror_flag" ||
31895	 test ! -s conftest.err
31896       } && test -s conftest$ac_exeext &&
31897       $as_test_x conftest$ac_exeext; then
31898  eval "$as_ac_var=yes"
31899else
31900  echo "$as_me: failed program was:" >&5
31901sed 's/^/| /' conftest.$ac_ext >&5
31902
31903	eval "$as_ac_var=no"
31904fi
31905
31906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31907      conftest$ac_exeext conftest.$ac_ext
31908fi
31909ac_res=`eval echo '${'$as_ac_var'}'`
31910	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31911echo "${ECHO_T}$ac_res" >&6; }
31912if test `eval echo '${'$as_ac_var'}'` = yes; then
31913  cat >>confdefs.h <<_ACEOF
31914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31915_ACEOF
31916
31917fi
31918done
31919
31920
31921# Find a method of generating a stack trace
31922
31923
31924
31925for ac_header in execinfo.h libexc.h libunwind.h
31926do
31927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31929  { echo "$as_me:$LINENO: checking for $ac_header" >&5
31930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31932  echo $ECHO_N "(cached) $ECHO_C" >&6
31933fi
31934ac_res=`eval echo '${'$as_ac_Header'}'`
31935	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31936echo "${ECHO_T}$ac_res" >&6; }
31937else
31938  # Is the header compilable?
31939{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31941cat >conftest.$ac_ext <<_ACEOF
31942/* confdefs.h.  */
31943_ACEOF
31944cat confdefs.h >>conftest.$ac_ext
31945cat >>conftest.$ac_ext <<_ACEOF
31946/* end confdefs.h.  */
31947$ac_includes_default
31948#include <$ac_header>
31949_ACEOF
31950rm -f conftest.$ac_objext
31951if { (ac_try="$ac_compile"
31952case "(($ac_try" in
31953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954  *) ac_try_echo=$ac_try;;
31955esac
31956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957  (eval "$ac_compile") 2>conftest.er1
31958  ac_status=$?
31959  grep -v '^ *+' conftest.er1 >conftest.err
31960  rm -f conftest.er1
31961  cat conftest.err >&5
31962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963  (exit $ac_status); } && {
31964	 test -z "$ac_c_werror_flag" ||
31965	 test ! -s conftest.err
31966       } && test -s conftest.$ac_objext; then
31967  ac_header_compiler=yes
31968else
31969  echo "$as_me: failed program was:" >&5
31970sed 's/^/| /' conftest.$ac_ext >&5
31971
31972	ac_header_compiler=no
31973fi
31974
31975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31976{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31977echo "${ECHO_T}$ac_header_compiler" >&6; }
31978
31979# Is the header present?
31980{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31982cat >conftest.$ac_ext <<_ACEOF
31983/* confdefs.h.  */
31984_ACEOF
31985cat confdefs.h >>conftest.$ac_ext
31986cat >>conftest.$ac_ext <<_ACEOF
31987/* end confdefs.h.  */
31988#include <$ac_header>
31989_ACEOF
31990if { (ac_try="$ac_cpp conftest.$ac_ext"
31991case "(($ac_try" in
31992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993  *) ac_try_echo=$ac_try;;
31994esac
31995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31997  ac_status=$?
31998  grep -v '^ *+' conftest.er1 >conftest.err
31999  rm -f conftest.er1
32000  cat conftest.err >&5
32001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002  (exit $ac_status); } >/dev/null && {
32003	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32004	 test ! -s conftest.err
32005       }; then
32006  ac_header_preproc=yes
32007else
32008  echo "$as_me: failed program was:" >&5
32009sed 's/^/| /' conftest.$ac_ext >&5
32010
32011  ac_header_preproc=no
32012fi
32013
32014rm -f conftest.err conftest.$ac_ext
32015{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32016echo "${ECHO_T}$ac_header_preproc" >&6; }
32017
32018# So?  What about this header?
32019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32020  yes:no: )
32021    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32023    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32025    ac_header_preproc=yes
32026    ;;
32027  no:yes:* )
32028    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32030    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32031echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32032    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32034    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32035echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32036    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32038    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32040
32041    ;;
32042esac
32043{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32046  echo $ECHO_N "(cached) $ECHO_C" >&6
32047else
32048  eval "$as_ac_Header=\$ac_header_preproc"
32049fi
32050ac_res=`eval echo '${'$as_ac_Header'}'`
32051	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32052echo "${ECHO_T}$ac_res" >&6; }
32053
32054fi
32055if test `eval echo '${'$as_ac_Header'}'` = yes; then
32056  cat >>confdefs.h <<_ACEOF
32057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32058_ACEOF
32059
32060fi
32061
32062done
32063
32064
32065for ac_func in backtrace_symbols
32066do
32067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32068{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32070if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32071  echo $ECHO_N "(cached) $ECHO_C" >&6
32072else
32073  cat >conftest.$ac_ext <<_ACEOF
32074/* confdefs.h.  */
32075_ACEOF
32076cat confdefs.h >>conftest.$ac_ext
32077cat >>conftest.$ac_ext <<_ACEOF
32078/* end confdefs.h.  */
32079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32081#define $ac_func innocuous_$ac_func
32082
32083/* System header to define __stub macros and hopefully few prototypes,
32084    which can conflict with char $ac_func (); below.
32085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32086    <limits.h> exists even on freestanding compilers.  */
32087
32088#ifdef __STDC__
32089# include <limits.h>
32090#else
32091# include <assert.h>
32092#endif
32093
32094#undef $ac_func
32095
32096/* Override any GCC internal prototype to avoid an error.
32097   Use char because int might match the return type of a GCC
32098   builtin and then its argument prototype would still apply.  */
32099#ifdef __cplusplus
32100extern "C"
32101#endif
32102char $ac_func ();
32103/* The GNU C library defines this for functions which it implements
32104    to always fail with ENOSYS.  Some functions are actually named
32105    something starting with __ and the normal name is an alias.  */
32106#if defined __stub_$ac_func || defined __stub___$ac_func
32107choke me
32108#endif
32109
32110int
32111main ()
32112{
32113return $ac_func ();
32114  ;
32115  return 0;
32116}
32117_ACEOF
32118rm -f conftest.$ac_objext conftest$ac_exeext
32119if { (ac_try="$ac_link"
32120case "(($ac_try" in
32121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122  *) ac_try_echo=$ac_try;;
32123esac
32124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125  (eval "$ac_link") 2>conftest.er1
32126  ac_status=$?
32127  grep -v '^ *+' conftest.er1 >conftest.err
32128  rm -f conftest.er1
32129  cat conftest.err >&5
32130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131  (exit $ac_status); } && {
32132	 test -z "$ac_c_werror_flag" ||
32133	 test ! -s conftest.err
32134       } && test -s conftest$ac_exeext &&
32135       $as_test_x conftest$ac_exeext; then
32136  eval "$as_ac_var=yes"
32137else
32138  echo "$as_me: failed program was:" >&5
32139sed 's/^/| /' conftest.$ac_ext >&5
32140
32141	eval "$as_ac_var=no"
32142fi
32143
32144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32145      conftest$ac_exeext conftest.$ac_ext
32146fi
32147ac_res=`eval echo '${'$as_ac_var'}'`
32148	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32149echo "${ECHO_T}$ac_res" >&6; }
32150if test `eval echo '${'$as_ac_var'}'` = yes; then
32151  cat >>confdefs.h <<_ACEOF
32152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32153_ACEOF
32154
32155fi
32156done
32157
32158
32159{ echo "$as_me:$LINENO: checking for trace_back_stack in -lexc" >&5
32160echo $ECHO_N "checking for trace_back_stack in -lexc... $ECHO_C" >&6; }
32161if test "${ac_cv_lib_exc_trace_back_stack+set}" = set; then
32162  echo $ECHO_N "(cached) $ECHO_C" >&6
32163else
32164  ac_check_lib_save_LIBS=$LIBS
32165LIBS="-lexc  $LIBS"
32166cat >conftest.$ac_ext <<_ACEOF
32167/* confdefs.h.  */
32168_ACEOF
32169cat confdefs.h >>conftest.$ac_ext
32170cat >>conftest.$ac_ext <<_ACEOF
32171/* end confdefs.h.  */
32172
32173/* Override any GCC internal prototype to avoid an error.
32174   Use char because int might match the return type of a GCC
32175   builtin and then its argument prototype would still apply.  */
32176#ifdef __cplusplus
32177extern "C"
32178#endif
32179char trace_back_stack ();
32180int
32181main ()
32182{
32183return trace_back_stack ();
32184  ;
32185  return 0;
32186}
32187_ACEOF
32188rm -f conftest.$ac_objext conftest$ac_exeext
32189if { (ac_try="$ac_link"
32190case "(($ac_try" in
32191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192  *) ac_try_echo=$ac_try;;
32193esac
32194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195  (eval "$ac_link") 2>conftest.er1
32196  ac_status=$?
32197  grep -v '^ *+' conftest.er1 >conftest.err
32198  rm -f conftest.er1
32199  cat conftest.err >&5
32200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201  (exit $ac_status); } && {
32202	 test -z "$ac_c_werror_flag" ||
32203	 test ! -s conftest.err
32204       } && test -s conftest$ac_exeext &&
32205       $as_test_x conftest$ac_exeext; then
32206  ac_cv_lib_exc_trace_back_stack=yes
32207else
32208  echo "$as_me: failed program was:" >&5
32209sed 's/^/| /' conftest.$ac_ext >&5
32210
32211	ac_cv_lib_exc_trace_back_stack=no
32212fi
32213
32214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32215      conftest$ac_exeext conftest.$ac_ext
32216LIBS=$ac_check_lib_save_LIBS
32217fi
32218{ echo "$as_me:$LINENO: result: $ac_cv_lib_exc_trace_back_stack" >&5
32219echo "${ECHO_T}$ac_cv_lib_exc_trace_back_stack" >&6; }
32220if test $ac_cv_lib_exc_trace_back_stack = yes; then
32221  cat >>confdefs.h <<_ACEOF
32222#define HAVE_LIBEXC 1
32223_ACEOF
32224
32225  LIBS="-lexc $LIBS"
32226
32227fi
32228
32229
32230echo -n "checking for GPFS GPL libs... "
32231save_LIBS="$LIBS"
32232LIBS="$LIBS -lgpfs_gpl"
32233cat >conftest.$ac_ext <<_ACEOF
32234/* confdefs.h.  */
32235_ACEOF
32236cat confdefs.h >>conftest.$ac_ext
32237cat >>conftest.$ac_ext <<_ACEOF
32238/* end confdefs.h.  */
32239#include <gpfs_gpl.h>
32240int
32241main ()
32242{
32243gpfs_set_share(0,GPFS_SHARE_READ,GPFS_DENY_NONE)
32244  ;
32245  return 0;
32246}
32247_ACEOF
32248rm -f conftest.$ac_objext conftest$ac_exeext
32249if { (ac_try="$ac_link"
32250case "(($ac_try" in
32251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252  *) ac_try_echo=$ac_try;;
32253esac
32254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255  (eval "$ac_link") 2>conftest.er1
32256  ac_status=$?
32257  grep -v '^ *+' conftest.er1 >conftest.err
32258  rm -f conftest.er1
32259  cat conftest.err >&5
32260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261  (exit $ac_status); } && {
32262	 test -z "$ac_c_werror_flag" ||
32263	 test ! -s conftest.err
32264       } && test -s conftest$ac_exeext &&
32265       $as_test_x conftest$ac_exeext; then
32266  samba_cv_HAVE_GPFS=yes
32267else
32268  echo "$as_me: failed program was:" >&5
32269sed 's/^/| /' conftest.$ac_ext >&5
32270
32271	samba_cv_HAVE_GPFS=no
32272fi
32273
32274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32275      conftest$ac_exeext conftest.$ac_ext
32276echo $samba_cv_HAVE_GPFS
32277if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
32278
32279cat >>confdefs.h <<\_ACEOF
32280#define HAVE_GPFS 1
32281_ACEOF
32282
32283    default_shared_modules="$default_shared_modules vfs_gpfs"
32284fi
32285LIBS="$save_LIBS"
32286
32287# Note that all the libunwind symbols in the API are defined to internal
32288# platform-specific version, so we must include libunwind.h before checking
32289# any of them.
32290{ echo "$as_me:$LINENO: checking for libunwind" >&5
32291echo $ECHO_N "checking for libunwind... $ECHO_C" >&6; }
32292save_LIBS=$LIBS
32293if test x"$UNAME_P" = xunknown ; then
32294    # This probably won't link without the platform-specific libunwind.
32295    LIBS="$LIBS -lunwind"
32296else
32297    # Add the platform-specific libunwind module. uname -p seems the most
32298    # plausible option and works for ia64, where libunwind is most useful.
32299    LIBS="$LIBS -lunwind -lunwind-$UNAME_P"
32300fi
32301
32302cat >conftest.$ac_ext <<_ACEOF
32303/* confdefs.h.  */
32304_ACEOF
32305cat confdefs.h >>conftest.$ac_ext
32306cat >>conftest.$ac_ext <<_ACEOF
32307/* end confdefs.h.  */
32308
32309#ifdef HAVE_LIBUNWIND_H
32310#include <libunwind.h>
32311#endif
32312
32313int
32314main ()
32315{
32316
32317	unw_context_t ctx; unw_cursor_t cur;
32318	char buf[256]; unw_word_t off;
32319	unw_getcontext(&ctx); unw_init_local(&cur, &ctx);
32320	unw_get_proc_name(&cur, buf, sizeof(buf), &off);
32321
32322  ;
32323  return 0;
32324}
32325_ACEOF
32326rm -f conftest.$ac_objext conftest$ac_exeext
32327if { (ac_try="$ac_link"
32328case "(($ac_try" in
32329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330  *) ac_try_echo=$ac_try;;
32331esac
32332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333  (eval "$ac_link") 2>conftest.er1
32334  ac_status=$?
32335  grep -v '^ *+' conftest.er1 >conftest.err
32336  rm -f conftest.er1
32337  cat conftest.err >&5
32338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339  (exit $ac_status); } && {
32340	 test -z "$ac_c_werror_flag" ||
32341	 test ! -s conftest.err
32342       } && test -s conftest$ac_exeext &&
32343       $as_test_x conftest$ac_exeext; then
32344
32345	{ echo "$as_me:$LINENO: result: yes" >&5
32346echo "${ECHO_T}yes" >&6; }
32347
32348cat >>confdefs.h <<\_ACEOF
32349#define HAVE_LIBUNWIND 1
32350_ACEOF
32351
32352
32353	# If we have libunwind, test whether we also have libunwind-ptrace
32354	# which would let us unwind arbitrary processes.
32355	save_LIBS=$LIBS
32356
32357for ac_header in libunwind-ptrace.h
32358do
32359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32361  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32364  echo $ECHO_N "(cached) $ECHO_C" >&6
32365fi
32366ac_res=`eval echo '${'$as_ac_Header'}'`
32367	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32368echo "${ECHO_T}$ac_res" >&6; }
32369else
32370  # Is the header compilable?
32371{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32373cat >conftest.$ac_ext <<_ACEOF
32374/* confdefs.h.  */
32375_ACEOF
32376cat confdefs.h >>conftest.$ac_ext
32377cat >>conftest.$ac_ext <<_ACEOF
32378/* end confdefs.h.  */
32379$ac_includes_default
32380#include <$ac_header>
32381_ACEOF
32382rm -f conftest.$ac_objext
32383if { (ac_try="$ac_compile"
32384case "(($ac_try" in
32385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386  *) ac_try_echo=$ac_try;;
32387esac
32388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389  (eval "$ac_compile") 2>conftest.er1
32390  ac_status=$?
32391  grep -v '^ *+' conftest.er1 >conftest.err
32392  rm -f conftest.er1
32393  cat conftest.err >&5
32394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395  (exit $ac_status); } && {
32396	 test -z "$ac_c_werror_flag" ||
32397	 test ! -s conftest.err
32398       } && test -s conftest.$ac_objext; then
32399  ac_header_compiler=yes
32400else
32401  echo "$as_me: failed program was:" >&5
32402sed 's/^/| /' conftest.$ac_ext >&5
32403
32404	ac_header_compiler=no
32405fi
32406
32407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32408{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32409echo "${ECHO_T}$ac_header_compiler" >&6; }
32410
32411# Is the header present?
32412{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32414cat >conftest.$ac_ext <<_ACEOF
32415/* confdefs.h.  */
32416_ACEOF
32417cat confdefs.h >>conftest.$ac_ext
32418cat >>conftest.$ac_ext <<_ACEOF
32419/* end confdefs.h.  */
32420#include <$ac_header>
32421_ACEOF
32422if { (ac_try="$ac_cpp conftest.$ac_ext"
32423case "(($ac_try" in
32424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425  *) ac_try_echo=$ac_try;;
32426esac
32427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32429  ac_status=$?
32430  grep -v '^ *+' conftest.er1 >conftest.err
32431  rm -f conftest.er1
32432  cat conftest.err >&5
32433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434  (exit $ac_status); } >/dev/null && {
32435	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32436	 test ! -s conftest.err
32437       }; then
32438  ac_header_preproc=yes
32439else
32440  echo "$as_me: failed program was:" >&5
32441sed 's/^/| /' conftest.$ac_ext >&5
32442
32443  ac_header_preproc=no
32444fi
32445
32446rm -f conftest.err conftest.$ac_ext
32447{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32448echo "${ECHO_T}$ac_header_preproc" >&6; }
32449
32450# So?  What about this header?
32451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32452  yes:no: )
32453    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32455    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32457    ac_header_preproc=yes
32458    ;;
32459  no:yes:* )
32460    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32462    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32463echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32464    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32466    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32467echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32468    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32470    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32472
32473    ;;
32474esac
32475{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32478  echo $ECHO_N "(cached) $ECHO_C" >&6
32479else
32480  eval "$as_ac_Header=\$ac_header_preproc"
32481fi
32482ac_res=`eval echo '${'$as_ac_Header'}'`
32483	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32484echo "${ECHO_T}$ac_res" >&6; }
32485
32486fi
32487if test `eval echo '${'$as_ac_Header'}'` = yes; then
32488  cat >>confdefs.h <<_ACEOF
32489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32490_ACEOF
32491
32492fi
32493
32494done
32495
32496	{ echo "$as_me:$LINENO: checking for _UPT_create in -lunwind-ptrace" >&5
32497echo $ECHO_N "checking for _UPT_create in -lunwind-ptrace... $ECHO_C" >&6; }
32498if test "${ac_cv_lib_unwind_ptrace__UPT_create+set}" = set; then
32499  echo $ECHO_N "(cached) $ECHO_C" >&6
32500else
32501  ac_check_lib_save_LIBS=$LIBS
32502LIBS="-lunwind-ptrace  $LIBS"
32503cat >conftest.$ac_ext <<_ACEOF
32504/* confdefs.h.  */
32505_ACEOF
32506cat confdefs.h >>conftest.$ac_ext
32507cat >>conftest.$ac_ext <<_ACEOF
32508/* end confdefs.h.  */
32509
32510/* Override any GCC internal prototype to avoid an error.
32511   Use char because int might match the return type of a GCC
32512   builtin and then its argument prototype would still apply.  */
32513#ifdef __cplusplus
32514extern "C"
32515#endif
32516char _UPT_create ();
32517int
32518main ()
32519{
32520return _UPT_create ();
32521  ;
32522  return 0;
32523}
32524_ACEOF
32525rm -f conftest.$ac_objext conftest$ac_exeext
32526if { (ac_try="$ac_link"
32527case "(($ac_try" in
32528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529  *) ac_try_echo=$ac_try;;
32530esac
32531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532  (eval "$ac_link") 2>conftest.er1
32533  ac_status=$?
32534  grep -v '^ *+' conftest.er1 >conftest.err
32535  rm -f conftest.er1
32536  cat conftest.err >&5
32537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538  (exit $ac_status); } && {
32539	 test -z "$ac_c_werror_flag" ||
32540	 test ! -s conftest.err
32541       } && test -s conftest$ac_exeext &&
32542       $as_test_x conftest$ac_exeext; then
32543  ac_cv_lib_unwind_ptrace__UPT_create=yes
32544else
32545  echo "$as_me: failed program was:" >&5
32546sed 's/^/| /' conftest.$ac_ext >&5
32547
32548	ac_cv_lib_unwind_ptrace__UPT_create=no
32549fi
32550
32551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32552      conftest$ac_exeext conftest.$ac_ext
32553LIBS=$ac_check_lib_save_LIBS
32554fi
32555{ echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_ptrace__UPT_create" >&5
32556echo "${ECHO_T}$ac_cv_lib_unwind_ptrace__UPT_create" >&6; }
32557if test $ac_cv_lib_unwind_ptrace__UPT_create = yes; then
32558
32559		LIBUNWIND_PTRACE="-lunwind-ptrace";
32560
32561cat >>confdefs.h <<\_ACEOF
32562#define HAVE_LIBUNWIND_PTRACE 1
32563_ACEOF
32564
32565
32566else
32567   LIBUNWIND_PTRACE=""
32568fi
32569
32570
32571	LIBS=$save_LIBS
32572
32573else
32574  echo "$as_me: failed program was:" >&5
32575sed 's/^/| /' conftest.$ac_ext >&5
32576
32577
32578	{ echo "$as_me:$LINENO: result: no" >&5
32579echo "${ECHO_T}no" >&6; }
32580	LIBS=$save_LIBS
32581
32582fi
32583
32584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32585      conftest$ac_exeext conftest.$ac_ext
32586
32587# To use libunwind-ptrace, we also need to make some ptrace system calls.
32588if test x"$LIBUNWIND_PTRACE" != x"" ; then
32589
32590for ac_header in sys/ptrace.h
32591do
32592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32594  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32597  echo $ECHO_N "(cached) $ECHO_C" >&6
32598fi
32599ac_res=`eval echo '${'$as_ac_Header'}'`
32600	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32601echo "${ECHO_T}$ac_res" >&6; }
32602else
32603  # Is the header compilable?
32604{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32606cat >conftest.$ac_ext <<_ACEOF
32607/* confdefs.h.  */
32608_ACEOF
32609cat confdefs.h >>conftest.$ac_ext
32610cat >>conftest.$ac_ext <<_ACEOF
32611/* end confdefs.h.  */
32612$ac_includes_default
32613#include <$ac_header>
32614_ACEOF
32615rm -f conftest.$ac_objext
32616if { (ac_try="$ac_compile"
32617case "(($ac_try" in
32618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619  *) ac_try_echo=$ac_try;;
32620esac
32621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622  (eval "$ac_compile") 2>conftest.er1
32623  ac_status=$?
32624  grep -v '^ *+' conftest.er1 >conftest.err
32625  rm -f conftest.er1
32626  cat conftest.err >&5
32627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628  (exit $ac_status); } && {
32629	 test -z "$ac_c_werror_flag" ||
32630	 test ! -s conftest.err
32631       } && test -s conftest.$ac_objext; then
32632  ac_header_compiler=yes
32633else
32634  echo "$as_me: failed program was:" >&5
32635sed 's/^/| /' conftest.$ac_ext >&5
32636
32637	ac_header_compiler=no
32638fi
32639
32640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32641{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32642echo "${ECHO_T}$ac_header_compiler" >&6; }
32643
32644# Is the header present?
32645{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32647cat >conftest.$ac_ext <<_ACEOF
32648/* confdefs.h.  */
32649_ACEOF
32650cat confdefs.h >>conftest.$ac_ext
32651cat >>conftest.$ac_ext <<_ACEOF
32652/* end confdefs.h.  */
32653#include <$ac_header>
32654_ACEOF
32655if { (ac_try="$ac_cpp conftest.$ac_ext"
32656case "(($ac_try" in
32657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658  *) ac_try_echo=$ac_try;;
32659esac
32660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32662  ac_status=$?
32663  grep -v '^ *+' conftest.er1 >conftest.err
32664  rm -f conftest.er1
32665  cat conftest.err >&5
32666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667  (exit $ac_status); } >/dev/null && {
32668	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32669	 test ! -s conftest.err
32670       }; then
32671  ac_header_preproc=yes
32672else
32673  echo "$as_me: failed program was:" >&5
32674sed 's/^/| /' conftest.$ac_ext >&5
32675
32676  ac_header_preproc=no
32677fi
32678
32679rm -f conftest.err conftest.$ac_ext
32680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32681echo "${ECHO_T}$ac_header_preproc" >&6; }
32682
32683# So?  What about this header?
32684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32685  yes:no: )
32686    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32688    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32690    ac_header_preproc=yes
32691    ;;
32692  no:yes:* )
32693    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32695    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32696echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32697    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32699    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32700echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32701    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32703    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32705
32706    ;;
32707esac
32708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32711  echo $ECHO_N "(cached) $ECHO_C" >&6
32712else
32713  eval "$as_ac_Header=\$ac_header_preproc"
32714fi
32715ac_res=`eval echo '${'$as_ac_Header'}'`
32716	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32717echo "${ECHO_T}$ac_res" >&6; }
32718
32719fi
32720if test `eval echo '${'$as_ac_Header'}'` = yes; then
32721  cat >>confdefs.h <<_ACEOF
32722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32723_ACEOF
32724
32725fi
32726
32727done
32728
32729    { echo "$as_me:$LINENO: checking for the Linux ptrace(2) interface" >&5
32730echo $ECHO_N "checking for the Linux ptrace(2) interface... $ECHO_C" >&6; }
32731    cat >conftest.$ac_ext <<_ACEOF
32732/* confdefs.h.  */
32733_ACEOF
32734cat confdefs.h >>conftest.$ac_ext
32735cat >>conftest.$ac_ext <<_ACEOF
32736/* end confdefs.h.  */
32737
32738#if HAVE_SYS_TYPES_H
32739#include <sys/types.h>
32740#endif
32741#if HAVE_SYS_PTRACE_H
32742#include <sys/ptrace.h>
32743#endif
32744
32745int
32746main ()
32747{
32748
32749		int main(int argc, const char ** argv)
32750		{
32751			pid_t me = (pid_t)-1;
32752			ptrace(PTRACE_ATTACH, me, 0, 0);
32753			ptrace(PTRACE_DETACH, me, 0, 0);
32754			return 0;
32755		}
32756
32757  ;
32758  return 0;
32759}
32760_ACEOF
32761rm -f conftest.$ac_objext conftest$ac_exeext
32762if { (ac_try="$ac_link"
32763case "(($ac_try" in
32764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765  *) ac_try_echo=$ac_try;;
32766esac
32767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768  (eval "$ac_link") 2>conftest.er1
32769  ac_status=$?
32770  grep -v '^ *+' conftest.er1 >conftest.err
32771  rm -f conftest.er1
32772  cat conftest.err >&5
32773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774  (exit $ac_status); } && {
32775	 test -z "$ac_c_werror_flag" ||
32776	 test ! -s conftest.err
32777       } && test -s conftest$ac_exeext &&
32778       $as_test_x conftest$ac_exeext; then
32779
32780		{ echo "$as_me:$LINENO: result: yes" >&5
32781echo "${ECHO_T}yes" >&6; }
32782
32783cat >>confdefs.h <<\_ACEOF
32784#define HAVE_LINUX_PTRACE 1
32785_ACEOF
32786
32787
32788else
32789  echo "$as_me: failed program was:" >&5
32790sed 's/^/| /' conftest.$ac_ext >&5
32791
32792
32793		{ echo "$as_me:$LINENO: result: no" >&5
32794echo "${ECHO_T}no" >&6; }
32795		LIBUNWIND_PTRACE=""
32796
32797fi
32798
32799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32800      conftest$ac_exeext conftest.$ac_ext
32801fi
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
32813do
32814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32815{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32818  echo $ECHO_N "(cached) $ECHO_C" >&6
32819else
32820  cat >conftest.$ac_ext <<_ACEOF
32821/* confdefs.h.  */
32822_ACEOF
32823cat confdefs.h >>conftest.$ac_ext
32824cat >>conftest.$ac_ext <<_ACEOF
32825/* end confdefs.h.  */
32826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32828#define $ac_func innocuous_$ac_func
32829
32830/* System header to define __stub macros and hopefully few prototypes,
32831    which can conflict with char $ac_func (); below.
32832    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32833    <limits.h> exists even on freestanding compilers.  */
32834
32835#ifdef __STDC__
32836# include <limits.h>
32837#else
32838# include <assert.h>
32839#endif
32840
32841#undef $ac_func
32842
32843/* Override any GCC internal prototype to avoid an error.
32844   Use char because int might match the return type of a GCC
32845   builtin and then its argument prototype would still apply.  */
32846#ifdef __cplusplus
32847extern "C"
32848#endif
32849char $ac_func ();
32850/* The GNU C library defines this for functions which it implements
32851    to always fail with ENOSYS.  Some functions are actually named
32852    something starting with __ and the normal name is an alias.  */
32853#if defined __stub_$ac_func || defined __stub___$ac_func
32854choke me
32855#endif
32856
32857int
32858main ()
32859{
32860return $ac_func ();
32861  ;
32862  return 0;
32863}
32864_ACEOF
32865rm -f conftest.$ac_objext conftest$ac_exeext
32866if { (ac_try="$ac_link"
32867case "(($ac_try" in
32868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869  *) ac_try_echo=$ac_try;;
32870esac
32871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872  (eval "$ac_link") 2>conftest.er1
32873  ac_status=$?
32874  grep -v '^ *+' conftest.er1 >conftest.err
32875  rm -f conftest.er1
32876  cat conftest.err >&5
32877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878  (exit $ac_status); } && {
32879	 test -z "$ac_c_werror_flag" ||
32880	 test ! -s conftest.err
32881       } && test -s conftest$ac_exeext &&
32882       $as_test_x conftest$ac_exeext; then
32883  eval "$as_ac_var=yes"
32884else
32885  echo "$as_me: failed program was:" >&5
32886sed 's/^/| /' conftest.$ac_ext >&5
32887
32888	eval "$as_ac_var=no"
32889fi
32890
32891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32892      conftest$ac_exeext conftest.$ac_ext
32893fi
32894ac_res=`eval echo '${'$as_ac_var'}'`
32895	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32896echo "${ECHO_T}$ac_res" >&6; }
32897if test `eval echo '${'$as_ac_var'}'` = yes; then
32898  cat >>confdefs.h <<_ACEOF
32899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32900_ACEOF
32901
32902fi
32903done
32904
32905
32906
32907
32908
32909
32910
32911
32912for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
32913do
32914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32915{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32918  echo $ECHO_N "(cached) $ECHO_C" >&6
32919else
32920  cat >conftest.$ac_ext <<_ACEOF
32921/* confdefs.h.  */
32922_ACEOF
32923cat confdefs.h >>conftest.$ac_ext
32924cat >>conftest.$ac_ext <<_ACEOF
32925/* end confdefs.h.  */
32926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32928#define $ac_func innocuous_$ac_func
32929
32930/* System header to define __stub macros and hopefully few prototypes,
32931    which can conflict with char $ac_func (); below.
32932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32933    <limits.h> exists even on freestanding compilers.  */
32934
32935#ifdef __STDC__
32936# include <limits.h>
32937#else
32938# include <assert.h>
32939#endif
32940
32941#undef $ac_func
32942
32943/* Override any GCC internal prototype to avoid an error.
32944   Use char because int might match the return type of a GCC
32945   builtin and then its argument prototype would still apply.  */
32946#ifdef __cplusplus
32947extern "C"
32948#endif
32949char $ac_func ();
32950/* The GNU C library defines this for functions which it implements
32951    to always fail with ENOSYS.  Some functions are actually named
32952    something starting with __ and the normal name is an alias.  */
32953#if defined __stub_$ac_func || defined __stub___$ac_func
32954choke me
32955#endif
32956
32957int
32958main ()
32959{
32960return $ac_func ();
32961  ;
32962  return 0;
32963}
32964_ACEOF
32965rm -f conftest.$ac_objext conftest$ac_exeext
32966if { (ac_try="$ac_link"
32967case "(($ac_try" in
32968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969  *) ac_try_echo=$ac_try;;
32970esac
32971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972  (eval "$ac_link") 2>conftest.er1
32973  ac_status=$?
32974  grep -v '^ *+' conftest.er1 >conftest.err
32975  rm -f conftest.er1
32976  cat conftest.err >&5
32977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978  (exit $ac_status); } && {
32979	 test -z "$ac_c_werror_flag" ||
32980	 test ! -s conftest.err
32981       } && test -s conftest$ac_exeext &&
32982       $as_test_x conftest$ac_exeext; then
32983  eval "$as_ac_var=yes"
32984else
32985  echo "$as_me: failed program was:" >&5
32986sed 's/^/| /' conftest.$ac_ext >&5
32987
32988	eval "$as_ac_var=no"
32989fi
32990
32991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32992      conftest$ac_exeext conftest.$ac_ext
32993fi
32994ac_res=`eval echo '${'$as_ac_var'}'`
32995	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32996echo "${ECHO_T}$ac_res" >&6; }
32997if test `eval echo '${'$as_ac_var'}'` = yes; then
32998  cat >>confdefs.h <<_ACEOF
32999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33000_ACEOF
33001
33002fi
33003done
33004
33005
33006
33007for ac_func in __getcwd _getcwd
33008do
33009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33010{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33013  echo $ECHO_N "(cached) $ECHO_C" >&6
33014else
33015  cat >conftest.$ac_ext <<_ACEOF
33016/* confdefs.h.  */
33017_ACEOF
33018cat confdefs.h >>conftest.$ac_ext
33019cat >>conftest.$ac_ext <<_ACEOF
33020/* end confdefs.h.  */
33021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33022   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33023#define $ac_func innocuous_$ac_func
33024
33025/* System header to define __stub macros and hopefully few prototypes,
33026    which can conflict with char $ac_func (); below.
33027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33028    <limits.h> exists even on freestanding compilers.  */
33029
33030#ifdef __STDC__
33031# include <limits.h>
33032#else
33033# include <assert.h>
33034#endif
33035
33036#undef $ac_func
33037
33038/* Override any GCC internal prototype to avoid an error.
33039   Use char because int might match the return type of a GCC
33040   builtin and then its argument prototype would still apply.  */
33041#ifdef __cplusplus
33042extern "C"
33043#endif
33044char $ac_func ();
33045/* The GNU C library defines this for functions which it implements
33046    to always fail with ENOSYS.  Some functions are actually named
33047    something starting with __ and the normal name is an alias.  */
33048#if defined __stub_$ac_func || defined __stub___$ac_func
33049choke me
33050#endif
33051
33052int
33053main ()
33054{
33055return $ac_func ();
33056  ;
33057  return 0;
33058}
33059_ACEOF
33060rm -f conftest.$ac_objext conftest$ac_exeext
33061if { (ac_try="$ac_link"
33062case "(($ac_try" in
33063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33064  *) ac_try_echo=$ac_try;;
33065esac
33066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33067  (eval "$ac_link") 2>conftest.er1
33068  ac_status=$?
33069  grep -v '^ *+' conftest.er1 >conftest.err
33070  rm -f conftest.er1
33071  cat conftest.err >&5
33072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073  (exit $ac_status); } && {
33074	 test -z "$ac_c_werror_flag" ||
33075	 test ! -s conftest.err
33076       } && test -s conftest$ac_exeext &&
33077       $as_test_x conftest$ac_exeext; then
33078  eval "$as_ac_var=yes"
33079else
33080  echo "$as_me: failed program was:" >&5
33081sed 's/^/| /' conftest.$ac_ext >&5
33082
33083	eval "$as_ac_var=no"
33084fi
33085
33086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33087      conftest$ac_exeext conftest.$ac_ext
33088fi
33089ac_res=`eval echo '${'$as_ac_var'}'`
33090	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33091echo "${ECHO_T}$ac_res" >&6; }
33092if test `eval echo '${'$as_ac_var'}'` = yes; then
33093  cat >>confdefs.h <<_ACEOF
33094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33095_ACEOF
33096
33097fi
33098done
33099
33100
33101
33102
33103for ac_func in __xstat __fxstat __lxstat
33104do
33105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33106{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33108if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33109  echo $ECHO_N "(cached) $ECHO_C" >&6
33110else
33111  cat >conftest.$ac_ext <<_ACEOF
33112/* confdefs.h.  */
33113_ACEOF
33114cat confdefs.h >>conftest.$ac_ext
33115cat >>conftest.$ac_ext <<_ACEOF
33116/* end confdefs.h.  */
33117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33118   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33119#define $ac_func innocuous_$ac_func
33120
33121/* System header to define __stub macros and hopefully few prototypes,
33122    which can conflict with char $ac_func (); below.
33123    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33124    <limits.h> exists even on freestanding compilers.  */
33125
33126#ifdef __STDC__
33127# include <limits.h>
33128#else
33129# include <assert.h>
33130#endif
33131
33132#undef $ac_func
33133
33134/* Override any GCC internal prototype to avoid an error.
33135   Use char because int might match the return type of a GCC
33136   builtin and then its argument prototype would still apply.  */
33137#ifdef __cplusplus
33138extern "C"
33139#endif
33140char $ac_func ();
33141/* The GNU C library defines this for functions which it implements
33142    to always fail with ENOSYS.  Some functions are actually named
33143    something starting with __ and the normal name is an alias.  */
33144#if defined __stub_$ac_func || defined __stub___$ac_func
33145choke me
33146#endif
33147
33148int
33149main ()
33150{
33151return $ac_func ();
33152  ;
33153  return 0;
33154}
33155_ACEOF
33156rm -f conftest.$ac_objext conftest$ac_exeext
33157if { (ac_try="$ac_link"
33158case "(($ac_try" in
33159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160  *) ac_try_echo=$ac_try;;
33161esac
33162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163  (eval "$ac_link") 2>conftest.er1
33164  ac_status=$?
33165  grep -v '^ *+' conftest.er1 >conftest.err
33166  rm -f conftest.er1
33167  cat conftest.err >&5
33168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169  (exit $ac_status); } && {
33170	 test -z "$ac_c_werror_flag" ||
33171	 test ! -s conftest.err
33172       } && test -s conftest$ac_exeext &&
33173       $as_test_x conftest$ac_exeext; then
33174  eval "$as_ac_var=yes"
33175else
33176  echo "$as_me: failed program was:" >&5
33177sed 's/^/| /' conftest.$ac_ext >&5
33178
33179	eval "$as_ac_var=no"
33180fi
33181
33182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33183      conftest$ac_exeext conftest.$ac_ext
33184fi
33185ac_res=`eval echo '${'$as_ac_var'}'`
33186	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33187echo "${ECHO_T}$ac_res" >&6; }
33188if test `eval echo '${'$as_ac_var'}'` = yes; then
33189  cat >>confdefs.h <<_ACEOF
33190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33191_ACEOF
33192
33193fi
33194done
33195
33196
33197
33198
33199
33200
33201
33202for ac_func in _stat _lstat _fstat __stat __lstat __fstat
33203do
33204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33205{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33207if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33208  echo $ECHO_N "(cached) $ECHO_C" >&6
33209else
33210  cat >conftest.$ac_ext <<_ACEOF
33211/* confdefs.h.  */
33212_ACEOF
33213cat confdefs.h >>conftest.$ac_ext
33214cat >>conftest.$ac_ext <<_ACEOF
33215/* end confdefs.h.  */
33216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33217   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33218#define $ac_func innocuous_$ac_func
33219
33220/* System header to define __stub macros and hopefully few prototypes,
33221    which can conflict with char $ac_func (); below.
33222    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33223    <limits.h> exists even on freestanding compilers.  */
33224
33225#ifdef __STDC__
33226# include <limits.h>
33227#else
33228# include <assert.h>
33229#endif
33230
33231#undef $ac_func
33232
33233/* Override any GCC internal prototype to avoid an error.
33234   Use char because int might match the return type of a GCC
33235   builtin and then its argument prototype would still apply.  */
33236#ifdef __cplusplus
33237extern "C"
33238#endif
33239char $ac_func ();
33240/* The GNU C library defines this for functions which it implements
33241    to always fail with ENOSYS.  Some functions are actually named
33242    something starting with __ and the normal name is an alias.  */
33243#if defined __stub_$ac_func || defined __stub___$ac_func
33244choke me
33245#endif
33246
33247int
33248main ()
33249{
33250return $ac_func ();
33251  ;
33252  return 0;
33253}
33254_ACEOF
33255rm -f conftest.$ac_objext conftest$ac_exeext
33256if { (ac_try="$ac_link"
33257case "(($ac_try" in
33258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259  *) ac_try_echo=$ac_try;;
33260esac
33261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33262  (eval "$ac_link") 2>conftest.er1
33263  ac_status=$?
33264  grep -v '^ *+' conftest.er1 >conftest.err
33265  rm -f conftest.er1
33266  cat conftest.err >&5
33267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268  (exit $ac_status); } && {
33269	 test -z "$ac_c_werror_flag" ||
33270	 test ! -s conftest.err
33271       } && test -s conftest$ac_exeext &&
33272       $as_test_x conftest$ac_exeext; then
33273  eval "$as_ac_var=yes"
33274else
33275  echo "$as_me: failed program was:" >&5
33276sed 's/^/| /' conftest.$ac_ext >&5
33277
33278	eval "$as_ac_var=no"
33279fi
33280
33281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33282      conftest$ac_exeext conftest.$ac_ext
33283fi
33284ac_res=`eval echo '${'$as_ac_var'}'`
33285	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33286echo "${ECHO_T}$ac_res" >&6; }
33287if test `eval echo '${'$as_ac_var'}'` = yes; then
33288  cat >>confdefs.h <<_ACEOF
33289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33290_ACEOF
33291
33292fi
33293done
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
33304do
33305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33306{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33308if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33309  echo $ECHO_N "(cached) $ECHO_C" >&6
33310else
33311  cat >conftest.$ac_ext <<_ACEOF
33312/* confdefs.h.  */
33313_ACEOF
33314cat confdefs.h >>conftest.$ac_ext
33315cat >>conftest.$ac_ext <<_ACEOF
33316/* end confdefs.h.  */
33317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33318   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33319#define $ac_func innocuous_$ac_func
33320
33321/* System header to define __stub macros and hopefully few prototypes,
33322    which can conflict with char $ac_func (); below.
33323    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33324    <limits.h> exists even on freestanding compilers.  */
33325
33326#ifdef __STDC__
33327# include <limits.h>
33328#else
33329# include <assert.h>
33330#endif
33331
33332#undef $ac_func
33333
33334/* Override any GCC internal prototype to avoid an error.
33335   Use char because int might match the return type of a GCC
33336   builtin and then its argument prototype would still apply.  */
33337#ifdef __cplusplus
33338extern "C"
33339#endif
33340char $ac_func ();
33341/* The GNU C library defines this for functions which it implements
33342    to always fail with ENOSYS.  Some functions are actually named
33343    something starting with __ and the normal name is an alias.  */
33344#if defined __stub_$ac_func || defined __stub___$ac_func
33345choke me
33346#endif
33347
33348int
33349main ()
33350{
33351return $ac_func ();
33352  ;
33353  return 0;
33354}
33355_ACEOF
33356rm -f conftest.$ac_objext conftest$ac_exeext
33357if { (ac_try="$ac_link"
33358case "(($ac_try" in
33359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33360  *) ac_try_echo=$ac_try;;
33361esac
33362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33363  (eval "$ac_link") 2>conftest.er1
33364  ac_status=$?
33365  grep -v '^ *+' conftest.er1 >conftest.err
33366  rm -f conftest.er1
33367  cat conftest.err >&5
33368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369  (exit $ac_status); } && {
33370	 test -z "$ac_c_werror_flag" ||
33371	 test ! -s conftest.err
33372       } && test -s conftest$ac_exeext &&
33373       $as_test_x conftest$ac_exeext; then
33374  eval "$as_ac_var=yes"
33375else
33376  echo "$as_me: failed program was:" >&5
33377sed 's/^/| /' conftest.$ac_ext >&5
33378
33379	eval "$as_ac_var=no"
33380fi
33381
33382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33383      conftest$ac_exeext conftest.$ac_ext
33384fi
33385ac_res=`eval echo '${'$as_ac_var'}'`
33386	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33387echo "${ECHO_T}$ac_res" >&6; }
33388if test `eval echo '${'$as_ac_var'}'` = yes; then
33389  cat >>confdefs.h <<_ACEOF
33390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33391_ACEOF
33392
33393fi
33394done
33395
33396
33397
33398
33399
33400
33401
33402for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
33403do
33404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33405{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33407if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33408  echo $ECHO_N "(cached) $ECHO_C" >&6
33409else
33410  cat >conftest.$ac_ext <<_ACEOF
33411/* confdefs.h.  */
33412_ACEOF
33413cat confdefs.h >>conftest.$ac_ext
33414cat >>conftest.$ac_ext <<_ACEOF
33415/* end confdefs.h.  */
33416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33418#define $ac_func innocuous_$ac_func
33419
33420/* System header to define __stub macros and hopefully few prototypes,
33421    which can conflict with char $ac_func (); below.
33422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33423    <limits.h> exists even on freestanding compilers.  */
33424
33425#ifdef __STDC__
33426# include <limits.h>
33427#else
33428# include <assert.h>
33429#endif
33430
33431#undef $ac_func
33432
33433/* Override any GCC internal prototype to avoid an error.
33434   Use char because int might match the return type of a GCC
33435   builtin and then its argument prototype would still apply.  */
33436#ifdef __cplusplus
33437extern "C"
33438#endif
33439char $ac_func ();
33440/* The GNU C library defines this for functions which it implements
33441    to always fail with ENOSYS.  Some functions are actually named
33442    something starting with __ and the normal name is an alias.  */
33443#if defined __stub_$ac_func || defined __stub___$ac_func
33444choke me
33445#endif
33446
33447int
33448main ()
33449{
33450return $ac_func ();
33451  ;
33452  return 0;
33453}
33454_ACEOF
33455rm -f conftest.$ac_objext conftest$ac_exeext
33456if { (ac_try="$ac_link"
33457case "(($ac_try" in
33458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33459  *) ac_try_echo=$ac_try;;
33460esac
33461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33462  (eval "$ac_link") 2>conftest.er1
33463  ac_status=$?
33464  grep -v '^ *+' conftest.er1 >conftest.err
33465  rm -f conftest.er1
33466  cat conftest.err >&5
33467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468  (exit $ac_status); } && {
33469	 test -z "$ac_c_werror_flag" ||
33470	 test ! -s conftest.err
33471       } && test -s conftest$ac_exeext &&
33472       $as_test_x conftest$ac_exeext; then
33473  eval "$as_ac_var=yes"
33474else
33475  echo "$as_me: failed program was:" >&5
33476sed 's/^/| /' conftest.$ac_ext >&5
33477
33478	eval "$as_ac_var=no"
33479fi
33480
33481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33482      conftest$ac_exeext conftest.$ac_ext
33483fi
33484ac_res=`eval echo '${'$as_ac_var'}'`
33485	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33486echo "${ECHO_T}$ac_res" >&6; }
33487if test `eval echo '${'$as_ac_var'}'` = yes; then
33488  cat >>confdefs.h <<_ACEOF
33489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33490_ACEOF
33491
33492fi
33493done
33494
33495
33496
33497
33498
33499
33500
33501for ac_func in getdents __getdents _lseek __lseek _read __read
33502do
33503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33504{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33507  echo $ECHO_N "(cached) $ECHO_C" >&6
33508else
33509  cat >conftest.$ac_ext <<_ACEOF
33510/* confdefs.h.  */
33511_ACEOF
33512cat confdefs.h >>conftest.$ac_ext
33513cat >>conftest.$ac_ext <<_ACEOF
33514/* end confdefs.h.  */
33515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33516   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33517#define $ac_func innocuous_$ac_func
33518
33519/* System header to define __stub macros and hopefully few prototypes,
33520    which can conflict with char $ac_func (); below.
33521    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33522    <limits.h> exists even on freestanding compilers.  */
33523
33524#ifdef __STDC__
33525# include <limits.h>
33526#else
33527# include <assert.h>
33528#endif
33529
33530#undef $ac_func
33531
33532/* Override any GCC internal prototype to avoid an error.
33533   Use char because int might match the return type of a GCC
33534   builtin and then its argument prototype would still apply.  */
33535#ifdef __cplusplus
33536extern "C"
33537#endif
33538char $ac_func ();
33539/* The GNU C library defines this for functions which it implements
33540    to always fail with ENOSYS.  Some functions are actually named
33541    something starting with __ and the normal name is an alias.  */
33542#if defined __stub_$ac_func || defined __stub___$ac_func
33543choke me
33544#endif
33545
33546int
33547main ()
33548{
33549return $ac_func ();
33550  ;
33551  return 0;
33552}
33553_ACEOF
33554rm -f conftest.$ac_objext conftest$ac_exeext
33555if { (ac_try="$ac_link"
33556case "(($ac_try" in
33557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558  *) ac_try_echo=$ac_try;;
33559esac
33560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561  (eval "$ac_link") 2>conftest.er1
33562  ac_status=$?
33563  grep -v '^ *+' conftest.er1 >conftest.err
33564  rm -f conftest.er1
33565  cat conftest.err >&5
33566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567  (exit $ac_status); } && {
33568	 test -z "$ac_c_werror_flag" ||
33569	 test ! -s conftest.err
33570       } && test -s conftest$ac_exeext &&
33571       $as_test_x conftest$ac_exeext; then
33572  eval "$as_ac_var=yes"
33573else
33574  echo "$as_me: failed program was:" >&5
33575sed 's/^/| /' conftest.$ac_ext >&5
33576
33577	eval "$as_ac_var=no"
33578fi
33579
33580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33581      conftest$ac_exeext conftest.$ac_ext
33582fi
33583ac_res=`eval echo '${'$as_ac_var'}'`
33584	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33585echo "${ECHO_T}$ac_res" >&6; }
33586if test `eval echo '${'$as_ac_var'}'` = yes; then
33587  cat >>confdefs.h <<_ACEOF
33588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33589_ACEOF
33590
33591fi
33592done
33593
33594
33595
33596
33597
33598
33599for ac_func in getdirentries _write __write _fork __fork
33600do
33601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33602{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33605  echo $ECHO_N "(cached) $ECHO_C" >&6
33606else
33607  cat >conftest.$ac_ext <<_ACEOF
33608/* confdefs.h.  */
33609_ACEOF
33610cat confdefs.h >>conftest.$ac_ext
33611cat >>conftest.$ac_ext <<_ACEOF
33612/* end confdefs.h.  */
33613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33614   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33615#define $ac_func innocuous_$ac_func
33616
33617/* System header to define __stub macros and hopefully few prototypes,
33618    which can conflict with char $ac_func (); below.
33619    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33620    <limits.h> exists even on freestanding compilers.  */
33621
33622#ifdef __STDC__
33623# include <limits.h>
33624#else
33625# include <assert.h>
33626#endif
33627
33628#undef $ac_func
33629
33630/* Override any GCC internal prototype to avoid an error.
33631   Use char because int might match the return type of a GCC
33632   builtin and then its argument prototype would still apply.  */
33633#ifdef __cplusplus
33634extern "C"
33635#endif
33636char $ac_func ();
33637/* The GNU C library defines this for functions which it implements
33638    to always fail with ENOSYS.  Some functions are actually named
33639    something starting with __ and the normal name is an alias.  */
33640#if defined __stub_$ac_func || defined __stub___$ac_func
33641choke me
33642#endif
33643
33644int
33645main ()
33646{
33647return $ac_func ();
33648  ;
33649  return 0;
33650}
33651_ACEOF
33652rm -f conftest.$ac_objext conftest$ac_exeext
33653if { (ac_try="$ac_link"
33654case "(($ac_try" in
33655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33656  *) ac_try_echo=$ac_try;;
33657esac
33658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659  (eval "$ac_link") 2>conftest.er1
33660  ac_status=$?
33661  grep -v '^ *+' conftest.er1 >conftest.err
33662  rm -f conftest.er1
33663  cat conftest.err >&5
33664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665  (exit $ac_status); } && {
33666	 test -z "$ac_c_werror_flag" ||
33667	 test ! -s conftest.err
33668       } && test -s conftest$ac_exeext &&
33669       $as_test_x conftest$ac_exeext; then
33670  eval "$as_ac_var=yes"
33671else
33672  echo "$as_me: failed program was:" >&5
33673sed 's/^/| /' conftest.$ac_ext >&5
33674
33675	eval "$as_ac_var=no"
33676fi
33677
33678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33679      conftest$ac_exeext conftest.$ac_ext
33680fi
33681ac_res=`eval echo '${'$as_ac_var'}'`
33682	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33683echo "${ECHO_T}$ac_res" >&6; }
33684if test `eval echo '${'$as_ac_var'}'` = yes; then
33685  cat >>confdefs.h <<_ACEOF
33686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33687_ACEOF
33688
33689fi
33690done
33691
33692
33693
33694
33695
33696
33697
33698for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
33699do
33700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33701{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33703if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33704  echo $ECHO_N "(cached) $ECHO_C" >&6
33705else
33706  cat >conftest.$ac_ext <<_ACEOF
33707/* confdefs.h.  */
33708_ACEOF
33709cat confdefs.h >>conftest.$ac_ext
33710cat >>conftest.$ac_ext <<_ACEOF
33711/* end confdefs.h.  */
33712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33713   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33714#define $ac_func innocuous_$ac_func
33715
33716/* System header to define __stub macros and hopefully few prototypes,
33717    which can conflict with char $ac_func (); below.
33718    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33719    <limits.h> exists even on freestanding compilers.  */
33720
33721#ifdef __STDC__
33722# include <limits.h>
33723#else
33724# include <assert.h>
33725#endif
33726
33727#undef $ac_func
33728
33729/* Override any GCC internal prototype to avoid an error.
33730   Use char because int might match the return type of a GCC
33731   builtin and then its argument prototype would still apply.  */
33732#ifdef __cplusplus
33733extern "C"
33734#endif
33735char $ac_func ();
33736/* The GNU C library defines this for functions which it implements
33737    to always fail with ENOSYS.  Some functions are actually named
33738    something starting with __ and the normal name is an alias.  */
33739#if defined __stub_$ac_func || defined __stub___$ac_func
33740choke me
33741#endif
33742
33743int
33744main ()
33745{
33746return $ac_func ();
33747  ;
33748  return 0;
33749}
33750_ACEOF
33751rm -f conftest.$ac_objext conftest$ac_exeext
33752if { (ac_try="$ac_link"
33753case "(($ac_try" in
33754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755  *) ac_try_echo=$ac_try;;
33756esac
33757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758  (eval "$ac_link") 2>conftest.er1
33759  ac_status=$?
33760  grep -v '^ *+' conftest.er1 >conftest.err
33761  rm -f conftest.er1
33762  cat conftest.err >&5
33763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764  (exit $ac_status); } && {
33765	 test -z "$ac_c_werror_flag" ||
33766	 test ! -s conftest.err
33767       } && test -s conftest$ac_exeext &&
33768       $as_test_x conftest$ac_exeext; then
33769  eval "$as_ac_var=yes"
33770else
33771  echo "$as_me: failed program was:" >&5
33772sed 's/^/| /' conftest.$ac_ext >&5
33773
33774	eval "$as_ac_var=no"
33775fi
33776
33777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33778      conftest$ac_exeext conftest.$ac_ext
33779fi
33780ac_res=`eval echo '${'$as_ac_var'}'`
33781	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33782echo "${ECHO_T}$ac_res" >&6; }
33783if test `eval echo '${'$as_ac_var'}'` = yes; then
33784  cat >>confdefs.h <<_ACEOF
33785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33786_ACEOF
33787
33788fi
33789done
33790
33791
33792
33793
33794
33795
33796
33797
33798for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
33799do
33800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33801{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33803if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33804  echo $ECHO_N "(cached) $ECHO_C" >&6
33805else
33806  cat >conftest.$ac_ext <<_ACEOF
33807/* confdefs.h.  */
33808_ACEOF
33809cat confdefs.h >>conftest.$ac_ext
33810cat >>conftest.$ac_ext <<_ACEOF
33811/* end confdefs.h.  */
33812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33813   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33814#define $ac_func innocuous_$ac_func
33815
33816/* System header to define __stub macros and hopefully few prototypes,
33817    which can conflict with char $ac_func (); below.
33818    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33819    <limits.h> exists even on freestanding compilers.  */
33820
33821#ifdef __STDC__
33822# include <limits.h>
33823#else
33824# include <assert.h>
33825#endif
33826
33827#undef $ac_func
33828
33829/* Override any GCC internal prototype to avoid an error.
33830   Use char because int might match the return type of a GCC
33831   builtin and then its argument prototype would still apply.  */
33832#ifdef __cplusplus
33833extern "C"
33834#endif
33835char $ac_func ();
33836/* The GNU C library defines this for functions which it implements
33837    to always fail with ENOSYS.  Some functions are actually named
33838    something starting with __ and the normal name is an alias.  */
33839#if defined __stub_$ac_func || defined __stub___$ac_func
33840choke me
33841#endif
33842
33843int
33844main ()
33845{
33846return $ac_func ();
33847  ;
33848  return 0;
33849}
33850_ACEOF
33851rm -f conftest.$ac_objext conftest$ac_exeext
33852if { (ac_try="$ac_link"
33853case "(($ac_try" in
33854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33855  *) ac_try_echo=$ac_try;;
33856esac
33857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33858  (eval "$ac_link") 2>conftest.er1
33859  ac_status=$?
33860  grep -v '^ *+' conftest.er1 >conftest.err
33861  rm -f conftest.er1
33862  cat conftest.err >&5
33863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864  (exit $ac_status); } && {
33865	 test -z "$ac_c_werror_flag" ||
33866	 test ! -s conftest.err
33867       } && test -s conftest$ac_exeext &&
33868       $as_test_x conftest$ac_exeext; then
33869  eval "$as_ac_var=yes"
33870else
33871  echo "$as_me: failed program was:" >&5
33872sed 's/^/| /' conftest.$ac_ext >&5
33873
33874	eval "$as_ac_var=no"
33875fi
33876
33877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33878      conftest$ac_exeext conftest.$ac_ext
33879fi
33880ac_res=`eval echo '${'$as_ac_var'}'`
33881	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33882echo "${ECHO_T}$ac_res" >&6; }
33883if test `eval echo '${'$as_ac_var'}'` = yes; then
33884  cat >>confdefs.h <<_ACEOF
33885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33886_ACEOF
33887
33888fi
33889done
33890
33891
33892
33893
33894
33895
33896
33897for ac_func in pread _pread __pread pread64 _pread64 __pread64
33898do
33899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33900{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33902if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33903  echo $ECHO_N "(cached) $ECHO_C" >&6
33904else
33905  cat >conftest.$ac_ext <<_ACEOF
33906/* confdefs.h.  */
33907_ACEOF
33908cat confdefs.h >>conftest.$ac_ext
33909cat >>conftest.$ac_ext <<_ACEOF
33910/* end confdefs.h.  */
33911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33912   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33913#define $ac_func innocuous_$ac_func
33914
33915/* System header to define __stub macros and hopefully few prototypes,
33916    which can conflict with char $ac_func (); below.
33917    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33918    <limits.h> exists even on freestanding compilers.  */
33919
33920#ifdef __STDC__
33921# include <limits.h>
33922#else
33923# include <assert.h>
33924#endif
33925
33926#undef $ac_func
33927
33928/* Override any GCC internal prototype to avoid an error.
33929   Use char because int might match the return type of a GCC
33930   builtin and then its argument prototype would still apply.  */
33931#ifdef __cplusplus
33932extern "C"
33933#endif
33934char $ac_func ();
33935/* The GNU C library defines this for functions which it implements
33936    to always fail with ENOSYS.  Some functions are actually named
33937    something starting with __ and the normal name is an alias.  */
33938#if defined __stub_$ac_func || defined __stub___$ac_func
33939choke me
33940#endif
33941
33942int
33943main ()
33944{
33945return $ac_func ();
33946  ;
33947  return 0;
33948}
33949_ACEOF
33950rm -f conftest.$ac_objext conftest$ac_exeext
33951if { (ac_try="$ac_link"
33952case "(($ac_try" in
33953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33954  *) ac_try_echo=$ac_try;;
33955esac
33956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33957  (eval "$ac_link") 2>conftest.er1
33958  ac_status=$?
33959  grep -v '^ *+' conftest.er1 >conftest.err
33960  rm -f conftest.er1
33961  cat conftest.err >&5
33962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963  (exit $ac_status); } && {
33964	 test -z "$ac_c_werror_flag" ||
33965	 test ! -s conftest.err
33966       } && test -s conftest$ac_exeext &&
33967       $as_test_x conftest$ac_exeext; then
33968  eval "$as_ac_var=yes"
33969else
33970  echo "$as_me: failed program was:" >&5
33971sed 's/^/| /' conftest.$ac_ext >&5
33972
33973	eval "$as_ac_var=no"
33974fi
33975
33976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33977      conftest$ac_exeext conftest.$ac_ext
33978fi
33979ac_res=`eval echo '${'$as_ac_var'}'`
33980	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33981echo "${ECHO_T}$ac_res" >&6; }
33982if test `eval echo '${'$as_ac_var'}'` = yes; then
33983  cat >>confdefs.h <<_ACEOF
33984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33985_ACEOF
33986
33987fi
33988done
33989
33990
33991
33992
33993
33994
33995
33996for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
33997do
33998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33999{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34001if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34002  echo $ECHO_N "(cached) $ECHO_C" >&6
34003else
34004  cat >conftest.$ac_ext <<_ACEOF
34005/* confdefs.h.  */
34006_ACEOF
34007cat confdefs.h >>conftest.$ac_ext
34008cat >>conftest.$ac_ext <<_ACEOF
34009/* end confdefs.h.  */
34010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34011   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34012#define $ac_func innocuous_$ac_func
34013
34014/* System header to define __stub macros and hopefully few prototypes,
34015    which can conflict with char $ac_func (); below.
34016    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34017    <limits.h> exists even on freestanding compilers.  */
34018
34019#ifdef __STDC__
34020# include <limits.h>
34021#else
34022# include <assert.h>
34023#endif
34024
34025#undef $ac_func
34026
34027/* Override any GCC internal prototype to avoid an error.
34028   Use char because int might match the return type of a GCC
34029   builtin and then its argument prototype would still apply.  */
34030#ifdef __cplusplus
34031extern "C"
34032#endif
34033char $ac_func ();
34034/* The GNU C library defines this for functions which it implements
34035    to always fail with ENOSYS.  Some functions are actually named
34036    something starting with __ and the normal name is an alias.  */
34037#if defined __stub_$ac_func || defined __stub___$ac_func
34038choke me
34039#endif
34040
34041int
34042main ()
34043{
34044return $ac_func ();
34045  ;
34046  return 0;
34047}
34048_ACEOF
34049rm -f conftest.$ac_objext conftest$ac_exeext
34050if { (ac_try="$ac_link"
34051case "(($ac_try" in
34052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34053  *) ac_try_echo=$ac_try;;
34054esac
34055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34056  (eval "$ac_link") 2>conftest.er1
34057  ac_status=$?
34058  grep -v '^ *+' conftest.er1 >conftest.err
34059  rm -f conftest.er1
34060  cat conftest.err >&5
34061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062  (exit $ac_status); } && {
34063	 test -z "$ac_c_werror_flag" ||
34064	 test ! -s conftest.err
34065       } && test -s conftest$ac_exeext &&
34066       $as_test_x conftest$ac_exeext; then
34067  eval "$as_ac_var=yes"
34068else
34069  echo "$as_me: failed program was:" >&5
34070sed 's/^/| /' conftest.$ac_ext >&5
34071
34072	eval "$as_ac_var=no"
34073fi
34074
34075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34076      conftest$ac_exeext conftest.$ac_ext
34077fi
34078ac_res=`eval echo '${'$as_ac_var'}'`
34079	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34080echo "${ECHO_T}$ac_res" >&6; }
34081if test `eval echo '${'$as_ac_var'}'` = yes; then
34082  cat >>confdefs.h <<_ACEOF
34083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34084_ACEOF
34085
34086fi
34087done
34088
34089
34090
34091
34092
34093for ac_func in open64 _open64 __open64 creat64
34094do
34095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34099  echo $ECHO_N "(cached) $ECHO_C" >&6
34100else
34101  cat >conftest.$ac_ext <<_ACEOF
34102/* confdefs.h.  */
34103_ACEOF
34104cat confdefs.h >>conftest.$ac_ext
34105cat >>conftest.$ac_ext <<_ACEOF
34106/* end confdefs.h.  */
34107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34108   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34109#define $ac_func innocuous_$ac_func
34110
34111/* System header to define __stub macros and hopefully few prototypes,
34112    which can conflict with char $ac_func (); below.
34113    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34114    <limits.h> exists even on freestanding compilers.  */
34115
34116#ifdef __STDC__
34117# include <limits.h>
34118#else
34119# include <assert.h>
34120#endif
34121
34122#undef $ac_func
34123
34124/* Override any GCC internal prototype to avoid an error.
34125   Use char because int might match the return type of a GCC
34126   builtin and then its argument prototype would still apply.  */
34127#ifdef __cplusplus
34128extern "C"
34129#endif
34130char $ac_func ();
34131/* The GNU C library defines this for functions which it implements
34132    to always fail with ENOSYS.  Some functions are actually named
34133    something starting with __ and the normal name is an alias.  */
34134#if defined __stub_$ac_func || defined __stub___$ac_func
34135choke me
34136#endif
34137
34138int
34139main ()
34140{
34141return $ac_func ();
34142  ;
34143  return 0;
34144}
34145_ACEOF
34146rm -f conftest.$ac_objext conftest$ac_exeext
34147if { (ac_try="$ac_link"
34148case "(($ac_try" in
34149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34150  *) ac_try_echo=$ac_try;;
34151esac
34152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34153  (eval "$ac_link") 2>conftest.er1
34154  ac_status=$?
34155  grep -v '^ *+' conftest.er1 >conftest.err
34156  rm -f conftest.er1
34157  cat conftest.err >&5
34158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159  (exit $ac_status); } && {
34160	 test -z "$ac_c_werror_flag" ||
34161	 test ! -s conftest.err
34162       } && test -s conftest$ac_exeext &&
34163       $as_test_x conftest$ac_exeext; then
34164  eval "$as_ac_var=yes"
34165else
34166  echo "$as_me: failed program was:" >&5
34167sed 's/^/| /' conftest.$ac_ext >&5
34168
34169	eval "$as_ac_var=no"
34170fi
34171
34172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34173      conftest$ac_exeext conftest.$ac_ext
34174fi
34175ac_res=`eval echo '${'$as_ac_var'}'`
34176	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34177echo "${ECHO_T}$ac_res" >&6; }
34178if test `eval echo '${'$as_ac_var'}'` = yes; then
34179  cat >>confdefs.h <<_ACEOF
34180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34181_ACEOF
34182
34183fi
34184done
34185
34186
34187for ac_func in prctl
34188do
34189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34190{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34193  echo $ECHO_N "(cached) $ECHO_C" >&6
34194else
34195  cat >conftest.$ac_ext <<_ACEOF
34196/* confdefs.h.  */
34197_ACEOF
34198cat confdefs.h >>conftest.$ac_ext
34199cat >>conftest.$ac_ext <<_ACEOF
34200/* end confdefs.h.  */
34201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34202   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34203#define $ac_func innocuous_$ac_func
34204
34205/* System header to define __stub macros and hopefully few prototypes,
34206    which can conflict with char $ac_func (); below.
34207    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34208    <limits.h> exists even on freestanding compilers.  */
34209
34210#ifdef __STDC__
34211# include <limits.h>
34212#else
34213# include <assert.h>
34214#endif
34215
34216#undef $ac_func
34217
34218/* Override any GCC internal prototype to avoid an error.
34219   Use char because int might match the return type of a GCC
34220   builtin and then its argument prototype would still apply.  */
34221#ifdef __cplusplus
34222extern "C"
34223#endif
34224char $ac_func ();
34225/* The GNU C library defines this for functions which it implements
34226    to always fail with ENOSYS.  Some functions are actually named
34227    something starting with __ and the normal name is an alias.  */
34228#if defined __stub_$ac_func || defined __stub___$ac_func
34229choke me
34230#endif
34231
34232int
34233main ()
34234{
34235return $ac_func ();
34236  ;
34237  return 0;
34238}
34239_ACEOF
34240rm -f conftest.$ac_objext conftest$ac_exeext
34241if { (ac_try="$ac_link"
34242case "(($ac_try" in
34243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34244  *) ac_try_echo=$ac_try;;
34245esac
34246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34247  (eval "$ac_link") 2>conftest.er1
34248  ac_status=$?
34249  grep -v '^ *+' conftest.er1 >conftest.err
34250  rm -f conftest.er1
34251  cat conftest.err >&5
34252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253  (exit $ac_status); } && {
34254	 test -z "$ac_c_werror_flag" ||
34255	 test ! -s conftest.err
34256       } && test -s conftest$ac_exeext &&
34257       $as_test_x conftest$ac_exeext; then
34258  eval "$as_ac_var=yes"
34259else
34260  echo "$as_me: failed program was:" >&5
34261sed 's/^/| /' conftest.$ac_ext >&5
34262
34263	eval "$as_ac_var=no"
34264fi
34265
34266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34267      conftest$ac_exeext conftest.$ac_ext
34268fi
34269ac_res=`eval echo '${'$as_ac_var'}'`
34270	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34271echo "${ECHO_T}$ac_res" >&6; }
34272if test `eval echo '${'$as_ac_var'}'` = yes; then
34273  cat >>confdefs.h <<_ACEOF
34274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34275_ACEOF
34276
34277fi
34278done
34279
34280
34281cat >conftest.$ac_ext <<_ACEOF
34282/* confdefs.h.  */
34283_ACEOF
34284cat confdefs.h >>conftest.$ac_ext
34285cat >>conftest.$ac_ext <<_ACEOF
34286/* end confdefs.h.  */
34287
34288#ifdef HAVE_SYS_PRCTL_H
34289#include <sys/prctl.h>
34290#endif
34291
34292int
34293main ()
34294{
34295int i; i = prtcl(0);
34296  ;
34297  return 0;
34298}
34299_ACEOF
34300rm -f conftest.$ac_objext
34301if { (ac_try="$ac_compile"
34302case "(($ac_try" in
34303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34304  *) ac_try_echo=$ac_try;;
34305esac
34306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34307  (eval "$ac_compile") 2>conftest.er1
34308  ac_status=$?
34309  grep -v '^ *+' conftest.er1 >conftest.err
34310  rm -f conftest.er1
34311  cat conftest.err >&5
34312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313  (exit $ac_status); } && {
34314	 test -z "$ac_c_werror_flag" ||
34315	 test ! -s conftest.err
34316       } && test -s conftest.$ac_objext; then
34317
34318cat >>confdefs.h <<\_ACEOF
34319#define HAVE_PRCTL 1
34320_ACEOF
34321
34322else
34323  echo "$as_me: failed program was:" >&5
34324sed 's/^/| /' conftest.$ac_ext >&5
34325
34326
34327fi
34328
34329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34330
34331#
34332#
34333#
34334case "$host_os" in
34335    *linux*)
34336       # glibc <= 2.3.2 has a broken getgrouplist
34337       if test "$cross_compiling" = yes; then
34338#  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34339# See \`config.log' for more details." >&5
34340# echo "$as_me: error: cannot run test program while cross compiling
34341# See \`config.log' for more details." >&2;}
34342#    { (exit 1); exit 1; }; }
34343linux_getgrouplist_ok=no
34344else
34345  cat >conftest.$ac_ext <<_ACEOF
34346/* confdefs.h.  */
34347_ACEOF
34348cat confdefs.h >>conftest.$ac_ext
34349cat >>conftest.$ac_ext <<_ACEOF
34350/* end confdefs.h.  */
34351
34352#include <unistd.h>
34353#include <sys/utsname.h>
34354main() {
34355       /* glibc up to 2.3 has a broken getgrouplist */
34356#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
34357       int libc_major = __GLIBC__;
34358       int libc_minor = __GLIBC_MINOR__;
34359
34360       if (libc_major < 2)
34361              exit(1);
34362       if ((libc_major == 2) && (libc_minor <= 3))
34363              exit(1);
34364#endif
34365       exit(0);
34366}
34367
34368_ACEOF
34369rm -f conftest$ac_exeext
34370if { (ac_try="$ac_link"
34371case "(($ac_try" in
34372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34373  *) ac_try_echo=$ac_try;;
34374esac
34375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34376  (eval "$ac_link") 2>&5
34377  ac_status=$?
34378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34380  { (case "(($ac_try" in
34381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34382  *) ac_try_echo=$ac_try;;
34383esac
34384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34385  (eval "$ac_try") 2>&5
34386  ac_status=$?
34387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388  (exit $ac_status); }; }; then
34389  linux_getgrouplist_ok=yes
34390else
34391  echo "$as_me: program exited with status $ac_status" >&5
34392echo "$as_me: failed program was:" >&5
34393sed 's/^/| /' conftest.$ac_ext >&5
34394
34395( exit $ac_status )
34396linux_getgrouplist_ok=no
34397fi
34398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34399fi
34400
34401
34402       if test x"$linux_getgrouplist_ok" = x"yes"; then
34403
34404cat >>confdefs.h <<\_ACEOF
34405#define HAVE_GETGROUPLIST 1
34406_ACEOF
34407
34408       fi
34409       ;;
34410    *)
34411
34412for ac_func in getgrouplist
34413do
34414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34415{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34417if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34418  echo $ECHO_N "(cached) $ECHO_C" >&6
34419else
34420  cat >conftest.$ac_ext <<_ACEOF
34421/* confdefs.h.  */
34422_ACEOF
34423cat confdefs.h >>conftest.$ac_ext
34424cat >>conftest.$ac_ext <<_ACEOF
34425/* end confdefs.h.  */
34426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34427   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34428#define $ac_func innocuous_$ac_func
34429
34430/* System header to define __stub macros and hopefully few prototypes,
34431    which can conflict with char $ac_func (); below.
34432    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34433    <limits.h> exists even on freestanding compilers.  */
34434
34435#ifdef __STDC__
34436# include <limits.h>
34437#else
34438# include <assert.h>
34439#endif
34440
34441#undef $ac_func
34442
34443/* Override any GCC internal prototype to avoid an error.
34444   Use char because int might match the return type of a GCC
34445   builtin and then its argument prototype would still apply.  */
34446#ifdef __cplusplus
34447extern "C"
34448#endif
34449char $ac_func ();
34450/* The GNU C library defines this for functions which it implements
34451    to always fail with ENOSYS.  Some functions are actually named
34452    something starting with __ and the normal name is an alias.  */
34453#if defined __stub_$ac_func || defined __stub___$ac_func
34454choke me
34455#endif
34456
34457int
34458main ()
34459{
34460return $ac_func ();
34461  ;
34462  return 0;
34463}
34464_ACEOF
34465rm -f conftest.$ac_objext conftest$ac_exeext
34466if { (ac_try="$ac_link"
34467case "(($ac_try" in
34468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34469  *) ac_try_echo=$ac_try;;
34470esac
34471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34472  (eval "$ac_link") 2>conftest.er1
34473  ac_status=$?
34474  grep -v '^ *+' conftest.er1 >conftest.err
34475  rm -f conftest.er1
34476  cat conftest.err >&5
34477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478  (exit $ac_status); } && {
34479	 test -z "$ac_c_werror_flag" ||
34480	 test ! -s conftest.err
34481       } && test -s conftest$ac_exeext &&
34482       $as_test_x conftest$ac_exeext; then
34483  eval "$as_ac_var=yes"
34484else
34485  echo "$as_me: failed program was:" >&5
34486sed 's/^/| /' conftest.$ac_ext >&5
34487
34488	eval "$as_ac_var=no"
34489fi
34490
34491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34492      conftest$ac_exeext conftest.$ac_ext
34493fi
34494ac_res=`eval echo '${'$as_ac_var'}'`
34495	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34496echo "${ECHO_T}$ac_res" >&6; }
34497if test `eval echo '${'$as_ac_var'}'` = yes; then
34498  cat >>confdefs.h <<_ACEOF
34499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34500_ACEOF
34501
34502fi
34503done
34504
34505       ;;
34506esac
34507
34508#
34509# stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
34510#
34511
34512if test x$ac_cv_func_stat64 = xno ; then
34513  { echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
34514echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6; }
34515  cat >conftest.$ac_ext <<_ACEOF
34516/* confdefs.h.  */
34517_ACEOF
34518cat confdefs.h >>conftest.$ac_ext
34519cat >>conftest.$ac_ext <<_ACEOF
34520/* end confdefs.h.  */
34521
34522#if defined(HAVE_UNISTD_H)
34523#include <unistd.h>
34524#endif
34525#include <sys/stat.h>
34526
34527int
34528main ()
34529{
34530struct stat64 st64; exit(stat64(".",&st64));
34531  ;
34532  return 0;
34533}
34534_ACEOF
34535rm -f conftest.$ac_objext conftest$ac_exeext
34536if { (ac_try="$ac_link"
34537case "(($ac_try" in
34538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34539  *) ac_try_echo=$ac_try;;
34540esac
34541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34542  (eval "$ac_link") 2>conftest.er1
34543  ac_status=$?
34544  grep -v '^ *+' conftest.er1 >conftest.err
34545  rm -f conftest.er1
34546  cat conftest.err >&5
34547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548  (exit $ac_status); } && {
34549	 test -z "$ac_c_werror_flag" ||
34550	 test ! -s conftest.err
34551       } && test -s conftest$ac_exeext &&
34552       $as_test_x conftest$ac_exeext; then
34553  ac_cv_func_stat64=yes
34554else
34555  echo "$as_me: failed program was:" >&5
34556sed 's/^/| /' conftest.$ac_ext >&5
34557
34558
34559fi
34560
34561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34562      conftest$ac_exeext conftest.$ac_ext
34563  { echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
34564echo "${ECHO_T}$ac_cv_func_stat64" >&6; }
34565  if test x$ac_cv_func_stat64 = xyes ; then
34566
34567cat >>confdefs.h <<\_ACEOF
34568#define HAVE_STAT64 1
34569_ACEOF
34570
34571  fi
34572fi
34573
34574if test x$ac_cv_func_lstat64 = xno ; then
34575  { echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
34576echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6; }
34577  cat >conftest.$ac_ext <<_ACEOF
34578/* confdefs.h.  */
34579_ACEOF
34580cat confdefs.h >>conftest.$ac_ext
34581cat >>conftest.$ac_ext <<_ACEOF
34582/* end confdefs.h.  */
34583
34584#if defined(HAVE_UNISTD_H)
34585#include <unistd.h>
34586#endif
34587#include <sys/stat.h>
34588
34589int
34590main ()
34591{
34592struct stat64 st64; exit(lstat64(".",&st64));
34593  ;
34594  return 0;
34595}
34596_ACEOF
34597rm -f conftest.$ac_objext conftest$ac_exeext
34598if { (ac_try="$ac_link"
34599case "(($ac_try" in
34600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34601  *) ac_try_echo=$ac_try;;
34602esac
34603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34604  (eval "$ac_link") 2>conftest.er1
34605  ac_status=$?
34606  grep -v '^ *+' conftest.er1 >conftest.err
34607  rm -f conftest.er1
34608  cat conftest.err >&5
34609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610  (exit $ac_status); } && {
34611	 test -z "$ac_c_werror_flag" ||
34612	 test ! -s conftest.err
34613       } && test -s conftest$ac_exeext &&
34614       $as_test_x conftest$ac_exeext; then
34615  ac_cv_func_lstat64=yes
34616else
34617  echo "$as_me: failed program was:" >&5
34618sed 's/^/| /' conftest.$ac_ext >&5
34619
34620
34621fi
34622
34623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34624      conftest$ac_exeext conftest.$ac_ext
34625  { echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
34626echo "${ECHO_T}$ac_cv_func_lstat64" >&6; }
34627  if test x$ac_cv_func_lstat64 = xyes ; then
34628    cat >>confdefs.h <<\_ACEOF
34629#define HAVE_LSTAT64 Whether lstat64() is available
34630_ACEOF
34631
34632  fi
34633fi
34634
34635if test x$ac_cv_func_fstat64 = xno ; then
34636  { echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
34637echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6; }
34638  cat >conftest.$ac_ext <<_ACEOF
34639/* confdefs.h.  */
34640_ACEOF
34641cat confdefs.h >>conftest.$ac_ext
34642cat >>conftest.$ac_ext <<_ACEOF
34643/* end confdefs.h.  */
34644
34645#if defined(HAVE_UNISTD_H)
34646#include <unistd.h>
34647#endif
34648#include <sys/stat.h>
34649
34650int
34651main ()
34652{
34653struct stat64 st64; exit(fstat64(0,&st64));
34654  ;
34655  return 0;
34656}
34657_ACEOF
34658rm -f conftest.$ac_objext conftest$ac_exeext
34659if { (ac_try="$ac_link"
34660case "(($ac_try" in
34661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662  *) ac_try_echo=$ac_try;;
34663esac
34664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665  (eval "$ac_link") 2>conftest.er1
34666  ac_status=$?
34667  grep -v '^ *+' conftest.er1 >conftest.err
34668  rm -f conftest.er1
34669  cat conftest.err >&5
34670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671  (exit $ac_status); } && {
34672	 test -z "$ac_c_werror_flag" ||
34673	 test ! -s conftest.err
34674       } && test -s conftest$ac_exeext &&
34675       $as_test_x conftest$ac_exeext; then
34676  ac_cv_func_fstat64=yes
34677else
34678  echo "$as_me: failed program was:" >&5
34679sed 's/^/| /' conftest.$ac_ext >&5
34680
34681
34682fi
34683
34684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34685      conftest$ac_exeext conftest.$ac_ext
34686  { echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
34687echo "${ECHO_T}$ac_cv_func_fstat64" >&6; }
34688  if test x$ac_cv_func_fstat64 = xyes ; then
34689
34690cat >>confdefs.h <<\_ACEOF
34691#define HAVE_FSTAT64 1
34692_ACEOF
34693
34694  fi
34695fi
34696
34697#################################################
34698# Check whether struct stat has timestamps with sub-second resolution.
34699# At least IRIX and Solaris have these.
34700#
34701# We check that
34702#	all of st_mtim, st_atim and st_ctim exist
34703#	all of the members are in fact of type struct timespec
34704#
34705# There is some conflicting standards weirdness about whether we should use
34706# "struct timespec" or "timespec_t". Linux doesn't have timespec_t, so we
34707# prefer struct timespec.
34708
34709{ echo "$as_me:$LINENO: checking whether struct stat has sub-second timestamps" >&5
34710echo $ECHO_N "checking whether struct stat has sub-second timestamps... $ECHO_C" >&6; }
34711if test "${samba_stat_hires+set}" = set; then
34712  echo $ECHO_N "(cached) $ECHO_C" >&6
34713else
34714
34715	cat >conftest.$ac_ext <<_ACEOF
34716/* confdefs.h.  */
34717_ACEOF
34718cat confdefs.h >>conftest.$ac_ext
34719cat >>conftest.$ac_ext <<_ACEOF
34720/* end confdefs.h.  */
34721
34722#if TIME_WITH_SYS_TIME
34723# include <sys/time.h>
34724# include <time.h>
34725#else
34726# if HAVE_SYS_TIME_H
34727#  include <sys/time.h>
34728# else
34729#  include <time.h>
34730# endif
34731#endif
34732#ifdef HAVE_SYS_STAT_H
34733#include <sys/stat.h>
34734#endif
34735
34736int
34737main ()
34738{
34739
34740		struct timespec t;
34741		struct stat s = {0};
34742		t.tv_sec = s.st_mtim.tv_sec;
34743		t.tv_nsec = s.st_mtim.tv_nsec;
34744		t.tv_sec = s.st_ctim.tv_sec;
34745		t.tv_nsec = s.st_ctim.tv_nsec;
34746		t.tv_sec = s.st_atim.tv_sec;
34747		t.tv_nsec = s.st_atim.tv_nsec;
34748
34749  ;
34750  return 0;
34751}
34752_ACEOF
34753rm -f conftest.$ac_objext
34754if { (ac_try="$ac_compile"
34755case "(($ac_try" in
34756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757  *) ac_try_echo=$ac_try;;
34758esac
34759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760  (eval "$ac_compile") 2>conftest.er1
34761  ac_status=$?
34762  grep -v '^ *+' conftest.er1 >conftest.err
34763  rm -f conftest.er1
34764  cat conftest.err >&5
34765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766  (exit $ac_status); } && {
34767	 test -z "$ac_c_werror_flag" ||
34768	 test ! -s conftest.err
34769       } && test -s conftest.$ac_objext; then
34770  samba_stat_hires=yes
34771else
34772  echo "$as_me: failed program was:" >&5
34773sed 's/^/| /' conftest.$ac_ext >&5
34774
34775	samba_stat_hires=no
34776fi
34777
34778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34779
34780fi
34781{ echo "$as_me:$LINENO: result: $samba_stat_hires" >&5
34782echo "${ECHO_T}$samba_stat_hires" >&6; }
34783
34784if test x"$samba_stat_hires" = x"yes" ; then
34785
34786cat >>confdefs.h <<\_ACEOF
34787#define HAVE_STAT_ST_MTIM 1
34788_ACEOF
34789
34790
34791cat >>confdefs.h <<\_ACEOF
34792#define HAVE_STAT_ST_ATIM 1
34793_ACEOF
34794
34795
34796cat >>confdefs.h <<\_ACEOF
34797#define HAVE_STAT_ST_CTIM 1
34798_ACEOF
34799
34800
34801cat >>confdefs.h <<\_ACEOF
34802#define HAVE_STAT_HIRES_TIMESTAMPS 1
34803_ACEOF
34804
34805fi
34806
34807{ echo "$as_me:$LINENO: checking whether struct stat has sub-second timestamps without struct timespec" >&5
34808echo $ECHO_N "checking whether struct stat has sub-second timestamps without struct timespec... $ECHO_C" >&6; }
34809if test "${samba_stat_hires_notimespec+set}" = set; then
34810  echo $ECHO_N "(cached) $ECHO_C" >&6
34811else
34812
34813	cat >conftest.$ac_ext <<_ACEOF
34814/* confdefs.h.  */
34815_ACEOF
34816cat confdefs.h >>conftest.$ac_ext
34817cat >>conftest.$ac_ext <<_ACEOF
34818/* end confdefs.h.  */
34819
34820#if TIME_WITH_SYS_TIME
34821# include <sys/time.h>
34822# include <time.h>
34823#else
34824# if HAVE_SYS_TIME_H
34825#  include <sys/time.h>
34826# else
34827#  include <time.h>
34828# endif
34829#endif
34830#ifdef HAVE_SYS_STAT_H
34831#include <sys/stat.h>
34832#endif
34833
34834int
34835main ()
34836{
34837
34838		struct timespec t;
34839		struct stat s = {0};
34840		t.tv_sec = s.st_mtime;
34841		t.tv_nsec = s.st_mtimensec;
34842		t.tv_sec = s.st_ctime;
34843		t.tv_nsec = s.st_ctimensec;
34844		t.tv_sec = s.st_atime;
34845		t.tv_nsec = s.st_atimensec;
34846
34847  ;
34848  return 0;
34849}
34850_ACEOF
34851rm -f conftest.$ac_objext
34852if { (ac_try="$ac_compile"
34853case "(($ac_try" in
34854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855  *) ac_try_echo=$ac_try;;
34856esac
34857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34858  (eval "$ac_compile") 2>conftest.er1
34859  ac_status=$?
34860  grep -v '^ *+' conftest.er1 >conftest.err
34861  rm -f conftest.er1
34862  cat conftest.err >&5
34863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864  (exit $ac_status); } && {
34865	 test -z "$ac_c_werror_flag" ||
34866	 test ! -s conftest.err
34867       } && test -s conftest.$ac_objext; then
34868  samba_stat_hires=yes
34869else
34870  echo "$as_me: failed program was:" >&5
34871sed 's/^/| /' conftest.$ac_ext >&5
34872
34873	samba_stat_hires=no
34874fi
34875
34876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34877
34878fi
34879{ echo "$as_me:$LINENO: result: $samba_stat_hires_notimespec" >&5
34880echo "${ECHO_T}$samba_stat_hires_notimespec" >&6; }
34881
34882if test x"$samba_stat_hires_notimespec" = x"yes" ; then
34883
34884cat >>confdefs.h <<\_ACEOF
34885#define HAVE_STAT_ST_MTIMENSEC 1
34886_ACEOF
34887
34888
34889cat >>confdefs.h <<\_ACEOF
34890#define HAVE_STAT_ST_ATIMENSEC 1
34891_ACEOF
34892
34893
34894cat >>confdefs.h <<\_ACEOF
34895#define HAVE_STAT_ST_CTIMENSEC 1
34896_ACEOF
34897
34898
34899cat >>confdefs.h <<\_ACEOF
34900#define HAVE_STAT_HIRES_TIMESTAMPS 1
34901_ACEOF
34902
34903fi
34904
34905#####################################
34906# needed for SRV lookups
34907
34908{ echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
34909echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6; }
34910if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
34911  echo $ECHO_N "(cached) $ECHO_C" >&6
34912else
34913  ac_check_lib_save_LIBS=$LIBS
34914LIBS="-lresolv  $LIBS"
34915cat >conftest.$ac_ext <<_ACEOF
34916/* confdefs.h.  */
34917_ACEOF
34918cat confdefs.h >>conftest.$ac_ext
34919cat >>conftest.$ac_ext <<_ACEOF
34920/* end confdefs.h.  */
34921
34922/* Override any GCC internal prototype to avoid an error.
34923   Use char because int might match the return type of a GCC
34924   builtin and then its argument prototype would still apply.  */
34925#ifdef __cplusplus
34926extern "C"
34927#endif
34928char dn_expand ();
34929int
34930main ()
34931{
34932return dn_expand ();
34933  ;
34934  return 0;
34935}
34936_ACEOF
34937rm -f conftest.$ac_objext conftest$ac_exeext
34938if { (ac_try="$ac_link"
34939case "(($ac_try" in
34940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34941  *) ac_try_echo=$ac_try;;
34942esac
34943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34944  (eval "$ac_link") 2>conftest.er1
34945  ac_status=$?
34946  grep -v '^ *+' conftest.er1 >conftest.err
34947  rm -f conftest.er1
34948  cat conftest.err >&5
34949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950  (exit $ac_status); } && {
34951	 test -z "$ac_c_werror_flag" ||
34952	 test ! -s conftest.err
34953       } && test -s conftest$ac_exeext &&
34954       $as_test_x conftest$ac_exeext; then
34955  ac_cv_lib_resolv_dn_expand=yes
34956else
34957  echo "$as_me: failed program was:" >&5
34958sed 's/^/| /' conftest.$ac_ext >&5
34959
34960	ac_cv_lib_resolv_dn_expand=no
34961fi
34962
34963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34964      conftest$ac_exeext conftest.$ac_ext
34965LIBS=$ac_check_lib_save_LIBS
34966fi
34967{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
34968echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6; }
34969if test $ac_cv_lib_resolv_dn_expand = yes; then
34970  cat >>confdefs.h <<_ACEOF
34971#define HAVE_LIBRESOLV 1
34972_ACEOF
34973
34974  LIBS="-lresolv $LIBS"
34975
34976fi
34977
34978
34979{ echo "$as_me:$LINENO: checking for _dn_expand in -lresolv" >&5
34980echo $ECHO_N "checking for _dn_expand in -lresolv... $ECHO_C" >&6; }
34981if test "${ac_cv_lib_resolv__dn_expand+set}" = set; then
34982  echo $ECHO_N "(cached) $ECHO_C" >&6
34983else
34984  ac_check_lib_save_LIBS=$LIBS
34985LIBS="-lresolv  $LIBS"
34986cat >conftest.$ac_ext <<_ACEOF
34987/* confdefs.h.  */
34988_ACEOF
34989cat confdefs.h >>conftest.$ac_ext
34990cat >>conftest.$ac_ext <<_ACEOF
34991/* end confdefs.h.  */
34992
34993/* Override any GCC internal prototype to avoid an error.
34994   Use char because int might match the return type of a GCC
34995   builtin and then its argument prototype would still apply.  */
34996#ifdef __cplusplus
34997extern "C"
34998#endif
34999char _dn_expand ();
35000int
35001main ()
35002{
35003return _dn_expand ();
35004  ;
35005  return 0;
35006}
35007_ACEOF
35008rm -f conftest.$ac_objext conftest$ac_exeext
35009if { (ac_try="$ac_link"
35010case "(($ac_try" in
35011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35012  *) ac_try_echo=$ac_try;;
35013esac
35014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35015  (eval "$ac_link") 2>conftest.er1
35016  ac_status=$?
35017  grep -v '^ *+' conftest.er1 >conftest.err
35018  rm -f conftest.er1
35019  cat conftest.err >&5
35020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021  (exit $ac_status); } && {
35022	 test -z "$ac_c_werror_flag" ||
35023	 test ! -s conftest.err
35024       } && test -s conftest$ac_exeext &&
35025       $as_test_x conftest$ac_exeext; then
35026  ac_cv_lib_resolv__dn_expand=yes
35027else
35028  echo "$as_me: failed program was:" >&5
35029sed 's/^/| /' conftest.$ac_ext >&5
35030
35031	ac_cv_lib_resolv__dn_expand=no
35032fi
35033
35034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35035      conftest$ac_exeext conftest.$ac_ext
35036LIBS=$ac_check_lib_save_LIBS
35037fi
35038{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv__dn_expand" >&5
35039echo "${ECHO_T}$ac_cv_lib_resolv__dn_expand" >&6; }
35040if test $ac_cv_lib_resolv__dn_expand = yes; then
35041  cat >>confdefs.h <<_ACEOF
35042#define HAVE_LIBRESOLV 1
35043_ACEOF
35044
35045  LIBS="-lresolv $LIBS"
35046
35047fi
35048
35049
35050{ echo "$as_me:$LINENO: checking for __dn_expand in -lresolv" >&5
35051echo $ECHO_N "checking for __dn_expand in -lresolv... $ECHO_C" >&6; }
35052if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then
35053  echo $ECHO_N "(cached) $ECHO_C" >&6
35054else
35055  ac_check_lib_save_LIBS=$LIBS
35056LIBS="-lresolv  $LIBS"
35057cat >conftest.$ac_ext <<_ACEOF
35058/* confdefs.h.  */
35059_ACEOF
35060cat confdefs.h >>conftest.$ac_ext
35061cat >>conftest.$ac_ext <<_ACEOF
35062/* end confdefs.h.  */
35063
35064/* Override any GCC internal prototype to avoid an error.
35065   Use char because int might match the return type of a GCC
35066   builtin and then its argument prototype would still apply.  */
35067#ifdef __cplusplus
35068extern "C"
35069#endif
35070char __dn_expand ();
35071int
35072main ()
35073{
35074return __dn_expand ();
35075  ;
35076  return 0;
35077}
35078_ACEOF
35079rm -f conftest.$ac_objext conftest$ac_exeext
35080if { (ac_try="$ac_link"
35081case "(($ac_try" in
35082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35083  *) ac_try_echo=$ac_try;;
35084esac
35085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35086  (eval "$ac_link") 2>conftest.er1
35087  ac_status=$?
35088  grep -v '^ *+' conftest.er1 >conftest.err
35089  rm -f conftest.er1
35090  cat conftest.err >&5
35091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35092  (exit $ac_status); } && {
35093	 test -z "$ac_c_werror_flag" ||
35094	 test ! -s conftest.err
35095       } && test -s conftest$ac_exeext &&
35096       $as_test_x conftest$ac_exeext; then
35097  ac_cv_lib_resolv___dn_expand=yes
35098else
35099  echo "$as_me: failed program was:" >&5
35100sed 's/^/| /' conftest.$ac_ext >&5
35101
35102	ac_cv_lib_resolv___dn_expand=no
35103fi
35104
35105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35106      conftest$ac_exeext conftest.$ac_ext
35107LIBS=$ac_check_lib_save_LIBS
35108fi
35109{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
35110echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6; }
35111if test $ac_cv_lib_resolv___dn_expand = yes; then
35112  cat >>confdefs.h <<_ACEOF
35113#define HAVE_LIBRESOLV 1
35114_ACEOF
35115
35116  LIBS="-lresolv $LIBS"
35117
35118fi
35119
35120
35121#
35122# Check for the functions putprpwnam, set_auth_parameters,
35123# getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
35124# Needed for OSF1 and HPUX.
35125#
35126
35127
35128
35129for ac_func in putprpwnam
35130do
35131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35132{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35134if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35135  echo $ECHO_N "(cached) $ECHO_C" >&6
35136else
35137  cat >conftest.$ac_ext <<_ACEOF
35138/* confdefs.h.  */
35139_ACEOF
35140cat confdefs.h >>conftest.$ac_ext
35141cat >>conftest.$ac_ext <<_ACEOF
35142/* end confdefs.h.  */
35143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35144   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35145#define $ac_func innocuous_$ac_func
35146
35147/* System header to define __stub macros and hopefully few prototypes,
35148    which can conflict with char $ac_func (); below.
35149    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35150    <limits.h> exists even on freestanding compilers.  */
35151
35152#ifdef __STDC__
35153# include <limits.h>
35154#else
35155# include <assert.h>
35156#endif
35157
35158#undef $ac_func
35159
35160/* Override any GCC internal prototype to avoid an error.
35161   Use char because int might match the return type of a GCC
35162   builtin and then its argument prototype would still apply.  */
35163#ifdef __cplusplus
35164extern "C"
35165#endif
35166char $ac_func ();
35167/* The GNU C library defines this for functions which it implements
35168    to always fail with ENOSYS.  Some functions are actually named
35169    something starting with __ and the normal name is an alias.  */
35170#if defined __stub_$ac_func || defined __stub___$ac_func
35171choke me
35172#endif
35173
35174int
35175main ()
35176{
35177return $ac_func ();
35178  ;
35179  return 0;
35180}
35181_ACEOF
35182rm -f conftest.$ac_objext conftest$ac_exeext
35183if { (ac_try="$ac_link"
35184case "(($ac_try" in
35185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35186  *) ac_try_echo=$ac_try;;
35187esac
35188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35189  (eval "$ac_link") 2>conftest.er1
35190  ac_status=$?
35191  grep -v '^ *+' conftest.er1 >conftest.err
35192  rm -f conftest.er1
35193  cat conftest.err >&5
35194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195  (exit $ac_status); } && {
35196	 test -z "$ac_c_werror_flag" ||
35197	 test ! -s conftest.err
35198       } && test -s conftest$ac_exeext &&
35199       $as_test_x conftest$ac_exeext; then
35200  eval "$as_ac_var=yes"
35201else
35202  echo "$as_me: failed program was:" >&5
35203sed 's/^/| /' conftest.$ac_ext >&5
35204
35205	eval "$as_ac_var=no"
35206fi
35207
35208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35209      conftest$ac_exeext conftest.$ac_ext
35210fi
35211ac_res=`eval echo '${'$as_ac_var'}'`
35212	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35213echo "${ECHO_T}$ac_res" >&6; }
35214if test `eval echo '${'$as_ac_var'}'` = yes; then
35215  cat >>confdefs.h <<_ACEOF
35216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35217_ACEOF
35218
35219        # putprpwnam was found in libc or existing $LIBS
35220
35221
35222cat >>confdefs.h <<\_ACEOF
35223#define HAVE_PUTPRPWNAM 1
35224_ACEOF
35225
35226
35227
35228else
35229
35230        # putprpwnam was not found, try adding libsecurity
35231	case " $LIBS " in
35232          *\ -lsecurity\ *)
35233
35234		    # putprpwnam was not found and we already had libsecurity
35235		    # nothing to do here by default
35236		    true
35237
35238	    ;;
35239          *)
35240	    # putprpwnam was not found, try adding libsecurity
35241	    { echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
35242echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6; }
35243if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
35244  echo $ECHO_N "(cached) $ECHO_C" >&6
35245else
35246  ac_check_lib_save_LIBS=$LIBS
35247LIBS="-lsecurity  $LIBS"
35248cat >conftest.$ac_ext <<_ACEOF
35249/* confdefs.h.  */
35250_ACEOF
35251cat confdefs.h >>conftest.$ac_ext
35252cat >>conftest.$ac_ext <<_ACEOF
35253/* end confdefs.h.  */
35254
35255/* Override any GCC internal prototype to avoid an error.
35256   Use char because int might match the return type of a GCC
35257   builtin and then its argument prototype would still apply.  */
35258#ifdef __cplusplus
35259extern "C"
35260#endif
35261char putprpwnam ();
35262int
35263main ()
35264{
35265return putprpwnam ();
35266  ;
35267  return 0;
35268}
35269_ACEOF
35270rm -f conftest.$ac_objext conftest$ac_exeext
35271if { (ac_try="$ac_link"
35272case "(($ac_try" in
35273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35274  *) ac_try_echo=$ac_try;;
35275esac
35276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35277  (eval "$ac_link") 2>conftest.er1
35278  ac_status=$?
35279  grep -v '^ *+' conftest.er1 >conftest.err
35280  rm -f conftest.er1
35281  cat conftest.err >&5
35282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283  (exit $ac_status); } && {
35284	 test -z "$ac_c_werror_flag" ||
35285	 test ! -s conftest.err
35286       } && test -s conftest$ac_exeext &&
35287       $as_test_x conftest$ac_exeext; then
35288  ac_cv_lib_security_putprpwnam=yes
35289else
35290  echo "$as_me: failed program was:" >&5
35291sed 's/^/| /' conftest.$ac_ext >&5
35292
35293	ac_cv_lib_security_putprpwnam=no
35294fi
35295
35296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35297      conftest$ac_exeext conftest.$ac_ext
35298LIBS=$ac_check_lib_save_LIBS
35299fi
35300{ echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
35301echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6; }
35302if test $ac_cv_lib_security_putprpwnam = yes; then
35303
35304		LIBS="-lsecurity $LIBS"
35305
35306
35307cat >>confdefs.h <<\_ACEOF
35308#define HAVE_PUTPRPWNAM 1
35309_ACEOF
35310
35311
35312
35313else
35314
35315
35316			# putprpwnam was not found in libsecurity
35317			# nothing to do here by default
35318			true
35319
35320
35321fi
35322
35323	  ;;
35324        esac
35325
35326fi
35327done
35328
35329
35330
35331
35332for ac_func in putprpwnam
35333do
35334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35335{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35337if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35338  echo $ECHO_N "(cached) $ECHO_C" >&6
35339else
35340  cat >conftest.$ac_ext <<_ACEOF
35341/* confdefs.h.  */
35342_ACEOF
35343cat confdefs.h >>conftest.$ac_ext
35344cat >>conftest.$ac_ext <<_ACEOF
35345/* end confdefs.h.  */
35346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35347   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35348#define $ac_func innocuous_$ac_func
35349
35350/* System header to define __stub macros and hopefully few prototypes,
35351    which can conflict with char $ac_func (); below.
35352    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35353    <limits.h> exists even on freestanding compilers.  */
35354
35355#ifdef __STDC__
35356# include <limits.h>
35357#else
35358# include <assert.h>
35359#endif
35360
35361#undef $ac_func
35362
35363/* Override any GCC internal prototype to avoid an error.
35364   Use char because int might match the return type of a GCC
35365   builtin and then its argument prototype would still apply.  */
35366#ifdef __cplusplus
35367extern "C"
35368#endif
35369char $ac_func ();
35370/* The GNU C library defines this for functions which it implements
35371    to always fail with ENOSYS.  Some functions are actually named
35372    something starting with __ and the normal name is an alias.  */
35373#if defined __stub_$ac_func || defined __stub___$ac_func
35374choke me
35375#endif
35376
35377int
35378main ()
35379{
35380return $ac_func ();
35381  ;
35382  return 0;
35383}
35384_ACEOF
35385rm -f conftest.$ac_objext conftest$ac_exeext
35386if { (ac_try="$ac_link"
35387case "(($ac_try" in
35388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35389  *) ac_try_echo=$ac_try;;
35390esac
35391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35392  (eval "$ac_link") 2>conftest.er1
35393  ac_status=$?
35394  grep -v '^ *+' conftest.er1 >conftest.err
35395  rm -f conftest.er1
35396  cat conftest.err >&5
35397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398  (exit $ac_status); } && {
35399	 test -z "$ac_c_werror_flag" ||
35400	 test ! -s conftest.err
35401       } && test -s conftest$ac_exeext &&
35402       $as_test_x conftest$ac_exeext; then
35403  eval "$as_ac_var=yes"
35404else
35405  echo "$as_me: failed program was:" >&5
35406sed 's/^/| /' conftest.$ac_ext >&5
35407
35408	eval "$as_ac_var=no"
35409fi
35410
35411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35412      conftest$ac_exeext conftest.$ac_ext
35413fi
35414ac_res=`eval echo '${'$as_ac_var'}'`
35415	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35416echo "${ECHO_T}$ac_res" >&6; }
35417if test `eval echo '${'$as_ac_var'}'` = yes; then
35418  cat >>confdefs.h <<_ACEOF
35419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35420_ACEOF
35421
35422        # putprpwnam was found in libc or existing $LIBS
35423
35424
35425cat >>confdefs.h <<\_ACEOF
35426#define HAVE_PUTPRPWNAM 1
35427_ACEOF
35428
35429
35430
35431else
35432
35433        # putprpwnam was not found, try adding libsec
35434	case " $LIBS " in
35435          *\ -lsec\ *)
35436
35437		    # putprpwnam was not found and we already had libsec
35438		    # nothing to do here by default
35439		    true
35440
35441	    ;;
35442          *)
35443	    # putprpwnam was not found, try adding libsec
35444	    { echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
35445echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6; }
35446if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
35447  echo $ECHO_N "(cached) $ECHO_C" >&6
35448else
35449  ac_check_lib_save_LIBS=$LIBS
35450LIBS="-lsec  $LIBS"
35451cat >conftest.$ac_ext <<_ACEOF
35452/* confdefs.h.  */
35453_ACEOF
35454cat confdefs.h >>conftest.$ac_ext
35455cat >>conftest.$ac_ext <<_ACEOF
35456/* end confdefs.h.  */
35457
35458/* Override any GCC internal prototype to avoid an error.
35459   Use char because int might match the return type of a GCC
35460   builtin and then its argument prototype would still apply.  */
35461#ifdef __cplusplus
35462extern "C"
35463#endif
35464char putprpwnam ();
35465int
35466main ()
35467{
35468return putprpwnam ();
35469  ;
35470  return 0;
35471}
35472_ACEOF
35473rm -f conftest.$ac_objext conftest$ac_exeext
35474if { (ac_try="$ac_link"
35475case "(($ac_try" in
35476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35477  *) ac_try_echo=$ac_try;;
35478esac
35479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35480  (eval "$ac_link") 2>conftest.er1
35481  ac_status=$?
35482  grep -v '^ *+' conftest.er1 >conftest.err
35483  rm -f conftest.er1
35484  cat conftest.err >&5
35485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486  (exit $ac_status); } && {
35487	 test -z "$ac_c_werror_flag" ||
35488	 test ! -s conftest.err
35489       } && test -s conftest$ac_exeext &&
35490       $as_test_x conftest$ac_exeext; then
35491  ac_cv_lib_sec_putprpwnam=yes
35492else
35493  echo "$as_me: failed program was:" >&5
35494sed 's/^/| /' conftest.$ac_ext >&5
35495
35496	ac_cv_lib_sec_putprpwnam=no
35497fi
35498
35499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35500      conftest$ac_exeext conftest.$ac_ext
35501LIBS=$ac_check_lib_save_LIBS
35502fi
35503{ echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
35504echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6; }
35505if test $ac_cv_lib_sec_putprpwnam = yes; then
35506
35507		LIBS="-lsec $LIBS"
35508
35509
35510cat >>confdefs.h <<\_ACEOF
35511#define HAVE_PUTPRPWNAM 1
35512_ACEOF
35513
35514
35515
35516else
35517
35518
35519			# putprpwnam was not found in libsec
35520			# nothing to do here by default
35521			true
35522
35523
35524fi
35525
35526	  ;;
35527        esac
35528
35529fi
35530done
35531
35532
35533
35534
35535
35536for ac_func in set_auth_parameters
35537do
35538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35539{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35541if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35542  echo $ECHO_N "(cached) $ECHO_C" >&6
35543else
35544  cat >conftest.$ac_ext <<_ACEOF
35545/* confdefs.h.  */
35546_ACEOF
35547cat confdefs.h >>conftest.$ac_ext
35548cat >>conftest.$ac_ext <<_ACEOF
35549/* end confdefs.h.  */
35550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35551   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35552#define $ac_func innocuous_$ac_func
35553
35554/* System header to define __stub macros and hopefully few prototypes,
35555    which can conflict with char $ac_func (); below.
35556    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35557    <limits.h> exists even on freestanding compilers.  */
35558
35559#ifdef __STDC__
35560# include <limits.h>
35561#else
35562# include <assert.h>
35563#endif
35564
35565#undef $ac_func
35566
35567/* Override any GCC internal prototype to avoid an error.
35568   Use char because int might match the return type of a GCC
35569   builtin and then its argument prototype would still apply.  */
35570#ifdef __cplusplus
35571extern "C"
35572#endif
35573char $ac_func ();
35574/* The GNU C library defines this for functions which it implements
35575    to always fail with ENOSYS.  Some functions are actually named
35576    something starting with __ and the normal name is an alias.  */
35577#if defined __stub_$ac_func || defined __stub___$ac_func
35578choke me
35579#endif
35580
35581int
35582main ()
35583{
35584return $ac_func ();
35585  ;
35586  return 0;
35587}
35588_ACEOF
35589rm -f conftest.$ac_objext conftest$ac_exeext
35590if { (ac_try="$ac_link"
35591case "(($ac_try" in
35592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35593  *) ac_try_echo=$ac_try;;
35594esac
35595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35596  (eval "$ac_link") 2>conftest.er1
35597  ac_status=$?
35598  grep -v '^ *+' conftest.er1 >conftest.err
35599  rm -f conftest.er1
35600  cat conftest.err >&5
35601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602  (exit $ac_status); } && {
35603	 test -z "$ac_c_werror_flag" ||
35604	 test ! -s conftest.err
35605       } && test -s conftest$ac_exeext &&
35606       $as_test_x conftest$ac_exeext; then
35607  eval "$as_ac_var=yes"
35608else
35609  echo "$as_me: failed program was:" >&5
35610sed 's/^/| /' conftest.$ac_ext >&5
35611
35612	eval "$as_ac_var=no"
35613fi
35614
35615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35616      conftest$ac_exeext conftest.$ac_ext
35617fi
35618ac_res=`eval echo '${'$as_ac_var'}'`
35619	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35620echo "${ECHO_T}$ac_res" >&6; }
35621if test `eval echo '${'$as_ac_var'}'` = yes; then
35622  cat >>confdefs.h <<_ACEOF
35623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35624_ACEOF
35625
35626        # set_auth_parameters was found in libc or existing $LIBS
35627
35628
35629cat >>confdefs.h <<\_ACEOF
35630#define HAVE_SET_AUTH_PARAMETERS 1
35631_ACEOF
35632
35633
35634
35635else
35636
35637        # set_auth_parameters was not found, try adding libsecurity
35638	case " $LIBS " in
35639          *\ -lsecurity\ *)
35640
35641		    # set_auth_parameters was not found and we already had libsecurity
35642		    # nothing to do here by default
35643		    true
35644
35645	    ;;
35646          *)
35647	    # set_auth_parameters was not found, try adding libsecurity
35648	    { echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
35649echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6; }
35650if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
35651  echo $ECHO_N "(cached) $ECHO_C" >&6
35652else
35653  ac_check_lib_save_LIBS=$LIBS
35654LIBS="-lsecurity  $LIBS"
35655cat >conftest.$ac_ext <<_ACEOF
35656/* confdefs.h.  */
35657_ACEOF
35658cat confdefs.h >>conftest.$ac_ext
35659cat >>conftest.$ac_ext <<_ACEOF
35660/* end confdefs.h.  */
35661
35662/* Override any GCC internal prototype to avoid an error.
35663   Use char because int might match the return type of a GCC
35664   builtin and then its argument prototype would still apply.  */
35665#ifdef __cplusplus
35666extern "C"
35667#endif
35668char set_auth_parameters ();
35669int
35670main ()
35671{
35672return set_auth_parameters ();
35673  ;
35674  return 0;
35675}
35676_ACEOF
35677rm -f conftest.$ac_objext conftest$ac_exeext
35678if { (ac_try="$ac_link"
35679case "(($ac_try" in
35680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35681  *) ac_try_echo=$ac_try;;
35682esac
35683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35684  (eval "$ac_link") 2>conftest.er1
35685  ac_status=$?
35686  grep -v '^ *+' conftest.er1 >conftest.err
35687  rm -f conftest.er1
35688  cat conftest.err >&5
35689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690  (exit $ac_status); } && {
35691	 test -z "$ac_c_werror_flag" ||
35692	 test ! -s conftest.err
35693       } && test -s conftest$ac_exeext &&
35694       $as_test_x conftest$ac_exeext; then
35695  ac_cv_lib_security_set_auth_parameters=yes
35696else
35697  echo "$as_me: failed program was:" >&5
35698sed 's/^/| /' conftest.$ac_ext >&5
35699
35700	ac_cv_lib_security_set_auth_parameters=no
35701fi
35702
35703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35704      conftest$ac_exeext conftest.$ac_ext
35705LIBS=$ac_check_lib_save_LIBS
35706fi
35707{ echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
35708echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6; }
35709if test $ac_cv_lib_security_set_auth_parameters = yes; then
35710
35711		LIBS="-lsecurity $LIBS"
35712
35713
35714cat >>confdefs.h <<\_ACEOF
35715#define HAVE_SET_AUTH_PARAMETERS 1
35716_ACEOF
35717
35718
35719
35720else
35721
35722
35723			# set_auth_parameters was not found in libsecurity
35724			# nothing to do here by default
35725			true
35726
35727
35728fi
35729
35730	  ;;
35731        esac
35732
35733fi
35734done
35735
35736
35737
35738
35739for ac_func in set_auth_parameters
35740do
35741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35742{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35745  echo $ECHO_N "(cached) $ECHO_C" >&6
35746else
35747  cat >conftest.$ac_ext <<_ACEOF
35748/* confdefs.h.  */
35749_ACEOF
35750cat confdefs.h >>conftest.$ac_ext
35751cat >>conftest.$ac_ext <<_ACEOF
35752/* end confdefs.h.  */
35753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35754   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35755#define $ac_func innocuous_$ac_func
35756
35757/* System header to define __stub macros and hopefully few prototypes,
35758    which can conflict with char $ac_func (); below.
35759    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35760    <limits.h> exists even on freestanding compilers.  */
35761
35762#ifdef __STDC__
35763# include <limits.h>
35764#else
35765# include <assert.h>
35766#endif
35767
35768#undef $ac_func
35769
35770/* Override any GCC internal prototype to avoid an error.
35771   Use char because int might match the return type of a GCC
35772   builtin and then its argument prototype would still apply.  */
35773#ifdef __cplusplus
35774extern "C"
35775#endif
35776char $ac_func ();
35777/* The GNU C library defines this for functions which it implements
35778    to always fail with ENOSYS.  Some functions are actually named
35779    something starting with __ and the normal name is an alias.  */
35780#if defined __stub_$ac_func || defined __stub___$ac_func
35781choke me
35782#endif
35783
35784int
35785main ()
35786{
35787return $ac_func ();
35788  ;
35789  return 0;
35790}
35791_ACEOF
35792rm -f conftest.$ac_objext conftest$ac_exeext
35793if { (ac_try="$ac_link"
35794case "(($ac_try" in
35795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35796  *) ac_try_echo=$ac_try;;
35797esac
35798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35799  (eval "$ac_link") 2>conftest.er1
35800  ac_status=$?
35801  grep -v '^ *+' conftest.er1 >conftest.err
35802  rm -f conftest.er1
35803  cat conftest.err >&5
35804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805  (exit $ac_status); } && {
35806	 test -z "$ac_c_werror_flag" ||
35807	 test ! -s conftest.err
35808       } && test -s conftest$ac_exeext &&
35809       $as_test_x conftest$ac_exeext; then
35810  eval "$as_ac_var=yes"
35811else
35812  echo "$as_me: failed program was:" >&5
35813sed 's/^/| /' conftest.$ac_ext >&5
35814
35815	eval "$as_ac_var=no"
35816fi
35817
35818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35819      conftest$ac_exeext conftest.$ac_ext
35820fi
35821ac_res=`eval echo '${'$as_ac_var'}'`
35822	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35823echo "${ECHO_T}$ac_res" >&6; }
35824if test `eval echo '${'$as_ac_var'}'` = yes; then
35825  cat >>confdefs.h <<_ACEOF
35826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35827_ACEOF
35828
35829        # set_auth_parameters was found in libc or existing $LIBS
35830
35831
35832cat >>confdefs.h <<\_ACEOF
35833#define HAVE_SET_AUTH_PARAMETERS 1
35834_ACEOF
35835
35836
35837
35838else
35839
35840        # set_auth_parameters was not found, try adding libsec
35841	case " $LIBS " in
35842          *\ -lsec\ *)
35843
35844		    # set_auth_parameters was not found and we already had libsec
35845		    # nothing to do here by default
35846		    true
35847
35848	    ;;
35849          *)
35850	    # set_auth_parameters was not found, try adding libsec
35851	    { echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
35852echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6; }
35853if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
35854  echo $ECHO_N "(cached) $ECHO_C" >&6
35855else
35856  ac_check_lib_save_LIBS=$LIBS
35857LIBS="-lsec  $LIBS"
35858cat >conftest.$ac_ext <<_ACEOF
35859/* confdefs.h.  */
35860_ACEOF
35861cat confdefs.h >>conftest.$ac_ext
35862cat >>conftest.$ac_ext <<_ACEOF
35863/* end confdefs.h.  */
35864
35865/* Override any GCC internal prototype to avoid an error.
35866   Use char because int might match the return type of a GCC
35867   builtin and then its argument prototype would still apply.  */
35868#ifdef __cplusplus
35869extern "C"
35870#endif
35871char set_auth_parameters ();
35872int
35873main ()
35874{
35875return set_auth_parameters ();
35876  ;
35877  return 0;
35878}
35879_ACEOF
35880rm -f conftest.$ac_objext conftest$ac_exeext
35881if { (ac_try="$ac_link"
35882case "(($ac_try" in
35883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35884  *) ac_try_echo=$ac_try;;
35885esac
35886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35887  (eval "$ac_link") 2>conftest.er1
35888  ac_status=$?
35889  grep -v '^ *+' conftest.er1 >conftest.err
35890  rm -f conftest.er1
35891  cat conftest.err >&5
35892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893  (exit $ac_status); } && {
35894	 test -z "$ac_c_werror_flag" ||
35895	 test ! -s conftest.err
35896       } && test -s conftest$ac_exeext &&
35897       $as_test_x conftest$ac_exeext; then
35898  ac_cv_lib_sec_set_auth_parameters=yes
35899else
35900  echo "$as_me: failed program was:" >&5
35901sed 's/^/| /' conftest.$ac_ext >&5
35902
35903	ac_cv_lib_sec_set_auth_parameters=no
35904fi
35905
35906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35907      conftest$ac_exeext conftest.$ac_ext
35908LIBS=$ac_check_lib_save_LIBS
35909fi
35910{ echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
35911echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6; }
35912if test $ac_cv_lib_sec_set_auth_parameters = yes; then
35913
35914		LIBS="-lsec $LIBS"
35915
35916
35917cat >>confdefs.h <<\_ACEOF
35918#define HAVE_SET_AUTH_PARAMETERS 1
35919_ACEOF
35920
35921
35922
35923else
35924
35925
35926			# set_auth_parameters was not found in libsec
35927			# nothing to do here by default
35928			true
35929
35930
35931fi
35932
35933	  ;;
35934        esac
35935
35936fi
35937done
35938
35939
35940
35941# UnixWare 7.x has its getspnam in -lgen
35942
35943
35944for ac_func in getspnam
35945do
35946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35950  echo $ECHO_N "(cached) $ECHO_C" >&6
35951else
35952  cat >conftest.$ac_ext <<_ACEOF
35953/* confdefs.h.  */
35954_ACEOF
35955cat confdefs.h >>conftest.$ac_ext
35956cat >>conftest.$ac_ext <<_ACEOF
35957/* end confdefs.h.  */
35958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35959   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35960#define $ac_func innocuous_$ac_func
35961
35962/* System header to define __stub macros and hopefully few prototypes,
35963    which can conflict with char $ac_func (); below.
35964    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35965    <limits.h> exists even on freestanding compilers.  */
35966
35967#ifdef __STDC__
35968# include <limits.h>
35969#else
35970# include <assert.h>
35971#endif
35972
35973#undef $ac_func
35974
35975/* Override any GCC internal prototype to avoid an error.
35976   Use char because int might match the return type of a GCC
35977   builtin and then its argument prototype would still apply.  */
35978#ifdef __cplusplus
35979extern "C"
35980#endif
35981char $ac_func ();
35982/* The GNU C library defines this for functions which it implements
35983    to always fail with ENOSYS.  Some functions are actually named
35984    something starting with __ and the normal name is an alias.  */
35985#if defined __stub_$ac_func || defined __stub___$ac_func
35986choke me
35987#endif
35988
35989int
35990main ()
35991{
35992return $ac_func ();
35993  ;
35994  return 0;
35995}
35996_ACEOF
35997rm -f conftest.$ac_objext conftest$ac_exeext
35998if { (ac_try="$ac_link"
35999case "(($ac_try" in
36000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36001  *) ac_try_echo=$ac_try;;
36002esac
36003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36004  (eval "$ac_link") 2>conftest.er1
36005  ac_status=$?
36006  grep -v '^ *+' conftest.er1 >conftest.err
36007  rm -f conftest.er1
36008  cat conftest.err >&5
36009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010  (exit $ac_status); } && {
36011	 test -z "$ac_c_werror_flag" ||
36012	 test ! -s conftest.err
36013       } && test -s conftest$ac_exeext &&
36014       $as_test_x conftest$ac_exeext; then
36015  eval "$as_ac_var=yes"
36016else
36017  echo "$as_me: failed program was:" >&5
36018sed 's/^/| /' conftest.$ac_ext >&5
36019
36020	eval "$as_ac_var=no"
36021fi
36022
36023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36024      conftest$ac_exeext conftest.$ac_ext
36025fi
36026ac_res=`eval echo '${'$as_ac_var'}'`
36027	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36028echo "${ECHO_T}$ac_res" >&6; }
36029if test `eval echo '${'$as_ac_var'}'` = yes; then
36030  cat >>confdefs.h <<_ACEOF
36031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36032_ACEOF
36033
36034        # getspnam was found in libc or existing $LIBS
36035
36036
36037cat >>confdefs.h <<\_ACEOF
36038#define HAVE_GETSPNAM 1
36039_ACEOF
36040
36041
36042
36043else
36044
36045        # getspnam was not found, try adding libgen
36046	case " $LIBS " in
36047          *\ -lgen\ *)
36048
36049		    # getspnam was not found and we already had libgen
36050		    # nothing to do here by default
36051		    true
36052
36053	    ;;
36054          *)
36055	    # getspnam was not found, try adding libgen
36056	    { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
36057echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
36058if test "${ac_cv_lib_gen_getspnam+set}" = set; then
36059  echo $ECHO_N "(cached) $ECHO_C" >&6
36060else
36061  ac_check_lib_save_LIBS=$LIBS
36062LIBS="-lgen  $LIBS"
36063cat >conftest.$ac_ext <<_ACEOF
36064/* confdefs.h.  */
36065_ACEOF
36066cat confdefs.h >>conftest.$ac_ext
36067cat >>conftest.$ac_ext <<_ACEOF
36068/* end confdefs.h.  */
36069
36070/* Override any GCC internal prototype to avoid an error.
36071   Use char because int might match the return type of a GCC
36072   builtin and then its argument prototype would still apply.  */
36073#ifdef __cplusplus
36074extern "C"
36075#endif
36076char getspnam ();
36077int
36078main ()
36079{
36080return getspnam ();
36081  ;
36082  return 0;
36083}
36084_ACEOF
36085rm -f conftest.$ac_objext conftest$ac_exeext
36086if { (ac_try="$ac_link"
36087case "(($ac_try" in
36088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36089  *) ac_try_echo=$ac_try;;
36090esac
36091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36092  (eval "$ac_link") 2>conftest.er1
36093  ac_status=$?
36094  grep -v '^ *+' conftest.er1 >conftest.err
36095  rm -f conftest.er1
36096  cat conftest.err >&5
36097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098  (exit $ac_status); } && {
36099	 test -z "$ac_c_werror_flag" ||
36100	 test ! -s conftest.err
36101       } && test -s conftest$ac_exeext &&
36102       $as_test_x conftest$ac_exeext; then
36103  ac_cv_lib_gen_getspnam=yes
36104else
36105  echo "$as_me: failed program was:" >&5
36106sed 's/^/| /' conftest.$ac_ext >&5
36107
36108	ac_cv_lib_gen_getspnam=no
36109fi
36110
36111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36112      conftest$ac_exeext conftest.$ac_ext
36113LIBS=$ac_check_lib_save_LIBS
36114fi
36115{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
36116echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
36117if test $ac_cv_lib_gen_getspnam = yes; then
36118
36119		LIBS="-lgen $LIBS"
36120
36121
36122cat >>confdefs.h <<\_ACEOF
36123#define HAVE_GETSPNAM 1
36124_ACEOF
36125
36126
36127
36128else
36129
36130
36131			# getspnam was not found in libgen
36132			# nothing to do here by default
36133			true
36134
36135
36136fi
36137
36138	  ;;
36139        esac
36140
36141fi
36142done
36143
36144
36145
36146
36147
36148for ac_func in getspnam
36149do
36150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36151{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36154  echo $ECHO_N "(cached) $ECHO_C" >&6
36155else
36156  cat >conftest.$ac_ext <<_ACEOF
36157/* confdefs.h.  */
36158_ACEOF
36159cat confdefs.h >>conftest.$ac_ext
36160cat >>conftest.$ac_ext <<_ACEOF
36161/* end confdefs.h.  */
36162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36163   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36164#define $ac_func innocuous_$ac_func
36165
36166/* System header to define __stub macros and hopefully few prototypes,
36167    which can conflict with char $ac_func (); below.
36168    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36169    <limits.h> exists even on freestanding compilers.  */
36170
36171#ifdef __STDC__
36172# include <limits.h>
36173#else
36174# include <assert.h>
36175#endif
36176
36177#undef $ac_func
36178
36179/* Override any GCC internal prototype to avoid an error.
36180   Use char because int might match the return type of a GCC
36181   builtin and then its argument prototype would still apply.  */
36182#ifdef __cplusplus
36183extern "C"
36184#endif
36185char $ac_func ();
36186/* The GNU C library defines this for functions which it implements
36187    to always fail with ENOSYS.  Some functions are actually named
36188    something starting with __ and the normal name is an alias.  */
36189#if defined __stub_$ac_func || defined __stub___$ac_func
36190choke me
36191#endif
36192
36193int
36194main ()
36195{
36196return $ac_func ();
36197  ;
36198  return 0;
36199}
36200_ACEOF
36201rm -f conftest.$ac_objext conftest$ac_exeext
36202if { (ac_try="$ac_link"
36203case "(($ac_try" in
36204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205  *) ac_try_echo=$ac_try;;
36206esac
36207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36208  (eval "$ac_link") 2>conftest.er1
36209  ac_status=$?
36210  grep -v '^ *+' conftest.er1 >conftest.err
36211  rm -f conftest.er1
36212  cat conftest.err >&5
36213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36214  (exit $ac_status); } && {
36215	 test -z "$ac_c_werror_flag" ||
36216	 test ! -s conftest.err
36217       } && test -s conftest$ac_exeext &&
36218       $as_test_x conftest$ac_exeext; then
36219  eval "$as_ac_var=yes"
36220else
36221  echo "$as_me: failed program was:" >&5
36222sed 's/^/| /' conftest.$ac_ext >&5
36223
36224	eval "$as_ac_var=no"
36225fi
36226
36227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36228      conftest$ac_exeext conftest.$ac_ext
36229fi
36230ac_res=`eval echo '${'$as_ac_var'}'`
36231	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36232echo "${ECHO_T}$ac_res" >&6; }
36233if test `eval echo '${'$as_ac_var'}'` = yes; then
36234  cat >>confdefs.h <<_ACEOF
36235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36236_ACEOF
36237
36238        # getspnam was found in libc or existing $LIBS
36239
36240
36241cat >>confdefs.h <<\_ACEOF
36242#define HAVE_GETSPNAM 1
36243_ACEOF
36244
36245
36246
36247else
36248
36249        # getspnam was not found, try adding libsecurity
36250	case " $LIBS " in
36251          *\ -lsecurity\ *)
36252
36253		    # getspnam was not found and we already had libsecurity
36254		    # nothing to do here by default
36255		    true
36256
36257	    ;;
36258          *)
36259	    # getspnam was not found, try adding libsecurity
36260	    { echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
36261echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6; }
36262if test "${ac_cv_lib_security_getspnam+set}" = set; then
36263  echo $ECHO_N "(cached) $ECHO_C" >&6
36264else
36265  ac_check_lib_save_LIBS=$LIBS
36266LIBS="-lsecurity  $LIBS"
36267cat >conftest.$ac_ext <<_ACEOF
36268/* confdefs.h.  */
36269_ACEOF
36270cat confdefs.h >>conftest.$ac_ext
36271cat >>conftest.$ac_ext <<_ACEOF
36272/* end confdefs.h.  */
36273
36274/* Override any GCC internal prototype to avoid an error.
36275   Use char because int might match the return type of a GCC
36276   builtin and then its argument prototype would still apply.  */
36277#ifdef __cplusplus
36278extern "C"
36279#endif
36280char getspnam ();
36281int
36282main ()
36283{
36284return getspnam ();
36285  ;
36286  return 0;
36287}
36288_ACEOF
36289rm -f conftest.$ac_objext conftest$ac_exeext
36290if { (ac_try="$ac_link"
36291case "(($ac_try" in
36292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36293  *) ac_try_echo=$ac_try;;
36294esac
36295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36296  (eval "$ac_link") 2>conftest.er1
36297  ac_status=$?
36298  grep -v '^ *+' conftest.er1 >conftest.err
36299  rm -f conftest.er1
36300  cat conftest.err >&5
36301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302  (exit $ac_status); } && {
36303	 test -z "$ac_c_werror_flag" ||
36304	 test ! -s conftest.err
36305       } && test -s conftest$ac_exeext &&
36306       $as_test_x conftest$ac_exeext; then
36307  ac_cv_lib_security_getspnam=yes
36308else
36309  echo "$as_me: failed program was:" >&5
36310sed 's/^/| /' conftest.$ac_ext >&5
36311
36312	ac_cv_lib_security_getspnam=no
36313fi
36314
36315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36316      conftest$ac_exeext conftest.$ac_ext
36317LIBS=$ac_check_lib_save_LIBS
36318fi
36319{ echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
36320echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6; }
36321if test $ac_cv_lib_security_getspnam = yes; then
36322
36323		LIBS="-lsecurity $LIBS"
36324
36325
36326cat >>confdefs.h <<\_ACEOF
36327#define HAVE_GETSPNAM 1
36328_ACEOF
36329
36330
36331
36332else
36333
36334
36335			# getspnam was not found in libsecurity
36336			# nothing to do here by default
36337			true
36338
36339
36340fi
36341
36342	  ;;
36343        esac
36344
36345fi
36346done
36347
36348
36349
36350
36351for ac_func in getspnam
36352do
36353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36354{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36356if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36357  echo $ECHO_N "(cached) $ECHO_C" >&6
36358else
36359  cat >conftest.$ac_ext <<_ACEOF
36360/* confdefs.h.  */
36361_ACEOF
36362cat confdefs.h >>conftest.$ac_ext
36363cat >>conftest.$ac_ext <<_ACEOF
36364/* end confdefs.h.  */
36365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36366   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36367#define $ac_func innocuous_$ac_func
36368
36369/* System header to define __stub macros and hopefully few prototypes,
36370    which can conflict with char $ac_func (); below.
36371    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36372    <limits.h> exists even on freestanding compilers.  */
36373
36374#ifdef __STDC__
36375# include <limits.h>
36376#else
36377# include <assert.h>
36378#endif
36379
36380#undef $ac_func
36381
36382/* Override any GCC internal prototype to avoid an error.
36383   Use char because int might match the return type of a GCC
36384   builtin and then its argument prototype would still apply.  */
36385#ifdef __cplusplus
36386extern "C"
36387#endif
36388char $ac_func ();
36389/* The GNU C library defines this for functions which it implements
36390    to always fail with ENOSYS.  Some functions are actually named
36391    something starting with __ and the normal name is an alias.  */
36392#if defined __stub_$ac_func || defined __stub___$ac_func
36393choke me
36394#endif
36395
36396int
36397main ()
36398{
36399return $ac_func ();
36400  ;
36401  return 0;
36402}
36403_ACEOF
36404rm -f conftest.$ac_objext conftest$ac_exeext
36405if { (ac_try="$ac_link"
36406case "(($ac_try" in
36407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408  *) ac_try_echo=$ac_try;;
36409esac
36410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36411  (eval "$ac_link") 2>conftest.er1
36412  ac_status=$?
36413  grep -v '^ *+' conftest.er1 >conftest.err
36414  rm -f conftest.er1
36415  cat conftest.err >&5
36416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417  (exit $ac_status); } && {
36418	 test -z "$ac_c_werror_flag" ||
36419	 test ! -s conftest.err
36420       } && test -s conftest$ac_exeext &&
36421       $as_test_x conftest$ac_exeext; then
36422  eval "$as_ac_var=yes"
36423else
36424  echo "$as_me: failed program was:" >&5
36425sed 's/^/| /' conftest.$ac_ext >&5
36426
36427	eval "$as_ac_var=no"
36428fi
36429
36430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36431      conftest$ac_exeext conftest.$ac_ext
36432fi
36433ac_res=`eval echo '${'$as_ac_var'}'`
36434	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36435echo "${ECHO_T}$ac_res" >&6; }
36436if test `eval echo '${'$as_ac_var'}'` = yes; then
36437  cat >>confdefs.h <<_ACEOF
36438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36439_ACEOF
36440
36441        # getspnam was found in libc or existing $LIBS
36442
36443
36444cat >>confdefs.h <<\_ACEOF
36445#define HAVE_GETSPNAM 1
36446_ACEOF
36447
36448
36449
36450else
36451
36452        # getspnam was not found, try adding libsec
36453	case " $LIBS " in
36454          *\ -lsec\ *)
36455
36456		    # getspnam was not found and we already had libsec
36457		    # nothing to do here by default
36458		    true
36459
36460	    ;;
36461          *)
36462	    # getspnam was not found, try adding libsec
36463	    { echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
36464echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6; }
36465if test "${ac_cv_lib_sec_getspnam+set}" = set; then
36466  echo $ECHO_N "(cached) $ECHO_C" >&6
36467else
36468  ac_check_lib_save_LIBS=$LIBS
36469LIBS="-lsec  $LIBS"
36470cat >conftest.$ac_ext <<_ACEOF
36471/* confdefs.h.  */
36472_ACEOF
36473cat confdefs.h >>conftest.$ac_ext
36474cat >>conftest.$ac_ext <<_ACEOF
36475/* end confdefs.h.  */
36476
36477/* Override any GCC internal prototype to avoid an error.
36478   Use char because int might match the return type of a GCC
36479   builtin and then its argument prototype would still apply.  */
36480#ifdef __cplusplus
36481extern "C"
36482#endif
36483char getspnam ();
36484int
36485main ()
36486{
36487return getspnam ();
36488  ;
36489  return 0;
36490}
36491_ACEOF
36492rm -f conftest.$ac_objext conftest$ac_exeext
36493if { (ac_try="$ac_link"
36494case "(($ac_try" in
36495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36496  *) ac_try_echo=$ac_try;;
36497esac
36498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36499  (eval "$ac_link") 2>conftest.er1
36500  ac_status=$?
36501  grep -v '^ *+' conftest.er1 >conftest.err
36502  rm -f conftest.er1
36503  cat conftest.err >&5
36504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505  (exit $ac_status); } && {
36506	 test -z "$ac_c_werror_flag" ||
36507	 test ! -s conftest.err
36508       } && test -s conftest$ac_exeext &&
36509       $as_test_x conftest$ac_exeext; then
36510  ac_cv_lib_sec_getspnam=yes
36511else
36512  echo "$as_me: failed program was:" >&5
36513sed 's/^/| /' conftest.$ac_ext >&5
36514
36515	ac_cv_lib_sec_getspnam=no
36516fi
36517
36518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36519      conftest$ac_exeext conftest.$ac_ext
36520LIBS=$ac_check_lib_save_LIBS
36521fi
36522{ echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
36523echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6; }
36524if test $ac_cv_lib_sec_getspnam = yes; then
36525
36526		LIBS="-lsec $LIBS"
36527
36528
36529cat >>confdefs.h <<\_ACEOF
36530#define HAVE_GETSPNAM 1
36531_ACEOF
36532
36533
36534
36535else
36536
36537
36538			# getspnam was not found in libsec
36539			# nothing to do here by default
36540			true
36541
36542
36543fi
36544
36545	  ;;
36546        esac
36547
36548fi
36549done
36550
36551
36552
36553
36554
36555for ac_func in bigcrypt
36556do
36557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36558{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36561  echo $ECHO_N "(cached) $ECHO_C" >&6
36562else
36563  cat >conftest.$ac_ext <<_ACEOF
36564/* confdefs.h.  */
36565_ACEOF
36566cat confdefs.h >>conftest.$ac_ext
36567cat >>conftest.$ac_ext <<_ACEOF
36568/* end confdefs.h.  */
36569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36570   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36571#define $ac_func innocuous_$ac_func
36572
36573/* System header to define __stub macros and hopefully few prototypes,
36574    which can conflict with char $ac_func (); below.
36575    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36576    <limits.h> exists even on freestanding compilers.  */
36577
36578#ifdef __STDC__
36579# include <limits.h>
36580#else
36581# include <assert.h>
36582#endif
36583
36584#undef $ac_func
36585
36586/* Override any GCC internal prototype to avoid an error.
36587   Use char because int might match the return type of a GCC
36588   builtin and then its argument prototype would still apply.  */
36589#ifdef __cplusplus
36590extern "C"
36591#endif
36592char $ac_func ();
36593/* The GNU C library defines this for functions which it implements
36594    to always fail with ENOSYS.  Some functions are actually named
36595    something starting with __ and the normal name is an alias.  */
36596#if defined __stub_$ac_func || defined __stub___$ac_func
36597choke me
36598#endif
36599
36600int
36601main ()
36602{
36603return $ac_func ();
36604  ;
36605  return 0;
36606}
36607_ACEOF
36608rm -f conftest.$ac_objext conftest$ac_exeext
36609if { (ac_try="$ac_link"
36610case "(($ac_try" in
36611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36612  *) ac_try_echo=$ac_try;;
36613esac
36614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36615  (eval "$ac_link") 2>conftest.er1
36616  ac_status=$?
36617  grep -v '^ *+' conftest.er1 >conftest.err
36618  rm -f conftest.er1
36619  cat conftest.err >&5
36620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36621  (exit $ac_status); } && {
36622	 test -z "$ac_c_werror_flag" ||
36623	 test ! -s conftest.err
36624       } && test -s conftest$ac_exeext &&
36625       $as_test_x conftest$ac_exeext; then
36626  eval "$as_ac_var=yes"
36627else
36628  echo "$as_me: failed program was:" >&5
36629sed 's/^/| /' conftest.$ac_ext >&5
36630
36631	eval "$as_ac_var=no"
36632fi
36633
36634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36635      conftest$ac_exeext conftest.$ac_ext
36636fi
36637ac_res=`eval echo '${'$as_ac_var'}'`
36638	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36639echo "${ECHO_T}$ac_res" >&6; }
36640if test `eval echo '${'$as_ac_var'}'` = yes; then
36641  cat >>confdefs.h <<_ACEOF
36642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36643_ACEOF
36644
36645        # bigcrypt was found in libc or existing $LIBS
36646
36647
36648cat >>confdefs.h <<\_ACEOF
36649#define HAVE_BIGCRYPT 1
36650_ACEOF
36651
36652
36653
36654else
36655
36656        # bigcrypt was not found, try adding libsecurity
36657	case " $LIBS " in
36658          *\ -lsecurity\ *)
36659
36660		    # bigcrypt was not found and we already had libsecurity
36661		    # nothing to do here by default
36662		    true
36663
36664	    ;;
36665          *)
36666	    # bigcrypt was not found, try adding libsecurity
36667	    { echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
36668echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6; }
36669if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
36670  echo $ECHO_N "(cached) $ECHO_C" >&6
36671else
36672  ac_check_lib_save_LIBS=$LIBS
36673LIBS="-lsecurity  $LIBS"
36674cat >conftest.$ac_ext <<_ACEOF
36675/* confdefs.h.  */
36676_ACEOF
36677cat confdefs.h >>conftest.$ac_ext
36678cat >>conftest.$ac_ext <<_ACEOF
36679/* end confdefs.h.  */
36680
36681/* Override any GCC internal prototype to avoid an error.
36682   Use char because int might match the return type of a GCC
36683   builtin and then its argument prototype would still apply.  */
36684#ifdef __cplusplus
36685extern "C"
36686#endif
36687char bigcrypt ();
36688int
36689main ()
36690{
36691return bigcrypt ();
36692  ;
36693  return 0;
36694}
36695_ACEOF
36696rm -f conftest.$ac_objext conftest$ac_exeext
36697if { (ac_try="$ac_link"
36698case "(($ac_try" in
36699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36700  *) ac_try_echo=$ac_try;;
36701esac
36702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36703  (eval "$ac_link") 2>conftest.er1
36704  ac_status=$?
36705  grep -v '^ *+' conftest.er1 >conftest.err
36706  rm -f conftest.er1
36707  cat conftest.err >&5
36708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709  (exit $ac_status); } && {
36710	 test -z "$ac_c_werror_flag" ||
36711	 test ! -s conftest.err
36712       } && test -s conftest$ac_exeext &&
36713       $as_test_x conftest$ac_exeext; then
36714  ac_cv_lib_security_bigcrypt=yes
36715else
36716  echo "$as_me: failed program was:" >&5
36717sed 's/^/| /' conftest.$ac_ext >&5
36718
36719	ac_cv_lib_security_bigcrypt=no
36720fi
36721
36722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36723      conftest$ac_exeext conftest.$ac_ext
36724LIBS=$ac_check_lib_save_LIBS
36725fi
36726{ echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
36727echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6; }
36728if test $ac_cv_lib_security_bigcrypt = yes; then
36729
36730		LIBS="-lsecurity $LIBS"
36731
36732
36733cat >>confdefs.h <<\_ACEOF
36734#define HAVE_BIGCRYPT 1
36735_ACEOF
36736
36737
36738
36739else
36740
36741
36742			# bigcrypt was not found in libsecurity
36743			# nothing to do here by default
36744			true
36745
36746
36747fi
36748
36749	  ;;
36750        esac
36751
36752fi
36753done
36754
36755
36756
36757
36758for ac_func in bigcrypt
36759do
36760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36761{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36763if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36764  echo $ECHO_N "(cached) $ECHO_C" >&6
36765else
36766  cat >conftest.$ac_ext <<_ACEOF
36767/* confdefs.h.  */
36768_ACEOF
36769cat confdefs.h >>conftest.$ac_ext
36770cat >>conftest.$ac_ext <<_ACEOF
36771/* end confdefs.h.  */
36772/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36773   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36774#define $ac_func innocuous_$ac_func
36775
36776/* System header to define __stub macros and hopefully few prototypes,
36777    which can conflict with char $ac_func (); below.
36778    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36779    <limits.h> exists even on freestanding compilers.  */
36780
36781#ifdef __STDC__
36782# include <limits.h>
36783#else
36784# include <assert.h>
36785#endif
36786
36787#undef $ac_func
36788
36789/* Override any GCC internal prototype to avoid an error.
36790   Use char because int might match the return type of a GCC
36791   builtin and then its argument prototype would still apply.  */
36792#ifdef __cplusplus
36793extern "C"
36794#endif
36795char $ac_func ();
36796/* The GNU C library defines this for functions which it implements
36797    to always fail with ENOSYS.  Some functions are actually named
36798    something starting with __ and the normal name is an alias.  */
36799#if defined __stub_$ac_func || defined __stub___$ac_func
36800choke me
36801#endif
36802
36803int
36804main ()
36805{
36806return $ac_func ();
36807  ;
36808  return 0;
36809}
36810_ACEOF
36811rm -f conftest.$ac_objext conftest$ac_exeext
36812if { (ac_try="$ac_link"
36813case "(($ac_try" in
36814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36815  *) ac_try_echo=$ac_try;;
36816esac
36817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36818  (eval "$ac_link") 2>conftest.er1
36819  ac_status=$?
36820  grep -v '^ *+' conftest.er1 >conftest.err
36821  rm -f conftest.er1
36822  cat conftest.err >&5
36823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824  (exit $ac_status); } && {
36825	 test -z "$ac_c_werror_flag" ||
36826	 test ! -s conftest.err
36827       } && test -s conftest$ac_exeext &&
36828       $as_test_x conftest$ac_exeext; then
36829  eval "$as_ac_var=yes"
36830else
36831  echo "$as_me: failed program was:" >&5
36832sed 's/^/| /' conftest.$ac_ext >&5
36833
36834	eval "$as_ac_var=no"
36835fi
36836
36837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36838      conftest$ac_exeext conftest.$ac_ext
36839fi
36840ac_res=`eval echo '${'$as_ac_var'}'`
36841	       { echo "$as_me:$LINENO: result: $ac_res" >&5
36842echo "${ECHO_T}$ac_res" >&6; }
36843if test `eval echo '${'$as_ac_var'}'` = yes; then
36844  cat >>confdefs.h <<_ACEOF
36845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36846_ACEOF
36847
36848        # bigcrypt was found in libc or existing $LIBS
36849
36850
36851cat >>confdefs.h <<\_ACEOF
36852#define HAVE_BIGCRYPT 1
36853_ACEOF
36854
36855
36856
36857else
36858
36859        # bigcrypt was not found, try adding libsec
36860	case " $LIBS " in
36861          *\ -lsec\ *)
36862
36863		    # bigcrypt was not found and we already had libsec
36864		    # nothing to do here by default
36865		    true
36866
36867	    ;;
36868          *)
36869	    # bigcrypt was not found, try adding libsec
36870	    { echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
36871echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6; }
36872if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
36873  echo $ECHO_N "(cached) $ECHO_C" >&6
36874else
36875  ac_check_lib_save_LIBS=$LIBS
36876LIBS="-lsec  $LIBS"
36877cat >conftest.$ac_ext <<_ACEOF
36878/* confdefs.h.  */
36879_ACEOF
36880cat confdefs.h >>conftest.$ac_ext
36881cat >>conftest.$ac_ext <<_ACEOF
36882/* end confdefs.h.  */
36883
36884/* Override any GCC internal prototype to avoid an error.
36885   Use char because int might match the return type of a GCC
36886   builtin and then its argument prototype would still apply.  */
36887#ifdef __cplusplus
36888extern "C"
36889#endif
36890char bigcrypt ();
36891int
36892main ()
36893{
36894return bigcrypt ();
36895  ;
36896  return 0;
36897}
36898_ACEOF
36899rm -f conftest.$ac_objext conftest$ac_exeext
36900if { (ac_try="$ac_link"
36901case "(($ac_try" in
36902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36903  *) ac_try_echo=$ac_try;;
36904esac
36905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36906  (eval "$ac_link") 2>conftest.er1
36907  ac_status=$?
36908  grep -v '^ *+' conftest.er1 >conftest.err
36909  rm -f conftest.er1
36910  cat conftest.err >&5
36911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912  (exit $ac_status); } && {
36913	 test -z "$ac_c_werror_flag" ||
36914	 test ! -s conftest.err
36915       } && test -s conftest$ac_exeext &&
36916       $as_test_x conftest$ac_exeext; then
36917  ac_cv_lib_sec_bigcrypt=yes
36918else
36919  echo "$as_me: failed program was:" >&5
36920sed 's/^/| /' conftest.$ac_ext >&5
36921
36922	ac_cv_lib_sec_bigcrypt=no
36923fi
36924
36925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36926      conftest$ac_exeext conftest.$ac_ext
36927LIBS=$ac_check_lib_save_LIBS
36928fi
36929{ echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
36930echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6; }
36931if test $ac_cv_lib_sec_bigcrypt = yes; then
36932
36933		LIBS="-lsec $LIBS"
36934
36935
36936cat >>confdefs.h <<\_ACEOF
36937#define HAVE_BIGCRYPT 1
36938_ACEOF
36939
36940
36941
36942else
36943
36944
36945			# bigcrypt was not found in libsec
36946			# nothing to do here by default
36947			true
36948
36949
36950fi
36951
36952	  ;;
36953        esac
36954
36955fi
36956done
36957
36958
36959
36960
36961
36962for ac_func in getprpwnam
36963do
36964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36968  echo $ECHO_N "(cached) $ECHO_C" >&6
36969else
36970  cat >conftest.$ac_ext <<_ACEOF
36971/* confdefs.h.  */
36972_ACEOF
36973cat confdefs.h >>conftest.$ac_ext
36974cat >>conftest.$ac_ext <<_ACEOF
36975/* end confdefs.h.  */
36976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36977   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36978#define $ac_func innocuous_$ac_func
36979
36980/* System header to define __stub macros and hopefully few prototypes,
36981    which can conflict with char $ac_func (); below.
36982    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36983    <limits.h> exists even on freestanding compilers.  */
36984
36985#ifdef __STDC__
36986# include <limits.h>
36987#else
36988# include <assert.h>
36989#endif
36990
36991#undef $ac_func
36992
36993/* Override any GCC internal prototype to avoid an error.
36994   Use char because int might match the return type of a GCC
36995   builtin and then its argument prototype would still apply.  */
36996#ifdef __cplusplus
36997extern "C"
36998#endif
36999char $ac_func ();
37000/* The GNU C library defines this for functions which it implements
37001    to always fail with ENOSYS.  Some functions are actually named
37002    something starting with __ and the normal name is an alias.  */
37003#if defined __stub_$ac_func || defined __stub___$ac_func
37004choke me
37005#endif
37006
37007int
37008main ()
37009{
37010return $ac_func ();
37011  ;
37012  return 0;
37013}
37014_ACEOF
37015rm -f conftest.$ac_objext conftest$ac_exeext
37016if { (ac_try="$ac_link"
37017case "(($ac_try" in
37018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37019  *) ac_try_echo=$ac_try;;
37020esac
37021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37022  (eval "$ac_link") 2>conftest.er1
37023  ac_status=$?
37024  grep -v '^ *+' conftest.er1 >conftest.err
37025  rm -f conftest.er1
37026  cat conftest.err >&5
37027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028  (exit $ac_status); } && {
37029	 test -z "$ac_c_werror_flag" ||
37030	 test ! -s conftest.err
37031       } && test -s conftest$ac_exeext &&
37032       $as_test_x conftest$ac_exeext; then
37033  eval "$as_ac_var=yes"
37034else
37035  echo "$as_me: failed program was:" >&5
37036sed 's/^/| /' conftest.$ac_ext >&5
37037
37038	eval "$as_ac_var=no"
37039fi
37040
37041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37042      conftest$ac_exeext conftest.$ac_ext
37043fi
37044ac_res=`eval echo '${'$as_ac_var'}'`
37045	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37046echo "${ECHO_T}$ac_res" >&6; }
37047if test `eval echo '${'$as_ac_var'}'` = yes; then
37048  cat >>confdefs.h <<_ACEOF
37049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37050_ACEOF
37051
37052        # getprpwnam was found in libc or existing $LIBS
37053
37054
37055cat >>confdefs.h <<\_ACEOF
37056#define HAVE_GETPRPWNAM 1
37057_ACEOF
37058
37059
37060
37061else
37062
37063        # getprpwnam was not found, try adding libsecurity
37064	case " $LIBS " in
37065          *\ -lsecurity\ *)
37066
37067		    # getprpwnam was not found and we already had libsecurity
37068		    # nothing to do here by default
37069		    true
37070
37071	    ;;
37072          *)
37073	    # getprpwnam was not found, try adding libsecurity
37074	    { echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
37075echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6; }
37076if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
37077  echo $ECHO_N "(cached) $ECHO_C" >&6
37078else
37079  ac_check_lib_save_LIBS=$LIBS
37080LIBS="-lsecurity  $LIBS"
37081cat >conftest.$ac_ext <<_ACEOF
37082/* confdefs.h.  */
37083_ACEOF
37084cat confdefs.h >>conftest.$ac_ext
37085cat >>conftest.$ac_ext <<_ACEOF
37086/* end confdefs.h.  */
37087
37088/* Override any GCC internal prototype to avoid an error.
37089   Use char because int might match the return type of a GCC
37090   builtin and then its argument prototype would still apply.  */
37091#ifdef __cplusplus
37092extern "C"
37093#endif
37094char getprpwnam ();
37095int
37096main ()
37097{
37098return getprpwnam ();
37099  ;
37100  return 0;
37101}
37102_ACEOF
37103rm -f conftest.$ac_objext conftest$ac_exeext
37104if { (ac_try="$ac_link"
37105case "(($ac_try" in
37106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37107  *) ac_try_echo=$ac_try;;
37108esac
37109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37110  (eval "$ac_link") 2>conftest.er1
37111  ac_status=$?
37112  grep -v '^ *+' conftest.er1 >conftest.err
37113  rm -f conftest.er1
37114  cat conftest.err >&5
37115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37116  (exit $ac_status); } && {
37117	 test -z "$ac_c_werror_flag" ||
37118	 test ! -s conftest.err
37119       } && test -s conftest$ac_exeext &&
37120       $as_test_x conftest$ac_exeext; then
37121  ac_cv_lib_security_getprpwnam=yes
37122else
37123  echo "$as_me: failed program was:" >&5
37124sed 's/^/| /' conftest.$ac_ext >&5
37125
37126	ac_cv_lib_security_getprpwnam=no
37127fi
37128
37129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37130      conftest$ac_exeext conftest.$ac_ext
37131LIBS=$ac_check_lib_save_LIBS
37132fi
37133{ echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
37134echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6; }
37135if test $ac_cv_lib_security_getprpwnam = yes; then
37136
37137		LIBS="-lsecurity $LIBS"
37138
37139
37140cat >>confdefs.h <<\_ACEOF
37141#define HAVE_GETPRPWNAM 1
37142_ACEOF
37143
37144
37145
37146else
37147
37148
37149			# getprpwnam was not found in libsecurity
37150			# nothing to do here by default
37151			true
37152
37153
37154fi
37155
37156	  ;;
37157        esac
37158
37159fi
37160done
37161
37162
37163
37164
37165for ac_func in getprpwnam
37166do
37167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37168{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37170if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37171  echo $ECHO_N "(cached) $ECHO_C" >&6
37172else
37173  cat >conftest.$ac_ext <<_ACEOF
37174/* confdefs.h.  */
37175_ACEOF
37176cat confdefs.h >>conftest.$ac_ext
37177cat >>conftest.$ac_ext <<_ACEOF
37178/* end confdefs.h.  */
37179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37180   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37181#define $ac_func innocuous_$ac_func
37182
37183/* System header to define __stub macros and hopefully few prototypes,
37184    which can conflict with char $ac_func (); below.
37185    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37186    <limits.h> exists even on freestanding compilers.  */
37187
37188#ifdef __STDC__
37189# include <limits.h>
37190#else
37191# include <assert.h>
37192#endif
37193
37194#undef $ac_func
37195
37196/* Override any GCC internal prototype to avoid an error.
37197   Use char because int might match the return type of a GCC
37198   builtin and then its argument prototype would still apply.  */
37199#ifdef __cplusplus
37200extern "C"
37201#endif
37202char $ac_func ();
37203/* The GNU C library defines this for functions which it implements
37204    to always fail with ENOSYS.  Some functions are actually named
37205    something starting with __ and the normal name is an alias.  */
37206#if defined __stub_$ac_func || defined __stub___$ac_func
37207choke me
37208#endif
37209
37210int
37211main ()
37212{
37213return $ac_func ();
37214  ;
37215  return 0;
37216}
37217_ACEOF
37218rm -f conftest.$ac_objext conftest$ac_exeext
37219if { (ac_try="$ac_link"
37220case "(($ac_try" in
37221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37222  *) ac_try_echo=$ac_try;;
37223esac
37224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37225  (eval "$ac_link") 2>conftest.er1
37226  ac_status=$?
37227  grep -v '^ *+' conftest.er1 >conftest.err
37228  rm -f conftest.er1
37229  cat conftest.err >&5
37230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231  (exit $ac_status); } && {
37232	 test -z "$ac_c_werror_flag" ||
37233	 test ! -s conftest.err
37234       } && test -s conftest$ac_exeext &&
37235       $as_test_x conftest$ac_exeext; then
37236  eval "$as_ac_var=yes"
37237else
37238  echo "$as_me: failed program was:" >&5
37239sed 's/^/| /' conftest.$ac_ext >&5
37240
37241	eval "$as_ac_var=no"
37242fi
37243
37244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37245      conftest$ac_exeext conftest.$ac_ext
37246fi
37247ac_res=`eval echo '${'$as_ac_var'}'`
37248	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37249echo "${ECHO_T}$ac_res" >&6; }
37250if test `eval echo '${'$as_ac_var'}'` = yes; then
37251  cat >>confdefs.h <<_ACEOF
37252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37253_ACEOF
37254
37255        # getprpwnam was found in libc or existing $LIBS
37256
37257
37258cat >>confdefs.h <<\_ACEOF
37259#define HAVE_GETPRPWNAM 1
37260_ACEOF
37261
37262
37263
37264else
37265
37266        # getprpwnam was not found, try adding libsec
37267	case " $LIBS " in
37268          *\ -lsec\ *)
37269
37270		    # getprpwnam was not found and we already had libsec
37271		    # nothing to do here by default
37272		    true
37273
37274	    ;;
37275          *)
37276	    # getprpwnam was not found, try adding libsec
37277	    { echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
37278echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6; }
37279if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
37280  echo $ECHO_N "(cached) $ECHO_C" >&6
37281else
37282  ac_check_lib_save_LIBS=$LIBS
37283LIBS="-lsec  $LIBS"
37284cat >conftest.$ac_ext <<_ACEOF
37285/* confdefs.h.  */
37286_ACEOF
37287cat confdefs.h >>conftest.$ac_ext
37288cat >>conftest.$ac_ext <<_ACEOF
37289/* end confdefs.h.  */
37290
37291/* Override any GCC internal prototype to avoid an error.
37292   Use char because int might match the return type of a GCC
37293   builtin and then its argument prototype would still apply.  */
37294#ifdef __cplusplus
37295extern "C"
37296#endif
37297char getprpwnam ();
37298int
37299main ()
37300{
37301return getprpwnam ();
37302  ;
37303  return 0;
37304}
37305_ACEOF
37306rm -f conftest.$ac_objext conftest$ac_exeext
37307if { (ac_try="$ac_link"
37308case "(($ac_try" in
37309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37310  *) ac_try_echo=$ac_try;;
37311esac
37312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37313  (eval "$ac_link") 2>conftest.er1
37314  ac_status=$?
37315  grep -v '^ *+' conftest.er1 >conftest.err
37316  rm -f conftest.er1
37317  cat conftest.err >&5
37318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319  (exit $ac_status); } && {
37320	 test -z "$ac_c_werror_flag" ||
37321	 test ! -s conftest.err
37322       } && test -s conftest$ac_exeext &&
37323       $as_test_x conftest$ac_exeext; then
37324  ac_cv_lib_sec_getprpwnam=yes
37325else
37326  echo "$as_me: failed program was:" >&5
37327sed 's/^/| /' conftest.$ac_ext >&5
37328
37329	ac_cv_lib_sec_getprpwnam=no
37330fi
37331
37332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37333      conftest$ac_exeext conftest.$ac_ext
37334LIBS=$ac_check_lib_save_LIBS
37335fi
37336{ echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
37337echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6; }
37338if test $ac_cv_lib_sec_getprpwnam = yes; then
37339
37340		LIBS="-lsec $LIBS"
37341
37342
37343cat >>confdefs.h <<\_ACEOF
37344#define HAVE_GETPRPWNAM 1
37345_ACEOF
37346
37347
37348
37349else
37350
37351
37352			# getprpwnam was not found in libsec
37353			# nothing to do here by default
37354			true
37355
37356
37357fi
37358
37359	  ;;
37360        esac
37361
37362fi
37363done
37364
37365
37366
37367
37368for ac_func in strsignal
37369do
37370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37371{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37373if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37374  echo $ECHO_N "(cached) $ECHO_C" >&6
37375else
37376  cat >conftest.$ac_ext <<_ACEOF
37377/* confdefs.h.  */
37378_ACEOF
37379cat confdefs.h >>conftest.$ac_ext
37380cat >>conftest.$ac_ext <<_ACEOF
37381/* end confdefs.h.  */
37382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37383   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37384#define $ac_func innocuous_$ac_func
37385
37386/* System header to define __stub macros and hopefully few prototypes,
37387    which can conflict with char $ac_func (); below.
37388    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37389    <limits.h> exists even on freestanding compilers.  */
37390
37391#ifdef __STDC__
37392# include <limits.h>
37393#else
37394# include <assert.h>
37395#endif
37396
37397#undef $ac_func
37398
37399/* Override any GCC internal prototype to avoid an error.
37400   Use char because int might match the return type of a GCC
37401   builtin and then its argument prototype would still apply.  */
37402#ifdef __cplusplus
37403extern "C"
37404#endif
37405char $ac_func ();
37406/* The GNU C library defines this for functions which it implements
37407    to always fail with ENOSYS.  Some functions are actually named
37408    something starting with __ and the normal name is an alias.  */
37409#if defined __stub_$ac_func || defined __stub___$ac_func
37410choke me
37411#endif
37412
37413int
37414main ()
37415{
37416return $ac_func ();
37417  ;
37418  return 0;
37419}
37420_ACEOF
37421rm -f conftest.$ac_objext conftest$ac_exeext
37422if { (ac_try="$ac_link"
37423case "(($ac_try" in
37424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37425  *) ac_try_echo=$ac_try;;
37426esac
37427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37428  (eval "$ac_link") 2>conftest.er1
37429  ac_status=$?
37430  grep -v '^ *+' conftest.er1 >conftest.err
37431  rm -f conftest.er1
37432  cat conftest.err >&5
37433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434  (exit $ac_status); } && {
37435	 test -z "$ac_c_werror_flag" ||
37436	 test ! -s conftest.err
37437       } && test -s conftest$ac_exeext &&
37438       $as_test_x conftest$ac_exeext; then
37439  eval "$as_ac_var=yes"
37440else
37441  echo "$as_me: failed program was:" >&5
37442sed 's/^/| /' conftest.$ac_ext >&5
37443
37444	eval "$as_ac_var=no"
37445fi
37446
37447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37448      conftest$ac_exeext conftest.$ac_ext
37449fi
37450ac_res=`eval echo '${'$as_ac_var'}'`
37451	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37452echo "${ECHO_T}$ac_res" >&6; }
37453if test `eval echo '${'$as_ac_var'}'` = yes; then
37454  cat >>confdefs.h <<_ACEOF
37455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37456_ACEOF
37457
37458fi
37459done
37460
37461
37462############################################
37463# Check if we have libattr
37464case "$host_os" in
37465  *osf*)
37466	{ echo "$as_me:$LINENO: checking for library containing getproplist" >&5
37467echo $ECHO_N "checking for library containing getproplist... $ECHO_C" >&6; }
37468if test "${ac_cv_search_getproplist+set}" = set; then
37469  echo $ECHO_N "(cached) $ECHO_C" >&6
37470else
37471  ac_func_search_save_LIBS=$LIBS
37472cat >conftest.$ac_ext <<_ACEOF
37473/* confdefs.h.  */
37474_ACEOF
37475cat confdefs.h >>conftest.$ac_ext
37476cat >>conftest.$ac_ext <<_ACEOF
37477/* end confdefs.h.  */
37478
37479/* Override any GCC internal prototype to avoid an error.
37480   Use char because int might match the return type of a GCC
37481   builtin and then its argument prototype would still apply.  */
37482#ifdef __cplusplus
37483extern "C"
37484#endif
37485char getproplist ();
37486int
37487main ()
37488{
37489return getproplist ();
37490  ;
37491  return 0;
37492}
37493_ACEOF
37494for ac_lib in '' proplist; do
37495  if test -z "$ac_lib"; then
37496    ac_res="none required"
37497  else
37498    ac_res=-l$ac_lib
37499    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37500  fi
37501  rm -f conftest.$ac_objext conftest$ac_exeext
37502if { (ac_try="$ac_link"
37503case "(($ac_try" in
37504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37505  *) ac_try_echo=$ac_try;;
37506esac
37507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37508  (eval "$ac_link") 2>conftest.er1
37509  ac_status=$?
37510  grep -v '^ *+' conftest.er1 >conftest.err
37511  rm -f conftest.er1
37512  cat conftest.err >&5
37513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514  (exit $ac_status); } && {
37515	 test -z "$ac_c_werror_flag" ||
37516	 test ! -s conftest.err
37517       } && test -s conftest$ac_exeext &&
37518       $as_test_x conftest$ac_exeext; then
37519  ac_cv_search_getproplist=$ac_res
37520else
37521  echo "$as_me: failed program was:" >&5
37522sed 's/^/| /' conftest.$ac_ext >&5
37523
37524
37525fi
37526
37527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37528      conftest$ac_exeext
37529  if test "${ac_cv_search_getproplist+set}" = set; then
37530  break
37531fi
37532done
37533if test "${ac_cv_search_getproplist+set}" = set; then
37534  :
37535else
37536  ac_cv_search_getproplist=no
37537fi
37538rm conftest.$ac_ext
37539LIBS=$ac_func_search_save_LIBS
37540fi
37541{ echo "$as_me:$LINENO: result: $ac_cv_search_getproplist" >&5
37542echo "${ECHO_T}$ac_cv_search_getproplist" >&6; }
37543ac_res=$ac_cv_search_getproplist
37544if test "$ac_res" != no; then
37545  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37546
37547fi
37548
37549
37550
37551
37552
37553for ac_func in getproplist fgetproplist setproplist fsetproplist
37554do
37555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37556{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37558if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37559  echo $ECHO_N "(cached) $ECHO_C" >&6
37560else
37561  cat >conftest.$ac_ext <<_ACEOF
37562/* confdefs.h.  */
37563_ACEOF
37564cat confdefs.h >>conftest.$ac_ext
37565cat >>conftest.$ac_ext <<_ACEOF
37566/* end confdefs.h.  */
37567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37568   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37569#define $ac_func innocuous_$ac_func
37570
37571/* System header to define __stub macros and hopefully few prototypes,
37572    which can conflict with char $ac_func (); below.
37573    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37574    <limits.h> exists even on freestanding compilers.  */
37575
37576#ifdef __STDC__
37577# include <limits.h>
37578#else
37579# include <assert.h>
37580#endif
37581
37582#undef $ac_func
37583
37584/* Override any GCC internal prototype to avoid an error.
37585   Use char because int might match the return type of a GCC
37586   builtin and then its argument prototype would still apply.  */
37587#ifdef __cplusplus
37588extern "C"
37589#endif
37590char $ac_func ();
37591/* The GNU C library defines this for functions which it implements
37592    to always fail with ENOSYS.  Some functions are actually named
37593    something starting with __ and the normal name is an alias.  */
37594#if defined __stub_$ac_func || defined __stub___$ac_func
37595choke me
37596#endif
37597
37598int
37599main ()
37600{
37601return $ac_func ();
37602  ;
37603  return 0;
37604}
37605_ACEOF
37606rm -f conftest.$ac_objext conftest$ac_exeext
37607if { (ac_try="$ac_link"
37608case "(($ac_try" in
37609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37610  *) ac_try_echo=$ac_try;;
37611esac
37612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37613  (eval "$ac_link") 2>conftest.er1
37614  ac_status=$?
37615  grep -v '^ *+' conftest.er1 >conftest.err
37616  rm -f conftest.er1
37617  cat conftest.err >&5
37618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619  (exit $ac_status); } && {
37620	 test -z "$ac_c_werror_flag" ||
37621	 test ! -s conftest.err
37622       } && test -s conftest$ac_exeext &&
37623       $as_test_x conftest$ac_exeext; then
37624  eval "$as_ac_var=yes"
37625else
37626  echo "$as_me: failed program was:" >&5
37627sed 's/^/| /' conftest.$ac_ext >&5
37628
37629	eval "$as_ac_var=no"
37630fi
37631
37632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37633      conftest$ac_exeext conftest.$ac_ext
37634fi
37635ac_res=`eval echo '${'$as_ac_var'}'`
37636	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37637echo "${ECHO_T}$ac_res" >&6; }
37638if test `eval echo '${'$as_ac_var'}'` = yes; then
37639  cat >>confdefs.h <<_ACEOF
37640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37641_ACEOF
37642
37643fi
37644done
37645
37646
37647
37648
37649
37650for ac_func in delproplist fdelproplist add_proplist_entry get_proplist_entry
37651do
37652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37653{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37656  echo $ECHO_N "(cached) $ECHO_C" >&6
37657else
37658  cat >conftest.$ac_ext <<_ACEOF
37659/* confdefs.h.  */
37660_ACEOF
37661cat confdefs.h >>conftest.$ac_ext
37662cat >>conftest.$ac_ext <<_ACEOF
37663/* end confdefs.h.  */
37664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37665   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37666#define $ac_func innocuous_$ac_func
37667
37668/* System header to define __stub macros and hopefully few prototypes,
37669    which can conflict with char $ac_func (); below.
37670    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37671    <limits.h> exists even on freestanding compilers.  */
37672
37673#ifdef __STDC__
37674# include <limits.h>
37675#else
37676# include <assert.h>
37677#endif
37678
37679#undef $ac_func
37680
37681/* Override any GCC internal prototype to avoid an error.
37682   Use char because int might match the return type of a GCC
37683   builtin and then its argument prototype would still apply.  */
37684#ifdef __cplusplus
37685extern "C"
37686#endif
37687char $ac_func ();
37688/* The GNU C library defines this for functions which it implements
37689    to always fail with ENOSYS.  Some functions are actually named
37690    something starting with __ and the normal name is an alias.  */
37691#if defined __stub_$ac_func || defined __stub___$ac_func
37692choke me
37693#endif
37694
37695int
37696main ()
37697{
37698return $ac_func ();
37699  ;
37700  return 0;
37701}
37702_ACEOF
37703rm -f conftest.$ac_objext conftest$ac_exeext
37704if { (ac_try="$ac_link"
37705case "(($ac_try" in
37706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37707  *) ac_try_echo=$ac_try;;
37708esac
37709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37710  (eval "$ac_link") 2>conftest.er1
37711  ac_status=$?
37712  grep -v '^ *+' conftest.er1 >conftest.err
37713  rm -f conftest.er1
37714  cat conftest.err >&5
37715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716  (exit $ac_status); } && {
37717	 test -z "$ac_c_werror_flag" ||
37718	 test ! -s conftest.err
37719       } && test -s conftest$ac_exeext &&
37720       $as_test_x conftest$ac_exeext; then
37721  eval "$as_ac_var=yes"
37722else
37723  echo "$as_me: failed program was:" >&5
37724sed 's/^/| /' conftest.$ac_ext >&5
37725
37726	eval "$as_ac_var=no"
37727fi
37728
37729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37730      conftest$ac_exeext conftest.$ac_ext
37731fi
37732ac_res=`eval echo '${'$as_ac_var'}'`
37733	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37734echo "${ECHO_T}$ac_res" >&6; }
37735if test `eval echo '${'$as_ac_var'}'` = yes; then
37736  cat >>confdefs.h <<_ACEOF
37737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37738_ACEOF
37739
37740fi
37741done
37742
37743
37744for ac_func in sizeof_proplist_entry
37745do
37746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37750  echo $ECHO_N "(cached) $ECHO_C" >&6
37751else
37752  cat >conftest.$ac_ext <<_ACEOF
37753/* confdefs.h.  */
37754_ACEOF
37755cat confdefs.h >>conftest.$ac_ext
37756cat >>conftest.$ac_ext <<_ACEOF
37757/* end confdefs.h.  */
37758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37759   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37760#define $ac_func innocuous_$ac_func
37761
37762/* System header to define __stub macros and hopefully few prototypes,
37763    which can conflict with char $ac_func (); below.
37764    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37765    <limits.h> exists even on freestanding compilers.  */
37766
37767#ifdef __STDC__
37768# include <limits.h>
37769#else
37770# include <assert.h>
37771#endif
37772
37773#undef $ac_func
37774
37775/* Override any GCC internal prototype to avoid an error.
37776   Use char because int might match the return type of a GCC
37777   builtin and then its argument prototype would still apply.  */
37778#ifdef __cplusplus
37779extern "C"
37780#endif
37781char $ac_func ();
37782/* The GNU C library defines this for functions which it implements
37783    to always fail with ENOSYS.  Some functions are actually named
37784    something starting with __ and the normal name is an alias.  */
37785#if defined __stub_$ac_func || defined __stub___$ac_func
37786choke me
37787#endif
37788
37789int
37790main ()
37791{
37792return $ac_func ();
37793  ;
37794  return 0;
37795}
37796_ACEOF
37797rm -f conftest.$ac_objext conftest$ac_exeext
37798if { (ac_try="$ac_link"
37799case "(($ac_try" in
37800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37801  *) ac_try_echo=$ac_try;;
37802esac
37803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37804  (eval "$ac_link") 2>conftest.er1
37805  ac_status=$?
37806  grep -v '^ *+' conftest.er1 >conftest.err
37807  rm -f conftest.er1
37808  cat conftest.err >&5
37809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810  (exit $ac_status); } && {
37811	 test -z "$ac_c_werror_flag" ||
37812	 test ! -s conftest.err
37813       } && test -s conftest$ac_exeext &&
37814       $as_test_x conftest$ac_exeext; then
37815  eval "$as_ac_var=yes"
37816else
37817  echo "$as_me: failed program was:" >&5
37818sed 's/^/| /' conftest.$ac_ext >&5
37819
37820	eval "$as_ac_var=no"
37821fi
37822
37823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37824      conftest$ac_exeext conftest.$ac_ext
37825fi
37826ac_res=`eval echo '${'$as_ac_var'}'`
37827	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37828echo "${ECHO_T}$ac_res" >&6; }
37829if test `eval echo '${'$as_ac_var'}'` = yes; then
37830  cat >>confdefs.h <<_ACEOF
37831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37832_ACEOF
37833
37834fi
37835done
37836
37837  ;;
37838  *)
37839	{ echo "$as_me:$LINENO: checking for library containing getxattr" >&5
37840echo $ECHO_N "checking for library containing getxattr... $ECHO_C" >&6; }
37841if test "${ac_cv_search_getxattr+set}" = set; then
37842  echo $ECHO_N "(cached) $ECHO_C" >&6
37843else
37844  ac_func_search_save_LIBS=$LIBS
37845cat >conftest.$ac_ext <<_ACEOF
37846/* confdefs.h.  */
37847_ACEOF
37848cat confdefs.h >>conftest.$ac_ext
37849cat >>conftest.$ac_ext <<_ACEOF
37850/* end confdefs.h.  */
37851
37852/* Override any GCC internal prototype to avoid an error.
37853   Use char because int might match the return type of a GCC
37854   builtin and then its argument prototype would still apply.  */
37855#ifdef __cplusplus
37856extern "C"
37857#endif
37858char getxattr ();
37859int
37860main ()
37861{
37862return getxattr ();
37863  ;
37864  return 0;
37865}
37866_ACEOF
37867for ac_lib in '' attr; do
37868  if test -z "$ac_lib"; then
37869    ac_res="none required"
37870  else
37871    ac_res=-l$ac_lib
37872    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37873  fi
37874  rm -f conftest.$ac_objext conftest$ac_exeext
37875if { (ac_try="$ac_link"
37876case "(($ac_try" in
37877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37878  *) ac_try_echo=$ac_try;;
37879esac
37880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37881  (eval "$ac_link") 2>conftest.er1
37882  ac_status=$?
37883  grep -v '^ *+' conftest.er1 >conftest.err
37884  rm -f conftest.er1
37885  cat conftest.err >&5
37886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887  (exit $ac_status); } && {
37888	 test -z "$ac_c_werror_flag" ||
37889	 test ! -s conftest.err
37890       } && test -s conftest$ac_exeext &&
37891       $as_test_x conftest$ac_exeext; then
37892  ac_cv_search_getxattr=$ac_res
37893else
37894  echo "$as_me: failed program was:" >&5
37895sed 's/^/| /' conftest.$ac_ext >&5
37896
37897
37898fi
37899
37900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37901      conftest$ac_exeext
37902  if test "${ac_cv_search_getxattr+set}" = set; then
37903  break
37904fi
37905done
37906if test "${ac_cv_search_getxattr+set}" = set; then
37907  :
37908else
37909  ac_cv_search_getxattr=no
37910fi
37911rm conftest.$ac_ext
37912LIBS=$ac_func_search_save_LIBS
37913fi
37914{ echo "$as_me:$LINENO: result: $ac_cv_search_getxattr" >&5
37915echo "${ECHO_T}$ac_cv_search_getxattr" >&6; }
37916ac_res=$ac_cv_search_getxattr
37917if test "$ac_res" != no; then
37918  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37919
37920fi
37921
37922
37923
37924
37925
37926
37927for ac_func in getxattr lgetxattr fgetxattr listxattr llistxattr
37928do
37929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37930{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37932if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37933  echo $ECHO_N "(cached) $ECHO_C" >&6
37934else
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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37942   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37943#define $ac_func innocuous_$ac_func
37944
37945/* System header to define __stub macros and hopefully few prototypes,
37946    which can conflict with char $ac_func (); below.
37947    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37948    <limits.h> exists even on freestanding compilers.  */
37949
37950#ifdef __STDC__
37951# include <limits.h>
37952#else
37953# include <assert.h>
37954#endif
37955
37956#undef $ac_func
37957
37958/* Override any GCC internal prototype to avoid an error.
37959   Use char because int might match the return type of a GCC
37960   builtin and then its argument prototype would still apply.  */
37961#ifdef __cplusplus
37962extern "C"
37963#endif
37964char $ac_func ();
37965/* The GNU C library defines this for functions which it implements
37966    to always fail with ENOSYS.  Some functions are actually named
37967    something starting with __ and the normal name is an alias.  */
37968#if defined __stub_$ac_func || defined __stub___$ac_func
37969choke me
37970#endif
37971
37972int
37973main ()
37974{
37975return $ac_func ();
37976  ;
37977  return 0;
37978}
37979_ACEOF
37980rm -f conftest.$ac_objext conftest$ac_exeext
37981if { (ac_try="$ac_link"
37982case "(($ac_try" in
37983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37984  *) ac_try_echo=$ac_try;;
37985esac
37986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37987  (eval "$ac_link") 2>conftest.er1
37988  ac_status=$?
37989  grep -v '^ *+' conftest.er1 >conftest.err
37990  rm -f conftest.er1
37991  cat conftest.err >&5
37992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993  (exit $ac_status); } && {
37994	 test -z "$ac_c_werror_flag" ||
37995	 test ! -s conftest.err
37996       } && test -s conftest$ac_exeext &&
37997       $as_test_x conftest$ac_exeext; then
37998  eval "$as_ac_var=yes"
37999else
38000  echo "$as_me: failed program was:" >&5
38001sed 's/^/| /' conftest.$ac_ext >&5
38002
38003	eval "$as_ac_var=no"
38004fi
38005
38006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38007      conftest$ac_exeext conftest.$ac_ext
38008fi
38009ac_res=`eval echo '${'$as_ac_var'}'`
38010	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38011echo "${ECHO_T}$ac_res" >&6; }
38012if test `eval echo '${'$as_ac_var'}'` = yes; then
38013  cat >>confdefs.h <<_ACEOF
38014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38015_ACEOF
38016
38017fi
38018done
38019
38020
38021
38022
38023
38024
38025
38026for ac_func in getea fgetea lgetea listea flistea llistea
38027do
38028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38029{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38031if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38032  echo $ECHO_N "(cached) $ECHO_C" >&6
38033else
38034  cat >conftest.$ac_ext <<_ACEOF
38035/* confdefs.h.  */
38036_ACEOF
38037cat confdefs.h >>conftest.$ac_ext
38038cat >>conftest.$ac_ext <<_ACEOF
38039/* end confdefs.h.  */
38040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38041   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38042#define $ac_func innocuous_$ac_func
38043
38044/* System header to define __stub macros and hopefully few prototypes,
38045    which can conflict with char $ac_func (); below.
38046    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38047    <limits.h> exists even on freestanding compilers.  */
38048
38049#ifdef __STDC__
38050# include <limits.h>
38051#else
38052# include <assert.h>
38053#endif
38054
38055#undef $ac_func
38056
38057/* Override any GCC internal prototype to avoid an error.
38058   Use char because int might match the return type of a GCC
38059   builtin and then its argument prototype would still apply.  */
38060#ifdef __cplusplus
38061extern "C"
38062#endif
38063char $ac_func ();
38064/* The GNU C library defines this for functions which it implements
38065    to always fail with ENOSYS.  Some functions are actually named
38066    something starting with __ and the normal name is an alias.  */
38067#if defined __stub_$ac_func || defined __stub___$ac_func
38068choke me
38069#endif
38070
38071int
38072main ()
38073{
38074return $ac_func ();
38075  ;
38076  return 0;
38077}
38078_ACEOF
38079rm -f conftest.$ac_objext conftest$ac_exeext
38080if { (ac_try="$ac_link"
38081case "(($ac_try" in
38082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38083  *) ac_try_echo=$ac_try;;
38084esac
38085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38086  (eval "$ac_link") 2>conftest.er1
38087  ac_status=$?
38088  grep -v '^ *+' conftest.er1 >conftest.err
38089  rm -f conftest.er1
38090  cat conftest.err >&5
38091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092  (exit $ac_status); } && {
38093	 test -z "$ac_c_werror_flag" ||
38094	 test ! -s conftest.err
38095       } && test -s conftest$ac_exeext &&
38096       $as_test_x conftest$ac_exeext; then
38097  eval "$as_ac_var=yes"
38098else
38099  echo "$as_me: failed program was:" >&5
38100sed 's/^/| /' conftest.$ac_ext >&5
38101
38102	eval "$as_ac_var=no"
38103fi
38104
38105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38106      conftest$ac_exeext conftest.$ac_ext
38107fi
38108ac_res=`eval echo '${'$as_ac_var'}'`
38109	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38110echo "${ECHO_T}$ac_res" >&6; }
38111if test `eval echo '${'$as_ac_var'}'` = yes; then
38112  cat >>confdefs.h <<_ACEOF
38113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38114_ACEOF
38115
38116fi
38117done
38118
38119
38120
38121
38122
38123
38124
38125for ac_func in removeea fremoveea lremoveea setea fsetea lsetea
38126do
38127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38128{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38130if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38131  echo $ECHO_N "(cached) $ECHO_C" >&6
38132else
38133  cat >conftest.$ac_ext <<_ACEOF
38134/* confdefs.h.  */
38135_ACEOF
38136cat confdefs.h >>conftest.$ac_ext
38137cat >>conftest.$ac_ext <<_ACEOF
38138/* end confdefs.h.  */
38139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38140   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38141#define $ac_func innocuous_$ac_func
38142
38143/* System header to define __stub macros and hopefully few prototypes,
38144    which can conflict with char $ac_func (); below.
38145    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38146    <limits.h> exists even on freestanding compilers.  */
38147
38148#ifdef __STDC__
38149# include <limits.h>
38150#else
38151# include <assert.h>
38152#endif
38153
38154#undef $ac_func
38155
38156/* Override any GCC internal prototype to avoid an error.
38157   Use char because int might match the return type of a GCC
38158   builtin and then its argument prototype would still apply.  */
38159#ifdef __cplusplus
38160extern "C"
38161#endif
38162char $ac_func ();
38163/* The GNU C library defines this for functions which it implements
38164    to always fail with ENOSYS.  Some functions are actually named
38165    something starting with __ and the normal name is an alias.  */
38166#if defined __stub_$ac_func || defined __stub___$ac_func
38167choke me
38168#endif
38169
38170int
38171main ()
38172{
38173return $ac_func ();
38174  ;
38175  return 0;
38176}
38177_ACEOF
38178rm -f conftest.$ac_objext conftest$ac_exeext
38179if { (ac_try="$ac_link"
38180case "(($ac_try" in
38181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38182  *) ac_try_echo=$ac_try;;
38183esac
38184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38185  (eval "$ac_link") 2>conftest.er1
38186  ac_status=$?
38187  grep -v '^ *+' conftest.er1 >conftest.err
38188  rm -f conftest.er1
38189  cat conftest.err >&5
38190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38191  (exit $ac_status); } && {
38192	 test -z "$ac_c_werror_flag" ||
38193	 test ! -s conftest.err
38194       } && test -s conftest$ac_exeext &&
38195       $as_test_x conftest$ac_exeext; then
38196  eval "$as_ac_var=yes"
38197else
38198  echo "$as_me: failed program was:" >&5
38199sed 's/^/| /' conftest.$ac_ext >&5
38200
38201	eval "$as_ac_var=no"
38202fi
38203
38204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38205      conftest$ac_exeext conftest.$ac_ext
38206fi
38207ac_res=`eval echo '${'$as_ac_var'}'`
38208	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38209echo "${ECHO_T}$ac_res" >&6; }
38210if test `eval echo '${'$as_ac_var'}'` = yes; then
38211  cat >>confdefs.h <<_ACEOF
38212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38213_ACEOF
38214
38215fi
38216done
38217
38218
38219
38220
38221
38222for ac_func in flistxattr removexattr lremovexattr fremovexattr
38223do
38224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38225{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38227if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38228  echo $ECHO_N "(cached) $ECHO_C" >&6
38229else
38230  cat >conftest.$ac_ext <<_ACEOF
38231/* confdefs.h.  */
38232_ACEOF
38233cat confdefs.h >>conftest.$ac_ext
38234cat >>conftest.$ac_ext <<_ACEOF
38235/* end confdefs.h.  */
38236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38237   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38238#define $ac_func innocuous_$ac_func
38239
38240/* System header to define __stub macros and hopefully few prototypes,
38241    which can conflict with char $ac_func (); below.
38242    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38243    <limits.h> exists even on freestanding compilers.  */
38244
38245#ifdef __STDC__
38246# include <limits.h>
38247#else
38248# include <assert.h>
38249#endif
38250
38251#undef $ac_func
38252
38253/* Override any GCC internal prototype to avoid an error.
38254   Use char because int might match the return type of a GCC
38255   builtin and then its argument prototype would still apply.  */
38256#ifdef __cplusplus
38257extern "C"
38258#endif
38259char $ac_func ();
38260/* The GNU C library defines this for functions which it implements
38261    to always fail with ENOSYS.  Some functions are actually named
38262    something starting with __ and the normal name is an alias.  */
38263#if defined __stub_$ac_func || defined __stub___$ac_func
38264choke me
38265#endif
38266
38267int
38268main ()
38269{
38270return $ac_func ();
38271  ;
38272  return 0;
38273}
38274_ACEOF
38275rm -f conftest.$ac_objext conftest$ac_exeext
38276if { (ac_try="$ac_link"
38277case "(($ac_try" in
38278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38279  *) ac_try_echo=$ac_try;;
38280esac
38281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38282  (eval "$ac_link") 2>conftest.er1
38283  ac_status=$?
38284  grep -v '^ *+' conftest.er1 >conftest.err
38285  rm -f conftest.er1
38286  cat conftest.err >&5
38287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288  (exit $ac_status); } && {
38289	 test -z "$ac_c_werror_flag" ||
38290	 test ! -s conftest.err
38291       } && test -s conftest$ac_exeext &&
38292       $as_test_x conftest$ac_exeext; then
38293  eval "$as_ac_var=yes"
38294else
38295  echo "$as_me: failed program was:" >&5
38296sed 's/^/| /' conftest.$ac_ext >&5
38297
38298	eval "$as_ac_var=no"
38299fi
38300
38301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38302      conftest$ac_exeext conftest.$ac_ext
38303fi
38304ac_res=`eval echo '${'$as_ac_var'}'`
38305	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38306echo "${ECHO_T}$ac_res" >&6; }
38307if test `eval echo '${'$as_ac_var'}'` = yes; then
38308  cat >>confdefs.h <<_ACEOF
38309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38310_ACEOF
38311
38312fi
38313done
38314
38315
38316
38317
38318for ac_func in setxattr lsetxattr fsetxattr
38319do
38320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38324  echo $ECHO_N "(cached) $ECHO_C" >&6
38325else
38326  cat >conftest.$ac_ext <<_ACEOF
38327/* confdefs.h.  */
38328_ACEOF
38329cat confdefs.h >>conftest.$ac_ext
38330cat >>conftest.$ac_ext <<_ACEOF
38331/* end confdefs.h.  */
38332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38333   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38334#define $ac_func innocuous_$ac_func
38335
38336/* System header to define __stub macros and hopefully few prototypes,
38337    which can conflict with char $ac_func (); below.
38338    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38339    <limits.h> exists even on freestanding compilers.  */
38340
38341#ifdef __STDC__
38342# include <limits.h>
38343#else
38344# include <assert.h>
38345#endif
38346
38347#undef $ac_func
38348
38349/* Override any GCC internal prototype to avoid an error.
38350   Use char because int might match the return type of a GCC
38351   builtin and then its argument prototype would still apply.  */
38352#ifdef __cplusplus
38353extern "C"
38354#endif
38355char $ac_func ();
38356/* The GNU C library defines this for functions which it implements
38357    to always fail with ENOSYS.  Some functions are actually named
38358    something starting with __ and the normal name is an alias.  */
38359#if defined __stub_$ac_func || defined __stub___$ac_func
38360choke me
38361#endif
38362
38363int
38364main ()
38365{
38366return $ac_func ();
38367  ;
38368  return 0;
38369}
38370_ACEOF
38371rm -f conftest.$ac_objext conftest$ac_exeext
38372if { (ac_try="$ac_link"
38373case "(($ac_try" in
38374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38375  *) ac_try_echo=$ac_try;;
38376esac
38377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38378  (eval "$ac_link") 2>conftest.er1
38379  ac_status=$?
38380  grep -v '^ *+' conftest.er1 >conftest.err
38381  rm -f conftest.er1
38382  cat conftest.err >&5
38383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384  (exit $ac_status); } && {
38385	 test -z "$ac_c_werror_flag" ||
38386	 test ! -s conftest.err
38387       } && test -s conftest$ac_exeext &&
38388       $as_test_x conftest$ac_exeext; then
38389  eval "$as_ac_var=yes"
38390else
38391  echo "$as_me: failed program was:" >&5
38392sed 's/^/| /' conftest.$ac_ext >&5
38393
38394	eval "$as_ac_var=no"
38395fi
38396
38397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38398      conftest$ac_exeext conftest.$ac_ext
38399fi
38400ac_res=`eval echo '${'$as_ac_var'}'`
38401	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38402echo "${ECHO_T}$ac_res" >&6; }
38403if test `eval echo '${'$as_ac_var'}'` = yes; then
38404  cat >>confdefs.h <<_ACEOF
38405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38406_ACEOF
38407
38408fi
38409done
38410
38411
38412
38413
38414
38415for ac_func in attr_get attr_list attr_set attr_remove
38416do
38417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38418{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38420if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38421  echo $ECHO_N "(cached) $ECHO_C" >&6
38422else
38423  cat >conftest.$ac_ext <<_ACEOF
38424/* confdefs.h.  */
38425_ACEOF
38426cat confdefs.h >>conftest.$ac_ext
38427cat >>conftest.$ac_ext <<_ACEOF
38428/* end confdefs.h.  */
38429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38430   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38431#define $ac_func innocuous_$ac_func
38432
38433/* System header to define __stub macros and hopefully few prototypes,
38434    which can conflict with char $ac_func (); below.
38435    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38436    <limits.h> exists even on freestanding compilers.  */
38437
38438#ifdef __STDC__
38439# include <limits.h>
38440#else
38441# include <assert.h>
38442#endif
38443
38444#undef $ac_func
38445
38446/* Override any GCC internal prototype to avoid an error.
38447   Use char because int might match the return type of a GCC
38448   builtin and then its argument prototype would still apply.  */
38449#ifdef __cplusplus
38450extern "C"
38451#endif
38452char $ac_func ();
38453/* The GNU C library defines this for functions which it implements
38454    to always fail with ENOSYS.  Some functions are actually named
38455    something starting with __ and the normal name is an alias.  */
38456#if defined __stub_$ac_func || defined __stub___$ac_func
38457choke me
38458#endif
38459
38460int
38461main ()
38462{
38463return $ac_func ();
38464  ;
38465  return 0;
38466}
38467_ACEOF
38468rm -f conftest.$ac_objext conftest$ac_exeext
38469if { (ac_try="$ac_link"
38470case "(($ac_try" in
38471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38472  *) ac_try_echo=$ac_try;;
38473esac
38474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38475  (eval "$ac_link") 2>conftest.er1
38476  ac_status=$?
38477  grep -v '^ *+' conftest.er1 >conftest.err
38478  rm -f conftest.er1
38479  cat conftest.err >&5
38480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481  (exit $ac_status); } && {
38482	 test -z "$ac_c_werror_flag" ||
38483	 test ! -s conftest.err
38484       } && test -s conftest$ac_exeext &&
38485       $as_test_x conftest$ac_exeext; then
38486  eval "$as_ac_var=yes"
38487else
38488  echo "$as_me: failed program was:" >&5
38489sed 's/^/| /' conftest.$ac_ext >&5
38490
38491	eval "$as_ac_var=no"
38492fi
38493
38494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38495      conftest$ac_exeext conftest.$ac_ext
38496fi
38497ac_res=`eval echo '${'$as_ac_var'}'`
38498	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38499echo "${ECHO_T}$ac_res" >&6; }
38500if test `eval echo '${'$as_ac_var'}'` = yes; then
38501  cat >>confdefs.h <<_ACEOF
38502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38503_ACEOF
38504
38505fi
38506done
38507
38508
38509
38510
38511
38512for ac_func in attr_getf attr_listf attr_setf attr_removef
38513do
38514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38515{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38518  echo $ECHO_N "(cached) $ECHO_C" >&6
38519else
38520  cat >conftest.$ac_ext <<_ACEOF
38521/* confdefs.h.  */
38522_ACEOF
38523cat confdefs.h >>conftest.$ac_ext
38524cat >>conftest.$ac_ext <<_ACEOF
38525/* end confdefs.h.  */
38526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38527   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38528#define $ac_func innocuous_$ac_func
38529
38530/* System header to define __stub macros and hopefully few prototypes,
38531    which can conflict with char $ac_func (); below.
38532    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38533    <limits.h> exists even on freestanding compilers.  */
38534
38535#ifdef __STDC__
38536# include <limits.h>
38537#else
38538# include <assert.h>
38539#endif
38540
38541#undef $ac_func
38542
38543/* Override any GCC internal prototype to avoid an error.
38544   Use char because int might match the return type of a GCC
38545   builtin and then its argument prototype would still apply.  */
38546#ifdef __cplusplus
38547extern "C"
38548#endif
38549char $ac_func ();
38550/* The GNU C library defines this for functions which it implements
38551    to always fail with ENOSYS.  Some functions are actually named
38552    something starting with __ and the normal name is an alias.  */
38553#if defined __stub_$ac_func || defined __stub___$ac_func
38554choke me
38555#endif
38556
38557int
38558main ()
38559{
38560return $ac_func ();
38561  ;
38562  return 0;
38563}
38564_ACEOF
38565rm -f conftest.$ac_objext conftest$ac_exeext
38566if { (ac_try="$ac_link"
38567case "(($ac_try" in
38568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38569  *) ac_try_echo=$ac_try;;
38570esac
38571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38572  (eval "$ac_link") 2>conftest.er1
38573  ac_status=$?
38574  grep -v '^ *+' conftest.er1 >conftest.err
38575  rm -f conftest.er1
38576  cat conftest.err >&5
38577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578  (exit $ac_status); } && {
38579	 test -z "$ac_c_werror_flag" ||
38580	 test ! -s conftest.err
38581       } && test -s conftest$ac_exeext &&
38582       $as_test_x conftest$ac_exeext; then
38583  eval "$as_ac_var=yes"
38584else
38585  echo "$as_me: failed program was:" >&5
38586sed 's/^/| /' conftest.$ac_ext >&5
38587
38588	eval "$as_ac_var=no"
38589fi
38590
38591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38592      conftest$ac_exeext conftest.$ac_ext
38593fi
38594ac_res=`eval echo '${'$as_ac_var'}'`
38595	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38596echo "${ECHO_T}$ac_res" >&6; }
38597if test `eval echo '${'$as_ac_var'}'` = yes; then
38598  cat >>confdefs.h <<_ACEOF
38599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38600_ACEOF
38601
38602fi
38603done
38604
38605  ;;
38606esac
38607
38608########################################################
38609# Do xattr functions take additional options like on Darwin?
38610if test x"$ac_cv_func_getxattr" = x"yes" ; then
38611	{ echo "$as_me:$LINENO: checking whether xattr interface takes additional options" >&5
38612echo $ECHO_N "checking whether xattr interface takes additional options... $ECHO_C" >&6; }
38613if test "${smb_attr_cv_xattr_add_opt+set}" = set; then
38614  echo $ECHO_N "(cached) $ECHO_C" >&6
38615else
38616
38617		old_LIBS=$LIBS
38618		LIBS="$LIBS $ACL_LIBS"
38619		cat >conftest.$ac_ext <<_ACEOF
38620/* confdefs.h.  */
38621_ACEOF
38622cat confdefs.h >>conftest.$ac_ext
38623cat >>conftest.$ac_ext <<_ACEOF
38624/* end confdefs.h.  */
38625
38626			#include <sys/types.h>
38627			#if HAVE_ATTR_XATTR_H
38628			#include <attr/xattr.h>
38629			#elif HAVE_SYS_XATTR_H
38630			#include <sys/xattr.h>
38631			#endif
38632
38633int
38634main ()
38635{
38636
38637			getxattr(0, 0, 0, 0, 0, 0);
38638
38639  ;
38640  return 0;
38641}
38642_ACEOF
38643rm -f conftest.$ac_objext
38644if { (ac_try="$ac_compile"
38645case "(($ac_try" in
38646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38647  *) ac_try_echo=$ac_try;;
38648esac
38649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38650  (eval "$ac_compile") 2>conftest.er1
38651  ac_status=$?
38652  grep -v '^ *+' conftest.er1 >conftest.err
38653  rm -f conftest.er1
38654  cat conftest.err >&5
38655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656  (exit $ac_status); } && {
38657	 test -z "$ac_c_werror_flag" ||
38658	 test ! -s conftest.err
38659       } && test -s conftest.$ac_objext; then
38660  smb_attr_cv_xattr_add_opt=yes
38661else
38662  echo "$as_me: failed program was:" >&5
38663sed 's/^/| /' conftest.$ac_ext >&5
38664
38665	smb_attr_cv_xattr_add_opt=no;LIBS=$old_LIBS
38666fi
38667
38668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38669
38670fi
38671{ echo "$as_me:$LINENO: result: $smb_attr_cv_xattr_add_opt" >&5
38672echo "${ECHO_T}$smb_attr_cv_xattr_add_opt" >&6; }
38673	if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then
38674
38675cat >>confdefs.h <<\_ACEOF
38676#define XATTR_ADD_OPT 1
38677_ACEOF
38678
38679	fi
38680fi
38681
38682# Check if we have extattr
38683case "$host_os" in
38684  *freebsd4* | *dragonfly* )
38685
38686cat >>confdefs.h <<\_ACEOF
38687#define BROKEN_EXTATTR 1
38688_ACEOF
38689
38690    ;;
38691  *)
38692
38693
38694
38695for ac_func in extattr_delete_fd extattr_delete_file extattr_delete_link
38696do
38697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38701  echo $ECHO_N "(cached) $ECHO_C" >&6
38702else
38703  cat >conftest.$ac_ext <<_ACEOF
38704/* confdefs.h.  */
38705_ACEOF
38706cat confdefs.h >>conftest.$ac_ext
38707cat >>conftest.$ac_ext <<_ACEOF
38708/* end confdefs.h.  */
38709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38710   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38711#define $ac_func innocuous_$ac_func
38712
38713/* System header to define __stub macros and hopefully few prototypes,
38714    which can conflict with char $ac_func (); below.
38715    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38716    <limits.h> exists even on freestanding compilers.  */
38717
38718#ifdef __STDC__
38719# include <limits.h>
38720#else
38721# include <assert.h>
38722#endif
38723
38724#undef $ac_func
38725
38726/* Override any GCC internal prototype to avoid an error.
38727   Use char because int might match the return type of a GCC
38728   builtin and then its argument prototype would still apply.  */
38729#ifdef __cplusplus
38730extern "C"
38731#endif
38732char $ac_func ();
38733/* The GNU C library defines this for functions which it implements
38734    to always fail with ENOSYS.  Some functions are actually named
38735    something starting with __ and the normal name is an alias.  */
38736#if defined __stub_$ac_func || defined __stub___$ac_func
38737choke me
38738#endif
38739
38740int
38741main ()
38742{
38743return $ac_func ();
38744  ;
38745  return 0;
38746}
38747_ACEOF
38748rm -f conftest.$ac_objext conftest$ac_exeext
38749if { (ac_try="$ac_link"
38750case "(($ac_try" in
38751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38752  *) ac_try_echo=$ac_try;;
38753esac
38754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38755  (eval "$ac_link") 2>conftest.er1
38756  ac_status=$?
38757  grep -v '^ *+' conftest.er1 >conftest.err
38758  rm -f conftest.er1
38759  cat conftest.err >&5
38760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761  (exit $ac_status); } && {
38762	 test -z "$ac_c_werror_flag" ||
38763	 test ! -s conftest.err
38764       } && test -s conftest$ac_exeext &&
38765       $as_test_x conftest$ac_exeext; then
38766  eval "$as_ac_var=yes"
38767else
38768  echo "$as_me: failed program was:" >&5
38769sed 's/^/| /' conftest.$ac_ext >&5
38770
38771	eval "$as_ac_var=no"
38772fi
38773
38774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38775      conftest$ac_exeext conftest.$ac_ext
38776fi
38777ac_res=`eval echo '${'$as_ac_var'}'`
38778	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38779echo "${ECHO_T}$ac_res" >&6; }
38780if test `eval echo '${'$as_ac_var'}'` = yes; then
38781  cat >>confdefs.h <<_ACEOF
38782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38783_ACEOF
38784
38785fi
38786done
38787
38788
38789
38790
38791for ac_func in extattr_get_fd extattr_get_file extattr_get_link
38792do
38793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38794{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38796if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38797  echo $ECHO_N "(cached) $ECHO_C" >&6
38798else
38799  cat >conftest.$ac_ext <<_ACEOF
38800/* confdefs.h.  */
38801_ACEOF
38802cat confdefs.h >>conftest.$ac_ext
38803cat >>conftest.$ac_ext <<_ACEOF
38804/* end confdefs.h.  */
38805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38806   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38807#define $ac_func innocuous_$ac_func
38808
38809/* System header to define __stub macros and hopefully few prototypes,
38810    which can conflict with char $ac_func (); below.
38811    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38812    <limits.h> exists even on freestanding compilers.  */
38813
38814#ifdef __STDC__
38815# include <limits.h>
38816#else
38817# include <assert.h>
38818#endif
38819
38820#undef $ac_func
38821
38822/* Override any GCC internal prototype to avoid an error.
38823   Use char because int might match the return type of a GCC
38824   builtin and then its argument prototype would still apply.  */
38825#ifdef __cplusplus
38826extern "C"
38827#endif
38828char $ac_func ();
38829/* The GNU C library defines this for functions which it implements
38830    to always fail with ENOSYS.  Some functions are actually named
38831    something starting with __ and the normal name is an alias.  */
38832#if defined __stub_$ac_func || defined __stub___$ac_func
38833choke me
38834#endif
38835
38836int
38837main ()
38838{
38839return $ac_func ();
38840  ;
38841  return 0;
38842}
38843_ACEOF
38844rm -f conftest.$ac_objext conftest$ac_exeext
38845if { (ac_try="$ac_link"
38846case "(($ac_try" in
38847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38848  *) ac_try_echo=$ac_try;;
38849esac
38850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38851  (eval "$ac_link") 2>conftest.er1
38852  ac_status=$?
38853  grep -v '^ *+' conftest.er1 >conftest.err
38854  rm -f conftest.er1
38855  cat conftest.err >&5
38856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38857  (exit $ac_status); } && {
38858	 test -z "$ac_c_werror_flag" ||
38859	 test ! -s conftest.err
38860       } && test -s conftest$ac_exeext &&
38861       $as_test_x conftest$ac_exeext; then
38862  eval "$as_ac_var=yes"
38863else
38864  echo "$as_me: failed program was:" >&5
38865sed 's/^/| /' conftest.$ac_ext >&5
38866
38867	eval "$as_ac_var=no"
38868fi
38869
38870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38871      conftest$ac_exeext conftest.$ac_ext
38872fi
38873ac_res=`eval echo '${'$as_ac_var'}'`
38874	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38875echo "${ECHO_T}$ac_res" >&6; }
38876if test `eval echo '${'$as_ac_var'}'` = yes; then
38877  cat >>confdefs.h <<_ACEOF
38878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38879_ACEOF
38880
38881fi
38882done
38883
38884
38885
38886
38887for ac_func in extattr_list_fd extattr_list_file extattr_list_link
38888do
38889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38890{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38892if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38893  echo $ECHO_N "(cached) $ECHO_C" >&6
38894else
38895  cat >conftest.$ac_ext <<_ACEOF
38896/* confdefs.h.  */
38897_ACEOF
38898cat confdefs.h >>conftest.$ac_ext
38899cat >>conftest.$ac_ext <<_ACEOF
38900/* end confdefs.h.  */
38901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38902   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38903#define $ac_func innocuous_$ac_func
38904
38905/* System header to define __stub macros and hopefully few prototypes,
38906    which can conflict with char $ac_func (); below.
38907    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38908    <limits.h> exists even on freestanding compilers.  */
38909
38910#ifdef __STDC__
38911# include <limits.h>
38912#else
38913# include <assert.h>
38914#endif
38915
38916#undef $ac_func
38917
38918/* Override any GCC internal prototype to avoid an error.
38919   Use char because int might match the return type of a GCC
38920   builtin and then its argument prototype would still apply.  */
38921#ifdef __cplusplus
38922extern "C"
38923#endif
38924char $ac_func ();
38925/* The GNU C library defines this for functions which it implements
38926    to always fail with ENOSYS.  Some functions are actually named
38927    something starting with __ and the normal name is an alias.  */
38928#if defined __stub_$ac_func || defined __stub___$ac_func
38929choke me
38930#endif
38931
38932int
38933main ()
38934{
38935return $ac_func ();
38936  ;
38937  return 0;
38938}
38939_ACEOF
38940rm -f conftest.$ac_objext conftest$ac_exeext
38941if { (ac_try="$ac_link"
38942case "(($ac_try" in
38943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38944  *) ac_try_echo=$ac_try;;
38945esac
38946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38947  (eval "$ac_link") 2>conftest.er1
38948  ac_status=$?
38949  grep -v '^ *+' conftest.er1 >conftest.err
38950  rm -f conftest.er1
38951  cat conftest.err >&5
38952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953  (exit $ac_status); } && {
38954	 test -z "$ac_c_werror_flag" ||
38955	 test ! -s conftest.err
38956       } && test -s conftest$ac_exeext &&
38957       $as_test_x conftest$ac_exeext; then
38958  eval "$as_ac_var=yes"
38959else
38960  echo "$as_me: failed program was:" >&5
38961sed 's/^/| /' conftest.$ac_ext >&5
38962
38963	eval "$as_ac_var=no"
38964fi
38965
38966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38967      conftest$ac_exeext conftest.$ac_ext
38968fi
38969ac_res=`eval echo '${'$as_ac_var'}'`
38970	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38971echo "${ECHO_T}$ac_res" >&6; }
38972if test `eval echo '${'$as_ac_var'}'` = yes; then
38973  cat >>confdefs.h <<_ACEOF
38974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38975_ACEOF
38976
38977fi
38978done
38979
38980
38981
38982
38983for ac_func in extattr_set_fd extattr_set_file extattr_set_link
38984do
38985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38989  echo $ECHO_N "(cached) $ECHO_C" >&6
38990else
38991  cat >conftest.$ac_ext <<_ACEOF
38992/* confdefs.h.  */
38993_ACEOF
38994cat confdefs.h >>conftest.$ac_ext
38995cat >>conftest.$ac_ext <<_ACEOF
38996/* end confdefs.h.  */
38997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38998   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38999#define $ac_func innocuous_$ac_func
39000
39001/* System header to define __stub macros and hopefully few prototypes,
39002    which can conflict with char $ac_func (); below.
39003    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39004    <limits.h> exists even on freestanding compilers.  */
39005
39006#ifdef __STDC__
39007# include <limits.h>
39008#else
39009# include <assert.h>
39010#endif
39011
39012#undef $ac_func
39013
39014/* Override any GCC internal prototype to avoid an error.
39015   Use char because int might match the return type of a GCC
39016   builtin and then its argument prototype would still apply.  */
39017#ifdef __cplusplus
39018extern "C"
39019#endif
39020char $ac_func ();
39021/* The GNU C library defines this for functions which it implements
39022    to always fail with ENOSYS.  Some functions are actually named
39023    something starting with __ and the normal name is an alias.  */
39024#if defined __stub_$ac_func || defined __stub___$ac_func
39025choke me
39026#endif
39027
39028int
39029main ()
39030{
39031return $ac_func ();
39032  ;
39033  return 0;
39034}
39035_ACEOF
39036rm -f conftest.$ac_objext conftest$ac_exeext
39037if { (ac_try="$ac_link"
39038case "(($ac_try" in
39039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39040  *) ac_try_echo=$ac_try;;
39041esac
39042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39043  (eval "$ac_link") 2>conftest.er1
39044  ac_status=$?
39045  grep -v '^ *+' conftest.er1 >conftest.err
39046  rm -f conftest.er1
39047  cat conftest.err >&5
39048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049  (exit $ac_status); } && {
39050	 test -z "$ac_c_werror_flag" ||
39051	 test ! -s conftest.err
39052       } && test -s conftest$ac_exeext &&
39053       $as_test_x conftest$ac_exeext; then
39054  eval "$as_ac_var=yes"
39055else
39056  echo "$as_me: failed program was:" >&5
39057sed 's/^/| /' conftest.$ac_ext >&5
39058
39059	eval "$as_ac_var=no"
39060fi
39061
39062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39063      conftest$ac_exeext conftest.$ac_ext
39064fi
39065ac_res=`eval echo '${'$as_ac_var'}'`
39066	       { echo "$as_me:$LINENO: result: $ac_res" >&5
39067echo "${ECHO_T}$ac_res" >&6; }
39068if test `eval echo '${'$as_ac_var'}'` = yes; then
39069  cat >>confdefs.h <<_ACEOF
39070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39071_ACEOF
39072
39073fi
39074done
39075
39076    ;;
39077esac
39078
39079# Set defaults
39080PIE_CFLAGS=""
39081PIE_LDFLAGS=""
39082# Check whether --enable-pie was given.
39083if test "${enable_pie+set}" = set; then
39084  enableval=$enable_pie;
39085fi
39086
39087
39088if test "x$enable_pie" != xno
39089then
39090	{ echo "$as_me:$LINENO: checking for -pie and -fPIE" >&5
39091echo $ECHO_N "checking for -pie and -fPIE... $ECHO_C" >&6; }
39092if test "${samba_cv_fpie+set}" = set; then
39093  echo $ECHO_N "(cached) $ECHO_C" >&6
39094else
39095
39096		cat > conftest.c <<EOF
39097int foo;
39098main () { return 0;}
39099EOF
39100		if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fPIE -o conftest conftest.c 1>&5'
39101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39102  (eval $ac_try) 2>&5
39103  ac_status=$?
39104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39105  (exit $ac_status); }; }
39106		then
39107			samba_cv_fpie=yes
39108		else
39109			samba_cv_fpie=no
39110		fi
39111		rm -f conftest*
39112
39113fi
39114{ echo "$as_me:$LINENO: result: $samba_cv_fpie" >&5
39115echo "${ECHO_T}$samba_cv_fpie" >&6; }
39116	if test x"${samba_cv_fpie}" = x"yes"
39117	then
39118		PIE_CFLAGS="-fPIE"
39119		PIE_LDFLAGS="-pie"
39120	fi
39121fi
39122
39123# Assume non-shared by default and override below
39124BLDSHARED="false"
39125
39126# these are the defaults, good for lots of systems
39127HOST_OS="$host_os"
39128LDSHFLAGS="-shared"
39129SONAMEFLAG="#"
39130SHLD="\${CC} \${CFLAGS}"
39131PICFLAG="${PIE_CFLAGS}"
39132SHLIBEXT="so"
39133
39134# this bit needs to be modified for each OS that supports share libs
39135# You need to specify how to create a shared library and
39136  # how to compile C code to produce PIC object files
39137
39138  { echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
39139echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6; }
39140
39141  # and these are for particular systems
39142  case "$host_os" in
39143		*linux*)
39144cat >>confdefs.h <<\_ACEOF
39145#define LINUX 1
39146_ACEOF
39147
39148			BLDSHARED="true"
39149			if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
39150				LDSHFLAGS="-shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined"
39151			else
39152				LDSHFLAGS="-shared -Wl,-Bsymbolic"
39153			fi
39154			DYNEXP="-Wl,--export-dynamic"
39155			PICFLAG="-fPIC"
39156			SONAMEFLAG="-Wl,-soname="
39157			cat >>confdefs.h <<\_ACEOF
39158#define STAT_ST_BLOCKSIZE 512
39159_ACEOF
39160
39161			;;
39162		*solaris*)
39163cat >>confdefs.h <<\_ACEOF
39164#define SUNOS5 1
39165_ACEOF
39166
39167			BLDSHARED="true"
39168			LDSHFLAGS="-G"
39169			SONAMEFLAG="-h "
39170			if test "${GCC}" = "yes"; then
39171				PICFLAG="-fPIC"
39172				SONAMEFLAG="-Wl,-soname="
39173				if test "${ac_cv_prog_gnu_ld}" = "yes"; then
39174					DYNEXP="-Wl,-E"
39175				fi
39176			else
39177				PICFLAG="-KPIC"
39178				## ${CFLAGS} added for building 64-bit shared
39179				## libs using Sun's Compiler
39180				LDSHFLAGS="-G \${CFLAGS}"
39181			fi
39182
39183cat >>confdefs.h <<\_ACEOF
39184#define STAT_ST_BLOCKSIZE 512
39185_ACEOF
39186
39187
39188cat >>confdefs.h <<\_ACEOF
39189#define BROKEN_GETGRNAM 1
39190_ACEOF
39191
39192			;;
39193		*sunos*)
39194cat >>confdefs.h <<\_ACEOF
39195#define SUNOS4 1
39196_ACEOF
39197
39198			BLDSHARED="true"
39199			LDSHFLAGS="-G"
39200			SONAMEFLAG="-Wl,-h,"
39201			PICFLAG="-KPIC"   # Is this correct for SunOS
39202			cat >>confdefs.h <<\_ACEOF
39203#define STAT_ST_BLOCKSIZE 512
39204_ACEOF
39205
39206
39207cat >>confdefs.h <<\_ACEOF
39208#define BROKEN_GETGRNAM 1
39209_ACEOF
39210
39211			;;
39212		*netbsd* | *freebsd* | *dragonfly* )
39213			BLDSHARED="true"
39214			LDSHFLAGS="-shared"
39215			DYNEXP="-Wl,--export-dynamic"
39216			SONAMEFLAG="-Wl,-soname,"
39217			PICFLAG="-fPIC -DPIC"
39218
39219cat >>confdefs.h <<\_ACEOF
39220#define STAT_ST_BLOCKSIZE 512
39221_ACEOF
39222
39223
39224cat >>confdefs.h <<\_ACEOF
39225#define BROKEN_GETGRNAM 1
39226_ACEOF
39227
39228			;;
39229		*openbsd*)  BLDSHARED="true"
39230			LDSHFLAGS="-shared"
39231			DYNEXP="-Wl,-Bdynamic"
39232			SONAMEFLAG="-Wl,-soname,"
39233			PICFLAG="-fPIC"
39234
39235cat >>confdefs.h <<\_ACEOF
39236#define STAT_ST_BLOCKSIZE 512
39237_ACEOF
39238
39239
39240cat >>confdefs.h <<\_ACEOF
39241#define BROKEN_GETGRNAM 1
39242_ACEOF
39243
39244			;;
39245		*irix*)
39246cat >>confdefs.h <<\_ACEOF
39247#define IRIX 1
39248_ACEOF
39249
39250			case "$host_os" in
39251			*irix6*)
39252cat >>confdefs.h <<\_ACEOF
39253#define IRIX6 1
39254_ACEOF
39255
39256			;;
39257			esac
39258			BLDSHARED="true"
39259			LDSHFLAGS="-set_version sgi1.0 -shared"
39260			SONAMEFLAG="-soname "
39261			SHLD="\${LD}"
39262			if test "${GCC}" = "yes"; then
39263				PICFLAG="-fPIC"
39264			else
39265				PICFLAG="-KPIC"
39266			fi
39267
39268cat >>confdefs.h <<\_ACEOF
39269#define STAT_ST_BLOCKSIZE 512
39270_ACEOF
39271
39272			;;
39273		*aix*)
39274cat >>confdefs.h <<\_ACEOF
39275#define AIX 1
39276_ACEOF
39277
39278			BLDSHARED="true"
39279			LDSHFLAGS="-Wl,-G,-bexpall,-bbigtoc"
39280			DYNEXP="-Wl,-brtl,-bexpall,-bbigtoc"
39281			PICFLAG="-O2"
39282			# as AIX code is always position independent...
39283			# .po will just create compile warnings, use po.o:
39284			if test "${GCC}" != "yes"; then
39285				## for funky AIX compiler using strncpy()
39286				CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
39287			fi
39288
39289
39290cat >>confdefs.h <<\_ACEOF
39291#define STAT_ST_BLOCKSIZE DEV_BSIZE
39292_ACEOF
39293
39294
39295cat >>confdefs.h <<\_ACEOF
39296#define BROKEN_STRNLEN 1
39297_ACEOF
39298
39299
39300cat >>confdefs.h <<\_ACEOF
39301#define BROKEN_STRNDUP 1
39302_ACEOF
39303
39304			;;
39305		*hpux*)
39306cat >>confdefs.h <<\_ACEOF
39307#define HPUX 1
39308_ACEOF
39309
39310			# Use special PIC flags for the native HP-UX compiler.
39311				BLDSHARED="true"
39312				SHLD="cc"
39313				LDSHFLAGS="-b -Wl,-B,symbolic,-b,-z"
39314				SONAMEFLAG="-Wl,+h "
39315				PICFLAG="+z"
39316			if test "${GCC}" = "yes"; then
39317				PICFLAG="-fPIC"
39318			else
39319				PICFLAG="+z"
39320			fi
39321			if test "$host_cpu" = "ia64"; then
39322				SHLIBEXT="so"
39323				DYNEXP="-Wl,-E,+b/usr/local/lib/hpux32:/usr/lib/hpux32"
39324			else
39325				SHLIBEXT="sl"
39326				DYNEXP="-Wl,-E,+b/usr/local/lib:/usr/lib"
39327			fi
39328
39329cat >>confdefs.h <<\_ACEOF
39330#define STAT_ST_BLOCKSIZE 8192
39331_ACEOF
39332
39333
39334cat >>confdefs.h <<\_ACEOF
39335#define POSIX_ACL_NEEDS_MASK 1
39336_ACEOF
39337
39338			;;
39339		*qnx*)
39340cat >>confdefs.h <<\_ACEOF
39341#define QNX 1
39342_ACEOF
39343
39344			cat >>confdefs.h <<\_ACEOF
39345#define STAT_ST_BLOCKSIZE 512
39346_ACEOF
39347
39348			;;
39349		*osf*)
39350cat >>confdefs.h <<\_ACEOF
39351#define OSF1 1
39352_ACEOF
39353
39354			BLDSHARED="true"
39355			LDSHFLAGS="-shared"
39356			SONAMEFLAG="-Wl,-soname,"
39357			PICFLAG="-fPIC"
39358			cat >>confdefs.h <<\_ACEOF
39359#define STAT_ST_BLOCKSIZE 512
39360_ACEOF
39361
39362
39363cat >>confdefs.h <<\_ACEOF
39364#define BROKEN_GETGRNAM 1
39365_ACEOF
39366
39367			;;
39368		*sco*)
39369cat >>confdefs.h <<\_ACEOF
39370#define SCO 1
39371_ACEOF
39372
39373			cat >>confdefs.h <<\_ACEOF
39374#define STAT_ST_BLOCKSIZE 512
39375_ACEOF
39376
39377			;;
39378		*unixware*)
39379cat >>confdefs.h <<\_ACEOF
39380#define UNIXWARE 1
39381_ACEOF
39382
39383			BLDSHARED="true"
39384			LDSHFLAGS="-shared"
39385			SONAMEFLAG="-Wl,-soname,"
39386			PICFLAG="-KPIC"
39387			cat >>confdefs.h <<\_ACEOF
39388#define STAT_ST_BLOCKSIZE 512
39389_ACEOF
39390
39391			;;
39392		*next2*)
39393cat >>confdefs.h <<\_ACEOF
39394#define NEXT2 1
39395_ACEOF
39396
39397			cat >>confdefs.h <<\_ACEOF
39398#define STAT_ST_BLOCKSIZE 512
39399_ACEOF
39400
39401			;;
39402		*dgux*) # Extract the first word of "groff", so it can be a program name with args.
39403set dummy groff; ac_word=$2
39404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
39405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39406if test "${ac_cv_prog_ROFF+set}" = set; then
39407  echo $ECHO_N "(cached) $ECHO_C" >&6
39408else
39409  if test -n "$ROFF"; then
39410  ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
39411else
39412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39413for as_dir in $PATH
39414do
39415  IFS=$as_save_IFS
39416  test -z "$as_dir" && as_dir=.
39417  for ac_exec_ext in '' $ac_executable_extensions; do
39418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39419    ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
39420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39421    break 2
39422  fi
39423done
39424done
39425IFS=$as_save_IFS
39426
39427fi
39428fi
39429ROFF=$ac_cv_prog_ROFF
39430if test -n "$ROFF"; then
39431  { echo "$as_me:$LINENO: result: $ROFF" >&5
39432echo "${ECHO_T}$ROFF" >&6; }
39433else
39434  { echo "$as_me:$LINENO: result: no" >&5
39435echo "${ECHO_T}no" >&6; }
39436fi
39437
39438
39439			cat >>confdefs.h <<\_ACEOF
39440#define STAT_ST_BLOCKSIZE 512
39441_ACEOF
39442
39443			;;
39444		*sysv4*)
39445cat >>confdefs.h <<\_ACEOF
39446#define SYSV 1
39447_ACEOF
39448
39449			case "$host" in
39450				*-univel-*)     if  test "$GCC" != yes ; then
39451
39452cat >>confdefs.h <<\_ACEOF
39453#define HAVE_MEMSET 1
39454_ACEOF
39455
39456					fi
39457					LDSHFLAGS="-G"
39458                             		DYNEXP="-Bexport"
39459				;;
39460				*mips-sni-sysv4*)
39461cat >>confdefs.h <<\_ACEOF
39462#define RELIANTUNIX 1
39463_ACEOF
39464;;
39465			esac
39466			cat >>confdefs.h <<\_ACEOF
39467#define STAT_ST_BLOCKSIZE 512
39468_ACEOF
39469
39470			;;
39471
39472		*sysv5*)
39473cat >>confdefs.h <<\_ACEOF
39474#define SYSV 1
39475_ACEOF
39476
39477			if  test "$GCC" != yes ; then
39478
39479cat >>confdefs.h <<\_ACEOF
39480#define HAVE_MEMSET 1
39481_ACEOF
39482
39483			fi
39484			LDSHFLAGS="-G"
39485			cat >>confdefs.h <<\_ACEOF
39486#define STAT_ST_BLOCKSIZE 512
39487_ACEOF
39488
39489			;;
39490		*vos*) cat >>confdefs.h <<\_ACEOF
39491#define STAT_ST_BLOCKSIZE 4096
39492_ACEOF
39493
39494			BLDSHARED="false"
39495			LDSHFLAGS=""
39496			;;
39497
39498		*darwin*)
39499cat >>confdefs.h <<\_ACEOF
39500#define DARWINOS 1
39501_ACEOF
39502
39503			BLDSHARED="true"
39504			LDSHFLAGS="-bundle -flat_namespace -undefined suppress"
39505			SHLIBEXT="dylib"
39506			cat >>confdefs.h <<\_ACEOF
39507#define STAT_ST_BLOCKSIZE 512
39508_ACEOF
39509
39510			;;
39511
39512		*)
39513			cat >>confdefs.h <<\_ACEOF
39514#define STAT_ST_BLOCKSIZE 512
39515_ACEOF
39516
39517			;;
39518  esac
39519
39520if test "$enable_shared" != "yes"; then
39521	BLDSHARED=false
39522fi
39523
39524  { echo "$as_me:$LINENO: result: $BLDSHARED" >&5
39525echo "${ECHO_T}$BLDSHARED" >&6; }
39526
39527{ echo "$as_me:$LINENO: checking LDFLAGS" >&5
39528echo $ECHO_N "checking LDFLAGS... $ECHO_C" >&6; }
39529{ echo "$as_me:$LINENO: result: $LDFLAGS" >&5
39530echo "${ECHO_T}$LDFLAGS" >&6; }
39531{ echo "$as_me:$LINENO: checking DYNEXP" >&5
39532echo $ECHO_N "checking DYNEXP... $ECHO_C" >&6; }
39533{ echo "$as_me:$LINENO: result: $DYNEXP" >&5
39534echo "${ECHO_T}$DYNEXP" >&6; }
39535
39536#######################################################
39537# test whether building a shared library actually works
39538if test $BLDSHARED = true; then
39539
39540{ echo "$as_me:$LINENO: checking SHLD" >&5
39541echo $ECHO_N "checking SHLD... $ECHO_C" >&6; }
39542{ echo "$as_me:$LINENO: result: $SHLD" >&5
39543echo "${ECHO_T}$SHLD" >&6; }
39544{ echo "$as_me:$LINENO: checking LDSHFLAGS" >&5
39545echo $ECHO_N "checking LDSHFLAGS... $ECHO_C" >&6; }
39546{ echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
39547echo "${ECHO_T}$LDSHFLAGS" >&6; }
39548
39549{ echo "$as_me:$LINENO: checking SHLIBEXT" >&5
39550echo $ECHO_N "checking SHLIBEXT... $ECHO_C" >&6; }
39551{ echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
39552echo "${ECHO_T}$SHLIBEXT" >&6; }
39553{ echo "$as_me:$LINENO: checking SONAMEFLAG" >&5
39554echo $ECHO_N "checking SONAMEFLAG... $ECHO_C" >&6; }
39555{ echo "$as_me:$LINENO: result: $SONAMEFLAG" >&5
39556echo "${ECHO_T}$SONAMEFLAG" >&6; }
39557
39558{ echo "$as_me:$LINENO: checking PICFLAG" >&5
39559echo $ECHO_N "checking PICFLAG... $ECHO_C" >&6; }
39560{ echo "$as_me:$LINENO: result: $PICFLAG" >&5
39561echo "${ECHO_T}$PICFLAG" >&6; }
39562
39563{ echo "$as_me:$LINENO: checking NSSSONAMEVERSIONSUFFIX" >&5
39564echo $ECHO_N "checking NSSSONAMEVERSIONSUFFIX... $ECHO_C" >&6; }
39565{ echo "$as_me:$LINENO: result: $NSSSONAMEVERSIONSUFFIX" >&5
39566echo "${ECHO_T}$NSSSONAMEVERSIONSUFFIX" >&6; }
39567
39568{ echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
39569echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6; }
39570if test "${ac_cv_shlib_works+set}" = set; then
39571  echo $ECHO_N "(cached) $ECHO_C" >&6
39572else
39573
39574   # try building a trivial shared library
39575   ac_cv_shlib_works=no
39576   # The $SHLD and $LDSHFLAGS variables may contain references to other
39577   # variables so they need to be eval'ed.
39578   $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o \
39579	shlib.o ${srcdir-.}/tests/shlib.c && \
39580   `eval echo $SHLD` `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" \
39581        shlib.o && ac_cv_shlib_works=yes
39582   rm -f "shlib.$SHLIBEXT" shlib.o
39583
39584
39585fi
39586{ echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
39587echo "${ECHO_T}$ac_cv_shlib_works" >&6; }
39588if test $ac_cv_shlib_works = no; then
39589   BLDSHARED=false
39590fi
39591fi
39592
39593if test x"$BLDSHARED" != x"true"; then
39594	LDSHFLAGS="shared-libraries-disabled"
39595	SONAMEFLAG="shared-libraries-disabled"
39596	NSSSONAMEVERSIONSUFFIX="shared-libraries-disabled"
39597	SHLD="shared-libraries-disabled"
39598	PICFLAG="${PIE_CFLAGS}"
39599	SHLIBEXT="shared_libraries_disabled"
39600fi
39601
39602{ echo "$as_me:$LINENO: checking used PICFLAG" >&5
39603echo $ECHO_N "checking used PICFLAG... $ECHO_C" >&6; }
39604{ echo "$as_me:$LINENO: result: $PICFLAG" >&5
39605echo "${ECHO_T}$PICFLAG" >&6; }
39606
39607
39608cat >>confdefs.h <<_ACEOF
39609#define SHLIBEXT "$SHLIBEXT"
39610_ACEOF
39611
39612
39613################
39614
39615{ echo "$as_me:$LINENO: checking for long long" >&5
39616echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
39617if test "${samba_cv_have_longlong+set}" = set; then
39618  echo $ECHO_N "(cached) $ECHO_C" >&6
39619else
39620
39621if test "$cross_compiling" = yes; then
39622  #samba_cv_have_longlong=cross
39623  samba_cv_have_longlong=yes
39624else
39625  cat >conftest.$ac_ext <<_ACEOF
39626/* confdefs.h.  */
39627_ACEOF
39628cat confdefs.h >>conftest.$ac_ext
39629cat >>conftest.$ac_ext <<_ACEOF
39630/* end confdefs.h.  */
39631#include <stdio.h>
39632main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
39633_ACEOF
39634rm -f conftest$ac_exeext
39635if { (ac_try="$ac_link"
39636case "(($ac_try" in
39637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39638  *) ac_try_echo=$ac_try;;
39639esac
39640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39641  (eval "$ac_link") 2>&5
39642  ac_status=$?
39643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39644  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39645  { (case "(($ac_try" in
39646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39647  *) ac_try_echo=$ac_try;;
39648esac
39649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39650  (eval "$ac_try") 2>&5
39651  ac_status=$?
39652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39653  (exit $ac_status); }; }; then
39654  samba_cv_have_longlong=yes
39655else
39656  echo "$as_me: program exited with status $ac_status" >&5
39657echo "$as_me: failed program was:" >&5
39658sed 's/^/| /' conftest.$ac_ext >&5
39659
39660( exit $ac_status )
39661samba_cv_have_longlong=no
39662fi
39663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39664fi
39665
39666
39667fi
39668{ echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
39669echo "${ECHO_T}$samba_cv_have_longlong" >&6; }
39670if test x"$samba_cv_have_longlong" = x"yes"; then
39671
39672cat >>confdefs.h <<\_ACEOF
39673#define HAVE_LONGLONG 1
39674_ACEOF
39675
39676    { echo "$as_me:$LINENO: checking for intptr_t" >&5
39677echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
39678if test "${ac_cv_type_intptr_t+set}" = set; then
39679  echo $ECHO_N "(cached) $ECHO_C" >&6
39680else
39681  cat >conftest.$ac_ext <<_ACEOF
39682/* confdefs.h.  */
39683_ACEOF
39684cat confdefs.h >>conftest.$ac_ext
39685cat >>conftest.$ac_ext <<_ACEOF
39686/* end confdefs.h.  */
39687$ac_includes_default
39688typedef intptr_t ac__type_new_;
39689int
39690main ()
39691{
39692if ((ac__type_new_ *) 0)
39693  return 0;
39694if (sizeof (ac__type_new_))
39695  return 0;
39696  ;
39697  return 0;
39698}
39699_ACEOF
39700rm -f conftest.$ac_objext
39701if { (ac_try="$ac_compile"
39702case "(($ac_try" in
39703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39704  *) ac_try_echo=$ac_try;;
39705esac
39706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39707  (eval "$ac_compile") 2>conftest.er1
39708  ac_status=$?
39709  grep -v '^ *+' conftest.er1 >conftest.err
39710  rm -f conftest.er1
39711  cat conftest.err >&5
39712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713  (exit $ac_status); } && {
39714	 test -z "$ac_c_werror_flag" ||
39715	 test ! -s conftest.err
39716       } && test -s conftest.$ac_objext; then
39717  ac_cv_type_intptr_t=yes
39718else
39719  echo "$as_me: failed program was:" >&5
39720sed 's/^/| /' conftest.$ac_ext >&5
39721
39722	ac_cv_type_intptr_t=no
39723fi
39724
39725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39726fi
39727{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
39728echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
39729if test $ac_cv_type_intptr_t = yes; then
39730  :
39731else
39732
39733cat >>confdefs.h <<_ACEOF
39734#define intptr_t unsigned long long
39735_ACEOF
39736
39737fi
39738
39739else
39740    { echo "$as_me:$LINENO: checking for intptr_t" >&5
39741echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
39742if test "${ac_cv_type_intptr_t+set}" = set; then
39743  echo $ECHO_N "(cached) $ECHO_C" >&6
39744else
39745  cat >conftest.$ac_ext <<_ACEOF
39746/* confdefs.h.  */
39747_ACEOF
39748cat confdefs.h >>conftest.$ac_ext
39749cat >>conftest.$ac_ext <<_ACEOF
39750/* end confdefs.h.  */
39751$ac_includes_default
39752typedef intptr_t ac__type_new_;
39753int
39754main ()
39755{
39756if ((ac__type_new_ *) 0)
39757  return 0;
39758if (sizeof (ac__type_new_))
39759  return 0;
39760  ;
39761  return 0;
39762}
39763_ACEOF
39764rm -f conftest.$ac_objext
39765if { (ac_try="$ac_compile"
39766case "(($ac_try" in
39767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768  *) ac_try_echo=$ac_try;;
39769esac
39770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39771  (eval "$ac_compile") 2>conftest.er1
39772  ac_status=$?
39773  grep -v '^ *+' conftest.er1 >conftest.err
39774  rm -f conftest.er1
39775  cat conftest.err >&5
39776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777  (exit $ac_status); } && {
39778	 test -z "$ac_c_werror_flag" ||
39779	 test ! -s conftest.err
39780       } && test -s conftest.$ac_objext; then
39781  ac_cv_type_intptr_t=yes
39782else
39783  echo "$as_me: failed program was:" >&5
39784sed 's/^/| /' conftest.$ac_ext >&5
39785
39786	ac_cv_type_intptr_t=no
39787fi
39788
39789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39790fi
39791{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
39792echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
39793if test $ac_cv_type_intptr_t = yes; then
39794  :
39795else
39796
39797cat >>confdefs.h <<_ACEOF
39798#define intptr_t unsigned long
39799_ACEOF
39800
39801fi
39802
39803fi
39804
39805#
39806# Check if the compiler supports the LL prefix on long long integers.
39807# AIX needs this.
39808
39809{ echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
39810echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6; }
39811if test "${samba_cv_compiler_supports_ll+set}" = set; then
39812  echo $ECHO_N "(cached) $ECHO_C" >&6
39813else
39814
39815    cat >conftest.$ac_ext <<_ACEOF
39816/* confdefs.h.  */
39817_ACEOF
39818cat confdefs.h >>conftest.$ac_ext
39819cat >>conftest.$ac_ext <<_ACEOF
39820/* end confdefs.h.  */
39821#include <stdio.h>
39822int
39823main ()
39824{
39825long long i = 0x8000000000LL
39826  ;
39827  return 0;
39828}
39829_ACEOF
39830rm -f conftest.$ac_objext
39831if { (ac_try="$ac_compile"
39832case "(($ac_try" in
39833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39834  *) ac_try_echo=$ac_try;;
39835esac
39836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39837  (eval "$ac_compile") 2>conftest.er1
39838  ac_status=$?
39839  grep -v '^ *+' conftest.er1 >conftest.err
39840  rm -f conftest.er1
39841  cat conftest.err >&5
39842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843  (exit $ac_status); } && {
39844	 test -z "$ac_c_werror_flag" ||
39845	 test ! -s conftest.err
39846       } && test -s conftest.$ac_objext; then
39847  samba_cv_compiler_supports_ll=yes
39848else
39849  echo "$as_me: failed program was:" >&5
39850sed 's/^/| /' conftest.$ac_ext >&5
39851
39852	samba_cv_compiler_supports_ll=no
39853fi
39854
39855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39856fi
39857{ echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
39858echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6; }
39859if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
39860
39861cat >>confdefs.h <<\_ACEOF
39862#define COMPILER_SUPPORTS_LL 1
39863_ACEOF
39864
39865fi
39866
39867
39868{ echo "$as_me:$LINENO: checking for 64 bit time_t" >&5
39869echo $ECHO_N "checking for 64 bit time_t... $ECHO_C" >&6; }
39870if test "${samba_cv_SIZEOF_TIME_T+set}" = set; then
39871  echo $ECHO_N "(cached) $ECHO_C" >&6
39872else
39873
39874if test "$cross_compiling" = yes; then
39875  samba_cv_SIZEOF_TIME_T=cross
39876else
39877  cat >conftest.$ac_ext <<_ACEOF
39878/* confdefs.h.  */
39879_ACEOF
39880cat confdefs.h >>conftest.$ac_ext
39881cat >>conftest.$ac_ext <<_ACEOF
39882/* end confdefs.h.  */
39883#include <time.h>
39884main() { exit((sizeof(time_t) == 8) ? 0 : 1); }
39885_ACEOF
39886rm -f conftest$ac_exeext
39887if { (ac_try="$ac_link"
39888case "(($ac_try" in
39889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39890  *) ac_try_echo=$ac_try;;
39891esac
39892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39893  (eval "$ac_link") 2>&5
39894  ac_status=$?
39895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39897  { (case "(($ac_try" in
39898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39899  *) ac_try_echo=$ac_try;;
39900esac
39901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39902  (eval "$ac_try") 2>&5
39903  ac_status=$?
39904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905  (exit $ac_status); }; }; then
39906  samba_cv_SIZEOF_TIME_T=yes
39907else
39908  echo "$as_me: program exited with status $ac_status" >&5
39909echo "$as_me: failed program was:" >&5
39910sed 's/^/| /' conftest.$ac_ext >&5
39911
39912( exit $ac_status )
39913samba_cv_SIZEOF_TIME_T=no
39914fi
39915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39916fi
39917
39918
39919fi
39920{ echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_TIME_T" >&5
39921echo "${ECHO_T}$samba_cv_SIZEOF_TIME_T" >&6; }
39922if test x"$samba_cv_SIZEOF_TIME_T" = x"yes"; then
39923
39924cat >>confdefs.h <<\_ACEOF
39925#define SIZEOF_TIME_T 8
39926_ACEOF
39927
39928fi
39929
39930{ echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
39931echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6; }
39932if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
39933  echo $ECHO_N "(cached) $ECHO_C" >&6
39934else
39935
39936if test "$cross_compiling" = yes; then
39937  samba_cv_SIZEOF_OFF_T=cross
39938else
39939  cat >conftest.$ac_ext <<_ACEOF
39940/* confdefs.h.  */
39941_ACEOF
39942cat confdefs.h >>conftest.$ac_ext
39943cat >>conftest.$ac_ext <<_ACEOF
39944/* end confdefs.h.  */
39945#include <stdio.h>
39946#include <sys/stat.h>
39947main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
39948_ACEOF
39949rm -f conftest$ac_exeext
39950if { (ac_try="$ac_link"
39951case "(($ac_try" in
39952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39953  *) ac_try_echo=$ac_try;;
39954esac
39955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39956  (eval "$ac_link") 2>&5
39957  ac_status=$?
39958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39960  { (case "(($ac_try" in
39961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39962  *) ac_try_echo=$ac_try;;
39963esac
39964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39965  (eval "$ac_try") 2>&5
39966  ac_status=$?
39967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39968  (exit $ac_status); }; }; then
39969  samba_cv_SIZEOF_OFF_T=yes
39970else
39971  echo "$as_me: program exited with status $ac_status" >&5
39972echo "$as_me: failed program was:" >&5
39973sed 's/^/| /' conftest.$ac_ext >&5
39974
39975( exit $ac_status )
39976samba_cv_SIZEOF_OFF_T=no
39977fi
39978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39979fi
39980
39981
39982fi
39983{ echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
39984echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6; }
39985if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
39986
39987cat >>confdefs.h <<\_ACEOF
39988#define SIZEOF_OFF_T 8
39989_ACEOF
39990
39991fi
39992
39993{ echo "$as_me:$LINENO: checking for off64_t" >&5
39994echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
39995if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
39996  echo $ECHO_N "(cached) $ECHO_C" >&6
39997else
39998
39999if test "$cross_compiling" = yes; then
40000  samba_cv_HAVE_OFF64_T=cross
40001else
40002  cat >conftest.$ac_ext <<_ACEOF
40003/* confdefs.h.  */
40004_ACEOF
40005cat confdefs.h >>conftest.$ac_ext
40006cat >>conftest.$ac_ext <<_ACEOF
40007/* end confdefs.h.  */
40008
40009#if defined(HAVE_UNISTD_H)
40010#include <unistd.h>
40011#endif
40012#include <stdio.h>
40013#include <sys/stat.h>
40014main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
40015_ACEOF
40016rm -f conftest$ac_exeext
40017if { (ac_try="$ac_link"
40018case "(($ac_try" in
40019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40020  *) ac_try_echo=$ac_try;;
40021esac
40022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40023  (eval "$ac_link") 2>&5
40024  ac_status=$?
40025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40027  { (case "(($ac_try" in
40028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40029  *) ac_try_echo=$ac_try;;
40030esac
40031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40032  (eval "$ac_try") 2>&5
40033  ac_status=$?
40034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035  (exit $ac_status); }; }; then
40036  samba_cv_HAVE_OFF64_T=yes
40037else
40038  echo "$as_me: program exited with status $ac_status" >&5
40039echo "$as_me: failed program was:" >&5
40040sed 's/^/| /' conftest.$ac_ext >&5
40041
40042( exit $ac_status )
40043samba_cv_HAVE_OFF64_T=no
40044fi
40045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40046fi
40047
40048
40049fi
40050{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
40051echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6; }
40052if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
40053
40054cat >>confdefs.h <<\_ACEOF
40055#define HAVE_OFF64_T 1
40056_ACEOF
40057
40058fi
40059
40060{ echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
40061echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6; }
40062if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
40063  echo $ECHO_N "(cached) $ECHO_C" >&6
40064else
40065
40066if test "$cross_compiling" = yes; then
40067  samba_cv_SIZEOF_INO_T=cross
40068else
40069  cat >conftest.$ac_ext <<_ACEOF
40070/* confdefs.h.  */
40071_ACEOF
40072cat confdefs.h >>conftest.$ac_ext
40073cat >>conftest.$ac_ext <<_ACEOF
40074/* end confdefs.h.  */
40075
40076#if defined(HAVE_UNISTD_H)
40077#include <unistd.h>
40078#endif
40079#include <stdio.h>
40080#include <sys/stat.h>
40081main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
40082_ACEOF
40083rm -f conftest$ac_exeext
40084if { (ac_try="$ac_link"
40085case "(($ac_try" in
40086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40087  *) ac_try_echo=$ac_try;;
40088esac
40089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40090  (eval "$ac_link") 2>&5
40091  ac_status=$?
40092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40094  { (case "(($ac_try" in
40095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40096  *) ac_try_echo=$ac_try;;
40097esac
40098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40099  (eval "$ac_try") 2>&5
40100  ac_status=$?
40101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102  (exit $ac_status); }; }; then
40103  samba_cv_SIZEOF_INO_T=yes
40104else
40105  echo "$as_me: program exited with status $ac_status" >&5
40106echo "$as_me: failed program was:" >&5
40107sed 's/^/| /' conftest.$ac_ext >&5
40108
40109( exit $ac_status )
40110samba_cv_SIZEOF_INO_T=no
40111fi
40112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40113fi
40114
40115
40116fi
40117{ echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
40118echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6; }
40119if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
40120
40121cat >>confdefs.h <<\_ACEOF
40122#define SIZEOF_INO_T 8
40123_ACEOF
40124
40125fi
40126
40127{ echo "$as_me:$LINENO: checking for ino64_t" >&5
40128echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6; }
40129if test "${samba_cv_HAVE_INO64_T+set}" = set; then
40130  echo $ECHO_N "(cached) $ECHO_C" >&6
40131else
40132
40133if test "$cross_compiling" = yes; then
40134  samba_cv_HAVE_INO64_T=cross
40135else
40136  cat >conftest.$ac_ext <<_ACEOF
40137/* confdefs.h.  */
40138_ACEOF
40139cat confdefs.h >>conftest.$ac_ext
40140cat >>conftest.$ac_ext <<_ACEOF
40141/* end confdefs.h.  */
40142
40143#if defined(HAVE_UNISTD_H)
40144#include <unistd.h>
40145#endif
40146#include <stdio.h>
40147#include <sys/stat.h>
40148main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
40149_ACEOF
40150rm -f conftest$ac_exeext
40151if { (ac_try="$ac_link"
40152case "(($ac_try" in
40153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40154  *) ac_try_echo=$ac_try;;
40155esac
40156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40157  (eval "$ac_link") 2>&5
40158  ac_status=$?
40159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40161  { (case "(($ac_try" in
40162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40163  *) ac_try_echo=$ac_try;;
40164esac
40165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40166  (eval "$ac_try") 2>&5
40167  ac_status=$?
40168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169  (exit $ac_status); }; }; then
40170  samba_cv_HAVE_INO64_T=yes
40171else
40172  echo "$as_me: program exited with status $ac_status" >&5
40173echo "$as_me: failed program was:" >&5
40174sed 's/^/| /' conftest.$ac_ext >&5
40175
40176( exit $ac_status )
40177samba_cv_HAVE_INO64_T=no
40178fi
40179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40180fi
40181
40182
40183fi
40184{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
40185echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6; }
40186if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
40187
40188cat >>confdefs.h <<\_ACEOF
40189#define HAVE_INO64_T 1
40190_ACEOF
40191
40192fi
40193
40194{ echo "$as_me:$LINENO: checking for 64 bit dev_t" >&5
40195echo $ECHO_N "checking for 64 bit dev_t... $ECHO_C" >&6; }
40196if test "${samba_cv_SIZEOF_DEV_T+set}" = set; then
40197  echo $ECHO_N "(cached) $ECHO_C" >&6
40198else
40199
40200if test "$cross_compiling" = yes; then
40201  samba_cv_SIZEOF_DEV_T=cross
40202else
40203  cat >conftest.$ac_ext <<_ACEOF
40204/* confdefs.h.  */
40205_ACEOF
40206cat confdefs.h >>conftest.$ac_ext
40207cat >>conftest.$ac_ext <<_ACEOF
40208/* end confdefs.h.  */
40209
40210#if defined(HAVE_UNISTD_H)
40211#include <unistd.h>
40212#endif
40213#include <stdio.h>
40214#include <sys/stat.h>
40215main() { exit((sizeof(dev_t) == 8) ? 0 : 1); }
40216_ACEOF
40217rm -f conftest$ac_exeext
40218if { (ac_try="$ac_link"
40219case "(($ac_try" in
40220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40221  *) ac_try_echo=$ac_try;;
40222esac
40223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40224  (eval "$ac_link") 2>&5
40225  ac_status=$?
40226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40228  { (case "(($ac_try" in
40229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40230  *) ac_try_echo=$ac_try;;
40231esac
40232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40233  (eval "$ac_try") 2>&5
40234  ac_status=$?
40235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236  (exit $ac_status); }; }; then
40237  samba_cv_SIZEOF_DEV_T=yes
40238else
40239  echo "$as_me: program exited with status $ac_status" >&5
40240echo "$as_me: failed program was:" >&5
40241sed 's/^/| /' conftest.$ac_ext >&5
40242
40243( exit $ac_status )
40244samba_cv_SIZEOF_DEV_T=no
40245fi
40246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40247fi
40248
40249
40250fi
40251{ echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_DEV_T" >&5
40252echo "${ECHO_T}$samba_cv_SIZEOF_DEV_T" >&6; }
40253if test x"$samba_cv_SIZEOF_DEV_T" = x"yes"; then
40254
40255cat >>confdefs.h <<\_ACEOF
40256#define SIZEOF_DEV_T 8
40257_ACEOF
40258
40259fi
40260
40261{ echo "$as_me:$LINENO: checking for dev64_t" >&5
40262echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6; }
40263if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
40264  echo $ECHO_N "(cached) $ECHO_C" >&6
40265else
40266
40267if test "$cross_compiling" = yes; then
40268  samba_cv_HAVE_DEV64_T=cross
40269else
40270  cat >conftest.$ac_ext <<_ACEOF
40271/* confdefs.h.  */
40272_ACEOF
40273cat confdefs.h >>conftest.$ac_ext
40274cat >>conftest.$ac_ext <<_ACEOF
40275/* end confdefs.h.  */
40276
40277#if defined(HAVE_UNISTD_H)
40278#include <unistd.h>
40279#endif
40280#include <stdio.h>
40281#include <sys/stat.h>
40282main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
40283_ACEOF
40284rm -f conftest$ac_exeext
40285if { (ac_try="$ac_link"
40286case "(($ac_try" in
40287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40288  *) ac_try_echo=$ac_try;;
40289esac
40290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40291  (eval "$ac_link") 2>&5
40292  ac_status=$?
40293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40294  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40295  { (case "(($ac_try" in
40296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40297  *) ac_try_echo=$ac_try;;
40298esac
40299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40300  (eval "$ac_try") 2>&5
40301  ac_status=$?
40302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40303  (exit $ac_status); }; }; then
40304  samba_cv_HAVE_DEV64_T=yes
40305else
40306  echo "$as_me: program exited with status $ac_status" >&5
40307echo "$as_me: failed program was:" >&5
40308sed 's/^/| /' conftest.$ac_ext >&5
40309
40310( exit $ac_status )
40311samba_cv_HAVE_DEV64_T=no
40312fi
40313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40314fi
40315
40316
40317fi
40318{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
40319echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6; }
40320if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
40321
40322cat >>confdefs.h <<\_ACEOF
40323#define HAVE_DEV64_T 1
40324_ACEOF
40325
40326fi
40327
40328{ echo "$as_me:$LINENO: checking for struct dirent64" >&5
40329echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; }
40330if test "${samba_cv_HAVE_STRUCT_DIR64+set}" = set; then
40331  echo $ECHO_N "(cached) $ECHO_C" >&6
40332else
40333
40334cat >conftest.$ac_ext <<_ACEOF
40335/* confdefs.h.  */
40336_ACEOF
40337cat confdefs.h >>conftest.$ac_ext
40338cat >>conftest.$ac_ext <<_ACEOF
40339/* end confdefs.h.  */
40340
40341#if defined(HAVE_UNISTD_H)
40342#include <unistd.h>
40343#endif
40344#include <sys/types.h>
40345#include <dirent.h>
40346int
40347main ()
40348{
40349DIR64 de;
40350  ;
40351  return 0;
40352}
40353_ACEOF
40354rm -f conftest.$ac_objext
40355if { (ac_try="$ac_compile"
40356case "(($ac_try" in
40357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40358  *) ac_try_echo=$ac_try;;
40359esac
40360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40361  (eval "$ac_compile") 2>conftest.er1
40362  ac_status=$?
40363  grep -v '^ *+' conftest.er1 >conftest.err
40364  rm -f conftest.er1
40365  cat conftest.err >&5
40366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40367  (exit $ac_status); } && {
40368	 test -z "$ac_c_werror_flag" ||
40369	 test ! -s conftest.err
40370       } && test -s conftest.$ac_objext; then
40371  samba_cv_HAVE_STRUCT_DIR64=yes
40372else
40373  echo "$as_me: failed program was:" >&5
40374sed 's/^/| /' conftest.$ac_ext >&5
40375
40376	samba_cv_HAVE_STRUCT_DIR64=no
40377fi
40378
40379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40380fi
40381{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIR64" >&5
40382echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIR64" >&6; }
40383if test x"$samba_cv_HAVE_STRUCT_DIR64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
40384
40385cat >>confdefs.h <<\_ACEOF
40386#define HAVE_STRUCT_DIR64 1
40387_ACEOF
40388
40389fi
40390
40391{ echo "$as_me:$LINENO: checking for struct dirent64" >&5
40392echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; }
40393if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
40394  echo $ECHO_N "(cached) $ECHO_C" >&6
40395else
40396
40397cat >conftest.$ac_ext <<_ACEOF
40398/* confdefs.h.  */
40399_ACEOF
40400cat confdefs.h >>conftest.$ac_ext
40401cat >>conftest.$ac_ext <<_ACEOF
40402/* end confdefs.h.  */
40403
40404#if defined(HAVE_UNISTD_H)
40405#include <unistd.h>
40406#endif
40407#include <sys/types.h>
40408#include <dirent.h>
40409int
40410main ()
40411{
40412struct dirent64 de;
40413  ;
40414  return 0;
40415}
40416_ACEOF
40417rm -f conftest.$ac_objext
40418if { (ac_try="$ac_compile"
40419case "(($ac_try" in
40420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40421  *) ac_try_echo=$ac_try;;
40422esac
40423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40424  (eval "$ac_compile") 2>conftest.er1
40425  ac_status=$?
40426  grep -v '^ *+' conftest.er1 >conftest.err
40427  rm -f conftest.er1
40428  cat conftest.err >&5
40429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430  (exit $ac_status); } && {
40431	 test -z "$ac_c_werror_flag" ||
40432	 test ! -s conftest.err
40433       } && test -s conftest.$ac_objext; then
40434  samba_cv_HAVE_STRUCT_DIRENT64=yes
40435else
40436  echo "$as_me: failed program was:" >&5
40437sed 's/^/| /' conftest.$ac_ext >&5
40438
40439	samba_cv_HAVE_STRUCT_DIRENT64=no
40440fi
40441
40442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40443fi
40444{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
40445echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6; }
40446if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
40447
40448cat >>confdefs.h <<\_ACEOF
40449#define HAVE_STRUCT_DIRENT64 1
40450_ACEOF
40451
40452fi
40453
40454{ echo "$as_me:$LINENO: checking for major macro" >&5
40455echo $ECHO_N "checking for major macro... $ECHO_C" >&6; }
40456if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
40457  echo $ECHO_N "(cached) $ECHO_C" >&6
40458else
40459
40460if test "$cross_compiling" = yes; then
40461  samba_cv_HAVE_DEVICE_MAJOR_FN=cross
40462else
40463  cat >conftest.$ac_ext <<_ACEOF
40464/* confdefs.h.  */
40465_ACEOF
40466cat confdefs.h >>conftest.$ac_ext
40467cat >>conftest.$ac_ext <<_ACEOF
40468/* end confdefs.h.  */
40469
40470#if defined(HAVE_UNISTD_H)
40471#include <unistd.h>
40472#endif
40473#include <sys/types.h>
40474main() { dev_t dev; int i = major(dev); return 0; }
40475_ACEOF
40476rm -f conftest$ac_exeext
40477if { (ac_try="$ac_link"
40478case "(($ac_try" in
40479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40480  *) ac_try_echo=$ac_try;;
40481esac
40482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40483  (eval "$ac_link") 2>&5
40484  ac_status=$?
40485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40487  { (case "(($ac_try" in
40488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40489  *) ac_try_echo=$ac_try;;
40490esac
40491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40492  (eval "$ac_try") 2>&5
40493  ac_status=$?
40494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40495  (exit $ac_status); }; }; then
40496  samba_cv_HAVE_DEVICE_MAJOR_FN=yes
40497else
40498  echo "$as_me: program exited with status $ac_status" >&5
40499echo "$as_me: failed program was:" >&5
40500sed 's/^/| /' conftest.$ac_ext >&5
40501
40502( exit $ac_status )
40503samba_cv_HAVE_DEVICE_MAJOR_FN=no
40504fi
40505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40506fi
40507
40508
40509fi
40510{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
40511echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6; }
40512if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
40513
40514cat >>confdefs.h <<\_ACEOF
40515#define HAVE_DEVICE_MAJOR_FN 1
40516_ACEOF
40517
40518fi
40519
40520{ echo "$as_me:$LINENO: checking for minor macro" >&5
40521echo $ECHO_N "checking for minor macro... $ECHO_C" >&6; }
40522if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
40523  echo $ECHO_N "(cached) $ECHO_C" >&6
40524else
40525
40526if test "$cross_compiling" = yes; then
40527  samba_cv_HAVE_DEVICE_MINOR_FN=cross
40528else
40529  cat >conftest.$ac_ext <<_ACEOF
40530/* confdefs.h.  */
40531_ACEOF
40532cat confdefs.h >>conftest.$ac_ext
40533cat >>conftest.$ac_ext <<_ACEOF
40534/* end confdefs.h.  */
40535
40536#if defined(HAVE_UNISTD_H)
40537#include <unistd.h>
40538#endif
40539#include <sys/types.h>
40540main() { dev_t dev; int i = minor(dev); return 0; }
40541_ACEOF
40542rm -f conftest$ac_exeext
40543if { (ac_try="$ac_link"
40544case "(($ac_try" in
40545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40546  *) ac_try_echo=$ac_try;;
40547esac
40548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40549  (eval "$ac_link") 2>&5
40550  ac_status=$?
40551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40553  { (case "(($ac_try" in
40554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40555  *) ac_try_echo=$ac_try;;
40556esac
40557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40558  (eval "$ac_try") 2>&5
40559  ac_status=$?
40560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40561  (exit $ac_status); }; }; then
40562  samba_cv_HAVE_DEVICE_MINOR_FN=yes
40563else
40564  echo "$as_me: program exited with status $ac_status" >&5
40565echo "$as_me: failed program was:" >&5
40566sed 's/^/| /' conftest.$ac_ext >&5
40567
40568( exit $ac_status )
40569samba_cv_HAVE_DEVICE_MINOR_FN=no
40570fi
40571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40572fi
40573
40574
40575fi
40576{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
40577echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6; }
40578if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
40579
40580cat >>confdefs.h <<\_ACEOF
40581#define HAVE_DEVICE_MINOR_FN 1
40582_ACEOF
40583
40584fi
40585
40586{ echo "$as_me:$LINENO: checking for makedev macro" >&5
40587echo $ECHO_N "checking for makedev macro... $ECHO_C" >&6; }
40588if test "${samba_cv_HAVE_MAKEDEV+set}" = set; then
40589  echo $ECHO_N "(cached) $ECHO_C" >&6
40590else
40591
40592if test "$cross_compiling" = yes; then
40593  samba_cv_HAVE_MAKEDEV=cross
40594else
40595  cat >conftest.$ac_ext <<_ACEOF
40596/* confdefs.h.  */
40597_ACEOF
40598cat confdefs.h >>conftest.$ac_ext
40599cat >>conftest.$ac_ext <<_ACEOF
40600/* end confdefs.h.  */
40601
40602#if defined(HAVE_UNISTD_H)
40603#include <unistd.h>
40604#endif
40605#include <sys/types.h>
40606main() { dev_t dev = makedev(1,2); return 0; }
40607_ACEOF
40608rm -f conftest$ac_exeext
40609if { (ac_try="$ac_link"
40610case "(($ac_try" in
40611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40612  *) ac_try_echo=$ac_try;;
40613esac
40614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40615  (eval "$ac_link") 2>&5
40616  ac_status=$?
40617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40619  { (case "(($ac_try" in
40620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40621  *) ac_try_echo=$ac_try;;
40622esac
40623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40624  (eval "$ac_try") 2>&5
40625  ac_status=$?
40626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627  (exit $ac_status); }; }; then
40628  samba_cv_HAVE_MAKEDEV=yes
40629else
40630  echo "$as_me: program exited with status $ac_status" >&5
40631echo "$as_me: failed program was:" >&5
40632sed 's/^/| /' conftest.$ac_ext >&5
40633
40634( exit $ac_status )
40635samba_cv_HAVE_MAKEDEV=no
40636fi
40637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40638fi
40639
40640
40641fi
40642{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_MAKEDEV" >&5
40643echo "${ECHO_T}$samba_cv_HAVE_MAKEDEV" >&6; }
40644if test x"$samba_cv_HAVE_MAKEDEV" = x"yes"; then
40645
40646cat >>confdefs.h <<\_ACEOF
40647#define HAVE_MAKEDEV 1
40648_ACEOF
40649
40650fi
40651
40652{ echo "$as_me:$LINENO: checking for unsigned char" >&5
40653echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
40654if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
40655  echo $ECHO_N "(cached) $ECHO_C" >&6
40656else
40657
40658if test "$cross_compiling" = yes; then
40659  samba_cv_HAVE_UNSIGNED_CHAR=cross
40660else
40661  cat >conftest.$ac_ext <<_ACEOF
40662/* confdefs.h.  */
40663_ACEOF
40664cat confdefs.h >>conftest.$ac_ext
40665cat >>conftest.$ac_ext <<_ACEOF
40666/* end confdefs.h.  */
40667#include <stdio.h>
40668main() { char c; c=250; exit((c > 0)?0:1); }
40669_ACEOF
40670rm -f conftest$ac_exeext
40671if { (ac_try="$ac_link"
40672case "(($ac_try" in
40673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40674  *) ac_try_echo=$ac_try;;
40675esac
40676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40677  (eval "$ac_link") 2>&5
40678  ac_status=$?
40679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40680  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40681  { (case "(($ac_try" in
40682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40683  *) ac_try_echo=$ac_try;;
40684esac
40685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40686  (eval "$ac_try") 2>&5
40687  ac_status=$?
40688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689  (exit $ac_status); }; }; then
40690  samba_cv_HAVE_UNSIGNED_CHAR=yes
40691else
40692  echo "$as_me: program exited with status $ac_status" >&5
40693echo "$as_me: failed program was:" >&5
40694sed 's/^/| /' conftest.$ac_ext >&5
40695
40696( exit $ac_status )
40697samba_cv_HAVE_UNSIGNED_CHAR=no
40698fi
40699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40700fi
40701
40702
40703fi
40704{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
40705echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6; }
40706if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
40707
40708cat >>confdefs.h <<\_ACEOF
40709#define HAVE_UNSIGNED_CHAR 1
40710_ACEOF
40711
40712fi
40713
40714{ echo "$as_me:$LINENO: checking for sin_len in sock" >&5
40715echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6; }
40716if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
40717  echo $ECHO_N "(cached) $ECHO_C" >&6
40718else
40719
40720cat >conftest.$ac_ext <<_ACEOF
40721/* confdefs.h.  */
40722_ACEOF
40723cat confdefs.h >>conftest.$ac_ext
40724cat >>conftest.$ac_ext <<_ACEOF
40725/* end confdefs.h.  */
40726#include <sys/types.h>
40727#include <sys/socket.h>
40728#include <netinet/in.h>
40729int
40730main ()
40731{
40732struct sockaddr_in sock; sock.sin_len = sizeof(sock);
40733  ;
40734  return 0;
40735}
40736_ACEOF
40737rm -f conftest.$ac_objext
40738if { (ac_try="$ac_compile"
40739case "(($ac_try" in
40740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40741  *) ac_try_echo=$ac_try;;
40742esac
40743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40744  (eval "$ac_compile") 2>conftest.er1
40745  ac_status=$?
40746  grep -v '^ *+' conftest.er1 >conftest.err
40747  rm -f conftest.er1
40748  cat conftest.err >&5
40749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40750  (exit $ac_status); } && {
40751	 test -z "$ac_c_werror_flag" ||
40752	 test ! -s conftest.err
40753       } && test -s conftest.$ac_objext; then
40754  samba_cv_HAVE_SOCK_SIN_LEN=yes
40755else
40756  echo "$as_me: failed program was:" >&5
40757sed 's/^/| /' conftest.$ac_ext >&5
40758
40759	samba_cv_HAVE_SOCK_SIN_LEN=no
40760fi
40761
40762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40763fi
40764{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
40765echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6; }
40766if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
40767
40768cat >>confdefs.h <<\_ACEOF
40769#define HAVE_SOCK_SIN_LEN 1
40770_ACEOF
40771
40772fi
40773
40774{ echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
40775echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6; }
40776if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
40777  echo $ECHO_N "(cached) $ECHO_C" >&6
40778else
40779
40780cat >conftest.$ac_ext <<_ACEOF
40781/* confdefs.h.  */
40782_ACEOF
40783cat confdefs.h >>conftest.$ac_ext
40784cat >>conftest.$ac_ext <<_ACEOF
40785/* end confdefs.h.  */
40786#include <sys/types.h>
40787#include <dirent.h>
40788void seekdir(DIR *d, long loc) { return; }
40789int
40790main ()
40791{
40792return 0;
40793  ;
40794  return 0;
40795}
40796_ACEOF
40797rm -f conftest.$ac_objext
40798if { (ac_try="$ac_compile"
40799case "(($ac_try" in
40800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40801  *) ac_try_echo=$ac_try;;
40802esac
40803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40804  (eval "$ac_compile") 2>conftest.er1
40805  ac_status=$?
40806  grep -v '^ *+' conftest.er1 >conftest.err
40807  rm -f conftest.er1
40808  cat conftest.err >&5
40809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810  (exit $ac_status); } && {
40811	 test -z "$ac_c_werror_flag" ||
40812	 test ! -s conftest.err
40813       } && test -s conftest.$ac_objext; then
40814  samba_cv_SEEKDIR_RETURNS_VOID=yes
40815else
40816  echo "$as_me: failed program was:" >&5
40817sed 's/^/| /' conftest.$ac_ext >&5
40818
40819	samba_cv_SEEKDIR_RETURNS_VOID=no
40820fi
40821
40822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40823fi
40824{ echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
40825echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6; }
40826if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
40827
40828cat >>confdefs.h <<\_ACEOF
40829#define SEEKDIR_RETURNS_VOID 1
40830_ACEOF
40831
40832fi
40833
40834{ echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
40835echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6; }
40836if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
40837  echo $ECHO_N "(cached) $ECHO_C" >&6
40838else
40839
40840cat >conftest.$ac_ext <<_ACEOF
40841/* confdefs.h.  */
40842_ACEOF
40843cat confdefs.h >>conftest.$ac_ext
40844cat >>conftest.$ac_ext <<_ACEOF
40845/* end confdefs.h.  */
40846#include <stdio.h>
40847int
40848main ()
40849{
40850printf("%s\n", __FUNCTION__);
40851  ;
40852  return 0;
40853}
40854_ACEOF
40855rm -f conftest.$ac_objext
40856if { (ac_try="$ac_compile"
40857case "(($ac_try" in
40858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40859  *) ac_try_echo=$ac_try;;
40860esac
40861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40862  (eval "$ac_compile") 2>conftest.er1
40863  ac_status=$?
40864  grep -v '^ *+' conftest.er1 >conftest.err
40865  rm -f conftest.er1
40866  cat conftest.err >&5
40867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868  (exit $ac_status); } && {
40869	 test -z "$ac_c_werror_flag" ||
40870	 test ! -s conftest.err
40871       } && test -s conftest.$ac_objext; then
40872  samba_cv_HAVE_FUNCTION_MACRO=yes
40873else
40874  echo "$as_me: failed program was:" >&5
40875sed 's/^/| /' conftest.$ac_ext >&5
40876
40877	samba_cv_HAVE_FUNCTION_MACRO=no
40878fi
40879
40880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40881fi
40882{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
40883echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6; }
40884if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
40885
40886cat >>confdefs.h <<\_ACEOF
40887#define HAVE_FUNCTION_MACRO 1
40888_ACEOF
40889
40890fi
40891
40892{ echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
40893echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6; }
40894if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
40895  echo $ECHO_N "(cached) $ECHO_C" >&6
40896else
40897
40898cat >conftest.$ac_ext <<_ACEOF
40899/* confdefs.h.  */
40900_ACEOF
40901cat confdefs.h >>conftest.$ac_ext
40902cat >>conftest.$ac_ext <<_ACEOF
40903/* end confdefs.h.  */
40904
40905#include <sys/time.h>
40906#include <unistd.h>
40907int
40908main ()
40909{
40910struct timeval tv; return gettimeofday(&tv, NULL);
40911  ;
40912  return 0;
40913}
40914_ACEOF
40915rm -f conftest.$ac_objext conftest$ac_exeext
40916if { (ac_try="$ac_link"
40917case "(($ac_try" in
40918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40919  *) ac_try_echo=$ac_try;;
40920esac
40921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40922  (eval "$ac_link") 2>conftest.er1
40923  ac_status=$?
40924  grep -v '^ *+' conftest.er1 >conftest.err
40925  rm -f conftest.er1
40926  cat conftest.err >&5
40927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40928  (exit $ac_status); } && {
40929	 test -z "$ac_c_werror_flag" ||
40930	 test ! -s conftest.err
40931       } && test -s conftest$ac_exeext &&
40932       $as_test_x conftest$ac_exeext; then
40933  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
40934else
40935  echo "$as_me: failed program was:" >&5
40936sed 's/^/| /' conftest.$ac_ext >&5
40937
40938	samba_cv_HAVE_GETTIMEOFDAY_TZ=no
40939fi
40940
40941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40942      conftest$ac_exeext conftest.$ac_ext
40943fi
40944{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
40945echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
40946if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
40947
40948cat >>confdefs.h <<\_ACEOF
40949#define HAVE_GETTIMEOFDAY_TZ 1
40950_ACEOF
40951
40952fi
40953
40954if test x"$samba_cv_WITH_PROFILE" = x"yes"; then
40955
40956    # On some systems (eg. Linux) librt can pull in libpthread. We
40957    # don't want this to happen because libpthreads changes signal delivery
40958    # semantics in ways we are not prepared for. This breaks Linux oplocks
40959    # which rely on signals.
40960
40961
40962
40963for ac_func in clock_gettime
40964do
40965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40966{ echo "$as_me:$LINENO: checking for $ac_func" >&5
40967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40968if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40969  echo $ECHO_N "(cached) $ECHO_C" >&6
40970else
40971  cat >conftest.$ac_ext <<_ACEOF
40972/* confdefs.h.  */
40973_ACEOF
40974cat confdefs.h >>conftest.$ac_ext
40975cat >>conftest.$ac_ext <<_ACEOF
40976/* end confdefs.h.  */
40977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40978   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40979#define $ac_func innocuous_$ac_func
40980
40981/* System header to define __stub macros and hopefully few prototypes,
40982    which can conflict with char $ac_func (); below.
40983    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40984    <limits.h> exists even on freestanding compilers.  */
40985
40986#ifdef __STDC__
40987# include <limits.h>
40988#else
40989# include <assert.h>
40990#endif
40991
40992#undef $ac_func
40993
40994/* Override any GCC internal prototype to avoid an error.
40995   Use char because int might match the return type of a GCC
40996   builtin and then its argument prototype would still apply.  */
40997#ifdef __cplusplus
40998extern "C"
40999#endif
41000char $ac_func ();
41001/* The GNU C library defines this for functions which it implements
41002    to always fail with ENOSYS.  Some functions are actually named
41003    something starting with __ and the normal name is an alias.  */
41004#if defined __stub_$ac_func || defined __stub___$ac_func
41005choke me
41006#endif
41007
41008int
41009main ()
41010{
41011return $ac_func ();
41012  ;
41013  return 0;
41014}
41015_ACEOF
41016rm -f conftest.$ac_objext conftest$ac_exeext
41017if { (ac_try="$ac_link"
41018case "(($ac_try" in
41019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41020  *) ac_try_echo=$ac_try;;
41021esac
41022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41023  (eval "$ac_link") 2>conftest.er1
41024  ac_status=$?
41025  grep -v '^ *+' conftest.er1 >conftest.err
41026  rm -f conftest.er1
41027  cat conftest.err >&5
41028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41029  (exit $ac_status); } && {
41030	 test -z "$ac_c_werror_flag" ||
41031	 test ! -s conftest.err
41032       } && test -s conftest$ac_exeext &&
41033       $as_test_x conftest$ac_exeext; then
41034  eval "$as_ac_var=yes"
41035else
41036  echo "$as_me: failed program was:" >&5
41037sed 's/^/| /' conftest.$ac_ext >&5
41038
41039	eval "$as_ac_var=no"
41040fi
41041
41042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41043      conftest$ac_exeext conftest.$ac_ext
41044fi
41045ac_res=`eval echo '${'$as_ac_var'}'`
41046	       { echo "$as_me:$LINENO: result: $ac_res" >&5
41047echo "${ECHO_T}$ac_res" >&6; }
41048if test `eval echo '${'$as_ac_var'}'` = yes; then
41049  cat >>confdefs.h <<_ACEOF
41050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41051_ACEOF
41052
41053        # clock_gettime was found in libc or existing $LIBS
41054
41055
41056
41057cat >>confdefs.h <<\_ACEOF
41058#define HAVE_CLOCK_GETTIME 1
41059_ACEOF
41060
41061
41062    { echo "$as_me:$LINENO: checking for CLOCK_MONOTONIC" >&5
41063echo $ECHO_N "checking for CLOCK_MONOTONIC... $ECHO_C" >&6; }
41064    cat >conftest.$ac_ext <<_ACEOF
41065/* confdefs.h.  */
41066_ACEOF
41067cat confdefs.h >>conftest.$ac_ext
41068cat >>conftest.$ac_ext <<_ACEOF
41069/* end confdefs.h.  */
41070
41071#if TIME_WITH_SYS_TIME
41072# include <sys/time.h>
41073# include <time.h>
41074#else
41075# if HAVE_SYS_TIME_H
41076#  include <sys/time.h>
41077# else
41078#  include <time.h>
41079# endif
41080#endif
41081
41082int
41083main ()
41084{
41085
41086clockid_t clk = CLOCK_MONOTONIC;
41087
41088  ;
41089  return 0;
41090}
41091_ACEOF
41092rm -f conftest.$ac_objext conftest$ac_exeext
41093if { (ac_try="$ac_link"
41094case "(($ac_try" in
41095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41096  *) ac_try_echo=$ac_try;;
41097esac
41098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41099  (eval "$ac_link") 2>conftest.er1
41100  ac_status=$?
41101  grep -v '^ *+' conftest.er1 >conftest.err
41102  rm -f conftest.er1
41103  cat conftest.err >&5
41104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41105  (exit $ac_status); } && {
41106	 test -z "$ac_c_werror_flag" ||
41107	 test ! -s conftest.err
41108       } && test -s conftest$ac_exeext &&
41109       $as_test_x conftest$ac_exeext; then
41110
41111	{ echo "$as_me:$LINENO: result: yes" >&5
41112echo "${ECHO_T}yes" >&6; }
41113
41114cat >>confdefs.h <<\_ACEOF
41115#define HAVE_CLOCK_MONOTONIC 1
41116_ACEOF
41117
41118
41119else
41120  echo "$as_me: failed program was:" >&5
41121sed 's/^/| /' conftest.$ac_ext >&5
41122
41123
41124	{ echo "$as_me:$LINENO: result: no" >&5
41125echo "${ECHO_T}no" >&6; }
41126
41127fi
41128
41129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41130      conftest$ac_exeext conftest.$ac_ext
41131
41132
41133    { echo "$as_me:$LINENO: checking for CLOCK_PROCESS_CPUTIME_ID" >&5
41134echo $ECHO_N "checking for CLOCK_PROCESS_CPUTIME_ID... $ECHO_C" >&6; }
41135    cat >conftest.$ac_ext <<_ACEOF
41136/* confdefs.h.  */
41137_ACEOF
41138cat confdefs.h >>conftest.$ac_ext
41139cat >>conftest.$ac_ext <<_ACEOF
41140/* end confdefs.h.  */
41141
41142#if TIME_WITH_SYS_TIME
41143# include <sys/time.h>
41144# include <time.h>
41145#else
41146# if HAVE_SYS_TIME_H
41147#  include <sys/time.h>
41148# else
41149#  include <time.h>
41150# endif
41151#endif
41152
41153int
41154main ()
41155{
41156
41157clockid_t clk = CLOCK_PROCESS_CPUTIME_ID;
41158
41159  ;
41160  return 0;
41161}
41162_ACEOF
41163rm -f conftest.$ac_objext conftest$ac_exeext
41164if { (ac_try="$ac_link"
41165case "(($ac_try" in
41166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41167  *) ac_try_echo=$ac_try;;
41168esac
41169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41170  (eval "$ac_link") 2>conftest.er1
41171  ac_status=$?
41172  grep -v '^ *+' conftest.er1 >conftest.err
41173  rm -f conftest.er1
41174  cat conftest.err >&5
41175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41176  (exit $ac_status); } && {
41177	 test -z "$ac_c_werror_flag" ||
41178	 test ! -s conftest.err
41179       } && test -s conftest$ac_exeext &&
41180       $as_test_x conftest$ac_exeext; then
41181
41182	{ echo "$as_me:$LINENO: result: yes" >&5
41183echo "${ECHO_T}yes" >&6; }
41184
41185cat >>confdefs.h <<\_ACEOF
41186#define HAVE_CLOCK_PROCESS_CPUTIME_ID 1
41187_ACEOF
41188
41189
41190else
41191  echo "$as_me: failed program was:" >&5
41192sed 's/^/| /' conftest.$ac_ext >&5
41193
41194
41195	{ echo "$as_me:$LINENO: result: no" >&5
41196echo "${ECHO_T}no" >&6; }
41197
41198fi
41199
41200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41201      conftest$ac_exeext conftest.$ac_ext
41202
41203
41204    { echo "$as_me:$LINENO: checking for CLOCK_REALTIME" >&5
41205echo $ECHO_N "checking for CLOCK_REALTIME... $ECHO_C" >&6; }
41206    cat >conftest.$ac_ext <<_ACEOF
41207/* confdefs.h.  */
41208_ACEOF
41209cat confdefs.h >>conftest.$ac_ext
41210cat >>conftest.$ac_ext <<_ACEOF
41211/* end confdefs.h.  */
41212
41213#if TIME_WITH_SYS_TIME
41214# include <sys/time.h>
41215# include <time.h>
41216#else
41217# if HAVE_SYS_TIME_H
41218#  include <sys/time.h>
41219# else
41220#  include <time.h>
41221# endif
41222#endif
41223
41224int
41225main ()
41226{
41227
41228clockid_t clk = CLOCK_REALTIME;
41229
41230  ;
41231  return 0;
41232}
41233_ACEOF
41234rm -f conftest.$ac_objext conftest$ac_exeext
41235if { (ac_try="$ac_link"
41236case "(($ac_try" in
41237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41238  *) ac_try_echo=$ac_try;;
41239esac
41240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41241  (eval "$ac_link") 2>conftest.er1
41242  ac_status=$?
41243  grep -v '^ *+' conftest.er1 >conftest.err
41244  rm -f conftest.er1
41245  cat conftest.err >&5
41246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41247  (exit $ac_status); } && {
41248	 test -z "$ac_c_werror_flag" ||
41249	 test ! -s conftest.err
41250       } && test -s conftest$ac_exeext &&
41251       $as_test_x conftest$ac_exeext; then
41252
41253	{ echo "$as_me:$LINENO: result: yes" >&5
41254echo "${ECHO_T}yes" >&6; }
41255
41256cat >>confdefs.h <<\_ACEOF
41257#define HAVE_CLOCK_REALTIME 1
41258_ACEOF
41259
41260
41261else
41262  echo "$as_me: failed program was:" >&5
41263sed 's/^/| /' conftest.$ac_ext >&5
41264
41265
41266	{ echo "$as_me:$LINENO: result: no" >&5
41267echo "${ECHO_T}no" >&6; }
41268
41269fi
41270
41271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41272      conftest$ac_exeext conftest.$ac_ext
41273
41274
41275
41276
41277else
41278
41279        # clock_gettime was not found, try adding librt
41280	case " $LIBS " in
41281          *\ -lrt\ *)
41282
41283		    # clock_gettime was not found and we already had librt
41284		    # nothing to do here by default
41285		    true
41286
41287	    ;;
41288          *)
41289	    # clock_gettime was not found, try adding librt
41290	    { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
41291echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
41292if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
41293  echo $ECHO_N "(cached) $ECHO_C" >&6
41294else
41295  ac_check_lib_save_LIBS=$LIBS
41296LIBS="-lrt  $LIBS"
41297cat >conftest.$ac_ext <<_ACEOF
41298/* confdefs.h.  */
41299_ACEOF
41300cat confdefs.h >>conftest.$ac_ext
41301cat >>conftest.$ac_ext <<_ACEOF
41302/* end confdefs.h.  */
41303
41304/* Override any GCC internal prototype to avoid an error.
41305   Use char because int might match the return type of a GCC
41306   builtin and then its argument prototype would still apply.  */
41307#ifdef __cplusplus
41308extern "C"
41309#endif
41310char clock_gettime ();
41311int
41312main ()
41313{
41314return clock_gettime ();
41315  ;
41316  return 0;
41317}
41318_ACEOF
41319rm -f conftest.$ac_objext conftest$ac_exeext
41320if { (ac_try="$ac_link"
41321case "(($ac_try" in
41322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41323  *) ac_try_echo=$ac_try;;
41324esac
41325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41326  (eval "$ac_link") 2>conftest.er1
41327  ac_status=$?
41328  grep -v '^ *+' conftest.er1 >conftest.err
41329  rm -f conftest.er1
41330  cat conftest.err >&5
41331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41332  (exit $ac_status); } && {
41333	 test -z "$ac_c_werror_flag" ||
41334	 test ! -s conftest.err
41335       } && test -s conftest$ac_exeext &&
41336       $as_test_x conftest$ac_exeext; then
41337  ac_cv_lib_rt_clock_gettime=yes
41338else
41339  echo "$as_me: failed program was:" >&5
41340sed 's/^/| /' conftest.$ac_ext >&5
41341
41342	ac_cv_lib_rt_clock_gettime=no
41343fi
41344
41345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41346      conftest$ac_exeext conftest.$ac_ext
41347LIBS=$ac_check_lib_save_LIBS
41348fi
41349{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
41350echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
41351if test $ac_cv_lib_rt_clock_gettime = yes; then
41352
41353		LIBS="-lrt $LIBS"
41354
41355
41356
41357cat >>confdefs.h <<\_ACEOF
41358#define HAVE_CLOCK_GETTIME 1
41359_ACEOF
41360
41361
41362    { echo "$as_me:$LINENO: checking for CLOCK_MONOTONIC" >&5
41363echo $ECHO_N "checking for CLOCK_MONOTONIC... $ECHO_C" >&6; }
41364    cat >conftest.$ac_ext <<_ACEOF
41365/* confdefs.h.  */
41366_ACEOF
41367cat confdefs.h >>conftest.$ac_ext
41368cat >>conftest.$ac_ext <<_ACEOF
41369/* end confdefs.h.  */
41370
41371#if TIME_WITH_SYS_TIME
41372# include <sys/time.h>
41373# include <time.h>
41374#else
41375# if HAVE_SYS_TIME_H
41376#  include <sys/time.h>
41377# else
41378#  include <time.h>
41379# endif
41380#endif
41381
41382int
41383main ()
41384{
41385
41386clockid_t clk = CLOCK_MONOTONIC;
41387
41388  ;
41389  return 0;
41390}
41391_ACEOF
41392rm -f conftest.$ac_objext conftest$ac_exeext
41393if { (ac_try="$ac_link"
41394case "(($ac_try" in
41395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41396  *) ac_try_echo=$ac_try;;
41397esac
41398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41399  (eval "$ac_link") 2>conftest.er1
41400  ac_status=$?
41401  grep -v '^ *+' conftest.er1 >conftest.err
41402  rm -f conftest.er1
41403  cat conftest.err >&5
41404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41405  (exit $ac_status); } && {
41406	 test -z "$ac_c_werror_flag" ||
41407	 test ! -s conftest.err
41408       } && test -s conftest$ac_exeext &&
41409       $as_test_x conftest$ac_exeext; then
41410
41411	{ echo "$as_me:$LINENO: result: yes" >&5
41412echo "${ECHO_T}yes" >&6; }
41413
41414cat >>confdefs.h <<\_ACEOF
41415#define HAVE_CLOCK_MONOTONIC 1
41416_ACEOF
41417
41418
41419else
41420  echo "$as_me: failed program was:" >&5
41421sed 's/^/| /' conftest.$ac_ext >&5
41422
41423
41424	{ echo "$as_me:$LINENO: result: no" >&5
41425echo "${ECHO_T}no" >&6; }
41426
41427fi
41428
41429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41430      conftest$ac_exeext conftest.$ac_ext
41431
41432
41433    { echo "$as_me:$LINENO: checking for CLOCK_PROCESS_CPUTIME_ID" >&5
41434echo $ECHO_N "checking for CLOCK_PROCESS_CPUTIME_ID... $ECHO_C" >&6; }
41435    cat >conftest.$ac_ext <<_ACEOF
41436/* confdefs.h.  */
41437_ACEOF
41438cat confdefs.h >>conftest.$ac_ext
41439cat >>conftest.$ac_ext <<_ACEOF
41440/* end confdefs.h.  */
41441
41442#if TIME_WITH_SYS_TIME
41443# include <sys/time.h>
41444# include <time.h>
41445#else
41446# if HAVE_SYS_TIME_H
41447#  include <sys/time.h>
41448# else
41449#  include <time.h>
41450# endif
41451#endif
41452
41453int
41454main ()
41455{
41456
41457clockid_t clk = CLOCK_PROCESS_CPUTIME_ID;
41458
41459  ;
41460  return 0;
41461}
41462_ACEOF
41463rm -f conftest.$ac_objext conftest$ac_exeext
41464if { (ac_try="$ac_link"
41465case "(($ac_try" in
41466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41467  *) ac_try_echo=$ac_try;;
41468esac
41469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41470  (eval "$ac_link") 2>conftest.er1
41471  ac_status=$?
41472  grep -v '^ *+' conftest.er1 >conftest.err
41473  rm -f conftest.er1
41474  cat conftest.err >&5
41475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41476  (exit $ac_status); } && {
41477	 test -z "$ac_c_werror_flag" ||
41478	 test ! -s conftest.err
41479       } && test -s conftest$ac_exeext &&
41480       $as_test_x conftest$ac_exeext; then
41481
41482	{ echo "$as_me:$LINENO: result: yes" >&5
41483echo "${ECHO_T}yes" >&6; }
41484
41485cat >>confdefs.h <<\_ACEOF
41486#define HAVE_CLOCK_PROCESS_CPUTIME_ID 1
41487_ACEOF
41488
41489
41490else
41491  echo "$as_me: failed program was:" >&5
41492sed 's/^/| /' conftest.$ac_ext >&5
41493
41494
41495	{ echo "$as_me:$LINENO: result: no" >&5
41496echo "${ECHO_T}no" >&6; }
41497
41498fi
41499
41500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41501      conftest$ac_exeext conftest.$ac_ext
41502
41503
41504    { echo "$as_me:$LINENO: checking for CLOCK_REALTIME" >&5
41505echo $ECHO_N "checking for CLOCK_REALTIME... $ECHO_C" >&6; }
41506    cat >conftest.$ac_ext <<_ACEOF
41507/* confdefs.h.  */
41508_ACEOF
41509cat confdefs.h >>conftest.$ac_ext
41510cat >>conftest.$ac_ext <<_ACEOF
41511/* end confdefs.h.  */
41512
41513#if TIME_WITH_SYS_TIME
41514# include <sys/time.h>
41515# include <time.h>
41516#else
41517# if HAVE_SYS_TIME_H
41518#  include <sys/time.h>
41519# else
41520#  include <time.h>
41521# endif
41522#endif
41523
41524int
41525main ()
41526{
41527
41528clockid_t clk = CLOCK_REALTIME;
41529
41530  ;
41531  return 0;
41532}
41533_ACEOF
41534rm -f conftest.$ac_objext conftest$ac_exeext
41535if { (ac_try="$ac_link"
41536case "(($ac_try" in
41537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41538  *) ac_try_echo=$ac_try;;
41539esac
41540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41541  (eval "$ac_link") 2>conftest.er1
41542  ac_status=$?
41543  grep -v '^ *+' conftest.er1 >conftest.err
41544  rm -f conftest.er1
41545  cat conftest.err >&5
41546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547  (exit $ac_status); } && {
41548	 test -z "$ac_c_werror_flag" ||
41549	 test ! -s conftest.err
41550       } && test -s conftest$ac_exeext &&
41551       $as_test_x conftest$ac_exeext; then
41552
41553	{ echo "$as_me:$LINENO: result: yes" >&5
41554echo "${ECHO_T}yes" >&6; }
41555
41556cat >>confdefs.h <<\_ACEOF
41557#define HAVE_CLOCK_REALTIME 1
41558_ACEOF
41559
41560
41561else
41562  echo "$as_me: failed program was:" >&5
41563sed 's/^/| /' conftest.$ac_ext >&5
41564
41565
41566	{ echo "$as_me:$LINENO: result: no" >&5
41567echo "${ECHO_T}no" >&6; }
41568
41569fi
41570
41571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41572      conftest$ac_exeext conftest.$ac_ext
41573
41574
41575
41576
41577else
41578
41579
41580			# clock_gettime was not found in librt
41581			# nothing to do here by default
41582			true
41583
41584
41585fi
41586
41587	  ;;
41588        esac
41589
41590fi
41591done
41592
41593
41594
41595fi
41596
41597{ echo "$as_me:$LINENO: checking for va_copy" >&5
41598echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
41599if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
41600  echo $ECHO_N "(cached) $ECHO_C" >&6
41601else
41602
41603cat >conftest.$ac_ext <<_ACEOF
41604/* confdefs.h.  */
41605_ACEOF
41606cat confdefs.h >>conftest.$ac_ext
41607cat >>conftest.$ac_ext <<_ACEOF
41608/* end confdefs.h.  */
41609#include <stdarg.h>
41610va_list ap1,ap2;
41611int
41612main ()
41613{
41614va_copy(ap1,ap2);
41615  ;
41616  return 0;
41617}
41618_ACEOF
41619rm -f conftest.$ac_objext conftest$ac_exeext
41620if { (ac_try="$ac_link"
41621case "(($ac_try" in
41622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41623  *) ac_try_echo=$ac_try;;
41624esac
41625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41626  (eval "$ac_link") 2>conftest.er1
41627  ac_status=$?
41628  grep -v '^ *+' conftest.er1 >conftest.err
41629  rm -f conftest.er1
41630  cat conftest.err >&5
41631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632  (exit $ac_status); } && {
41633	 test -z "$ac_c_werror_flag" ||
41634	 test ! -s conftest.err
41635       } && test -s conftest$ac_exeext &&
41636       $as_test_x conftest$ac_exeext; then
41637  samba_cv_HAVE_VA_COPY=yes
41638else
41639  echo "$as_me: failed program was:" >&5
41640sed 's/^/| /' conftest.$ac_ext >&5
41641
41642	samba_cv_HAVE_VA_COPY=no
41643fi
41644
41645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41646      conftest$ac_exeext conftest.$ac_ext
41647fi
41648{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
41649echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6; }
41650if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
41651
41652cat >>confdefs.h <<\_ACEOF
41653#define HAVE_VA_COPY 1
41654_ACEOF
41655
41656else
41657    { echo "$as_me:$LINENO: checking for __va_copy" >&5
41658echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
41659if test "${samba_cv_HAVE___VA_COPY+set}" = set; then
41660  echo $ECHO_N "(cached) $ECHO_C" >&6
41661else
41662
41663    cat >conftest.$ac_ext <<_ACEOF
41664/* confdefs.h.  */
41665_ACEOF
41666cat confdefs.h >>conftest.$ac_ext
41667cat >>conftest.$ac_ext <<_ACEOF
41668/* end confdefs.h.  */
41669#include <stdarg.h>
41670    va_list ap1,ap2;
41671int
41672main ()
41673{
41674__va_copy(ap1,ap2);
41675  ;
41676  return 0;
41677}
41678_ACEOF
41679rm -f conftest.$ac_objext conftest$ac_exeext
41680if { (ac_try="$ac_link"
41681case "(($ac_try" in
41682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41683  *) ac_try_echo=$ac_try;;
41684esac
41685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41686  (eval "$ac_link") 2>conftest.er1
41687  ac_status=$?
41688  grep -v '^ *+' conftest.er1 >conftest.err
41689  rm -f conftest.er1
41690  cat conftest.err >&5
41691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41692  (exit $ac_status); } && {
41693	 test -z "$ac_c_werror_flag" ||
41694	 test ! -s conftest.err
41695       } && test -s conftest$ac_exeext &&
41696       $as_test_x conftest$ac_exeext; then
41697  samba_cv_HAVE___VA_COPY=yes
41698else
41699  echo "$as_me: failed program was:" >&5
41700sed 's/^/| /' conftest.$ac_ext >&5
41701
41702	samba_cv_HAVE___VA_COPY=no
41703fi
41704
41705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41706      conftest$ac_exeext conftest.$ac_ext
41707fi
41708{ echo "$as_me:$LINENO: result: $samba_cv_HAVE___VA_COPY" >&5
41709echo "${ECHO_T}$samba_cv_HAVE___VA_COPY" >&6; }
41710    if test x"$samba_cv_HAVE___VA_COPY" = x"yes"; then
41711
41712cat >>confdefs.h <<\_ACEOF
41713#define HAVE___VA_COPY 1
41714_ACEOF
41715
41716    fi
41717fi
41718
41719{ echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
41720echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
41721if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
41722  echo $ECHO_N "(cached) $ECHO_C" >&6
41723else
41724
41725if test "$cross_compiling" = yes; then
41726  samba_cv_HAVE_C99_VSNPRINTF=cross
41727else
41728  cat >conftest.$ac_ext <<_ACEOF
41729/* confdefs.h.  */
41730_ACEOF
41731cat confdefs.h >>conftest.$ac_ext
41732cat >>conftest.$ac_ext <<_ACEOF
41733/* end confdefs.h.  */
41734
41735#include <sys/types.h>
41736#include <stdarg.h>
41737void foo(const char *format, ...) {
41738       va_list ap;
41739       int len;
41740       char buf[5];
41741
41742       va_start(ap, format);
41743       len = vsnprintf(buf, 0, format, ap);
41744       va_end(ap);
41745       if (len != 5) exit(1);
41746
41747       va_start(ap, format);
41748       len = vsnprintf(0, 0, format, ap);
41749       va_end(ap);
41750       if (len != 5) exit(1);
41751
41752       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
41753
41754       exit(0);
41755}
41756main() { foo("hello"); }
41757
41758_ACEOF
41759rm -f conftest$ac_exeext
41760if { (ac_try="$ac_link"
41761case "(($ac_try" in
41762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41763  *) ac_try_echo=$ac_try;;
41764esac
41765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41766  (eval "$ac_link") 2>&5
41767  ac_status=$?
41768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41769  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41770  { (case "(($ac_try" in
41771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41772  *) ac_try_echo=$ac_try;;
41773esac
41774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41775  (eval "$ac_try") 2>&5
41776  ac_status=$?
41777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41778  (exit $ac_status); }; }; then
41779  samba_cv_HAVE_C99_VSNPRINTF=yes
41780else
41781  echo "$as_me: program exited with status $ac_status" >&5
41782echo "$as_me: failed program was:" >&5
41783sed 's/^/| /' conftest.$ac_ext >&5
41784
41785( exit $ac_status )
41786samba_cv_HAVE_C99_VSNPRINTF=no
41787fi
41788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41789fi
41790
41791
41792fi
41793{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
41794echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6; }
41795if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
41796
41797cat >>confdefs.h <<\_ACEOF
41798#define HAVE_C99_VSNPRINTF 1
41799_ACEOF
41800
41801fi
41802
41803{ echo "$as_me:$LINENO: checking for broken readdir name" >&5
41804echo $ECHO_N "checking for broken readdir name... $ECHO_C" >&6; }
41805if test "${samba_cv_HAVE_BROKEN_READDIR_NAME+set}" = set; then
41806  echo $ECHO_N "(cached) $ECHO_C" >&6
41807else
41808
41809if test "$cross_compiling" = yes; then
41810  samba_cv_HAVE_BROKEN_READDIR_NAME=cross
41811else
41812  cat >conftest.$ac_ext <<_ACEOF
41813/* confdefs.h.  */
41814_ACEOF
41815cat confdefs.h >>conftest.$ac_ext
41816cat >>conftest.$ac_ext <<_ACEOF
41817/* end confdefs.h.  */
41818#include <sys/types.h>
41819#include <dirent.h>
41820main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
41821if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
41822di->d_name[0] == 0) exit(0); exit(1);}
41823_ACEOF
41824rm -f conftest$ac_exeext
41825if { (ac_try="$ac_link"
41826case "(($ac_try" in
41827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41828  *) ac_try_echo=$ac_try;;
41829esac
41830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41831  (eval "$ac_link") 2>&5
41832  ac_status=$?
41833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41835  { (case "(($ac_try" in
41836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41837  *) ac_try_echo=$ac_try;;
41838esac
41839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41840  (eval "$ac_try") 2>&5
41841  ac_status=$?
41842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843  (exit $ac_status); }; }; then
41844  samba_cv_HAVE_BROKEN_READDIR_NAME=yes
41845else
41846  echo "$as_me: program exited with status $ac_status" >&5
41847echo "$as_me: failed program was:" >&5
41848sed 's/^/| /' conftest.$ac_ext >&5
41849
41850( exit $ac_status )
41851samba_cv_HAVE_BROKEN_READDIR_NAME=no
41852fi
41853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41854fi
41855
41856
41857fi
41858{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR_NAME" >&5
41859echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR_NAME" >&6; }
41860if test x"$samba_cv_HAVE_BROKEN_READDIR_NAME" = x"yes"; then
41861
41862cat >>confdefs.h <<\_ACEOF
41863#define HAVE_BROKEN_READDIR_NAME 1
41864_ACEOF
41865
41866fi
41867
41868{ echo "$as_me:$LINENO: checking for utimbuf" >&5
41869echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6; }
41870if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
41871  echo $ECHO_N "(cached) $ECHO_C" >&6
41872else
41873
41874cat >conftest.$ac_ext <<_ACEOF
41875/* confdefs.h.  */
41876_ACEOF
41877cat confdefs.h >>conftest.$ac_ext
41878cat >>conftest.$ac_ext <<_ACEOF
41879/* end confdefs.h.  */
41880#include <sys/types.h>
41881#include <utime.h>
41882int
41883main ()
41884{
41885struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
41886  ;
41887  return 0;
41888}
41889_ACEOF
41890rm -f conftest.$ac_objext
41891if { (ac_try="$ac_compile"
41892case "(($ac_try" in
41893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41894  *) ac_try_echo=$ac_try;;
41895esac
41896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41897  (eval "$ac_compile") 2>conftest.er1
41898  ac_status=$?
41899  grep -v '^ *+' conftest.er1 >conftest.err
41900  rm -f conftest.er1
41901  cat conftest.err >&5
41902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41903  (exit $ac_status); } && {
41904	 test -z "$ac_c_werror_flag" ||
41905	 test ! -s conftest.err
41906       } && test -s conftest.$ac_objext; then
41907  samba_cv_HAVE_UTIMBUF=yes
41908else
41909  echo "$as_me: failed program was:" >&5
41910sed 's/^/| /' conftest.$ac_ext >&5
41911
41912	samba_cv_HAVE_UTIMBUF=no
41913fi
41914
41915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41916fi
41917{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
41918echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6; }
41919if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
41920
41921cat >>confdefs.h <<\_ACEOF
41922#define HAVE_UTIMBUF 1
41923_ACEOF
41924
41925fi
41926
41927##############
41928# Check utmp details, but only if our OS offers utmp.h
41929if test x"$ac_cv_header_utmp_h" = x"yes"; then
41930
41931
41932
41933
41934
41935
41936for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
41937do
41938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41939{ echo "$as_me:$LINENO: checking for $ac_func" >&5
41940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41942  echo $ECHO_N "(cached) $ECHO_C" >&6
41943else
41944  cat >conftest.$ac_ext <<_ACEOF
41945/* confdefs.h.  */
41946_ACEOF
41947cat confdefs.h >>conftest.$ac_ext
41948cat >>conftest.$ac_ext <<_ACEOF
41949/* end confdefs.h.  */
41950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41951   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41952#define $ac_func innocuous_$ac_func
41953
41954/* System header to define __stub macros and hopefully few prototypes,
41955    which can conflict with char $ac_func (); below.
41956    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41957    <limits.h> exists even on freestanding compilers.  */
41958
41959#ifdef __STDC__
41960# include <limits.h>
41961#else
41962# include <assert.h>
41963#endif
41964
41965#undef $ac_func
41966
41967/* Override any GCC internal prototype to avoid an error.
41968   Use char because int might match the return type of a GCC
41969   builtin and then its argument prototype would still apply.  */
41970#ifdef __cplusplus
41971extern "C"
41972#endif
41973char $ac_func ();
41974/* The GNU C library defines this for functions which it implements
41975    to always fail with ENOSYS.  Some functions are actually named
41976    something starting with __ and the normal name is an alias.  */
41977#if defined __stub_$ac_func || defined __stub___$ac_func
41978choke me
41979#endif
41980
41981int
41982main ()
41983{
41984return $ac_func ();
41985  ;
41986  return 0;
41987}
41988_ACEOF
41989rm -f conftest.$ac_objext conftest$ac_exeext
41990if { (ac_try="$ac_link"
41991case "(($ac_try" in
41992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41993  *) ac_try_echo=$ac_try;;
41994esac
41995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41996  (eval "$ac_link") 2>conftest.er1
41997  ac_status=$?
41998  grep -v '^ *+' conftest.er1 >conftest.err
41999  rm -f conftest.er1
42000  cat conftest.err >&5
42001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002  (exit $ac_status); } && {
42003	 test -z "$ac_c_werror_flag" ||
42004	 test ! -s conftest.err
42005       } && test -s conftest$ac_exeext &&
42006       $as_test_x conftest$ac_exeext; then
42007  eval "$as_ac_var=yes"
42008else
42009  echo "$as_me: failed program was:" >&5
42010sed 's/^/| /' conftest.$ac_ext >&5
42011
42012	eval "$as_ac_var=no"
42013fi
42014
42015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42016      conftest$ac_exeext conftest.$ac_ext
42017fi
42018ac_res=`eval echo '${'$as_ac_var'}'`
42019	       { echo "$as_me:$LINENO: result: $ac_res" >&5
42020echo "${ECHO_T}$ac_res" >&6; }
42021if test `eval echo '${'$as_ac_var'}'` = yes; then
42022  cat >>confdefs.h <<_ACEOF
42023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42024_ACEOF
42025
42026fi
42027done
42028
42029
42030{ echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
42031echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6; }
42032if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
42033  echo $ECHO_N "(cached) $ECHO_C" >&6
42034else
42035
42036cat >conftest.$ac_ext <<_ACEOF
42037/* confdefs.h.  */
42038_ACEOF
42039cat confdefs.h >>conftest.$ac_ext
42040cat >>conftest.$ac_ext <<_ACEOF
42041/* end confdefs.h.  */
42042#include <sys/types.h>
42043#include <utmp.h>
42044int
42045main ()
42046{
42047struct utmp ut;  ut.ut_name[0] = 'a';
42048  ;
42049  return 0;
42050}
42051_ACEOF
42052rm -f conftest.$ac_objext
42053if { (ac_try="$ac_compile"
42054case "(($ac_try" in
42055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42056  *) ac_try_echo=$ac_try;;
42057esac
42058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42059  (eval "$ac_compile") 2>conftest.er1
42060  ac_status=$?
42061  grep -v '^ *+' conftest.er1 >conftest.err
42062  rm -f conftest.er1
42063  cat conftest.err >&5
42064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065  (exit $ac_status); } && {
42066	 test -z "$ac_c_werror_flag" ||
42067	 test ! -s conftest.err
42068       } && test -s conftest.$ac_objext; then
42069  samba_cv_HAVE_UT_UT_NAME=yes
42070else
42071  echo "$as_me: failed program was:" >&5
42072sed 's/^/| /' conftest.$ac_ext >&5
42073
42074	samba_cv_HAVE_UT_UT_NAME=no
42075fi
42076
42077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42078fi
42079{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
42080echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6; }
42081if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
42082
42083cat >>confdefs.h <<\_ACEOF
42084#define HAVE_UT_UT_NAME 1
42085_ACEOF
42086
42087fi
42088
42089{ echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
42090echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6; }
42091if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
42092  echo $ECHO_N "(cached) $ECHO_C" >&6
42093else
42094
42095cat >conftest.$ac_ext <<_ACEOF
42096/* confdefs.h.  */
42097_ACEOF
42098cat confdefs.h >>conftest.$ac_ext
42099cat >>conftest.$ac_ext <<_ACEOF
42100/* end confdefs.h.  */
42101#include <sys/types.h>
42102#include <utmp.h>
42103int
42104main ()
42105{
42106struct utmp ut;  ut.ut_user[0] = 'a';
42107  ;
42108  return 0;
42109}
42110_ACEOF
42111rm -f conftest.$ac_objext
42112if { (ac_try="$ac_compile"
42113case "(($ac_try" in
42114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42115  *) ac_try_echo=$ac_try;;
42116esac
42117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42118  (eval "$ac_compile") 2>conftest.er1
42119  ac_status=$?
42120  grep -v '^ *+' conftest.er1 >conftest.err
42121  rm -f conftest.er1
42122  cat conftest.err >&5
42123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42124  (exit $ac_status); } && {
42125	 test -z "$ac_c_werror_flag" ||
42126	 test ! -s conftest.err
42127       } && test -s conftest.$ac_objext; then
42128  samba_cv_HAVE_UT_UT_USER=yes
42129else
42130  echo "$as_me: failed program was:" >&5
42131sed 's/^/| /' conftest.$ac_ext >&5
42132
42133	samba_cv_HAVE_UT_UT_USER=no
42134fi
42135
42136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42137fi
42138{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
42139echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6; }
42140if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
42141
42142cat >>confdefs.h <<\_ACEOF
42143#define HAVE_UT_UT_USER 1
42144_ACEOF
42145
42146fi
42147
42148{ echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
42149echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6; }
42150if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
42151  echo $ECHO_N "(cached) $ECHO_C" >&6
42152else
42153
42154cat >conftest.$ac_ext <<_ACEOF
42155/* confdefs.h.  */
42156_ACEOF
42157cat confdefs.h >>conftest.$ac_ext
42158cat >>conftest.$ac_ext <<_ACEOF
42159/* end confdefs.h.  */
42160#include <sys/types.h>
42161#include <utmp.h>
42162int
42163main ()
42164{
42165struct utmp ut;  ut.ut_id[0] = 'a';
42166  ;
42167  return 0;
42168}
42169_ACEOF
42170rm -f conftest.$ac_objext
42171if { (ac_try="$ac_compile"
42172case "(($ac_try" in
42173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42174  *) ac_try_echo=$ac_try;;
42175esac
42176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42177  (eval "$ac_compile") 2>conftest.er1
42178  ac_status=$?
42179  grep -v '^ *+' conftest.er1 >conftest.err
42180  rm -f conftest.er1
42181  cat conftest.err >&5
42182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42183  (exit $ac_status); } && {
42184	 test -z "$ac_c_werror_flag" ||
42185	 test ! -s conftest.err
42186       } && test -s conftest.$ac_objext; then
42187  samba_cv_HAVE_UT_UT_ID=yes
42188else
42189  echo "$as_me: failed program was:" >&5
42190sed 's/^/| /' conftest.$ac_ext >&5
42191
42192	samba_cv_HAVE_UT_UT_ID=no
42193fi
42194
42195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42196fi
42197{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
42198echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6; }
42199if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
42200
42201cat >>confdefs.h <<\_ACEOF
42202#define HAVE_UT_UT_ID 1
42203_ACEOF
42204
42205fi
42206
42207{ echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
42208echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6; }
42209if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
42210  echo $ECHO_N "(cached) $ECHO_C" >&6
42211else
42212
42213cat >conftest.$ac_ext <<_ACEOF
42214/* confdefs.h.  */
42215_ACEOF
42216cat confdefs.h >>conftest.$ac_ext
42217cat >>conftest.$ac_ext <<_ACEOF
42218/* end confdefs.h.  */
42219#include <sys/types.h>
42220#include <utmp.h>
42221int
42222main ()
42223{
42224struct utmp ut;  ut.ut_host[0] = 'a';
42225  ;
42226  return 0;
42227}
42228_ACEOF
42229rm -f conftest.$ac_objext
42230if { (ac_try="$ac_compile"
42231case "(($ac_try" in
42232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42233  *) ac_try_echo=$ac_try;;
42234esac
42235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42236  (eval "$ac_compile") 2>conftest.er1
42237  ac_status=$?
42238  grep -v '^ *+' conftest.er1 >conftest.err
42239  rm -f conftest.er1
42240  cat conftest.err >&5
42241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42242  (exit $ac_status); } && {
42243	 test -z "$ac_c_werror_flag" ||
42244	 test ! -s conftest.err
42245       } && test -s conftest.$ac_objext; then
42246  samba_cv_HAVE_UT_UT_HOST=yes
42247else
42248  echo "$as_me: failed program was:" >&5
42249sed 's/^/| /' conftest.$ac_ext >&5
42250
42251	samba_cv_HAVE_UT_UT_HOST=no
42252fi
42253
42254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42255fi
42256{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
42257echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6; }
42258if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
42259
42260cat >>confdefs.h <<\_ACEOF
42261#define HAVE_UT_UT_HOST 1
42262_ACEOF
42263
42264fi
42265
42266{ echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
42267echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6; }
42268if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
42269  echo $ECHO_N "(cached) $ECHO_C" >&6
42270else
42271
42272cat >conftest.$ac_ext <<_ACEOF
42273/* confdefs.h.  */
42274_ACEOF
42275cat confdefs.h >>conftest.$ac_ext
42276cat >>conftest.$ac_ext <<_ACEOF
42277/* end confdefs.h.  */
42278#include <sys/types.h>
42279#include <utmp.h>
42280int
42281main ()
42282{
42283struct utmp ut;  time_t t; ut.ut_time = t;
42284  ;
42285  return 0;
42286}
42287_ACEOF
42288rm -f conftest.$ac_objext
42289if { (ac_try="$ac_compile"
42290case "(($ac_try" in
42291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42292  *) ac_try_echo=$ac_try;;
42293esac
42294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42295  (eval "$ac_compile") 2>conftest.er1
42296  ac_status=$?
42297  grep -v '^ *+' conftest.er1 >conftest.err
42298  rm -f conftest.er1
42299  cat conftest.err >&5
42300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42301  (exit $ac_status); } && {
42302	 test -z "$ac_c_werror_flag" ||
42303	 test ! -s conftest.err
42304       } && test -s conftest.$ac_objext; then
42305  samba_cv_HAVE_UT_UT_TIME=yes
42306else
42307  echo "$as_me: failed program was:" >&5
42308sed 's/^/| /' conftest.$ac_ext >&5
42309
42310	samba_cv_HAVE_UT_UT_TIME=no
42311fi
42312
42313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42314fi
42315{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
42316echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6; }
42317if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
42318
42319cat >>confdefs.h <<\_ACEOF
42320#define HAVE_UT_UT_TIME 1
42321_ACEOF
42322
42323fi
42324
42325{ echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
42326echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6; }
42327if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
42328  echo $ECHO_N "(cached) $ECHO_C" >&6
42329else
42330
42331cat >conftest.$ac_ext <<_ACEOF
42332/* confdefs.h.  */
42333_ACEOF
42334cat confdefs.h >>conftest.$ac_ext
42335cat >>conftest.$ac_ext <<_ACEOF
42336/* end confdefs.h.  */
42337#include <sys/types.h>
42338#include <utmp.h>
42339int
42340main ()
42341{
42342struct utmp ut;  struct timeval tv; ut.ut_tv = tv;
42343  ;
42344  return 0;
42345}
42346_ACEOF
42347rm -f conftest.$ac_objext
42348if { (ac_try="$ac_compile"
42349case "(($ac_try" in
42350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42351  *) ac_try_echo=$ac_try;;
42352esac
42353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42354  (eval "$ac_compile") 2>conftest.er1
42355  ac_status=$?
42356  grep -v '^ *+' conftest.er1 >conftest.err
42357  rm -f conftest.er1
42358  cat conftest.err >&5
42359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42360  (exit $ac_status); } && {
42361	 test -z "$ac_c_werror_flag" ||
42362	 test ! -s conftest.err
42363       } && test -s conftest.$ac_objext; then
42364  samba_cv_HAVE_UT_UT_TV=yes
42365else
42366  echo "$as_me: failed program was:" >&5
42367sed 's/^/| /' conftest.$ac_ext >&5
42368
42369	samba_cv_HAVE_UT_UT_TV=no
42370fi
42371
42372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42373fi
42374{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
42375echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6; }
42376if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
42377
42378cat >>confdefs.h <<\_ACEOF
42379#define HAVE_UT_UT_TV 1
42380_ACEOF
42381
42382fi
42383
42384{ echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
42385echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6; }
42386if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
42387  echo $ECHO_N "(cached) $ECHO_C" >&6
42388else
42389
42390cat >conftest.$ac_ext <<_ACEOF
42391/* confdefs.h.  */
42392_ACEOF
42393cat confdefs.h >>conftest.$ac_ext
42394cat >>conftest.$ac_ext <<_ACEOF
42395/* end confdefs.h.  */
42396#include <sys/types.h>
42397#include <utmp.h>
42398int
42399main ()
42400{
42401struct utmp ut;  ut.ut_type = 0;
42402  ;
42403  return 0;
42404}
42405_ACEOF
42406rm -f conftest.$ac_objext
42407if { (ac_try="$ac_compile"
42408case "(($ac_try" in
42409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42410  *) ac_try_echo=$ac_try;;
42411esac
42412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42413  (eval "$ac_compile") 2>conftest.er1
42414  ac_status=$?
42415  grep -v '^ *+' conftest.er1 >conftest.err
42416  rm -f conftest.er1
42417  cat conftest.err >&5
42418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42419  (exit $ac_status); } && {
42420	 test -z "$ac_c_werror_flag" ||
42421	 test ! -s conftest.err
42422       } && test -s conftest.$ac_objext; then
42423  samba_cv_HAVE_UT_UT_TYPE=yes
42424else
42425  echo "$as_me: failed program was:" >&5
42426sed 's/^/| /' conftest.$ac_ext >&5
42427
42428	samba_cv_HAVE_UT_UT_TYPE=no
42429fi
42430
42431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42432fi
42433{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
42434echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6; }
42435if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
42436
42437cat >>confdefs.h <<\_ACEOF
42438#define HAVE_UT_UT_TYPE 1
42439_ACEOF
42440
42441fi
42442
42443{ echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
42444echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6; }
42445if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
42446  echo $ECHO_N "(cached) $ECHO_C" >&6
42447else
42448
42449cat >conftest.$ac_ext <<_ACEOF
42450/* confdefs.h.  */
42451_ACEOF
42452cat confdefs.h >>conftest.$ac_ext
42453cat >>conftest.$ac_ext <<_ACEOF
42454/* end confdefs.h.  */
42455#include <sys/types.h>
42456#include <utmp.h>
42457int
42458main ()
42459{
42460struct utmp ut;  ut.ut_pid = 0;
42461  ;
42462  return 0;
42463}
42464_ACEOF
42465rm -f conftest.$ac_objext
42466if { (ac_try="$ac_compile"
42467case "(($ac_try" in
42468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42469  *) ac_try_echo=$ac_try;;
42470esac
42471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42472  (eval "$ac_compile") 2>conftest.er1
42473  ac_status=$?
42474  grep -v '^ *+' conftest.er1 >conftest.err
42475  rm -f conftest.er1
42476  cat conftest.err >&5
42477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478  (exit $ac_status); } && {
42479	 test -z "$ac_c_werror_flag" ||
42480	 test ! -s conftest.err
42481       } && test -s conftest.$ac_objext; then
42482  samba_cv_HAVE_UT_UT_PID=yes
42483else
42484  echo "$as_me: failed program was:" >&5
42485sed 's/^/| /' conftest.$ac_ext >&5
42486
42487	samba_cv_HAVE_UT_UT_PID=no
42488fi
42489
42490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42491fi
42492{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
42493echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6; }
42494if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
42495
42496cat >>confdefs.h <<\_ACEOF
42497#define HAVE_UT_UT_PID 1
42498_ACEOF
42499
42500fi
42501
42502{ echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
42503echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6; }
42504if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
42505  echo $ECHO_N "(cached) $ECHO_C" >&6
42506else
42507
42508cat >conftest.$ac_ext <<_ACEOF
42509/* confdefs.h.  */
42510_ACEOF
42511cat confdefs.h >>conftest.$ac_ext
42512cat >>conftest.$ac_ext <<_ACEOF
42513/* end confdefs.h.  */
42514#include <sys/types.h>
42515#include <utmp.h>
42516int
42517main ()
42518{
42519struct utmp ut;  ut.ut_exit.e_exit = 0;
42520  ;
42521  return 0;
42522}
42523_ACEOF
42524rm -f conftest.$ac_objext
42525if { (ac_try="$ac_compile"
42526case "(($ac_try" in
42527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42528  *) ac_try_echo=$ac_try;;
42529esac
42530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42531  (eval "$ac_compile") 2>conftest.er1
42532  ac_status=$?
42533  grep -v '^ *+' conftest.er1 >conftest.err
42534  rm -f conftest.er1
42535  cat conftest.err >&5
42536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537  (exit $ac_status); } && {
42538	 test -z "$ac_c_werror_flag" ||
42539	 test ! -s conftest.err
42540       } && test -s conftest.$ac_objext; then
42541  samba_cv_HAVE_UT_UT_EXIT=yes
42542else
42543  echo "$as_me: failed program was:" >&5
42544sed 's/^/| /' conftest.$ac_ext >&5
42545
42546	samba_cv_HAVE_UT_UT_EXIT=no
42547fi
42548
42549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42550fi
42551{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
42552echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6; }
42553if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
42554
42555cat >>confdefs.h <<\_ACEOF
42556#define HAVE_UT_UT_EXIT 1
42557_ACEOF
42558
42559fi
42560
42561{ echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
42562echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6; }
42563if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
42564  echo $ECHO_N "(cached) $ECHO_C" >&6
42565else
42566
42567cat >conftest.$ac_ext <<_ACEOF
42568/* confdefs.h.  */
42569_ACEOF
42570cat confdefs.h >>conftest.$ac_ext
42571cat >>conftest.$ac_ext <<_ACEOF
42572/* end confdefs.h.  */
42573#include <sys/types.h>
42574#include <utmp.h>
42575int
42576main ()
42577{
42578struct utmp ut;  ut.ut_addr = 0;
42579  ;
42580  return 0;
42581}
42582_ACEOF
42583rm -f conftest.$ac_objext
42584if { (ac_try="$ac_compile"
42585case "(($ac_try" in
42586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42587  *) ac_try_echo=$ac_try;;
42588esac
42589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42590  (eval "$ac_compile") 2>conftest.er1
42591  ac_status=$?
42592  grep -v '^ *+' conftest.er1 >conftest.err
42593  rm -f conftest.er1
42594  cat conftest.err >&5
42595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596  (exit $ac_status); } && {
42597	 test -z "$ac_c_werror_flag" ||
42598	 test ! -s conftest.err
42599       } && test -s conftest.$ac_objext; then
42600  samba_cv_HAVE_UT_UT_ADDR=yes
42601else
42602  echo "$as_me: failed program was:" >&5
42603sed 's/^/| /' conftest.$ac_ext >&5
42604
42605	samba_cv_HAVE_UT_UT_ADDR=no
42606fi
42607
42608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42609fi
42610{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
42611echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6; }
42612if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
42613
42614cat >>confdefs.h <<\_ACEOF
42615#define HAVE_UT_UT_ADDR 1
42616_ACEOF
42617
42618fi
42619
42620if test x$ac_cv_func_pututline = xyes ; then
42621  { echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
42622echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6; }
42623if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
42624  echo $ECHO_N "(cached) $ECHO_C" >&6
42625else
42626
42627  cat >conftest.$ac_ext <<_ACEOF
42628/* confdefs.h.  */
42629_ACEOF
42630cat confdefs.h >>conftest.$ac_ext
42631cat >>conftest.$ac_ext <<_ACEOF
42632/* end confdefs.h.  */
42633#include <sys/types.h>
42634#include <utmp.h>
42635int
42636main ()
42637{
42638struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
42639  ;
42640  return 0;
42641}
42642_ACEOF
42643rm -f conftest.$ac_objext
42644if { (ac_try="$ac_compile"
42645case "(($ac_try" in
42646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42647  *) ac_try_echo=$ac_try;;
42648esac
42649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42650  (eval "$ac_compile") 2>conftest.er1
42651  ac_status=$?
42652  grep -v '^ *+' conftest.er1 >conftest.err
42653  rm -f conftest.er1
42654  cat conftest.err >&5
42655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42656  (exit $ac_status); } && {
42657	 test -z "$ac_c_werror_flag" ||
42658	 test ! -s conftest.err
42659       } && test -s conftest.$ac_objext; then
42660  samba_cv_PUTUTLINE_RETURNS_UTMP=yes
42661else
42662  echo "$as_me: failed program was:" >&5
42663sed 's/^/| /' conftest.$ac_ext >&5
42664
42665	samba_cv_PUTUTLINE_RETURNS_UTMP=no
42666fi
42667
42668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42669fi
42670{ echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
42671echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6; }
42672  if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
42673
42674cat >>confdefs.h <<\_ACEOF
42675#define PUTUTLINE_RETURNS_UTMP 1
42676_ACEOF
42677
42678  fi
42679fi
42680
42681{ echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
42682echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6; }
42683if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
42684  echo $ECHO_N "(cached) $ECHO_C" >&6
42685else
42686
42687cat >conftest.$ac_ext <<_ACEOF
42688/* confdefs.h.  */
42689_ACEOF
42690cat confdefs.h >>conftest.$ac_ext
42691cat >>conftest.$ac_ext <<_ACEOF
42692/* end confdefs.h.  */
42693#include <sys/types.h>
42694#include <utmpx.h>
42695int
42696main ()
42697{
42698struct utmpx ux;  ux.ut_syslen = 0;
42699  ;
42700  return 0;
42701}
42702_ACEOF
42703rm -f conftest.$ac_objext
42704if { (ac_try="$ac_compile"
42705case "(($ac_try" in
42706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42707  *) ac_try_echo=$ac_try;;
42708esac
42709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42710  (eval "$ac_compile") 2>conftest.er1
42711  ac_status=$?
42712  grep -v '^ *+' conftest.er1 >conftest.err
42713  rm -f conftest.er1
42714  cat conftest.err >&5
42715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716  (exit $ac_status); } && {
42717	 test -z "$ac_c_werror_flag" ||
42718	 test ! -s conftest.err
42719       } && test -s conftest.$ac_objext; then
42720  samba_cv_HAVE_UX_UT_SYSLEN=yes
42721else
42722  echo "$as_me: failed program was:" >&5
42723sed 's/^/| /' conftest.$ac_ext >&5
42724
42725	samba_cv_HAVE_UX_UT_SYSLEN=no
42726fi
42727
42728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42729fi
42730{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
42731echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6; }
42732if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
42733
42734cat >>confdefs.h <<\_ACEOF
42735#define HAVE_UX_UT_SYSLEN 1
42736_ACEOF
42737
42738fi
42739
42740fi
42741# end utmp details
42742
42743
42744ICONV_LOCATION=standard
42745LOOK_DIRS="/usr /usr/local /sw /opt"
42746
42747# Check whether --with-libiconv was given.
42748if test "${with_libiconv+set}" = set; then
42749  withval=$with_libiconv;
42750  if test "$withval" = "no" ; then
42751    { { echo "$as_me:$LINENO: error: argument to --with-libiconv must be a directory" >&5
42752echo "$as_me: error: argument to --with-libiconv must be a directory" >&2;}
42753   { (exit 1); exit 1; }; }
42754  else
42755     if test "$withval" != "yes" ; then
42756	ICONV_PATH_SPEC=yes
42757        LOOK_DIRS="$withval"
42758     fi
42759  fi
42760
42761fi
42762
42763
42764for i in $LOOK_DIRS ; do
42765    save_LIBS=$LIBS
42766    save_LDFLAGS=$LDFLAGS
42767    save_CPPFLAGS=$CPPFLAGS
42768    ICONV_FOUND="no"
42769    unset libext
42770    CPPFLAGS="$CPPFLAGS -I$i/include"
42771
42772    for l in "lib32" "lib" "lib/hpux32"; do
42773        if test -d "$i/$l" ; then
42774                LDFLAGS="$save_LDFLAGS -L$i/$l"
42775        LIBS=
42776        export LDFLAGS LIBS CPPFLAGS
42777
42778      { echo "$as_me:$LINENO: checking for iconv in $i/$l" >&5
42779echo $ECHO_N "checking for iconv in $i/$l... $ECHO_C" >&6; }
42780    jm_cv_func_iconv="no"
42781    jm_cv_lib_iconv=""
42782    jm_cv_giconv=no
42783    jm_save_LIBS="$LIBS"
42784
42785        if test "$jm_cv_func_iconv" != yes; then
42786      cat >conftest.$ac_ext <<_ACEOF
42787/* confdefs.h.  */
42788_ACEOF
42789cat confdefs.h >>conftest.$ac_ext
42790cat >>conftest.$ac_ext <<_ACEOF
42791/* end confdefs.h.  */
42792#include <stdlib.h>
42793#include <giconv.h>
42794int
42795main ()
42796{
42797iconv_t cd = iconv_open("","");
42798         iconv(cd,NULL,NULL,NULL,NULL);
42799         iconv_close(cd);
42800  ;
42801  return 0;
42802}
42803_ACEOF
42804rm -f conftest.$ac_objext conftest$ac_exeext
42805if { (ac_try="$ac_link"
42806case "(($ac_try" in
42807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42808  *) ac_try_echo=$ac_try;;
42809esac
42810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42811  (eval "$ac_link") 2>conftest.er1
42812  ac_status=$?
42813  grep -v '^ *+' conftest.er1 >conftest.err
42814  rm -f conftest.er1
42815  cat conftest.err >&5
42816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42817  (exit $ac_status); } && {
42818	 test -z "$ac_c_werror_flag" ||
42819	 test ! -s conftest.err
42820       } && test -s conftest$ac_exeext &&
42821       $as_test_x conftest$ac_exeext; then
42822  jm_cv_func_iconv=yes
42823         jm_cv_include="giconv.h"
42824         jm_cv_giconv="yes"
42825         jm_cv_lib_iconv=""
42826else
42827  echo "$as_me: failed program was:" >&5
42828sed 's/^/| /' conftest.$ac_ext >&5
42829
42830
42831fi
42832
42833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42834      conftest$ac_exeext conftest.$ac_ext
42835
42836            if test "$jm_cv_func_iconv" != yes; then
42837        cat >conftest.$ac_ext <<_ACEOF
42838/* confdefs.h.  */
42839_ACEOF
42840cat confdefs.h >>conftest.$ac_ext
42841cat >>conftest.$ac_ext <<_ACEOF
42842/* end confdefs.h.  */
42843#include <stdlib.h>
42844#include <iconv.h>
42845int
42846main ()
42847{
42848iconv_t cd = iconv_open("","");
42849           iconv(cd,NULL,NULL,NULL,NULL);
42850           iconv_close(cd);
42851  ;
42852  return 0;
42853}
42854_ACEOF
42855rm -f conftest.$ac_objext conftest$ac_exeext
42856if { (ac_try="$ac_link"
42857case "(($ac_try" in
42858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42859  *) ac_try_echo=$ac_try;;
42860esac
42861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42862  (eval "$ac_link") 2>conftest.er1
42863  ac_status=$?
42864  grep -v '^ *+' conftest.er1 >conftest.err
42865  rm -f conftest.er1
42866  cat conftest.err >&5
42867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42868  (exit $ac_status); } && {
42869	 test -z "$ac_c_werror_flag" ||
42870	 test ! -s conftest.err
42871       } && test -s conftest$ac_exeext &&
42872       $as_test_x conftest$ac_exeext; then
42873  jm_cv_include="iconv.h"
42874           jm_cv_func_iconv=yes
42875           jm_cv_lib_iconv=""
42876else
42877  echo "$as_me: failed program was:" >&5
42878sed 's/^/| /' conftest.$ac_ext >&5
42879
42880
42881fi
42882
42883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42884      conftest$ac_exeext conftest.$ac_ext
42885
42886          if test "$jm_cv_lib_iconv" != yes; then
42887            jm_save_LIBS="$LIBS"
42888            LIBS="$LIBS -lgiconv"
42889            cat >conftest.$ac_ext <<_ACEOF
42890/* confdefs.h.  */
42891_ACEOF
42892cat confdefs.h >>conftest.$ac_ext
42893cat >>conftest.$ac_ext <<_ACEOF
42894/* end confdefs.h.  */
42895#include <stdlib.h>
42896#include <giconv.h>
42897int
42898main ()
42899{
42900iconv_t cd = iconv_open("","");
42901               iconv(cd,NULL,NULL,NULL,NULL);
42902               iconv_close(cd);
42903  ;
42904  return 0;
42905}
42906_ACEOF
42907rm -f conftest.$ac_objext conftest$ac_exeext
42908if { (ac_try="$ac_link"
42909case "(($ac_try" in
42910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42911  *) ac_try_echo=$ac_try;;
42912esac
42913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42914  (eval "$ac_link") 2>conftest.er1
42915  ac_status=$?
42916  grep -v '^ *+' conftest.er1 >conftest.err
42917  rm -f conftest.er1
42918  cat conftest.err >&5
42919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920  (exit $ac_status); } && {
42921	 test -z "$ac_c_werror_flag" ||
42922	 test ! -s conftest.err
42923       } && test -s conftest$ac_exeext &&
42924       $as_test_x conftest$ac_exeext; then
42925  jm_cv_lib_iconv=yes
42926              jm_cv_func_iconv=yes
42927              jm_cv_include="giconv.h"
42928              jm_cv_giconv=yes
42929              jm_cv_lib_iconv="giconv"
42930else
42931  echo "$as_me: failed program was:" >&5
42932sed 's/^/| /' conftest.$ac_ext >&5
42933
42934
42935fi
42936
42937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42938      conftest$ac_exeext conftest.$ac_ext
42939
42940           LIBS="$jm_save_LIBS"
42941
42942        if test "$jm_cv_func_iconv" != yes; then
42943          jm_save_LIBS="$LIBS"
42944          LIBS="$LIBS -liconv"
42945          cat >conftest.$ac_ext <<_ACEOF
42946/* confdefs.h.  */
42947_ACEOF
42948cat confdefs.h >>conftest.$ac_ext
42949cat >>conftest.$ac_ext <<_ACEOF
42950/* end confdefs.h.  */
42951#include <stdlib.h>
42952#include <iconv.h>
42953int
42954main ()
42955{
42956iconv_t cd = iconv_open("","");
42957             iconv(cd,NULL,NULL,NULL,NULL);
42958             iconv_close(cd);
42959  ;
42960  return 0;
42961}
42962_ACEOF
42963rm -f conftest.$ac_objext conftest$ac_exeext
42964if { (ac_try="$ac_link"
42965case "(($ac_try" in
42966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42967  *) ac_try_echo=$ac_try;;
42968esac
42969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42970  (eval "$ac_link") 2>conftest.er1
42971  ac_status=$?
42972  grep -v '^ *+' conftest.er1 >conftest.err
42973  rm -f conftest.er1
42974  cat conftest.err >&5
42975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42976  (exit $ac_status); } && {
42977	 test -z "$ac_c_werror_flag" ||
42978	 test ! -s conftest.err
42979       } && test -s conftest$ac_exeext &&
42980       $as_test_x conftest$ac_exeext; then
42981  jm_cv_include="iconv.h"
42982            jm_cv_func_iconv=yes
42983            jm_cv_lib_iconv="iconv"
42984else
42985  echo "$as_me: failed program was:" >&5
42986sed 's/^/| /' conftest.$ac_ext >&5
42987
42988
42989fi
42990
42991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42992      conftest$ac_exeext conftest.$ac_ext
42993          LIBS="$jm_save_LIBS"
42994
42995          if test "$jm_cv_lib_iconv" != yes; then
42996            jm_save_LIBS="$LIBS"
42997            LIBS="$LIBS -lbiconv"
42998            cat >conftest.$ac_ext <<_ACEOF
42999/* confdefs.h.  */
43000_ACEOF
43001cat confdefs.h >>conftest.$ac_ext
43002cat >>conftest.$ac_ext <<_ACEOF
43003/* end confdefs.h.  */
43004#include <stdlib.h>
43005#include <biconv.h>
43006int
43007main ()
43008{
43009iconv_t cd = iconv_open("","");
43010               iconv(cd,NULL,NULL,NULL,NULL);
43011               iconv_close(cd);
43012  ;
43013  return 0;
43014}
43015_ACEOF
43016rm -f conftest.$ac_objext conftest$ac_exeext
43017if { (ac_try="$ac_link"
43018case "(($ac_try" in
43019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43020  *) ac_try_echo=$ac_try;;
43021esac
43022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43023  (eval "$ac_link") 2>conftest.er1
43024  ac_status=$?
43025  grep -v '^ *+' conftest.er1 >conftest.err
43026  rm -f conftest.er1
43027  cat conftest.err >&5
43028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43029  (exit $ac_status); } && {
43030	 test -z "$ac_c_werror_flag" ||
43031	 test ! -s conftest.err
43032       } && test -s conftest$ac_exeext &&
43033       $as_test_x conftest$ac_exeext; then
43034  jm_cv_lib_iconv=yes
43035              jm_cv_func_iconv=yes
43036              jm_cv_include="biconv.h"
43037              jm_cv_biconv=yes
43038              jm_cv_lib_iconv="biconv"
43039else
43040  echo "$as_me: failed program was:" >&5
43041sed 's/^/| /' conftest.$ac_ext >&5
43042
43043
43044fi
43045
43046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43047      conftest$ac_exeext conftest.$ac_ext
43048
43049            LIBS="$jm_save_LIBS"
43050	  fi
43051        fi
43052      fi
43053    fi
43054  fi
43055  if test "$jm_cv_func_iconv" = yes; then
43056    if test "$jm_cv_giconv" = yes; then
43057
43058cat >>confdefs.h <<\_ACEOF
43059#define HAVE_GICONV 1
43060_ACEOF
43061
43062      { echo "$as_me:$LINENO: result: yes" >&5
43063echo "${ECHO_T}yes" >&6; }
43064      ICONV_FOUND=yes
43065    else
43066      if test "$jm_cv_biconv" = yes; then
43067
43068cat >>confdefs.h <<\_ACEOF
43069#define HAVE_BICONV 1
43070_ACEOF
43071
43072        { echo "$as_me:$LINENO: result: yes" >&5
43073echo "${ECHO_T}yes" >&6; }
43074        ICONV_FOUND=yes
43075      else
43076
43077cat >>confdefs.h <<\_ACEOF
43078#define HAVE_ICONV 1
43079_ACEOF
43080
43081        { echo "$as_me:$LINENO: result: yes" >&5
43082echo "${ECHO_T}yes" >&6; }
43083        ICONV_FOUND=yes
43084      fi
43085    fi
43086  else
43087    { echo "$as_me:$LINENO: result: no" >&5
43088echo "${ECHO_T}no" >&6; }
43089  fi
43090
43091                if test x"$ICONV_FOUND" = "xyes" ; then
43092            libext="$l"
43093            break;
43094        fi
43095        fi
43096    done
43097
43098    if test x"$ICONV_FOUND" = "xyes" ; then
43099	LDFLAGS=$save_LDFLAGS
43100
43101if test ""$i/$libext"" != "/usr/lib" ; then
43102    LDFLAGS="$LDFLAGS -L"$i/$libext""
43103fi
43104
43105
43106if test ""$i/include"" != "/usr/include" ; then
43107    CPPFLAGS="$CPPFLAGS -I"$i/include""
43108fi
43109
43110	LIBS="$save_LIBS"
43111        ICONV_LOCATION=$i
43112        export LDFLAGS LIBS CPPFLAGS
43113
43114        ############
43115        # check for iconv in libc
43116        ic_save_LIBS="$LIBS"
43117        if test x"$ICONV_PATH_SPEC" = "xyes" ; then
43118           LIBS="$LIBS -L$ICONV_LOCATION/$libext"
43119        fi
43120        if test x"$jm_cv_lib_iconv" != x; then
43121           LIBS="$LIBS -l$jm_cv_lib_iconv"
43122        fi
43123	default_dos_charset=no
43124	default_display_charset=no
43125	default_unix_charset=no
43126
43127	# check for default dos charset name
43128	for j in CP850 IBM850 ; do
43129
43130    { echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
43131echo $ECHO_N "checking can we convert from $j to UCS2-LE?... $ECHO_C" >&6; }
43132  if test "$cross_compiling" = yes; then
43133  ICONV_CHARSET=cross
43134else
43135  cat >conftest.$ac_ext <<_ACEOF
43136/* confdefs.h.  */
43137_ACEOF
43138cat confdefs.h >>conftest.$ac_ext
43139cat >>conftest.$ac_ext <<_ACEOF
43140/* end confdefs.h.  */
43141
43142#include <$jm_cv_include>
43143main(){
43144    iconv_t cd = iconv_open("$j", "UCS-2LE");
43145    if (cd == 0 || cd == (iconv_t)-1) {
43146	return -1;
43147    }
43148    return 0;
43149}
43150
43151_ACEOF
43152rm -f conftest$ac_exeext
43153if { (ac_try="$ac_link"
43154case "(($ac_try" in
43155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43156  *) ac_try_echo=$ac_try;;
43157esac
43158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43159  (eval "$ac_link") 2>&5
43160  ac_status=$?
43161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43162  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43163  { (case "(($ac_try" in
43164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43165  *) ac_try_echo=$ac_try;;
43166esac
43167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43168  (eval "$ac_try") 2>&5
43169  ac_status=$?
43170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171  (exit $ac_status); }; }; then
43172  ICONV_CHARSET=$j
43173else
43174  echo "$as_me: program exited with status $ac_status" >&5
43175echo "$as_me: failed program was:" >&5
43176sed 's/^/| /' conftest.$ac_ext >&5
43177
43178( exit $ac_status )
43179ICONV_CHARSET=no
43180fi
43181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43182fi
43183
43184
43185  { echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
43186echo "${ECHO_T}$ICONV_CHARSET" >&6; }
43187
43188	    if test x"$ICONV_CHARSET" = x"$j"; then
43189		default_dos_charset="\"$j\""
43190		break
43191	    fi
43192	done
43193	# check for default display charset name
43194	for j in ASCII 646 ; do
43195
43196    { echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
43197echo $ECHO_N "checking can we convert from $j to UCS2-LE?... $ECHO_C" >&6; }
43198  if test "$cross_compiling" = yes; then
43199  ICONV_CHARSET=cross
43200else
43201  cat >conftest.$ac_ext <<_ACEOF
43202/* confdefs.h.  */
43203_ACEOF
43204cat confdefs.h >>conftest.$ac_ext
43205cat >>conftest.$ac_ext <<_ACEOF
43206/* end confdefs.h.  */
43207
43208#include <$jm_cv_include>
43209main(){
43210    iconv_t cd = iconv_open("$j", "UCS-2LE");
43211    if (cd == 0 || cd == (iconv_t)-1) {
43212	return -1;
43213    }
43214    return 0;
43215}
43216
43217_ACEOF
43218rm -f conftest$ac_exeext
43219if { (ac_try="$ac_link"
43220case "(($ac_try" in
43221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43222  *) ac_try_echo=$ac_try;;
43223esac
43224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43225  (eval "$ac_link") 2>&5
43226  ac_status=$?
43227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43228  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43229  { (case "(($ac_try" in
43230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43231  *) ac_try_echo=$ac_try;;
43232esac
43233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43234  (eval "$ac_try") 2>&5
43235  ac_status=$?
43236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43237  (exit $ac_status); }; }; then
43238  ICONV_CHARSET=$j
43239else
43240  echo "$as_me: program exited with status $ac_status" >&5
43241echo "$as_me: failed program was:" >&5
43242sed 's/^/| /' conftest.$ac_ext >&5
43243
43244( exit $ac_status )
43245ICONV_CHARSET=no
43246fi
43247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43248fi
43249
43250
43251  { echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
43252echo "${ECHO_T}$ICONV_CHARSET" >&6; }
43253
43254	    if test x"$ICONV_CHARSET" = x"$j"; then
43255		default_display_charset="\"$j\""
43256		break
43257	    fi
43258	done
43259	# check for default unix charset name
43260	for j in UTF-8 UTF8 ; do
43261
43262    { echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
43263echo $ECHO_N "checking can we convert from $j to UCS2-LE?... $ECHO_C" >&6; }
43264  if test "$cross_compiling" = yes; then
43265  ICONV_CHARSET=cross
43266else
43267  cat >conftest.$ac_ext <<_ACEOF
43268/* confdefs.h.  */
43269_ACEOF
43270cat confdefs.h >>conftest.$ac_ext
43271cat >>conftest.$ac_ext <<_ACEOF
43272/* end confdefs.h.  */
43273
43274#include <$jm_cv_include>
43275main(){
43276    iconv_t cd = iconv_open("$j", "UCS-2LE");
43277    if (cd == 0 || cd == (iconv_t)-1) {
43278	return -1;
43279    }
43280    return 0;
43281}
43282
43283_ACEOF
43284rm -f conftest$ac_exeext
43285if { (ac_try="$ac_link"
43286case "(($ac_try" in
43287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43288  *) ac_try_echo=$ac_try;;
43289esac
43290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43291  (eval "$ac_link") 2>&5
43292  ac_status=$?
43293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43294  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43295  { (case "(($ac_try" in
43296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43297  *) ac_try_echo=$ac_try;;
43298esac
43299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43300  (eval "$ac_try") 2>&5
43301  ac_status=$?
43302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43303  (exit $ac_status); }; }; then
43304  ICONV_CHARSET=$j
43305else
43306  echo "$as_me: program exited with status $ac_status" >&5
43307echo "$as_me: failed program was:" >&5
43308sed 's/^/| /' conftest.$ac_ext >&5
43309
43310( exit $ac_status )
43311ICONV_CHARSET=no
43312fi
43313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43314fi
43315
43316
43317  { echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
43318echo "${ECHO_T}$ICONV_CHARSET" >&6; }
43319
43320	    if test x"$ICONV_CHARSET" = x"$j"; then
43321		default_unix_charset="\"$j\""
43322		break
43323	    fi
43324	done
43325
43326	if test "$default_dos_charset" != "no" -a \
43327		"$default_dos_charset" != "cross" -a \
43328		"$default_display_charset" != "no" -a \
43329		"$default_display_charset" != "cross" -a \
43330		"$default_unix_charset" != "no" -a \
43331		"$default_unix_charset" != "cross"
43332	then
43333		samba_cv_HAVE_NATIVE_ICONV=yes
43334	else if test "$default_dos_charset" = "cross" -o \
43335		     "$default_display_charset" = "cross" -o \
43336		     "$default_unix_charset" = "cross"
43337	then
43338		samba_cv_HAVE_NATIVE_ICONV=cross
43339	else
43340		samba_cv_HAVE_NATIVE_ICONV=no
43341	fi
43342	fi
43343
43344        LIBS="$ic_save_LIBS"
43345        if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
43346  	   CPPFLAGS=$save_CPPFLAGS
43347	   LDFLAGS=$save_LDFLAGS
43348	   LIBS=$save_LIBS
43349           if test x"$jm_cv_lib_iconv" != x; then
43350              LIBS="$LIBS -l$jm_cv_lib_iconv"
43351           fi
43352
43353if test ""$i/include"" != "/usr/include" ; then
43354    CPPFLAGS="$CPPFLAGS -I"$i/include""
43355fi
43356
43357
43358if test ""$i/$libext"" != "/usr/lib" ; then
43359    LDFLAGS="$LDFLAGS -L"$i/$libext""
43360fi
43361
43362	   export CPPFLAGS
43363
43364cat >>confdefs.h <<\_ACEOF
43365#define HAVE_NATIVE_ICONV 1
43366_ACEOF
43367
43368
43369cat >>confdefs.h <<_ACEOF
43370#define DEFAULT_DOS_CHARSET $default_dos_charset
43371_ACEOF
43372
43373
43374cat >>confdefs.h <<_ACEOF
43375#define DEFAULT_DISPLAY_CHARSET $default_display_charset
43376_ACEOF
43377
43378
43379cat >>confdefs.h <<_ACEOF
43380#define DEFAULT_UNIX_CHARSET $default_unix_charset
43381_ACEOF
43382
43383           break
43384        fi
43385    fi
43386    CPPFLAGS=$save_CPPFLAGS
43387    LDFLAGS=$save_LDFLAGS
43388    LIBS=$save_LIBS
43389    export LDFLAGS LIBS CPPFLAGS
43390done
43391unset libext
43392
43393
43394if test x"$ICONV_FOUND" = x"no" -o x"$samba_cv_HAVE_NATIVE_ICONV" != x"yes" ; then
43395    { echo "$as_me:$LINENO: WARNING: Sufficient support for iconv function was not found.
43396    Install libiconv from http://freshmeat.net/projects/libiconv/ for better charset compatibility!" >&5
43397echo "$as_me: WARNING: Sufficient support for iconv function was not found.
43398    Install libiconv from http://freshmeat.net/projects/libiconv/ for better charset compatibility!" >&2;}
43399
43400cat >>confdefs.h <<_ACEOF
43401#define DEFAULT_DOS_CHARSET "ASCII"
43402_ACEOF
43403
43404
43405cat >>confdefs.h <<_ACEOF
43406#define DEFAULT_DISPLAY_CHARSET "ASCII"
43407_ACEOF
43408
43409
43410cat >>confdefs.h <<_ACEOF
43411#define DEFAULT_UNIX_CHARSET "UTF8"
43412_ACEOF
43413
43414fi
43415
43416
43417{ echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
43418echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6; }
43419if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
43420  echo $ECHO_N "(cached) $ECHO_C" >&6
43421else
43422
43423if test "$cross_compiling" = yes; then
43424  samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
43425else
43426  cat >conftest.$ac_ext <<_ACEOF
43427/* confdefs.h.  */
43428_ACEOF
43429cat confdefs.h >>conftest.$ac_ext
43430cat >>conftest.$ac_ext <<_ACEOF
43431/* end confdefs.h.  */
43432
43433#include <sys/types.h>
43434#include <fcntl.h>
43435#ifndef F_GETLEASE
43436#define F_GETLEASE	1025
43437#endif
43438main() {
43439       int fd = open("/dev/null", O_RDONLY);
43440       return fcntl(fd, F_GETLEASE, 0) == -1;
43441}
43442
43443_ACEOF
43444rm -f conftest$ac_exeext
43445if { (ac_try="$ac_link"
43446case "(($ac_try" in
43447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43448  *) ac_try_echo=$ac_try;;
43449esac
43450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43451  (eval "$ac_link") 2>&5
43452  ac_status=$?
43453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43454  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43455  { (case "(($ac_try" in
43456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43457  *) ac_try_echo=$ac_try;;
43458esac
43459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43460  (eval "$ac_try") 2>&5
43461  ac_status=$?
43462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43463  (exit $ac_status); }; }; then
43464  samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
43465else
43466  echo "$as_me: program exited with status $ac_status" >&5
43467echo "$as_me: failed program was:" >&5
43468sed 's/^/| /' conftest.$ac_ext >&5
43469
43470( exit $ac_status )
43471samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
43472fi
43473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43474fi
43475
43476
43477fi
43478{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
43479echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6; }
43480if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
43481
43482cat >>confdefs.h <<\_ACEOF
43483#define HAVE_KERNEL_OPLOCKS_LINUX 1
43484_ACEOF
43485
43486fi
43487
43488{ echo "$as_me:$LINENO: checking for kernel change notify support" >&5
43489echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6; }
43490if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
43491  echo $ECHO_N "(cached) $ECHO_C" >&6
43492else
43493
43494if test "$cross_compiling" = yes; then
43495  samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
43496else
43497  cat >conftest.$ac_ext <<_ACEOF
43498/* confdefs.h.  */
43499_ACEOF
43500cat confdefs.h >>conftest.$ac_ext
43501cat >>conftest.$ac_ext <<_ACEOF
43502/* end confdefs.h.  */
43503
43504#include <sys/types.h>
43505#include <fcntl.h>
43506#include <signal.h>
43507#ifndef F_NOTIFY
43508#define F_NOTIFY 1026
43509#endif
43510main() {
43511       	exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ?  1 : 0);
43512}
43513
43514_ACEOF
43515rm -f conftest$ac_exeext
43516if { (ac_try="$ac_link"
43517case "(($ac_try" in
43518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43519  *) ac_try_echo=$ac_try;;
43520esac
43521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43522  (eval "$ac_link") 2>&5
43523  ac_status=$?
43524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43525  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43526  { (case "(($ac_try" in
43527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43528  *) ac_try_echo=$ac_try;;
43529esac
43530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43531  (eval "$ac_try") 2>&5
43532  ac_status=$?
43533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43534  (exit $ac_status); }; }; then
43535  samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
43536else
43537  echo "$as_me: program exited with status $ac_status" >&5
43538echo "$as_me: failed program was:" >&5
43539sed 's/^/| /' conftest.$ac_ext >&5
43540
43541( exit $ac_status )
43542samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
43543fi
43544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43545fi
43546
43547
43548fi
43549{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
43550echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6; }
43551if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
43552
43553cat >>confdefs.h <<\_ACEOF
43554#define HAVE_KERNEL_CHANGE_NOTIFY 1
43555_ACEOF
43556
43557fi
43558
43559{ echo "$as_me:$LINENO: checking for inotify support" >&5
43560echo $ECHO_N "checking for inotify support... $ECHO_C" >&6; }
43561if test "${samba_cv_HAVE_INOTIFY+set}" = set; then
43562  echo $ECHO_N "(cached) $ECHO_C" >&6
43563else
43564
43565
43566
43567for ac_header in linux/inotify.h asm/unistd.h
43568do
43569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43571  { echo "$as_me:$LINENO: checking for $ac_header" >&5
43572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43574  echo $ECHO_N "(cached) $ECHO_C" >&6
43575fi
43576ac_res=`eval echo '${'$as_ac_Header'}'`
43577	       { echo "$as_me:$LINENO: result: $ac_res" >&5
43578echo "${ECHO_T}$ac_res" >&6; }
43579else
43580  # Is the header compilable?
43581{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
43582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43583cat >conftest.$ac_ext <<_ACEOF
43584/* confdefs.h.  */
43585_ACEOF
43586cat confdefs.h >>conftest.$ac_ext
43587cat >>conftest.$ac_ext <<_ACEOF
43588/* end confdefs.h.  */
43589$ac_includes_default
43590#include <$ac_header>
43591_ACEOF
43592rm -f conftest.$ac_objext
43593if { (ac_try="$ac_compile"
43594case "(($ac_try" in
43595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43596  *) ac_try_echo=$ac_try;;
43597esac
43598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43599  (eval "$ac_compile") 2>conftest.er1
43600  ac_status=$?
43601  grep -v '^ *+' conftest.er1 >conftest.err
43602  rm -f conftest.er1
43603  cat conftest.err >&5
43604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605  (exit $ac_status); } && {
43606	 test -z "$ac_c_werror_flag" ||
43607	 test ! -s conftest.err
43608       } && test -s conftest.$ac_objext; then
43609  ac_header_compiler=yes
43610else
43611  echo "$as_me: failed program was:" >&5
43612sed 's/^/| /' conftest.$ac_ext >&5
43613
43614	ac_header_compiler=no
43615fi
43616
43617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43618{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43619echo "${ECHO_T}$ac_header_compiler" >&6; }
43620
43621# Is the header present?
43622{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
43623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43624cat >conftest.$ac_ext <<_ACEOF
43625/* confdefs.h.  */
43626_ACEOF
43627cat confdefs.h >>conftest.$ac_ext
43628cat >>conftest.$ac_ext <<_ACEOF
43629/* end confdefs.h.  */
43630#include <$ac_header>
43631_ACEOF
43632if { (ac_try="$ac_cpp conftest.$ac_ext"
43633case "(($ac_try" in
43634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43635  *) ac_try_echo=$ac_try;;
43636esac
43637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43638  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43639  ac_status=$?
43640  grep -v '^ *+' conftest.er1 >conftest.err
43641  rm -f conftest.er1
43642  cat conftest.err >&5
43643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43644  (exit $ac_status); } >/dev/null && {
43645	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43646	 test ! -s conftest.err
43647       }; then
43648  ac_header_preproc=yes
43649else
43650  echo "$as_me: failed program was:" >&5
43651sed 's/^/| /' conftest.$ac_ext >&5
43652
43653  ac_header_preproc=no
43654fi
43655
43656rm -f conftest.err conftest.$ac_ext
43657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43658echo "${ECHO_T}$ac_header_preproc" >&6; }
43659
43660# So?  What about this header?
43661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43662  yes:no: )
43663    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43665    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43667    ac_header_preproc=yes
43668    ;;
43669  no:yes:* )
43670    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43672    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43673echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43674    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43676    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43677echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43680    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43682
43683    ;;
43684esac
43685{ echo "$as_me:$LINENO: checking for $ac_header" >&5
43686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43688  echo $ECHO_N "(cached) $ECHO_C" >&6
43689else
43690  eval "$as_ac_Header=\$ac_header_preproc"
43691fi
43692ac_res=`eval echo '${'$as_ac_Header'}'`
43693	       { echo "$as_me:$LINENO: result: $ac_res" >&5
43694echo "${ECHO_T}$ac_res" >&6; }
43695
43696fi
43697if test `eval echo '${'$as_ac_Header'}'` = yes; then
43698  cat >>confdefs.h <<_ACEOF
43699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43700_ACEOF
43701
43702fi
43703
43704done
43705
43706{ echo "$as_me:$LINENO: checking for inotify_init" >&5
43707echo $ECHO_N "checking for inotify_init... $ECHO_C" >&6; }
43708if test "${ac_cv_func_inotify_init+set}" = set; then
43709  echo $ECHO_N "(cached) $ECHO_C" >&6
43710else
43711  cat >conftest.$ac_ext <<_ACEOF
43712/* confdefs.h.  */
43713_ACEOF
43714cat confdefs.h >>conftest.$ac_ext
43715cat >>conftest.$ac_ext <<_ACEOF
43716/* end confdefs.h.  */
43717/* Define inotify_init to an innocuous variant, in case <limits.h> declares inotify_init.
43718   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43719#define inotify_init innocuous_inotify_init
43720
43721/* System header to define __stub macros and hopefully few prototypes,
43722    which can conflict with char inotify_init (); below.
43723    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43724    <limits.h> exists even on freestanding compilers.  */
43725
43726#ifdef __STDC__
43727# include <limits.h>
43728#else
43729# include <assert.h>
43730#endif
43731
43732#undef inotify_init
43733
43734/* Override any GCC internal prototype to avoid an error.
43735   Use char because int might match the return type of a GCC
43736   builtin and then its argument prototype would still apply.  */
43737#ifdef __cplusplus
43738extern "C"
43739#endif
43740char inotify_init ();
43741/* The GNU C library defines this for functions which it implements
43742    to always fail with ENOSYS.  Some functions are actually named
43743    something starting with __ and the normal name is an alias.  */
43744#if defined __stub_inotify_init || defined __stub___inotify_init
43745choke me
43746#endif
43747
43748int
43749main ()
43750{
43751return inotify_init ();
43752  ;
43753  return 0;
43754}
43755_ACEOF
43756rm -f conftest.$ac_objext conftest$ac_exeext
43757if { (ac_try="$ac_link"
43758case "(($ac_try" in
43759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43760  *) ac_try_echo=$ac_try;;
43761esac
43762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43763  (eval "$ac_link") 2>conftest.er1
43764  ac_status=$?
43765  grep -v '^ *+' conftest.er1 >conftest.err
43766  rm -f conftest.er1
43767  cat conftest.err >&5
43768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43769  (exit $ac_status); } && {
43770	 test -z "$ac_c_werror_flag" ||
43771	 test ! -s conftest.err
43772       } && test -s conftest$ac_exeext &&
43773       $as_test_x conftest$ac_exeext; then
43774  ac_cv_func_inotify_init=yes
43775else
43776  echo "$as_me: failed program was:" >&5
43777sed 's/^/| /' conftest.$ac_ext >&5
43778
43779	ac_cv_func_inotify_init=no
43780fi
43781
43782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43783      conftest$ac_exeext conftest.$ac_ext
43784fi
43785{ echo "$as_me:$LINENO: result: $ac_cv_func_inotify_init" >&5
43786echo "${ECHO_T}$ac_cv_func_inotify_init" >&6; }
43787
43788
43789 { echo "$as_me:$LINENO: checking for __NR_inotify_init declaration" >&5
43790echo $ECHO_N "checking for __NR_inotify_init declaration... $ECHO_C" >&6; }
43791if test "${ac_cv_have___NR_inotify_init_decl+set}" = set; then
43792  echo $ECHO_N "(cached) $ECHO_C" >&6
43793else
43794
43795    cat >conftest.$ac_ext <<_ACEOF
43796/* confdefs.h.  */
43797_ACEOF
43798cat confdefs.h >>conftest.$ac_ext
43799cat >>conftest.$ac_ext <<_ACEOF
43800/* end confdefs.h.  */
43801#include <asm/unistd.h>
43802int
43803main ()
43804{
43805int i = (int)__NR_inotify_init
43806  ;
43807  return 0;
43808}
43809_ACEOF
43810rm -f conftest.$ac_objext
43811if { (ac_try="$ac_compile"
43812case "(($ac_try" in
43813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43814  *) ac_try_echo=$ac_try;;
43815esac
43816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43817  (eval "$ac_compile") 2>conftest.er1
43818  ac_status=$?
43819  grep -v '^ *+' conftest.er1 >conftest.err
43820  rm -f conftest.er1
43821  cat conftest.err >&5
43822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43823  (exit $ac_status); } && {
43824	 test -z "$ac_c_werror_flag" ||
43825	 test ! -s conftest.err
43826       } && test -s conftest.$ac_objext; then
43827  ac_cv_have___NR_inotify_init_decl=yes
43828else
43829  echo "$as_me: failed program was:" >&5
43830sed 's/^/| /' conftest.$ac_ext >&5
43831
43832	ac_cv_have___NR_inotify_init_decl=no
43833fi
43834
43835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43836fi
43837{ echo "$as_me:$LINENO: result: $ac_cv_have___NR_inotify_init_decl" >&5
43838echo "${ECHO_T}$ac_cv_have___NR_inotify_init_decl" >&6; }
43839 if test x"$ac_cv_have___NR_inotify_init_decl" = x"yes"; then
43840
43841cat >>confdefs.h <<\_ACEOF
43842#define HAVE___NR_INOTIFY_INIT_DECL 1
43843_ACEOF
43844
43845 fi
43846
43847
43848fi
43849{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_INOTIFY" >&5
43850echo "${ECHO_T}$samba_cv_HAVE_INOTIFY" >&6; }
43851
43852if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then
43853
43854cat >>confdefs.h <<\_ACEOF
43855#define HAVE_INOTIFY 1
43856_ACEOF
43857
43858fi
43859
43860#################################################
43861# Check if FAM notifications are available. For FAM info, see
43862#	http://oss.sgi.com/projects/fam/
43863#	http://savannah.nongnu.org/projects/fam/
43864# Check whether --enable-fam was given.
43865if test "${enable_fam+set}" = set; then
43866  enableval=$enable_fam;
43867fi
43868
43869
43870if test x$enable_fam != xno; then
43871
43872for ac_header in fam.h
43873do
43874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43876  { echo "$as_me:$LINENO: checking for $ac_header" >&5
43877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43879  echo $ECHO_N "(cached) $ECHO_C" >&6
43880fi
43881ac_res=`eval echo '${'$as_ac_Header'}'`
43882	       { echo "$as_me:$LINENO: result: $ac_res" >&5
43883echo "${ECHO_T}$ac_res" >&6; }
43884else
43885  # Is the header compilable?
43886{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
43887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43888cat >conftest.$ac_ext <<_ACEOF
43889/* confdefs.h.  */
43890_ACEOF
43891cat confdefs.h >>conftest.$ac_ext
43892cat >>conftest.$ac_ext <<_ACEOF
43893/* end confdefs.h.  */
43894$ac_includes_default
43895#include <$ac_header>
43896_ACEOF
43897rm -f conftest.$ac_objext
43898if { (ac_try="$ac_compile"
43899case "(($ac_try" in
43900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43901  *) ac_try_echo=$ac_try;;
43902esac
43903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43904  (eval "$ac_compile") 2>conftest.er1
43905  ac_status=$?
43906  grep -v '^ *+' conftest.er1 >conftest.err
43907  rm -f conftest.er1
43908  cat conftest.err >&5
43909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43910  (exit $ac_status); } && {
43911	 test -z "$ac_c_werror_flag" ||
43912	 test ! -s conftest.err
43913       } && test -s conftest.$ac_objext; then
43914  ac_header_compiler=yes
43915else
43916  echo "$as_me: failed program was:" >&5
43917sed 's/^/| /' conftest.$ac_ext >&5
43918
43919	ac_header_compiler=no
43920fi
43921
43922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43923{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43924echo "${ECHO_T}$ac_header_compiler" >&6; }
43925
43926# Is the header present?
43927{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
43928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43929cat >conftest.$ac_ext <<_ACEOF
43930/* confdefs.h.  */
43931_ACEOF
43932cat confdefs.h >>conftest.$ac_ext
43933cat >>conftest.$ac_ext <<_ACEOF
43934/* end confdefs.h.  */
43935#include <$ac_header>
43936_ACEOF
43937if { (ac_try="$ac_cpp conftest.$ac_ext"
43938case "(($ac_try" in
43939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43940  *) ac_try_echo=$ac_try;;
43941esac
43942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43943  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43944  ac_status=$?
43945  grep -v '^ *+' conftest.er1 >conftest.err
43946  rm -f conftest.er1
43947  cat conftest.err >&5
43948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43949  (exit $ac_status); } >/dev/null && {
43950	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43951	 test ! -s conftest.err
43952       }; then
43953  ac_header_preproc=yes
43954else
43955  echo "$as_me: failed program was:" >&5
43956sed 's/^/| /' conftest.$ac_ext >&5
43957
43958  ac_header_preproc=no
43959fi
43960
43961rm -f conftest.err conftest.$ac_ext
43962{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43963echo "${ECHO_T}$ac_header_preproc" >&6; }
43964
43965# So?  What about this header?
43966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43967  yes:no: )
43968    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43969echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43970    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43971echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43972    ac_header_preproc=yes
43973    ;;
43974  no:yes:* )
43975    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43976echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43977    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43978echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43979    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43980echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43981    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43982echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43983    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43985    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43986echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43987
43988    ;;
43989esac
43990{ echo "$as_me:$LINENO: checking for $ac_header" >&5
43991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43993  echo $ECHO_N "(cached) $ECHO_C" >&6
43994else
43995  eval "$as_ac_Header=\$ac_header_preproc"
43996fi
43997ac_res=`eval echo '${'$as_ac_Header'}'`
43998	       { echo "$as_me:$LINENO: result: $ac_res" >&5
43999echo "${ECHO_T}$ac_res" >&6; }
44000
44001fi
44002if test `eval echo '${'$as_ac_Header'}'` = yes; then
44003  cat >>confdefs.h <<_ACEOF
44004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44005_ACEOF
44006 samba_cv_HAVE_FAM_H=yes
44007else
44008  samba_cv_HAVE_FAM_H=no
44009fi
44010
44011done
44012
44013    if test x"$samba_cv_HAVE_FAM_H" = x"yes"; then
44014        # On IRIX, libfam requires libC, but other FAM implementations
44015	# might not need it.
44016        { echo "$as_me:$LINENO: checking for FAMOpen2 in -lfam" >&5
44017echo $ECHO_N "checking for FAMOpen2 in -lfam... $ECHO_C" >&6; }
44018if test "${ac_cv_lib_fam_FAMOpen2+set}" = set; then
44019  echo $ECHO_N "(cached) $ECHO_C" >&6
44020else
44021  ac_check_lib_save_LIBS=$LIBS
44022LIBS="-lfam  $LIBS"
44023cat >conftest.$ac_ext <<_ACEOF
44024/* confdefs.h.  */
44025_ACEOF
44026cat confdefs.h >>conftest.$ac_ext
44027cat >>conftest.$ac_ext <<_ACEOF
44028/* end confdefs.h.  */
44029
44030/* Override any GCC internal prototype to avoid an error.
44031   Use char because int might match the return type of a GCC
44032   builtin and then its argument prototype would still apply.  */
44033#ifdef __cplusplus
44034extern "C"
44035#endif
44036char FAMOpen2 ();
44037int
44038main ()
44039{
44040return FAMOpen2 ();
44041  ;
44042  return 0;
44043}
44044_ACEOF
44045rm -f conftest.$ac_objext conftest$ac_exeext
44046if { (ac_try="$ac_link"
44047case "(($ac_try" in
44048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44049  *) ac_try_echo=$ac_try;;
44050esac
44051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44052  (eval "$ac_link") 2>conftest.er1
44053  ac_status=$?
44054  grep -v '^ *+' conftest.er1 >conftest.err
44055  rm -f conftest.er1
44056  cat conftest.err >&5
44057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44058  (exit $ac_status); } && {
44059	 test -z "$ac_c_werror_flag" ||
44060	 test ! -s conftest.err
44061       } && test -s conftest$ac_exeext &&
44062       $as_test_x conftest$ac_exeext; then
44063  ac_cv_lib_fam_FAMOpen2=yes
44064else
44065  echo "$as_me: failed program was:" >&5
44066sed 's/^/| /' conftest.$ac_ext >&5
44067
44068	ac_cv_lib_fam_FAMOpen2=no
44069fi
44070
44071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44072      conftest$ac_exeext conftest.$ac_ext
44073LIBS=$ac_check_lib_save_LIBS
44074fi
44075{ echo "$as_me:$LINENO: result: $ac_cv_lib_fam_FAMOpen2" >&5
44076echo "${ECHO_T}$ac_cv_lib_fam_FAMOpen2" >&6; }
44077if test $ac_cv_lib_fam_FAMOpen2 = yes; then
44078  samba_cv_HAVE_LIBFAM=yes; SMB_FAM_LIBS="-lfam"
44079else
44080  samba_cv_HAVE_LIBFAM=no
44081fi
44082
44083
44084        if test x"$samba_cv_HAVE_LIBFAM" = x"no" ; then
44085            samba_fam_xtra=-lC
44086
44087
44088
44089ac_check_lib_ext_save_LIBS=$LIBS
44090LIBS="-lfam $samba_fam_xtra  $LIBS"
44091
44092
44093
44094
44095        { echo "$as_me:$LINENO: checking for FAMOpen2 in -lfam" >&5
44096echo $ECHO_N "checking for FAMOpen2 in -lfam... $ECHO_C" >&6; }
44097if test "${ac_cv_lib_ext_fam_FAMOpen2+set}" = set; then
44098  echo $ECHO_N "(cached) $ECHO_C" >&6
44099else
44100  cat >conftest.$ac_ext <<_ACEOF
44101/* confdefs.h.  */
44102_ACEOF
44103cat confdefs.h >>conftest.$ac_ext
44104cat >>conftest.$ac_ext <<_ACEOF
44105/* end confdefs.h.  */
44106
44107/* Override any GCC internal prototype to avoid an error.
44108   Use char because int might match the return type of a GCC
44109   builtin and then its argument prototype would still apply.  */
44110#ifdef __cplusplus
44111extern "C"
44112#endif
44113char FAMOpen2 ();
44114int
44115main ()
44116{
44117return FAMOpen2 ();
44118  ;
44119  return 0;
44120}
44121_ACEOF
44122rm -f conftest.$ac_objext conftest$ac_exeext
44123if { (ac_try="$ac_link"
44124case "(($ac_try" in
44125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44126  *) ac_try_echo=$ac_try;;
44127esac
44128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44129  (eval "$ac_link") 2>conftest.er1
44130  ac_status=$?
44131  grep -v '^ *+' conftest.er1 >conftest.err
44132  rm -f conftest.er1
44133  cat conftest.err >&5
44134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44135  (exit $ac_status); } && {
44136	 test -z "$ac_c_werror_flag" ||
44137	 test ! -s conftest.err
44138       } && test -s conftest$ac_exeext &&
44139       $as_test_x conftest$ac_exeext; then
44140  ac_cv_lib_ext_fam_FAMOpen2=yes;
44141		  ac_cv_lib_ext_fam=yes
44142else
44143  echo "$as_me: failed program was:" >&5
44144sed 's/^/| /' conftest.$ac_ext >&5
44145
44146	ac_cv_lib_ext_fam_FAMOpen2=no;
44147		  ac_cv_lib_ext_fam=no
44148fi
44149
44150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44151      conftest$ac_exeext conftest.$ac_ext
44152
44153fi
44154{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_fam_FAMOpen2" >&5
44155echo "${ECHO_T}$ac_cv_lib_ext_fam_FAMOpen2" >&6; }
44156    if test $ac_cv_lib_ext_fam_FAMOpen2 = yes; then
44157  cat >>confdefs.h <<_ACEOF
44158#define HAVE_FAMOPEN2 1
44159_ACEOF
44160
44161fi
44162
44163LIBS=$ac_check_lib_ext_save_LIBS
44164
44165if test $ac_cv_lib_ext_fam = yes; then
44166  samba_cv_HAVE_LIBFAM=yes; SMB_FAM_LIBS="-lfam -lC"
44167
44168
44169else
44170  samba_cv_HAVE_LIBFAM=no
44171fi
44172
44173            unset samba_fam_xtra
44174        fi
44175    fi
44176
44177    if test x"$samba_cv_HAVE_LIBFAM" = x"yes" ; then
44178        default_shared_modules="$default_shared_modules vfs_notify_fam"
44179        cat >conftest.$ac_ext <<_ACEOF
44180/* confdefs.h.  */
44181_ACEOF
44182cat confdefs.h >>conftest.$ac_ext
44183cat >>conftest.$ac_ext <<_ACEOF
44184/* end confdefs.h.  */
44185#include <fam.h>
44186int
44187main ()
44188{
44189FAMCodes code = FAMChanged;
44190  ;
44191  return 0;
44192}
44193_ACEOF
44194rm -f conftest.$ac_objext
44195if { (ac_try="$ac_compile"
44196case "(($ac_try" in
44197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44198  *) ac_try_echo=$ac_try;;
44199esac
44200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44201  (eval "$ac_compile") 2>conftest.er1
44202  ac_status=$?
44203  grep -v '^ *+' conftest.er1 >conftest.err
44204  rm -f conftest.er1
44205  cat conftest.err >&5
44206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44207  (exit $ac_status); } && {
44208	 test -z "$ac_c_werror_flag" ||
44209	 test ! -s conftest.err
44210       } && test -s conftest.$ac_objext; then
44211
44212cat >>confdefs.h <<\_ACEOF
44213#define HAVE_FAM_H_FAMCODES_TYPEDEF 1
44214_ACEOF
44215
44216else
44217  echo "$as_me: failed program was:" >&5
44218sed 's/^/| /' conftest.$ac_ext >&5
44219
44220
44221fi
44222
44223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44224    fi
44225
44226    if test x$enable_fam = xyes && test x"$samba_cv_HAVE_LIBFAM" != xyes ; then
44227        { { echo "$as_me:$LINENO: error: FAM support requested but FAM library not available " >&5
44228echo "$as_me: error: FAM support requested but FAM library not available " >&2;}
44229   { (exit 1); exit 1; }; }
44230    fi
44231fi
44232
44233
44234
44235#################################################
44236# Check for DMAPI interfaces in libdm/libjfsdm/libxsdm
44237
44238
44239    samba_dmapi_libs=""
44240
44241    if test x"$samba_dmapi_libs" = x"" ; then
44242	{ echo "$as_me:$LINENO: checking for dm_get_eventlist in -ldm" >&5
44243echo $ECHO_N "checking for dm_get_eventlist in -ldm... $ECHO_C" >&6; }
44244if test "${ac_cv_lib_dm_dm_get_eventlist+set}" = set; then
44245  echo $ECHO_N "(cached) $ECHO_C" >&6
44246else
44247  ac_check_lib_save_LIBS=$LIBS
44248LIBS="-ldm  $LIBS"
44249cat >conftest.$ac_ext <<_ACEOF
44250/* confdefs.h.  */
44251_ACEOF
44252cat confdefs.h >>conftest.$ac_ext
44253cat >>conftest.$ac_ext <<_ACEOF
44254/* end confdefs.h.  */
44255
44256/* Override any GCC internal prototype to avoid an error.
44257   Use char because int might match the return type of a GCC
44258   builtin and then its argument prototype would still apply.  */
44259#ifdef __cplusplus
44260extern "C"
44261#endif
44262char dm_get_eventlist ();
44263int
44264main ()
44265{
44266return dm_get_eventlist ();
44267  ;
44268  return 0;
44269}
44270_ACEOF
44271rm -f conftest.$ac_objext conftest$ac_exeext
44272if { (ac_try="$ac_link"
44273case "(($ac_try" in
44274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44275  *) ac_try_echo=$ac_try;;
44276esac
44277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44278  (eval "$ac_link") 2>conftest.er1
44279  ac_status=$?
44280  grep -v '^ *+' conftest.er1 >conftest.err
44281  rm -f conftest.er1
44282  cat conftest.err >&5
44283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44284  (exit $ac_status); } && {
44285	 test -z "$ac_c_werror_flag" ||
44286	 test ! -s conftest.err
44287       } && test -s conftest$ac_exeext &&
44288       $as_test_x conftest$ac_exeext; then
44289  ac_cv_lib_dm_dm_get_eventlist=yes
44290else
44291  echo "$as_me: failed program was:" >&5
44292sed 's/^/| /' conftest.$ac_ext >&5
44293
44294	ac_cv_lib_dm_dm_get_eventlist=no
44295fi
44296
44297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44298      conftest$ac_exeext conftest.$ac_ext
44299LIBS=$ac_check_lib_save_LIBS
44300fi
44301{ echo "$as_me:$LINENO: result: $ac_cv_lib_dm_dm_get_eventlist" >&5
44302echo "${ECHO_T}$ac_cv_lib_dm_dm_get_eventlist" >&6; }
44303if test $ac_cv_lib_dm_dm_get_eventlist = yes; then
44304   samba_dmapi_libs="-ldm"
44305fi
44306
44307    fi
44308
44309    if test x"$samba_dmapi_libs" = x"" ; then
44310	{ echo "$as_me:$LINENO: checking for dm_get_eventlist in -ljfsdm" >&5
44311echo $ECHO_N "checking for dm_get_eventlist in -ljfsdm... $ECHO_C" >&6; }
44312if test "${ac_cv_lib_jfsdm_dm_get_eventlist+set}" = set; then
44313  echo $ECHO_N "(cached) $ECHO_C" >&6
44314else
44315  ac_check_lib_save_LIBS=$LIBS
44316LIBS="-ljfsdm  $LIBS"
44317cat >conftest.$ac_ext <<_ACEOF
44318/* confdefs.h.  */
44319_ACEOF
44320cat confdefs.h >>conftest.$ac_ext
44321cat >>conftest.$ac_ext <<_ACEOF
44322/* end confdefs.h.  */
44323
44324/* Override any GCC internal prototype to avoid an error.
44325   Use char because int might match the return type of a GCC
44326   builtin and then its argument prototype would still apply.  */
44327#ifdef __cplusplus
44328extern "C"
44329#endif
44330char dm_get_eventlist ();
44331int
44332main ()
44333{
44334return dm_get_eventlist ();
44335  ;
44336  return 0;
44337}
44338_ACEOF
44339rm -f conftest.$ac_objext conftest$ac_exeext
44340if { (ac_try="$ac_link"
44341case "(($ac_try" in
44342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44343  *) ac_try_echo=$ac_try;;
44344esac
44345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44346  (eval "$ac_link") 2>conftest.er1
44347  ac_status=$?
44348  grep -v '^ *+' conftest.er1 >conftest.err
44349  rm -f conftest.er1
44350  cat conftest.err >&5
44351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352  (exit $ac_status); } && {
44353	 test -z "$ac_c_werror_flag" ||
44354	 test ! -s conftest.err
44355       } && test -s conftest$ac_exeext &&
44356       $as_test_x conftest$ac_exeext; then
44357  ac_cv_lib_jfsdm_dm_get_eventlist=yes
44358else
44359  echo "$as_me: failed program was:" >&5
44360sed 's/^/| /' conftest.$ac_ext >&5
44361
44362	ac_cv_lib_jfsdm_dm_get_eventlist=no
44363fi
44364
44365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44366      conftest$ac_exeext conftest.$ac_ext
44367LIBS=$ac_check_lib_save_LIBS
44368fi
44369{ echo "$as_me:$LINENO: result: $ac_cv_lib_jfsdm_dm_get_eventlist" >&5
44370echo "${ECHO_T}$ac_cv_lib_jfsdm_dm_get_eventlist" >&6; }
44371if test $ac_cv_lib_jfsdm_dm_get_eventlist = yes; then
44372  samba_dmapi_libs="-ljfsdm"
44373fi
44374
44375    fi
44376
44377    if test x"$samba_dmapi_libs" = x"" ; then
44378	{ echo "$as_me:$LINENO: checking for dm_get_eventlist in -lxdsm" >&5
44379echo $ECHO_N "checking for dm_get_eventlist in -lxdsm... $ECHO_C" >&6; }
44380if test "${ac_cv_lib_xdsm_dm_get_eventlist+set}" = set; then
44381  echo $ECHO_N "(cached) $ECHO_C" >&6
44382else
44383  ac_check_lib_save_LIBS=$LIBS
44384LIBS="-lxdsm  $LIBS"
44385cat >conftest.$ac_ext <<_ACEOF
44386/* confdefs.h.  */
44387_ACEOF
44388cat confdefs.h >>conftest.$ac_ext
44389cat >>conftest.$ac_ext <<_ACEOF
44390/* end confdefs.h.  */
44391
44392/* Override any GCC internal prototype to avoid an error.
44393   Use char because int might match the return type of a GCC
44394   builtin and then its argument prototype would still apply.  */
44395#ifdef __cplusplus
44396extern "C"
44397#endif
44398char dm_get_eventlist ();
44399int
44400main ()
44401{
44402return dm_get_eventlist ();
44403  ;
44404  return 0;
44405}
44406_ACEOF
44407rm -f conftest.$ac_objext conftest$ac_exeext
44408if { (ac_try="$ac_link"
44409case "(($ac_try" in
44410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44411  *) ac_try_echo=$ac_try;;
44412esac
44413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44414  (eval "$ac_link") 2>conftest.er1
44415  ac_status=$?
44416  grep -v '^ *+' conftest.er1 >conftest.err
44417  rm -f conftest.er1
44418  cat conftest.err >&5
44419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44420  (exit $ac_status); } && {
44421	 test -z "$ac_c_werror_flag" ||
44422	 test ! -s conftest.err
44423       } && test -s conftest$ac_exeext &&
44424       $as_test_x conftest$ac_exeext; then
44425  ac_cv_lib_xdsm_dm_get_eventlist=yes
44426else
44427  echo "$as_me: failed program was:" >&5
44428sed 's/^/| /' conftest.$ac_ext >&5
44429
44430	ac_cv_lib_xdsm_dm_get_eventlist=no
44431fi
44432
44433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44434      conftest$ac_exeext conftest.$ac_ext
44435LIBS=$ac_check_lib_save_LIBS
44436fi
44437{ echo "$as_me:$LINENO: result: $ac_cv_lib_xdsm_dm_get_eventlist" >&5
44438echo "${ECHO_T}$ac_cv_lib_xdsm_dm_get_eventlist" >&6; }
44439if test $ac_cv_lib_xdsm_dm_get_eventlist = yes; then
44440  samba_dmapi_libs="-lxdsm"
44441fi
44442
44443    fi
44444
44445    if test x"$samba_dmapi_libs" = x"" ; then
44446        { echo "$as_me:$LINENO: checking for dm_get_eventlist in -ldmapi" >&5
44447echo $ECHO_N "checking for dm_get_eventlist in -ldmapi... $ECHO_C" >&6; }
44448if test "${ac_cv_lib_dmapi_dm_get_eventlist+set}" = set; then
44449  echo $ECHO_N "(cached) $ECHO_C" >&6
44450else
44451  ac_check_lib_save_LIBS=$LIBS
44452LIBS="-ldmapi  $LIBS"
44453cat >conftest.$ac_ext <<_ACEOF
44454/* confdefs.h.  */
44455_ACEOF
44456cat confdefs.h >>conftest.$ac_ext
44457cat >>conftest.$ac_ext <<_ACEOF
44458/* end confdefs.h.  */
44459
44460/* Override any GCC internal prototype to avoid an error.
44461   Use char because int might match the return type of a GCC
44462   builtin and then its argument prototype would still apply.  */
44463#ifdef __cplusplus
44464extern "C"
44465#endif
44466char dm_get_eventlist ();
44467int
44468main ()
44469{
44470return dm_get_eventlist ();
44471  ;
44472  return 0;
44473}
44474_ACEOF
44475rm -f conftest.$ac_objext conftest$ac_exeext
44476if { (ac_try="$ac_link"
44477case "(($ac_try" in
44478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44479  *) ac_try_echo=$ac_try;;
44480esac
44481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44482  (eval "$ac_link") 2>conftest.er1
44483  ac_status=$?
44484  grep -v '^ *+' conftest.er1 >conftest.err
44485  rm -f conftest.er1
44486  cat conftest.err >&5
44487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44488  (exit $ac_status); } && {
44489	 test -z "$ac_c_werror_flag" ||
44490	 test ! -s conftest.err
44491       } && test -s conftest$ac_exeext &&
44492       $as_test_x conftest$ac_exeext; then
44493  ac_cv_lib_dmapi_dm_get_eventlist=yes
44494else
44495  echo "$as_me: failed program was:" >&5
44496sed 's/^/| /' conftest.$ac_ext >&5
44497
44498	ac_cv_lib_dmapi_dm_get_eventlist=no
44499fi
44500
44501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44502      conftest$ac_exeext conftest.$ac_ext
44503LIBS=$ac_check_lib_save_LIBS
44504fi
44505{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmapi_dm_get_eventlist" >&5
44506echo "${ECHO_T}$ac_cv_lib_dmapi_dm_get_eventlist" >&6; }
44507if test $ac_cv_lib_dmapi_dm_get_eventlist = yes; then
44508  samba_dmapi_libs="-ldmapi"
44509fi
44510
44511    fi
44512
44513
44514    # Only bother to test ehaders if we have a candidate DMAPI library
44515    if test x"$samba_dmapi_libs" != x"" ; then
44516
44517
44518
44519
44520
44521for ac_header in sys/dmi.h xfs/dmapi.h sys/jfsdmapi.h sys/dmapi.h dmapi.h
44522do
44523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44525  { echo "$as_me:$LINENO: checking for $ac_header" >&5
44526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44528  echo $ECHO_N "(cached) $ECHO_C" >&6
44529fi
44530ac_res=`eval echo '${'$as_ac_Header'}'`
44531	       { echo "$as_me:$LINENO: result: $ac_res" >&5
44532echo "${ECHO_T}$ac_res" >&6; }
44533else
44534  # Is the header compilable?
44535{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
44536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44537cat >conftest.$ac_ext <<_ACEOF
44538/* confdefs.h.  */
44539_ACEOF
44540cat confdefs.h >>conftest.$ac_ext
44541cat >>conftest.$ac_ext <<_ACEOF
44542/* end confdefs.h.  */
44543$ac_includes_default
44544#include <$ac_header>
44545_ACEOF
44546rm -f conftest.$ac_objext
44547if { (ac_try="$ac_compile"
44548case "(($ac_try" in
44549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44550  *) ac_try_echo=$ac_try;;
44551esac
44552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44553  (eval "$ac_compile") 2>conftest.er1
44554  ac_status=$?
44555  grep -v '^ *+' conftest.er1 >conftest.err
44556  rm -f conftest.er1
44557  cat conftest.err >&5
44558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44559  (exit $ac_status); } && {
44560	 test -z "$ac_c_werror_flag" ||
44561	 test ! -s conftest.err
44562       } && test -s conftest.$ac_objext; then
44563  ac_header_compiler=yes
44564else
44565  echo "$as_me: failed program was:" >&5
44566sed 's/^/| /' conftest.$ac_ext >&5
44567
44568	ac_header_compiler=no
44569fi
44570
44571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44572{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44573echo "${ECHO_T}$ac_header_compiler" >&6; }
44574
44575# Is the header present?
44576{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
44577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44578cat >conftest.$ac_ext <<_ACEOF
44579/* confdefs.h.  */
44580_ACEOF
44581cat confdefs.h >>conftest.$ac_ext
44582cat >>conftest.$ac_ext <<_ACEOF
44583/* end confdefs.h.  */
44584#include <$ac_header>
44585_ACEOF
44586if { (ac_try="$ac_cpp conftest.$ac_ext"
44587case "(($ac_try" in
44588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44589  *) ac_try_echo=$ac_try;;
44590esac
44591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44593  ac_status=$?
44594  grep -v '^ *+' conftest.er1 >conftest.err
44595  rm -f conftest.er1
44596  cat conftest.err >&5
44597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44598  (exit $ac_status); } >/dev/null && {
44599	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44600	 test ! -s conftest.err
44601       }; then
44602  ac_header_preproc=yes
44603else
44604  echo "$as_me: failed program was:" >&5
44605sed 's/^/| /' conftest.$ac_ext >&5
44606
44607  ac_header_preproc=no
44608fi
44609
44610rm -f conftest.err conftest.$ac_ext
44611{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44612echo "${ECHO_T}$ac_header_preproc" >&6; }
44613
44614# So?  What about this header?
44615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44616  yes:no: )
44617    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44621    ac_header_preproc=yes
44622    ;;
44623  no:yes:* )
44624    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44626    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44627echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44628    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44630    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44631echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44634    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44636
44637    ;;
44638esac
44639{ echo "$as_me:$LINENO: checking for $ac_header" >&5
44640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44642  echo $ECHO_N "(cached) $ECHO_C" >&6
44643else
44644  eval "$as_ac_Header=\$ac_header_preproc"
44645fi
44646ac_res=`eval echo '${'$as_ac_Header'}'`
44647	       { echo "$as_me:$LINENO: result: $ac_res" >&5
44648echo "${ECHO_T}$ac_res" >&6; }
44649
44650fi
44651if test `eval echo '${'$as_ac_Header'}'` = yes; then
44652  cat >>confdefs.h <<_ACEOF
44653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44654_ACEOF
44655
44656fi
44657
44658done
44659
44660    fi
44661
44662    if test x"$samba_dmapi_libs" != x"" ; then
44663	samba_dmapi_save_LIBS="$LIBS"
44664	LIBS="$LIBS $samba_dmapi_libs"
44665	cat >conftest.$ac_ext <<_ACEOF
44666/* confdefs.h.  */
44667_ACEOF
44668cat confdefs.h >>conftest.$ac_ext
44669cat >>conftest.$ac_ext <<_ACEOF
44670/* end confdefs.h.  */
44671
44672#include <time.h>      /* needed by Tru64 */
44673#include <sys/types.h> /* needed by AIX */
44674#ifdef HAVE_XFS_DMAPI_H
44675#include <xfs/dmapi.h>
44676#elif defined(HAVE_SYS_DMI_H)
44677#include <sys/dmi.h>
44678#elif defined(HAVE_SYS_JFSDMAPI_H)
44679#include <sys/jfsdmapi.h>
44680#elif defined(HAVE_SYS_DMAPI_H)
44681#include <sys/dmapi.h>
44682#elif defined(HAVE_DMAPI_H)
44683#include <dmapi.h>
44684#endif
44685
44686int
44687main ()
44688{
44689
44690/* This link test is designed to fail on IRI 6.4, but should
44691 * succeed on Linux, IRIX 6.5 and AIX.
44692 */
44693	char * version;
44694	dm_eventset_t events;
44695	/* This doesn't take an argument on IRIX 6.4. */
44696	dm_init_service(&version);
44697	/* IRIX 6.4 expects events to be a pointer. */
44698	DMEV_ISSET(DM_EVENT_READ, events);
44699
44700  ;
44701  return 0;
44702}
44703_ACEOF
44704rm -f conftest.$ac_objext conftest$ac_exeext
44705if { (ac_try="$ac_link"
44706case "(($ac_try" in
44707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44708  *) ac_try_echo=$ac_try;;
44709esac
44710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44711  (eval "$ac_link") 2>conftest.er1
44712  ac_status=$?
44713  grep -v '^ *+' conftest.er1 >conftest.err
44714  rm -f conftest.er1
44715  cat conftest.err >&5
44716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717  (exit $ac_status); } && {
44718	 test -z "$ac_c_werror_flag" ||
44719	 test ! -s conftest.err
44720       } && test -s conftest$ac_exeext &&
44721       $as_test_x conftest$ac_exeext; then
44722
44723		    true # DMAPI link test succeeded
44724
44725else
44726  echo "$as_me: failed program was:" >&5
44727sed 's/^/| /' conftest.$ac_ext >&5
44728
44729
44730		    # DMAPI link failure
44731		    samba_dmapi_libs=
44732
44733fi
44734
44735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44736      conftest$ac_exeext conftest.$ac_ext
44737	LIBS="$samba_dmapi_save_LIBS"
44738    fi
44739
44740    if test x"$samba_dmapi_libs" = x"" ; then
44741	# DMAPI detection failure actions begin
44742
44743		{ echo "$as_me:$LINENO: DMAPI support not present" >&5
44744echo "$as_me: DMAPI support not present" >&6;}
44745
44746	# DMAPI detection failure actions end
44747    else
44748	# DMAPI detection success actions start
44749
44750
44751cat >>confdefs.h <<\_ACEOF
44752#define USE_DMAPI 1
44753_ACEOF
44754
44755		{ echo "$as_me:$LINENO: Found DMAPI support in $samba_dmapi_libs" >&5
44756echo "$as_me: Found DMAPI support in $samba_dmapi_libs" >&6;}
44757
44758	# DMAPI detection success actions end
44759    fi
44760
44761
44762
44763{ echo "$as_me:$LINENO: checking for kernel share modes" >&5
44764echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6; }
44765if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
44766  echo $ECHO_N "(cached) $ECHO_C" >&6
44767else
44768
44769if test "$cross_compiling" = yes; then
44770  samba_cv_HAVE_KERNEL_SHARE_MODES=cross
44771else
44772  cat >conftest.$ac_ext <<_ACEOF
44773/* confdefs.h.  */
44774_ACEOF
44775cat confdefs.h >>conftest.$ac_ext
44776cat >>conftest.$ac_ext <<_ACEOF
44777/* end confdefs.h.  */
44778
44779#include <sys/types.h>
44780#include <fcntl.h>
44781#include <signal.h>
44782#include <sys/file.h>
44783#ifndef LOCK_MAND
44784#define LOCK_MAND	32
44785#define LOCK_READ	64
44786#endif
44787main() {
44788       	exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
44789}
44790
44791_ACEOF
44792rm -f conftest$ac_exeext
44793if { (ac_try="$ac_link"
44794case "(($ac_try" in
44795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44796  *) ac_try_echo=$ac_try;;
44797esac
44798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44799  (eval "$ac_link") 2>&5
44800  ac_status=$?
44801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44802  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44803  { (case "(($ac_try" in
44804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44805  *) ac_try_echo=$ac_try;;
44806esac
44807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44808  (eval "$ac_try") 2>&5
44809  ac_status=$?
44810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44811  (exit $ac_status); }; }; then
44812  samba_cv_HAVE_KERNEL_SHARE_MODES=yes
44813else
44814  echo "$as_me: program exited with status $ac_status" >&5
44815echo "$as_me: failed program was:" >&5
44816sed 's/^/| /' conftest.$ac_ext >&5
44817
44818( exit $ac_status )
44819samba_cv_HAVE_KERNEL_SHARE_MODES=no
44820fi
44821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44822fi
44823
44824
44825fi
44826{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
44827echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6; }
44828if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
44829
44830cat >>confdefs.h <<\_ACEOF
44831#define HAVE_KERNEL_SHARE_MODES 1
44832_ACEOF
44833
44834fi
44835
44836
44837{ echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
44838echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6; }
44839if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
44840  echo $ECHO_N "(cached) $ECHO_C" >&6
44841else
44842
44843cat >conftest.$ac_ext <<_ACEOF
44844/* confdefs.h.  */
44845_ACEOF
44846cat confdefs.h >>conftest.$ac_ext
44847cat >>conftest.$ac_ext <<_ACEOF
44848/* end confdefs.h.  */
44849#include <sys/types.h>
44850#include <fcntl.h>
44851int
44852main ()
44853{
44854oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
44855  ;
44856  return 0;
44857}
44858_ACEOF
44859rm -f conftest.$ac_objext
44860if { (ac_try="$ac_compile"
44861case "(($ac_try" in
44862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44863  *) ac_try_echo=$ac_try;;
44864esac
44865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44866  (eval "$ac_compile") 2>conftest.er1
44867  ac_status=$?
44868  grep -v '^ *+' conftest.er1 >conftest.err
44869  rm -f conftest.er1
44870  cat conftest.err >&5
44871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44872  (exit $ac_status); } && {
44873	 test -z "$ac_c_werror_flag" ||
44874	 test ! -s conftest.err
44875       } && test -s conftest.$ac_objext; then
44876  samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
44877else
44878  echo "$as_me: failed program was:" >&5
44879sed 's/^/| /' conftest.$ac_ext >&5
44880
44881	samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
44882fi
44883
44884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44885fi
44886{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
44887echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6; }
44888if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
44889
44890cat >>confdefs.h <<\_ACEOF
44891#define HAVE_KERNEL_OPLOCKS_IRIX 1
44892_ACEOF
44893
44894fi
44895
44896#################################################
44897# Check for POSIX capability support
44898
44899if test "${ac_cv_header_sys_capability_h+set}" = set; then
44900  { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
44901echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
44902if test "${ac_cv_header_sys_capability_h+set}" = set; then
44903  echo $ECHO_N "(cached) $ECHO_C" >&6
44904fi
44905{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
44906echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
44907else
44908  # Is the header compilable?
44909{ echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
44910echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
44911cat >conftest.$ac_ext <<_ACEOF
44912/* confdefs.h.  */
44913_ACEOF
44914cat confdefs.h >>conftest.$ac_ext
44915cat >>conftest.$ac_ext <<_ACEOF
44916/* end confdefs.h.  */
44917$ac_includes_default
44918#include <sys/capability.h>
44919_ACEOF
44920rm -f conftest.$ac_objext
44921if { (ac_try="$ac_compile"
44922case "(($ac_try" in
44923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44924  *) ac_try_echo=$ac_try;;
44925esac
44926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44927  (eval "$ac_compile") 2>conftest.er1
44928  ac_status=$?
44929  grep -v '^ *+' conftest.er1 >conftest.err
44930  rm -f conftest.er1
44931  cat conftest.err >&5
44932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44933  (exit $ac_status); } && {
44934	 test -z "$ac_c_werror_flag" ||
44935	 test ! -s conftest.err
44936       } && test -s conftest.$ac_objext; then
44937  ac_header_compiler=yes
44938else
44939  echo "$as_me: failed program was:" >&5
44940sed 's/^/| /' conftest.$ac_ext >&5
44941
44942	ac_header_compiler=no
44943fi
44944
44945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44947echo "${ECHO_T}$ac_header_compiler" >&6; }
44948
44949# Is the header present?
44950{ echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
44951echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
44952cat >conftest.$ac_ext <<_ACEOF
44953/* confdefs.h.  */
44954_ACEOF
44955cat confdefs.h >>conftest.$ac_ext
44956cat >>conftest.$ac_ext <<_ACEOF
44957/* end confdefs.h.  */
44958#include <sys/capability.h>
44959_ACEOF
44960if { (ac_try="$ac_cpp conftest.$ac_ext"
44961case "(($ac_try" in
44962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44963  *) ac_try_echo=$ac_try;;
44964esac
44965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44966  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44967  ac_status=$?
44968  grep -v '^ *+' conftest.er1 >conftest.err
44969  rm -f conftest.er1
44970  cat conftest.err >&5
44971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44972  (exit $ac_status); } >/dev/null && {
44973	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44974	 test ! -s conftest.err
44975       }; then
44976  ac_header_preproc=yes
44977else
44978  echo "$as_me: failed program was:" >&5
44979sed 's/^/| /' conftest.$ac_ext >&5
44980
44981  ac_header_preproc=no
44982fi
44983
44984rm -f conftest.err conftest.$ac_ext
44985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44986echo "${ECHO_T}$ac_header_preproc" >&6; }
44987
44988# So?  What about this header?
44989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44990  yes:no: )
44991    { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
44992echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44993    { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
44994echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
44995    ac_header_preproc=yes
44996    ;;
44997  no:yes:* )
44998    { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
44999echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
45000    { echo "$as_me:$LINENO: WARNING: sys/capability.h:     check for missing prerequisite headers?" >&5
45001echo "$as_me: WARNING: sys/capability.h:     check for missing prerequisite headers?" >&2;}
45002    { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
45003echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
45004    { echo "$as_me:$LINENO: WARNING: sys/capability.h:     section \"Present But Cannot Be Compiled\"" >&5
45005echo "$as_me: WARNING: sys/capability.h:     section \"Present But Cannot Be Compiled\"" >&2;}
45006    { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
45007echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
45008    { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
45009echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
45010
45011    ;;
45012esac
45013{ echo "$as_me:$LINENO: checking for sys/capability.h" >&5
45014echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
45015if test "${ac_cv_header_sys_capability_h+set}" = set; then
45016  echo $ECHO_N "(cached) $ECHO_C" >&6
45017else
45018  ac_cv_header_sys_capability_h=$ac_header_preproc
45019fi
45020{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
45021echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
45022
45023fi
45024if test $ac_cv_header_sys_capability_h = yes; then
45025  samba_cv_HAVE_SYS_CAPABILITY_H=yes;
45026
45027cat >>confdefs.h <<\_ACEOF
45028#define HAVE_SYS_CAPABILITY_H 1
45029_ACEOF
45030
45031fi
45032
45033
45034
45035if test x"$samba_cv_HAVE_SYS_CAPABILITY_H" = x"yes"; then
45036
45037    ac_save_LIBS=$LIBS
45038
45039
45040for ac_func in cap_get_proc
45041do
45042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45043{ echo "$as_me:$LINENO: checking for $ac_func" >&5
45044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45045if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45046  echo $ECHO_N "(cached) $ECHO_C" >&6
45047else
45048  cat >conftest.$ac_ext <<_ACEOF
45049/* confdefs.h.  */
45050_ACEOF
45051cat confdefs.h >>conftest.$ac_ext
45052cat >>conftest.$ac_ext <<_ACEOF
45053/* end confdefs.h.  */
45054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45056#define $ac_func innocuous_$ac_func
45057
45058/* System header to define __stub macros and hopefully few prototypes,
45059    which can conflict with char $ac_func (); below.
45060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45061    <limits.h> exists even on freestanding compilers.  */
45062
45063#ifdef __STDC__
45064# include <limits.h>
45065#else
45066# include <assert.h>
45067#endif
45068
45069#undef $ac_func
45070
45071/* Override any GCC internal prototype to avoid an error.
45072   Use char because int might match the return type of a GCC
45073   builtin and then its argument prototype would still apply.  */
45074#ifdef __cplusplus
45075extern "C"
45076#endif
45077char $ac_func ();
45078/* The GNU C library defines this for functions which it implements
45079    to always fail with ENOSYS.  Some functions are actually named
45080    something starting with __ and the normal name is an alias.  */
45081#if defined __stub_$ac_func || defined __stub___$ac_func
45082choke me
45083#endif
45084
45085int
45086main ()
45087{
45088return $ac_func ();
45089  ;
45090  return 0;
45091}
45092_ACEOF
45093rm -f conftest.$ac_objext conftest$ac_exeext
45094if { (ac_try="$ac_link"
45095case "(($ac_try" in
45096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45097  *) ac_try_echo=$ac_try;;
45098esac
45099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45100  (eval "$ac_link") 2>conftest.er1
45101  ac_status=$?
45102  grep -v '^ *+' conftest.er1 >conftest.err
45103  rm -f conftest.er1
45104  cat conftest.err >&5
45105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45106  (exit $ac_status); } && {
45107	 test -z "$ac_c_werror_flag" ||
45108	 test ! -s conftest.err
45109       } && test -s conftest$ac_exeext &&
45110       $as_test_x conftest$ac_exeext; then
45111  eval "$as_ac_var=yes"
45112else
45113  echo "$as_me: failed program was:" >&5
45114sed 's/^/| /' conftest.$ac_ext >&5
45115
45116	eval "$as_ac_var=no"
45117fi
45118
45119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45120      conftest$ac_exeext conftest.$ac_ext
45121fi
45122ac_res=`eval echo '${'$as_ac_var'}'`
45123	       { echo "$as_me:$LINENO: result: $ac_res" >&5
45124echo "${ECHO_T}$ac_res" >&6; }
45125if test `eval echo '${'$as_ac_var'}'` = yes; then
45126  cat >>confdefs.h <<_ACEOF
45127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45128_ACEOF
45129
45130        # cap_get_proc was found in libc or existing $LIBS
45131
45132
45133cat >>confdefs.h <<\_ACEOF
45134#define HAVE_CAP_GET_PROC 1
45135_ACEOF
45136
45137
45138
45139else
45140
45141        # cap_get_proc was not found, try adding libcap
45142	case " $LIBS " in
45143          *\ -lcap\ *)
45144
45145		    # cap_get_proc was not found and we already had libcap
45146		    # nothing to do here by default
45147		    true
45148
45149	    ;;
45150          *)
45151	    # cap_get_proc was not found, try adding libcap
45152	    { echo "$as_me:$LINENO: checking for cap_get_proc in -lcap" >&5
45153echo $ECHO_N "checking for cap_get_proc in -lcap... $ECHO_C" >&6; }
45154if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then
45155  echo $ECHO_N "(cached) $ECHO_C" >&6
45156else
45157  ac_check_lib_save_LIBS=$LIBS
45158LIBS="-lcap  $LIBS"
45159cat >conftest.$ac_ext <<_ACEOF
45160/* confdefs.h.  */
45161_ACEOF
45162cat confdefs.h >>conftest.$ac_ext
45163cat >>conftest.$ac_ext <<_ACEOF
45164/* end confdefs.h.  */
45165
45166/* Override any GCC internal prototype to avoid an error.
45167   Use char because int might match the return type of a GCC
45168   builtin and then its argument prototype would still apply.  */
45169#ifdef __cplusplus
45170extern "C"
45171#endif
45172char cap_get_proc ();
45173int
45174main ()
45175{
45176return cap_get_proc ();
45177  ;
45178  return 0;
45179}
45180_ACEOF
45181rm -f conftest.$ac_objext conftest$ac_exeext
45182if { (ac_try="$ac_link"
45183case "(($ac_try" in
45184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45185  *) ac_try_echo=$ac_try;;
45186esac
45187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45188  (eval "$ac_link") 2>conftest.er1
45189  ac_status=$?
45190  grep -v '^ *+' conftest.er1 >conftest.err
45191  rm -f conftest.er1
45192  cat conftest.err >&5
45193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194  (exit $ac_status); } && {
45195	 test -z "$ac_c_werror_flag" ||
45196	 test ! -s conftest.err
45197       } && test -s conftest$ac_exeext &&
45198       $as_test_x conftest$ac_exeext; then
45199  ac_cv_lib_cap_cap_get_proc=yes
45200else
45201  echo "$as_me: failed program was:" >&5
45202sed 's/^/| /' conftest.$ac_ext >&5
45203
45204	ac_cv_lib_cap_cap_get_proc=no
45205fi
45206
45207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45208      conftest$ac_exeext conftest.$ac_ext
45209LIBS=$ac_check_lib_save_LIBS
45210fi
45211{ echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_get_proc" >&5
45212echo "${ECHO_T}$ac_cv_lib_cap_cap_get_proc" >&6; }
45213if test $ac_cv_lib_cap_cap_get_proc = yes; then
45214
45215		LIBS="-lcap $LIBS"
45216
45217
45218cat >>confdefs.h <<\_ACEOF
45219#define HAVE_CAP_GET_PROC 1
45220_ACEOF
45221
45222
45223
45224else
45225
45226
45227			# cap_get_proc was not found in libcap
45228			# nothing to do here by default
45229			true
45230
45231
45232fi
45233
45234	  ;;
45235        esac
45236
45237fi
45238done
45239
45240
45241
45242    { echo "$as_me:$LINENO: checking for POSIX capabilities" >&5
45243echo $ECHO_N "checking for POSIX capabilities... $ECHO_C" >&6; }
45244if test "${samba_cv_HAVE_POSIX_CAPABILITIES+set}" = set; then
45245  echo $ECHO_N "(cached) $ECHO_C" >&6
45246else
45247
45248		if test "$cross_compiling" = yes; then
45249  samba_cv_HAVE_POSIX_CAPABILITIES=cross
45250else
45251  cat >conftest.$ac_ext <<_ACEOF
45252/* confdefs.h.  */
45253_ACEOF
45254cat confdefs.h >>conftest.$ac_ext
45255cat >>conftest.$ac_ext <<_ACEOF
45256/* end confdefs.h.  */
45257
45258#include <sys/types.h>
45259#include <sys/capability.h>
45260main() {
45261 cap_t cap;
45262 cap_value_t vals[1];
45263 if (!(cap = cap_get_proc()))
45264   exit(1);
45265 vals[0] = CAP_CHOWN;
45266 cap_set_flag(cap, CAP_INHERITABLE, 1, vals, CAP_CLEAR);
45267 cap_set_proc(cap);
45268 exit(0);
45269}
45270_ACEOF
45271rm -f conftest$ac_exeext
45272if { (ac_try="$ac_link"
45273case "(($ac_try" in
45274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45275  *) ac_try_echo=$ac_try;;
45276esac
45277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45278  (eval "$ac_link") 2>&5
45279  ac_status=$?
45280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45281  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45282  { (case "(($ac_try" in
45283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45284  *) ac_try_echo=$ac_try;;
45285esac
45286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45287  (eval "$ac_try") 2>&5
45288  ac_status=$?
45289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45290  (exit $ac_status); }; }; then
45291  samba_cv_HAVE_POSIX_CAPABILITIES=yes
45292else
45293  echo "$as_me: program exited with status $ac_status" >&5
45294echo "$as_me: failed program was:" >&5
45295sed 's/^/| /' conftest.$ac_ext >&5
45296
45297( exit $ac_status )
45298samba_cv_HAVE_POSIX_CAPABILITIES=no
45299fi
45300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45301fi
45302
45303
45304
45305fi
45306{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_CAPABILITIES" >&5
45307echo "${ECHO_T}$samba_cv_HAVE_POSIX_CAPABILITIES" >&6; }
45308
45309if test x"$samba_cv_HAVE_POSIX_CAPABILITIES" = x"yes"; then
45310
45311cat >>confdefs.h <<\_ACEOF
45312#define HAVE_POSIX_CAPABILITIES 1
45313_ACEOF
45314
45315else
45316    LIBS=$ac_save_LIBS
45317fi
45318
45319fi
45320
45321#
45322# Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
45323# This is *really* broken but some systems (DEC OSF1) do this.... JRA.
45324#
45325
45326{ echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
45327echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6; }
45328if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
45329  echo $ECHO_N "(cached) $ECHO_C" >&6
45330else
45331
45332cat >conftest.$ac_ext <<_ACEOF
45333/* confdefs.h.  */
45334_ACEOF
45335cat confdefs.h >>conftest.$ac_ext
45336cat >>conftest.$ac_ext <<_ACEOF
45337/* end confdefs.h.  */
45338#include <sys/types.h>
45339#if defined(HAVE_RPC_RPC_H)
45340#include <rpc/rpc.h>
45341#endif
45342int
45343main ()
45344{
45345int16 testvar;
45346  ;
45347  return 0;
45348}
45349_ACEOF
45350rm -f conftest.$ac_objext
45351if { (ac_try="$ac_compile"
45352case "(($ac_try" in
45353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45354  *) ac_try_echo=$ac_try;;
45355esac
45356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45357  (eval "$ac_compile") 2>conftest.er1
45358  ac_status=$?
45359  grep -v '^ *+' conftest.er1 >conftest.err
45360  rm -f conftest.er1
45361  cat conftest.err >&5
45362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45363  (exit $ac_status); } && {
45364	 test -z "$ac_c_werror_flag" ||
45365	 test ! -s conftest.err
45366       } && test -s conftest.$ac_objext; then
45367  samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
45368else
45369  echo "$as_me: failed program was:" >&5
45370sed 's/^/| /' conftest.$ac_ext >&5
45371
45372	samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
45373fi
45374
45375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45376fi
45377{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
45378echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6; }
45379if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
45380
45381cat >>confdefs.h <<\_ACEOF
45382#define HAVE_INT16_FROM_RPC_RPC_H 1
45383_ACEOF
45384
45385fi
45386
45387{ echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
45388echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6; }
45389if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
45390  echo $ECHO_N "(cached) $ECHO_C" >&6
45391else
45392
45393cat >conftest.$ac_ext <<_ACEOF
45394/* confdefs.h.  */
45395_ACEOF
45396cat confdefs.h >>conftest.$ac_ext
45397cat >>conftest.$ac_ext <<_ACEOF
45398/* end confdefs.h.  */
45399#include <sys/types.h>
45400#if defined(HAVE_RPC_RPC_H)
45401#include <rpc/rpc.h>
45402#endif
45403int
45404main ()
45405{
45406uint16 testvar;
45407  ;
45408  return 0;
45409}
45410_ACEOF
45411rm -f conftest.$ac_objext
45412if { (ac_try="$ac_compile"
45413case "(($ac_try" in
45414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45415  *) ac_try_echo=$ac_try;;
45416esac
45417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45418  (eval "$ac_compile") 2>conftest.er1
45419  ac_status=$?
45420  grep -v '^ *+' conftest.er1 >conftest.err
45421  rm -f conftest.er1
45422  cat conftest.err >&5
45423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45424  (exit $ac_status); } && {
45425	 test -z "$ac_c_werror_flag" ||
45426	 test ! -s conftest.err
45427       } && test -s conftest.$ac_objext; then
45428  samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
45429else
45430  echo "$as_me: failed program was:" >&5
45431sed 's/^/| /' conftest.$ac_ext >&5
45432
45433	samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
45434fi
45435
45436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45437fi
45438{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
45439echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6; }
45440if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
45441
45442cat >>confdefs.h <<\_ACEOF
45443#define HAVE_UINT16_FROM_RPC_RPC_H 1
45444_ACEOF
45445
45446fi
45447
45448{ echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
45449echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6; }
45450if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
45451  echo $ECHO_N "(cached) $ECHO_C" >&6
45452else
45453
45454cat >conftest.$ac_ext <<_ACEOF
45455/* confdefs.h.  */
45456_ACEOF
45457cat confdefs.h >>conftest.$ac_ext
45458cat >>conftest.$ac_ext <<_ACEOF
45459/* end confdefs.h.  */
45460#include <sys/types.h>
45461#if defined(HAVE_RPC_RPC_H)
45462#include <rpc/rpc.h>
45463#endif
45464int
45465main ()
45466{
45467int32 testvar;
45468  ;
45469  return 0;
45470}
45471_ACEOF
45472rm -f conftest.$ac_objext
45473if { (ac_try="$ac_compile"
45474case "(($ac_try" in
45475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45476  *) ac_try_echo=$ac_try;;
45477esac
45478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45479  (eval "$ac_compile") 2>conftest.er1
45480  ac_status=$?
45481  grep -v '^ *+' conftest.er1 >conftest.err
45482  rm -f conftest.er1
45483  cat conftest.err >&5
45484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45485  (exit $ac_status); } && {
45486	 test -z "$ac_c_werror_flag" ||
45487	 test ! -s conftest.err
45488       } && test -s conftest.$ac_objext; then
45489  samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
45490else
45491  echo "$as_me: failed program was:" >&5
45492sed 's/^/| /' conftest.$ac_ext >&5
45493
45494	samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
45495fi
45496
45497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45498fi
45499{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
45500echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6; }
45501if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
45502
45503cat >>confdefs.h <<\_ACEOF
45504#define HAVE_INT32_FROM_RPC_RPC_H 1
45505_ACEOF
45506
45507fi
45508
45509{ echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
45510echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6; }
45511if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
45512  echo $ECHO_N "(cached) $ECHO_C" >&6
45513else
45514
45515cat >conftest.$ac_ext <<_ACEOF
45516/* confdefs.h.  */
45517_ACEOF
45518cat confdefs.h >>conftest.$ac_ext
45519cat >>conftest.$ac_ext <<_ACEOF
45520/* end confdefs.h.  */
45521#include <sys/types.h>
45522#if defined(HAVE_RPC_RPC_H)
45523#include <rpc/rpc.h>
45524#endif
45525int
45526main ()
45527{
45528uint32 testvar;
45529  ;
45530  return 0;
45531}
45532_ACEOF
45533rm -f conftest.$ac_objext
45534if { (ac_try="$ac_compile"
45535case "(($ac_try" in
45536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45537  *) ac_try_echo=$ac_try;;
45538esac
45539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45540  (eval "$ac_compile") 2>conftest.er1
45541  ac_status=$?
45542  grep -v '^ *+' conftest.er1 >conftest.err
45543  rm -f conftest.er1
45544  cat conftest.err >&5
45545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45546  (exit $ac_status); } && {
45547	 test -z "$ac_c_werror_flag" ||
45548	 test ! -s conftest.err
45549       } && test -s conftest.$ac_objext; then
45550  samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
45551else
45552  echo "$as_me: failed program was:" >&5
45553sed 's/^/| /' conftest.$ac_ext >&5
45554
45555	samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
45556fi
45557
45558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45559fi
45560{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
45561echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6; }
45562if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
45563
45564cat >>confdefs.h <<\_ACEOF
45565#define HAVE_UINT32_FROM_RPC_RPC_H 1
45566_ACEOF
45567
45568fi
45569
45570
45571{ echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
45572echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6; }
45573if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
45574  echo $ECHO_N "(cached) $ECHO_C" >&6
45575else
45576
45577cat >conftest.$ac_ext <<_ACEOF
45578/* confdefs.h.  */
45579_ACEOF
45580cat confdefs.h >>conftest.$ac_ext
45581cat >>conftest.$ac_ext <<_ACEOF
45582/* end confdefs.h.  */
45583#include <sys/types.h>
45584#ifdef HAVE_SYS_SECURITY_H
45585#include <sys/security.h>
45586#include <prot.h>
45587#endif  /* HAVE_SYS_SECURITY_H */
45588#if defined(HAVE_RPC_RPC_H)
45589#include <rpc/rpc.h>
45590#endif
45591int
45592main ()
45593{
45594int testvar;
45595  ;
45596  return 0;
45597}
45598_ACEOF
45599rm -f conftest.$ac_objext
45600if { (ac_try="$ac_compile"
45601case "(($ac_try" in
45602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45603  *) ac_try_echo=$ac_try;;
45604esac
45605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45606  (eval "$ac_compile") 2>conftest.er1
45607  ac_status=$?
45608  grep -v '^ *+' conftest.er1 >conftest.err
45609  rm -f conftest.er1
45610  cat conftest.err >&5
45611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45612  (exit $ac_status); } && {
45613	 test -z "$ac_c_werror_flag" ||
45614	 test ! -s conftest.err
45615       } && test -s conftest.$ac_objext; then
45616  samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
45617else
45618  echo "$as_me: failed program was:" >&5
45619sed 's/^/| /' conftest.$ac_ext >&5
45620
45621	samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
45622fi
45623
45624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45625fi
45626{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
45627echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6; }
45628if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
45629
45630cat >>confdefs.h <<\_ACEOF
45631#define HAVE_RPC_AUTH_ERROR_CONFLICT 1
45632_ACEOF
45633
45634fi
45635
45636{ echo "$as_me:$LINENO: checking for test routines" >&5
45637echo $ECHO_N "checking for test routines... $ECHO_C" >&6; }
45638if test "$cross_compiling" = yes; then
45639  { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
45640echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
45641else
45642  cat >conftest.$ac_ext <<_ACEOF
45643/* confdefs.h.  */
45644_ACEOF
45645cat confdefs.h >>conftest.$ac_ext
45646cat >>conftest.$ac_ext <<_ACEOF
45647/* end confdefs.h.  */
45648#include "${srcdir-.}/tests/trivial.c"
45649_ACEOF
45650rm -f conftest$ac_exeext
45651if { (ac_try="$ac_link"
45652case "(($ac_try" in
45653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45654  *) ac_try_echo=$ac_try;;
45655esac
45656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45657  (eval "$ac_link") 2>&5
45658  ac_status=$?
45659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45660  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45661  { (case "(($ac_try" in
45662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45663  *) ac_try_echo=$ac_try;;
45664esac
45665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45666  (eval "$ac_try") 2>&5
45667  ac_status=$?
45668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45669  (exit $ac_status); }; }; then
45670  { echo "$as_me:$LINENO: result: yes" >&5
45671echo "${ECHO_T}yes" >&6; }
45672else
45673  echo "$as_me: program exited with status $ac_status" >&5
45674echo "$as_me: failed program was:" >&5
45675sed 's/^/| /' conftest.$ac_ext >&5
45676
45677( exit $ac_status )
45678{ { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
45679echo "$as_me: error: cant find test code. Aborting config" >&2;}
45680   { (exit 1); exit 1; }; }
45681fi
45682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45683fi
45684
45685
45686
45687{ echo "$as_me:$LINENO: checking for ftruncate extend" >&5
45688echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6; }
45689if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
45690  echo $ECHO_N "(cached) $ECHO_C" >&6
45691else
45692
45693if test "$cross_compiling" = yes; then
45694  samba_cv_HAVE_FTRUNCATE_EXTEND=cross
45695else
45696  cat >conftest.$ac_ext <<_ACEOF
45697/* confdefs.h.  */
45698_ACEOF
45699cat confdefs.h >>conftest.$ac_ext
45700cat >>conftest.$ac_ext <<_ACEOF
45701/* end confdefs.h.  */
45702#include "${srcdir-.}/tests/ftruncate.c"
45703_ACEOF
45704rm -f conftest$ac_exeext
45705if { (ac_try="$ac_link"
45706case "(($ac_try" in
45707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45708  *) ac_try_echo=$ac_try;;
45709esac
45710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45711  (eval "$ac_link") 2>&5
45712  ac_status=$?
45713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45714  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45715  { (case "(($ac_try" in
45716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45717  *) ac_try_echo=$ac_try;;
45718esac
45719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45720  (eval "$ac_try") 2>&5
45721  ac_status=$?
45722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45723  (exit $ac_status); }; }; then
45724  samba_cv_HAVE_FTRUNCATE_EXTEND=yes
45725else
45726  echo "$as_me: program exited with status $ac_status" >&5
45727echo "$as_me: failed program was:" >&5
45728sed 's/^/| /' conftest.$ac_ext >&5
45729
45730( exit $ac_status )
45731samba_cv_HAVE_FTRUNCATE_EXTEND=no
45732fi
45733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45734fi
45735
45736
45737fi
45738{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
45739echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6; }
45740if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
45741
45742cat >>confdefs.h <<\_ACEOF
45743#define HAVE_FTRUNCATE_EXTEND 1
45744_ACEOF
45745
45746fi
45747
45748{ echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
45749echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6; }
45750if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
45751  echo $ECHO_N "(cached) $ECHO_C" >&6
45752else
45753
45754if test "$cross_compiling" = yes; then
45755  samba_cv_HAVE_WORKING_AF_LOCAL=cross
45756else
45757  cat >conftest.$ac_ext <<_ACEOF
45758/* confdefs.h.  */
45759_ACEOF
45760cat confdefs.h >>conftest.$ac_ext
45761cat >>conftest.$ac_ext <<_ACEOF
45762/* end confdefs.h.  */
45763#include "${srcdir-.}/tests/unixsock.c"
45764_ACEOF
45765rm -f conftest$ac_exeext
45766if { (ac_try="$ac_link"
45767case "(($ac_try" in
45768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45769  *) ac_try_echo=$ac_try;;
45770esac
45771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45772  (eval "$ac_link") 2>&5
45773  ac_status=$?
45774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45775  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45776  { (case "(($ac_try" in
45777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45778  *) ac_try_echo=$ac_try;;
45779esac
45780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45781  (eval "$ac_try") 2>&5
45782  ac_status=$?
45783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45784  (exit $ac_status); }; }; then
45785  samba_cv_HAVE_WORKING_AF_LOCAL=yes
45786else
45787  echo "$as_me: program exited with status $ac_status" >&5
45788echo "$as_me: failed program was:" >&5
45789sed 's/^/| /' conftest.$ac_ext >&5
45790
45791( exit $ac_status )
45792samba_cv_HAVE_WORKING_AF_LOCAL=no
45793fi
45794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45795fi
45796
45797
45798fi
45799{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
45800echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6; }
45801if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
45802then
45803
45804cat >>confdefs.h <<\_ACEOF
45805#define HAVE_WORKING_AF_LOCAL 1
45806_ACEOF
45807
45808fi
45809
45810{ echo "$as_me:$LINENO: checking for broken getgroups" >&5
45811echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6; }
45812if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
45813  echo $ECHO_N "(cached) $ECHO_C" >&6
45814else
45815
45816if test "$cross_compiling" = yes; then
45817  samba_cv_HAVE_BROKEN_GETGROUPS=cross
45818else
45819  cat >conftest.$ac_ext <<_ACEOF
45820/* confdefs.h.  */
45821_ACEOF
45822cat confdefs.h >>conftest.$ac_ext
45823cat >>conftest.$ac_ext <<_ACEOF
45824/* end confdefs.h.  */
45825#include "${srcdir-.}/tests/getgroups.c"
45826_ACEOF
45827rm -f conftest$ac_exeext
45828if { (ac_try="$ac_link"
45829case "(($ac_try" in
45830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45831  *) ac_try_echo=$ac_try;;
45832esac
45833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45834  (eval "$ac_link") 2>&5
45835  ac_status=$?
45836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45837  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45838  { (case "(($ac_try" in
45839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45840  *) ac_try_echo=$ac_try;;
45841esac
45842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45843  (eval "$ac_try") 2>&5
45844  ac_status=$?
45845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45846  (exit $ac_status); }; }; then
45847  samba_cv_HAVE_BROKEN_GETGROUPS=yes
45848else
45849  echo "$as_me: program exited with status $ac_status" >&5
45850echo "$as_me: failed program was:" >&5
45851sed 's/^/| /' conftest.$ac_ext >&5
45852
45853( exit $ac_status )
45854samba_cv_HAVE_BROKEN_GETGROUPS=no
45855fi
45856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45857fi
45858
45859
45860fi
45861{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
45862echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6; }
45863if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
45864
45865cat >>confdefs.h <<\_ACEOF
45866#define HAVE_BROKEN_GETGROUPS 1
45867_ACEOF
45868
45869fi
45870
45871{ echo "$as_me:$LINENO: checking for secure mkstemp" >&5
45872echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6; }
45873if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
45874  echo $ECHO_N "(cached) $ECHO_C" >&6
45875else
45876
45877if test "$cross_compiling" = yes; then
45878  samba_cv_HAVE_SECURE_MKSTEMP=cross
45879else
45880  cat >conftest.$ac_ext <<_ACEOF
45881/* confdefs.h.  */
45882_ACEOF
45883cat confdefs.h >>conftest.$ac_ext
45884cat >>conftest.$ac_ext <<_ACEOF
45885/* end confdefs.h.  */
45886#include <stdlib.h>
45887#include <sys/types.h>
45888#include <sys/stat.h>
45889#include <unistd.h>
45890main() {
45891  struct stat st;
45892  char tpl[20]="/tmp/test.XXXXXX";
45893  int fd = mkstemp(tpl);
45894  if (fd == -1) exit(1);
45895  unlink(tpl);
45896  if (fstat(fd, &st) != 0) exit(1);
45897  if ((st.st_mode & 0777) != 0600) exit(1);
45898  exit(0);
45899}
45900_ACEOF
45901rm -f conftest$ac_exeext
45902if { (ac_try="$ac_link"
45903case "(($ac_try" in
45904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45905  *) ac_try_echo=$ac_try;;
45906esac
45907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45908  (eval "$ac_link") 2>&5
45909  ac_status=$?
45910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45911  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45912  { (case "(($ac_try" in
45913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45914  *) ac_try_echo=$ac_try;;
45915esac
45916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45917  (eval "$ac_try") 2>&5
45918  ac_status=$?
45919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45920  (exit $ac_status); }; }; then
45921  samba_cv_HAVE_SECURE_MKSTEMP=yes
45922else
45923  echo "$as_me: program exited with status $ac_status" >&5
45924echo "$as_me: failed program was:" >&5
45925sed 's/^/| /' conftest.$ac_ext >&5
45926
45927( exit $ac_status )
45928samba_cv_HAVE_SECURE_MKSTEMP=no
45929fi
45930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45931fi
45932
45933
45934fi
45935{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
45936echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6; }
45937if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
45938
45939cat >>confdefs.h <<\_ACEOF
45940#define HAVE_SECURE_MKSTEMP 1
45941_ACEOF
45942
45943fi
45944
45945{ echo "$as_me:$LINENO: checking for broken readdir" >&5
45946echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
45947if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
45948  echo $ECHO_N "(cached) $ECHO_C" >&6
45949else
45950
45951	if test "$cross_compiling" = yes; then
45952  samba_cv_HAVE_BROKEN_READDIR="assuming not"
45953else
45954  cat >conftest.$ac_ext <<_ACEOF
45955/* confdefs.h.  */
45956_ACEOF
45957cat confdefs.h >>conftest.$ac_ext
45958cat >>conftest.$ac_ext <<_ACEOF
45959/* end confdefs.h.  */
45960#include "${srcdir-.}/tests/os2_delete.c"
45961_ACEOF
45962rm -f conftest$ac_exeext
45963if { (ac_try="$ac_link"
45964case "(($ac_try" in
45965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45966  *) ac_try_echo=$ac_try;;
45967esac
45968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45969  (eval "$ac_link") 2>&5
45970  ac_status=$?
45971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45972  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45973  { (case "(($ac_try" in
45974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45975  *) ac_try_echo=$ac_try;;
45976esac
45977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45978  (eval "$ac_try") 2>&5
45979  ac_status=$?
45980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45981  (exit $ac_status); }; }; then
45982  samba_cv_HAVE_BROKEN_READDIR=no
45983else
45984  echo "$as_me: program exited with status $ac_status" >&5
45985echo "$as_me: failed program was:" >&5
45986sed 's/^/| /' conftest.$ac_ext >&5
45987
45988( exit $ac_status )
45989samba_cv_HAVE_BROKEN_READDIR=yes
45990fi
45991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45992fi
45993
45994
45995fi
45996{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
45997echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6; }
45998
45999if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
46000{ echo "$as_me:$LINENO: checking for replacing readdir" >&5
46001echo $ECHO_N "checking for replacing readdir... $ECHO_C" >&6; }
46002if test "${samba_cv_REPLACE_READDIR+set}" = set; then
46003  echo $ECHO_N "(cached) $ECHO_C" >&6
46004else
46005
46006	if test "$cross_compiling" = yes; then
46007  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
46008See \`config.log' for more details." >&5
46009echo "$as_me: error: cannot run test program while cross compiling
46010See \`config.log' for more details." >&2;}
46011   { (exit 1); exit 1; }; }
46012else
46013  cat >conftest.$ac_ext <<_ACEOF
46014/* confdefs.h.  */
46015_ACEOF
46016cat confdefs.h >>conftest.$ac_ext
46017cat >>conftest.$ac_ext <<_ACEOF
46018/* end confdefs.h.  */
46019
46020#include "${srcdir-.}/lib/repdir.c"
46021#include "${srcdir-.}/tests/os2_delete.c"
46022_ACEOF
46023rm -f conftest$ac_exeext
46024if { (ac_try="$ac_link"
46025case "(($ac_try" in
46026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46027  *) ac_try_echo=$ac_try;;
46028esac
46029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46030  (eval "$ac_link") 2>&5
46031  ac_status=$?
46032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46033  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46034  { (case "(($ac_try" in
46035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46036  *) ac_try_echo=$ac_try;;
46037esac
46038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46039  (eval "$ac_try") 2>&5
46040  ac_status=$?
46041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46042  (exit $ac_status); }; }; then
46043  samba_cv_REPLACE_READDIR=yes
46044else
46045  echo "$as_me: program exited with status $ac_status" >&5
46046echo "$as_me: failed program was:" >&5
46047sed 's/^/| /' conftest.$ac_ext >&5
46048
46049( exit $ac_status )
46050samba_cv_REPLACE_READDIR=no
46051fi
46052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46053fi
46054
46055
46056fi
46057{ echo "$as_me:$LINENO: result: $samba_cv_REPLACE_READDIR" >&5
46058echo "${ECHO_T}$samba_cv_REPLACE_READDIR" >&6; }
46059fi
46060
46061if test x"$samba_cv_REPLACE_READDIR" = x"yes"; then
46062
46063cat >>confdefs.h <<\_ACEOF
46064#define REPLACE_READDIR 1
46065_ACEOF
46066
46067fi
46068
46069
46070    { echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
46071echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6; }
46072if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
46073  echo $ECHO_N "(cached) $ECHO_C" >&6
46074else
46075
46076	    cat >conftest.$ac_ext <<_ACEOF
46077/* confdefs.h.  */
46078_ACEOF
46079cat confdefs.h >>conftest.$ac_ext
46080cat >>conftest.$ac_ext <<_ACEOF
46081/* end confdefs.h.  */
46082#include <unistd.h>
46083int
46084main ()
46085{
46086 return sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0;
46087  ;
46088  return 0;
46089}
46090_ACEOF
46091rm -f conftest.$ac_objext conftest$ac_exeext
46092if { (ac_try="$ac_link"
46093case "(($ac_try" in
46094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46095  *) ac_try_echo=$ac_try;;
46096esac
46097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46098  (eval "$ac_link") 2>conftest.er1
46099  ac_status=$?
46100  grep -v '^ *+' conftest.er1 >conftest.err
46101  rm -f conftest.er1
46102  cat conftest.err >&5
46103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46104  (exit $ac_status); } && {
46105	 test -z "$ac_c_werror_flag" ||
46106	 test ! -s conftest.err
46107       } && test -s conftest$ac_exeext &&
46108       $as_test_x conftest$ac_exeext; then
46109   samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
46110else
46111  echo "$as_me: failed program was:" >&5
46112sed 's/^/| /' conftest.$ac_ext >&5
46113
46114	 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
46115fi
46116
46117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46118      conftest$ac_exeext conftest.$ac_ext
46119
46120fi
46121{ echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
46122echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6; }
46123
46124    if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes" ; then
46125
46126cat >>confdefs.h <<\_ACEOF
46127#define SYSCONF_SC_NGROUPS_MAX 1
46128_ACEOF
46129
46130    fi
46131
46132
46133    { echo "$as_me:$LINENO: checking for sysconf(_SC_NPROC_ONLN)" >&5
46134echo $ECHO_N "checking for sysconf(_SC_NPROC_ONLN)... $ECHO_C" >&6; }
46135if test "${samba_cv_SYSCONF_SC_NPROC_ONLN+set}" = set; then
46136  echo $ECHO_N "(cached) $ECHO_C" >&6
46137else
46138
46139	    cat >conftest.$ac_ext <<_ACEOF
46140/* confdefs.h.  */
46141_ACEOF
46142cat confdefs.h >>conftest.$ac_ext
46143cat >>conftest.$ac_ext <<_ACEOF
46144/* end confdefs.h.  */
46145#include <unistd.h>
46146int
46147main ()
46148{
46149 return sysconf(_SC_NPROC_ONLN) == -1 ? 1 : 0;
46150  ;
46151  return 0;
46152}
46153_ACEOF
46154rm -f conftest.$ac_objext conftest$ac_exeext
46155if { (ac_try="$ac_link"
46156case "(($ac_try" in
46157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46158  *) ac_try_echo=$ac_try;;
46159esac
46160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46161  (eval "$ac_link") 2>conftest.er1
46162  ac_status=$?
46163  grep -v '^ *+' conftest.er1 >conftest.err
46164  rm -f conftest.er1
46165  cat conftest.err >&5
46166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46167  (exit $ac_status); } && {
46168	 test -z "$ac_c_werror_flag" ||
46169	 test ! -s conftest.err
46170       } && test -s conftest$ac_exeext &&
46171       $as_test_x conftest$ac_exeext; then
46172   samba_cv_SYSCONF_SC_NPROC_ONLN=yes
46173else
46174  echo "$as_me: failed program was:" >&5
46175sed 's/^/| /' conftest.$ac_ext >&5
46176
46177	 samba_cv_SYSCONF_SC_NPROC_ONLN=no
46178fi
46179
46180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46181      conftest$ac_exeext conftest.$ac_ext
46182
46183fi
46184{ echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROC_ONLN" >&5
46185echo "${ECHO_T}$samba_cv_SYSCONF_SC_NPROC_ONLN" >&6; }
46186
46187    if test x"$samba_cv_SYSCONF_SC_NPROC_ONLN" = x"yes" ; then
46188
46189cat >>confdefs.h <<\_ACEOF
46190#define SYSCONF_SC_NPROC_ONLN 1
46191_ACEOF
46192
46193    fi
46194
46195
46196    { echo "$as_me:$LINENO: checking for sysconf(_SC_NPROCESSORS_ONLN)" >&5
46197echo $ECHO_N "checking for sysconf(_SC_NPROCESSORS_ONLN)... $ECHO_C" >&6; }
46198if test "${samba_cv_SYSCONF_SC_NPROCESSORS_ONLN+set}" = set; then
46199  echo $ECHO_N "(cached) $ECHO_C" >&6
46200else
46201
46202	    cat >conftest.$ac_ext <<_ACEOF
46203/* confdefs.h.  */
46204_ACEOF
46205cat confdefs.h >>conftest.$ac_ext
46206cat >>conftest.$ac_ext <<_ACEOF
46207/* end confdefs.h.  */
46208#include <unistd.h>
46209int
46210main ()
46211{
46212 return sysconf(_SC_NPROCESSORS_ONLN) == -1 ? 1 : 0;
46213  ;
46214  return 0;
46215}
46216_ACEOF
46217rm -f conftest.$ac_objext conftest$ac_exeext
46218if { (ac_try="$ac_link"
46219case "(($ac_try" in
46220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46221  *) ac_try_echo=$ac_try;;
46222esac
46223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46224  (eval "$ac_link") 2>conftest.er1
46225  ac_status=$?
46226  grep -v '^ *+' conftest.er1 >conftest.err
46227  rm -f conftest.er1
46228  cat conftest.err >&5
46229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46230  (exit $ac_status); } && {
46231	 test -z "$ac_c_werror_flag" ||
46232	 test ! -s conftest.err
46233       } && test -s conftest$ac_exeext &&
46234       $as_test_x conftest$ac_exeext; then
46235   samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=yes
46236else
46237  echo "$as_me: failed program was:" >&5
46238sed 's/^/| /' conftest.$ac_ext >&5
46239
46240	 samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=no
46241fi
46242
46243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46244      conftest$ac_exeext conftest.$ac_ext
46245
46246fi
46247{ echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" >&5
46248echo "${ECHO_T}$samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" >&6; }
46249
46250    if test x"$samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" = x"yes" ; then
46251
46252cat >>confdefs.h <<\_ACEOF
46253#define SYSCONF_SC_NPROCESSORS_ONLN 1
46254_ACEOF
46255
46256    fi
46257
46258
46259    { echo "$as_me:$LINENO: checking for sysconf(_SC_PAGESIZE)" >&5
46260echo $ECHO_N "checking for sysconf(_SC_PAGESIZE)... $ECHO_C" >&6; }
46261if test "${samba_cv_SYSCONF_SC_PAGESIZE+set}" = set; then
46262  echo $ECHO_N "(cached) $ECHO_C" >&6
46263else
46264
46265	    cat >conftest.$ac_ext <<_ACEOF
46266/* confdefs.h.  */
46267_ACEOF
46268cat confdefs.h >>conftest.$ac_ext
46269cat >>conftest.$ac_ext <<_ACEOF
46270/* end confdefs.h.  */
46271#include <unistd.h>
46272int
46273main ()
46274{
46275 return sysconf(_SC_PAGESIZE) == -1 ? 1 : 0;
46276  ;
46277  return 0;
46278}
46279_ACEOF
46280rm -f conftest.$ac_objext conftest$ac_exeext
46281if { (ac_try="$ac_link"
46282case "(($ac_try" in
46283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46284  *) ac_try_echo=$ac_try;;
46285esac
46286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46287  (eval "$ac_link") 2>conftest.er1
46288  ac_status=$?
46289  grep -v '^ *+' conftest.er1 >conftest.err
46290  rm -f conftest.er1
46291  cat conftest.err >&5
46292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46293  (exit $ac_status); } && {
46294	 test -z "$ac_c_werror_flag" ||
46295	 test ! -s conftest.err
46296       } && test -s conftest$ac_exeext &&
46297       $as_test_x conftest$ac_exeext; then
46298   samba_cv_SYSCONF_SC_PAGESIZE=yes
46299else
46300  echo "$as_me: failed program was:" >&5
46301sed 's/^/| /' conftest.$ac_ext >&5
46302
46303	 samba_cv_SYSCONF_SC_PAGESIZE=no
46304fi
46305
46306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46307      conftest$ac_exeext conftest.$ac_ext
46308
46309fi
46310{ echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_PAGESIZE" >&5
46311echo "${ECHO_T}$samba_cv_SYSCONF_SC_PAGESIZE" >&6; }
46312
46313    if test x"$samba_cv_SYSCONF_SC_PAGESIZE" = x"yes" ; then
46314
46315cat >>confdefs.h <<\_ACEOF
46316#define SYSCONF_SC_PAGESIZE 1
46317_ACEOF
46318
46319    fi
46320
46321
46322for ac_func in getpagesize
46323do
46324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
46326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46328  echo $ECHO_N "(cached) $ECHO_C" >&6
46329else
46330  cat >conftest.$ac_ext <<_ACEOF
46331/* confdefs.h.  */
46332_ACEOF
46333cat confdefs.h >>conftest.$ac_ext
46334cat >>conftest.$ac_ext <<_ACEOF
46335/* end confdefs.h.  */
46336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46337   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46338#define $ac_func innocuous_$ac_func
46339
46340/* System header to define __stub macros and hopefully few prototypes,
46341    which can conflict with char $ac_func (); below.
46342    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46343    <limits.h> exists even on freestanding compilers.  */
46344
46345#ifdef __STDC__
46346# include <limits.h>
46347#else
46348# include <assert.h>
46349#endif
46350
46351#undef $ac_func
46352
46353/* Override any GCC internal prototype to avoid an error.
46354   Use char because int might match the return type of a GCC
46355   builtin and then its argument prototype would still apply.  */
46356#ifdef __cplusplus
46357extern "C"
46358#endif
46359char $ac_func ();
46360/* The GNU C library defines this for functions which it implements
46361    to always fail with ENOSYS.  Some functions are actually named
46362    something starting with __ and the normal name is an alias.  */
46363#if defined __stub_$ac_func || defined __stub___$ac_func
46364choke me
46365#endif
46366
46367int
46368main ()
46369{
46370return $ac_func ();
46371  ;
46372  return 0;
46373}
46374_ACEOF
46375rm -f conftest.$ac_objext conftest$ac_exeext
46376if { (ac_try="$ac_link"
46377case "(($ac_try" in
46378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46379  *) ac_try_echo=$ac_try;;
46380esac
46381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46382  (eval "$ac_link") 2>conftest.er1
46383  ac_status=$?
46384  grep -v '^ *+' conftest.er1 >conftest.err
46385  rm -f conftest.er1
46386  cat conftest.err >&5
46387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46388  (exit $ac_status); } && {
46389	 test -z "$ac_c_werror_flag" ||
46390	 test ! -s conftest.err
46391       } && test -s conftest$ac_exeext &&
46392       $as_test_x conftest$ac_exeext; then
46393  eval "$as_ac_var=yes"
46394else
46395  echo "$as_me: failed program was:" >&5
46396sed 's/^/| /' conftest.$ac_ext >&5
46397
46398	eval "$as_ac_var=no"
46399fi
46400
46401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46402      conftest$ac_exeext conftest.$ac_ext
46403fi
46404ac_res=`eval echo '${'$as_ac_var'}'`
46405	       { echo "$as_me:$LINENO: result: $ac_res" >&5
46406echo "${ECHO_T}$ac_res" >&6; }
46407if test `eval echo '${'$as_ac_var'}'` = yes; then
46408  cat >>confdefs.h <<_ACEOF
46409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46410_ACEOF
46411
46412fi
46413done
46414
46415
46416##################
46417# look for a method of finding the list of network interfaces
46418iface=no;
46419{ echo "$as_me:$LINENO: checking for iface AIX" >&5
46420echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6; }
46421if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
46422  echo $ECHO_N "(cached) $ECHO_C" >&6
46423else
46424
46425SAVE_CPPFLAGS="$CPPFLAGS"
46426CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
46427if test "$cross_compiling" = yes; then
46428  samba_cv_HAVE_IFACE_AIX=cross
46429else
46430  cat >conftest.$ac_ext <<_ACEOF
46431/* confdefs.h.  */
46432_ACEOF
46433cat confdefs.h >>conftest.$ac_ext
46434cat >>conftest.$ac_ext <<_ACEOF
46435/* end confdefs.h.  */
46436
46437#define HAVE_IFACE_AIX 1
46438#define AUTOCONF_TEST 1
46439#undef _XOPEN_SOURCE_EXTENDED
46440#include "${srcdir-.}/lib/interfaces.c"
46441_ACEOF
46442rm -f conftest$ac_exeext
46443if { (ac_try="$ac_link"
46444case "(($ac_try" in
46445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46446  *) ac_try_echo=$ac_try;;
46447esac
46448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46449  (eval "$ac_link") 2>&5
46450  ac_status=$?
46451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46452  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46453  { (case "(($ac_try" in
46454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46455  *) ac_try_echo=$ac_try;;
46456esac
46457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46458  (eval "$ac_try") 2>&5
46459  ac_status=$?
46460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46461  (exit $ac_status); }; }; then
46462  samba_cv_HAVE_IFACE_AIX=yes
46463else
46464  echo "$as_me: program exited with status $ac_status" >&5
46465echo "$as_me: failed program was:" >&5
46466sed 's/^/| /' conftest.$ac_ext >&5
46467
46468( exit $ac_status )
46469samba_cv_HAVE_IFACE_AIX=no
46470fi
46471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46472fi
46473
46474
46475fi
46476{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
46477echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6; }
46478CPPFLAGS="$SAVE_CPPFLAGS"
46479if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
46480    iface=yes;
46481cat >>confdefs.h <<\_ACEOF
46482#define HAVE_IFACE_AIX 1
46483_ACEOF
46484
46485fi
46486
46487if test $iface = no; then
46488{ echo "$as_me:$LINENO: checking for iface ifconf" >&5
46489echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6; }
46490if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
46491  echo $ECHO_N "(cached) $ECHO_C" >&6
46492else
46493
46494SAVE_CPPFLAGS="$CPPFLAGS"
46495CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
46496if test "$cross_compiling" = yes; then
46497  samba_cv_HAVE_IFACE_IFCONF=cross
46498else
46499  cat >conftest.$ac_ext <<_ACEOF
46500/* confdefs.h.  */
46501_ACEOF
46502cat confdefs.h >>conftest.$ac_ext
46503cat >>conftest.$ac_ext <<_ACEOF
46504/* end confdefs.h.  */
46505
46506#define HAVE_IFACE_IFCONF 1
46507#define AUTOCONF_TEST 1
46508#include "${srcdir-.}/lib/interfaces.c"
46509_ACEOF
46510rm -f conftest$ac_exeext
46511if { (ac_try="$ac_link"
46512case "(($ac_try" in
46513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46514  *) ac_try_echo=$ac_try;;
46515esac
46516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46517  (eval "$ac_link") 2>&5
46518  ac_status=$?
46519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46520  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46521  { (case "(($ac_try" in
46522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46523  *) ac_try_echo=$ac_try;;
46524esac
46525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46526  (eval "$ac_try") 2>&5
46527  ac_status=$?
46528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46529  (exit $ac_status); }; }; then
46530  samba_cv_HAVE_IFACE_IFCONF=yes
46531else
46532  echo "$as_me: program exited with status $ac_status" >&5
46533echo "$as_me: failed program was:" >&5
46534sed 's/^/| /' conftest.$ac_ext >&5
46535
46536( exit $ac_status )
46537samba_cv_HAVE_IFACE_IFCONF=no
46538fi
46539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46540fi
46541
46542
46543fi
46544{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
46545echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6; }
46546CPPFLAGS="$SAVE_CPPFLAGS"
46547if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
46548    iface=yes;
46549cat >>confdefs.h <<\_ACEOF
46550#define HAVE_IFACE_IFCONF 1
46551_ACEOF
46552
46553fi
46554fi
46555
46556if test $iface = no; then
46557{ echo "$as_me:$LINENO: checking for iface ifreq" >&5
46558echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6; }
46559if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
46560  echo $ECHO_N "(cached) $ECHO_C" >&6
46561else
46562
46563SAVE_CPPFLAGS="$CPPFLAGS"
46564CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
46565if test "$cross_compiling" = yes; then
46566  samba_cv_HAVE_IFACE_IFREQ=cross
46567else
46568  cat >conftest.$ac_ext <<_ACEOF
46569/* confdefs.h.  */
46570_ACEOF
46571cat confdefs.h >>conftest.$ac_ext
46572cat >>conftest.$ac_ext <<_ACEOF
46573/* end confdefs.h.  */
46574
46575#define HAVE_IFACE_IFREQ 1
46576#define AUTOCONF_TEST 1
46577#include "${srcdir-.}/lib/interfaces.c"
46578_ACEOF
46579rm -f conftest$ac_exeext
46580if { (ac_try="$ac_link"
46581case "(($ac_try" in
46582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46583  *) ac_try_echo=$ac_try;;
46584esac
46585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46586  (eval "$ac_link") 2>&5
46587  ac_status=$?
46588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46589  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46590  { (case "(($ac_try" in
46591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46592  *) ac_try_echo=$ac_try;;
46593esac
46594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46595  (eval "$ac_try") 2>&5
46596  ac_status=$?
46597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598  (exit $ac_status); }; }; then
46599  samba_cv_HAVE_IFACE_IFREQ=yes
46600else
46601  echo "$as_me: program exited with status $ac_status" >&5
46602echo "$as_me: failed program was:" >&5
46603sed 's/^/| /' conftest.$ac_ext >&5
46604
46605( exit $ac_status )
46606samba_cv_HAVE_IFACE_IFREQ=no
46607fi
46608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46609fi
46610
46611
46612fi
46613{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
46614echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6; }
46615CPPFLAGS="$SAVE_CPPFLAGS"
46616if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
46617    iface=yes;
46618cat >>confdefs.h <<\_ACEOF
46619#define HAVE_IFACE_IFREQ 1
46620_ACEOF
46621
46622fi
46623fi
46624
46625
46626################################################
46627# look for a method of setting the effective uid
46628seteuid=no;
46629if test $seteuid = no; then
46630{ echo "$as_me:$LINENO: checking for setresuid" >&5
46631echo $ECHO_N "checking for setresuid... $ECHO_C" >&6; }
46632if test "${samba_cv_USE_SETRESUID+set}" = set; then
46633  echo $ECHO_N "(cached) $ECHO_C" >&6
46634else
46635
46636if test "$cross_compiling" = yes; then
46637  samba_cv_USE_SETRESUID=cross
46638else
46639  cat >conftest.$ac_ext <<_ACEOF
46640/* confdefs.h.  */
46641_ACEOF
46642cat confdefs.h >>conftest.$ac_ext
46643cat >>conftest.$ac_ext <<_ACEOF
46644/* end confdefs.h.  */
46645
46646#define AUTOCONF_TEST 1
46647#define USE_SETRESUID 1
46648#include "confdefs.h"
46649#include "${srcdir-.}/lib/util_sec.c"
46650_ACEOF
46651rm -f conftest$ac_exeext
46652if { (ac_try="$ac_link"
46653case "(($ac_try" in
46654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46655  *) ac_try_echo=$ac_try;;
46656esac
46657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46658  (eval "$ac_link") 2>&5
46659  ac_status=$?
46660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46661  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46662  { (case "(($ac_try" in
46663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46664  *) ac_try_echo=$ac_try;;
46665esac
46666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46667  (eval "$ac_try") 2>&5
46668  ac_status=$?
46669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46670  (exit $ac_status); }; }; then
46671  samba_cv_USE_SETRESUID=yes
46672else
46673  echo "$as_me: program exited with status $ac_status" >&5
46674echo "$as_me: failed program was:" >&5
46675sed 's/^/| /' conftest.$ac_ext >&5
46676
46677( exit $ac_status )
46678samba_cv_USE_SETRESUID=no
46679fi
46680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46681fi
46682
46683
46684fi
46685{ echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
46686echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6; }
46687if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
46688    seteuid=yes;
46689cat >>confdefs.h <<\_ACEOF
46690#define USE_SETRESUID 1
46691_ACEOF
46692
46693fi
46694fi
46695
46696
46697if test $seteuid = no; then
46698{ echo "$as_me:$LINENO: checking for setreuid" >&5
46699echo $ECHO_N "checking for setreuid... $ECHO_C" >&6; }
46700if test "${samba_cv_USE_SETREUID+set}" = set; then
46701  echo $ECHO_N "(cached) $ECHO_C" >&6
46702else
46703
46704if test "$cross_compiling" = yes; then
46705  samba_cv_USE_SETREUID=cross
46706else
46707  cat >conftest.$ac_ext <<_ACEOF
46708/* confdefs.h.  */
46709_ACEOF
46710cat confdefs.h >>conftest.$ac_ext
46711cat >>conftest.$ac_ext <<_ACEOF
46712/* end confdefs.h.  */
46713
46714#define AUTOCONF_TEST 1
46715#define USE_SETREUID 1
46716#include "confdefs.h"
46717#include "${srcdir-.}/lib/util_sec.c"
46718_ACEOF
46719rm -f conftest$ac_exeext
46720if { (ac_try="$ac_link"
46721case "(($ac_try" in
46722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46723  *) ac_try_echo=$ac_try;;
46724esac
46725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46726  (eval "$ac_link") 2>&5
46727  ac_status=$?
46728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46729  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46730  { (case "(($ac_try" in
46731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46732  *) ac_try_echo=$ac_try;;
46733esac
46734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46735  (eval "$ac_try") 2>&5
46736  ac_status=$?
46737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46738  (exit $ac_status); }; }; then
46739  samba_cv_USE_SETREUID=yes
46740else
46741  echo "$as_me: program exited with status $ac_status" >&5
46742echo "$as_me: failed program was:" >&5
46743sed 's/^/| /' conftest.$ac_ext >&5
46744
46745( exit $ac_status )
46746samba_cv_USE_SETREUID=no
46747fi
46748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46749fi
46750
46751
46752fi
46753{ echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
46754echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6; }
46755if test x"$samba_cv_USE_SETREUID" = x"yes"; then
46756    seteuid=yes;
46757cat >>confdefs.h <<\_ACEOF
46758#define USE_SETREUID 1
46759_ACEOF
46760
46761fi
46762fi
46763
46764if test $seteuid = no; then
46765{ echo "$as_me:$LINENO: checking for seteuid" >&5
46766echo $ECHO_N "checking for seteuid... $ECHO_C" >&6; }
46767if test "${samba_cv_USE_SETEUID+set}" = set; then
46768  echo $ECHO_N "(cached) $ECHO_C" >&6
46769else
46770
46771if test "$cross_compiling" = yes; then
46772  samba_cv_USE_SETEUID=cross
46773else
46774  cat >conftest.$ac_ext <<_ACEOF
46775/* confdefs.h.  */
46776_ACEOF
46777cat confdefs.h >>conftest.$ac_ext
46778cat >>conftest.$ac_ext <<_ACEOF
46779/* end confdefs.h.  */
46780
46781#define AUTOCONF_TEST 1
46782#define USE_SETEUID 1
46783#include "confdefs.h"
46784#include "${srcdir-.}/lib/util_sec.c"
46785_ACEOF
46786rm -f conftest$ac_exeext
46787if { (ac_try="$ac_link"
46788case "(($ac_try" in
46789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46790  *) ac_try_echo=$ac_try;;
46791esac
46792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46793  (eval "$ac_link") 2>&5
46794  ac_status=$?
46795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46796  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46797  { (case "(($ac_try" in
46798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46799  *) ac_try_echo=$ac_try;;
46800esac
46801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46802  (eval "$ac_try") 2>&5
46803  ac_status=$?
46804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46805  (exit $ac_status); }; }; then
46806  samba_cv_USE_SETEUID=yes
46807else
46808  echo "$as_me: program exited with status $ac_status" >&5
46809echo "$as_me: failed program was:" >&5
46810sed 's/^/| /' conftest.$ac_ext >&5
46811
46812( exit $ac_status )
46813samba_cv_USE_SETEUID=no
46814fi
46815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46816fi
46817
46818
46819fi
46820{ echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
46821echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6; }
46822if test x"$samba_cv_USE_SETEUID" = x"yes"; then
46823    seteuid=yes;
46824cat >>confdefs.h <<\_ACEOF
46825#define USE_SETEUID 1
46826_ACEOF
46827
46828fi
46829fi
46830
46831if test $seteuid = no; then
46832{ echo "$as_me:$LINENO: checking for setuidx" >&5
46833echo $ECHO_N "checking for setuidx... $ECHO_C" >&6; }
46834if test "${samba_cv_USE_SETUIDX+set}" = set; then
46835  echo $ECHO_N "(cached) $ECHO_C" >&6
46836else
46837
46838if test "$cross_compiling" = yes; then
46839  samba_cv_USE_SETUIDX=cross
46840else
46841  cat >conftest.$ac_ext <<_ACEOF
46842/* confdefs.h.  */
46843_ACEOF
46844cat confdefs.h >>conftest.$ac_ext
46845cat >>conftest.$ac_ext <<_ACEOF
46846/* end confdefs.h.  */
46847
46848#define AUTOCONF_TEST 1
46849#define USE_SETUIDX 1
46850#include "confdefs.h"
46851#include "${srcdir-.}/lib/util_sec.c"
46852_ACEOF
46853rm -f conftest$ac_exeext
46854if { (ac_try="$ac_link"
46855case "(($ac_try" in
46856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46857  *) ac_try_echo=$ac_try;;
46858esac
46859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46860  (eval "$ac_link") 2>&5
46861  ac_status=$?
46862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46863  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46864  { (case "(($ac_try" in
46865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46866  *) ac_try_echo=$ac_try;;
46867esac
46868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46869  (eval "$ac_try") 2>&5
46870  ac_status=$?
46871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46872  (exit $ac_status); }; }; then
46873  samba_cv_USE_SETUIDX=yes
46874else
46875  echo "$as_me: program exited with status $ac_status" >&5
46876echo "$as_me: failed program was:" >&5
46877sed 's/^/| /' conftest.$ac_ext >&5
46878
46879( exit $ac_status )
46880samba_cv_USE_SETUIDX=no
46881fi
46882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46883fi
46884
46885
46886fi
46887{ echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
46888echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6; }
46889if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
46890    seteuid=yes;
46891cat >>confdefs.h <<\_ACEOF
46892#define USE_SETUIDX 1
46893_ACEOF
46894
46895fi
46896fi
46897
46898
46899{ echo "$as_me:$LINENO: checking for working mmap" >&5
46900echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
46901if test "${samba_cv_HAVE_MMAP+set}" = set; then
46902  echo $ECHO_N "(cached) $ECHO_C" >&6
46903else
46904
46905if test "$cross_compiling" = yes; then
46906  samba_cv_HAVE_MMAP=cross
46907else
46908  cat >conftest.$ac_ext <<_ACEOF
46909/* confdefs.h.  */
46910_ACEOF
46911cat confdefs.h >>conftest.$ac_ext
46912cat >>conftest.$ac_ext <<_ACEOF
46913/* end confdefs.h.  */
46914#include "${srcdir-.}/tests/shared_mmap.c"
46915_ACEOF
46916rm -f conftest$ac_exeext
46917if { (ac_try="$ac_link"
46918case "(($ac_try" in
46919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46920  *) ac_try_echo=$ac_try;;
46921esac
46922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46923  (eval "$ac_link") 2>&5
46924  ac_status=$?
46925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46926  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46927  { (case "(($ac_try" in
46928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46929  *) ac_try_echo=$ac_try;;
46930esac
46931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46932  (eval "$ac_try") 2>&5
46933  ac_status=$?
46934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46935  (exit $ac_status); }; }; then
46936  samba_cv_HAVE_MMAP=yes
46937else
46938  echo "$as_me: program exited with status $ac_status" >&5
46939echo "$as_me: failed program was:" >&5
46940sed 's/^/| /' conftest.$ac_ext >&5
46941
46942( exit $ac_status )
46943samba_cv_HAVE_MMAP=no
46944fi
46945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46946fi
46947
46948
46949fi
46950{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
46951echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6; }
46952if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
46953
46954cat >>confdefs.h <<\_ACEOF
46955#define HAVE_MMAP 1
46956_ACEOF
46957
46958fi
46959
46960{ echo "$as_me:$LINENO: checking for fcntl locking" >&5
46961echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6; }
46962if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
46963  echo $ECHO_N "(cached) $ECHO_C" >&6
46964else
46965
46966if test "$cross_compiling" = yes; then
46967  samba_cv_HAVE_FCNTL_LOCK=cross
46968else
46969  cat >conftest.$ac_ext <<_ACEOF
46970/* confdefs.h.  */
46971_ACEOF
46972cat confdefs.h >>conftest.$ac_ext
46973cat >>conftest.$ac_ext <<_ACEOF
46974/* end confdefs.h.  */
46975#include "${srcdir-.}/tests/fcntl_lock.c"
46976_ACEOF
46977rm -f conftest$ac_exeext
46978if { (ac_try="$ac_link"
46979case "(($ac_try" in
46980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46981  *) ac_try_echo=$ac_try;;
46982esac
46983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46984  (eval "$ac_link") 2>&5
46985  ac_status=$?
46986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46987  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46988  { (case "(($ac_try" in
46989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46990  *) ac_try_echo=$ac_try;;
46991esac
46992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46993  (eval "$ac_try") 2>&5
46994  ac_status=$?
46995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46996  (exit $ac_status); }; }; then
46997  samba_cv_HAVE_FCNTL_LOCK=yes
46998else
46999  echo "$as_me: program exited with status $ac_status" >&5
47000echo "$as_me: failed program was:" >&5
47001sed 's/^/| /' conftest.$ac_ext >&5
47002
47003( exit $ac_status )
47004samba_cv_HAVE_FCNTL_LOCK=no
47005fi
47006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47007fi
47008
47009
47010fi
47011{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
47012echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6; }
47013if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
47014
47015cat >>confdefs.h <<\_ACEOF
47016#define HAVE_FCNTL_LOCK 1
47017_ACEOF
47018
47019fi
47020
47021{ echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
47022echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6; }
47023if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
47024  echo $ECHO_N "(cached) $ECHO_C" >&6
47025else
47026
47027if test "$cross_compiling" = yes; then
47028  samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
47029else
47030  cat >conftest.$ac_ext <<_ACEOF
47031/* confdefs.h.  */
47032_ACEOF
47033cat confdefs.h >>conftest.$ac_ext
47034cat >>conftest.$ac_ext <<_ACEOF
47035/* end confdefs.h.  */
47036#include "${srcdir-.}/tests/fcntl_lock64.c"
47037_ACEOF
47038rm -f conftest$ac_exeext
47039if { (ac_try="$ac_link"
47040case "(($ac_try" in
47041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47042  *) ac_try_echo=$ac_try;;
47043esac
47044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47045  (eval "$ac_link") 2>&5
47046  ac_status=$?
47047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47048  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47049  { (case "(($ac_try" in
47050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47051  *) ac_try_echo=$ac_try;;
47052esac
47053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47054  (eval "$ac_try") 2>&5
47055  ac_status=$?
47056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47057  (exit $ac_status); }; }; then
47058  samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
47059else
47060  echo "$as_me: program exited with status $ac_status" >&5
47061echo "$as_me: failed program was:" >&5
47062sed 's/^/| /' conftest.$ac_ext >&5
47063
47064( exit $ac_status )
47065samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
47066fi
47067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47068fi
47069
47070
47071fi
47072{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
47073echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6; }
47074if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
47075
47076cat >>confdefs.h <<\_ACEOF
47077#define HAVE_BROKEN_FCNTL64_LOCKS 1
47078_ACEOF
47079
47080
47081else
47082
47083
47084  { echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
47085echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6; }
47086if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
47087  echo $ECHO_N "(cached) $ECHO_C" >&6
47088else
47089
47090  if test "$cross_compiling" = yes; then
47091  samba_cv_HAVE_STRUCT_FLOCK64=cross
47092else
47093  cat >conftest.$ac_ext <<_ACEOF
47094/* confdefs.h.  */
47095_ACEOF
47096cat confdefs.h >>conftest.$ac_ext
47097cat >>conftest.$ac_ext <<_ACEOF
47098/* end confdefs.h.  */
47099
47100#if defined(HAVE_UNISTD_H)
47101#include <unistd.h>
47102#endif
47103#include <stdio.h>
47104#include <stdlib.h>
47105
47106#ifdef HAVE_FCNTL_H
47107#include <fcntl.h>
47108#endif
47109
47110#ifdef HAVE_SYS_FCNTL_H
47111#include <sys/fcntl.h>
47112#endif
47113main() { struct flock64 fl64;
47114#if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
47115exit(0);
47116#else
47117exit(1);
47118#endif
47119}
47120_ACEOF
47121rm -f conftest$ac_exeext
47122if { (ac_try="$ac_link"
47123case "(($ac_try" in
47124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47125  *) ac_try_echo=$ac_try;;
47126esac
47127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47128  (eval "$ac_link") 2>&5
47129  ac_status=$?
47130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47131  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47132  { (case "(($ac_try" in
47133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47134  *) ac_try_echo=$ac_try;;
47135esac
47136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47137  (eval "$ac_try") 2>&5
47138  ac_status=$?
47139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47140  (exit $ac_status); }; }; then
47141  samba_cv_HAVE_STRUCT_FLOCK64=yes
47142else
47143  echo "$as_me: program exited with status $ac_status" >&5
47144echo "$as_me: failed program was:" >&5
47145sed 's/^/| /' conftest.$ac_ext >&5
47146
47147( exit $ac_status )
47148samba_cv_HAVE_STRUCT_FLOCK64=no
47149fi
47150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47151fi
47152
47153
47154fi
47155{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
47156echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6; }
47157
47158  if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
47159
47160cat >>confdefs.h <<\_ACEOF
47161#define HAVE_STRUCT_FLOCK64 1
47162_ACEOF
47163
47164  fi
47165fi
47166
47167{ echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
47168echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6; }
47169if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
47170  echo $ECHO_N "(cached) $ECHO_C" >&6
47171else
47172
47173cat >conftest.$ac_ext <<_ACEOF
47174/* confdefs.h.  */
47175_ACEOF
47176cat confdefs.h >>conftest.$ac_ext
47177cat >>conftest.$ac_ext <<_ACEOF
47178/* end confdefs.h.  */
47179#include <sys/types.h>
47180#include <sys/stat.h>
47181#include <unistd.h>
47182int
47183main ()
47184{
47185struct stat st;  st.st_blocks = 0;
47186  ;
47187  return 0;
47188}
47189_ACEOF
47190rm -f conftest.$ac_objext
47191if { (ac_try="$ac_compile"
47192case "(($ac_try" in
47193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47194  *) ac_try_echo=$ac_try;;
47195esac
47196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47197  (eval "$ac_compile") 2>conftest.er1
47198  ac_status=$?
47199  grep -v '^ *+' conftest.er1 >conftest.err
47200  rm -f conftest.er1
47201  cat conftest.err >&5
47202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47203  (exit $ac_status); } && {
47204	 test -z "$ac_c_werror_flag" ||
47205	 test ! -s conftest.err
47206       } && test -s conftest.$ac_objext; then
47207  samba_cv_HAVE_STAT_ST_BLOCKS=yes
47208else
47209  echo "$as_me: failed program was:" >&5
47210sed 's/^/| /' conftest.$ac_ext >&5
47211
47212	samba_cv_HAVE_STAT_ST_BLOCKS=no
47213fi
47214
47215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47216fi
47217{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
47218echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6; }
47219if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
47220
47221cat >>confdefs.h <<\_ACEOF
47222#define HAVE_STAT_ST_BLOCKS 1
47223_ACEOF
47224
47225fi
47226
47227{ echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
47228echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6; }
47229if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
47230  echo $ECHO_N "(cached) $ECHO_C" >&6
47231else
47232
47233cat >conftest.$ac_ext <<_ACEOF
47234/* confdefs.h.  */
47235_ACEOF
47236cat confdefs.h >>conftest.$ac_ext
47237cat >>conftest.$ac_ext <<_ACEOF
47238/* end confdefs.h.  */
47239#include <sys/types.h>
47240#include <sys/stat.h>
47241#include <unistd.h>
47242int
47243main ()
47244{
47245struct stat st;  st.st_blksize = 0;
47246  ;
47247  return 0;
47248}
47249_ACEOF
47250rm -f conftest.$ac_objext
47251if { (ac_try="$ac_compile"
47252case "(($ac_try" in
47253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47254  *) ac_try_echo=$ac_try;;
47255esac
47256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47257  (eval "$ac_compile") 2>conftest.er1
47258  ac_status=$?
47259  grep -v '^ *+' conftest.er1 >conftest.err
47260  rm -f conftest.er1
47261  cat conftest.err >&5
47262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47263  (exit $ac_status); } && {
47264	 test -z "$ac_c_werror_flag" ||
47265	 test ! -s conftest.err
47266       } && test -s conftest.$ac_objext; then
47267  samba_cv_HAVE_STAT_ST_BLKSIZE=yes
47268else
47269  echo "$as_me: failed program was:" >&5
47270sed 's/^/| /' conftest.$ac_ext >&5
47271
47272	samba_cv_HAVE_STAT_ST_BLKSIZE=no
47273fi
47274
47275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47276fi
47277{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
47278echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6; }
47279if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
47280
47281cat >>confdefs.h <<\_ACEOF
47282#define HAVE_STAT_ST_BLKSIZE 1
47283_ACEOF
47284
47285fi
47286
47287{ echo "$as_me:$LINENO: checking for st_flags in struct stat" >&5
47288echo $ECHO_N "checking for st_flags in struct stat... $ECHO_C" >&6; }
47289if test "${samba_cv_HAVE_STAT_ST_FLAGS+set}" = set; then
47290  echo $ECHO_N "(cached) $ECHO_C" >&6
47291else
47292
47293	    cat >conftest.$ac_ext <<_ACEOF
47294/* confdefs.h.  */
47295_ACEOF
47296cat confdefs.h >>conftest.$ac_ext
47297cat >>conftest.$ac_ext <<_ACEOF
47298/* end confdefs.h.  */
47299#include <sys/types.h>
47300#include <sys/stat.h>
47301#include <unistd.h>
47302int
47303main ()
47304{
47305struct stat st;  st.st_flags = 0;
47306  ;
47307  return 0;
47308}
47309_ACEOF
47310rm -f conftest.$ac_objext
47311if { (ac_try="$ac_compile"
47312case "(($ac_try" in
47313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47314  *) ac_try_echo=$ac_try;;
47315esac
47316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47317  (eval "$ac_compile") 2>conftest.er1
47318  ac_status=$?
47319  grep -v '^ *+' conftest.er1 >conftest.err
47320  rm -f conftest.er1
47321  cat conftest.err >&5
47322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47323  (exit $ac_status); } && {
47324	 test -z "$ac_c_werror_flag" ||
47325	 test ! -s conftest.err
47326       } && test -s conftest.$ac_objext; then
47327  samba_cv_HAVE_STAT_ST_FLAGS=yes
47328else
47329  echo "$as_me: failed program was:" >&5
47330sed 's/^/| /' conftest.$ac_ext >&5
47331
47332	samba_cv_HAVE_STAT_ST_FLAGS=no
47333fi
47334
47335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47336
47337fi
47338{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_FLAGS" >&5
47339echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_FLAGS" >&6; }
47340
47341if test x"$samba_cv_HAVE_STAT_ST_FLAGS" = x"yes"; then
47342
47343cat >>confdefs.h <<\_ACEOF
47344#define HAVE_STAT_ST_FLAGS 1
47345_ACEOF
47346
47347fi
47348
47349case "$host_os" in
47350*linux*)
47351{ echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
47352echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6; }
47353if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
47354  echo $ECHO_N "(cached) $ECHO_C" >&6
47355else
47356
47357cat >conftest.$ac_ext <<_ACEOF
47358/* confdefs.h.  */
47359_ACEOF
47360cat confdefs.h >>conftest.$ac_ext
47361cat >>conftest.$ac_ext <<_ACEOF
47362/* end confdefs.h.  */
47363
47364#ifdef HAVE_SYS_VFS_H
47365#include <sys/vfs.h>
47366#endif
47367#ifdef HAVE_SYS_CAPABILITY_H
47368#include <sys/capability.h>
47369#endif
47370
47371int
47372main ()
47373{
47374int i;
47375  ;
47376  return 0;
47377}
47378_ACEOF
47379rm -f conftest.$ac_objext
47380if { (ac_try="$ac_compile"
47381case "(($ac_try" in
47382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47383  *) ac_try_echo=$ac_try;;
47384esac
47385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47386  (eval "$ac_compile") 2>conftest.er1
47387  ac_status=$?
47388  grep -v '^ *+' conftest.er1 >conftest.err
47389  rm -f conftest.er1
47390  cat conftest.err >&5
47391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47392  (exit $ac_status); } && {
47393	 test -z "$ac_c_werror_flag" ||
47394	 test ! -s conftest.err
47395       } && test -s conftest.$ac_objext; then
47396  samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
47397else
47398  echo "$as_me: failed program was:" >&5
47399sed 's/^/| /' conftest.$ac_ext >&5
47400
47401	samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
47402fi
47403
47404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47405fi
47406{ echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
47407echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6; }
47408if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
47409
47410cat >>confdefs.h <<\_ACEOF
47411#define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
47412_ACEOF
47413
47414fi
47415;;
47416esac
47417
47418{ echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
47419echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6; }
47420if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
47421  echo $ECHO_N "(cached) $ECHO_C" >&6
47422else
47423
47424cat >conftest.$ac_ext <<_ACEOF
47425/* confdefs.h.  */
47426_ACEOF
47427cat confdefs.h >>conftest.$ac_ext
47428cat >>conftest.$ac_ext <<_ACEOF
47429/* end confdefs.h.  */
47430
47431#include <sys/types.h>
47432#include <sys/acl.h>
47433#if defined(HAVE_RPCSVC_NIS_H)
47434#include <rpcsvc/nis.h>
47435#endif
47436int
47437main ()
47438{
47439int i;
47440  ;
47441  return 0;
47442}
47443_ACEOF
47444rm -f conftest.$ac_objext
47445if { (ac_try="$ac_compile"
47446case "(($ac_try" in
47447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47448  *) ac_try_echo=$ac_try;;
47449esac
47450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47451  (eval "$ac_compile") 2>conftest.er1
47452  ac_status=$?
47453  grep -v '^ *+' conftest.er1 >conftest.err
47454  rm -f conftest.er1
47455  cat conftest.err >&5
47456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47457  (exit $ac_status); } && {
47458	 test -z "$ac_c_werror_flag" ||
47459	 test ! -s conftest.err
47460       } && test -s conftest.$ac_objext; then
47461  samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
47462else
47463  echo "$as_me: failed program was:" >&5
47464sed 's/^/| /' conftest.$ac_ext >&5
47465
47466	samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
47467fi
47468
47469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47470fi
47471{ echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
47472echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6; }
47473if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
47474
47475cat >>confdefs.h <<\_ACEOF
47476#define BROKEN_NISPLUS_INCLUDE_FILES 1
47477_ACEOF
47478
47479fi
47480
47481{ echo "$as_me:$LINENO: checking if the realpath function allows a NULL argument" >&5
47482echo $ECHO_N "checking if the realpath function allows a NULL argument... $ECHO_C" >&6; }
47483if test "${samba_cv_REALPATH_TAKES_NULL+set}" = set; then
47484  echo $ECHO_N "(cached) $ECHO_C" >&6
47485else
47486
47487if test "$cross_compiling" = yes; then
47488  samba_cv_REALPATH_TAKES_NULL=cross
47489else
47490  cat >conftest.$ac_ext <<_ACEOF
47491/* confdefs.h.  */
47492_ACEOF
47493cat confdefs.h >>conftest.$ac_ext
47494cat >>conftest.$ac_ext <<_ACEOF
47495/* end confdefs.h.  */
47496
47497#include <stdio.h>
47498#include <limits.h>
47499main() {
47500	char *newpath = realpath("/tmp", NULL);
47501	exit ((newpath != NULL) ? 0 : 1);
47502}
47503
47504_ACEOF
47505rm -f conftest$ac_exeext
47506if { (ac_try="$ac_link"
47507case "(($ac_try" in
47508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47509  *) ac_try_echo=$ac_try;;
47510esac
47511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47512  (eval "$ac_link") 2>&5
47513  ac_status=$?
47514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47515  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47516  { (case "(($ac_try" in
47517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47518  *) ac_try_echo=$ac_try;;
47519esac
47520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47521  (eval "$ac_try") 2>&5
47522  ac_status=$?
47523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47524  (exit $ac_status); }; }; then
47525  samba_cv_REALPATH_TAKES_NULL=yes
47526else
47527  echo "$as_me: program exited with status $ac_status" >&5
47528echo "$as_me: failed program was:" >&5
47529sed 's/^/| /' conftest.$ac_ext >&5
47530
47531( exit $ac_status )
47532samba_cv_REALPATH_TAKES_NULL=no
47533fi
47534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47535fi
47536
47537
47538fi
47539{ echo "$as_me:$LINENO: result: $samba_cv_REALPATH_TAKES_NULL" >&5
47540echo "${ECHO_T}$samba_cv_REALPATH_TAKES_NULL" >&6; }
47541if test x"$samba_cv_REALPATH_TAKES_NULL" = x"yes"; then
47542
47543cat >>confdefs.h <<\_ACEOF
47544#define REALPATH_TAKES_NULL 1
47545_ACEOF
47546
47547fi
47548
47549#################################################
47550# check for AFS clear-text auth support
47551samba_cv_WITH_AFS=no
47552{ echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
47553echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6; }
47554
47555# Check whether --with-afs was given.
47556if test "${with_afs+set}" = set; then
47557  withval=$with_afs;  case "$withval" in
47558  yes|auto)
47559    { echo "$as_me:$LINENO: result: $withval" >&5
47560echo "${ECHO_T}$withval" >&6; }
47561    samba_cv_WITH_AFS=$withval
47562    ;;
47563  *)
47564    { echo "$as_me:$LINENO: result: no" >&5
47565echo "${ECHO_T}no" >&6; }
47566    ;;
47567  esac
47568else
47569  { echo "$as_me:$LINENO: result: no" >&5
47570echo "${ECHO_T}no" >&6; }
47571
47572fi
47573
47574
47575####################################################
47576# check for Linux-specific AFS fake-kaserver support
47577samba_cv_WITH_FAKE_KASERVER=no
47578{ echo "$as_me:$LINENO: checking whether to use AFS fake-kaserver" >&5
47579echo $ECHO_N "checking whether to use AFS fake-kaserver... $ECHO_C" >&6; }
47580
47581# Check whether --with-fake-kaserver was given.
47582if test "${with_fake_kaserver+set}" = set; then
47583  withval=$with_fake_kaserver;  case "$withval" in
47584  yes|auto)
47585    { echo "$as_me:$LINENO: result: $withval" >&5
47586echo "${ECHO_T}$withval" >&6; }
47587    samba_cv_WITH_FAKE_KASERVER=$withval
47588    ;;
47589  *)
47590    { echo "$as_me:$LINENO: result: no" >&5
47591echo "${ECHO_T}no" >&6; }
47592    ;;
47593  esac
47594else
47595  { echo "$as_me:$LINENO: result: no" >&5
47596echo "${ECHO_T}no" >&6; }
47597
47598fi
47599
47600
47601#################################################
47602# decide whether we can support WITH_AFS and / or WITH_FAKE_KASERVER
47603if test x"$samba_cv_WITH_AFS" != x"no" ||
47604   test x"$samba_cv_WITH_FAKE_KASERVER" != x"no"; then
47605
47606    # see if this box has the afs-headers in /usr/include/afs
47607    { echo "$as_me:$LINENO: checking for /usr/include/afs" >&5
47608echo $ECHO_N "checking for /usr/include/afs... $ECHO_C" >&6; }
47609    if test -d /usr/include/afs; then
47610          CFLAGS="$CFLAGS -I/usr/include/afs"
47611          CPPFLAGS="$CPPFLAGS -I/usr/include/afs"
47612          { echo "$as_me:$LINENO: result: yes" >&5
47613echo "${ECHO_T}yes" >&6; }
47614    else
47615      { echo "$as_me:$LINENO: result: no" >&5
47616echo "${ECHO_T}no" >&6; }
47617    fi
47618
47619    # check for afs.h
47620    have_afs_headers=no
47621
47622
47623for ac_header in afs.h afs/afs.h
47624do
47625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47627  { echo "$as_me:$LINENO: checking for $ac_header" >&5
47628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47630  echo $ECHO_N "(cached) $ECHO_C" >&6
47631fi
47632ac_res=`eval echo '${'$as_ac_Header'}'`
47633	       { echo "$as_me:$LINENO: result: $ac_res" >&5
47634echo "${ECHO_T}$ac_res" >&6; }
47635else
47636  # Is the header compilable?
47637{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
47638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
47639cat >conftest.$ac_ext <<_ACEOF
47640/* confdefs.h.  */
47641_ACEOF
47642cat confdefs.h >>conftest.$ac_ext
47643cat >>conftest.$ac_ext <<_ACEOF
47644/* end confdefs.h.  */
47645$ac_includes_default
47646#include <$ac_header>
47647_ACEOF
47648rm -f conftest.$ac_objext
47649if { (ac_try="$ac_compile"
47650case "(($ac_try" in
47651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47652  *) ac_try_echo=$ac_try;;
47653esac
47654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47655  (eval "$ac_compile") 2>conftest.er1
47656  ac_status=$?
47657  grep -v '^ *+' conftest.er1 >conftest.err
47658  rm -f conftest.er1
47659  cat conftest.err >&5
47660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47661  (exit $ac_status); } && {
47662	 test -z "$ac_c_werror_flag" ||
47663	 test ! -s conftest.err
47664       } && test -s conftest.$ac_objext; then
47665  ac_header_compiler=yes
47666else
47667  echo "$as_me: failed program was:" >&5
47668sed 's/^/| /' conftest.$ac_ext >&5
47669
47670	ac_header_compiler=no
47671fi
47672
47673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47674{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47675echo "${ECHO_T}$ac_header_compiler" >&6; }
47676
47677# Is the header present?
47678{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
47679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
47680cat >conftest.$ac_ext <<_ACEOF
47681/* confdefs.h.  */
47682_ACEOF
47683cat confdefs.h >>conftest.$ac_ext
47684cat >>conftest.$ac_ext <<_ACEOF
47685/* end confdefs.h.  */
47686#include <$ac_header>
47687_ACEOF
47688if { (ac_try="$ac_cpp conftest.$ac_ext"
47689case "(($ac_try" in
47690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47691  *) ac_try_echo=$ac_try;;
47692esac
47693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47694  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47695  ac_status=$?
47696  grep -v '^ *+' conftest.er1 >conftest.err
47697  rm -f conftest.er1
47698  cat conftest.err >&5
47699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47700  (exit $ac_status); } >/dev/null && {
47701	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47702	 test ! -s conftest.err
47703       }; then
47704  ac_header_preproc=yes
47705else
47706  echo "$as_me: failed program was:" >&5
47707sed 's/^/| /' conftest.$ac_ext >&5
47708
47709  ac_header_preproc=no
47710fi
47711
47712rm -f conftest.err conftest.$ac_ext
47713{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47714echo "${ECHO_T}$ac_header_preproc" >&6; }
47715
47716# So?  What about this header?
47717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47718  yes:no: )
47719    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47721    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47723    ac_header_preproc=yes
47724    ;;
47725  no:yes:* )
47726    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47728    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47729echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47730    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47732    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47733echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47734    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47736    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47738
47739    ;;
47740esac
47741{ echo "$as_me:$LINENO: checking for $ac_header" >&5
47742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47744  echo $ECHO_N "(cached) $ECHO_C" >&6
47745else
47746  eval "$as_ac_Header=\$ac_header_preproc"
47747fi
47748ac_res=`eval echo '${'$as_ac_Header'}'`
47749	       { echo "$as_me:$LINENO: result: $ac_res" >&5
47750echo "${ECHO_T}$ac_res" >&6; }
47751
47752fi
47753if test `eval echo '${'$as_ac_Header'}'` = yes; then
47754  cat >>confdefs.h <<_ACEOF
47755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47756_ACEOF
47757
47758fi
47759
47760done
47761
47762    if test x"$ac_cv_header_afs_h" = x"no" && test x"$ac_cv_header_afs_afs_h" = x"no"; then
47763    	if test x"$samba_cv_WITH_FAKE_KASERVER" = x"auto" ||
47764	   test x"$samba_cv_WITH_AFS" = x"auto"; then
47765	    	{ echo "$as_me:$LINENO: WARNING: AFS cannot be supported without afs.h" >&5
47766echo "$as_me: WARNING: AFS cannot be supported without afs.h" >&2;}
47767	else
47768	    	{ { echo "$as_me:$LINENO: error: AFS cannot be supported without afs.h" >&5
47769echo "$as_me: error: AFS cannot be supported without afs.h" >&2;}
47770   { (exit 1); exit 1; }; }
47771	fi
47772    else
47773    	have_afs_headers=yes
47774    fi
47775fi
47776
47777if test x"$samba_cv_WITH_FAKE_KASERVER" != x"no" && test x"$have_afs_headers" = x"yes"; then
47778
47779cat >>confdefs.h <<\_ACEOF
47780#define WITH_FAKE_KASERVER 1
47781_ACEOF
47782
47783fi
47784
47785#################################################
47786# check whether to compile AFS/NT ACL mapping module
47787samba_cv_WITH_VFS_AFSACL=no
47788{ echo "$as_me:$LINENO: checking whether to use AFS ACL mapping module" >&5
47789echo $ECHO_N "checking whether to use AFS ACL mapping module... $ECHO_C" >&6; }
47790
47791# Check whether --with-vfs-afsacl was given.
47792if test "${with_vfs_afsacl+set}" = set; then
47793  withval=$with_vfs_afsacl;  case "$withval" in
47794  yes|auto)
47795    { echo "$as_me:$LINENO: result: $withval" >&5
47796echo "${ECHO_T}$withval" >&6; }
47797    samba_cv_WITH_VFS_AFSACL=yes
47798    ;;
47799  *)
47800    { echo "$as_me:$LINENO: result: no" >&5
47801echo "${ECHO_T}no" >&6; }
47802    ;;
47803  esac
47804else
47805  { echo "$as_me:$LINENO: result: no" >&5
47806echo "${ECHO_T}no" >&6; }
47807
47808fi
47809
47810
47811if test x"$samba_cv_WITH_VFS_AFSACL" = x"yes"; then
47812   default_shared_modules="$default_shared_modules vfs_afsacl"
47813fi
47814
47815if test x"$samba_cv_WITH_AFS" != x"no" && test x"$have_afs_headers" = x"yes"; then
47816
47817cat >>confdefs.h <<\_ACEOF
47818#define WITH_AFS 1
47819_ACEOF
47820
47821fi
47822
47823#################################################
47824# check for the DFS clear-text auth system
47825{ echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
47826echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6; }
47827
47828# Check whether --with-dfs was given.
47829if test "${with_dfs+set}" = set; then
47830  withval=$with_dfs;  case "$withval" in
47831  yes)
47832    { echo "$as_me:$LINENO: result: yes" >&5
47833echo "${ECHO_T}yes" >&6; }
47834
47835cat >>confdefs.h <<\_ACEOF
47836#define WITH_DFS 1
47837_ACEOF
47838
47839    ;;
47840  *)
47841    { echo "$as_me:$LINENO: result: no" >&5
47842echo "${ECHO_T}no" >&6; }
47843    ;;
47844  esac
47845else
47846  { echo "$as_me:$LINENO: result: no" >&5
47847echo "${ECHO_T}no" >&6; }
47848
47849fi
47850
47851
47852########################################################
47853# Compile with LDAP support?
47854
47855with_ldap_support=auto
47856{ echo "$as_me:$LINENO: checking for LDAP support" >&5
47857echo $ECHO_N "checking for LDAP support... $ECHO_C" >&6; }
47858
47859
47860# Check whether --with-ldap was given.
47861if test "${with_ldap+set}" = set; then
47862  withval=$with_ldap;  case "$withval" in
47863    yes|no)
47864	with_ldap_support=$withval
47865	;;
47866  esac
47867fi
47868
47869
47870{ echo "$as_me:$LINENO: result: $with_ldap_support" >&5
47871echo "${ECHO_T}$with_ldap_support" >&6; }
47872
47873SMBLDAP=""
47874
47875SMBLDAPUTIL=""
47876
47877LDBLDAP=""
47878
47879
47880if test x"$with_ldap_support" != x"no"; then
47881
47882  ##################################################################
47883  # first test for ldap.h and lber.h
47884  # (ldap.h is required for this test)
47885
47886
47887for ac_header in ldap.h lber.h
47888do
47889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47891  { echo "$as_me:$LINENO: checking for $ac_header" >&5
47892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47894  echo $ECHO_N "(cached) $ECHO_C" >&6
47895fi
47896ac_res=`eval echo '${'$as_ac_Header'}'`
47897	       { echo "$as_me:$LINENO: result: $ac_res" >&5
47898echo "${ECHO_T}$ac_res" >&6; }
47899else
47900  # Is the header compilable?
47901{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
47902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
47903cat >conftest.$ac_ext <<_ACEOF
47904/* confdefs.h.  */
47905_ACEOF
47906cat confdefs.h >>conftest.$ac_ext
47907cat >>conftest.$ac_ext <<_ACEOF
47908/* end confdefs.h.  */
47909$ac_includes_default
47910#include <$ac_header>
47911_ACEOF
47912rm -f conftest.$ac_objext
47913if { (ac_try="$ac_compile"
47914case "(($ac_try" in
47915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47916  *) ac_try_echo=$ac_try;;
47917esac
47918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47919  (eval "$ac_compile") 2>conftest.er1
47920  ac_status=$?
47921  grep -v '^ *+' conftest.er1 >conftest.err
47922  rm -f conftest.er1
47923  cat conftest.err >&5
47924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47925  (exit $ac_status); } && {
47926	 test -z "$ac_c_werror_flag" ||
47927	 test ! -s conftest.err
47928       } && test -s conftest.$ac_objext; then
47929  ac_header_compiler=yes
47930else
47931  echo "$as_me: failed program was:" >&5
47932sed 's/^/| /' conftest.$ac_ext >&5
47933
47934	ac_header_compiler=no
47935fi
47936
47937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47938{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47939echo "${ECHO_T}$ac_header_compiler" >&6; }
47940
47941# Is the header present?
47942{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
47943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
47944cat >conftest.$ac_ext <<_ACEOF
47945/* confdefs.h.  */
47946_ACEOF
47947cat confdefs.h >>conftest.$ac_ext
47948cat >>conftest.$ac_ext <<_ACEOF
47949/* end confdefs.h.  */
47950#include <$ac_header>
47951_ACEOF
47952if { (ac_try="$ac_cpp conftest.$ac_ext"
47953case "(($ac_try" in
47954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47955  *) ac_try_echo=$ac_try;;
47956esac
47957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47958  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47959  ac_status=$?
47960  grep -v '^ *+' conftest.er1 >conftest.err
47961  rm -f conftest.er1
47962  cat conftest.err >&5
47963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964  (exit $ac_status); } >/dev/null && {
47965	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47966	 test ! -s conftest.err
47967       }; then
47968  ac_header_preproc=yes
47969else
47970  echo "$as_me: failed program was:" >&5
47971sed 's/^/| /' conftest.$ac_ext >&5
47972
47973  ac_header_preproc=no
47974fi
47975
47976rm -f conftest.err conftest.$ac_ext
47977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47978echo "${ECHO_T}$ac_header_preproc" >&6; }
47979
47980# So?  What about this header?
47981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47982  yes:no: )
47983    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47987    ac_header_preproc=yes
47988    ;;
47989  no:yes:* )
47990    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47992    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47993echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47994    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47996    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47997echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48000    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48002
48003    ;;
48004esac
48005{ echo "$as_me:$LINENO: checking for $ac_header" >&5
48006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48008  echo $ECHO_N "(cached) $ECHO_C" >&6
48009else
48010  eval "$as_ac_Header=\$ac_header_preproc"
48011fi
48012ac_res=`eval echo '${'$as_ac_Header'}'`
48013	       { echo "$as_me:$LINENO: result: $ac_res" >&5
48014echo "${ECHO_T}$ac_res" >&6; }
48015
48016fi
48017if test `eval echo '${'$as_ac_Header'}'` = yes; then
48018  cat >>confdefs.h <<_ACEOF
48019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48020_ACEOF
48021
48022fi
48023
48024done
48025
48026
48027  if test x"$ac_cv_header_ldap_h" != x"yes"; then
48028	if test x"$with_ldap_support" = x"yes"; then
48029	 { { echo "$as_me:$LINENO: error: ldap.h is needed for LDAP support" >&5
48030echo "$as_me: error: ldap.h is needed for LDAP support" >&2;}
48031   { (exit 1); exit 1; }; }
48032	else
48033	 { echo "$as_me:$LINENO: WARNING: ldap.h is needed for LDAP support" >&5
48034echo "$as_me: WARNING: ldap.h is needed for LDAP support" >&2;}
48035	fi
48036
48037	with_ldap_support=no
48038  fi
48039
48040  ##################################################################
48041  # HP/UX does not have ber_tag_t in lber.h - it must be configured as
48042  # unsigned int in include/includes.h
48043  case $host_os in
48044	*hpux*)
48045	 { echo "$as_me:$LINENO: WARNING: ber_tag_t is needed for LDAP support" >&5
48046echo "$as_me: WARNING: ber_tag_t is needed for LDAP support" >&2;}
48047	 { echo "$as_me:$LINENO: WARNING: ber_tag_t must be configured in includes.h for hpux" >&5
48048echo "$as_me: WARNING: ber_tag_t must be configured in includes.h for hpux" >&2;}
48049	with_ldap_support=yes
48050  	;;
48051	*)
48052  	{ echo "$as_me:$LINENO: checking for ber_tag_t" >&5
48053echo $ECHO_N "checking for ber_tag_t... $ECHO_C" >&6; }
48054if test "${ac_cv_type_ber_tag_t+set}" = set; then
48055  echo $ECHO_N "(cached) $ECHO_C" >&6
48056else
48057  cat >conftest.$ac_ext <<_ACEOF
48058/* confdefs.h.  */
48059_ACEOF
48060cat confdefs.h >>conftest.$ac_ext
48061cat >>conftest.$ac_ext <<_ACEOF
48062/* end confdefs.h.  */
48063#include <lber.h>
48064
48065typedef ber_tag_t ac__type_new_;
48066int
48067main ()
48068{
48069if ((ac__type_new_ *) 0)
48070  return 0;
48071if (sizeof (ac__type_new_))
48072  return 0;
48073  ;
48074  return 0;
48075}
48076_ACEOF
48077rm -f conftest.$ac_objext
48078if { (ac_try="$ac_compile"
48079case "(($ac_try" in
48080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48081  *) ac_try_echo=$ac_try;;
48082esac
48083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48084  (eval "$ac_compile") 2>conftest.er1
48085  ac_status=$?
48086  grep -v '^ *+' conftest.er1 >conftest.err
48087  rm -f conftest.er1
48088  cat conftest.err >&5
48089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48090  (exit $ac_status); } && {
48091	 test -z "$ac_c_werror_flag" ||
48092	 test ! -s conftest.err
48093       } && test -s conftest.$ac_objext; then
48094  ac_cv_type_ber_tag_t=yes
48095else
48096  echo "$as_me: failed program was:" >&5
48097sed 's/^/| /' conftest.$ac_ext >&5
48098
48099	ac_cv_type_ber_tag_t=no
48100fi
48101
48102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48103fi
48104{ echo "$as_me:$LINENO: result: $ac_cv_type_ber_tag_t" >&5
48105echo "${ECHO_T}$ac_cv_type_ber_tag_t" >&6; }
48106
48107  	if test x"$ac_cv_type_ber_tag_t" != x"yes"; then
48108		if test x"$with_ldap_support" = x"yes"; then
48109	 	{ { echo "$as_me:$LINENO: error: ber_tag_t is needed for LDAP support" >&5
48110echo "$as_me: error: ber_tag_t is needed for LDAP support" >&2;}
48111   { (exit 1); exit 1; }; }
48112		else
48113	 	{ echo "$as_me:$LINENO: WARNING: ber_tag_t is needed for LDAP support" >&5
48114echo "$as_me: WARNING: ber_tag_t is needed for LDAP support" >&2;}
48115		fi
48116		with_ldap_support=no
48117  	fi
48118  	;;
48119  esac
48120fi
48121
48122if test x"$with_ldap_support" != x"no"; then
48123  ac_save_LIBS=$LIBS
48124
48125  ##################################################################
48126  # we might need the lber lib on some systems. To avoid link errors
48127  # this test must be before the libldap test
48128
48129
48130
48131ac_check_lib_ext_save_LIBS=$LIBS
48132LIBS="-llber $LDAP_LIBS  $LIBS"
48133
48134
48135
48136
48137        { echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
48138echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6; }
48139if test "${ac_cv_lib_ext_lber_ber_scanf+set}" = set; then
48140  echo $ECHO_N "(cached) $ECHO_C" >&6
48141else
48142  cat >conftest.$ac_ext <<_ACEOF
48143/* confdefs.h.  */
48144_ACEOF
48145cat confdefs.h >>conftest.$ac_ext
48146cat >>conftest.$ac_ext <<_ACEOF
48147/* end confdefs.h.  */
48148
48149/* Override any GCC internal prototype to avoid an error.
48150   Use char because int might match the return type of a GCC
48151   builtin and then its argument prototype would still apply.  */
48152#ifdef __cplusplus
48153extern "C"
48154#endif
48155char ber_scanf ();
48156int
48157main ()
48158{
48159return ber_scanf ();
48160  ;
48161  return 0;
48162}
48163_ACEOF
48164rm -f conftest.$ac_objext conftest$ac_exeext
48165if { (ac_try="$ac_link"
48166case "(($ac_try" in
48167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48168  *) ac_try_echo=$ac_try;;
48169esac
48170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48171  (eval "$ac_link") 2>conftest.er1
48172  ac_status=$?
48173  grep -v '^ *+' conftest.er1 >conftest.err
48174  rm -f conftest.er1
48175  cat conftest.err >&5
48176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48177  (exit $ac_status); } && {
48178	 test -z "$ac_c_werror_flag" ||
48179	 test ! -s conftest.err
48180       } && test -s conftest$ac_exeext &&
48181       $as_test_x conftest$ac_exeext; then
48182  ac_cv_lib_ext_lber_ber_scanf=yes;
48183		  ac_cv_lib_ext_lber=yes
48184else
48185  echo "$as_me: failed program was:" >&5
48186sed 's/^/| /' conftest.$ac_ext >&5
48187
48188	ac_cv_lib_ext_lber_ber_scanf=no;
48189		  ac_cv_lib_ext_lber=no
48190fi
48191
48192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48193      conftest$ac_exeext conftest.$ac_ext
48194
48195fi
48196{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_lber_ber_scanf" >&5
48197echo "${ECHO_T}$ac_cv_lib_ext_lber_ber_scanf" >&6; }
48198    if test $ac_cv_lib_ext_lber_ber_scanf = yes; then
48199  cat >>confdefs.h <<_ACEOF
48200#define HAVE_BER_SCANF 1
48201_ACEOF
48202
48203fi
48204
48205LIBS=$ac_check_lib_ext_save_LIBS
48206
48207if test $ac_cv_lib_ext_lber = yes; then
48208  cat >>confdefs.h <<_ACEOF
48209#define HAVE_LIBLBER 1
48210_ACEOF
48211
48212		case "$LDAP_LIBS" in
48213		    *-llber*)
48214			;;
48215		    *)
48216			LDAP_LIBS="-llber $LDAP_LIBS"
48217			;;
48218		esac
48219
48220
48221fi
48222
48223
48224  ########################################################
48225  # now see if we can find the ldap libs in standard paths
48226
48227
48228
48229ac_check_lib_ext_save_LIBS=$LIBS
48230LIBS="-lldap $LDAP_LIBS  $LIBS"
48231
48232
48233
48234
48235        { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
48236echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
48237if test "${ac_cv_lib_ext_ldap_ldap_init+set}" = set; then
48238  echo $ECHO_N "(cached) $ECHO_C" >&6
48239else
48240  cat >conftest.$ac_ext <<_ACEOF
48241/* confdefs.h.  */
48242_ACEOF
48243cat confdefs.h >>conftest.$ac_ext
48244cat >>conftest.$ac_ext <<_ACEOF
48245/* end confdefs.h.  */
48246
48247/* Override any GCC internal prototype to avoid an error.
48248   Use char because int might match the return type of a GCC
48249   builtin and then its argument prototype would still apply.  */
48250#ifdef __cplusplus
48251extern "C"
48252#endif
48253char ldap_init ();
48254int
48255main ()
48256{
48257return ldap_init ();
48258  ;
48259  return 0;
48260}
48261_ACEOF
48262rm -f conftest.$ac_objext conftest$ac_exeext
48263if { (ac_try="$ac_link"
48264case "(($ac_try" in
48265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48266  *) ac_try_echo=$ac_try;;
48267esac
48268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48269  (eval "$ac_link") 2>conftest.er1
48270  ac_status=$?
48271  grep -v '^ *+' conftest.er1 >conftest.err
48272  rm -f conftest.er1
48273  cat conftest.err >&5
48274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48275  (exit $ac_status); } && {
48276	 test -z "$ac_c_werror_flag" ||
48277	 test ! -s conftest.err
48278       } && test -s conftest$ac_exeext &&
48279       $as_test_x conftest$ac_exeext; then
48280  ac_cv_lib_ext_ldap_ldap_init=yes;
48281		  ac_cv_lib_ext_ldap=yes
48282else
48283  echo "$as_me: failed program was:" >&5
48284sed 's/^/| /' conftest.$ac_ext >&5
48285
48286	ac_cv_lib_ext_ldap_ldap_init=no;
48287		  ac_cv_lib_ext_ldap=no
48288fi
48289
48290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48291      conftest$ac_exeext conftest.$ac_ext
48292
48293fi
48294{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_ldap_ldap_init" >&5
48295echo "${ECHO_T}$ac_cv_lib_ext_ldap_ldap_init" >&6; }
48296    if test $ac_cv_lib_ext_ldap_ldap_init = yes; then
48297  cat >>confdefs.h <<_ACEOF
48298#define HAVE_LDAP_INIT 1
48299_ACEOF
48300
48301fi
48302
48303LIBS=$ac_check_lib_ext_save_LIBS
48304
48305if test $ac_cv_lib_ext_ldap = yes; then
48306  cat >>confdefs.h <<_ACEOF
48307#define HAVE_LIBLDAP 1
48308_ACEOF
48309
48310		case "$LDAP_LIBS" in
48311		    *-lldap*)
48312			;;
48313		    *)
48314			LDAP_LIBS="-lldap $LDAP_LIBS"
48315			;;
48316		esac
48317
48318
48319fi
48320
48321
48322  ########################################################
48323  # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
48324  # Check found in pam_ldap 145.
48325
48326
48327
48328    ac_check_func_ext_save_LIBS=$LIBS
48329    LIBS="$LDAP_LIBS $LIBS"
48330        { echo "$as_me:$LINENO: checking for ldap_set_rebind_proc" >&5
48331echo $ECHO_N "checking for ldap_set_rebind_proc... $ECHO_C" >&6; }
48332if test "${ac_cv_func_ext_ldap_set_rebind_proc+set}" = set; then
48333  echo $ECHO_N "(cached) $ECHO_C" >&6
48334else
48335  cat >conftest.$ac_ext <<_ACEOF
48336/* confdefs.h.  */
48337_ACEOF
48338cat confdefs.h >>conftest.$ac_ext
48339cat >>conftest.$ac_ext <<_ACEOF
48340/* end confdefs.h.  */
48341/* Define ldap_set_rebind_proc to an innocuous variant, in case <limits.h> declares ldap_set_rebind_proc.
48342   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48343#define ldap_set_rebind_proc innocuous_ldap_set_rebind_proc
48344
48345/* System header to define __stub macros and hopefully few prototypes,
48346    which can conflict with char ldap_set_rebind_proc (); below.
48347    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48348    <limits.h> exists even on freestanding compilers.  */
48349
48350#ifdef __STDC__
48351# include <limits.h>
48352#else
48353# include <assert.h>
48354#endif
48355
48356#undef ldap_set_rebind_proc
48357
48358/* Override any GCC internal prototype to avoid an error.
48359   Use char because int might match the return type of a GCC
48360   builtin and then its argument prototype would still apply.  */
48361#ifdef __cplusplus
48362extern "C"
48363#endif
48364char ldap_set_rebind_proc ();
48365/* The GNU C library defines this for functions which it implements
48366    to always fail with ENOSYS.  Some functions are actually named
48367    something starting with __ and the normal name is an alias.  */
48368#if defined __stub_ldap_set_rebind_proc || defined __stub___ldap_set_rebind_proc
48369choke me
48370#endif
48371
48372int
48373main ()
48374{
48375return ldap_set_rebind_proc ();
48376  ;
48377  return 0;
48378}
48379_ACEOF
48380rm -f conftest.$ac_objext conftest$ac_exeext
48381if { (ac_try="$ac_link"
48382case "(($ac_try" in
48383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48384  *) ac_try_echo=$ac_try;;
48385esac
48386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48387  (eval "$ac_link") 2>conftest.er1
48388  ac_status=$?
48389  grep -v '^ *+' conftest.er1 >conftest.err
48390  rm -f conftest.er1
48391  cat conftest.err >&5
48392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48393  (exit $ac_status); } && {
48394	 test -z "$ac_c_werror_flag" ||
48395	 test ! -s conftest.err
48396       } && test -s conftest$ac_exeext &&
48397       $as_test_x conftest$ac_exeext; then
48398  ac_cv_func_ext_ldap_set_rebind_proc=yes
48399else
48400  echo "$as_me: failed program was:" >&5
48401sed 's/^/| /' conftest.$ac_ext >&5
48402
48403	ac_cv_func_ext_ldap_set_rebind_proc=no
48404fi
48405
48406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48407      conftest$ac_exeext conftest.$ac_ext
48408fi
48409{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_set_rebind_proc" >&5
48410echo "${ECHO_T}$ac_cv_func_ext_ldap_set_rebind_proc" >&6; }
48411    LIBS=$ac_check_func_ext_save_LIBS
48412    if test $ac_cv_func_ext_ldap_set_rebind_proc = yes; then
48413  cat >>confdefs.h <<_ACEOF
48414#define HAVE_LDAP_SET_REBIND_PROC 1
48415_ACEOF
48416
48417fi
48418
48419
48420  LIBS="$LIBS $LDAP_LIBS"
48421  { echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
48422echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6; }
48423if test "${smb_ldap_cv_ldap_set_rebind_proc+set}" = set; then
48424  echo $ECHO_N "(cached) $ECHO_C" >&6
48425else
48426
48427    cat >conftest.$ac_ext <<_ACEOF
48428/* confdefs.h.  */
48429_ACEOF
48430cat confdefs.h >>conftest.$ac_ext
48431cat >>conftest.$ac_ext <<_ACEOF
48432/* end confdefs.h.  */
48433
48434	#include <lber.h>
48435	#include <ldap.h>
48436int
48437main ()
48438{
48439ldap_set_rebind_proc(0, 0, 0);
48440  ;
48441  return 0;
48442}
48443_ACEOF
48444rm -f conftest.$ac_objext
48445if { (ac_try="$ac_compile"
48446case "(($ac_try" in
48447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48448  *) ac_try_echo=$ac_try;;
48449esac
48450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48451  (eval "$ac_compile") 2>conftest.er1
48452  ac_status=$?
48453  grep -v '^ *+' conftest.er1 >conftest.err
48454  rm -f conftest.er1
48455  cat conftest.err >&5
48456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48457  (exit $ac_status); } && {
48458	 test -z "$ac_c_werror_flag" ||
48459	 test ! -s conftest.err
48460       } && test -s conftest.$ac_objext; then
48461  smb_ldap_cv_ldap_set_rebind_proc=3
48462else
48463  echo "$as_me: failed program was:" >&5
48464sed 's/^/| /' conftest.$ac_ext >&5
48465
48466	smb_ldap_cv_ldap_set_rebind_proc=2
48467
48468fi
48469
48470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48471
48472fi
48473{ echo "$as_me:$LINENO: result: $smb_ldap_cv_ldap_set_rebind_proc" >&5
48474echo "${ECHO_T}$smb_ldap_cv_ldap_set_rebind_proc" >&6; }
48475
48476
48477cat >>confdefs.h <<_ACEOF
48478#define LDAP_SET_REBIND_PROC_ARGS $smb_ldap_cv_ldap_set_rebind_proc
48479_ACEOF
48480
48481
48482
48483
48484
48485    ac_check_func_ext_save_LIBS=$LIBS
48486    LIBS="$LDAP_LIBS $LIBS"
48487        { echo "$as_me:$LINENO: checking for ldap_initialize" >&5
48488echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6; }
48489if test "${ac_cv_func_ext_ldap_initialize+set}" = set; then
48490  echo $ECHO_N "(cached) $ECHO_C" >&6
48491else
48492  cat >conftest.$ac_ext <<_ACEOF
48493/* confdefs.h.  */
48494_ACEOF
48495cat confdefs.h >>conftest.$ac_ext
48496cat >>conftest.$ac_ext <<_ACEOF
48497/* end confdefs.h.  */
48498/* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize.
48499   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48500#define ldap_initialize innocuous_ldap_initialize
48501
48502/* System header to define __stub macros and hopefully few prototypes,
48503    which can conflict with char ldap_initialize (); below.
48504    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48505    <limits.h> exists even on freestanding compilers.  */
48506
48507#ifdef __STDC__
48508# include <limits.h>
48509#else
48510# include <assert.h>
48511#endif
48512
48513#undef ldap_initialize
48514
48515/* Override any GCC internal prototype to avoid an error.
48516   Use char because int might match the return type of a GCC
48517   builtin and then its argument prototype would still apply.  */
48518#ifdef __cplusplus
48519extern "C"
48520#endif
48521char ldap_initialize ();
48522/* The GNU C library defines this for functions which it implements
48523    to always fail with ENOSYS.  Some functions are actually named
48524    something starting with __ and the normal name is an alias.  */
48525#if defined __stub_ldap_initialize || defined __stub___ldap_initialize
48526choke me
48527#endif
48528
48529int
48530main ()
48531{
48532return ldap_initialize ();
48533  ;
48534  return 0;
48535}
48536_ACEOF
48537rm -f conftest.$ac_objext conftest$ac_exeext
48538if { (ac_try="$ac_link"
48539case "(($ac_try" in
48540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48541  *) ac_try_echo=$ac_try;;
48542esac
48543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48544  (eval "$ac_link") 2>conftest.er1
48545  ac_status=$?
48546  grep -v '^ *+' conftest.er1 >conftest.err
48547  rm -f conftest.er1
48548  cat conftest.err >&5
48549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48550  (exit $ac_status); } && {
48551	 test -z "$ac_c_werror_flag" ||
48552	 test ! -s conftest.err
48553       } && test -s conftest$ac_exeext &&
48554       $as_test_x conftest$ac_exeext; then
48555  ac_cv_func_ext_ldap_initialize=yes
48556else
48557  echo "$as_me: failed program was:" >&5
48558sed 's/^/| /' conftest.$ac_ext >&5
48559
48560	ac_cv_func_ext_ldap_initialize=no
48561fi
48562
48563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48564      conftest$ac_exeext conftest.$ac_ext
48565fi
48566{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_initialize" >&5
48567echo "${ECHO_T}$ac_cv_func_ext_ldap_initialize" >&6; }
48568    LIBS=$ac_check_func_ext_save_LIBS
48569    if test $ac_cv_func_ext_ldap_initialize = yes; then
48570  cat >>confdefs.h <<_ACEOF
48571#define HAVE_LDAP_INITIALIZE 1
48572_ACEOF
48573
48574fi
48575
48576
48577  if test x"$ac_cv_lib_ext_ldap_ldap_init" = x"yes"; then
48578
48579cat >>confdefs.h <<\_ACEOF
48580#define HAVE_LDAP 1
48581_ACEOF
48582
48583    CPPFLAGS="$CPPFLAGS -DLDAP_DEPRECATED"
48584    default_static_modules="$default_static_modules pdb_ldap idmap_ldap";
48585    default_shared_modules="$default_shared_modules";
48586    SMBLDAP="lib/smbldap.o"
48587    SMBLDAPUTIL="lib/smbldap_util.o"
48588    with_ldap_support=yes
48589    { echo "$as_me:$LINENO: checking whether LDAP support is used" >&5
48590echo $ECHO_N "checking whether LDAP support is used... $ECHO_C" >&6; }
48591    { echo "$as_me:$LINENO: result: yes" >&5
48592echo "${ECHO_T}yes" >&6; }
48593  else
48594    if test x"$with_ldap_support" = x"yes"; then
48595	{ { echo "$as_me:$LINENO: error: libldap is needed for LDAP support" >&5
48596echo "$as_me: error: libldap is needed for LDAP support" >&2;}
48597   { (exit 1); exit 1; }; }
48598    else
48599	{ echo "$as_me:$LINENO: WARNING: libldap is needed for LDAP support" >&5
48600echo "$as_me: WARNING: libldap is needed for LDAP support" >&2;}
48601    fi
48602
48603    LDAP_LIBS=""
48604    with_ldap_support=no
48605  fi
48606  LIBS=$ac_save_LIBS
48607fi
48608
48609
48610#################################################
48611# active directory support
48612
48613with_ads_support=auto
48614{ echo "$as_me:$LINENO: checking for Active Directory and krb5 support" >&5
48615echo $ECHO_N "checking for Active Directory and krb5 support... $ECHO_C" >&6; }
48616
48617
48618# Check whether --with-ads was given.
48619if test "${with_ads+set}" = set; then
48620  withval=$with_ads;  case "$withval" in
48621    yes|no)
48622	with_ads_support="$withval"
48623	;;
48624  esac
48625fi
48626
48627
48628{ echo "$as_me:$LINENO: result: $with_ads_support" >&5
48629echo "${ECHO_T}$with_ads_support" >&6; }
48630
48631FOUND_KRB5=no
48632KRB5_LIBS=""
48633
48634if test x"$with_ldap_support" != x"yes"; then
48635
48636    if test x"$with_ads_support" = x"yes"; then
48637	{ { echo "$as_me:$LINENO: error: Active Directory Support requires LDAP support" >&5
48638echo "$as_me: error: Active Directory Support requires LDAP support" >&2;}
48639   { (exit 1); exit 1; }; }
48640    elif test x"$with_ads_support" = x"auto"; then
48641	{ echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires LDAP support)" >&5
48642echo "$as_me: WARNING: Disabling Active Directory support (requires LDAP support)" >&2;}
48643	with_ads_support=no
48644    fi
48645
48646else
48647
48648    # Check to see whether there is enough LDAP functionality to be able
48649    # to build AD support.
48650
48651# HPUX only has ldap_init; ok, we take care of this in smbldap.c
48652case "$host_os" in
48653	*hpux*)
48654
48655
48656
48657    ac_check_func_ext_save_LIBS=$LIBS
48658    LIBS="$LDAP_LIBS $LIBS"
48659        { echo "$as_me:$LINENO: checking for ldap_init" >&5
48660echo $ECHO_N "checking for ldap_init... $ECHO_C" >&6; }
48661if test "${ac_cv_func_ext_ldap_init+set}" = set; then
48662  echo $ECHO_N "(cached) $ECHO_C" >&6
48663else
48664  cat >conftest.$ac_ext <<_ACEOF
48665/* confdefs.h.  */
48666_ACEOF
48667cat confdefs.h >>conftest.$ac_ext
48668cat >>conftest.$ac_ext <<_ACEOF
48669/* end confdefs.h.  */
48670/* Define ldap_init to an innocuous variant, in case <limits.h> declares ldap_init.
48671   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48672#define ldap_init innocuous_ldap_init
48673
48674/* System header to define __stub macros and hopefully few prototypes,
48675    which can conflict with char ldap_init (); below.
48676    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48677    <limits.h> exists even on freestanding compilers.  */
48678
48679#ifdef __STDC__
48680# include <limits.h>
48681#else
48682# include <assert.h>
48683#endif
48684
48685#undef ldap_init
48686
48687/* Override any GCC internal prototype to avoid an error.
48688   Use char because int might match the return type of a GCC
48689   builtin and then its argument prototype would still apply.  */
48690#ifdef __cplusplus
48691extern "C"
48692#endif
48693char ldap_init ();
48694/* The GNU C library defines this for functions which it implements
48695    to always fail with ENOSYS.  Some functions are actually named
48696    something starting with __ and the normal name is an alias.  */
48697#if defined __stub_ldap_init || defined __stub___ldap_init
48698choke me
48699#endif
48700
48701int
48702main ()
48703{
48704return ldap_init ();
48705  ;
48706  return 0;
48707}
48708_ACEOF
48709rm -f conftest.$ac_objext conftest$ac_exeext
48710if { (ac_try="$ac_link"
48711case "(($ac_try" in
48712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48713  *) ac_try_echo=$ac_try;;
48714esac
48715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48716  (eval "$ac_link") 2>conftest.er1
48717  ac_status=$?
48718  grep -v '^ *+' conftest.er1 >conftest.err
48719  rm -f conftest.er1
48720  cat conftest.err >&5
48721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48722  (exit $ac_status); } && {
48723	 test -z "$ac_c_werror_flag" ||
48724	 test ! -s conftest.err
48725       } && test -s conftest$ac_exeext &&
48726       $as_test_x conftest$ac_exeext; then
48727  ac_cv_func_ext_ldap_init=yes
48728else
48729  echo "$as_me: failed program was:" >&5
48730sed 's/^/| /' conftest.$ac_ext >&5
48731
48732	ac_cv_func_ext_ldap_init=no
48733fi
48734
48735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48736      conftest$ac_exeext conftest.$ac_ext
48737fi
48738{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_init" >&5
48739echo "${ECHO_T}$ac_cv_func_ext_ldap_init" >&6; }
48740    LIBS=$ac_check_func_ext_save_LIBS
48741    if test $ac_cv_func_ext_ldap_init = yes; then
48742  cat >>confdefs.h <<_ACEOF
48743#define HAVE_LDAP_INIT 1
48744_ACEOF
48745
48746fi
48747
48748
48749    if test x"$ac_cv_func_ext_ldap_init" != x"yes"; then
48750	if test x"$with_ads_support" = x"yes"; then
48751	    { { echo "$as_me:$LINENO: error: Active Directory support on HPUX requires ldap_init" >&5
48752echo "$as_me: error: Active Directory support on HPUX requires ldap_init" >&2;}
48753   { (exit 1); exit 1; }; }
48754	elif test x"$with_ads_support" = x"auto"; then
48755	    { echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_init on HPUX)" >&5
48756echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_init on HPUX)" >&2;}
48757	    with_ads_support=no
48758	fi
48759    fi
48760    ;;
48761	*)
48762
48763
48764
48765    ac_check_func_ext_save_LIBS=$LIBS
48766    LIBS="$LDAP_LIBS $LIBS"
48767        { echo "$as_me:$LINENO: checking for ldap_initialize" >&5
48768echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6; }
48769if test "${ac_cv_func_ext_ldap_initialize+set}" = set; then
48770  echo $ECHO_N "(cached) $ECHO_C" >&6
48771else
48772  cat >conftest.$ac_ext <<_ACEOF
48773/* confdefs.h.  */
48774_ACEOF
48775cat confdefs.h >>conftest.$ac_ext
48776cat >>conftest.$ac_ext <<_ACEOF
48777/* end confdefs.h.  */
48778/* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize.
48779   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48780#define ldap_initialize innocuous_ldap_initialize
48781
48782/* System header to define __stub macros and hopefully few prototypes,
48783    which can conflict with char ldap_initialize (); below.
48784    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48785    <limits.h> exists even on freestanding compilers.  */
48786
48787#ifdef __STDC__
48788# include <limits.h>
48789#else
48790# include <assert.h>
48791#endif
48792
48793#undef ldap_initialize
48794
48795/* Override any GCC internal prototype to avoid an error.
48796   Use char because int might match the return type of a GCC
48797   builtin and then its argument prototype would still apply.  */
48798#ifdef __cplusplus
48799extern "C"
48800#endif
48801char ldap_initialize ();
48802/* The GNU C library defines this for functions which it implements
48803    to always fail with ENOSYS.  Some functions are actually named
48804    something starting with __ and the normal name is an alias.  */
48805#if defined __stub_ldap_initialize || defined __stub___ldap_initialize
48806choke me
48807#endif
48808
48809int
48810main ()
48811{
48812return ldap_initialize ();
48813  ;
48814  return 0;
48815}
48816_ACEOF
48817rm -f conftest.$ac_objext conftest$ac_exeext
48818if { (ac_try="$ac_link"
48819case "(($ac_try" in
48820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48821  *) ac_try_echo=$ac_try;;
48822esac
48823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48824  (eval "$ac_link") 2>conftest.er1
48825  ac_status=$?
48826  grep -v '^ *+' conftest.er1 >conftest.err
48827  rm -f conftest.er1
48828  cat conftest.err >&5
48829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48830  (exit $ac_status); } && {
48831	 test -z "$ac_c_werror_flag" ||
48832	 test ! -s conftest.err
48833       } && test -s conftest$ac_exeext &&
48834       $as_test_x conftest$ac_exeext; then
48835  ac_cv_func_ext_ldap_initialize=yes
48836else
48837  echo "$as_me: failed program was:" >&5
48838sed 's/^/| /' conftest.$ac_ext >&5
48839
48840	ac_cv_func_ext_ldap_initialize=no
48841fi
48842
48843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48844      conftest$ac_exeext conftest.$ac_ext
48845fi
48846{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_initialize" >&5
48847echo "${ECHO_T}$ac_cv_func_ext_ldap_initialize" >&6; }
48848    LIBS=$ac_check_func_ext_save_LIBS
48849    if test $ac_cv_func_ext_ldap_initialize = yes; then
48850  cat >>confdefs.h <<_ACEOF
48851#define HAVE_LDAP_INITIALIZE 1
48852_ACEOF
48853
48854fi
48855
48856
48857    if test x"$ac_cv_func_ext_ldap_initialize" != x"yes"; then
48858	if test x"$with_ads_support" = x"yes"; then
48859	    { { echo "$as_me:$LINENO: error: Active Directory support requires ldap_initialize" >&5
48860echo "$as_me: error: Active Directory support requires ldap_initialize" >&2;}
48861   { (exit 1); exit 1; }; }
48862	elif test x"$with_ads_support" = x"auto"; then
48863	    { echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_initialize)" >&5
48864echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_initialize)" >&2;}
48865	    with_ads_support=no
48866	fi
48867    fi
48868    ;;
48869esac
48870
48871
48872
48873
48874
48875    ac_check_func_ext_save_LIBS=$LIBS
48876    LIBS="$LDAP_LIBS $LIBS"
48877        { echo "$as_me:$LINENO: checking for ldap_add_result_entry" >&5
48878echo $ECHO_N "checking for ldap_add_result_entry... $ECHO_C" >&6; }
48879if test "${ac_cv_func_ext_ldap_add_result_entry+set}" = set; then
48880  echo $ECHO_N "(cached) $ECHO_C" >&6
48881else
48882  cat >conftest.$ac_ext <<_ACEOF
48883/* confdefs.h.  */
48884_ACEOF
48885cat confdefs.h >>conftest.$ac_ext
48886cat >>conftest.$ac_ext <<_ACEOF
48887/* end confdefs.h.  */
48888/* Define ldap_add_result_entry to an innocuous variant, in case <limits.h> declares ldap_add_result_entry.
48889   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48890#define ldap_add_result_entry innocuous_ldap_add_result_entry
48891
48892/* System header to define __stub macros and hopefully few prototypes,
48893    which can conflict with char ldap_add_result_entry (); below.
48894    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48895    <limits.h> exists even on freestanding compilers.  */
48896
48897#ifdef __STDC__
48898# include <limits.h>
48899#else
48900# include <assert.h>
48901#endif
48902
48903#undef ldap_add_result_entry
48904
48905/* Override any GCC internal prototype to avoid an error.
48906   Use char because int might match the return type of a GCC
48907   builtin and then its argument prototype would still apply.  */
48908#ifdef __cplusplus
48909extern "C"
48910#endif
48911char ldap_add_result_entry ();
48912/* The GNU C library defines this for functions which it implements
48913    to always fail with ENOSYS.  Some functions are actually named
48914    something starting with __ and the normal name is an alias.  */
48915#if defined __stub_ldap_add_result_entry || defined __stub___ldap_add_result_entry
48916choke me
48917#endif
48918
48919int
48920main ()
48921{
48922return ldap_add_result_entry ();
48923  ;
48924  return 0;
48925}
48926_ACEOF
48927rm -f conftest.$ac_objext conftest$ac_exeext
48928if { (ac_try="$ac_link"
48929case "(($ac_try" in
48930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48931  *) ac_try_echo=$ac_try;;
48932esac
48933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48934  (eval "$ac_link") 2>conftest.er1
48935  ac_status=$?
48936  grep -v '^ *+' conftest.er1 >conftest.err
48937  rm -f conftest.er1
48938  cat conftest.err >&5
48939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48940  (exit $ac_status); } && {
48941	 test -z "$ac_c_werror_flag" ||
48942	 test ! -s conftest.err
48943       } && test -s conftest$ac_exeext &&
48944       $as_test_x conftest$ac_exeext; then
48945  ac_cv_func_ext_ldap_add_result_entry=yes
48946else
48947  echo "$as_me: failed program was:" >&5
48948sed 's/^/| /' conftest.$ac_ext >&5
48949
48950	ac_cv_func_ext_ldap_add_result_entry=no
48951fi
48952
48953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48954      conftest$ac_exeext conftest.$ac_ext
48955fi
48956{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_add_result_entry" >&5
48957echo "${ECHO_T}$ac_cv_func_ext_ldap_add_result_entry" >&6; }
48958    LIBS=$ac_check_func_ext_save_LIBS
48959    if test $ac_cv_func_ext_ldap_add_result_entry = yes; then
48960  cat >>confdefs.h <<_ACEOF
48961#define HAVE_LDAP_ADD_RESULT_ENTRY 1
48962_ACEOF
48963
48964fi
48965
48966
48967    if test x"$ac_cv_func_ext_ldap_add_result_entry" != x"yes"; then
48968	if test x"$with_ads_support" = x"yes"; then
48969	    { { echo "$as_me:$LINENO: error: Active Directory support requires ldap_add_result_entry" >&5
48970echo "$as_me: error: Active Directory support requires ldap_add_result_entry" >&2;}
48971   { (exit 1); exit 1; }; }
48972	elif test x"$with_ads_support" = x"auto"; then
48973	    { echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_add_result_entry)" >&5
48974echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_add_result_entry)" >&2;}
48975	    with_ads_support=no
48976	fi
48977    fi
48978
48979fi
48980
48981if test x"$with_ads_support" != x"no"; then
48982
48983  # Do no harm to the values of CFLAGS and LIBS while testing for
48984  # Kerberos support.
48985
48986  if test x$FOUND_KRB5 = x"no"; then
48987    #################################################
48988    # check for location of Kerberos 5 install
48989    { echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
48990echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6; }
48991
48992# Check whether --with-krb5 was given.
48993if test "${with_krb5+set}" = set; then
48994  withval=$with_krb5;  case "$withval" in
48995      no)
48996        { echo "$as_me:$LINENO: result: no krb5-path given" >&5
48997echo "${ECHO_T}no krb5-path given" >&6; }
48998        ;;
48999      yes)
49000        { echo "$as_me:$LINENO: result: /usr" >&5
49001echo "${ECHO_T}/usr" >&6; }
49002        FOUND_KRB5=yes
49003        ;;
49004      *)
49005        { echo "$as_me:$LINENO: result: $withval" >&5
49006echo "${ECHO_T}$withval" >&6; }
49007        KRB5_CFLAGS="-I$withval/include"
49008        KRB5_CPPFLAGS="-I$withval/include"
49009        KRB5_LDFLAGS="-L$withval/lib"
49010        FOUND_KRB5=yes
49011	if test -x "$withval/bin/krb5-config"; then
49012		KRB5CONFIG=$withval/bin/krb5-config
49013	fi
49014        ;;
49015      esac
49016else
49017  { echo "$as_me:$LINENO: result: no krb5-path given" >&5
49018echo "${ECHO_T}no krb5-path given" >&6; }
49019
49020fi
49021
49022  fi
49023
49024  #################################################
49025  # check for krb5-config from recent MIT and Heimdal kerberos 5
49026  # Extract the first word of "krb5-config", so it can be a program name with args.
49027set dummy krb5-config; ac_word=$2
49028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
49029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49030if test "${ac_cv_path_KRB5CONFIG+set}" = set; then
49031  echo $ECHO_N "(cached) $ECHO_C" >&6
49032else
49033  case $KRB5CONFIG in
49034  [\\/]* | ?:[\\/]*)
49035  ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
49036  ;;
49037  *)
49038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49039for as_dir in $PATH
49040do
49041  IFS=$as_save_IFS
49042  test -z "$as_dir" && as_dir=.
49043  for ac_exec_ext in '' $ac_executable_extensions; do
49044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49045    ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
49046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49047    break 2
49048  fi
49049done
49050done
49051IFS=$as_save_IFS
49052
49053  ;;
49054esac
49055fi
49056KRB5CONFIG=$ac_cv_path_KRB5CONFIG
49057if test -n "$KRB5CONFIG"; then
49058  { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
49059echo "${ECHO_T}$KRB5CONFIG" >&6; }
49060else
49061  { echo "$as_me:$LINENO: result: no" >&5
49062echo "${ECHO_T}no" >&6; }
49063fi
49064
49065
49066  { echo "$as_me:$LINENO: checking for working krb5-config" >&5
49067echo $ECHO_N "checking for working krb5-config... $ECHO_C" >&6; }
49068  if test -x "$KRB5CONFIG"; then
49069    ac_save_CFLAGS=$CFLAGS
49070    CFLAGS="";export CFLAGS
49071    ac_save_LDFLAGS=$LDFLAGS
49072    LDFLAGS="";export LDFLAGS
49073    KRB5_LIBS="`$KRB5CONFIG --libs gssapi`"
49074    KRB5_LDFLAGS="`$KRB5CONFIG --libs gssapi | sed s/-lgss.*//`"
49075    KRB5_CFLAGS="`$KRB5CONFIG --cflags | sed s/@INCLUDE_des@//`"
49076    KRB5_CPPFLAGS="`$KRB5CONFIG --cflags | sed s/@INCLUDE_des@//`"
49077    CFLAGS=$ac_save_CFLAGS;export CFLAGS
49078    LDFLAGS=$ac_save_LDFLAGS;export LDFLAGS
49079    FOUND_KRB5=yes
49080    { echo "$as_me:$LINENO: result: yes" >&5
49081echo "${ECHO_T}yes" >&6; }
49082  else
49083    { echo "$as_me:$LINENO: result: no. Fallback to previous krb5 detection strategy" >&5
49084echo "${ECHO_T}no. Fallback to previous krb5 detection strategy" >&6; }
49085  fi
49086
49087  if test x$FOUND_KRB5 = x"no"; then
49088    #################################################
49089    # see if this box has the SuSE location for the heimdal krb implementation
49090    { echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
49091echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6; }
49092    if test -d /usr/include/heimdal; then
49093      if test -f /usr/lib/heimdal/lib/libkrb5.a; then
49094          KRB5_CFLAGS="-I/usr/include/heimdal"
49095          KRB5_CPPFLAGS="-I/usr/include/heimdal"
49096          KRB5_LDFLAGS="-L/usr/lib/heimdal/lib"
49097          { echo "$as_me:$LINENO: result: yes" >&5
49098echo "${ECHO_T}yes" >&6; }
49099      else
49100          KRB5_CFLAGS="-I/usr/include/heimdal"
49101          KRB5_CPPFLAGS="-I/usr/include/heimdal"
49102          { echo "$as_me:$LINENO: result: yes" >&5
49103echo "${ECHO_T}yes" >&6; }
49104      fi
49105    else
49106      { echo "$as_me:$LINENO: result: no" >&5
49107echo "${ECHO_T}no" >&6; }
49108    fi
49109  fi
49110
49111  if test x$FOUND_KRB5 = x"no"; then
49112    #################################################
49113    # see if this box has the RedHat location for kerberos
49114    { echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
49115echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6; }
49116    if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a; then
49117      KRB5_LDFLAGS="-L/usr/kerberos/lib"
49118      KRB5_CFLAGS="-I/usr/kerberos/include"
49119      KRB5_CPPFLAGS="-I/usr/kerberos/include"
49120      { echo "$as_me:$LINENO: result: yes" >&5
49121echo "${ECHO_T}yes" >&6; }
49122    else
49123      { echo "$as_me:$LINENO: result: no" >&5
49124echo "${ECHO_T}no" >&6; }
49125    fi
49126  fi
49127
49128  ac_save_CFLAGS=$CFLAGS
49129  ac_save_CPPFLAGS=$CPPFLAGS
49130  ac_save_LDFLAGS=$LDFLAGS
49131
49132  CFLAGS="$KRB5_CFLAGS $CFLAGS"
49133  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
49134  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
49135
49136  KRB5_LIBS="$KRB5_LDFLAGS $KRB5_LIBS"
49137
49138  # now check for krb5.h. Some systems have the libraries without the headers!
49139  # note that this check is done here to allow for different kerberos
49140  # include paths
49141
49142for ac_header in krb5.h
49143do
49144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49146  { echo "$as_me:$LINENO: checking for $ac_header" >&5
49147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49149  echo $ECHO_N "(cached) $ECHO_C" >&6
49150fi
49151ac_res=`eval echo '${'$as_ac_Header'}'`
49152	       { echo "$as_me:$LINENO: result: $ac_res" >&5
49153echo "${ECHO_T}$ac_res" >&6; }
49154else
49155  # Is the header compilable?
49156{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
49157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
49158cat >conftest.$ac_ext <<_ACEOF
49159/* confdefs.h.  */
49160_ACEOF
49161cat confdefs.h >>conftest.$ac_ext
49162cat >>conftest.$ac_ext <<_ACEOF
49163/* end confdefs.h.  */
49164$ac_includes_default
49165#include <$ac_header>
49166_ACEOF
49167rm -f conftest.$ac_objext
49168if { (ac_try="$ac_compile"
49169case "(($ac_try" in
49170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49171  *) ac_try_echo=$ac_try;;
49172esac
49173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49174  (eval "$ac_compile") 2>conftest.er1
49175  ac_status=$?
49176  grep -v '^ *+' conftest.er1 >conftest.err
49177  rm -f conftest.er1
49178  cat conftest.err >&5
49179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49180  (exit $ac_status); } && {
49181	 test -z "$ac_c_werror_flag" ||
49182	 test ! -s conftest.err
49183       } && test -s conftest.$ac_objext; then
49184  ac_header_compiler=yes
49185else
49186  echo "$as_me: failed program was:" >&5
49187sed 's/^/| /' conftest.$ac_ext >&5
49188
49189	ac_header_compiler=no
49190fi
49191
49192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49194echo "${ECHO_T}$ac_header_compiler" >&6; }
49195
49196# Is the header present?
49197{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
49198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
49199cat >conftest.$ac_ext <<_ACEOF
49200/* confdefs.h.  */
49201_ACEOF
49202cat confdefs.h >>conftest.$ac_ext
49203cat >>conftest.$ac_ext <<_ACEOF
49204/* end confdefs.h.  */
49205#include <$ac_header>
49206_ACEOF
49207if { (ac_try="$ac_cpp conftest.$ac_ext"
49208case "(($ac_try" in
49209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49210  *) ac_try_echo=$ac_try;;
49211esac
49212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49213  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49214  ac_status=$?
49215  grep -v '^ *+' conftest.er1 >conftest.err
49216  rm -f conftest.er1
49217  cat conftest.err >&5
49218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49219  (exit $ac_status); } >/dev/null && {
49220	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49221	 test ! -s conftest.err
49222       }; then
49223  ac_header_preproc=yes
49224else
49225  echo "$as_me: failed program was:" >&5
49226sed 's/^/| /' conftest.$ac_ext >&5
49227
49228  ac_header_preproc=no
49229fi
49230
49231rm -f conftest.err conftest.$ac_ext
49232{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49233echo "${ECHO_T}$ac_header_preproc" >&6; }
49234
49235# So?  What about this header?
49236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49237  yes:no: )
49238    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49240    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49242    ac_header_preproc=yes
49243    ;;
49244  no:yes:* )
49245    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49247    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49248echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49249    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49251    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49252echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49253    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49255    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49257
49258    ;;
49259esac
49260{ echo "$as_me:$LINENO: checking for $ac_header" >&5
49261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49263  echo $ECHO_N "(cached) $ECHO_C" >&6
49264else
49265  eval "$as_ac_Header=\$ac_header_preproc"
49266fi
49267ac_res=`eval echo '${'$as_ac_Header'}'`
49268	       { echo "$as_me:$LINENO: result: $ac_res" >&5
49269echo "${ECHO_T}$ac_res" >&6; }
49270
49271fi
49272if test `eval echo '${'$as_ac_Header'}'` = yes; then
49273  cat >>confdefs.h <<_ACEOF
49274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49275_ACEOF
49276
49277fi
49278
49279done
49280
49281
49282  if test x"$ac_cv_header_krb5_h" = x"no"; then
49283
49284    # Give a warning if AD support was not explicitly requested,
49285    # i.e with_ads_support = auto, otherwise die with an error.
49286
49287    if test x"$with_ads_support" = x"yes"; then
49288      { { echo "$as_me:$LINENO: error: Active Directory cannot be supported without krb5.h" >&5
49289echo "$as_me: error: Active Directory cannot be supported without krb5.h" >&2;}
49290   { (exit 1); exit 1; }; }
49291    else
49292      { echo "$as_me:$LINENO: WARNING: Active Directory cannot be supported without krb5.h" >&5
49293echo "$as_me: WARNING: Active Directory cannot be supported without krb5.h" >&2;}
49294    fi
49295
49296    # Turn off AD support and restore CFLAGS and LIBS variables
49297
49298    with_ads_support="no"
49299
49300    CFLAGS=$ac_save_CFLAGS
49301    CPPFLAGS=$ac_save_CPPFLAGS
49302    LDFLAGS=$ac_save_LDFLAGS
49303  fi
49304
49305for ac_header in krb5/locate_plugin.h
49306do
49307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49309  { echo "$as_me:$LINENO: checking for $ac_header" >&5
49310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49312  echo $ECHO_N "(cached) $ECHO_C" >&6
49313fi
49314ac_res=`eval echo '${'$as_ac_Header'}'`
49315	       { echo "$as_me:$LINENO: result: $ac_res" >&5
49316echo "${ECHO_T}$ac_res" >&6; }
49317else
49318  # Is the header compilable?
49319{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
49320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
49321cat >conftest.$ac_ext <<_ACEOF
49322/* confdefs.h.  */
49323_ACEOF
49324cat confdefs.h >>conftest.$ac_ext
49325cat >>conftest.$ac_ext <<_ACEOF
49326/* end confdefs.h.  */
49327$ac_includes_default
49328#include <$ac_header>
49329_ACEOF
49330rm -f conftest.$ac_objext
49331if { (ac_try="$ac_compile"
49332case "(($ac_try" in
49333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49334  *) ac_try_echo=$ac_try;;
49335esac
49336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49337  (eval "$ac_compile") 2>conftest.er1
49338  ac_status=$?
49339  grep -v '^ *+' conftest.er1 >conftest.err
49340  rm -f conftest.er1
49341  cat conftest.err >&5
49342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49343  (exit $ac_status); } && {
49344	 test -z "$ac_c_werror_flag" ||
49345	 test ! -s conftest.err
49346       } && test -s conftest.$ac_objext; then
49347  ac_header_compiler=yes
49348else
49349  echo "$as_me: failed program was:" >&5
49350sed 's/^/| /' conftest.$ac_ext >&5
49351
49352	ac_header_compiler=no
49353fi
49354
49355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49356{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49357echo "${ECHO_T}$ac_header_compiler" >&6; }
49358
49359# Is the header present?
49360{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
49361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
49362cat >conftest.$ac_ext <<_ACEOF
49363/* confdefs.h.  */
49364_ACEOF
49365cat confdefs.h >>conftest.$ac_ext
49366cat >>conftest.$ac_ext <<_ACEOF
49367/* end confdefs.h.  */
49368#include <$ac_header>
49369_ACEOF
49370if { (ac_try="$ac_cpp conftest.$ac_ext"
49371case "(($ac_try" in
49372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49373  *) ac_try_echo=$ac_try;;
49374esac
49375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49376  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49377  ac_status=$?
49378  grep -v '^ *+' conftest.er1 >conftest.err
49379  rm -f conftest.er1
49380  cat conftest.err >&5
49381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49382  (exit $ac_status); } >/dev/null && {
49383	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49384	 test ! -s conftest.err
49385       }; then
49386  ac_header_preproc=yes
49387else
49388  echo "$as_me: failed program was:" >&5
49389sed 's/^/| /' conftest.$ac_ext >&5
49390
49391  ac_header_preproc=no
49392fi
49393
49394rm -f conftest.err conftest.$ac_ext
49395{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49396echo "${ECHO_T}$ac_header_preproc" >&6; }
49397
49398# So?  What about this header?
49399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49400  yes:no: )
49401    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49405    ac_header_preproc=yes
49406    ;;
49407  no:yes:* )
49408    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49410    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49411echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49412    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49414    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49415echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49416    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49418    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49420
49421    ;;
49422esac
49423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
49424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49426  echo $ECHO_N "(cached) $ECHO_C" >&6
49427else
49428  eval "$as_ac_Header=\$ac_header_preproc"
49429fi
49430ac_res=`eval echo '${'$as_ac_Header'}'`
49431	       { echo "$as_me:$LINENO: result: $ac_res" >&5
49432echo "${ECHO_T}$ac_res" >&6; }
49433
49434fi
49435if test `eval echo '${'$as_ac_Header'}'` = yes; then
49436  cat >>confdefs.h <<_ACEOF
49437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49438_ACEOF
49439
49440fi
49441
49442done
49443
49444fi
49445
49446# Now we have determined whether we really want ADS support
49447use_ads=no
49448if test x"$with_ads_support" != x"no"; then
49449  use_ads=yes
49450  have_gssapi=no
49451  ac_save_LIBS=$LIBS
49452
49453  # now check for gssapi headers.  This is also done here to allow for
49454  # different kerberos include paths
49455
49456
49457
49458
49459for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h
49460do
49461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49463  { echo "$as_me:$LINENO: checking for $ac_header" >&5
49464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49466  echo $ECHO_N "(cached) $ECHO_C" >&6
49467fi
49468ac_res=`eval echo '${'$as_ac_Header'}'`
49469	       { echo "$as_me:$LINENO: result: $ac_res" >&5
49470echo "${ECHO_T}$ac_res" >&6; }
49471else
49472  # Is the header compilable?
49473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
49474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
49475cat >conftest.$ac_ext <<_ACEOF
49476/* confdefs.h.  */
49477_ACEOF
49478cat confdefs.h >>conftest.$ac_ext
49479cat >>conftest.$ac_ext <<_ACEOF
49480/* end confdefs.h.  */
49481$ac_includes_default
49482#include <$ac_header>
49483_ACEOF
49484rm -f conftest.$ac_objext
49485if { (ac_try="$ac_compile"
49486case "(($ac_try" in
49487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49488  *) ac_try_echo=$ac_try;;
49489esac
49490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49491  (eval "$ac_compile") 2>conftest.er1
49492  ac_status=$?
49493  grep -v '^ *+' conftest.er1 >conftest.err
49494  rm -f conftest.er1
49495  cat conftest.err >&5
49496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49497  (exit $ac_status); } && {
49498	 test -z "$ac_c_werror_flag" ||
49499	 test ! -s conftest.err
49500       } && test -s conftest.$ac_objext; then
49501  ac_header_compiler=yes
49502else
49503  echo "$as_me: failed program was:" >&5
49504sed 's/^/| /' conftest.$ac_ext >&5
49505
49506	ac_header_compiler=no
49507fi
49508
49509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49510{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49511echo "${ECHO_T}$ac_header_compiler" >&6; }
49512
49513# Is the header present?
49514{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
49515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
49516cat >conftest.$ac_ext <<_ACEOF
49517/* confdefs.h.  */
49518_ACEOF
49519cat confdefs.h >>conftest.$ac_ext
49520cat >>conftest.$ac_ext <<_ACEOF
49521/* end confdefs.h.  */
49522#include <$ac_header>
49523_ACEOF
49524if { (ac_try="$ac_cpp conftest.$ac_ext"
49525case "(($ac_try" in
49526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49527  *) ac_try_echo=$ac_try;;
49528esac
49529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49530  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49531  ac_status=$?
49532  grep -v '^ *+' conftest.er1 >conftest.err
49533  rm -f conftest.er1
49534  cat conftest.err >&5
49535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49536  (exit $ac_status); } >/dev/null && {
49537	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49538	 test ! -s conftest.err
49539       }; then
49540  ac_header_preproc=yes
49541else
49542  echo "$as_me: failed program was:" >&5
49543sed 's/^/| /' conftest.$ac_ext >&5
49544
49545  ac_header_preproc=no
49546fi
49547
49548rm -f conftest.err conftest.$ac_ext
49549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49550echo "${ECHO_T}$ac_header_preproc" >&6; }
49551
49552# So?  What about this header?
49553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49554  yes:no: )
49555    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49557    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49559    ac_header_preproc=yes
49560    ;;
49561  no:yes:* )
49562    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49564    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49565echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49566    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49568    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49569echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49570    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49572    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49574
49575    ;;
49576esac
49577{ echo "$as_me:$LINENO: checking for $ac_header" >&5
49578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49580  echo $ECHO_N "(cached) $ECHO_C" >&6
49581else
49582  eval "$as_ac_Header=\$ac_header_preproc"
49583fi
49584ac_res=`eval echo '${'$as_ac_Header'}'`
49585	       { echo "$as_me:$LINENO: result: $ac_res" >&5
49586echo "${ECHO_T}$ac_res" >&6; }
49587
49588fi
49589if test `eval echo '${'$as_ac_Header'}'` = yes; then
49590  cat >>confdefs.h <<_ACEOF
49591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49592_ACEOF
49593
49594fi
49595
49596done
49597
49598
49599  ##################################################################
49600  # we might need the k5crypto and com_err libraries on some systems
49601
49602
49603
49604ac_check_lib_ext_save_LIBS=$LIBS
49605LIBS="-lcom_err $KRB5_LIBS  $LIBS"
49606
49607
49608
49609
49610        { echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
49611echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6; }
49612if test "${ac_cv_lib_ext_com_err__et_list+set}" = set; then
49613  echo $ECHO_N "(cached) $ECHO_C" >&6
49614else
49615  cat >conftest.$ac_ext <<_ACEOF
49616/* confdefs.h.  */
49617_ACEOF
49618cat confdefs.h >>conftest.$ac_ext
49619cat >>conftest.$ac_ext <<_ACEOF
49620/* end confdefs.h.  */
49621
49622/* Override any GCC internal prototype to avoid an error.
49623   Use char because int might match the return type of a GCC
49624   builtin and then its argument prototype would still apply.  */
49625#ifdef __cplusplus
49626extern "C"
49627#endif
49628char _et_list ();
49629int
49630main ()
49631{
49632return _et_list ();
49633  ;
49634  return 0;
49635}
49636_ACEOF
49637rm -f conftest.$ac_objext conftest$ac_exeext
49638if { (ac_try="$ac_link"
49639case "(($ac_try" in
49640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49641  *) ac_try_echo=$ac_try;;
49642esac
49643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49644  (eval "$ac_link") 2>conftest.er1
49645  ac_status=$?
49646  grep -v '^ *+' conftest.er1 >conftest.err
49647  rm -f conftest.er1
49648  cat conftest.err >&5
49649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49650  (exit $ac_status); } && {
49651	 test -z "$ac_c_werror_flag" ||
49652	 test ! -s conftest.err
49653       } && test -s conftest$ac_exeext &&
49654       $as_test_x conftest$ac_exeext; then
49655  ac_cv_lib_ext_com_err__et_list=yes;
49656		  ac_cv_lib_ext_com_err=yes
49657else
49658  echo "$as_me: failed program was:" >&5
49659sed 's/^/| /' conftest.$ac_ext >&5
49660
49661	ac_cv_lib_ext_com_err__et_list=no;
49662		  ac_cv_lib_ext_com_err=no
49663fi
49664
49665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49666      conftest$ac_exeext conftest.$ac_ext
49667
49668fi
49669{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_com_err__et_list" >&5
49670echo "${ECHO_T}$ac_cv_lib_ext_com_err__et_list" >&6; }
49671    if test $ac_cv_lib_ext_com_err__et_list = yes; then
49672  cat >>confdefs.h <<_ACEOF
49673#define HAVE__ET_LIST 1
49674_ACEOF
49675
49676fi
49677
49678LIBS=$ac_check_lib_ext_save_LIBS
49679
49680if test $ac_cv_lib_ext_com_err = yes; then
49681  cat >>confdefs.h <<_ACEOF
49682#define HAVE_LIBCOM_ERR 1
49683_ACEOF
49684
49685		case "$KRB5_LIBS" in
49686		    *-lcom_err*)
49687			;;
49688		    *)
49689			KRB5_LIBS="-lcom_err $KRB5_LIBS"
49690			;;
49691		esac
49692
49693
49694fi
49695
49696
49697
49698
49699ac_check_lib_ext_save_LIBS=$LIBS
49700LIBS="-lk5crypto $KRB5_LIBS  $LIBS"
49701
49702
49703
49704
49705        { echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
49706echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6; }
49707if test "${ac_cv_lib_ext_k5crypto_krb5_encrypt_data+set}" = set; then
49708  echo $ECHO_N "(cached) $ECHO_C" >&6
49709else
49710  cat >conftest.$ac_ext <<_ACEOF
49711/* confdefs.h.  */
49712_ACEOF
49713cat confdefs.h >>conftest.$ac_ext
49714cat >>conftest.$ac_ext <<_ACEOF
49715/* end confdefs.h.  */
49716
49717/* Override any GCC internal prototype to avoid an error.
49718   Use char because int might match the return type of a GCC
49719   builtin and then its argument prototype would still apply.  */
49720#ifdef __cplusplus
49721extern "C"
49722#endif
49723char krb5_encrypt_data ();
49724int
49725main ()
49726{
49727return krb5_encrypt_data ();
49728  ;
49729  return 0;
49730}
49731_ACEOF
49732rm -f conftest.$ac_objext conftest$ac_exeext
49733if { (ac_try="$ac_link"
49734case "(($ac_try" in
49735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49736  *) ac_try_echo=$ac_try;;
49737esac
49738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49739  (eval "$ac_link") 2>conftest.er1
49740  ac_status=$?
49741  grep -v '^ *+' conftest.er1 >conftest.err
49742  rm -f conftest.er1
49743  cat conftest.err >&5
49744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49745  (exit $ac_status); } && {
49746	 test -z "$ac_c_werror_flag" ||
49747	 test ! -s conftest.err
49748       } && test -s conftest$ac_exeext &&
49749       $as_test_x conftest$ac_exeext; then
49750  ac_cv_lib_ext_k5crypto_krb5_encrypt_data=yes;
49751		  ac_cv_lib_ext_k5crypto=yes
49752else
49753  echo "$as_me: failed program was:" >&5
49754sed 's/^/| /' conftest.$ac_ext >&5
49755
49756	ac_cv_lib_ext_k5crypto_krb5_encrypt_data=no;
49757		  ac_cv_lib_ext_k5crypto=no
49758fi
49759
49760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49761      conftest$ac_exeext conftest.$ac_ext
49762
49763fi
49764{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_k5crypto_krb5_encrypt_data" >&5
49765echo "${ECHO_T}$ac_cv_lib_ext_k5crypto_krb5_encrypt_data" >&6; }
49766    if test $ac_cv_lib_ext_k5crypto_krb5_encrypt_data = yes; then
49767  cat >>confdefs.h <<_ACEOF
49768#define HAVE_KRB5_ENCRYPT_DATA 1
49769_ACEOF
49770
49771fi
49772
49773LIBS=$ac_check_lib_ext_save_LIBS
49774
49775if test $ac_cv_lib_ext_k5crypto = yes; then
49776  cat >>confdefs.h <<_ACEOF
49777#define HAVE_LIBK5CRYPTO 1
49778_ACEOF
49779
49780		case "$KRB5_LIBS" in
49781		    *-lk5crypto*)
49782			;;
49783		    *)
49784			KRB5_LIBS="-lk5crypto $KRB5_LIBS"
49785			;;
49786		esac
49787
49788
49789fi
49790
49791
49792  # Heimdal checks.
49793
49794
49795
49796ac_check_lib_ext_save_LIBS=$LIBS
49797LIBS="-lcrypto $KRB5_LIBS  $LIBS"
49798
49799
49800
49801
49802        { echo "$as_me:$LINENO: checking for des_set_key in -lcrypto" >&5
49803echo $ECHO_N "checking for des_set_key in -lcrypto... $ECHO_C" >&6; }
49804if test "${ac_cv_lib_ext_crypto_des_set_key+set}" = set; then
49805  echo $ECHO_N "(cached) $ECHO_C" >&6
49806else
49807  cat >conftest.$ac_ext <<_ACEOF
49808/* confdefs.h.  */
49809_ACEOF
49810cat confdefs.h >>conftest.$ac_ext
49811cat >>conftest.$ac_ext <<_ACEOF
49812/* end confdefs.h.  */
49813
49814/* Override any GCC internal prototype to avoid an error.
49815   Use char because int might match the return type of a GCC
49816   builtin and then its argument prototype would still apply.  */
49817#ifdef __cplusplus
49818extern "C"
49819#endif
49820char des_set_key ();
49821int
49822main ()
49823{
49824return des_set_key ();
49825  ;
49826  return 0;
49827}
49828_ACEOF
49829rm -f conftest.$ac_objext conftest$ac_exeext
49830if { (ac_try="$ac_link"
49831case "(($ac_try" in
49832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49833  *) ac_try_echo=$ac_try;;
49834esac
49835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49836  (eval "$ac_link") 2>conftest.er1
49837  ac_status=$?
49838  grep -v '^ *+' conftest.er1 >conftest.err
49839  rm -f conftest.er1
49840  cat conftest.err >&5
49841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49842  (exit $ac_status); } && {
49843	 test -z "$ac_c_werror_flag" ||
49844	 test ! -s conftest.err
49845       } && test -s conftest$ac_exeext &&
49846       $as_test_x conftest$ac_exeext; then
49847  ac_cv_lib_ext_crypto_des_set_key=yes;
49848		  ac_cv_lib_ext_crypto=yes
49849else
49850  echo "$as_me: failed program was:" >&5
49851sed 's/^/| /' conftest.$ac_ext >&5
49852
49853	ac_cv_lib_ext_crypto_des_set_key=no;
49854		  ac_cv_lib_ext_crypto=no
49855fi
49856
49857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49858      conftest$ac_exeext conftest.$ac_ext
49859
49860fi
49861{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_crypto_des_set_key" >&5
49862echo "${ECHO_T}$ac_cv_lib_ext_crypto_des_set_key" >&6; }
49863    if test $ac_cv_lib_ext_crypto_des_set_key = yes; then
49864  cat >>confdefs.h <<_ACEOF
49865#define HAVE_DES_SET_KEY 1
49866_ACEOF
49867
49868fi
49869
49870LIBS=$ac_check_lib_ext_save_LIBS
49871
49872if test $ac_cv_lib_ext_crypto = yes; then
49873  cat >>confdefs.h <<_ACEOF
49874#define HAVE_LIBCRYPTO 1
49875_ACEOF
49876
49877		case "$KRB5_LIBS" in
49878		    *-lcrypto*)
49879			;;
49880		    *)
49881			KRB5_LIBS="-lcrypto $KRB5_LIBS"
49882			;;
49883		esac
49884
49885
49886fi
49887
49888
49889
49890
49891ac_check_lib_ext_save_LIBS=$LIBS
49892LIBS="-lasn1 $KRB5_LIBS  $LIBS"
49893
49894
49895
49896
49897        { echo "$as_me:$LINENO: checking for copy_Authenticator in -lasn1" >&5
49898echo $ECHO_N "checking for copy_Authenticator in -lasn1... $ECHO_C" >&6; }
49899if test "${ac_cv_lib_ext_asn1_copy_Authenticator+set}" = set; then
49900  echo $ECHO_N "(cached) $ECHO_C" >&6
49901else
49902  cat >conftest.$ac_ext <<_ACEOF
49903/* confdefs.h.  */
49904_ACEOF
49905cat confdefs.h >>conftest.$ac_ext
49906cat >>conftest.$ac_ext <<_ACEOF
49907/* end confdefs.h.  */
49908
49909/* Override any GCC internal prototype to avoid an error.
49910   Use char because int might match the return type of a GCC
49911   builtin and then its argument prototype would still apply.  */
49912#ifdef __cplusplus
49913extern "C"
49914#endif
49915char copy_Authenticator ();
49916int
49917main ()
49918{
49919return copy_Authenticator ();
49920  ;
49921  return 0;
49922}
49923_ACEOF
49924rm -f conftest.$ac_objext conftest$ac_exeext
49925if { (ac_try="$ac_link"
49926case "(($ac_try" in
49927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49928  *) ac_try_echo=$ac_try;;
49929esac
49930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49931  (eval "$ac_link") 2>conftest.er1
49932  ac_status=$?
49933  grep -v '^ *+' conftest.er1 >conftest.err
49934  rm -f conftest.er1
49935  cat conftest.err >&5
49936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49937  (exit $ac_status); } && {
49938	 test -z "$ac_c_werror_flag" ||
49939	 test ! -s conftest.err
49940       } && test -s conftest$ac_exeext &&
49941       $as_test_x conftest$ac_exeext; then
49942  ac_cv_lib_ext_asn1_copy_Authenticator=yes;
49943		  ac_cv_lib_ext_asn1=yes
49944else
49945  echo "$as_me: failed program was:" >&5
49946sed 's/^/| /' conftest.$ac_ext >&5
49947
49948	ac_cv_lib_ext_asn1_copy_Authenticator=no;
49949		  ac_cv_lib_ext_asn1=no
49950fi
49951
49952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49953      conftest$ac_exeext conftest.$ac_ext
49954
49955fi
49956{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_asn1_copy_Authenticator" >&5
49957echo "${ECHO_T}$ac_cv_lib_ext_asn1_copy_Authenticator" >&6; }
49958    if test $ac_cv_lib_ext_asn1_copy_Authenticator = yes; then
49959  cat >>confdefs.h <<_ACEOF
49960#define HAVE_COPY_AUTHENTICATOR 1
49961_ACEOF
49962
49963fi
49964
49965LIBS=$ac_check_lib_ext_save_LIBS
49966
49967if test $ac_cv_lib_ext_asn1 = yes; then
49968  cat >>confdefs.h <<_ACEOF
49969#define HAVE_LIBASN1 1
49970_ACEOF
49971
49972		case "$KRB5_LIBS" in
49973		    *-lasn1*)
49974			;;
49975		    *)
49976			KRB5_LIBS="-lasn1 $KRB5_LIBS"
49977			;;
49978		esac
49979
49980
49981fi
49982
49983
49984
49985
49986ac_check_lib_ext_save_LIBS=$LIBS
49987LIBS="-lroken $KRB5_LIBS  $LIBS"
49988
49989
49990
49991
49992        { echo "$as_me:$LINENO: checking for roken_getaddrinfo_hostspec in -lroken" >&5
49993echo $ECHO_N "checking for roken_getaddrinfo_hostspec in -lroken... $ECHO_C" >&6; }
49994if test "${ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec+set}" = set; then
49995  echo $ECHO_N "(cached) $ECHO_C" >&6
49996else
49997  cat >conftest.$ac_ext <<_ACEOF
49998/* confdefs.h.  */
49999_ACEOF
50000cat confdefs.h >>conftest.$ac_ext
50001cat >>conftest.$ac_ext <<_ACEOF
50002/* end confdefs.h.  */
50003
50004/* Override any GCC internal prototype to avoid an error.
50005   Use char because int might match the return type of a GCC
50006   builtin and then its argument prototype would still apply.  */
50007#ifdef __cplusplus
50008extern "C"
50009#endif
50010char roken_getaddrinfo_hostspec ();
50011int
50012main ()
50013{
50014return roken_getaddrinfo_hostspec ();
50015  ;
50016  return 0;
50017}
50018_ACEOF
50019rm -f conftest.$ac_objext conftest$ac_exeext
50020if { (ac_try="$ac_link"
50021case "(($ac_try" in
50022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50023  *) ac_try_echo=$ac_try;;
50024esac
50025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50026  (eval "$ac_link") 2>conftest.er1
50027  ac_status=$?
50028  grep -v '^ *+' conftest.er1 >conftest.err
50029  rm -f conftest.er1
50030  cat conftest.err >&5
50031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50032  (exit $ac_status); } && {
50033	 test -z "$ac_c_werror_flag" ||
50034	 test ! -s conftest.err
50035       } && test -s conftest$ac_exeext &&
50036       $as_test_x conftest$ac_exeext; then
50037  ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec=yes;
50038		  ac_cv_lib_ext_roken=yes
50039else
50040  echo "$as_me: failed program was:" >&5
50041sed 's/^/| /' conftest.$ac_ext >&5
50042
50043	ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec=no;
50044		  ac_cv_lib_ext_roken=no
50045fi
50046
50047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50048      conftest$ac_exeext conftest.$ac_ext
50049
50050fi
50051{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec" >&5
50052echo "${ECHO_T}$ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec" >&6; }
50053    if test $ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec = yes; then
50054  cat >>confdefs.h <<_ACEOF
50055#define HAVE_ROKEN_GETADDRINFO_HOSTSPEC 1
50056_ACEOF
50057
50058fi
50059
50060LIBS=$ac_check_lib_ext_save_LIBS
50061
50062if test $ac_cv_lib_ext_roken = yes; then
50063  cat >>confdefs.h <<_ACEOF
50064#define HAVE_LIBROKEN 1
50065_ACEOF
50066
50067		case "$KRB5_LIBS" in
50068		    *-lroken*)
50069			;;
50070		    *)
50071			KRB5_LIBS="-lroken $KRB5_LIBS"
50072			;;
50073		esac
50074
50075
50076fi
50077
50078
50079  # Heimdal checks. On static Heimdal gssapi must be linked before krb5.
50080
50081
50082
50083ac_check_lib_ext_save_LIBS=$LIBS
50084LIBS="-lgssapi $KRB5_LIBS  $LIBS"
50085
50086
50087
50088
50089        { echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi" >&5
50090echo $ECHO_N "checking for gss_display_status in -lgssapi... $ECHO_C" >&6; }
50091if test "${ac_cv_lib_ext_gssapi_gss_display_status+set}" = set; then
50092  echo $ECHO_N "(cached) $ECHO_C" >&6
50093else
50094  cat >conftest.$ac_ext <<_ACEOF
50095/* confdefs.h.  */
50096_ACEOF
50097cat confdefs.h >>conftest.$ac_ext
50098cat >>conftest.$ac_ext <<_ACEOF
50099/* end confdefs.h.  */
50100
50101/* Override any GCC internal prototype to avoid an error.
50102   Use char because int might match the return type of a GCC
50103   builtin and then its argument prototype would still apply.  */
50104#ifdef __cplusplus
50105extern "C"
50106#endif
50107char gss_display_status ();
50108int
50109main ()
50110{
50111return gss_display_status ();
50112  ;
50113  return 0;
50114}
50115_ACEOF
50116rm -f conftest.$ac_objext conftest$ac_exeext
50117if { (ac_try="$ac_link"
50118case "(($ac_try" in
50119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50120  *) ac_try_echo=$ac_try;;
50121esac
50122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50123  (eval "$ac_link") 2>conftest.er1
50124  ac_status=$?
50125  grep -v '^ *+' conftest.er1 >conftest.err
50126  rm -f conftest.er1
50127  cat conftest.err >&5
50128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50129  (exit $ac_status); } && {
50130	 test -z "$ac_c_werror_flag" ||
50131	 test ! -s conftest.err
50132       } && test -s conftest$ac_exeext &&
50133       $as_test_x conftest$ac_exeext; then
50134  ac_cv_lib_ext_gssapi_gss_display_status=yes;
50135		  ac_cv_lib_ext_gssapi=yes
50136else
50137  echo "$as_me: failed program was:" >&5
50138sed 's/^/| /' conftest.$ac_ext >&5
50139
50140	ac_cv_lib_ext_gssapi_gss_display_status=no;
50141		  ac_cv_lib_ext_gssapi=no
50142fi
50143
50144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50145      conftest$ac_exeext conftest.$ac_ext
50146
50147fi
50148{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_gssapi_gss_display_status" >&5
50149echo "${ECHO_T}$ac_cv_lib_ext_gssapi_gss_display_status" >&6; }
50150    if test $ac_cv_lib_ext_gssapi_gss_display_status = yes; then
50151  cat >>confdefs.h <<_ACEOF
50152#define HAVE_GSS_DISPLAY_STATUS 1
50153_ACEOF
50154
50155fi
50156
50157LIBS=$ac_check_lib_ext_save_LIBS
50158
50159if test $ac_cv_lib_ext_gssapi = yes; then
50160  cat >>confdefs.h <<_ACEOF
50161#define HAVE_LIBGSSAPI 1
50162_ACEOF
50163
50164		case "$KRB5_LIBS" in
50165		    *-lgssapi*)
50166			;;
50167		    *)
50168			KRB5_LIBS="-lgssapi $KRB5_LIBS"
50169			;;
50170		esac
50171		have_gssapi=yes
50172
50173fi
50174
50175
50176  ########################################################
50177  # now see if we can find the krb5 libs in standard paths
50178  # or as specified above
50179
50180
50181
50182ac_check_lib_ext_save_LIBS=$LIBS
50183LIBS="-lkrb5 $KRB5_LIBS  $LIBS"
50184
50185
50186
50187
50188        { echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
50189echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6; }
50190if test "${ac_cv_lib_ext_krb5_krb5_mk_req_extended+set}" = set; then
50191  echo $ECHO_N "(cached) $ECHO_C" >&6
50192else
50193  cat >conftest.$ac_ext <<_ACEOF
50194/* confdefs.h.  */
50195_ACEOF
50196cat confdefs.h >>conftest.$ac_ext
50197cat >>conftest.$ac_ext <<_ACEOF
50198/* end confdefs.h.  */
50199
50200/* Override any GCC internal prototype to avoid an error.
50201   Use char because int might match the return type of a GCC
50202   builtin and then its argument prototype would still apply.  */
50203#ifdef __cplusplus
50204extern "C"
50205#endif
50206char krb5_mk_req_extended ();
50207int
50208main ()
50209{
50210return krb5_mk_req_extended ();
50211  ;
50212  return 0;
50213}
50214_ACEOF
50215rm -f conftest.$ac_objext conftest$ac_exeext
50216if { (ac_try="$ac_link"
50217case "(($ac_try" in
50218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50219  *) ac_try_echo=$ac_try;;
50220esac
50221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50222  (eval "$ac_link") 2>conftest.er1
50223  ac_status=$?
50224  grep -v '^ *+' conftest.er1 >conftest.err
50225  rm -f conftest.er1
50226  cat conftest.err >&5
50227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50228  (exit $ac_status); } && {
50229	 test -z "$ac_c_werror_flag" ||
50230	 test ! -s conftest.err
50231       } && test -s conftest$ac_exeext &&
50232       $as_test_x conftest$ac_exeext; then
50233  ac_cv_lib_ext_krb5_krb5_mk_req_extended=yes;
50234		  ac_cv_lib_ext_krb5=yes
50235else
50236  echo "$as_me: failed program was:" >&5
50237sed 's/^/| /' conftest.$ac_ext >&5
50238
50239	ac_cv_lib_ext_krb5_krb5_mk_req_extended=no;
50240		  ac_cv_lib_ext_krb5=no
50241fi
50242
50243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50244      conftest$ac_exeext conftest.$ac_ext
50245
50246fi
50247{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_krb5_krb5_mk_req_extended" >&5
50248echo "${ECHO_T}$ac_cv_lib_ext_krb5_krb5_mk_req_extended" >&6; }
50249    if test $ac_cv_lib_ext_krb5_krb5_mk_req_extended = yes; then
50250  cat >>confdefs.h <<_ACEOF
50251#define HAVE_KRB5_MK_REQ_EXTENDED 1
50252_ACEOF
50253
50254fi
50255
50256LIBS=$ac_check_lib_ext_save_LIBS
50257
50258if test $ac_cv_lib_ext_krb5 = yes; then
50259  cat >>confdefs.h <<_ACEOF
50260#define HAVE_LIBKRB5 1
50261_ACEOF
50262
50263		case "$KRB5_LIBS" in
50264		    *-lkrb5*)
50265			;;
50266		    *)
50267			KRB5_LIBS="-lkrb5 $KRB5_LIBS"
50268			;;
50269		esac
50270
50271
50272fi
50273
50274
50275
50276
50277ac_check_lib_ext_save_LIBS=$LIBS
50278LIBS="-lkrb5 $KRB5_LIBS  $LIBS"
50279
50280
50281
50282
50283        { echo "$as_me:$LINENO: checking for krb5_kt_compare in -lkrb5" >&5
50284echo $ECHO_N "checking for krb5_kt_compare in -lkrb5... $ECHO_C" >&6; }
50285if test "${ac_cv_lib_ext_krb5_krb5_kt_compare+set}" = set; then
50286  echo $ECHO_N "(cached) $ECHO_C" >&6
50287else
50288  cat >conftest.$ac_ext <<_ACEOF
50289/* confdefs.h.  */
50290_ACEOF
50291cat confdefs.h >>conftest.$ac_ext
50292cat >>conftest.$ac_ext <<_ACEOF
50293/* end confdefs.h.  */
50294
50295/* Override any GCC internal prototype to avoid an error.
50296   Use char because int might match the return type of a GCC
50297   builtin and then its argument prototype would still apply.  */
50298#ifdef __cplusplus
50299extern "C"
50300#endif
50301char krb5_kt_compare ();
50302int
50303main ()
50304{
50305return krb5_kt_compare ();
50306  ;
50307  return 0;
50308}
50309_ACEOF
50310rm -f conftest.$ac_objext conftest$ac_exeext
50311if { (ac_try="$ac_link"
50312case "(($ac_try" in
50313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50314  *) ac_try_echo=$ac_try;;
50315esac
50316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50317  (eval "$ac_link") 2>conftest.er1
50318  ac_status=$?
50319  grep -v '^ *+' conftest.er1 >conftest.err
50320  rm -f conftest.er1
50321  cat conftest.err >&5
50322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50323  (exit $ac_status); } && {
50324	 test -z "$ac_c_werror_flag" ||
50325	 test ! -s conftest.err
50326       } && test -s conftest$ac_exeext &&
50327       $as_test_x conftest$ac_exeext; then
50328  ac_cv_lib_ext_krb5_krb5_kt_compare=yes;
50329		  ac_cv_lib_ext_krb5=yes
50330else
50331  echo "$as_me: failed program was:" >&5
50332sed 's/^/| /' conftest.$ac_ext >&5
50333
50334	ac_cv_lib_ext_krb5_krb5_kt_compare=no;
50335		  ac_cv_lib_ext_krb5=no
50336fi
50337
50338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50339      conftest$ac_exeext conftest.$ac_ext
50340
50341fi
50342{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_krb5_krb5_kt_compare" >&5
50343echo "${ECHO_T}$ac_cv_lib_ext_krb5_krb5_kt_compare" >&6; }
50344    if test $ac_cv_lib_ext_krb5_krb5_kt_compare = yes; then
50345  cat >>confdefs.h <<_ACEOF
50346#define HAVE_KRB5_KT_COMPARE 1
50347_ACEOF
50348
50349fi
50350
50351LIBS=$ac_check_lib_ext_save_LIBS
50352
50353if test $ac_cv_lib_ext_krb5 = yes; then
50354  cat >>confdefs.h <<_ACEOF
50355#define HAVE_LIBKRB5 1
50356_ACEOF
50357
50358		case "$KRB5_LIBS" in
50359		    *-lkrb5*)
50360			;;
50361		    *)
50362			KRB5_LIBS="-lkrb5 $KRB5_LIBS"
50363			;;
50364		esac
50365
50366
50367fi
50368
50369
50370  ########################################################
50371  # now see if we can find the gssapi libs in standard paths
50372  if test x"$have_gssapi" != x"yes"; then
50373
50374
50375
50376ac_check_lib_ext_save_LIBS=$LIBS
50377LIBS="-lgssapi_krb5 $KRB5_LIBS  $LIBS"
50378
50379
50380
50381
50382        { echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
50383echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6; }
50384if test "${ac_cv_lib_ext_gssapi_krb5_gss_display_status+set}" = set; then
50385  echo $ECHO_N "(cached) $ECHO_C" >&6
50386else
50387  cat >conftest.$ac_ext <<_ACEOF
50388/* confdefs.h.  */
50389_ACEOF
50390cat confdefs.h >>conftest.$ac_ext
50391cat >>conftest.$ac_ext <<_ACEOF
50392/* end confdefs.h.  */
50393
50394/* Override any GCC internal prototype to avoid an error.
50395   Use char because int might match the return type of a GCC
50396   builtin and then its argument prototype would still apply.  */
50397#ifdef __cplusplus
50398extern "C"
50399#endif
50400char gss_display_status ();
50401int
50402main ()
50403{
50404return gss_display_status ();
50405  ;
50406  return 0;
50407}
50408_ACEOF
50409rm -f conftest.$ac_objext conftest$ac_exeext
50410if { (ac_try="$ac_link"
50411case "(($ac_try" in
50412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50413  *) ac_try_echo=$ac_try;;
50414esac
50415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50416  (eval "$ac_link") 2>conftest.er1
50417  ac_status=$?
50418  grep -v '^ *+' conftest.er1 >conftest.err
50419  rm -f conftest.er1
50420  cat conftest.err >&5
50421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50422  (exit $ac_status); } && {
50423	 test -z "$ac_c_werror_flag" ||
50424	 test ! -s conftest.err
50425       } && test -s conftest$ac_exeext &&
50426       $as_test_x conftest$ac_exeext; then
50427  ac_cv_lib_ext_gssapi_krb5_gss_display_status=yes;
50428		  ac_cv_lib_ext_gssapi_krb5=yes
50429else
50430  echo "$as_me: failed program was:" >&5
50431sed 's/^/| /' conftest.$ac_ext >&5
50432
50433	ac_cv_lib_ext_gssapi_krb5_gss_display_status=no;
50434		  ac_cv_lib_ext_gssapi_krb5=no
50435fi
50436
50437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50438      conftest$ac_exeext conftest.$ac_ext
50439
50440fi
50441{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_gssapi_krb5_gss_display_status" >&5
50442echo "${ECHO_T}$ac_cv_lib_ext_gssapi_krb5_gss_display_status" >&6; }
50443    if test $ac_cv_lib_ext_gssapi_krb5_gss_display_status = yes; then
50444  cat >>confdefs.h <<_ACEOF
50445#define HAVE_GSS_DISPLAY_STATUS 1
50446_ACEOF
50447
50448fi
50449
50450LIBS=$ac_check_lib_ext_save_LIBS
50451
50452if test $ac_cv_lib_ext_gssapi_krb5 = yes; then
50453  cat >>confdefs.h <<_ACEOF
50454#define HAVE_LIBGSSAPI_KRB5 1
50455_ACEOF
50456
50457		case "$KRB5_LIBS" in
50458		    *-lgssapi_krb5*)
50459			;;
50460		    *)
50461			KRB5_LIBS="-lgssapi_krb5 $KRB5_LIBS"
50462			;;
50463		esac
50464		have_gssapi=yes
50465
50466fi
50467
50468  fi
50469
50470
50471
50472
50473    ac_check_func_ext_save_LIBS=$LIBS
50474    LIBS="$KRB5_LIBS $LIBS"
50475        { echo "$as_me:$LINENO: checking for krb5_set_real_time" >&5
50476echo $ECHO_N "checking for krb5_set_real_time... $ECHO_C" >&6; }
50477if test "${ac_cv_func_ext_krb5_set_real_time+set}" = set; then
50478  echo $ECHO_N "(cached) $ECHO_C" >&6
50479else
50480  cat >conftest.$ac_ext <<_ACEOF
50481/* confdefs.h.  */
50482_ACEOF
50483cat confdefs.h >>conftest.$ac_ext
50484cat >>conftest.$ac_ext <<_ACEOF
50485/* end confdefs.h.  */
50486/* Define krb5_set_real_time to an innocuous variant, in case <limits.h> declares krb5_set_real_time.
50487   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50488#define krb5_set_real_time innocuous_krb5_set_real_time
50489
50490/* System header to define __stub macros and hopefully few prototypes,
50491    which can conflict with char krb5_set_real_time (); below.
50492    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50493    <limits.h> exists even on freestanding compilers.  */
50494
50495#ifdef __STDC__
50496# include <limits.h>
50497#else
50498# include <assert.h>
50499#endif
50500
50501#undef krb5_set_real_time
50502
50503/* Override any GCC internal prototype to avoid an error.
50504   Use char because int might match the return type of a GCC
50505   builtin and then its argument prototype would still apply.  */
50506#ifdef __cplusplus
50507extern "C"
50508#endif
50509char krb5_set_real_time ();
50510/* The GNU C library defines this for functions which it implements
50511    to always fail with ENOSYS.  Some functions are actually named
50512    something starting with __ and the normal name is an alias.  */
50513#if defined __stub_krb5_set_real_time || defined __stub___krb5_set_real_time
50514choke me
50515#endif
50516
50517int
50518main ()
50519{
50520return krb5_set_real_time ();
50521  ;
50522  return 0;
50523}
50524_ACEOF
50525rm -f conftest.$ac_objext conftest$ac_exeext
50526if { (ac_try="$ac_link"
50527case "(($ac_try" in
50528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50529  *) ac_try_echo=$ac_try;;
50530esac
50531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50532  (eval "$ac_link") 2>conftest.er1
50533  ac_status=$?
50534  grep -v '^ *+' conftest.er1 >conftest.err
50535  rm -f conftest.er1
50536  cat conftest.err >&5
50537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50538  (exit $ac_status); } && {
50539	 test -z "$ac_c_werror_flag" ||
50540	 test ! -s conftest.err
50541       } && test -s conftest$ac_exeext &&
50542       $as_test_x conftest$ac_exeext; then
50543  ac_cv_func_ext_krb5_set_real_time=yes
50544else
50545  echo "$as_me: failed program was:" >&5
50546sed 's/^/| /' conftest.$ac_ext >&5
50547
50548	ac_cv_func_ext_krb5_set_real_time=no
50549fi
50550
50551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50552      conftest$ac_exeext conftest.$ac_ext
50553fi
50554{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_real_time" >&5
50555echo "${ECHO_T}$ac_cv_func_ext_krb5_set_real_time" >&6; }
50556    LIBS=$ac_check_func_ext_save_LIBS
50557    if test $ac_cv_func_ext_krb5_set_real_time = yes; then
50558  cat >>confdefs.h <<_ACEOF
50559#define HAVE_KRB5_SET_REAL_TIME 1
50560_ACEOF
50561
50562fi
50563
50564
50565
50566
50567    ac_check_func_ext_save_LIBS=$LIBS
50568    LIBS="$KRB5_LIBS $LIBS"
50569        { echo "$as_me:$LINENO: checking for krb5_set_default_in_tkt_etypes" >&5
50570echo $ECHO_N "checking for krb5_set_default_in_tkt_etypes... $ECHO_C" >&6; }
50571if test "${ac_cv_func_ext_krb5_set_default_in_tkt_etypes+set}" = set; then
50572  echo $ECHO_N "(cached) $ECHO_C" >&6
50573else
50574  cat >conftest.$ac_ext <<_ACEOF
50575/* confdefs.h.  */
50576_ACEOF
50577cat confdefs.h >>conftest.$ac_ext
50578cat >>conftest.$ac_ext <<_ACEOF
50579/* end confdefs.h.  */
50580/* Define krb5_set_default_in_tkt_etypes to an innocuous variant, in case <limits.h> declares krb5_set_default_in_tkt_etypes.
50581   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50582#define krb5_set_default_in_tkt_etypes innocuous_krb5_set_default_in_tkt_etypes
50583
50584/* System header to define __stub macros and hopefully few prototypes,
50585    which can conflict with char krb5_set_default_in_tkt_etypes (); below.
50586    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50587    <limits.h> exists even on freestanding compilers.  */
50588
50589#ifdef __STDC__
50590# include <limits.h>
50591#else
50592# include <assert.h>
50593#endif
50594
50595#undef krb5_set_default_in_tkt_etypes
50596
50597/* Override any GCC internal prototype to avoid an error.
50598   Use char because int might match the return type of a GCC
50599   builtin and then its argument prototype would still apply.  */
50600#ifdef __cplusplus
50601extern "C"
50602#endif
50603char krb5_set_default_in_tkt_etypes ();
50604/* The GNU C library defines this for functions which it implements
50605    to always fail with ENOSYS.  Some functions are actually named
50606    something starting with __ and the normal name is an alias.  */
50607#if defined __stub_krb5_set_default_in_tkt_etypes || defined __stub___krb5_set_default_in_tkt_etypes
50608choke me
50609#endif
50610
50611int
50612main ()
50613{
50614return krb5_set_default_in_tkt_etypes ();
50615  ;
50616  return 0;
50617}
50618_ACEOF
50619rm -f conftest.$ac_objext conftest$ac_exeext
50620if { (ac_try="$ac_link"
50621case "(($ac_try" in
50622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50623  *) ac_try_echo=$ac_try;;
50624esac
50625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50626  (eval "$ac_link") 2>conftest.er1
50627  ac_status=$?
50628  grep -v '^ *+' conftest.er1 >conftest.err
50629  rm -f conftest.er1
50630  cat conftest.err >&5
50631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50632  (exit $ac_status); } && {
50633	 test -z "$ac_c_werror_flag" ||
50634	 test ! -s conftest.err
50635       } && test -s conftest$ac_exeext &&
50636       $as_test_x conftest$ac_exeext; then
50637  ac_cv_func_ext_krb5_set_default_in_tkt_etypes=yes
50638else
50639  echo "$as_me: failed program was:" >&5
50640sed 's/^/| /' conftest.$ac_ext >&5
50641
50642	ac_cv_func_ext_krb5_set_default_in_tkt_etypes=no
50643fi
50644
50645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50646      conftest$ac_exeext conftest.$ac_ext
50647fi
50648{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_default_in_tkt_etypes" >&5
50649echo "${ECHO_T}$ac_cv_func_ext_krb5_set_default_in_tkt_etypes" >&6; }
50650    LIBS=$ac_check_func_ext_save_LIBS
50651    if test $ac_cv_func_ext_krb5_set_default_in_tkt_etypes = yes; then
50652  cat >>confdefs.h <<_ACEOF
50653#define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
50654_ACEOF
50655
50656fi
50657
50658
50659
50660
50661    ac_check_func_ext_save_LIBS=$LIBS
50662    LIBS="$KRB5_LIBS $LIBS"
50663        { echo "$as_me:$LINENO: checking for krb5_set_default_tgs_enctypes" >&5
50664echo $ECHO_N "checking for krb5_set_default_tgs_enctypes... $ECHO_C" >&6; }
50665if test "${ac_cv_func_ext_krb5_set_default_tgs_enctypes+set}" = set; then
50666  echo $ECHO_N "(cached) $ECHO_C" >&6
50667else
50668  cat >conftest.$ac_ext <<_ACEOF
50669/* confdefs.h.  */
50670_ACEOF
50671cat confdefs.h >>conftest.$ac_ext
50672cat >>conftest.$ac_ext <<_ACEOF
50673/* end confdefs.h.  */
50674/* Define krb5_set_default_tgs_enctypes to an innocuous variant, in case <limits.h> declares krb5_set_default_tgs_enctypes.
50675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50676#define krb5_set_default_tgs_enctypes innocuous_krb5_set_default_tgs_enctypes
50677
50678/* System header to define __stub macros and hopefully few prototypes,
50679    which can conflict with char krb5_set_default_tgs_enctypes (); below.
50680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50681    <limits.h> exists even on freestanding compilers.  */
50682
50683#ifdef __STDC__
50684# include <limits.h>
50685#else
50686# include <assert.h>
50687#endif
50688
50689#undef krb5_set_default_tgs_enctypes
50690
50691/* Override any GCC internal prototype to avoid an error.
50692   Use char because int might match the return type of a GCC
50693   builtin and then its argument prototype would still apply.  */
50694#ifdef __cplusplus
50695extern "C"
50696#endif
50697char krb5_set_default_tgs_enctypes ();
50698/* The GNU C library defines this for functions which it implements
50699    to always fail with ENOSYS.  Some functions are actually named
50700    something starting with __ and the normal name is an alias.  */
50701#if defined __stub_krb5_set_default_tgs_enctypes || defined __stub___krb5_set_default_tgs_enctypes
50702choke me
50703#endif
50704
50705int
50706main ()
50707{
50708return krb5_set_default_tgs_enctypes ();
50709  ;
50710  return 0;
50711}
50712_ACEOF
50713rm -f conftest.$ac_objext conftest$ac_exeext
50714if { (ac_try="$ac_link"
50715case "(($ac_try" in
50716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50717  *) ac_try_echo=$ac_try;;
50718esac
50719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50720  (eval "$ac_link") 2>conftest.er1
50721  ac_status=$?
50722  grep -v '^ *+' conftest.er1 >conftest.err
50723  rm -f conftest.er1
50724  cat conftest.err >&5
50725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50726  (exit $ac_status); } && {
50727	 test -z "$ac_c_werror_flag" ||
50728	 test ! -s conftest.err
50729       } && test -s conftest$ac_exeext &&
50730       $as_test_x conftest$ac_exeext; then
50731  ac_cv_func_ext_krb5_set_default_tgs_enctypes=yes
50732else
50733  echo "$as_me: failed program was:" >&5
50734sed 's/^/| /' conftest.$ac_ext >&5
50735
50736	ac_cv_func_ext_krb5_set_default_tgs_enctypes=no
50737fi
50738
50739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50740      conftest$ac_exeext conftest.$ac_ext
50741fi
50742{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_default_tgs_enctypes" >&5
50743echo "${ECHO_T}$ac_cv_func_ext_krb5_set_default_tgs_enctypes" >&6; }
50744    LIBS=$ac_check_func_ext_save_LIBS
50745    if test $ac_cv_func_ext_krb5_set_default_tgs_enctypes = yes; then
50746  cat >>confdefs.h <<_ACEOF
50747#define HAVE_KRB5_SET_DEFAULT_TGS_ENCTYPES 1
50748_ACEOF
50749
50750fi
50751
50752
50753
50754
50755    ac_check_func_ext_save_LIBS=$LIBS
50756    LIBS="$KRB5_LIBS $LIBS"
50757        { echo "$as_me:$LINENO: checking for krb5_set_default_tgs_ktypes" >&5
50758echo $ECHO_N "checking for krb5_set_default_tgs_ktypes... $ECHO_C" >&6; }
50759if test "${ac_cv_func_ext_krb5_set_default_tgs_ktypes+set}" = set; then
50760  echo $ECHO_N "(cached) $ECHO_C" >&6
50761else
50762  cat >conftest.$ac_ext <<_ACEOF
50763/* confdefs.h.  */
50764_ACEOF
50765cat confdefs.h >>conftest.$ac_ext
50766cat >>conftest.$ac_ext <<_ACEOF
50767/* end confdefs.h.  */
50768/* Define krb5_set_default_tgs_ktypes to an innocuous variant, in case <limits.h> declares krb5_set_default_tgs_ktypes.
50769   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50770#define krb5_set_default_tgs_ktypes innocuous_krb5_set_default_tgs_ktypes
50771
50772/* System header to define __stub macros and hopefully few prototypes,
50773    which can conflict with char krb5_set_default_tgs_ktypes (); below.
50774    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50775    <limits.h> exists even on freestanding compilers.  */
50776
50777#ifdef __STDC__
50778# include <limits.h>
50779#else
50780# include <assert.h>
50781#endif
50782
50783#undef krb5_set_default_tgs_ktypes
50784
50785/* Override any GCC internal prototype to avoid an error.
50786   Use char because int might match the return type of a GCC
50787   builtin and then its argument prototype would still apply.  */
50788#ifdef __cplusplus
50789extern "C"
50790#endif
50791char krb5_set_default_tgs_ktypes ();
50792/* The GNU C library defines this for functions which it implements
50793    to always fail with ENOSYS.  Some functions are actually named
50794    something starting with __ and the normal name is an alias.  */
50795#if defined __stub_krb5_set_default_tgs_ktypes || defined __stub___krb5_set_default_tgs_ktypes
50796choke me
50797#endif
50798
50799int
50800main ()
50801{
50802return krb5_set_default_tgs_ktypes ();
50803  ;
50804  return 0;
50805}
50806_ACEOF
50807rm -f conftest.$ac_objext conftest$ac_exeext
50808if { (ac_try="$ac_link"
50809case "(($ac_try" in
50810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50811  *) ac_try_echo=$ac_try;;
50812esac
50813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50814  (eval "$ac_link") 2>conftest.er1
50815  ac_status=$?
50816  grep -v '^ *+' conftest.er1 >conftest.err
50817  rm -f conftest.er1
50818  cat conftest.err >&5
50819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50820  (exit $ac_status); } && {
50821	 test -z "$ac_c_werror_flag" ||
50822	 test ! -s conftest.err
50823       } && test -s conftest$ac_exeext &&
50824       $as_test_x conftest$ac_exeext; then
50825  ac_cv_func_ext_krb5_set_default_tgs_ktypes=yes
50826else
50827  echo "$as_me: failed program was:" >&5
50828sed 's/^/| /' conftest.$ac_ext >&5
50829
50830	ac_cv_func_ext_krb5_set_default_tgs_ktypes=no
50831fi
50832
50833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50834      conftest$ac_exeext conftest.$ac_ext
50835fi
50836{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_default_tgs_ktypes" >&5
50837echo "${ECHO_T}$ac_cv_func_ext_krb5_set_default_tgs_ktypes" >&6; }
50838    LIBS=$ac_check_func_ext_save_LIBS
50839    if test $ac_cv_func_ext_krb5_set_default_tgs_ktypes = yes; then
50840  cat >>confdefs.h <<_ACEOF
50841#define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
50842_ACEOF
50843
50844fi
50845
50846
50847
50848
50849    ac_check_func_ext_save_LIBS=$LIBS
50850    LIBS="$KRB5_LIBS $LIBS"
50851        { echo "$as_me:$LINENO: checking for krb5_principal2salt" >&5
50852echo $ECHO_N "checking for krb5_principal2salt... $ECHO_C" >&6; }
50853if test "${ac_cv_func_ext_krb5_principal2salt+set}" = set; then
50854  echo $ECHO_N "(cached) $ECHO_C" >&6
50855else
50856  cat >conftest.$ac_ext <<_ACEOF
50857/* confdefs.h.  */
50858_ACEOF
50859cat confdefs.h >>conftest.$ac_ext
50860cat >>conftest.$ac_ext <<_ACEOF
50861/* end confdefs.h.  */
50862/* Define krb5_principal2salt to an innocuous variant, in case <limits.h> declares krb5_principal2salt.
50863   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50864#define krb5_principal2salt innocuous_krb5_principal2salt
50865
50866/* System header to define __stub macros and hopefully few prototypes,
50867    which can conflict with char krb5_principal2salt (); below.
50868    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50869    <limits.h> exists even on freestanding compilers.  */
50870
50871#ifdef __STDC__
50872# include <limits.h>
50873#else
50874# include <assert.h>
50875#endif
50876
50877#undef krb5_principal2salt
50878
50879/* Override any GCC internal prototype to avoid an error.
50880   Use char because int might match the return type of a GCC
50881   builtin and then its argument prototype would still apply.  */
50882#ifdef __cplusplus
50883extern "C"
50884#endif
50885char krb5_principal2salt ();
50886/* The GNU C library defines this for functions which it implements
50887    to always fail with ENOSYS.  Some functions are actually named
50888    something starting with __ and the normal name is an alias.  */
50889#if defined __stub_krb5_principal2salt || defined __stub___krb5_principal2salt
50890choke me
50891#endif
50892
50893int
50894main ()
50895{
50896return krb5_principal2salt ();
50897  ;
50898  return 0;
50899}
50900_ACEOF
50901rm -f conftest.$ac_objext conftest$ac_exeext
50902if { (ac_try="$ac_link"
50903case "(($ac_try" in
50904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50905  *) ac_try_echo=$ac_try;;
50906esac
50907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50908  (eval "$ac_link") 2>conftest.er1
50909  ac_status=$?
50910  grep -v '^ *+' conftest.er1 >conftest.err
50911  rm -f conftest.er1
50912  cat conftest.err >&5
50913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50914  (exit $ac_status); } && {
50915	 test -z "$ac_c_werror_flag" ||
50916	 test ! -s conftest.err
50917       } && test -s conftest$ac_exeext &&
50918       $as_test_x conftest$ac_exeext; then
50919  ac_cv_func_ext_krb5_principal2salt=yes
50920else
50921  echo "$as_me: failed program was:" >&5
50922sed 's/^/| /' conftest.$ac_ext >&5
50923
50924	ac_cv_func_ext_krb5_principal2salt=no
50925fi
50926
50927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50928      conftest$ac_exeext conftest.$ac_ext
50929fi
50930{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_principal2salt" >&5
50931echo "${ECHO_T}$ac_cv_func_ext_krb5_principal2salt" >&6; }
50932    LIBS=$ac_check_func_ext_save_LIBS
50933    if test $ac_cv_func_ext_krb5_principal2salt = yes; then
50934  cat >>confdefs.h <<_ACEOF
50935#define HAVE_KRB5_PRINCIPAL2SALT 1
50936_ACEOF
50937
50938fi
50939
50940
50941
50942
50943    ac_check_func_ext_save_LIBS=$LIBS
50944    LIBS="$KRB5_LIBS $LIBS"
50945        { echo "$as_me:$LINENO: checking for krb5_use_enctype" >&5
50946echo $ECHO_N "checking for krb5_use_enctype... $ECHO_C" >&6; }
50947if test "${ac_cv_func_ext_krb5_use_enctype+set}" = set; then
50948  echo $ECHO_N "(cached) $ECHO_C" >&6
50949else
50950  cat >conftest.$ac_ext <<_ACEOF
50951/* confdefs.h.  */
50952_ACEOF
50953cat confdefs.h >>conftest.$ac_ext
50954cat >>conftest.$ac_ext <<_ACEOF
50955/* end confdefs.h.  */
50956/* Define krb5_use_enctype to an innocuous variant, in case <limits.h> declares krb5_use_enctype.
50957   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50958#define krb5_use_enctype innocuous_krb5_use_enctype
50959
50960/* System header to define __stub macros and hopefully few prototypes,
50961    which can conflict with char krb5_use_enctype (); below.
50962    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50963    <limits.h> exists even on freestanding compilers.  */
50964
50965#ifdef __STDC__
50966# include <limits.h>
50967#else
50968# include <assert.h>
50969#endif
50970
50971#undef krb5_use_enctype
50972
50973/* Override any GCC internal prototype to avoid an error.
50974   Use char because int might match the return type of a GCC
50975   builtin and then its argument prototype would still apply.  */
50976#ifdef __cplusplus
50977extern "C"
50978#endif
50979char krb5_use_enctype ();
50980/* The GNU C library defines this for functions which it implements
50981    to always fail with ENOSYS.  Some functions are actually named
50982    something starting with __ and the normal name is an alias.  */
50983#if defined __stub_krb5_use_enctype || defined __stub___krb5_use_enctype
50984choke me
50985#endif
50986
50987int
50988main ()
50989{
50990return krb5_use_enctype ();
50991  ;
50992  return 0;
50993}
50994_ACEOF
50995rm -f conftest.$ac_objext conftest$ac_exeext
50996if { (ac_try="$ac_link"
50997case "(($ac_try" in
50998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50999  *) ac_try_echo=$ac_try;;
51000esac
51001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51002  (eval "$ac_link") 2>conftest.er1
51003  ac_status=$?
51004  grep -v '^ *+' conftest.er1 >conftest.err
51005  rm -f conftest.er1
51006  cat conftest.err >&5
51007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51008  (exit $ac_status); } && {
51009	 test -z "$ac_c_werror_flag" ||
51010	 test ! -s conftest.err
51011       } && test -s conftest$ac_exeext &&
51012       $as_test_x conftest$ac_exeext; then
51013  ac_cv_func_ext_krb5_use_enctype=yes
51014else
51015  echo "$as_me: failed program was:" >&5
51016sed 's/^/| /' conftest.$ac_ext >&5
51017
51018	ac_cv_func_ext_krb5_use_enctype=no
51019fi
51020
51021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51022      conftest$ac_exeext conftest.$ac_ext
51023fi
51024{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_use_enctype" >&5
51025echo "${ECHO_T}$ac_cv_func_ext_krb5_use_enctype" >&6; }
51026    LIBS=$ac_check_func_ext_save_LIBS
51027    if test $ac_cv_func_ext_krb5_use_enctype = yes; then
51028  cat >>confdefs.h <<_ACEOF
51029#define HAVE_KRB5_USE_ENCTYPE 1
51030_ACEOF
51031
51032fi
51033
51034
51035
51036
51037    ac_check_func_ext_save_LIBS=$LIBS
51038    LIBS="$KRB5_LIBS $LIBS"
51039        { echo "$as_me:$LINENO: checking for krb5_string_to_key" >&5
51040echo $ECHO_N "checking for krb5_string_to_key... $ECHO_C" >&6; }
51041if test "${ac_cv_func_ext_krb5_string_to_key+set}" = set; then
51042  echo $ECHO_N "(cached) $ECHO_C" >&6
51043else
51044  cat >conftest.$ac_ext <<_ACEOF
51045/* confdefs.h.  */
51046_ACEOF
51047cat confdefs.h >>conftest.$ac_ext
51048cat >>conftest.$ac_ext <<_ACEOF
51049/* end confdefs.h.  */
51050/* Define krb5_string_to_key to an innocuous variant, in case <limits.h> declares krb5_string_to_key.
51051   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51052#define krb5_string_to_key innocuous_krb5_string_to_key
51053
51054/* System header to define __stub macros and hopefully few prototypes,
51055    which can conflict with char krb5_string_to_key (); below.
51056    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51057    <limits.h> exists even on freestanding compilers.  */
51058
51059#ifdef __STDC__
51060# include <limits.h>
51061#else
51062# include <assert.h>
51063#endif
51064
51065#undef krb5_string_to_key
51066
51067/* Override any GCC internal prototype to avoid an error.
51068   Use char because int might match the return type of a GCC
51069   builtin and then its argument prototype would still apply.  */
51070#ifdef __cplusplus
51071extern "C"
51072#endif
51073char krb5_string_to_key ();
51074/* The GNU C library defines this for functions which it implements
51075    to always fail with ENOSYS.  Some functions are actually named
51076    something starting with __ and the normal name is an alias.  */
51077#if defined __stub_krb5_string_to_key || defined __stub___krb5_string_to_key
51078choke me
51079#endif
51080
51081int
51082main ()
51083{
51084return krb5_string_to_key ();
51085  ;
51086  return 0;
51087}
51088_ACEOF
51089rm -f conftest.$ac_objext conftest$ac_exeext
51090if { (ac_try="$ac_link"
51091case "(($ac_try" in
51092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51093  *) ac_try_echo=$ac_try;;
51094esac
51095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51096  (eval "$ac_link") 2>conftest.er1
51097  ac_status=$?
51098  grep -v '^ *+' conftest.er1 >conftest.err
51099  rm -f conftest.er1
51100  cat conftest.err >&5
51101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51102  (exit $ac_status); } && {
51103	 test -z "$ac_c_werror_flag" ||
51104	 test ! -s conftest.err
51105       } && test -s conftest$ac_exeext &&
51106       $as_test_x conftest$ac_exeext; then
51107  ac_cv_func_ext_krb5_string_to_key=yes
51108else
51109  echo "$as_me: failed program was:" >&5
51110sed 's/^/| /' conftest.$ac_ext >&5
51111
51112	ac_cv_func_ext_krb5_string_to_key=no
51113fi
51114
51115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51116      conftest$ac_exeext conftest.$ac_ext
51117fi
51118{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_string_to_key" >&5
51119echo "${ECHO_T}$ac_cv_func_ext_krb5_string_to_key" >&6; }
51120    LIBS=$ac_check_func_ext_save_LIBS
51121    if test $ac_cv_func_ext_krb5_string_to_key = yes; then
51122  cat >>confdefs.h <<_ACEOF
51123#define HAVE_KRB5_STRING_TO_KEY 1
51124_ACEOF
51125
51126fi
51127
51128
51129
51130
51131    ac_check_func_ext_save_LIBS=$LIBS
51132    LIBS="$KRB5_LIBS $LIBS"
51133        { echo "$as_me:$LINENO: checking for krb5_get_pw_salt" >&5
51134echo $ECHO_N "checking for krb5_get_pw_salt... $ECHO_C" >&6; }
51135if test "${ac_cv_func_ext_krb5_get_pw_salt+set}" = set; then
51136  echo $ECHO_N "(cached) $ECHO_C" >&6
51137else
51138  cat >conftest.$ac_ext <<_ACEOF
51139/* confdefs.h.  */
51140_ACEOF
51141cat confdefs.h >>conftest.$ac_ext
51142cat >>conftest.$ac_ext <<_ACEOF
51143/* end confdefs.h.  */
51144/* Define krb5_get_pw_salt to an innocuous variant, in case <limits.h> declares krb5_get_pw_salt.
51145   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51146#define krb5_get_pw_salt innocuous_krb5_get_pw_salt
51147
51148/* System header to define __stub macros and hopefully few prototypes,
51149    which can conflict with char krb5_get_pw_salt (); below.
51150    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51151    <limits.h> exists even on freestanding compilers.  */
51152
51153#ifdef __STDC__
51154# include <limits.h>
51155#else
51156# include <assert.h>
51157#endif
51158
51159#undef krb5_get_pw_salt
51160
51161/* Override any GCC internal prototype to avoid an error.
51162   Use char because int might match the return type of a GCC
51163   builtin and then its argument prototype would still apply.  */
51164#ifdef __cplusplus
51165extern "C"
51166#endif
51167char krb5_get_pw_salt ();
51168/* The GNU C library defines this for functions which it implements
51169    to always fail with ENOSYS.  Some functions are actually named
51170    something starting with __ and the normal name is an alias.  */
51171#if defined __stub_krb5_get_pw_salt || defined __stub___krb5_get_pw_salt
51172choke me
51173#endif
51174
51175int
51176main ()
51177{
51178return krb5_get_pw_salt ();
51179  ;
51180  return 0;
51181}
51182_ACEOF
51183rm -f conftest.$ac_objext conftest$ac_exeext
51184if { (ac_try="$ac_link"
51185case "(($ac_try" in
51186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51187  *) ac_try_echo=$ac_try;;
51188esac
51189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51190  (eval "$ac_link") 2>conftest.er1
51191  ac_status=$?
51192  grep -v '^ *+' conftest.er1 >conftest.err
51193  rm -f conftest.er1
51194  cat conftest.err >&5
51195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51196  (exit $ac_status); } && {
51197	 test -z "$ac_c_werror_flag" ||
51198	 test ! -s conftest.err
51199       } && test -s conftest$ac_exeext &&
51200       $as_test_x conftest$ac_exeext; then
51201  ac_cv_func_ext_krb5_get_pw_salt=yes
51202else
51203  echo "$as_me: failed program was:" >&5
51204sed 's/^/| /' conftest.$ac_ext >&5
51205
51206	ac_cv_func_ext_krb5_get_pw_salt=no
51207fi
51208
51209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51210      conftest$ac_exeext conftest.$ac_ext
51211fi
51212{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_pw_salt" >&5
51213echo "${ECHO_T}$ac_cv_func_ext_krb5_get_pw_salt" >&6; }
51214    LIBS=$ac_check_func_ext_save_LIBS
51215    if test $ac_cv_func_ext_krb5_get_pw_salt = yes; then
51216  cat >>confdefs.h <<_ACEOF
51217#define HAVE_KRB5_GET_PW_SALT 1
51218_ACEOF
51219
51220fi
51221
51222
51223
51224
51225    ac_check_func_ext_save_LIBS=$LIBS
51226    LIBS="$KRB5_LIBS $LIBS"
51227        { echo "$as_me:$LINENO: checking for krb5_string_to_key_salt" >&5
51228echo $ECHO_N "checking for krb5_string_to_key_salt... $ECHO_C" >&6; }
51229if test "${ac_cv_func_ext_krb5_string_to_key_salt+set}" = set; then
51230  echo $ECHO_N "(cached) $ECHO_C" >&6
51231else
51232  cat >conftest.$ac_ext <<_ACEOF
51233/* confdefs.h.  */
51234_ACEOF
51235cat confdefs.h >>conftest.$ac_ext
51236cat >>conftest.$ac_ext <<_ACEOF
51237/* end confdefs.h.  */
51238/* Define krb5_string_to_key_salt to an innocuous variant, in case <limits.h> declares krb5_string_to_key_salt.
51239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51240#define krb5_string_to_key_salt innocuous_krb5_string_to_key_salt
51241
51242/* System header to define __stub macros and hopefully few prototypes,
51243    which can conflict with char krb5_string_to_key_salt (); below.
51244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51245    <limits.h> exists even on freestanding compilers.  */
51246
51247#ifdef __STDC__
51248# include <limits.h>
51249#else
51250# include <assert.h>
51251#endif
51252
51253#undef krb5_string_to_key_salt
51254
51255/* Override any GCC internal prototype to avoid an error.
51256   Use char because int might match the return type of a GCC
51257   builtin and then its argument prototype would still apply.  */
51258#ifdef __cplusplus
51259extern "C"
51260#endif
51261char krb5_string_to_key_salt ();
51262/* The GNU C library defines this for functions which it implements
51263    to always fail with ENOSYS.  Some functions are actually named
51264    something starting with __ and the normal name is an alias.  */
51265#if defined __stub_krb5_string_to_key_salt || defined __stub___krb5_string_to_key_salt
51266choke me
51267#endif
51268
51269int
51270main ()
51271{
51272return krb5_string_to_key_salt ();
51273  ;
51274  return 0;
51275}
51276_ACEOF
51277rm -f conftest.$ac_objext conftest$ac_exeext
51278if { (ac_try="$ac_link"
51279case "(($ac_try" in
51280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51281  *) ac_try_echo=$ac_try;;
51282esac
51283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51284  (eval "$ac_link") 2>conftest.er1
51285  ac_status=$?
51286  grep -v '^ *+' conftest.er1 >conftest.err
51287  rm -f conftest.er1
51288  cat conftest.err >&5
51289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51290  (exit $ac_status); } && {
51291	 test -z "$ac_c_werror_flag" ||
51292	 test ! -s conftest.err
51293       } && test -s conftest$ac_exeext &&
51294       $as_test_x conftest$ac_exeext; then
51295  ac_cv_func_ext_krb5_string_to_key_salt=yes
51296else
51297  echo "$as_me: failed program was:" >&5
51298sed 's/^/| /' conftest.$ac_ext >&5
51299
51300	ac_cv_func_ext_krb5_string_to_key_salt=no
51301fi
51302
51303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51304      conftest$ac_exeext conftest.$ac_ext
51305fi
51306{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_string_to_key_salt" >&5
51307echo "${ECHO_T}$ac_cv_func_ext_krb5_string_to_key_salt" >&6; }
51308    LIBS=$ac_check_func_ext_save_LIBS
51309    if test $ac_cv_func_ext_krb5_string_to_key_salt = yes; then
51310  cat >>confdefs.h <<_ACEOF
51311#define HAVE_KRB5_STRING_TO_KEY_SALT 1
51312_ACEOF
51313
51314fi
51315
51316
51317
51318
51319    ac_check_func_ext_save_LIBS=$LIBS
51320    LIBS="$KRB5_LIBS $LIBS"
51321        { echo "$as_me:$LINENO: checking for krb5_auth_con_setkey" >&5
51322echo $ECHO_N "checking for krb5_auth_con_setkey... $ECHO_C" >&6; }
51323if test "${ac_cv_func_ext_krb5_auth_con_setkey+set}" = set; then
51324  echo $ECHO_N "(cached) $ECHO_C" >&6
51325else
51326  cat >conftest.$ac_ext <<_ACEOF
51327/* confdefs.h.  */
51328_ACEOF
51329cat confdefs.h >>conftest.$ac_ext
51330cat >>conftest.$ac_ext <<_ACEOF
51331/* end confdefs.h.  */
51332/* Define krb5_auth_con_setkey to an innocuous variant, in case <limits.h> declares krb5_auth_con_setkey.
51333   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51334#define krb5_auth_con_setkey innocuous_krb5_auth_con_setkey
51335
51336/* System header to define __stub macros and hopefully few prototypes,
51337    which can conflict with char krb5_auth_con_setkey (); below.
51338    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51339    <limits.h> exists even on freestanding compilers.  */
51340
51341#ifdef __STDC__
51342# include <limits.h>
51343#else
51344# include <assert.h>
51345#endif
51346
51347#undef krb5_auth_con_setkey
51348
51349/* Override any GCC internal prototype to avoid an error.
51350   Use char because int might match the return type of a GCC
51351   builtin and then its argument prototype would still apply.  */
51352#ifdef __cplusplus
51353extern "C"
51354#endif
51355char krb5_auth_con_setkey ();
51356/* The GNU C library defines this for functions which it implements
51357    to always fail with ENOSYS.  Some functions are actually named
51358    something starting with __ and the normal name is an alias.  */
51359#if defined __stub_krb5_auth_con_setkey || defined __stub___krb5_auth_con_setkey
51360choke me
51361#endif
51362
51363int
51364main ()
51365{
51366return krb5_auth_con_setkey ();
51367  ;
51368  return 0;
51369}
51370_ACEOF
51371rm -f conftest.$ac_objext conftest$ac_exeext
51372if { (ac_try="$ac_link"
51373case "(($ac_try" in
51374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51375  *) ac_try_echo=$ac_try;;
51376esac
51377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51378  (eval "$ac_link") 2>conftest.er1
51379  ac_status=$?
51380  grep -v '^ *+' conftest.er1 >conftest.err
51381  rm -f conftest.er1
51382  cat conftest.err >&5
51383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51384  (exit $ac_status); } && {
51385	 test -z "$ac_c_werror_flag" ||
51386	 test ! -s conftest.err
51387       } && test -s conftest$ac_exeext &&
51388       $as_test_x conftest$ac_exeext; then
51389  ac_cv_func_ext_krb5_auth_con_setkey=yes
51390else
51391  echo "$as_me: failed program was:" >&5
51392sed 's/^/| /' conftest.$ac_ext >&5
51393
51394	ac_cv_func_ext_krb5_auth_con_setkey=no
51395fi
51396
51397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51398      conftest$ac_exeext conftest.$ac_ext
51399fi
51400{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_auth_con_setkey" >&5
51401echo "${ECHO_T}$ac_cv_func_ext_krb5_auth_con_setkey" >&6; }
51402    LIBS=$ac_check_func_ext_save_LIBS
51403    if test $ac_cv_func_ext_krb5_auth_con_setkey = yes; then
51404  cat >>confdefs.h <<_ACEOF
51405#define HAVE_KRB5_AUTH_CON_SETKEY 1
51406_ACEOF
51407
51408fi
51409
51410
51411
51412
51413    ac_check_func_ext_save_LIBS=$LIBS
51414    LIBS="$KRB5_LIBS $LIBS"
51415        { echo "$as_me:$LINENO: checking for krb5_auth_con_setuseruserkey" >&5
51416echo $ECHO_N "checking for krb5_auth_con_setuseruserkey... $ECHO_C" >&6; }
51417if test "${ac_cv_func_ext_krb5_auth_con_setuseruserkey+set}" = set; then
51418  echo $ECHO_N "(cached) $ECHO_C" >&6
51419else
51420  cat >conftest.$ac_ext <<_ACEOF
51421/* confdefs.h.  */
51422_ACEOF
51423cat confdefs.h >>conftest.$ac_ext
51424cat >>conftest.$ac_ext <<_ACEOF
51425/* end confdefs.h.  */
51426/* Define krb5_auth_con_setuseruserkey to an innocuous variant, in case <limits.h> declares krb5_auth_con_setuseruserkey.
51427   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51428#define krb5_auth_con_setuseruserkey innocuous_krb5_auth_con_setuseruserkey
51429
51430/* System header to define __stub macros and hopefully few prototypes,
51431    which can conflict with char krb5_auth_con_setuseruserkey (); below.
51432    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51433    <limits.h> exists even on freestanding compilers.  */
51434
51435#ifdef __STDC__
51436# include <limits.h>
51437#else
51438# include <assert.h>
51439#endif
51440
51441#undef krb5_auth_con_setuseruserkey
51442
51443/* Override any GCC internal prototype to avoid an error.
51444   Use char because int might match the return type of a GCC
51445   builtin and then its argument prototype would still apply.  */
51446#ifdef __cplusplus
51447extern "C"
51448#endif
51449char krb5_auth_con_setuseruserkey ();
51450/* The GNU C library defines this for functions which it implements
51451    to always fail with ENOSYS.  Some functions are actually named
51452    something starting with __ and the normal name is an alias.  */
51453#if defined __stub_krb5_auth_con_setuseruserkey || defined __stub___krb5_auth_con_setuseruserkey
51454choke me
51455#endif
51456
51457int
51458main ()
51459{
51460return krb5_auth_con_setuseruserkey ();
51461  ;
51462  return 0;
51463}
51464_ACEOF
51465rm -f conftest.$ac_objext conftest$ac_exeext
51466if { (ac_try="$ac_link"
51467case "(($ac_try" in
51468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51469  *) ac_try_echo=$ac_try;;
51470esac
51471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51472  (eval "$ac_link") 2>conftest.er1
51473  ac_status=$?
51474  grep -v '^ *+' conftest.er1 >conftest.err
51475  rm -f conftest.er1
51476  cat conftest.err >&5
51477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51478  (exit $ac_status); } && {
51479	 test -z "$ac_c_werror_flag" ||
51480	 test ! -s conftest.err
51481       } && test -s conftest$ac_exeext &&
51482       $as_test_x conftest$ac_exeext; then
51483  ac_cv_func_ext_krb5_auth_con_setuseruserkey=yes
51484else
51485  echo "$as_me: failed program was:" >&5
51486sed 's/^/| /' conftest.$ac_ext >&5
51487
51488	ac_cv_func_ext_krb5_auth_con_setuseruserkey=no
51489fi
51490
51491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51492      conftest$ac_exeext conftest.$ac_ext
51493fi
51494{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_auth_con_setuseruserkey" >&5
51495echo "${ECHO_T}$ac_cv_func_ext_krb5_auth_con_setuseruserkey" >&6; }
51496    LIBS=$ac_check_func_ext_save_LIBS
51497    if test $ac_cv_func_ext_krb5_auth_con_setuseruserkey = yes; then
51498  cat >>confdefs.h <<_ACEOF
51499#define HAVE_KRB5_AUTH_CON_SETUSERUSERKEY 1
51500_ACEOF
51501
51502fi
51503
51504
51505
51506
51507    ac_check_func_ext_save_LIBS=$LIBS
51508    LIBS="$KRB5_LIBS $LIBS"
51509        { echo "$as_me:$LINENO: checking for krb5_locate_kdc" >&5
51510echo $ECHO_N "checking for krb5_locate_kdc... $ECHO_C" >&6; }
51511if test "${ac_cv_func_ext_krb5_locate_kdc+set}" = set; then
51512  echo $ECHO_N "(cached) $ECHO_C" >&6
51513else
51514  cat >conftest.$ac_ext <<_ACEOF
51515/* confdefs.h.  */
51516_ACEOF
51517cat confdefs.h >>conftest.$ac_ext
51518cat >>conftest.$ac_ext <<_ACEOF
51519/* end confdefs.h.  */
51520/* Define krb5_locate_kdc to an innocuous variant, in case <limits.h> declares krb5_locate_kdc.
51521   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51522#define krb5_locate_kdc innocuous_krb5_locate_kdc
51523
51524/* System header to define __stub macros and hopefully few prototypes,
51525    which can conflict with char krb5_locate_kdc (); below.
51526    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51527    <limits.h> exists even on freestanding compilers.  */
51528
51529#ifdef __STDC__
51530# include <limits.h>
51531#else
51532# include <assert.h>
51533#endif
51534
51535#undef krb5_locate_kdc
51536
51537/* Override any GCC internal prototype to avoid an error.
51538   Use char because int might match the return type of a GCC
51539   builtin and then its argument prototype would still apply.  */
51540#ifdef __cplusplus
51541extern "C"
51542#endif
51543char krb5_locate_kdc ();
51544/* The GNU C library defines this for functions which it implements
51545    to always fail with ENOSYS.  Some functions are actually named
51546    something starting with __ and the normal name is an alias.  */
51547#if defined __stub_krb5_locate_kdc || defined __stub___krb5_locate_kdc
51548choke me
51549#endif
51550
51551int
51552main ()
51553{
51554return krb5_locate_kdc ();
51555  ;
51556  return 0;
51557}
51558_ACEOF
51559rm -f conftest.$ac_objext conftest$ac_exeext
51560if { (ac_try="$ac_link"
51561case "(($ac_try" in
51562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51563  *) ac_try_echo=$ac_try;;
51564esac
51565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51566  (eval "$ac_link") 2>conftest.er1
51567  ac_status=$?
51568  grep -v '^ *+' conftest.er1 >conftest.err
51569  rm -f conftest.er1
51570  cat conftest.err >&5
51571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51572  (exit $ac_status); } && {
51573	 test -z "$ac_c_werror_flag" ||
51574	 test ! -s conftest.err
51575       } && test -s conftest$ac_exeext &&
51576       $as_test_x conftest$ac_exeext; then
51577  ac_cv_func_ext_krb5_locate_kdc=yes
51578else
51579  echo "$as_me: failed program was:" >&5
51580sed 's/^/| /' conftest.$ac_ext >&5
51581
51582	ac_cv_func_ext_krb5_locate_kdc=no
51583fi
51584
51585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51586      conftest$ac_exeext conftest.$ac_ext
51587fi
51588{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_locate_kdc" >&5
51589echo "${ECHO_T}$ac_cv_func_ext_krb5_locate_kdc" >&6; }
51590    LIBS=$ac_check_func_ext_save_LIBS
51591    if test $ac_cv_func_ext_krb5_locate_kdc = yes; then
51592  cat >>confdefs.h <<_ACEOF
51593#define HAVE_KRB5_LOCATE_KDC 1
51594_ACEOF
51595
51596fi
51597
51598
51599
51600
51601    ac_check_func_ext_save_LIBS=$LIBS
51602    LIBS="$KRB5_LIBS $LIBS"
51603        { echo "$as_me:$LINENO: checking for krb5_get_permitted_enctypes" >&5
51604echo $ECHO_N "checking for krb5_get_permitted_enctypes... $ECHO_C" >&6; }
51605if test "${ac_cv_func_ext_krb5_get_permitted_enctypes+set}" = set; then
51606  echo $ECHO_N "(cached) $ECHO_C" >&6
51607else
51608  cat >conftest.$ac_ext <<_ACEOF
51609/* confdefs.h.  */
51610_ACEOF
51611cat confdefs.h >>conftest.$ac_ext
51612cat >>conftest.$ac_ext <<_ACEOF
51613/* end confdefs.h.  */
51614/* Define krb5_get_permitted_enctypes to an innocuous variant, in case <limits.h> declares krb5_get_permitted_enctypes.
51615   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51616#define krb5_get_permitted_enctypes innocuous_krb5_get_permitted_enctypes
51617
51618/* System header to define __stub macros and hopefully few prototypes,
51619    which can conflict with char krb5_get_permitted_enctypes (); below.
51620    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51621    <limits.h> exists even on freestanding compilers.  */
51622
51623#ifdef __STDC__
51624# include <limits.h>
51625#else
51626# include <assert.h>
51627#endif
51628
51629#undef krb5_get_permitted_enctypes
51630
51631/* Override any GCC internal prototype to avoid an error.
51632   Use char because int might match the return type of a GCC
51633   builtin and then its argument prototype would still apply.  */
51634#ifdef __cplusplus
51635extern "C"
51636#endif
51637char krb5_get_permitted_enctypes ();
51638/* The GNU C library defines this for functions which it implements
51639    to always fail with ENOSYS.  Some functions are actually named
51640    something starting with __ and the normal name is an alias.  */
51641#if defined __stub_krb5_get_permitted_enctypes || defined __stub___krb5_get_permitted_enctypes
51642choke me
51643#endif
51644
51645int
51646main ()
51647{
51648return krb5_get_permitted_enctypes ();
51649  ;
51650  return 0;
51651}
51652_ACEOF
51653rm -f conftest.$ac_objext conftest$ac_exeext
51654if { (ac_try="$ac_link"
51655case "(($ac_try" in
51656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51657  *) ac_try_echo=$ac_try;;
51658esac
51659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51660  (eval "$ac_link") 2>conftest.er1
51661  ac_status=$?
51662  grep -v '^ *+' conftest.er1 >conftest.err
51663  rm -f conftest.er1
51664  cat conftest.err >&5
51665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51666  (exit $ac_status); } && {
51667	 test -z "$ac_c_werror_flag" ||
51668	 test ! -s conftest.err
51669       } && test -s conftest$ac_exeext &&
51670       $as_test_x conftest$ac_exeext; then
51671  ac_cv_func_ext_krb5_get_permitted_enctypes=yes
51672else
51673  echo "$as_me: failed program was:" >&5
51674sed 's/^/| /' conftest.$ac_ext >&5
51675
51676	ac_cv_func_ext_krb5_get_permitted_enctypes=no
51677fi
51678
51679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51680      conftest$ac_exeext conftest.$ac_ext
51681fi
51682{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_permitted_enctypes" >&5
51683echo "${ECHO_T}$ac_cv_func_ext_krb5_get_permitted_enctypes" >&6; }
51684    LIBS=$ac_check_func_ext_save_LIBS
51685    if test $ac_cv_func_ext_krb5_get_permitted_enctypes = yes; then
51686  cat >>confdefs.h <<_ACEOF
51687#define HAVE_KRB5_GET_PERMITTED_ENCTYPES 1
51688_ACEOF
51689
51690fi
51691
51692
51693
51694
51695    ac_check_func_ext_save_LIBS=$LIBS
51696    LIBS="$KRB5_LIBS $LIBS"
51697        { echo "$as_me:$LINENO: checking for krb5_get_default_in_tkt_etypes" >&5
51698echo $ECHO_N "checking for krb5_get_default_in_tkt_etypes... $ECHO_C" >&6; }
51699if test "${ac_cv_func_ext_krb5_get_default_in_tkt_etypes+set}" = set; then
51700  echo $ECHO_N "(cached) $ECHO_C" >&6
51701else
51702  cat >conftest.$ac_ext <<_ACEOF
51703/* confdefs.h.  */
51704_ACEOF
51705cat confdefs.h >>conftest.$ac_ext
51706cat >>conftest.$ac_ext <<_ACEOF
51707/* end confdefs.h.  */
51708/* Define krb5_get_default_in_tkt_etypes to an innocuous variant, in case <limits.h> declares krb5_get_default_in_tkt_etypes.
51709   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51710#define krb5_get_default_in_tkt_etypes innocuous_krb5_get_default_in_tkt_etypes
51711
51712/* System header to define __stub macros and hopefully few prototypes,
51713    which can conflict with char krb5_get_default_in_tkt_etypes (); below.
51714    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51715    <limits.h> exists even on freestanding compilers.  */
51716
51717#ifdef __STDC__
51718# include <limits.h>
51719#else
51720# include <assert.h>
51721#endif
51722
51723#undef krb5_get_default_in_tkt_etypes
51724
51725/* Override any GCC internal prototype to avoid an error.
51726   Use char because int might match the return type of a GCC
51727   builtin and then its argument prototype would still apply.  */
51728#ifdef __cplusplus
51729extern "C"
51730#endif
51731char krb5_get_default_in_tkt_etypes ();
51732/* The GNU C library defines this for functions which it implements
51733    to always fail with ENOSYS.  Some functions are actually named
51734    something starting with __ and the normal name is an alias.  */
51735#if defined __stub_krb5_get_default_in_tkt_etypes || defined __stub___krb5_get_default_in_tkt_etypes
51736choke me
51737#endif
51738
51739int
51740main ()
51741{
51742return krb5_get_default_in_tkt_etypes ();
51743  ;
51744  return 0;
51745}
51746_ACEOF
51747rm -f conftest.$ac_objext conftest$ac_exeext
51748if { (ac_try="$ac_link"
51749case "(($ac_try" in
51750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51751  *) ac_try_echo=$ac_try;;
51752esac
51753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51754  (eval "$ac_link") 2>conftest.er1
51755  ac_status=$?
51756  grep -v '^ *+' conftest.er1 >conftest.err
51757  rm -f conftest.er1
51758  cat conftest.err >&5
51759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51760  (exit $ac_status); } && {
51761	 test -z "$ac_c_werror_flag" ||
51762	 test ! -s conftest.err
51763       } && test -s conftest$ac_exeext &&
51764       $as_test_x conftest$ac_exeext; then
51765  ac_cv_func_ext_krb5_get_default_in_tkt_etypes=yes
51766else
51767  echo "$as_me: failed program was:" >&5
51768sed 's/^/| /' conftest.$ac_ext >&5
51769
51770	ac_cv_func_ext_krb5_get_default_in_tkt_etypes=no
51771fi
51772
51773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51774      conftest$ac_exeext conftest.$ac_ext
51775fi
51776{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_default_in_tkt_etypes" >&5
51777echo "${ECHO_T}$ac_cv_func_ext_krb5_get_default_in_tkt_etypes" >&6; }
51778    LIBS=$ac_check_func_ext_save_LIBS
51779    if test $ac_cv_func_ext_krb5_get_default_in_tkt_etypes = yes; then
51780  cat >>confdefs.h <<_ACEOF
51781#define HAVE_KRB5_GET_DEFAULT_IN_TKT_ETYPES 1
51782_ACEOF
51783
51784fi
51785
51786
51787
51788
51789    ac_check_func_ext_save_LIBS=$LIBS
51790    LIBS="$KRB5_LIBS $LIBS"
51791        { echo "$as_me:$LINENO: checking for krb5_free_data_contents" >&5
51792echo $ECHO_N "checking for krb5_free_data_contents... $ECHO_C" >&6; }
51793if test "${ac_cv_func_ext_krb5_free_data_contents+set}" = set; then
51794  echo $ECHO_N "(cached) $ECHO_C" >&6
51795else
51796  cat >conftest.$ac_ext <<_ACEOF
51797/* confdefs.h.  */
51798_ACEOF
51799cat confdefs.h >>conftest.$ac_ext
51800cat >>conftest.$ac_ext <<_ACEOF
51801/* end confdefs.h.  */
51802/* Define krb5_free_data_contents to an innocuous variant, in case <limits.h> declares krb5_free_data_contents.
51803   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51804#define krb5_free_data_contents innocuous_krb5_free_data_contents
51805
51806/* System header to define __stub macros and hopefully few prototypes,
51807    which can conflict with char krb5_free_data_contents (); below.
51808    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51809    <limits.h> exists even on freestanding compilers.  */
51810
51811#ifdef __STDC__
51812# include <limits.h>
51813#else
51814# include <assert.h>
51815#endif
51816
51817#undef krb5_free_data_contents
51818
51819/* Override any GCC internal prototype to avoid an error.
51820   Use char because int might match the return type of a GCC
51821   builtin and then its argument prototype would still apply.  */
51822#ifdef __cplusplus
51823extern "C"
51824#endif
51825char krb5_free_data_contents ();
51826/* The GNU C library defines this for functions which it implements
51827    to always fail with ENOSYS.  Some functions are actually named
51828    something starting with __ and the normal name is an alias.  */
51829#if defined __stub_krb5_free_data_contents || defined __stub___krb5_free_data_contents
51830choke me
51831#endif
51832
51833int
51834main ()
51835{
51836return krb5_free_data_contents ();
51837  ;
51838  return 0;
51839}
51840_ACEOF
51841rm -f conftest.$ac_objext conftest$ac_exeext
51842if { (ac_try="$ac_link"
51843case "(($ac_try" in
51844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51845  *) ac_try_echo=$ac_try;;
51846esac
51847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51848  (eval "$ac_link") 2>conftest.er1
51849  ac_status=$?
51850  grep -v '^ *+' conftest.er1 >conftest.err
51851  rm -f conftest.er1
51852  cat conftest.err >&5
51853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51854  (exit $ac_status); } && {
51855	 test -z "$ac_c_werror_flag" ||
51856	 test ! -s conftest.err
51857       } && test -s conftest$ac_exeext &&
51858       $as_test_x conftest$ac_exeext; then
51859  ac_cv_func_ext_krb5_free_data_contents=yes
51860else
51861  echo "$as_me: failed program was:" >&5
51862sed 's/^/| /' conftest.$ac_ext >&5
51863
51864	ac_cv_func_ext_krb5_free_data_contents=no
51865fi
51866
51867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51868      conftest$ac_exeext conftest.$ac_ext
51869fi
51870{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_data_contents" >&5
51871echo "${ECHO_T}$ac_cv_func_ext_krb5_free_data_contents" >&6; }
51872    LIBS=$ac_check_func_ext_save_LIBS
51873    if test $ac_cv_func_ext_krb5_free_data_contents = yes; then
51874  cat >>confdefs.h <<_ACEOF
51875#define HAVE_KRB5_FREE_DATA_CONTENTS 1
51876_ACEOF
51877
51878fi
51879
51880
51881
51882
51883    ac_check_func_ext_save_LIBS=$LIBS
51884    LIBS="$KRB5_LIBS $LIBS"
51885        { echo "$as_me:$LINENO: checking for krb5_principal_get_comp_string" >&5
51886echo $ECHO_N "checking for krb5_principal_get_comp_string... $ECHO_C" >&6; }
51887if test "${ac_cv_func_ext_krb5_principal_get_comp_string+set}" = set; then
51888  echo $ECHO_N "(cached) $ECHO_C" >&6
51889else
51890  cat >conftest.$ac_ext <<_ACEOF
51891/* confdefs.h.  */
51892_ACEOF
51893cat confdefs.h >>conftest.$ac_ext
51894cat >>conftest.$ac_ext <<_ACEOF
51895/* end confdefs.h.  */
51896/* Define krb5_principal_get_comp_string to an innocuous variant, in case <limits.h> declares krb5_principal_get_comp_string.
51897   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51898#define krb5_principal_get_comp_string innocuous_krb5_principal_get_comp_string
51899
51900/* System header to define __stub macros and hopefully few prototypes,
51901    which can conflict with char krb5_principal_get_comp_string (); below.
51902    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51903    <limits.h> exists even on freestanding compilers.  */
51904
51905#ifdef __STDC__
51906# include <limits.h>
51907#else
51908# include <assert.h>
51909#endif
51910
51911#undef krb5_principal_get_comp_string
51912
51913/* Override any GCC internal prototype to avoid an error.
51914   Use char because int might match the return type of a GCC
51915   builtin and then its argument prototype would still apply.  */
51916#ifdef __cplusplus
51917extern "C"
51918#endif
51919char krb5_principal_get_comp_string ();
51920/* The GNU C library defines this for functions which it implements
51921    to always fail with ENOSYS.  Some functions are actually named
51922    something starting with __ and the normal name is an alias.  */
51923#if defined __stub_krb5_principal_get_comp_string || defined __stub___krb5_principal_get_comp_string
51924choke me
51925#endif
51926
51927int
51928main ()
51929{
51930return krb5_principal_get_comp_string ();
51931  ;
51932  return 0;
51933}
51934_ACEOF
51935rm -f conftest.$ac_objext conftest$ac_exeext
51936if { (ac_try="$ac_link"
51937case "(($ac_try" in
51938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51939  *) ac_try_echo=$ac_try;;
51940esac
51941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51942  (eval "$ac_link") 2>conftest.er1
51943  ac_status=$?
51944  grep -v '^ *+' conftest.er1 >conftest.err
51945  rm -f conftest.er1
51946  cat conftest.err >&5
51947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51948  (exit $ac_status); } && {
51949	 test -z "$ac_c_werror_flag" ||
51950	 test ! -s conftest.err
51951       } && test -s conftest$ac_exeext &&
51952       $as_test_x conftest$ac_exeext; then
51953  ac_cv_func_ext_krb5_principal_get_comp_string=yes
51954else
51955  echo "$as_me: failed program was:" >&5
51956sed 's/^/| /' conftest.$ac_ext >&5
51957
51958	ac_cv_func_ext_krb5_principal_get_comp_string=no
51959fi
51960
51961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51962      conftest$ac_exeext conftest.$ac_ext
51963fi
51964{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_principal_get_comp_string" >&5
51965echo "${ECHO_T}$ac_cv_func_ext_krb5_principal_get_comp_string" >&6; }
51966    LIBS=$ac_check_func_ext_save_LIBS
51967    if test $ac_cv_func_ext_krb5_principal_get_comp_string = yes; then
51968  cat >>confdefs.h <<_ACEOF
51969#define HAVE_KRB5_PRINCIPAL_GET_COMP_STRING 1
51970_ACEOF
51971
51972fi
51973
51974
51975
51976
51977    ac_check_func_ext_save_LIBS=$LIBS
51978    LIBS="$KRB5_LIBS $LIBS"
51979        { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
51980echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
51981if test "${ac_cv_func_ext_krb5_free_unparsed_name+set}" = set; then
51982  echo $ECHO_N "(cached) $ECHO_C" >&6
51983else
51984  cat >conftest.$ac_ext <<_ACEOF
51985/* confdefs.h.  */
51986_ACEOF
51987cat confdefs.h >>conftest.$ac_ext
51988cat >>conftest.$ac_ext <<_ACEOF
51989/* end confdefs.h.  */
51990/* Define krb5_free_unparsed_name to an innocuous variant, in case <limits.h> declares krb5_free_unparsed_name.
51991   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51992#define krb5_free_unparsed_name innocuous_krb5_free_unparsed_name
51993
51994/* System header to define __stub macros and hopefully few prototypes,
51995    which can conflict with char krb5_free_unparsed_name (); below.
51996    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51997    <limits.h> exists even on freestanding compilers.  */
51998
51999#ifdef __STDC__
52000# include <limits.h>
52001#else
52002# include <assert.h>
52003#endif
52004
52005#undef krb5_free_unparsed_name
52006
52007/* Override any GCC internal prototype to avoid an error.
52008   Use char because int might match the return type of a GCC
52009   builtin and then its argument prototype would still apply.  */
52010#ifdef __cplusplus
52011extern "C"
52012#endif
52013char krb5_free_unparsed_name ();
52014/* The GNU C library defines this for functions which it implements
52015    to always fail with ENOSYS.  Some functions are actually named
52016    something starting with __ and the normal name is an alias.  */
52017#if defined __stub_krb5_free_unparsed_name || defined __stub___krb5_free_unparsed_name
52018choke me
52019#endif
52020
52021int
52022main ()
52023{
52024return krb5_free_unparsed_name ();
52025  ;
52026  return 0;
52027}
52028_ACEOF
52029rm -f conftest.$ac_objext conftest$ac_exeext
52030if { (ac_try="$ac_link"
52031case "(($ac_try" in
52032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52033  *) ac_try_echo=$ac_try;;
52034esac
52035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52036  (eval "$ac_link") 2>conftest.er1
52037  ac_status=$?
52038  grep -v '^ *+' conftest.er1 >conftest.err
52039  rm -f conftest.er1
52040  cat conftest.err >&5
52041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52042  (exit $ac_status); } && {
52043	 test -z "$ac_c_werror_flag" ||
52044	 test ! -s conftest.err
52045       } && test -s conftest$ac_exeext &&
52046       $as_test_x conftest$ac_exeext; then
52047  ac_cv_func_ext_krb5_free_unparsed_name=yes
52048else
52049  echo "$as_me: failed program was:" >&5
52050sed 's/^/| /' conftest.$ac_ext >&5
52051
52052	ac_cv_func_ext_krb5_free_unparsed_name=no
52053fi
52054
52055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52056      conftest$ac_exeext conftest.$ac_ext
52057fi
52058{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_unparsed_name" >&5
52059echo "${ECHO_T}$ac_cv_func_ext_krb5_free_unparsed_name" >&6; }
52060    LIBS=$ac_check_func_ext_save_LIBS
52061    if test $ac_cv_func_ext_krb5_free_unparsed_name = yes; then
52062  cat >>confdefs.h <<_ACEOF
52063#define HAVE_KRB5_FREE_UNPARSED_NAME 1
52064_ACEOF
52065
52066fi
52067
52068
52069
52070
52071    ac_check_func_ext_save_LIBS=$LIBS
52072    LIBS="$KRB5_LIBS $LIBS"
52073        { echo "$as_me:$LINENO: checking for krb5_free_keytab_entry_contents" >&5
52074echo $ECHO_N "checking for krb5_free_keytab_entry_contents... $ECHO_C" >&6; }
52075if test "${ac_cv_func_ext_krb5_free_keytab_entry_contents+set}" = set; then
52076  echo $ECHO_N "(cached) $ECHO_C" >&6
52077else
52078  cat >conftest.$ac_ext <<_ACEOF
52079/* confdefs.h.  */
52080_ACEOF
52081cat confdefs.h >>conftest.$ac_ext
52082cat >>conftest.$ac_ext <<_ACEOF
52083/* end confdefs.h.  */
52084/* Define krb5_free_keytab_entry_contents to an innocuous variant, in case <limits.h> declares krb5_free_keytab_entry_contents.
52085   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52086#define krb5_free_keytab_entry_contents innocuous_krb5_free_keytab_entry_contents
52087
52088/* System header to define __stub macros and hopefully few prototypes,
52089    which can conflict with char krb5_free_keytab_entry_contents (); below.
52090    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52091    <limits.h> exists even on freestanding compilers.  */
52092
52093#ifdef __STDC__
52094# include <limits.h>
52095#else
52096# include <assert.h>
52097#endif
52098
52099#undef krb5_free_keytab_entry_contents
52100
52101/* Override any GCC internal prototype to avoid an error.
52102   Use char because int might match the return type of a GCC
52103   builtin and then its argument prototype would still apply.  */
52104#ifdef __cplusplus
52105extern "C"
52106#endif
52107char krb5_free_keytab_entry_contents ();
52108/* The GNU C library defines this for functions which it implements
52109    to always fail with ENOSYS.  Some functions are actually named
52110    something starting with __ and the normal name is an alias.  */
52111#if defined __stub_krb5_free_keytab_entry_contents || defined __stub___krb5_free_keytab_entry_contents
52112choke me
52113#endif
52114
52115int
52116main ()
52117{
52118return krb5_free_keytab_entry_contents ();
52119  ;
52120  return 0;
52121}
52122_ACEOF
52123rm -f conftest.$ac_objext conftest$ac_exeext
52124if { (ac_try="$ac_link"
52125case "(($ac_try" in
52126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52127  *) ac_try_echo=$ac_try;;
52128esac
52129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52130  (eval "$ac_link") 2>conftest.er1
52131  ac_status=$?
52132  grep -v '^ *+' conftest.er1 >conftest.err
52133  rm -f conftest.er1
52134  cat conftest.err >&5
52135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52136  (exit $ac_status); } && {
52137	 test -z "$ac_c_werror_flag" ||
52138	 test ! -s conftest.err
52139       } && test -s conftest$ac_exeext &&
52140       $as_test_x conftest$ac_exeext; then
52141  ac_cv_func_ext_krb5_free_keytab_entry_contents=yes
52142else
52143  echo "$as_me: failed program was:" >&5
52144sed 's/^/| /' conftest.$ac_ext >&5
52145
52146	ac_cv_func_ext_krb5_free_keytab_entry_contents=no
52147fi
52148
52149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52150      conftest$ac_exeext conftest.$ac_ext
52151fi
52152{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_keytab_entry_contents" >&5
52153echo "${ECHO_T}$ac_cv_func_ext_krb5_free_keytab_entry_contents" >&6; }
52154    LIBS=$ac_check_func_ext_save_LIBS
52155    if test $ac_cv_func_ext_krb5_free_keytab_entry_contents = yes; then
52156  cat >>confdefs.h <<_ACEOF
52157#define HAVE_KRB5_FREE_KEYTAB_ENTRY_CONTENTS 1
52158_ACEOF
52159
52160fi
52161
52162
52163
52164
52165    ac_check_func_ext_save_LIBS=$LIBS
52166    LIBS="$KRB5_LIBS $LIBS"
52167        { echo "$as_me:$LINENO: checking for krb5_kt_free_entry" >&5
52168echo $ECHO_N "checking for krb5_kt_free_entry... $ECHO_C" >&6; }
52169if test "${ac_cv_func_ext_krb5_kt_free_entry+set}" = set; then
52170  echo $ECHO_N "(cached) $ECHO_C" >&6
52171else
52172  cat >conftest.$ac_ext <<_ACEOF
52173/* confdefs.h.  */
52174_ACEOF
52175cat confdefs.h >>conftest.$ac_ext
52176cat >>conftest.$ac_ext <<_ACEOF
52177/* end confdefs.h.  */
52178/* Define krb5_kt_free_entry to an innocuous variant, in case <limits.h> declares krb5_kt_free_entry.
52179   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52180#define krb5_kt_free_entry innocuous_krb5_kt_free_entry
52181
52182/* System header to define __stub macros and hopefully few prototypes,
52183    which can conflict with char krb5_kt_free_entry (); below.
52184    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52185    <limits.h> exists even on freestanding compilers.  */
52186
52187#ifdef __STDC__
52188# include <limits.h>
52189#else
52190# include <assert.h>
52191#endif
52192
52193#undef krb5_kt_free_entry
52194
52195/* Override any GCC internal prototype to avoid an error.
52196   Use char because int might match the return type of a GCC
52197   builtin and then its argument prototype would still apply.  */
52198#ifdef __cplusplus
52199extern "C"
52200#endif
52201char krb5_kt_free_entry ();
52202/* The GNU C library defines this for functions which it implements
52203    to always fail with ENOSYS.  Some functions are actually named
52204    something starting with __ and the normal name is an alias.  */
52205#if defined __stub_krb5_kt_free_entry || defined __stub___krb5_kt_free_entry
52206choke me
52207#endif
52208
52209int
52210main ()
52211{
52212return krb5_kt_free_entry ();
52213  ;
52214  return 0;
52215}
52216_ACEOF
52217rm -f conftest.$ac_objext conftest$ac_exeext
52218if { (ac_try="$ac_link"
52219case "(($ac_try" in
52220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52221  *) ac_try_echo=$ac_try;;
52222esac
52223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52224  (eval "$ac_link") 2>conftest.er1
52225  ac_status=$?
52226  grep -v '^ *+' conftest.er1 >conftest.err
52227  rm -f conftest.er1
52228  cat conftest.err >&5
52229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52230  (exit $ac_status); } && {
52231	 test -z "$ac_c_werror_flag" ||
52232	 test ! -s conftest.err
52233       } && test -s conftest$ac_exeext &&
52234       $as_test_x conftest$ac_exeext; then
52235  ac_cv_func_ext_krb5_kt_free_entry=yes
52236else
52237  echo "$as_me: failed program was:" >&5
52238sed 's/^/| /' conftest.$ac_ext >&5
52239
52240	ac_cv_func_ext_krb5_kt_free_entry=no
52241fi
52242
52243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52244      conftest$ac_exeext conftest.$ac_ext
52245fi
52246{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_kt_free_entry" >&5
52247echo "${ECHO_T}$ac_cv_func_ext_krb5_kt_free_entry" >&6; }
52248    LIBS=$ac_check_func_ext_save_LIBS
52249    if test $ac_cv_func_ext_krb5_kt_free_entry = yes; then
52250  cat >>confdefs.h <<_ACEOF
52251#define HAVE_KRB5_KT_FREE_ENTRY 1
52252_ACEOF
52253
52254fi
52255
52256
52257
52258
52259    ac_check_func_ext_save_LIBS=$LIBS
52260    LIBS="$KRB5_LIBS $LIBS"
52261        { echo "$as_me:$LINENO: checking for krb5_krbhst_init" >&5
52262echo $ECHO_N "checking for krb5_krbhst_init... $ECHO_C" >&6; }
52263if test "${ac_cv_func_ext_krb5_krbhst_init+set}" = set; then
52264  echo $ECHO_N "(cached) $ECHO_C" >&6
52265else
52266  cat >conftest.$ac_ext <<_ACEOF
52267/* confdefs.h.  */
52268_ACEOF
52269cat confdefs.h >>conftest.$ac_ext
52270cat >>conftest.$ac_ext <<_ACEOF
52271/* end confdefs.h.  */
52272/* Define krb5_krbhst_init to an innocuous variant, in case <limits.h> declares krb5_krbhst_init.
52273   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52274#define krb5_krbhst_init innocuous_krb5_krbhst_init
52275
52276/* System header to define __stub macros and hopefully few prototypes,
52277    which can conflict with char krb5_krbhst_init (); below.
52278    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52279    <limits.h> exists even on freestanding compilers.  */
52280
52281#ifdef __STDC__
52282# include <limits.h>
52283#else
52284# include <assert.h>
52285#endif
52286
52287#undef krb5_krbhst_init
52288
52289/* Override any GCC internal prototype to avoid an error.
52290   Use char because int might match the return type of a GCC
52291   builtin and then its argument prototype would still apply.  */
52292#ifdef __cplusplus
52293extern "C"
52294#endif
52295char krb5_krbhst_init ();
52296/* The GNU C library defines this for functions which it implements
52297    to always fail with ENOSYS.  Some functions are actually named
52298    something starting with __ and the normal name is an alias.  */
52299#if defined __stub_krb5_krbhst_init || defined __stub___krb5_krbhst_init
52300choke me
52301#endif
52302
52303int
52304main ()
52305{
52306return krb5_krbhst_init ();
52307  ;
52308  return 0;
52309}
52310_ACEOF
52311rm -f conftest.$ac_objext conftest$ac_exeext
52312if { (ac_try="$ac_link"
52313case "(($ac_try" in
52314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52315  *) ac_try_echo=$ac_try;;
52316esac
52317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52318  (eval "$ac_link") 2>conftest.er1
52319  ac_status=$?
52320  grep -v '^ *+' conftest.er1 >conftest.err
52321  rm -f conftest.er1
52322  cat conftest.err >&5
52323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52324  (exit $ac_status); } && {
52325	 test -z "$ac_c_werror_flag" ||
52326	 test ! -s conftest.err
52327       } && test -s conftest$ac_exeext &&
52328       $as_test_x conftest$ac_exeext; then
52329  ac_cv_func_ext_krb5_krbhst_init=yes
52330else
52331  echo "$as_me: failed program was:" >&5
52332sed 's/^/| /' conftest.$ac_ext >&5
52333
52334	ac_cv_func_ext_krb5_krbhst_init=no
52335fi
52336
52337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52338      conftest$ac_exeext conftest.$ac_ext
52339fi
52340{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_krbhst_init" >&5
52341echo "${ECHO_T}$ac_cv_func_ext_krb5_krbhst_init" >&6; }
52342    LIBS=$ac_check_func_ext_save_LIBS
52343    if test $ac_cv_func_ext_krb5_krbhst_init = yes; then
52344  cat >>confdefs.h <<_ACEOF
52345#define HAVE_KRB5_KRBHST_INIT 1
52346_ACEOF
52347
52348fi
52349
52350
52351
52352
52353    ac_check_func_ext_save_LIBS=$LIBS
52354    LIBS="$KRB5_LIBS $LIBS"
52355        { echo "$as_me:$LINENO: checking for krb5_krbhst_get_addrinfo" >&5
52356echo $ECHO_N "checking for krb5_krbhst_get_addrinfo... $ECHO_C" >&6; }
52357if test "${ac_cv_func_ext_krb5_krbhst_get_addrinfo+set}" = set; then
52358  echo $ECHO_N "(cached) $ECHO_C" >&6
52359else
52360  cat >conftest.$ac_ext <<_ACEOF
52361/* confdefs.h.  */
52362_ACEOF
52363cat confdefs.h >>conftest.$ac_ext
52364cat >>conftest.$ac_ext <<_ACEOF
52365/* end confdefs.h.  */
52366/* Define krb5_krbhst_get_addrinfo to an innocuous variant, in case <limits.h> declares krb5_krbhst_get_addrinfo.
52367   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52368#define krb5_krbhst_get_addrinfo innocuous_krb5_krbhst_get_addrinfo
52369
52370/* System header to define __stub macros and hopefully few prototypes,
52371    which can conflict with char krb5_krbhst_get_addrinfo (); below.
52372    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52373    <limits.h> exists even on freestanding compilers.  */
52374
52375#ifdef __STDC__
52376# include <limits.h>
52377#else
52378# include <assert.h>
52379#endif
52380
52381#undef krb5_krbhst_get_addrinfo
52382
52383/* Override any GCC internal prototype to avoid an error.
52384   Use char because int might match the return type of a GCC
52385   builtin and then its argument prototype would still apply.  */
52386#ifdef __cplusplus
52387extern "C"
52388#endif
52389char krb5_krbhst_get_addrinfo ();
52390/* The GNU C library defines this for functions which it implements
52391    to always fail with ENOSYS.  Some functions are actually named
52392    something starting with __ and the normal name is an alias.  */
52393#if defined __stub_krb5_krbhst_get_addrinfo || defined __stub___krb5_krbhst_get_addrinfo
52394choke me
52395#endif
52396
52397int
52398main ()
52399{
52400return krb5_krbhst_get_addrinfo ();
52401  ;
52402  return 0;
52403}
52404_ACEOF
52405rm -f conftest.$ac_objext conftest$ac_exeext
52406if { (ac_try="$ac_link"
52407case "(($ac_try" in
52408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52409  *) ac_try_echo=$ac_try;;
52410esac
52411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52412  (eval "$ac_link") 2>conftest.er1
52413  ac_status=$?
52414  grep -v '^ *+' conftest.er1 >conftest.err
52415  rm -f conftest.er1
52416  cat conftest.err >&5
52417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52418  (exit $ac_status); } && {
52419	 test -z "$ac_c_werror_flag" ||
52420	 test ! -s conftest.err
52421       } && test -s conftest$ac_exeext &&
52422       $as_test_x conftest$ac_exeext; then
52423  ac_cv_func_ext_krb5_krbhst_get_addrinfo=yes
52424else
52425  echo "$as_me: failed program was:" >&5
52426sed 's/^/| /' conftest.$ac_ext >&5
52427
52428	ac_cv_func_ext_krb5_krbhst_get_addrinfo=no
52429fi
52430
52431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52432      conftest$ac_exeext conftest.$ac_ext
52433fi
52434{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_krbhst_get_addrinfo" >&5
52435echo "${ECHO_T}$ac_cv_func_ext_krb5_krbhst_get_addrinfo" >&6; }
52436    LIBS=$ac_check_func_ext_save_LIBS
52437    if test $ac_cv_func_ext_krb5_krbhst_get_addrinfo = yes; then
52438  cat >>confdefs.h <<_ACEOF
52439#define HAVE_KRB5_KRBHST_GET_ADDRINFO 1
52440_ACEOF
52441
52442fi
52443
52444
52445
52446
52447    ac_check_func_ext_save_LIBS=$LIBS
52448    LIBS="$KRB5_LIBS $LIBS"
52449        { echo "$as_me:$LINENO: checking for krb5_c_enctype_compare" >&5
52450echo $ECHO_N "checking for krb5_c_enctype_compare... $ECHO_C" >&6; }
52451if test "${ac_cv_func_ext_krb5_c_enctype_compare+set}" = set; then
52452  echo $ECHO_N "(cached) $ECHO_C" >&6
52453else
52454  cat >conftest.$ac_ext <<_ACEOF
52455/* confdefs.h.  */
52456_ACEOF
52457cat confdefs.h >>conftest.$ac_ext
52458cat >>conftest.$ac_ext <<_ACEOF
52459/* end confdefs.h.  */
52460/* Define krb5_c_enctype_compare to an innocuous variant, in case <limits.h> declares krb5_c_enctype_compare.
52461   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52462#define krb5_c_enctype_compare innocuous_krb5_c_enctype_compare
52463
52464/* System header to define __stub macros and hopefully few prototypes,
52465    which can conflict with char krb5_c_enctype_compare (); below.
52466    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52467    <limits.h> exists even on freestanding compilers.  */
52468
52469#ifdef __STDC__
52470# include <limits.h>
52471#else
52472# include <assert.h>
52473#endif
52474
52475#undef krb5_c_enctype_compare
52476
52477/* Override any GCC internal prototype to avoid an error.
52478   Use char because int might match the return type of a GCC
52479   builtin and then its argument prototype would still apply.  */
52480#ifdef __cplusplus
52481extern "C"
52482#endif
52483char krb5_c_enctype_compare ();
52484/* The GNU C library defines this for functions which it implements
52485    to always fail with ENOSYS.  Some functions are actually named
52486    something starting with __ and the normal name is an alias.  */
52487#if defined __stub_krb5_c_enctype_compare || defined __stub___krb5_c_enctype_compare
52488choke me
52489#endif
52490
52491int
52492main ()
52493{
52494return krb5_c_enctype_compare ();
52495  ;
52496  return 0;
52497}
52498_ACEOF
52499rm -f conftest.$ac_objext conftest$ac_exeext
52500if { (ac_try="$ac_link"
52501case "(($ac_try" in
52502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52503  *) ac_try_echo=$ac_try;;
52504esac
52505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52506  (eval "$ac_link") 2>conftest.er1
52507  ac_status=$?
52508  grep -v '^ *+' conftest.er1 >conftest.err
52509  rm -f conftest.er1
52510  cat conftest.err >&5
52511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52512  (exit $ac_status); } && {
52513	 test -z "$ac_c_werror_flag" ||
52514	 test ! -s conftest.err
52515       } && test -s conftest$ac_exeext &&
52516       $as_test_x conftest$ac_exeext; then
52517  ac_cv_func_ext_krb5_c_enctype_compare=yes
52518else
52519  echo "$as_me: failed program was:" >&5
52520sed 's/^/| /' conftest.$ac_ext >&5
52521
52522	ac_cv_func_ext_krb5_c_enctype_compare=no
52523fi
52524
52525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52526      conftest$ac_exeext conftest.$ac_ext
52527fi
52528{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_c_enctype_compare" >&5
52529echo "${ECHO_T}$ac_cv_func_ext_krb5_c_enctype_compare" >&6; }
52530    LIBS=$ac_check_func_ext_save_LIBS
52531    if test $ac_cv_func_ext_krb5_c_enctype_compare = yes; then
52532  cat >>confdefs.h <<_ACEOF
52533#define HAVE_KRB5_C_ENCTYPE_COMPARE 1
52534_ACEOF
52535
52536fi
52537
52538
52539
52540
52541    ac_check_func_ext_save_LIBS=$LIBS
52542    LIBS="$KRB5_LIBS $LIBS"
52543        { echo "$as_me:$LINENO: checking for krb5_enctypes_compatible_keys" >&5
52544echo $ECHO_N "checking for krb5_enctypes_compatible_keys... $ECHO_C" >&6; }
52545if test "${ac_cv_func_ext_krb5_enctypes_compatible_keys+set}" = set; then
52546  echo $ECHO_N "(cached) $ECHO_C" >&6
52547else
52548  cat >conftest.$ac_ext <<_ACEOF
52549/* confdefs.h.  */
52550_ACEOF
52551cat confdefs.h >>conftest.$ac_ext
52552cat >>conftest.$ac_ext <<_ACEOF
52553/* end confdefs.h.  */
52554/* Define krb5_enctypes_compatible_keys to an innocuous variant, in case <limits.h> declares krb5_enctypes_compatible_keys.
52555   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52556#define krb5_enctypes_compatible_keys innocuous_krb5_enctypes_compatible_keys
52557
52558/* System header to define __stub macros and hopefully few prototypes,
52559    which can conflict with char krb5_enctypes_compatible_keys (); below.
52560    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52561    <limits.h> exists even on freestanding compilers.  */
52562
52563#ifdef __STDC__
52564# include <limits.h>
52565#else
52566# include <assert.h>
52567#endif
52568
52569#undef krb5_enctypes_compatible_keys
52570
52571/* Override any GCC internal prototype to avoid an error.
52572   Use char because int might match the return type of a GCC
52573   builtin and then its argument prototype would still apply.  */
52574#ifdef __cplusplus
52575extern "C"
52576#endif
52577char krb5_enctypes_compatible_keys ();
52578/* The GNU C library defines this for functions which it implements
52579    to always fail with ENOSYS.  Some functions are actually named
52580    something starting with __ and the normal name is an alias.  */
52581#if defined __stub_krb5_enctypes_compatible_keys || defined __stub___krb5_enctypes_compatible_keys
52582choke me
52583#endif
52584
52585int
52586main ()
52587{
52588return krb5_enctypes_compatible_keys ();
52589  ;
52590  return 0;
52591}
52592_ACEOF
52593rm -f conftest.$ac_objext conftest$ac_exeext
52594if { (ac_try="$ac_link"
52595case "(($ac_try" in
52596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52597  *) ac_try_echo=$ac_try;;
52598esac
52599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52600  (eval "$ac_link") 2>conftest.er1
52601  ac_status=$?
52602  grep -v '^ *+' conftest.er1 >conftest.err
52603  rm -f conftest.er1
52604  cat conftest.err >&5
52605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52606  (exit $ac_status); } && {
52607	 test -z "$ac_c_werror_flag" ||
52608	 test ! -s conftest.err
52609       } && test -s conftest$ac_exeext &&
52610       $as_test_x conftest$ac_exeext; then
52611  ac_cv_func_ext_krb5_enctypes_compatible_keys=yes
52612else
52613  echo "$as_me: failed program was:" >&5
52614sed 's/^/| /' conftest.$ac_ext >&5
52615
52616	ac_cv_func_ext_krb5_enctypes_compatible_keys=no
52617fi
52618
52619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52620      conftest$ac_exeext conftest.$ac_ext
52621fi
52622{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_enctypes_compatible_keys" >&5
52623echo "${ECHO_T}$ac_cv_func_ext_krb5_enctypes_compatible_keys" >&6; }
52624    LIBS=$ac_check_func_ext_save_LIBS
52625    if test $ac_cv_func_ext_krb5_enctypes_compatible_keys = yes; then
52626  cat >>confdefs.h <<_ACEOF
52627#define HAVE_KRB5_ENCTYPES_COMPATIBLE_KEYS 1
52628_ACEOF
52629
52630fi
52631
52632
52633
52634
52635    ac_check_func_ext_save_LIBS=$LIBS
52636    LIBS="$KRB5_LIBS $LIBS"
52637        { echo "$as_me:$LINENO: checking for krb5_crypto_init" >&5
52638echo $ECHO_N "checking for krb5_crypto_init... $ECHO_C" >&6; }
52639if test "${ac_cv_func_ext_krb5_crypto_init+set}" = set; then
52640  echo $ECHO_N "(cached) $ECHO_C" >&6
52641else
52642  cat >conftest.$ac_ext <<_ACEOF
52643/* confdefs.h.  */
52644_ACEOF
52645cat confdefs.h >>conftest.$ac_ext
52646cat >>conftest.$ac_ext <<_ACEOF
52647/* end confdefs.h.  */
52648/* Define krb5_crypto_init to an innocuous variant, in case <limits.h> declares krb5_crypto_init.
52649   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52650#define krb5_crypto_init innocuous_krb5_crypto_init
52651
52652/* System header to define __stub macros and hopefully few prototypes,
52653    which can conflict with char krb5_crypto_init (); below.
52654    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52655    <limits.h> exists even on freestanding compilers.  */
52656
52657#ifdef __STDC__
52658# include <limits.h>
52659#else
52660# include <assert.h>
52661#endif
52662
52663#undef krb5_crypto_init
52664
52665/* Override any GCC internal prototype to avoid an error.
52666   Use char because int might match the return type of a GCC
52667   builtin and then its argument prototype would still apply.  */
52668#ifdef __cplusplus
52669extern "C"
52670#endif
52671char krb5_crypto_init ();
52672/* The GNU C library defines this for functions which it implements
52673    to always fail with ENOSYS.  Some functions are actually named
52674    something starting with __ and the normal name is an alias.  */
52675#if defined __stub_krb5_crypto_init || defined __stub___krb5_crypto_init
52676choke me
52677#endif
52678
52679int
52680main ()
52681{
52682return krb5_crypto_init ();
52683  ;
52684  return 0;
52685}
52686_ACEOF
52687rm -f conftest.$ac_objext conftest$ac_exeext
52688if { (ac_try="$ac_link"
52689case "(($ac_try" in
52690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52691  *) ac_try_echo=$ac_try;;
52692esac
52693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52694  (eval "$ac_link") 2>conftest.er1
52695  ac_status=$?
52696  grep -v '^ *+' conftest.er1 >conftest.err
52697  rm -f conftest.er1
52698  cat conftest.err >&5
52699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52700  (exit $ac_status); } && {
52701	 test -z "$ac_c_werror_flag" ||
52702	 test ! -s conftest.err
52703       } && test -s conftest$ac_exeext &&
52704       $as_test_x conftest$ac_exeext; then
52705  ac_cv_func_ext_krb5_crypto_init=yes
52706else
52707  echo "$as_me: failed program was:" >&5
52708sed 's/^/| /' conftest.$ac_ext >&5
52709
52710	ac_cv_func_ext_krb5_crypto_init=no
52711fi
52712
52713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52714      conftest$ac_exeext conftest.$ac_ext
52715fi
52716{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_crypto_init" >&5
52717echo "${ECHO_T}$ac_cv_func_ext_krb5_crypto_init" >&6; }
52718    LIBS=$ac_check_func_ext_save_LIBS
52719    if test $ac_cv_func_ext_krb5_crypto_init = yes; then
52720  cat >>confdefs.h <<_ACEOF
52721#define HAVE_KRB5_CRYPTO_INIT 1
52722_ACEOF
52723
52724fi
52725
52726
52727
52728
52729    ac_check_func_ext_save_LIBS=$LIBS
52730    LIBS="$KRB5_LIBS $LIBS"
52731        { echo "$as_me:$LINENO: checking for krb5_crypto_destroy" >&5
52732echo $ECHO_N "checking for krb5_crypto_destroy... $ECHO_C" >&6; }
52733if test "${ac_cv_func_ext_krb5_crypto_destroy+set}" = set; then
52734  echo $ECHO_N "(cached) $ECHO_C" >&6
52735else
52736  cat >conftest.$ac_ext <<_ACEOF
52737/* confdefs.h.  */
52738_ACEOF
52739cat confdefs.h >>conftest.$ac_ext
52740cat >>conftest.$ac_ext <<_ACEOF
52741/* end confdefs.h.  */
52742/* Define krb5_crypto_destroy to an innocuous variant, in case <limits.h> declares krb5_crypto_destroy.
52743   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52744#define krb5_crypto_destroy innocuous_krb5_crypto_destroy
52745
52746/* System header to define __stub macros and hopefully few prototypes,
52747    which can conflict with char krb5_crypto_destroy (); below.
52748    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52749    <limits.h> exists even on freestanding compilers.  */
52750
52751#ifdef __STDC__
52752# include <limits.h>
52753#else
52754# include <assert.h>
52755#endif
52756
52757#undef krb5_crypto_destroy
52758
52759/* Override any GCC internal prototype to avoid an error.
52760   Use char because int might match the return type of a GCC
52761   builtin and then its argument prototype would still apply.  */
52762#ifdef __cplusplus
52763extern "C"
52764#endif
52765char krb5_crypto_destroy ();
52766/* The GNU C library defines this for functions which it implements
52767    to always fail with ENOSYS.  Some functions are actually named
52768    something starting with __ and the normal name is an alias.  */
52769#if defined __stub_krb5_crypto_destroy || defined __stub___krb5_crypto_destroy
52770choke me
52771#endif
52772
52773int
52774main ()
52775{
52776return krb5_crypto_destroy ();
52777  ;
52778  return 0;
52779}
52780_ACEOF
52781rm -f conftest.$ac_objext conftest$ac_exeext
52782if { (ac_try="$ac_link"
52783case "(($ac_try" in
52784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52785  *) ac_try_echo=$ac_try;;
52786esac
52787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52788  (eval "$ac_link") 2>conftest.er1
52789  ac_status=$?
52790  grep -v '^ *+' conftest.er1 >conftest.err
52791  rm -f conftest.er1
52792  cat conftest.err >&5
52793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52794  (exit $ac_status); } && {
52795	 test -z "$ac_c_werror_flag" ||
52796	 test ! -s conftest.err
52797       } && test -s conftest$ac_exeext &&
52798       $as_test_x conftest$ac_exeext; then
52799  ac_cv_func_ext_krb5_crypto_destroy=yes
52800else
52801  echo "$as_me: failed program was:" >&5
52802sed 's/^/| /' conftest.$ac_ext >&5
52803
52804	ac_cv_func_ext_krb5_crypto_destroy=no
52805fi
52806
52807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52808      conftest$ac_exeext conftest.$ac_ext
52809fi
52810{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_crypto_destroy" >&5
52811echo "${ECHO_T}$ac_cv_func_ext_krb5_crypto_destroy" >&6; }
52812    LIBS=$ac_check_func_ext_save_LIBS
52813    if test $ac_cv_func_ext_krb5_crypto_destroy = yes; then
52814  cat >>confdefs.h <<_ACEOF
52815#define HAVE_KRB5_CRYPTO_DESTROY 1
52816_ACEOF
52817
52818fi
52819
52820
52821
52822
52823    ac_check_func_ext_save_LIBS=$LIBS
52824    LIBS="$KRB5_LIBS $LIBS"
52825        { echo "$as_me:$LINENO: checking for krb5_decode_ap_req" >&5
52826echo $ECHO_N "checking for krb5_decode_ap_req... $ECHO_C" >&6; }
52827if test "${ac_cv_func_ext_krb5_decode_ap_req+set}" = set; then
52828  echo $ECHO_N "(cached) $ECHO_C" >&6
52829else
52830  cat >conftest.$ac_ext <<_ACEOF
52831/* confdefs.h.  */
52832_ACEOF
52833cat confdefs.h >>conftest.$ac_ext
52834cat >>conftest.$ac_ext <<_ACEOF
52835/* end confdefs.h.  */
52836/* Define krb5_decode_ap_req to an innocuous variant, in case <limits.h> declares krb5_decode_ap_req.
52837   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52838#define krb5_decode_ap_req innocuous_krb5_decode_ap_req
52839
52840/* System header to define __stub macros and hopefully few prototypes,
52841    which can conflict with char krb5_decode_ap_req (); below.
52842    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52843    <limits.h> exists even on freestanding compilers.  */
52844
52845#ifdef __STDC__
52846# include <limits.h>
52847#else
52848# include <assert.h>
52849#endif
52850
52851#undef krb5_decode_ap_req
52852
52853/* Override any GCC internal prototype to avoid an error.
52854   Use char because int might match the return type of a GCC
52855   builtin and then its argument prototype would still apply.  */
52856#ifdef __cplusplus
52857extern "C"
52858#endif
52859char krb5_decode_ap_req ();
52860/* The GNU C library defines this for functions which it implements
52861    to always fail with ENOSYS.  Some functions are actually named
52862    something starting with __ and the normal name is an alias.  */
52863#if defined __stub_krb5_decode_ap_req || defined __stub___krb5_decode_ap_req
52864choke me
52865#endif
52866
52867int
52868main ()
52869{
52870return krb5_decode_ap_req ();
52871  ;
52872  return 0;
52873}
52874_ACEOF
52875rm -f conftest.$ac_objext conftest$ac_exeext
52876if { (ac_try="$ac_link"
52877case "(($ac_try" in
52878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52879  *) ac_try_echo=$ac_try;;
52880esac
52881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52882  (eval "$ac_link") 2>conftest.er1
52883  ac_status=$?
52884  grep -v '^ *+' conftest.er1 >conftest.err
52885  rm -f conftest.er1
52886  cat conftest.err >&5
52887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52888  (exit $ac_status); } && {
52889	 test -z "$ac_c_werror_flag" ||
52890	 test ! -s conftest.err
52891       } && test -s conftest$ac_exeext &&
52892       $as_test_x conftest$ac_exeext; then
52893  ac_cv_func_ext_krb5_decode_ap_req=yes
52894else
52895  echo "$as_me: failed program was:" >&5
52896sed 's/^/| /' conftest.$ac_ext >&5
52897
52898	ac_cv_func_ext_krb5_decode_ap_req=no
52899fi
52900
52901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52902      conftest$ac_exeext conftest.$ac_ext
52903fi
52904{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_decode_ap_req" >&5
52905echo "${ECHO_T}$ac_cv_func_ext_krb5_decode_ap_req" >&6; }
52906    LIBS=$ac_check_func_ext_save_LIBS
52907    if test $ac_cv_func_ext_krb5_decode_ap_req = yes; then
52908  cat >>confdefs.h <<_ACEOF
52909#define HAVE_KRB5_DECODE_AP_REQ 1
52910_ACEOF
52911
52912fi
52913
52914
52915
52916
52917    ac_check_func_ext_save_LIBS=$LIBS
52918    LIBS="$KRB5_LIBS $LIBS"
52919        { echo "$as_me:$LINENO: checking for free_AP_REQ" >&5
52920echo $ECHO_N "checking for free_AP_REQ... $ECHO_C" >&6; }
52921if test "${ac_cv_func_ext_free_AP_REQ+set}" = set; then
52922  echo $ECHO_N "(cached) $ECHO_C" >&6
52923else
52924  cat >conftest.$ac_ext <<_ACEOF
52925/* confdefs.h.  */
52926_ACEOF
52927cat confdefs.h >>conftest.$ac_ext
52928cat >>conftest.$ac_ext <<_ACEOF
52929/* end confdefs.h.  */
52930/* Define free_AP_REQ to an innocuous variant, in case <limits.h> declares free_AP_REQ.
52931   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52932#define free_AP_REQ innocuous_free_AP_REQ
52933
52934/* System header to define __stub macros and hopefully few prototypes,
52935    which can conflict with char free_AP_REQ (); below.
52936    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52937    <limits.h> exists even on freestanding compilers.  */
52938
52939#ifdef __STDC__
52940# include <limits.h>
52941#else
52942# include <assert.h>
52943#endif
52944
52945#undef free_AP_REQ
52946
52947/* Override any GCC internal prototype to avoid an error.
52948   Use char because int might match the return type of a GCC
52949   builtin and then its argument prototype would still apply.  */
52950#ifdef __cplusplus
52951extern "C"
52952#endif
52953char free_AP_REQ ();
52954/* The GNU C library defines this for functions which it implements
52955    to always fail with ENOSYS.  Some functions are actually named
52956    something starting with __ and the normal name is an alias.  */
52957#if defined __stub_free_AP_REQ || defined __stub___free_AP_REQ
52958choke me
52959#endif
52960
52961int
52962main ()
52963{
52964return free_AP_REQ ();
52965  ;
52966  return 0;
52967}
52968_ACEOF
52969rm -f conftest.$ac_objext conftest$ac_exeext
52970if { (ac_try="$ac_link"
52971case "(($ac_try" in
52972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52973  *) ac_try_echo=$ac_try;;
52974esac
52975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52976  (eval "$ac_link") 2>conftest.er1
52977  ac_status=$?
52978  grep -v '^ *+' conftest.er1 >conftest.err
52979  rm -f conftest.er1
52980  cat conftest.err >&5
52981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52982  (exit $ac_status); } && {
52983	 test -z "$ac_c_werror_flag" ||
52984	 test ! -s conftest.err
52985       } && test -s conftest$ac_exeext &&
52986       $as_test_x conftest$ac_exeext; then
52987  ac_cv_func_ext_free_AP_REQ=yes
52988else
52989  echo "$as_me: failed program was:" >&5
52990sed 's/^/| /' conftest.$ac_ext >&5
52991
52992	ac_cv_func_ext_free_AP_REQ=no
52993fi
52994
52995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52996      conftest$ac_exeext conftest.$ac_ext
52997fi
52998{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_free_AP_REQ" >&5
52999echo "${ECHO_T}$ac_cv_func_ext_free_AP_REQ" >&6; }
53000    LIBS=$ac_check_func_ext_save_LIBS
53001    if test $ac_cv_func_ext_free_AP_REQ = yes; then
53002  cat >>confdefs.h <<_ACEOF
53003#define HAVE_FREE_AP_REQ 1
53004_ACEOF
53005
53006fi
53007
53008
53009
53010
53011    ac_check_func_ext_save_LIBS=$LIBS
53012    LIBS="$KRB5_LIBS $LIBS"
53013        { echo "$as_me:$LINENO: checking for krb5_verify_checksum" >&5
53014echo $ECHO_N "checking for krb5_verify_checksum... $ECHO_C" >&6; }
53015if test "${ac_cv_func_ext_krb5_verify_checksum+set}" = set; then
53016  echo $ECHO_N "(cached) $ECHO_C" >&6
53017else
53018  cat >conftest.$ac_ext <<_ACEOF
53019/* confdefs.h.  */
53020_ACEOF
53021cat confdefs.h >>conftest.$ac_ext
53022cat >>conftest.$ac_ext <<_ACEOF
53023/* end confdefs.h.  */
53024/* Define krb5_verify_checksum to an innocuous variant, in case <limits.h> declares krb5_verify_checksum.
53025   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53026#define krb5_verify_checksum innocuous_krb5_verify_checksum
53027
53028/* System header to define __stub macros and hopefully few prototypes,
53029    which can conflict with char krb5_verify_checksum (); below.
53030    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53031    <limits.h> exists even on freestanding compilers.  */
53032
53033#ifdef __STDC__
53034# include <limits.h>
53035#else
53036# include <assert.h>
53037#endif
53038
53039#undef krb5_verify_checksum
53040
53041/* Override any GCC internal prototype to avoid an error.
53042   Use char because int might match the return type of a GCC
53043   builtin and then its argument prototype would still apply.  */
53044#ifdef __cplusplus
53045extern "C"
53046#endif
53047char krb5_verify_checksum ();
53048/* The GNU C library defines this for functions which it implements
53049    to always fail with ENOSYS.  Some functions are actually named
53050    something starting with __ and the normal name is an alias.  */
53051#if defined __stub_krb5_verify_checksum || defined __stub___krb5_verify_checksum
53052choke me
53053#endif
53054
53055int
53056main ()
53057{
53058return krb5_verify_checksum ();
53059  ;
53060  return 0;
53061}
53062_ACEOF
53063rm -f conftest.$ac_objext conftest$ac_exeext
53064if { (ac_try="$ac_link"
53065case "(($ac_try" in
53066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53067  *) ac_try_echo=$ac_try;;
53068esac
53069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53070  (eval "$ac_link") 2>conftest.er1
53071  ac_status=$?
53072  grep -v '^ *+' conftest.er1 >conftest.err
53073  rm -f conftest.er1
53074  cat conftest.err >&5
53075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53076  (exit $ac_status); } && {
53077	 test -z "$ac_c_werror_flag" ||
53078	 test ! -s conftest.err
53079       } && test -s conftest$ac_exeext &&
53080       $as_test_x conftest$ac_exeext; then
53081  ac_cv_func_ext_krb5_verify_checksum=yes
53082else
53083  echo "$as_me: failed program was:" >&5
53084sed 's/^/| /' conftest.$ac_ext >&5
53085
53086	ac_cv_func_ext_krb5_verify_checksum=no
53087fi
53088
53089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53090      conftest$ac_exeext conftest.$ac_ext
53091fi
53092{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_verify_checksum" >&5
53093echo "${ECHO_T}$ac_cv_func_ext_krb5_verify_checksum" >&6; }
53094    LIBS=$ac_check_func_ext_save_LIBS
53095    if test $ac_cv_func_ext_krb5_verify_checksum = yes; then
53096  cat >>confdefs.h <<_ACEOF
53097#define HAVE_KRB5_VERIFY_CHECKSUM 1
53098_ACEOF
53099
53100fi
53101
53102
53103
53104
53105    ac_check_func_ext_save_LIBS=$LIBS
53106    LIBS="$KRB5_LIBS $LIBS"
53107        { echo "$as_me:$LINENO: checking for krb5_c_verify_checksum" >&5
53108echo $ECHO_N "checking for krb5_c_verify_checksum... $ECHO_C" >&6; }
53109if test "${ac_cv_func_ext_krb5_c_verify_checksum+set}" = set; then
53110  echo $ECHO_N "(cached) $ECHO_C" >&6
53111else
53112  cat >conftest.$ac_ext <<_ACEOF
53113/* confdefs.h.  */
53114_ACEOF
53115cat confdefs.h >>conftest.$ac_ext
53116cat >>conftest.$ac_ext <<_ACEOF
53117/* end confdefs.h.  */
53118/* Define krb5_c_verify_checksum to an innocuous variant, in case <limits.h> declares krb5_c_verify_checksum.
53119   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53120#define krb5_c_verify_checksum innocuous_krb5_c_verify_checksum
53121
53122/* System header to define __stub macros and hopefully few prototypes,
53123    which can conflict with char krb5_c_verify_checksum (); below.
53124    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53125    <limits.h> exists even on freestanding compilers.  */
53126
53127#ifdef __STDC__
53128# include <limits.h>
53129#else
53130# include <assert.h>
53131#endif
53132
53133#undef krb5_c_verify_checksum
53134
53135/* Override any GCC internal prototype to avoid an error.
53136   Use char because int might match the return type of a GCC
53137   builtin and then its argument prototype would still apply.  */
53138#ifdef __cplusplus
53139extern "C"
53140#endif
53141char krb5_c_verify_checksum ();
53142/* The GNU C library defines this for functions which it implements
53143    to always fail with ENOSYS.  Some functions are actually named
53144    something starting with __ and the normal name is an alias.  */
53145#if defined __stub_krb5_c_verify_checksum || defined __stub___krb5_c_verify_checksum
53146choke me
53147#endif
53148
53149int
53150main ()
53151{
53152return krb5_c_verify_checksum ();
53153  ;
53154  return 0;
53155}
53156_ACEOF
53157rm -f conftest.$ac_objext conftest$ac_exeext
53158if { (ac_try="$ac_link"
53159case "(($ac_try" in
53160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53161  *) ac_try_echo=$ac_try;;
53162esac
53163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53164  (eval "$ac_link") 2>conftest.er1
53165  ac_status=$?
53166  grep -v '^ *+' conftest.er1 >conftest.err
53167  rm -f conftest.er1
53168  cat conftest.err >&5
53169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53170  (exit $ac_status); } && {
53171	 test -z "$ac_c_werror_flag" ||
53172	 test ! -s conftest.err
53173       } && test -s conftest$ac_exeext &&
53174       $as_test_x conftest$ac_exeext; then
53175  ac_cv_func_ext_krb5_c_verify_checksum=yes
53176else
53177  echo "$as_me: failed program was:" >&5
53178sed 's/^/| /' conftest.$ac_ext >&5
53179
53180	ac_cv_func_ext_krb5_c_verify_checksum=no
53181fi
53182
53183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53184      conftest$ac_exeext conftest.$ac_ext
53185fi
53186{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_c_verify_checksum" >&5
53187echo "${ECHO_T}$ac_cv_func_ext_krb5_c_verify_checksum" >&6; }
53188    LIBS=$ac_check_func_ext_save_LIBS
53189    if test $ac_cv_func_ext_krb5_c_verify_checksum = yes; then
53190  cat >>confdefs.h <<_ACEOF
53191#define HAVE_KRB5_C_VERIFY_CHECKSUM 1
53192_ACEOF
53193
53194fi
53195
53196
53197
53198
53199    ac_check_func_ext_save_LIBS=$LIBS
53200    LIBS="$KRB5_LIBS $LIBS"
53201        { echo "$as_me:$LINENO: checking for krb5_principal_compare_any_realm" >&5
53202echo $ECHO_N "checking for krb5_principal_compare_any_realm... $ECHO_C" >&6; }
53203if test "${ac_cv_func_ext_krb5_principal_compare_any_realm+set}" = set; then
53204  echo $ECHO_N "(cached) $ECHO_C" >&6
53205else
53206  cat >conftest.$ac_ext <<_ACEOF
53207/* confdefs.h.  */
53208_ACEOF
53209cat confdefs.h >>conftest.$ac_ext
53210cat >>conftest.$ac_ext <<_ACEOF
53211/* end confdefs.h.  */
53212/* Define krb5_principal_compare_any_realm to an innocuous variant, in case <limits.h> declares krb5_principal_compare_any_realm.
53213   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53214#define krb5_principal_compare_any_realm innocuous_krb5_principal_compare_any_realm
53215
53216/* System header to define __stub macros and hopefully few prototypes,
53217    which can conflict with char krb5_principal_compare_any_realm (); below.
53218    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53219    <limits.h> exists even on freestanding compilers.  */
53220
53221#ifdef __STDC__
53222# include <limits.h>
53223#else
53224# include <assert.h>
53225#endif
53226
53227#undef krb5_principal_compare_any_realm
53228
53229/* Override any GCC internal prototype to avoid an error.
53230   Use char because int might match the return type of a GCC
53231   builtin and then its argument prototype would still apply.  */
53232#ifdef __cplusplus
53233extern "C"
53234#endif
53235char krb5_principal_compare_any_realm ();
53236/* The GNU C library defines this for functions which it implements
53237    to always fail with ENOSYS.  Some functions are actually named
53238    something starting with __ and the normal name is an alias.  */
53239#if defined __stub_krb5_principal_compare_any_realm || defined __stub___krb5_principal_compare_any_realm
53240choke me
53241#endif
53242
53243int
53244main ()
53245{
53246return krb5_principal_compare_any_realm ();
53247  ;
53248  return 0;
53249}
53250_ACEOF
53251rm -f conftest.$ac_objext conftest$ac_exeext
53252if { (ac_try="$ac_link"
53253case "(($ac_try" in
53254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53255  *) ac_try_echo=$ac_try;;
53256esac
53257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53258  (eval "$ac_link") 2>conftest.er1
53259  ac_status=$?
53260  grep -v '^ *+' conftest.er1 >conftest.err
53261  rm -f conftest.er1
53262  cat conftest.err >&5
53263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53264  (exit $ac_status); } && {
53265	 test -z "$ac_c_werror_flag" ||
53266	 test ! -s conftest.err
53267       } && test -s conftest$ac_exeext &&
53268       $as_test_x conftest$ac_exeext; then
53269  ac_cv_func_ext_krb5_principal_compare_any_realm=yes
53270else
53271  echo "$as_me: failed program was:" >&5
53272sed 's/^/| /' conftest.$ac_ext >&5
53273
53274	ac_cv_func_ext_krb5_principal_compare_any_realm=no
53275fi
53276
53277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53278      conftest$ac_exeext conftest.$ac_ext
53279fi
53280{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_principal_compare_any_realm" >&5
53281echo "${ECHO_T}$ac_cv_func_ext_krb5_principal_compare_any_realm" >&6; }
53282    LIBS=$ac_check_func_ext_save_LIBS
53283    if test $ac_cv_func_ext_krb5_principal_compare_any_realm = yes; then
53284  cat >>confdefs.h <<_ACEOF
53285#define HAVE_KRB5_PRINCIPAL_COMPARE_ANY_REALM 1
53286_ACEOF
53287
53288fi
53289
53290
53291
53292
53293    ac_check_func_ext_save_LIBS=$LIBS
53294    LIBS="$KRB5_LIBS $LIBS"
53295        { echo "$as_me:$LINENO: checking for krb5_parse_name_norealm" >&5
53296echo $ECHO_N "checking for krb5_parse_name_norealm... $ECHO_C" >&6; }
53297if test "${ac_cv_func_ext_krb5_parse_name_norealm+set}" = set; then
53298  echo $ECHO_N "(cached) $ECHO_C" >&6
53299else
53300  cat >conftest.$ac_ext <<_ACEOF
53301/* confdefs.h.  */
53302_ACEOF
53303cat confdefs.h >>conftest.$ac_ext
53304cat >>conftest.$ac_ext <<_ACEOF
53305/* end confdefs.h.  */
53306/* Define krb5_parse_name_norealm to an innocuous variant, in case <limits.h> declares krb5_parse_name_norealm.
53307   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53308#define krb5_parse_name_norealm innocuous_krb5_parse_name_norealm
53309
53310/* System header to define __stub macros and hopefully few prototypes,
53311    which can conflict with char krb5_parse_name_norealm (); below.
53312    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53313    <limits.h> exists even on freestanding compilers.  */
53314
53315#ifdef __STDC__
53316# include <limits.h>
53317#else
53318# include <assert.h>
53319#endif
53320
53321#undef krb5_parse_name_norealm
53322
53323/* Override any GCC internal prototype to avoid an error.
53324   Use char because int might match the return type of a GCC
53325   builtin and then its argument prototype would still apply.  */
53326#ifdef __cplusplus
53327extern "C"
53328#endif
53329char krb5_parse_name_norealm ();
53330/* The GNU C library defines this for functions which it implements
53331    to always fail with ENOSYS.  Some functions are actually named
53332    something starting with __ and the normal name is an alias.  */
53333#if defined __stub_krb5_parse_name_norealm || defined __stub___krb5_parse_name_norealm
53334choke me
53335#endif
53336
53337int
53338main ()
53339{
53340return krb5_parse_name_norealm ();
53341  ;
53342  return 0;
53343}
53344_ACEOF
53345rm -f conftest.$ac_objext conftest$ac_exeext
53346if { (ac_try="$ac_link"
53347case "(($ac_try" in
53348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53349  *) ac_try_echo=$ac_try;;
53350esac
53351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53352  (eval "$ac_link") 2>conftest.er1
53353  ac_status=$?
53354  grep -v '^ *+' conftest.er1 >conftest.err
53355  rm -f conftest.er1
53356  cat conftest.err >&5
53357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53358  (exit $ac_status); } && {
53359	 test -z "$ac_c_werror_flag" ||
53360	 test ! -s conftest.err
53361       } && test -s conftest$ac_exeext &&
53362       $as_test_x conftest$ac_exeext; then
53363  ac_cv_func_ext_krb5_parse_name_norealm=yes
53364else
53365  echo "$as_me: failed program was:" >&5
53366sed 's/^/| /' conftest.$ac_ext >&5
53367
53368	ac_cv_func_ext_krb5_parse_name_norealm=no
53369fi
53370
53371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53372      conftest$ac_exeext conftest.$ac_ext
53373fi
53374{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_parse_name_norealm" >&5
53375echo "${ECHO_T}$ac_cv_func_ext_krb5_parse_name_norealm" >&6; }
53376    LIBS=$ac_check_func_ext_save_LIBS
53377    if test $ac_cv_func_ext_krb5_parse_name_norealm = yes; then
53378  cat >>confdefs.h <<_ACEOF
53379#define HAVE_KRB5_PARSE_NAME_NOREALM 1
53380_ACEOF
53381
53382fi
53383
53384
53385
53386
53387    ac_check_func_ext_save_LIBS=$LIBS
53388    LIBS="$KRB5_LIBS $LIBS"
53389        { echo "$as_me:$LINENO: checking for krb5_princ_size" >&5
53390echo $ECHO_N "checking for krb5_princ_size... $ECHO_C" >&6; }
53391if test "${ac_cv_func_ext_krb5_princ_size+set}" = set; then
53392  echo $ECHO_N "(cached) $ECHO_C" >&6
53393else
53394  cat >conftest.$ac_ext <<_ACEOF
53395/* confdefs.h.  */
53396_ACEOF
53397cat confdefs.h >>conftest.$ac_ext
53398cat >>conftest.$ac_ext <<_ACEOF
53399/* end confdefs.h.  */
53400/* Define krb5_princ_size to an innocuous variant, in case <limits.h> declares krb5_princ_size.
53401   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53402#define krb5_princ_size innocuous_krb5_princ_size
53403
53404/* System header to define __stub macros and hopefully few prototypes,
53405    which can conflict with char krb5_princ_size (); below.
53406    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53407    <limits.h> exists even on freestanding compilers.  */
53408
53409#ifdef __STDC__
53410# include <limits.h>
53411#else
53412# include <assert.h>
53413#endif
53414
53415#undef krb5_princ_size
53416
53417/* Override any GCC internal prototype to avoid an error.
53418   Use char because int might match the return type of a GCC
53419   builtin and then its argument prototype would still apply.  */
53420#ifdef __cplusplus
53421extern "C"
53422#endif
53423char krb5_princ_size ();
53424/* The GNU C library defines this for functions which it implements
53425    to always fail with ENOSYS.  Some functions are actually named
53426    something starting with __ and the normal name is an alias.  */
53427#if defined __stub_krb5_princ_size || defined __stub___krb5_princ_size
53428choke me
53429#endif
53430
53431int
53432main ()
53433{
53434return krb5_princ_size ();
53435  ;
53436  return 0;
53437}
53438_ACEOF
53439rm -f conftest.$ac_objext conftest$ac_exeext
53440if { (ac_try="$ac_link"
53441case "(($ac_try" in
53442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53443  *) ac_try_echo=$ac_try;;
53444esac
53445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53446  (eval "$ac_link") 2>conftest.er1
53447  ac_status=$?
53448  grep -v '^ *+' conftest.er1 >conftest.err
53449  rm -f conftest.er1
53450  cat conftest.err >&5
53451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53452  (exit $ac_status); } && {
53453	 test -z "$ac_c_werror_flag" ||
53454	 test ! -s conftest.err
53455       } && test -s conftest$ac_exeext &&
53456       $as_test_x conftest$ac_exeext; then
53457  ac_cv_func_ext_krb5_princ_size=yes
53458else
53459  echo "$as_me: failed program was:" >&5
53460sed 's/^/| /' conftest.$ac_ext >&5
53461
53462	ac_cv_func_ext_krb5_princ_size=no
53463fi
53464
53465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53466      conftest$ac_exeext conftest.$ac_ext
53467fi
53468{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_princ_size" >&5
53469echo "${ECHO_T}$ac_cv_func_ext_krb5_princ_size" >&6; }
53470    LIBS=$ac_check_func_ext_save_LIBS
53471    if test $ac_cv_func_ext_krb5_princ_size = yes; then
53472  cat >>confdefs.h <<_ACEOF
53473#define HAVE_KRB5_PRINC_SIZE 1
53474_ACEOF
53475
53476fi
53477
53478
53479
53480
53481    ac_check_func_ext_save_LIBS=$LIBS
53482    LIBS="$KRB5_LIBS $LIBS"
53483        { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_pac_request" >&5
53484echo $ECHO_N "checking for krb5_get_init_creds_opt_set_pac_request... $ECHO_C" >&6; }
53485if test "${ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request+set}" = set; then
53486  echo $ECHO_N "(cached) $ECHO_C" >&6
53487else
53488  cat >conftest.$ac_ext <<_ACEOF
53489/* confdefs.h.  */
53490_ACEOF
53491cat confdefs.h >>conftest.$ac_ext
53492cat >>conftest.$ac_ext <<_ACEOF
53493/* end confdefs.h.  */
53494/* Define krb5_get_init_creds_opt_set_pac_request to an innocuous variant, in case <limits.h> declares krb5_get_init_creds_opt_set_pac_request.
53495   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53496#define krb5_get_init_creds_opt_set_pac_request innocuous_krb5_get_init_creds_opt_set_pac_request
53497
53498/* System header to define __stub macros and hopefully few prototypes,
53499    which can conflict with char krb5_get_init_creds_opt_set_pac_request (); below.
53500    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53501    <limits.h> exists even on freestanding compilers.  */
53502
53503#ifdef __STDC__
53504# include <limits.h>
53505#else
53506# include <assert.h>
53507#endif
53508
53509#undef krb5_get_init_creds_opt_set_pac_request
53510
53511/* Override any GCC internal prototype to avoid an error.
53512   Use char because int might match the return type of a GCC
53513   builtin and then its argument prototype would still apply.  */
53514#ifdef __cplusplus
53515extern "C"
53516#endif
53517char krb5_get_init_creds_opt_set_pac_request ();
53518/* The GNU C library defines this for functions which it implements
53519    to always fail with ENOSYS.  Some functions are actually named
53520    something starting with __ and the normal name is an alias.  */
53521#if defined __stub_krb5_get_init_creds_opt_set_pac_request || defined __stub___krb5_get_init_creds_opt_set_pac_request
53522choke me
53523#endif
53524
53525int
53526main ()
53527{
53528return krb5_get_init_creds_opt_set_pac_request ();
53529  ;
53530  return 0;
53531}
53532_ACEOF
53533rm -f conftest.$ac_objext conftest$ac_exeext
53534if { (ac_try="$ac_link"
53535case "(($ac_try" in
53536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53537  *) ac_try_echo=$ac_try;;
53538esac
53539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53540  (eval "$ac_link") 2>conftest.er1
53541  ac_status=$?
53542  grep -v '^ *+' conftest.er1 >conftest.err
53543  rm -f conftest.er1
53544  cat conftest.err >&5
53545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53546  (exit $ac_status); } && {
53547	 test -z "$ac_c_werror_flag" ||
53548	 test ! -s conftest.err
53549       } && test -s conftest$ac_exeext &&
53550       $as_test_x conftest$ac_exeext; then
53551  ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request=yes
53552else
53553  echo "$as_me: failed program was:" >&5
53554sed 's/^/| /' conftest.$ac_ext >&5
53555
53556	ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request=no
53557fi
53558
53559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53560      conftest$ac_exeext conftest.$ac_ext
53561fi
53562{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request" >&5
53563echo "${ECHO_T}$ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request" >&6; }
53564    LIBS=$ac_check_func_ext_save_LIBS
53565    if test $ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request = yes; then
53566  cat >>confdefs.h <<_ACEOF
53567#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PAC_REQUEST 1
53568_ACEOF
53569
53570fi
53571
53572
53573
53574
53575    ac_check_func_ext_save_LIBS=$LIBS
53576    LIBS="$KRB5_LIBS $LIBS"
53577        { echo "$as_me:$LINENO: checking for krb5_get_renewed_creds" >&5
53578echo $ECHO_N "checking for krb5_get_renewed_creds... $ECHO_C" >&6; }
53579if test "${ac_cv_func_ext_krb5_get_renewed_creds+set}" = set; then
53580  echo $ECHO_N "(cached) $ECHO_C" >&6
53581else
53582  cat >conftest.$ac_ext <<_ACEOF
53583/* confdefs.h.  */
53584_ACEOF
53585cat confdefs.h >>conftest.$ac_ext
53586cat >>conftest.$ac_ext <<_ACEOF
53587/* end confdefs.h.  */
53588/* Define krb5_get_renewed_creds to an innocuous variant, in case <limits.h> declares krb5_get_renewed_creds.
53589   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53590#define krb5_get_renewed_creds innocuous_krb5_get_renewed_creds
53591
53592/* System header to define __stub macros and hopefully few prototypes,
53593    which can conflict with char krb5_get_renewed_creds (); below.
53594    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53595    <limits.h> exists even on freestanding compilers.  */
53596
53597#ifdef __STDC__
53598# include <limits.h>
53599#else
53600# include <assert.h>
53601#endif
53602
53603#undef krb5_get_renewed_creds
53604
53605/* Override any GCC internal prototype to avoid an error.
53606   Use char because int might match the return type of a GCC
53607   builtin and then its argument prototype would still apply.  */
53608#ifdef __cplusplus
53609extern "C"
53610#endif
53611char krb5_get_renewed_creds ();
53612/* The GNU C library defines this for functions which it implements
53613    to always fail with ENOSYS.  Some functions are actually named
53614    something starting with __ and the normal name is an alias.  */
53615#if defined __stub_krb5_get_renewed_creds || defined __stub___krb5_get_renewed_creds
53616choke me
53617#endif
53618
53619int
53620main ()
53621{
53622return krb5_get_renewed_creds ();
53623  ;
53624  return 0;
53625}
53626_ACEOF
53627rm -f conftest.$ac_objext conftest$ac_exeext
53628if { (ac_try="$ac_link"
53629case "(($ac_try" in
53630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53631  *) ac_try_echo=$ac_try;;
53632esac
53633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53634  (eval "$ac_link") 2>conftest.er1
53635  ac_status=$?
53636  grep -v '^ *+' conftest.er1 >conftest.err
53637  rm -f conftest.er1
53638  cat conftest.err >&5
53639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53640  (exit $ac_status); } && {
53641	 test -z "$ac_c_werror_flag" ||
53642	 test ! -s conftest.err
53643       } && test -s conftest$ac_exeext &&
53644       $as_test_x conftest$ac_exeext; then
53645  ac_cv_func_ext_krb5_get_renewed_creds=yes
53646else
53647  echo "$as_me: failed program was:" >&5
53648sed 's/^/| /' conftest.$ac_ext >&5
53649
53650	ac_cv_func_ext_krb5_get_renewed_creds=no
53651fi
53652
53653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53654      conftest$ac_exeext conftest.$ac_ext
53655fi
53656{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_renewed_creds" >&5
53657echo "${ECHO_T}$ac_cv_func_ext_krb5_get_renewed_creds" >&6; }
53658    LIBS=$ac_check_func_ext_save_LIBS
53659    if test $ac_cv_func_ext_krb5_get_renewed_creds = yes; then
53660  cat >>confdefs.h <<_ACEOF
53661#define HAVE_KRB5_GET_RENEWED_CREDS 1
53662_ACEOF
53663
53664fi
53665
53666
53667
53668
53669    ac_check_func_ext_save_LIBS=$LIBS
53670    LIBS="$KRB5_LIBS $LIBS"
53671        { echo "$as_me:$LINENO: checking for krb5_get_kdc_cred" >&5
53672echo $ECHO_N "checking for krb5_get_kdc_cred... $ECHO_C" >&6; }
53673if test "${ac_cv_func_ext_krb5_get_kdc_cred+set}" = set; then
53674  echo $ECHO_N "(cached) $ECHO_C" >&6
53675else
53676  cat >conftest.$ac_ext <<_ACEOF
53677/* confdefs.h.  */
53678_ACEOF
53679cat confdefs.h >>conftest.$ac_ext
53680cat >>conftest.$ac_ext <<_ACEOF
53681/* end confdefs.h.  */
53682/* Define krb5_get_kdc_cred to an innocuous variant, in case <limits.h> declares krb5_get_kdc_cred.
53683   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53684#define krb5_get_kdc_cred innocuous_krb5_get_kdc_cred
53685
53686/* System header to define __stub macros and hopefully few prototypes,
53687    which can conflict with char krb5_get_kdc_cred (); below.
53688    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53689    <limits.h> exists even on freestanding compilers.  */
53690
53691#ifdef __STDC__
53692# include <limits.h>
53693#else
53694# include <assert.h>
53695#endif
53696
53697#undef krb5_get_kdc_cred
53698
53699/* Override any GCC internal prototype to avoid an error.
53700   Use char because int might match the return type of a GCC
53701   builtin and then its argument prototype would still apply.  */
53702#ifdef __cplusplus
53703extern "C"
53704#endif
53705char krb5_get_kdc_cred ();
53706/* The GNU C library defines this for functions which it implements
53707    to always fail with ENOSYS.  Some functions are actually named
53708    something starting with __ and the normal name is an alias.  */
53709#if defined __stub_krb5_get_kdc_cred || defined __stub___krb5_get_kdc_cred
53710choke me
53711#endif
53712
53713int
53714main ()
53715{
53716return krb5_get_kdc_cred ();
53717  ;
53718  return 0;
53719}
53720_ACEOF
53721rm -f conftest.$ac_objext conftest$ac_exeext
53722if { (ac_try="$ac_link"
53723case "(($ac_try" in
53724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53725  *) ac_try_echo=$ac_try;;
53726esac
53727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53728  (eval "$ac_link") 2>conftest.er1
53729  ac_status=$?
53730  grep -v '^ *+' conftest.er1 >conftest.err
53731  rm -f conftest.er1
53732  cat conftest.err >&5
53733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53734  (exit $ac_status); } && {
53735	 test -z "$ac_c_werror_flag" ||
53736	 test ! -s conftest.err
53737       } && test -s conftest$ac_exeext &&
53738       $as_test_x conftest$ac_exeext; then
53739  ac_cv_func_ext_krb5_get_kdc_cred=yes
53740else
53741  echo "$as_me: failed program was:" >&5
53742sed 's/^/| /' conftest.$ac_ext >&5
53743
53744	ac_cv_func_ext_krb5_get_kdc_cred=no
53745fi
53746
53747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53748      conftest$ac_exeext conftest.$ac_ext
53749fi
53750{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_kdc_cred" >&5
53751echo "${ECHO_T}$ac_cv_func_ext_krb5_get_kdc_cred" >&6; }
53752    LIBS=$ac_check_func_ext_save_LIBS
53753    if test $ac_cv_func_ext_krb5_get_kdc_cred = yes; then
53754  cat >>confdefs.h <<_ACEOF
53755#define HAVE_KRB5_GET_KDC_CRED 1
53756_ACEOF
53757
53758fi
53759
53760
53761
53762
53763    ac_check_func_ext_save_LIBS=$LIBS
53764    LIBS="$KRB5_LIBS $LIBS"
53765        { echo "$as_me:$LINENO: checking for krb5_free_error_contents" >&5
53766echo $ECHO_N "checking for krb5_free_error_contents... $ECHO_C" >&6; }
53767if test "${ac_cv_func_ext_krb5_free_error_contents+set}" = set; then
53768  echo $ECHO_N "(cached) $ECHO_C" >&6
53769else
53770  cat >conftest.$ac_ext <<_ACEOF
53771/* confdefs.h.  */
53772_ACEOF
53773cat confdefs.h >>conftest.$ac_ext
53774cat >>conftest.$ac_ext <<_ACEOF
53775/* end confdefs.h.  */
53776/* Define krb5_free_error_contents to an innocuous variant, in case <limits.h> declares krb5_free_error_contents.
53777   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53778#define krb5_free_error_contents innocuous_krb5_free_error_contents
53779
53780/* System header to define __stub macros and hopefully few prototypes,
53781    which can conflict with char krb5_free_error_contents (); below.
53782    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53783    <limits.h> exists even on freestanding compilers.  */
53784
53785#ifdef __STDC__
53786# include <limits.h>
53787#else
53788# include <assert.h>
53789#endif
53790
53791#undef krb5_free_error_contents
53792
53793/* Override any GCC internal prototype to avoid an error.
53794   Use char because int might match the return type of a GCC
53795   builtin and then its argument prototype would still apply.  */
53796#ifdef __cplusplus
53797extern "C"
53798#endif
53799char krb5_free_error_contents ();
53800/* The GNU C library defines this for functions which it implements
53801    to always fail with ENOSYS.  Some functions are actually named
53802    something starting with __ and the normal name is an alias.  */
53803#if defined __stub_krb5_free_error_contents || defined __stub___krb5_free_error_contents
53804choke me
53805#endif
53806
53807int
53808main ()
53809{
53810return krb5_free_error_contents ();
53811  ;
53812  return 0;
53813}
53814_ACEOF
53815rm -f conftest.$ac_objext conftest$ac_exeext
53816if { (ac_try="$ac_link"
53817case "(($ac_try" in
53818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53819  *) ac_try_echo=$ac_try;;
53820esac
53821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53822  (eval "$ac_link") 2>conftest.er1
53823  ac_status=$?
53824  grep -v '^ *+' conftest.er1 >conftest.err
53825  rm -f conftest.er1
53826  cat conftest.err >&5
53827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53828  (exit $ac_status); } && {
53829	 test -z "$ac_c_werror_flag" ||
53830	 test ! -s conftest.err
53831       } && test -s conftest$ac_exeext &&
53832       $as_test_x conftest$ac_exeext; then
53833  ac_cv_func_ext_krb5_free_error_contents=yes
53834else
53835  echo "$as_me: failed program was:" >&5
53836sed 's/^/| /' conftest.$ac_ext >&5
53837
53838	ac_cv_func_ext_krb5_free_error_contents=no
53839fi
53840
53841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53842      conftest$ac_exeext conftest.$ac_ext
53843fi
53844{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_error_contents" >&5
53845echo "${ECHO_T}$ac_cv_func_ext_krb5_free_error_contents" >&6; }
53846    LIBS=$ac_check_func_ext_save_LIBS
53847    if test $ac_cv_func_ext_krb5_free_error_contents = yes; then
53848  cat >>confdefs.h <<_ACEOF
53849#define HAVE_KRB5_FREE_ERROR_CONTENTS 1
53850_ACEOF
53851
53852fi
53853
53854
53855
53856
53857    ac_check_func_ext_save_LIBS=$LIBS
53858    LIBS="$KRB5_LIBS $LIBS"
53859        { echo "$as_me:$LINENO: checking for initialize_krb5_error_table" >&5
53860echo $ECHO_N "checking for initialize_krb5_error_table... $ECHO_C" >&6; }
53861if test "${ac_cv_func_ext_initialize_krb5_error_table+set}" = set; then
53862  echo $ECHO_N "(cached) $ECHO_C" >&6
53863else
53864  cat >conftest.$ac_ext <<_ACEOF
53865/* confdefs.h.  */
53866_ACEOF
53867cat confdefs.h >>conftest.$ac_ext
53868cat >>conftest.$ac_ext <<_ACEOF
53869/* end confdefs.h.  */
53870/* Define initialize_krb5_error_table to an innocuous variant, in case <limits.h> declares initialize_krb5_error_table.
53871   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53872#define initialize_krb5_error_table innocuous_initialize_krb5_error_table
53873
53874/* System header to define __stub macros and hopefully few prototypes,
53875    which can conflict with char initialize_krb5_error_table (); below.
53876    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53877    <limits.h> exists even on freestanding compilers.  */
53878
53879#ifdef __STDC__
53880# include <limits.h>
53881#else
53882# include <assert.h>
53883#endif
53884
53885#undef initialize_krb5_error_table
53886
53887/* Override any GCC internal prototype to avoid an error.
53888   Use char because int might match the return type of a GCC
53889   builtin and then its argument prototype would still apply.  */
53890#ifdef __cplusplus
53891extern "C"
53892#endif
53893char initialize_krb5_error_table ();
53894/* The GNU C library defines this for functions which it implements
53895    to always fail with ENOSYS.  Some functions are actually named
53896    something starting with __ and the normal name is an alias.  */
53897#if defined __stub_initialize_krb5_error_table || defined __stub___initialize_krb5_error_table
53898choke me
53899#endif
53900
53901int
53902main ()
53903{
53904return initialize_krb5_error_table ();
53905  ;
53906  return 0;
53907}
53908_ACEOF
53909rm -f conftest.$ac_objext conftest$ac_exeext
53910if { (ac_try="$ac_link"
53911case "(($ac_try" in
53912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53913  *) ac_try_echo=$ac_try;;
53914esac
53915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53916  (eval "$ac_link") 2>conftest.er1
53917  ac_status=$?
53918  grep -v '^ *+' conftest.er1 >conftest.err
53919  rm -f conftest.er1
53920  cat conftest.err >&5
53921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53922  (exit $ac_status); } && {
53923	 test -z "$ac_c_werror_flag" ||
53924	 test ! -s conftest.err
53925       } && test -s conftest$ac_exeext &&
53926       $as_test_x conftest$ac_exeext; then
53927  ac_cv_func_ext_initialize_krb5_error_table=yes
53928else
53929  echo "$as_me: failed program was:" >&5
53930sed 's/^/| /' conftest.$ac_ext >&5
53931
53932	ac_cv_func_ext_initialize_krb5_error_table=no
53933fi
53934
53935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53936      conftest$ac_exeext conftest.$ac_ext
53937fi
53938{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_initialize_krb5_error_table" >&5
53939echo "${ECHO_T}$ac_cv_func_ext_initialize_krb5_error_table" >&6; }
53940    LIBS=$ac_check_func_ext_save_LIBS
53941    if test $ac_cv_func_ext_initialize_krb5_error_table = yes; then
53942  cat >>confdefs.h <<_ACEOF
53943#define HAVE_INITIALIZE_KRB5_ERROR_TABLE 1
53944_ACEOF
53945
53946fi
53947
53948
53949
53950
53951    ac_check_func_ext_save_LIBS=$LIBS
53952    LIBS="$KRB5_LIBS $LIBS"
53953        { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_alloc" >&5
53954echo $ECHO_N "checking for krb5_get_init_creds_opt_alloc... $ECHO_C" >&6; }
53955if test "${ac_cv_func_ext_krb5_get_init_creds_opt_alloc+set}" = set; then
53956  echo $ECHO_N "(cached) $ECHO_C" >&6
53957else
53958  cat >conftest.$ac_ext <<_ACEOF
53959/* confdefs.h.  */
53960_ACEOF
53961cat confdefs.h >>conftest.$ac_ext
53962cat >>conftest.$ac_ext <<_ACEOF
53963/* end confdefs.h.  */
53964/* Define krb5_get_init_creds_opt_alloc to an innocuous variant, in case <limits.h> declares krb5_get_init_creds_opt_alloc.
53965   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53966#define krb5_get_init_creds_opt_alloc innocuous_krb5_get_init_creds_opt_alloc
53967
53968/* System header to define __stub macros and hopefully few prototypes,
53969    which can conflict with char krb5_get_init_creds_opt_alloc (); below.
53970    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53971    <limits.h> exists even on freestanding compilers.  */
53972
53973#ifdef __STDC__
53974# include <limits.h>
53975#else
53976# include <assert.h>
53977#endif
53978
53979#undef krb5_get_init_creds_opt_alloc
53980
53981/* Override any GCC internal prototype to avoid an error.
53982   Use char because int might match the return type of a GCC
53983   builtin and then its argument prototype would still apply.  */
53984#ifdef __cplusplus
53985extern "C"
53986#endif
53987char krb5_get_init_creds_opt_alloc ();
53988/* The GNU C library defines this for functions which it implements
53989    to always fail with ENOSYS.  Some functions are actually named
53990    something starting with __ and the normal name is an alias.  */
53991#if defined __stub_krb5_get_init_creds_opt_alloc || defined __stub___krb5_get_init_creds_opt_alloc
53992choke me
53993#endif
53994
53995int
53996main ()
53997{
53998return krb5_get_init_creds_opt_alloc ();
53999  ;
54000  return 0;
54001}
54002_ACEOF
54003rm -f conftest.$ac_objext conftest$ac_exeext
54004if { (ac_try="$ac_link"
54005case "(($ac_try" in
54006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54007  *) ac_try_echo=$ac_try;;
54008esac
54009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54010  (eval "$ac_link") 2>conftest.er1
54011  ac_status=$?
54012  grep -v '^ *+' conftest.er1 >conftest.err
54013  rm -f conftest.er1
54014  cat conftest.err >&5
54015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54016  (exit $ac_status); } && {
54017	 test -z "$ac_c_werror_flag" ||
54018	 test ! -s conftest.err
54019       } && test -s conftest$ac_exeext &&
54020       $as_test_x conftest$ac_exeext; then
54021  ac_cv_func_ext_krb5_get_init_creds_opt_alloc=yes
54022else
54023  echo "$as_me: failed program was:" >&5
54024sed 's/^/| /' conftest.$ac_ext >&5
54025
54026	ac_cv_func_ext_krb5_get_init_creds_opt_alloc=no
54027fi
54028
54029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54030      conftest$ac_exeext conftest.$ac_ext
54031fi
54032{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_alloc" >&5
54033echo "${ECHO_T}$ac_cv_func_ext_krb5_get_init_creds_opt_alloc" >&6; }
54034    LIBS=$ac_check_func_ext_save_LIBS
54035    if test $ac_cv_func_ext_krb5_get_init_creds_opt_alloc = yes; then
54036  cat >>confdefs.h <<_ACEOF
54037#define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
54038_ACEOF
54039
54040fi
54041
54042
54043
54044
54045    ac_check_func_ext_save_LIBS=$LIBS
54046    LIBS="$KRB5_LIBS $LIBS"
54047        { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_free" >&5
54048echo $ECHO_N "checking for krb5_get_init_creds_opt_free... $ECHO_C" >&6; }
54049if test "${ac_cv_func_ext_krb5_get_init_creds_opt_free+set}" = set; then
54050  echo $ECHO_N "(cached) $ECHO_C" >&6
54051else
54052  cat >conftest.$ac_ext <<_ACEOF
54053/* confdefs.h.  */
54054_ACEOF
54055cat confdefs.h >>conftest.$ac_ext
54056cat >>conftest.$ac_ext <<_ACEOF
54057/* end confdefs.h.  */
54058/* Define krb5_get_init_creds_opt_free to an innocuous variant, in case <limits.h> declares krb5_get_init_creds_opt_free.
54059   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54060#define krb5_get_init_creds_opt_free innocuous_krb5_get_init_creds_opt_free
54061
54062/* System header to define __stub macros and hopefully few prototypes,
54063    which can conflict with char krb5_get_init_creds_opt_free (); below.
54064    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54065    <limits.h> exists even on freestanding compilers.  */
54066
54067#ifdef __STDC__
54068# include <limits.h>
54069#else
54070# include <assert.h>
54071#endif
54072
54073#undef krb5_get_init_creds_opt_free
54074
54075/* Override any GCC internal prototype to avoid an error.
54076   Use char because int might match the return type of a GCC
54077   builtin and then its argument prototype would still apply.  */
54078#ifdef __cplusplus
54079extern "C"
54080#endif
54081char krb5_get_init_creds_opt_free ();
54082/* The GNU C library defines this for functions which it implements
54083    to always fail with ENOSYS.  Some functions are actually named
54084    something starting with __ and the normal name is an alias.  */
54085#if defined __stub_krb5_get_init_creds_opt_free || defined __stub___krb5_get_init_creds_opt_free
54086choke me
54087#endif
54088
54089int
54090main ()
54091{
54092return krb5_get_init_creds_opt_free ();
54093  ;
54094  return 0;
54095}
54096_ACEOF
54097rm -f conftest.$ac_objext conftest$ac_exeext
54098if { (ac_try="$ac_link"
54099case "(($ac_try" in
54100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54101  *) ac_try_echo=$ac_try;;
54102esac
54103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54104  (eval "$ac_link") 2>conftest.er1
54105  ac_status=$?
54106  grep -v '^ *+' conftest.er1 >conftest.err
54107  rm -f conftest.er1
54108  cat conftest.err >&5
54109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54110  (exit $ac_status); } && {
54111	 test -z "$ac_c_werror_flag" ||
54112	 test ! -s conftest.err
54113       } && test -s conftest$ac_exeext &&
54114       $as_test_x conftest$ac_exeext; then
54115  ac_cv_func_ext_krb5_get_init_creds_opt_free=yes
54116else
54117  echo "$as_me: failed program was:" >&5
54118sed 's/^/| /' conftest.$ac_ext >&5
54119
54120	ac_cv_func_ext_krb5_get_init_creds_opt_free=no
54121fi
54122
54123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54124      conftest$ac_exeext conftest.$ac_ext
54125fi
54126{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_free" >&5
54127echo "${ECHO_T}$ac_cv_func_ext_krb5_get_init_creds_opt_free" >&6; }
54128    LIBS=$ac_check_func_ext_save_LIBS
54129    if test $ac_cv_func_ext_krb5_get_init_creds_opt_free = yes; then
54130  cat >>confdefs.h <<_ACEOF
54131#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
54132_ACEOF
54133
54134fi
54135
54136
54137  LIBS="$KRB5_LIBS $LIBS"
54138
54139  { echo "$as_me:$LINENO: checking whether krb5_ticket contains kvno and enctype" >&5
54140echo $ECHO_N "checking whether krb5_ticket contains kvno and enctype... $ECHO_C" >&6; }
54141if test "${smb_krb5_ticket_has_keyinfo+set}" = set; then
54142  echo $ECHO_N "(cached) $ECHO_C" >&6
54143else
54144
54145	    cat >conftest.$ac_ext <<_ACEOF
54146/* confdefs.h.  */
54147_ACEOF
54148cat confdefs.h >>conftest.$ac_ext
54149cat >>conftest.$ac_ext <<_ACEOF
54150/* end confdefs.h.  */
54151
54152		#include <krb5.h>
54153
54154int
54155main ()
54156{
54157
54158		krb5_ticket ticket;
54159		krb5_kvno kvno;
54160		krb5_enctype enctype;
54161
54162		enctype = ticket.enc_part.enctype;
54163		kvno = ticket.enc_part.kvno;
54164
54165  ;
54166  return 0;
54167}
54168_ACEOF
54169rm -f conftest.$ac_objext
54170if { (ac_try="$ac_compile"
54171case "(($ac_try" in
54172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54173  *) ac_try_echo=$ac_try;;
54174esac
54175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54176  (eval "$ac_compile") 2>conftest.er1
54177  ac_status=$?
54178  grep -v '^ *+' conftest.er1 >conftest.err
54179  rm -f conftest.er1
54180  cat conftest.err >&5
54181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54182  (exit $ac_status); } && {
54183	 test -z "$ac_c_werror_flag" ||
54184	 test ! -s conftest.err
54185       } && test -s conftest.$ac_objext; then
54186   smb_krb5_ticket_has_keyinfo=yes
54187else
54188  echo "$as_me: failed program was:" >&5
54189sed 's/^/| /' conftest.$ac_ext >&5
54190
54191	 smb_krb5_ticket_has_keyinfo=no
54192fi
54193
54194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54195
54196fi
54197{ echo "$as_me:$LINENO: result: $smb_krb5_ticket_has_keyinfo" >&5
54198echo "${ECHO_T}$smb_krb5_ticket_has_keyinfo" >&6; }
54199
54200  if test x"$smb_krb5_ticket_has_keyinfo" = x"yes" ; then
54201
54202cat >>confdefs.h <<\_ACEOF
54203#define KRB5_TICKET_HAS_KEYINFO 1
54204_ACEOF
54205
54206  fi
54207
54208  { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a context argument" >&5
54209echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a context argument... $ECHO_C" >&6; }
54210if test "${smb_krb5_creds_opt_free_context+set}" = set; then
54211  echo $ECHO_N "(cached) $ECHO_C" >&6
54212else
54213
54214		cat >conftest.$ac_ext <<_ACEOF
54215/* confdefs.h.  */
54216_ACEOF
54217cat confdefs.h >>conftest.$ac_ext
54218cat >>conftest.$ac_ext <<_ACEOF
54219/* end confdefs.h.  */
54220
54221		    #include <krb5.h>
54222int
54223main ()
54224{
54225
54226			krb5_context ctx;
54227			krb5_get_init_creds_opt *opt = NULL;
54228			krb5_get_init_creds_opt_free(ctx, opt);
54229
54230  ;
54231  return 0;
54232}
54233_ACEOF
54234rm -f conftest.$ac_objext
54235if { (ac_try="$ac_compile"
54236case "(($ac_try" in
54237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54238  *) ac_try_echo=$ac_try;;
54239esac
54240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54241  (eval "$ac_compile") 2>conftest.er1
54242  ac_status=$?
54243  grep -v '^ *+' conftest.er1 >conftest.err
54244  rm -f conftest.er1
54245  cat conftest.err >&5
54246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54247  (exit $ac_status); } && {
54248	 test -z "$ac_c_werror_flag" ||
54249	 test ! -s conftest.err
54250       } && test -s conftest.$ac_objext; then
54251  smb_krb5_creds_opt_free_context=yes
54252else
54253  echo "$as_me: failed program was:" >&5
54254sed 's/^/| /' conftest.$ac_ext >&5
54255
54256	smb_krb5_creds_opt_free_context=no
54257
54258fi
54259
54260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54261
54262fi
54263{ echo "$as_me:$LINENO: result: $smb_krb5_creds_opt_free_context" >&5
54264echo "${ECHO_T}$smb_krb5_creds_opt_free_context" >&6; }
54265
54266  if test x"$smb_krb5_creds_opt_free_context" = x"yes" ; then
54267
54268cat >>confdefs.h <<\_ACEOF
54269#define KRB5_CREDS_OPT_FREE_REQUIRES_CONTEXT 1
54270_ACEOF
54271
54272  fi
54273
54274  { echo "$as_me:$LINENO: checking whether krb5_verify_checksum takes 7 arguments" >&5
54275echo $ECHO_N "checking whether krb5_verify_checksum takes 7 arguments... $ECHO_C" >&6; }
54276if test "${smb_krb5_verify_checksum+set}" = set; then
54277  echo $ECHO_N "(cached) $ECHO_C" >&6
54278else
54279
54280    cat >conftest.$ac_ext <<_ACEOF
54281/* confdefs.h.  */
54282_ACEOF
54283cat confdefs.h >>conftest.$ac_ext
54284cat >>conftest.$ac_ext <<_ACEOF
54285/* end confdefs.h.  */
54286
54287	#include <krb5.h>
54288int
54289main ()
54290{
54291krb5_verify_checksum(0, 0, 0, 0, 0, 0, 0);
54292  ;
54293  return 0;
54294}
54295_ACEOF
54296rm -f conftest.$ac_objext
54297if { (ac_try="$ac_compile"
54298case "(($ac_try" in
54299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54300  *) ac_try_echo=$ac_try;;
54301esac
54302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54303  (eval "$ac_compile") 2>conftest.er1
54304  ac_status=$?
54305  grep -v '^ *+' conftest.er1 >conftest.err
54306  rm -f conftest.er1
54307  cat conftest.err >&5
54308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54309  (exit $ac_status); } && {
54310	 test -z "$ac_c_werror_flag" ||
54311	 test ! -s conftest.err
54312       } && test -s conftest.$ac_objext; then
54313  smb_krb5_verify_checksum=7
54314else
54315  echo "$as_me: failed program was:" >&5
54316sed 's/^/| /' conftest.$ac_ext >&5
54317
54318	smb_krb5_verify_checksum=6
54319fi
54320
54321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54322
54323fi
54324{ echo "$as_me:$LINENO: result: $smb_krb5_verify_checksum" >&5
54325echo "${ECHO_T}$smb_krb5_verify_checksum" >&6; }
54326
54327cat >>confdefs.h <<_ACEOF
54328#define KRB5_VERIFY_CHECKSUM_ARGS $smb_krb5_verify_checksum
54329_ACEOF
54330
54331
54332  { echo "$as_me:$LINENO: checking for checksum in krb5_checksum" >&5
54333echo $ECHO_N "checking for checksum in krb5_checksum... $ECHO_C" >&6; }
54334if test "${samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM+set}" = set; then
54335  echo $ECHO_N "(cached) $ECHO_C" >&6
54336else
54337
54338    cat >conftest.$ac_ext <<_ACEOF
54339/* confdefs.h.  */
54340_ACEOF
54341cat confdefs.h >>conftest.$ac_ext
54342cat >>conftest.$ac_ext <<_ACEOF
54343/* end confdefs.h.  */
54344#include <krb5.h>
54345int
54346main ()
54347{
54348krb5_checksum cksum; cksum.checksum.length = 0;
54349  ;
54350  return 0;
54351}
54352_ACEOF
54353rm -f conftest.$ac_objext
54354if { (ac_try="$ac_compile"
54355case "(($ac_try" in
54356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54357  *) ac_try_echo=$ac_try;;
54358esac
54359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54360  (eval "$ac_compile") 2>conftest.er1
54361  ac_status=$?
54362  grep -v '^ *+' conftest.er1 >conftest.err
54363  rm -f conftest.er1
54364  cat conftest.err >&5
54365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54366  (exit $ac_status); } && {
54367	 test -z "$ac_c_werror_flag" ||
54368	 test ! -s conftest.err
54369       } && test -s conftest.$ac_objext; then
54370  samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM=yes
54371else
54372  echo "$as_me: failed program was:" >&5
54373sed 's/^/| /' conftest.$ac_ext >&5
54374
54375	samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM=no
54376fi
54377
54378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54379fi
54380{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM" >&5
54381echo "${ECHO_T}$samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM" >&6; }
54382
54383  if test x"$samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM" = x"yes"; then
54384
54385cat >>confdefs.h <<\_ACEOF
54386#define HAVE_CHECKSUM_IN_KRB5_CHECKSUM 1
54387_ACEOF
54388
54389  fi
54390
54391  { echo "$as_me:$LINENO: checking for etype in EncryptedData" >&5
54392echo $ECHO_N "checking for etype in EncryptedData... $ECHO_C" >&6; }
54393if test "${samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA+set}" = set; then
54394  echo $ECHO_N "(cached) $ECHO_C" >&6
54395else
54396
54397    cat >conftest.$ac_ext <<_ACEOF
54398/* confdefs.h.  */
54399_ACEOF
54400cat confdefs.h >>conftest.$ac_ext
54401cat >>conftest.$ac_ext <<_ACEOF
54402/* end confdefs.h.  */
54403#include <krb5.h>
54404int
54405main ()
54406{
54407EncryptedData edata; edata.etype = 0;
54408  ;
54409  return 0;
54410}
54411_ACEOF
54412rm -f conftest.$ac_objext
54413if { (ac_try="$ac_compile"
54414case "(($ac_try" in
54415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54416  *) ac_try_echo=$ac_try;;
54417esac
54418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54419  (eval "$ac_compile") 2>conftest.er1
54420  ac_status=$?
54421  grep -v '^ *+' conftest.er1 >conftest.err
54422  rm -f conftest.er1
54423  cat conftest.err >&5
54424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54425  (exit $ac_status); } && {
54426	 test -z "$ac_c_werror_flag" ||
54427	 test ! -s conftest.err
54428       } && test -s conftest.$ac_objext; then
54429  samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA=yes
54430else
54431  echo "$as_me: failed program was:" >&5
54432sed 's/^/| /' conftest.$ac_ext >&5
54433
54434	samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA=no
54435fi
54436
54437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54438fi
54439{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA" >&5
54440echo "${ECHO_T}$samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA" >&6; }
54441
54442  if test x"$samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA" = x"yes"; then
54443
54444cat >>confdefs.h <<\_ACEOF
54445#define HAVE_ETYPE_IN_ENCRYPTEDDATA 1
54446_ACEOF
54447
54448  fi
54449
54450  { echo "$as_me:$LINENO: checking for ticket pointer in krb5_ap_req" >&5
54451echo $ECHO_N "checking for ticket pointer in krb5_ap_req... $ECHO_C" >&6; }
54452if test "${samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ+set}" = set; then
54453  echo $ECHO_N "(cached) $ECHO_C" >&6
54454else
54455
54456    cat >conftest.$ac_ext <<_ACEOF
54457/* confdefs.h.  */
54458_ACEOF
54459cat confdefs.h >>conftest.$ac_ext
54460cat >>conftest.$ac_ext <<_ACEOF
54461/* end confdefs.h.  */
54462#include <krb5.h>
54463int
54464main ()
54465{
54466krb5_ap_req *ap_req; ap_req->ticket = NULL;
54467  ;
54468  return 0;
54469}
54470_ACEOF
54471rm -f conftest.$ac_objext
54472if { (ac_try="$ac_compile"
54473case "(($ac_try" in
54474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54475  *) ac_try_echo=$ac_try;;
54476esac
54477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54478  (eval "$ac_compile") 2>conftest.er1
54479  ac_status=$?
54480  grep -v '^ *+' conftest.er1 >conftest.err
54481  rm -f conftest.er1
54482  cat conftest.err >&5
54483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54484  (exit $ac_status); } && {
54485	 test -z "$ac_c_werror_flag" ||
54486	 test ! -s conftest.err
54487       } && test -s conftest.$ac_objext; then
54488  samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ=yes
54489else
54490  echo "$as_me: failed program was:" >&5
54491sed 's/^/| /' conftest.$ac_ext >&5
54492
54493	samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ=no
54494fi
54495
54496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54497fi
54498{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ" >&5
54499echo "${ECHO_T}$samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ" >&6; }
54500
54501  if test x"$samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ" = x"yes"; then
54502
54503cat >>confdefs.h <<\_ACEOF
54504#define HAVE_TICKET_POINTER_IN_KRB5_AP_REQ 1
54505_ACEOF
54506
54507  fi
54508
54509  { echo "$as_me:$LINENO: checking for e_data pointer in krb5_error" >&5
54510echo $ECHO_N "checking for e_data pointer in krb5_error... $ECHO_C" >&6; }
54511if test "${samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR+set}" = set; then
54512  echo $ECHO_N "(cached) $ECHO_C" >&6
54513else
54514
54515    cat >conftest.$ac_ext <<_ACEOF
54516/* confdefs.h.  */
54517_ACEOF
54518cat confdefs.h >>conftest.$ac_ext
54519cat >>conftest.$ac_ext <<_ACEOF
54520/* end confdefs.h.  */
54521#include <krb5.h>
54522int
54523main ()
54524{
54525krb5_error err; err.e_data = NULL;
54526  ;
54527  return 0;
54528}
54529_ACEOF
54530rm -f conftest.$ac_objext
54531if { (ac_try="$ac_compile"
54532case "(($ac_try" in
54533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54534  *) ac_try_echo=$ac_try;;
54535esac
54536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54537  (eval "$ac_compile") 2>conftest.er1
54538  ac_status=$?
54539  grep -v '^ *+' conftest.er1 >conftest.err
54540  rm -f conftest.er1
54541  cat conftest.err >&5
54542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54543  (exit $ac_status); } && {
54544	 test -z "$ac_c_werror_flag" ||
54545	 test ! -s conftest.err
54546       } && test -s conftest.$ac_objext; then
54547  samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR=yes
54548else
54549  echo "$as_me: failed program was:" >&5
54550sed 's/^/| /' conftest.$ac_ext >&5
54551
54552	samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR=no
54553fi
54554
54555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54556fi
54557{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" >&5
54558echo "${ECHO_T}$samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" >&6; }
54559
54560  if test x"$samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" = x"yes"; then
54561
54562cat >>confdefs.h <<\_ACEOF
54563#define HAVE_E_DATA_POINTER_IN_KRB5_ERROR 1
54564_ACEOF
54565
54566  fi
54567
54568  { echo "$as_me:$LINENO: checking for krb5_crypto type" >&5
54569echo $ECHO_N "checking for krb5_crypto type... $ECHO_C" >&6; }
54570if test "${samba_cv_HAVE_KRB5_CRYPTO+set}" = set; then
54571  echo $ECHO_N "(cached) $ECHO_C" >&6
54572else
54573
54574    cat >conftest.$ac_ext <<_ACEOF
54575/* confdefs.h.  */
54576_ACEOF
54577cat confdefs.h >>conftest.$ac_ext
54578cat >>conftest.$ac_ext <<_ACEOF
54579/* end confdefs.h.  */
54580#include <krb5.h>
54581int
54582main ()
54583{
54584krb5_crypto crypto;
54585  ;
54586  return 0;
54587}
54588_ACEOF
54589rm -f conftest.$ac_objext
54590if { (ac_try="$ac_compile"
54591case "(($ac_try" in
54592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54593  *) ac_try_echo=$ac_try;;
54594esac
54595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54596  (eval "$ac_compile") 2>conftest.er1
54597  ac_status=$?
54598  grep -v '^ *+' conftest.er1 >conftest.err
54599  rm -f conftest.er1
54600  cat conftest.err >&5
54601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54602  (exit $ac_status); } && {
54603	 test -z "$ac_c_werror_flag" ||
54604	 test ! -s conftest.err
54605       } && test -s conftest.$ac_objext; then
54606  samba_cv_HAVE_KRB5_CRYPTO=yes
54607else
54608  echo "$as_me: failed program was:" >&5
54609sed 's/^/| /' conftest.$ac_ext >&5
54610
54611	samba_cv_HAVE_KRB5_CRYPTO=no
54612fi
54613
54614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54615fi
54616{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_CRYPTO" >&5
54617echo "${ECHO_T}$samba_cv_HAVE_KRB5_CRYPTO" >&6; }
54618
54619  if test x"$samba_cv_HAVE_KRB5_CRYPTO" = x"yes"; then
54620
54621cat >>confdefs.h <<\_ACEOF
54622#define HAVE_KRB5_CRYPTO 1
54623_ACEOF
54624
54625  fi
54626
54627  { echo "$as_me:$LINENO: checking for krb5_encrypt_block type" >&5
54628echo $ECHO_N "checking for krb5_encrypt_block type... $ECHO_C" >&6; }
54629if test "${samba_cv_HAVE_KRB5_ENCRYPT_BLOCK+set}" = set; then
54630  echo $ECHO_N "(cached) $ECHO_C" >&6
54631else
54632
54633    cat >conftest.$ac_ext <<_ACEOF
54634/* confdefs.h.  */
54635_ACEOF
54636cat confdefs.h >>conftest.$ac_ext
54637cat >>conftest.$ac_ext <<_ACEOF
54638/* end confdefs.h.  */
54639#include <krb5.h>
54640int
54641main ()
54642{
54643krb5_encrypt_block block;
54644  ;
54645  return 0;
54646}
54647_ACEOF
54648rm -f conftest.$ac_objext
54649if { (ac_try="$ac_compile"
54650case "(($ac_try" in
54651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54652  *) ac_try_echo=$ac_try;;
54653esac
54654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54655  (eval "$ac_compile") 2>conftest.er1
54656  ac_status=$?
54657  grep -v '^ *+' conftest.er1 >conftest.err
54658  rm -f conftest.er1
54659  cat conftest.err >&5
54660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54661  (exit $ac_status); } && {
54662	 test -z "$ac_c_werror_flag" ||
54663	 test ! -s conftest.err
54664       } && test -s conftest.$ac_objext; then
54665  samba_cv_HAVE_KRB5_ENCRYPT_BLOCK=yes
54666else
54667  echo "$as_me: failed program was:" >&5
54668sed 's/^/| /' conftest.$ac_ext >&5
54669
54670	samba_cv_HAVE_KRB5_ENCRYPT_BLOCK=no
54671fi
54672
54673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54674fi
54675{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" >&5
54676echo "${ECHO_T}$samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" >&6; }
54677
54678  if test x"$samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" = x"yes"; then
54679
54680cat >>confdefs.h <<\_ACEOF
54681#define HAVE_KRB5_ENCRYPT_BLOCK 1
54682_ACEOF
54683
54684  fi
54685
54686  { echo "$as_me:$LINENO: checking for addrtype in krb5_address" >&5
54687echo $ECHO_N "checking for addrtype in krb5_address... $ECHO_C" >&6; }
54688if test "${samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS+set}" = set; then
54689  echo $ECHO_N "(cached) $ECHO_C" >&6
54690else
54691
54692    cat >conftest.$ac_ext <<_ACEOF
54693/* confdefs.h.  */
54694_ACEOF
54695cat confdefs.h >>conftest.$ac_ext
54696cat >>conftest.$ac_ext <<_ACEOF
54697/* end confdefs.h.  */
54698#include <krb5.h>
54699int
54700main ()
54701{
54702krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
54703  ;
54704  return 0;
54705}
54706_ACEOF
54707rm -f conftest.$ac_objext
54708if { (ac_try="$ac_compile"
54709case "(($ac_try" in
54710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54711  *) ac_try_echo=$ac_try;;
54712esac
54713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54714  (eval "$ac_compile") 2>conftest.er1
54715  ac_status=$?
54716  grep -v '^ *+' conftest.er1 >conftest.err
54717  rm -f conftest.er1
54718  cat conftest.err >&5
54719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54720  (exit $ac_status); } && {
54721	 test -z "$ac_c_werror_flag" ||
54722	 test ! -s conftest.err
54723       } && test -s conftest.$ac_objext; then
54724  samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=yes
54725else
54726  echo "$as_me: failed program was:" >&5
54727sed 's/^/| /' conftest.$ac_ext >&5
54728
54729	samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=no
54730fi
54731
54732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54733fi
54734{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&5
54735echo "${ECHO_T}$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&6; }
54736
54737  if test x"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x"yes"; then
54738
54739cat >>confdefs.h <<\_ACEOF
54740#define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
54741_ACEOF
54742
54743  fi
54744
54745  { echo "$as_me:$LINENO: checking for addr_type in krb5_address" >&5
54746echo $ECHO_N "checking for addr_type in krb5_address... $ECHO_C" >&6; }
54747if test "${samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS+set}" = set; then
54748  echo $ECHO_N "(cached) $ECHO_C" >&6
54749else
54750
54751    cat >conftest.$ac_ext <<_ACEOF
54752/* confdefs.h.  */
54753_ACEOF
54754cat confdefs.h >>conftest.$ac_ext
54755cat >>conftest.$ac_ext <<_ACEOF
54756/* end confdefs.h.  */
54757#include <krb5.h>
54758int
54759main ()
54760{
54761krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
54762  ;
54763  return 0;
54764}
54765_ACEOF
54766rm -f conftest.$ac_objext
54767if { (ac_try="$ac_compile"
54768case "(($ac_try" in
54769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54770  *) ac_try_echo=$ac_try;;
54771esac
54772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54773  (eval "$ac_compile") 2>conftest.er1
54774  ac_status=$?
54775  grep -v '^ *+' conftest.er1 >conftest.err
54776  rm -f conftest.er1
54777  cat conftest.err >&5
54778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54779  (exit $ac_status); } && {
54780	 test -z "$ac_c_werror_flag" ||
54781	 test ! -s conftest.err
54782       } && test -s conftest.$ac_objext; then
54783  samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=yes
54784else
54785  echo "$as_me: failed program was:" >&5
54786sed 's/^/| /' conftest.$ac_ext >&5
54787
54788	samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=no
54789fi
54790
54791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54792fi
54793{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&5
54794echo "${ECHO_T}$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&6; }
54795
54796  if test x"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x"yes"; then
54797
54798cat >>confdefs.h <<\_ACEOF
54799#define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
54800_ACEOF
54801
54802  fi
54803
54804  { echo "$as_me:$LINENO: checking for enc_part2 in krb5_ticket" >&5
54805echo $ECHO_N "checking for enc_part2 in krb5_ticket... $ECHO_C" >&6; }
54806if test "${samba_cv_HAVE_KRB5_TKT_ENC_PART2+set}" = set; then
54807  echo $ECHO_N "(cached) $ECHO_C" >&6
54808else
54809  cat >conftest.$ac_ext <<_ACEOF
54810/* confdefs.h.  */
54811_ACEOF
54812cat confdefs.h >>conftest.$ac_ext
54813cat >>conftest.$ac_ext <<_ACEOF
54814/* end confdefs.h.  */
54815#include <krb5.h>
54816int
54817main ()
54818{
54819krb5_ticket tkt; tkt.enc_part2->authorization_data[0]->contents = NULL;
54820  ;
54821  return 0;
54822}
54823_ACEOF
54824rm -f conftest.$ac_objext
54825if { (ac_try="$ac_compile"
54826case "(($ac_try" in
54827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54828  *) ac_try_echo=$ac_try;;
54829esac
54830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54831  (eval "$ac_compile") 2>conftest.er1
54832  ac_status=$?
54833  grep -v '^ *+' conftest.er1 >conftest.err
54834  rm -f conftest.er1
54835  cat conftest.err >&5
54836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54837  (exit $ac_status); } && {
54838	 test -z "$ac_c_werror_flag" ||
54839	 test ! -s conftest.err
54840       } && test -s conftest.$ac_objext; then
54841  samba_cv_HAVE_KRB5_TKT_ENC_PART2=yes
54842else
54843  echo "$as_me: failed program was:" >&5
54844sed 's/^/| /' conftest.$ac_ext >&5
54845
54846	samba_cv_HAVE_KRB5_TKT_ENC_PART2=no
54847fi
54848
54849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54850fi
54851{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_TKT_ENC_PART2" >&5
54852echo "${ECHO_T}$samba_cv_HAVE_KRB5_TKT_ENC_PART2" >&6; }
54853
54854  if test x"$samba_cv_HAVE_KRB5_TKT_ENC_PART2" = x"yes"; then
54855
54856cat >>confdefs.h <<\_ACEOF
54857#define HAVE_KRB5_TKT_ENC_PART2 1
54858_ACEOF
54859
54860  fi
54861
54862  { echo "$as_me:$LINENO: checking for keyblock in krb5_creds" >&5
54863echo $ECHO_N "checking for keyblock in krb5_creds... $ECHO_C" >&6; }
54864if test "${samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS+set}" = set; then
54865  echo $ECHO_N "(cached) $ECHO_C" >&6
54866else
54867
54868    cat >conftest.$ac_ext <<_ACEOF
54869/* confdefs.h.  */
54870_ACEOF
54871cat confdefs.h >>conftest.$ac_ext
54872cat >>conftest.$ac_ext <<_ACEOF
54873/* end confdefs.h.  */
54874#include <krb5.h>
54875int
54876main ()
54877{
54878krb5_creds creds; krb5_keyblock kb; creds.keyblock = kb;
54879  ;
54880  return 0;
54881}
54882_ACEOF
54883rm -f conftest.$ac_objext
54884if { (ac_try="$ac_compile"
54885case "(($ac_try" in
54886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54887  *) ac_try_echo=$ac_try;;
54888esac
54889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54890  (eval "$ac_compile") 2>conftest.er1
54891  ac_status=$?
54892  grep -v '^ *+' conftest.er1 >conftest.err
54893  rm -f conftest.er1
54894  cat conftest.err >&5
54895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54896  (exit $ac_status); } && {
54897	 test -z "$ac_c_werror_flag" ||
54898	 test ! -s conftest.err
54899       } && test -s conftest.$ac_objext; then
54900  samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS=yes
54901else
54902  echo "$as_me: failed program was:" >&5
54903sed 's/^/| /' conftest.$ac_ext >&5
54904
54905	samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS=no
54906fi
54907
54908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54909fi
54910{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" >&5
54911echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" >&6; }
54912
54913  if test x"$samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" = x"yes"; then
54914
54915cat >>confdefs.h <<\_ACEOF
54916#define HAVE_KRB5_KEYBLOCK_IN_CREDS 1
54917_ACEOF
54918
54919  fi
54920
54921  { echo "$as_me:$LINENO: checking for session in krb5_creds" >&5
54922echo $ECHO_N "checking for session in krb5_creds... $ECHO_C" >&6; }
54923if test "${samba_cv_HAVE_KRB5_SESSION_IN_CREDS+set}" = set; then
54924  echo $ECHO_N "(cached) $ECHO_C" >&6
54925else
54926
54927    cat >conftest.$ac_ext <<_ACEOF
54928/* confdefs.h.  */
54929_ACEOF
54930cat confdefs.h >>conftest.$ac_ext
54931cat >>conftest.$ac_ext <<_ACEOF
54932/* end confdefs.h.  */
54933#include <krb5.h>
54934int
54935main ()
54936{
54937krb5_creds creds; krb5_keyblock kb; creds.session = kb;
54938  ;
54939  return 0;
54940}
54941_ACEOF
54942rm -f conftest.$ac_objext
54943if { (ac_try="$ac_compile"
54944case "(($ac_try" in
54945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54946  *) ac_try_echo=$ac_try;;
54947esac
54948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54949  (eval "$ac_compile") 2>conftest.er1
54950  ac_status=$?
54951  grep -v '^ *+' conftest.er1 >conftest.err
54952  rm -f conftest.er1
54953  cat conftest.err >&5
54954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
54955  (exit $ac_status); } && {
54956	 test -z "$ac_c_werror_flag" ||
54957	 test ! -s conftest.err
54958       } && test -s conftest.$ac_objext; then
54959  samba_cv_HAVE_KRB5_SESSION_IN_CREDS=yes
54960else
54961  echo "$as_me: failed program was:" >&5
54962sed 's/^/| /' conftest.$ac_ext >&5
54963
54964	samba_cv_HAVE_KRB5_SESSION_IN_CREDS=no
54965fi
54966
54967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54968fi
54969{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_SESSION_IN_CREDS" >&5
54970echo "${ECHO_T}$samba_cv_HAVE_KRB5_SESSION_IN_CREDS" >&6; }
54971
54972  if test x"$samba_cv_HAVE_KRB5_SESSION_IN_CREDS" = x"yes"; then
54973
54974cat >>confdefs.h <<\_ACEOF
54975#define HAVE_KRB5_SESSION_IN_CREDS 1
54976_ACEOF
54977
54978  fi
54979
54980  { echo "$as_me:$LINENO: checking for keyvalue in krb5_keyblock" >&5
54981echo $ECHO_N "checking for keyvalue in krb5_keyblock... $ECHO_C" >&6; }
54982if test "${samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE+set}" = set; then
54983  echo $ECHO_N "(cached) $ECHO_C" >&6
54984else
54985
54986    cat >conftest.$ac_ext <<_ACEOF
54987/* confdefs.h.  */
54988_ACEOF
54989cat confdefs.h >>conftest.$ac_ext
54990cat >>conftest.$ac_ext <<_ACEOF
54991/* end confdefs.h.  */
54992#include <krb5.h>
54993int
54994main ()
54995{
54996krb5_keyblock key; key.keyvalue.data = NULL;
54997  ;
54998  return 0;
54999}
55000_ACEOF
55001rm -f conftest.$ac_objext
55002if { (ac_try="$ac_compile"
55003case "(($ac_try" in
55004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55005  *) ac_try_echo=$ac_try;;
55006esac
55007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55008  (eval "$ac_compile") 2>conftest.er1
55009  ac_status=$?
55010  grep -v '^ *+' conftest.er1 >conftest.err
55011  rm -f conftest.er1
55012  cat conftest.err >&5
55013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55014  (exit $ac_status); } && {
55015	 test -z "$ac_c_werror_flag" ||
55016	 test ! -s conftest.err
55017       } && test -s conftest.$ac_objext; then
55018  samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE=yes
55019else
55020  echo "$as_me: failed program was:" >&5
55021sed 's/^/| /' conftest.$ac_ext >&5
55022
55023	samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE=no
55024fi
55025
55026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55027fi
55028{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" >&5
55029echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" >&6; }
55030
55031  if test x"$samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" = x"yes"; then
55032
55033cat >>confdefs.h <<\_ACEOF
55034#define HAVE_KRB5_KEYBLOCK_KEYVALUE 1
55035_ACEOF
55036
55037  fi
55038
55039  { echo "$as_me:$LINENO: checking for ENCTYPE_ARCFOUR_HMAC_MD5" >&5
55040echo $ECHO_N "checking for ENCTYPE_ARCFOUR_HMAC_MD5... $ECHO_C" >&6; }
55041if test "${samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5+set}" = set; then
55042  echo $ECHO_N "(cached) $ECHO_C" >&6
55043else
55044
55045    cat >conftest.$ac_ext <<_ACEOF
55046/* confdefs.h.  */
55047_ACEOF
55048cat confdefs.h >>conftest.$ac_ext
55049cat >>conftest.$ac_ext <<_ACEOF
55050/* end confdefs.h.  */
55051#include <krb5.h>
55052int
55053main ()
55054{
55055krb5_enctype enctype; enctype = ENCTYPE_ARCFOUR_HMAC_MD5;
55056  ;
55057  return 0;
55058}
55059_ACEOF
55060rm -f conftest.$ac_objext
55061if { (ac_try="$ac_compile"
55062case "(($ac_try" in
55063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55064  *) ac_try_echo=$ac_try;;
55065esac
55066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55067  (eval "$ac_compile") 2>conftest.er1
55068  ac_status=$?
55069  grep -v '^ *+' conftest.er1 >conftest.err
55070  rm -f conftest.er1
55071  cat conftest.err >&5
55072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55073  (exit $ac_status); } && {
55074	 test -z "$ac_c_werror_flag" ||
55075	 test ! -s conftest.err
55076       } && test -s conftest.$ac_objext; then
55077  samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5=yes
55078else
55079  echo "$as_me: failed program was:" >&5
55080sed 's/^/| /' conftest.$ac_ext >&5
55081
55082	samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5=no
55083fi
55084
55085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55086fi
55087{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" >&5
55088echo "${ECHO_T}$samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" >&6; }
55089  { echo "$as_me:$LINENO: checking for KEYTYPE_ARCFOUR_56" >&5
55090echo $ECHO_N "checking for KEYTYPE_ARCFOUR_56... $ECHO_C" >&6; }
55091if test "${samba_cv_HAVE_KEYTYPE_ARCFOUR_56+set}" = set; then
55092  echo $ECHO_N "(cached) $ECHO_C" >&6
55093else
55094
55095    cat >conftest.$ac_ext <<_ACEOF
55096/* confdefs.h.  */
55097_ACEOF
55098cat confdefs.h >>conftest.$ac_ext
55099cat >>conftest.$ac_ext <<_ACEOF
55100/* end confdefs.h.  */
55101#include <krb5.h>
55102int
55103main ()
55104{
55105krb5_keytype keytype; keytype = KEYTYPE_ARCFOUR_56;
55106  ;
55107  return 0;
55108}
55109_ACEOF
55110rm -f conftest.$ac_objext
55111if { (ac_try="$ac_compile"
55112case "(($ac_try" in
55113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55114  *) ac_try_echo=$ac_try;;
55115esac
55116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55117  (eval "$ac_compile") 2>conftest.er1
55118  ac_status=$?
55119  grep -v '^ *+' conftest.er1 >conftest.err
55120  rm -f conftest.er1
55121  cat conftest.err >&5
55122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55123  (exit $ac_status); } && {
55124	 test -z "$ac_c_werror_flag" ||
55125	 test ! -s conftest.err
55126       } && test -s conftest.$ac_objext; then
55127  samba_cv_HAVE_KEYTYPE_ARCFOUR_56=yes
55128else
55129  echo "$as_me: failed program was:" >&5
55130sed 's/^/| /' conftest.$ac_ext >&5
55131
55132	samba_cv_HAVE_KEYTYPE_ARCFOUR_56=no
55133fi
55134
55135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55136fi
55137{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KEYTYPE_ARCFOUR_56" >&5
55138echo "${ECHO_T}$samba_cv_HAVE_KEYTYPE_ARCFOUR_56" >&6; }
55139# Heimdals with KEYTYPE_ARCFOUR but not KEYTYPE_ARCFOUR_56 are broken
55140# w.r.t. arcfour and windows, so we must not enable it here
55141  if test x"$samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" = x"yes" -a\
55142          x"$samba_cv_HAVE_KEYTYPE_ARCFOUR_56" = x"yes"; then
55143
55144cat >>confdefs.h <<\_ACEOF
55145#define HAVE_ENCTYPE_ARCFOUR_HMAC_MD5 1
55146_ACEOF
55147
55148  fi
55149
55150  { echo "$as_me:$LINENO: checking for AP_OPTS_USE_SUBKEY" >&5
55151echo $ECHO_N "checking for AP_OPTS_USE_SUBKEY... $ECHO_C" >&6; }
55152if test "${samba_cv_HAVE_AP_OPTS_USE_SUBKEY+set}" = set; then
55153  echo $ECHO_N "(cached) $ECHO_C" >&6
55154else
55155
55156    cat >conftest.$ac_ext <<_ACEOF
55157/* confdefs.h.  */
55158_ACEOF
55159cat confdefs.h >>conftest.$ac_ext
55160cat >>conftest.$ac_ext <<_ACEOF
55161/* end confdefs.h.  */
55162#include <krb5.h>
55163int
55164main ()
55165{
55166krb5_flags ap_options; ap_options = AP_OPTS_USE_SUBKEY;
55167  ;
55168  return 0;
55169}
55170_ACEOF
55171rm -f conftest.$ac_objext
55172if { (ac_try="$ac_compile"
55173case "(($ac_try" in
55174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55175  *) ac_try_echo=$ac_try;;
55176esac
55177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55178  (eval "$ac_compile") 2>conftest.er1
55179  ac_status=$?
55180  grep -v '^ *+' conftest.er1 >conftest.err
55181  rm -f conftest.er1
55182  cat conftest.err >&5
55183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55184  (exit $ac_status); } && {
55185	 test -z "$ac_c_werror_flag" ||
55186	 test ! -s conftest.err
55187       } && test -s conftest.$ac_objext; then
55188  samba_cv_HAVE_AP_OPTS_USE_SUBKEY=yes
55189else
55190  echo "$as_me: failed program was:" >&5
55191sed 's/^/| /' conftest.$ac_ext >&5
55192
55193	samba_cv_HAVE_AP_OPTS_USE_SUBKEY=no
55194fi
55195
55196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55197fi
55198{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_AP_OPTS_USE_SUBKEY" >&5
55199echo "${ECHO_T}$samba_cv_HAVE_AP_OPTS_USE_SUBKEY" >&6; }
55200
55201  if test x"$samba_cv_HAVE_AP_OPTS_USE_SUBKEY" = x"yes"; then
55202
55203cat >>confdefs.h <<\_ACEOF
55204#define HAVE_AP_OPTS_USE_SUBKEY 1
55205_ACEOF
55206
55207  fi
55208
55209  { echo "$as_me:$LINENO: checking for KV5M_KEYTAB" >&5
55210echo $ECHO_N "checking for KV5M_KEYTAB... $ECHO_C" >&6; }
55211if test "${samba_cv_HAVE_KV5M_KEYTAB+set}" = set; then
55212  echo $ECHO_N "(cached) $ECHO_C" >&6
55213else
55214
55215    cat >conftest.$ac_ext <<_ACEOF
55216/* confdefs.h.  */
55217_ACEOF
55218cat confdefs.h >>conftest.$ac_ext
55219cat >>conftest.$ac_ext <<_ACEOF
55220/* end confdefs.h.  */
55221#include <krb5.h>
55222int
55223main ()
55224{
55225krb5_keytab_entry entry; entry.magic = KV5M_KEYTAB;
55226  ;
55227  return 0;
55228}
55229_ACEOF
55230rm -f conftest.$ac_objext
55231if { (ac_try="$ac_compile"
55232case "(($ac_try" in
55233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55234  *) ac_try_echo=$ac_try;;
55235esac
55236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55237  (eval "$ac_compile") 2>conftest.er1
55238  ac_status=$?
55239  grep -v '^ *+' conftest.er1 >conftest.err
55240  rm -f conftest.er1
55241  cat conftest.err >&5
55242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55243  (exit $ac_status); } && {
55244	 test -z "$ac_c_werror_flag" ||
55245	 test ! -s conftest.err
55246       } && test -s conftest.$ac_objext; then
55247  samba_cv_HAVE_KV5M_KEYTAB=yes
55248else
55249  echo "$as_me: failed program was:" >&5
55250sed 's/^/| /' conftest.$ac_ext >&5
55251
55252	samba_cv_HAVE_KV5M_KEYTAB=no
55253fi
55254
55255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55256fi
55257{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KV5M_KEYTAB" >&5
55258echo "${ECHO_T}$samba_cv_HAVE_KV5M_KEYTAB" >&6; }
55259
55260  if test x"$samba_cv_HAVE_KV5M_KEYTAB" = x"yes"; then
55261
55262cat >>confdefs.h <<\_ACEOF
55263#define HAVE_KV5M_KEYTAB 1
55264_ACEOF
55265
55266  fi
55267
55268  { echo "$as_me:$LINENO: checking for KRB5_KU_OTHER_CKSUM" >&5
55269echo $ECHO_N "checking for KRB5_KU_OTHER_CKSUM... $ECHO_C" >&6; }
55270if test "${samba_cv_HAVE_KRB5_KU_OTHER_CKSUM+set}" = set; then
55271  echo $ECHO_N "(cached) $ECHO_C" >&6
55272else
55273
55274    cat >conftest.$ac_ext <<_ACEOF
55275/* confdefs.h.  */
55276_ACEOF
55277cat confdefs.h >>conftest.$ac_ext
55278cat >>conftest.$ac_ext <<_ACEOF
55279/* end confdefs.h.  */
55280#include <krb5.h>
55281int
55282main ()
55283{
55284krb5_keyusage usage = KRB5_KU_OTHER_CKSUM;
55285  ;
55286  return 0;
55287}
55288_ACEOF
55289rm -f conftest.$ac_objext
55290if { (ac_try="$ac_compile"
55291case "(($ac_try" in
55292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55293  *) ac_try_echo=$ac_try;;
55294esac
55295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55296  (eval "$ac_compile") 2>conftest.er1
55297  ac_status=$?
55298  grep -v '^ *+' conftest.er1 >conftest.err
55299  rm -f conftest.er1
55300  cat conftest.err >&5
55301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55302  (exit $ac_status); } && {
55303	 test -z "$ac_c_werror_flag" ||
55304	 test ! -s conftest.err
55305       } && test -s conftest.$ac_objext; then
55306  samba_cv_HAVE_KRB5_KU_OTHER_CKSUM=yes
55307else
55308  echo "$as_me: failed program was:" >&5
55309sed 's/^/| /' conftest.$ac_ext >&5
55310
55311	samba_cv_HAVE_KRB5_KU_OTHER_CKSUM=no
55312fi
55313
55314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55315fi
55316{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KU_OTHER_CKSUM" >&5
55317echo "${ECHO_T}$samba_cv_HAVE_KRB5_KU_OTHER_CKSUM" >&6; }
55318
55319  if test x"$samba_cv_HAVE_KRB5_KU_OTHER_CKSUM" = x"yes"; then
55320
55321cat >>confdefs.h <<\_ACEOF
55322#define HAVE_KRB5_KU_OTHER_CKSUM 1
55323_ACEOF
55324
55325  fi
55326
55327  { echo "$as_me:$LINENO: checking for KRB5_KEYUSAGE_APP_DATA_CKSUM" >&5
55328echo $ECHO_N "checking for KRB5_KEYUSAGE_APP_DATA_CKSUM... $ECHO_C" >&6; }
55329if test "${samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM+set}" = set; then
55330  echo $ECHO_N "(cached) $ECHO_C" >&6
55331else
55332
55333    cat >conftest.$ac_ext <<_ACEOF
55334/* confdefs.h.  */
55335_ACEOF
55336cat confdefs.h >>conftest.$ac_ext
55337cat >>conftest.$ac_ext <<_ACEOF
55338/* end confdefs.h.  */
55339#include <krb5.h>
55340int
55341main ()
55342{
55343krb5_keyusage usage = KRB5_KEYUSAGE_APP_DATA_CKSUM;
55344  ;
55345  return 0;
55346}
55347_ACEOF
55348rm -f conftest.$ac_objext
55349if { (ac_try="$ac_compile"
55350case "(($ac_try" in
55351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55352  *) ac_try_echo=$ac_try;;
55353esac
55354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55355  (eval "$ac_compile") 2>conftest.er1
55356  ac_status=$?
55357  grep -v '^ *+' conftest.er1 >conftest.err
55358  rm -f conftest.er1
55359  cat conftest.err >&5
55360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55361  (exit $ac_status); } && {
55362	 test -z "$ac_c_werror_flag" ||
55363	 test ! -s conftest.err
55364       } && test -s conftest.$ac_objext; then
55365  samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM=yes
55366else
55367  echo "$as_me: failed program was:" >&5
55368sed 's/^/| /' conftest.$ac_ext >&5
55369
55370	samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM=no
55371fi
55372
55373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55374fi
55375{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM" >&5
55376echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM" >&6; }
55377
55378  if test x"$samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM" = x"yes"; then
55379
55380cat >>confdefs.h <<\_ACEOF
55381#define HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM 1
55382_ACEOF
55383
55384  fi
55385
55386  { echo "$as_me:$LINENO: checking for the krb5_princ_component macro" >&5
55387echo $ECHO_N "checking for the krb5_princ_component macro... $ECHO_C" >&6; }
55388if test "${samba_cv_HAVE_KRB5_PRINC_COMPONENT+set}" = set; then
55389  echo $ECHO_N "(cached) $ECHO_C" >&6
55390else
55391
55392    cat >conftest.$ac_ext <<_ACEOF
55393/* confdefs.h.  */
55394_ACEOF
55395cat confdefs.h >>conftest.$ac_ext
55396cat >>conftest.$ac_ext <<_ACEOF
55397/* end confdefs.h.  */
55398#include <krb5.h>
55399int
55400main ()
55401{
55402const krb5_data *pkdata; krb5_context context; krb5_principal principal; pkdata = krb5_princ_component(context, principal, 0);
55403  ;
55404  return 0;
55405}
55406_ACEOF
55407rm -f conftest.$ac_objext conftest$ac_exeext
55408if { (ac_try="$ac_link"
55409case "(($ac_try" in
55410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55411  *) ac_try_echo=$ac_try;;
55412esac
55413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55414  (eval "$ac_link") 2>conftest.er1
55415  ac_status=$?
55416  grep -v '^ *+' conftest.er1 >conftest.err
55417  rm -f conftest.er1
55418  cat conftest.err >&5
55419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55420  (exit $ac_status); } && {
55421	 test -z "$ac_c_werror_flag" ||
55422	 test ! -s conftest.err
55423       } && test -s conftest$ac_exeext &&
55424       $as_test_x conftest$ac_exeext; then
55425  samba_cv_HAVE_KRB5_PRINC_COMPONENT=yes
55426else
55427  echo "$as_me: failed program was:" >&5
55428sed 's/^/| /' conftest.$ac_ext >&5
55429
55430	samba_cv_HAVE_KRB5_PRINC_COMPONENT=no
55431fi
55432
55433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55434      conftest$ac_exeext conftest.$ac_ext
55435fi
55436{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_PRINC_COMPONENT" >&5
55437echo "${ECHO_T}$samba_cv_HAVE_KRB5_PRINC_COMPONENT" >&6; }
55438
55439  if test x"$samba_cv_HAVE_KRB5_PRINC_COMPONENT" = x"yes"; then
55440
55441cat >>confdefs.h <<\_ACEOF
55442#define HAVE_KRB5_PRINC_COMPONENT 1
55443_ACEOF
55444
55445  fi
55446
55447  { echo "$as_me:$LINENO: checking for key in krb5_keytab_entry" >&5
55448echo $ECHO_N "checking for key in krb5_keytab_entry... $ECHO_C" >&6; }
55449if test "${samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY+set}" = set; then
55450  echo $ECHO_N "(cached) $ECHO_C" >&6
55451else
55452
55453    cat >conftest.$ac_ext <<_ACEOF
55454/* confdefs.h.  */
55455_ACEOF
55456cat confdefs.h >>conftest.$ac_ext
55457cat >>conftest.$ac_ext <<_ACEOF
55458/* end confdefs.h.  */
55459#include <krb5.h>
55460int
55461main ()
55462{
55463krb5_keytab_entry entry; krb5_keyblock e; entry.key = e;
55464  ;
55465  return 0;
55466}
55467_ACEOF
55468rm -f conftest.$ac_objext
55469if { (ac_try="$ac_compile"
55470case "(($ac_try" in
55471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55472  *) ac_try_echo=$ac_try;;
55473esac
55474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55475  (eval "$ac_compile") 2>conftest.er1
55476  ac_status=$?
55477  grep -v '^ *+' conftest.er1 >conftest.err
55478  rm -f conftest.er1
55479  cat conftest.err >&5
55480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55481  (exit $ac_status); } && {
55482	 test -z "$ac_c_werror_flag" ||
55483	 test ! -s conftest.err
55484       } && test -s conftest.$ac_objext; then
55485  samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY=yes
55486else
55487  echo "$as_me: failed program was:" >&5
55488sed 's/^/| /' conftest.$ac_ext >&5
55489
55490	samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY=no
55491fi
55492
55493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55494fi
55495{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" >&5
55496echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" >&6; }
55497
55498  if test x"$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" = x"yes"; then
55499
55500cat >>confdefs.h <<\_ACEOF
55501#define HAVE_KRB5_KEYTAB_ENTRY_KEY 1
55502_ACEOF
55503
55504  fi
55505
55506  { echo "$as_me:$LINENO: checking for keyblock in krb5_keytab_entry" >&5
55507echo $ECHO_N "checking for keyblock in krb5_keytab_entry... $ECHO_C" >&6; }
55508if test "${samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK+set}" = set; then
55509  echo $ECHO_N "(cached) $ECHO_C" >&6
55510else
55511
55512    cat >conftest.$ac_ext <<_ACEOF
55513/* confdefs.h.  */
55514_ACEOF
55515cat confdefs.h >>conftest.$ac_ext
55516cat >>conftest.$ac_ext <<_ACEOF
55517/* end confdefs.h.  */
55518#include <krb5.h>
55519int
55520main ()
55521{
55522krb5_keytab_entry entry; entry.keyblock.keytype = 0;
55523  ;
55524  return 0;
55525}
55526_ACEOF
55527rm -f conftest.$ac_objext
55528if { (ac_try="$ac_compile"
55529case "(($ac_try" in
55530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55531  *) ac_try_echo=$ac_try;;
55532esac
55533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55534  (eval "$ac_compile") 2>conftest.er1
55535  ac_status=$?
55536  grep -v '^ *+' conftest.er1 >conftest.err
55537  rm -f conftest.er1
55538  cat conftest.err >&5
55539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55540  (exit $ac_status); } && {
55541	 test -z "$ac_c_werror_flag" ||
55542	 test ! -s conftest.err
55543       } && test -s conftest.$ac_objext; then
55544  samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK=yes
55545else
55546  echo "$as_me: failed program was:" >&5
55547sed 's/^/| /' conftest.$ac_ext >&5
55548
55549	samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK=no
55550fi
55551
55552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55553fi
55554{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" >&5
55555echo "${ECHO_T}$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" >&6; }
55556
55557  if test x"$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" = x"yes"; then
55558
55559cat >>confdefs.h <<\_ACEOF
55560#define HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK 1
55561_ACEOF
55562
55563  fi
55564
55565  { echo "$as_me:$LINENO: checking for magic in krb5_address" >&5
55566echo $ECHO_N "checking for magic in krb5_address... $ECHO_C" >&6; }
55567if test "${samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS+set}" = set; then
55568  echo $ECHO_N "(cached) $ECHO_C" >&6
55569else
55570
55571    cat >conftest.$ac_ext <<_ACEOF
55572/* confdefs.h.  */
55573_ACEOF
55574cat confdefs.h >>conftest.$ac_ext
55575cat >>conftest.$ac_ext <<_ACEOF
55576/* end confdefs.h.  */
55577#include <krb5.h>
55578int
55579main ()
55580{
55581krb5_address addr; addr.magic = 0;
55582  ;
55583  return 0;
55584}
55585_ACEOF
55586rm -f conftest.$ac_objext
55587if { (ac_try="$ac_compile"
55588case "(($ac_try" in
55589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55590  *) ac_try_echo=$ac_try;;
55591esac
55592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55593  (eval "$ac_compile") 2>conftest.er1
55594  ac_status=$?
55595  grep -v '^ *+' conftest.er1 >conftest.err
55596  rm -f conftest.er1
55597  cat conftest.err >&5
55598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55599  (exit $ac_status); } && {
55600	 test -z "$ac_c_werror_flag" ||
55601	 test ! -s conftest.err
55602       } && test -s conftest.$ac_objext; then
55603  samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS=yes
55604else
55605  echo "$as_me: failed program was:" >&5
55606sed 's/^/| /' conftest.$ac_ext >&5
55607
55608	samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS=no
55609fi
55610
55611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55612fi
55613{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" >&5
55614echo "${ECHO_T}$samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" >&6; }
55615
55616  if test x"$samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" = x"yes"; then
55617
55618cat >>confdefs.h <<\_ACEOF
55619#define HAVE_MAGIC_IN_KRB5_ADDRESS 1
55620_ACEOF
55621
55622  fi
55623
55624  { echo "$as_me:$LINENO: checking for WRFILE: keytab support" >&5
55625echo $ECHO_N "checking for WRFILE: keytab support... $ECHO_C" >&6; }
55626if test "${samba_cv_HAVE_WRFILE_KEYTAB+set}" = set; then
55627  echo $ECHO_N "(cached) $ECHO_C" >&6
55628else
55629
55630    if test "$cross_compiling" = yes; then
55631  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
55632See \`config.log' for more details." >&5
55633echo "$as_me: error: cannot run test program while cross compiling
55634See \`config.log' for more details." >&2;}
55635   { (exit 1); exit 1; }; }
55636else
55637  cat >conftest.$ac_ext <<_ACEOF
55638/* confdefs.h.  */
55639_ACEOF
55640cat confdefs.h >>conftest.$ac_ext
55641cat >>conftest.$ac_ext <<_ACEOF
55642/* end confdefs.h.  */
55643
55644#include<krb5.h>
55645  main()
55646  {
55647    krb5_context context;
55648    krb5_keytab keytab;
55649
55650    krb5_init_context(&context);
55651    return krb5_kt_resolve(context, "WRFILE:api", &keytab);
55652  }
55653_ACEOF
55654rm -f conftest$ac_exeext
55655if { (ac_try="$ac_link"
55656case "(($ac_try" in
55657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55658  *) ac_try_echo=$ac_try;;
55659esac
55660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55661  (eval "$ac_link") 2>&5
55662  ac_status=$?
55663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55664  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55665  { (case "(($ac_try" in
55666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55667  *) ac_try_echo=$ac_try;;
55668esac
55669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55670  (eval "$ac_try") 2>&5
55671  ac_status=$?
55672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55673  (exit $ac_status); }; }; then
55674  samba_cv_HAVE_WRFILE_KEYTAB=yes
55675else
55676  echo "$as_me: program exited with status $ac_status" >&5
55677echo "$as_me: failed program was:" >&5
55678sed 's/^/| /' conftest.$ac_ext >&5
55679
55680( exit $ac_status )
55681samba_cv_HAVE_WRFILE_KEYTAB=no
55682fi
55683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55684fi
55685
55686
55687fi
55688{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_WRFILE_KEYTAB" >&5
55689echo "${ECHO_T}$samba_cv_HAVE_WRFILE_KEYTAB" >&6; }
55690
55691  if test x"$samba_cv_HAVE_WRFILE_KEYTAB" = x"yes"; then
55692
55693cat >>confdefs.h <<\_ACEOF
55694#define HAVE_WRFILE_KEYTAB 1
55695_ACEOF
55696
55697  fi
55698
55699  { echo "$as_me:$LINENO: checking for krb5_princ_realm returns krb5_realm or krb5_data" >&5
55700echo $ECHO_N "checking for krb5_princ_realm returns krb5_realm or krb5_data... $ECHO_C" >&6; }
55701if test "${samba_cv_KRB5_PRINC_REALM_RETURNS_REALM+set}" = set; then
55702  echo $ECHO_N "(cached) $ECHO_C" >&6
55703else
55704
55705    cat >conftest.$ac_ext <<_ACEOF
55706/* confdefs.h.  */
55707_ACEOF
55708cat confdefs.h >>conftest.$ac_ext
55709cat >>conftest.$ac_ext <<_ACEOF
55710/* end confdefs.h.  */
55711#include <krb5.h>
55712int
55713main ()
55714{
55715
55716    krb5_context context;
55717    krb5_principal principal;
55718    krb5_realm realm; realm = *krb5_princ_realm(context, principal);
55719  ;
55720  return 0;
55721}
55722_ACEOF
55723rm -f conftest.$ac_objext
55724if { (ac_try="$ac_compile"
55725case "(($ac_try" in
55726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55727  *) ac_try_echo=$ac_try;;
55728esac
55729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55730  (eval "$ac_compile") 2>conftest.er1
55731  ac_status=$?
55732  grep -v '^ *+' conftest.er1 >conftest.err
55733  rm -f conftest.er1
55734  cat conftest.err >&5
55735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55736  (exit $ac_status); } && {
55737	 test -z "$ac_c_werror_flag" ||
55738	 test ! -s conftest.err
55739       } && test -s conftest.$ac_objext; then
55740  samba_cv_KRB5_PRINC_REALM_RETURNS_REALM=yes
55741else
55742  echo "$as_me: failed program was:" >&5
55743sed 's/^/| /' conftest.$ac_ext >&5
55744
55745	samba_cv_KRB5_PRINC_REALM_RETURNS_REALM=no
55746fi
55747
55748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55749fi
55750{ echo "$as_me:$LINENO: result: $samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" >&5
55751echo "${ECHO_T}$samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" >&6; }
55752
55753  if test x"$samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" = x"yes"; then
55754
55755cat >>confdefs.h <<\_ACEOF
55756#define KRB5_PRINC_REALM_RETURNS_REALM 1
55757_ACEOF
55758
55759  fi
55760
55761  { echo "$as_me:$LINENO: checking for krb5_addresses type" >&5
55762echo $ECHO_N "checking for krb5_addresses type... $ECHO_C" >&6; }
55763if test "${samba_cv_HAVE_KRB5_ADDRESSES+set}" = set; then
55764  echo $ECHO_N "(cached) $ECHO_C" >&6
55765else
55766
55767    cat >conftest.$ac_ext <<_ACEOF
55768/* confdefs.h.  */
55769_ACEOF
55770cat confdefs.h >>conftest.$ac_ext
55771cat >>conftest.$ac_ext <<_ACEOF
55772/* end confdefs.h.  */
55773#include <krb5.h>
55774int
55775main ()
55776{
55777krb5_addresses addr;
55778  ;
55779  return 0;
55780}
55781_ACEOF
55782rm -f conftest.$ac_objext
55783if { (ac_try="$ac_compile"
55784case "(($ac_try" in
55785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55786  *) ac_try_echo=$ac_try;;
55787esac
55788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55789  (eval "$ac_compile") 2>conftest.er1
55790  ac_status=$?
55791  grep -v '^ *+' conftest.er1 >conftest.err
55792  rm -f conftest.er1
55793  cat conftest.err >&5
55794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55795  (exit $ac_status); } && {
55796	 test -z "$ac_c_werror_flag" ||
55797	 test ! -s conftest.err
55798       } && test -s conftest.$ac_objext; then
55799  samba_cv_HAVE_KRB5_ADDRESSES=yes
55800else
55801  echo "$as_me: failed program was:" >&5
55802sed 's/^/| /' conftest.$ac_ext >&5
55803
55804	samba_cv_HAVE_KRB5_ADDRESSES=no
55805fi
55806
55807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55808fi
55809{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_ADDRESSES" >&5
55810echo "${ECHO_T}$samba_cv_HAVE_KRB5_ADDRESSES" >&6; }
55811
55812  if test x"$samba_cv_HAVE_KRB5_ADDRESSES" = x"yes"; then
55813
55814cat >>confdefs.h <<\_ACEOF
55815#define HAVE_KRB5_ADDRESSES 1
55816_ACEOF
55817
55818  fi
55819
55820  { echo "$as_me:$LINENO: checking whether krb5_mk_error takes 3 arguments MIT or 9 Heimdal" >&5
55821echo $ECHO_N "checking whether krb5_mk_error takes 3 arguments MIT or 9 Heimdal... $ECHO_C" >&6; }
55822if test "${samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE+set}" = set; then
55823  echo $ECHO_N "(cached) $ECHO_C" >&6
55824else
55825
55826    cat >conftest.$ac_ext <<_ACEOF
55827/* confdefs.h.  */
55828_ACEOF
55829cat confdefs.h >>conftest.$ac_ext
55830cat >>conftest.$ac_ext <<_ACEOF
55831/* end confdefs.h.  */
55832#include <krb5.h>
55833int
55834main ()
55835{
55836
55837    krb5_mk_error(0,0,0);
55838  ;
55839  return 0;
55840}
55841_ACEOF
55842rm -f conftest.$ac_objext
55843if { (ac_try="$ac_compile"
55844case "(($ac_try" in
55845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55846  *) ac_try_echo=$ac_try;;
55847esac
55848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55849  (eval "$ac_compile") 2>conftest.er1
55850  ac_status=$?
55851  grep -v '^ *+' conftest.er1 >conftest.err
55852  rm -f conftest.er1
55853  cat conftest.err >&5
55854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
55855  (exit $ac_status); } && {
55856	 test -z "$ac_c_werror_flag" ||
55857	 test ! -s conftest.err
55858       } && test -s conftest.$ac_objext; then
55859  samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE=yes
55860else
55861  echo "$as_me: failed program was:" >&5
55862sed 's/^/| /' conftest.$ac_ext >&5
55863
55864	samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE=no
55865fi
55866
55867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55868fi
55869{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE" >&5
55870echo "${ECHO_T}$samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE" >&6; }
55871
55872  if test x"$samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE" = x"yes"; then
55873
55874cat >>confdefs.h <<\_ACEOF
55875#define HAVE_SHORT_KRB5_MK_ERROR_INTERFACE 1
55876_ACEOF
55877
55878  fi
55879
55880
55881  #
55882  #
55883  # Now the decisions whether we can support krb5
55884  #
55885  # NOTE: all tests should be done before this block!
55886  #
55887  #
55888  if test x"$ac_cv_lib_ext_krb5_krb5_mk_req_extended" != x"yes"; then
55889    { echo "$as_me:$LINENO: WARNING: krb5_mk_req_extended not found in -lkrb5" >&5
55890echo "$as_me: WARNING: krb5_mk_req_extended not found in -lkrb5" >&2;}
55891    use_ads=no
55892  fi
55893
55894  if test x"$ac_cv_func_ext_krb5_principal2salt" != x"yes" -a \
55895          x"$ac_cv_func_ext_krb5_get_pw_salt" != x"yes"
55896  then
55897    { echo "$as_me:$LINENO: WARNING: no CREATE_KEY_FUNCTIONS detected" >&5
55898echo "$as_me: WARNING: no CREATE_KEY_FUNCTIONS detected" >&2;}
55899    use_ads=no
55900  fi
55901
55902  if test x"$ac_cv_func_ext_krb5_get_permitted_enctypes" != x"yes" -a \
55903          x"$ac_cv_func_ext_krb5_get_default_in_tkt_etypes" != x"yes"
55904  then
55905    { echo "$as_me:$LINENO: WARNING: no GET_ENCTYPES_FUNCTIONS detected" >&5
55906echo "$as_me: WARNING: no GET_ENCTYPES_FUNCTIONS detected" >&2;}
55907    use_ads=no
55908  fi
55909
55910  if test x"$ac_cv_func_ext_krb5_kt_free_entry" != x"yes" -a \
55911          x"$ac_cv_func_ext_krb5_free_keytab_entry_contents" != x"yes"
55912  then
55913    { echo "$as_me:$LINENO: WARNING: no KT_FREE_FUNCTION detected" >&5
55914echo "$as_me: WARNING: no KT_FREE_FUNCTION detected" >&2;}
55915    use_ads=no
55916  fi
55917
55918  if test x"$ac_cv_func_ext_krb5_c_verify_checksum" != x"yes" -a \
55919          x"$ac_cv_func_ext_krb5_verify_checksum" != x"yes"
55920  then
55921    { echo "$as_me:$LINENO: WARNING: no KRB5_VERIFY_CHECKSUM_FUNCTION detected" >&5
55922echo "$as_me: WARNING: no KRB5_VERIFY_CHECKSUM_FUNCTION detected" >&2;}
55923    use_ads=no
55924  fi
55925
55926  if test x"$smb_krb5_ticket_has_keyinfo" != x"yes" ; then
55927
55928      # We only need the following functions if we can't get the enctype
55929      # and kvno out of the ticket directly (ie. on Heimdal).
55930
55931      if test x"$ac_cv_func_ext_free_AP_REQ" != x"yes"
55932      then
55933	{ echo "$as_me:$LINENO: WARNING: no KRB5_AP_REQ_FREE_FUNCTION detected" >&5
55934echo "$as_me: WARNING: no KRB5_AP_REQ_FREE_FUNCTION detected" >&2;}
55935	use_ads=no
55936      fi
55937
55938      if test x"$ac_cv_func_ext_krb5_decode_ap_req" != x"yes"
55939      then
55940	{ echo "$as_me:$LINENO: WARNING: no KRB5_AP_REQ_DECODING_FUNCTION detected" >&5
55941echo "$as_me: WARNING: no KRB5_AP_REQ_DECODING_FUNCTION detected" >&2;}
55942	use_ads=no
55943      fi
55944
55945  fi
55946
55947  if test x"$use_ads" = x"yes"; then
55948
55949cat >>confdefs.h <<\_ACEOF
55950#define WITH_ADS 1
55951_ACEOF
55952
55953
55954cat >>confdefs.h <<\_ACEOF
55955#define HAVE_KRB5 1
55956_ACEOF
55957
55958    if test x"$have_gssapi" = x"yes"; then
55959
55960cat >>confdefs.h <<\_ACEOF
55961#define HAVE_GSSAPI 1
55962_ACEOF
55963
55964    fi
55965  else
55966    if test x"$with_ads_support" = x"yes"; then
55967	{ { echo "$as_me:$LINENO: error: krb5 libs don't have all features required for Active Directory support" >&5
55968echo "$as_me: error: krb5 libs don't have all features required for Active Directory support" >&2;}
55969   { (exit 1); exit 1; }; }
55970    else
55971	{ echo "$as_me:$LINENO: WARNING: krb5 libs don't have all features required for Active Directory support" >&5
55972echo "$as_me: WARNING: krb5 libs don't have all features required for Active Directory support" >&2;}
55973    fi
55974
55975grep -v '#define HAVE_KRB5_H ' confdefs.h |grep -v '#define HAVE_KRB5_H$'>confdefs.h.tmp
55976cat confdefs.h.tmp > confdefs.h
55977rm confdefs.h.tmp
55978
55979
55980grep -v '#define HAVE_GSSAPI_H ' confdefs.h |grep -v '#define HAVE_GSSAPI_H$'>confdefs.h.tmp
55981cat confdefs.h.tmp > confdefs.h
55982rm confdefs.h.tmp
55983
55984
55985grep -v '#define HAVE_GSSAPI_GSSAPI_GENERIC_H ' confdefs.h |grep -v '#define HAVE_GSSAPI_GSSAPI_GENERIC_H$'>confdefs.h.tmp
55986cat confdefs.h.tmp > confdefs.h
55987rm confdefs.h.tmp
55988
55989
55990grep -v '#define HAVE_GSSAPI_GSSAPI_H ' confdefs.h |grep -v '#define HAVE_GSSAPI_GSSAPI_H$'>confdefs.h.tmp
55991cat confdefs.h.tmp > confdefs.h
55992rm confdefs.h.tmp
55993
55994    KRB5_LIBS=""
55995    with_ads_support=no
55996  fi
55997  { echo "$as_me:$LINENO: checking whether Active Directory and krb5 support is used" >&5
55998echo $ECHO_N "checking whether Active Directory and krb5 support is used... $ECHO_C" >&6; }
55999  { echo "$as_me:$LINENO: result: $use_ads" >&5
56000echo "${ECHO_T}$use_ads" >&6; }
56001
56002LIBS="$ac_save_LIBS"
56003fi
56004
56005
56006
56007
56008ac_check_lib_ext_save_LIBS=$LIBS
56009LIBS="-lnscd $NSCD_LIBS  $LIBS"
56010
56011
56012
56013
56014        { echo "$as_me:$LINENO: checking for nscd_flush_cache in -lnscd" >&5
56015echo $ECHO_N "checking for nscd_flush_cache in -lnscd... $ECHO_C" >&6; }
56016if test "${ac_cv_lib_ext_nscd_nscd_flush_cache+set}" = set; then
56017  echo $ECHO_N "(cached) $ECHO_C" >&6
56018else
56019  cat >conftest.$ac_ext <<_ACEOF
56020/* confdefs.h.  */
56021_ACEOF
56022cat confdefs.h >>conftest.$ac_ext
56023cat >>conftest.$ac_ext <<_ACEOF
56024/* end confdefs.h.  */
56025
56026/* Override any GCC internal prototype to avoid an error.
56027   Use char because int might match the return type of a GCC
56028   builtin and then its argument prototype would still apply.  */
56029#ifdef __cplusplus
56030extern "C"
56031#endif
56032char nscd_flush_cache ();
56033int
56034main ()
56035{
56036return nscd_flush_cache ();
56037  ;
56038  return 0;
56039}
56040_ACEOF
56041rm -f conftest.$ac_objext conftest$ac_exeext
56042if { (ac_try="$ac_link"
56043case "(($ac_try" in
56044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56045  *) ac_try_echo=$ac_try;;
56046esac
56047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56048  (eval "$ac_link") 2>conftest.er1
56049  ac_status=$?
56050  grep -v '^ *+' conftest.er1 >conftest.err
56051  rm -f conftest.er1
56052  cat conftest.err >&5
56053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56054  (exit $ac_status); } && {
56055	 test -z "$ac_c_werror_flag" ||
56056	 test ! -s conftest.err
56057       } && test -s conftest$ac_exeext &&
56058       $as_test_x conftest$ac_exeext; then
56059  ac_cv_lib_ext_nscd_nscd_flush_cache=yes;
56060		  ac_cv_lib_ext_nscd=yes
56061else
56062  echo "$as_me: failed program was:" >&5
56063sed 's/^/| /' conftest.$ac_ext >&5
56064
56065	ac_cv_lib_ext_nscd_nscd_flush_cache=no;
56066		  ac_cv_lib_ext_nscd=no
56067fi
56068
56069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56070      conftest$ac_exeext conftest.$ac_ext
56071
56072fi
56073{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_nscd_nscd_flush_cache" >&5
56074echo "${ECHO_T}$ac_cv_lib_ext_nscd_nscd_flush_cache" >&6; }
56075    if test $ac_cv_lib_ext_nscd_nscd_flush_cache = yes; then
56076  cat >>confdefs.h <<_ACEOF
56077#define HAVE_NSCD_FLUSH_CACHE 1
56078_ACEOF
56079
56080fi
56081
56082LIBS=$ac_check_lib_ext_save_LIBS
56083
56084if test $ac_cv_lib_ext_nscd = yes; then
56085  cat >>confdefs.h <<_ACEOF
56086#define HAVE_LIBNSCD 1
56087_ACEOF
56088
56089		case "$NSCD_LIBS" in
56090		    *-lnscd*)
56091			;;
56092		    *)
56093			NSCD_LIBS="-lnscd $NSCD_LIBS"
56094			;;
56095		esac
56096
56097
56098fi
56099
56100PASSDB_LIBS="$PASSDB_LIBS $NSCD_LIBS"
56101
56102
56103########################################################
56104# Compile with DNS Updates support?
56105
56106with_dnsupdate_support=no
56107{ echo "$as_me:$LINENO: checking whether to enable DNS Updates support" >&5
56108echo $ECHO_N "checking whether to enable DNS Updates support... $ECHO_C" >&6; }
56109
56110
56111# Check whether --with-dnsupdate was given.
56112if test "${with_dnsupdate+set}" = set; then
56113  withval=$with_dnsupdate;  case "$withval" in
56114    yes|no)
56115	with_dnsupdate_support=$withval
56116	;;
56117  esac
56118fi
56119
56120
56121{ echo "$as_me:$LINENO: result: $with_dnsupdate_support" >&5
56122echo "${ECHO_T}$with_dnsupdate_support" >&6; }
56123
56124if test x"$with_dnsupdate_support" != x"no"; then
56125
56126  ################################################################
56127  # first test for Active Directory support being enabled
56128  #if test x"$with_ads_support" = x"no"; then
56129  #		AC_MSG_ERROR(Active Directory support is required to enable DNS Update support)
56130  #		with_dnsupdate_support=no
56131  #fi
56132  ##################################################################
56133  # then test for uuid.h (necessary to generate unique DNS keynames
56134  # (uuid.h is required for this test)
56135
56136for ac_header in uuid/uuid.h
56137do
56138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56140  { echo "$as_me:$LINENO: checking for $ac_header" >&5
56141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
56142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56143  echo $ECHO_N "(cached) $ECHO_C" >&6
56144fi
56145ac_res=`eval echo '${'$as_ac_Header'}'`
56146	       { echo "$as_me:$LINENO: result: $ac_res" >&5
56147echo "${ECHO_T}$ac_res" >&6; }
56148else
56149  # Is the header compilable?
56150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
56151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
56152cat >conftest.$ac_ext <<_ACEOF
56153/* confdefs.h.  */
56154_ACEOF
56155cat confdefs.h >>conftest.$ac_ext
56156cat >>conftest.$ac_ext <<_ACEOF
56157/* end confdefs.h.  */
56158$ac_includes_default
56159#include <$ac_header>
56160_ACEOF
56161rm -f conftest.$ac_objext
56162if { (ac_try="$ac_compile"
56163case "(($ac_try" in
56164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56165  *) ac_try_echo=$ac_try;;
56166esac
56167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56168  (eval "$ac_compile") 2>conftest.er1
56169  ac_status=$?
56170  grep -v '^ *+' conftest.er1 >conftest.err
56171  rm -f conftest.er1
56172  cat conftest.err >&5
56173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56174  (exit $ac_status); } && {
56175	 test -z "$ac_c_werror_flag" ||
56176	 test ! -s conftest.err
56177       } && test -s conftest.$ac_objext; then
56178  ac_header_compiler=yes
56179else
56180  echo "$as_me: failed program was:" >&5
56181sed 's/^/| /' conftest.$ac_ext >&5
56182
56183	ac_header_compiler=no
56184fi
56185
56186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56188echo "${ECHO_T}$ac_header_compiler" >&6; }
56189
56190# Is the header present?
56191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
56192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
56193cat >conftest.$ac_ext <<_ACEOF
56194/* confdefs.h.  */
56195_ACEOF
56196cat confdefs.h >>conftest.$ac_ext
56197cat >>conftest.$ac_ext <<_ACEOF
56198/* end confdefs.h.  */
56199#include <$ac_header>
56200_ACEOF
56201if { (ac_try="$ac_cpp conftest.$ac_ext"
56202case "(($ac_try" in
56203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56204  *) ac_try_echo=$ac_try;;
56205esac
56206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56207  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
56208  ac_status=$?
56209  grep -v '^ *+' conftest.er1 >conftest.err
56210  rm -f conftest.er1
56211  cat conftest.err >&5
56212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56213  (exit $ac_status); } >/dev/null && {
56214	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
56215	 test ! -s conftest.err
56216       }; then
56217  ac_header_preproc=yes
56218else
56219  echo "$as_me: failed program was:" >&5
56220sed 's/^/| /' conftest.$ac_ext >&5
56221
56222  ac_header_preproc=no
56223fi
56224
56225rm -f conftest.err conftest.$ac_ext
56226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56227echo "${ECHO_T}$ac_header_preproc" >&6; }
56228
56229# So?  What about this header?
56230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56231  yes:no: )
56232    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56234    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56236    ac_header_preproc=yes
56237    ;;
56238  no:yes:* )
56239    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56241    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56242echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56243    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56245    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56246echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56247    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56249    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56251
56252    ;;
56253esac
56254{ echo "$as_me:$LINENO: checking for $ac_header" >&5
56255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
56256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56257  echo $ECHO_N "(cached) $ECHO_C" >&6
56258else
56259  eval "$as_ac_Header=\$ac_header_preproc"
56260fi
56261ac_res=`eval echo '${'$as_ac_Header'}'`
56262	       { echo "$as_me:$LINENO: result: $ac_res" >&5
56263echo "${ECHO_T}$ac_res" >&6; }
56264
56265fi
56266if test `eval echo '${'$as_ac_Header'}'` = yes; then
56267  cat >>confdefs.h <<_ACEOF
56268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56269_ACEOF
56270
56271fi
56272
56273done
56274
56275
56276  if test x"$ac_cv_header_uuid_uuid_h" != x"yes"; then
56277	if test x"$with_dnsupdate_support" = x"yes"; then
56278	 { { echo "$as_me:$LINENO: error: uuid.h is needed to enable DNS Updates support" >&5
56279echo "$as_me: error: uuid.h is needed to enable DNS Updates support" >&2;}
56280   { (exit 1); exit 1; }; }
56281	else
56282	 { echo "$as_me:$LINENO: WARNING: uuid.h is needed to enable DNS Updates support" >&5
56283echo "$as_me: WARNING: uuid.h is needed to enable DNS Updates support" >&2;}
56284	fi
56285	with_dnsupdate_support=no
56286  fi
56287fi
56288
56289if test x"$with_dnsupdate_support" != x"no"; then
56290
56291  ########################################################
56292  # Now see if we can find the uuid libs in standard paths
56293  # On some systems, the uuid API is in libc, so we have to
56294  # be careful not to insert a spurious -luuid.
56295
56296  UUID_LIBS=""
56297
56298
56299for ac_func in uuid_generate
56300do
56301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56302{ echo "$as_me:$LINENO: checking for $ac_func" >&5
56303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56305  echo $ECHO_N "(cached) $ECHO_C" >&6
56306else
56307  cat >conftest.$ac_ext <<_ACEOF
56308/* confdefs.h.  */
56309_ACEOF
56310cat confdefs.h >>conftest.$ac_ext
56311cat >>conftest.$ac_ext <<_ACEOF
56312/* end confdefs.h.  */
56313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56314   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56315#define $ac_func innocuous_$ac_func
56316
56317/* System header to define __stub macros and hopefully few prototypes,
56318    which can conflict with char $ac_func (); below.
56319    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56320    <limits.h> exists even on freestanding compilers.  */
56321
56322#ifdef __STDC__
56323# include <limits.h>
56324#else
56325# include <assert.h>
56326#endif
56327
56328#undef $ac_func
56329
56330/* Override any GCC internal prototype to avoid an error.
56331   Use char because int might match the return type of a GCC
56332   builtin and then its argument prototype would still apply.  */
56333#ifdef __cplusplus
56334extern "C"
56335#endif
56336char $ac_func ();
56337/* The GNU C library defines this for functions which it implements
56338    to always fail with ENOSYS.  Some functions are actually named
56339    something starting with __ and the normal name is an alias.  */
56340#if defined __stub_$ac_func || defined __stub___$ac_func
56341choke me
56342#endif
56343
56344int
56345main ()
56346{
56347return $ac_func ();
56348  ;
56349  return 0;
56350}
56351_ACEOF
56352rm -f conftest.$ac_objext conftest$ac_exeext
56353if { (ac_try="$ac_link"
56354case "(($ac_try" in
56355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56356  *) ac_try_echo=$ac_try;;
56357esac
56358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56359  (eval "$ac_link") 2>conftest.er1
56360  ac_status=$?
56361  grep -v '^ *+' conftest.er1 >conftest.err
56362  rm -f conftest.er1
56363  cat conftest.err >&5
56364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56365  (exit $ac_status); } && {
56366	 test -z "$ac_c_werror_flag" ||
56367	 test ! -s conftest.err
56368       } && test -s conftest$ac_exeext &&
56369       $as_test_x conftest$ac_exeext; then
56370  eval "$as_ac_var=yes"
56371else
56372  echo "$as_me: failed program was:" >&5
56373sed 's/^/| /' conftest.$ac_ext >&5
56374
56375	eval "$as_ac_var=no"
56376fi
56377
56378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56379      conftest$ac_exeext conftest.$ac_ext
56380fi
56381ac_res=`eval echo '${'$as_ac_var'}'`
56382	       { echo "$as_me:$LINENO: result: $ac_res" >&5
56383echo "${ECHO_T}$ac_res" >&6; }
56384if test `eval echo '${'$as_ac_var'}'` = yes; then
56385  cat >>confdefs.h <<_ACEOF
56386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56387_ACEOF
56388
56389        # uuid_generate was found in libc or existing $LIBS
56390
56391
56392	    case " $LIBS " in
56393		*\ -luuid\ *)
56394		UUID_LIBS="-luuid"
56395
56396    LIBS=`echo $LIBS | sed '-es/-luuid//g'`
56397
56398		;;
56399	    esac
56400
56401	    with_dnsupdate_support=yes
56402
56403cat >>confdefs.h <<\_ACEOF
56404#define WITH_DNS_UPDATES 1
56405_ACEOF
56406
56407
56408
56409
56410else
56411
56412        # uuid_generate was not found, try adding libuuid
56413	case " $LIBS " in
56414          *\ -luuid\ *)
56415
56416
56417	    if test x"$with_dnsupdate_support" = x"yes"; then
56418		{ { echo "$as_me:$LINENO: error: libuuid is needed to enable DNS Updates support" >&5
56419echo "$as_me: error: libuuid is needed to enable DNS Updates support" >&2;}
56420   { (exit 1); exit 1; }; }
56421	    else
56422		{ echo "$as_me:$LINENO: WARNING: libuuid is needed to enable DNS Updates support" >&5
56423echo "$as_me: WARNING: libuuid is needed to enable DNS Updates support" >&2;}
56424	    fi
56425	    with_dnsupdate_support=no
56426
56427
56428	    ;;
56429          *)
56430	    # uuid_generate was not found, try adding libuuid
56431	    { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
56432echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
56433if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
56434  echo $ECHO_N "(cached) $ECHO_C" >&6
56435else
56436  ac_check_lib_save_LIBS=$LIBS
56437LIBS="-luuid  $LIBS"
56438cat >conftest.$ac_ext <<_ACEOF
56439/* confdefs.h.  */
56440_ACEOF
56441cat confdefs.h >>conftest.$ac_ext
56442cat >>conftest.$ac_ext <<_ACEOF
56443/* end confdefs.h.  */
56444
56445/* Override any GCC internal prototype to avoid an error.
56446   Use char because int might match the return type of a GCC
56447   builtin and then its argument prototype would still apply.  */
56448#ifdef __cplusplus
56449extern "C"
56450#endif
56451char uuid_generate ();
56452int
56453main ()
56454{
56455return uuid_generate ();
56456  ;
56457  return 0;
56458}
56459_ACEOF
56460rm -f conftest.$ac_objext conftest$ac_exeext
56461if { (ac_try="$ac_link"
56462case "(($ac_try" in
56463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56464  *) ac_try_echo=$ac_try;;
56465esac
56466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56467  (eval "$ac_link") 2>conftest.er1
56468  ac_status=$?
56469  grep -v '^ *+' conftest.er1 >conftest.err
56470  rm -f conftest.er1
56471  cat conftest.err >&5
56472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56473  (exit $ac_status); } && {
56474	 test -z "$ac_c_werror_flag" ||
56475	 test ! -s conftest.err
56476       } && test -s conftest$ac_exeext &&
56477       $as_test_x conftest$ac_exeext; then
56478  ac_cv_lib_uuid_uuid_generate=yes
56479else
56480  echo "$as_me: failed program was:" >&5
56481sed 's/^/| /' conftest.$ac_ext >&5
56482
56483	ac_cv_lib_uuid_uuid_generate=no
56484fi
56485
56486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56487      conftest$ac_exeext conftest.$ac_ext
56488LIBS=$ac_check_lib_save_LIBS
56489fi
56490{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
56491echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
56492if test $ac_cv_lib_uuid_uuid_generate = yes; then
56493
56494		LIBS="-luuid $LIBS"
56495
56496
56497	    case " $LIBS " in
56498		*\ -luuid\ *)
56499		UUID_LIBS="-luuid"
56500
56501    LIBS=`echo $LIBS | sed '-es/-luuid//g'`
56502
56503		;;
56504	    esac
56505
56506	    with_dnsupdate_support=yes
56507
56508cat >>confdefs.h <<\_ACEOF
56509#define WITH_DNS_UPDATES 1
56510_ACEOF
56511
56512
56513
56514
56515else
56516
56517
56518
56519	    if test x"$with_dnsupdate_support" = x"yes"; then
56520		{ { echo "$as_me:$LINENO: error: libuuid is needed to enable DNS Updates support" >&5
56521echo "$as_me: error: libuuid is needed to enable DNS Updates support" >&2;}
56522   { (exit 1); exit 1; }; }
56523	    else
56524		{ echo "$as_me:$LINENO: WARNING: libuuid is needed to enable DNS Updates support" >&5
56525echo "$as_me: WARNING: libuuid is needed to enable DNS Updates support" >&2;}
56526	    fi
56527	    with_dnsupdate_support=no
56528
56529
56530
56531fi
56532
56533	  ;;
56534        esac
56535
56536fi
56537done
56538
56539
56540fi
56541
56542#################################################
56543# check for automount support
56544{ echo "$as_me:$LINENO: checking whether to use automount" >&5
56545echo $ECHO_N "checking whether to use automount... $ECHO_C" >&6; }
56546
56547# Check whether --with-automount was given.
56548if test "${with_automount+set}" = set; then
56549  withval=$with_automount;  case "$withval" in
56550  yes)
56551    { echo "$as_me:$LINENO: result: yes" >&5
56552echo "${ECHO_T}yes" >&6; }
56553
56554cat >>confdefs.h <<\_ACEOF
56555#define WITH_AUTOMOUNT 1
56556_ACEOF
56557
56558    ;;
56559  *)
56560    { echo "$as_me:$LINENO: result: no" >&5
56561echo "${ECHO_T}no" >&6; }
56562    ;;
56563  esac
56564else
56565  { echo "$as_me:$LINENO: result: no" >&5
56566echo "${ECHO_T}no" >&6; }
56567
56568fi
56569
56570
56571#################################################
56572# check for smbmount support
56573{ echo "$as_me:$LINENO: checking whether to use smbmount" >&5
56574echo $ECHO_N "checking whether to use smbmount... $ECHO_C" >&6; }
56575
56576# Check whether --with-smbmount was given.
56577if test "${with_smbmount+set}" = set; then
56578  withval=$with_smbmount;  case "$withval" in
56579  yes)
56580	case "$host_os" in
56581	*linux*)
56582		{ echo "$as_me:$LINENO: result: yes" >&5
56583echo "${ECHO_T}yes" >&6; }
56584
56585cat >>confdefs.h <<\_ACEOF
56586#define WITH_SMBMOUNT 1
56587_ACEOF
56588
56589		SMBMOUNT_PROGS="bin/smbmount bin/smbmnt bin/smbumount"
56590		;;
56591	*)
56592		{ { echo "$as_me:$LINENO: error: not on a linux system!" >&5
56593echo "$as_me: error: not on a linux system!" >&2;}
56594   { (exit 1); exit 1; }; }
56595		;;
56596	esac
56597    ;;
56598  *)
56599    { echo "$as_me:$LINENO: result: no" >&5
56600echo "${ECHO_T}no" >&6; }
56601    ;;
56602  esac
56603else
56604  { echo "$as_me:$LINENO: result: no" >&5
56605echo "${ECHO_T}no" >&6; }
56606
56607fi
56608
56609
56610#################################################
56611# check for mount- and umount.cifs support
56612CIFSMOUNT_PROGS=""
56613INSTALL_CIFSMOUNT=""
56614UNINSTALL_CIFSMOUNT=""
56615{ echo "$as_me:$LINENO: checking whether to build mount.cifs and umount.cifs" >&5
56616echo $ECHO_N "checking whether to build mount.cifs and umount.cifs... $ECHO_C" >&6; }
56617
56618# Check whether --with-cifsmount was given.
56619if test "${with_cifsmount+set}" = set; then
56620  withval=$with_cifsmount;  case "$withval" in
56621  no)
56622	{ echo "$as_me:$LINENO: result: no" >&5
56623echo "${ECHO_T}no" >&6; }
56624	;;
56625  *)
56626	case "$host_os" in
56627	*linux*)
56628		{ echo "$as_me:$LINENO: result: yes" >&5
56629echo "${ECHO_T}yes" >&6; }
56630
56631cat >>confdefs.h <<\_ACEOF
56632#define WITH_CIFSMOUNT 1
56633_ACEOF
56634
56635		CIFSMOUNT_PROGS="bin/mount.cifs bin/umount.cifs"
56636		INSTALL_CIFSMOUNT="installcifsmount"
56637		UNINSTALL_CIFSMOUNT="uninstallcifsmount"
56638		;;
56639	*)
56640		{ { echo "$as_me:$LINENO: error: not on a linux system!" >&5
56641echo "$as_me: error: not on a linux system!" >&2;}
56642   { (exit 1); exit 1; }; }
56643		;;
56644	esac
56645    ;;
56646  esac
56647else
56648   case "$host_os" in
56649  *linux*)
56650	{ echo "$as_me:$LINENO: result: yes" >&5
56651echo "${ECHO_T}yes" >&6; }
56652
56653cat >>confdefs.h <<\_ACEOF
56654#define WITH_CIFSMOUNT 1
56655_ACEOF
56656
56657	CIFSMOUNT_PROGS="bin/mount.cifs bin/umount.cifs"
56658	INSTALL_CIFSMOUNT="installcifsmount"
56659	UNINSTALL_CIFSMOUNT="uninstallcifsmount"
56660	;;
56661  *)
56662	{ echo "$as_me:$LINENO: result: no" >&5
56663echo "${ECHO_T}no" >&6; }
56664	;;
56665  esac
56666
56667fi
56668
56669
56670
56671#################################################
56672# check for a PAM clear-text auth, accounts, password and session support
56673with_pam_for_crypt=no
56674try_pam=no
56675{ echo "$as_me:$LINENO: checking whether to try PAM support" >&5
56676echo $ECHO_N "checking whether to try PAM support... $ECHO_C" >&6; }
56677
56678# Check whether --with-pam was given.
56679if test "${with_pam+set}" = set; then
56680  withval=$with_pam;  case "$withval" in
56681  yes|no)
56682    try_pam=$withval
56683    ;;
56684  esac
56685
56686fi
56687
56688{ echo "$as_me:$LINENO: result: $try_pam" >&5
56689echo "${ECHO_T}$try_pam" >&6; }
56690
56691use_pam=no
56692create_pam_modules=no
56693if test x"${try_pam}" != x"no";then
56694	use_pam=yes
56695	create_pam_modules=yes
56696
56697
56698for ac_header in security/pam_appl.h
56699do
56700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56702  { echo "$as_me:$LINENO: checking for $ac_header" >&5
56703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
56704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56705  echo $ECHO_N "(cached) $ECHO_C" >&6
56706fi
56707ac_res=`eval echo '${'$as_ac_Header'}'`
56708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
56709echo "${ECHO_T}$ac_res" >&6; }
56710else
56711  # Is the header compilable?
56712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
56713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
56714cat >conftest.$ac_ext <<_ACEOF
56715/* confdefs.h.  */
56716_ACEOF
56717cat confdefs.h >>conftest.$ac_ext
56718cat >>conftest.$ac_ext <<_ACEOF
56719/* end confdefs.h.  */
56720$ac_includes_default
56721#include <$ac_header>
56722_ACEOF
56723rm -f conftest.$ac_objext
56724if { (ac_try="$ac_compile"
56725case "(($ac_try" in
56726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56727  *) ac_try_echo=$ac_try;;
56728esac
56729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56730  (eval "$ac_compile") 2>conftest.er1
56731  ac_status=$?
56732  grep -v '^ *+' conftest.er1 >conftest.err
56733  rm -f conftest.er1
56734  cat conftest.err >&5
56735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56736  (exit $ac_status); } && {
56737	 test -z "$ac_c_werror_flag" ||
56738	 test ! -s conftest.err
56739       } && test -s conftest.$ac_objext; then
56740  ac_header_compiler=yes
56741else
56742  echo "$as_me: failed program was:" >&5
56743sed 's/^/| /' conftest.$ac_ext >&5
56744
56745	ac_header_compiler=no
56746fi
56747
56748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56750echo "${ECHO_T}$ac_header_compiler" >&6; }
56751
56752# Is the header present?
56753{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
56754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
56755cat >conftest.$ac_ext <<_ACEOF
56756/* confdefs.h.  */
56757_ACEOF
56758cat confdefs.h >>conftest.$ac_ext
56759cat >>conftest.$ac_ext <<_ACEOF
56760/* end confdefs.h.  */
56761#include <$ac_header>
56762_ACEOF
56763if { (ac_try="$ac_cpp conftest.$ac_ext"
56764case "(($ac_try" in
56765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56766  *) ac_try_echo=$ac_try;;
56767esac
56768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56769  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
56770  ac_status=$?
56771  grep -v '^ *+' conftest.er1 >conftest.err
56772  rm -f conftest.er1
56773  cat conftest.err >&5
56774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56775  (exit $ac_status); } >/dev/null && {
56776	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
56777	 test ! -s conftest.err
56778       }; then
56779  ac_header_preproc=yes
56780else
56781  echo "$as_me: failed program was:" >&5
56782sed 's/^/| /' conftest.$ac_ext >&5
56783
56784  ac_header_preproc=no
56785fi
56786
56787rm -f conftest.err conftest.$ac_ext
56788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56789echo "${ECHO_T}$ac_header_preproc" >&6; }
56790
56791# So?  What about this header?
56792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56793  yes:no: )
56794    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56796    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56798    ac_header_preproc=yes
56799    ;;
56800  no:yes:* )
56801    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56803    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56804echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56805    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56807    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56808echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56809    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56811    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56813
56814    ;;
56815esac
56816{ echo "$as_me:$LINENO: checking for $ac_header" >&5
56817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
56818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56819  echo $ECHO_N "(cached) $ECHO_C" >&6
56820else
56821  eval "$as_ac_Header=\$ac_header_preproc"
56822fi
56823ac_res=`eval echo '${'$as_ac_Header'}'`
56824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
56825echo "${ECHO_T}$ac_res" >&6; }
56826
56827fi
56828if test `eval echo '${'$as_ac_Header'}'` = yes; then
56829  cat >>confdefs.h <<_ACEOF
56830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56831_ACEOF
56832
56833fi
56834
56835done
56836
56837	if test x"$ac_cv_header_security_pam_appl_h" != x"yes"; then
56838		if test x"${try_pam}" = x"yes";then
56839			{ { echo "$as_me:$LINENO: error: --with-pam=yes but security/pam_appl.h not found" >&5
56840echo "$as_me: error: --with-pam=yes but security/pam_appl.h not found" >&2;}
56841   { (exit 1); exit 1; }; }
56842		fi
56843		use_pam=no
56844		create_pam_modules=no
56845	fi
56846
56847
56848
56849
56850ac_check_lib_ext_save_LIBS=$LIBS
56851LIBS="-lpam $PAM_LIBS  $LIBS"
56852
56853
56854
56855
56856        { echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
56857echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6; }
56858if test "${ac_cv_lib_ext_pam_pam_get_data+set}" = set; then
56859  echo $ECHO_N "(cached) $ECHO_C" >&6
56860else
56861  cat >conftest.$ac_ext <<_ACEOF
56862/* confdefs.h.  */
56863_ACEOF
56864cat confdefs.h >>conftest.$ac_ext
56865cat >>conftest.$ac_ext <<_ACEOF
56866/* end confdefs.h.  */
56867
56868/* Override any GCC internal prototype to avoid an error.
56869   Use char because int might match the return type of a GCC
56870   builtin and then its argument prototype would still apply.  */
56871#ifdef __cplusplus
56872extern "C"
56873#endif
56874char pam_get_data ();
56875int
56876main ()
56877{
56878return pam_get_data ();
56879  ;
56880  return 0;
56881}
56882_ACEOF
56883rm -f conftest.$ac_objext conftest$ac_exeext
56884if { (ac_try="$ac_link"
56885case "(($ac_try" in
56886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56887  *) ac_try_echo=$ac_try;;
56888esac
56889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56890  (eval "$ac_link") 2>conftest.er1
56891  ac_status=$?
56892  grep -v '^ *+' conftest.er1 >conftest.err
56893  rm -f conftest.er1
56894  cat conftest.err >&5
56895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56896  (exit $ac_status); } && {
56897	 test -z "$ac_c_werror_flag" ||
56898	 test ! -s conftest.err
56899       } && test -s conftest$ac_exeext &&
56900       $as_test_x conftest$ac_exeext; then
56901  ac_cv_lib_ext_pam_pam_get_data=yes;
56902		  ac_cv_lib_ext_pam=yes
56903else
56904  echo "$as_me: failed program was:" >&5
56905sed 's/^/| /' conftest.$ac_ext >&5
56906
56907	ac_cv_lib_ext_pam_pam_get_data=no;
56908		  ac_cv_lib_ext_pam=no
56909fi
56910
56911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56912      conftest$ac_exeext conftest.$ac_ext
56913
56914fi
56915{ echo "$as_me:$LINENO: result: $ac_cv_lib_ext_pam_pam_get_data" >&5
56916echo "${ECHO_T}$ac_cv_lib_ext_pam_pam_get_data" >&6; }
56917    if test $ac_cv_lib_ext_pam_pam_get_data = yes; then
56918  cat >>confdefs.h <<_ACEOF
56919#define HAVE_PAM_GET_DATA 1
56920_ACEOF
56921
56922fi
56923
56924LIBS=$ac_check_lib_ext_save_LIBS
56925
56926if test $ac_cv_lib_ext_pam = yes; then
56927  cat >>confdefs.h <<_ACEOF
56928#define HAVE_LIBPAM 1
56929_ACEOF
56930
56931		case "$PAM_LIBS" in
56932		    *-lpam*)
56933			;;
56934		    *)
56935			PAM_LIBS="-lpam $PAM_LIBS"
56936			;;
56937		esac
56938
56939
56940fi
56941
56942	if test x"$ac_cv_lib_ext_pam_pam_get_data" != x"yes"; then
56943		if test x"${try_pam}" = x"yes";then
56944			{ { echo "$as_me:$LINENO: error: --with-pam=yes but libpam not found" >&5
56945echo "$as_me: error: --with-pam=yes but libpam not found" >&2;}
56946   { (exit 1); exit 1; }; }
56947		fi
56948		use_pam=no
56949		create_pam_modules=no
56950	fi
56951
56952
56953for ac_header in security/pam_modules.h
56954do
56955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56956{ echo "$as_me:$LINENO: checking for $ac_header" >&5
56957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
56958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56959  echo $ECHO_N "(cached) $ECHO_C" >&6
56960else
56961  cat >conftest.$ac_ext <<_ACEOF
56962/* confdefs.h.  */
56963_ACEOF
56964cat confdefs.h >>conftest.$ac_ext
56965cat >>conftest.$ac_ext <<_ACEOF
56966/* end confdefs.h.  */
56967
56968		#if HAVE_SECURITY_PAM_APPL_H
56969		#include <security/pam_appl.h>
56970		#endif
56971
56972
56973#include <$ac_header>
56974_ACEOF
56975rm -f conftest.$ac_objext
56976if { (ac_try="$ac_compile"
56977case "(($ac_try" in
56978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56979  *) ac_try_echo=$ac_try;;
56980esac
56981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56982  (eval "$ac_compile") 2>conftest.er1
56983  ac_status=$?
56984  grep -v '^ *+' conftest.er1 >conftest.err
56985  rm -f conftest.er1
56986  cat conftest.err >&5
56987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
56988  (exit $ac_status); } && {
56989	 test -z "$ac_c_werror_flag" ||
56990	 test ! -s conftest.err
56991       } && test -s conftest.$ac_objext; then
56992  eval "$as_ac_Header=yes"
56993else
56994  echo "$as_me: failed program was:" >&5
56995sed 's/^/| /' conftest.$ac_ext >&5
56996
56997	eval "$as_ac_Header=no"
56998fi
56999
57000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57001fi
57002ac_res=`eval echo '${'$as_ac_Header'}'`
57003	       { echo "$as_me:$LINENO: result: $ac_res" >&5
57004echo "${ECHO_T}$ac_res" >&6; }
57005if test `eval echo '${'$as_ac_Header'}'` = yes; then
57006  cat >>confdefs.h <<_ACEOF
57007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57008_ACEOF
57009
57010fi
57011
57012done
57013
57014       if test x"$ac_cv_header_security_pam_modules_h" = x"no"; then
57015		if test x"${try_pam}" = x"yes";then
57016			{ { echo "$as_me:$LINENO: error: --with-pam=yes but security/pam_modules.h not found" >&5
57017echo "$as_me: error: --with-pam=yes but security/pam_modules.h not found" >&2;}
57018   { (exit 1); exit 1; }; }
57019       fi
57020		create_pam_modules=no
57021    fi
57022
57023	if test x"$use_pam" = x"yes"; then
57024
57025cat >>confdefs.h <<\_ACEOF
57026#define WITH_PAM 1
57027_ACEOF
57028
57029
57030cat >>confdefs.h <<\_ACEOF
57031#define HAVE_LIBPAM 1
57032_ACEOF
57033
57034		AUTH_LIBS="$AUTH_LIBS $PAM_LIBS"
57035    with_pam_for_crypt=yes
57036
57037		if test x"$create_pam_modules" = x"yes"; then
57038
57039cat >>confdefs.h <<\_ACEOF
57040#define WITH_PAM_MODULES 1
57041_ACEOF
57042
57043			# this checks are optional,
57044			# we don't care about the results here
57045
57046
57047for ac_header in security/pam_ext.h security/_pam_macros.h
57048do
57049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57051  { echo "$as_me:$LINENO: checking for $ac_header" >&5
57052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
57053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57054  echo $ECHO_N "(cached) $ECHO_C" >&6
57055fi
57056ac_res=`eval echo '${'$as_ac_Header'}'`
57057	       { echo "$as_me:$LINENO: result: $ac_res" >&5
57058echo "${ECHO_T}$ac_res" >&6; }
57059else
57060  # Is the header compilable?
57061{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
57062echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
57063cat >conftest.$ac_ext <<_ACEOF
57064/* confdefs.h.  */
57065_ACEOF
57066cat confdefs.h >>conftest.$ac_ext
57067cat >>conftest.$ac_ext <<_ACEOF
57068/* end confdefs.h.  */
57069$ac_includes_default
57070#include <$ac_header>
57071_ACEOF
57072rm -f conftest.$ac_objext
57073if { (ac_try="$ac_compile"
57074case "(($ac_try" in
57075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57076  *) ac_try_echo=$ac_try;;
57077esac
57078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57079  (eval "$ac_compile") 2>conftest.er1
57080  ac_status=$?
57081  grep -v '^ *+' conftest.er1 >conftest.err
57082  rm -f conftest.er1
57083  cat conftest.err >&5
57084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57085  (exit $ac_status); } && {
57086	 test -z "$ac_c_werror_flag" ||
57087	 test ! -s conftest.err
57088       } && test -s conftest.$ac_objext; then
57089  ac_header_compiler=yes
57090else
57091  echo "$as_me: failed program was:" >&5
57092sed 's/^/| /' conftest.$ac_ext >&5
57093
57094	ac_header_compiler=no
57095fi
57096
57097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57098{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57099echo "${ECHO_T}$ac_header_compiler" >&6; }
57100
57101# Is the header present?
57102{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
57103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
57104cat >conftest.$ac_ext <<_ACEOF
57105/* confdefs.h.  */
57106_ACEOF
57107cat confdefs.h >>conftest.$ac_ext
57108cat >>conftest.$ac_ext <<_ACEOF
57109/* end confdefs.h.  */
57110#include <$ac_header>
57111_ACEOF
57112if { (ac_try="$ac_cpp conftest.$ac_ext"
57113case "(($ac_try" in
57114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57115  *) ac_try_echo=$ac_try;;
57116esac
57117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57118  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57119  ac_status=$?
57120  grep -v '^ *+' conftest.er1 >conftest.err
57121  rm -f conftest.er1
57122  cat conftest.err >&5
57123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57124  (exit $ac_status); } >/dev/null && {
57125	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57126	 test ! -s conftest.err
57127       }; then
57128  ac_header_preproc=yes
57129else
57130  echo "$as_me: failed program was:" >&5
57131sed 's/^/| /' conftest.$ac_ext >&5
57132
57133  ac_header_preproc=no
57134fi
57135
57136rm -f conftest.err conftest.$ac_ext
57137{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57138echo "${ECHO_T}$ac_header_preproc" >&6; }
57139
57140# So?  What about this header?
57141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57142  yes:no: )
57143    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57144echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57145    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57146echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57147    ac_header_preproc=yes
57148    ;;
57149  no:yes:* )
57150    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57152    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57153echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57154    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57155echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57156    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57157echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57158    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57160    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57161echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57162
57163    ;;
57164esac
57165{ echo "$as_me:$LINENO: checking for $ac_header" >&5
57166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
57167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57168  echo $ECHO_N "(cached) $ECHO_C" >&6
57169else
57170  eval "$as_ac_Header=\$ac_header_preproc"
57171fi
57172ac_res=`eval echo '${'$as_ac_Header'}'`
57173	       { echo "$as_me:$LINENO: result: $ac_res" >&5
57174echo "${ECHO_T}$ac_res" >&6; }
57175
57176fi
57177if test `eval echo '${'$as_ac_Header'}'` = yes; then
57178  cat >>confdefs.h <<_ACEOF
57179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57180_ACEOF
57181
57182fi
57183
57184done
57185
57186
57187
57188
57189    ac_check_func_ext_save_LIBS=$LIBS
57190    LIBS="$PAM_LIBS $LIBS"
57191        { echo "$as_me:$LINENO: checking for pam_vsyslog" >&5
57192echo $ECHO_N "checking for pam_vsyslog... $ECHO_C" >&6; }
57193if test "${ac_cv_func_ext_pam_vsyslog+set}" = set; then
57194  echo $ECHO_N "(cached) $ECHO_C" >&6
57195else
57196  cat >conftest.$ac_ext <<_ACEOF
57197/* confdefs.h.  */
57198_ACEOF
57199cat confdefs.h >>conftest.$ac_ext
57200cat >>conftest.$ac_ext <<_ACEOF
57201/* end confdefs.h.  */
57202/* Define pam_vsyslog to an innocuous variant, in case <limits.h> declares pam_vsyslog.
57203   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57204#define pam_vsyslog innocuous_pam_vsyslog
57205
57206/* System header to define __stub macros and hopefully few prototypes,
57207    which can conflict with char pam_vsyslog (); below.
57208    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57209    <limits.h> exists even on freestanding compilers.  */
57210
57211#ifdef __STDC__
57212# include <limits.h>
57213#else
57214# include <assert.h>
57215#endif
57216
57217#undef pam_vsyslog
57218
57219/* Override any GCC internal prototype to avoid an error.
57220   Use char because int might match the return type of a GCC
57221   builtin and then its argument prototype would still apply.  */
57222#ifdef __cplusplus
57223extern "C"
57224#endif
57225char pam_vsyslog ();
57226/* The GNU C library defines this for functions which it implements
57227    to always fail with ENOSYS.  Some functions are actually named
57228    something starting with __ and the normal name is an alias.  */
57229#if defined __stub_pam_vsyslog || defined __stub___pam_vsyslog
57230choke me
57231#endif
57232
57233int
57234main ()
57235{
57236return pam_vsyslog ();
57237  ;
57238  return 0;
57239}
57240_ACEOF
57241rm -f conftest.$ac_objext conftest$ac_exeext
57242if { (ac_try="$ac_link"
57243case "(($ac_try" in
57244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57245  *) ac_try_echo=$ac_try;;
57246esac
57247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57248  (eval "$ac_link") 2>conftest.er1
57249  ac_status=$?
57250  grep -v '^ *+' conftest.er1 >conftest.err
57251  rm -f conftest.er1
57252  cat conftest.err >&5
57253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57254  (exit $ac_status); } && {
57255	 test -z "$ac_c_werror_flag" ||
57256	 test ! -s conftest.err
57257       } && test -s conftest$ac_exeext &&
57258       $as_test_x conftest$ac_exeext; then
57259  ac_cv_func_ext_pam_vsyslog=yes
57260else
57261  echo "$as_me: failed program was:" >&5
57262sed 's/^/| /' conftest.$ac_ext >&5
57263
57264	ac_cv_func_ext_pam_vsyslog=no
57265fi
57266
57267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57268      conftest$ac_exeext conftest.$ac_ext
57269fi
57270{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_pam_vsyslog" >&5
57271echo "${ECHO_T}$ac_cv_func_ext_pam_vsyslog" >&6; }
57272    LIBS=$ac_check_func_ext_save_LIBS
57273    if test $ac_cv_func_ext_pam_vsyslog = yes; then
57274  cat >>confdefs.h <<_ACEOF
57275#define HAVE_PAM_VSYSLOG 1
57276_ACEOF
57277
57278fi
57279
57280		else
57281			{ echo "$as_me:$LINENO: WARNING: PAM support detected but PAM MODULES support is missing" >&5
57282echo "$as_me: WARNING: PAM support detected but PAM MODULES support is missing" >&2;}
57283		fi
57284	fi
57285	{ echo "$as_me:$LINENO: checking whether to use PAM support" >&5
57286echo $ECHO_N "checking whether to use PAM support... $ECHO_C" >&6; }
57287	{ echo "$as_me:$LINENO: result: $use_pam" >&5
57288echo "${ECHO_T}$use_pam" >&6; }
57289
57290	{ echo "$as_me:$LINENO: checking whether to have PAM MODULES support" >&5
57291echo $ECHO_N "checking whether to have PAM MODULES support... $ECHO_C" >&6; }
57292	{ echo "$as_me:$LINENO: result: $create_pam_modules" >&5
57293echo "${ECHO_T}$create_pam_modules" >&6; }
57294fi # try_pam != no
57295
57296#################################################
57297# check for pam_smbpass support
57298PAM_MODULES=""
57299INSTALL_PAM_MODULES=""
57300UNINSTALL_PAM_MODULES=""
57301{ echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
57302echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6; }
57303
57304# Check whether --with-pam_smbpass was given.
57305if test "${with_pam_smbpass+set}" = set; then
57306  withval=$with_pam_smbpass;  case "$withval" in
57307  yes)
57308    { echo "$as_me:$LINENO: result: yes" >&5
57309echo "${ECHO_T}yes" >&6; }
57310
57311       # Conditions under which pam_smbpass should not be built.
57312
57313       if test x"$BLDSHARED" != x"true"; then
57314          { { echo "$as_me:$LINENO: error: No support for shared modules" >&5
57315echo "$as_me: error: No support for shared modules" >&2;}
57316   { (exit 1); exit 1; }; }
57317       elif test x"$create_pam_modules" != x"yes"; then
57318	  { { echo "$as_me:$LINENO: error: No support for PAM MODULES" >&5
57319echo "$as_me: error: No support for PAM MODULES" >&2;}
57320   { (exit 1); exit 1; }; }
57321       else
57322          PAM_MODULES="pam_smbpass"
57323          INSTALL_PAM_MODULES="installpammodules"
57324          UNINSTALL_PAM_MODULES="uninstallpammodules"
57325       fi
57326    ;;
57327  *)
57328    { echo "$as_me:$LINENO: result: no" >&5
57329echo "${ECHO_T}no" >&6; }
57330    ;;
57331  esac
57332else
57333  { echo "$as_me:$LINENO: result: no" >&5
57334echo "${ECHO_T}no" >&6; }
57335
57336fi
57337
57338
57339
57340###############################################
57341# test for where we get crypt() from
57342{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
57343echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
57344if test "${ac_cv_search_crypt+set}" = set; then
57345  echo $ECHO_N "(cached) $ECHO_C" >&6
57346else
57347  ac_func_search_save_LIBS=$LIBS
57348cat >conftest.$ac_ext <<_ACEOF
57349/* confdefs.h.  */
57350_ACEOF
57351cat confdefs.h >>conftest.$ac_ext
57352cat >>conftest.$ac_ext <<_ACEOF
57353/* end confdefs.h.  */
57354
57355/* Override any GCC internal prototype to avoid an error.
57356   Use char because int might match the return type of a GCC
57357   builtin and then its argument prototype would still apply.  */
57358#ifdef __cplusplus
57359extern "C"
57360#endif
57361char crypt ();
57362int
57363main ()
57364{
57365return crypt ();
57366  ;
57367  return 0;
57368}
57369_ACEOF
57370for ac_lib in '' crypt; do
57371  if test -z "$ac_lib"; then
57372    ac_res="none required"
57373  else
57374    ac_res=-l$ac_lib
57375    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
57376  fi
57377  rm -f conftest.$ac_objext conftest$ac_exeext
57378if { (ac_try="$ac_link"
57379case "(($ac_try" in
57380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57381  *) ac_try_echo=$ac_try;;
57382esac
57383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57384  (eval "$ac_link") 2>conftest.er1
57385  ac_status=$?
57386  grep -v '^ *+' conftest.er1 >conftest.err
57387  rm -f conftest.er1
57388  cat conftest.err >&5
57389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57390  (exit $ac_status); } && {
57391	 test -z "$ac_c_werror_flag" ||
57392	 test ! -s conftest.err
57393       } && test -s conftest$ac_exeext &&
57394       $as_test_x conftest$ac_exeext; then
57395  ac_cv_search_crypt=$ac_res
57396else
57397  echo "$as_me: failed program was:" >&5
57398sed 's/^/| /' conftest.$ac_ext >&5
57399
57400
57401fi
57402
57403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57404      conftest$ac_exeext
57405  if test "${ac_cv_search_crypt+set}" = set; then
57406  break
57407fi
57408done
57409if test "${ac_cv_search_crypt+set}" = set; then
57410  :
57411else
57412  ac_cv_search_crypt=no
57413fi
57414rm conftest.$ac_ext
57415LIBS=$ac_func_search_save_LIBS
57416fi
57417{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
57418echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
57419ac_res=$ac_cv_search_crypt
57420if test "$ac_res" != no; then
57421  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
57422  test "$ac_cv_search_crypt" = "none required" || AUTH_LIBS="-lcrypt $AUTH_LIBS"
57423
57424cat >>confdefs.h <<\_ACEOF
57425#define HAVE_CRYPT 1
57426_ACEOF
57427
57428fi
57429
57430
57431##
57432## moved after the check for -lcrypt in order to
57433## ensure that the necessary libraries are included
57434## check checking for truncated salt.  Wrapped by the
57435## $with_pam_for_crypt variable as above   --jerry
57436##
57437if test $with_pam_for_crypt = no; then
57438{ echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
57439echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6; }
57440if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
57441  echo $ECHO_N "(cached) $ECHO_C" >&6
57442else
57443
57444crypt_LIBS="$LIBS"
57445LIBS="$AUTH_LIBS $LIBS"
57446if test "$cross_compiling" = yes; then
57447  samba_cv_HAVE_TRUNCATED_SALT=cross
57448else
57449  cat >conftest.$ac_ext <<_ACEOF
57450/* confdefs.h.  */
57451_ACEOF
57452cat confdefs.h >>conftest.$ac_ext
57453cat >>conftest.$ac_ext <<_ACEOF
57454/* end confdefs.h.  */
57455#include "${srcdir-.}/tests/crypttest.c"
57456_ACEOF
57457rm -f conftest$ac_exeext
57458if { (ac_try="$ac_link"
57459case "(($ac_try" in
57460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57461  *) ac_try_echo=$ac_try;;
57462esac
57463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57464  (eval "$ac_link") 2>&5
57465  ac_status=$?
57466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57467  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57468  { (case "(($ac_try" in
57469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57470  *) ac_try_echo=$ac_try;;
57471esac
57472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57473  (eval "$ac_try") 2>&5
57474  ac_status=$?
57475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57476  (exit $ac_status); }; }; then
57477  samba_cv_HAVE_TRUNCATED_SALT=no
57478else
57479  echo "$as_me: program exited with status $ac_status" >&5
57480echo "$as_me: failed program was:" >&5
57481sed 's/^/| /' conftest.$ac_ext >&5
57482
57483( exit $ac_status )
57484samba_cv_HAVE_TRUNCATED_SALT=yes
57485fi
57486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57487fi
57488
57489
57490LIBS="$crypt_LIBS"
57491fi
57492{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
57493echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6; }
57494if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
57495
57496cat >>confdefs.h <<\_ACEOF
57497#define HAVE_TRUNCATED_SALT 1
57498_ACEOF
57499
57500fi
57501fi
57502
57503#################################################
57504# check for a NISPLUS_HOME support
57505{ echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
57506echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6; }
57507
57508# Check whether --with-nisplus-home was given.
57509if test "${with_nisplus_home+set}" = set; then
57510  withval=$with_nisplus_home;  case "$withval" in
57511  yes)
57512    { echo "$as_me:$LINENO: result: yes" >&5
57513echo "${ECHO_T}yes" >&6; }
57514
57515cat >>confdefs.h <<\_ACEOF
57516#define WITH_NISPLUS_HOME 1
57517_ACEOF
57518
57519    ;;
57520  *)
57521    { echo "$as_me:$LINENO: result: no" >&5
57522echo "${ECHO_T}no" >&6; }
57523    ;;
57524  esac
57525else
57526  { echo "$as_me:$LINENO: result: no" >&5
57527echo "${ECHO_T}no" >&6; }
57528
57529fi
57530
57531
57532#################################################
57533# check for syslog logging
57534{ echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
57535echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6; }
57536
57537# Check whether --with-syslog was given.
57538if test "${with_syslog+set}" = set; then
57539  withval=$with_syslog;  case "$withval" in
57540  yes)
57541    { echo "$as_me:$LINENO: result: yes" >&5
57542echo "${ECHO_T}yes" >&6; }
57543
57544cat >>confdefs.h <<\_ACEOF
57545#define WITH_SYSLOG 1
57546_ACEOF
57547
57548    ;;
57549  *)
57550    { echo "$as_me:$LINENO: result: no" >&5
57551echo "${ECHO_T}no" >&6; }
57552    ;;
57553  esac
57554else
57555  { echo "$as_me:$LINENO: result: no" >&5
57556echo "${ECHO_T}no" >&6; }
57557
57558fi
57559
57560
57561#################################################
57562# check for experimental disk-quotas support
57563
57564samba_cv_WITH_QUOTAS=auto
57565samba_cv_TRY_QUOTAS=no
57566samba_cv_RUN_QUOTA_TESTS=auto
57567samba_cv_WITH_SYS_QUOTAS=auto
57568samba_cv_TRY_SYS_QUOTAS=auto
57569samba_cv_SYSQUOTA_FOUND=no
57570
57571{ echo "$as_me:$LINENO: checking whether to try disk-quotas support" >&5
57572echo $ECHO_N "checking whether to try disk-quotas support... $ECHO_C" >&6; }
57573
57574# Check whether --with-quotas was given.
57575if test "${with_quotas+set}" = set; then
57576  withval=$with_quotas;  case "$withval" in
57577  yes)
57578    { echo "$as_me:$LINENO: result: yes" >&5
57579echo "${ECHO_T}yes" >&6; }
57580    samba_cv_WITH_QUOTAS=yes
57581    samba_cv_TRY_QUOTAS=yes
57582    samba_cv_RUN_QUOTA_TESTS=yes
57583    #set sys quotas to auto in this case
57584    samba_cv_TRY_SYS_QUOTAS=auto
57585    ;;
57586  auto)
57587    { echo "$as_me:$LINENO: result: auto" >&5
57588echo "${ECHO_T}auto" >&6; }
57589    samba_cv_WITH_QUOTAS=auto
57590    samba_cv_TRY_QUOTAS=auto
57591    samba_cv_RUN_QUOTA_TESTS=auto
57592    #set sys quotas to auto in this case
57593    samba_cv_TRY_SYS_QUOTAS=auto
57594    ;;
57595  no)
57596    { echo "$as_me:$LINENO: result: no" >&5
57597echo "${ECHO_T}no" >&6; }
57598    samba_cv_WITH_QUOTAS=no
57599    samba_cv_TRY_QUOTAS=no
57600    samba_cv_RUN_QUOTA_TESTS=no
57601    ;;
57602  *)
57603    { echo "$as_me:$LINENO: result: ${samba_cv_TRY_QUOTAS}" >&5
57604echo "${ECHO_T}${samba_cv_TRY_QUOTAS}" >&6; }
57605    ;;
57606  esac
57607else
57608  { echo "$as_me:$LINENO: result: ${samba_cv_TRY_QUOTAS}" >&5
57609echo "${ECHO_T}${samba_cv_TRY_QUOTAS}" >&6; }
57610
57611fi
57612
57613
57614{ echo "$as_me:$LINENO: checking whether to try the new lib/sysquotas.c interface" >&5
57615echo $ECHO_N "checking whether to try the new lib/sysquotas.c interface... $ECHO_C" >&6; }
57616
57617# Check whether --with-sys-quotas was given.
57618if test "${with_sys_quotas+set}" = set; then
57619  withval=$with_sys_quotas;  case "$withval" in
57620  yes)
57621    { echo "$as_me:$LINENO: result: yes" >&5
57622echo "${ECHO_T}yes" >&6; }
57623    samba_cv_WITH_SYS_QUOTAS=yes
57624    samba_cv_TRY_SYS_QUOTAS=yes
57625    samba_cv_RUN_QUOTA_TESTS=yes
57626    ;;
57627  auto)
57628    { echo "$as_me:$LINENO: result: auto" >&5
57629echo "${ECHO_T}auto" >&6; }
57630    samba_cv_WITH_SYS_QUOTAS=auto
57631    samba_cv_TRY_SYS_QUOTAS=auto
57632    samba_cv_RUN_QUOTA_TESTS=auto
57633    ;;
57634  no)
57635    { echo "$as_me:$LINENO: result: no" >&5
57636echo "${ECHO_T}no" >&6; }
57637    samba_cv_WITH_SYS_QUOTAS=no
57638    samba_cv_TRY_SYS_QUOTAS=no
57639    ;;
57640  *)
57641    { echo "$as_me:$LINENO: result: ${samba_cv_TRY_SYS_QUOTAS}" >&5
57642echo "${ECHO_T}${samba_cv_TRY_SYS_QUOTAS}" >&6; }
57643    ;;
57644  esac
57645else
57646  { echo "$as_me:$LINENO: result: ${samba_cv_TRY_SYS_QUOTAS}" >&5
57647echo "${ECHO_T}${samba_cv_TRY_SYS_QUOTAS}" >&6; }
57648
57649fi
57650
57651
57652if test x"$samba_cv_TRY_SYS_QUOTAS" = x"auto"; then
57653{ echo "$as_me:$LINENO: checking whether to try the lib/sysquotas.c interface on ${host_os}" >&5
57654echo $ECHO_N "checking whether to try the lib/sysquotas.c interface on ${host_os}... $ECHO_C" >&6; }
57655  case "$host_os" in
57656	*linux*)
57657	    { echo "$as_me:$LINENO: result: yes" >&5
57658echo "${ECHO_T}yes" >&6; }
57659            samba_cv_TRY_SYS_QUOTAS=yes
57660            samba_cv_RUN_QUOTA_TESTS=yes
57661	    ;;
57662	*)
57663	    { echo "$as_me:$LINENO: result: no" >&5
57664echo "${ECHO_T}no" >&6; }
57665            samba_cv_TRY_SYS_QUOTAS=no
57666	    ;;
57667  esac
57668fi
57669
57670#############################################
57671# only check for quota stuff if --with-quotas
57672if test x"$samba_cv_RUN_QUOTA_TESTS" != x"no"; then
57673
57674case "$host_os" in
57675	# on linux we didn't need to test we have builtin support
57676	*linux*)
57677	    samba_cv_SYSQUOTA_FOUND=yes
57678
57679cat >>confdefs.h <<\_ACEOF
57680#define HAVE_QUOTACTL_LINUX 1
57681_ACEOF
57682
57683	    samba_cv_sysquotas_file="lib/sysquotas_linux.c"
57684	    { echo "$as_me:$LINENO: checking whether to use the lib/sysquotas_linux.c builtin support" >&5
57685echo $ECHO_N "checking whether to use the lib/sysquotas_linux.c builtin support... $ECHO_C" >&6; }
57686	    { echo "$as_me:$LINENO: result: yes" >&5
57687echo "${ECHO_T}yes" >&6; }
57688
57689
57690cat >>confdefs.h <<\_ACEOF
57691#define HAVE_LINUX_XFS_QUOTAS 1
57692_ACEOF
57693
57694	    samba_cv_found_xfs_header=yes
57695	    { echo "$as_me:$LINENO: checking whether to use the lib/sysquotas_xfs.c builtin support" >&5
57696echo $ECHO_N "checking whether to use the lib/sysquotas_xfs.c builtin support... $ECHO_C" >&6; }
57697	    { echo "$as_me:$LINENO: result: yes" >&5
57698echo "${ECHO_T}yes" >&6; }
57699	    ;;
57700	*solaris*)
57701	    # need to set this define when using static linking (BUG 1473)
57702	    CPPFLAGS="$CPPFLAGS -DSUNOS5"
57703	    ;;
57704	*)
57705	    ;;
57706esac
57707
57708# some broken header files need this
57709if test "${ac_cv_header_asm_types_h+set}" = set; then
57710  { echo "$as_me:$LINENO: checking for asm/types.h" >&5
57711echo $ECHO_N "checking for asm/types.h... $ECHO_C" >&6; }
57712if test "${ac_cv_header_asm_types_h+set}" = set; then
57713  echo $ECHO_N "(cached) $ECHO_C" >&6
57714fi
57715{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_types_h" >&5
57716echo "${ECHO_T}$ac_cv_header_asm_types_h" >&6; }
57717else
57718  # Is the header compilable?
57719{ echo "$as_me:$LINENO: checking asm/types.h usability" >&5
57720echo $ECHO_N "checking asm/types.h usability... $ECHO_C" >&6; }
57721cat >conftest.$ac_ext <<_ACEOF
57722/* confdefs.h.  */
57723_ACEOF
57724cat confdefs.h >>conftest.$ac_ext
57725cat >>conftest.$ac_ext <<_ACEOF
57726/* end confdefs.h.  */
57727$ac_includes_default
57728#include <asm/types.h>
57729_ACEOF
57730rm -f conftest.$ac_objext
57731if { (ac_try="$ac_compile"
57732case "(($ac_try" in
57733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57734  *) ac_try_echo=$ac_try;;
57735esac
57736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57737  (eval "$ac_compile") 2>conftest.er1
57738  ac_status=$?
57739  grep -v '^ *+' conftest.er1 >conftest.err
57740  rm -f conftest.er1
57741  cat conftest.err >&5
57742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57743  (exit $ac_status); } && {
57744	 test -z "$ac_c_werror_flag" ||
57745	 test ! -s conftest.err
57746       } && test -s conftest.$ac_objext; then
57747  ac_header_compiler=yes
57748else
57749  echo "$as_me: failed program was:" >&5
57750sed 's/^/| /' conftest.$ac_ext >&5
57751
57752	ac_header_compiler=no
57753fi
57754
57755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57757echo "${ECHO_T}$ac_header_compiler" >&6; }
57758
57759# Is the header present?
57760{ echo "$as_me:$LINENO: checking asm/types.h presence" >&5
57761echo $ECHO_N "checking asm/types.h presence... $ECHO_C" >&6; }
57762cat >conftest.$ac_ext <<_ACEOF
57763/* confdefs.h.  */
57764_ACEOF
57765cat confdefs.h >>conftest.$ac_ext
57766cat >>conftest.$ac_ext <<_ACEOF
57767/* end confdefs.h.  */
57768#include <asm/types.h>
57769_ACEOF
57770if { (ac_try="$ac_cpp conftest.$ac_ext"
57771case "(($ac_try" in
57772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57773  *) ac_try_echo=$ac_try;;
57774esac
57775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57776  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57777  ac_status=$?
57778  grep -v '^ *+' conftest.er1 >conftest.err
57779  rm -f conftest.er1
57780  cat conftest.err >&5
57781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57782  (exit $ac_status); } >/dev/null && {
57783	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57784	 test ! -s conftest.err
57785       }; then
57786  ac_header_preproc=yes
57787else
57788  echo "$as_me: failed program was:" >&5
57789sed 's/^/| /' conftest.$ac_ext >&5
57790
57791  ac_header_preproc=no
57792fi
57793
57794rm -f conftest.err conftest.$ac_ext
57795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57796echo "${ECHO_T}$ac_header_preproc" >&6; }
57797
57798# So?  What about this header?
57799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57800  yes:no: )
57801    { echo "$as_me:$LINENO: WARNING: asm/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
57802echo "$as_me: WARNING: asm/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57803    { echo "$as_me:$LINENO: WARNING: asm/types.h: proceeding with the compiler's result" >&5
57804echo "$as_me: WARNING: asm/types.h: proceeding with the compiler's result" >&2;}
57805    ac_header_preproc=yes
57806    ;;
57807  no:yes:* )
57808    { echo "$as_me:$LINENO: WARNING: asm/types.h: present but cannot be compiled" >&5
57809echo "$as_me: WARNING: asm/types.h: present but cannot be compiled" >&2;}
57810    { echo "$as_me:$LINENO: WARNING: asm/types.h:     check for missing prerequisite headers?" >&5
57811echo "$as_me: WARNING: asm/types.h:     check for missing prerequisite headers?" >&2;}
57812    { echo "$as_me:$LINENO: WARNING: asm/types.h: see the Autoconf documentation" >&5
57813echo "$as_me: WARNING: asm/types.h: see the Autoconf documentation" >&2;}
57814    { echo "$as_me:$LINENO: WARNING: asm/types.h:     section \"Present But Cannot Be Compiled\"" >&5
57815echo "$as_me: WARNING: asm/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
57816    { echo "$as_me:$LINENO: WARNING: asm/types.h: proceeding with the preprocessor's result" >&5
57817echo "$as_me: WARNING: asm/types.h: proceeding with the preprocessor's result" >&2;}
57818    { echo "$as_me:$LINENO: WARNING: asm/types.h: in the future, the compiler will take precedence" >&5
57819echo "$as_me: WARNING: asm/types.h: in the future, the compiler will take precedence" >&2;}
57820
57821    ;;
57822esac
57823{ echo "$as_me:$LINENO: checking for asm/types.h" >&5
57824echo $ECHO_N "checking for asm/types.h... $ECHO_C" >&6; }
57825if test "${ac_cv_header_asm_types_h+set}" = set; then
57826  echo $ECHO_N "(cached) $ECHO_C" >&6
57827else
57828  ac_cv_header_asm_types_h=$ac_header_preproc
57829fi
57830{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_types_h" >&5
57831echo "${ECHO_T}$ac_cv_header_asm_types_h" >&6; }
57832
57833fi
57834if test $ac_cv_header_asm_types_h = yes; then
57835
57836
57837cat >>confdefs.h <<\_ACEOF
57838#define HAVE_ASM_TYPES_H 1
57839_ACEOF
57840
57841	    cat >> confdefs.h <<\EOF
57842#include <asm/types.h>
57843EOF
57844
57845
57846fi
57847
57848
57849
57850# For quotas on Veritas VxFS filesystems
57851
57852for ac_header in sys/fs/vx_quota.h
57853do
57854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57856  { echo "$as_me:$LINENO: checking for $ac_header" >&5
57857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
57858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57859  echo $ECHO_N "(cached) $ECHO_C" >&6
57860fi
57861ac_res=`eval echo '${'$as_ac_Header'}'`
57862	       { echo "$as_me:$LINENO: result: $ac_res" >&5
57863echo "${ECHO_T}$ac_res" >&6; }
57864else
57865  # Is the header compilable?
57866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
57867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
57868cat >conftest.$ac_ext <<_ACEOF
57869/* confdefs.h.  */
57870_ACEOF
57871cat confdefs.h >>conftest.$ac_ext
57872cat >>conftest.$ac_ext <<_ACEOF
57873/* end confdefs.h.  */
57874$ac_includes_default
57875#include <$ac_header>
57876_ACEOF
57877rm -f conftest.$ac_objext
57878if { (ac_try="$ac_compile"
57879case "(($ac_try" in
57880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57881  *) ac_try_echo=$ac_try;;
57882esac
57883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57884  (eval "$ac_compile") 2>conftest.er1
57885  ac_status=$?
57886  grep -v '^ *+' conftest.er1 >conftest.err
57887  rm -f conftest.er1
57888  cat conftest.err >&5
57889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57890  (exit $ac_status); } && {
57891	 test -z "$ac_c_werror_flag" ||
57892	 test ! -s conftest.err
57893       } && test -s conftest.$ac_objext; then
57894  ac_header_compiler=yes
57895else
57896  echo "$as_me: failed program was:" >&5
57897sed 's/^/| /' conftest.$ac_ext >&5
57898
57899	ac_header_compiler=no
57900fi
57901
57902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57904echo "${ECHO_T}$ac_header_compiler" >&6; }
57905
57906# Is the header present?
57907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
57908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
57909cat >conftest.$ac_ext <<_ACEOF
57910/* confdefs.h.  */
57911_ACEOF
57912cat confdefs.h >>conftest.$ac_ext
57913cat >>conftest.$ac_ext <<_ACEOF
57914/* end confdefs.h.  */
57915#include <$ac_header>
57916_ACEOF
57917if { (ac_try="$ac_cpp conftest.$ac_ext"
57918case "(($ac_try" in
57919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57920  *) ac_try_echo=$ac_try;;
57921esac
57922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57923  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57924  ac_status=$?
57925  grep -v '^ *+' conftest.er1 >conftest.err
57926  rm -f conftest.er1
57927  cat conftest.err >&5
57928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
57929  (exit $ac_status); } >/dev/null && {
57930	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57931	 test ! -s conftest.err
57932       }; then
57933  ac_header_preproc=yes
57934else
57935  echo "$as_me: failed program was:" >&5
57936sed 's/^/| /' conftest.$ac_ext >&5
57937
57938  ac_header_preproc=no
57939fi
57940
57941rm -f conftest.err conftest.$ac_ext
57942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57943echo "${ECHO_T}$ac_header_preproc" >&6; }
57944
57945# So?  What about this header?
57946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57947  yes:no: )
57948    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57950    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57952    ac_header_preproc=yes
57953    ;;
57954  no:yes:* )
57955    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57957    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57958echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57959    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57961    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57962echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57963    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57965    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57967
57968    ;;
57969esac
57970{ echo "$as_me:$LINENO: checking for $ac_header" >&5
57971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
57972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57973  echo $ECHO_N "(cached) $ECHO_C" >&6
57974else
57975  eval "$as_ac_Header=\$ac_header_preproc"
57976fi
57977ac_res=`eval echo '${'$as_ac_Header'}'`
57978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
57979echo "${ECHO_T}$ac_res" >&6; }
57980
57981fi
57982if test `eval echo '${'$as_ac_Header'}'` = yes; then
57983  cat >>confdefs.h <<_ACEOF
57984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57985_ACEOF
57986
57987fi
57988
57989done
57990
57991
57992# For sys/quota.h and linux/quota.h
57993
57994for ac_header in sys/quota.h
57995do
57996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57998  { echo "$as_me:$LINENO: checking for $ac_header" >&5
57999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58001  echo $ECHO_N "(cached) $ECHO_C" >&6
58002fi
58003ac_res=`eval echo '${'$as_ac_Header'}'`
58004	       { echo "$as_me:$LINENO: result: $ac_res" >&5
58005echo "${ECHO_T}$ac_res" >&6; }
58006else
58007  # Is the header compilable?
58008{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
58009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
58010cat >conftest.$ac_ext <<_ACEOF
58011/* confdefs.h.  */
58012_ACEOF
58013cat confdefs.h >>conftest.$ac_ext
58014cat >>conftest.$ac_ext <<_ACEOF
58015/* end confdefs.h.  */
58016$ac_includes_default
58017#include <$ac_header>
58018_ACEOF
58019rm -f conftest.$ac_objext
58020if { (ac_try="$ac_compile"
58021case "(($ac_try" in
58022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58023  *) ac_try_echo=$ac_try;;
58024esac
58025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58026  (eval "$ac_compile") 2>conftest.er1
58027  ac_status=$?
58028  grep -v '^ *+' conftest.er1 >conftest.err
58029  rm -f conftest.er1
58030  cat conftest.err >&5
58031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58032  (exit $ac_status); } && {
58033	 test -z "$ac_c_werror_flag" ||
58034	 test ! -s conftest.err
58035       } && test -s conftest.$ac_objext; then
58036  ac_header_compiler=yes
58037else
58038  echo "$as_me: failed program was:" >&5
58039sed 's/^/| /' conftest.$ac_ext >&5
58040
58041	ac_header_compiler=no
58042fi
58043
58044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58045{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58046echo "${ECHO_T}$ac_header_compiler" >&6; }
58047
58048# Is the header present?
58049{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
58050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
58051cat >conftest.$ac_ext <<_ACEOF
58052/* confdefs.h.  */
58053_ACEOF
58054cat confdefs.h >>conftest.$ac_ext
58055cat >>conftest.$ac_ext <<_ACEOF
58056/* end confdefs.h.  */
58057#include <$ac_header>
58058_ACEOF
58059if { (ac_try="$ac_cpp conftest.$ac_ext"
58060case "(($ac_try" in
58061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58062  *) ac_try_echo=$ac_try;;
58063esac
58064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58065  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58066  ac_status=$?
58067  grep -v '^ *+' conftest.er1 >conftest.err
58068  rm -f conftest.er1
58069  cat conftest.err >&5
58070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58071  (exit $ac_status); } >/dev/null && {
58072	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58073	 test ! -s conftest.err
58074       }; then
58075  ac_header_preproc=yes
58076else
58077  echo "$as_me: failed program was:" >&5
58078sed 's/^/| /' conftest.$ac_ext >&5
58079
58080  ac_header_preproc=no
58081fi
58082
58083rm -f conftest.err conftest.$ac_ext
58084{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58085echo "${ECHO_T}$ac_header_preproc" >&6; }
58086
58087# So?  What about this header?
58088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58089  yes:no: )
58090    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58094    ac_header_preproc=yes
58095    ;;
58096  no:yes:* )
58097    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58099    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58100echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58101    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58103    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58104echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58107    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58109
58110    ;;
58111esac
58112{ echo "$as_me:$LINENO: checking for $ac_header" >&5
58113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58115  echo $ECHO_N "(cached) $ECHO_C" >&6
58116else
58117  eval "$as_ac_Header=\$ac_header_preproc"
58118fi
58119ac_res=`eval echo '${'$as_ac_Header'}'`
58120	       { echo "$as_me:$LINENO: result: $ac_res" >&5
58121echo "${ECHO_T}$ac_res" >&6; }
58122
58123fi
58124if test `eval echo '${'$as_ac_Header'}'` = yes; then
58125  cat >>confdefs.h <<_ACEOF
58126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58127_ACEOF
58128
58129fi
58130
58131done
58132
58133
58134if test x"$samba_cv_found_xfs_header" != x"yes"; then
58135# if we have xfs quota support <sys/quota.h> (IRIX) we should use it
58136{ echo "$as_me:$LINENO: checking for XFS QUOTA in <sys/quota.h>" >&5
58137echo $ECHO_N "checking for XFS QUOTA in <sys/quota.h>... $ECHO_C" >&6; }
58138if test "${samba_cv_HAVE_SYS_QUOTA_XFS+set}" = set; then
58139  echo $ECHO_N "(cached) $ECHO_C" >&6
58140else
58141
58142cat >conftest.$ac_ext <<_ACEOF
58143/* confdefs.h.  */
58144_ACEOF
58145cat confdefs.h >>conftest.$ac_ext
58146cat >>conftest.$ac_ext <<_ACEOF
58147/* end confdefs.h.  */
58148
58149#include "confdefs.h"
58150#ifdef HAVE_SYS_TYPES_H
58151#include <sys/types.h>
58152#endif
58153#ifdef HAVE_ASM_TYPES_H
58154#include <asm/types.h>
58155#endif
58156#include <sys/quota.h>
58157
58158int
58159main ()
58160{
58161int i = Q_XGETQUOTA;
58162  ;
58163  return 0;
58164}
58165_ACEOF
58166rm -f conftest.$ac_objext
58167if { (ac_try="$ac_compile"
58168case "(($ac_try" in
58169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58170  *) ac_try_echo=$ac_try;;
58171esac
58172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58173  (eval "$ac_compile") 2>conftest.er1
58174  ac_status=$?
58175  grep -v '^ *+' conftest.er1 >conftest.err
58176  rm -f conftest.er1
58177  cat conftest.err >&5
58178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58179  (exit $ac_status); } && {
58180	 test -z "$ac_c_werror_flag" ||
58181	 test ! -s conftest.err
58182       } && test -s conftest.$ac_objext; then
58183  samba_cv_HAVE_SYS_QUOTA_XFS=yes
58184else
58185  echo "$as_me: failed program was:" >&5
58186sed 's/^/| /' conftest.$ac_ext >&5
58187
58188	samba_cv_HAVE_SYS_QUOTA_XFS=no
58189fi
58190
58191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58192fi
58193{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SYS_QUOTA_XFS" >&5
58194echo "${ECHO_T}$samba_cv_HAVE_SYS_QUOTA_XFS" >&6; }
58195if test "$samba_cv_HAVE_SYS_QUOTA_XFS"x = "yes"x; then
58196	samba_cv_found_xfs_header=yes
58197fi
58198fi
58199
58200# if we have struct dqblk .dqb_fsoftlimit instead of .dqb_isoftlimit on IRIX
58201{ echo "$as_me:$LINENO: checking if struct dqblk has .dqb_fsoftlimit" >&5
58202echo $ECHO_N "checking if struct dqblk has .dqb_fsoftlimit... $ECHO_C" >&6; }
58203if test "${samba_cv_HAVE_DQB_FSOFTLIMIT+set}" = set; then
58204  echo $ECHO_N "(cached) $ECHO_C" >&6
58205else
58206
58207cat >conftest.$ac_ext <<_ACEOF
58208/* confdefs.h.  */
58209_ACEOF
58210cat confdefs.h >>conftest.$ac_ext
58211cat >>conftest.$ac_ext <<_ACEOF
58212/* end confdefs.h.  */
58213
58214#include "confdefs.h"
58215#ifdef HAVE_SYS_QUOTA_H
58216#include <sys/quota.h>
58217#endif
58218
58219int
58220main ()
58221{
58222
58223struct dqblk D;
58224D.dqb_fsoftlimit = 0;
58225  ;
58226  return 0;
58227}
58228_ACEOF
58229rm -f conftest.$ac_objext
58230if { (ac_try="$ac_compile"
58231case "(($ac_try" in
58232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58233  *) ac_try_echo=$ac_try;;
58234esac
58235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58236  (eval "$ac_compile") 2>conftest.er1
58237  ac_status=$?
58238  grep -v '^ *+' conftest.er1 >conftest.err
58239  rm -f conftest.er1
58240  cat conftest.err >&5
58241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58242  (exit $ac_status); } && {
58243	 test -z "$ac_c_werror_flag" ||
58244	 test ! -s conftest.err
58245       } && test -s conftest.$ac_objext; then
58246  samba_cv_HAVE_DQB_FSOFTLIMIT=yes
58247else
58248  echo "$as_me: failed program was:" >&5
58249sed 's/^/| /' conftest.$ac_ext >&5
58250
58251	samba_cv_HAVE_DQB_FSOFTLIMIT=no
58252fi
58253
58254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58255fi
58256{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_DQB_FSOFTLIMIT" >&5
58257echo "${ECHO_T}$samba_cv_HAVE_DQB_FSOFTLIMIT" >&6; }
58258if test "$samba_cv_HAVE_DQB_FSOFTLIMIT"x = "yes"x; then
58259
58260cat >>confdefs.h <<\_ACEOF
58261#define HAVE_DQB_FSOFTLIMIT 1
58262_ACEOF
58263
58264fi
58265
58266##################
58267# look for a working quota system
58268
58269if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
58270{ echo "$as_me:$LINENO: checking for long quotactl(int cmd, char *special, qid_t id, caddr_t addr)" >&5
58271echo $ECHO_N "checking for long quotactl(int cmd, char *special, qid_t id, caddr_t addr)... $ECHO_C" >&6; }
58272if test "${samba_cv_HAVE_QUOTACTL_4A+set}" = set; then
58273  echo $ECHO_N "(cached) $ECHO_C" >&6
58274else
58275
58276
58277	old_CFLAGS="$CFLAGS";
58278	CFLAGS="$Werror_FLAGS";
58279	export CFLAGS;
58280	old_CPPFLAGS="$CPPFLAGS";
58281	CPPFLAGS="$CPPFLAGS";
58282	export CPPFLAGS;
58283	old_LDFLAGS="$LDFLAGS";
58284	LDFLAGS="$LDFLAGS";
58285	export LDFLAGS;
58286	if test "$cross_compiling" = yes; then
58287  samba_cv_HAVE_QUOTACTL_4A=cross
58288else
58289  cat >conftest.$ac_ext <<_ACEOF
58290/* confdefs.h.  */
58291_ACEOF
58292cat confdefs.h >>conftest.$ac_ext
58293cat >>conftest.$ac_ext <<_ACEOF
58294/* end confdefs.h.  */
58295
58296#define HAVE_QUOTACTL_4A 1
58297#define AUTOCONF_TEST 1
58298#include "confdefs.h"
58299#include "${srcdir-.}/tests/sysquotas.c"
58300_ACEOF
58301rm -f conftest$ac_exeext
58302if { (ac_try="$ac_link"
58303case "(($ac_try" in
58304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58305  *) ac_try_echo=$ac_try;;
58306esac
58307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58308  (eval "$ac_link") 2>&5
58309  ac_status=$?
58310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58311  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58312  { (case "(($ac_try" in
58313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58314  *) ac_try_echo=$ac_try;;
58315esac
58316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58317  (eval "$ac_try") 2>&5
58318  ac_status=$?
58319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58320  (exit $ac_status); }; }; then
58321  samba_cv_HAVE_QUOTACTL_4A=yes
58322else
58323  echo "$as_me: program exited with status $ac_status" >&5
58324echo "$as_me: failed program was:" >&5
58325sed 's/^/| /' conftest.$ac_ext >&5
58326
58327( exit $ac_status )
58328samba_cv_HAVE_QUOTACTL_4A=no
58329fi
58330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58331fi
58332
58333
58334	CFLAGS="$old_CFLAGS";
58335	old_CFLAGS="";
58336	export CFLAGS;
58337	CPPFLAGS="$old_CPPFLAGS";
58338	old_CPPFLAGS="";
58339	export CPPFLAGS;
58340	LDFLAGS="$old_LDFLAGS";
58341	old_LDFLAGS="";
58342	export LDFLAGS;
58343
58344fi
58345{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_4A" >&5
58346echo "${ECHO_T}$samba_cv_HAVE_QUOTACTL_4A" >&6; }
58347if test x"$samba_cv_HAVE_QUOTACTL_4A" = x"yes"; then
58348    samba_cv_SYSQUOTA_FOUND=yes;
58349
58350cat >>confdefs.h <<\_ACEOF
58351#define HAVE_QUOTACTL_4A 1
58352_ACEOF
58353
58354    samba_cv_sysquotas_file="lib/sysquotas_4A.c"
58355fi
58356fi
58357
58358if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
58359{ echo "$as_me:$LINENO: checking for int quotactl(const char *path, int cmd, int id, char *addr)" >&5
58360echo $ECHO_N "checking for int quotactl(const char *path, int cmd, int id, char *addr)... $ECHO_C" >&6; }
58361if test "${samba_cv_HAVE_QUOTACTL_4B+set}" = set; then
58362  echo $ECHO_N "(cached) $ECHO_C" >&6
58363else
58364
58365
58366	old_CFLAGS="$CFLAGS";
58367	CFLAGS="$Werror_FLAGS";
58368	export CFLAGS;
58369	old_CPPFLAGS="$CPPFLAGS";
58370	CPPFLAGS="$CPPFLAGS";
58371	export CPPFLAGS;
58372	old_LDFLAGS="$LDFLAGS";
58373	LDFLAGS="$LDFLAGS";
58374	export LDFLAGS;
58375	if test "$cross_compiling" = yes; then
58376  samba_cv_HAVE_QUOTACTL_4B=cross
58377else
58378  cat >conftest.$ac_ext <<_ACEOF
58379/* confdefs.h.  */
58380_ACEOF
58381cat confdefs.h >>conftest.$ac_ext
58382cat >>conftest.$ac_ext <<_ACEOF
58383/* end confdefs.h.  */
58384
58385#define HAVE_QUOTACTL_4B 1
58386#define AUTOCONF_TEST 1
58387#include "confdefs.h"
58388#include "${srcdir-.}/tests/sysquotas.c"
58389_ACEOF
58390rm -f conftest$ac_exeext
58391if { (ac_try="$ac_link"
58392case "(($ac_try" in
58393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58394  *) ac_try_echo=$ac_try;;
58395esac
58396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58397  (eval "$ac_link") 2>&5
58398  ac_status=$?
58399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58400  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58401  { (case "(($ac_try" in
58402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58403  *) ac_try_echo=$ac_try;;
58404esac
58405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58406  (eval "$ac_try") 2>&5
58407  ac_status=$?
58408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58409  (exit $ac_status); }; }; then
58410  samba_cv_HAVE_QUOTACTL_4B=yes
58411else
58412  echo "$as_me: program exited with status $ac_status" >&5
58413echo "$as_me: failed program was:" >&5
58414sed 's/^/| /' conftest.$ac_ext >&5
58415
58416( exit $ac_status )
58417samba_cv_HAVE_QUOTACTL_4B=no
58418fi
58419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58420fi
58421
58422
58423	CFLAGS="$old_CFLAGS";
58424	old_CFLAGS="";
58425	export CFLAGS;
58426	CPPFLAGS="$old_CPPFLAGS";
58427	old_CPPFLAGS="";
58428	export CPPFLAGS;
58429	LDFLAGS="$old_LDFLAGS";
58430	old_LDFLAGS="";
58431	export LDFLAGS;
58432
58433fi
58434{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_4B" >&5
58435echo "${ECHO_T}$samba_cv_HAVE_QUOTACTL_4B" >&6; }
58436if test x"$samba_cv_HAVE_QUOTACTL_4B" = x"yes"; then
58437    echo "int quotactl(const char *path, int cmd, int id, char *addr) is not reworked for the new sys_quota api"
58438    samba_cv_SYSQUOTA_FOUND=yes;
58439
58440cat >>confdefs.h <<\_ACEOF
58441#define HAVE_QUOTACTL_4B 1
58442_ACEOF
58443
58444    samba_cv_sysquotas_file="lib/sysquotas_4B.c"
58445fi
58446fi
58447
58448if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
58449{ echo "$as_me:$LINENO: checking for CRAY int quotactl (char *spec, int request, char *arg)" >&5
58450echo $ECHO_N "checking for CRAY int quotactl (char *spec, int request, char *arg)... $ECHO_C" >&6; }
58451if test "${samba_cv_HAVE_QUOTACTL_3+set}" = set; then
58452  echo $ECHO_N "(cached) $ECHO_C" >&6
58453else
58454
58455
58456	old_CFLAGS="$CFLAGS";
58457	CFLAGS="$Werror_FLAGS";
58458	export CFLAGS;
58459	old_CPPFLAGS="$CPPFLAGS";
58460	CPPFLAGS="$CPPFLAGS";
58461	export CPPFLAGS;
58462	old_LDFLAGS="$LDFLAGS";
58463	LDFLAGS="$LDFLAGS";
58464	export LDFLAGS;
58465	if test "$cross_compiling" = yes; then
58466  samba_cv_HAVE_QUOTACTL_3=cross
58467else
58468  cat >conftest.$ac_ext <<_ACEOF
58469/* confdefs.h.  */
58470_ACEOF
58471cat confdefs.h >>conftest.$ac_ext
58472cat >>conftest.$ac_ext <<_ACEOF
58473/* end confdefs.h.  */
58474
58475#define HAVE_QUOTACTL_3 1
58476#define AUTOCONF_TEST 1
58477#include "confdefs.h"
58478#include "${srcdir-.}/tests/sysquotas.c"
58479_ACEOF
58480rm -f conftest$ac_exeext
58481if { (ac_try="$ac_link"
58482case "(($ac_try" in
58483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58484  *) ac_try_echo=$ac_try;;
58485esac
58486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58487  (eval "$ac_link") 2>&5
58488  ac_status=$?
58489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58490  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58491  { (case "(($ac_try" in
58492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58493  *) ac_try_echo=$ac_try;;
58494esac
58495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58496  (eval "$ac_try") 2>&5
58497  ac_status=$?
58498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58499  (exit $ac_status); }; }; then
58500  samba_cv_HAVE_QUOTACTL_3=yes
58501else
58502  echo "$as_me: program exited with status $ac_status" >&5
58503echo "$as_me: failed program was:" >&5
58504sed 's/^/| /' conftest.$ac_ext >&5
58505
58506( exit $ac_status )
58507samba_cv_HAVE_QUOTACTL_3=no
58508fi
58509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58510fi
58511
58512
58513	CFLAGS="$old_CFLAGS";
58514	old_CFLAGS="";
58515	export CFLAGS;
58516	CPPFLAGS="$old_CPPFLAGS";
58517	old_CPPFLAGS="";
58518	export CPPFLAGS;
58519	LDFLAGS="$old_LDFLAGS";
58520	old_LDFLAGS="";
58521	export LDFLAGS;
58522
58523fi
58524{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_3" >&5
58525echo "${ECHO_T}$samba_cv_HAVE_QUOTACTL_3" >&6; }
58526if test x"$samba_cv_HAVE_QUOTACTL_3" = x"yes"; then
58527    echo "CRAY int quotactl (char *spec, int request, char *arg) is NOT reworked for the sys_quota api"
58528    samba_cv_SYSQUOTA_FOUND=yes;
58529
58530cat >>confdefs.h <<\_ACEOF
58531#define HAVE_QUOTACTL_3 1
58532_ACEOF
58533
58534    samba_cv_sysquotas_file="lib/sysquotas_3.c"
58535fi
58536fi
58537
58538#################################################
58539# check for mntent.h and struct mntent
58540
58541for ac_header in mntent.h
58542do
58543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58545  { echo "$as_me:$LINENO: checking for $ac_header" >&5
58546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58548  echo $ECHO_N "(cached) $ECHO_C" >&6
58549fi
58550ac_res=`eval echo '${'$as_ac_Header'}'`
58551	       { echo "$as_me:$LINENO: result: $ac_res" >&5
58552echo "${ECHO_T}$ac_res" >&6; }
58553else
58554  # Is the header compilable?
58555{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
58556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
58557cat >conftest.$ac_ext <<_ACEOF
58558/* confdefs.h.  */
58559_ACEOF
58560cat confdefs.h >>conftest.$ac_ext
58561cat >>conftest.$ac_ext <<_ACEOF
58562/* end confdefs.h.  */
58563$ac_includes_default
58564#include <$ac_header>
58565_ACEOF
58566rm -f conftest.$ac_objext
58567if { (ac_try="$ac_compile"
58568case "(($ac_try" in
58569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58570  *) ac_try_echo=$ac_try;;
58571esac
58572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58573  (eval "$ac_compile") 2>conftest.er1
58574  ac_status=$?
58575  grep -v '^ *+' conftest.er1 >conftest.err
58576  rm -f conftest.er1
58577  cat conftest.err >&5
58578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58579  (exit $ac_status); } && {
58580	 test -z "$ac_c_werror_flag" ||
58581	 test ! -s conftest.err
58582       } && test -s conftest.$ac_objext; then
58583  ac_header_compiler=yes
58584else
58585  echo "$as_me: failed program was:" >&5
58586sed 's/^/| /' conftest.$ac_ext >&5
58587
58588	ac_header_compiler=no
58589fi
58590
58591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58592{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58593echo "${ECHO_T}$ac_header_compiler" >&6; }
58594
58595# Is the header present?
58596{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
58597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
58598cat >conftest.$ac_ext <<_ACEOF
58599/* confdefs.h.  */
58600_ACEOF
58601cat confdefs.h >>conftest.$ac_ext
58602cat >>conftest.$ac_ext <<_ACEOF
58603/* end confdefs.h.  */
58604#include <$ac_header>
58605_ACEOF
58606if { (ac_try="$ac_cpp conftest.$ac_ext"
58607case "(($ac_try" in
58608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58609  *) ac_try_echo=$ac_try;;
58610esac
58611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58612  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58613  ac_status=$?
58614  grep -v '^ *+' conftest.er1 >conftest.err
58615  rm -f conftest.er1
58616  cat conftest.err >&5
58617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58618  (exit $ac_status); } >/dev/null && {
58619	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58620	 test ! -s conftest.err
58621       }; then
58622  ac_header_preproc=yes
58623else
58624  echo "$as_me: failed program was:" >&5
58625sed 's/^/| /' conftest.$ac_ext >&5
58626
58627  ac_header_preproc=no
58628fi
58629
58630rm -f conftest.err conftest.$ac_ext
58631{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58632echo "${ECHO_T}$ac_header_preproc" >&6; }
58633
58634# So?  What about this header?
58635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58636  yes:no: )
58637    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58639    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58641    ac_header_preproc=yes
58642    ;;
58643  no:yes:* )
58644    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58646    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58647echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58648    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58650    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58651echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58652    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58654    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58656
58657    ;;
58658esac
58659{ echo "$as_me:$LINENO: checking for $ac_header" >&5
58660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58662  echo $ECHO_N "(cached) $ECHO_C" >&6
58663else
58664  eval "$as_ac_Header=\$ac_header_preproc"
58665fi
58666ac_res=`eval echo '${'$as_ac_Header'}'`
58667	       { echo "$as_me:$LINENO: result: $ac_res" >&5
58668echo "${ECHO_T}$ac_res" >&6; }
58669
58670fi
58671if test `eval echo '${'$as_ac_Header'}'` = yes; then
58672  cat >>confdefs.h <<_ACEOF
58673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58674_ACEOF
58675
58676fi
58677
58678done
58679
58680#################################################
58681# check for setmntent,getmntent,endmntent
58682
58683
58684
58685for ac_func in setmntent getmntent endmntent
58686do
58687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58688{ echo "$as_me:$LINENO: checking for $ac_func" >&5
58689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58690if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58691  echo $ECHO_N "(cached) $ECHO_C" >&6
58692else
58693  cat >conftest.$ac_ext <<_ACEOF
58694/* confdefs.h.  */
58695_ACEOF
58696cat confdefs.h >>conftest.$ac_ext
58697cat >>conftest.$ac_ext <<_ACEOF
58698/* end confdefs.h.  */
58699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58700   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58701#define $ac_func innocuous_$ac_func
58702
58703/* System header to define __stub macros and hopefully few prototypes,
58704    which can conflict with char $ac_func (); below.
58705    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58706    <limits.h> exists even on freestanding compilers.  */
58707
58708#ifdef __STDC__
58709# include <limits.h>
58710#else
58711# include <assert.h>
58712#endif
58713
58714#undef $ac_func
58715
58716/* Override any GCC internal prototype to avoid an error.
58717   Use char because int might match the return type of a GCC
58718   builtin and then its argument prototype would still apply.  */
58719#ifdef __cplusplus
58720extern "C"
58721#endif
58722char $ac_func ();
58723/* The GNU C library defines this for functions which it implements
58724    to always fail with ENOSYS.  Some functions are actually named
58725    something starting with __ and the normal name is an alias.  */
58726#if defined __stub_$ac_func || defined __stub___$ac_func
58727choke me
58728#endif
58729
58730int
58731main ()
58732{
58733return $ac_func ();
58734  ;
58735  return 0;
58736}
58737_ACEOF
58738rm -f conftest.$ac_objext conftest$ac_exeext
58739if { (ac_try="$ac_link"
58740case "(($ac_try" in
58741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58742  *) ac_try_echo=$ac_try;;
58743esac
58744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58745  (eval "$ac_link") 2>conftest.er1
58746  ac_status=$?
58747  grep -v '^ *+' conftest.er1 >conftest.err
58748  rm -f conftest.er1
58749  cat conftest.err >&5
58750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58751  (exit $ac_status); } && {
58752	 test -z "$ac_c_werror_flag" ||
58753	 test ! -s conftest.err
58754       } && test -s conftest$ac_exeext &&
58755       $as_test_x conftest$ac_exeext; then
58756  eval "$as_ac_var=yes"
58757else
58758  echo "$as_me: failed program was:" >&5
58759sed 's/^/| /' conftest.$ac_ext >&5
58760
58761	eval "$as_ac_var=no"
58762fi
58763
58764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58765      conftest$ac_exeext conftest.$ac_ext
58766fi
58767ac_res=`eval echo '${'$as_ac_var'}'`
58768	       { echo "$as_me:$LINENO: result: $ac_res" >&5
58769echo "${ECHO_T}$ac_res" >&6; }
58770if test `eval echo '${'$as_ac_var'}'` = yes; then
58771  cat >>confdefs.h <<_ACEOF
58772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58773_ACEOF
58774
58775fi
58776done
58777
58778
58779#################################################
58780# check for devnm.h and struct mntent
58781
58782for ac_header in devnm.h
58783do
58784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58786  { echo "$as_me:$LINENO: checking for $ac_header" >&5
58787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58789  echo $ECHO_N "(cached) $ECHO_C" >&6
58790fi
58791ac_res=`eval echo '${'$as_ac_Header'}'`
58792	       { echo "$as_me:$LINENO: result: $ac_res" >&5
58793echo "${ECHO_T}$ac_res" >&6; }
58794else
58795  # Is the header compilable?
58796{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
58797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
58798cat >conftest.$ac_ext <<_ACEOF
58799/* confdefs.h.  */
58800_ACEOF
58801cat confdefs.h >>conftest.$ac_ext
58802cat >>conftest.$ac_ext <<_ACEOF
58803/* end confdefs.h.  */
58804$ac_includes_default
58805#include <$ac_header>
58806_ACEOF
58807rm -f conftest.$ac_objext
58808if { (ac_try="$ac_compile"
58809case "(($ac_try" in
58810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58811  *) ac_try_echo=$ac_try;;
58812esac
58813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58814  (eval "$ac_compile") 2>conftest.er1
58815  ac_status=$?
58816  grep -v '^ *+' conftest.er1 >conftest.err
58817  rm -f conftest.er1
58818  cat conftest.err >&5
58819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58820  (exit $ac_status); } && {
58821	 test -z "$ac_c_werror_flag" ||
58822	 test ! -s conftest.err
58823       } && test -s conftest.$ac_objext; then
58824  ac_header_compiler=yes
58825else
58826  echo "$as_me: failed program was:" >&5
58827sed 's/^/| /' conftest.$ac_ext >&5
58828
58829	ac_header_compiler=no
58830fi
58831
58832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58833{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58834echo "${ECHO_T}$ac_header_compiler" >&6; }
58835
58836# Is the header present?
58837{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
58838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
58839cat >conftest.$ac_ext <<_ACEOF
58840/* confdefs.h.  */
58841_ACEOF
58842cat confdefs.h >>conftest.$ac_ext
58843cat >>conftest.$ac_ext <<_ACEOF
58844/* end confdefs.h.  */
58845#include <$ac_header>
58846_ACEOF
58847if { (ac_try="$ac_cpp conftest.$ac_ext"
58848case "(($ac_try" in
58849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58850  *) ac_try_echo=$ac_try;;
58851esac
58852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58853  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58854  ac_status=$?
58855  grep -v '^ *+' conftest.er1 >conftest.err
58856  rm -f conftest.er1
58857  cat conftest.err >&5
58858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58859  (exit $ac_status); } >/dev/null && {
58860	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58861	 test ! -s conftest.err
58862       }; then
58863  ac_header_preproc=yes
58864else
58865  echo "$as_me: failed program was:" >&5
58866sed 's/^/| /' conftest.$ac_ext >&5
58867
58868  ac_header_preproc=no
58869fi
58870
58871rm -f conftest.err conftest.$ac_ext
58872{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58873echo "${ECHO_T}$ac_header_preproc" >&6; }
58874
58875# So?  What about this header?
58876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58877  yes:no: )
58878    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58880    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58882    ac_header_preproc=yes
58883    ;;
58884  no:yes:* )
58885    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58887    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58888echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58889    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58891    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58892echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58893    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58895    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58897
58898    ;;
58899esac
58900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
58901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58903  echo $ECHO_N "(cached) $ECHO_C" >&6
58904else
58905  eval "$as_ac_Header=\$ac_header_preproc"
58906fi
58907ac_res=`eval echo '${'$as_ac_Header'}'`
58908	       { echo "$as_me:$LINENO: result: $ac_res" >&5
58909echo "${ECHO_T}$ac_res" >&6; }
58910
58911fi
58912if test `eval echo '${'$as_ac_Header'}'` = yes; then
58913  cat >>confdefs.h <<_ACEOF
58914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58915_ACEOF
58916
58917fi
58918
58919done
58920
58921#################################################
58922# check for devnm
58923
58924for ac_func in devnm
58925do
58926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58927{ echo "$as_me:$LINENO: checking for $ac_func" >&5
58928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58929if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58930  echo $ECHO_N "(cached) $ECHO_C" >&6
58931else
58932  cat >conftest.$ac_ext <<_ACEOF
58933/* confdefs.h.  */
58934_ACEOF
58935cat confdefs.h >>conftest.$ac_ext
58936cat >>conftest.$ac_ext <<_ACEOF
58937/* end confdefs.h.  */
58938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58939   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58940#define $ac_func innocuous_$ac_func
58941
58942/* System header to define __stub macros and hopefully few prototypes,
58943    which can conflict with char $ac_func (); below.
58944    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58945    <limits.h> exists even on freestanding compilers.  */
58946
58947#ifdef __STDC__
58948# include <limits.h>
58949#else
58950# include <assert.h>
58951#endif
58952
58953#undef $ac_func
58954
58955/* Override any GCC internal prototype to avoid an error.
58956   Use char because int might match the return type of a GCC
58957   builtin and then its argument prototype would still apply.  */
58958#ifdef __cplusplus
58959extern "C"
58960#endif
58961char $ac_func ();
58962/* The GNU C library defines this for functions which it implements
58963    to always fail with ENOSYS.  Some functions are actually named
58964    something starting with __ and the normal name is an alias.  */
58965#if defined __stub_$ac_func || defined __stub___$ac_func
58966choke me
58967#endif
58968
58969int
58970main ()
58971{
58972return $ac_func ();
58973  ;
58974  return 0;
58975}
58976_ACEOF
58977rm -f conftest.$ac_objext conftest$ac_exeext
58978if { (ac_try="$ac_link"
58979case "(($ac_try" in
58980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58981  *) ac_try_echo=$ac_try;;
58982esac
58983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58984  (eval "$ac_link") 2>conftest.er1
58985  ac_status=$?
58986  grep -v '^ *+' conftest.er1 >conftest.err
58987  rm -f conftest.er1
58988  cat conftest.err >&5
58989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
58990  (exit $ac_status); } && {
58991	 test -z "$ac_c_werror_flag" ||
58992	 test ! -s conftest.err
58993       } && test -s conftest$ac_exeext &&
58994       $as_test_x conftest$ac_exeext; then
58995  eval "$as_ac_var=yes"
58996else
58997  echo "$as_me: failed program was:" >&5
58998sed 's/^/| /' conftest.$ac_ext >&5
58999
59000	eval "$as_ac_var=no"
59001fi
59002
59003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59004      conftest$ac_exeext conftest.$ac_ext
59005fi
59006ac_res=`eval echo '${'$as_ac_var'}'`
59007	       { echo "$as_me:$LINENO: result: $ac_res" >&5
59008echo "${ECHO_T}$ac_res" >&6; }
59009if test `eval echo '${'$as_ac_var'}'` = yes; then
59010  cat >>confdefs.h <<_ACEOF
59011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59012_ACEOF
59013
59014fi
59015done
59016
59017
59018if test x"$samba_cv_WITH_SYS_QUOTAS" = x"yes"; then
59019    if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
59020	# if --with-sys-quotas=yes then build it
59021	# you have can use the get/set quota command smb.conf
59022	# options then
59023	samba_cv_SYSQUOTA_FOUND=auto
59024    fi
59025    if test x"$samba_cv_TRY_SYS_QUOTAS" != x"yes"; then
59026	# if --with-sys-quotas=yes then build it
59027	# you have can use the get/set quota command smb.conf
59028	# options then
59029	samba_cv_TRY_SYS_QUOTAS=auto
59030    fi
59031fi
59032
59033if test x"$samba_cv_SYSQUOTA_FOUND" != x"no"; then
59034{ echo "$as_me:$LINENO: checking whether the sys_quota interface works" >&5
59035echo $ECHO_N "checking whether the sys_quota interface works... $ECHO_C" >&6; }
59036if test "${samba_cv_SYSQUOTA_WORKS+set}" = set; then
59037  echo $ECHO_N "(cached) $ECHO_C" >&6
59038else
59039
59040SAVE_CPPFLAGS="$CPPFLAGS"
59041CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
59042cat >conftest.$ac_ext <<_ACEOF
59043/* confdefs.h.  */
59044_ACEOF
59045cat confdefs.h >>conftest.$ac_ext
59046cat >>conftest.$ac_ext <<_ACEOF
59047/* end confdefs.h.  */
59048
59049#include "confdefs.h"
59050#define NO_PROTO_H 1
59051#define NO_CONFIG_H 1
59052#define HAVE_SYS_QUOTAS 1
59053#include "${srcdir-.}/${samba_cv_sysquotas_file}"
59054#include "${srcdir-.}/lib/sysquotas.c"
59055
59056int
59057main ()
59058{
59059
59060  ;
59061  return 0;
59062}
59063_ACEOF
59064rm -f conftest.$ac_objext
59065if { (ac_try="$ac_compile"
59066case "(($ac_try" in
59067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59068  *) ac_try_echo=$ac_try;;
59069esac
59070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59071  (eval "$ac_compile") 2>conftest.er1
59072  ac_status=$?
59073  grep -v '^ *+' conftest.er1 >conftest.err
59074  rm -f conftest.er1
59075  cat conftest.err >&5
59076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59077  (exit $ac_status); } && {
59078	 test -z "$ac_c_werror_flag" ||
59079	 test ! -s conftest.err
59080       } && test -s conftest.$ac_objext; then
59081  samba_cv_SYSQUOTA_WORKS=yes
59082else
59083  echo "$as_me: failed program was:" >&5
59084sed 's/^/| /' conftest.$ac_ext >&5
59085
59086	samba_cv_SYSQUOTA_WORKS=no
59087fi
59088
59089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59090CPPFLAGS="$SAVE_CPPFLAGS"
59091
59092fi
59093{ echo "$as_me:$LINENO: result: $samba_cv_SYSQUOTA_WORKS" >&5
59094echo "${ECHO_T}$samba_cv_SYSQUOTA_WORKS" >&6; }
59095if test x"$samba_cv_SYSQUOTA_WORKS" = x"yes"; then
59096{ echo "$as_me:$LINENO: checking whether to use the new lib/sysquotas.c interface" >&5
59097echo $ECHO_N "checking whether to use the new lib/sysquotas.c interface... $ECHO_C" >&6; }
59098    if test x"$samba_cv_TRY_SYS_QUOTAS" != x"no"; then
59099
59100cat >>confdefs.h <<\_ACEOF
59101#define WITH_QUOTAS 1
59102_ACEOF
59103
59104
59105cat >>confdefs.h <<\_ACEOF
59106#define HAVE_SYS_QUOTAS 1
59107_ACEOF
59108
59109	samba_cv_WE_USE_SYS_QUOTAS=yes
59110	{ echo "$as_me:$LINENO: result: yes" >&5
59111echo "${ECHO_T}yes" >&6; }
59112    else
59113        { echo "$as_me:$LINENO: result: no" >&5
59114echo "${ECHO_T}no" >&6; }
59115    fi
59116fi
59117fi
59118
59119if test x"$samba_cv_SYSQUOTA_FOUND" != x"no" -a x"$samba_cv_found_xfs_header" = x"yes"; then
59120{ echo "$as_me:$LINENO: checking whether the sys_quota interface works with XFS" >&5
59121echo $ECHO_N "checking whether the sys_quota interface works with XFS... $ECHO_C" >&6; }
59122if test "${samba_cv_SYSQUOTA_WORKS_XFS+set}" = set; then
59123  echo $ECHO_N "(cached) $ECHO_C" >&6
59124else
59125
59126SAVE_CPPFLAGS="$CPPFLAGS"
59127CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
59128cat >conftest.$ac_ext <<_ACEOF
59129/* confdefs.h.  */
59130_ACEOF
59131cat confdefs.h >>conftest.$ac_ext
59132cat >>conftest.$ac_ext <<_ACEOF
59133/* end confdefs.h.  */
59134
59135#include "confdefs.h"
59136#define NO_PROTO_H 1
59137#define NO_CONFIG_H 1
59138#define HAVE_SYS_QUOTAS 1
59139#define HAVE_XFS_QUOTAS 1
59140#include "${srcdir-.}/lib/sysquotas_xfs.c"
59141
59142int
59143main ()
59144{
59145
59146  ;
59147  return 0;
59148}
59149_ACEOF
59150rm -f conftest.$ac_objext
59151if { (ac_try="$ac_compile"
59152case "(($ac_try" in
59153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59154  *) ac_try_echo=$ac_try;;
59155esac
59156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59157  (eval "$ac_compile") 2>conftest.er1
59158  ac_status=$?
59159  grep -v '^ *+' conftest.er1 >conftest.err
59160  rm -f conftest.er1
59161  cat conftest.err >&5
59162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59163  (exit $ac_status); } && {
59164	 test -z "$ac_c_werror_flag" ||
59165	 test ! -s conftest.err
59166       } && test -s conftest.$ac_objext; then
59167  samba_cv_SYSQUOTA_WORKS_XFS=yes
59168else
59169  echo "$as_me: failed program was:" >&5
59170sed 's/^/| /' conftest.$ac_ext >&5
59171
59172	samba_cv_SYSQUOTA_WORKS_XFS=no
59173fi
59174
59175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59176CPPFLAGS="$SAVE_CPPFLAGS"
59177
59178fi
59179{ echo "$as_me:$LINENO: result: $samba_cv_SYSQUOTA_WORKS_XFS" >&5
59180echo "${ECHO_T}$samba_cv_SYSQUOTA_WORKS_XFS" >&6; }
59181if test x"$samba_cv_SYSQUOTA_WORKS_XFS" = x"yes"; then
59182    if test x"$samba_cv_WE_USE_SYS_QUOTAS" = x"yes"; then
59183
59184cat >>confdefs.h <<\_ACEOF
59185#define HAVE_XFS_QUOTAS 1
59186_ACEOF
59187
59188    fi
59189fi
59190fi
59191
59192{ echo "$as_me:$LINENO: checking whether the old quota support works" >&5
59193echo $ECHO_N "checking whether the old quota support works... $ECHO_C" >&6; }
59194if test "${samba_cv_QUOTA_WORKS+set}" = set; then
59195  echo $ECHO_N "(cached) $ECHO_C" >&6
59196else
59197
59198SAVE_CPPFLAGS="$CPPFLAGS"
59199CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
59200cat >conftest.$ac_ext <<_ACEOF
59201/* confdefs.h.  */
59202_ACEOF
59203cat confdefs.h >>conftest.$ac_ext
59204cat >>conftest.$ac_ext <<_ACEOF
59205/* end confdefs.h.  */
59206
59207#include "confdefs.h"
59208#define NO_PROTO_H 1
59209#define NO_CONFIG_H 1
59210#include "${srcdir-.}/smbd/quotas.c"
59211
59212int
59213main ()
59214{
59215
59216  ;
59217  return 0;
59218}
59219_ACEOF
59220rm -f conftest.$ac_objext
59221if { (ac_try="$ac_compile"
59222case "(($ac_try" in
59223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59224  *) ac_try_echo=$ac_try;;
59225esac
59226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59227  (eval "$ac_compile") 2>conftest.er1
59228  ac_status=$?
59229  grep -v '^ *+' conftest.er1 >conftest.err
59230  rm -f conftest.er1
59231  cat conftest.err >&5
59232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59233  (exit $ac_status); } && {
59234	 test -z "$ac_c_werror_flag" ||
59235	 test ! -s conftest.err
59236       } && test -s conftest.$ac_objext; then
59237  samba_cv_QUOTA_WORKS=yes
59238else
59239  echo "$as_me: failed program was:" >&5
59240sed 's/^/| /' conftest.$ac_ext >&5
59241
59242	samba_cv_QUOTA_WORKS=no
59243fi
59244
59245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59246CPPFLAGS="$SAVE_CPPFLAGS"
59247
59248fi
59249{ echo "$as_me:$LINENO: result: $samba_cv_QUOTA_WORKS" >&5
59250echo "${ECHO_T}$samba_cv_QUOTA_WORKS" >&6; }
59251if test x"$samba_cv_QUOTA_WORKS" = x"yes"; then
59252{ echo "$as_me:$LINENO: checking whether to use the old quota support" >&5
59253echo $ECHO_N "checking whether to use the old quota support... $ECHO_C" >&6; }
59254    if test x"$samba_cv_WE_USE_SYS_QUOTAS" != x"yes"; then
59255      if test x"$samba_cv_TRY_QUOTAS" != x"no"; then
59256
59257cat >>confdefs.h <<\_ACEOF
59258#define WITH_QUOTAS 1
59259_ACEOF
59260
59261	{ echo "$as_me:$LINENO: result: yes" >&5
59262echo "${ECHO_T}yes" >&6; }
59263      else
59264	{ echo "$as_me:$LINENO: result: no" >&5
59265echo "${ECHO_T}no" >&6; }
59266      fi
59267    else
59268      { echo "$as_me:$LINENO: result: no" >&5
59269echo "${ECHO_T}no" >&6; }
59270    fi
59271fi
59272
59273####################
59274# End of quota check samba_cv_RUN_QUOTA_TESTS
59275fi
59276
59277#################################################
59278# check for experimental utmp accounting
59279
59280{ echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
59281echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6; }
59282WITH_UTMP=yes
59283
59284# Check whether --with-utmp was given.
59285if test "${with_utmp+set}" = set; then
59286  withval=$with_utmp;  case "$withval" in
59287  no)
59288		WITH_UTMP=no
59289		;;
59290  *)
59291		WITH_UTMP=yes
59292                ;;
59293  esac
59294fi
59295
59296
59297# utmp requires utmp.h
59298# Note similar check earlier, when checking utmp details.
59299
59300if test x"$WITH_UTMP" = x"yes" -a x"$ac_cv_header_utmp_h" = x"no"; then
59301	utmp_no_reason=", no utmp.h on $host_os"
59302	WITH_UTMP=no
59303fi
59304
59305# Display test results
59306
59307if test x"$WITH_UTMP" = x"yes"; then
59308        { echo "$as_me:$LINENO: result: yes" >&5
59309echo "${ECHO_T}yes" >&6; }
59310
59311cat >>confdefs.h <<\_ACEOF
59312#define WITH_UTMP 1
59313_ACEOF
59314
59315else
59316        { echo "$as_me:$LINENO: result: no$utmp_no_reason" >&5
59317echo "${ECHO_T}no$utmp_no_reason" >&6; }
59318fi
59319
59320INSTALLLIBCMD_SH=:
59321INSTALLLIBCMD_A=:
59322UNINSTALLLIBCMD_SH=:
59323UNINSTALLLIBCMD_A=:
59324
59325if test $BLDSHARED = true; then
59326	INSTALLLIBCMD_SH="\$(INSTALLCMD)"
59327	UNINSTALLLIBCMD_SH="rm -f"
59328fi
59329if test $enable_static = yes; then
59330	INSTALLLIBCMD_A="\$(INSTALLCMD)"
59331	UNINSTALLLIBCMD_A="rm -f"
59332fi
59333
59334#################################################
59335# should we build libmsrpc?
59336INSTALL_LIBMSRPC=
59337UNINSTALL_LIBMSRPC=
59338LIBMSRPC_SHARED=
59339LIBMSRPC=
59340{ echo "$as_me:$LINENO: checking whether to build the libmsrpc shared library" >&5
59341echo $ECHO_N "checking whether to build the libmsrpc shared library... $ECHO_C" >&6; }
59342
59343# Check whether --with-libmsrpc was given.
59344if test "${with_libmsrpc+set}" = set; then
59345  withval=$with_libmsrpc;  case "$withval" in
59346  no)
59347     { echo "$as_me:$LINENO: result: no" >&5
59348echo "${ECHO_T}no" >&6; }
59349     ;;
59350  *)
59351     if test $BLDSHARED = true; then
59352        LIBMSRPC_SHARED=bin/libmsrpc.$SHLIBEXT
59353        LIBMSRPC=libmsrpc
59354        { echo "$as_me:$LINENO: result: yes" >&5
59355echo "${ECHO_T}yes" >&6; }
59356     else
59357	enable_static=yes
59358        { echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
59359echo "${ECHO_T}no shared library support -- will supply static library" >&6; }
59360     fi
59361     if test $enable_static = yes; then
59362        LIBMSRPC=libmsrpc
59363     fi
59364     INSTALL_LIBMSRPC=installlibmsrpc
59365     UNINSTALL_LIBMSRPC=uninstalllibmsrpc
59366     ;;
59367  esac
59368else
59369
59370# if unspecified, default is to built it if possible.
59371  if test $BLDSHARED = true; then
59372     LIBMSRPC_SHARED=bin/libmsrpc.$SHLIBEXT
59373     LIBMSRPC=libmsrpc
59374     { echo "$as_me:$LINENO: result: yes" >&5
59375echo "${ECHO_T}yes" >&6; }
59376   else
59377     enable_static=yes
59378     { echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
59379echo "${ECHO_T}no shared library support -- will supply static library" >&6; }
59380   fi
59381   if test $enable_static = yes; then
59382     LIBMSRPC=libmsrpc
59383  fi
59384  INSTALL_LIBMSRPC=installlibmsrpc
59385  UNINSTALL_LIBMSRPC=uninstalllibmsrpc
59386
59387fi
59388
59389
59390
59391#################################################
59392# should we build libaddns?
59393INSTALL_LIBADDNS=
59394UNINSTALL_LIBADDNS=
59395LIBADDNS_SHARED=
59396LIBADDNS=
59397{ echo "$as_me:$LINENO: checking whether to build the libaddns shared library" >&5
59398echo $ECHO_N "checking whether to build the libaddns shared library... $ECHO_C" >&6; }
59399
59400# Check whether --with-libaddns was given.
59401if test "${with_libaddns+set}" = set; then
59402  withval=$with_libaddns;  case "$withval" in
59403  no)
59404     { echo "$as_me:$LINENO: result: no" >&5
59405echo "${ECHO_T}no" >&6; }
59406     ;;
59407  *)
59408     if test $BLDSHARED = true; then
59409        LIBADDNS_SHARED=bin/libaddns.$SHLIBEXT
59410        LIBADDNS=libaddns
59411        { echo "$as_me:$LINENO: result: yes" >&5
59412echo "${ECHO_T}yes" >&6; }
59413     else
59414	enable_static=yes
59415        { echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
59416echo "${ECHO_T}no shared library support -- will supply static library" >&6; }
59417     fi
59418     if test $enable_static = yes; then
59419        LIBADDNS=libaddns
59420     fi
59421     INSTALL_LIBADDNS=installlibaddns
59422     UNINSTALL_LIBADDNS=uninstalllibaddns
59423     ;;
59424  esac
59425else
59426
59427# if unspecified, default is to built it if possible.
59428  if test $BLDSHARED = true; then
59429     LIBADDNS_SHARED=bin/libaddns.$SHLIBEXT
59430     LIBADDNS=libaddns
59431     { echo "$as_me:$LINENO: result: yes" >&5
59432echo "${ECHO_T}yes" >&6; }
59433   else
59434     enable_static=yes
59435     { echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
59436echo "${ECHO_T}no shared library support -- will supply static library" >&6; }
59437   fi
59438   if test $enable_static = yes; then
59439     LIBADDNS=libaddns
59440  fi
59441  INSTALL_LIBADDNS=installlibaddns
59442  UNINSTALL_LIBADDNS=uninstalllibaddns
59443
59444fi
59445
59446
59447#################################################
59448# should we build libsmbclient?
59449INSTALL_LIBSMBCLIENT=
59450UNINSTALL_LIBSMBCLIENT=
59451LIBSMBCLIENT_SHARED=
59452LIBSMBCLIENT=
59453{ echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
59454echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6; }
59455
59456# Check whether --with-libsmbclient was given.
59457if test "${with_libsmbclient+set}" = set; then
59458  withval=$with_libsmbclient;  case "$withval" in
59459  no)
59460     { echo "$as_me:$LINENO: result: no" >&5
59461echo "${ECHO_T}no" >&6; }
59462     ;;
59463  *)
59464     if test $BLDSHARED = true; then
59465        LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
59466        LIBSMBCLIENT=libsmbclient
59467        { echo "$as_me:$LINENO: result: yes" >&5
59468echo "${ECHO_T}yes" >&6; }
59469     else
59470	enable_static=yes
59471        { echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
59472echo "${ECHO_T}no shared library support -- will supply static library" >&6; }
59473     fi
59474     if test $enable_static = yes; then
59475        LIBSMBCLIENT=libsmbclient
59476     fi
59477     INSTALL_LIBSMBCLIENT=installclientlib
59478     UNINSTALL_LIBSMBCLIENT=uninstallclientlib
59479     ;;
59480  esac
59481else
59482
59483# if unspecified, default is to built it if possible.
59484  if test $BLDSHARED = true; then
59485     LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
59486     LIBSMBCLIENT=libsmbclient
59487     { echo "$as_me:$LINENO: result: yes" >&5
59488echo "${ECHO_T}yes" >&6; }
59489   else
59490     enable_static=yes
59491     { echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
59492echo "${ECHO_T}no shared library support -- will supply static library" >&6; }
59493   fi
59494   if test $enable_static = yes; then
59495     LIBSMBCLIENT=libsmbclient
59496  fi
59497  INSTALL_LIBSMBCLIENT=installclientlib
59498  UNINSTALL_LIBSMBCLIENT=uninstallclientlib
59499
59500fi
59501
59502
59503INSTALL_LIBSMBSHAREMODES=
59504LIBSMBSHAREMODES_SHARED=
59505LIBSMBSHAREMODES=
59506{ echo "$as_me:$LINENO: checking whether to build the libsmbsharemodes shared library" >&5
59507echo $ECHO_N "checking whether to build the libsmbsharemodes shared library... $ECHO_C" >&6; }
59508
59509# Check whether --with-libsmbsharemodes was given.
59510if test "${with_libsmbsharemodes+set}" = set; then
59511  withval=$with_libsmbsharemodes;  case "$withval" in
59512  no)
59513     { echo "$as_me:$LINENO: result: no" >&5
59514echo "${ECHO_T}no" >&6; }
59515     ;;
59516  *)
59517     if test $BLDSHARED = true; then
59518        LIBSMBSHAREMODES_SHARED=bin/libsmbsharemodes.$SHLIBEXT
59519        LIBSMBSHAREMODES=libsmbsharemodes
59520        { echo "$as_me:$LINENO: result: yes" >&5
59521echo "${ECHO_T}yes" >&6; }
59522     else
59523        enable_static=yes
59524        { echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
59525echo "${ECHO_T}no shared library support -- will supply static library" >&6; }
59526     fi
59527     if test $enable_static = yes; then
59528        LIBSMBSHAREMODES=libsmbsharemodes
59529     fi
59530     INSTALL_LIBSMBSHAREMODES=installlibsmbsharemodes
59531     UNINSTALL_LIBSMBSHAREMODES=uninstalllibsmbsharemodes
59532     ;;
59533  esac
59534else
59535
59536# if unspecified, default is to built it if possible.
59537  if test $BLDSHARED = true; then
59538     LIBSMBSHAREMODES_SHARED=bin/libsmbsharemodes.$SHLIBEXT
59539     LIBSMBSHAREMODES=libsmbsharemodes
59540     { echo "$as_me:$LINENO: result: yes" >&5
59541echo "${ECHO_T}yes" >&6; }
59542   else
59543     enable_static=yes
59544     { echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
59545echo "${ECHO_T}no shared library support -- will supply static library" >&6; }
59546   fi
59547   if test $enable_static = yes; then
59548     LIBSMBSHAREMODES=libsmbsharemodes
59549  fi
59550  INSTALL_LIBSMBSHAREMODES=installlibsmbsharemodes
59551
59552fi
59553
59554
59555#################################################
59556# these tests are taken from the GNU fileutils package
59557{ echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
59558echo "$as_me: checking how to get filesystem space usage..." >&6;}
59559space=no
59560
59561# Test for statvfs64.
59562if test $space = no; then
59563  # SVR4
59564  { echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
59565echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6; }
59566if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
59567  echo $ECHO_N "(cached) $ECHO_C" >&6
59568else
59569  if test "$cross_compiling" = yes; then
59570  fu_cv_sys_stat_statvfs64=cross
59571else
59572  cat >conftest.$ac_ext <<_ACEOF
59573/* confdefs.h.  */
59574_ACEOF
59575cat confdefs.h >>conftest.$ac_ext
59576cat >>conftest.$ac_ext <<_ACEOF
59577/* end confdefs.h.  */
59578
59579#if defined(HAVE_UNISTD_H)
59580#include <unistd.h>
59581#endif
59582#include <sys/types.h>
59583#include <sys/statvfs.h>
59584  main ()
59585  {
59586    struct statvfs64 fsd;
59587    exit (statvfs64 (".", &fsd));
59588  }
59589_ACEOF
59590rm -f conftest$ac_exeext
59591if { (ac_try="$ac_link"
59592case "(($ac_try" in
59593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59594  *) ac_try_echo=$ac_try;;
59595esac
59596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59597  (eval "$ac_link") 2>&5
59598  ac_status=$?
59599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59600  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59601  { (case "(($ac_try" in
59602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59603  *) ac_try_echo=$ac_try;;
59604esac
59605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59606  (eval "$ac_try") 2>&5
59607  ac_status=$?
59608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59609  (exit $ac_status); }; }; then
59610  fu_cv_sys_stat_statvfs64=yes
59611else
59612  echo "$as_me: program exited with status $ac_status" >&5
59613echo "$as_me: failed program was:" >&5
59614sed 's/^/| /' conftest.$ac_ext >&5
59615
59616( exit $ac_status )
59617fu_cv_sys_stat_statvfs64=no
59618fi
59619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59620fi
59621
59622
59623fi
59624{ echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
59625echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6; }
59626  if test $fu_cv_sys_stat_statvfs64 = yes; then
59627    space=yes
59628
59629cat >>confdefs.h <<\_ACEOF
59630#define STAT_STATVFS64 1
59631_ACEOF
59632
59633  fi
59634fi
59635
59636# Perform only the link test since it seems there are no variants of the
59637# statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
59638# because that got a false positive on SCO OSR5.  Adding the declaration
59639# of a `struct statvfs' causes this test to fail (as it should) on such
59640# systems.  That system is reported to work fine with STAT_STATFS4 which
59641# is what it gets when this test fails.
59642if test $space = no; then
59643  # SVR4
59644  { echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
59645echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6; }
59646if test "${fu_cv_sys_stat_statvfs+set}" = set; then
59647  echo $ECHO_N "(cached) $ECHO_C" >&6
59648else
59649  cat >conftest.$ac_ext <<_ACEOF
59650/* confdefs.h.  */
59651_ACEOF
59652cat confdefs.h >>conftest.$ac_ext
59653cat >>conftest.$ac_ext <<_ACEOF
59654/* end confdefs.h.  */
59655#include <sys/types.h>
59656#include <sys/statvfs.h>
59657int
59658main ()
59659{
59660struct statvfs fsd; statvfs (0, &fsd);
59661  ;
59662  return 0;
59663}
59664_ACEOF
59665rm -f conftest.$ac_objext conftest$ac_exeext
59666if { (ac_try="$ac_link"
59667case "(($ac_try" in
59668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59669  *) ac_try_echo=$ac_try;;
59670esac
59671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59672  (eval "$ac_link") 2>conftest.er1
59673  ac_status=$?
59674  grep -v '^ *+' conftest.er1 >conftest.err
59675  rm -f conftest.er1
59676  cat conftest.err >&5
59677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59678  (exit $ac_status); } && {
59679	 test -z "$ac_c_werror_flag" ||
59680	 test ! -s conftest.err
59681       } && test -s conftest$ac_exeext &&
59682       $as_test_x conftest$ac_exeext; then
59683  fu_cv_sys_stat_statvfs=yes
59684else
59685  echo "$as_me: failed program was:" >&5
59686sed 's/^/| /' conftest.$ac_ext >&5
59687
59688	fu_cv_sys_stat_statvfs=no
59689fi
59690
59691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59692      conftest$ac_exeext conftest.$ac_ext
59693fi
59694{ echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
59695echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
59696  if test $fu_cv_sys_stat_statvfs = yes; then
59697    space=yes
59698
59699cat >>confdefs.h <<\_ACEOF
59700#define STAT_STATVFS 1
59701_ACEOF
59702
59703  fi
59704fi
59705
59706# smbd/statvfs.c assumes that statvfs.f_fsid is an integer.
59707# This is not the case on ancient Linux systems.
59708
59709{ echo "$as_me:$LINENO: checking that statvfs.f_fsid is an integer" >&5
59710echo $ECHO_N "checking that statvfs.f_fsid is an integer... $ECHO_C" >&6; }
59711if test "${samba_cv_fsid_int+set}" = set; then
59712  echo $ECHO_N "(cached) $ECHO_C" >&6
59713else
59714
59715    cat >conftest.$ac_ext <<_ACEOF
59716/* confdefs.h.  */
59717_ACEOF
59718cat confdefs.h >>conftest.$ac_ext
59719cat >>conftest.$ac_ext <<_ACEOF
59720/* end confdefs.h.  */
59721#include <sys/statvfs.h>
59722int
59723main ()
59724{
59725struct statvfs buf; buf.f_fsid = 0
59726  ;
59727  return 0;
59728}
59729_ACEOF
59730rm -f conftest.$ac_objext
59731if { (ac_try="$ac_compile"
59732case "(($ac_try" in
59733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59734  *) ac_try_echo=$ac_try;;
59735esac
59736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59737  (eval "$ac_compile") 2>conftest.er1
59738  ac_status=$?
59739  grep -v '^ *+' conftest.er1 >conftest.err
59740  rm -f conftest.er1
59741  cat conftest.err >&5
59742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59743  (exit $ac_status); } && {
59744	 test -z "$ac_c_werror_flag" ||
59745	 test ! -s conftest.err
59746       } && test -s conftest.$ac_objext; then
59747  samba_cv_fsid_int=yes
59748else
59749  echo "$as_me: failed program was:" >&5
59750sed 's/^/| /' conftest.$ac_ext >&5
59751
59752	samba_cv_fsid_int=no
59753fi
59754
59755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59756fi
59757{ echo "$as_me:$LINENO: result: $samba_cv_fsid_int" >&5
59758echo "${ECHO_T}$samba_cv_fsid_int" >&6; }
59759if test x"$samba_cv_fsid_int" = x"yes"; then
59760
59761cat >>confdefs.h <<\_ACEOF
59762#define HAVE_FSID_INT 1
59763_ACEOF
59764
59765fi
59766
59767if test $space = no; then
59768  # DEC Alpha running OSF/1
59769  { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
59770echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
59771  if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
59772  echo $ECHO_N "(cached) $ECHO_C" >&6
59773else
59774  if test "$cross_compiling" = yes; then
59775  fu_cv_sys_stat_statfs3_osf1=no
59776else
59777  cat >conftest.$ac_ext <<_ACEOF
59778/* confdefs.h.  */
59779_ACEOF
59780cat confdefs.h >>conftest.$ac_ext
59781cat >>conftest.$ac_ext <<_ACEOF
59782/* end confdefs.h.  */
59783
59784#include <sys/param.h>
59785#include <sys/types.h>
59786#include <sys/mount.h>
59787  main ()
59788  {
59789    struct statfs fsd;
59790    fsd.f_fsize = 0;
59791    exit (statfs (".", &fsd, sizeof (struct statfs)));
59792  }
59793_ACEOF
59794rm -f conftest$ac_exeext
59795if { (ac_try="$ac_link"
59796case "(($ac_try" in
59797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59798  *) ac_try_echo=$ac_try;;
59799esac
59800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59801  (eval "$ac_link") 2>&5
59802  ac_status=$?
59803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59804  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59805  { (case "(($ac_try" in
59806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59807  *) ac_try_echo=$ac_try;;
59808esac
59809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59810  (eval "$ac_try") 2>&5
59811  ac_status=$?
59812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59813  (exit $ac_status); }; }; then
59814  fu_cv_sys_stat_statfs3_osf1=yes
59815else
59816  echo "$as_me: program exited with status $ac_status" >&5
59817echo "$as_me: failed program was:" >&5
59818sed 's/^/| /' conftest.$ac_ext >&5
59819
59820( exit $ac_status )
59821fu_cv_sys_stat_statfs3_osf1=no
59822fi
59823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59824fi
59825
59826
59827fi
59828
59829  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
59830echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
59831  if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
59832    space=yes
59833
59834cat >>confdefs.h <<\_ACEOF
59835#define STAT_STATFS3_OSF1 1
59836_ACEOF
59837
59838  fi
59839fi
59840
59841if test $space = no; then
59842# AIX
59843  { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
59844echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
59845  if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
59846  echo $ECHO_N "(cached) $ECHO_C" >&6
59847else
59848  if test "$cross_compiling" = yes; then
59849  fu_cv_sys_stat_statfs2_bsize=no
59850else
59851  cat >conftest.$ac_ext <<_ACEOF
59852/* confdefs.h.  */
59853_ACEOF
59854cat confdefs.h >>conftest.$ac_ext
59855cat >>conftest.$ac_ext <<_ACEOF
59856/* end confdefs.h.  */
59857
59858#ifdef HAVE_SYS_PARAM_H
59859#include <sys/param.h>
59860#endif
59861#ifdef HAVE_SYS_MOUNT_H
59862#include <sys/mount.h>
59863#endif
59864#ifdef HAVE_SYS_VFS_H
59865#include <sys/vfs.h>
59866#endif
59867  main ()
59868  {
59869  struct statfs fsd;
59870  fsd.f_bsize = 0;
59871  exit (statfs (".", &fsd));
59872  }
59873_ACEOF
59874rm -f conftest$ac_exeext
59875if { (ac_try="$ac_link"
59876case "(($ac_try" in
59877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59878  *) ac_try_echo=$ac_try;;
59879esac
59880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59881  (eval "$ac_link") 2>&5
59882  ac_status=$?
59883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59884  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59885  { (case "(($ac_try" in
59886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59887  *) ac_try_echo=$ac_try;;
59888esac
59889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59890  (eval "$ac_try") 2>&5
59891  ac_status=$?
59892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59893  (exit $ac_status); }; }; then
59894  fu_cv_sys_stat_statfs2_bsize=yes
59895else
59896  echo "$as_me: program exited with status $ac_status" >&5
59897echo "$as_me: failed program was:" >&5
59898sed 's/^/| /' conftest.$ac_ext >&5
59899
59900( exit $ac_status )
59901fu_cv_sys_stat_statfs2_bsize=no
59902fi
59903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59904fi
59905
59906
59907fi
59908
59909  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
59910echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
59911  if test $fu_cv_sys_stat_statfs2_bsize = yes; then
59912    space=yes
59913
59914cat >>confdefs.h <<\_ACEOF
59915#define STAT_STATFS2_BSIZE 1
59916_ACEOF
59917
59918  fi
59919fi
59920
59921if test $space = no; then
59922# SVR3
59923  { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
59924echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
59925  if test "${fu_cv_sys_stat_statfs4+set}" = set; then
59926  echo $ECHO_N "(cached) $ECHO_C" >&6
59927else
59928  if test "$cross_compiling" = yes; then
59929  fu_cv_sys_stat_statfs4=no
59930else
59931  cat >conftest.$ac_ext <<_ACEOF
59932/* confdefs.h.  */
59933_ACEOF
59934cat confdefs.h >>conftest.$ac_ext
59935cat >>conftest.$ac_ext <<_ACEOF
59936/* end confdefs.h.  */
59937#include <sys/types.h>
59938#include <sys/statfs.h>
59939  main ()
59940  {
59941  struct statfs fsd;
59942  exit (statfs (".", &fsd, sizeof fsd, 0));
59943  }
59944_ACEOF
59945rm -f conftest$ac_exeext
59946if { (ac_try="$ac_link"
59947case "(($ac_try" in
59948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59949  *) ac_try_echo=$ac_try;;
59950esac
59951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59952  (eval "$ac_link") 2>&5
59953  ac_status=$?
59954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59955  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59956  { (case "(($ac_try" in
59957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59958  *) ac_try_echo=$ac_try;;
59959esac
59960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59961  (eval "$ac_try") 2>&5
59962  ac_status=$?
59963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
59964  (exit $ac_status); }; }; then
59965  fu_cv_sys_stat_statfs4=yes
59966else
59967  echo "$as_me: program exited with status $ac_status" >&5
59968echo "$as_me: failed program was:" >&5
59969sed 's/^/| /' conftest.$ac_ext >&5
59970
59971( exit $ac_status )
59972fu_cv_sys_stat_statfs4=no
59973fi
59974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59975fi
59976
59977
59978fi
59979
59980  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
59981echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
59982  if test $fu_cv_sys_stat_statfs4 = yes; then
59983    space=yes
59984
59985cat >>confdefs.h <<\_ACEOF
59986#define STAT_STATFS4 1
59987_ACEOF
59988
59989  fi
59990fi
59991
59992if test $space = no; then
59993# 4.4BSD and NetBSD
59994  { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
59995echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
59996  if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
59997  echo $ECHO_N "(cached) $ECHO_C" >&6
59998else
59999  if test "$cross_compiling" = yes; then
60000  fu_cv_sys_stat_statfs2_fsize=no
60001else
60002  cat >conftest.$ac_ext <<_ACEOF
60003/* confdefs.h.  */
60004_ACEOF
60005cat confdefs.h >>conftest.$ac_ext
60006cat >>conftest.$ac_ext <<_ACEOF
60007/* end confdefs.h.  */
60008#include <sys/types.h>
60009#ifdef HAVE_SYS_PARAM_H
60010#include <sys/param.h>
60011#endif
60012#ifdef HAVE_SYS_MOUNT_H
60013#include <sys/mount.h>
60014#endif
60015  main ()
60016  {
60017  struct statfs fsd;
60018  fsd.f_fsize = 0;
60019  exit (statfs (".", &fsd));
60020  }
60021_ACEOF
60022rm -f conftest$ac_exeext
60023if { (ac_try="$ac_link"
60024case "(($ac_try" in
60025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60026  *) ac_try_echo=$ac_try;;
60027esac
60028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60029  (eval "$ac_link") 2>&5
60030  ac_status=$?
60031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60032  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
60033  { (case "(($ac_try" in
60034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60035  *) ac_try_echo=$ac_try;;
60036esac
60037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60038  (eval "$ac_try") 2>&5
60039  ac_status=$?
60040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60041  (exit $ac_status); }; }; then
60042  fu_cv_sys_stat_statfs2_fsize=yes
60043else
60044  echo "$as_me: program exited with status $ac_status" >&5
60045echo "$as_me: failed program was:" >&5
60046sed 's/^/| /' conftest.$ac_ext >&5
60047
60048( exit $ac_status )
60049fu_cv_sys_stat_statfs2_fsize=no
60050fi
60051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
60052fi
60053
60054
60055fi
60056
60057  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
60058echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
60059  if test $fu_cv_sys_stat_statfs2_fsize = yes; then
60060    space=yes
60061
60062cat >>confdefs.h <<\_ACEOF
60063#define STAT_STATFS2_FSIZE 1
60064_ACEOF
60065
60066  fi
60067fi
60068
60069if test $space = no; then
60070  # Ultrix
60071  { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
60072echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
60073  if test "${fu_cv_sys_stat_fs_data+set}" = set; then
60074  echo $ECHO_N "(cached) $ECHO_C" >&6
60075else
60076  if test "$cross_compiling" = yes; then
60077  fu_cv_sys_stat_fs_data=no
60078else
60079  cat >conftest.$ac_ext <<_ACEOF
60080/* confdefs.h.  */
60081_ACEOF
60082cat confdefs.h >>conftest.$ac_ext
60083cat >>conftest.$ac_ext <<_ACEOF
60084/* end confdefs.h.  */
60085#include <sys/types.h>
60086#ifdef HAVE_SYS_PARAM_H
60087#include <sys/param.h>
60088#endif
60089#ifdef HAVE_SYS_MOUNT_H
60090#include <sys/mount.h>
60091#endif
60092#ifdef HAVE_SYS_FS_TYPES_H
60093#include <sys/fs_types.h>
60094#endif
60095  main ()
60096  {
60097  struct fs_data fsd;
60098  /* Ultrix's statfs returns 1 for success,
60099     0 for not mounted, -1 for failure.  */
60100  exit (statfs (".", &fsd) != 1);
60101  }
60102_ACEOF
60103rm -f conftest$ac_exeext
60104if { (ac_try="$ac_link"
60105case "(($ac_try" in
60106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60107  *) ac_try_echo=$ac_try;;
60108esac
60109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60110  (eval "$ac_link") 2>&5
60111  ac_status=$?
60112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60113  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
60114  { (case "(($ac_try" in
60115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60116  *) ac_try_echo=$ac_try;;
60117esac
60118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60119  (eval "$ac_try") 2>&5
60120  ac_status=$?
60121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60122  (exit $ac_status); }; }; then
60123  fu_cv_sys_stat_fs_data=yes
60124else
60125  echo "$as_me: program exited with status $ac_status" >&5
60126echo "$as_me: failed program was:" >&5
60127sed 's/^/| /' conftest.$ac_ext >&5
60128
60129( exit $ac_status )
60130fu_cv_sys_stat_fs_data=no
60131fi
60132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
60133fi
60134
60135
60136fi
60137
60138  { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
60139echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
60140  if test $fu_cv_sys_stat_fs_data = yes; then
60141    space=yes
60142
60143cat >>confdefs.h <<\_ACEOF
60144#define STAT_STATFS2_FS_DATA 1
60145_ACEOF
60146
60147  fi
60148fi
60149
60150#
60151# As a gating factor for large file support, in order to
60152# use <4GB files we must have the following minimal support
60153# available.
60154# long long, and a 64 bit off_t or off64_t.
60155# If we don't have all of these then disable large
60156# file support.
60157#
60158{ echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
60159echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6; }
60160cat >conftest.$ac_ext <<_ACEOF
60161/* confdefs.h.  */
60162_ACEOF
60163cat confdefs.h >>conftest.$ac_ext
60164cat >>conftest.$ac_ext <<_ACEOF
60165/* end confdefs.h.  */
60166
60167#if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
60168#include <sys/types.h>
60169#else
60170__COMPILE_ERROR_
60171#endif
60172
60173int
60174main ()
60175{
60176int i
60177  ;
60178  return 0;
60179}
60180_ACEOF
60181rm -f conftest.$ac_objext
60182if { (ac_try="$ac_compile"
60183case "(($ac_try" in
60184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60185  *) ac_try_echo=$ac_try;;
60186esac
60187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60188  (eval "$ac_compile") 2>conftest.er1
60189  ac_status=$?
60190  grep -v '^ *+' conftest.er1 >conftest.err
60191  rm -f conftest.er1
60192  cat conftest.err >&5
60193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60194  (exit $ac_status); } && {
60195	 test -z "$ac_c_werror_flag" ||
60196	 test ! -s conftest.err
60197       } && test -s conftest.$ac_objext; then
60198  samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
60199else
60200  echo "$as_me: failed program was:" >&5
60201sed 's/^/| /' conftest.$ac_ext >&5
60202
60203	samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
60204fi
60205
60206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60207if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
60208
60209cat >>confdefs.h <<\_ACEOF
60210#define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
60211_ACEOF
60212
60213fi
60214{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
60215echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6; }
60216
60217#################################################
60218# check for cluster extensions
60219
60220{ echo "$as_me:$LINENO: checking whether to include cluster support" >&5
60221echo $ECHO_N "checking whether to include cluster support... $ECHO_C" >&6; }
60222
60223# Check whether --with-cluster-support was given.
60224if test "${with_cluster_support+set}" = set; then
60225  withval=$with_cluster_support;
60226fi
60227
60228if test "x$with_cluster_support" = "xyes"; then
60229
60230cat >>confdefs.h <<\_ACEOF
60231#define CLUSTER_SUPPORT 1
60232_ACEOF
60233
60234    { echo "$as_me:$LINENO: result: yes" >&5
60235echo "${ECHO_T}yes" >&6; }
60236else
60237    { echo "$as_me:$LINENO: result: no" >&5
60238echo "${ECHO_T}no" >&6; }
60239fi
60240
60241
60242#################################################
60243# check for ACL support
60244
60245{ echo "$as_me:$LINENO: checking whether to support ACLs" >&5
60246echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6; }
60247
60248# Check whether --with-acl-support was given.
60249if test "${with_acl_support+set}" = set; then
60250  withval=$with_acl_support;  case "$withval" in
60251  yes)
60252
60253	case "$host_os" in
60254	*sysv5*)
60255		{ echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
60256echo "${ECHO_T}Using UnixWare ACLs" >&6; }
60257
60258cat >>confdefs.h <<\_ACEOF
60259#define HAVE_UNIXWARE_ACLS 1
60260_ACEOF
60261
60262		default_static_modules="$default_static_modules vfs_solarisacl"
60263		;;
60264	*solaris*)
60265		{ echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
60266echo "${ECHO_T}Using solaris ACLs" >&6; }
60267
60268cat >>confdefs.h <<\_ACEOF
60269#define HAVE_SOLARIS_ACLS 1
60270_ACEOF
60271
60272		ACL_LIBS="$ACL_LIBS -lsec"
60273		default_static_modules="$default_static_modules vfs_solarisacl"
60274		;;
60275	*hpux*)
60276		{ echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
60277echo "${ECHO_T}Using HPUX ACLs" >&6; }
60278
60279cat >>confdefs.h <<\_ACEOF
60280#define HAVE_HPUX_ACLS 1
60281_ACEOF
60282
60283		default_static_modules="$default_static_modules vfs_hpuxacl"
60284		;;
60285	*irix*)
60286		{ echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
60287echo "${ECHO_T}Using IRIX ACLs" >&6; }
60288
60289cat >>confdefs.h <<\_ACEOF
60290#define HAVE_IRIX_ACLS 1
60291_ACEOF
60292
60293		default_static_modules="$default_static_modules vfs_irixacl"
60294		;;
60295	*aix*)
60296		{ echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
60297echo "${ECHO_T}Using AIX ACLs" >&6; }
60298
60299cat >>confdefs.h <<\_ACEOF
60300#define HAVE_AIX_ACLS 1
60301_ACEOF
60302
60303		default_static_modules="$default_static_modules vfs_aixacl"
60304		;;
60305	*osf*)
60306		{ echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
60307echo "${ECHO_T}Using Tru64 ACLs" >&6; }
60308
60309cat >>confdefs.h <<\_ACEOF
60310#define HAVE_TRU64_ACLS 1
60311_ACEOF
60312
60313		ACL_LIBS="$ACL_LIBS -lpacl"
60314		default_static_modules="$default_static_modules vfs_tru64acl"
60315		;;
60316	*freebsd[5-9]*)
60317		{ echo "$as_me:$LINENO: result: Using FreeBSD posix ACLs" >&5
60318echo "${ECHO_T}Using FreeBSD posix ACLs" >&6; }
60319
60320cat >>confdefs.h <<\_ACEOF
60321#define HAVE_POSIX_ACLS 1
60322_ACEOF
60323
60324
60325cat >>confdefs.h <<\_ACEOF
60326#define HAVE_ACL_GET_PERM_NP 1
60327_ACEOF
60328
60329		default_static_modules="$default_static_modules vfs_posixacl"
60330		;;
60331	*linux*)
60332		{ echo "$as_me:$LINENO: checking for getxattr in -lattr" >&5
60333echo $ECHO_N "checking for getxattr in -lattr... $ECHO_C" >&6; }
60334if test "${ac_cv_lib_attr_getxattr+set}" = set; then
60335  echo $ECHO_N "(cached) $ECHO_C" >&6
60336else
60337  ac_check_lib_save_LIBS=$LIBS
60338LIBS="-lattr  $LIBS"
60339cat >conftest.$ac_ext <<_ACEOF
60340/* confdefs.h.  */
60341_ACEOF
60342cat confdefs.h >>conftest.$ac_ext
60343cat >>conftest.$ac_ext <<_ACEOF
60344/* end confdefs.h.  */
60345
60346/* Override any GCC internal prototype to avoid an error.
60347   Use char because int might match the return type of a GCC
60348   builtin and then its argument prototype would still apply.  */
60349#ifdef __cplusplus
60350extern "C"
60351#endif
60352char getxattr ();
60353int
60354main ()
60355{
60356return getxattr ();
60357  ;
60358  return 0;
60359}
60360_ACEOF
60361rm -f conftest.$ac_objext conftest$ac_exeext
60362if { (ac_try="$ac_link"
60363case "(($ac_try" in
60364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60365  *) ac_try_echo=$ac_try;;
60366esac
60367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60368  (eval "$ac_link") 2>conftest.er1
60369  ac_status=$?
60370  grep -v '^ *+' conftest.er1 >conftest.err
60371  rm -f conftest.er1
60372  cat conftest.err >&5
60373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60374  (exit $ac_status); } && {
60375	 test -z "$ac_c_werror_flag" ||
60376	 test ! -s conftest.err
60377       } && test -s conftest$ac_exeext &&
60378       $as_test_x conftest$ac_exeext; then
60379  ac_cv_lib_attr_getxattr=yes
60380else
60381  echo "$as_me: failed program was:" >&5
60382sed 's/^/| /' conftest.$ac_ext >&5
60383
60384	ac_cv_lib_attr_getxattr=no
60385fi
60386
60387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60388      conftest$ac_exeext conftest.$ac_ext
60389LIBS=$ac_check_lib_save_LIBS
60390fi
60391{ echo "$as_me:$LINENO: result: $ac_cv_lib_attr_getxattr" >&5
60392echo "${ECHO_T}$ac_cv_lib_attr_getxattr" >&6; }
60393if test $ac_cv_lib_attr_getxattr = yes; then
60394  ACL_LIBS="$ACL_LIBS -lattr"
60395fi
60396
60397       		{ echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
60398echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
60399if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
60400  echo $ECHO_N "(cached) $ECHO_C" >&6
60401else
60402  ac_check_lib_save_LIBS=$LIBS
60403LIBS="-lacl  $LIBS"
60404cat >conftest.$ac_ext <<_ACEOF
60405/* confdefs.h.  */
60406_ACEOF
60407cat confdefs.h >>conftest.$ac_ext
60408cat >>conftest.$ac_ext <<_ACEOF
60409/* end confdefs.h.  */
60410
60411/* Override any GCC internal prototype to avoid an error.
60412   Use char because int might match the return type of a GCC
60413   builtin and then its argument prototype would still apply.  */
60414#ifdef __cplusplus
60415extern "C"
60416#endif
60417char acl_get_file ();
60418int
60419main ()
60420{
60421return acl_get_file ();
60422  ;
60423  return 0;
60424}
60425_ACEOF
60426rm -f conftest.$ac_objext conftest$ac_exeext
60427if { (ac_try="$ac_link"
60428case "(($ac_try" in
60429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60430  *) ac_try_echo=$ac_try;;
60431esac
60432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60433  (eval "$ac_link") 2>conftest.er1
60434  ac_status=$?
60435  grep -v '^ *+' conftest.er1 >conftest.err
60436  rm -f conftest.er1
60437  cat conftest.err >&5
60438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60439  (exit $ac_status); } && {
60440	 test -z "$ac_c_werror_flag" ||
60441	 test ! -s conftest.err
60442       } && test -s conftest$ac_exeext &&
60443       $as_test_x conftest$ac_exeext; then
60444  ac_cv_lib_acl_acl_get_file=yes
60445else
60446  echo "$as_me: failed program was:" >&5
60447sed 's/^/| /' conftest.$ac_ext >&5
60448
60449	ac_cv_lib_acl_acl_get_file=no
60450fi
60451
60452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60453      conftest$ac_exeext conftest.$ac_ext
60454LIBS=$ac_check_lib_save_LIBS
60455fi
60456{ echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
60457echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
60458if test $ac_cv_lib_acl_acl_get_file = yes; then
60459  ACL_LIBS="$ACL_LIBS -lacl"
60460fi
60461
60462		{ echo "$as_me:$LINENO: checking for ACL support" >&5
60463echo $ECHO_N "checking for ACL support... $ECHO_C" >&6; }
60464if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
60465  echo $ECHO_N "(cached) $ECHO_C" >&6
60466else
60467
60468			acl_LIBS=$LIBS
60469			LIBS="$LIBS -lacl"
60470			cat >conftest.$ac_ext <<_ACEOF
60471/* confdefs.h.  */
60472_ACEOF
60473cat confdefs.h >>conftest.$ac_ext
60474cat >>conftest.$ac_ext <<_ACEOF
60475/* end confdefs.h.  */
60476
60477				#include <sys/types.h>
60478				#include <sys/acl.h>
60479
60480int
60481main ()
60482{
60483
60484				acl_t acl;
60485				int entry_id;
60486				acl_entry_t *entry_p;
60487				return acl_get_entry(acl, entry_id, entry_p);
60488
60489  ;
60490  return 0;
60491}
60492_ACEOF
60493rm -f conftest.$ac_objext conftest$ac_exeext
60494if { (ac_try="$ac_link"
60495case "(($ac_try" in
60496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60497  *) ac_try_echo=$ac_try;;
60498esac
60499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60500  (eval "$ac_link") 2>conftest.er1
60501  ac_status=$?
60502  grep -v '^ *+' conftest.er1 >conftest.err
60503  rm -f conftest.er1
60504  cat conftest.err >&5
60505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60506  (exit $ac_status); } && {
60507	 test -z "$ac_c_werror_flag" ||
60508	 test ! -s conftest.err
60509       } && test -s conftest$ac_exeext &&
60510       $as_test_x conftest$ac_exeext; then
60511  samba_cv_HAVE_POSIX_ACLS=yes
60512else
60513  echo "$as_me: failed program was:" >&5
60514sed 's/^/| /' conftest.$ac_ext >&5
60515
60516	samba_cv_HAVE_POSIX_ACLS=no
60517fi
60518
60519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60520      conftest$ac_exeext conftest.$ac_ext
60521			LIBS=$acl_LIBS
60522
60523fi
60524{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
60525echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6; }
60526		if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
60527			{ echo "$as_me:$LINENO: result: Using posix ACLs" >&5
60528echo "${ECHO_T}Using posix ACLs" >&6; }
60529
60530cat >>confdefs.h <<\_ACEOF
60531#define HAVE_POSIX_ACLS 1
60532_ACEOF
60533
60534			{ echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
60535echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6; }
60536if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
60537  echo $ECHO_N "(cached) $ECHO_C" >&6
60538else
60539
60540				acl_LIBS=$LIBS
60541				LIBS="$LIBS -lacl"
60542				cat >conftest.$ac_ext <<_ACEOF
60543/* confdefs.h.  */
60544_ACEOF
60545cat confdefs.h >>conftest.$ac_ext
60546cat >>conftest.$ac_ext <<_ACEOF
60547/* end confdefs.h.  */
60548
60549					#include <sys/types.h>
60550					#include <sys/acl.h>
60551
60552int
60553main ()
60554{
60555
60556					acl_permset_t permset_d;
60557					acl_perm_t perm;
60558					return acl_get_perm_np(permset_d, perm);
60559
60560  ;
60561  return 0;
60562}
60563_ACEOF
60564rm -f conftest.$ac_objext conftest$ac_exeext
60565if { (ac_try="$ac_link"
60566case "(($ac_try" in
60567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60568  *) ac_try_echo=$ac_try;;
60569esac
60570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60571  (eval "$ac_link") 2>conftest.er1
60572  ac_status=$?
60573  grep -v '^ *+' conftest.er1 >conftest.err
60574  rm -f conftest.er1
60575  cat conftest.err >&5
60576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60577  (exit $ac_status); } && {
60578	 test -z "$ac_c_werror_flag" ||
60579	 test ! -s conftest.err
60580       } && test -s conftest$ac_exeext &&
60581       $as_test_x conftest$ac_exeext; then
60582  samba_cv_HAVE_ACL_GET_PERM_NP=yes
60583else
60584  echo "$as_me: failed program was:" >&5
60585sed 's/^/| /' conftest.$ac_ext >&5
60586
60587	samba_cv_HAVE_ACL_GET_PERM_NP=no
60588fi
60589
60590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60591      conftest$ac_exeext conftest.$ac_ext
60592				LIBS=$acl_LIBS
60593
60594fi
60595{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
60596echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
60597			if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
60598
60599cat >>confdefs.h <<\_ACEOF
60600#define HAVE_ACL_GET_PERM_NP 1
60601_ACEOF
60602
60603			fi
60604		fi
60605            ;;
60606         *)
60607		{ echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
60608echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
60609if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
60610  echo $ECHO_N "(cached) $ECHO_C" >&6
60611else
60612  ac_check_lib_save_LIBS=$LIBS
60613LIBS="-lacl  $LIBS"
60614cat >conftest.$ac_ext <<_ACEOF
60615/* confdefs.h.  */
60616_ACEOF
60617cat confdefs.h >>conftest.$ac_ext
60618cat >>conftest.$ac_ext <<_ACEOF
60619/* end confdefs.h.  */
60620
60621/* Override any GCC internal prototype to avoid an error.
60622   Use char because int might match the return type of a GCC
60623   builtin and then its argument prototype would still apply.  */
60624#ifdef __cplusplus
60625extern "C"
60626#endif
60627char acl_get_file ();
60628int
60629main ()
60630{
60631return acl_get_file ();
60632  ;
60633  return 0;
60634}
60635_ACEOF
60636rm -f conftest.$ac_objext conftest$ac_exeext
60637if { (ac_try="$ac_link"
60638case "(($ac_try" in
60639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60640  *) ac_try_echo=$ac_try;;
60641esac
60642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60643  (eval "$ac_link") 2>conftest.er1
60644  ac_status=$?
60645  grep -v '^ *+' conftest.er1 >conftest.err
60646  rm -f conftest.er1
60647  cat conftest.err >&5
60648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60649  (exit $ac_status); } && {
60650	 test -z "$ac_c_werror_flag" ||
60651	 test ! -s conftest.err
60652       } && test -s conftest$ac_exeext &&
60653       $as_test_x conftest$ac_exeext; then
60654  ac_cv_lib_acl_acl_get_file=yes
60655else
60656  echo "$as_me: failed program was:" >&5
60657sed 's/^/| /' conftest.$ac_ext >&5
60658
60659	ac_cv_lib_acl_acl_get_file=no
60660fi
60661
60662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60663      conftest$ac_exeext conftest.$ac_ext
60664LIBS=$ac_check_lib_save_LIBS
60665fi
60666{ echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
60667echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
60668if test $ac_cv_lib_acl_acl_get_file = yes; then
60669  ACL_LIBS="$ACL_LIBS -lacl"
60670fi
60671
60672		{ echo "$as_me:$LINENO: checking for ACL support" >&5
60673echo $ECHO_N "checking for ACL support... $ECHO_C" >&6; }
60674if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
60675  echo $ECHO_N "(cached) $ECHO_C" >&6
60676else
60677
60678			acl_LIBS=$LIBS
60679			LIBS="$LIBS -lacl"
60680			cat >conftest.$ac_ext <<_ACEOF
60681/* confdefs.h.  */
60682_ACEOF
60683cat confdefs.h >>conftest.$ac_ext
60684cat >>conftest.$ac_ext <<_ACEOF
60685/* end confdefs.h.  */
60686
60687				#include <sys/types.h>
60688				#include <sys/acl.h>
60689
60690int
60691main ()
60692{
60693
60694				acl_t acl;
60695				int entry_id;
60696				acl_entry_t *entry_p;
60697				return acl_get_entry( acl, entry_id, entry_p);
60698
60699  ;
60700  return 0;
60701}
60702_ACEOF
60703rm -f conftest.$ac_objext conftest$ac_exeext
60704if { (ac_try="$ac_link"
60705case "(($ac_try" in
60706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60707  *) ac_try_echo=$ac_try;;
60708esac
60709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60710  (eval "$ac_link") 2>conftest.er1
60711  ac_status=$?
60712  grep -v '^ *+' conftest.er1 >conftest.err
60713  rm -f conftest.er1
60714  cat conftest.err >&5
60715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60716  (exit $ac_status); } && {
60717	 test -z "$ac_c_werror_flag" ||
60718	 test ! -s conftest.err
60719       } && test -s conftest$ac_exeext &&
60720       $as_test_x conftest$ac_exeext; then
60721  samba_cv_HAVE_POSIX_ACLS=yes
60722else
60723  echo "$as_me: failed program was:" >&5
60724sed 's/^/| /' conftest.$ac_ext >&5
60725
60726	samba_cv_HAVE_POSIX_ACLS=no
60727fi
60728
60729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60730      conftest$ac_exeext conftest.$ac_ext
60731			LIBS=$acl_LIBS
60732
60733fi
60734{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
60735echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6; }
60736		if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
60737			{ echo "$as_me:$LINENO: result: Using posix ACLs" >&5
60738echo "${ECHO_T}Using posix ACLs" >&6; }
60739
60740cat >>confdefs.h <<\_ACEOF
60741#define HAVE_POSIX_ACLS 1
60742_ACEOF
60743
60744			{ echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
60745echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6; }
60746if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
60747  echo $ECHO_N "(cached) $ECHO_C" >&6
60748else
60749
60750				acl_LIBS=$LIBS
60751				LIBS="$LIBS -lacl"
60752				cat >conftest.$ac_ext <<_ACEOF
60753/* confdefs.h.  */
60754_ACEOF
60755cat confdefs.h >>conftest.$ac_ext
60756cat >>conftest.$ac_ext <<_ACEOF
60757/* end confdefs.h.  */
60758
60759					#include <sys/types.h>
60760					#include <sys/acl.h>
60761
60762int
60763main ()
60764{
60765
60766					acl_permset_t permset_d;
60767					acl_perm_t perm;
60768					return acl_get_perm_np( permset_d, perm);
60769
60770  ;
60771  return 0;
60772}
60773_ACEOF
60774rm -f conftest.$ac_objext conftest$ac_exeext
60775if { (ac_try="$ac_link"
60776case "(($ac_try" in
60777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60778  *) ac_try_echo=$ac_try;;
60779esac
60780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60781  (eval "$ac_link") 2>conftest.er1
60782  ac_status=$?
60783  grep -v '^ *+' conftest.er1 >conftest.err
60784  rm -f conftest.er1
60785  cat conftest.err >&5
60786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60787  (exit $ac_status); } && {
60788	 test -z "$ac_c_werror_flag" ||
60789	 test ! -s conftest.err
60790       } && test -s conftest$ac_exeext &&
60791       $as_test_x conftest$ac_exeext; then
60792  samba_cv_HAVE_ACL_GET_PERM_NP=yes
60793else
60794  echo "$as_me: failed program was:" >&5
60795sed 's/^/| /' conftest.$ac_ext >&5
60796
60797	samba_cv_HAVE_ACL_GET_PERM_NP=no
60798fi
60799
60800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60801      conftest$ac_exeext conftest.$ac_ext
60802				LIBS=$acl_LIBS
60803
60804fi
60805{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
60806echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
60807			if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
60808
60809cat >>confdefs.h <<\_ACEOF
60810#define HAVE_ACL_GET_PERM_NP 1
60811_ACEOF
60812
60813			fi
60814		fi
60815            ;;
60816        esac
60817        ;;
60818  *)
60819    { echo "$as_me:$LINENO: result: no" >&5
60820echo "${ECHO_T}no" >&6; }
60821
60822cat >>confdefs.h <<\_ACEOF
60823#define HAVE_NO_ACLS 1
60824_ACEOF
60825
60826    ;;
60827  esac
60828else
60829
60830cat >>confdefs.h <<\_ACEOF
60831#define HAVE_NO_ACLS 1
60832_ACEOF
60833
60834  { echo "$as_me:$LINENO: result: no" >&5
60835echo "${ECHO_T}no" >&6; }
60836
60837fi
60838
60839
60840if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
60841   default_static_modules="$default_static_modules vfs_posixacl"
60842fi
60843
60844#################################################
60845# check for AIO support
60846
60847{ echo "$as_me:$LINENO: checking whether to support asynchronous io" >&5
60848echo $ECHO_N "checking whether to support asynchronous io... $ECHO_C" >&6; }
60849
60850# Check whether --with-aio-support was given.
60851if test "${with_aio_support+set}" = set; then
60852  withval=$with_aio_support;  case "$withval" in
60853  yes)
60854
60855	{ echo "$as_me:$LINENO: result: yes" >&5
60856echo "${ECHO_T}yes" >&6; }
60857	case "$host_os" in
60858	*)
60859		AIO_LIBS=$LIBS
60860		{ echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
60861echo $ECHO_N "checking for aio_read in -lrt... $ECHO_C" >&6; }
60862if test "${ac_cv_lib_rt_aio_read+set}" = set; then
60863  echo $ECHO_N "(cached) $ECHO_C" >&6
60864else
60865  ac_check_lib_save_LIBS=$LIBS
60866LIBS="-lrt  $LIBS"
60867cat >conftest.$ac_ext <<_ACEOF
60868/* confdefs.h.  */
60869_ACEOF
60870cat confdefs.h >>conftest.$ac_ext
60871cat >>conftest.$ac_ext <<_ACEOF
60872/* end confdefs.h.  */
60873
60874/* Override any GCC internal prototype to avoid an error.
60875   Use char because int might match the return type of a GCC
60876   builtin and then its argument prototype would still apply.  */
60877#ifdef __cplusplus
60878extern "C"
60879#endif
60880char aio_read ();
60881int
60882main ()
60883{
60884return aio_read ();
60885  ;
60886  return 0;
60887}
60888_ACEOF
60889rm -f conftest.$ac_objext conftest$ac_exeext
60890if { (ac_try="$ac_link"
60891case "(($ac_try" in
60892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60893  *) ac_try_echo=$ac_try;;
60894esac
60895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60896  (eval "$ac_link") 2>conftest.er1
60897  ac_status=$?
60898  grep -v '^ *+' conftest.er1 >conftest.err
60899  rm -f conftest.er1
60900  cat conftest.err >&5
60901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60902  (exit $ac_status); } && {
60903	 test -z "$ac_c_werror_flag" ||
60904	 test ! -s conftest.err
60905       } && test -s conftest$ac_exeext &&
60906       $as_test_x conftest$ac_exeext; then
60907  ac_cv_lib_rt_aio_read=yes
60908else
60909  echo "$as_me: failed program was:" >&5
60910sed 's/^/| /' conftest.$ac_ext >&5
60911
60912	ac_cv_lib_rt_aio_read=no
60913fi
60914
60915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60916      conftest$ac_exeext conftest.$ac_ext
60917LIBS=$ac_check_lib_save_LIBS
60918fi
60919{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5
60920echo "${ECHO_T}$ac_cv_lib_rt_aio_read" >&6; }
60921if test $ac_cv_lib_rt_aio_read = yes; then
60922  AIO_LIBS="$LIBS -lrt"
60923fi
60924
60925		{ echo "$as_me:$LINENO: checking for aio_read in -laio" >&5
60926echo $ECHO_N "checking for aio_read in -laio... $ECHO_C" >&6; }
60927if test "${ac_cv_lib_aio_aio_read+set}" = set; then
60928  echo $ECHO_N "(cached) $ECHO_C" >&6
60929else
60930  ac_check_lib_save_LIBS=$LIBS
60931LIBS="-laio  $LIBS"
60932cat >conftest.$ac_ext <<_ACEOF
60933/* confdefs.h.  */
60934_ACEOF
60935cat confdefs.h >>conftest.$ac_ext
60936cat >>conftest.$ac_ext <<_ACEOF
60937/* end confdefs.h.  */
60938
60939/* Override any GCC internal prototype to avoid an error.
60940   Use char because int might match the return type of a GCC
60941   builtin and then its argument prototype would still apply.  */
60942#ifdef __cplusplus
60943extern "C"
60944#endif
60945char aio_read ();
60946int
60947main ()
60948{
60949return aio_read ();
60950  ;
60951  return 0;
60952}
60953_ACEOF
60954rm -f conftest.$ac_objext conftest$ac_exeext
60955if { (ac_try="$ac_link"
60956case "(($ac_try" in
60957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60958  *) ac_try_echo=$ac_try;;
60959esac
60960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60961  (eval "$ac_link") 2>conftest.er1
60962  ac_status=$?
60963  grep -v '^ *+' conftest.er1 >conftest.err
60964  rm -f conftest.er1
60965  cat conftest.err >&5
60966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
60967  (exit $ac_status); } && {
60968	 test -z "$ac_c_werror_flag" ||
60969	 test ! -s conftest.err
60970       } && test -s conftest$ac_exeext &&
60971       $as_test_x conftest$ac_exeext; then
60972  ac_cv_lib_aio_aio_read=yes
60973else
60974  echo "$as_me: failed program was:" >&5
60975sed 's/^/| /' conftest.$ac_ext >&5
60976
60977	ac_cv_lib_aio_aio_read=no
60978fi
60979
60980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60981      conftest$ac_exeext conftest.$ac_ext
60982LIBS=$ac_check_lib_save_LIBS
60983fi
60984{ echo "$as_me:$LINENO: result: $ac_cv_lib_aio_aio_read" >&5
60985echo "${ECHO_T}$ac_cv_lib_aio_aio_read" >&6; }
60986if test $ac_cv_lib_aio_aio_read = yes; then
60987  AIO_LIBS="$LIBS -laio"
60988fi
60989
60990		{ echo "$as_me:$LINENO: checking for asynchronous io support" >&5
60991echo $ECHO_N "checking for asynchronous io support... $ECHO_C" >&6; }
60992if test "${samba_cv_HAVE_AIO+set}" = set; then
60993  echo $ECHO_N "(cached) $ECHO_C" >&6
60994else
60995
60996		aio_LIBS=$LIBS
60997		LIBS=$AIO_LIBS
60998		cat >conftest.$ac_ext <<_ACEOF
60999/* confdefs.h.  */
61000_ACEOF
61001cat confdefs.h >>conftest.$ac_ext
61002cat >>conftest.$ac_ext <<_ACEOF
61003/* end confdefs.h.  */
61004#include <sys/types.h>
61005#include <aio.h>
61006int
61007main ()
61008{
61009 struct aiocb a; return aio_read(&a);
61010  ;
61011  return 0;
61012}
61013_ACEOF
61014rm -f conftest.$ac_objext conftest$ac_exeext
61015if { (ac_try="$ac_link"
61016case "(($ac_try" in
61017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61018  *) ac_try_echo=$ac_try;;
61019esac
61020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61021  (eval "$ac_link") 2>conftest.er1
61022  ac_status=$?
61023  grep -v '^ *+' conftest.er1 >conftest.err
61024  rm -f conftest.er1
61025  cat conftest.err >&5
61026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61027  (exit $ac_status); } && {
61028	 test -z "$ac_c_werror_flag" ||
61029	 test ! -s conftest.err
61030       } && test -s conftest$ac_exeext &&
61031       $as_test_x conftest$ac_exeext; then
61032  samba_cv_HAVE_AIO=yes
61033else
61034  echo "$as_me: failed program was:" >&5
61035sed 's/^/| /' conftest.$ac_ext >&5
61036
61037	samba_cv_HAVE_AIO=no
61038fi
61039
61040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61041      conftest$ac_exeext conftest.$ac_ext
61042		LIBS=$aio_LIBS
61043fi
61044{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_AIO" >&5
61045echo "${ECHO_T}$samba_cv_HAVE_AIO" >&6; }
61046		{ echo "$as_me:$LINENO: checking for 64-bit asynchronous io support" >&5
61047echo $ECHO_N "checking for 64-bit asynchronous io support... $ECHO_C" >&6; }
61048if test "${samba_cv_HAVE_AIO64+set}" = set; then
61049  echo $ECHO_N "(cached) $ECHO_C" >&6
61050else
61051
61052		aio_LIBS=$LIBS
61053		LIBS=$AIO_LIBS
61054		cat >conftest.$ac_ext <<_ACEOF
61055/* confdefs.h.  */
61056_ACEOF
61057cat confdefs.h >>conftest.$ac_ext
61058cat >>conftest.$ac_ext <<_ACEOF
61059/* end confdefs.h.  */
61060#include <sys/types.h>
61061#include <aio.h>
61062int
61063main ()
61064{
61065 struct aiocb64 a; return aio_read64(&a);
61066  ;
61067  return 0;
61068}
61069_ACEOF
61070rm -f conftest.$ac_objext conftest$ac_exeext
61071if { (ac_try="$ac_link"
61072case "(($ac_try" in
61073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61074  *) ac_try_echo=$ac_try;;
61075esac
61076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61077  (eval "$ac_link") 2>conftest.er1
61078  ac_status=$?
61079  grep -v '^ *+' conftest.er1 >conftest.err
61080  rm -f conftest.er1
61081  cat conftest.err >&5
61082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61083  (exit $ac_status); } && {
61084	 test -z "$ac_c_werror_flag" ||
61085	 test ! -s conftest.err
61086       } && test -s conftest$ac_exeext &&
61087       $as_test_x conftest$ac_exeext; then
61088  samba_cv_HAVE_AIO64=yes
61089else
61090  echo "$as_me: failed program was:" >&5
61091sed 's/^/| /' conftest.$ac_ext >&5
61092
61093	samba_cv_HAVE_AIO64=no
61094fi
61095
61096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61097      conftest$ac_exeext conftest.$ac_ext
61098		LIBS=$aio_LIBS
61099fi
61100{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_AIO64" >&5
61101echo "${ECHO_T}$samba_cv_HAVE_AIO64" >&6; }
61102		if test x"$samba_cv_HAVE_AIO64" = x"yes"; then
61103
61104cat >>confdefs.h <<\_ACEOF
61105#define HAVE_AIOCB64 1
61106_ACEOF
61107
61108
61109cat >>confdefs.h <<\_ACEOF
61110#define WITH_AIO 1
61111_ACEOF
61112
61113			LIBS=$AIO_LIBS
61114		elif test x"$samba_cv_HAVE_AIO" = x"yes"; then
61115
61116cat >>confdefs.h <<\_ACEOF
61117#define WITH_AIO 1
61118_ACEOF
61119
61120			LIBS=$AIO_LIBS
61121		fi
61122
61123		if test x"$samba_cv_HAVE_AIO" = x"yes"; then
61124			{ echo "$as_me:$LINENO: checking for aio_read" >&5
61125echo $ECHO_N "checking for aio_read... $ECHO_C" >&6; }
61126			cat >conftest.$ac_ext <<_ACEOF
61127#include <aio.h>
61128int main() { struct aiocb a; return aio_read(&a); }
61129_ACEOF
61130rm -f conftest.$ac_objext conftest$ac_exeext
61131if { (ac_try="$ac_link"
61132case "(($ac_try" in
61133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61134  *) ac_try_echo=$ac_try;;
61135esac
61136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61137  (eval "$ac_link") 2>conftest.er1
61138  ac_status=$?
61139  grep -v '^ *+' conftest.er1 >conftest.err
61140  rm -f conftest.er1
61141  cat conftest.err >&5
61142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61143  (exit $ac_status); } && {
61144	 test -z "$ac_c_werror_flag" ||
61145	 test ! -s conftest.err
61146       } && test -s conftest$ac_exeext &&
61147       $as_test_x conftest$ac_exeext; then
61148
61149cat >>confdefs.h <<\_ACEOF
61150#define HAVE_AIO_READ 1
61151_ACEOF
61152 { echo "$as_me:$LINENO: result: yes" >&5
61153echo "${ECHO_T}yes" >&6; }
61154else
61155  echo "$as_me: failed program was:" >&5
61156sed 's/^/| /' conftest.$ac_ext >&5
61157
61158	{ echo "$as_me:$LINENO: result: no" >&5
61159echo "${ECHO_T}no" >&6; }
61160fi
61161
61162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61163      conftest$ac_exeext conftest.$ac_ext
61164
61165			{ echo "$as_me:$LINENO: checking for aio_write" >&5
61166echo $ECHO_N "checking for aio_write... $ECHO_C" >&6; }
61167			cat >conftest.$ac_ext <<_ACEOF
61168#include <aio.h>
61169int main() { struct aiocb a; return aio_write(&a); }
61170_ACEOF
61171rm -f conftest.$ac_objext conftest$ac_exeext
61172if { (ac_try="$ac_link"
61173case "(($ac_try" in
61174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61175  *) ac_try_echo=$ac_try;;
61176esac
61177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61178  (eval "$ac_link") 2>conftest.er1
61179  ac_status=$?
61180  grep -v '^ *+' conftest.er1 >conftest.err
61181  rm -f conftest.er1
61182  cat conftest.err >&5
61183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61184  (exit $ac_status); } && {
61185	 test -z "$ac_c_werror_flag" ||
61186	 test ! -s conftest.err
61187       } && test -s conftest$ac_exeext &&
61188       $as_test_x conftest$ac_exeext; then
61189
61190cat >>confdefs.h <<\_ACEOF
61191#define HAVE_AIO_WRITE 1
61192_ACEOF
61193 { echo "$as_me:$LINENO: result: yes" >&5
61194echo "${ECHO_T}yes" >&6; }
61195else
61196  echo "$as_me: failed program was:" >&5
61197sed 's/^/| /' conftest.$ac_ext >&5
61198
61199	{ echo "$as_me:$LINENO: result: no" >&5
61200echo "${ECHO_T}no" >&6; }
61201fi
61202
61203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61204      conftest$ac_exeext conftest.$ac_ext
61205
61206			{ echo "$as_me:$LINENO: checking for aio_fsync" >&5
61207echo $ECHO_N "checking for aio_fsync... $ECHO_C" >&6; }
61208			cat >conftest.$ac_ext <<_ACEOF
61209#include <aio.h>
61210int main() { struct aiocb a; return aio_fsync(1, &a); }
61211_ACEOF
61212rm -f conftest.$ac_objext conftest$ac_exeext
61213if { (ac_try="$ac_link"
61214case "(($ac_try" in
61215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61216  *) ac_try_echo=$ac_try;;
61217esac
61218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61219  (eval "$ac_link") 2>conftest.er1
61220  ac_status=$?
61221  grep -v '^ *+' conftest.er1 >conftest.err
61222  rm -f conftest.er1
61223  cat conftest.err >&5
61224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61225  (exit $ac_status); } && {
61226	 test -z "$ac_c_werror_flag" ||
61227	 test ! -s conftest.err
61228       } && test -s conftest$ac_exeext &&
61229       $as_test_x conftest$ac_exeext; then
61230
61231cat >>confdefs.h <<\_ACEOF
61232#define HAVE_AIO_FSYNC 1
61233_ACEOF
61234 { echo "$as_me:$LINENO: result: yes" >&5
61235echo "${ECHO_T}yes" >&6; }
61236else
61237  echo "$as_me: failed program was:" >&5
61238sed 's/^/| /' conftest.$ac_ext >&5
61239
61240	{ echo "$as_me:$LINENO: result: no" >&5
61241echo "${ECHO_T}no" >&6; }
61242fi
61243
61244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61245      conftest$ac_exeext conftest.$ac_ext
61246
61247			{ echo "$as_me:$LINENO: checking for aio_return" >&5
61248echo $ECHO_N "checking for aio_return... $ECHO_C" >&6; }
61249			cat >conftest.$ac_ext <<_ACEOF
61250#include <aio.h>
61251int main() { struct aiocb a; return aio_return(&a); }
61252_ACEOF
61253rm -f conftest.$ac_objext conftest$ac_exeext
61254if { (ac_try="$ac_link"
61255case "(($ac_try" in
61256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61257  *) ac_try_echo=$ac_try;;
61258esac
61259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61260  (eval "$ac_link") 2>conftest.er1
61261  ac_status=$?
61262  grep -v '^ *+' conftest.er1 >conftest.err
61263  rm -f conftest.er1
61264  cat conftest.err >&5
61265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61266  (exit $ac_status); } && {
61267	 test -z "$ac_c_werror_flag" ||
61268	 test ! -s conftest.err
61269       } && test -s conftest$ac_exeext &&
61270       $as_test_x conftest$ac_exeext; then
61271
61272cat >>confdefs.h <<\_ACEOF
61273#define HAVE_AIO_RETURN 1
61274_ACEOF
61275 { echo "$as_me:$LINENO: result: yes" >&5
61276echo "${ECHO_T}yes" >&6; }
61277else
61278  echo "$as_me: failed program was:" >&5
61279sed 's/^/| /' conftest.$ac_ext >&5
61280
61281	{ echo "$as_me:$LINENO: result: no" >&5
61282echo "${ECHO_T}no" >&6; }
61283fi
61284
61285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61286      conftest$ac_exeext conftest.$ac_ext
61287
61288			{ echo "$as_me:$LINENO: checking for aio_error" >&5
61289echo $ECHO_N "checking for aio_error... $ECHO_C" >&6; }
61290			cat >conftest.$ac_ext <<_ACEOF
61291#include <aio.h>
61292int main() { struct aiocb a; return aio_error(&a); }
61293_ACEOF
61294rm -f conftest.$ac_objext conftest$ac_exeext
61295if { (ac_try="$ac_link"
61296case "(($ac_try" in
61297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61298  *) ac_try_echo=$ac_try;;
61299esac
61300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61301  (eval "$ac_link") 2>conftest.er1
61302  ac_status=$?
61303  grep -v '^ *+' conftest.er1 >conftest.err
61304  rm -f conftest.er1
61305  cat conftest.err >&5
61306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61307  (exit $ac_status); } && {
61308	 test -z "$ac_c_werror_flag" ||
61309	 test ! -s conftest.err
61310       } && test -s conftest$ac_exeext &&
61311       $as_test_x conftest$ac_exeext; then
61312
61313cat >>confdefs.h <<\_ACEOF
61314#define HAVE_AIO_ERROR 1
61315_ACEOF
61316 { echo "$as_me:$LINENO: result: yes" >&5
61317echo "${ECHO_T}yes" >&6; }
61318else
61319  echo "$as_me: failed program was:" >&5
61320sed 's/^/| /' conftest.$ac_ext >&5
61321
61322	{ echo "$as_me:$LINENO: result: no" >&5
61323echo "${ECHO_T}no" >&6; }
61324fi
61325
61326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61327      conftest$ac_exeext conftest.$ac_ext
61328
61329			{ echo "$as_me:$LINENO: checking for aio_cancel" >&5
61330echo $ECHO_N "checking for aio_cancel... $ECHO_C" >&6; }
61331			cat >conftest.$ac_ext <<_ACEOF
61332#include <aio.h>
61333int main() { struct aiocb a; return aio_cancel(1, &a); }
61334_ACEOF
61335rm -f conftest.$ac_objext conftest$ac_exeext
61336if { (ac_try="$ac_link"
61337case "(($ac_try" in
61338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61339  *) ac_try_echo=$ac_try;;
61340esac
61341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61342  (eval "$ac_link") 2>conftest.er1
61343  ac_status=$?
61344  grep -v '^ *+' conftest.er1 >conftest.err
61345  rm -f conftest.er1
61346  cat conftest.err >&5
61347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61348  (exit $ac_status); } && {
61349	 test -z "$ac_c_werror_flag" ||
61350	 test ! -s conftest.err
61351       } && test -s conftest$ac_exeext &&
61352       $as_test_x conftest$ac_exeext; then
61353
61354cat >>confdefs.h <<\_ACEOF
61355#define HAVE_AIO_CANCEL 1
61356_ACEOF
61357 { echo "$as_me:$LINENO: result: yes" >&5
61358echo "${ECHO_T}yes" >&6; }
61359else
61360  echo "$as_me: failed program was:" >&5
61361sed 's/^/| /' conftest.$ac_ext >&5
61362
61363	{ echo "$as_me:$LINENO: result: no" >&5
61364echo "${ECHO_T}no" >&6; }
61365fi
61366
61367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61368      conftest$ac_exeext conftest.$ac_ext
61369
61370			{ echo "$as_me:$LINENO: checking for aio_suspend" >&5
61371echo $ECHO_N "checking for aio_suspend... $ECHO_C" >&6; }
61372			cat >conftest.$ac_ext <<_ACEOF
61373#include <aio.h>
61374int main() { struct aiocb a; return aio_suspend(&a, 1, NULL); }
61375_ACEOF
61376rm -f conftest.$ac_objext conftest$ac_exeext
61377if { (ac_try="$ac_link"
61378case "(($ac_try" in
61379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61380  *) ac_try_echo=$ac_try;;
61381esac
61382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61383  (eval "$ac_link") 2>conftest.er1
61384  ac_status=$?
61385  grep -v '^ *+' conftest.er1 >conftest.err
61386  rm -f conftest.er1
61387  cat conftest.err >&5
61388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61389  (exit $ac_status); } && {
61390	 test -z "$ac_c_werror_flag" ||
61391	 test ! -s conftest.err
61392       } && test -s conftest$ac_exeext &&
61393       $as_test_x conftest$ac_exeext; then
61394
61395cat >>confdefs.h <<\_ACEOF
61396#define HAVE_AIO_SUSPEND 1
61397_ACEOF
61398 { echo "$as_me:$LINENO: result: yes" >&5
61399echo "${ECHO_T}yes" >&6; }
61400else
61401  echo "$as_me: failed program was:" >&5
61402sed 's/^/| /' conftest.$ac_ext >&5
61403
61404	{ echo "$as_me:$LINENO: result: no" >&5
61405echo "${ECHO_T}no" >&6; }
61406fi
61407
61408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61409      conftest$ac_exeext conftest.$ac_ext
61410		fi
61411
61412		if test x"$samba_cv_HAVE_AIO64" = x"yes"; then
61413			{ echo "$as_me:$LINENO: checking for aio_read64" >&5
61414echo $ECHO_N "checking for aio_read64... $ECHO_C" >&6; }
61415			cat >conftest.$ac_ext <<_ACEOF
61416#include <aio.h>
61417int main() { struct aiocb a; return aio_read64(&a); }
61418_ACEOF
61419rm -f conftest.$ac_objext conftest$ac_exeext
61420if { (ac_try="$ac_link"
61421case "(($ac_try" in
61422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61423  *) ac_try_echo=$ac_try;;
61424esac
61425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61426  (eval "$ac_link") 2>conftest.er1
61427  ac_status=$?
61428  grep -v '^ *+' conftest.er1 >conftest.err
61429  rm -f conftest.er1
61430  cat conftest.err >&5
61431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61432  (exit $ac_status); } && {
61433	 test -z "$ac_c_werror_flag" ||
61434	 test ! -s conftest.err
61435       } && test -s conftest$ac_exeext &&
61436       $as_test_x conftest$ac_exeext; then
61437
61438cat >>confdefs.h <<\_ACEOF
61439#define HAVE_AIO_READ64 1
61440_ACEOF
61441 { echo "$as_me:$LINENO: result: yes" >&5
61442echo "${ECHO_T}yes" >&6; }
61443else
61444  echo "$as_me: failed program was:" >&5
61445sed 's/^/| /' conftest.$ac_ext >&5
61446
61447	{ echo "$as_me:$LINENO: result: no" >&5
61448echo "${ECHO_T}no" >&6; }
61449fi
61450
61451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61452      conftest$ac_exeext conftest.$ac_ext
61453
61454			{ echo "$as_me:$LINENO: checking for aio_write64" >&5
61455echo $ECHO_N "checking for aio_write64... $ECHO_C" >&6; }
61456			cat >conftest.$ac_ext <<_ACEOF
61457#include <aio.h>
61458int main() { struct aiocb a; return aio_write64(&a); }
61459_ACEOF
61460rm -f conftest.$ac_objext conftest$ac_exeext
61461if { (ac_try="$ac_link"
61462case "(($ac_try" in
61463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61464  *) ac_try_echo=$ac_try;;
61465esac
61466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61467  (eval "$ac_link") 2>conftest.er1
61468  ac_status=$?
61469  grep -v '^ *+' conftest.er1 >conftest.err
61470  rm -f conftest.er1
61471  cat conftest.err >&5
61472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61473  (exit $ac_status); } && {
61474	 test -z "$ac_c_werror_flag" ||
61475	 test ! -s conftest.err
61476       } && test -s conftest$ac_exeext &&
61477       $as_test_x conftest$ac_exeext; then
61478
61479cat >>confdefs.h <<\_ACEOF
61480#define HAVE_AIO_WRITE64 1
61481_ACEOF
61482 { echo "$as_me:$LINENO: result: yes" >&5
61483echo "${ECHO_T}yes" >&6; }
61484else
61485  echo "$as_me: failed program was:" >&5
61486sed 's/^/| /' conftest.$ac_ext >&5
61487
61488	{ echo "$as_me:$LINENO: result: no" >&5
61489echo "${ECHO_T}no" >&6; }
61490fi
61491
61492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61493      conftest$ac_exeext conftest.$ac_ext
61494
61495			{ echo "$as_me:$LINENO: checking for aio_fsync64" >&5
61496echo $ECHO_N "checking for aio_fsync64... $ECHO_C" >&6; }
61497			cat >conftest.$ac_ext <<_ACEOF
61498#include <aio.h>
61499int main() { struct aiocb a; return aio_fsync64(1, &a); }
61500_ACEOF
61501rm -f conftest.$ac_objext conftest$ac_exeext
61502if { (ac_try="$ac_link"
61503case "(($ac_try" in
61504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61505  *) ac_try_echo=$ac_try;;
61506esac
61507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61508  (eval "$ac_link") 2>conftest.er1
61509  ac_status=$?
61510  grep -v '^ *+' conftest.er1 >conftest.err
61511  rm -f conftest.er1
61512  cat conftest.err >&5
61513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61514  (exit $ac_status); } && {
61515	 test -z "$ac_c_werror_flag" ||
61516	 test ! -s conftest.err
61517       } && test -s conftest$ac_exeext &&
61518       $as_test_x conftest$ac_exeext; then
61519
61520cat >>confdefs.h <<\_ACEOF
61521#define HAVE_AIO_FSYNC64 1
61522_ACEOF
61523 { echo "$as_me:$LINENO: result: yes" >&5
61524echo "${ECHO_T}yes" >&6; }
61525else
61526  echo "$as_me: failed program was:" >&5
61527sed 's/^/| /' conftest.$ac_ext >&5
61528
61529	{ echo "$as_me:$LINENO: result: no" >&5
61530echo "${ECHO_T}no" >&6; }
61531fi
61532
61533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61534      conftest$ac_exeext conftest.$ac_ext
61535
61536			{ echo "$as_me:$LINENO: checking for aio_return64" >&5
61537echo $ECHO_N "checking for aio_return64... $ECHO_C" >&6; }
61538			cat >conftest.$ac_ext <<_ACEOF
61539#include <aio.h>
61540int main() { struct aiocb a; return aio_return64(&a); }
61541_ACEOF
61542rm -f conftest.$ac_objext conftest$ac_exeext
61543if { (ac_try="$ac_link"
61544case "(($ac_try" in
61545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61546  *) ac_try_echo=$ac_try;;
61547esac
61548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61549  (eval "$ac_link") 2>conftest.er1
61550  ac_status=$?
61551  grep -v '^ *+' conftest.er1 >conftest.err
61552  rm -f conftest.er1
61553  cat conftest.err >&5
61554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61555  (exit $ac_status); } && {
61556	 test -z "$ac_c_werror_flag" ||
61557	 test ! -s conftest.err
61558       } && test -s conftest$ac_exeext &&
61559       $as_test_x conftest$ac_exeext; then
61560
61561cat >>confdefs.h <<\_ACEOF
61562#define HAVE_AIO_RETURN64 1
61563_ACEOF
61564 { echo "$as_me:$LINENO: result: yes" >&5
61565echo "${ECHO_T}yes" >&6; }
61566else
61567  echo "$as_me: failed program was:" >&5
61568sed 's/^/| /' conftest.$ac_ext >&5
61569
61570	{ echo "$as_me:$LINENO: result: no" >&5
61571echo "${ECHO_T}no" >&6; }
61572fi
61573
61574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61575      conftest$ac_exeext conftest.$ac_ext
61576
61577			{ echo "$as_me:$LINENO: checking for aio_error64" >&5
61578echo $ECHO_N "checking for aio_error64... $ECHO_C" >&6; }
61579			cat >conftest.$ac_ext <<_ACEOF
61580#include <aio.h>
61581int main() { struct aiocb a; return aio_error64(&a); }
61582_ACEOF
61583rm -f conftest.$ac_objext conftest$ac_exeext
61584if { (ac_try="$ac_link"
61585case "(($ac_try" in
61586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61587  *) ac_try_echo=$ac_try;;
61588esac
61589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61590  (eval "$ac_link") 2>conftest.er1
61591  ac_status=$?
61592  grep -v '^ *+' conftest.er1 >conftest.err
61593  rm -f conftest.er1
61594  cat conftest.err >&5
61595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61596  (exit $ac_status); } && {
61597	 test -z "$ac_c_werror_flag" ||
61598	 test ! -s conftest.err
61599       } && test -s conftest$ac_exeext &&
61600       $as_test_x conftest$ac_exeext; then
61601
61602cat >>confdefs.h <<\_ACEOF
61603#define HAVE_AIO_ERROR64 1
61604_ACEOF
61605 { echo "$as_me:$LINENO: result: yes" >&5
61606echo "${ECHO_T}yes" >&6; }
61607else
61608  echo "$as_me: failed program was:" >&5
61609sed 's/^/| /' conftest.$ac_ext >&5
61610
61611	{ echo "$as_me:$LINENO: result: no" >&5
61612echo "${ECHO_T}no" >&6; }
61613fi
61614
61615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61616      conftest$ac_exeext conftest.$ac_ext
61617
61618			{ echo "$as_me:$LINENO: checking for aio_cancel64" >&5
61619echo $ECHO_N "checking for aio_cancel64... $ECHO_C" >&6; }
61620			cat >conftest.$ac_ext <<_ACEOF
61621#include <aio.h>
61622int main() { struct aiocb a; return aio_cancel64(1, &a); }
61623_ACEOF
61624rm -f conftest.$ac_objext conftest$ac_exeext
61625if { (ac_try="$ac_link"
61626case "(($ac_try" in
61627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61628  *) ac_try_echo=$ac_try;;
61629esac
61630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61631  (eval "$ac_link") 2>conftest.er1
61632  ac_status=$?
61633  grep -v '^ *+' conftest.er1 >conftest.err
61634  rm -f conftest.er1
61635  cat conftest.err >&5
61636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61637  (exit $ac_status); } && {
61638	 test -z "$ac_c_werror_flag" ||
61639	 test ! -s conftest.err
61640       } && test -s conftest$ac_exeext &&
61641       $as_test_x conftest$ac_exeext; then
61642
61643cat >>confdefs.h <<\_ACEOF
61644#define HAVE_AIO_CANCEL64 1
61645_ACEOF
61646 { echo "$as_me:$LINENO: result: yes" >&5
61647echo "${ECHO_T}yes" >&6; }
61648else
61649  echo "$as_me: failed program was:" >&5
61650sed 's/^/| /' conftest.$ac_ext >&5
61651
61652	{ echo "$as_me:$LINENO: result: no" >&5
61653echo "${ECHO_T}no" >&6; }
61654fi
61655
61656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61657      conftest$ac_exeext conftest.$ac_ext
61658
61659			{ echo "$as_me:$LINENO: checking for aio_suspend64" >&5
61660echo $ECHO_N "checking for aio_suspend64... $ECHO_C" >&6; }
61661			cat >conftest.$ac_ext <<_ACEOF
61662#include <aio.h>
61663int main() { struct aiocb a; return aio_suspend64(&a, 1, NULL); }
61664_ACEOF
61665rm -f conftest.$ac_objext conftest$ac_exeext
61666if { (ac_try="$ac_link"
61667case "(($ac_try" in
61668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61669  *) ac_try_echo=$ac_try;;
61670esac
61671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61672  (eval "$ac_link") 2>conftest.er1
61673  ac_status=$?
61674  grep -v '^ *+' conftest.er1 >conftest.err
61675  rm -f conftest.er1
61676  cat conftest.err >&5
61677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61678  (exit $ac_status); } && {
61679	 test -z "$ac_c_werror_flag" ||
61680	 test ! -s conftest.err
61681       } && test -s conftest$ac_exeext &&
61682       $as_test_x conftest$ac_exeext; then
61683
61684cat >>confdefs.h <<\_ACEOF
61685#define HAVE_AIO_SUSPEND64 1
61686_ACEOF
61687 { echo "$as_me:$LINENO: result: yes" >&5
61688echo "${ECHO_T}yes" >&6; }
61689else
61690  echo "$as_me: failed program was:" >&5
61691sed 's/^/| /' conftest.$ac_ext >&5
61692
61693	{ echo "$as_me:$LINENO: result: no" >&5
61694echo "${ECHO_T}no" >&6; }
61695fi
61696
61697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61698      conftest$ac_exeext conftest.$ac_ext
61699		fi
61700            ;;
61701        esac
61702        ;;
61703  *)
61704    { echo "$as_me:$LINENO: result: no" >&5
61705echo "${ECHO_T}no" >&6; }
61706
61707cat >>confdefs.h <<\_ACEOF
61708#define HAVE_NO_AIO 1
61709_ACEOF
61710
61711    ;;
61712  esac
61713else
61714
61715cat >>confdefs.h <<\_ACEOF
61716#define HAVE_NO_AIO 1
61717_ACEOF
61718
61719  { echo "$as_me:$LINENO: result: no" >&5
61720echo "${ECHO_T}no" >&6; }
61721
61722fi
61723
61724
61725#################################################
61726# check for sendfile support
61727
61728with_sendfile_support=yes
61729{ echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
61730echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6; }
61731
61732# Check whether --with-sendfile-support was given.
61733if test "${with_sendfile_support+set}" = set; then
61734  withval=$with_sendfile_support;  case "$withval" in
61735  yes)
61736
61737	{ echo "$as_me:$LINENO: result: yes" >&5
61738echo "${ECHO_T}yes" >&6; };
61739
61740	case "$host_os" in
61741	*linux*)
61742		{ echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
61743echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6; }
61744if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
61745  echo $ECHO_N "(cached) $ECHO_C" >&6
61746else
61747
61748		cat >conftest.$ac_ext <<_ACEOF
61749/* confdefs.h.  */
61750_ACEOF
61751cat confdefs.h >>conftest.$ac_ext
61752cat >>conftest.$ac_ext <<_ACEOF
61753/* end confdefs.h.  */
61754#include <sys/sendfile.h>
61755int
61756main ()
61757{
61758\
61759int tofd, fromfd;
61760off64_t offset;
61761size_t total;
61762ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
61763
61764  ;
61765  return 0;
61766}
61767_ACEOF
61768rm -f conftest.$ac_objext conftest$ac_exeext
61769if { (ac_try="$ac_link"
61770case "(($ac_try" in
61771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61772  *) ac_try_echo=$ac_try;;
61773esac
61774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61775  (eval "$ac_link") 2>conftest.er1
61776  ac_status=$?
61777  grep -v '^ *+' conftest.er1 >conftest.err
61778  rm -f conftest.er1
61779  cat conftest.err >&5
61780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61781  (exit $ac_status); } && {
61782	 test -z "$ac_c_werror_flag" ||
61783	 test ! -s conftest.err
61784       } && test -s conftest$ac_exeext &&
61785       $as_test_x conftest$ac_exeext; then
61786  samba_cv_HAVE_SENDFILE64=yes
61787else
61788  echo "$as_me: failed program was:" >&5
61789sed 's/^/| /' conftest.$ac_ext >&5
61790
61791	samba_cv_HAVE_SENDFILE64=no
61792fi
61793
61794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61795      conftest$ac_exeext conftest.$ac_ext
61796fi
61797{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
61798echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6; }
61799
61800		{ echo "$as_me:$LINENO: checking for linux sendfile support" >&5
61801echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6; }
61802if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
61803  echo $ECHO_N "(cached) $ECHO_C" >&6
61804else
61805
61806		cat >conftest.$ac_ext <<_ACEOF
61807/* confdefs.h.  */
61808_ACEOF
61809cat confdefs.h >>conftest.$ac_ext
61810cat >>conftest.$ac_ext <<_ACEOF
61811/* end confdefs.h.  */
61812#include <sys/sendfile.h>
61813int
61814main ()
61815{
61816\
61817int tofd, fromfd;
61818off_t offset;
61819size_t total;
61820ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
61821
61822  ;
61823  return 0;
61824}
61825_ACEOF
61826rm -f conftest.$ac_objext conftest$ac_exeext
61827if { (ac_try="$ac_link"
61828case "(($ac_try" in
61829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61830  *) ac_try_echo=$ac_try;;
61831esac
61832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61833  (eval "$ac_link") 2>conftest.er1
61834  ac_status=$?
61835  grep -v '^ *+' conftest.er1 >conftest.err
61836  rm -f conftest.er1
61837  cat conftest.err >&5
61838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61839  (exit $ac_status); } && {
61840	 test -z "$ac_c_werror_flag" ||
61841	 test ! -s conftest.err
61842       } && test -s conftest$ac_exeext &&
61843       $as_test_x conftest$ac_exeext; then
61844  samba_cv_HAVE_SENDFILE=yes
61845else
61846  echo "$as_me: failed program was:" >&5
61847sed 's/^/| /' conftest.$ac_ext >&5
61848
61849	samba_cv_HAVE_SENDFILE=no
61850fi
61851
61852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61853      conftest$ac_exeext conftest.$ac_ext
61854fi
61855{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
61856echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6; }
61857
61858# Try and cope with broken Linux sendfile....
61859		{ echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
61860echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6; }
61861if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
61862  echo $ECHO_N "(cached) $ECHO_C" >&6
61863else
61864
61865		cat >conftest.$ac_ext <<_ACEOF
61866/* confdefs.h.  */
61867_ACEOF
61868cat confdefs.h >>conftest.$ac_ext
61869cat >>conftest.$ac_ext <<_ACEOF
61870/* end confdefs.h.  */
61871\
61872#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
61873#undef _FILE_OFFSET_BITS
61874#endif
61875#include <sys/sendfile.h>
61876int
61877main ()
61878{
61879\
61880int tofd, fromfd;
61881off_t offset;
61882size_t total;
61883ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
61884
61885  ;
61886  return 0;
61887}
61888_ACEOF
61889rm -f conftest.$ac_objext conftest$ac_exeext
61890if { (ac_try="$ac_link"
61891case "(($ac_try" in
61892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61893  *) ac_try_echo=$ac_try;;
61894esac
61895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61896  (eval "$ac_link") 2>conftest.er1
61897  ac_status=$?
61898  grep -v '^ *+' conftest.er1 >conftest.err
61899  rm -f conftest.er1
61900  cat conftest.err >&5
61901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
61902  (exit $ac_status); } && {
61903	 test -z "$ac_c_werror_flag" ||
61904	 test ! -s conftest.err
61905       } && test -s conftest$ac_exeext &&
61906       $as_test_x conftest$ac_exeext; then
61907  samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
61908else
61909  echo "$as_me: failed program was:" >&5
61910sed 's/^/| /' conftest.$ac_ext >&5
61911
61912	samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
61913fi
61914
61915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61916      conftest$ac_exeext conftest.$ac_ext
61917fi
61918{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
61919echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6; }
61920
61921	if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
61922
61923cat >>confdefs.h <<\_ACEOF
61924#define HAVE_SENDFILE64 1
61925_ACEOF
61926
61927
61928cat >>confdefs.h <<\_ACEOF
61929#define LINUX_SENDFILE_API 1
61930_ACEOF
61931
61932
61933cat >>confdefs.h <<\_ACEOF
61934#define WITH_SENDFILE 1
61935_ACEOF
61936
61937	elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
61938
61939cat >>confdefs.h <<\_ACEOF
61940#define HAVE_SENDFILE 1
61941_ACEOF
61942
61943
61944cat >>confdefs.h <<\_ACEOF
61945#define LINUX_SENDFILE_API 1
61946_ACEOF
61947
61948
61949cat >>confdefs.h <<\_ACEOF
61950#define WITH_SENDFILE 1
61951_ACEOF
61952
61953	elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
61954
61955cat >>confdefs.h <<\_ACEOF
61956#define LINUX_BROKEN_SENDFILE_API 1
61957_ACEOF
61958
61959
61960cat >>confdefs.h <<\_ACEOF
61961#define WITH_SENDFILE 1
61962_ACEOF
61963
61964	else
61965		{ echo "$as_me:$LINENO: result: no" >&5
61966echo "${ECHO_T}no" >&6; };
61967	fi
61968
61969	;;
61970	*freebsd* | *dragonfly* )
61971		{ echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
61972echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6; }
61973if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
61974  echo $ECHO_N "(cached) $ECHO_C" >&6
61975else
61976
61977		cat >conftest.$ac_ext <<_ACEOF
61978/* confdefs.h.  */
61979_ACEOF
61980cat confdefs.h >>conftest.$ac_ext
61981cat >>conftest.$ac_ext <<_ACEOF
61982/* end confdefs.h.  */
61983\
61984#include <sys/types.h>
61985#include <unistd.h>
61986#include <sys/socket.h>
61987#include <sys/uio.h>
61988int
61989main ()
61990{
61991\
61992	int fromfd, tofd, ret, total=0;
61993	off_t offset, nwritten;
61994	struct sf_hdtr hdr;
61995	struct iovec hdtrl;
61996	hdr.headers = &hdtrl;
61997	hdr.hdr_cnt = 1;
61998	hdr.trailers = NULL;
61999	hdr.trl_cnt = 0;
62000	hdtrl.iov_base = NULL;
62001	hdtrl.iov_len = 0;
62002	ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
62003
62004  ;
62005  return 0;
62006}
62007_ACEOF
62008rm -f conftest.$ac_objext conftest$ac_exeext
62009if { (ac_try="$ac_link"
62010case "(($ac_try" in
62011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62012  *) ac_try_echo=$ac_try;;
62013esac
62014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62015  (eval "$ac_link") 2>conftest.er1
62016  ac_status=$?
62017  grep -v '^ *+' conftest.er1 >conftest.err
62018  rm -f conftest.er1
62019  cat conftest.err >&5
62020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62021  (exit $ac_status); } && {
62022	 test -z "$ac_c_werror_flag" ||
62023	 test ! -s conftest.err
62024       } && test -s conftest$ac_exeext &&
62025       $as_test_x conftest$ac_exeext; then
62026  samba_cv_HAVE_SENDFILE=yes
62027else
62028  echo "$as_me: failed program was:" >&5
62029sed 's/^/| /' conftest.$ac_ext >&5
62030
62031	samba_cv_HAVE_SENDFILE=no
62032fi
62033
62034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62035      conftest$ac_exeext conftest.$ac_ext
62036fi
62037{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
62038echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6; }
62039
62040	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
62041
62042cat >>confdefs.h <<\_ACEOF
62043#define HAVE_SENDFILE 1
62044_ACEOF
62045
62046
62047cat >>confdefs.h <<\_ACEOF
62048#define FREEBSD_SENDFILE_API 1
62049_ACEOF
62050
62051
62052cat >>confdefs.h <<\_ACEOF
62053#define WITH_SENDFILE 1
62054_ACEOF
62055
62056	else
62057		{ echo "$as_me:$LINENO: result: no" >&5
62058echo "${ECHO_T}no" >&6; };
62059	fi
62060	;;
62061
62062	*hpux*)
62063		{ echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
62064echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6; }
62065if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
62066  echo $ECHO_N "(cached) $ECHO_C" >&6
62067else
62068
62069		cat >conftest.$ac_ext <<_ACEOF
62070/* confdefs.h.  */
62071_ACEOF
62072cat confdefs.h >>conftest.$ac_ext
62073cat >>conftest.$ac_ext <<_ACEOF
62074/* end confdefs.h.  */
62075\
62076#include <sys/socket.h>
62077#include <sys/uio.h>
62078int
62079main ()
62080{
62081\
62082	int fromfd, tofd;
62083	size_t total=0;
62084	struct iovec hdtrl[2];
62085	ssize_t nwritten;
62086	off64_t offset;
62087
62088	hdtrl[0].iov_base = 0;
62089	hdtrl[0].iov_len = 0;
62090
62091	nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
62092
62093  ;
62094  return 0;
62095}
62096_ACEOF
62097rm -f conftest.$ac_objext conftest$ac_exeext
62098if { (ac_try="$ac_link"
62099case "(($ac_try" in
62100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62101  *) ac_try_echo=$ac_try;;
62102esac
62103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62104  (eval "$ac_link") 2>conftest.er1
62105  ac_status=$?
62106  grep -v '^ *+' conftest.er1 >conftest.err
62107  rm -f conftest.er1
62108  cat conftest.err >&5
62109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62110  (exit $ac_status); } && {
62111	 test -z "$ac_c_werror_flag" ||
62112	 test ! -s conftest.err
62113       } && test -s conftest$ac_exeext &&
62114       $as_test_x conftest$ac_exeext; then
62115  samba_cv_HAVE_SENDFILE64=yes
62116else
62117  echo "$as_me: failed program was:" >&5
62118sed 's/^/| /' conftest.$ac_ext >&5
62119
62120	samba_cv_HAVE_SENDFILE64=no
62121fi
62122
62123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62124      conftest$ac_exeext conftest.$ac_ext
62125fi
62126{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
62127echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6; }
62128	if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
62129
62130cat >>confdefs.h <<\_ACEOF
62131#define HAVE_SENDFILE64 1
62132_ACEOF
62133
62134
62135cat >>confdefs.h <<\_ACEOF
62136#define HPUX_SENDFILE_API 1
62137_ACEOF
62138
62139
62140cat >>confdefs.h <<\_ACEOF
62141#define WITH_SENDFILE 1
62142_ACEOF
62143
62144	else
62145		{ echo "$as_me:$LINENO: result: no" >&5
62146echo "${ECHO_T}no" >&6; };
62147	fi
62148
62149		{ echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
62150echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6; }
62151if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
62152  echo $ECHO_N "(cached) $ECHO_C" >&6
62153else
62154
62155		cat >conftest.$ac_ext <<_ACEOF
62156/* confdefs.h.  */
62157_ACEOF
62158cat confdefs.h >>conftest.$ac_ext
62159cat >>conftest.$ac_ext <<_ACEOF
62160/* end confdefs.h.  */
62161\
62162#include <sys/socket.h>
62163#include <sys/uio.h>
62164int
62165main ()
62166{
62167\
62168	int fromfd, tofd;
62169	size_t total=0;
62170	struct iovec hdtrl[2];
62171	ssize_t nwritten;
62172	off_t offset;
62173
62174	hdtrl[0].iov_base = 0;
62175	hdtrl[0].iov_len = 0;
62176
62177	nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
62178
62179  ;
62180  return 0;
62181}
62182_ACEOF
62183rm -f conftest.$ac_objext conftest$ac_exeext
62184if { (ac_try="$ac_link"
62185case "(($ac_try" in
62186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62187  *) ac_try_echo=$ac_try;;
62188esac
62189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62190  (eval "$ac_link") 2>conftest.er1
62191  ac_status=$?
62192  grep -v '^ *+' conftest.er1 >conftest.err
62193  rm -f conftest.er1
62194  cat conftest.err >&5
62195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62196  (exit $ac_status); } && {
62197	 test -z "$ac_c_werror_flag" ||
62198	 test ! -s conftest.err
62199       } && test -s conftest$ac_exeext &&
62200       $as_test_x conftest$ac_exeext; then
62201  samba_cv_HAVE_SENDFILE=yes
62202else
62203  echo "$as_me: failed program was:" >&5
62204sed 's/^/| /' conftest.$ac_ext >&5
62205
62206	samba_cv_HAVE_SENDFILE=no
62207fi
62208
62209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62210      conftest$ac_exeext conftest.$ac_ext
62211fi
62212{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
62213echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6; }
62214	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
62215
62216cat >>confdefs.h <<\_ACEOF
62217#define HAVE_SENDFILE 1
62218_ACEOF
62219
62220
62221cat >>confdefs.h <<\_ACEOF
62222#define HPUX_SENDFILE_API 1
62223_ACEOF
62224
62225
62226cat >>confdefs.h <<\_ACEOF
62227#define WITH_SENDFILE 1
62228_ACEOF
62229
62230	else
62231		{ echo "$as_me:$LINENO: result: no" >&5
62232echo "${ECHO_T}no" >&6; };
62233	fi
62234	;;
62235
62236	*solaris*)
62237
62238{ echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
62239echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6; }
62240if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
62241  echo $ECHO_N "(cached) $ECHO_C" >&6
62242else
62243  ac_check_lib_save_LIBS=$LIBS
62244LIBS="-lsendfile  $LIBS"
62245cat >conftest.$ac_ext <<_ACEOF
62246/* confdefs.h.  */
62247_ACEOF
62248cat confdefs.h >>conftest.$ac_ext
62249cat >>conftest.$ac_ext <<_ACEOF
62250/* end confdefs.h.  */
62251
62252/* Override any GCC internal prototype to avoid an error.
62253   Use char because int might match the return type of a GCC
62254   builtin and then its argument prototype would still apply.  */
62255#ifdef __cplusplus
62256extern "C"
62257#endif
62258char sendfilev ();
62259int
62260main ()
62261{
62262return sendfilev ();
62263  ;
62264  return 0;
62265}
62266_ACEOF
62267rm -f conftest.$ac_objext conftest$ac_exeext
62268if { (ac_try="$ac_link"
62269case "(($ac_try" in
62270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62271  *) ac_try_echo=$ac_try;;
62272esac
62273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62274  (eval "$ac_link") 2>conftest.er1
62275  ac_status=$?
62276  grep -v '^ *+' conftest.er1 >conftest.err
62277  rm -f conftest.er1
62278  cat conftest.err >&5
62279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62280  (exit $ac_status); } && {
62281	 test -z "$ac_c_werror_flag" ||
62282	 test ! -s conftest.err
62283       } && test -s conftest$ac_exeext &&
62284       $as_test_x conftest$ac_exeext; then
62285  ac_cv_lib_sendfile_sendfilev=yes
62286else
62287  echo "$as_me: failed program was:" >&5
62288sed 's/^/| /' conftest.$ac_ext >&5
62289
62290	ac_cv_lib_sendfile_sendfilev=no
62291fi
62292
62293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62294      conftest$ac_exeext conftest.$ac_ext
62295LIBS=$ac_check_lib_save_LIBS
62296fi
62297{ echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
62298echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6; }
62299if test $ac_cv_lib_sendfile_sendfilev = yes; then
62300  cat >>confdefs.h <<_ACEOF
62301#define HAVE_LIBSENDFILE 1
62302_ACEOF
62303
62304  LIBS="-lsendfile $LIBS"
62305
62306fi
62307
62308		{ echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
62309echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6; }
62310if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
62311  echo $ECHO_N "(cached) $ECHO_C" >&6
62312else
62313
62314		cat >conftest.$ac_ext <<_ACEOF
62315/* confdefs.h.  */
62316_ACEOF
62317cat confdefs.h >>conftest.$ac_ext
62318cat >>conftest.$ac_ext <<_ACEOF
62319/* end confdefs.h.  */
62320\
62321#include <sys/sendfile.h>
62322int
62323main ()
62324{
62325\
62326        int sfvcnt;
62327        size_t xferred;
62328        struct sendfilevec vec[2];
62329	ssize_t nwritten;
62330	int tofd;
62331
62332	sfvcnt = 2;
62333
62334	vec[0].sfv_fd = SFV_FD_SELF;
62335	vec[0].sfv_flag = 0;
62336	vec[0].sfv_off = 0;
62337	vec[0].sfv_len = 0;
62338
62339	vec[1].sfv_fd = 0;
62340	vec[1].sfv_flag = 0;
62341	vec[1].sfv_off = 0;
62342	vec[1].sfv_len = 0;
62343	nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
62344
62345  ;
62346  return 0;
62347}
62348_ACEOF
62349rm -f conftest.$ac_objext conftest$ac_exeext
62350if { (ac_try="$ac_link"
62351case "(($ac_try" in
62352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62353  *) ac_try_echo=$ac_try;;
62354esac
62355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62356  (eval "$ac_link") 2>conftest.er1
62357  ac_status=$?
62358  grep -v '^ *+' conftest.er1 >conftest.err
62359  rm -f conftest.er1
62360  cat conftest.err >&5
62361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62362  (exit $ac_status); } && {
62363	 test -z "$ac_c_werror_flag" ||
62364	 test ! -s conftest.err
62365       } && test -s conftest$ac_exeext &&
62366       $as_test_x conftest$ac_exeext; then
62367  samba_cv_HAVE_SENDFILEV64=yes
62368else
62369  echo "$as_me: failed program was:" >&5
62370sed 's/^/| /' conftest.$ac_ext >&5
62371
62372	samba_cv_HAVE_SENDFILEV64=no
62373fi
62374
62375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62376      conftest$ac_exeext conftest.$ac_ext
62377fi
62378{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
62379echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6; }
62380
62381	if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
62382
62383cat >>confdefs.h <<\_ACEOF
62384#define HAVE_SENDFILEV64 1
62385_ACEOF
62386
62387
62388cat >>confdefs.h <<\_ACEOF
62389#define SOLARIS_SENDFILE_API 1
62390_ACEOF
62391
62392
62393cat >>confdefs.h <<\_ACEOF
62394#define WITH_SENDFILE 1
62395_ACEOF
62396
62397	else
62398		{ echo "$as_me:$LINENO: result: no" >&5
62399echo "${ECHO_T}no" >&6; };
62400	fi
62401
62402		{ echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
62403echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6; }
62404if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
62405  echo $ECHO_N "(cached) $ECHO_C" >&6
62406else
62407
62408		cat >conftest.$ac_ext <<_ACEOF
62409/* confdefs.h.  */
62410_ACEOF
62411cat confdefs.h >>conftest.$ac_ext
62412cat >>conftest.$ac_ext <<_ACEOF
62413/* end confdefs.h.  */
62414\
62415#include <sys/sendfile.h>
62416int
62417main ()
62418{
62419\
62420        int sfvcnt;
62421        size_t xferred;
62422        struct sendfilevec vec[2];
62423	ssize_t nwritten;
62424	int tofd;
62425
62426	sfvcnt = 2;
62427
62428	vec[0].sfv_fd = SFV_FD_SELF;
62429	vec[0].sfv_flag = 0;
62430	vec[0].sfv_off = 0;
62431	vec[0].sfv_len = 0;
62432
62433	vec[1].sfv_fd = 0;
62434	vec[1].sfv_flag = 0;
62435	vec[1].sfv_off = 0;
62436	vec[1].sfv_len = 0;
62437	nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
62438
62439  ;
62440  return 0;
62441}
62442_ACEOF
62443rm -f conftest.$ac_objext conftest$ac_exeext
62444if { (ac_try="$ac_link"
62445case "(($ac_try" in
62446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62447  *) ac_try_echo=$ac_try;;
62448esac
62449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62450  (eval "$ac_link") 2>conftest.er1
62451  ac_status=$?
62452  grep -v '^ *+' conftest.er1 >conftest.err
62453  rm -f conftest.er1
62454  cat conftest.err >&5
62455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62456  (exit $ac_status); } && {
62457	 test -z "$ac_c_werror_flag" ||
62458	 test ! -s conftest.err
62459       } && test -s conftest$ac_exeext &&
62460       $as_test_x conftest$ac_exeext; then
62461  samba_cv_HAVE_SENDFILEV=yes
62462else
62463  echo "$as_me: failed program was:" >&5
62464sed 's/^/| /' conftest.$ac_ext >&5
62465
62466	samba_cv_HAVE_SENDFILEV=no
62467fi
62468
62469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62470      conftest$ac_exeext conftest.$ac_ext
62471fi
62472{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
62473echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6; }
62474
62475	if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
62476
62477cat >>confdefs.h <<\_ACEOF
62478#define HAVE_SENDFILEV 1
62479_ACEOF
62480
62481
62482cat >>confdefs.h <<\_ACEOF
62483#define SOLARIS_SENDFILE_API 1
62484_ACEOF
62485
62486
62487cat >>confdefs.h <<\_ACEOF
62488#define WITH_SENDFILE 1
62489_ACEOF
62490
62491	else
62492		{ echo "$as_me:$LINENO: result: no" >&5
62493echo "${ECHO_T}no" >&6; };
62494	fi
62495	;;
62496	*aix*)
62497		{ echo "$as_me:$LINENO: checking for AIX send_file support" >&5
62498echo $ECHO_N "checking for AIX send_file support... $ECHO_C" >&6; }
62499if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
62500  echo $ECHO_N "(cached) $ECHO_C" >&6
62501else
62502
62503		cat >conftest.$ac_ext <<_ACEOF
62504/* confdefs.h.  */
62505_ACEOF
62506cat confdefs.h >>conftest.$ac_ext
62507cat >>conftest.$ac_ext <<_ACEOF
62508/* end confdefs.h.  */
62509\
62510#include <sys/socket.h>
62511int
62512main ()
62513{
62514\
62515	int fromfd, tofd;
62516	size_t total=0;
62517	struct sf_parms hdtrl;
62518	ssize_t nwritten;
62519	off64_t offset;
62520
62521	hdtrl.header_data = 0;
62522	hdtrl.header_length = 0;
62523	hdtrl.file_descriptor = fromfd;
62524	hdtrl.file_offset = 0;
62525	hdtrl.file_bytes = 0;
62526	hdtrl.trailer_data = 0;
62527	hdtrl.trailer_length = 0;
62528
62529	nwritten = send_file(&tofd, &hdtrl, 0);
62530
62531  ;
62532  return 0;
62533}
62534_ACEOF
62535rm -f conftest.$ac_objext conftest$ac_exeext
62536if { (ac_try="$ac_link"
62537case "(($ac_try" in
62538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62539  *) ac_try_echo=$ac_try;;
62540esac
62541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62542  (eval "$ac_link") 2>conftest.er1
62543  ac_status=$?
62544  grep -v '^ *+' conftest.er1 >conftest.err
62545  rm -f conftest.er1
62546  cat conftest.err >&5
62547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62548  (exit $ac_status); } && {
62549	 test -z "$ac_c_werror_flag" ||
62550	 test ! -s conftest.err
62551       } && test -s conftest$ac_exeext &&
62552       $as_test_x conftest$ac_exeext; then
62553  samba_cv_HAVE_SENDFILE=yes
62554else
62555  echo "$as_me: failed program was:" >&5
62556sed 's/^/| /' conftest.$ac_ext >&5
62557
62558	samba_cv_HAVE_SENDFILE=no
62559fi
62560
62561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62562      conftest$ac_exeext conftest.$ac_ext
62563fi
62564{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
62565echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6; }
62566	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
62567
62568cat >>confdefs.h <<\_ACEOF
62569#define HAVE_SENDFILE 1
62570_ACEOF
62571
62572
62573cat >>confdefs.h <<\_ACEOF
62574#define AIX_SENDFILE_API 1
62575_ACEOF
62576
62577
62578cat >>confdefs.h <<\_ACEOF
62579#define WITH_SENDFILE 1
62580_ACEOF
62581
62582	else
62583		{ echo "$as_me:$LINENO: result: no" >&5
62584echo "${ECHO_T}no" >&6; };
62585	fi
62586	;;
62587	*)
62588	;;
62589        esac
62590        ;;
62591  *)
62592    { echo "$as_me:$LINENO: result: no" >&5
62593echo "${ECHO_T}no" >&6; }
62594    ;;
62595  esac
62596else
62597  { echo "$as_me:$LINENO: result: yes" >&5
62598echo "${ECHO_T}yes" >&6; }
62599
62600fi
62601
62602
62603############################################
62604# See if we have the Linux readahead syscall.
62605
62606{ echo "$as_me:$LINENO: checking for Linux readahead" >&5
62607echo $ECHO_N "checking for Linux readahead... $ECHO_C" >&6; }
62608if test "${samba_cv_HAVE_LINUX_READAHEAD+set}" = set; then
62609  echo $ECHO_N "(cached) $ECHO_C" >&6
62610else
62611
62612    cat >conftest.$ac_ext <<_ACEOF
62613/* confdefs.h.  */
62614_ACEOF
62615cat confdefs.h >>conftest.$ac_ext
62616cat >>conftest.$ac_ext <<_ACEOF
62617/* end confdefs.h.  */
62618
62619#if defined(HAVE_UNISTD_H)
62620#include <unistd.h>
62621#endif
62622#include <fcntl.h>
62623int
62624main ()
62625{
62626ssize_t err = readahead(0,0,0x80000);
62627  ;
62628  return 0;
62629}
62630_ACEOF
62631rm -f conftest.$ac_objext conftest$ac_exeext
62632if { (ac_try="$ac_link"
62633case "(($ac_try" in
62634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62635  *) ac_try_echo=$ac_try;;
62636esac
62637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62638  (eval "$ac_link") 2>conftest.er1
62639  ac_status=$?
62640  grep -v '^ *+' conftest.er1 >conftest.err
62641  rm -f conftest.er1
62642  cat conftest.err >&5
62643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62644  (exit $ac_status); } && {
62645	 test -z "$ac_c_werror_flag" ||
62646	 test ! -s conftest.err
62647       } && test -s conftest$ac_exeext &&
62648       $as_test_x conftest$ac_exeext; then
62649  samba_cv_HAVE_LINUX_READAHEAD=yes
62650else
62651  echo "$as_me: failed program was:" >&5
62652sed 's/^/| /' conftest.$ac_ext >&5
62653
62654	samba_cv_HAVE_LINUX_READAHEAD=no
62655fi
62656
62657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62658      conftest$ac_exeext conftest.$ac_ext
62659fi
62660{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_LINUX_READAHEAD" >&5
62661echo "${ECHO_T}$samba_cv_HAVE_LINUX_READAHEAD" >&6; }
62662
62663if test x"$samba_cv_HAVE_LINUX_READAHEAD" = x"yes"; then
62664
62665cat >>confdefs.h <<\_ACEOF
62666#define HAVE_LINUX_READAHEAD 1
62667_ACEOF
62668
62669fi
62670
62671############################################
62672# See if we have the posix_fadvise syscall.
62673
62674{ echo "$as_me:$LINENO: checking for posix_fadvise" >&5
62675echo $ECHO_N "checking for posix_fadvise... $ECHO_C" >&6; }
62676if test "${samba_cv_HAVE_POSIX_FADVISE+set}" = set; then
62677  echo $ECHO_N "(cached) $ECHO_C" >&6
62678else
62679
62680    cat >conftest.$ac_ext <<_ACEOF
62681/* confdefs.h.  */
62682_ACEOF
62683cat confdefs.h >>conftest.$ac_ext
62684cat >>conftest.$ac_ext <<_ACEOF
62685/* end confdefs.h.  */
62686
62687#if defined(HAVE_UNISTD_H)
62688#include <unistd.h>
62689#endif
62690#include <fcntl.h>
62691int
62692main ()
62693{
62694ssize_t err = posix_fadvise(0,0,0x80000,POSIX_FADV_WILLNEED);
62695  ;
62696  return 0;
62697}
62698_ACEOF
62699rm -f conftest.$ac_objext conftest$ac_exeext
62700if { (ac_try="$ac_link"
62701case "(($ac_try" in
62702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62703  *) ac_try_echo=$ac_try;;
62704esac
62705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62706  (eval "$ac_link") 2>conftest.er1
62707  ac_status=$?
62708  grep -v '^ *+' conftest.er1 >conftest.err
62709  rm -f conftest.er1
62710  cat conftest.err >&5
62711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62712  (exit $ac_status); } && {
62713	 test -z "$ac_c_werror_flag" ||
62714	 test ! -s conftest.err
62715       } && test -s conftest$ac_exeext &&
62716       $as_test_x conftest$ac_exeext; then
62717  samba_cv_HAVE_POSIX_FADVISE=yes
62718else
62719  echo "$as_me: failed program was:" >&5
62720sed 's/^/| /' conftest.$ac_ext >&5
62721
62722	samba_cv_HAVE_POSIX_FADVISE=no
62723fi
62724
62725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62726      conftest$ac_exeext conftest.$ac_ext
62727fi
62728{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_FADVISE" >&5
62729echo "${ECHO_T}$samba_cv_HAVE_POSIX_FADVISE" >&6; }
62730
62731if test x"$samba_cv_HAVE_POSIX_FADVISE" = x"yes"; then
62732
62733cat >>confdefs.h <<\_ACEOF
62734#define HAVE_POSIX_FADVISE 1
62735_ACEOF
62736
62737fi
62738
62739
62740
62741#################################################
62742# Check whether winbind is supported on this platform.  If so we need to
62743# build and install client programs, sbin programs and shared libraries
62744
62745{ echo "$as_me:$LINENO: checking whether to build winbind" >&5
62746echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6; }
62747
62748# Initially, the value of $host_os decides whether winbind is supported
62749
62750HAVE_WINBIND=yes
62751
62752# Define the winbind shared library name and any specific linker flags
62753# it needs to be built with.
62754
62755WINBIND_NSS="nsswitch/libnss_winbind.$SHLIBEXT"
62756WINBIND_WINS_NSS="nsswitch/libnss_wins.$SHLIBEXT"
62757WINBIND_NSS_LDSHFLAGS=$LDSHFLAGS
62758NSSSONAMEVERSIONSUFFIX=""
62759
62760SMB_KRB5_LOCATOR="bin/smb_krb5_locator.$SHLIBEXT"
62761
62762case "$host_os" in
62763	*linux*)
62764		NSSSONAMEVERSIONSUFFIX=".2"
62765		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
62766		;;
62767	*freebsd[5-9]*)
62768		# FreeBSD winbind client is implemented as a wrapper around
62769		# the Linux version.
62770		NSSSONAMEVERSIONSUFFIX=".1"
62771		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \
62772		    nsswitch/winbind_nss_linux.o"
62773		WINBIND_NSS="nsswitch/nss_winbind.$SHLIBEXT"
62774		WINBIND_WINS_NSS="nsswitch/nss_wins.$SHLIBEXT"
62775		;;
62776
62777	*netbsd*[3-9]*)
62778		# NetBSD winbind client is implemented as a wrapper
62779		# around the Linux version. It needs getpwent_r() to
62780		# indicate libc's use of the correct nsdispatch API.
62781		#
62782		if test x"$ac_cv_func_getpwent_r" = x"yes"; then
62783			WINBIND_NSS_EXTRA_OBJS="\
62784			    nsswitch/winbind_nss_netbsd.o \
62785			    nsswitch/winbind_nss_linux.o"
62786			WINBIND_NSS="nsswitch/nss_winbind.$SHLIBEXT"
62787			WINBIND_WINS_NSS="nsswitch/nss_wins.$SHLIBEXT"
62788		else
62789			HAVE_WINBIND=no
62790			winbind_no_reason=", getpwent_r is missing on $host_os so winbind is unsupported"
62791		fi
62792		;;
62793	*irix*)
62794		# IRIX has differently named shared libraries
62795		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_irix.o"
62796		WINBIND_NSS="nsswitch/libns_winbind.$SHLIBEXT"
62797		WINBIND_WINS_NSS="nsswitch/libns_wins.$SHLIBEXT"
62798		;;
62799	*solaris*)
62800		# Solaris winbind client is implemented as a wrapper around
62801		# the Linux version.
62802		NSSSONAMEVERSIONSUFFIX=".1"
62803		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o \
62804		    nsswitch/winbind_nss_linux.o"
62805		WINBIND_NSS_EXTRA_LIBS="-lsocket"
62806		;;
62807	*hpux11*)
62808		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
62809		;;
62810	*aix*)
62811		# AIX has even differently named shared libraries.  No
62812		# WINS support has been implemented yet.
62813		WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_aix.o"
62814		WINBIND_NSS_LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-ewb_aix_init"
62815		WINBIND_NSS="nsswitch/WINBIND"
62816		WINBIND_WINS_NSS=""
62817		;;
62818	*)
62819		HAVE_WINBIND=no
62820		winbind_no_reason=", unsupported on $host_os"
62821		;;
62822esac
62823
62824
62825
62826
62827
62828
62829
62830
62831
62832
62833# Check the setting of --with-winbind
62834
62835
62836# Check whether --with-winbind was given.
62837if test "${with_winbind+set}" = set; then
62838  withval=$with_winbind;
62839  case "$withval" in
62840	yes)
62841		HAVE_WINBIND=yes
62842		;;
62843        no)
62844		HAVE_WINBIND=no
62845                winbind_reason=""
62846                ;;
62847  esac
62848fi
62849
62850
62851# We need unix domain sockets for winbind
62852
62853if test x"$HAVE_WINBIND" = x"yes"; then
62854	if test x"$samba_cv_unixsocket" = x"no"; then
62855		winbind_no_reason=", no unix domain socket support on $host_os"
62856		HAVE_WINBIND=no
62857	fi
62858fi
62859
62860# Display test results
62861
62862if test x"$HAVE_WINBIND" = x"no"; then
62863	WINBIND_NSS=""
62864	WINBIND_WINS_NSS=""
62865fi
62866
62867if test $BLDSHARED = true -a x"$HAVE_WINBIND" = x"yes"; then
62868	NSS_MODULES="${WINBIND_NSS} ${WINBIND_WINS_NSS}"
62869fi
62870
62871if test x"$HAVE_WINBIND" = x"yes"; then
62872        { echo "$as_me:$LINENO: result: yes" >&5
62873echo "${ECHO_T}yes" >&6; }
62874
62875cat >>confdefs.h <<\_ACEOF
62876#define WITH_WINBIND 1
62877_ACEOF
62878
62879
62880	EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
62881	EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
62882        if test $BLDSHARED = true -a x"$create_pam_modules" = x"yes"; then
62883		PAM_MODULES="$PAM_MODULES pam_winbind"
62884		INSTALL_PAM_MODULES="installpammodules"
62885		UNINSTALL_PAM_MODULES="uninstallpammodules"
62886	fi
62887else
62888        { echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
62889echo "${ECHO_T}no$winbind_no_reason" >&6; }
62890fi
62891
62892# Solaris 10 does have new member in nss_XbyY_key
62893{ echo "$as_me:$LINENO: checking for union nss_XbyY_key.ipnode.af_family" >&5
62894echo $ECHO_N "checking for union nss_XbyY_key.ipnode.af_family... $ECHO_C" >&6; }
62895if test "${ac_cv_member_union_nss_XbyY_key_ipnode_af_family+set}" = set; then
62896  echo $ECHO_N "(cached) $ECHO_C" >&6
62897else
62898  cat >conftest.$ac_ext <<_ACEOF
62899/* confdefs.h.  */
62900_ACEOF
62901cat confdefs.h >>conftest.$ac_ext
62902cat >>conftest.$ac_ext <<_ACEOF
62903/* end confdefs.h.  */
62904#include <nss_dbdefs.h>
62905
62906int
62907main ()
62908{
62909static union nss_XbyY_key ac_aggr;
62910if (ac_aggr.ipnode.af_family)
62911return 0;
62912  ;
62913  return 0;
62914}
62915_ACEOF
62916rm -f conftest.$ac_objext
62917if { (ac_try="$ac_compile"
62918case "(($ac_try" in
62919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62920  *) ac_try_echo=$ac_try;;
62921esac
62922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62923  (eval "$ac_compile") 2>conftest.er1
62924  ac_status=$?
62925  grep -v '^ *+' conftest.er1 >conftest.err
62926  rm -f conftest.er1
62927  cat conftest.err >&5
62928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62929  (exit $ac_status); } && {
62930	 test -z "$ac_c_werror_flag" ||
62931	 test ! -s conftest.err
62932       } && test -s conftest.$ac_objext; then
62933  ac_cv_member_union_nss_XbyY_key_ipnode_af_family=yes
62934else
62935  echo "$as_me: failed program was:" >&5
62936sed 's/^/| /' conftest.$ac_ext >&5
62937
62938	cat >conftest.$ac_ext <<_ACEOF
62939/* confdefs.h.  */
62940_ACEOF
62941cat confdefs.h >>conftest.$ac_ext
62942cat >>conftest.$ac_ext <<_ACEOF
62943/* end confdefs.h.  */
62944#include <nss_dbdefs.h>
62945
62946int
62947main ()
62948{
62949static union nss_XbyY_key ac_aggr;
62950if (sizeof ac_aggr.ipnode.af_family)
62951return 0;
62952  ;
62953  return 0;
62954}
62955_ACEOF
62956rm -f conftest.$ac_objext
62957if { (ac_try="$ac_compile"
62958case "(($ac_try" in
62959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62960  *) ac_try_echo=$ac_try;;
62961esac
62962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62963  (eval "$ac_compile") 2>conftest.er1
62964  ac_status=$?
62965  grep -v '^ *+' conftest.er1 >conftest.err
62966  rm -f conftest.er1
62967  cat conftest.err >&5
62968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
62969  (exit $ac_status); } && {
62970	 test -z "$ac_c_werror_flag" ||
62971	 test ! -s conftest.err
62972       } && test -s conftest.$ac_objext; then
62973  ac_cv_member_union_nss_XbyY_key_ipnode_af_family=yes
62974else
62975  echo "$as_me: failed program was:" >&5
62976sed 's/^/| /' conftest.$ac_ext >&5
62977
62978	ac_cv_member_union_nss_XbyY_key_ipnode_af_family=no
62979fi
62980
62981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62982fi
62983
62984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62985fi
62986{ echo "$as_me:$LINENO: result: $ac_cv_member_union_nss_XbyY_key_ipnode_af_family" >&5
62987echo "${ECHO_T}$ac_cv_member_union_nss_XbyY_key_ipnode_af_family" >&6; }
62988if test $ac_cv_member_union_nss_XbyY_key_ipnode_af_family = yes; then
62989
62990cat >>confdefs.h <<\_ACEOF
62991#define HAVE_NSS_XBYY_KEY_IPNODE 1
62992_ACEOF
62993
62994fi
62995
62996
62997# Solaris has some extra fields in struct passwd that need to be
62998# initialised otherwise nscd crashes.
62999
63000{ echo "$as_me:$LINENO: checking for struct passwd.pw_comment" >&5
63001echo $ECHO_N "checking for struct passwd.pw_comment... $ECHO_C" >&6; }
63002if test "${ac_cv_member_struct_passwd_pw_comment+set}" = set; then
63003  echo $ECHO_N "(cached) $ECHO_C" >&6
63004else
63005  cat >conftest.$ac_ext <<_ACEOF
63006/* confdefs.h.  */
63007_ACEOF
63008cat confdefs.h >>conftest.$ac_ext
63009cat >>conftest.$ac_ext <<_ACEOF
63010/* end confdefs.h.  */
63011#include <pwd.h>
63012
63013int
63014main ()
63015{
63016static struct passwd ac_aggr;
63017if (ac_aggr.pw_comment)
63018return 0;
63019  ;
63020  return 0;
63021}
63022_ACEOF
63023rm -f conftest.$ac_objext
63024if { (ac_try="$ac_compile"
63025case "(($ac_try" in
63026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63027  *) ac_try_echo=$ac_try;;
63028esac
63029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63030  (eval "$ac_compile") 2>conftest.er1
63031  ac_status=$?
63032  grep -v '^ *+' conftest.er1 >conftest.err
63033  rm -f conftest.er1
63034  cat conftest.err >&5
63035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63036  (exit $ac_status); } && {
63037	 test -z "$ac_c_werror_flag" ||
63038	 test ! -s conftest.err
63039       } && test -s conftest.$ac_objext; then
63040  ac_cv_member_struct_passwd_pw_comment=yes
63041else
63042  echo "$as_me: failed program was:" >&5
63043sed 's/^/| /' conftest.$ac_ext >&5
63044
63045	cat >conftest.$ac_ext <<_ACEOF
63046/* confdefs.h.  */
63047_ACEOF
63048cat confdefs.h >>conftest.$ac_ext
63049cat >>conftest.$ac_ext <<_ACEOF
63050/* end confdefs.h.  */
63051#include <pwd.h>
63052
63053int
63054main ()
63055{
63056static struct passwd ac_aggr;
63057if (sizeof ac_aggr.pw_comment)
63058return 0;
63059  ;
63060  return 0;
63061}
63062_ACEOF
63063rm -f conftest.$ac_objext
63064if { (ac_try="$ac_compile"
63065case "(($ac_try" in
63066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63067  *) ac_try_echo=$ac_try;;
63068esac
63069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63070  (eval "$ac_compile") 2>conftest.er1
63071  ac_status=$?
63072  grep -v '^ *+' conftest.er1 >conftest.err
63073  rm -f conftest.er1
63074  cat conftest.err >&5
63075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63076  (exit $ac_status); } && {
63077	 test -z "$ac_c_werror_flag" ||
63078	 test ! -s conftest.err
63079       } && test -s conftest.$ac_objext; then
63080  ac_cv_member_struct_passwd_pw_comment=yes
63081else
63082  echo "$as_me: failed program was:" >&5
63083sed 's/^/| /' conftest.$ac_ext >&5
63084
63085	ac_cv_member_struct_passwd_pw_comment=no
63086fi
63087
63088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63089fi
63090
63091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63092fi
63093{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_comment" >&5
63094echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_comment" >&6; }
63095if test $ac_cv_member_struct_passwd_pw_comment = yes; then
63096
63097cat >>confdefs.h <<\_ACEOF
63098#define HAVE_PASSWD_PW_COMMENT 1
63099_ACEOF
63100
63101fi
63102
63103
63104{ echo "$as_me:$LINENO: checking for struct passwd.pw_age" >&5
63105echo $ECHO_N "checking for struct passwd.pw_age... $ECHO_C" >&6; }
63106if test "${ac_cv_member_struct_passwd_pw_age+set}" = set; then
63107  echo $ECHO_N "(cached) $ECHO_C" >&6
63108else
63109  cat >conftest.$ac_ext <<_ACEOF
63110/* confdefs.h.  */
63111_ACEOF
63112cat confdefs.h >>conftest.$ac_ext
63113cat >>conftest.$ac_ext <<_ACEOF
63114/* end confdefs.h.  */
63115#include <pwd.h>
63116
63117int
63118main ()
63119{
63120static struct passwd ac_aggr;
63121if (ac_aggr.pw_age)
63122return 0;
63123  ;
63124  return 0;
63125}
63126_ACEOF
63127rm -f conftest.$ac_objext
63128if { (ac_try="$ac_compile"
63129case "(($ac_try" in
63130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63131  *) ac_try_echo=$ac_try;;
63132esac
63133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63134  (eval "$ac_compile") 2>conftest.er1
63135  ac_status=$?
63136  grep -v '^ *+' conftest.er1 >conftest.err
63137  rm -f conftest.er1
63138  cat conftest.err >&5
63139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63140  (exit $ac_status); } && {
63141	 test -z "$ac_c_werror_flag" ||
63142	 test ! -s conftest.err
63143       } && test -s conftest.$ac_objext; then
63144  ac_cv_member_struct_passwd_pw_age=yes
63145else
63146  echo "$as_me: failed program was:" >&5
63147sed 's/^/| /' conftest.$ac_ext >&5
63148
63149	cat >conftest.$ac_ext <<_ACEOF
63150/* confdefs.h.  */
63151_ACEOF
63152cat confdefs.h >>conftest.$ac_ext
63153cat >>conftest.$ac_ext <<_ACEOF
63154/* end confdefs.h.  */
63155#include <pwd.h>
63156
63157int
63158main ()
63159{
63160static struct passwd ac_aggr;
63161if (sizeof ac_aggr.pw_age)
63162return 0;
63163  ;
63164  return 0;
63165}
63166_ACEOF
63167rm -f conftest.$ac_objext
63168if { (ac_try="$ac_compile"
63169case "(($ac_try" in
63170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63171  *) ac_try_echo=$ac_try;;
63172esac
63173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63174  (eval "$ac_compile") 2>conftest.er1
63175  ac_status=$?
63176  grep -v '^ *+' conftest.er1 >conftest.err
63177  rm -f conftest.er1
63178  cat conftest.err >&5
63179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63180  (exit $ac_status); } && {
63181	 test -z "$ac_c_werror_flag" ||
63182	 test ! -s conftest.err
63183       } && test -s conftest.$ac_objext; then
63184  ac_cv_member_struct_passwd_pw_age=yes
63185else
63186  echo "$as_me: failed program was:" >&5
63187sed 's/^/| /' conftest.$ac_ext >&5
63188
63189	ac_cv_member_struct_passwd_pw_age=no
63190fi
63191
63192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63193fi
63194
63195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63196fi
63197{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_age" >&5
63198echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_age" >&6; }
63199if test $ac_cv_member_struct_passwd_pw_age = yes; then
63200
63201cat >>confdefs.h <<\_ACEOF
63202#define HAVE_PASSWD_PW_AGE 1
63203_ACEOF
63204
63205fi
63206
63207
63208# AIX 4.3.x and 5.1 do not have as many members in
63209# struct secmethod_table as AIX 5.2
63210{ echo "$as_me:$LINENO: checking for struct secmethod_table.method_attrlist" >&5
63211echo $ECHO_N "checking for struct secmethod_table.method_attrlist... $ECHO_C" >&6; }
63212if test "${ac_cv_member_struct_secmethod_table_method_attrlist+set}" = set; then
63213  echo $ECHO_N "(cached) $ECHO_C" >&6
63214else
63215  cat >conftest.$ac_ext <<_ACEOF
63216/* confdefs.h.  */
63217_ACEOF
63218cat confdefs.h >>conftest.$ac_ext
63219cat >>conftest.$ac_ext <<_ACEOF
63220/* end confdefs.h.  */
63221#include <usersec.h>
63222
63223int
63224main ()
63225{
63226static struct secmethod_table ac_aggr;
63227if (ac_aggr.method_attrlist)
63228return 0;
63229  ;
63230  return 0;
63231}
63232_ACEOF
63233rm -f conftest.$ac_objext
63234if { (ac_try="$ac_compile"
63235case "(($ac_try" in
63236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63237  *) ac_try_echo=$ac_try;;
63238esac
63239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63240  (eval "$ac_compile") 2>conftest.er1
63241  ac_status=$?
63242  grep -v '^ *+' conftest.er1 >conftest.err
63243  rm -f conftest.er1
63244  cat conftest.err >&5
63245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63246  (exit $ac_status); } && {
63247	 test -z "$ac_c_werror_flag" ||
63248	 test ! -s conftest.err
63249       } && test -s conftest.$ac_objext; then
63250  ac_cv_member_struct_secmethod_table_method_attrlist=yes
63251else
63252  echo "$as_me: failed program was:" >&5
63253sed 's/^/| /' conftest.$ac_ext >&5
63254
63255	cat >conftest.$ac_ext <<_ACEOF
63256/* confdefs.h.  */
63257_ACEOF
63258cat confdefs.h >>conftest.$ac_ext
63259cat >>conftest.$ac_ext <<_ACEOF
63260/* end confdefs.h.  */
63261#include <usersec.h>
63262
63263int
63264main ()
63265{
63266static struct secmethod_table ac_aggr;
63267if (sizeof ac_aggr.method_attrlist)
63268return 0;
63269  ;
63270  return 0;
63271}
63272_ACEOF
63273rm -f conftest.$ac_objext
63274if { (ac_try="$ac_compile"
63275case "(($ac_try" in
63276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63277  *) ac_try_echo=$ac_try;;
63278esac
63279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63280  (eval "$ac_compile") 2>conftest.er1
63281  ac_status=$?
63282  grep -v '^ *+' conftest.er1 >conftest.err
63283  rm -f conftest.er1
63284  cat conftest.err >&5
63285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63286  (exit $ac_status); } && {
63287	 test -z "$ac_c_werror_flag" ||
63288	 test ! -s conftest.err
63289       } && test -s conftest.$ac_objext; then
63290  ac_cv_member_struct_secmethod_table_method_attrlist=yes
63291else
63292  echo "$as_me: failed program was:" >&5
63293sed 's/^/| /' conftest.$ac_ext >&5
63294
63295	ac_cv_member_struct_secmethod_table_method_attrlist=no
63296fi
63297
63298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63299fi
63300
63301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63302fi
63303{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_secmethod_table_method_attrlist" >&5
63304echo "${ECHO_T}$ac_cv_member_struct_secmethod_table_method_attrlist" >&6; }
63305if test $ac_cv_member_struct_secmethod_table_method_attrlist = yes; then
63306
63307cat >>confdefs.h <<_ACEOF
63308#define HAVE_STRUCT_SECMETHOD_TABLE_METHOD_ATTRLIST 1
63309_ACEOF
63310
63311
63312fi
63313
63314{ echo "$as_me:$LINENO: checking for struct secmethod_table.method_version" >&5
63315echo $ECHO_N "checking for struct secmethod_table.method_version... $ECHO_C" >&6; }
63316if test "${ac_cv_member_struct_secmethod_table_method_version+set}" = set; then
63317  echo $ECHO_N "(cached) $ECHO_C" >&6
63318else
63319  cat >conftest.$ac_ext <<_ACEOF
63320/* confdefs.h.  */
63321_ACEOF
63322cat confdefs.h >>conftest.$ac_ext
63323cat >>conftest.$ac_ext <<_ACEOF
63324/* end confdefs.h.  */
63325#include <usersec.h>
63326
63327int
63328main ()
63329{
63330static struct secmethod_table ac_aggr;
63331if (ac_aggr.method_version)
63332return 0;
63333  ;
63334  return 0;
63335}
63336_ACEOF
63337rm -f conftest.$ac_objext
63338if { (ac_try="$ac_compile"
63339case "(($ac_try" in
63340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63341  *) ac_try_echo=$ac_try;;
63342esac
63343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63344  (eval "$ac_compile") 2>conftest.er1
63345  ac_status=$?
63346  grep -v '^ *+' conftest.er1 >conftest.err
63347  rm -f conftest.er1
63348  cat conftest.err >&5
63349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63350  (exit $ac_status); } && {
63351	 test -z "$ac_c_werror_flag" ||
63352	 test ! -s conftest.err
63353       } && test -s conftest.$ac_objext; then
63354  ac_cv_member_struct_secmethod_table_method_version=yes
63355else
63356  echo "$as_me: failed program was:" >&5
63357sed 's/^/| /' conftest.$ac_ext >&5
63358
63359	cat >conftest.$ac_ext <<_ACEOF
63360/* confdefs.h.  */
63361_ACEOF
63362cat confdefs.h >>conftest.$ac_ext
63363cat >>conftest.$ac_ext <<_ACEOF
63364/* end confdefs.h.  */
63365#include <usersec.h>
63366
63367int
63368main ()
63369{
63370static struct secmethod_table ac_aggr;
63371if (sizeof ac_aggr.method_version)
63372return 0;
63373  ;
63374  return 0;
63375}
63376_ACEOF
63377rm -f conftest.$ac_objext
63378if { (ac_try="$ac_compile"
63379case "(($ac_try" in
63380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63381  *) ac_try_echo=$ac_try;;
63382esac
63383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63384  (eval "$ac_compile") 2>conftest.er1
63385  ac_status=$?
63386  grep -v '^ *+' conftest.er1 >conftest.err
63387  rm -f conftest.er1
63388  cat conftest.err >&5
63389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63390  (exit $ac_status); } && {
63391	 test -z "$ac_c_werror_flag" ||
63392	 test ! -s conftest.err
63393       } && test -s conftest.$ac_objext; then
63394  ac_cv_member_struct_secmethod_table_method_version=yes
63395else
63396  echo "$as_me: failed program was:" >&5
63397sed 's/^/| /' conftest.$ac_ext >&5
63398
63399	ac_cv_member_struct_secmethod_table_method_version=no
63400fi
63401
63402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63403fi
63404
63405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63406fi
63407{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_secmethod_table_method_version" >&5
63408echo "${ECHO_T}$ac_cv_member_struct_secmethod_table_method_version" >&6; }
63409if test $ac_cv_member_struct_secmethod_table_method_version = yes; then
63410
63411cat >>confdefs.h <<_ACEOF
63412#define HAVE_STRUCT_SECMETHOD_TABLE_METHOD_VERSION 1
63413_ACEOF
63414
63415
63416fi
63417
63418
63419{ echo "$as_me:$LINENO: checking for SO_PEERCRED" >&5
63420echo $ECHO_N "checking for SO_PEERCRED... $ECHO_C" >&6; }
63421if test "${samba_cv_HAVE_PEERCRED+set}" = set; then
63422  echo $ECHO_N "(cached) $ECHO_C" >&6
63423else
63424
63425cat >conftest.$ac_ext <<_ACEOF
63426/* confdefs.h.  */
63427_ACEOF
63428cat confdefs.h >>conftest.$ac_ext
63429cat >>conftest.$ac_ext <<_ACEOF
63430/* end confdefs.h.  */
63431#include <sys/types.h>
63432#include <sys/socket.h>
63433int
63434main ()
63435{
63436struct ucred cred;
63437 socklen_t cred_len;
63438 int ret = getsockopt(0, SOL_SOCKET, SO_PEERCRED, &cred, &cred_len);
63439
63440  ;
63441  return 0;
63442}
63443_ACEOF
63444rm -f conftest.$ac_objext
63445if { (ac_try="$ac_compile"
63446case "(($ac_try" in
63447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63448  *) ac_try_echo=$ac_try;;
63449esac
63450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63451  (eval "$ac_compile") 2>conftest.er1
63452  ac_status=$?
63453  grep -v '^ *+' conftest.er1 >conftest.err
63454  rm -f conftest.er1
63455  cat conftest.err >&5
63456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63457  (exit $ac_status); } && {
63458	 test -z "$ac_c_werror_flag" ||
63459	 test ! -s conftest.err
63460       } && test -s conftest.$ac_objext; then
63461  samba_cv_HAVE_PEERCRED=yes
63462else
63463  echo "$as_me: failed program was:" >&5
63464sed 's/^/| /' conftest.$ac_ext >&5
63465
63466	samba_cv_HAVE_PEERCRED=no
63467fi
63468
63469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63470fi
63471{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_PEERCRED" >&5
63472echo "${ECHO_T}$samba_cv_HAVE_PEERCRED" >&6; }
63473if test x"$samba_cv_HAVE_PEERCRED" = x"yes"; then
63474
63475cat >>confdefs.h <<\_ACEOF
63476#define HAVE_PEERCRED 1
63477_ACEOF
63478
63479fi
63480
63481
63482#################################################
63483# Check to see if we should use the included popt
63484
63485
63486# Check whether --with-included-popt was given.
63487if test "${with_included_popt+set}" = set; then
63488  withval=$with_included_popt;
63489  case "$withval" in
63490	yes)
63491		INCLUDED_POPT=yes
63492		;;
63493        no)
63494		INCLUDED_POPT=no
63495                ;;
63496  esac
63497fi
63498
63499if test x"$INCLUDED_POPT" != x"yes"; then
63500    { echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
63501echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6; }
63502if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
63503  echo $ECHO_N "(cached) $ECHO_C" >&6
63504else
63505  ac_check_lib_save_LIBS=$LIBS
63506LIBS="-lpopt  $LIBS"
63507cat >conftest.$ac_ext <<_ACEOF
63508/* confdefs.h.  */
63509_ACEOF
63510cat confdefs.h >>conftest.$ac_ext
63511cat >>conftest.$ac_ext <<_ACEOF
63512/* end confdefs.h.  */
63513
63514/* Override any GCC internal prototype to avoid an error.
63515   Use char because int might match the return type of a GCC
63516   builtin and then its argument prototype would still apply.  */
63517#ifdef __cplusplus
63518extern "C"
63519#endif
63520char poptGetContext ();
63521int
63522main ()
63523{
63524return poptGetContext ();
63525  ;
63526  return 0;
63527}
63528_ACEOF
63529rm -f conftest.$ac_objext conftest$ac_exeext
63530if { (ac_try="$ac_link"
63531case "(($ac_try" in
63532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63533  *) ac_try_echo=$ac_try;;
63534esac
63535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63536  (eval "$ac_link") 2>conftest.er1
63537  ac_status=$?
63538  grep -v '^ *+' conftest.er1 >conftest.err
63539  rm -f conftest.er1
63540  cat conftest.err >&5
63541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63542  (exit $ac_status); } && {
63543	 test -z "$ac_c_werror_flag" ||
63544	 test ! -s conftest.err
63545       } && test -s conftest$ac_exeext &&
63546       $as_test_x conftest$ac_exeext; then
63547  ac_cv_lib_popt_poptGetContext=yes
63548else
63549  echo "$as_me: failed program was:" >&5
63550sed 's/^/| /' conftest.$ac_ext >&5
63551
63552	ac_cv_lib_popt_poptGetContext=no
63553fi
63554
63555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63556      conftest$ac_exeext conftest.$ac_ext
63557LIBS=$ac_check_lib_save_LIBS
63558fi
63559{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
63560echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6; }
63561if test $ac_cv_lib_popt_poptGetContext = yes; then
63562  INCLUDED_POPT=no
63563else
63564  INCLUDED_POPT=yes
63565fi
63566
63567fi
63568
63569{ echo "$as_me:$LINENO: checking whether to use included popt" >&5
63570echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6; }
63571if test x"$INCLUDED_POPT" = x"yes"; then
63572    { echo "$as_me:$LINENO: result: yes" >&5
63573echo "${ECHO_T}yes" >&6; }
63574    BUILD_POPT='$(POPT_OBJ)'
63575    POPTLIBS='$(POPT_OBJ)'
63576    FLAGS1="-I\$(srcdir)/popt"
63577else
63578    { echo "$as_me:$LINENO: result: no" >&5
63579echo "${ECHO_T}no" >&6; }
63580	BUILD_POPT=""
63581    POPTLIBS="-lpopt"
63582fi
63583
63584
63585
63586
63587#################################################
63588# Check to see if we should use the included iniparser
63589
63590
63591# Check whether --with-included-iniparser was given.
63592if test "${with_included_iniparser+set}" = set; then
63593  withval=$with_included_iniparser;
63594  case "$withval" in
63595	yes)
63596		INCLUDED_INIPARSER=yes
63597		;;
63598        no)
63599		INCLUDED_INIPARSER=no
63600                ;;
63601  esac
63602fi
63603
63604if test x"$INCLUDED_INIPARSER" != x"yes"; then
63605    { echo "$as_me:$LINENO: checking for iniparser_load in -liniparser" >&5
63606echo $ECHO_N "checking for iniparser_load in -liniparser... $ECHO_C" >&6; }
63607if test "${ac_cv_lib_iniparser_iniparser_load+set}" = set; then
63608  echo $ECHO_N "(cached) $ECHO_C" >&6
63609else
63610  ac_check_lib_save_LIBS=$LIBS
63611LIBS="-liniparser  $LIBS"
63612cat >conftest.$ac_ext <<_ACEOF
63613/* confdefs.h.  */
63614_ACEOF
63615cat confdefs.h >>conftest.$ac_ext
63616cat >>conftest.$ac_ext <<_ACEOF
63617/* end confdefs.h.  */
63618
63619/* Override any GCC internal prototype to avoid an error.
63620   Use char because int might match the return type of a GCC
63621   builtin and then its argument prototype would still apply.  */
63622#ifdef __cplusplus
63623extern "C"
63624#endif
63625char iniparser_load ();
63626int
63627main ()
63628{
63629return iniparser_load ();
63630  ;
63631  return 0;
63632}
63633_ACEOF
63634rm -f conftest.$ac_objext conftest$ac_exeext
63635if { (ac_try="$ac_link"
63636case "(($ac_try" in
63637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63638  *) ac_try_echo=$ac_try;;
63639esac
63640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63641  (eval "$ac_link") 2>conftest.er1
63642  ac_status=$?
63643  grep -v '^ *+' conftest.er1 >conftest.err
63644  rm -f conftest.er1
63645  cat conftest.err >&5
63646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
63647  (exit $ac_status); } && {
63648	 test -z "$ac_c_werror_flag" ||
63649	 test ! -s conftest.err
63650       } && test -s conftest$ac_exeext &&
63651       $as_test_x conftest$ac_exeext; then
63652  ac_cv_lib_iniparser_iniparser_load=yes
63653else
63654  echo "$as_me: failed program was:" >&5
63655sed 's/^/| /' conftest.$ac_ext >&5
63656
63657	ac_cv_lib_iniparser_iniparser_load=no
63658fi
63659
63660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63661      conftest$ac_exeext conftest.$ac_ext
63662LIBS=$ac_check_lib_save_LIBS
63663fi
63664{ echo "$as_me:$LINENO: result: $ac_cv_lib_iniparser_iniparser_load" >&5
63665echo "${ECHO_T}$ac_cv_lib_iniparser_iniparser_load" >&6; }
63666if test $ac_cv_lib_iniparser_iniparser_load = yes; then
63667  INCLUDED_INIPARSER=no
63668else
63669  INCLUDED_INIPARSER=yes
63670fi
63671
63672fi
63673
63674{ echo "$as_me:$LINENO: checking whether to use included iniparser" >&5
63675echo $ECHO_N "checking whether to use included iniparser... $ECHO_C" >&6; }
63676if test x"$INCLUDED_INIPARSER" = x"yes"; then
63677    { echo "$as_me:$LINENO: result: yes" >&5
63678echo "${ECHO_T}yes" >&6; }
63679    BUILD_INIPARSER='$(INIPARSER_OBJ)'
63680	INIPARSERLIBS=""
63681    FLAGS1="$FLAGS1 -I\$(srcdir)/iniparser/src"
63682else
63683    { echo "$as_me:$LINENO: result: no" >&5
63684echo "${ECHO_T}no" >&6; }
63685	BUILD_INIPARSER=""
63686    INIPARSERLIBS="-liniparser"
63687fi
63688
63689
63690
63691
63692
63693
63694#################################################
63695# Check if the user wants Python
63696
63697# At the moment, you can use this to set which Python binary to link
63698# against.  (Libraries built for Python2.2 can't be used by 2.1,
63699# though they can coexist in different directories.)  In the future
63700# this might make the Python stuff be built by default.
63701
63702# Defaulting python breaks the clean target if python isn't installed
63703
63704PYTHON=
63705
63706
63707# Check whether --with-python was given.
63708if test "${with_python+set}" = set; then
63709  withval=$with_python;  case "${withval-python}" in
63710  yes)
63711	PYTHON=python
63712	EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
63713	;;
63714  no)
63715	PYTHON=
63716	;;
63717  *)
63718	PYTHON=${withval-python}
63719	;;
63720  esac
63721fi
63722
63723
63724
63725for i in `echo $default_static_modules | sed -e 's/,/ /g'`
63726do
63727	eval MODULE_DEFAULT_$i=STATIC
63728done
63729
63730for i in `echo $default_shared_modules | sed -e 's/,/ /g'`
63731do
63732		eval MODULE_DEFAULT_$i=STATIC
63733
63734	if test $BLDSHARED = true; then
63735		eval MODULE_DEFAULT_$i=SHARED
63736	fi
63737done
63738
63739MODULE_rpc_spoolss=STATIC
63740MODULE_rpc_srv=STATIC
63741MODULE_idmap_tdb=STATIC
63742MODULE_idmap_passdb=STATIC
63743MODULE_idmap_nss=STATIC
63744
63745MODULE_nss_info_template=STATIC
63746
63747
63748# Check whether --with-static-modules was given.
63749if test "${with_static_modules+set}" = set; then
63750  withval=$with_static_modules;  if test $withval; then
63751	for i in `echo $withval | sed -e 's/,/ /g'`
63752	do
63753		eval MODULE_$i=STATIC
63754	done
63755fi
63756fi
63757
63758
63759
63760# Check whether --with-shared-modules was given.
63761if test "${with_shared_modules+set}" = set; then
63762  withval=$with_shared_modules;  if test $withval; then
63763	for i in `echo $withval | sed -e 's/,/ /g'`
63764	do
63765			eval MODULE_$i=SHARED
63766	done
63767fi
63768fi
63769
63770
63771
63772	{ echo "$as_me:$LINENO: checking how to build pdb_ldap" >&5
63773echo $ECHO_N "checking how to build pdb_ldap... $ECHO_C" >&6; }
63774	if test "$MODULE_pdb_ldap"; then
63775		DEST=$MODULE_pdb_ldap
63776	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_ldap"; then
63777		DEST=$MODULE_pdb
63778	else
63779		DEST=$MODULE_DEFAULT_pdb_ldap
63780	fi
63781
63782	if test x"$DEST" = xSHARED; then
63783
63784cat >>confdefs.h <<\_ACEOF
63785#define pdb_ldap_init init_module
63786_ACEOF
63787
63788		PDB_MODULES="$PDB_MODULES "bin/ldapsam.$SHLIBEXT""
63789		{ echo "$as_me:$LINENO: result: shared" >&5
63790echo "${ECHO_T}shared" >&6; }
63791
63792		string_shared_modules="$string_shared_modules pdb_ldap"
63793	elif test x"$DEST" = xSTATIC; then
63794		init_static_modules_pdb="$init_static_modules_pdb  pdb_ldap_init();"
63795 		decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_ldap_init(void);"
63796		string_static_modules="$string_static_modules pdb_ldap"
63797		PDB_STATIC="$PDB_STATIC passdb/pdb_ldap.o passdb/pdb_nds.o"
63798
63799		 PASSDB_LIBS="$PASSDB_LIBS $LDAP_LIBS"
63800		{ echo "$as_me:$LINENO: result: static" >&5
63801echo "${ECHO_T}static" >&6; }
63802	else
63803	    string_ignored_modules="$string_ignored_modules pdb_ldap"
63804		{ echo "$as_me:$LINENO: result: not" >&5
63805echo "${ECHO_T}not" >&6; }
63806	fi
63807
63808
63809	{ echo "$as_me:$LINENO: checking how to build pdb_smbpasswd" >&5
63810echo $ECHO_N "checking how to build pdb_smbpasswd... $ECHO_C" >&6; }
63811	if test "$MODULE_pdb_smbpasswd"; then
63812		DEST=$MODULE_pdb_smbpasswd
63813	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_smbpasswd"; then
63814		DEST=$MODULE_pdb
63815	else
63816		DEST=$MODULE_DEFAULT_pdb_smbpasswd
63817	fi
63818
63819	if test x"$DEST" = xSHARED; then
63820
63821cat >>confdefs.h <<\_ACEOF
63822#define pdb_smbpasswd_init init_module
63823_ACEOF
63824
63825		PDB_MODULES="$PDB_MODULES "bin/smbpasswd.$SHLIBEXT""
63826		{ echo "$as_me:$LINENO: result: shared" >&5
63827echo "${ECHO_T}shared" >&6; }
63828
63829		string_shared_modules="$string_shared_modules pdb_smbpasswd"
63830	elif test x"$DEST" = xSTATIC; then
63831		init_static_modules_pdb="$init_static_modules_pdb  pdb_smbpasswd_init();"
63832 		decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_smbpasswd_init(void);"
63833		string_static_modules="$string_static_modules pdb_smbpasswd"
63834		PDB_STATIC="$PDB_STATIC passdb/pdb_smbpasswd.o"
63835
63836
63837		{ echo "$as_me:$LINENO: result: static" >&5
63838echo "${ECHO_T}static" >&6; }
63839	else
63840	    string_ignored_modules="$string_ignored_modules pdb_smbpasswd"
63841		{ echo "$as_me:$LINENO: result: not" >&5
63842echo "${ECHO_T}not" >&6; }
63843	fi
63844
63845
63846	{ echo "$as_me:$LINENO: checking how to build pdb_tdbsam" >&5
63847echo $ECHO_N "checking how to build pdb_tdbsam... $ECHO_C" >&6; }
63848	if test "$MODULE_pdb_tdbsam"; then
63849		DEST=$MODULE_pdb_tdbsam
63850	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_tdbsam"; then
63851		DEST=$MODULE_pdb
63852	else
63853		DEST=$MODULE_DEFAULT_pdb_tdbsam
63854	fi
63855
63856	if test x"$DEST" = xSHARED; then
63857
63858cat >>confdefs.h <<\_ACEOF
63859#define pdb_tdbsam_init init_module
63860_ACEOF
63861
63862		PDB_MODULES="$PDB_MODULES "bin/tdbsam.$SHLIBEXT""
63863		{ echo "$as_me:$LINENO: result: shared" >&5
63864echo "${ECHO_T}shared" >&6; }
63865
63866		string_shared_modules="$string_shared_modules pdb_tdbsam"
63867	elif test x"$DEST" = xSTATIC; then
63868		init_static_modules_pdb="$init_static_modules_pdb  pdb_tdbsam_init();"
63869 		decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_tdbsam_init(void);"
63870		string_static_modules="$string_static_modules pdb_tdbsam"
63871		PDB_STATIC="$PDB_STATIC passdb/pdb_tdb.o"
63872
63873
63874		{ echo "$as_me:$LINENO: result: static" >&5
63875echo "${ECHO_T}static" >&6; }
63876	else
63877	    string_ignored_modules="$string_ignored_modules pdb_tdbsam"
63878		{ echo "$as_me:$LINENO: result: not" >&5
63879echo "${ECHO_T}not" >&6; }
63880	fi
63881
63882
63883
63884
63885
63886cat >>confdefs.h <<_ACEOF
63887#define static_init_pdb {$init_static_modules_pdb}
63888_ACEOF
63889
63890
63891cat >>confdefs.h <<_ACEOF
63892#define static_decl_pdb $decl_static_modules_pdb
63893_ACEOF
63894
63895    	rm -f passdb/pdb_interface.o
63896
63897
63898
63899
63900	{ echo "$as_me:$LINENO: checking how to build rpc_lsa" >&5
63901echo $ECHO_N "checking how to build rpc_lsa... $ECHO_C" >&6; }
63902	if test "$MODULE_rpc_lsa"; then
63903		DEST=$MODULE_rpc_lsa
63904	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_lsa"; then
63905		DEST=$MODULE_rpc
63906	else
63907		DEST=$MODULE_DEFAULT_rpc_lsa
63908	fi
63909
63910	if test x"$DEST" = xSHARED; then
63911
63912cat >>confdefs.h <<\_ACEOF
63913#define rpc_lsa_init init_module
63914_ACEOF
63915
63916		RPC_MODULES="$RPC_MODULES "bin/librpc_lsarpc.$SHLIBEXT""
63917		{ echo "$as_me:$LINENO: result: shared" >&5
63918echo "${ECHO_T}shared" >&6; }
63919
63920		string_shared_modules="$string_shared_modules rpc_lsa"
63921	elif test x"$DEST" = xSTATIC; then
63922		init_static_modules_rpc="$init_static_modules_rpc  rpc_lsa_init();"
63923 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_lsa_init(void);"
63924		string_static_modules="$string_static_modules rpc_lsa"
63925		RPC_STATIC="$RPC_STATIC \$(RPC_LSA_OBJ)"
63926
63927
63928		{ echo "$as_me:$LINENO: result: static" >&5
63929echo "${ECHO_T}static" >&6; }
63930	else
63931	    string_ignored_modules="$string_ignored_modules rpc_lsa"
63932		{ echo "$as_me:$LINENO: result: not" >&5
63933echo "${ECHO_T}not" >&6; }
63934	fi
63935
63936
63937	{ echo "$as_me:$LINENO: checking how to build rpc_reg" >&5
63938echo $ECHO_N "checking how to build rpc_reg... $ECHO_C" >&6; }
63939	if test "$MODULE_rpc_reg"; then
63940		DEST=$MODULE_rpc_reg
63941	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_reg"; then
63942		DEST=$MODULE_rpc
63943	else
63944		DEST=$MODULE_DEFAULT_rpc_reg
63945	fi
63946
63947	if test x"$DEST" = xSHARED; then
63948
63949cat >>confdefs.h <<\_ACEOF
63950#define rpc_reg_init init_module
63951_ACEOF
63952
63953		RPC_MODULES="$RPC_MODULES "bin/librpc_reg.$SHLIBEXT""
63954		{ echo "$as_me:$LINENO: result: shared" >&5
63955echo "${ECHO_T}shared" >&6; }
63956
63957		string_shared_modules="$string_shared_modules rpc_reg"
63958	elif test x"$DEST" = xSTATIC; then
63959		init_static_modules_rpc="$init_static_modules_rpc  rpc_reg_init();"
63960 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_reg_init(void);"
63961		string_static_modules="$string_static_modules rpc_reg"
63962		RPC_STATIC="$RPC_STATIC \$(RPC_REG_OBJ)"
63963
63964
63965		{ echo "$as_me:$LINENO: result: static" >&5
63966echo "${ECHO_T}static" >&6; }
63967	else
63968	    string_ignored_modules="$string_ignored_modules rpc_reg"
63969		{ echo "$as_me:$LINENO: result: not" >&5
63970echo "${ECHO_T}not" >&6; }
63971	fi
63972
63973
63974	{ echo "$as_me:$LINENO: checking how to build rpc_lsa_ds" >&5
63975echo $ECHO_N "checking how to build rpc_lsa_ds... $ECHO_C" >&6; }
63976	if test "$MODULE_rpc_lsa_ds"; then
63977		DEST=$MODULE_rpc_lsa_ds
63978	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_lsa_ds"; then
63979		DEST=$MODULE_rpc
63980	else
63981		DEST=$MODULE_DEFAULT_rpc_lsa_ds
63982	fi
63983
63984	if test x"$DEST" = xSHARED; then
63985
63986cat >>confdefs.h <<\_ACEOF
63987#define rpc_lsa_ds_init init_module
63988_ACEOF
63989
63990		RPC_MODULES="$RPC_MODULES "bin/librpc_lsa_ds.$SHLIBEXT""
63991		{ echo "$as_me:$LINENO: result: shared" >&5
63992echo "${ECHO_T}shared" >&6; }
63993
63994		string_shared_modules="$string_shared_modules rpc_lsa_ds"
63995	elif test x"$DEST" = xSTATIC; then
63996		init_static_modules_rpc="$init_static_modules_rpc  rpc_lsa_ds_init();"
63997 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_lsa_ds_init(void);"
63998		string_static_modules="$string_static_modules rpc_lsa_ds"
63999		RPC_STATIC="$RPC_STATIC \$(RPC_LSA_DS_OBJ)"
64000
64001
64002		{ echo "$as_me:$LINENO: result: static" >&5
64003echo "${ECHO_T}static" >&6; }
64004	else
64005	    string_ignored_modules="$string_ignored_modules rpc_lsa_ds"
64006		{ echo "$as_me:$LINENO: result: not" >&5
64007echo "${ECHO_T}not" >&6; }
64008	fi
64009
64010
64011	{ echo "$as_me:$LINENO: checking how to build rpc_wkssvc" >&5
64012echo $ECHO_N "checking how to build rpc_wkssvc... $ECHO_C" >&6; }
64013	if test "$MODULE_rpc_wkssvc"; then
64014		DEST=$MODULE_rpc_wkssvc
64015	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_wkssvc"; then
64016		DEST=$MODULE_rpc
64017	else
64018		DEST=$MODULE_DEFAULT_rpc_wkssvc
64019	fi
64020
64021	if test x"$DEST" = xSHARED; then
64022
64023cat >>confdefs.h <<\_ACEOF
64024#define rpc_wkssvc_init init_module
64025_ACEOF
64026
64027		RPC_MODULES="$RPC_MODULES "bin/librpc_wkssvc.$SHLIBEXT""
64028		{ echo "$as_me:$LINENO: result: shared" >&5
64029echo "${ECHO_T}shared" >&6; }
64030
64031		string_shared_modules="$string_shared_modules rpc_wkssvc"
64032	elif test x"$DEST" = xSTATIC; then
64033		init_static_modules_rpc="$init_static_modules_rpc  rpc_wkssvc_init();"
64034 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_wkssvc_init(void);"
64035		string_static_modules="$string_static_modules rpc_wkssvc"
64036		RPC_STATIC="$RPC_STATIC \$(RPC_WKS_OBJ)"
64037
64038
64039		{ echo "$as_me:$LINENO: result: static" >&5
64040echo "${ECHO_T}static" >&6; }
64041	else
64042	    string_ignored_modules="$string_ignored_modules rpc_wkssvc"
64043		{ echo "$as_me:$LINENO: result: not" >&5
64044echo "${ECHO_T}not" >&6; }
64045	fi
64046
64047
64048	{ echo "$as_me:$LINENO: checking how to build rpc_svcctl" >&5
64049echo $ECHO_N "checking how to build rpc_svcctl... $ECHO_C" >&6; }
64050	if test "$MODULE_rpc_svcctl"; then
64051		DEST=$MODULE_rpc_svcctl
64052	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_svcctl"; then
64053		DEST=$MODULE_rpc
64054	else
64055		DEST=$MODULE_DEFAULT_rpc_svcctl
64056	fi
64057
64058	if test x"$DEST" = xSHARED; then
64059
64060cat >>confdefs.h <<\_ACEOF
64061#define rpc_svcctl_init init_module
64062_ACEOF
64063
64064		RPC_MODULES="$RPC_MODULES "bin/librpc_svcctl.$SHLIBEXT""
64065		{ echo "$as_me:$LINENO: result: shared" >&5
64066echo "${ECHO_T}shared" >&6; }
64067
64068		string_shared_modules="$string_shared_modules rpc_svcctl"
64069	elif test x"$DEST" = xSTATIC; then
64070		init_static_modules_rpc="$init_static_modules_rpc  rpc_svcctl_init();"
64071 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_svcctl_init(void);"
64072		string_static_modules="$string_static_modules rpc_svcctl"
64073		RPC_STATIC="$RPC_STATIC \$(RPC_SVCCTL_OBJ)"
64074
64075
64076		{ echo "$as_me:$LINENO: result: static" >&5
64077echo "${ECHO_T}static" >&6; }
64078	else
64079	    string_ignored_modules="$string_ignored_modules rpc_svcctl"
64080		{ echo "$as_me:$LINENO: result: not" >&5
64081echo "${ECHO_T}not" >&6; }
64082	fi
64083
64084
64085	{ echo "$as_me:$LINENO: checking how to build rpc_ntsvcs" >&5
64086echo $ECHO_N "checking how to build rpc_ntsvcs... $ECHO_C" >&6; }
64087	if test "$MODULE_rpc_ntsvcs"; then
64088		DEST=$MODULE_rpc_ntsvcs
64089	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_ntsvcs"; then
64090		DEST=$MODULE_rpc
64091	else
64092		DEST=$MODULE_DEFAULT_rpc_ntsvcs
64093	fi
64094
64095	if test x"$DEST" = xSHARED; then
64096
64097cat >>confdefs.h <<\_ACEOF
64098#define rpc_ntsvcs_init init_module
64099_ACEOF
64100
64101		RPC_MODULES="$RPC_MODULES "bin/librpc_ntsvcs.$SHLIBEXT""
64102		{ echo "$as_me:$LINENO: result: shared" >&5
64103echo "${ECHO_T}shared" >&6; }
64104
64105		string_shared_modules="$string_shared_modules rpc_ntsvcs"
64106	elif test x"$DEST" = xSTATIC; then
64107		init_static_modules_rpc="$init_static_modules_rpc  rpc_ntsvcs_init();"
64108 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_ntsvcs_init(void);"
64109		string_static_modules="$string_static_modules rpc_ntsvcs"
64110		RPC_STATIC="$RPC_STATIC \$(RPC_NTSVCS_OBJ)"
64111
64112
64113		{ echo "$as_me:$LINENO: result: static" >&5
64114echo "${ECHO_T}static" >&6; }
64115	else
64116	    string_ignored_modules="$string_ignored_modules rpc_ntsvcs"
64117		{ echo "$as_me:$LINENO: result: not" >&5
64118echo "${ECHO_T}not" >&6; }
64119	fi
64120
64121
64122	{ echo "$as_me:$LINENO: checking how to build rpc_net" >&5
64123echo $ECHO_N "checking how to build rpc_net... $ECHO_C" >&6; }
64124	if test "$MODULE_rpc_net"; then
64125		DEST=$MODULE_rpc_net
64126	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_net"; then
64127		DEST=$MODULE_rpc
64128	else
64129		DEST=$MODULE_DEFAULT_rpc_net
64130	fi
64131
64132	if test x"$DEST" = xSHARED; then
64133
64134cat >>confdefs.h <<\_ACEOF
64135#define rpc_net_init init_module
64136_ACEOF
64137
64138		RPC_MODULES="$RPC_MODULES "bin/librpc_NETLOGON.$SHLIBEXT""
64139		{ echo "$as_me:$LINENO: result: shared" >&5
64140echo "${ECHO_T}shared" >&6; }
64141
64142		string_shared_modules="$string_shared_modules rpc_net"
64143	elif test x"$DEST" = xSTATIC; then
64144		init_static_modules_rpc="$init_static_modules_rpc  rpc_net_init();"
64145 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_net_init(void);"
64146		string_static_modules="$string_static_modules rpc_net"
64147		RPC_STATIC="$RPC_STATIC \$(RPC_NETLOG_OBJ)"
64148
64149
64150		{ echo "$as_me:$LINENO: result: static" >&5
64151echo "${ECHO_T}static" >&6; }
64152	else
64153	    string_ignored_modules="$string_ignored_modules rpc_net"
64154		{ echo "$as_me:$LINENO: result: not" >&5
64155echo "${ECHO_T}not" >&6; }
64156	fi
64157
64158
64159	{ echo "$as_me:$LINENO: checking how to build rpc_netdfs" >&5
64160echo $ECHO_N "checking how to build rpc_netdfs... $ECHO_C" >&6; }
64161	if test "$MODULE_rpc_netdfs"; then
64162		DEST=$MODULE_rpc_netdfs
64163	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_netdfs"; then
64164		DEST=$MODULE_rpc
64165	else
64166		DEST=$MODULE_DEFAULT_rpc_netdfs
64167	fi
64168
64169	if test x"$DEST" = xSHARED; then
64170
64171cat >>confdefs.h <<\_ACEOF
64172#define rpc_netdfs_init init_module
64173_ACEOF
64174
64175		RPC_MODULES="$RPC_MODULES "bin/librpc_netdfs.$SHLIBEXT""
64176		{ echo "$as_me:$LINENO: result: shared" >&5
64177echo "${ECHO_T}shared" >&6; }
64178
64179		string_shared_modules="$string_shared_modules rpc_netdfs"
64180	elif test x"$DEST" = xSTATIC; then
64181		init_static_modules_rpc="$init_static_modules_rpc  rpc_netdfs_init();"
64182 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_netdfs_init(void);"
64183		string_static_modules="$string_static_modules rpc_netdfs"
64184		RPC_STATIC="$RPC_STATIC \$(RPC_DFS_OBJ)"
64185
64186
64187		{ echo "$as_me:$LINENO: result: static" >&5
64188echo "${ECHO_T}static" >&6; }
64189	else
64190	    string_ignored_modules="$string_ignored_modules rpc_netdfs"
64191		{ echo "$as_me:$LINENO: result: not" >&5
64192echo "${ECHO_T}not" >&6; }
64193	fi
64194
64195
64196	{ echo "$as_me:$LINENO: checking how to build rpc_srv" >&5
64197echo $ECHO_N "checking how to build rpc_srv... $ECHO_C" >&6; }
64198	if test "$MODULE_rpc_srv"; then
64199		DEST=$MODULE_rpc_srv
64200	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_srv"; then
64201		DEST=$MODULE_rpc
64202	else
64203		DEST=$MODULE_DEFAULT_rpc_srv
64204	fi
64205
64206	if test x"$DEST" = xSHARED; then
64207
64208cat >>confdefs.h <<\_ACEOF
64209#define rpc_srv_init init_module
64210_ACEOF
64211
64212		RPC_MODULES="$RPC_MODULES "bin/librpc_svc.$SHLIBEXT""
64213		{ echo "$as_me:$LINENO: result: shared" >&5
64214echo "${ECHO_T}shared" >&6; }
64215
64216		string_shared_modules="$string_shared_modules rpc_srv"
64217	elif test x"$DEST" = xSTATIC; then
64218		init_static_modules_rpc="$init_static_modules_rpc  rpc_srv_init();"
64219 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_srv_init(void);"
64220		string_static_modules="$string_static_modules rpc_srv"
64221		RPC_STATIC="$RPC_STATIC \$(RPC_SVC_OBJ)"
64222
64223
64224		{ echo "$as_me:$LINENO: result: static" >&5
64225echo "${ECHO_T}static" >&6; }
64226	else
64227	    string_ignored_modules="$string_ignored_modules rpc_srv"
64228		{ echo "$as_me:$LINENO: result: not" >&5
64229echo "${ECHO_T}not" >&6; }
64230	fi
64231
64232
64233	{ echo "$as_me:$LINENO: checking how to build rpc_spoolss" >&5
64234echo $ECHO_N "checking how to build rpc_spoolss... $ECHO_C" >&6; }
64235	if test "$MODULE_rpc_spoolss"; then
64236		DEST=$MODULE_rpc_spoolss
64237	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_spoolss"; then
64238		DEST=$MODULE_rpc
64239	else
64240		DEST=$MODULE_DEFAULT_rpc_spoolss
64241	fi
64242
64243	if test x"$DEST" = xSHARED; then
64244
64245cat >>confdefs.h <<\_ACEOF
64246#define rpc_spoolss_init init_module
64247_ACEOF
64248
64249		RPC_MODULES="$RPC_MODULES "bin/librpc_spoolss.$SHLIBEXT""
64250		{ echo "$as_me:$LINENO: result: shared" >&5
64251echo "${ECHO_T}shared" >&6; }
64252
64253		string_shared_modules="$string_shared_modules rpc_spoolss"
64254	elif test x"$DEST" = xSTATIC; then
64255		init_static_modules_rpc="$init_static_modules_rpc  rpc_spoolss_init();"
64256 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_spoolss_init(void);"
64257		string_static_modules="$string_static_modules rpc_spoolss"
64258		RPC_STATIC="$RPC_STATIC \$(RPC_SPOOLSS_OBJ)"
64259
64260
64261		{ echo "$as_me:$LINENO: result: static" >&5
64262echo "${ECHO_T}static" >&6; }
64263	else
64264	    string_ignored_modules="$string_ignored_modules rpc_spoolss"
64265		{ echo "$as_me:$LINENO: result: not" >&5
64266echo "${ECHO_T}not" >&6; }
64267	fi
64268
64269
64270	{ echo "$as_me:$LINENO: checking how to build rpc_eventlog" >&5
64271echo $ECHO_N "checking how to build rpc_eventlog... $ECHO_C" >&6; }
64272	if test "$MODULE_rpc_eventlog"; then
64273		DEST=$MODULE_rpc_eventlog
64274	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_eventlog"; then
64275		DEST=$MODULE_rpc
64276	else
64277		DEST=$MODULE_DEFAULT_rpc_eventlog
64278	fi
64279
64280	if test x"$DEST" = xSHARED; then
64281
64282cat >>confdefs.h <<\_ACEOF
64283#define rpc_eventlog_init init_module
64284_ACEOF
64285
64286		RPC_MODULES="$RPC_MODULES "bin/librpc_eventlog.$SHLIBEXT""
64287		{ echo "$as_me:$LINENO: result: shared" >&5
64288echo "${ECHO_T}shared" >&6; }
64289
64290		string_shared_modules="$string_shared_modules rpc_eventlog"
64291	elif test x"$DEST" = xSTATIC; then
64292		init_static_modules_rpc="$init_static_modules_rpc  rpc_eventlog_init();"
64293 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_eventlog_init(void);"
64294		string_static_modules="$string_static_modules rpc_eventlog"
64295		RPC_STATIC="$RPC_STATIC \$(RPC_EVENTLOG_OBJ)"
64296
64297
64298		{ echo "$as_me:$LINENO: result: static" >&5
64299echo "${ECHO_T}static" >&6; }
64300	else
64301	    string_ignored_modules="$string_ignored_modules rpc_eventlog"
64302		{ echo "$as_me:$LINENO: result: not" >&5
64303echo "${ECHO_T}not" >&6; }
64304	fi
64305
64306
64307	{ echo "$as_me:$LINENO: checking how to build rpc_samr" >&5
64308echo $ECHO_N "checking how to build rpc_samr... $ECHO_C" >&6; }
64309	if test "$MODULE_rpc_samr"; then
64310		DEST=$MODULE_rpc_samr
64311	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_samr"; then
64312		DEST=$MODULE_rpc
64313	else
64314		DEST=$MODULE_DEFAULT_rpc_samr
64315	fi
64316
64317	if test x"$DEST" = xSHARED; then
64318
64319cat >>confdefs.h <<\_ACEOF
64320#define rpc_samr_init init_module
64321_ACEOF
64322
64323		RPC_MODULES="$RPC_MODULES "bin/librpc_samr.$SHLIBEXT""
64324		{ echo "$as_me:$LINENO: result: shared" >&5
64325echo "${ECHO_T}shared" >&6; }
64326
64327		string_shared_modules="$string_shared_modules rpc_samr"
64328	elif test x"$DEST" = xSTATIC; then
64329		init_static_modules_rpc="$init_static_modules_rpc  rpc_samr_init();"
64330 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_samr_init(void);"
64331		string_static_modules="$string_static_modules rpc_samr"
64332		RPC_STATIC="$RPC_STATIC \$(RPC_SAMR_OBJ)"
64333
64334
64335		{ echo "$as_me:$LINENO: result: static" >&5
64336echo "${ECHO_T}static" >&6; }
64337	else
64338	    string_ignored_modules="$string_ignored_modules rpc_samr"
64339		{ echo "$as_me:$LINENO: result: not" >&5
64340echo "${ECHO_T}not" >&6; }
64341	fi
64342
64343
64344	{ echo "$as_me:$LINENO: checking how to build rpc_echo" >&5
64345echo $ECHO_N "checking how to build rpc_echo... $ECHO_C" >&6; }
64346	if test "$MODULE_rpc_echo"; then
64347		DEST=$MODULE_rpc_echo
64348	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_echo"; then
64349		DEST=$MODULE_rpc
64350	else
64351		DEST=$MODULE_DEFAULT_rpc_echo
64352	fi
64353
64354	if test x"$DEST" = xSHARED; then
64355
64356cat >>confdefs.h <<\_ACEOF
64357#define rpc_echo_init init_module
64358_ACEOF
64359
64360		RPC_MODULES="$RPC_MODULES "bin/librpc_echo.$SHLIBEXT""
64361		{ echo "$as_me:$LINENO: result: shared" >&5
64362echo "${ECHO_T}shared" >&6; }
64363
64364		string_shared_modules="$string_shared_modules rpc_echo"
64365	elif test x"$DEST" = xSTATIC; then
64366		init_static_modules_rpc="$init_static_modules_rpc  rpc_echo_init();"
64367 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_echo_init(void);"
64368		string_static_modules="$string_static_modules rpc_echo"
64369		RPC_STATIC="$RPC_STATIC \$(RPC_ECHO_OBJ)"
64370
64371
64372		{ echo "$as_me:$LINENO: result: static" >&5
64373echo "${ECHO_T}static" >&6; }
64374	else
64375	    string_ignored_modules="$string_ignored_modules rpc_echo"
64376		{ echo "$as_me:$LINENO: result: not" >&5
64377echo "${ECHO_T}not" >&6; }
64378	fi
64379
64380
64381
64382
64383
64384cat >>confdefs.h <<_ACEOF
64385#define static_init_rpc {$init_static_modules_rpc}
64386_ACEOF
64387
64388
64389cat >>confdefs.h <<_ACEOF
64390#define static_decl_rpc $decl_static_modules_rpc
64391_ACEOF
64392
64393    	rm -f smbd/server.o
64394
64395
64396
64397	{ echo "$as_me:$LINENO: checking how to build idmap_ldap" >&5
64398echo $ECHO_N "checking how to build idmap_ldap... $ECHO_C" >&6; }
64399	if test "$MODULE_idmap_ldap"; then
64400		DEST=$MODULE_idmap_ldap
64401	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_ldap"; then
64402		DEST=$MODULE_idmap
64403	else
64404		DEST=$MODULE_DEFAULT_idmap_ldap
64405	fi
64406
64407	if test x"$DEST" = xSHARED; then
64408
64409cat >>confdefs.h <<\_ACEOF
64410#define idmap_ldap_init init_module
64411_ACEOF
64412
64413		IDMAP_MODULES="$IDMAP_MODULES "bin/ldap.$SHLIBEXT""
64414		{ echo "$as_me:$LINENO: result: shared" >&5
64415echo "${ECHO_T}shared" >&6; }
64416
64417		string_shared_modules="$string_shared_modules idmap_ldap"
64418	elif test x"$DEST" = xSTATIC; then
64419		init_static_modules_idmap="$init_static_modules_idmap  idmap_ldap_init();"
64420 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_ldap_init(void);"
64421		string_static_modules="$string_static_modules idmap_ldap"
64422		IDMAP_STATIC="$IDMAP_STATIC nsswitch/idmap_ldap.o"
64423
64424
64425		{ echo "$as_me:$LINENO: result: static" >&5
64426echo "${ECHO_T}static" >&6; }
64427	else
64428	    string_ignored_modules="$string_ignored_modules idmap_ldap"
64429		{ echo "$as_me:$LINENO: result: not" >&5
64430echo "${ECHO_T}not" >&6; }
64431	fi
64432
64433
64434	{ echo "$as_me:$LINENO: checking how to build idmap_tdb" >&5
64435echo $ECHO_N "checking how to build idmap_tdb... $ECHO_C" >&6; }
64436	if test "$MODULE_idmap_tdb"; then
64437		DEST=$MODULE_idmap_tdb
64438	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_tdb"; then
64439		DEST=$MODULE_idmap
64440	else
64441		DEST=$MODULE_DEFAULT_idmap_tdb
64442	fi
64443
64444	if test x"$DEST" = xSHARED; then
64445
64446cat >>confdefs.h <<\_ACEOF
64447#define idmap_tdb_init init_module
64448_ACEOF
64449
64450		IDMAP_MODULES="$IDMAP_MODULES "bin/tdb.$SHLIBEXT""
64451		{ echo "$as_me:$LINENO: result: shared" >&5
64452echo "${ECHO_T}shared" >&6; }
64453
64454		string_shared_modules="$string_shared_modules idmap_tdb"
64455	elif test x"$DEST" = xSTATIC; then
64456		init_static_modules_idmap="$init_static_modules_idmap  idmap_tdb_init();"
64457 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_tdb_init(void);"
64458		string_static_modules="$string_static_modules idmap_tdb"
64459		IDMAP_STATIC="$IDMAP_STATIC nsswitch/idmap_tdb.o"
64460
64461
64462		{ echo "$as_me:$LINENO: result: static" >&5
64463echo "${ECHO_T}static" >&6; }
64464	else
64465	    string_ignored_modules="$string_ignored_modules idmap_tdb"
64466		{ echo "$as_me:$LINENO: result: not" >&5
64467echo "${ECHO_T}not" >&6; }
64468	fi
64469
64470
64471	{ echo "$as_me:$LINENO: checking how to build idmap_passdb" >&5
64472echo $ECHO_N "checking how to build idmap_passdb... $ECHO_C" >&6; }
64473	if test "$MODULE_idmap_passdb"; then
64474		DEST=$MODULE_idmap_passdb
64475	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_passdb"; then
64476		DEST=$MODULE_idmap
64477	else
64478		DEST=$MODULE_DEFAULT_idmap_passdb
64479	fi
64480
64481	if test x"$DEST" = xSHARED; then
64482
64483cat >>confdefs.h <<\_ACEOF
64484#define idmap_passdb_init init_module
64485_ACEOF
64486
64487		IDMAP_MODULES="$IDMAP_MODULES "bin/passdb.$SHLIBEXT""
64488		{ echo "$as_me:$LINENO: result: shared" >&5
64489echo "${ECHO_T}shared" >&6; }
64490
64491		string_shared_modules="$string_shared_modules idmap_passdb"
64492	elif test x"$DEST" = xSTATIC; then
64493		init_static_modules_idmap="$init_static_modules_idmap  idmap_passdb_init();"
64494 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_passdb_init(void);"
64495		string_static_modules="$string_static_modules idmap_passdb"
64496		IDMAP_STATIC="$IDMAP_STATIC nsswitch/idmap_passdb.o"
64497
64498
64499		{ echo "$as_me:$LINENO: result: static" >&5
64500echo "${ECHO_T}static" >&6; }
64501	else
64502	    string_ignored_modules="$string_ignored_modules idmap_passdb"
64503		{ echo "$as_me:$LINENO: result: not" >&5
64504echo "${ECHO_T}not" >&6; }
64505	fi
64506
64507
64508	{ echo "$as_me:$LINENO: checking how to build idmap_nss" >&5
64509echo $ECHO_N "checking how to build idmap_nss... $ECHO_C" >&6; }
64510	if test "$MODULE_idmap_nss"; then
64511		DEST=$MODULE_idmap_nss
64512	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_nss"; then
64513		DEST=$MODULE_idmap
64514	else
64515		DEST=$MODULE_DEFAULT_idmap_nss
64516	fi
64517
64518	if test x"$DEST" = xSHARED; then
64519
64520cat >>confdefs.h <<\_ACEOF
64521#define idmap_nss_init init_module
64522_ACEOF
64523
64524		IDMAP_MODULES="$IDMAP_MODULES "bin/nss.$SHLIBEXT""
64525		{ echo "$as_me:$LINENO: result: shared" >&5
64526echo "${ECHO_T}shared" >&6; }
64527
64528		string_shared_modules="$string_shared_modules idmap_nss"
64529	elif test x"$DEST" = xSTATIC; then
64530		init_static_modules_idmap="$init_static_modules_idmap  idmap_nss_init();"
64531 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_nss_init(void);"
64532		string_static_modules="$string_static_modules idmap_nss"
64533		IDMAP_STATIC="$IDMAP_STATIC nsswitch/idmap_nss.o"
64534
64535
64536		{ echo "$as_me:$LINENO: result: static" >&5
64537echo "${ECHO_T}static" >&6; }
64538	else
64539	    string_ignored_modules="$string_ignored_modules idmap_nss"
64540		{ echo "$as_me:$LINENO: result: not" >&5
64541echo "${ECHO_T}not" >&6; }
64542	fi
64543
64544
64545	{ echo "$as_me:$LINENO: checking how to build idmap_rid" >&5
64546echo $ECHO_N "checking how to build idmap_rid... $ECHO_C" >&6; }
64547	if test "$MODULE_idmap_rid"; then
64548		DEST=$MODULE_idmap_rid
64549	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_rid"; then
64550		DEST=$MODULE_idmap
64551	else
64552		DEST=$MODULE_DEFAULT_idmap_rid
64553	fi
64554
64555	if test x"$DEST" = xSHARED; then
64556
64557cat >>confdefs.h <<\_ACEOF
64558#define idmap_rid_init init_module
64559_ACEOF
64560
64561		IDMAP_MODULES="$IDMAP_MODULES "bin/rid.$SHLIBEXT""
64562		{ echo "$as_me:$LINENO: result: shared" >&5
64563echo "${ECHO_T}shared" >&6; }
64564
64565		string_shared_modules="$string_shared_modules idmap_rid"
64566	elif test x"$DEST" = xSTATIC; then
64567		init_static_modules_idmap="$init_static_modules_idmap  idmap_rid_init();"
64568 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_rid_init(void);"
64569		string_static_modules="$string_static_modules idmap_rid"
64570		IDMAP_STATIC="$IDMAP_STATIC nsswitch/idmap_rid.o"
64571
64572
64573		{ echo "$as_me:$LINENO: result: static" >&5
64574echo "${ECHO_T}static" >&6; }
64575	else
64576	    string_ignored_modules="$string_ignored_modules idmap_rid"
64577		{ echo "$as_me:$LINENO: result: not" >&5
64578echo "${ECHO_T}not" >&6; }
64579	fi
64580
64581
64582	{ echo "$as_me:$LINENO: checking how to build idmap_ad" >&5
64583echo $ECHO_N "checking how to build idmap_ad... $ECHO_C" >&6; }
64584	if test "$MODULE_idmap_ad"; then
64585		DEST=$MODULE_idmap_ad
64586	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_ad"; then
64587		DEST=$MODULE_idmap
64588	else
64589		DEST=$MODULE_DEFAULT_idmap_ad
64590	fi
64591
64592	if test x"$DEST" = xSHARED; then
64593
64594cat >>confdefs.h <<\_ACEOF
64595#define idmap_ad_init init_module
64596_ACEOF
64597
64598		IDMAP_MODULES="$IDMAP_MODULES "bin/ad.$SHLIBEXT""
64599		{ echo "$as_me:$LINENO: result: shared" >&5
64600echo "${ECHO_T}shared" >&6; }
64601
64602		string_shared_modules="$string_shared_modules idmap_ad"
64603	elif test x"$DEST" = xSTATIC; then
64604		init_static_modules_idmap="$init_static_modules_idmap  idmap_ad_init();"
64605 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_ad_init(void);"
64606		string_static_modules="$string_static_modules idmap_ad"
64607		IDMAP_STATIC="$IDMAP_STATIC nsswitch/idmap_ad.o"
64608
64609
64610		{ echo "$as_me:$LINENO: result: static" >&5
64611echo "${ECHO_T}static" >&6; }
64612	else
64613	    string_ignored_modules="$string_ignored_modules idmap_ad"
64614		{ echo "$as_me:$LINENO: result: not" >&5
64615echo "${ECHO_T}not" >&6; }
64616	fi
64617
64618
64619
64620
64621
64622cat >>confdefs.h <<_ACEOF
64623#define static_init_idmap {$init_static_modules_idmap}
64624_ACEOF
64625
64626
64627cat >>confdefs.h <<_ACEOF
64628#define static_decl_idmap $decl_static_modules_idmap
64629_ACEOF
64630
64631    	rm -f nsswitch/idmap.o
64632
64633
64634
64635	{ echo "$as_me:$LINENO: checking how to build nss_info_template" >&5
64636echo $ECHO_N "checking how to build nss_info_template... $ECHO_C" >&6; }
64637	if test "$MODULE_nss_info_template"; then
64638		DEST=$MODULE_nss_info_template
64639	elif test "$MODULE_nss_info" -a "$MODULE_DEFAULT_nss_info_template"; then
64640		DEST=$MODULE_nss_info
64641	else
64642		DEST=$MODULE_DEFAULT_nss_info_template
64643	fi
64644
64645	if test x"$DEST" = xSHARED; then
64646
64647cat >>confdefs.h <<\_ACEOF
64648#define nss_info_template_init init_module
64649_ACEOF
64650
64651		NSS_INFO_MODULES="$NSS_INFO_MODULES "bin/template.$SHLIBEXT""
64652		{ echo "$as_me:$LINENO: result: shared" >&5
64653echo "${ECHO_T}shared" >&6; }
64654
64655		string_shared_modules="$string_shared_modules nss_info_template"
64656	elif test x"$DEST" = xSTATIC; then
64657		init_static_modules_nss_info="$init_static_modules_nss_info  nss_info_template_init();"
64658 		decl_static_modules_nss_info="$decl_static_modules_nss_info extern NTSTATUS nss_info_template_init(void);"
64659		string_static_modules="$string_static_modules nss_info_template"
64660		NSS_INFO_STATIC="$NSS_INFO_STATIC nsswitch/nss_info_template.o"
64661
64662
64663		{ echo "$as_me:$LINENO: result: static" >&5
64664echo "${ECHO_T}static" >&6; }
64665	else
64666	    string_ignored_modules="$string_ignored_modules nss_info_template"
64667		{ echo "$as_me:$LINENO: result: not" >&5
64668echo "${ECHO_T}not" >&6; }
64669	fi
64670
64671
64672
64673
64674
64675cat >>confdefs.h <<_ACEOF
64676#define static_init_nss_info {$init_static_modules_nss_info}
64677_ACEOF
64678
64679
64680cat >>confdefs.h <<_ACEOF
64681#define static_decl_nss_info $decl_static_modules_nss_info
64682_ACEOF
64683
64684    	rm -f nsswitch/nss_info.o
64685
64686
64687
64688	{ echo "$as_me:$LINENO: checking how to build charset_weird" >&5
64689echo $ECHO_N "checking how to build charset_weird... $ECHO_C" >&6; }
64690	if test "$MODULE_charset_weird"; then
64691		DEST=$MODULE_charset_weird
64692	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_weird"; then
64693		DEST=$MODULE_charset
64694	else
64695		DEST=$MODULE_DEFAULT_charset_weird
64696	fi
64697
64698	if test x"$DEST" = xSHARED; then
64699
64700cat >>confdefs.h <<\_ACEOF
64701#define charset_weird_init init_module
64702_ACEOF
64703
64704		CHARSET_MODULES="$CHARSET_MODULES "bin/weird.$SHLIBEXT""
64705		{ echo "$as_me:$LINENO: result: shared" >&5
64706echo "${ECHO_T}shared" >&6; }
64707
64708		string_shared_modules="$string_shared_modules charset_weird"
64709	elif test x"$DEST" = xSTATIC; then
64710		init_static_modules_charset="$init_static_modules_charset  charset_weird_init();"
64711 		decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_weird_init(void);"
64712		string_static_modules="$string_static_modules charset_weird"
64713		CHARSET_STATIC="$CHARSET_STATIC modules/weird.o"
64714
64715
64716		{ echo "$as_me:$LINENO: result: static" >&5
64717echo "${ECHO_T}static" >&6; }
64718	else
64719	    string_ignored_modules="$string_ignored_modules charset_weird"
64720		{ echo "$as_me:$LINENO: result: not" >&5
64721echo "${ECHO_T}not" >&6; }
64722	fi
64723
64724
64725	{ echo "$as_me:$LINENO: checking how to build charset_CP850" >&5
64726echo $ECHO_N "checking how to build charset_CP850... $ECHO_C" >&6; }
64727	if test "$MODULE_charset_CP850"; then
64728		DEST=$MODULE_charset_CP850
64729	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_CP850"; then
64730		DEST=$MODULE_charset
64731	else
64732		DEST=$MODULE_DEFAULT_charset_CP850
64733	fi
64734
64735	if test x"$DEST" = xSHARED; then
64736
64737cat >>confdefs.h <<\_ACEOF
64738#define charset_CP850_init init_module
64739_ACEOF
64740
64741		CHARSET_MODULES="$CHARSET_MODULES "bin/CP850.$SHLIBEXT""
64742		{ echo "$as_me:$LINENO: result: shared" >&5
64743echo "${ECHO_T}shared" >&6; }
64744
64745		string_shared_modules="$string_shared_modules charset_CP850"
64746	elif test x"$DEST" = xSTATIC; then
64747		init_static_modules_charset="$init_static_modules_charset  charset_CP850_init();"
64748 		decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_CP850_init(void);"
64749		string_static_modules="$string_static_modules charset_CP850"
64750		CHARSET_STATIC="$CHARSET_STATIC modules/CP850.o"
64751
64752
64753		{ echo "$as_me:$LINENO: result: static" >&5
64754echo "${ECHO_T}static" >&6; }
64755	else
64756	    string_ignored_modules="$string_ignored_modules charset_CP850"
64757		{ echo "$as_me:$LINENO: result: not" >&5
64758echo "${ECHO_T}not" >&6; }
64759	fi
64760
64761
64762	{ echo "$as_me:$LINENO: checking how to build charset_CP437" >&5
64763echo $ECHO_N "checking how to build charset_CP437... $ECHO_C" >&6; }
64764	if test "$MODULE_charset_CP437"; then
64765		DEST=$MODULE_charset_CP437
64766	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_CP437"; then
64767		DEST=$MODULE_charset
64768	else
64769		DEST=$MODULE_DEFAULT_charset_CP437
64770	fi
64771
64772	if test x"$DEST" = xSHARED; then
64773
64774cat >>confdefs.h <<\_ACEOF
64775#define charset_CP437_init init_module
64776_ACEOF
64777
64778		CHARSET_MODULES="$CHARSET_MODULES "bin/CP437.$SHLIBEXT""
64779		{ echo "$as_me:$LINENO: result: shared" >&5
64780echo "${ECHO_T}shared" >&6; }
64781
64782		string_shared_modules="$string_shared_modules charset_CP437"
64783	elif test x"$DEST" = xSTATIC; then
64784		init_static_modules_charset="$init_static_modules_charset  charset_CP437_init();"
64785 		decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_CP437_init(void);"
64786		string_static_modules="$string_static_modules charset_CP437"
64787		CHARSET_STATIC="$CHARSET_STATIC modules/CP437.o"
64788
64789
64790		{ echo "$as_me:$LINENO: result: static" >&5
64791echo "${ECHO_T}static" >&6; }
64792	else
64793	    string_ignored_modules="$string_ignored_modules charset_CP437"
64794		{ echo "$as_me:$LINENO: result: not" >&5
64795echo "${ECHO_T}not" >&6; }
64796	fi
64797
64798
64799	{ echo "$as_me:$LINENO: checking how to build charset_macosxfs" >&5
64800echo $ECHO_N "checking how to build charset_macosxfs... $ECHO_C" >&6; }
64801	if test "$MODULE_charset_macosxfs"; then
64802		DEST=$MODULE_charset_macosxfs
64803	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_macosxfs"; then
64804		DEST=$MODULE_charset
64805	else
64806		DEST=$MODULE_DEFAULT_charset_macosxfs
64807	fi
64808
64809	if test x"$DEST" = xSHARED; then
64810
64811cat >>confdefs.h <<\_ACEOF
64812#define charset_macosxfs_init init_module
64813_ACEOF
64814
64815		CHARSET_MODULES="$CHARSET_MODULES "bin/macosxfs.$SHLIBEXT""
64816		{ echo "$as_me:$LINENO: result: shared" >&5
64817echo "${ECHO_T}shared" >&6; }
64818
64819		string_shared_modules="$string_shared_modules charset_macosxfs"
64820	elif test x"$DEST" = xSTATIC; then
64821		init_static_modules_charset="$init_static_modules_charset  charset_macosxfs_init();"
64822 		decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_macosxfs_init(void);"
64823		string_static_modules="$string_static_modules charset_macosxfs"
64824		CHARSET_STATIC="$CHARSET_STATIC modules/charset_macosxfs.o"
64825
64826
64827		{ echo "$as_me:$LINENO: result: static" >&5
64828echo "${ECHO_T}static" >&6; }
64829	else
64830	    string_ignored_modules="$string_ignored_modules charset_macosxfs"
64831		{ echo "$as_me:$LINENO: result: not" >&5
64832echo "${ECHO_T}not" >&6; }
64833	fi
64834
64835
64836
64837
64838
64839cat >>confdefs.h <<_ACEOF
64840#define static_init_charset {$init_static_modules_charset}
64841_ACEOF
64842
64843
64844cat >>confdefs.h <<_ACEOF
64845#define static_decl_charset $decl_static_modules_charset
64846_ACEOF
64847
64848    	rm -f lib/iconv.o
64849
64850
64851
64852	{ echo "$as_me:$LINENO: checking how to build auth_sam" >&5
64853echo $ECHO_N "checking how to build auth_sam... $ECHO_C" >&6; }
64854	if test "$MODULE_auth_sam"; then
64855		DEST=$MODULE_auth_sam
64856	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_sam"; then
64857		DEST=$MODULE_auth
64858	else
64859		DEST=$MODULE_DEFAULT_auth_sam
64860	fi
64861
64862	if test x"$DEST" = xSHARED; then
64863
64864cat >>confdefs.h <<\_ACEOF
64865#define auth_sam_init init_module
64866_ACEOF
64867
64868		AUTH_MODULES="$AUTH_MODULES "bin/sam.$SHLIBEXT""
64869		{ echo "$as_me:$LINENO: result: shared" >&5
64870echo "${ECHO_T}shared" >&6; }
64871
64872		string_shared_modules="$string_shared_modules auth_sam"
64873	elif test x"$DEST" = xSTATIC; then
64874		init_static_modules_auth="$init_static_modules_auth  auth_sam_init();"
64875 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_sam_init(void);"
64876		string_static_modules="$string_static_modules auth_sam"
64877		AUTH_STATIC="$AUTH_STATIC \$(AUTH_SAM_OBJ)"
64878
64879
64880		{ echo "$as_me:$LINENO: result: static" >&5
64881echo "${ECHO_T}static" >&6; }
64882	else
64883	    string_ignored_modules="$string_ignored_modules auth_sam"
64884		{ echo "$as_me:$LINENO: result: not" >&5
64885echo "${ECHO_T}not" >&6; }
64886	fi
64887
64888
64889	{ echo "$as_me:$LINENO: checking how to build auth_unix" >&5
64890echo $ECHO_N "checking how to build auth_unix... $ECHO_C" >&6; }
64891	if test "$MODULE_auth_unix"; then
64892		DEST=$MODULE_auth_unix
64893	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_unix"; then
64894		DEST=$MODULE_auth
64895	else
64896		DEST=$MODULE_DEFAULT_auth_unix
64897	fi
64898
64899	if test x"$DEST" = xSHARED; then
64900
64901cat >>confdefs.h <<\_ACEOF
64902#define auth_unix_init init_module
64903_ACEOF
64904
64905		AUTH_MODULES="$AUTH_MODULES "bin/unix.$SHLIBEXT""
64906		{ echo "$as_me:$LINENO: result: shared" >&5
64907echo "${ECHO_T}shared" >&6; }
64908
64909		string_shared_modules="$string_shared_modules auth_unix"
64910	elif test x"$DEST" = xSTATIC; then
64911		init_static_modules_auth="$init_static_modules_auth  auth_unix_init();"
64912 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_unix_init(void);"
64913		string_static_modules="$string_static_modules auth_unix"
64914		AUTH_STATIC="$AUTH_STATIC \$(AUTH_UNIX_OBJ)"
64915
64916
64917		{ echo "$as_me:$LINENO: result: static" >&5
64918echo "${ECHO_T}static" >&6; }
64919	else
64920	    string_ignored_modules="$string_ignored_modules auth_unix"
64921		{ echo "$as_me:$LINENO: result: not" >&5
64922echo "${ECHO_T}not" >&6; }
64923	fi
64924
64925
64926	{ echo "$as_me:$LINENO: checking how to build auth_winbind" >&5
64927echo $ECHO_N "checking how to build auth_winbind... $ECHO_C" >&6; }
64928	if test "$MODULE_auth_winbind"; then
64929		DEST=$MODULE_auth_winbind
64930	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_winbind"; then
64931		DEST=$MODULE_auth
64932	else
64933		DEST=$MODULE_DEFAULT_auth_winbind
64934	fi
64935
64936	if test x"$DEST" = xSHARED; then
64937
64938cat >>confdefs.h <<\_ACEOF
64939#define auth_winbind_init init_module
64940_ACEOF
64941
64942		AUTH_MODULES="$AUTH_MODULES "bin/winbind.$SHLIBEXT""
64943		{ echo "$as_me:$LINENO: result: shared" >&5
64944echo "${ECHO_T}shared" >&6; }
64945
64946		string_shared_modules="$string_shared_modules auth_winbind"
64947	elif test x"$DEST" = xSTATIC; then
64948		init_static_modules_auth="$init_static_modules_auth  auth_winbind_init();"
64949 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_winbind_init(void);"
64950		string_static_modules="$string_static_modules auth_winbind"
64951		AUTH_STATIC="$AUTH_STATIC \$(AUTH_WINBIND_OBJ)"
64952
64953
64954		{ echo "$as_me:$LINENO: result: static" >&5
64955echo "${ECHO_T}static" >&6; }
64956	else
64957	    string_ignored_modules="$string_ignored_modules auth_winbind"
64958		{ echo "$as_me:$LINENO: result: not" >&5
64959echo "${ECHO_T}not" >&6; }
64960	fi
64961
64962
64963	{ echo "$as_me:$LINENO: checking how to build auth_server" >&5
64964echo $ECHO_N "checking how to build auth_server... $ECHO_C" >&6; }
64965	if test "$MODULE_auth_server"; then
64966		DEST=$MODULE_auth_server
64967	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_server"; then
64968		DEST=$MODULE_auth
64969	else
64970		DEST=$MODULE_DEFAULT_auth_server
64971	fi
64972
64973	if test x"$DEST" = xSHARED; then
64974
64975cat >>confdefs.h <<\_ACEOF
64976#define auth_server_init init_module
64977_ACEOF
64978
64979		AUTH_MODULES="$AUTH_MODULES "bin/smbserver.$SHLIBEXT""
64980		{ echo "$as_me:$LINENO: result: shared" >&5
64981echo "${ECHO_T}shared" >&6; }
64982
64983		string_shared_modules="$string_shared_modules auth_server"
64984	elif test x"$DEST" = xSTATIC; then
64985		init_static_modules_auth="$init_static_modules_auth  auth_server_init();"
64986 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_server_init(void);"
64987		string_static_modules="$string_static_modules auth_server"
64988		AUTH_STATIC="$AUTH_STATIC \$(AUTH_SERVER_OBJ)"
64989
64990
64991		{ echo "$as_me:$LINENO: result: static" >&5
64992echo "${ECHO_T}static" >&6; }
64993	else
64994	    string_ignored_modules="$string_ignored_modules auth_server"
64995		{ echo "$as_me:$LINENO: result: not" >&5
64996echo "${ECHO_T}not" >&6; }
64997	fi
64998
64999
65000	{ echo "$as_me:$LINENO: checking how to build auth_domain" >&5
65001echo $ECHO_N "checking how to build auth_domain... $ECHO_C" >&6; }
65002	if test "$MODULE_auth_domain"; then
65003		DEST=$MODULE_auth_domain
65004	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_domain"; then
65005		DEST=$MODULE_auth
65006	else
65007		DEST=$MODULE_DEFAULT_auth_domain
65008	fi
65009
65010	if test x"$DEST" = xSHARED; then
65011
65012cat >>confdefs.h <<\_ACEOF
65013#define auth_domain_init init_module
65014_ACEOF
65015
65016		AUTH_MODULES="$AUTH_MODULES "bin/domain.$SHLIBEXT""
65017		{ echo "$as_me:$LINENO: result: shared" >&5
65018echo "${ECHO_T}shared" >&6; }
65019
65020		string_shared_modules="$string_shared_modules auth_domain"
65021	elif test x"$DEST" = xSTATIC; then
65022		init_static_modules_auth="$init_static_modules_auth  auth_domain_init();"
65023 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_domain_init(void);"
65024		string_static_modules="$string_static_modules auth_domain"
65025		AUTH_STATIC="$AUTH_STATIC \$(AUTH_DOMAIN_OBJ)"
65026
65027
65028		{ echo "$as_me:$LINENO: result: static" >&5
65029echo "${ECHO_T}static" >&6; }
65030	else
65031	    string_ignored_modules="$string_ignored_modules auth_domain"
65032		{ echo "$as_me:$LINENO: result: not" >&5
65033echo "${ECHO_T}not" >&6; }
65034	fi
65035
65036
65037	{ echo "$as_me:$LINENO: checking how to build auth_builtin" >&5
65038echo $ECHO_N "checking how to build auth_builtin... $ECHO_C" >&6; }
65039	if test "$MODULE_auth_builtin"; then
65040		DEST=$MODULE_auth_builtin
65041	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_builtin"; then
65042		DEST=$MODULE_auth
65043	else
65044		DEST=$MODULE_DEFAULT_auth_builtin
65045	fi
65046
65047	if test x"$DEST" = xSHARED; then
65048
65049cat >>confdefs.h <<\_ACEOF
65050#define auth_builtin_init init_module
65051_ACEOF
65052
65053		AUTH_MODULES="$AUTH_MODULES "bin/builtin.$SHLIBEXT""
65054		{ echo "$as_me:$LINENO: result: shared" >&5
65055echo "${ECHO_T}shared" >&6; }
65056
65057		string_shared_modules="$string_shared_modules auth_builtin"
65058	elif test x"$DEST" = xSTATIC; then
65059		init_static_modules_auth="$init_static_modules_auth  auth_builtin_init();"
65060 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_builtin_init(void);"
65061		string_static_modules="$string_static_modules auth_builtin"
65062		AUTH_STATIC="$AUTH_STATIC \$(AUTH_BUILTIN_OBJ)"
65063
65064
65065		{ echo "$as_me:$LINENO: result: static" >&5
65066echo "${ECHO_T}static" >&6; }
65067	else
65068	    string_ignored_modules="$string_ignored_modules auth_builtin"
65069		{ echo "$as_me:$LINENO: result: not" >&5
65070echo "${ECHO_T}not" >&6; }
65071	fi
65072
65073
65074	{ echo "$as_me:$LINENO: checking how to build auth_script" >&5
65075echo $ECHO_N "checking how to build auth_script... $ECHO_C" >&6; }
65076	if test "$MODULE_auth_script"; then
65077		DEST=$MODULE_auth_script
65078	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_script"; then
65079		DEST=$MODULE_auth
65080	else
65081		DEST=$MODULE_DEFAULT_auth_script
65082	fi
65083
65084	if test x"$DEST" = xSHARED; then
65085
65086cat >>confdefs.h <<\_ACEOF
65087#define auth_script_init init_module
65088_ACEOF
65089
65090		AUTH_MODULES="$AUTH_MODULES "bin/script.$SHLIBEXT""
65091		{ echo "$as_me:$LINENO: result: shared" >&5
65092echo "${ECHO_T}shared" >&6; }
65093
65094		string_shared_modules="$string_shared_modules auth_script"
65095	elif test x"$DEST" = xSTATIC; then
65096		init_static_modules_auth="$init_static_modules_auth  auth_script_init();"
65097 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_script_init(void);"
65098		string_static_modules="$string_static_modules auth_script"
65099		AUTH_STATIC="$AUTH_STATIC \$(AUTH_SCRIPT_OBJ)"
65100
65101
65102		{ echo "$as_me:$LINENO: result: static" >&5
65103echo "${ECHO_T}static" >&6; }
65104	else
65105	    string_ignored_modules="$string_ignored_modules auth_script"
65106		{ echo "$as_me:$LINENO: result: not" >&5
65107echo "${ECHO_T}not" >&6; }
65108	fi
65109
65110
65111
65112
65113
65114cat >>confdefs.h <<_ACEOF
65115#define static_init_auth {$init_static_modules_auth}
65116_ACEOF
65117
65118
65119cat >>confdefs.h <<_ACEOF
65120#define static_decl_auth $decl_static_modules_auth
65121_ACEOF
65122
65123    	rm -f auth/auth.o
65124
65125
65126
65127	{ echo "$as_me:$LINENO: checking how to build vfs_default" >&5
65128echo $ECHO_N "checking how to build vfs_default... $ECHO_C" >&6; }
65129	if test "$MODULE_vfs_default"; then
65130		DEST=$MODULE_vfs_default
65131	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_default"; then
65132		DEST=$MODULE_vfs
65133	else
65134		DEST=$MODULE_DEFAULT_vfs_default
65135	fi
65136
65137	if test x"$DEST" = xSHARED; then
65138
65139cat >>confdefs.h <<\_ACEOF
65140#define vfs_default_init init_module
65141_ACEOF
65142
65143		VFS_MODULES="$VFS_MODULES "bin/default.$SHLIBEXT""
65144		{ echo "$as_me:$LINENO: result: shared" >&5
65145echo "${ECHO_T}shared" >&6; }
65146
65147		string_shared_modules="$string_shared_modules vfs_default"
65148	elif test x"$DEST" = xSTATIC; then
65149		init_static_modules_vfs="$init_static_modules_vfs  vfs_default_init();"
65150 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_default_init(void);"
65151		string_static_modules="$string_static_modules vfs_default"
65152		VFS_STATIC="$VFS_STATIC \$(VFS_DEFAULT_OBJ)"
65153
65154
65155		{ echo "$as_me:$LINENO: result: static" >&5
65156echo "${ECHO_T}static" >&6; }
65157	else
65158	    string_ignored_modules="$string_ignored_modules vfs_default"
65159		{ echo "$as_me:$LINENO: result: not" >&5
65160echo "${ECHO_T}not" >&6; }
65161	fi
65162
65163
65164	{ echo "$as_me:$LINENO: checking how to build vfs_recycle" >&5
65165echo $ECHO_N "checking how to build vfs_recycle... $ECHO_C" >&6; }
65166	if test "$MODULE_vfs_recycle"; then
65167		DEST=$MODULE_vfs_recycle
65168	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_recycle"; then
65169		DEST=$MODULE_vfs
65170	else
65171		DEST=$MODULE_DEFAULT_vfs_recycle
65172	fi
65173
65174	if test x"$DEST" = xSHARED; then
65175
65176cat >>confdefs.h <<\_ACEOF
65177#define vfs_recycle_init init_module
65178_ACEOF
65179
65180		VFS_MODULES="$VFS_MODULES "bin/recycle.$SHLIBEXT""
65181		{ echo "$as_me:$LINENO: result: shared" >&5
65182echo "${ECHO_T}shared" >&6; }
65183
65184		string_shared_modules="$string_shared_modules vfs_recycle"
65185	elif test x"$DEST" = xSTATIC; then
65186		init_static_modules_vfs="$init_static_modules_vfs  vfs_recycle_init();"
65187 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_recycle_init(void);"
65188		string_static_modules="$string_static_modules vfs_recycle"
65189		VFS_STATIC="$VFS_STATIC \$(VFS_RECYCLE_OBJ)"
65190
65191
65192		{ echo "$as_me:$LINENO: result: static" >&5
65193echo "${ECHO_T}static" >&6; }
65194	else
65195	    string_ignored_modules="$string_ignored_modules vfs_recycle"
65196		{ echo "$as_me:$LINENO: result: not" >&5
65197echo "${ECHO_T}not" >&6; }
65198	fi
65199
65200
65201	{ echo "$as_me:$LINENO: checking how to build vfs_audit" >&5
65202echo $ECHO_N "checking how to build vfs_audit... $ECHO_C" >&6; }
65203	if test "$MODULE_vfs_audit"; then
65204		DEST=$MODULE_vfs_audit
65205	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_audit"; then
65206		DEST=$MODULE_vfs
65207	else
65208		DEST=$MODULE_DEFAULT_vfs_audit
65209	fi
65210
65211	if test x"$DEST" = xSHARED; then
65212
65213cat >>confdefs.h <<\_ACEOF
65214#define vfs_audit_init init_module
65215_ACEOF
65216
65217		VFS_MODULES="$VFS_MODULES "bin/audit.$SHLIBEXT""
65218		{ echo "$as_me:$LINENO: result: shared" >&5
65219echo "${ECHO_T}shared" >&6; }
65220
65221		string_shared_modules="$string_shared_modules vfs_audit"
65222	elif test x"$DEST" = xSTATIC; then
65223		init_static_modules_vfs="$init_static_modules_vfs  vfs_audit_init();"
65224 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_audit_init(void);"
65225		string_static_modules="$string_static_modules vfs_audit"
65226		VFS_STATIC="$VFS_STATIC \$(VFS_AUDIT_OBJ)"
65227
65228
65229		{ echo "$as_me:$LINENO: result: static" >&5
65230echo "${ECHO_T}static" >&6; }
65231	else
65232	    string_ignored_modules="$string_ignored_modules vfs_audit"
65233		{ echo "$as_me:$LINENO: result: not" >&5
65234echo "${ECHO_T}not" >&6; }
65235	fi
65236
65237
65238	{ echo "$as_me:$LINENO: checking how to build vfs_extd_audit" >&5
65239echo $ECHO_N "checking how to build vfs_extd_audit... $ECHO_C" >&6; }
65240	if test "$MODULE_vfs_extd_audit"; then
65241		DEST=$MODULE_vfs_extd_audit
65242	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_extd_audit"; then
65243		DEST=$MODULE_vfs
65244	else
65245		DEST=$MODULE_DEFAULT_vfs_extd_audit
65246	fi
65247
65248	if test x"$DEST" = xSHARED; then
65249
65250cat >>confdefs.h <<\_ACEOF
65251#define vfs_extd_audit_init init_module
65252_ACEOF
65253
65254		VFS_MODULES="$VFS_MODULES "bin/extd_audit.$SHLIBEXT""
65255		{ echo "$as_me:$LINENO: result: shared" >&5
65256echo "${ECHO_T}shared" >&6; }
65257
65258		string_shared_modules="$string_shared_modules vfs_extd_audit"
65259	elif test x"$DEST" = xSTATIC; then
65260		init_static_modules_vfs="$init_static_modules_vfs  vfs_extd_audit_init();"
65261 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_extd_audit_init(void);"
65262		string_static_modules="$string_static_modules vfs_extd_audit"
65263		VFS_STATIC="$VFS_STATIC \$(VFS_EXTD_AUDIT_OBJ)"
65264
65265
65266		{ echo "$as_me:$LINENO: result: static" >&5
65267echo "${ECHO_T}static" >&6; }
65268	else
65269	    string_ignored_modules="$string_ignored_modules vfs_extd_audit"
65270		{ echo "$as_me:$LINENO: result: not" >&5
65271echo "${ECHO_T}not" >&6; }
65272	fi
65273
65274
65275	{ echo "$as_me:$LINENO: checking how to build vfs_full_audit" >&5
65276echo $ECHO_N "checking how to build vfs_full_audit... $ECHO_C" >&6; }
65277	if test "$MODULE_vfs_full_audit"; then
65278		DEST=$MODULE_vfs_full_audit
65279	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_full_audit"; then
65280		DEST=$MODULE_vfs
65281	else
65282		DEST=$MODULE_DEFAULT_vfs_full_audit
65283	fi
65284
65285	if test x"$DEST" = xSHARED; then
65286
65287cat >>confdefs.h <<\_ACEOF
65288#define vfs_full_audit_init init_module
65289_ACEOF
65290
65291		VFS_MODULES="$VFS_MODULES "bin/full_audit.$SHLIBEXT""
65292		{ echo "$as_me:$LINENO: result: shared" >&5
65293echo "${ECHO_T}shared" >&6; }
65294
65295		string_shared_modules="$string_shared_modules vfs_full_audit"
65296	elif test x"$DEST" = xSTATIC; then
65297		init_static_modules_vfs="$init_static_modules_vfs  vfs_full_audit_init();"
65298 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_full_audit_init(void);"
65299		string_static_modules="$string_static_modules vfs_full_audit"
65300		VFS_STATIC="$VFS_STATIC \$(VFS_FULL_AUDIT_OBJ)"
65301
65302
65303		{ echo "$as_me:$LINENO: result: static" >&5
65304echo "${ECHO_T}static" >&6; }
65305	else
65306	    string_ignored_modules="$string_ignored_modules vfs_full_audit"
65307		{ echo "$as_me:$LINENO: result: not" >&5
65308echo "${ECHO_T}not" >&6; }
65309	fi
65310
65311
65312	{ echo "$as_me:$LINENO: checking how to build vfs_netatalk" >&5
65313echo $ECHO_N "checking how to build vfs_netatalk... $ECHO_C" >&6; }
65314	if test "$MODULE_vfs_netatalk"; then
65315		DEST=$MODULE_vfs_netatalk
65316	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_netatalk"; then
65317		DEST=$MODULE_vfs
65318	else
65319		DEST=$MODULE_DEFAULT_vfs_netatalk
65320	fi
65321
65322	if test x"$DEST" = xSHARED; then
65323
65324cat >>confdefs.h <<\_ACEOF
65325#define vfs_netatalk_init init_module
65326_ACEOF
65327
65328		VFS_MODULES="$VFS_MODULES "bin/netatalk.$SHLIBEXT""
65329		{ echo "$as_me:$LINENO: result: shared" >&5
65330echo "${ECHO_T}shared" >&6; }
65331
65332		string_shared_modules="$string_shared_modules vfs_netatalk"
65333	elif test x"$DEST" = xSTATIC; then
65334		init_static_modules_vfs="$init_static_modules_vfs  vfs_netatalk_init();"
65335 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_netatalk_init(void);"
65336		string_static_modules="$string_static_modules vfs_netatalk"
65337		VFS_STATIC="$VFS_STATIC \$(VFS_NETATALK_OBJ)"
65338
65339
65340		{ echo "$as_me:$LINENO: result: static" >&5
65341echo "${ECHO_T}static" >&6; }
65342	else
65343	    string_ignored_modules="$string_ignored_modules vfs_netatalk"
65344		{ echo "$as_me:$LINENO: result: not" >&5
65345echo "${ECHO_T}not" >&6; }
65346	fi
65347
65348
65349	{ echo "$as_me:$LINENO: checking how to build vfs_fake_perms" >&5
65350echo $ECHO_N "checking how to build vfs_fake_perms... $ECHO_C" >&6; }
65351	if test "$MODULE_vfs_fake_perms"; then
65352		DEST=$MODULE_vfs_fake_perms
65353	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_fake_perms"; then
65354		DEST=$MODULE_vfs
65355	else
65356		DEST=$MODULE_DEFAULT_vfs_fake_perms
65357	fi
65358
65359	if test x"$DEST" = xSHARED; then
65360
65361cat >>confdefs.h <<\_ACEOF
65362#define vfs_fake_perms_init init_module
65363_ACEOF
65364
65365		VFS_MODULES="$VFS_MODULES "bin/fake_perms.$SHLIBEXT""
65366		{ echo "$as_me:$LINENO: result: shared" >&5
65367echo "${ECHO_T}shared" >&6; }
65368
65369		string_shared_modules="$string_shared_modules vfs_fake_perms"
65370	elif test x"$DEST" = xSTATIC; then
65371		init_static_modules_vfs="$init_static_modules_vfs  vfs_fake_perms_init();"
65372 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_fake_perms_init(void);"
65373		string_static_modules="$string_static_modules vfs_fake_perms"
65374		VFS_STATIC="$VFS_STATIC \$(VFS_FAKE_PERMS_OBJ)"
65375
65376
65377		{ echo "$as_me:$LINENO: result: static" >&5
65378echo "${ECHO_T}static" >&6; }
65379	else
65380	    string_ignored_modules="$string_ignored_modules vfs_fake_perms"
65381		{ echo "$as_me:$LINENO: result: not" >&5
65382echo "${ECHO_T}not" >&6; }
65383	fi
65384
65385
65386	{ echo "$as_me:$LINENO: checking how to build vfs_default_quota" >&5
65387echo $ECHO_N "checking how to build vfs_default_quota... $ECHO_C" >&6; }
65388	if test "$MODULE_vfs_default_quota"; then
65389		DEST=$MODULE_vfs_default_quota
65390	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_default_quota"; then
65391		DEST=$MODULE_vfs
65392	else
65393		DEST=$MODULE_DEFAULT_vfs_default_quota
65394	fi
65395
65396	if test x"$DEST" = xSHARED; then
65397
65398cat >>confdefs.h <<\_ACEOF
65399#define vfs_default_quota_init init_module
65400_ACEOF
65401
65402		VFS_MODULES="$VFS_MODULES "bin/default_quota.$SHLIBEXT""
65403		{ echo "$as_me:$LINENO: result: shared" >&5
65404echo "${ECHO_T}shared" >&6; }
65405
65406		string_shared_modules="$string_shared_modules vfs_default_quota"
65407	elif test x"$DEST" = xSTATIC; then
65408		init_static_modules_vfs="$init_static_modules_vfs  vfs_default_quota_init();"
65409 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_default_quota_init(void);"
65410		string_static_modules="$string_static_modules vfs_default_quota"
65411		VFS_STATIC="$VFS_STATIC \$(VFS_DEFAULT_QUOTA_OBJ)"
65412
65413
65414		{ echo "$as_me:$LINENO: result: static" >&5
65415echo "${ECHO_T}static" >&6; }
65416	else
65417	    string_ignored_modules="$string_ignored_modules vfs_default_quota"
65418		{ echo "$as_me:$LINENO: result: not" >&5
65419echo "${ECHO_T}not" >&6; }
65420	fi
65421
65422
65423	{ echo "$as_me:$LINENO: checking how to build vfs_readonly" >&5
65424echo $ECHO_N "checking how to build vfs_readonly... $ECHO_C" >&6; }
65425	if test "$MODULE_vfs_readonly"; then
65426		DEST=$MODULE_vfs_readonly
65427	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_readonly"; then
65428		DEST=$MODULE_vfs
65429	else
65430		DEST=$MODULE_DEFAULT_vfs_readonly
65431	fi
65432
65433	if test x"$DEST" = xSHARED; then
65434
65435cat >>confdefs.h <<\_ACEOF
65436#define vfs_readonly_init init_module
65437_ACEOF
65438
65439		VFS_MODULES="$VFS_MODULES "bin/readonly.$SHLIBEXT""
65440		{ echo "$as_me:$LINENO: result: shared" >&5
65441echo "${ECHO_T}shared" >&6; }
65442
65443		string_shared_modules="$string_shared_modules vfs_readonly"
65444	elif test x"$DEST" = xSTATIC; then
65445		init_static_modules_vfs="$init_static_modules_vfs  vfs_readonly_init();"
65446 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_readonly_init(void);"
65447		string_static_modules="$string_static_modules vfs_readonly"
65448		VFS_STATIC="$VFS_STATIC \$(VFS_READONLY_OBJ)"
65449
65450
65451		{ echo "$as_me:$LINENO: result: static" >&5
65452echo "${ECHO_T}static" >&6; }
65453	else
65454	    string_ignored_modules="$string_ignored_modules vfs_readonly"
65455		{ echo "$as_me:$LINENO: result: not" >&5
65456echo "${ECHO_T}not" >&6; }
65457	fi
65458
65459
65460	{ echo "$as_me:$LINENO: checking how to build vfs_cap" >&5
65461echo $ECHO_N "checking how to build vfs_cap... $ECHO_C" >&6; }
65462	if test "$MODULE_vfs_cap"; then
65463		DEST=$MODULE_vfs_cap
65464	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_cap"; then
65465		DEST=$MODULE_vfs
65466	else
65467		DEST=$MODULE_DEFAULT_vfs_cap
65468	fi
65469
65470	if test x"$DEST" = xSHARED; then
65471
65472cat >>confdefs.h <<\_ACEOF
65473#define vfs_cap_init init_module
65474_ACEOF
65475
65476		VFS_MODULES="$VFS_MODULES "bin/cap.$SHLIBEXT""
65477		{ echo "$as_me:$LINENO: result: shared" >&5
65478echo "${ECHO_T}shared" >&6; }
65479
65480		string_shared_modules="$string_shared_modules vfs_cap"
65481	elif test x"$DEST" = xSTATIC; then
65482		init_static_modules_vfs="$init_static_modules_vfs  vfs_cap_init();"
65483 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_cap_init(void);"
65484		string_static_modules="$string_static_modules vfs_cap"
65485		VFS_STATIC="$VFS_STATIC \$(VFS_CAP_OBJ)"
65486
65487
65488		{ echo "$as_me:$LINENO: result: static" >&5
65489echo "${ECHO_T}static" >&6; }
65490	else
65491	    string_ignored_modules="$string_ignored_modules vfs_cap"
65492		{ echo "$as_me:$LINENO: result: not" >&5
65493echo "${ECHO_T}not" >&6; }
65494	fi
65495
65496
65497	{ echo "$as_me:$LINENO: checking how to build vfs_expand_msdfs" >&5
65498echo $ECHO_N "checking how to build vfs_expand_msdfs... $ECHO_C" >&6; }
65499	if test "$MODULE_vfs_expand_msdfs"; then
65500		DEST=$MODULE_vfs_expand_msdfs
65501	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_expand_msdfs"; then
65502		DEST=$MODULE_vfs
65503	else
65504		DEST=$MODULE_DEFAULT_vfs_expand_msdfs
65505	fi
65506
65507	if test x"$DEST" = xSHARED; then
65508
65509cat >>confdefs.h <<\_ACEOF
65510#define vfs_expand_msdfs_init init_module
65511_ACEOF
65512
65513		VFS_MODULES="$VFS_MODULES "bin/expand_msdfs.$SHLIBEXT""
65514		{ echo "$as_me:$LINENO: result: shared" >&5
65515echo "${ECHO_T}shared" >&6; }
65516
65517		string_shared_modules="$string_shared_modules vfs_expand_msdfs"
65518	elif test x"$DEST" = xSTATIC; then
65519		init_static_modules_vfs="$init_static_modules_vfs  vfs_expand_msdfs_init();"
65520 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_expand_msdfs_init(void);"
65521		string_static_modules="$string_static_modules vfs_expand_msdfs"
65522		VFS_STATIC="$VFS_STATIC \$(VFS_EXPAND_MSDFS_OBJ)"
65523
65524
65525		{ echo "$as_me:$LINENO: result: static" >&5
65526echo "${ECHO_T}static" >&6; }
65527	else
65528	    string_ignored_modules="$string_ignored_modules vfs_expand_msdfs"
65529		{ echo "$as_me:$LINENO: result: not" >&5
65530echo "${ECHO_T}not" >&6; }
65531	fi
65532
65533
65534	{ echo "$as_me:$LINENO: checking how to build vfs_shadow_copy" >&5
65535echo $ECHO_N "checking how to build vfs_shadow_copy... $ECHO_C" >&6; }
65536	if test "$MODULE_vfs_shadow_copy"; then
65537		DEST=$MODULE_vfs_shadow_copy
65538	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_shadow_copy"; then
65539		DEST=$MODULE_vfs
65540	else
65541		DEST=$MODULE_DEFAULT_vfs_shadow_copy
65542	fi
65543
65544	if test x"$DEST" = xSHARED; then
65545
65546cat >>confdefs.h <<\_ACEOF
65547#define vfs_shadow_copy_init init_module
65548_ACEOF
65549
65550		VFS_MODULES="$VFS_MODULES "bin/shadow_copy.$SHLIBEXT""
65551		{ echo "$as_me:$LINENO: result: shared" >&5
65552echo "${ECHO_T}shared" >&6; }
65553
65554		string_shared_modules="$string_shared_modules vfs_shadow_copy"
65555	elif test x"$DEST" = xSTATIC; then
65556		init_static_modules_vfs="$init_static_modules_vfs  vfs_shadow_copy_init();"
65557 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_shadow_copy_init(void);"
65558		string_static_modules="$string_static_modules vfs_shadow_copy"
65559		VFS_STATIC="$VFS_STATIC \$(VFS_SHADOW_COPY_OBJ)"
65560
65561
65562		{ echo "$as_me:$LINENO: result: static" >&5
65563echo "${ECHO_T}static" >&6; }
65564	else
65565	    string_ignored_modules="$string_ignored_modules vfs_shadow_copy"
65566		{ echo "$as_me:$LINENO: result: not" >&5
65567echo "${ECHO_T}not" >&6; }
65568	fi
65569
65570
65571	{ echo "$as_me:$LINENO: checking how to build vfs_afsacl" >&5
65572echo $ECHO_N "checking how to build vfs_afsacl... $ECHO_C" >&6; }
65573	if test "$MODULE_vfs_afsacl"; then
65574		DEST=$MODULE_vfs_afsacl
65575	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_afsacl"; then
65576		DEST=$MODULE_vfs
65577	else
65578		DEST=$MODULE_DEFAULT_vfs_afsacl
65579	fi
65580
65581	if test x"$DEST" = xSHARED; then
65582
65583cat >>confdefs.h <<\_ACEOF
65584#define vfs_afsacl_init init_module
65585_ACEOF
65586
65587		VFS_MODULES="$VFS_MODULES "bin/afsacl.$SHLIBEXT""
65588		{ echo "$as_me:$LINENO: result: shared" >&5
65589echo "${ECHO_T}shared" >&6; }
65590
65591		string_shared_modules="$string_shared_modules vfs_afsacl"
65592	elif test x"$DEST" = xSTATIC; then
65593		init_static_modules_vfs="$init_static_modules_vfs  vfs_afsacl_init();"
65594 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_afsacl_init(void);"
65595		string_static_modules="$string_static_modules vfs_afsacl"
65596		VFS_STATIC="$VFS_STATIC \$(VFS_AFSACL_OBJ)"
65597
65598
65599		{ echo "$as_me:$LINENO: result: static" >&5
65600echo "${ECHO_T}static" >&6; }
65601	else
65602	    string_ignored_modules="$string_ignored_modules vfs_afsacl"
65603		{ echo "$as_me:$LINENO: result: not" >&5
65604echo "${ECHO_T}not" >&6; }
65605	fi
65606
65607
65608	{ echo "$as_me:$LINENO: checking how to build vfs_posixacl" >&5
65609echo $ECHO_N "checking how to build vfs_posixacl... $ECHO_C" >&6; }
65610	if test "$MODULE_vfs_posixacl"; then
65611		DEST=$MODULE_vfs_posixacl
65612	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_posixacl"; then
65613		DEST=$MODULE_vfs
65614	else
65615		DEST=$MODULE_DEFAULT_vfs_posixacl
65616	fi
65617
65618	if test x"$DEST" = xSHARED; then
65619
65620cat >>confdefs.h <<\_ACEOF
65621#define vfs_posixacl_init init_module
65622_ACEOF
65623
65624		VFS_MODULES="$VFS_MODULES "bin/posixacl.$SHLIBEXT""
65625		{ echo "$as_me:$LINENO: result: shared" >&5
65626echo "${ECHO_T}shared" >&6; }
65627
65628		string_shared_modules="$string_shared_modules vfs_posixacl"
65629	elif test x"$DEST" = xSTATIC; then
65630		init_static_modules_vfs="$init_static_modules_vfs  vfs_posixacl_init();"
65631 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_posixacl_init(void);"
65632		string_static_modules="$string_static_modules vfs_posixacl"
65633		VFS_STATIC="$VFS_STATIC \$(VFS_POSIXACL_OBJ)"
65634
65635
65636		{ echo "$as_me:$LINENO: result: static" >&5
65637echo "${ECHO_T}static" >&6; }
65638	else
65639	    string_ignored_modules="$string_ignored_modules vfs_posixacl"
65640		{ echo "$as_me:$LINENO: result: not" >&5
65641echo "${ECHO_T}not" >&6; }
65642	fi
65643
65644
65645	{ echo "$as_me:$LINENO: checking how to build vfs_aixacl" >&5
65646echo $ECHO_N "checking how to build vfs_aixacl... $ECHO_C" >&6; }
65647	if test "$MODULE_vfs_aixacl"; then
65648		DEST=$MODULE_vfs_aixacl
65649	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_aixacl"; then
65650		DEST=$MODULE_vfs
65651	else
65652		DEST=$MODULE_DEFAULT_vfs_aixacl
65653	fi
65654
65655	if test x"$DEST" = xSHARED; then
65656
65657cat >>confdefs.h <<\_ACEOF
65658#define vfs_aixacl_init init_module
65659_ACEOF
65660
65661		VFS_MODULES="$VFS_MODULES "bin/aixacl.$SHLIBEXT""
65662		{ echo "$as_me:$LINENO: result: shared" >&5
65663echo "${ECHO_T}shared" >&6; }
65664
65665		string_shared_modules="$string_shared_modules vfs_aixacl"
65666	elif test x"$DEST" = xSTATIC; then
65667		init_static_modules_vfs="$init_static_modules_vfs  vfs_aixacl_init();"
65668 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_aixacl_init(void);"
65669		string_static_modules="$string_static_modules vfs_aixacl"
65670		VFS_STATIC="$VFS_STATIC \$(VFS_AIXACL_OBJ)"
65671
65672
65673		{ echo "$as_me:$LINENO: result: static" >&5
65674echo "${ECHO_T}static" >&6; }
65675	else
65676	    string_ignored_modules="$string_ignored_modules vfs_aixacl"
65677		{ echo "$as_me:$LINENO: result: not" >&5
65678echo "${ECHO_T}not" >&6; }
65679	fi
65680
65681
65682	{ echo "$as_me:$LINENO: checking how to build vfs_aixacl2" >&5
65683echo $ECHO_N "checking how to build vfs_aixacl2... $ECHO_C" >&6; }
65684	if test "$MODULE_vfs_aixacl2"; then
65685		DEST=$MODULE_vfs_aixacl2
65686	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_aixacl2"; then
65687		DEST=$MODULE_vfs
65688	else
65689		DEST=$MODULE_DEFAULT_vfs_aixacl2
65690	fi
65691
65692	if test x"$DEST" = xSHARED; then
65693
65694cat >>confdefs.h <<\_ACEOF
65695#define vfs_aixacl2_init init_module
65696_ACEOF
65697
65698		VFS_MODULES="$VFS_MODULES "bin/aixacl2.$SHLIBEXT""
65699		{ echo "$as_me:$LINENO: result: shared" >&5
65700echo "${ECHO_T}shared" >&6; }
65701
65702		string_shared_modules="$string_shared_modules vfs_aixacl2"
65703	elif test x"$DEST" = xSTATIC; then
65704		init_static_modules_vfs="$init_static_modules_vfs  vfs_aixacl2_init();"
65705 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_aixacl2_init(void);"
65706		string_static_modules="$string_static_modules vfs_aixacl2"
65707		VFS_STATIC="$VFS_STATIC \$(VFS_AIXACL2_OBJ)"
65708
65709
65710		{ echo "$as_me:$LINENO: result: static" >&5
65711echo "${ECHO_T}static" >&6; }
65712	else
65713	    string_ignored_modules="$string_ignored_modules vfs_aixacl2"
65714		{ echo "$as_me:$LINENO: result: not" >&5
65715echo "${ECHO_T}not" >&6; }
65716	fi
65717
65718
65719	{ echo "$as_me:$LINENO: checking how to build vfs_solarisacl" >&5
65720echo $ECHO_N "checking how to build vfs_solarisacl... $ECHO_C" >&6; }
65721	if test "$MODULE_vfs_solarisacl"; then
65722		DEST=$MODULE_vfs_solarisacl
65723	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_solarisacl"; then
65724		DEST=$MODULE_vfs
65725	else
65726		DEST=$MODULE_DEFAULT_vfs_solarisacl
65727	fi
65728
65729	if test x"$DEST" = xSHARED; then
65730
65731cat >>confdefs.h <<\_ACEOF
65732#define vfs_solarisacl_init init_module
65733_ACEOF
65734
65735		VFS_MODULES="$VFS_MODULES "bin/solarisacl.$SHLIBEXT""
65736		{ echo "$as_me:$LINENO: result: shared" >&5
65737echo "${ECHO_T}shared" >&6; }
65738
65739		string_shared_modules="$string_shared_modules vfs_solarisacl"
65740	elif test x"$DEST" = xSTATIC; then
65741		init_static_modules_vfs="$init_static_modules_vfs  vfs_solarisacl_init();"
65742 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_solarisacl_init(void);"
65743		string_static_modules="$string_static_modules vfs_solarisacl"
65744		VFS_STATIC="$VFS_STATIC \$(VFS_SOLARISACL_OBJ)"
65745
65746
65747		{ echo "$as_me:$LINENO: result: static" >&5
65748echo "${ECHO_T}static" >&6; }
65749	else
65750	    string_ignored_modules="$string_ignored_modules vfs_solarisacl"
65751		{ echo "$as_me:$LINENO: result: not" >&5
65752echo "${ECHO_T}not" >&6; }
65753	fi
65754
65755
65756	{ echo "$as_me:$LINENO: checking how to build vfs_irixacl" >&5
65757echo $ECHO_N "checking how to build vfs_irixacl... $ECHO_C" >&6; }
65758	if test "$MODULE_vfs_irixacl"; then
65759		DEST=$MODULE_vfs_irixacl
65760	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_irixacl"; then
65761		DEST=$MODULE_vfs
65762	else
65763		DEST=$MODULE_DEFAULT_vfs_irixacl
65764	fi
65765
65766	if test x"$DEST" = xSHARED; then
65767
65768cat >>confdefs.h <<\_ACEOF
65769#define vfs_irixacl_init init_module
65770_ACEOF
65771
65772		VFS_MODULES="$VFS_MODULES "bin/irixacl.$SHLIBEXT""
65773		{ echo "$as_me:$LINENO: result: shared" >&5
65774echo "${ECHO_T}shared" >&6; }
65775
65776		string_shared_modules="$string_shared_modules vfs_irixacl"
65777	elif test x"$DEST" = xSTATIC; then
65778		init_static_modules_vfs="$init_static_modules_vfs  vfs_irixacl_init();"
65779 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_irixacl_init(void);"
65780		string_static_modules="$string_static_modules vfs_irixacl"
65781		VFS_STATIC="$VFS_STATIC \$(VFS_IRIXACL_OBJ)"
65782
65783
65784		{ echo "$as_me:$LINENO: result: static" >&5
65785echo "${ECHO_T}static" >&6; }
65786	else
65787	    string_ignored_modules="$string_ignored_modules vfs_irixacl"
65788		{ echo "$as_me:$LINENO: result: not" >&5
65789echo "${ECHO_T}not" >&6; }
65790	fi
65791
65792
65793	{ echo "$as_me:$LINENO: checking how to build vfs_hpuxacl" >&5
65794echo $ECHO_N "checking how to build vfs_hpuxacl... $ECHO_C" >&6; }
65795	if test "$MODULE_vfs_hpuxacl"; then
65796		DEST=$MODULE_vfs_hpuxacl
65797	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_hpuxacl"; then
65798		DEST=$MODULE_vfs
65799	else
65800		DEST=$MODULE_DEFAULT_vfs_hpuxacl
65801	fi
65802
65803	if test x"$DEST" = xSHARED; then
65804
65805cat >>confdefs.h <<\_ACEOF
65806#define vfs_hpuxacl_init init_module
65807_ACEOF
65808
65809		VFS_MODULES="$VFS_MODULES "bin/hpuxacl.$SHLIBEXT""
65810		{ echo "$as_me:$LINENO: result: shared" >&5
65811echo "${ECHO_T}shared" >&6; }
65812
65813		string_shared_modules="$string_shared_modules vfs_hpuxacl"
65814	elif test x"$DEST" = xSTATIC; then
65815		init_static_modules_vfs="$init_static_modules_vfs  vfs_hpuxacl_init();"
65816 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_hpuxacl_init(void);"
65817		string_static_modules="$string_static_modules vfs_hpuxacl"
65818		VFS_STATIC="$VFS_STATIC \$(VFS_HPUXACL_OBJ)"
65819
65820
65821		{ echo "$as_me:$LINENO: result: static" >&5
65822echo "${ECHO_T}static" >&6; }
65823	else
65824	    string_ignored_modules="$string_ignored_modules vfs_hpuxacl"
65825		{ echo "$as_me:$LINENO: result: not" >&5
65826echo "${ECHO_T}not" >&6; }
65827	fi
65828
65829
65830	{ echo "$as_me:$LINENO: checking how to build vfs_tru64acl" >&5
65831echo $ECHO_N "checking how to build vfs_tru64acl... $ECHO_C" >&6; }
65832	if test "$MODULE_vfs_tru64acl"; then
65833		DEST=$MODULE_vfs_tru64acl
65834	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_tru64acl"; then
65835		DEST=$MODULE_vfs
65836	else
65837		DEST=$MODULE_DEFAULT_vfs_tru64acl
65838	fi
65839
65840	if test x"$DEST" = xSHARED; then
65841
65842cat >>confdefs.h <<\_ACEOF
65843#define vfs_tru64acl_init init_module
65844_ACEOF
65845
65846		VFS_MODULES="$VFS_MODULES "bin/tru64acl.$SHLIBEXT""
65847		{ echo "$as_me:$LINENO: result: shared" >&5
65848echo "${ECHO_T}shared" >&6; }
65849
65850		string_shared_modules="$string_shared_modules vfs_tru64acl"
65851	elif test x"$DEST" = xSTATIC; then
65852		init_static_modules_vfs="$init_static_modules_vfs  vfs_tru64acl_init();"
65853 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_tru64acl_init(void);"
65854		string_static_modules="$string_static_modules vfs_tru64acl"
65855		VFS_STATIC="$VFS_STATIC \$(VFS_TRU64ACL_OBJ)"
65856
65857
65858		{ echo "$as_me:$LINENO: result: static" >&5
65859echo "${ECHO_T}static" >&6; }
65860	else
65861	    string_ignored_modules="$string_ignored_modules vfs_tru64acl"
65862		{ echo "$as_me:$LINENO: result: not" >&5
65863echo "${ECHO_T}not" >&6; }
65864	fi
65865
65866
65867	{ echo "$as_me:$LINENO: checking how to build vfs_catia" >&5
65868echo $ECHO_N "checking how to build vfs_catia... $ECHO_C" >&6; }
65869	if test "$MODULE_vfs_catia"; then
65870		DEST=$MODULE_vfs_catia
65871	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_catia"; then
65872		DEST=$MODULE_vfs
65873	else
65874		DEST=$MODULE_DEFAULT_vfs_catia
65875	fi
65876
65877	if test x"$DEST" = xSHARED; then
65878
65879cat >>confdefs.h <<\_ACEOF
65880#define vfs_catia_init init_module
65881_ACEOF
65882
65883		VFS_MODULES="$VFS_MODULES "bin/catia.$SHLIBEXT""
65884		{ echo "$as_me:$LINENO: result: shared" >&5
65885echo "${ECHO_T}shared" >&6; }
65886
65887		string_shared_modules="$string_shared_modules vfs_catia"
65888	elif test x"$DEST" = xSTATIC; then
65889		init_static_modules_vfs="$init_static_modules_vfs  vfs_catia_init();"
65890 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_catia_init(void);"
65891		string_static_modules="$string_static_modules vfs_catia"
65892		VFS_STATIC="$VFS_STATIC \$(VFS_CATIA_OBJ)"
65893
65894
65895		{ echo "$as_me:$LINENO: result: static" >&5
65896echo "${ECHO_T}static" >&6; }
65897	else
65898	    string_ignored_modules="$string_ignored_modules vfs_catia"
65899		{ echo "$as_me:$LINENO: result: not" >&5
65900echo "${ECHO_T}not" >&6; }
65901	fi
65902
65903
65904	{ echo "$as_me:$LINENO: checking how to build vfs_cacheprime" >&5
65905echo $ECHO_N "checking how to build vfs_cacheprime... $ECHO_C" >&6; }
65906	if test "$MODULE_vfs_cacheprime"; then
65907		DEST=$MODULE_vfs_cacheprime
65908	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_cacheprime"; then
65909		DEST=$MODULE_vfs
65910	else
65911		DEST=$MODULE_DEFAULT_vfs_cacheprime
65912	fi
65913
65914	if test x"$DEST" = xSHARED; then
65915
65916cat >>confdefs.h <<\_ACEOF
65917#define vfs_cacheprime_init init_module
65918_ACEOF
65919
65920		VFS_MODULES="$VFS_MODULES "bin/cacheprime.$SHLIBEXT""
65921		{ echo "$as_me:$LINENO: result: shared" >&5
65922echo "${ECHO_T}shared" >&6; }
65923
65924		string_shared_modules="$string_shared_modules vfs_cacheprime"
65925	elif test x"$DEST" = xSTATIC; then
65926		init_static_modules_vfs="$init_static_modules_vfs  vfs_cacheprime_init();"
65927 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_cacheprime_init(void);"
65928		string_static_modules="$string_static_modules vfs_cacheprime"
65929		VFS_STATIC="$VFS_STATIC \$(VFS_CACHEPRIME_OBJ)"
65930
65931
65932		{ echo "$as_me:$LINENO: result: static" >&5
65933echo "${ECHO_T}static" >&6; }
65934	else
65935	    string_ignored_modules="$string_ignored_modules vfs_cacheprime"
65936		{ echo "$as_me:$LINENO: result: not" >&5
65937echo "${ECHO_T}not" >&6; }
65938	fi
65939
65940
65941	{ echo "$as_me:$LINENO: checking how to build vfs_prealloc" >&5
65942echo $ECHO_N "checking how to build vfs_prealloc... $ECHO_C" >&6; }
65943	if test "$MODULE_vfs_prealloc"; then
65944		DEST=$MODULE_vfs_prealloc
65945	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_prealloc"; then
65946		DEST=$MODULE_vfs
65947	else
65948		DEST=$MODULE_DEFAULT_vfs_prealloc
65949	fi
65950
65951	if test x"$DEST" = xSHARED; then
65952
65953cat >>confdefs.h <<\_ACEOF
65954#define vfs_prealloc_init init_module
65955_ACEOF
65956
65957		VFS_MODULES="$VFS_MODULES "bin/prealloc.$SHLIBEXT""
65958		{ echo "$as_me:$LINENO: result: shared" >&5
65959echo "${ECHO_T}shared" >&6; }
65960
65961		string_shared_modules="$string_shared_modules vfs_prealloc"
65962	elif test x"$DEST" = xSTATIC; then
65963		init_static_modules_vfs="$init_static_modules_vfs  vfs_prealloc_init();"
65964 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_prealloc_init(void);"
65965		string_static_modules="$string_static_modules vfs_prealloc"
65966		VFS_STATIC="$VFS_STATIC \$(VFS_PREALLOC_OBJ)"
65967
65968
65969		{ echo "$as_me:$LINENO: result: static" >&5
65970echo "${ECHO_T}static" >&6; }
65971	else
65972	    string_ignored_modules="$string_ignored_modules vfs_prealloc"
65973		{ echo "$as_me:$LINENO: result: not" >&5
65974echo "${ECHO_T}not" >&6; }
65975	fi
65976
65977
65978	{ echo "$as_me:$LINENO: checking how to build vfs_commit" >&5
65979echo $ECHO_N "checking how to build vfs_commit... $ECHO_C" >&6; }
65980	if test "$MODULE_vfs_commit"; then
65981		DEST=$MODULE_vfs_commit
65982	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_commit"; then
65983		DEST=$MODULE_vfs
65984	else
65985		DEST=$MODULE_DEFAULT_vfs_commit
65986	fi
65987
65988	if test x"$DEST" = xSHARED; then
65989
65990cat >>confdefs.h <<\_ACEOF
65991#define vfs_commit_init init_module
65992_ACEOF
65993
65994		VFS_MODULES="$VFS_MODULES "bin/commit.$SHLIBEXT""
65995		{ echo "$as_me:$LINENO: result: shared" >&5
65996echo "${ECHO_T}shared" >&6; }
65997
65998		string_shared_modules="$string_shared_modules vfs_commit"
65999	elif test x"$DEST" = xSTATIC; then
66000		init_static_modules_vfs="$init_static_modules_vfs  vfs_commit_init();"
66001 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_commit_init(void);"
66002		string_static_modules="$string_static_modules vfs_commit"
66003		VFS_STATIC="$VFS_STATIC \$(VFS_COMMIT_OBJ)"
66004
66005
66006		{ echo "$as_me:$LINENO: result: static" >&5
66007echo "${ECHO_T}static" >&6; }
66008	else
66009	    string_ignored_modules="$string_ignored_modules vfs_commit"
66010		{ echo "$as_me:$LINENO: result: not" >&5
66011echo "${ECHO_T}not" >&6; }
66012	fi
66013
66014
66015	{ echo "$as_me:$LINENO: checking how to build vfs_gpfs" >&5
66016echo $ECHO_N "checking how to build vfs_gpfs... $ECHO_C" >&6; }
66017	if test "$MODULE_vfs_gpfs"; then
66018		DEST=$MODULE_vfs_gpfs
66019	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_gpfs"; then
66020		DEST=$MODULE_vfs
66021	else
66022		DEST=$MODULE_DEFAULT_vfs_gpfs
66023	fi
66024
66025	if test x"$DEST" = xSHARED; then
66026
66027cat >>confdefs.h <<\_ACEOF
66028#define vfs_gpfs_init init_module
66029_ACEOF
66030
66031		VFS_MODULES="$VFS_MODULES "bin/gpfs.$SHLIBEXT""
66032		{ echo "$as_me:$LINENO: result: shared" >&5
66033echo "${ECHO_T}shared" >&6; }
66034
66035		string_shared_modules="$string_shared_modules vfs_gpfs"
66036	elif test x"$DEST" = xSTATIC; then
66037		init_static_modules_vfs="$init_static_modules_vfs  vfs_gpfs_init();"
66038 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_gpfs_init(void);"
66039		string_static_modules="$string_static_modules vfs_gpfs"
66040		VFS_STATIC="$VFS_STATIC \$(VFS_GPFS_OBJ)"
66041
66042
66043		{ echo "$as_me:$LINENO: result: static" >&5
66044echo "${ECHO_T}static" >&6; }
66045	else
66046	    string_ignored_modules="$string_ignored_modules vfs_gpfs"
66047		{ echo "$as_me:$LINENO: result: not" >&5
66048echo "${ECHO_T}not" >&6; }
66049	fi
66050
66051
66052	{ echo "$as_me:$LINENO: checking how to build vfs_readahead" >&5
66053echo $ECHO_N "checking how to build vfs_readahead... $ECHO_C" >&6; }
66054	if test "$MODULE_vfs_readahead"; then
66055		DEST=$MODULE_vfs_readahead
66056	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_readahead"; then
66057		DEST=$MODULE_vfs
66058	else
66059		DEST=$MODULE_DEFAULT_vfs_readahead
66060	fi
66061
66062	if test x"$DEST" = xSHARED; then
66063
66064cat >>confdefs.h <<\_ACEOF
66065#define vfs_readahead_init init_module
66066_ACEOF
66067
66068		VFS_MODULES="$VFS_MODULES "bin/readahead.$SHLIBEXT""
66069		{ echo "$as_me:$LINENO: result: shared" >&5
66070echo "${ECHO_T}shared" >&6; }
66071
66072		string_shared_modules="$string_shared_modules vfs_readahead"
66073	elif test x"$DEST" = xSTATIC; then
66074		init_static_modules_vfs="$init_static_modules_vfs  vfs_readahead_init();"
66075 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_readahead_init(void);"
66076		string_static_modules="$string_static_modules vfs_readahead"
66077		VFS_STATIC="$VFS_STATIC \$(VFS_READAHEAD_OBJ)"
66078
66079
66080		{ echo "$as_me:$LINENO: result: static" >&5
66081echo "${ECHO_T}static" >&6; }
66082	else
66083	    string_ignored_modules="$string_ignored_modules vfs_readahead"
66084		{ echo "$as_me:$LINENO: result: not" >&5
66085echo "${ECHO_T}not" >&6; }
66086	fi
66087
66088
66089
66090
66091
66092
66093cat >>confdefs.h <<_ACEOF
66094#define static_init_vfs {$init_static_modules_vfs}
66095_ACEOF
66096
66097
66098cat >>confdefs.h <<_ACEOF
66099#define static_decl_vfs $decl_static_modules_vfs
66100_ACEOF
66101
66102    	rm -f smbd/vfs.o
66103
66104
66105
66106cat >>confdefs.h <<_ACEOF
66107#define STRING_STATIC_MODULES "$string_static_modules"
66108_ACEOF
66109
66110
66111#################################################
66112# do extra things if we are running insure
66113
66114if test "${ac_cv_prog_CC}" = "insure"; then
66115	CPPFLAGS="$CPPFLAGS -D__INSURE__"
66116fi
66117
66118#################################################
66119# If run from the build farm, enable NASTY hacks
66120#################################################
66121{ echo "$as_me:$LINENO: checking whether to enable build farm hacks" >&5
66122echo $ECHO_N "checking whether to enable build farm hacks... $ECHO_C" >&6; }
66123if test x"$RUN_FROM_BUILD_FARM" = x"yes"; then
66124	{ echo "$as_me:$LINENO: result: yes" >&5
66125echo "${ECHO_T}yes" >&6; }
66126
66127cat >>confdefs.h <<\_ACEOF
66128#define ENABLE_BUILD_FARM_HACKS 1
66129_ACEOF
66130
66131else
66132	{ echo "$as_me:$LINENO: result: no" >&5
66133echo "${ECHO_T}no" >&6; }
66134fi
66135
66136#################################################
66137# check for bad librt/libpthread interactions
66138
66139if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes" -o \
66140    x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" -o \
66141    x"$samba_cv_HAVE_AIO64" = x"yes" -o \
66142    x"$samba_cv_HAVE_AIO" = x"yes" ; then
66143
66144
66145    rt_signal_notify_works=yes
66146    rt_signal_lease_works=yes
66147    rt_signal_aio_works=yes
66148
66149    { echo "$as_me:$LINENO: checking if sigaction works with realtime signals" >&5
66150echo $ECHO_N "checking if sigaction works with realtime signals... $ECHO_C" >&6; }
66151    if test "$cross_compiling" = yes; then
66152
66153	    { echo "$as_me:$LINENO: result: cross" >&5
66154echo "${ECHO_T}cross" >&6; }
66155
66156	    # cross compiling, I hope you know what you are doing
66157	    true
66158
66159
66160else
66161  cat >conftest.$ac_ext <<_ACEOF
66162/* confdefs.h.  */
66163_ACEOF
66164cat confdefs.h >>conftest.$ac_ext
66165cat >>conftest.$ac_ext <<_ACEOF
66166/* end confdefs.h.  */
66167
66168#include <sys/types.h>
66169#include <fcntl.h>
66170#include <signal.h>
66171
66172/* from smbd/notify_kernel.c */
66173#ifndef RT_SIGNAL_NOTIFY
66174#define RT_SIGNAL_NOTIFY (SIGRTMIN+2)
66175#endif
66176
66177/* from smbd/aio.c */
66178#ifndef RT_SIGNAL_AIO
66179#define RT_SIGNAL_AIO (SIGRTMIN+3)
66180#endif
66181
66182/* from smbd/oplock_linux.c */
66183#ifndef RT_SIGNAL_LEASE
66184#define RT_SIGNAL_LEASE (SIGRTMIN+1)
66185#endif
66186
66187static void signal_handler(int sig, siginfo_t *info, void *unused)
66188{
66189    int do_nothing = 0;
66190}
66191
66192int main(void)
66193{
66194    int result = 0;
66195    struct sigaction act = {0};
66196
66197    act.sa_sigaction = signal_handler;
66198    act.sa_flags = SA_SIGINFO;
66199    sigemptyset( &act.sa_mask );
66200
66201    if (sigaction(RT_SIGNAL_LEASE, &act, 0) != 0) {
66202	    /* Failed to setup RT_SIGNAL_LEASE handler */
66203	    result += 1;
66204    }
66205
66206    if (sigaction(RT_SIGNAL_NOTIFY, &act, 0) != 0) {
66207	    /* Failed to setup RT_SIGNAL_NOTIFY handler */
66208	    result += 10;
66209    }
66210
66211    if (sigaction(RT_SIGNAL_AIO, &act, 0) != 0) {
66212	    /* Failed to setup RT_SIGNAL_AIO handler */
66213	    result += 100;
66214    }
66215
66216    /* zero on success */
66217    return result;
66218}
66219
66220_ACEOF
66221rm -f conftest$ac_exeext
66222if { (ac_try="$ac_link"
66223case "(($ac_try" in
66224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66225  *) ac_try_echo=$ac_try;;
66226esac
66227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66228  (eval "$ac_link") 2>&5
66229  ac_status=$?
66230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
66231  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
66232  { (case "(($ac_try" in
66233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66234  *) ac_try_echo=$ac_try;;
66235esac
66236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66237  (eval "$ac_try") 2>&5
66238  ac_status=$?
66239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
66240  (exit $ac_status); }; }; then
66241
66242	    { echo "$as_me:$LINENO: result: yes" >&5
66243echo "${ECHO_T}yes" >&6; }
66244
66245	    # no RT_SIGNAL bug, we are golden
66246
66247    { echo "$as_me:$LINENO: checking if libpthread is linked" >&5
66248echo $ECHO_N "checking if libpthread is linked... $ECHO_C" >&6; }
66249    cat >conftest.$ac_ext <<_ACEOF
66250/* confdefs.h.  */
66251_ACEOF
66252cat confdefs.h >>conftest.$ac_ext
66253cat >>conftest.$ac_ext <<_ACEOF
66254/* end confdefs.h.  */
66255
66256int
66257main ()
66258{
66259return pthread_create(0, 0, 0, 0);
66260  ;
66261  return 0;
66262}
66263_ACEOF
66264rm -f conftest.$ac_objext conftest$ac_exeext
66265if { (ac_try="$ac_link"
66266case "(($ac_try" in
66267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66268  *) ac_try_echo=$ac_try;;
66269esac
66270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66271  (eval "$ac_link") 2>conftest.er1
66272  ac_status=$?
66273  grep -v '^ *+' conftest.er1 >conftest.err
66274  rm -f conftest.er1
66275  cat conftest.err >&5
66276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
66277  (exit $ac_status); } && {
66278	 test -z "$ac_c_werror_flag" ||
66279	 test ! -s conftest.err
66280       } && test -s conftest$ac_exeext &&
66281       $as_test_x conftest$ac_exeext; then
66282
66283	    { echo "$as_me:$LINENO: result: yes" >&5
66284echo "${ECHO_T}yes" >&6; }
66285
66286		    { echo "$as_me:$LINENO: WARNING: using libpthreads - this may degrade performance" >&5
66287echo "$as_me: WARNING: using libpthreads - this may degrade performance" >&2;}
66288
66289
66290else
66291  echo "$as_me: failed program was:" >&5
66292sed 's/^/| /' conftest.$ac_ext >&5
66293
66294
66295	    { echo "$as_me:$LINENO: result: no" >&5
66296echo "${ECHO_T}no" >&6; }
66297
66298
66299fi
66300
66301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66302      conftest$ac_exeext conftest.$ac_ext
66303
66304
66305
66306
66307else
66308  echo "$as_me: program exited with status $ac_status" >&5
66309echo "$as_me: failed program was:" >&5
66310sed 's/^/| /' conftest.$ac_ext >&5
66311
66312( exit $ac_status )
66313
66314	    { echo "$as_me:$LINENO: result: no" >&5
66315echo "${ECHO_T}no" >&6; }
66316	    case "$ac_status" in
66317		1|11|101|111)  rt_signal_lease_ok=no ;;
66318	    esac
66319	    case "$ac_status" in
66320		10|11|110|111)  rt_signal_notify_ok=no ;;
66321	    esac
66322	    case "$ac_status" in
66323		100|110|101|111)  rt_signal_aio_ok=no ;;
66324	    esac
66325
66326	    # no RT_SIGNAL bug, we are golden
66327
66328    { echo "$as_me:$LINENO: checking if libpthread is linked" >&5
66329echo $ECHO_N "checking if libpthread is linked... $ECHO_C" >&6; }
66330    cat >conftest.$ac_ext <<_ACEOF
66331/* confdefs.h.  */
66332_ACEOF
66333cat confdefs.h >>conftest.$ac_ext
66334cat >>conftest.$ac_ext <<_ACEOF
66335/* end confdefs.h.  */
66336
66337int
66338main ()
66339{
66340return pthread_create(0, 0, 0, 0);
66341  ;
66342  return 0;
66343}
66344_ACEOF
66345rm -f conftest.$ac_objext conftest$ac_exeext
66346if { (ac_try="$ac_link"
66347case "(($ac_try" in
66348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66349  *) ac_try_echo=$ac_try;;
66350esac
66351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66352  (eval "$ac_link") 2>conftest.er1
66353  ac_status=$?
66354  grep -v '^ *+' conftest.er1 >conftest.err
66355  rm -f conftest.er1
66356  cat conftest.err >&5
66357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
66358  (exit $ac_status); } && {
66359	 test -z "$ac_c_werror_flag" ||
66360	 test ! -s conftest.err
66361       } && test -s conftest$ac_exeext &&
66362       $as_test_x conftest$ac_exeext; then
66363
66364	    { echo "$as_me:$LINENO: result: yes" >&5
66365echo "${ECHO_T}yes" >&6; }
66366
66367		    { echo "$as_me:$LINENO: WARNING: using libpthreads - this may degrade performance" >&5
66368echo "$as_me: WARNING: using libpthreads - this may degrade performance" >&2;}
66369
66370
66371else
66372  echo "$as_me: failed program was:" >&5
66373sed 's/^/| /' conftest.$ac_ext >&5
66374
66375
66376	    { echo "$as_me:$LINENO: result: no" >&5
66377echo "${ECHO_T}no" >&6; }
66378
66379
66380fi
66381
66382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66383      conftest$ac_exeext conftest.$ac_ext
66384
66385
66386
66387
66388fi
66389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
66390fi
66391
66392
66393
66394
66395fi
66396
66397
66398  ac_new_flags=""
66399  l=""
66400  for i in $LDFLAGS; do
66401    case $l$i in
66402    -L/usr/lib) ;;
66403    -L/usr/lib/) ;;
66404    -Wl,-rpath,/usr/lib) ;;
66405    -Wl,-rpath,/usr/lib/) ;;
66406    -Wl,-rpath) l=$i;;
66407    -Wl,-rpath-Wl,/usr/lib) l="";;
66408    -Wl,-rpath-Wl,/usr/lib/) l="";;
66409    *)
66410    	s=" "
66411        if test x"$ac_new_flags" = x""; then
66412            s="";
66413	fi
66414        if test x"$l" = x""; then
66415            ac_new_flags="$ac_new_flags$s$i";
66416        else
66417            ac_new_flags="$ac_new_flags$s$l $i";
66418        fi
66419        l=""
66420        ;;
66421    esac
66422  done
66423  LDFLAGS=$ac_new_flags
66424
66425
66426  ac_new_flags=""
66427  l=""
66428  for i in $LIBS; do
66429    case $l$i in
66430    -L/usr/lib) ;;
66431    -L/usr/lib/) ;;
66432    -Wl,-rpath,/usr/lib) ;;
66433    -Wl,-rpath,/usr/lib/) ;;
66434    -Wl,-rpath) l=$i;;
66435    -Wl,-rpath-Wl,/usr/lib) l="";;
66436    -Wl,-rpath-Wl,/usr/lib/) l="";;
66437    *)
66438    	s=" "
66439        if test x"$ac_new_flags" = x""; then
66440            s="";
66441	fi
66442        if test x"$l" = x""; then
66443            ac_new_flags="$ac_new_flags$s$i";
66444        else
66445            ac_new_flags="$ac_new_flags$s$l $i";
66446        fi
66447        l=""
66448        ;;
66449    esac
66450  done
66451  LIBS=$ac_new_flags
66452
66453
66454  ac_new_flags=""
66455  l=""
66456  for i in $KRB5_LIBS; do
66457    case $l$i in
66458    -L/usr/lib) ;;
66459    -L/usr/lib/) ;;
66460    -Wl,-rpath,/usr/lib) ;;
66461    -Wl,-rpath,/usr/lib/) ;;
66462    -Wl,-rpath) l=$i;;
66463    -Wl,-rpath-Wl,/usr/lib) l="";;
66464    -Wl,-rpath-Wl,/usr/lib/) l="";;
66465    *)
66466    	s=" "
66467        if test x"$ac_new_flags" = x""; then
66468            s="";
66469	fi
66470        if test x"$l" = x""; then
66471            ac_new_flags="$ac_new_flags$s$i";
66472        else
66473            ac_new_flags="$ac_new_flags$s$l $i";
66474        fi
66475        l=""
66476        ;;
66477    esac
66478  done
66479  KRB5_LIBS=$ac_new_flags
66480
66481
66482
66483  ac_new_flags=""
66484  for i in $CFLAGS; do
66485    case $i in
66486    -I/usr/include|-I/usr/include/) ;;
66487    *) ac_new_flags="$ac_new_flags $i" ;;
66488    esac
66489  done
66490  CFLAGS=$ac_new_flags
66491
66492
66493  ac_new_flags=""
66494  for i in $CPPFLAGS; do
66495    case $i in
66496    -I/usr/include|-I/usr/include/) ;;
66497    *) ac_new_flags="$ac_new_flags $i" ;;
66498    esac
66499  done
66500  CPPFLAGS=$ac_new_flags
66501
66502
66503#################################################
66504# Display summary of libraries detected
66505
66506{ echo "$as_me:$LINENO: result: Using libraries:" >&5
66507echo "${ECHO_T}Using libraries:" >&6; }
66508{ echo "$as_me:$LINENO: result:     LIBS = $LIBS" >&5
66509echo "${ECHO_T}    LIBS = $LIBS" >&6; }
66510if test x"$with_ads_support" != x"no"; then
66511    { echo "$as_me:$LINENO: result:     KRB5_LIBS = $KRB5_LIBS" >&5
66512echo "${ECHO_T}    KRB5_LIBS = $KRB5_LIBS" >&6; }
66513fi
66514if test x"$with_ldap_support" != x"no"; then
66515    { echo "$as_me:$LINENO: result:     LDAP_LIBS = $LDAP_LIBS" >&5
66516echo "${ECHO_T}    LDAP_LIBS = $LDAP_LIBS" >&6; }
66517fi
66518if test x"$with_dnsupdate_support" != x"no"; then
66519    { echo "$as_me:$LINENO: result:     UUID_LIBS = $UUID_LIBS" >&5
66520echo "${ECHO_T}    UUID_LIBS = $UUID_LIBS" >&6; }
66521fi
66522{ echo "$as_me:$LINENO: result:     AUTH_LIBS = $AUTH_LIBS" >&5
66523echo "${ECHO_T}    AUTH_LIBS = $AUTH_LIBS" >&6; }
66524
66525#################################################
66526# final configure stuff
66527
66528{ echo "$as_me:$LINENO: checking configure summary" >&5
66529echo $ECHO_N "checking configure summary... $ECHO_C" >&6; }
66530if test "$cross_compiling" = yes; then
66531  { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
66532echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
66533else
66534  cat >conftest.$ac_ext <<_ACEOF
66535/* confdefs.h.  */
66536_ACEOF
66537cat confdefs.h >>conftest.$ac_ext
66538cat >>conftest.$ac_ext <<_ACEOF
66539/* end confdefs.h.  */
66540#include "${srcdir-.}/tests/summary.c"
66541_ACEOF
66542rm -f conftest$ac_exeext
66543if { (ac_try="$ac_link"
66544case "(($ac_try" in
66545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66546  *) ac_try_echo=$ac_try;;
66547esac
66548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66549  (eval "$ac_link") 2>&5
66550  ac_status=$?
66551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
66552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
66553  { (case "(($ac_try" in
66554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66555  *) ac_try_echo=$ac_try;;
66556esac
66557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66558  (eval "$ac_try") 2>&5
66559  ac_status=$?
66560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
66561  (exit $ac_status); }; }; then
66562  { echo "$as_me:$LINENO: result: yes" >&5
66563echo "${ECHO_T}yes" >&6; }
66564else
66565  echo "$as_me: program exited with status $ac_status" >&5
66566echo "$as_me: failed program was:" >&5
66567sed 's/^/| /' conftest.$ac_ext >&5
66568
66569( exit $ac_status )
66570{ { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
66571echo "$as_me: error: summary failure. Aborting config" >&2;}
66572   { (exit 1); exit 1; }; }; exit 1;
66573fi
66574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
66575fi
66576
66577
66578
66579builddir=`pwd`
66580
66581
66582# Stuff the smbd-only libraries at the end of the smbd link
66583# path (if we have them).
66584SMBD_LIBS="$samba_dmapi_libs"
66585
66586
66587ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb smbadduser script/gen-8bit-gap.sh script/installbin.sh script/uninstallbin.sh"
66588
66589cat >confcache <<\_ACEOF
66590# This file is a shell script that caches the results of configure
66591# tests run on this system so they can be shared between configure
66592# scripts and configure runs, see configure's option --config-cache.
66593# It is not useful on other systems.  If it contains results you don't
66594# want to keep, you may remove or edit it.
66595#
66596# config.status only pays attention to the cache file if you give it
66597# the --recheck option to rerun configure.
66598#
66599# `ac_cv_env_foo' variables (set or unset) will be overridden when
66600# loading this file, other *unset* `ac_cv_foo' will be assigned the
66601# following values.
66602
66603_ACEOF
66604
66605# The following way of writing the cache mishandles newlines in values,
66606# but we know of no workaround that is simple, portable, and efficient.
66607# So, we kill variables containing newlines.
66608# Ultrix sh set writes to stderr and can't be redirected directly,
66609# and sets the high bit in the cache file unless we assign to the vars.
66610(
66611  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
66612    eval ac_val=\$$ac_var
66613    case $ac_val in #(
66614    *${as_nl}*)
66615      case $ac_var in #(
66616      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
66617echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
66618      esac
66619      case $ac_var in #(
66620      _ | IFS | as_nl) ;; #(
66621      *) $as_unset $ac_var ;;
66622      esac ;;
66623    esac
66624  done
66625
66626  (set) 2>&1 |
66627    case $as_nl`(ac_space=' '; set) 2>&1` in #(
66628    *${as_nl}ac_space=\ *)
66629      # `set' does not quote correctly, so add quotes (double-quote
66630      # substitution turns \\\\ into \\, and sed turns \\ into \).
66631      sed -n \
66632	"s/'/'\\\\''/g;
66633	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
66634      ;; #(
66635    *)
66636      # `set' quotes correctly as required by POSIX, so do not add quotes.
66637      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
66638      ;;
66639    esac |
66640    sort
66641) |
66642  sed '
66643     /^ac_cv_env_/b end
66644     t clear
66645     :clear
66646     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
66647     t end
66648     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
66649     :end' >>confcache
66650if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
66651  if test -w "$cache_file"; then
66652    test "x$cache_file" != "x/dev/null" &&
66653      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
66654echo "$as_me: updating cache $cache_file" >&6;}
66655    cat confcache >$cache_file
66656  else
66657    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
66658echo "$as_me: not updating unwritable cache $cache_file" >&6;}
66659  fi
66660fi
66661rm -f confcache
66662
66663test "x$prefix" = xNONE && prefix=$ac_default_prefix
66664# Let make expand exec_prefix.
66665test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
66666
66667DEFS=-DHAVE_CONFIG_H
66668
66669ac_libobjs=
66670ac_ltlibobjs=
66671for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
66672  # 1. Remove the extension, and $U if already installed.
66673  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
66674  ac_i=`echo "$ac_i" | sed "$ac_script"`
66675  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
66676  #    will be set to the directory where LIBOBJS objects are built.
66677  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
66678  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
66679done
66680LIBOBJS=$ac_libobjs
66681
66682LTLIBOBJS=$ac_ltlibobjs
66683
66684
66685
66686: ${CONFIG_STATUS=./config.status}
66687ac_clean_files_save=$ac_clean_files
66688ac_clean_files="$ac_clean_files $CONFIG_STATUS"
66689{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
66690echo "$as_me: creating $CONFIG_STATUS" >&6;}
66691cat >$CONFIG_STATUS <<_ACEOF
66692#! $SHELL
66693# Generated by $as_me.
66694# Run this file to recreate the current configuration.
66695# Compiler output produced by configure, useful for debugging
66696# configure, is in config.log if it exists.
66697
66698debug=false
66699ac_cs_recheck=false
66700ac_cs_silent=false
66701SHELL=\${CONFIG_SHELL-$SHELL}
66702_ACEOF
66703
66704cat >>$CONFIG_STATUS <<\_ACEOF
66705## --------------------- ##
66706## M4sh Initialization.  ##
66707## --------------------- ##
66708
66709# Be more Bourne compatible
66710DUALCASE=1; export DUALCASE # for MKS sh
66711if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
66712  emulate sh
66713  NULLCMD=:
66714  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
66715  # is contrary to our usage.  Disable this feature.
66716  alias -g '${1+"$@"}'='"$@"'
66717  setopt NO_GLOB_SUBST
66718else
66719  case `(set -o) 2>/dev/null` in
66720  *posix*) set -o posix ;;
66721esac
66722
66723fi
66724
66725
66726
66727
66728# PATH needs CR
66729# Avoid depending upon Character Ranges.
66730as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66731as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66732as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66733as_cr_digits='0123456789'
66734as_cr_alnum=$as_cr_Letters$as_cr_digits
66735
66736# The user is always right.
66737if test "${PATH_SEPARATOR+set}" != set; then
66738  echo "#! /bin/sh" >conf$$.sh
66739  echo  "exit 0"   >>conf$$.sh
66740  chmod +x conf$$.sh
66741  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
66742    PATH_SEPARATOR=';'
66743  else
66744    PATH_SEPARATOR=:
66745  fi
66746  rm -f conf$$.sh
66747fi
66748
66749# Support unset when possible.
66750if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66751  as_unset=unset
66752else
66753  as_unset=false
66754fi
66755
66756
66757# IFS
66758# We need space, tab and new line, in precisely that order.  Quoting is
66759# there to prevent editors from complaining about space-tab.
66760# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66761# splitting by setting IFS to empty value.)
66762as_nl='
66763'
66764IFS=" ""	$as_nl"
66765
66766# Find who we are.  Look in the path if we contain no directory separator.
66767case $0 in
66768  *[\\/]* ) as_myself=$0 ;;
66769  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66770for as_dir in $PATH
66771do
66772  IFS=$as_save_IFS
66773  test -z "$as_dir" && as_dir=.
66774  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
66775done
66776IFS=$as_save_IFS
66777
66778     ;;
66779esac
66780# We did not find ourselves, most probably we were run as `sh COMMAND'
66781# in which case we are not to be found in the path.
66782if test "x$as_myself" = x; then
66783  as_myself=$0
66784fi
66785if test ! -f "$as_myself"; then
66786  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
66787  { (exit 1); exit 1; }
66788fi
66789
66790# Work around bugs in pre-3.0 UWIN ksh.
66791for as_var in ENV MAIL MAILPATH
66792do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
66793done
66794PS1='$ '
66795PS2='> '
66796PS4='+ '
66797
66798# NLS nuisances.
66799for as_var in \
66800  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
66801  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
66802  LC_TELEPHONE LC_TIME
66803do
66804  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
66805    eval $as_var=C; export $as_var
66806  else
66807    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
66808  fi
66809done
66810
66811# Required to use basename.
66812if expr a : '\(a\)' >/dev/null 2>&1 &&
66813   test "X`expr 00001 : '.*\(...\)'`" = X001; then
66814  as_expr=expr
66815else
66816  as_expr=false
66817fi
66818
66819if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
66820  as_basename=basename
66821else
66822  as_basename=false
66823fi
66824
66825
66826# Name of the executable.
66827as_me=`$as_basename -- "$0" ||
66828$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66829	 X"$0" : 'X\(//\)$' \| \
66830	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66831echo X/"$0" |
66832    sed '/^.*\/\([^/][^/]*\)\/*$/{
66833	    s//\1/
66834	    q
66835	  }
66836	  /^X\/\(\/\/\)$/{
66837	    s//\1/
66838	    q
66839	  }
66840	  /^X\/\(\/\).*/{
66841	    s//\1/
66842	    q
66843	  }
66844	  s/.*/./; q'`
66845
66846# CDPATH.
66847$as_unset CDPATH
66848
66849
66850
66851  as_lineno_1=$LINENO
66852  as_lineno_2=$LINENO
66853  test "x$as_lineno_1" != "x$as_lineno_2" &&
66854  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
66855
66856  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
66857  # uniformly replaced by the line number.  The first 'sed' inserts a
66858  # line-number line after each line using $LINENO; the second 'sed'
66859  # does the real work.  The second script uses 'N' to pair each
66860  # line-number line with the line containing $LINENO, and appends
66861  # trailing '-' during substitution so that $LINENO is not a special
66862  # case at line end.
66863  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
66864  # scripts with optimization help from Paolo Bonzini.  Blame Lee
66865  # E. McMahon (1931-1989) for sed's syntax.  :-)
66866  sed -n '
66867    p
66868    /[$]LINENO/=
66869  ' <$as_myself |
66870    sed '
66871      s/[$]LINENO.*/&-/
66872      t lineno
66873      b
66874      :lineno
66875      N
66876      :loop
66877      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
66878      t loop
66879      s/-\n.*//
66880    ' >$as_me.lineno &&
66881  chmod +x "$as_me.lineno" ||
66882    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
66883   { (exit 1); exit 1; }; }
66884
66885  # Don't try to exec as it changes $[0], causing all sort of problems
66886  # (the dirname of $[0] is not the place where we might find the
66887  # original and so on.  Autoconf is especially sensitive to this).
66888  . "./$as_me.lineno"
66889  # Exit status is that of the last command.
66890  exit
66891}
66892
66893
66894if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
66895  as_dirname=dirname
66896else
66897  as_dirname=false
66898fi
66899
66900ECHO_C= ECHO_N= ECHO_T=
66901case `echo -n x` in
66902-n*)
66903  case `echo 'x\c'` in
66904  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
66905  *)   ECHO_C='\c';;
66906  esac;;
66907*)
66908  ECHO_N='-n';;
66909esac
66910
66911if expr a : '\(a\)' >/dev/null 2>&1 &&
66912   test "X`expr 00001 : '.*\(...\)'`" = X001; then
66913  as_expr=expr
66914else
66915  as_expr=false
66916fi
66917
66918rm -f conf$$ conf$$.exe conf$$.file
66919if test -d conf$$.dir; then
66920  rm -f conf$$.dir/conf$$.file
66921else
66922  rm -f conf$$.dir
66923  mkdir conf$$.dir
66924fi
66925echo >conf$$.file
66926if ln -s conf$$.file conf$$ 2>/dev/null; then
66927  as_ln_s='ln -s'
66928  # ... but there are two gotchas:
66929  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
66930  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
66931  # In both cases, we have to default to `cp -p'.
66932  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
66933    as_ln_s='cp -p'
66934elif ln conf$$.file conf$$ 2>/dev/null; then
66935  as_ln_s=ln
66936else
66937  as_ln_s='cp -p'
66938fi
66939rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
66940rmdir conf$$.dir 2>/dev/null
66941
66942if mkdir -p . 2>/dev/null; then
66943  as_mkdir_p=:
66944else
66945  test -d ./-p && rmdir ./-p
66946  as_mkdir_p=false
66947fi
66948
66949if test -x / >/dev/null 2>&1; then
66950  as_test_x='test -x'
66951else
66952  if ls -dL / >/dev/null 2>&1; then
66953    as_ls_L_option=L
66954  else
66955    as_ls_L_option=
66956  fi
66957  as_test_x='
66958    eval sh -c '\''
66959      if test -d "$1"; then
66960        test -d "$1/.";
66961      else
66962	case $1 in
66963        -*)set "./$1";;
66964	esac;
66965	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
66966	???[sx]*):;;*)false;;esac;fi
66967    '\'' sh
66968  '
66969fi
66970as_executable_p=$as_test_x
66971
66972# Sed expression to map a string onto a valid CPP name.
66973as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
66974
66975# Sed expression to map a string onto a valid variable name.
66976as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
66977
66978
66979exec 6>&1
66980
66981# Save the log message, to keep $[0] and so on meaningful, and to
66982# report actual input values of CONFIG_FILES etc. instead of their
66983# values after options handling.
66984ac_log="
66985This file was extended by $as_me, which was
66986generated by GNU Autoconf 2.61.  Invocation command line was
66987
66988  CONFIG_FILES    = $CONFIG_FILES
66989  CONFIG_HEADERS  = $CONFIG_HEADERS
66990  CONFIG_LINKS    = $CONFIG_LINKS
66991  CONFIG_COMMANDS = $CONFIG_COMMANDS
66992  $ $0 $@
66993
66994on `(hostname || uname -n) 2>/dev/null | sed 1q`
66995"
66996
66997_ACEOF
66998
66999cat >>$CONFIG_STATUS <<_ACEOF
67000# Files that config.status was made for.
67001config_files="$ac_config_files"
67002config_headers="$ac_config_headers"
67003config_commands="$ac_config_commands"
67004
67005_ACEOF
67006
67007cat >>$CONFIG_STATUS <<\_ACEOF
67008ac_cs_usage="\
67009\`$as_me' instantiates files from templates according to the
67010current configuration.
67011
67012Usage: $0 [OPTIONS] [FILE]...
67013
67014  -h, --help       print this help, then exit
67015  -V, --version    print version number and configuration settings, then exit
67016  -q, --quiet      do not print progress messages
67017  -d, --debug      don't remove temporary files
67018      --recheck    update $as_me by reconfiguring in the same conditions
67019  --file=FILE[:TEMPLATE]
67020		   instantiate the configuration file FILE
67021  --header=FILE[:TEMPLATE]
67022		   instantiate the configuration header FILE
67023
67024Configuration files:
67025$config_files
67026
67027Configuration headers:
67028$config_headers
67029
67030Configuration commands:
67031$config_commands
67032
67033Report bugs to <bug-autoconf@gnu.org>."
67034
67035_ACEOF
67036cat >>$CONFIG_STATUS <<_ACEOF
67037ac_cs_version="\\
67038config.status
67039configured by $0, generated by GNU Autoconf 2.61,
67040  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
67041
67042Copyright (C) 2006 Free Software Foundation, Inc.
67043This config.status script is free software; the Free Software Foundation
67044gives unlimited permission to copy, distribute and modify it."
67045
67046ac_pwd='$ac_pwd'
67047srcdir='$srcdir'
67048INSTALL='$INSTALL'
67049_ACEOF
67050
67051cat >>$CONFIG_STATUS <<\_ACEOF
67052# If no file are specified by the user, then we need to provide default
67053# value.  By we need to know if files were specified by the user.
67054ac_need_defaults=:
67055while test $# != 0
67056do
67057  case $1 in
67058  --*=*)
67059    ac_option=`expr "X$1" : 'X\([^=]*\)='`
67060    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
67061    ac_shift=:
67062    ;;
67063  *)
67064    ac_option=$1
67065    ac_optarg=$2
67066    ac_shift=shift
67067    ;;
67068  esac
67069
67070  case $ac_option in
67071  # Handling of the options.
67072  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
67073    ac_cs_recheck=: ;;
67074  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
67075    echo "$ac_cs_version"; exit ;;
67076  --debug | --debu | --deb | --de | --d | -d )
67077    debug=: ;;
67078  --file | --fil | --fi | --f )
67079    $ac_shift
67080    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
67081    ac_need_defaults=false;;
67082  --header | --heade | --head | --hea )
67083    $ac_shift
67084    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
67085    ac_need_defaults=false;;
67086  --he | --h)
67087    # Conflict between --help and --header
67088    { echo "$as_me: error: ambiguous option: $1
67089Try \`$0 --help' for more information." >&2
67090   { (exit 1); exit 1; }; };;
67091  --help | --hel | -h )
67092    echo "$ac_cs_usage"; exit ;;
67093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
67094  | -silent | --silent | --silen | --sile | --sil | --si | --s)
67095    ac_cs_silent=: ;;
67096
67097  # This is an error.
67098  -*) { echo "$as_me: error: unrecognized option: $1
67099Try \`$0 --help' for more information." >&2
67100   { (exit 1); exit 1; }; } ;;
67101
67102  *) ac_config_targets="$ac_config_targets $1"
67103     ac_need_defaults=false ;;
67104
67105  esac
67106  shift
67107done
67108
67109ac_configure_extra_args=
67110
67111if $ac_cs_silent; then
67112  exec 6>/dev/null
67113  ac_configure_extra_args="$ac_configure_extra_args --silent"
67114fi
67115
67116_ACEOF
67117cat >>$CONFIG_STATUS <<_ACEOF
67118if \$ac_cs_recheck; then
67119  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
67120  CONFIG_SHELL=$SHELL
67121  export CONFIG_SHELL
67122  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
67123fi
67124
67125_ACEOF
67126cat >>$CONFIG_STATUS <<\_ACEOF
67127exec 5>>config.log
67128{
67129  echo
67130  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
67131## Running $as_me. ##
67132_ASBOX
67133  echo "$ac_log"
67134} >&5
67135
67136_ACEOF
67137cat >>$CONFIG_STATUS <<_ACEOF
67138#
67139# INIT-COMMANDS
67140#
67141libreplacedir=$libreplacedir
67142libreplacedir=$libreplacedir
67143libreplacedir=$libreplacedir
67144libreplacedir=$libreplacedir
67145
67146_ACEOF
67147
67148cat >>$CONFIG_STATUS <<\_ACEOF
67149
67150# Handling of arguments.
67151for ac_config_target in $ac_config_targets
67152do
67153  case $ac_config_target in
67154    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
67155    "rm-stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rm-stdint.h" ;;
67156    "mk-stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS mk-stdint.h" ;;
67157    "rm-stdbool.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rm-stdbool.h" ;;
67158    "mk-stdbool.h") CONFIG_COMMANDS="$CONFIG_COMMANDS mk-stdbool.h" ;;
67159    "include/stamp-h") CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
67160    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
67161    "script/findsmb") CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
67162    "smbadduser") CONFIG_FILES="$CONFIG_FILES smbadduser" ;;
67163    "script/gen-8bit-gap.sh") CONFIG_FILES="$CONFIG_FILES script/gen-8bit-gap.sh" ;;
67164    "script/installbin.sh") CONFIG_FILES="$CONFIG_FILES script/installbin.sh" ;;
67165    "script/uninstallbin.sh") CONFIG_FILES="$CONFIG_FILES script/uninstallbin.sh" ;;
67166
67167  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
67168echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
67169   { (exit 1); exit 1; }; };;
67170  esac
67171done
67172
67173
67174# If the user did not use the arguments to specify the items to instantiate,
67175# then the envvar interface is used.  Set only those that are not.
67176# We use the long form for the default assignment because of an extremely
67177# bizarre bug on SunOS 4.1.3.
67178if $ac_need_defaults; then
67179  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
67180  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
67181  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
67182fi
67183
67184# Have a temporary directory for convenience.  Make it in the build tree
67185# simply because there is no reason against having it here, and in addition,
67186# creating and moving files from /tmp can sometimes cause problems.
67187# Hook for its removal unless debugging.
67188# Note that there is a small window in which the directory will not be cleaned:
67189# after its creation but before its name has been assigned to `$tmp'.
67190$debug ||
67191{
67192  tmp=
67193  trap 'exit_status=$?
67194  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
67195' 0
67196  trap '{ (exit 1); exit 1; }' 1 2 13 15
67197}
67198# Create a (secure) tmp directory for tmp files.
67199
67200{
67201  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
67202  test -n "$tmp" && test -d "$tmp"
67203}  ||
67204{
67205  tmp=./conf$$-$RANDOM
67206  (umask 077 && mkdir "$tmp")
67207} ||
67208{
67209   echo "$me: cannot create a temporary directory in ." >&2
67210   { (exit 1); exit 1; }
67211}
67212
67213#
67214# Set up the sed scripts for CONFIG_FILES section.
67215#
67216
67217# No need to generate the scripts if there are no CONFIG_FILES.
67218# This happens for instance when ./config.status config.h
67219if test -n "$CONFIG_FILES"; then
67220
67221_ACEOF
67222
67223
67224
67225ac_delim='%!_!# '
67226for ac_last_try in false false false false false :; do
67227  cat >conf$$subs.sed <<_ACEOF
67228SHELL!$SHELL$ac_delim
67229PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
67230PACKAGE_NAME!$PACKAGE_NAME$ac_delim
67231PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
67232PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
67233PACKAGE_STRING!$PACKAGE_STRING$ac_delim
67234PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
67235exec_prefix!$exec_prefix$ac_delim
67236prefix!$prefix$ac_delim
67237program_transform_name!$program_transform_name$ac_delim
67238bindir!$bindir$ac_delim
67239sbindir!$sbindir$ac_delim
67240libexecdir!$libexecdir$ac_delim
67241datarootdir!$datarootdir$ac_delim
67242datadir!$datadir$ac_delim
67243sysconfdir!$sysconfdir$ac_delim
67244sharedstatedir!$sharedstatedir$ac_delim
67245localstatedir!$localstatedir$ac_delim
67246includedir!$includedir$ac_delim
67247oldincludedir!$oldincludedir$ac_delim
67248docdir!$docdir$ac_delim
67249infodir!$infodir$ac_delim
67250htmldir!$htmldir$ac_delim
67251dvidir!$dvidir$ac_delim
67252pdfdir!$pdfdir$ac_delim
67253psdir!$psdir$ac_delim
67254libdir!$libdir$ac_delim
67255localedir!$localedir$ac_delim
67256mandir!$mandir$ac_delim
67257DEFS!$DEFS$ac_delim
67258ECHO_C!$ECHO_C$ac_delim
67259ECHO_N!$ECHO_N$ac_delim
67260ECHO_T!$ECHO_T$ac_delim
67261LIBS!$LIBS$ac_delim
67262build_alias!$build_alias$ac_delim
67263host_alias!$host_alias$ac_delim
67264target_alias!$target_alias$ac_delim
67265libreplacedir!$libreplacedir$ac_delim
67266LIBREPLACEOBJ!$LIBREPLACEOBJ$ac_delim
67267build!$build$ac_delim
67268build_cpu!$build_cpu$ac_delim
67269build_vendor!$build_vendor$ac_delim
67270build_os!$build_os$ac_delim
67271host!$host$ac_delim
67272host_cpu!$host_cpu$ac_delim
67273host_vendor!$host_vendor$ac_delim
67274host_os!$host_os$ac_delim
67275target!$target$ac_delim
67276target_cpu!$target_cpu$ac_delim
67277target_vendor!$target_vendor$ac_delim
67278target_os!$target_os$ac_delim
67279configdir!$configdir$ac_delim
67280lockdir!$lockdir$ac_delim
67281piddir!$piddir$ac_delim
67282logfilebase!$logfilebase$ac_delim
67283privatedir!$privatedir$ac_delim
67284swatdir!$swatdir$ac_delim
67285rootsbindir!$rootsbindir$ac_delim
67286pammodulesdir!$pammodulesdir$ac_delim
67287SAMBA_CPPFLAGS!$SAMBA_CPPFLAGS$ac_delim
67288LDSHFLAGS!$LDSHFLAGS$ac_delim
67289SONAMEFLAG!$SONAMEFLAG$ac_delim
67290SHLD!$SHLD$ac_delim
67291HOST_OS!$HOST_OS$ac_delim
67292PICFLAG!$PICFLAG$ac_delim
67293PIE_CFLAGS!$PIE_CFLAGS$ac_delim
67294PIE_LDFLAGS!$PIE_LDFLAGS$ac_delim
67295SHLIBEXT!$SHLIBEXT$ac_delim
67296INSTALLLIBCMD_SH!$INSTALLLIBCMD_SH$ac_delim
67297INSTALLLIBCMD_A!$INSTALLLIBCMD_A$ac_delim
67298UNINSTALLLIBCMD_SH!$UNINSTALLLIBCMD_SH$ac_delim
67299UNINSTALLLIBCMD_A!$UNINSTALLLIBCMD_A$ac_delim
67300INSTALL_LIBMSRPC!$INSTALL_LIBMSRPC$ac_delim
67301UNINSTALL_LIBMSRPC!$UNINSTALL_LIBMSRPC$ac_delim
67302LIBMSRPC_SHARED!$LIBMSRPC_SHARED$ac_delim
67303LIBMSRPC!$LIBMSRPC$ac_delim
67304INSTALL_LIBADDNS!$INSTALL_LIBADDNS$ac_delim
67305UNINSTALL_LIBADDNS!$UNINSTALL_LIBADDNS$ac_delim
67306LIBADDNS_SHARED!$LIBADDNS_SHARED$ac_delim
67307LIBADDNS!$LIBADDNS$ac_delim
67308INSTALL_LIBSMBCLIENT!$INSTALL_LIBSMBCLIENT$ac_delim
67309UNINSTALL_LIBSMBCLIENT!$UNINSTALL_LIBSMBCLIENT$ac_delim
67310LIBSMBCLIENT_SHARED!$LIBSMBCLIENT_SHARED$ac_delim
67311LIBSMBCLIENT!$LIBSMBCLIENT$ac_delim
67312INSTALL_LIBSMBSHAREMODES!$INSTALL_LIBSMBSHAREMODES$ac_delim
67313UNINSTALL_LIBSMBSHAREMODES!$UNINSTALL_LIBSMBSHAREMODES$ac_delim
67314LIBSMBSHAREMODES_SHARED!$LIBSMBSHAREMODES_SHARED$ac_delim
67315LIBSMBSHAREMODES!$LIBSMBSHAREMODES$ac_delim
67316PRINT_LIBS!$PRINT_LIBS$ac_delim
67317AUTH_LIBS!$AUTH_LIBS$ac_delim
67318ACL_LIBS!$ACL_LIBS$ac_delim
67319PASSDB_LIBS!$PASSDB_LIBS$ac_delim
67320IDMAP_LIBS!$IDMAP_LIBS$ac_delim
67321KRB5_LIBS!$KRB5_LIBS$ac_delim
67322UUID_LIBS!$UUID_LIBS$ac_delim
67323LDAP_LIBS!$LDAP_LIBS$ac_delim
67324PAM_MODULES!$PAM_MODULES$ac_delim
67325_ACEOF
67326
67327  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
67328    break
67329  elif $ac_last_try; then
67330    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
67331echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
67332   { (exit 1); exit 1; }; }
67333  else
67334    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
67335  fi
67336done
67337
67338ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
67339if test -n "$ac_eof"; then
67340  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
67341  ac_eof=`expr $ac_eof + 1`
67342fi
67343
67344cat >>$CONFIG_STATUS <<_ACEOF
67345cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
67346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67347_ACEOF
67348sed '
67349s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
67350s/^/s,@/; s/!/@,|#_!!_#|/
67351:n
67352t n
67353s/'"$ac_delim"'$/,g/; t
67354s/$/\\/; p
67355N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
67356' >>$CONFIG_STATUS <conf$$subs.sed
67357rm -f conf$$subs.sed
67358cat >>$CONFIG_STATUS <<_ACEOF
67359CEOF$ac_eof
67360_ACEOF
67361
67362
67363ac_delim='%!_!# '
67364for ac_last_try in false false false false false :; do
67365  cat >conf$$subs.sed <<_ACEOF
67366INSTALL_PAM_MODULES!$INSTALL_PAM_MODULES$ac_delim
67367UNINSTALL_PAM_MODULES!$UNINSTALL_PAM_MODULES$ac_delim
67368NSS_MODULES!$NSS_MODULES$ac_delim
67369EXTRA_BIN_PROGS!$EXTRA_BIN_PROGS$ac_delim
67370SMBMOUNT_PROGS!$SMBMOUNT_PROGS$ac_delim
67371CIFSMOUNT_PROGS!$CIFSMOUNT_PROGS$ac_delim
67372INSTALL_CIFSMOUNT!$INSTALL_CIFSMOUNT$ac_delim
67373UNINSTALL_CIFSMOUNT!$UNINSTALL_CIFSMOUNT$ac_delim
67374EXTRA_SBIN_PROGS!$EXTRA_SBIN_PROGS$ac_delim
67375EXTRA_ALL_TARGETS!$EXTRA_ALL_TARGETS$ac_delim
67376CONFIG_LIBS!$CONFIG_LIBS$ac_delim
67377NSCD_LIBS!$NSCD_LIBS$ac_delim
67378CC!$CC$ac_delim
67379CFLAGS!$CFLAGS$ac_delim
67380LDFLAGS!$LDFLAGS$ac_delim
67381CPPFLAGS!$CPPFLAGS$ac_delim
67382ac_ct_CC!$ac_ct_CC$ac_delim
67383EXEEXT!$EXEEXT$ac_delim
67384OBJEXT!$OBJEXT$ac_delim
67385CPP!$CPP$ac_delim
67386GREP!$GREP$ac_delim
67387EGREP!$EGREP$ac_delim
67388INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
67389INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
67390INSTALL_DATA!$INSTALL_DATA$ac_delim
67391libreplace_cv_immediate_structures!$libreplace_cv_immediate_structures$ac_delim
67392DEFAULT_TEST_TARGET!$DEFAULT_TEST_TARGET$ac_delim
67393HAVE_SOCKET_WRAPPER!$HAVE_SOCKET_WRAPPER$ac_delim
67394SOCKET_WRAPPER_OBJS!$SOCKET_WRAPPER_OBJS$ac_delim
67395selftest_prefix!$selftest_prefix$ac_delim
67396smbtorture4_path!$smbtorture4_path$ac_delim
67397AWK!$AWK$ac_delim
67398PERL!$PERL$ac_delim
67399AR!$AR$ac_delim
67400BROKEN_CC!$BROKEN_CC$ac_delim
67401PIDL_ARGS!$PIDL_ARGS$ac_delim
67402DYNEXP!$DYNEXP$ac_delim
67403LIBOBJS!$LIBOBJS$ac_delim
67404precompiled_headers!$precompiled_headers$ac_delim
67405LIBDL!$LIBDL$ac_delim
67406LIBREPLACE_OBJS!$LIBREPLACE_OBJS$ac_delim
67407CUPS_CONFIG!$CUPS_CONFIG$ac_delim
67408TERMLIBS!$TERMLIBS$ac_delim
67409TERMLDFLAGS!$TERMLDFLAGS$ac_delim
67410LIBUNWIND_PTRACE!$LIBUNWIND_PTRACE$ac_delim
67411ROFF!$ROFF$ac_delim
67412SMB_FAM_LIBS!$SMB_FAM_LIBS$ac_delim
67413SMBLDAP!$SMBLDAP$ac_delim
67414SMBLDAPUTIL!$SMBLDAPUTIL$ac_delim
67415LDBLDAP!$LDBLDAP$ac_delim
67416KRB5CONFIG!$KRB5CONFIG$ac_delim
67417WINBIND_NSS!$WINBIND_NSS$ac_delim
67418WINBIND_WINS_NSS!$WINBIND_WINS_NSS$ac_delim
67419WINBIND_NSS_LDSHFLAGS!$WINBIND_NSS_LDSHFLAGS$ac_delim
67420WINBIND_NSS_EXTRA_OBJS!$WINBIND_NSS_EXTRA_OBJS$ac_delim
67421WINBIND_NSS_EXTRA_LIBS!$WINBIND_NSS_EXTRA_LIBS$ac_delim
67422NSSSONAMEVERSIONSUFFIX!$NSSSONAMEVERSIONSUFFIX$ac_delim
67423SMB_KRB5_LOCATOR!$SMB_KRB5_LOCATOR$ac_delim
67424BUILD_POPT!$BUILD_POPT$ac_delim
67425POPTLIBS!$POPTLIBS$ac_delim
67426FLAGS1!$FLAGS1$ac_delim
67427BUILD_INIPARSER!$BUILD_INIPARSER$ac_delim
67428INIPARSERLIBS!$INIPARSERLIBS$ac_delim
67429PYTHON!$PYTHON$ac_delim
67430PDB_STATIC!$PDB_STATIC$ac_delim
67431PDB_MODULES!$PDB_MODULES$ac_delim
67432RPC_STATIC!$RPC_STATIC$ac_delim
67433RPC_MODULES!$RPC_MODULES$ac_delim
67434IDMAP_STATIC!$IDMAP_STATIC$ac_delim
67435IDMAP_MODULES!$IDMAP_MODULES$ac_delim
67436NSS_INFO_STATIC!$NSS_INFO_STATIC$ac_delim
67437NSS_INFO_MODULES!$NSS_INFO_MODULES$ac_delim
67438CHARSET_STATIC!$CHARSET_STATIC$ac_delim
67439CHARSET_MODULES!$CHARSET_MODULES$ac_delim
67440AUTH_STATIC!$AUTH_STATIC$ac_delim
67441AUTH_MODULES!$AUTH_MODULES$ac_delim
67442VFS_STATIC!$VFS_STATIC$ac_delim
67443VFS_MODULES!$VFS_MODULES$ac_delim
67444builddir!$builddir$ac_delim
67445SMBD_LIBS!$SMBD_LIBS$ac_delim
67446LTLIBOBJS!$LTLIBOBJS$ac_delim
67447_ACEOF
67448
67449  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
67450    break
67451  elif $ac_last_try; then
67452    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
67453echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
67454   { (exit 1); exit 1; }; }
67455  else
67456    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
67457  fi
67458done
67459
67460ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
67461if test -n "$ac_eof"; then
67462  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
67463  ac_eof=`expr $ac_eof + 1`
67464fi
67465
67466cat >>$CONFIG_STATUS <<_ACEOF
67467cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
67468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
67469_ACEOF
67470sed '
67471s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
67472s/^/s,@/; s/!/@,|#_!!_#|/
67473:n
67474t n
67475s/'"$ac_delim"'$/,g/; t
67476s/$/\\/; p
67477N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
67478' >>$CONFIG_STATUS <conf$$subs.sed
67479rm -f conf$$subs.sed
67480cat >>$CONFIG_STATUS <<_ACEOF
67481:end
67482s/|#_!!_#|//g
67483CEOF$ac_eof
67484_ACEOF
67485
67486
67487# VPATH may cause trouble with some makes, so we remove $(srcdir),
67488# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
67489# trailing colons and then remove the whole line if VPATH becomes empty
67490# (actually we leave an empty line to preserve line numbers).
67491if test "x$srcdir" = x.; then
67492  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
67493s/:*\$(srcdir):*/:/
67494s/:*\${srcdir}:*/:/
67495s/:*@srcdir@:*/:/
67496s/^\([^=]*=[	 ]*\):*/\1/
67497s/:*$//
67498s/^[^=]*=[	 ]*$//
67499}'
67500fi
67501
67502cat >>$CONFIG_STATUS <<\_ACEOF
67503fi # test -n "$CONFIG_FILES"
67504
67505
67506for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
67507do
67508  case $ac_tag in
67509  :[FHLC]) ac_mode=$ac_tag; continue;;
67510  esac
67511  case $ac_mode$ac_tag in
67512  :[FHL]*:*);;
67513  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
67514echo "$as_me: error: Invalid tag $ac_tag." >&2;}
67515   { (exit 1); exit 1; }; };;
67516  :[FH]-) ac_tag=-:-;;
67517  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
67518  esac
67519  ac_save_IFS=$IFS
67520  IFS=:
67521  set x $ac_tag
67522  IFS=$ac_save_IFS
67523  shift
67524  ac_file=$1
67525  shift
67526
67527  case $ac_mode in
67528  :L) ac_source=$1;;
67529  :[FH])
67530    ac_file_inputs=
67531    for ac_f
67532    do
67533      case $ac_f in
67534      -) ac_f="$tmp/stdin";;
67535      *) # Look for the file first in the build tree, then in the source tree
67536	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
67537	 # because $ac_f cannot contain `:'.
67538	 test -f "$ac_f" ||
67539	   case $ac_f in
67540	   [\\/$]*) false;;
67541	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
67542	   esac ||
67543	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
67544echo "$as_me: error: cannot find input file: $ac_f" >&2;}
67545   { (exit 1); exit 1; }; };;
67546      esac
67547      ac_file_inputs="$ac_file_inputs $ac_f"
67548    done
67549
67550    # Let's still pretend it is `configure' which instantiates (i.e., don't
67551    # use $as_me), people would be surprised to read:
67552    #    /* config.h.  Generated by config.status.  */
67553    configure_input="Generated from "`IFS=:
67554	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
67555    if test x"$ac_file" != x-; then
67556      configure_input="$ac_file.  $configure_input"
67557      { echo "$as_me:$LINENO: creating $ac_file" >&5
67558echo "$as_me: creating $ac_file" >&6;}
67559    fi
67560
67561    case $ac_tag in
67562    *:-:* | *:-) cat >"$tmp/stdin";;
67563    esac
67564    ;;
67565  esac
67566
67567  ac_dir=`$as_dirname -- "$ac_file" ||
67568$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67569	 X"$ac_file" : 'X\(//\)[^/]' \| \
67570	 X"$ac_file" : 'X\(//\)$' \| \
67571	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
67572echo X"$ac_file" |
67573    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67574	    s//\1/
67575	    q
67576	  }
67577	  /^X\(\/\/\)[^/].*/{
67578	    s//\1/
67579	    q
67580	  }
67581	  /^X\(\/\/\)$/{
67582	    s//\1/
67583	    q
67584	  }
67585	  /^X\(\/\).*/{
67586	    s//\1/
67587	    q
67588	  }
67589	  s/.*/./; q'`
67590  { as_dir="$ac_dir"
67591  case $as_dir in #(
67592  -*) as_dir=./$as_dir;;
67593  esac
67594  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
67595    as_dirs=
67596    while :; do
67597      case $as_dir in #(
67598      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
67599      *) as_qdir=$as_dir;;
67600      esac
67601      as_dirs="'$as_qdir' $as_dirs"
67602      as_dir=`$as_dirname -- "$as_dir" ||
67603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67604	 X"$as_dir" : 'X\(//\)[^/]' \| \
67605	 X"$as_dir" : 'X\(//\)$' \| \
67606	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
67607echo X"$as_dir" |
67608    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67609	    s//\1/
67610	    q
67611	  }
67612	  /^X\(\/\/\)[^/].*/{
67613	    s//\1/
67614	    q
67615	  }
67616	  /^X\(\/\/\)$/{
67617	    s//\1/
67618	    q
67619	  }
67620	  /^X\(\/\).*/{
67621	    s//\1/
67622	    q
67623	  }
67624	  s/.*/./; q'`
67625      test -d "$as_dir" && break
67626    done
67627    test -z "$as_dirs" || eval "mkdir $as_dirs"
67628  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
67629echo "$as_me: error: cannot create directory $as_dir" >&2;}
67630   { (exit 1); exit 1; }; }; }
67631  ac_builddir=.
67632
67633case "$ac_dir" in
67634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
67635*)
67636  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
67637  # A ".." for each directory in $ac_dir_suffix.
67638  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
67639  case $ac_top_builddir_sub in
67640  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
67641  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
67642  esac ;;
67643esac
67644ac_abs_top_builddir=$ac_pwd
67645ac_abs_builddir=$ac_pwd$ac_dir_suffix
67646# for backward compatibility:
67647ac_top_builddir=$ac_top_build_prefix
67648
67649case $srcdir in
67650  .)  # We are building in place.
67651    ac_srcdir=.
67652    ac_top_srcdir=$ac_top_builddir_sub
67653    ac_abs_top_srcdir=$ac_pwd ;;
67654  [\\/]* | ?:[\\/]* )  # Absolute name.
67655    ac_srcdir=$srcdir$ac_dir_suffix;
67656    ac_top_srcdir=$srcdir
67657    ac_abs_top_srcdir=$srcdir ;;
67658  *) # Relative name.
67659    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
67660    ac_top_srcdir=$ac_top_build_prefix$srcdir
67661    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
67662esac
67663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
67664
67665
67666  case $ac_mode in
67667  :F)
67668  #
67669  # CONFIG_FILE
67670  #
67671
67672  case $INSTALL in
67673  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
67674  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
67675  esac
67676_ACEOF
67677
67678cat >>$CONFIG_STATUS <<\_ACEOF
67679# If the template does not know about datarootdir, expand it.
67680# FIXME: This hack should be removed a few years after 2.60.
67681ac_datarootdir_hack=; ac_datarootdir_seen=
67682
67683case `sed -n '/datarootdir/ {
67684  p
67685  q
67686}
67687/@datadir@/p
67688/@docdir@/p
67689/@infodir@/p
67690/@localedir@/p
67691/@mandir@/p
67692' $ac_file_inputs` in
67693*datarootdir*) ac_datarootdir_seen=yes;;
67694*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
67695  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
67696echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
67697_ACEOF
67698cat >>$CONFIG_STATUS <<_ACEOF
67699  ac_datarootdir_hack='
67700  s&@datadir@&$datadir&g
67701  s&@docdir@&$docdir&g
67702  s&@infodir@&$infodir&g
67703  s&@localedir@&$localedir&g
67704  s&@mandir@&$mandir&g
67705    s&\\\${datarootdir}&$datarootdir&g' ;;
67706esac
67707_ACEOF
67708
67709# Neutralize VPATH when `$srcdir' = `.'.
67710# Shell code in configure.ac might set extrasub.
67711# FIXME: do we really want to maintain this feature?
67712cat >>$CONFIG_STATUS <<_ACEOF
67713  sed "$ac_vpsub
67714$extrasub
67715_ACEOF
67716cat >>$CONFIG_STATUS <<\_ACEOF
67717:t
67718/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67719s&@configure_input@&$configure_input&;t t
67720s&@top_builddir@&$ac_top_builddir_sub&;t t
67721s&@srcdir@&$ac_srcdir&;t t
67722s&@abs_srcdir@&$ac_abs_srcdir&;t t
67723s&@top_srcdir@&$ac_top_srcdir&;t t
67724s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
67725s&@builddir@&$ac_builddir&;t t
67726s&@abs_builddir@&$ac_abs_builddir&;t t
67727s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
67728s&@INSTALL@&$ac_INSTALL&;t t
67729$ac_datarootdir_hack
67730" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
67731
67732test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
67733  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
67734  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
67735  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67736which seems to be undefined.  Please make sure it is defined." >&5
67737echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67738which seems to be undefined.  Please make sure it is defined." >&2;}
67739
67740  rm -f "$tmp/stdin"
67741  case $ac_file in
67742  -) cat "$tmp/out"; rm -f "$tmp/out";;
67743  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
67744  esac
67745 ;;
67746  :H)
67747  #
67748  # CONFIG_HEADER
67749  #
67750_ACEOF
67751
67752# Transform confdefs.h into a sed script `conftest.defines', that
67753# substitutes the proper values into config.h.in to produce config.h.
67754rm -f conftest.defines conftest.tail
67755# First, append a space to every undef/define line, to ease matching.
67756echo 's/$/ /' >conftest.defines
67757# Then, protect against being on the right side of a sed subst, or in
67758# an unquoted here document, in config.status.  If some macros were
67759# called several times there might be several #defines for the same
67760# symbol, which is useless.  But do not sort them, since the last
67761# AC_DEFINE must be honored.
67762ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
67763# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
67764# NAME is the cpp macro being defined, VALUE is the value it is being given.
67765# PARAMS is the parameter list in the macro definition--in most cases, it's
67766# just an empty string.
67767ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
67768ac_dB='\\)[	 (].*,\\1define\\2'
67769ac_dC=' '
67770ac_dD=' ,'
67771
67772uniq confdefs.h |
67773  sed -n '
67774	t rset
67775	:rset
67776	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
67777	t ok
67778	d
67779	:ok
67780	s/[\\&,]/\\&/g
67781	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
67782	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
67783  ' >>conftest.defines
67784
67785# Remove the space that was appended to ease matching.
67786# Then replace #undef with comments.  This is necessary, for
67787# example, in the case of _POSIX_SOURCE, which is predefined and required
67788# on some systems where configure will not decide to define it.
67789# (The regexp can be short, since the line contains either #define or #undef.)
67790echo 's/ $//
67791s,^[	 #]*u.*,/* & */,' >>conftest.defines
67792
67793# Break up conftest.defines:
67794ac_max_sed_lines=50
67795
67796# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
67797# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
67798# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
67799# et cetera.
67800ac_in='$ac_file_inputs'
67801ac_out='"$tmp/out1"'
67802ac_nxt='"$tmp/out2"'
67803
67804while :
67805do
67806  # Write a here document:
67807    cat >>$CONFIG_STATUS <<_ACEOF
67808    # First, check the format of the line:
67809    cat >"\$tmp/defines.sed" <<\\CEOF
67810/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
67811/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
67812b
67813:def
67814_ACEOF
67815  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
67816  echo 'CEOF
67817    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
67818  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
67819  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
67820  grep . conftest.tail >/dev/null || break
67821  rm -f conftest.defines
67822  mv conftest.tail conftest.defines
67823done
67824rm -f conftest.defines conftest.tail
67825
67826echo "ac_result=$ac_in" >>$CONFIG_STATUS
67827cat >>$CONFIG_STATUS <<\_ACEOF
67828  if test x"$ac_file" != x-; then
67829    echo "/* $configure_input  */" >"$tmp/config.h"
67830    cat "$ac_result" >>"$tmp/config.h"
67831    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
67832      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
67833echo "$as_me: $ac_file is unchanged" >&6;}
67834    else
67835      rm -f $ac_file
67836      mv "$tmp/config.h" $ac_file
67837    fi
67838  else
67839    echo "/* $configure_input  */"
67840    cat "$ac_result"
67841  fi
67842  rm -f "$tmp/out12"
67843 ;;
67844
67845  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
67846echo "$as_me: executing $ac_file commands" >&6;}
67847 ;;
67848  esac
67849
67850
67851  case $ac_file$ac_mode in
67852    "rm-stdint.h":C) rm -f $libreplacedir/stdint.h ;;
67853    "mk-stdint.h":C) echo "#include \"replace.h\"" > $libreplacedir/stdint.h ;;
67854    "rm-stdbool.h":C) rm -f $libreplacedir/stdbool.h ;;
67855    "mk-stdbool.h":C) echo "#include \"replace.h\"" > $libreplacedir/stdbool.h ;;
67856
67857  esac
67858done # for ac_tag
67859
67860
67861{ (exit 0); exit 0; }
67862_ACEOF
67863chmod +x $CONFIG_STATUS
67864ac_clean_files=$ac_clean_files_save
67865
67866
67867# configure is writing to config.log, and then calls config.status.
67868# config.status does its own redirection, appending to config.log.
67869# Unfortunately, on DOS this fails, as config.log is still kept open
67870# by configure, so config.status won't be able to write to it; its
67871# output is simply discarded.  So we exec the FD to /dev/null,
67872# effectively closing config.log, so it can be properly (re)opened and
67873# appended to by config.status.  When coming back to configure, we
67874# need to make the FD available again.
67875if test "$no_create" != yes; then
67876  ac_cs_success=:
67877  ac_config_status_args=
67878  test "$silent" = yes &&
67879    ac_config_status_args="$ac_config_status_args --quiet"
67880  exec 5>/dev/null
67881  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
67882  exec 5>>config.log
67883  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
67884  # would make configure fail if this is the last instruction.
67885  $ac_cs_success || { (exit 1); exit 1; }
67886fi
67887
67888
67889#################################################
67890# Print very concise instructions on building/use
67891if test "x$enable_dmalloc" = xyes
67892then
67893	{ echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included.  To turn it on use" >&5
67894echo "${ECHO_T}Note: The dmalloc debug library will be included.  To turn it on use" >&6; }
67895	{ echo "$as_me:$LINENO: result:       \$ eval \\`dmalloc samba\\`." >&5
67896echo "${ECHO_T}      \$ eval \\`dmalloc samba\\`." >&6; }
67897fi
67898